1 2006-10-12 Lars Clausen <lars@raeder.dk>
3 * objects/standard/box.c: Patch from Michael Duelli
4 <m.duelli@web.de>: Set line attributes before drawing anything.
6 2006-10-08 Lars Clausen <lars@raeder.dk>
8 * configure.in: Allow compiling without freetype on Unix systems.
9 The effect of changes to non-freetype parts of the code can now be
10 tested, and I have no excuse to not fix them anymore:(
12 2006-10-01 Lars Clausen <lars@raeder.dk>
14 * app/modify_tool.c (modify_motion): Don't use null-ness of
15 connectionpoint to skip snap-to-grid for non-connectable handles.
18 * shapes/flowchart/predefdproc.shape: Fixed midpoint.
20 2006-09-27 Steffen Macke <sdteffen@gmail.com>
22 * shapes/flowchart/datasource.png:
23 * shapes/flowchart/datasource.shape:
24 * shapes/flowchart/Makefile.am:
25 * sheets/Flowchart.sheet.in:
26 * installer/win32/dia.nsi: Added new "Data source" shape
28 2006-09-24 Hans Breuer <hans@breuer.org>
30 * lib/diagdkrenderer.c : I'm going to rip out all the Freetype
31 code the next time the GDK only compile breaks
33 2006-09-23 Hans Breuer <hans@breuer.org>
35 * app/commands.c app/create_object.c app/disp_callbacks.c : add
36 missing #include "lib/parent.h"
38 * lib/makefile.msc : build textline.obj
40 * objects/makefile.msc : don't build newgroup.obj
41 * objects/misc/libmisc.c : with newgroup gone to app/ newgroup_type can
42 not be registered from the module any longer - at least not on win32
44 * plug-ins/python/makefile.msc : removed obsolete references to
45 Python 1.5, also removed misleading link to Python 2.2 debug build
47 * app/diagram.[ch] app/app_procs.c : don't use C++ keyword 'virtual'
48 as variable name: s/virtual/is_default/
50 * plug-ins/python/*.c : don't mix PyObject_NEW() with PyMem_DEL()
51 Newer versions of Python (2.5) are not tolerant about this anymore.
53 2006-09-11 Lars Clausen <lars@raeder.dk>
55 * lib/diasvgrenderer.c (draw_text_line): First stab at making svg
56 text line renderer, doesn't work yet.
58 * lib/textline.c (text_line_draw): Removed #define.
60 * lib/diagdkrenderer.c (draw_text_line): Slight cleanups.
62 2006-09-11 Steffen Macke <sdteffen@gmail.com>
64 * plug-ins/vdx/vdx-export.c:
65 * plug-ins/vdx/vdx-import.c:
66 * plug-ins/vdx/vdx-xml.c:
68 * plug-ins/vdx/visio-types.h: Update to version 0.5 (from 0.4) of
69 Visio import, thanks to Ian Redfern, who states:
71 This is the first version to support export to VDX - for now, just
72 straight lines and text, but I'm working on the more complex bits.
73 It currently writes Visio 2002 VDX as a lowest common denominator,
74 but that won't handle Beziers, so when I get round to converting them
75 to NURBS, only Visio 2003 users will be able to import them.
77 There are also several improvements to import, both to fix the layout
78 and clean up the code, and it can now import embedded bitmaps - as Dia
79 needs them to be separate files, it puts them in /tmp (or wherever
80 tempnam() goes to on your system). Alternative suggestions are welcome.
81 NURBS import still doesn't work, but everything else seems pretty
84 In addition, two small adjustments to compile on Windows
86 2006-09-08 Steffen Macke <sdteffen@gmail.com>
90 * app/dia-win-remote.c:
91 * installer/win32/dia.nsi: From Windows Explorer, open .dia files in the
92 running Dia instance (if possible). Fixes bug #70718
94 2006-09-05 Lars Clausen <lars@raeder.dk>
97 * lib/Makefile.am (libdia_la_SOURCES):
98 * lib/diarenderer.[ch]:
100 * lib/diagdkrenderer.c:
101 * lib/textline.[ch]: TextLine now ready for commit. Rendering
102 with it is much faster and significantly more precise than
103 without. All renderers should implement a good definitions for
104 this (though there is a default one that uses draw_string), as it
105 can tell the expected width of a string.
107 * lib/libdia.def: Newly defined functions.
109 2006-08-29 Lars Clausen <lars@raeder.dk>
111 * lib/textline.[ch]: New text rendering level: A self-contained
112 single-line text object that allows safer caching and hopefully
113 more accurate rendering at various zooms. Using a PangoMatrix
116 * lib/font.c: Removing out-deffed layout cache code, it'll never
117 work. Also a couple support functions for my quest of good zoom.
119 2006-08-20 Hans Breuer <hans@breuer.org>
121 * plug-ins/cairo/diacairo.c : get rid of c++ coment
122 * app/diagram.h app/diagram.c app/modify_tool.c app/select.c
123 app/undo.c : reverted 'Shortened diagram_unselect'. It broke
124 plug-ins/python, but more iomportant made one function fromm
125 app/diagram.h asymmetric with all the others. We should not leave
126 the common C OO-pattern of passing an explicit "this pointer" just
127 because that can also be deduced from the other object.
129 2006-08-18 Lars Clausen <lars@raeder.dk>
131 * lib/render.[ch]: Finally removed unused render files now known
134 2006-08-17 Steffen Macke <sdteffen@gmail.com>
136 * installer/win32/dia-diagram.ico:
137 * installer/win32/dia.nsi: Assign icon to *.dia files
139 2006-08-16 Lars Clausen <lars@raeder.dk>
141 * app/diagram.c (diagram_load):
142 * lib/object.c (dia_object_is_selectable): Two silly null-pointer
143 errors detected by Michael Duelli <m.duelli@web.de>
145 2006-08-16 Steffen Macke <sdteffen@gmail.com>
148 * app/undo.c: Include parent.h
149 * lib/libdia.def: Include dia_object_is_selectable()
151 2006-08-13 Lars Clausen <lars@raeder.dk>
153 * objects/Misc/libmisc.c:
154 * {app,objects/Misc}/Makefile.am:
155 * objects/Misc/newgroup.c:
156 * app/newgroup.c: Moved newgroup.
161 * app/select.c: Trim diagram_unselect_object() to the one required
165 * app/interface.c (dia_dnd_file_drag_data_received):
166 * app/recent_files.c (open_recent_file_callback):
167 * app/filedlg.c (file_open_response_callback):
168 * app/diagram.c (diagram_load):
169 Make the diagram created at start-up be a virtual diagram that
170 if unchanged is filled in by the first opened diagram, like Gnumeric.
172 2006-08-11 Lars Clausen <lars@raeder.dk>
174 * app/properties.c (properties_give_focus): Give focus to first
175 thing in a properties dialog. Still need our own compound widgets
178 2006-08-06 Lars Clausen <lars@raeder.dk>
180 * objects/Misc/newgroup.c:
185 * lib/object.[ch]: Work towards a more reasonable definition of
188 2006-08-06 Steffen Macke <sdteffen@gmail.com>
190 * installer/win32/dia.nsi: Save diagrams by default in "My Pictures";
193 2006-08-04 Steffen Macke <sdteffen@gmail.com>
195 * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm
196 newgroup.xpm , *ui.xml files
198 2006-08-03 Lars Clausen <lars@raeder.dk>
200 * sheets/Makefile.am: EML sheet taken out since it's been empty
201 for five years anyway. Fixes bug #347894.
205 * doc/en/usage-layers.xml: Fixed obsolete references to
206 export-to-format. Fixes bug #346510.
208 2006-08-02 Lars Clausen <lars@raeder.dk>
210 * plug-ins/vdx/visio-types.h:
211 * plug-ins/vdx/vdx.h:
212 * plug-ins/vdx/vdx-xml.c:
213 * plug-ins/vdx/vdx-import.c:
214 * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of
215 Visio import, thanks to Ian Redfern, who states:
217 Version 0.4 does a passable job with curves, and has the first
218 implementation of Masters. It also handles XForm1D, and fixes a
219 potential crash. It gets some layers in the wrong order and still
220 has some major positioning and sizing issues.
222 Version 0.3 gets object layout correct, and does a better job of
223 text, lines, arrows, layers etc. Some diagrams (that don't contain
224 curves) now render pretty much correctly.
226 2006-07-16 Hans Breuer <hans@breuer.org>
228 * app/cut_n_paste.[hc] : maintain a generation counter to count
229 how many times the stored object list is used
230 * app/commands.c : use the generation for paste placement. The
231 first one after cut is not moved at all: a nice way to move objects
232 between layers without changing their lateral position.
233 Also sprinkled some diagram_update_extents()
235 * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080
237 * app/recent_files.c : don't g_return_if_fail() on common use case,
238 here an empty recent file list
240 * lib/dia_image.c(dia_image_draw) : don't try to draw anything if
241 width or height is smaller than 1 pixel
243 * plug-ins/cairo/diacairo.c : allow to export to svg if available
244 with cairo. Some tweaking of surface sizes.
246 2006-07-12 Lars Clausen <lars@raeder.dk>
248 * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
250 2006-06-28 Lars Clausen <lars@raeder.dk>
252 * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
255 2006-06-25 Hans Breuer <hans@breuer.org>
257 * app/display.c : avoid to call gettext on parameters for ngettext()
258 Should finally really fix bug #344896
260 * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
261 removed expand="yes" because otherwise the files can't be read with
262 gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
263 * app/menus.c app/Makefile.am : also find the ui files when run from
266 2006-06-17 Gintautas Miliauskas <gintas@akl.lt>
268 * configure.in: Added lt to ALL_LINGUAS.
270 2006-06-15 Hans Breuer <hans@breuer.org>
272 * app/display.c : use ngettext() for possible plural variations.
273 (Bug #344896, tokul@users.sourceforge.net)
275 * objects/UML/class.c : use g_list_append() rather than prepend
276 when copying attributes, operations, formalparams. Fixes bug #342902
277 Also removed some superfluous outcommented code and fixed a warning.
279 * objects/UML/class.c : dont break reading comment_line_length
280 by misguide compatibility code. Fixes bug #341887
282 * plug-ins/vdx/vdx-xml.c : added file missing from 0.3
283 version commit. Fixes bug #344804
285 * lib/create.h : add create_standard_group() prototype
286 * lib/libdia.def lib/makefile.msc objects/makefile.msc
287 plug-ins/makefile.msc : added missing (files|exports)
289 2006-06-13 Lars Clausen <lars@raeder.dk>
291 * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
292 again to Ian Redfern.
294 2006-06-12 Elijah Newren <newren gmail com>
296 * autogen.sh: Run configure by default, allow it to be skipped if
297 NOCONFIGURE is set in the environment. #344574.
299 2006-06-12 Elijah Newren <newren gmail com>
301 Pair of build fixes. #344357
303 * Makefile.am: avoid cp errors when $(srcdir) == .
305 * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
306 pixmaps/group.xpm as the latter doesn't exist.
308 2006-06-12 Hans Breuer <hans@breuer.org>
310 * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
311 which adds support for Java and inheritance. Closes bug #344187
313 2006-05-28 Lars Clausen <lars@raeder.dk>
315 * sheets/Misc.sheet.in:
316 * objects/Misc/Makefile.am (EXTRA_DIST):
317 * objects/Misc/pixmaps/newgroup.xpm:
318 * objects/Misc/newgroup.c:
319 * objects/Misc/libmisc.c: Start of new group model, with "visible"
320 object to test with. This object will later become the default
321 group object and thus (mostly) invisible.
323 * lib/parent.c (parent_handle_move_in_check):
324 * app/create_object.c (create_object_button_press):
325 * app/diagram.c (diagram_unparent_children_selected):
326 * app/disp_callbacks.c (ddisplay_drop_object):
327 * app/load_save.c (write_objects):
328 * objects/network/radiocell.c (radiocell_create):
329 * objects/AADL/aadlbox.c (aadlbox_create):
330 * objects/UML/large_package.c (largepackage_create):
331 * objects/UML/component.c (component_create):
332 * lib/object.[ch]: DiaObject API change: DiaObject now has gint
333 flags rather than gboolean can_parent, and utility function
334 object_flags_set. Uses of can_parent changed to call to function.
336 * doc/en/dia.dbk: Removal of obsolete epsi references.
338 2006-05-27 Hans Breuer <hans@breuer.org>
340 * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator
341 '<control>+': it wants '<control>plus', same for minus.
343 * tests/exports/cgm/* : cvs admin -kb *.cgm
344 tests/exports/png/* tests/exports/png-libart/*
345 tests/exports/shape/* : cvs admin -kb *.png
346 tests/exports/wpg/* : cvs admin -kb *.wpg
347 mark binary files as such to not get them broken on platforms which
348 insist on replacing line-ends.
350 * app/app_procs.c app/display.c app/filedlg.c app/interface.c
351 app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
352 plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
353 plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
354 as well. Patch from Hans de Goede, bug #342111
356 2006-05-27 Rob Staudinger <robert.staudinger@gmail.com>
362 * objects/standard/Makefile.am:
363 * plug-ins/python/Makefile.am:
364 Fix out of tree build (#340115).
366 2006-05-25 Hans Breuer <hans@breuer.org>
368 * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
369 to action_name. Don't mark action names for translation. It is not
370 needed and some languages don't support CamelCase. Fixes bug #342895
372 * app/menus.c : re-added a bunch of accelerators lost in translation
373 to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
374 it was not available with gtk+-2-6-x.
375 Use dia_get_data_directory() instead of hardcoded UIDATADIR.
376 * app/dia_embedd.c : explain instead of out-comment
378 * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c
379 lib/properties.h dia_xml.c : warningectomy
381 * lib/create.h : create_standard_group()
382 * lib/libdia.def lib/makefile.msc : reflect moved stuff
384 2006-05-25 Lars Clausen <lars@raeder.dk>
386 * tests/exports/*.dia: A set of test diagrams for export
387 plug-ins. The intention is to use these for regression tests by
388 ensuring that they don't change when code is altered, or if they
389 change that a manual inspection proves them ok. The fact that an
390 export plug-in passes these tests doesn't mean it's perfect, just
391 that is hasn't degraded.
393 * plug-ins/xfig/xfig-import.c:
394 * plug-ins/vdx/vdx-import.c:
395 * lib/create.[ch]: Functions taken from xfig to create some
396 standard objects easily. Uses of them updated, no longer need to
399 * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
400 Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>. Also a bunch of
401 samples for the purpose from the vdxtosvg project.
403 2006-05-21 Hans Breuer <hans@breuer.org>
405 * app/interface.[hc] app/disp_callbacks.c : removed unused
406 global variable popup_shell
408 * app/pagesetup.c app/diapagelayout.c : restrict every page margin
409 to a little less than half of the page. This guarantees margins
410 leaving some useable page area and thus avoids crashing on negative
411 page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
413 2006-05-20 Hans Breuer <hans@breuer.org>
415 Patch from Robert Staudinger to base dia menus on GtkAction framework
416 instead on deprecated GtkItemFactory. Tracked in bug #340352.
417 En passant fixes bug #171397
418 * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
419 * Makefile.am : added data dir
420 * app/Makefile.am : added $(uidatadir)
421 * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
422 app/diagram_tree_window.c app/diagram_tree_window.h
423 app/disp_callbacks.c app/display.c app/display.h
424 app/interface.c app/menus.c app/menus.h app/recent_files.c :
425 changed a bunch of callback signatures to take GtkAction
426 * app/pixmaps/Makefile.am
427 * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
428 data/popup-ui.xml : new files containing the menu structure
429 * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
430 registration change to be more appropriate for actions
431 * lib/libdia.def : updated externals
432 * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
433 plug-ins/python/group_props.py plug-ins/python/gtkcons.py
434 plug-ins/python/otypes.py plug-ins/python/pydiadoc.py
435 plug-ins/python/scascale.py plug-ins/python/select_by.py :
436 adapted to API change dia.register_callback to dia.register.action
438 * app/authors.h : added Robert to the authors
439 * app/commands.c : got rid of compiler warnings
441 2006-05-14 Hans Breuer <hans@breuer.org>
443 * plug-ins/python/python.c : protect the plug-in against
444 initializing if Python already is initialized. This PyDia extensions
445 is designed for embedding Python.
447 * plug-ins/python/pydia-property.c : LineStyle.dash may be either
450 * plug-ins/python/diasvg_import.py : remove FontSize debug spew
452 * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
453 setup use the pango context matching the display. Otherwise fallback
454 to a context from PangoWin32 (matches only for gtk+-2-6, not the one
455 used since gtk+-2-8 using cairo.
457 2006-05-13 Hans Breuer <hans@breuer.org>
459 [ also applied to branch dia-0-95 ]
460 * objects/UML/umloperationc: add "query" to umloperation_offsets.
461 Patch from Peter Allin, fixes bug #338336
463 [ also applied to branch dia-0-95 ]
464 * app/diagram.c(diagram_ungroup_selected) : operate on a copy
465 of data-Selected cause the original is modified during use.
466 Patch from Victor Stinner, fixes bug #334771
468 * configure.in config.h.win32 : development started again so 095+cvs.
469 Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1
472 * app/diagram.c : removed long-time outcommented code
474 * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
475 lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
477 * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
478 it is handled everywhere else just fine.
480 2006-04-19 Lars Clausen <lars@raeder.dk>
482 * installer/win32/dia.nsi:
490 * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
491 from Nick Moore <shiny.nickel@gmail.com>.
493 2006-04-17 Kjartan Maraas <kmaraas@gnome.org>
495 * configure.in: Remove obsolete entry for no_NO
496 * po/no.po: And the translation.
498 2006-04-12 Lars Clausen <lars@raeder.dk>
500 * installer/win32/dia.nsi:
508 * configure.in: Check for xgettext. Apparently
509 AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
511 2006-04-04 Steffen Macke <sdteffen@gmail.com>
513 * installer/win32/dia.nsi:
514 * installer/win32/langmacros.nsh:
515 * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
518 2006-04-03 Lars Clausen <lars@raeder.dk>
520 * installer/win32/dia.nsi:
528 * plug-ins/xfig/xfig-import.c: Initially place text in the right
531 2006-04-03 Steffen Macke <sdteffen@gmail.com>
533 * installer/win32/dia.nsi:
534 * installer/win32/locale/french.nsh: Added french installer
535 locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
537 2006-04-02 Hans Breuer <hans@breuer.org>
539 * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
541 2006-03-29 Daniel Drake <dsd@gentoo.org>
543 * configure.in: Use standard pkg-config expressions to check for
544 GTK+/Glib, the GTK-supplied macro's conflict with our usage of
545 $GTK_MODULES (#335422)
547 2006-03-28 Lars Clausen <lars@raeder.dk>
549 * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
550 Include libs and cflags in proper places.
552 * installer/win32/dia.nsi:
560 * shapes/network/mobile_phone.{png,xpm,shape}:
561 * shapes/network/telephone.shape:
562 * shapes/network/disc.shape:
563 Updates from W. Borgert <debacle@debian.org> improving looks and
566 2006-03-26 Lars Clausen <lars@raeder.dk>
568 * objects/network/radiocell.c: Patch from W. Borgert
569 <debacle@debian.org> for extra midpoint, flicker, extraneous
572 * objects/network/basestation.c: Patch for BB from W. Borgert
573 <debacle@debian.org>.
575 2006-03-23 Hans Breuer <hans@breuer.org>
577 * lib/widgets.c : use original fontname and fallback 'sans' to
578 render the font menu. Thus crashing (in Pango) is delayed until
579 the point where one chooses a font, which can't be rendered by
580 Pango. Fixes bug #335096 as far as Dia can.
582 2006-03-21 Lars Clausen <lars@raeder.dk>
584 * installer/win32/dia.nsi:
592 * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
594 2006-03-19 Hans Breuer <hans@breuer.org>
596 * app/display.c app/preferences.c : unset transient, still issues
597 with transient handling, see bug #332828
599 * app/makefile.msc lib/makefile.msc objects/makefile.msc
600 plug-ins/makefile.msc : removed stuff supposed to be used from
601 $(TOP)/glib/build/win32/make.msc
603 * plug-ins/xfig/xfig-import.c : make it compile with strict type
604 checking [these were real errors, freeing stack passed values instead
605 of the intended local variable] :
606 xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *'
607 differs in levels of indirection from 'struct _Point ** '
608 xfig-import.c(580) : warning C4024: 'g_array_free' : different types
609 for formal and actual parameter 1
611 * lib/libdia.def : export connection_adjust_for_autogap
613 * plug-ins/hpgl/hpgl.c : there is one floating point value in the
614 whole HPGL output - and it was locale dependent.
616 2006-03-12 Lars Clausen <lars@raeder.dk>
618 * installer/win32/dia.nsi:
626 * objects/UML/constraint.c (constraint_update_data):
627 * objects/UML/message.c (message_update_data):
628 * objects/UML/implements.c (implements_update_data):
629 * objects/SADT/annotation.c (annotation_update_data):
630 * objects/Jackson/phenomenon.c (message_update_data):
631 * objects/network/wanlink.c (wanlink_update_data):
632 * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
634 * objects/standard/line.c:
635 * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
636 functionality for connections.
638 2006-03-11 Lars Clausen <lars@raeder.dk>
640 * lib/diagdkrenderer.c (draw_object):
641 * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
642 in the non-interactive rendering.
645 * installer/rpm/dia.spec:
646 * installer/rpm/README:
647 Moving dia.spec to installer directory, where distribution
648 maintainers can keep their own copies.
651 * objects/UML/class.h:
652 * objects/UML/umloperation.c:
653 * objects/UML/class.c:
654 Preparations to fix bug #334037: Clean away the Lisp-like
655 constructs confusing the issue.
657 2006-03-10 Lars Clausen <lars@raeder.dk>
659 * lib/object.c: Don't compare floats with ==, even in sanity checks.
661 2006-03-09 Lars Clausen <lars@raeder.dk>
663 * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
664 reading, depth reading, and points reading. Thanks to
666 * COPYING: Added copyright info again.
668 2006-03-09 Steffen Macke <sdteffen@gmail.com>
670 * installer/win32/dia.nsi: don't uninstall old version; overwrite
673 2006-03-08 Steffen Macke <sdteffen@gmail.com>
675 * installer/Makefile.am:
676 * installer/win32/Makefile.am:
677 * installer/win32/locale/Makefile.am: Making sure that the installer
678 sources are included in the dia source distribution
679 * installer/win32/dia.nsi: Don't include makefiles in installer;
680 Add uninstaller link to start menu (bug #332650); added commandline
681 option GTKBIN to specify GTK installation directory (fixes bug #332595)
682 * installer/win32/dia-diagram.ico:
683 * installer/win32/dia-header.bmp:
684 * installer/win32/dia-install.ico:
685 * installer/win32/dia-intro.bmp:
686 * installer/win32/dia-uninstall.ico:
687 * installer/win32/dia.nsi:
688 * installer/win32/langmacros.nsh:
689 * installer/win32/locale/english.nsh:
690 * installer/win32/locale/german.nsh: Added files to build the win32
691 installer using NSIS (http://nsis.sourceforge.net)
693 2006-03-06 Lars Clausen <larsrc@raeder.dk>
701 * samples/TexChars.dia: Added sample of the escaped chars for TeX.
703 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
704 Changing escape of \, [, and ] to something that works. $ is
705 fine. Fixes parts of 333193.
707 2006-03-05 Lars Clausen <larsrc@raeder.dk>
709 * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
711 * lib/orth_conn.c (orthconn_update_data):
712 * app/diagram.c: Removing debug info.
714 * app/object_ops.c (object_find_connectpoint_display): Don't
717 2006-02-26 Hans Breuer <hans@breuer.org>
719 * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
720 * plug-ins/python/python.c : if set use it to find python-startup.py
721 (bug #332599, Torben H. Nielsen)
723 * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
724 my test code]. Really closes #332177, thanks Mateus César Gröess.
726 2006-02-26 Lars Clausen <lars@raeder.dk>
734 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
735 of element_width and element_height until constraints can be
736 properly checked. Bug #328200
738 * dia.spec (Requires): Updated GTK requirements.
740 2006-02-25 Lars Clausen <lars@raeder.dk>
742 * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
743 other dynamic menus have proper translation.
745 * lib/widgets.c (dia_dynamic_menu_create_string_item):
746 * app/interface.c (cmp_names):
747 * app/sheets.c (sheets_optionmenu_create):
748 * lib/sheet.c (load_register_sheet): Using C locale for sheet
749 names internally, translating on display instead. Also sorting
750 by gettext order explicitly. Bug #328570.
752 2006-02-25 Hans Breuer <hans@breuer.org>
754 * app/interface.c(get_sheet_by_name) : be more tolerant about
755 localization of the sheet name. ( Steffen Macke, #332070 )
757 * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
758 in any case. In contrast to X11/*nix displays are not optional on
759 windoze. And we need some help of gtk to render text to bitmaps.
760 ( Rob McDonald, bug #332177 )
762 2006-02-21 Lars Clausen <lars@raeder.dk>
768 * config.h.win32: Update to -pre2.
770 * lib/beziershape.c (add_handles): Fixing CP pos calculation for
771 adding new CP's. Fixes bug #331557.
773 2006-02-20 Lars Clausen <lars@raeder.dk>
775 * lib/diarenderer.c (find_center_point): Better handling of some
777 (draw_arc_with_arrows): Draw line in all cases. Doesn't handle
778 the truly degenerate cases well enough yet, but at least doesn't
779 break on common cases. Probably need to do something special for
780 arcs with start and end point the same. Improves but does not
781 entirely fix bug #331372.
783 2006-02-20 Hans Breuer <hans@breuer.org>
785 * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
787 2006-02-18 Hans Breuer <hans@breuer.org>
789 * plug-ins/metapost/render_metapost.c : text position gives the
790 baseline neither top nor bottom. ( Rob McDonald, #331491 )
792 * plug-ins/wmf/wmf.cpp : finally respecting the print margins
793 ( Rob McDonald, #331371 )
794 * plug-ins/wmf/wmf_gdi.h : some more constants not useful
795 without a GDI printer (driver)
797 2006-02-17 Hans Breuer <hans@breuer.org>
799 * plug-ins/metapost/render_metapost.c(draw_string) : dont query
800 the font for it's height but use the 'height' parameter passed
801 in. Close enough to the desired size - and independent of zoom -
802 to close bug #331489 (Rob McDonald)
804 2006-02-12 Lars Clausen <lars@raeder.dk>
811 * config.h.win32: Updates for version 0.95-pre1.
813 2006-02-12 Hans Breuer <hans@breuer.org>
815 * app/makefile.msc : build three components dia.exe (console
816 application), diaw.exe (windows application) and dia-app.dll
817 containing almost all of Dia's application shared between
819 * app/main.c app/winmain.c app/app_procs.c app/dia.def : some
820 refactoring to accomplish the new dependency layout
821 * objects/makefile.msc plug-ins/python/makefile.msc : need to
822 link dia-app.lib now - if at all depending on app/*
824 2006-02-11 Hans Breuer <hans@breuer.org>
826 * makefile.msc : nmake -f makefile.msc just compiles now
827 * app/makefile.msc lib/makefile.msc : make not using FT2
828 on win32 the default (works around bug #150813 by diabaling it)
829 * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
830 $(CC) command line. It isn't understood by newer versions of cl.
832 * app/authors.h : reflect the recent maintainers change
834 * app/display.c app/load_save.c : removed debug spew
836 * app/winmain.c : improved redirection
838 2006-02-05 Hans Breuer <hans@breuer.org>
840 * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead
841 since 0.94. Fix somne left-overs, also properly disable the duplicate
844 * po/POTFILES.in : added objects/network/wanlink.c
846 2006-02-05 Hans Breuer <hans@breuer.org>
848 * lib/dialibartrenderer.c(renderer_finalize) : dont unref
849 parent_instance.font here. It will be done in DiaRenderer::finalize()
850 Just another reason for crashing at diagram close with libart
851 renderer involved ...
853 2006-02-04 Hans Breuer <hans@breuer.org>
855 * objects/standard/image.c : added mainpoint, patch from
856 Torben H. Nielsen fixing bug #329603
858 * app/layer_widget.c : avoid writing to Layer::connectable for a
859 diagram possibly already gone. Fixes bug #329096.
861 * lib/persitence.c(persistence_load) : dont leak filename
862 in case of not existing file
864 Code review via regex "[^_l>p](malloc|free|realloc)\("
865 * objects/fs/function.c : what's g_strdup() must be g_free()'d
866 * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
867 * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
869 * app/filedlg.c(file_save_as_response_callback) : before destroying
870 the save as dialog we need to drop the dialogs diagram reference.
871 Fixes behaviour described in bug #123225#c7
873 * app/interface.c(get_sheet_names) : need to sort sheets by their
874 display name to really fix bug #160101.
876 * objects/UML/association.c : dont leak the role_name calculated
877 with visibility attribute, use g_strdup_printf() instead of strcat().
879 * configure.in : fix typo in error message
881 * lib/object.c : remove duplicated prototype
882 * lib/element.c : element_update_connections_rectangle() assumes nine
883 connection points, i.e. requires 'mainpoint'. g_assert() for this.
885 2006-02-03 Hans Breuer <hans@breuer.org>
887 * objects/network/bus.c : allow to tint it. Patch from
888 Torben H. Nielsen, closes bug #328580.
889 * objects/network/wanlink.c : allow to tint this as well.
891 2006-01-29 Hans Breuer <hans@breuer.org>
893 * app/render_libart.c(draw_line) : make setting the pixel side-effect
894 free; account for it in now (less) magic increments. Fixes bug #312147
896 2006-01-28 Hans Breuer <hans@breuer.org>
898 * po/checktrans.py : make it work with recent pyxml (unknown url type)
899 * po/AADL.sheet.in : remove duplicated _description
900 => translation report works again
902 * app/display.c : revert back to "_Discard Changes" to avoid
903 accelerator clash. Also gtk_button_new_with_mnemonic() to
904 'expand' the accelerator.
906 * lib/dia_svg.c(dia_svg_style_init) : need to initialize
907 linecap, linejoin, linestyle to avoid invalid settings.
908 (Nguyen Thai Ngoc Duy, bug #328945)
909 * lib/diagdkrenderer.c : add a place fro breakpoint to
912 * lib/diarenderer.c(setfont) : if we get passed in the
913 same font it must be ref'd before unref.
915 * lib/text.c(set_string) : don't eat the trailing new-line
918 * app/app_procs.c app/display.c app/filedlg.c
919 attempt to provide more HIG compliant dialogs. Patch from
920 Nguyen Thai Ngoc Duy, part of bug #138183
922 * app/recent_files.c(recent_file_history_clear_menu) : instead of
923 messing with GtkMenuShell::children and gtk_widget_destroy() just
924 use gtk_container_remove. Avoids memory corruption causing the
925 most 'random' crashes recently.
927 * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL
928 cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the
929 TextAttributes - not some subset. Fixes bug #327701
930 * objects/UML/implements.c objects/UML/generalization.c
931 objects/UML/constraint.c objects/UML/object.c
932 objects/UML/large_package.c objects/UML/realizes.c : same here.
933 * objects/UML/dependency.c : same here. Also draw the "Name" with the
934 given color, not only the Stereotype.
935 * objects/UML/class.c : same here. But we also need to restore
936 explicit restore "text_color" for the load case.
938 2006-01-27 Hans Breuer <hans@breuer.org>
940 * configure.in : error out if GLib/GTK+ version is lower than required
942 * app/filedlg.c lib/widgets.c : more default responses. Patch
943 from Nguyen Thai Ngoc Duy, part of bug #138183
945 * NEWS : Main point feature correction. The line is supposed to
946 start at the border of the object not the bounding box.
948 * app/commands.c : respect difference between documenters and
949 translators and show both in about dialog. Closes bug #328711.
951 * app/interface.c : instead of g_warning for missing shape icon
952 but use message_warning and show the 'missing' icon
954 * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
955 not match pango_win32_get_context(). Use gdk_pango_get_context ().
956 Also removed my special win32-modified-pango code for draw_string()
957 without the help of gdk.
959 * Makefile.am : include MAINTAINERS file in tarball
961 * lib/conectionpoint.h : removed double include of "geometry.h"
963 2006-01-22 Hans Breuer <hans@breuer.org>
965 * app/splash.c app/commands.c : dont share the logo and finally leak
966 it. Instead both place load and unref the logo themself.
967 Also unbreak GNOME case.
969 * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
970 or GNOME specific one. 120 lines less code and more standard.
971 * configure.in : require GTK+ >= 2.6
973 * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
974 make GtkTypeInfo static const as usual elsewhere
976 * app/recent_files.c : it almost certainly is an error to ignore
977 the return value of g_list_remove_link()
979 * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
980 lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
981 lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
982 lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
983 objects/UML/uml.h : documentation fixes
985 * lib/object.h lib/diagramdata.h : avoid circular inclusion
986 * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
987 lib/properties.h lib/sheet.h lib/diamenu.h
988 : dont include "object.h", "diatypes.h" is enough.
989 Rule of thumb: only headers declaring an inheritant of DiaObject
990 should include "object.h"
991 * lib/diarenderer.h : include "font.h" not strictly needed by
992 this header, but needed in almost any plug-in/
993 * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
994 app/export_png.c app/interface.c app/load_save.c app/sheets.c
995 app/sheets_dialog.c app/sheets_dialog_callbacks.c
996 lib/diagdkrenderer.c lib/object.c lib/propobject.c
997 lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
998 plug-ins/svg/render_svg.c
999 : some .c files now need to include "object.h" or <gtk/gtk.h>
1000 or e.g. "intl.h" direct, formerly dargged in indirectly
1001 * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
1003 2006-01-21 Hans Breuer <hans@breuer.org>
1005 * lib/connection.c lib/connection.h lib/connectionpoint.h
1006 lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
1007 lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
1008 lib/object.c lib/object.h : documentation tweaking
1010 * objects/UML/class_dialog.c(attributes_create_page,
1011 operations_create_page) : dont connect
1012 to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
1013 g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
1014 (This was a leftover of introducing the GtkTextView instead of GtkEntry)
1016 * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
1017 Introduce 'comment_tagging' switch which allows to hide the rendering
1018 {documentation = } Maybe a choice between ugliness and non-standard.
1019 Fixes bug #326214. (Unrelated: started to adapt casing of variables
1020 to Dia's common coding style)
1022 * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
1023 lib/proplist.c : fixed pdtpp_default()
1024 lib/propobject.c : correctly reflect is_default
1025 * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
1026 PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
1028 * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
1029 widget in defaults dialog
1031 * app/display.c(initialize_display_widgets) : also append the Input
1032 Methods menu to the diagram menubar. Now fixes bug #327862.
1034 * config.h.win32 : #undef LOCALEDIR
1035 * app/app_procs.c : runtime calculation of localedir. It now is
1036 $(executable_dir)/../locale. Should help fix bug #309763
1038 * sheets/AADL.sheet.in : remove left over xml:lang tag.
1039 ( Nguyen Thai Ngoc Duy, bug #327519)
1041 * lib/dialibartrenderer.c : make text rendering work without
1042 PangoFT2 and PangoWin32
1045 2006-01-18 Lars Clausen <lars@raeder.dk>
1047 * objects/UML/class.h: Enabling UML class mainpoint after failure
1050 * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
1053 2006-01-14 Hans Breuer <hans@breuer.org>
1055 * app/paginate_psprint.c : ensure we are not producing pages for
1056 epsilon. Floating imprecision is fun. Fixes bug #133856.
1057 * app/paginate_gdiprint.cpp : same here.
1059 * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
1060 found the nice samples from bug #156171 it was quite simple to
1061 confirm that the y value need indeed to be inverted. Fixes bug #304974.
1062 Also special case strings starting with \tex - i.e. dont escape them -
1063 to keep the use-case of direct tex input.
1065 * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
1068 2006-01-14 Hans Breuer <hans@breuer.org>
1070 * samples/Self/umlclass.dia : (new file) documenting part of the
1071 object relations of UMLClass. Also good for testing connections.
1073 * lib/debug.c : replace wrong call to vprintf() - missing file
1074 descriptor - with the more appropriate g_vprintf(). Thus
1075 dia_assert_true() does not smash the stack anymore on win32.
1077 * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
1078 objects/UML/umlattribute.c objects/UML/umloperation.c :
1079 reverted the memory managment of UMLAttribute/UMLOperation's
1080 ConnectionPoint(s) back to how it was up until 0.94. This finally
1081 makes the UMLClass work again including undo/redo support. Fixes
1082 bug #314153 and en passant bug #326453.
1084 2005-01-12 Lars Clausen <lars@raeder.dk>
1086 * objects/UML/umlattribute.c:
1087 * objects/UML/class_dialog.c: Better way of handling
1088 connectionpoints: Don't copy them, just reference them. Finally
1089 fixes bug #314153 (not quite the pi bug:)
1091 * app/menus.c (display_menu_items):
1092 * app/filedlg.c (file_open_response_callback):
1093 * app/display.[ch] (copy_display):
1094 * app/commands.[ch] (view_clone_view_callback):
1095 Added functionality to clone display. Preparation for storing
1096 display info in diagram files (not happening this version, though).
1098 * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
1099 users pointing at dia-installer.
1101 2006-01-08 Hans Breuer <hans@breuer.org>
1103 * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
1104 (Narcelio Filho, #326075)
1106 * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
1107 plug-ins should not depend on app/* and it even breaks 'make distcheck'.
1108 * objects/AADL/Makefile.am : added edit_port_declaration.h
1109 * app/Makefile.am : added diaconv.c to EXTRA_DIST
1110 => 'make distcheck' passes again.
1112 * configure.in : use some more of gcc's useful warnings
1114 * lib/geometry.h : removed unused functions just producing warnings
1115 [sometimes it's good to read compiler warnings]
1116 * plug-ins/cairo/diacairo.c : somehow a function call got lost
1117 (left-hand operand of comma expression has no effect)
1118 * plug-ins/metapost/render_metapost.c : dia_message_filename()
1119 wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
1120 from incompatible pointer type)
1123 2006-01-07 Hans Breuer <hans@breuer.org>
1125 * objects/custom/shape_info.c(parse_path) : handle the case of
1126 invalid path data more gracefully, i.e. show a warning instead
1127 of crashing later on.
1128 * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
1130 * configure.in sheets/Makefile.am shapes/Gane_and_Sarson
1131 shapes/Makefile.am : added Gane & Sarson shapes
1132 (Nick Moore, #319544)
1134 * objects/makefile.msc : building AADL on win32
1136 2006-01-06 Hans Breuer <hans@breuer.org>
1138 * objects/AADL/aadl.h : avoid redefinition warnings by #undef
1139 min, #undef max before local definitions
1140 * objects/AADL/aadl.h : more prototypes
1141 * objects/AADL/aadltext.c : for C89 declarations must be at the
1142 beginning of a block. And Dia *must* be compileable with C89.
1144 * objects/AADL/** objects/Makefile.am sheets/Makefile.am
1145 configure.in : AADL plug-in from Pierre Duquesne. See
1146 http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
1147 for more information
1148 * sheets/AADL.sheet.in : from the above patch but modified
1149 to become translatable like the other sheet files. That is: the
1150 french translation got temporary removed cause it does not belong here.
1152 * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
1154 * app/app_procs.c app/diaconv.c : get rid of run-on sentences
1155 (Adam Weinberger, bug #325567)
1157 * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
1158 and change some other to use <control><alt>. They collide with GTK's
1159 Unicode input feature. Fixes bug #320495. For rationale see:
1160 http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
1162 * app/display.c : pay attention to g_warnings() [should always run
1163 with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
1164 actually is a menu bar.
1166 * lib/diarenderer.c : the righthand calculation accidentially broke
1167 some arcs direction. Should be fixed again.
1169 2006-01-02 Hans Breuer <hans@breuer.org>
1171 * app/display.c(new_display) : also append the Input Methods menu to
1172 the diagram menubar. Fixes bug #308576.
1174 * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
1175 freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
1177 * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to
1178 their localized name (with g_utf8_collate). Thus not relying on the
1179 capabilities of the C libraries strcmp(). Fixes bug #160101.
1181 * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
1182 point and width from the (arrow-)corrected new points. Otherwise a
1183 whole new wrong arc may emerge. Fixes bug #312641.
1185 2006-01-01 Hans Breuer <hans@breuer.org>
1187 * objects/custom/custom_object.c(cutom_update_data) : depending
1188 on the handle moving let one scale (x or y) take precedence.
1189 (bug #308515, Eric Deplagne)
1191 * objects/UML/class.c : only perform the attributes check with
1192 attributes visible to ged rid of false warnings
1193 * objects/UML/class_dialog.c : need to setup Connection::object
1194 after uml_attribute_new() and uml_operation_new(), again less
1195 warnings but bug #314153 still not fixed.
1199 * plug-ins/python/diasvg.py : more correct svg by also writing
1200 xmlns="http://www.w3.org/200/svg"
1202 * plug-ins/python/dot.py : skip unconnected connection lines
1203 * plug-ins/python/Makefile.am : added dot.py
1205 * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
1208 2005-12-31 Hans Breuer <hans@breuer.org>
1210 * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the
1211 caching of UMLClass::attributes_strings, operations_strings,
1213 It was broken by the recent code restructuring in bug #303744 and
1214 - if necessary at all - nowadays it should be done on the
1215 UMLAttribute, UMLOperation, UMLFormalParameter level anyway.
1216 A small, much needed simplification of the code.
1218 2005-12-30 Hans Breuer <hans@breuer.org>
1220 * objects/UML/class.c : Patch from Dave Klotzbach
1221 fixes crash bug #325151
1223 * app/app_procs.c : add command line parameter --nonew to allow
1224 avoiding the empty start-up diagram
1225 Also give a hint on where the object-libs were missing.
1226 Finally work around a misbehaviour upstreamm :
1227 g_option_context_parse() returning FALSE but not setting error.
1229 * app/commands.c app/app_diagram_tree.c app/interface.c :
1230 Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
1231 http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
1233 * lib/widgets.c : image file selection finally ported to the new
1234 gtk file chooser. Fixes bug #309383
1236 2005-12-28 Hans Breuer <hans@breuer.org>
1238 * app/commands.c(file_new_callback) : convert to filename encoding before
1239 passing to new_diagram(), fixes bug #322400
1241 * app/interface.c(create_display_shell) : don't clip width on screen
1242 height - now commited. Also lazy creation of tooltips.
1244 * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1246 2005-12-27 Hans Breuer <hans@breuer.org>
1248 * app/diapsft2renderer.c(draw_bezier_outline) : only call
1249 FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1250 Prefers no text output over crashing for bug #144212
1252 * app/interface.c : removed superfluous call to dia_canvas_set_size().
1253 Suggested by Roland Stigge, fixes bug #148149.
1255 * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1256 DXF. It is not supported at all. Fixes bug #322101
1258 * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1259 define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1262 2005-12-27 Hans Breuer <hans@breuer.org>
1264 * app/navigation.c : protect on_da_button_release_event() against being
1265 called twice. Also only popdown the navigation window after the first
1266 draw (reusing nav->is_first_expose). Fixes bug #151696
1268 * app/interface.c(create_display_shell): don't clip width on screen height,
1271 * lib/plug-ins.c : fixed typo in comment
1273 * lib/libdia.def : updated externals
1274 * lib/makefile.msc : build debug.obj
1276 * plug-ins/makefile.msc : building pgf in the right alphabetical order
1277 * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1279 2005-12-08 Lars Clausen <lars@raeder.dk>
1282 * plug-ins/pgf/pgf.c:
1283 * plug-ins/pgf/render_pgf.[ch]:
1284 * plug-ins/pgf/Makefile.am:
1285 * plug-ins/Makefile.msc:
1286 * plug-ins/Makefile.am (SUBDIRS):
1287 * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1288 support for PGF output for including in (La)TeX documents that
1289 allows PDF generation.
1291 * samples/render-test.dia: Added samples of text in different
1292 sizes, standard fonts and styles with size markers.
1294 2005-12-04 Lars Clausen <lars@raeder.dk>
1296 * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1297 (BUILT_SOURCES): Added marshal files.
1299 2005-12-03 Lars Clausen <lars@raeder.dk>
1301 * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1302 about $(srcdir) and confusing everybody.
1305 * lib/diagramdata.c:
1306 * lib/diagramdata.h:
1307 * lib/diamarshal.list:
1308 * plug-ins/python/pydia-diagram.c:
1309 * plug-ins/python/pydia-diagramdata.c:
1310 * plug-ins/python/python-startup.py: Patch from David Johansson
1311 <david.lgj@gmail.com>: Add signals emitted when objects are
1312 inserted or removed.
1314 2005-11-13 Lars Clausen <lars@raeder.dk>
1316 * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1317 (small) buffer overflow by using g_strdup_printf instead of sprintf.
1319 2005-11-09 Lars Clausen <lars@raeder.dk>
1322 * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1323 when reaching the statement is a bug. Using g_critical and exit() for
1324 fatally wrong inputs.
1326 * objects/UML/uml.c:
1327 * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1328 Klotzbach): Fixes template rendering and converts home-brew inline
1329 doc format to javadoc. Doesn't yet fix bug #320934, but turns it
1332 2005-11-07 Lars Clausen <lars@raeder.dk>
1334 * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1335 box' since several objects have problems of using bounding box in
1336 different ways (see bug #300055). For now, enclosing box ==
1337 bounding box, but over time objects will learn to expand the
1338 bounding box to include things only rendered interactively.
1340 * app/modify_tool.c (modify_motion): Make sure highlight is reset
1341 when moving between overlapping objects.
1343 * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1344 diagram after toggling to make red X's come and go.
1346 * lib/font.c: #ifdef'd out layout cache for bug #307320. Define
1347 it if you need faster rendering and aren't afraid of crashbugs:)
1349 * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1350 (dave Klotzbach): Fixes null pointer problems in free function.
1352 * objects/UML/class.c
1353 * objects/UML/class.h
1354 * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1355 (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1356 and allow multi-line comments. Ugly as hell, but standard. Time
1357 for a 'Strict UML' option? Fixes bug #303744.
1359 * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1360 entry, exit and do descriptions to a state object. Fixes bug #65434.
1362 2005-11-03 Lars Clausen <lars@raeder.dk>
1367 * lib/bezier_conn.c:
1368 * lib/boundingbox.c:
1371 * lib/connectionpoint.c:
1376 * lib/diaarrowchooser.c:
1378 * lib/diagdkrenderer.c:
1379 * lib/diagramdata.c:
1384 Added documentation java-doc style. Also a few trivial cleanups.
1386 2005-10-13 Lars Clausen <lars@raeder.dk>
1388 * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1391 * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1396 * objects/UML/class.[ch]:
1397 * objects/UML/uml.h:
1398 * objects/UML/umlattribute.c:
1399 * objects/UML/umloperation.c:
1400 * objects/UML/class_dialog.c:
1401 Rework of the UML class attribute/operation handling. Now doesn't
1402 copy connection points into the dialog data, but only the "flat"
1403 data. As part of debugging made sanity check functionality.
1404 Currently still dies when deleting an attribute/operation that has
1407 2005-10-09 Hans Breuer <hans@breuer.org>
1409 * lib/properties.h : prefer american spelling of colo(u)r for
1410 user visible strings - i.e. to be translated ones.
1411 * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1413 * po/*.po : updated (by 'make distcheck')
1415 2005-10-09 Hans Breuer <hans@breuer.org>
1417 * app/display.c : allow !"toolbox on top" without restart.
1418 (Chris Hellberg, bug #310702)
1420 2005-10-09 Hans Breuer <hans@breuer.org>
1422 * lib/arrows.c : patch from Radek Krahl fixing the blanking
1423 of two arrowheads, bug #310157
1425 2005-10-08 Hans Breuer <hans@breuer.org>
1427 * plug-ins/python/group_props.py : show a descriptive text instead of an
1428 empty table if there are no common properties to change. Fixes bug #314432
1430 2005-10-08 Hans Breuer <hans@breuer.org>
1432 * objects/UML/transition.c : inverted default direction of
1433 the direction. Patch from Peter Allin, fixes bug #318049
1434 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1436 2005-10-08 Hans Breuer <hans@breuer.org>
1438 * app/Makefile.am objects/standard/Makefile.am : match the
1439 referenced icons to the needed. Make 'make distcheck' pass
1440 and thus fixes bug #312152
1442 * objects/standard/textobj.c : no C++ comments please!
1444 2005-10-08 Hans Breuer <hans@breuer.org>
1446 * objects/standard/textobj.c : preserve the position set on create
1447 [makes e.g. text positioning of diasvg_import.py work]
1449 * plug-ins/python/diasvg_import.py : restrict what eval() can do
1450 with strings from svg files. Fixes the arbitrary code execution from
1453 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1454 magnetism. At least they are distinguishable from grid snapping.
1455 * app/makefile.msc app/Makefile.am : use them
1457 * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1458 I also can't reproduce bug #309044 anymore (on win32).
1460 2005-10-01 Lars Clausen <lars@raeder.dk>
1462 * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1464 * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1465 pass FILE * as gchar *.
1467 * lib/debug.[ch] (dia_assert_true): Debugging aids.
1469 2005-09-29 Lars Clausen <lars@raeder.dk>
1471 * objects/UML/class.h: Enabling mainpoints for UML.
1473 * objects/UML/class.c (umlclass_set_props): Make sure to always
1474 realloc connection point list.
1476 2005-09-26 Ahmad Riza H Nst <rizahnst@id.gnome.org>
1478 * configure.in: Added "id" in ALL_LINGUAS line.
1480 2005-09-14 Lars Clausen <lars@raeder.dk>
1482 * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1483 loading. Fixes bug #315427.
1485 2005-09-11 Hans Breuer <hans@breuer.org>
1487 * objects/standard/arc.c objects/standard/textobj.c : fix
1488 C99isms, Dia is supposed to compile with C89 like msvc
1490 * app/makefile.msc : use the wrong center-point-magnetism
1491 icons for the win32 build, too.
1493 * plug-ins/python/pydia-error.c : dont crash on C escape
1494 sequences in the error string
1495 * plug-ins/python/pydia-render.c : dont free filename twice
1497 * plug-ins/python/dot.py : start of an exporter to DOT language
1498 which can be processed by www.graphviz.org tools
1500 2005-09-05 Iñaki Larrañaga <dooteo@euskalgnu.org>
1502 * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1504 2005-09-04 Iñaki Larrañaga <dooteo@euskalgnu.org>
1506 * configure.in: Added "eu" to ALL_LINGUAS.
1508 2005-09-04 Lars Clausen <lars@raeder.dk>
1510 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1511 dimensions frame to make ext_attributes work again.
1513 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1514 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1517 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1518 <dooms info ucl ac be>: Add vertical alignment for standard text
1519 object. This should really be moved into lib/text.c and apply to
1522 2005-09-03 Lars Clausen <lars@raeder.dk>
1524 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1525 mainpoint when snap-to-objects is not on.
1527 * app/Makefile.am (ICON_PNG_PAIRS):
1528 Fake icons for snap-to-objects.
1530 * app/commands.[ch]:
1531 * app/menus.c (menus_get_image_menubar):
1533 * app/interface.c (create_display_shell):
1534 * app/create_object.c (create_object_button_release):
1535 * app/disp_callbacks.c (ddisplay_drop_object):
1536 * app/object_ops.[ch]:
1537 * app/connectionpoint_ops.c (ddisplay_connect_selected):
1538 * app/modify_tool.c (modify_button_release):
1540 Togglable snap-to-objects, also doesn't snap when moving entire
1541 object. This should be more reasonable in practical use, and can
1542 be turned off when you want to place your arrows more precisely.
1544 2005-08-06 Hans Breuer <hans@breuer.org>
1546 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1547 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1548 becomes even more ugly when the user has choosen *not* to build
1549 the diacairo plug-in. If noone can come up with a very convincing
1550 reason why it has to be done this way I'll probably go back to
1551 my original dont-build-at-all approach when this breaks the
1554 2005-08-02 Lars Clausen <lars@raeder.dk>
1556 * objects/standard/arc.c: Patch from Grégoire Dooms
1557 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1558 implementation. "There is still a small bug when the non
1559 connected end of the arc is very close to the border of the
1560 connected object. I think this is due to rounding errors in the
1561 code for SHIFT-move handle which is reused to trim the arc in
1562 autogap. Also it is not yet possible to have a startgap and an
1563 endgap from/to the same central CP."
1565 2005-07-31 Hans Breuer <hans@breuer.org>
1567 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
1568 longer for distributions official packages - depend
1569 on cairo 0.6.0 - fixes bug #307144
1571 2005-07-20 Hans Breuer <hans@breuer.org>
1573 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1574 which must match PropDescription, that is make it at least compile.
1576 2005-07-19 Hans Breuer <hans@breuer.org>
1578 * app/diagram.c(new_diagram) : what comes from g_object_new()
1579 MUST NOT be g_free()'d
1581 * lib/message.h : added dia_message_filename() here as well.
1582 Mainly to not touch all files using. They *all* where using
1583 lib/message.h already! Maybe the implemantation should be moved
1584 to message.c as well cause the function has *nothing* to do
1585 with dynamic filename resolving. It is a wrapper around
1586 g_display_filename() mostly (only?) used for messages ...
1587 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1589 2005-07-18 Lars Clausen <larsrc@raeder.dk>
1591 * objects/EML/instantiation.c (instantiation_load):
1592 * objects/EML/interaction-ortho.c (interaction_ortho_type)
1593 * objects/ER/participation.c (participation_type):
1594 * objects/FS/flow-ortho.c (orthflow_type):
1595 * objects/GRAFCET/vector.c (arc_load):
1596 * objects/standard/zigzagline.c (zigzagline_type):
1597 * objects/UML/transition.c (transition_load):
1598 * objects/UML/realizes.c (realizes_load):
1599 * objects/UML/dependency.c (dependency_load):
1600 * objects/UML/generalization.c (generalization_type):
1601 * objects/UML/association.c (association_type):
1602 * objects/UML/component_feature.c (compfeat_load):
1603 Make autorouting deafult on except for old diagrams.
1605 * plug-ins/cairo/diacairo.c (export_data):
1606 * plug-ins/cgm/cgm.c (export_cgm):
1607 * plug-ins/dxf/dxf-export.c (export_dxf):
1608 * plug-ins/dxf/dxf-import.c:
1609 * plug-ins/hpgl/hpgl.c (export_data):
1610 * plug-ins/metapost/render_metapost.c:
1611 * plug-ins/pixbuf/pixbuf.c:
1612 * plug-ins/pstricks/render_pstricks.c:
1613 * plug-ins/python/pydia-render.c:
1614 * plug-ins/shape/shape-export.c:
1615 * plug-ins/svg/render_svg.c:
1616 * plug-ins/svg/svg-import.c:
1617 * plug-ins/wpg/wpg.c
1618 * plug-ins/xfig/xfig-export.c:
1619 * plug-ins/xfig/xfig-import.c:
1620 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1621 UTF-8 in message boxes.
1623 2005-07-18 Lars Clausen <lars@raeder.dk>
1625 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1626 to have their dimensions specified in properties. Still needs to
1627 have proper update when setting properties cause constraint changes.
1629 * app/preferences.c (update_floating_toolbox): Allow
1630 toolbox_on_top setting to happen at once.
1636 * app/sheets_dialog_callbacks.c
1642 * lib/object_defaults.c:
1643 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1644 for displaying in messages - better than crashing! Mostly fixes
1647 * objects/UML/class.c: Save normal_font_height under the same
1648 name it gets loaded as. Fixes bug #310515.
1650 * doc/en/authors.xml
1651 * doc/en/usage-customization.xml
1652 * doc/en/usage-objects-special.xml
1653 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
1656 2005-07-17 Lars Clausen <lars@raeder.dk>
1658 * doc/en/usage-customization.xml:
1659 * doc/en/usage-objects.xml:
1660 * doc/en/authors.xml:
1661 * doc/en/usage-objects-special.xml: Applied patch from
1662 stigge@antcom.de (Roland Stigge): Diverse typos and
1663 misencodings. Fixes bug #308315.
1665 * objects/UML/class.c (umlclass_save): Patch from
1666 i.pilcher@comcast.net: Save normal font height under correct name
1667 to reload it. Fixes bug #310515.
1669 2005-07-10 Hans Breuer <hans@breuer.org>
1671 * app/connectionpoint_ops.c app/object_ops.c : make the
1672 'whole object' connection point only center point again.
1673 That is: it is visible and far less magnetic. Only the
1674 line gap handling make it special. For me this probably
1677 * lib/neworth_conn.c : apply the same as for bug #173031.
1678 This OrthConn fork got broken as well. Fixes bug #309381
1680 * app/makefile.msc objects/makefile.msc : adapt to icon changes
1682 * app/interface.c app/diagram_tree.c : a char** is still not
1683 a char* and the win32 build is configured to error on
1684 sloppiness like this
1686 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1688 2005-07-10 Hans Breuer <hans@breuer.org>
1691 Take part in the toolbox icon redesign context! If you want to
1692 make them really prettier, please keep the following in mind :
1693 - the size *must* be 22x22 otherwise button reflow will get broken.
1694 Or you need to change about 800 icons at once.
1695 - one important part of Dia are control points, so maybe the icons
1696 should reflect that. (IMO gathering random icons form other
1698 - the icons should at least look consistent in their group
1701 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1702 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1704 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1705 * objects/standard/pixmap/* : added arc.png beziergon.png
1706 bezierline.png box.png ellipse.png image.png line.png polygon.png
1707 polyline.png text.png zigzagline.png
1708 * objects/standard/Makefile.am : use the new icon set including
1711 * app/interface.c : remove the "will probably crash" debug spew
1713 2005-07-09 Lars Clausen <lars@raeder.dk>
1715 * objects/standard/pixmaps/*.png:
1716 * objects/standard/Makefile.am:
1717 * objects/standard/*.c:
1719 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1720 new icons. [Slightly belated entry]
1722 2005-07-03 Hans Breuer <hans@breuer.org>
1724 * app/diagram_tree.c : dont leak display name
1725 * app/app_procs.c : dont leak GOptionContext
1726 * app/prop_widgets.c(frame_beginprop_get_widget) :
1727 Gtk api still not eating strings ...
1729 * objects/UML/class.c() : don't load properties once more
1730 which are already loaded by StdProps. In case of strings
1731 (data_string) it has even produced leaks.
1733 * app/paginate_psprint.c app/diagram.[hc] : the last
1734 of the related dialogs is gone and with it the
1735 misconception of destroying widgets from
1737 * app/display.c : ensure the diagram is still threre
1738 when we remove the display from it's list
1740 2005-07-01 Hans Breuer <hans@breuer.org>
1742 * lib/widgets.c(dia_color_selector_more_callback): dont
1743 free old_color twice
1745 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1746 option. Thus linestyles can be preserved on export - at
1747 least on NT based systems.
1749 * NEWS : clarify the wmf outside of windows issue
1751 * app/modify_too.c : fix C99ism
1753 * objects/standard/arc.c : debug spew optional at compile time
1755 2005-06-26 Hans Breuer <hans@breuer.org>
1757 [ Cyrille would call it: warningectomy :-]
1759 * lib/font.c app/create_object.c : `...' might be used uninitialized
1760 in this function. Yes they were.
1761 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
1762 uninitialized in this function. Yes it was with textedit_activate_object()
1763 Also some static correctness.
1764 * lib/diarenderer.c:678: warning: no previous prototype for
1765 `calculate_min_radius'. Made static.
1766 * lib/dia_svg.c : ptr is a gchar *
1767 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1768 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1769 * app/app_procs.c : confirm warning and make dump_dependencies() static
1770 * app/autosave.c : #if 0'd old stuff
1771 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1773 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1774 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1775 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1776 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1777 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1778 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
1779 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1780 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
1781 removed unused variables and functions
1782 * objects/UML/umlattribute.c objects/UML/umloperation.c
1783 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
1784 neither 'missing braces around initializer' nor 'initialization from
1785 incompatible pointer type'
1786 * objects/UML/class_dialog.c : more static
1787 * app/interface.c : static and almost const correctness and some
1788 less unitialized variables.
1789 * app/diapsft2renderer.c : use (int) casts like the original
1790 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1791 * app/render_gdk.c: stop assignment from incompatible pointer type,
1792 make member functions match the prototype.
1793 * app/render_libart.c : Dito. Also stop caching the copy_gc in
1794 a static variable. Otherwise it finally leaks and also may cause
1795 BadMatch with changing windows
1796 => warning count down from about 250 to about 60, one or two hand full
1799 2005-06-26 Hans Breuer <hans@breuer.org>
1801 * lib/libdia.def : added dia_font_get_description, missing
1804 * app/app_procs.c : use png_get_header_ver(NULL), that is:
1805 prefer function call over exported variable to get the
1806 runtime version of libpng
1808 2005-06-19 Hans Breuer <hans@breuer.org>
1810 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1811 as suggested by Roland Stigge, bug #308310
1813 2005-06-19 Hans Breuer <hans@breuer.org>
1815 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
1818 2005-06-18 Hans Breuer <hans@breuer.org>
1820 * NEWS : mention new file dialog
1822 [plugged remaining leaks from bug #142669]
1823 * lib/prop_attr.c(fontprop_free) : not only unref the font
1824 but free the property itself, too.
1825 * app/diagram_tree.c(create_diagram_children): remember the
1826 original list start to not only free the last element
1828 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
1829 but not used. Here it meant a potentially huge leak.
1831 2005-06-18 Hans Breuer <hans@breuer.org>
1833 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
1834 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
1835 for others, too. ( Roland Stigge, bug #144527 )
1837 2005-06-18 Hans Breuer <hans@breuer.org>
1839 * plug-ins/wmf/Makefile.am : prevent installation. It
1840 doesn't do anything useful on *NIX and even seems to be
1841 linked wrong by gcc (or me;). Fixes bug #172830
1843 2005-06-18 Hans Breuer <hans@breuer.org>
1845 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1846 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1847 in function declarations. 'f();' for a function without parameters is
1848 a C++ism. Though I can't get any of my compilers to warn about it.
1849 Finally fixes bug #142663.
1851 2005-06-18 Hans Breuer <hans@breuer.org>
1853 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1854 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1855 in function declarations. 'f();' for a function without parameters is
1856 a C++ism. Though I can't get any of my compilers to warn about it.
1857 Finally fixes the rest of bug #142663.
1859 2005-06-18 Hans Breuer <hans@breuer.org>
1861 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
1862 changes but doesn't hurt anyway. See bug #162034
1863 * app/diapsft2renderer.c app/modify_tool.c
1864 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
1865 instead of messing with internals
1866 * app/display.c : give interactive renderers more begin/end render.
1867 It is guaranteed that the scale wont change between these.
1869 2005-06-18 Hans Breuer <hans@breuer.org>
1871 * app/app_procs.c : const correctness for stderr_message_internal
1872 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
1873 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1874 * app/disp_callbacks.c : don't dereference the to the function call
1875 when the function pointer in meant to be checked against 0
1876 * app/interface.c : warning fixes by using correct types
1877 * app/modify_tool.c : describe_props() members returns const pointer
1878 * app/render_libart.c : removed most of the render function again.
1879 They happily live in lib/dialibartrenderer.c since almost 3 years
1880 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1881 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1882 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1883 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1884 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1885 Both mentioned in bug #159814 and not warned by most other compilers.
1886 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
1887 trailing colon in the GtkTypeInfo initialization
1888 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
1889 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
1890 between char and gint8
1891 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
1892 * plug-ins/wpg/wpg.c : consitently use guint8
1893 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
1894 redefinition warnings for python and xslt plug-ins
1896 2005-06-18 Hans Breuer <hans@breuer.org>
1898 * lib/diagramdata.c : really get rid of diagram_data_destroy
1899 and new_diagram_data [ no previous prototype for `...' is either
1900 a sign of missing static or of a function to vanish :-]
1902 * lib/geometry.c : apparently the G_INLINE stuff was working only
1903 with particular GLib version(s), glib-2.6.4 does not. Conditionally
1904 reverting to the old mecanics.
1906 2005-06-17 Hans Breuer <hans@breuer.org>
1908 * plug-ins/python/pydia-*.c : include order tweaking to
1909 get rid of redefinition warnings. Ensure to include <Python.h>
1910 before any 'system' header, some dragged in by glib.h
1911 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
1912 pydia-properties.c(PyDiaProperties_Str)
1913 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
1914 use %p to format pointers
1915 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
1916 dont cast to float for %d
1917 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
1918 use correct pointer type
1919 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
1920 dont discard qualifier aka dont free const strings
1921 * plug-ins/python/pydia-properties.c : casts to PyCFunction
1922 * plug-ins/python/pydia-property.c : removed unused function,
1923 make ensure_quarks() static
1924 * plug-ins/python/pydia-render.c : removed unused vars, use
1925 the correct signature for begin_render
1926 (dia_py_renderer_finalize): pluged a leak
1927 => except -fno-strict-aliasing there is no warning left in
1930 2005-06-12 Hans Breuer <hans@breuer.org>
1932 * app/filedlg.c : really fix the file extension mismatch on export dialog
1933 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
1935 2005-06-11 Hans Breuer <hans@breuer.org>
1937 * configure.in config.h.win32.h : mark as +cvs (should have been
1938 done directly after the 0.94 release)
1939 * NEWS : attempt to summarize 2/3 year of development
1942 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
1943 finally passes again
1945 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
1946 app/run_dia.sh --credits > THANKS => Segmentation fault
1947 * app/pixmaps/Makefile.am : added group.png and ungroup.png
1948 * Makefile.am : work around scrollkeeper bug
1949 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
1951 * po/*.po : 'noise' produced by make dist
1953 2005-06-10 Hans Breuer <hans@breuer.org>
1955 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
1956 * objects/custom/custom_object.c : ... and use it to avoid
1957 complains about missing attribute "show_background". It is
1958 safe to leave this uninitialized. Same for flip_* and "text",
1959 the latter with comment cause it usually is *not* safe to do
1960 it for the general case. Fixes remaining issues with bug #169006
1961 which where caused by an incompatible change in the shape file.
1963 * app/commands.c : use "gnome-open" instead of "netscape" as
1964 fallback for $BROWSER not set. Still not optimal but better
1965 to try some common desktop tool than an obsolete browser;)
1966 Fixes bug #307142. Also some whitespace changes.
1968 * app/interface.c(toolbox_delete): avoid random return value.
1969 Patch from Stanislav Brabec, fixes bug #307143
1971 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
1972 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
1973 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
1975 2005-06-06 Lars Clausen <lars@raeder.dk>
1978 * app/modify_tool.c:
1979 * app/textedit.[ch]:
1980 Better support for text edit highlight.
1982 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
1983 the mainpoint extra visible.
1985 2005-06-02 Lars Clausen <lars@raeder.dk>
1987 * objects/UML/class_dialog.c:
1988 * objects/UML/class.[ch]:
1989 The final fixes for mainpoint on UML Class.
1991 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
1992 Ian Redfern, now in color and with mainpoints! Very pretty!
1994 2005-06-02 Hans Breuer <hans@breuer.org>
1996 * objects/UML/class_dialog.c : the memory managment with respect to
1997 attribute/operation connections was/is a mess. But it should work again ;)
1999 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
2000 directly from the UML Specification - to show the power of Dia and
2001 some weakness. Watch the bug reports following ;)
2003 2005-06-01 Hans Breuer <hans@breuer.org>
2005 * app/dia.def : export diagram_update_connections_object
2006 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
2007 Patch from Paolo Bernardi, together with the property setting closes bug #300572
2009 2005-06-01 Hans Breuer <hans@breuer.org>
2011 * plug-ins/python/pydia-property.c : complete refactoring of property
2012 setting, now also supports setting of property arrays
2013 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
2014 Python namespacing conventions
2015 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
2016 complete UML Classes with attributes and operations
2017 * plug-ins/python/otypes.py : now also show the properties of the objects
2019 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
2020 (pointers), they might be changed with attributes and opertions changing
2022 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
2023 were broken. Apparently noone used them before.
2025 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
2026 which only operate on the DiagramData to the latter file. To get on the DiagramData
2027 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
2028 but I don't know how to reflect that in the bindings. And for backward compatibility
2029 there also is the 'data' member.]
2031 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
2032 objects/UML/umlparameter.c : describe enums with PropEnumData
2034 * app/commands.c(view_show_all_callback) : if there is something selected show
2035 that instead of all exisiting objects. If there is noting or all selcted it
2036 "Show all" shows the old behaviour.
2038 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
2039 leaks and use less allocations caused by misguided API. Also some adaption to common
2042 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
2044 * app/makefile.msc : added new icons and build as console app while
2045 not releaseing to the general public
2047 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
2048 and keep a refernce when storing the a font from style="" in s.font. This should
2049 finally allow to have shapes with fully predefined text (and no 'random' crashes)
2051 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
2052 capable to interpret it's output
2054 2005-05-31 Lars Clausen <lars@raeder.dk>
2056 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
2058 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
2060 * configure.in: Added ne in ALL_LINGUAS
2062 2005-05-24 Lars Clausen <lars@raeder.dk>
2064 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
2065 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
2068 2005-05-23 Lars Clausen <lars@raeder.dk>
2070 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
2072 2005-05-21 Lars Clausen <lars@raeder.dk>
2074 * lib/diaarrowchooser.c:
2075 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
2076 'infinite' line (three dots) arrowhead. Fix line length in arrow
2077 preview. And fix typo. Fixes bug #303904.
2079 2005-05-20 Hans Breuer <hans@breuer.org>
2081 * lib/text.c : advice from valgrind and data_string() review:
2082 neither g_free() memory on the stack
2083 * objects/GRAFCET/boolequation.c : ... nor const strings
2084 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
2087 * app/diagram.c : a g_object_ref() following g_object_new() is almost
2088 always wrong. Why would we need two refernces?
2089 * app/app_procs.c : same here.If it crashes later on someone is dropping
2090 refernces he does not own, and *that* needs to be fixed. This is reverting
2091 "Remember to ref g_object_new'd object" (bug #170972) below, which
2092 causes more harm (leaking, hiding bugs elsewhere) than good.
2094 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
2095 diagramdata_destroy() which was only a wrapper to g_object_unref()
2097 * app/display.c(selection_changed) : don't g_strdup_printf() without
2098 g_free() later /or/ a C++ comment of me mostly denotes an error
2100 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
2102 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
2103 const gchar* entry it must not eat memory, added a lot of g_free() and
2104 some const. Fixed a bunch - i.e. *all* - warnings.
2105 * lib/widget.h : removed unused/deleted functions
2107 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
2108 avoid 'Invalid write of size 4', no luck yet
2110 2005-05-19 Lars Clausen <lars@raeder.dk>
2112 * objects/UML/class.c:
2113 * objects/UML/class.h:
2114 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
2115 for uml class object. #ifdef'd out right now.
2117 2005-05-18 Lars Clausen <lars@raeder.dk>
2119 * objects/standard/line.c: Make line adjust its actual endpoints
2120 for autogap -- looks and feels better.
2122 * objects/standard/arc.c:
2124 * app/modify_tool.c: Patch from Grégoire Dooms
2125 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
2126 shifted arc angle movement.
2128 2005-05-16 Hans Breuer <hans@breuer.org>
2130 * lib/widget.c : variable declarations need to be at the start of a block,
2131 at least as we are not using C++ or C99
2133 * plug-ins/python/pydia-property.c : implment the read part for Property
2134 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
2135 They are working quite well as can be seen with export-object.py
2137 * plug-ins/python/codegen.py : prove it once more with the generation of C++
2138 or Python code from an UML Diagram. Simply save as .py or .cxx ...
2139 * plug-ins/python/Makefile.am : install it
2141 2005-05-16 Lars Clausen <lars@raeder.dk>
2143 * app/pixmaps/{un}group.png:
2144 * app/Makefile.am (ICON_PNG_PAIRS):
2145 * app/menus.c (display_menu_items):
2146 New icons for grou/ungroup finally added, closing bug #105519.
2148 * app/Makefile.am: Dependencies for pixmaps.
2150 * app/pixmaps/connectable.png: An icon that actually makes sense
2151 for switching connectability.
2153 2005-05-15 Hans Breuer <hans@breuer.org>
2155 * lib/group.c object/UML/classicon.c : fixed leftovers of
2156 'Adding connectionpoint to _move_handle
2158 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
2159 is *ALWAYS* a memory leak. Plug some more.
2162 In preparation to make UML operations/attributes/parameters setable by Python
2163 UML class became more StdProp conformant. A nice experience to be the first
2164 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
2166 * objects/UML/umlattribute.c objects/UML/umloperation.c
2167 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
2168 split from objects/UML/uml.c and made StdProp aware
2169 * objects/UML/class.c : finally make "attributes", "operations", "templates"
2170 <template parameters> first class StdProps citizens.
2171 (umlclass_load) : removed hand-written parsing for the above, it is all done
2172 by object_load_props() now. The old write code is still in place, so be very
2173 careful when changing something - at the moment load/save it is 100% compatible
2175 * objects/UML/uml.c : now just type registration here, as it is supposed to be
2176 * objects/UML/Makefile.am objects/makefile.msc : build the new files
2178 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
2180 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
2181 (darray_prop_adjust_object_records) : don't loop forever
2182 (whole file) : use the new (working) way to get on the second level offsets.
2183 Also resolved some abbreviations, it is complicated enough without them ;)
2184 * lib/proplist.c : even complete list contents may be optional
2186 2005-05-15 Hans Breuer <hans@breuer.org>
2188 * lib/bezier_conn.c(remove_handles) : don't try to remove
2189 non-exisitng handles (patch from Radek Krahl, bug #302273)
2191 2005-05-15 Hans Breuer <hans@breuer.org>
2193 * plug-ins/metapost/render_metapost.c : locale independent output
2194 (Radek Krahl, bug #301866)
2196 2005-05-12 Lars Clausen <lars@raeder.dk>
2198 * shapes/Cisco/*.{shape,png}:
2199 * sheets/cisco*.sheet.in:
2200 Updated with color icons from Ian Redfern, closing bug #303889.
2201 Added automatic midpoints, not attempt at adjusting them.
2203 2005-05-11 Lars Clausen <lars@raeder.dk>
2205 * many shapes: Use mid of bounding box for midpoint, better than
2206 mid of connection points generally.
2208 2005-05-10 Lars Clausen <lars@raeder.dk>
2210 * lib/widgets.c: Decided on one way for the ratio thing in arrow
2211 size selector: Fixed ratio is on by default and keeps the sizes
2212 at the given ratio, but doesn't clamp them to be the same. Fixes
2215 * lib/font.c: Fix for bug #303695: Allow more than one entry of
2216 each legacy name, thereby correctly encoding bold and italic of
2217 the three main fonts. Also use | rather than || to combine slant
2218 and weight, so matching works. Had to remove binary search for
2219 new font name, but the list is short enough it's not a problem.
2221 2005-05-09 Lars Clausen <lars@raeder.dk>
2223 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
2225 2005-05-08 Hans Breuer <hans@breuer.org>
2227 * objects/UML/class.c : Reverted to have no center point.
2228 At first it looked as if there was only the bug to not increase
2229 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
2230 potentially much more dynamic connection points (to the left
2231 and right of every attribute/operation). Now simply adding one
2232 between see static and dynamic will screw up any existing diagram
2233 which makes use of the dynamic connection points. The would all
2234 be connected with an off-by-one error. I have no idea how to
2235 code around that. But breaking backward compatibility is no
2236 option here. Does not completely fix bug #303301 ...
2238 * lib/widget.c(dia_font_selector_set_font): actually set the options
2239 menu state. So we are not any longer resetting the font style on Apply.
2240 Use "UML - Class" dialog as stress text example.
2242 * app/command.c : some people insist to close diagrams already
2243 closed using tear-off menus. Maybe we should add a dialog
2244 "Do you want to call Dr. Watson now?". If there is no diagram
2245 to close anymore just do nothing, fixes bug #303221
2246 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2247 Calling this with no display to close is a pathological case.
2249 * app/diagram.[hc] : moved object.h and other DiaObject stuff
2250 to the implementation in preparation of Big Things(tm)
2252 * app/interface.c : less warnings and make it compile. strncmp()
2253 does not take a char**, neither does gdk_pixbuf_new_from_inline().
2255 * objects/makefile.msc plug-ins/makefile.msc : less output
2257 2005-05-08 Lars Clausen <lars@raeder.dk>
2259 * lib/orth_conn.c (orthconn_init): The right place to set the
2260 default autorouting value. Fixes bug #303291.
2262 * app/display.c (ddisplay_close): Patch from Radek Krahl
2263 (ptasz3k@o2.pl): Fix crash when using from detached menu
2266 2005-05-07 Lars Clausen <lars@raeder.dk>
2268 * lib/orth_conn.c (orthconn_load): Autorouting should default to
2269 off in diagrams that don't have it explicitly. All diagrams
2270 should be explicit about it.
2272 2005-05-06 Hans Breuer <hans@breuer.org>
2274 * app/samples/Self/*.dia : some UML diagrams describing Dia's
2275 inner working (or it's future;)
2277 2005-04-26 Lars Clausen <lars@raeder.dk>
2279 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2280 change to display of mainpoint to be easier to debug autogenerated
2283 2005-04-23 Hans Breuer <hans@breuer.org>
2285 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2286 plug-ins/python/pydia-properties.h : use lib/ prefix for
2287 Dia internal headers with too common names (fixes bug #173061)
2289 * app/display.c : stop special casing the first display of
2290 a diagram. Every display now has it's own refernce. The initial
2291 reference gets dropped when there is no display anymore. See
2292 diagram_remove_ddisplay(). Fixes bug #300744.
2294 * app/diapsft2renderer.c : locale independent output
2295 (Radek Krahl, bug #300847)
2296 * app/paginate_psprint.c : fixing use of setlocale() calls
2297 (Radek Krahl, bug #300886)
2298 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2299 (Radek Krahl, bug #300889)
2301 * objects/UML/class.c : fix another crash with the line
2302 wrapping code (Gabor Simon, bug #160865)
2304 * plug-ins/cairo/diacairo.c : image rendering had an endianess
2305 issue (or is this working around a libpixman bug?;)
2307 2005-04-21 Lars Clausen <lars@raeder.dk>
2309 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2311 * shapes/**/*.shape: All shapes now have midpoints.
2313 2005-04-20 Lars Clausen <lars@raeder.dk>
2315 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2316 (Radek Krahl): Make sure there's enough handles for the line.
2319 * objects/UML/node.c (node_draw): Better drawing method avoids
2320 garbage after moving. Fixes bug #301032.
2322 2005-04-17 Hans Breuer <hans@breuer.org>
2324 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
2325 changes (whould compile with current cvs and 0.(3|4).0
2327 2005-04-11 Lars Clausen <lars@raeder.dk>
2329 * xmldocs.make (all): Fix to put installed docs in right place
2330 under disable-gnome.
2332 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2335 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2336 (Leonardo Boshell): Use standard gnome help if called with Gnome.
2338 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2339 locale issues for eps output. Fixes bug #173135.
2341 2005-04-10 Hans Breuer <hans@breuer.org>
2343 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
2344 changes (somewhat broken)
2346 * plug-ins/pstricks/render_pstricks.c : still C89 ...
2347 * objects/custom/shape_info.c : ... but with prototypes
2349 2005-04-07 Lars Clausen <lars@raeder.dk>
2352 * plug-ins/svg/render_svg.c:
2353 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2354 Make decimal separators be correct in save file formats
2355 (non-localized). Fixes bugs #172529 and 172531.
2357 2005-04-06 Lars Clausen <lars@raeder.dk>
2359 * app/create_object.c (create_object_button_release):
2360 * app/modify_tool.c (modify_button_release): Correct activations
2363 2005-04-05 Simon Kågström <ska@bth.se>
2365 * app/app_procs.c: the --show-layers option can now handle numeric
2368 2005-04-05 Lars Clausen <lars@raeder.dk>
2370 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2371 (Tom Kast): Avoid blockiness caused by bad updates.
2373 2005-04-03 Lars Clausen <lars@raeder.dk>
2376 * lib/beziershape.c: Main points. A crude solution, having the
2377 center in the middle of the bb. Shows a bug in the distance_from
2378 code for polyshape when a side is horizontal.
2380 2005-04-02 Lars Clausen <lars@raeder.dk>
2382 * plug-ins/pstricks/render_pstricks.c:
2383 * plug-ins/xfig/xfig-export.c: Patch from Radek
2384 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
2386 2005-04-02 Hans Breuer <hans@breuer.org>
2388 * lib/dia_image.c(dia_image_filename) : return the path
2389 again. (bug #172416, Radek Krahl)
2391 2005-04-01 Steve Murphy <murf@e-tools.com>
2393 * configure.in: Added "rw" to ALL_LINGUAS.
2395 2005-03-31 Lars Clausen <lars@raeder.dk>
2397 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2399 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2402 * objects/network/basestation.c: Main points.
2404 2005-03-27 Hans Breuer <hans@breuer.org>
2406 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2407 * app/pixmaps.h : removed arrow.xpm
2408 * lib/Makefile.am : added diamarshal
2409 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2410 => makes 'make dist' pass and produce a useable package
2412 * po/*.po : 'noise' profuced by make dist
2414 2005-03-24 Lars Clausen <lars@raeder.dk>
2416 * objects/flowchart/parallelogram.c (pgram_update_data):
2417 * objects/flowchart/ellipse.c (ellipse_update_data):
2418 * objects/flowchart/diamond.c (diamond_update_data):
2419 * objects/flowchart/box.c (box_update_data): Main points.
2421 * objects/custom/custom_object.c (custom_create):
2422 * objects/custom/shape_info.h:
2423 * shapes/Assorted/square.shape:
2424 * objects/custom/shape_info.c (load_shape_info):
2425 * doc/shape.dtd: Added main point support to shapes, and an
2426 example of how to use it.
2428 2005-03-21 Lars Clausen <lars@raeder.dk>
2430 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2431 unnormalize from same point as you normalize, or else!
2433 2005-03-20 Lars Clausen <lars@raeder.dk>
2435 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2436 Remember to ref g_object_new'd object.
2438 2005-03-19 Hans Breuer <hans@breuer.org>
2440 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2441 have configurations, fixes bug #170962
2443 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2444 or better not used any longer. Fixes bug #169142.
2446 * lib/element.c(element_update_connections_rectangle): don't initialize
2447 the eighth point twice but instead the nineth once
2449 * objects/standard/bezier.c : no C++ comments *please*
2451 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2453 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2454 * plug-ins/python/pydia-image.c : ... so, don't do it!
2456 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2457 also named colors via pango_color_parse()
2459 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2461 * lib/libdia.def : updated externals
2463 * app/object_ops.c : still not C99 everywhere
2465 2005-03-19 Hans Breuer <hans@breuer.org>
2467 * lib/autoroute.c : at least it should compile ;)
2469 2005-03-19 Lars Clausen <lars@raeder.dk>
2471 * lib/autoroute.c: Orthconns now do autogap.
2473 2005-03-17 Lars Clausen <lars@raeder.dk>
2475 * app/authors.h: Added Gregoire Dooms for gap stuff.
2477 * objects/standard/polyline.c: Patch from Grégoire Dooms
2478 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2480 * objects/standard/bezier.c: Patch from Grégoire Dooms
2481 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
2485 * objects/UML/state_term.c:
2486 * objects/UML/large_package.c:
2487 * objects/UML/node.c:
2488 * objects/UML/object.c:
2489 * objects/UML/small_package.c:
2490 * objects/UML/state.c:
2491 * objects/UML/usecase.c:
2492 * objects/UML/note.c:
2493 * objects/UML/actor.c:
2494 * objects/UML/classicon.c:
2495 * objects/UML/component.c:
2496 * objects/Misc/analog_clock.c:
2497 * objects/Jackson/requirement.c:
2498 * objects/Istar/goal.c:
2499 * objects/Istar/actor.c:
2500 * objects/FS/function.c:
2501 * object/standard/box.c:
2502 * objects/ER/entity.c:
2503 * objects/ER/relationship.c:
2504 * objects/ER/attribute.c: Main points added. Distance_from fixed
2505 in attribute, broken in relationship, I* goal, Jackson
2506 requirement, analog_clock, all non-rectangular UML elements,
2509 * lib/element.[ch]: New method to help update connection points.
2511 * app/menus.c: Change Help/Manual to Help/Contents to follow
2514 * objects/standard/line.c:
2515 * lib/geometry.[ch]:
2516 * objects/standard/bezier.c: Patch from Grégoire Dooms
2517 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2518 bezier objects. Autogap nowchanged to be a function of the
2522 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2525 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2526 CP_FLAG_ANYPLACE connpoints.
2528 2005-03-16 Lars Clausen <lars@raeder.dk>
2530 * app/interface.c (create_tools): Removed debug printf.
2532 2005-03-15 Lars Clausen <lars@raeder.dk>
2534 * lib/widgets.[ch]: Constification.
2536 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2539 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2541 * lib/connectionpoint.h: Flags for connection points.
2543 * app/create_object.c (create_object_motion):
2544 * app/modify_tool.c (modify_motion): Minor refactoring.
2546 * app/object_ops.c (object_find_connectpoint_display): Extend with
2547 finding connpoints that cover entire objects.
2549 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2551 * objects/custom/custom_object.c (custom_setup_properties): Avoid
2554 2005-03-13 Hans Breuer <hans@breuer.org>
2556 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2558 2005-03-13 Hans Breuer <hans@breuer.org>
2560 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2561 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
2562 dia_svg_style_copy(), dia_svg_style_init()
2564 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2567 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2568 not wrapped in the style attribute
2570 * plug-ins/svg/svg-import.c : implement nested group handling and style
2571 'style inheritance'. Still no transformations, no <image/>, no <style/>
2574 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2575 the latter is for programmers.
2576 Also be more tolerant if the document root namespace is not 'svg'. If the svg
2577 namespace is defined in the file search for the top node including svg. This
2578 allows us to re-read the svg part of our own shape format.
2580 * lib/libdia.def : there is no give_focus_to_object
2581 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
2582 type as an expression
2584 * lib/geometry. c : use G_IMPLEMENT_INLINES
2585 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2587 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2588 gone when trying to remove the focus
2590 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2591 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2592 case of this plug-in, i.e. producing output files]
2594 2005-03-13 Lars Clausen <lars@raeder.dk>
2596 * lib/Makefile.am (BUILT_SOURCES):
2597 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2598 the building of the icons header files.
2599 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2601 2005-03-13 Hans Breuer <hans@breuer.org>
2603 * configure.in : require Cairo 0.3.0
2604 plug-ins/cairo/diacairo.c : changed to match ;-)
2606 * app/app_procs.c() : new function dump_dependencies()
2607 which gets called by: dia --version --verbose
2608 and may help to track version dependent problems in
2611 * lib/font.c : reverted to previous version cause using
2612 not implemented Pango API did not improve the issue.
2613 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2614 for more information.
2616 * lib/dialinechooser.c : a little shrinking of the
2617 initial size (to work around line wrappjing the right
2620 2005-03-11 Lars Clausen <lars@raeder.dk>
2622 * app/textedit.c: Concentrate start/end editing in single functions.
2624 2005-03-10 Lars Clausen <lars@raeder.dk>
2627 * lib/object.h: Added new object function to allow the object to
2628 be notified when its text is being edited.
2631 * app/modify_tool.c:
2634 * lib/focus.c: Remove sideeffects from focus objects, add getter
2637 2005-03-09 Lars Clausen <lars@raeder.dk>
2639 * lib/Makefile.am (dia-lib-icons.h):
2640 * app/Makefile.am: Minor cleanup.
2642 2005-03-06 Hans Breuer <hans@breuer.org>
2644 * app/app_procs.c : avoid "assignment within conditional expression"
2645 and handle -L for the GOption case as well.
2647 * lib/widget.c : strchr() does not return -1 on not found but NULL;
2648 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
2649 indirection from 'const int '
2651 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
2652 large_arc, thus produce correct arc output (like diasvg.py does;),
2655 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
2656 from objects/custom/shape_info.c to be shared with object/custom and
2657 plug-in/svg -> finally the C based svg-import reads pathes again.
2658 Added arc parsing while I was there, which fixes bug #169191
2659 * objects/custom/shape_info.c(parse_path) :
2660 * plug-ins/svg/svg-import : reuse above function
2661 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2662 But in general this does only support a small subset of what is
2665 2005-03-06 Lars Clausen <lars@raeder.dk>
2667 * objects/UML/association.c: Patch from Dave Klotzbach applied:
2668 Add visibility to association arrow. Fixes bug #157012.
2670 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2671 closing bug #161040.
2673 * app/layer_dialog.c (create_button_box): Use stock icons instead
2674 of homemade onces. Gets us rid of four more XPMs.
2676 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
2678 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2679 This option permits command line control of which layers are visible.
2680 Useful when automatically exporting multiple versions of the same
2681 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2682 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2683 and made it static since its only used in that file.
2684 * app/authors.h: added myself
2685 * doc/en/dia.1: documented the switch
2686 * doc/en/usage-layers.xml: ditto
2688 2005-03-05 Alan Horkan <horkana@tcd.ie>
2690 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2691 this restores how Dia behaved before the GTK2 port and seems to help
2692 allow the toolbox to be more easily resized. Bug #108891.
2694 2005-03-05 Lars Clausen <lars@raeder.dk>
2696 * Civil/civil_motor.shape:
2697 * Civil/civil_rotor.shape:
2699 * Logic/buffer.shape:
2700 * Logic/connector.shape:
2701 * Logic/inverter.shape:
2707 * shapes/Assorted/arrow-left-up.shape:
2708 * shapes/Assorted/heptagon.shape:
2709 * shapes/Assorted/star5.shape:
2710 * shapes/Assorted/trapezoid.shape:
2711 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2712 defaults, see bug #169143.
2714 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2717 * doc/en/Makefile.am: Finally figured out the right way to ask for
2718 the manpage xslt. Closes bug #144539.
2720 2005-03-01 Lars Clausen <lars@raeder.dk>
2722 * lib/Makefile.am (nodist_include_HEADERS):
2723 * app/Makefile.am: Correctly generate these files from PNGs with
2728 * lib/widgets.c: Refactor toggle button factory to allow inline
2731 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2733 * app/makefile.msc (ICON_PNG_PAIRS):
2734 * app/dia-app-icons.h: Updated with more icons.
2737 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2740 * app/interface.c (create_display_shell):
2741 * app/layer_dialog.c (dia_layer_widget_init):
2742 * lib/dia_image.c (dia_image_get_broken): Use inlined data
2745 * app/display.c (ddisplay_close): Removed unused includes.
2747 2005-03-01 Lars Clausen <lars@raeder.dk>
2749 * app/sheets.c (create_object_pixmap): Create a placeholder image
2750 for when the real image is missing. Better than crashing:)
2753 2005-02-25 Hans Breuer <hans@breuer.org>
2755 * app/app_procs.c : don't requets to open a default display with
2756 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2758 2005-02-22 Lars Clausen <lars@raeder.dk>
2760 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2763 2005-02-19 Lars Clausen <lars@raeder.dk>
2765 * app/menus.c (display_menu_items): Applied patch from bug #94019:
2766 Menu cleanup and addition of icons. Also a few additional stock
2769 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2772 2005-02-14 Lars Clausen <lars@raeder.dk>
2774 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2776 2005-02-13 Lars Clausen <lars@raeder.dk>
2778 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2779 width. Seems to work. Once tested some more, needs old code
2782 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2783 warning by escaping & properly.
2785 2005-02-06 Lars Clausen <lars@raeder.dk>
2787 * app/filedlg.c (file_export_callback): Set correct extension as
2788 soon every time the dialog is shown. Fixes bug #162535.
2790 * app/display.c (ddisplay_set_origo): Use more standard
2793 * app/modify_tool.c (modify_motion):
2794 * app/create_object.c (create_object_motion): Put coordinates of
2795 handle/object in status bar while moving. Fixes bug #163164.
2797 2005-02-03 Lars Clausen <lars@raeder.dk>
2799 * lib/.cvsignore: Added generated files diamarshal.[ch]
2801 2005-02-02 Lars Clausen <lars@raeder.dk>
2803 * configure.in: Add GLIB_GENMARSHAL def as suggested in
2804 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2805 Now compiles on Linux.
2807 2005-02-01 Lars Clausen <lars@raeder.dk>
2809 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2810 need to translate the empty string. Especially not after
2811 g_assert_not_reached(). Fixes bug #165966.
2813 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
2815 * objects/UML/activity.c : add fill- and line-colour properties
2816 [applied by Hans Breuer, fixes bug #163260]
2818 2004-01-28 Hans Breuer <hans@breuer.org>
2820 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2821 update provided by Alan Horkan (fixes bug #159592)
2823 2004-01-28 Hans Breuer <hans@breuer.org>
2825 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2826 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2827 generalization, dependancies, parameterized classes ...
2828 * plug-ins/xslt/styleshetts.xml : refernce it
2829 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2831 2004-01-28 Hans Breuer <hans@breuer.org>
2833 * objects/UML/transition.c : fill out the extra_spacing struct
2834 in the OrtConn member, in order to avoid artifacts when draggin
2835 the transition. (patch by Peter Allin, bug #144956)
2837 2004-01-15 Hans Breuer <hans@breuer.org>
2839 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2840 to something differnt than 0. Apparently there are case where Dia misses
2841 to appropriately set it before requesting a dashed line (simple line with
2842 arrow as described in bug #151716)
2844 * lib/dia_dirs.c : special casing for drive letters which I broke with
2847 2005-01-13 Hans Breuer <hans@breuer.org>
2849 * app/interface.c(create_sheet_page) : remved dead long time code
2851 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2852 it is availbale via header - which is the better style anyway
2854 2004-12-31 Hans Breuer <hans@breuer.org>
2856 * lib/dia_dirs.c(dia_get_canonical_path) : complete
2857 rewrite to handle something like /mnt/some/where/../else
2858 too. Workaround for bug #162637.
2859 * app/filedlg.c : call gtk_file_chooser_set_current_name()
2860 to workaround gtk_file_chooser_set_filename() not setting
2861 it if the file does not exist
2863 * sheets/Jackson.sheet.in app/menus.c : fixed typos
2864 (Frank Arnold, bug #161676)
2866 2004-12-31 Steffen Macke <sdteffen@gmail.com>
2868 * doc/pl/*.xml: Added XML prolog
2869 * makefile.msc: Added libxslt, fixed libxml, libart
2871 2004-10-29 Alexander Shopov <ash@contact.bg>
2873 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2875 2004-12-29 Lars Clausen <lars@raeder.dk>
2877 * configure.in: Make gnomeprint be truly off by default (typo) and
2878 show optional compilation correctly.
2879 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2881 2004-12-22 Hans Breuer <hans@breuer.org>
2883 * lib/widgets.c : destroy handlers can be called more than once,
2884 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
2886 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
2888 * app/display.c : temporary debug code showing the
2889 timing the rendering
2891 * app/dialibartrenderer.c(draw_string) : removed dead
2892 code loading and leaking font and face
2894 2004-12-15 Hans Breuer <hans@breuer.org>
2896 * app/display.c : actually use the selction-changed signal for something
2897 useful. Show selections representation on statusbar.
2898 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
2899 * app/diagram_tree.c : use new function (as in app/display.c) and only
2900 poke into property internals at one place
2901 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
2904 2004-12-12 Hans Breuer <hans@breuer.org>
2906 * lib/libdia.def app/dia.def : updated externals
2908 * objects/custom/custom_object.c : custom_destroy is called per object.
2909 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
2910 reference to it. Fixes e.g. bug #158288, #160550, ...
2912 * objects/UML/association.c(association_draw) : completed porting to
2913 draw_polyline_with_arrows()
2914 (association_update_data_end) : fixed typo in point compare
2915 (association_update_data) : for name placement take degenerated
2916 segements into account. Together this fixes bug #143891
2918 2004-12-11 Hans Breuer <hans@breuer.org>
2920 * lib/widgets.c(set_size_sensitivity) : revert inverted
2921 logic for arrorw size selections, fixes bug #160527
2923 2004-12-11 Hans Breuer <hans@breuer.org>
2925 * lib/widgets.c(dia_font_selector_set_font) : initialize
2926 the font style widget, too. Gets rid of empty font
2927 style and thus default broken font style, e.g. UML::class_name
2929 * lib/widgets.c(dia_color_selector_more_callback) : fill
2930 the color palette from dynamic menu entries and also
2931 preselect the current color to the last select entry
2933 * plug-ins/python/pydia-diagramdata.c : hold a reference
2934 to the underlying GObject
2936 * app/Makefile.am app/diagrid.h : new file containing the
2937 grid 'class' moved from DiagramData to Diagram.
2938 Also moved pagebreak_color and guides cause they are only
2939 used for visual appearance not 'data'.
2940 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
2941 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
2944 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
2945 lib/libdia.def : get rid of new_diagram_data()
2946 Diagram _is_ DiagramData (and does not have one any longer,
2947 just a compatibility pointer)
2949 * lib/diarenderer.h : a small doc improvement
2951 2004-12-11 Hans Breuer <hans@breuer.org>
2953 * objects/UML/class.c : line wrapping code buffer
2954 overrun fixed by Gabor Simon, bug #160865
2956 2004-12-11 Hans Breuer <hans@breuer.org>
2958 * plug-ins/python/pydia-diagram.c : hold a reference
2959 to the diagram in PyDiaDiagram, avoids bug #159080
2960 [another way to avoid is to detroy the dialog by
2961 clsoing it. But now there is still a diagram to
2962 apply the changes to, even if it's thrwon away just
2965 2004-12-10 Hans Breuer <hans@breuer.org>
2967 * **/*.c : fixed a bunch of warnings, not only for -ansi
2968 (still too many of them, but -ansi works)
2970 prop_geomtypes.h prop_geomtypes.c:306: warning: static
2971 declaration for `fontsizeprop_reset_widget' follows non-static
2972 dia_dirs.c:196: warning: return discards qualifiers from
2976 shape_info.c:121: warning: static declaration for `parse_path'
2980 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
2981 arrow.c:244: warning: unused variable `i'
2982 arrow.c:245: warning: unused variable `p'
2983 arrow.c:246: warning: unused variable `zzr'
2985 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
2986 finally removed c++ comments
2988 objects/Istar/goal.c : initialize connections::directions
2989 while I was there - helps autorouting
2991 * objects/KAOS/metaandorrel.c objects/Istar/link.c
2992 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
2993 (it would be quite simple to add image-from-memory support
2996 * pydia-*.h : warning: no newline at end of file
2998 * plug-ins/gprint/diagnomeprint.c : allow to unregister
2999 and follow new unique name naming convention
3000 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
3003 2004-12-07 Hans Breuer <hans@breuer.org>
3005 * objects/UML/message.c : better default for initial text placement
3006 a suggested in bug #154306, Henning Mersch
3007 * objects/UML/constraint.c : doing the same
3009 * app/filedlg.c : include persistence.h for persistence_get_integer
3010 * lib/libdia.def export it
3012 2004-12-05 Hans Breuer <hans@breuer.org>
3014 * app/grid.c : respect dynamic grid during snap-to, fixes
3015 bug #135124, Dmitriy Morozov. Added some additional magic
3016 to make the grid size more useable.
3018 2004-12-05 Hans Breuer <hans@breuer.org>
3020 * app/app_procs.c : make it compile for the HAVE_POPT and
3021 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
3023 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
3024 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
3025 when interactive. Fixes bug #119329
3027 * plug-ins/cairo/diacairo.c : adapt to new type naming
3028 scheme (introduced by accident;-) for pixbuf-*
3029 * app/app_procs.c : reflect both type name changes
3031 2004-12-04 Hans Breuer <hans@breuer.org>
3033 * objects/standard/image.c : fix the correct warning
3034 `image_file_name' might be used uninitialized
3036 * app/filedlg.c : near complete rewrite
3037 - removed 'related dialog', GtkOptionMenu, most global vars,
3038 also don't hide the dialog but let it go.
3039 - added: filter view by extension, hopefully working diagram
3040 referencing, GtkComboBox usage
3042 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
3043 of im/export filter entries. So the user interface reflects
3044 the dynamic nature of pixbuf loaders
3046 * lib/filter.[ch] : implement filter_unregister_*port
3047 lib/libdia.def : added new functions
3048 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
3049 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
3050 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
3051 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
3052 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
3053 use them in _plugin_unload () thus all these plug-ins
3054 can be loaded used and unloaded during Dia's runtime
3056 2004-12-04 Lars Clausen <lars@raeder.dk>
3058 * lib/diagramdata.h: Access methods for units defined per diagram.
3060 * lib/font.c (dia_font_new_from_style): More proper object creation.
3062 * lib/properties.h: Refactored the PROP_STD_* macros to allow
3065 * app/diagram.c (diagram_init): Force filename to be absolute
3066 path, easing the job for load/save.
3068 2004-12-03 Hans Breuer <hans@breuer.org>
3070 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
3071 added dia_font_set_height, dia_font_copy (note to self: don't try to
3072 maintain these from the *NIX side ;)
3074 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
3075 the new color selection anymore
3076 * objects/UML/class_dialog.c : with the above change it would have been more
3077 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
3078 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
3080 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
3081 (used in object vtable) and make its prototype match
3083 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
3084 correlate any of these strange crashing bug with it, but assume bad things to
3085 happen when one passes stack allocated stuff to gtk_type_unique()
3087 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
3088 not there. Fixes most of the warnings from bug #156996
3090 * lib/makefile.msc : rules to generate diamarshal.[ch]
3092 2004-11-29 Hans Breuer <hans@breuer.org>
3094 * app/disp_callbacks.c : reenable so-called preedit
3095 as described in bug #158859, Etsushi Kato
3096 Also fixed some compiler warnings while there.
3098 * objects/standard/image.c(get_directory) : make
3099 the documentation match the implementation.
3100 (image_save) : don't write a leading slash on
3103 * plug-ins/gprint/diagnomeprintrenderer.c :
3104 switched to gnome-print-pango usage
3106 * app/app_procs.c configure.in : although Dia
3107 is not threaded it appears as if we have to
3108 g_thread_init() to avoid crashing in some
3109 libraries which are thread enabled
3111 * lib/diamarshal.list lib/Makefile.am : start of
3112 using GSignal to clean up some object relations
3113 * lib/libdia.def : export marshallers
3114 * app/diagram.[ch] : emit signals when REMOVED,
3116 * app/display.c : added a connection to
3117 SELECTION_CHANGED to test the new signal stuff
3119 * app/diagram.c : fixed diagram_finalize while I
3122 2004-11-28 Hans Breuer <hans@breuer.org>
3124 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
3125 the text if conversion to current locale fails. [This is actually
3126 using code written four years ago;]
3127 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
3129 * objects/standard/image.c(image_load) : be more robust against
3130 filenames which seem to be absolute
3132 2004-11-27 Hans Breuer <hans@breuer.org>
3134 * app/filedlg.c(file_save_callback) : convert to
3135 filename encoding before passing to diagram_save()
3136 Fixes bug #158381, thanks to Robert Ögren
3138 2004-11-27 Hans Breuer <hans@breuer.org>
3140 * lib/dialibartrenderer.c : sometimes its good to read
3141 compiler warnings. Not only define renderer_finalize
3142 but actually *use* it. Should plug a potential huge
3145 * configure.in plug-ins/Makefile.am
3146 plug-ins/gprint/Makefile.am : build the experimental
3147 gnomeprint plug-in on *NIX, too.
3148 * plug-ins/gprint/diagnomeprint.c : don't include
3149 specific (private) backend headers but instead select
3150 the desired backend via config key setting
3152 * lib/diagdkrenderer.c : add 1 to size of filled arc
3153 to be rendered by gdk. Fixes bug #150896.
3155 * plug-ins/gprint/diagnomeprint.c
3156 plug-ins/gprint/diagnomeprintrenderer.c : added magic
3157 to better match page and dash sizes
3159 2004-11-27 Hans Breuer <hans@breuer.org>
3161 * plug-ins/shape/shape-export.c : it's g_strdup_printf
3163 2004-11-27 Hans Breuer <hans@breuer.org>
3165 * app/app_procs.c : mention eps-builtin aka. "using
3166 latin1", does not fix the eps-pango issues but #150571
3168 2004-11-27 Hans Breuer <hans@breuer.org>
3170 * sheets/Cybernetics.sheet.in : changed encoding to
3171 utf-8, patch from Takeshi AIHANA, fixes #149580
3173 2004-11-27 Hans Breuer <hans@breuer.org>
3175 * objects/custom/custom_object.c : many existing shapes
3176 rely on a square default size, revert to it although
3177 it originally was by a typo. Fixes bug #148527.
3179 2004-11-27 Hans Breuer <hans@breuer.org>
3181 * app/load_save.c(dia_cleanup_autosave)
3182 app/diagram.c : don't use dia->filename if already
3183 freed and dont use printf at all.
3185 * app/paginate_psprint.c : not only set the renderer::paper
3186 but also renderer::is_portrait. Should fix bug #142524
3188 2004-11-26 Hans Breuer <hans@breuer.org>
3190 * dia.desktop.in : added Bug Buddy headers (as seen
3191 in planner). Hopefully the automatically filling of
3192 bugs is more meaningful by this.
3194 * objects/custom/custom_util.c objects/standard/image.c
3195 lib/plug-ins.c : getting rid of deprecated g_dirname,
3196 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
3197 bytes inside a block of size 44 free'd
3199 * lib/persistence.c(persistence_load_list) : don't
3202 * lib/diaerror.[ch] : (new file) start of better error handling
3203 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
3204 added new files/funcs
3205 * lib/proplist.c lib/propinternals.h (prop_list_load) :
3206 allow to propagate error to caller. Also set PXP_NOTSET
3207 to avoid applying unset properties, fixes bug #155255
3208 * lib/propobject.c lib/prop_sdarray.c : still spewing
3209 g_warnings but now with context information
3211 * app/filedlg.c : more absolute filenames where required
3212 and strip them where we need the filename only
3213 Also explicit DONT choose gnome-vfs backend cause its
3214 threading appears to crash Dia - at least in GNOME build,
3217 2004-11-26 Hans Breuer <hans@breuer.org>
3219 * app/filedlg.c : don't use relative filenames for
3220 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
3222 (export_set_extension) : if we don't have a filename don't
3223 use it in strrchr() to avoid crashing
3225 2004-11-23 Hans Breuer <hans@breuer.org>
3227 * app/app_procs.c : fixed build for the GNOME case
3228 (let's rip out POPT and depend on glib-2.6, please ;-)
3230 2004-11-23 Hans Breuer <hans@breuer.org>
3232 * app/app_procs.c : fixed typo which broke the
3233 build for HAVE_POPT case
3235 2004-11-21 Hans Breuer <hans@breuer.org>
3237 * app/app_procs.c : some more #if-mess, but one day
3238 we should rely on GLib's 2.6 Option Parser alone
3240 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
3241 and height for RoundRect() - otherwise size depends on offset,
3242 shorten the unique name
3244 * plug-ins/python/diamodule.c : provide a unique name
3245 for python filters as well
3247 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3248 by using the right colors (need black background cause we
3249 are tinitng it with the real color later)
3251 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3252 instead of hardcoded slahes, improved portability
3254 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3255 plug-in. Also added some more error reporting (e.g. no printer driver)
3257 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3258 plug-ins/makefile.msc : resurrection of the gnome print renderer.
3259 Kinda works (alpha quality) for export but does not print yet.
3260 With bug #158972 resolved this does even work on win32 :-)
3262 2004-11-07 Hans Breuer <hans@breuer.org>
3264 * doc/diagram.dtd : <composite> can have <composite/>,
3265 <font/> has two 'optional' atributes 'style' and 'family',
3266 these are used to store new (since 0.91) font info.
3267 With this changes non of the issues in bug #147431 remains.
3269 * plug-ins/python/otypes.py : starting to implement an
3270 'create all known object' file as ne stress test source
3271 for the dtd and Dia in general.
3273 2004-11-06 Hans Breuer <hans@breuer.org>
3275 * app/diapsrenderer.c : don't convert to locale but to
3276 "LATIN1", fixes bug #146641
3278 2004-11-06 Hans Breuer <hans@breuer.org>
3280 * app/diagram_tree.c : still no C99 everwhere ...
3281 * lib/libdia.def : update externals
3282 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3284 * app/app_procs.[hc] : declare, use ...
3285 app/winmain.c : ... and implement dia_redirect_console().
3286 Even though newer Gtk version don't popup a console window
3287 anymore redirecting the error messages to a file in $TEMP appears
3288 to be much more reasonable than just ignoring it. Fixes bug #150777
3289 based on a patch from Steffen Macke
3291 2004-11-06 Hans Breuer <hans@breuer.org>
3293 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3294 RoundRect() for high level renderer api implementation thus
3295 fixing bug #138744 reported by Lars Clausen
3297 2004-11-06 Hans Breuer <hans@breuer.org>
3299 * app/prefernces.c : applied patch to make showing the diagram
3300 menubar the default (advanced users know how to switch it off)
3301 Fixes bug #150706, Steffen Macke
3303 2004-11-06 Hans Breuer <hans@breuer.org>
3305 * app/commands.c app/commands.h : added view_fullscreen_callback()
3307 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3308 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3309 ALso modified to allow handling of unmodified keys again (aren't
3310 there plenty of bug reports for this?
3312 2004-11-06 Hans Breuer <hans@breuer.org>
3314 * objects/UML/class_dialog.c : fixed casts for usage
3315 of dia_color_selector_set_color()
3317 * app/filedlg.c : pass a valid filenames to
3318 gtk_file_chooser_set_filename(), if we don't have a name
3319 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
3320 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
3321 assertion `local_full_path[0] == '/'' failed"
3323 2004-11-06 Lars Clausen <lars@raeder.dk>
3325 * app/properties.c (create_dialog):
3326 * app/diagram_tree_window.h:
3327 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
3328 * app/diagram_tree_menu_callbacks.c:
3329 * app/diagram_tree_window.c:
3330 * app/diagram_tree_menu.c:
3331 * app/diagram_tree.c: Changed to use persistence instead of
3332 strange hacks in preferences.
3334 * lib/persistence.h:
3335 * lib/persistence.c (persistent_list_get_glist): Don't deref null
3336 pointer. New function persistent_list_remove_all, and
3337 fixed persistent_list_remove to ... work!
3339 2004-11-05 Lars Clausen <lars@raeder.dk>
3341 * app/paginate_psprint.c (diagram_print_ps): Call
3342 diagram_print_destroy on destroy rather than delete_event. That
3343 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
3346 2004-11-02 Lars Clausen <lars@raeder.dk>
3348 * objects/UML/class.c (umlclass_load): Actually load the saved
3349 fonts and font sizes. Fixes bug #157016
3351 * configure.in: Require at least GTK+ 2.4.
3353 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
3354 finally, finally. Not quite bulletproof yet, and I need to figure
3355 out a minimum version of Gtk that doesn't spew warnings all over.
3357 * app/diagram.[ch]: diagram_set_filename with const filename.
3359 * app/sheets_dialog_callbacks.c
3360 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3361 correctly recreated. Still something fishy with the sheet menu in
3362 the dialog after adding a new sheet. Probably the sheet name
3365 2004-11-01 Lars Clausen <lars@raeder.dk>
3367 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3368 stmping. Now requires g_free here and there.
3370 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3371 for remembering last sheet, better off as persistent string. Must
3372 hunt down other things like that.
3374 * app/interface.c (create_sheets): Now remembers last sheet
3375 selected again. Fixes bug #157036.
3377 2004-11-01 Hans Breuer <hans@breuer.org>
3379 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3380 will never become NULL but only point to the next char
3381 which might indeed be \0]
3382 Use tex_escape_string() to avoid writing invalid tex,
3385 * **/* : a bunch of changes caused by trying 'make distcheck'
3386 which still fails, see Bug #144527
3388 2004-10-31 Lars Clausen <lars@raeder.dk>
3390 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3391 floating point numbers being printed with commas. Fixes bug
3394 * app/interface.c (create_sheet_dropdown_menu): New function to
3395 create the sheet menu, and also allow recreation. Still buggy and
3396 slightly prone to magic.
3398 * objects/UML/class_dialog.c
3399 (attributes_list_selection_changed_callback): Don't try to update
3400 the widgets after they're destroyed. Fixes bug #156706 (I think).
3402 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3403 adjustement. Fixes bug #154637
3405 * sheets/ER/Makefile.am (PIX):
3406 * sheets/GRAFCET/Makefile.am (PIX):
3407 * sheets/Jackson/Makefile.am (PIX):
3408 * sheets/Istar/Makefile.am (PIX):
3409 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3410 XPM. Why these have their pictures in sheets rather than shapes I
3411 don't know. Fixes bug #152142.
3413 2004-10-31 Hans Breuer <hans@breuer.org>
3415 * plug-ins/pixbuf/pixbuf.c : when running non interactive
3416 Dia won't call color_init() as it assumes no display. If
3417 we have one as tested ourselve we can as well color_init()
3418 to avoid g_warnings() and produce the right collors.
3421 * app/app-procs.c : try to be a little more helpful
3422 and correct with regard to the command line options.
3423 Renamed --export-to-format to --export-filter and some
3424 other string changes
3426 2004-10-31 Hans Breuer <hans@breuer.org>
3428 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3429 added GetDeviceCaps() dummy implementation to make
3430 'wmf' compile on Linux, too.
3432 2004-10-31 Hans Breuer <hans@breuer.org>
3434 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
3435 to finally fix the long lasting clipping issue, bug #85831
3436 Also fixed the line style issue for printing on XP and don't
3439 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3441 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3442 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
3444 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
3445 some info from the console (soon gone on windoze) to message_error()
3446 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3447 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3449 plug-ins/python/diasvg_import.py : re.compile() only once per expression
3450 and some more playing with scaling
3452 * plug-ins/python/makefile.msc : updated
3454 2004-10-30 Hans Breuer <hans@breuer.org>
3456 * shapes/Civil/civil_arrow_right.shape : removed
3457 <aspectratio type="fixed" /> thus allowing to change
3458 width and height independently, fixes #154897
3459 (Serge Robinson) by making it consistent with the
3462 2004-10-30 Hans Breuer <hans@breuer.org>
3464 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3465 on arrow being NULL, fixes bug #143063
3467 2004-10-30 Hans Breuer <hans@breuer.org>
3469 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3470 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3471 removed use of chached variable DiagramData::selected_count
3472 * lib/diagramdata.h : renamed to selected_count_private
3473 (kept for binary compatibility and sanity checks)
3474 * lib/diagramdata.c : more checks on a screwed up selection list
3476 * app/diagram.c(diagram_group_selected) : don't screw up the
3477 DiagramData::selected list, was assignment of parent_list_affected(),
3478 * lib/diagramdata.c (data_select, data_unselect) : protect against
3479 multiple selections of the same object and removement of a not selected
3480 object (apparently caused by the recently added group undo stuff)
3481 together with the above this finally fixes bug #153525
3483 * app/Makefile.am : fix ./autogen.sh ->
3484 app/Makefile.am:171: blank line following trailing backslash
3486 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3487 ddisplay_do_update_menu_sensitivity() here as well
3489 * configure.in : make the experimental state of the cairo plug-in
3492 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3493 try to update anything if we can't find an active diagram
3494 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3496 * configure.in : another attempt to fix bug #156116. If there is
3497 anyone with autotools knowledge reading this - help appreciated ;-)
3499 2004-10-30 Hans Breuer <hans@breuer.org>
3501 * objects/makefile.msc objects/UML/Makefile.am
3502 objects/UML/uml.c objects/UML/transition.c
3503 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
3504 Patch from Peter Allin adds statechart transitions to the UML sheet -
3505 bug #144956 - modified to not print("%s", NULL) which crashes on
3506 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3508 2004-10-30 Hans Breuer <hans@breuer.org>
3510 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
3511 match the website anymore, i.e. sould remain unchanged.
3512 See below and lib/dia_xml.h for the reasoning
3514 * lib/libdia.def : removed dia_color_selector_get_type
3516 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3517 (like broken PNG) and g_warning if appropriate
3519 * app/interface.c : #include "message.h"
3521 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3522 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3523 better to just move diaunitspinner to lib/ instead of polluting
3524 widgets.[hc] even more ;)
3525 * app/makefile.msc lib/libdia.def : updated
3527 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3528 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3530 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3531 do something useful when compiled
3533 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3534 Also some more #ifdefed backends usage.
3536 2004-10-10 Lars Clausen <lars@raeder.dk>
3538 * lib/widgets.c: Better labels for color selector menu.
3540 * app/dia-props.c (diagram_properties_respond):
3541 * app/preferences.c (prefs_get_value_from_widget): Don't assume
3542 that a dia color selector is of type DiaColorSelector:)
3544 * lib/widgets.[ch]: Color selector changed to dynamic menu.
3546 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3549 2004-10-09 Lars Clausen <lars@raeder.dk>
3551 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3552 arrow preview to avoid long arrow heads flipping.
3554 * lib/arrows.[ch]: Support for getting from name to arrow type,
3555 and for listing all arrow names.
3557 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3559 * lib/libdia.def: Added new global functions.
3561 * lib/persistence.[ch]: Two of the persistent_list functions to
3562 return whether the item was found in the list.
3564 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3565 the growing number of sheets.
3567 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3570 2004-10-05 Lars Clausen <lars@raeder.dk>
3572 * objects/UML/association.c: Patch from Harvey Thompson
3573 <harveyandsu@yahoo.com>: Better placement of association texts.
3575 2004-10-03 Lars Clausen <lars@raeder.dk>
3577 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3578 use the fonts in question. Can't set tooltips with the name since
3579 lib objects don't know the tool_tips thing, which is rather
3582 2004-09-19 Hans Breuer <hans@breuer.org>
3584 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3585 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3587 2004-09-19 Hans Breuer <hans@breuer.org>
3589 * dia.desktop.in : string changes as proposed in bug #151822
3591 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3592 appearts not to be needed on Linux and breaks the build
3593 on OSX. Fixes bug #152970
3595 2004-09-18 Lars Clausen <lars@raeder.dk>
3597 * app/commands.c (view_show_all_callback): Add a bit of border
3598 around Ctrl-E'd diagram, for easier select and better view of edges.
3600 2004-09-19 Hans Breuer <hans@breuer.org>
3602 * app/Makefile.am : trying to fix the fix from 2004-02-15
3603 Overwriting AM_LDFLAGS still gave a automake warning and it
3604 also appeard to break linking against gtklibs in a differnt
3605 prefix. Use dia_LDFLAGS instead.
3607 * plug-ins/svg/svg-import.c : initialize 'end' before usage
3608 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3610 * lib/diarenderer.c : don't try to draw lines which are so much
3611 degenerated that their point count became negative, fixes bug #148139
3613 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
3614 strings (NULL from g_strdup())
3616 2004-09-10 Steffen Macke <sdteffen@web.de>
3618 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3619 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3620 * app/create_object.c:
3621 * app/diaunitspinner.c:
3622 * app/disp_callbacks.c:
3624 * app/modify_tool.c:
3625 * lib/prop_geomtypes.c:
3626 * lib/prop_geomtypes.h: made compile with msvc
3628 2004-09-10 Lars Clausen <lars@raeder.dk>
3630 * lib/widgets.c: Insulate conversion from outside API by adding
3631 internal function to set value. Adjustment not appropriate for
3634 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3636 2004-09-07 Lars Clausen <lars@raeder.dk>
3638 * app/diapagelayout.c: Include from widgets.c rather than
3641 2004-09-03 Lars Clausen <lars@raeder.dk>
3643 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3644 as unit-based property testbed.
3646 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3647 and fontsize widgets.
3649 * app/Makefile.am (dia_core_files):
3650 * app/diaunitspinner.h:
3651 * app/diaunitspinner.c:
3653 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3654 lib/widgets.[ch], as it's used in the properties code now.
3656 2004-08-31 Steffen Macke <sdteffen@web.de>
3658 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3660 2004-08-30 Lars Clausen <lars@raeder.dk>
3663 * app/diagram.c (diagram_remove_all_selected): Remove debugging
3668 * app/disp_callbacks.c:
3670 * app/create_object.c:
3671 * app/textedit.[ch]:
3672 * app/modify_tool.c:
3675 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3676 current input object, multiple inputs per object, and tabbing
3679 2004-08-28 Steffen Macke <sdteffen@web.de>
3681 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3682 allow separate installer component "Translations"
3684 2004-08-27 Akagic Amila <bono@linux.org.ba>
3686 * configure.in: Added 'bs' to ALL_LINGUAS.
3688 2004-08-26 Steffen Macke <sdteffen@web.de>
3690 * app/makefile.msc: using /subsystem:windows again
3691 * makefile.msc: updated ALL_LINGUAS
3693 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
3695 * configure.in: Add «nb» to ALL_LINGUAS.
3697 2004-08-21 Steffen Macke <sdteffen@web.de>
3699 * plug-ins/dxf/dxf-export.c: Patch from
3700 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3702 2004-08-17 Lars Clausen <lars@raeder.dk>
3705 * dia.spec (Release):
3711 2004-08-13 Ankit Patel <ankit@redhat.com>
3713 * configure.in: Added "gu" in ALL_LINGUAS.
3715 2004-08-07 Lars Clausen <lars@raeder.dk>
3721 * dia.spec (Release):
3722 * NEWS: New release 0.94-pre6
3724 2004-08-07 Lars Clausen <lars@raeder.dk>
3726 * app/highlight.c (highlight_reset_objects): Unhighlight inside
3730 * plug-ins/shape/shape-export.c: String capitalization fix from
3731 Alan Horkan <horkana@tcd.ie>
3733 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3734 Class object menu kinda work, rather than blow up. Doesn't do a
3735 proper undoable change yet.
3737 2004-08-06 Lars Clausen <lars@raeder.dk>
3739 * app/filedlg.c (file_save_as_callback): Don't remove related
3740 dialogs from the NULL diagram.
3742 2004-08-02 Lars Clausen <lars@raeder.dk>
3747 * dia.spec (Release):
3748 * NEWS: Pre5 with leak fix.
3750 * lib/font.c (dia_font_build_layout): Don't try to save an
3751 allocation of LayoutCacheItem if it breaks layout cache hash.
3752 Also make hash function correct, remove explicit height entry
3753 (it's in pfd), and make sure things are correctly unreffed.
3754 Finally fixes #148141.
3756 * lib/text.c (text_set_attributes, text_set_font): Safely unref
3757 when changing font, and actually set the new font in
3759 (text_get_attributes): Ref copied font.
3761 2004-08-01 Lars Clausen <lars@raeder.dk>
3765 * dia.spec (Release):
3768 * doc/en/dia.xml: Prerelease 4.
3770 * lib/font.c (dia_font_build_layout): Better comparision and
3771 freeing of font cache.
3773 2004-07-31 Lars Clausen <lars@raeder.dk>
3775 * lib/font.c (dia_font_build_layout): Faster update to avoid
3778 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3779 Correctly initialize export filter variable.
3781 2004-07-25 Lars Clausen <lars@raeder.dk>
3783 * dia.spec (Release):
3788 * doc/pl/dia.xml: Pre3 coming out.
3790 * lib/diarenderer.c (draw_polygon):
3791 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3792 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3793 rather than O (letter), and assert num_points > 1 rather than the
3796 * app/recent_files.c:
3799 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3800 Make filenames conform to filesystem encoding.
3802 * RDP/.cvsignore: Added standard ignore.
3804 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3805 last entry patch-panel, too.
3808 * shapes/Circuit/*.png:
3809 * shapes/Civil/*.png:
3810 * shapes/Contact/*.png:
3811 * shapes/Electric/*.png:
3813 * shapes/Pneumatic/*.png:
3815 * shapes/flowchart/*.png:
3816 * shapes/jigsaw/*.png:
3817 * shapes/network/*.png:
3818 * shapes/sybase/*.png:
3820 * dia_gnome_icon_large.png:
3821 * doc/pl/graphics/*.png: Set -kb for PNGs.
3823 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3825 2004-07-22 Lars Clausen <lars@raeder.dk>
3831 * dia.spec (Release):
3832 * configure.in: Update to version 0.94-pre2.
3834 * app/load_save.c (diagram_data_write_doc): Use new namespace
3837 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3838 hidden objects properties.
3840 * objects/standard/line.c: Remove halffinished line gap box from
3843 * app/paginate_psprint.c:
3844 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3845 Immidi): Close export and print dialog with diagram as well.
3848 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3849 borelli): Remove deprecated stuff (#137693)
3851 * app/dia-props.c (create_diagram_properties_dialog): Patch from
3852 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
3855 2004-07-21 Ray Strode <rstrode@redhat.com>
3857 * dia/dia.desktop.in: Add MimeType line to desktop file
3860 2004-07-18 Hans Breuer <hans@breuer.org>
3862 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
3863 sheets/UML/*.png : icons in png format
3864 Partial fixup of stuff broken with the following comment:
3865 "7 days : xpm->png, namespace fix, first rotation bits."
3867 * app/load_save.c(read_objects) : don't add objects to the layer.
3868 This function is called recursively and only the topmost objects
3869 belong in the layers object list. Fixes bug #145417 and is the
3870 the real fix for bug #142480
3872 * app/app_procs.c : make the --size hack even uglier, but work again
3874 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3875 but g_free() what is returned by g_build_filename()
3877 * objects/custom/custom_object.c(custom_destroy) : handle all enum
3878 values in switch to get rid of the warning
3880 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
3881 of setlocale()/strtod()
3882 * lib/dia_svg.c : dito
3883 * lib/dia_xml.c : almost
3885 * plug-ins/python/group_props.py : use the string representation of
3886 value to ensure "unique values". If the strings would not be different
3887 the user cann't see the difference either
3889 2004-07-17 Lars Clausen <lars@raeder.dk>
3891 * lib/persistence.h: Have "void" in prototypes (#142663)
3893 * lib/widgets.c (dia_font_selector_init): Better string handling
3896 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
3898 * objects/standard/image.c (image_load): Use path of diagram
3899 rather than running directory as base for image file place.
3901 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
3904 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
3905 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
3907 * Re-added new sample diagrams binarily.
3909 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
3911 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
3912 Disabled keyboard accels when dragging an object.
3914 2004-07-14 Lars Clausen <lars@raeder.dk>
3916 * app/grid.c (snap_to_grid): Use diagrams grid setting to
3917 determine hex grid snap.
3919 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
3921 * app/interface.h: Avoid multiply defined symbols (#147396)
3923 2004-07-10 Lars Clausen <lars@raeder.dk>
3925 * app/sheets_dialog_callbacks.c (write_user_sheet):
3926 * lib/sheet.c (load_register_sheet): Don't introduce double
3927 slashes in namespace.
3929 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
3930 old diagrams, or XSLT will barf all over.
3932 * shapes/RDP/place.shape:
3933 * shapes/RDP/transition.shape:
3934 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
3935 shapes to use those.
3937 2004-07-07 Lars Clausen <lars@raeder.dk>
3940 * doc/{en,pl}/dia.xml:
3943 * NEWS: First prerelease of version 0.94. Now with release
3944 versions in a branch and main devel in the trunk.
3946 2004-07-05 Hans Breuer <hans@breuer.org>
3948 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
3949 -std=c89. Mostly //-comments and M_PI -> G_PI
3950 [Istar, Jackson, KAOS were removed from build cause they
3951 simply have *too* much C++ comments ;]
3952 * object/UML/association.c : use g_strdup() not plain strdup()
3953 * app/paginate_psprint.c : avoid storage size of `pipe_action'
3954 isn't known with more portable signal code
3956 * app/app_procs.c : don't call gtk_init() if just --version
3957 is requested (bug #144321, Vladimir Kondratiev)
3959 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
3960 DiaFont* if not NULL
3961 * objects/UML/class.c : moved fill_in_fontdata() to
3962 umlclass_load() to avoid such trouble, though unsure if
3963 this really is an improvement...
3965 * shapes/network/makefile.am : patch-panel added here too
3967 2004-07-04 Hans Breuer <hans@breuer.org>
3969 * sheets/network.sheet.in shapes/network/patch-panel.xpm
3970 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
3971 fixes bug #136629, James McDonald
3973 2004-07-04 Hans Breuer <hans@breuer.org>
3975 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
3976 lib/object_defaults.c : revert changing of Dia's XML namespace
3977 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
3978 about its purpose and relation to real world urls.
3980 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
3981 added comment about when to do so
3982 [Should have been long time ago and probably multiple times
3983 to avoid crashing on older plug-ins]
3984 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
3985 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
3987 * lib/object.c objects/UML/class.c : there are still compilers not
3988 supporting C99 and other GCCISMs like allocating dynamic sized arrays
3990 * objects/UML/class.h : there is a differnce between a list pointer
3991 and a list pointer pointer. We and GLib want the former.
3993 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
3994 if Gtk is initialized. Using gdk_display_get_default () avoids the
3995 app/* dependency and is also closer to the requirements of the
3998 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
3999 some #ifdefed support for Cairo backends not public available yet.
4001 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
4002 windoze platform supports them. This should fix bug #109818, at
4003 least for the majority running NT or above ...
4004 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
4006 * objects/makefile.msc : build Istar, Jackson and Kaos
4008 * objects/UML/class.c(umlclass_load) : don't wrap by default to
4009 keep old diagrams as they were - instead of this nice new effect ;-)
4010 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
4012 * objects/UML/class.c : mark for translation _("Wrap ...
4014 * objects/UML/class.c : more correct types, also some default properties
4015 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
4017 * objects/UML/activity.c : removed a leftover from the
4018 use-localization-for-font-substitution-hack
4020 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
4021 'cvs admin -kb *.png' PNG files should already be *added* as binary,
4022 otherwise they are not readable on line-end-converting-platforms
4024 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
4025 filter_get_by_name()
4027 * plug-ins/python/pydia-property.c : some more g_warnings for
4028 not implemented conversions
4030 * plug-ins/python/group_props.py : ensure unique property values
4031 at the right place. Now something like :
4032 - load an old UML class diagram
4033 - change one of the classes to wrap operations
4034 - select all classes (/Select/Same Type)
4035 - /Dialogs/Group Properties : check wrap_operations, select '1'
4036 - Ok, works like a charm :-)
4038 2004-07-04 Lars Clausen <lars@raeder.dk>
4040 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
4043 2004-07-03 Lars Clausen <lars@raeder.dk>
4045 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
4046 <LAV@VL3143.spb.edu>: Fixes console output problems and some
4047 interactiveness problems.
4049 2004-07-02 Lars Clausen <lars@reader.dk>
4051 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
4052 app isn't interactive.
4054 2004-07-01 Lars Clausen <lars@raeder.dk>
4056 * plug-ins/cairo/diacairo.c: Add init of last field of filter
4057 struct to remove crash.
4059 * sheets/Makefile.am (sheet_in_files):
4060 * shapes/Makefile.am:
4061 * sheets/ChemEng.sheet.in:
4062 * shapes/ChemEng/Makefile.am:
4064 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
4065 Chemical engineering shapes.
4067 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
4068 multiple arguments when using devel script.
4070 * app/display.c (new_display):
4072 * lib/diagramdata.c (new_diagram_data):
4073 * lib/diagramdata.h:
4074 * app/preferences.h:
4075 * app/preferences.c:
4078 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
4079 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
4082 * doc/pl/authors.xml:
4083 * doc/en/authors.xml:
4084 * lib/object_defaults.c (dia_object_defaults_save):
4085 * readme.win32 (BTW):
4086 * lib/persistence.c (persistence_save):
4087 * app/load_save.c (diagram_data_write_doc):
4088 * app/commands.c (help_about_callback):
4089 * README: Fix links to home page.
4092 * app/load_save.c (diagram_data_load):
4093 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
4094 loading, and guard against them when fonting.
4096 * lib/diarenderer.c (draw_rounded_polyline): Patch from
4097 anthonym@overture.com: Make limited rounding a corner-specific
4098 rendering-only thing.
4100 2004-06-30 Lars Clausen <lars@raeder.dk>
4102 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
4103 adjustment: If you can't fix it, at least don't change it.
4105 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
4106 code instead of individual code in here.
4108 2004-06-29 Lars Clausen <lars@raeder.dk>
4110 * objects/UML/association.c: Patch from Kiran
4111 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
4116 * lib/diarenderer.c (draw_rounded_polyline):
4117 * objects/standard/polyline.c (polyline_draw):
4118 * objects/standard/zigzagline.c (zigzagline_draw):
4119 Patch from anthonym@overture.com: Add rounded polylines.
4121 2004-06-27 Lars Clausen <lars@raeder.dk>
4123 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
4125 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
4126 free family list before taking out the pointer we need. Also set
4127 the entry_nr correctly so we get the menu set up right.
4129 2004-06-23 Lars Clausen <lars@raeder.dk>
4131 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
4132 images at the right place.
4134 * objects/Istar/actor.c
4135 * objects/Istar/goal.c
4136 * objects/Istar/istar.c
4137 * objects/Istar/istar.h
4138 * objects/Istar/link.c
4139 * objects/Istar/other.c
4140 * objects/Jackson/domain.c
4141 * objects/Jackson/jackson.c
4142 * objects/Jackson/jackson.h
4143 * objects/Jackson/phenomenon.c
4144 * objects/Jackson/requirement.c
4145 * objects/KAOS/goal.c
4146 * objects/KAOS/kaos.c
4147 * objects/KAOS/kaos.h
4148 * objects/KAOS/metaandorrel.c
4149 * objects/KAOS/metabinrel.c
4150 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
4151 <cp@cetic.be>: Fix instability issues caused by not returning NULL
4152 in *_move_handle and *_move. Also improved the headers with
4153 correct (c) information.
4155 2004-06-22 Lars Clausen <lars@raeder.dk>
4157 * objects/KAOS/goal.c:
4158 * objects/KAOS/other.c:
4159 * objects/Istar/actor.c:
4160 * objects/Istar/goal.c:
4161 * objects/Istar/other.c:
4162 * objects/Jackson/domain.c:
4163 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
4164 <cp@cetic.be>: Fix resize issues.
4166 * app/filedlg.c (file_dialog_hide): Patch from Kiran
4167 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
4168 related dialog. #129520.
4170 * app/dia-props.c (diagram_properties_show): Patch from Kiran
4171 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
4172 a child of its diagram. #129520.
4174 * objects/UML/association.c (association_load): Patch from Kiran
4175 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
4176 text placement. #118313.
4178 2004-06-17 Lars Clausen <lars@raeder.dk>
4180 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
4182 * Makefile.am: Make THANKS only be generated by maintainers.
4184 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
4187 * configure.in: Added three missing Makefiles.
4191 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
4192 diagram-related (save) dialog when closing diagram. To be
4193 extended to other dialogs.
4195 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
4197 * samples/Istar.dia:
4198 * samples/Jackson.dia:
4200 * sheets/Istar.sheet.in:
4201 * sheets/Jackson.sheet.in:
4202 * sheets/KAOS.sheet.in:
4207 * objects/Jackson/*:
4210 * objects/Makefile.am (SUBDIRS):
4211 * sheets/Makefile.am (SUBDIRS):
4212 * samples/Makefile.am: Additions from Christophe Ponsard
4213 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
4216 2004-06-12 Lars Clausen <lars@raeder.dk>
4219 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
4221 * lib/font.h: Toning down comments a bit:)
4223 * lib/font.c (dia_font_build_layout): Playing around with DPI
4225 * objects/UML/association.c (association_load): Avoid crashes on
4228 * objects/UML/association.c: Patch from kimmidi@novell.com:
4229 Improve placement of labels when vertical. Part fix of #118313
4231 * lib/object.c (dia_object_is_selected): Grouped objects are not
4232 selected, only the group itself. Thus, don't crash when grouping
4235 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
4236 on how to represent empty strings. Fixes #143639.
4238 * lib/object.c (dia_object_is_selected): Added comment answer.
4240 2004-06-12 Hans Breuer <hans@breuer.org>
4242 * lib/diagramdata.c lib/object.c : deal with grouped objects
4243 not knowing their parent_layer, i.e. avoid crashing in
4244 dia_object_is_selected() via group_draw() [ Triggered by
4245 playing with the Visio generated svg from bug #143455 ]
4247 * plug-ins/python/diasvg_import.py : started to implement
4248 transformation="translate(...)" and <style/> handling. Also
4249 use some other completely bogus values for em/ex scaling
4251 2004-06-08 Lars Clausen <lars@raeder.dk>
4253 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4255 2004-06-07 Lars Clausen <lars@raeder.dk>
4257 * app/layer_dialog.c (layer_dialog_set_diagram):
4258 * app/display.c: Layer widget crash more properly dealt with in
4261 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
4262 widget deselect was called during destroy, but called
4263 ddisplay_flush, leading to a new display timeout after renderer
4266 * lib/widgets.c (dia_toggle_button_destroy):
4267 * app/recent_files.c (recent_file_menuitem_create):
4268 * lib/persistence.c (persistence_save_list):
4269 * app/commands.c (edit_delete_callback):
4270 * lib/object_defaults.c (dia_object_defaults_save):
4271 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4274 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4277 * lib/diagramdata.c (new_layer): Initialize connectibility.
4279 * app/display.c (ddisplay_obj_render):
4280 * app/diagram.c (diagram_find_closest_connectionpoint): Take
4281 connectibility into account.
4283 * app/layer_dialog.h (struct _DiaLayerWidget):
4284 * app/layer_dialog.c:
4285 Connectible toggle updates, now works fairly well.
4287 * app/select.c (select_transitive_callback): Make sure we're only
4288 selecting in the same layer.
4290 2004-06-04 Lars Clausen <lars@raeder.dk>
4292 * app/pixmaps/Makefile.am: Also install connectable images.
4294 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4295 layer toggles from layer itself. Also update diagram correctly
4296 for visibility. Still need updates for connectivity behaviour.
4298 2004-06-03 Hans Breuer <hans@breuer.org>
4300 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4302 * lib/diagdkrenderer.c(set_linejoin) : actually set
4303 join_style not cap_style
4304 (set_dashes): with the correct number of dashes
4306 2004-06-03 Lars Clausen <lars@raeder.dk>
4308 * app/modify_tool.c (click_select_object):
4309 * lib/text.c (text_set_cursor):
4310 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4312 2004-05-31 Hans Breuer <hans@breuer.org>
4314 * lib/object_defaults.c : don't 'failed to load external
4315 entity "NULL"' when the defaults file does not exist,
4316 bug #108764 [again: somehow this got lost]
4318 * app/paginate_gdiprint.cpp : don guess the WMF export
4319 filter used for printing but find it by unique name.
4320 Also update for export_func renaming
4321 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4322 provide some unique names
4324 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
4325 app/select.c : fix bug #140789 by always checking if there
4326 still is an active diagram before accessing it
4328 * app/defaults.c app/properties.c : user visible string should
4329 not read DiaObject but stay as "Object defaults/properties"
4331 * app/app_procs.c : reduce the hack to pass --size to the
4332 export via user_data to the only filter supporting it. Other
4333 filters would crash on it or do worse ;(
4335 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4337 2004-05-31 Lars Clausen <lars@raeder.dk>
4340 * lib/widgets.c: Use GtkType rather than guint for
4341 dia_size_selector_get_type.
4343 2004-05-29 Lars Clausen <lars@raeder.dk>
4345 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4346 that it matches the screen output for selfoverlapping polygons and
4349 2004-05-28 Hans Breuer <hans@breuer.org>
4351 * app/load_save.c : ignore empty groups on load and don't
4352 write empty groups while saving
4353 * lib/group.h (group_update_data): there is no first object
4354 in empty groups and they probably don't need an update at
4355 all. Maybe the shold just not exist ?
4357 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4358 text positioning as well as drawing of images with alpha
4360 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4361 HAVE_WINDOWS_H or G_OS_WIN32 is defined
4363 2004-05-28 Lars Clausen <lars@raeder.dk>
4365 * app/pixmaps/Makefile.am (imagedir):
4366 * app/pixmaps/visible.png:
4367 * app/pixmaps/visible-empty.png: New images for the visibility
4368 button in the layer dialog.
4370 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4371 more border around the button. Still some left when hovering the
4372 mouse or selecting, and the grey background is annoying.
4374 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4375 visibility connector.
4377 2004-05-26 Lars Clausen <lars@raeder.dk>
4379 * configure.in (DB2MAN): Better check for db2man docbook place.
4380 Need something even better.
4382 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4384 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4385 extraeneous borders.
4388 * dia_gnome_icon.png:
4389 * samples/render-test.dia: Rendering test from Hans.
4391 2004-05-24 Hans Breuer <hans@breuer.org>
4393 * lib/filter.h : renamed DiaExportFilter::export to
4394 _DiaExportFilter::export_func (should not use c++
4395 keywords (g++ specifc ?) in headers. Same for import
4396 out of pure symmetry reasons
4397 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4398 app/diagram.c app/filedlg.c : reflect functions renaming
4400 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4401 under *NIX, too. [If you want something done, do it yourself ;-]
4402 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4403 with wmf.cpp's GDI usage
4404 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4405 [For the moment it does not much more than compiling, i.e.
4406 the produced WMF files are invalid, if not created on windoze.]
4408 * configure.in : check for C++ to compile plug-in/wmf
4410 * objects/GRAFCET/boolequation.c : looks like fixing
4411 another leak (untested)
4413 2004-05-23 Hans Breuer <hans@breuer.org>
4415 * acinclude.m4 : another attempt to fix
4416 bug #142032 (still not sure it's the right one,
4417 but works for me(tm), which the other does not ;)
4419 * plug-ins/cairo/Makefile.am
4420 plug-ins/Makefile.am
4421 configure.in : support building the new cairo
4422 plug-in, if given --with-cairo and the cairo
4423 packages are found, see http://cairographics.org
4424 and also http://hans.breuer.org/dia/dia-cairo.htm
4426 * plug-ins/cairo/diacairo.c : make it compile
4427 with DEBUG_CAIRO defined, too.
4429 2004-05-23 Hans Breuer <hans@breuer.org>
4431 * plug-ins/cairo/Makefile.am : initial attempt
4433 * plug-ins/cairo/diacairo.c : a new exporter based on
4434 Cairo http://cairographics.org rendering api. Currently
4435 it just can export PNG and PS but one day it might get
4436 PDF and more almost for free. [It is not yet included
4437 in the *NIX build system due to lack of auto* magic.]
4439 * plug-ins/pixbuf/pixbuf.c : always register the export
4440 filter part. If the user does not want it it can be
4441 disabled by File/Plugins or explicit selected the other
4442 one in the Export Formats List
4444 2004-05-23 Hans Breuer <hans@breuer.org>
4446 * lib/dia_dirs.c : #include "message.h"
4447 lib/widgets.c : #include "persistence.h"
4448 lib/widgets.c(dia_font_selector_init) : still not C99
4449 lib/persitence.h : removed unimplemented prototype
4450 lib/persitence.c(persistence_load_list) : still not C99
4451 app/create_object.c : #include "highlight.h"
4452 app/layer_dialog.c : #include "widgets.h"
4453 app/modify_tool.c : prototype functions before usage
4454 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4455 [otherwise one will have a hard time to make C++ compile ;]
4456 lib/dia_dirs.c : #include "message.h"
4457 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4460 * plug-ins/xfig/xfig-import.c : dont initialize an int with
4463 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4464 as documented, i.e. _not_ copying. Plugs a memory leak in
4465 lib/dialibartrenderer.c
4467 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4468 to radius to more of a clue what it is representing
4470 * */makefile.msc lib/libdia.def : updated
4472 ChangeLog : fixed some date copy&paste bug
4474 2004-05-21 Lars Clausen <lars@raeder.dk>
4476 * NEWS: Release tag.
4478 * config.h.win32: Now 0.93+cvs
4480 * RELEASE-PROCESS: Update with new info about release branches.
4482 * Many files: Moved devel branch back into main trunk. Should
4483 have been done in the opposite way, with release in a branch.
4485 2004-05-20 Hans Breuer <hans@breuer.org>
4487 * acinclude.m4 : disable setting of PYTHON_PREFIX
4488 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4489 as workaround for bug #142032 (the real fix would
4490 involve some auto* knowledge which I don't have
4493 * plug-ins/python/Makefile.am : more python
4494 plug-ins to be installed (especially svg import,
4495 but also 'simple scale' should be useable
4498 * plug-ins/python/scascale.py : update display
4499 after modifying selected objects
4501 * plug-ins/python/diasvg_import.py : initialize
4504 2004-05-18 Lars Clausen <lars@raeder.dk>
4506 * app/diagram_tree.c (select_node): Use
4507 diagram_remove_all_selected to kill selected list.
4509 * lib/font.c: Set language when using a different context.
4511 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4512 and removed ctype include (#142661).
4514 * lib/paper.c (get_default_paper): Changed isalnum to
4515 g_ascii_isalnum and removed ctype include. (#142661)
4517 * objects/custom/shape_info.c:
4519 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4521 2004-05-17 Hans Breuer <hans@breuer.org>
4523 * lib/object_defaults.c : don't 'failed to load external
4524 entity "NULL"' when the defaults file does not exist,
4527 * lib/widgets.c : fixed possible menu leak
4528 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4529 avoid finalization of floating references, bug #142307
4531 2004-05-15 Lars Clausen <lars@raeder.dk>
4533 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4534 fonts better (#138655)
4536 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4538 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4539 dist, xml, dbk and man. Also the sub-xml files. (#142098)
4541 * Makefile.am (CLEANFILES):
4542 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4543 translation-reports, they are generated automagically. THANKS
4544 file not considered locally generated, so is not locally
4547 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4549 * lib/diaarrowchooser.c:
4550 * lib/prop_attr.c: Fixing naming for arrowselector.
4552 * objects/UML/object.c (objet_type): Oops, little too aggressive
4553 with the DiaObject thing here:)
4555 * objects/custom/shape_info.c (parse_svg_node): Use
4556 g_ascii_isdigit instead of isdigit.
4558 * app/diaunitspinner.c (dia_unit_spinner_update):
4559 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4560 instead of isspace avoids char subscript issues (#142467).
4562 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4563 return value conflict.
4565 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4566 value conflict. Also improved signature. (#142466)
4568 * app/load_save.c (diagram_data_load): Don't overwrite the list in
4569 the layer, but instead free the returned list (#142480)
4571 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4572 for the grid widget.
4574 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4576 * configure.in (DB2MAN): Currently just check for two known
4577 positions for the docbook xsl. Don't know a generic way to find
4578 this info. Ought to add an option for it, but then it's really
4579 only required for maintainers, I think. Maybe.
4581 * app/display.c (update_snap_grid_status): Remove nasty image
4582 toggling code not require for grid toggle button anymore. (#142475)
4584 * app/interface.c (create_display_shell): Use
4585 dia_toggle_button_new_with_images to create grid toggle button.
4586 Much nicer. (#142475)
4588 * app/menus.c (menus_initialize_updatable_items): Free the string
4589 along with the GString. (#142475)
4591 * lib/intl.c (free_alias_table): Free hash table entries in a
4592 proper way, avoiding duplicate frees. (#142475)
4594 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4595 not put in the hash (avoid reading freed memory). (#142476)
4597 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4599 (dia_font_selector_get_family_from_name): Stop leaking
4602 2004-05-14 Lars Clausen <lars@raeder.dk>
4604 * Transfer of fixes from release branch. Not the prettiest way to
4605 do it, this should be done during release, not afterwards.
4607 Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4609 * acinclude.m4: minor fixes (added missing [] quotation).
4611 Lars Clausen <lars@raeder.dk>:
4613 * app/interface.c (toolbox_delete):
4614 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4615 cancels quit due to modified diagrams.
4617 Samúel Jón Gunnarsson <sammi@techattack.nu>:
4619 * is.po: Added "is" to ALL_LINGUAS.
4621 Lars Clausen <lars@raeder.dk>:
4623 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4625 Hans Breuer <hans@breuer.org>:
4627 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
4628 burden should be shared and not be win32 only ;) [this time
4629 build was broken by adding GtkType to widget.h]
4631 * objects/standard/box.c objects/standard/ellipse.c :
4632 for code clarification compare (obj->aspect != FREE_ASPECT)
4633 and not (obj->aspect); no binary effect.
4635 * app/paginate_psprint.c : don't leak printcmd
4637 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4638 standard C requires variables to be declared at the beginning of
4639 a block, also there is no fabsf() with msvc
4641 * app/win32print.[ch] : make win32_printer_close() return an
4642 error code, it's used as pclose replacement
4644 Lars Clausen <lars@raeder.dk>:
4646 * RELEASE-PROCESS: Mention PATCH keyword in release process.
4648 2004-05-06 Lars Clausen <lars@raeder.dk>
4650 * lib/widgets.[ch]: Utility function to make a widget with two
4651 images (selected and non-selected).
4653 * lib/diagramdata.h: Renamed selectable to connectable.
4654 Selectable will come later.
4657 * app/pixmaps/Makefile.am (imagedir):
4658 * app/pixmaps/connectable.png:
4659 * app/pixmaps/connectable-empty.png: New images for the
4660 selectability widget. Proper installation, too.
4662 * app/layer_dialog.[ch]: Adding new button showing connectability
4663 status. Much cleaner way of doing the button, but some problems
4664 with the item getting selected
4666 * lib/widgets.h: Reminder of how to install images for use by
4667 dia_get_image_from_file.
4669 2004-05-05 Lars Clausen <lars@raeder.dk>
4671 * objects/network/Makefile.am:
4672 * objects/network/pixmaps/radiocell.xpm:
4673 * objects/network/pixmaps/basestation.xpm:
4674 * objects/network/network.c:
4675 * objects/network/basestation.c:
4676 * objects/network/radiocell.c:
4677 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4680 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4681 Backslash arrow head.
4683 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4684 Notify takes care. Should maybe use that more.
4686 * lib/diagramdata.[ch]:
4687 * app/filedlg.c (file_export_ok_callback):
4688 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4690 * app/dia-props.c (diagram_properties_respond):
4691 * app/diagram.c (diagram_set_modified):
4693 * app/disp_callbacks.c:
4695 * app/load_save.c (diagram_save):
4696 Better handling of undo and modified status -- only diagram
4697 properties and page setup explicitly set modified status, all
4698 other important changes should be done through the undo stack
4701 2004-05-04 Lars Clausen <lars@raeder.dk>
4703 * app/app_procs.c (app_init): Consistently open a new diagram if
4704 none specified, with standard name Diagram1.dia.
4706 * app/layer_dialog.c:
4707 * app/diagram.c (diagram_finalize):
4708 * app/commands.c (dialogs_layers_callback):
4709 * app/filedlg.c (file_export_ok_callback):
4710 * app/app_procs.c (app_exit):
4711 * app/display.c (display_set_active):
4712 * app/interface.c (dia_dnd_file_drag_data_received):
4713 * app/recent_files.c:
4714 Undone attempt at unifying the multi-diagram windows (like
4715 layers). It broke the layers and didn't make much sense for the
4716 diagram properties dialog anyway.
4720 * lib/diagramdata.c:
4722 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4723 many subclasses have to be fixed. Fixed remaining
4724 Object/ObjectType renaming issues.
4726 2004-05-02 Lars Clausen <lars@raeder.dk>
4728 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
4729 having to make all the children objects conform to
4730 GObject style at once? Warning! Does not compile right now.
4732 * many, many files: Rename Object to DiaObject in preparation for
4733 making it a GObject.
4735 * app/diagram.[ch]: Turn diagram into a real GObject.
4738 * app/filedlg.c: Correctly ref and unref diagram.
4740 * lib/diagramdata.h: Starting to turn it into a GObject as well.
4742 2004-05-02 Lars Clausen <lars@raeder.dk>
4744 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4747 * app/dia-props.c: Undo the attempt at making it really
4748 multi-diagram, now going for a one-diagram dialog.
4750 2004-04-30 Lars Clausen <lars@raeder.dk>
4752 * app/undo.c: Undoing broken undo stuff for diagram properties and
4753 page setup. Shouldn't be mixed into undo at all.
4755 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4756 function to avoid in particular the grid crawling.
4758 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4759 to allow aligning dashes, so they don't crawl.
4761 2004-04-28 Lars Clausen <lars@raeder.dk>
4763 * app/Makefile.am: New files diacanvas.[ch]
4765 * app/interface.c (create_display_shell): Use new diacanvas that
4766 allows placing widgets on canvas, for text edit.
4769 Early work towards rotation. No implementation yet.
4771 * app/layer_dialog.c (undo_layer):
4772 * objects/network/bus.c (bus_create_change):
4773 * objects/standard/box.c (aspect_create_change):
4774 * objects/standard/ellipse.c (aspect_create_change):
4775 Use g_new0 for change struct.
4777 * app/undo.c (diagram_change_apply_or_revert):
4778 Support for undo of diagram properties and page setup.
4780 * app/disp_callbacks.c (ddisplay_canvas_events):
4782 * lib/diagramdata.h:
4783 * app/modify_tool.c (click_select_object):
4784 * lib/text.c (text_register_editable):
4785 Starting work on new text editing model. Guarded by #ifdef so
4788 2004-04-07 Lars Clausen <lars@raeder.dk>
4790 * app/recent_files.c (open_recent_file_callback):
4791 * app/interface.c (origin_button_press):
4792 * app/filedlg.c (file_open_ok_callback):
4795 * app/commands.c (dialogs_layers_callback): Using new
4796 diagram_set_current() function to ensure auxilliary windows are
4799 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
4800 menu now borken. *sniff*
4802 * app/dia-props.c: Diagram properties window attempted
4803 persistentified. Trying to make more like layer dialog (since it
4804 already changes when the diagram changes), but some things still
4807 2004-04-06 Lars Clausen <lars@raeder.dk>
4809 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
4810 * lib/attributes.c (attributes_set_default_line_style):
4811 * app/interface.c (create_lineprops_area):
4812 Make line style persistent as well. Added function to directly
4813 set the style and dashlength of a dialinechooser.
4815 2004-04-03 Lars Clausen <lars@raeder.dk>
4817 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4818 Copy the ellipse extra handle correctly.
4820 * objects/standard/box.c (box_move_handle): Move definitions
4821 according to bug #138925.
4823 2004-04-02 Lars Clausen <lars@raeder.dk>
4825 * app/recent_files.c: Use absolute name for recent files list.
4827 * lib/attributes.c: Set start and end arrow types, correctly.
4829 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4832 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4834 * app/interface.c (create_lineprops_area): Set persistently stored
4837 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4840 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4841 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
4843 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4844 with what xfig does. Text now converted from latin-1 to utf-8
4845 (latin-1, since that's what xfig seems to use. Would like to see
4846 examples of non-latin-1 figs). String case problems fixed.
4848 2004-04-01 Lars Clausen <lars@raeder.dk>
4851 * app/interface.c: Default arrows now stored persistently, too.
4853 * lib/arrows.[ch]: New function to get arrow type from name.
4855 * app/color_area.c (color_area_create):
4857 * app/linewidth_area.c: Also persistent colors and line width.
4858 That was easy. Arrows and line style will take a bit more work,
4861 2004-04-01 Lars Clausen <lars@raeder.dk>
4863 * app/preferences.c: All preferences are now
4864 handled by persistence, old prefs load and store code is gone.
4866 * lib/persistence.[ch]: Added string and color persistents. This is
4867 a different string from the one used in the printer dialog, that
4868 one has a GtkEntry attached -- may want to make that one an
4869 encapsulation of this one or something.
4871 2004-03-31 Lars Clausen <lars@raeder.dk>
4873 * app/app_procs.c: Do persistence before prefs. Prefs are to be
4876 * lib/persistence.[ch]:
4877 * app/preferences.c: Adding persistence for integers, reals,
4878 booleans. Fixed stupid list bug. Test persistence for prefs.
4880 2004-03-30 Lars Clausen <lars@raeder.dk>
4882 * app/recent_files.c:
4883 Debugging of deallocation.
4886 Font menu now uses persistence. Ordering needs fixing, or it must
4890 * lib/Makefile.am (libdia_la_SOURCES):
4891 * app/Makefile.am (dia_core_files):
4892 * app/persistence.[ch]:
4893 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
4894 number of fixes, including multiple entries now being read
4895 properly. Still some oddity about the persistent list having the
4896 role as first entry (which makes the font menu crash after a few
4899 2004-03-26 Lars Clausen <lars@raeder.dk>
4901 * app/persistence.c:
4902 * app/recent_files.[ch]: Redoing the recent-files list using
4903 persistence, reducing code by about 50%. Still a problem when
4904 selecting an item from the menu -- possibly it doesn't like the
4905 menu being destroyed while in the callback?
4907 2004-03-25 Lars Clausen <lars@raeder.dk>
4909 * app/persistence.c (persistence_load_string): Missing semicolon?!?
4911 2004-03-24 Lars Clausen <lars@raeder.dk>
4915 * app/persistence.[ch]:
4916 * app/paginate_psprint.c (diagram_print_ps): New type of data can
4917 be stored persistently: Strings. Only the printer command/file
4918 go in here now, but things like creator, organization, diagram
4919 comments etc could also be handled this way.
4921 * objects/standard/beziergon.c (beziergon_draw): Avoid control
4922 lines when the object is not selected.
4924 2004-03-23 Lars Clausen <lars@raeder.dk>
4926 * lib/connectionpoint.h:
4927 * app/load_save.c: Allow connection points to have names, and
4928 handle that in load/store.
4930 * lib/dialibartrenderer.c: Better highlighting for text.
4932 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
4933 * lib/diagdkrenderer.c: Better highlighting for all, using same
4934 principles as libart highlighter.
4936 2004-03-22 Lars Clausen <lars@raeder.dk>
4938 * lib/dialibartrenderer.[ch]:
4939 * lib/diagdkrenderer.c:
4945 * app/modify_tool.c:
4946 * app/create_object.c:
4947 * app/highlight.[ch]:
4948 Added simple object highlighting. In GDK rendering, highlights
4949 the bbox, in libart highlights the outline of the object (except
4952 2004-03-22 Lars Clausen <lars@raeder.dk>
4954 * RELEASE-PROCESS: Added info on how to do a branch for
4955 development during release process.
4957 2004-03-20 Lars Clausen <lars@raeder.dk>
4959 * RELEASE-PROCESS: Mention PATCH keyword in release process.
4961 2004-03-19 Lars Clausen <lars@raeder.dk>
4963 * xmldocs.make: Fixed apparent uninstall error.
4966 * doc/en/dia-manual.xml:
4967 * doc/pl/dia-manual.xml:
4970 * NEWS: Version 0.93-pre1.
4972 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
4973 borelli): Remove some deprecated stuff.
4975 2004-03-18 Lars Clausen <lars@raeder.dk>
4977 * Makefile.am: Try better uninstall thing for scrollkeeper.
4979 * objects/ER/entity.c:
4980 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
4981 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
4982 1, 1 exactly, as well as associative ER entities.
4984 2004-03-17 Lars Clausen <lars@raeder.dk>
4986 * Makefile.am: Make distcheck not complain about scrollkeeper
4987 problems (as per advice from James Henstridge).
4989 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
4990 standard installation.
4992 * objects/standard/ellipse.c: Better strings for object menu.
4994 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
4995 of dialogs (shame on you, glade!)
4997 * objects/custom/custom_object.c (custom_setup_properties):
4998 Removed debugging output
5000 * app/paginate_psprint.c (diagram_print_ps): Slightly more
5001 readable printer error messages.
5005 * doc/en/Makefile.am:
5006 * doc/pl/Makefile.am:
5007 New more standard way to install the XML-based manuals.
5009 2004-03-15 Lars Clausen <lars@raeder.dk>
5011 * objects/standard/box.c (box_move_handle): More intuitive fixed
5014 * objects/standard/ellipse.c:
5015 * objects/standard/box.c:
5018 * app/layer_dialog.[ch]:
5019 Patch from Steve Langasek <vorlon@debian.org>:
5020 Fixes startup crash on Alpha (bug #137169)
5022 * objects/standard/box.c: Aspect fixing like ellipses.
5024 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
5026 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
5027 pixmaps, now can uninstall properly.
5029 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
5030 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
5032 Added object menu access.
5034 2004-03-07 Hans Breuer <hans@breuer.org>
5036 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
5037 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
5038 would not use deprecated apis, but it's much simpler this way)
5040 * lib/makefile.msc : build the above new widgets and render_pixmap
5041 * lib/libdia.def app/dia.def app/makefile.msc : updated
5043 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
5044 what I saw, i.e. how big is an empty array supposed to be ? ;-).
5045 Previously it gave :
5046 disp_callbacks.c(188) : error C2059: syntax error : '}'
5047 disp_callbacks.c(191) : warning C4034: sizeof returns 0
5049 * app/interface.c : #include "dialinechooser.h"
5051 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
5052 [one more reason not to use it here : it's quite slow compared to
5053 the native win32 font renderer ;]
5055 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
5056 a GtkDialog*, removed unneeded cast
5058 * app/render_eps.c : avoid assignment warning for void* user_data
5061 2004-03-06 Steffen Macke sdteffen@web.de>
5063 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
5066 2004-03-06 Lars Clausen <lars@raeder.dk>
5068 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
5071 * lib/font.c: Simple cleanup system for layout cache removes any
5072 layout that hasn't been used for 10 minutes, but only during idle
5075 2004-03-05 Lars Clausen <lars@raeder.dk>
5077 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
5078 (lluis padro) (#130887): Extended Electric shapes with vertical
5081 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
5082 start with "Create a" or "A", always capitalize first word).
5084 * objects/standard/ellipse.c: Patch from Grégoire Dooms
5085 <dooms@info.ucl.ac.be>: Add extra connection point in center of
5086 ellipse. Additionally added a handle in the center, and resize is
5087 now around the center.
5090 * sheets/Makefile.am (SUBDIRS):
5091 * sheets/IsometricMap.sheet.in:
5092 * shapes/Map/Isometric/*
5093 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
5095 2004-03-04 Lars Clausen <lars@raeder.dk>
5098 * lib/pixmaps/Makefile.am:
5100 Better installation handling of pixmaps.
5102 * lib/diagdkrenderer.c:
5103 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
5104 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
5107 2004-03-03 Lars Clausen <lars@raeder.dk>
5109 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
5110 * lib/diagdkrenderer.c:
5111 * lib/diasvgrenderer.c:
5112 * lib/dialibartrenderer.c:
5113 * lib/diainteractiverenderer.c:
5114 * lib/prop_text.c (multistringprop_handle_key):
5116 * lib/dia_image.c (dia_image_rgba_data):
5118 * lib/diagramdata.c (layer_set_object_list):
5121 Getting rid of compile warnings.
5123 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
5124 images. Also remove unused decls.
5126 2004-03-02 Lars Clausen <lars@raeder.dk>
5129 * lib/widgets.c (dia_size_selector_init): Add images to the size
5130 selector chain widget. Also new function to load installed images
5131 from files (better than from included XPM, IMHO).
5133 2004-03-02 Lars Clausen <lars@raeder.dk>
5136 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
5140 * lib/widgets.c (dia_size_selector_init): Work
5141 on getting proper icon onto the size selector. Need simple image
5142 load mechanism in utils.
5146 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
5147 strings, handle utf8 strlen properly. Bug #135930.
5149 2004-03-01 Lars Clausen <lars@raeder.dk>
5151 * shapes/Cybernetics/*:
5152 * sheets/Cybernetics.sheet.in:
5153 * sheets/Makefile.am:
5154 * shapes/Makefile.am:
5155 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
5156 Roggendorf): Cybernetic shapes (#95553).
5158 2004-03-01 Lars Clausen <lars@raeder.dk>
5160 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
5162 * lib/diatypes.h: New type DiaSizeSelector.
5164 * lib/widgets.[ch]: New size selector widgets that selects two
5165 values (width and height, nominally) optionally linked to keep
5168 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
5170 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
5171 in front of file. Bug #128600.
5175 * app/lineprops_area.[ch]:
5177 * lib/dialinechooser.[ch]:
5178 * lib/widgets.c (dia_line_style_selector_init): use line preview
5179 instead of text labels. This involve moving away line_chooser to lib
5182 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
5185 * app/Makefile.am (dia_core_files):
5186 * app/interface.c (create_lineprops_area):
5187 * app/render_pixmap.[ch]:
5189 * lib/diaarrowchooser.[ch]:
5192 * lib/propdialogs.c:
5193 * lib/render_pixmap.[ch]:
5194 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
5195 of text labels. This involve moving away arrow_chooser to lib from
5198 2004-02-29 Lars Clausen <lars@raeder.dk>
5200 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
5201 being updated half-way through destruction. To be removed when
5202 the lists are replaced by something better.
5204 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
5205 Accelerators for class dialog. Bug #130995.
5206 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
5209 * app/preferences.c:
5211 * objects/GRAFCET/step.c:
5212 * objects/Misc/analog_clock.c:
5213 * objects/chronogram/chronoline.c:
5214 * objects/chronogram/chronoref.c:
5215 Change to american spelling (color, not colour) to ease
5216 translators job. Note that a number of translations may need an
5217 update now. Bug #120466.
5219 2004-02-29 Lars Clausen <lars@raeder.dk>
5221 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
5222 Better arrow handling for missing arrows.
5224 * plug-ins/metapost/render_metapost.[ch]: Patch from
5225 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
5226 size. See bug #135363.
5228 * app/app_procs.c (app_init): If non-interactive, or if
5229 --log-to-stderr used, send all messages to stderr. This should
5230 mean that old diaconv == dia --export-to-format=FOO BAR
5232 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
5234 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
5236 2004-02-28 Lars Clausen <lars@raeder.dk>
5238 * lib/text.c (text_key_event): Patch from Kouhei Sutou
5239 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
5241 2004-02-27 Lars Clausen <lars@raeder.dk>
5243 * KNOWN_BUGS: Added info on most commonly reported bugs, with
5246 * app/disp_callbacks.c (popup_object_menu): Unified properties
5247 entry, fixes bug #105080.
5249 * app/diagram.c (diagram_update_menu_sensitivity):
5250 * app/menus.h (struct _UpdatableMenuItems):
5251 * app/menus.c (menus_initialize_updatable_items): Menu items
5252 changed around, align menus flattened, properties entry ghosted,
5253 dialogs menu removed, more shortcuts added. Closing bugs #94018,
5255 Also taking out Gnome menus for now. They don't allow shortcuts,
5256 so what are they good for?
5258 2004-02-27 Lars Clausen <lars@raeder.dk>
5260 * app/menus.c (display_menu_items):
5261 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5264 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
5266 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5268 2004-02-23 Lars Clausen <lars@raeder.dk>
5270 * app/app_procs.c (app_init): Comments for translators.
5272 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
5274 * app/preferences.c (prefs_create_dialog): Change packing policy
5275 for widget to expand.
5277 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5278 running with a debugger.
5280 2004-02-19 Lars Clausen <lars@raeder.dk>
5282 * app/undo.[ch]: Adding last-saved information to undo to allow a
5283 diagram with all changes since last save undo to be marked as
5284 nonmodified. Still needs integration with actual undo
5288 * app/diagram_tree.c (diagram_tree_update):
5290 * app/display.c (update_modified_status):
5291 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
5292 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5295 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5296 vs. EPSI, comment out EPSI until preview is in there.
5299 * lib/diarenderer.c: Removing debugging printfs.
5301 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5304 * objects/standard/arc.c (arc_update_handles): Check to avoid
5305 crash when start and end points are the same.
5307 2004-02-19 Lars Clausen <lars@raeder.dk>
5309 * objects/standard/bezier.c:
5310 * objects/standard/line.c (line_load):
5311 * objects/standard/polyline.c (polyline_load):
5312 * objects/standard/zigzagline.c (zigzagline_load):
5313 * objects/standard/arc.c (arc_load):
5314 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5315 instead of hardcoding.
5317 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
5319 * app/disp_callbacks.c (popup_object_menu): append a menu item to
5322 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
5324 * app/app_procs.c: declare rc properly with the proper #ifdef
5326 2004-02-17 Lars Clausen <lars@raeder.dk>
5328 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5329 objects (which seemingly FIG itself breaks, or else there is no
5332 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
5334 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5335 width renderable in xfig. Helps on bug #133637, but does not
5336 quite fix it -- something about depth is wrong.
5338 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5339 Extern definitions for Mac compilation.
5341 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5342 (jdassen@debian.org): Include fix.
5344 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
5345 sure the initial diagram size is correct.
5347 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
5349 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5350 CPPFLAGS, as per automake warning.
5351 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5352 LDFLAGS, as per automake warning.
5353 (run_dia.sh): More robust creation, and more easily moved.
5355 * app/undo.c (group_objects_revert): Don't double-free the objects
5356 list. (#129221) Call object_add_updates on grouped objects.
5357 (ungroup_objects_revert): Call object_add_updates on grouped objects.
5359 * lib/diagramdata.c: Internal
5362 * lib/polyshape.c (polyshape_update_data): Correctly calculate
5363 directions for polyshape corners (thanks, Valgrind!)
5366 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5368 * lib/arrows.h: Default arrow size defined. After all are using
5369 this, may lower to 0.4 or so.
5371 * app/lineprops_area.[ch]: New function to set the arrow type for an
5374 * app/interface.c (create_lineprops_area): Set default line to
5375 have an arrow (fairly likely to be what's wanted, plus it shows
5376 the user where arrows are set).
5378 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5380 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
5382 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5383 Dotted lines should use dot_length, not dash_length.
5385 2004-02-06 Hans Breuer <hans@breuer.org>
5387 * app/interface.c : don't use gtk_drawing_area_size() to avoid
5388 the defaut size being also the minimum size. Instead use
5389 gtk_window_set_default_size() on the display shell. Fixes #130982.
5391 [fixing #131210, but umlauts in the 'main' filename still not really
5392 supported on systems where filesystem encoding != utf8
5393 (Problems with recent file menu and window title)]
5394 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5395 to deal with possible differnces in filename encodings, see
5396 g_filename_<to|from>_utf8()
5397 * objects/standard/image.c : use them.
5399 * lib/widgets.c : handle possible encoding difference here, too.
5400 Also get rid of most warnings by using const and GTK casts where
5401 appropriate; one wrong cast (probably causing a crash) was found/fixed
5402 by this - the remaining give a hint on finally leaking FontSelectorEntry.
5404 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5405 dia_file_selector_<get|set>_file to behave like the respective Gtk
5406 functions do : encoding- and const-wise ;-)
5408 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
5410 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5412 2004-01-19 Hans Breuer <hans@breuer.org>
5414 * app/app_procs.c app/diaconv :
5415 only call bind_textdomain_codeset when available, what's good
5416 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5417 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5419 2004-01-19 Steffen Macke <sdteffen@web.de>
5421 * makefile.msc: updated for new GAIM-like installer build; sync'ed
5422 ALL_LINGUAS with configure.in
5424 2004-01-18 Hans Breuer <hans@breuer.org>
5426 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
5427 by not passing NULL to g_print()
5429 * app/interface.c (create_toolbox) : actually use
5430 persitence_register_window() to restore toolbox window size
5432 * app/makefile.msc lib/makefile.msc : allow to deselect
5433 building with Freetype by command line to nmake like :
5434 nmake -f makefile.msc "NOFT2=1"
5436 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5437 far as possible with Dia's limited line style
5438 * plug-ins/python/pydia-property.c : allow to get and set
5439 Linestyle, style and dash(length)
5441 * lib/object.h : removed typedef for ObjectId not use anywhere
5443 2004-01-17 Hans Breuer <hans@breuer.org>
5445 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5446 doc/shape.dtd doc/custom-shapes :
5447 support for images in custom shapes, also removed some long-time
5450 * doc/en/*.xml : fixed crippled line ends which get created
5451 when windoze line ends are checkin from the unix side
5453 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
5455 * configure.in: Added "sq" to ALL_LINGUAS.
5457 2004-01-11 Hans Breuer <hans@breuer.org>
5459 [more less leaks ;-]
5461 * objects/SADT/annotation.c : use text_destroy() not g_free()
5463 * objects/chronogram/chronoline.c : neither leak chronoline::events
5464 nor chronoline::name
5466 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5468 2004-01-11 Hans Breuer <hans@breuer.org>
5470 * lib/properties.h :
5471 * objects/custom/custom_object.c : more properties optional
5472 to be backward compatible for older diagrams not having them
5473 set. (Try to load samples/all_objects.dia)
5475 [less memory leaks thanks valgrind ;-]
5477 * app/recent_files.c (recent_file_history_write) :
5478 g_free(history_filename);
5479 (recent_file_menu_item) : use g_path_get_basename()
5480 which already strdups, free result of g_strescape()
5482 * app/filedlg.c (create_export_menu) : return of
5483 filter_get_export_filter_label() must be g_free()'d
5484 (create_open_menu) : same for import
5486 * app/export_png.c (export_png_ok) : destroy info ptr
5487 with png_destroy_write_struct()
5489 * app/app_procs.c (app_init) : g_free(export_format_string);
5491 * lib/font.c (dia_font_finalize) : finalize parent_class, too
5492 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5493 refing it a second time, g_type_create_from_instance() is enough
5495 * lib/object_defaults.c (_obj_store) : don't mess with names
5496 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5498 2004-01-11 Steffen Macke <sdteffen@web.de>
5500 * app/diapsftrenderer.c: including ftoutln.h
5501 * app/makefile.msc: updated for freetype build
5502 * lib/libdia.def: added dia_font_get_context()
5503 * lib/dialibartrenderer.c (draw_string): added cast
5505 2004-01-10 Hans Breuer <hans@breuer.org>
5507 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5508 transformed coordinates, fixes bug 130804
5510 2004-01-10 Hans Breuer <hans@breuer.org>
5512 * app/filedlg.c app/app_procs.c : don't try to destroy
5513 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5514 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5515 returns. Fixes 'has no handler' bugs like #121019
5517 2004-01-10 Hans Breuer <hans@breuer.org>
5519 * objects/UML/class.c objects/UML/class_dialog.c :
5520 handle umlclass->name being empty to avoid, i.e. fix #127968
5522 [plugging memleaks, thanks valgrind :-]
5524 * lib/dia_xml.c (data_string) : don't leak return value
5525 of xmlNodeListGetString()
5527 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5528 before returning, maybe alloca() would be the better
5529 choice but anyway ;)
5531 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5533 * lib/font.c (dia_font_build_layout) : don't leak result
5536 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5537 (this is the one which got me started using valgrind, see #130816)
5539 2004-01-07 Sanlig Badral <badral@openmn.org>
5541 * configure.in: Added "mn" to ALL_LINGUAS.
5543 2004-01-04 Hans Breuer <hans@breuer.org>
5545 * lib/diagdkrenderer.c : replace rendering of really small (height
5546 less than 2 pixels) with a simple dashed line, you wont notice the
5547 differnce beside it being much faster. This allows ...
5548 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5549 * app/navigation.c : ... and lets you see an read rendered text even
5550 in the nice navigation popup.
5552 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
5553 (draw_string) : don't leak temporary image
5555 2004-01-04 Hans Breuer <hans@breuer.org>
5557 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5558 * app/interface.c : use dia-app-icons.h to give Dia window icons
5560 * lib/dia_image.c lib/color.c : _never_ call functions implemented
5561 in app/ from lib/. It is not portable and broken from design
5562 * app/app_procs.c : call color_init() and dia_image_init() conditional,
5563 i.e. only if running interactive.
5565 * lib/font.h : #include <time.h>
5567 * lib/libdia.def : updated externals
5569 * objects/UML/actor.c
5570 objects/UML/association.c (todo)
5571 objects/UML/branch.c
5572 objects/UML/class.[hc] objects/UML/class_dialog.c
5573 objects/UML/classicon.c
5574 objects/UML/component.c
5575 objects/UML/constraint.c
5576 objects/UML/dependency.c
5577 objects/UML/generalization.c
5578 objects/UML/implements.c
5579 objects/UML/large_package.c
5580 objects/UML/lifeline.c
5581 objects/UML/message.c
5583 objects/UML/object.c
5584 objects/UML/realizes.c
5585 objects/UML/small_package.c
5587 objects/UML/usecase.c
5589 : ported coloring of most UML objects (bug #97517, orginal
5590 work Mathias Hasselmann)
5592 * lib/properties.h : add _OPTIONAL variants for
5593 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5594 i.e. default colored - UML diagrams without complaining
5595 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5596 not set properties with the help of PXP_NOTSET. Otherwise
5597 optional attributes would lead to wrong initialization.
5599 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5600 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5601 Same for most other selectors which probably should be rewritten
5602 to the combo box with tree model from Gtk+ 2.4
5604 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
5606 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5607 being the Right Thing(tm) to use on Solaris.
5609 * objects/standard/bezier.c (bezierline_draw): Don't draw
5610 guidelines if not selected.
5612 * lib/object.[ch] (dia_object_is_selected): Function to check whether
5613 a given object is selected. O(n), where n is # selected objects.
5616 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
5618 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5619 Fonts dialog is closed without pressing Ok (bug #128646).
5621 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
5623 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5626 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
5628 * INSTALL: Updated list of requirements (bug #129653)
5630 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5631 Pionchon <luc@handhelds.org>.
5633 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
5635 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5636 empty or NULL strings (bug #130097).
5638 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
5640 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5641 Added checks against color_black.
5643 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
5645 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5646 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
5649 * objects/UML/component_feature.c: Patch from W. Borgert
5650 <debacle@debian.org>: Add handle to component feature text.
5652 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5654 * lib/font.c: Caching PangoLayout for better rendering speed.
5656 2003-12-30 Lars Clausen <lars@raeder.dk>
5658 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5659 get absolute file name from relative.
5660 * app/recent_files.c (recent_file_history_add): Use absolute
5661 filenames for recent files menu so that files can be found when
5662 Dia is invoked from other places.
5664 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5665 Actually load different diagrams if such are requested on command
5668 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5669 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5671 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5672 remove text rendering. May be turned into greeking at some later
5676 * app/Makefile.am (dia_core_files):
5677 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5678 Adds navigation window a la Gimp, though without text being
5681 2003-12-27 Luc Pionchon <luc@handhelds.org>
5683 * app/navigation.h: (new file)
5684 * app/navigation.c: (new file) creates a navigation window with a
5685 thumbnail view of the whole diagram.
5686 * app/Makefile.am (dia_core_files): added new files.
5688 * app/interface.c (create_display_shell): added a button between
5689 the scrollbars to popup a navigation window.
5691 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5693 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5694 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5695 not want text rendering.
5697 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
5699 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5701 * objects/custom/shape_info.[ch]: Cleanup.
5703 * objects/custom/custom_object.[ch]: Changed to use new props
5708 * lib/prop_inttypes.c:
5709 * lib/prop_geomtypes.c: Added *prop_get_data_size.
5711 * lib/libdia.def: Added object_load_props.
5713 * configure.in: Better FT2 version test, from bug #129225.
5715 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5717 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5718 Lehmann <holger.lehmann@catworkx.de>.
5720 * plug-ins/xslt/Makefile.am:
5721 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5722 and OWL XSLT sheets.
5724 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
5726 * lib/diagdkrenderer.c: Add implementation so text is still
5727 rendered. May be improved later.
5733 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5734 Allow running without a $DISPLAY!
5736 * lib/color.c: Remove warnings for non-interactive run.
5741 * app/app_procs.[ch]:
5742 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5743 to specify size for PNG output.
5745 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5746 render a little smaller, so as to fit the big ones.
5748 * lib/arrows.[ch]: New arrow type from W. Borgert
5749 <debacle@debian.org>: Filled Dot and Triangle.
5751 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
5753 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5756 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5758 * acinclude.m4: Better Python configure code patch (can't find
5759 author, author please speak up!)
5761 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
5763 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5766 2003-11-30 Hans Breuer <hans@breuer.org>
5768 * plug-ins/python/diasvg.py : initialize self.dash_length
5769 in constructor to avoid crashing if the renderer user
5770 does not set it before first usage.
5772 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
5774 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5778 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5779 development and stable versions.
5781 * lib/text.c (text_draw): Use new renderer function to draw the
5784 * lib/diarenderer.h:
5785 * lib/diarenderer.c: New renderer function "draw_text" with
5786 default implementation. This function should eventually be the
5787 main interface, as it will be able to handle width and caching of
5788 rendering internally. All users of draw_string should convert to
5789 use Text objects and call either renderer->draw_text or text_draw,
5790 the latter if the text can be edited in-place (as should be the
5793 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
5795 * shapes/Circuit/hresistor.shape: First example of extra
5798 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
5800 * plug-ins/shape/shape-export.c:
5801 * lib/diasvgrenderer.h:
5802 * lib/diasvgrenderer.c:
5803 * plug-ins/svg/render_svg.c (new_svg_renderer):
5804 Actually store the font size, using DiaRenderer's font fields.
5806 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
5808 * objects/custom/shape_info.[ch]:
5809 * objects/custom/custom_object.[ch]:
5810 Support for extra attributes in custom objects.
5812 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
5814 * app/diagram.c (diagram_update_menu_sensitivity): More
5815 intelligent checks for menu sensitivity. Might be slow on huge
5816 diagrams, but I think other things outweigh it by a lot.
5818 * app/menus.[ch]: Make "Bring Forwards"
5819 and "Send Backwards" updateable.
5821 2003-11-22 Steffen Macke <sdteffen@web.de>
5823 * shapes/Assorted/arrow-turn-up.shape:
5824 * shapes/Assorted/arrow-turn-up.png:
5825 * sheets/Assorted/Makefile.am:
5826 * sheets/Assorted.sheet.in: Added new arrow
5828 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
5836 * app/diagram_tree.c
5837 * app/diagram_tree_menu.c
5838 * app/diagram_tree_window.c
5839 * app/diapagelayout.c
5840 * app/diaunitspinner.c
5844 * app/layer_dialog.c
5845 * app/lineprops_area.c
5846 * app/linewidth_area.c
5849 * app/paginate_psprint.c
5851 * app/plugin-manager.c
5854 * app/recent_files.c
5856 * app/sheets_dialog.c
5857 * app/sheets_dialog_callbacks.c
5858 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5859 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5861 * TODO: Updated, note on EPS transparency.
5863 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
5865 * objects/UML/class.c (umlclass_draw): Allow classes with no name
5868 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
5871 * doc/en/dia-manual.xml:
5874 * NEWS: Another Brown Bag release for parenting problems,
5875 including a crash bug fix.
5877 * app/connectionpoint_ops.c (diagram_update_connections_object):
5878 Also update connections when moving children. This can cause
5879 move_handle to be called twice, so it must be idempotent.
5881 * app/load_save.c: Loading and saving of children totally redone.
5882 Now doesn't violate assumption that all objects in a layer are
5883 placed in order in XML file.
5885 * objects/UML/branch.c (branch_create): Don't lie about being
5888 * objects/UML/node.c (node_create):
5889 * objects/UML/large_package.c (largepackage_create): Drag with
5890 lower right-hand handle at creation like all other objects.
5892 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
5894 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
5895 parenting drop to behave like a move inside, i.e. constrain place
5896 instead of trying to resize. 'Cause, resizing cannot be done for
5897 all objects (e.g. UML Class). Also simplified the algorithm a lot
5900 * app/load_save.c: Saving and loading of connection points for
5901 children added. Prototypes for static functions added.
5903 * lib/dynamic_obj.c: Removed debugging output.
5905 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
5907 * doc/en/dia-manual.xml:
5908 * doc/pl/dia-manual.sgml:
5912 * NEWS: Brown Bag release 0.92.1
5914 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
5916 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
5918 * app/app_procs.c (app_init): Rearrangement for translators.
5920 2003-10-24 Steffen Macke <sdteffen@web.de>
5922 * lib/text.c(text_key_event): enforcing the inserted text length now,
5925 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
5927 * MAINTAINERS: Change Debian maintainer to be the default address.
5929 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
5930 args to match prototype, thus removing crashbug #125159.
5932 * RELEASE-PROCESS: Note to self.
5934 2003-10-22 Steffen Macke <sdteffen@web.de>
5936 * doc/en/dia-manual.xml: removed superfluous external references
5938 2003-10-21 Steffen Macke <sdteffen@web.de>
5940 * lib/libdia.def: added filter_get_by_name
5941 * app/render_eps.c: moved extensions definition outside #ifdef
5943 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
5947 Removed old Dia manual, put new one in doc/en/. Translations
5948 should go in doc/??/.
5950 * doc/en/dia-manual.xml:
5951 * doc/pl/dia-manual.sgml:
5952 * dia.spec (Release):
5955 * NEWS: 0.92 is here!
5959 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
5960 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
5963 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
5965 * doc/en/usage-objects-selecting.xml: Commented out empty note.
5967 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
5969 * doc/pl/dia-manual.sgml:
5970 * doc/en/dia-manual.xml:
5974 * dia.spec (Release): Pre7.
5976 * app/diapsrenderer.c (draw_string): Convert string to print based
5977 on current locale. If conversion fails, fall back to UTF-8 (which
5978 is almost certain to be messy).
5980 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
5982 * doc/pl/dia-manual.sgml:
5983 * dia.spec (Release):
5987 * doc/en/dia-manual.xml: Pre6.
5989 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
5990 TeX chars in strings -- must be possible to use TeX text in there.
5991 Also avoids infinite loop bug (#124464) Will get option for this
5994 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
5996 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
5998 * doc/en/dia-manual.xml:
5999 * doc/pl/dia-manual.sgml:
6000 * dia.spec (Release):
6005 * app/authors.h: Removed duplicate of M. C. Nelson.
6007 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
6009 * app/export_png.c: Unique name for libart PNG export: png-libart.
6011 * app/render_eps.c: Unique names for the two eps export methods:
6012 eps-builtin, eps-pango.
6014 * lib/filter.h: Binary compatibility change:
6015 Added unique name to export filters. Can be NULL.
6016 * lib/filter.c (filter_get_by_name): Finding a filter by
6019 * app/app_procs.h: Changed prototype for do_convert.
6020 * app/app_procs.c (app_init): Support for non-extension file
6021 format selection for export. Also allow extension to differ from
6022 that specified by the filters. A bit of refactoring, too.
6024 2003-09-28 Steffen Macke <sdteffen@web.de>
6026 * makefile.msc: added target po to update the translations
6028 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
6031 * dia.spec (Release):
6033 * doc/pl/dia-manual.sgml:
6034 * doc/en/dia-manual.xml:
6035 Pre4 is given a short try.
6037 * configure.in: Give all necessary libs to PNG test.
6039 * lib/font.c: Added legacy entries for sans, serif and monospace.
6041 * app/app_procs.c (internal_plugin_init):
6044 Added PS fonts output for Unix.
6046 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
6047 factor to make PS fonts stay in boxes.
6049 2003-08-03 Hans Breuer <hans@breuer.org>
6051 * config.h.win32 : close the version string
6053 * lib/libdia.def : with color_white, color_black being static
6054 on win32 they can not be exported anymore either
6056 * lib/dialibartrenderer.c : text rendering is back on win32,
6057 only by Gdk though; almost a year seems to be enough to
6058 wait for my patch at bug #94791 to be accepted ...
6060 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
6062 * shapes/network/{digitizing_board.png,plotter.png,
6063 laptop.png,telephone.png}: 22x22 icons.
6065 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
6067 * doc/pl/dia-manual.sgml:
6068 * doc/en/dia-manual.xml:
6069 * dia.spec (Release):
6073 pre3 improves font rendering speed.
6075 * app/app_procs.c (app_init): Don't do pango init here, it's done
6076 on demand in font.c now.
6078 * lib/font.c: Load pango context on demand rather than during
6079 init/all the time strikes a better balance between working font
6080 size and speed. Still need to cache width calculations.
6082 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
6084 * lib/dia_xml.c: Enable pretty printing. Should have been added
6087 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
6089 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
6090 adjustment a bit for half diamond and open round.
6092 * RELEASE-PROCESS: Added note about notifying translators and
6095 * doc/pl/dia-manual.sgml:
6096 * doc/en/dia-manual.xml:
6097 * dia.spec (Release):
6101 Update to 0.92-pre2.
6103 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
6105 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
6106 calculation for half diamond and open round.
6109 * objects/UML/component_feature.c:
6110 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
6111 arrows instead of specific little hacks. Much nicer, but damn
6112 there's a lot of arrows.
6114 * lib/dialibartrenderer.c (begin_render):
6115 * app/render_libart.c (begin_render): Use correct DPI for screen
6116 (well, actually the default DPI of 75 for now).
6118 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
6120 * lib/diagdkrenderer.c (draw_string): Some reformatting.
6122 * app/app_procs.c (app_init): Note on what should be done for the
6123 pango context now, only it doesn't work:(
6125 * lib/font.c (dia_font_new): Make sure to load fonts that are
6126 used, using a reasonable pango_context. Also a comment on the
6129 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
6131 * doc/pl/graphics/*.png:
6132 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
6133 loop (bug #121817). PL translator may want to change the
6134 home_network png to be in Polish. If the docs get translated into
6135 more languages, we'll want to find out how to share these things.
6137 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
6139 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
6140 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
6143 * app/filedlg.c (file_save_as_callback): Put filename setting
6144 together. (Preparation for allowing default save dir.)
6146 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
6147 correctly this time:)
6149 * app/dia-props.c (diagram_properties_show):
6150 * app/properties.c (properties_show): Make sure the
6151 dialogs are transient for the correct diagram.
6153 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
6155 * configure.in: Make sure -lz -lm is passed into second png test
6156 as well (stupid AC_LINK_IFELSE can't take it as an argument).
6158 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
6159 comment-filled files readable. Once we have a 'generic data'
6160 system, we can put comments in there.
6162 2003-09-06 Steffen Macke <sdteffen@web.de>
6164 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
6165 g_string_sized_new() instead of g_string_new() to make it compile
6166 * app/Makefile.am: including dia.ico and dia.rc in the tarball
6167 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
6168 for non-solid linestyles - otherwise custom linestyles have to be used.
6170 2003-09-02 Steffen Macke <sdteffen@web.de>
6172 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
6175 2003-09-02 Christian Neumair <chris@gnome-de.org>
6177 * sheets/Pneumatic.sheet.in: Slight unification fix.
6179 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
6183 * dia.spec (Release):
6184 * doc/en/dia-manual.xml:
6185 * doc/pl/dia-manual.sgml:
6186 * NEWS: Update to 0.92-pre1.
6188 * app/properties.c (properties_key_event): Removing Esc/Enter
6189 handling for now, interferes to much with regular dialog usage.
6191 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
6192 Function to escape special TeX characters. Not in use yet, as
6193 PSTricks output by default is TeX strings. Should get a save-time
6196 2008-09-01 Steffen Macke <sdteffen@web.de>
6198 * lib/paper.h: explanatory comment on width and height
6200 2003-08-30 Steffen Macke <sdteffen@web.de>
6203 * lib/color.h: made color_white, color_black static on win32
6205 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
6207 * configure.in (PNG_LIBS): Something in the png tests added an
6208 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
6210 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
6212 * configure.in: Quote correctly for temporarily adding freetype
6215 * app/preferences.c (prefs_save): Remove debugging g_print.
6217 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
6219 * objects/flowchart/parallelogram.c (pgram_update_data):
6220 Directions for connections, better system for placing
6223 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
6225 * lib/diagramdata.c (layer_find_closest_object_except): Look all
6226 the way through the object list, so the foremost object is selected.
6228 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
6229 included for diagramdata.c.
6231 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
6232 newline in multistringprop not close the dialog. Failed so far.
6234 2003-08-25 Steffen Macke <sdteffen@web.de>
6236 * app/commands.c: using CHM instead of HTML on win32 if available
6237 * lib/diagramdata.h: including dynamic_obj.h
6239 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
6241 * app/properties.c (properties_key_event): Make Enter = Ok for
6242 properties dialogs. Still some problems with this and Esc for
6243 Cancel, for instances escaping out of a menu closes the dialog.
6245 * objects/UML/association.c (association_get_properties):
6246 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6249 * app/diapsft2renderer.c (draw_string): Use
6250 dia_font_scaled_build_layout to ensure similarity of text.
6252 * lib/diagramdata.c: Remove obj from dynobj list when removing
6253 from layer to avoid nasty race conditions.
6255 * app/undo.c (group_objects_revert): Make sure to unparent and
6256 remove from dynobj list when changing layers objects.
6258 2003-08-23 Steffen Macke <sdteffen@web.de>
6260 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
6261 StretchBlt(); fixes #92249
6263 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
6265 * app/filedlg.c (file_save_as_callback):
6266 * app/preferences.h:
6267 * app/preferences.c (prefs_data):
6268 * lib/diagramdata.h:
6269 * lib/diagramdata.c (new_diagram_data):
6270 * app/load_save.c (diagram_data_load):
6271 Let the document remember whether it was compressed. The user can
6272 still override this in the Save As... dialog, and that will still
6273 be remembered as the default for new diagrams.
6275 2003-08-23 Steffen Macke <sdteffen@web.de>
6277 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6279 2003-08-22 Steffen Macke <sdteffen@web.de>
6281 * plug-ins/xslt/dia-uml.xsl:
6282 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6283 table containing a list of components grouped by stereotype
6285 2003-08-21 Steffen Macke <sdteffen@web.de>
6287 * lib/makefile.msc: added connectionpoint.obj
6288 * lib/libdia.def: added connpoint_update, find_slope_directions
6289 * app/disp_callbacks.c: including scroll_tool.h
6290 * obj/makefile.msc: added component_feature.obj
6291 * app/paginate_gdiprint.c: fixed loop initialization in
6292 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6295 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
6297 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6300 * lib/diagramdata.h: Colors added to prefs.
6301 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6302 New field for pagebreak color, which should
6303 behave the same as grid color and be settable for a diagram.
6305 * app/diagram.c (diagram_init): Update diagram pagebreak color
6308 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6311 * app/preferences.[ch]: Default diagram colors now #defines, so
6312 loading can use it. Also, colors are now in NewDiagramData, so
6313 are passed nicely into new diagrams directly from prefs. Yum.
6315 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
6316 Support for loading and saving grid and pagebreak colors with the
6317 diagram. I'm inclined to make all the three Colors in diagram
6318 Color*s instead, so we can tell if they're specified for the
6319 diagram or merely the default setting. There'd be no way for the
6320 user to tell if the color of a diagram is default, though, unless
6321 we add a 'reset to default' button to prefs.
6323 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6324 pagebreak color. Unsensitizing grid size when dynamic.
6326 * objects/UML/component.c: Patch from Krzysztof Foltman
6327 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6328 third. Makes the left side connections actually be on the line
6331 2003-08-20 Steffen Macke <sdteffen@web.de>
6333 * lib/libdia.def: added layer_find_closest_object_except
6334 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
6336 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
6340 * app/scroll_tool.c:
6342 * app/disp_callbacks.c:
6343 * app/create_object.h:
6344 * app/create_object.c: Patch from Krzysztof Foltman
6345 <kfoltman@onet.pl>: Middle button can scroll transiently when
6346 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6350 * sheets/UML.sheet.in:
6351 * sheets/UML/receptacle.xpm:
6352 * sheets/UML/Makefile.am:
6353 * sheets/UML/eventsource.xpm:
6354 * sheets/UML/eventsink.xpm:
6355 * objects/UML/pixmaps/facet.xpm:
6356 * objects/UML/uml.c (dia_plugin_init):
6357 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
6358 * objects/UML/component_feature.c:
6359 Patch from W. Borgert <debacle@debian.org>: Add event sources and
6362 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
6364 * lib/object.h: Turning some comments into doxygen style.
6366 * lib/object_defaults.c (dia_object_defaults_load)
6367 (dia_object_default_get, dia_object_default_create):
6368 Fixing up existing documentation.
6370 * lib/object.h: Doxygen style documentation begun.
6372 * app/create_object.c:
6374 * app/connectionpoint_ops.c:
6375 * app/disp_callbacks.c:
6376 * app/modify_tool.c:
6378 * objects/network/wanlink.c (wanlink_move_handle):
6379 * objects/network/bus.c (bus_move_handle):
6381 * objects/flowchart/parallelogram.c (pgram_move_handle):
6382 * objects/flowchart/ellipse.c (ellipse_move_handle):
6383 * objects/flowchart/diamond.c (diamond_move_handle):
6384 * objects/flowchart/box.c (box_move_handle):
6386 * objects/custom/custom_object.c (custom_move_handle):
6388 * objects/chronogram/chronoref.c (chronoref_move_handle):
6389 * objects/chronogram/chronoline.c (chronoline_move_handle):
6391 * objects/SADT/box.c (sadtbox_move_handle):
6392 * objects/SADT/arrow.c (sadtarrow_move_handle):
6393 * objects/SADT/annotation.c (annotation_move_handle):
6395 * objects/Misc/analog_clock.c (analog_clock_move_handle):
6397 * objects/GRAFCET/vergent.c (vergent_move_handle):
6398 * objects/GRAFCET/vector.c (arc_move_handle):
6399 * objects/GRAFCET/transition.c (transition_move_handle):
6400 * objects/GRAFCET/step.c (step_move_handle):
6401 * objects/GRAFCET/condition.c (condition_move_handle):
6402 * objects/GRAFCET/action.c (action_move_handle):
6404 * objects/FS/function.c:
6405 * objects/FS/flow.c:
6406 * objects/FS/flow-ortho.c (orthflow_move_handle):
6407 * objects/FS/flow-poly.c (flow_move_handle):
6409 * objects/UML/usecase.c (usecase_move_handle):
6410 * objects/UML/state_term.c (state_move_handle):
6411 * objects/UML/state.c (state_move_handle):
6412 * objects/UML/small_package.c (smallpackage_move_handle):
6413 * objects/UML/realizes.c (realizes_move_handle):
6414 * objects/UML/object.c (objet_move_handle):
6415 * objects/UML/note.c (note_move_handle):
6416 * objects/UML/node.c (node_move_handle):
6417 * objects/UML/message.c (message_move_handle):
6418 * objects/UML/lifeline.c (lifeline_move_handle):
6419 * objects/UML/large_package.c (largepackage_move_handle):
6420 * objects/UML/implements.c (implements_move_handle):
6421 * objects/UML/generalization.c (generalization_move_handle):
6422 * objects/UML/fork.c (fork_move_handle):
6423 * objects/UML/dependency.c (dependency_move_handle):
6424 * objects/UML/constraint.c (constraint_move_handle):
6425 * objects/UML/compprop.c (compprop_move_handle):
6426 * objects/UML/component.c (component_move_handle):
6427 * objects/UML/branch.c (branch_move_handle):
6428 * objects/UML/association.c (association_move_handle):
6429 * objects/UML/actor.c (actor_move_handle):
6430 * objects/UML/activity.c (state_move_handle):
6431 * objects/UML/class.c (umlclass_move_handle):
6433 * objects/standard/ellipse.c (ellipse_move_handle):
6434 * objects/standard/zigzagline.c (zigzagline_move_handle):
6435 * objects/standard/textobj.c (textobj_move_handle):
6436 * objects/standard/polyline.c (polyline_move_handle):
6437 * objects/standard/polygon.c (polygon_move_handle):
6438 * objects/standard/line.c (line_move_handle):
6439 * objects/standard/image.c (image_move_handle):
6440 * objects/standard/bezier.c (bezierline_move_handle):
6441 * objects/standard/arc.c (arc_move_handle):
6442 * objects/standard/beziergon.c (beziergon_move_handle):
6443 * objects/standard/box.c (box_move_handle):
6445 * objects/ER/relationship.c (relationship_move_handle):
6446 * objects/ER/participation.c (participation_move_handle):
6447 * objects/ER/entity.c (entity_move_handle):
6448 * objects/ER/attribute.c (attribute_move_handle):
6450 * lib/polyshape.c (polyshape_move_handle):
6452 * lib/orth_conn.c (orthconn_move_handle):
6454 * lib/neworth_conn.c (neworthconn_move_handle):
6455 * lib/neworth_conn.h:
6456 * lib/element.c (element_move_handle):
6458 * lib/connection.c (connection_move_handle):
6460 * lib/beziershape.c (beziershape_move_handle):
6461 * lib/beziershape.h:
6462 * lib/bezier_conn.c (bezierconn_move_handle):
6463 * lib/bezier_conn.h:
6464 *BINARY COMPATIBILITY CHANGE*
6465 Update prototype for *_move_handle() to include connectionpoint,
6466 and also pass on modifiers. Pass in connectionpoint where
6469 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6470 file connectionpoint.c.
6472 2003-08-17 Danilo Å egan <dsegan@gmx.net>
6474 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6476 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
6478 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6480 * lib/beziershape.c (beziershape_update_data): Autoroute
6481 directions for beziershapes!
6483 * lib/connectionpoint.c (find_slope_directions):
6484 * lib/connectionpoint.h: Function for finding the available
6485 directions on a slope.
6487 * lib/polyshape.c: Reasonable directions for
6490 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
6492 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
6493 * objects/GRAFCET/vergent.c (vergent_update_data):
6494 * objects/GRAFCET/transition.c (transition_update_data):
6495 * objects/GRAFCET/action.c (action_update_data):
6496 * objects/GRAFCET/step.c (step_update_data):
6497 * objects/FS/function.c (function_update_data):
6498 * lib/connpoint_line.c (connpointline_putonaline):
6499 * objects/ER/attribute.c (attribute_update_data):
6500 * objects/ER/entity.c (entity_update_data):
6501 * objects/ER/relationship.c (relationship_update_data):
6502 * objects/chronogram/chronoline.c (chronoline_update_data): Set
6503 directions for connection points.
6505 * objects/UML/component.c (component_create): Set to allow
6508 * app/create_object.c (create_object_button_press):
6509 * app/diagram.[ch] (diagram_find_clicked_object_except):
6510 * lib/diagramdata.[ch] (layer_find_closest_object_except):
6511 Avoid parenting to objects you're connecting to (otherwise you
6512 couldn't make a connection out of a parenting object). To do
6513 this, added functions to find the nearest object except a given
6516 * app/render_libart.c: Rearrange libart include to avoid multiple
6517 include program (and put libart includes inside #ifdef!)
6519 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
6521 * lib/dialibartrenderer.c: Don't include art_config.h if others
6522 also do, as it isn't #ifdef'd.
6524 * objects/flowchart/ellipse.c (ellipse_update_data): Add
6525 directions for connection points.
6527 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
6529 * objects/flowchart/box.c (box_update_data): Add directions, use
6531 (box_load): Use g_malloc0.
6533 * lib/Makefile.am (libdia_la_SOURCES):
6534 * lib/connectionpoint.c (connpoint_update):
6535 Function to call to update a connection point info in _update_data().
6537 * lib/connectionpoint.h: Convenience DIR_ macros.
6539 * app/preferences.c (prefs_data): Make pretty formatted XML the
6542 * lib/dialibartrenderer.c:
6543 * app/render_libart.c: Make sure art_config.h is included, cause
6544 some libart headers are broken.
6546 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6547 after test. Add freetype-config cflags to cflags variable.
6549 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
6551 * app/authors.h: Credits for Krzysztof.
6553 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6554 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
6555 than the description) is visible in the title of the properties
6556 dialog. That ought to be a short description (translatable),
6557 though we still want long descriptions for the tooltips. Hmmm...
6559 * configure.in: Updated to use AC_LINK_IFELSE instead of
6560 AC_TRY_COMPILE, also force to link to check libs on Solaris.
6562 * objects/ER/entity.c (entity_load):
6563 * objects/ER/attribute.c (attribute_load):
6564 * lib/attributes.c (attributes_set_default_font):
6565 Check if font is non-null before unreffing.
6567 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
6569 * app/diagram.c (diagram_ungroup_selected)
6570 (diagram_group_selected): Use the undo apply to make sure grouping
6571 and ungrouping is done in consistent manners. This removes a fair
6572 amount of duplicated code from diagram.c.
6574 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
6575 (group_objects_revert, group_objects_apply): Working undo/redo for
6576 diagram tree updates. The initial actions still don't quite work.
6578 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
6580 * app/create_object.c (create_object_button_press):
6582 * app/diagram.c: Undo support for parenting. Uses apply/revert in
6583 undo only for manipulating the parent/child relationships. Things
6584 like removing an object doesn't use the undo functions for
6585 parenting, so any updates to come (like to diagramtree) should be
6588 2003-08-03 Hans Breuer <hans@breuer.org>
6590 * app/create_object.c : minor formating and g_new0 for
6593 * lib/bezier_conn.[hc] lib/beziershape.[hc]
6594 lib/prop_geomtypes.c (prop_geomtypes_register)
6595 objects/standard/bezier.c objects/standard/beziergon.c :
6596 ability to set bezpoints via StdProp api
6598 * plug-ins/python/pydia-property.c : convert list of tuples
6601 * plug-ins/python/diasvg_import.py : use it to
6602 implement part of path parsing. Also minor improvements
6603 like inheritance of group attributes to members,
6604 whitespace, title and style:text/css ignoring ;-)
6606 2003-08-02 Hans Breuer <hans@breuer.org>
6608 * lib/connections.c (connection_move_handle): return
6609 something to make it compile
6610 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
6611 must return a value -> dito
6612 [Is there a warnings-as-errors switch we could use with gcc
6613 to avoid such in future ?]
6615 * plug-ins/python/pydia-object.h : define *_Check macros
6616 * plug-ins/python/diamodule.c : provide dia.group_create()
6617 * plug-ins/python/pydia-diagramdata.c : add
6618 DiaDiagramData.add_layer()
6619 * plug-ins/python/pydia-property.c : allow to set color by
6622 * plug-ins/python/diasvg_import.py : based on the above
6623 implement a) group support, b) rgb(1,2,3) color handling,
6624 and somewhat fishy data:image/png;base64 support (create
6625 temporary files from inline image data)
6626 d) dump the import errors as text into an 'Error' layer
6628 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6629 stray " in draw_rect and corrected error message formating
6631 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6632 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
6635 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
6637 * app/magnify.c (create_magnify_tool): allocate with g_new0()
6639 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
6640 preferences values (see bug 118570). Also group items into a GtkFrame.
6642 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
6647 * app/commands.c (objects_unparent_children_callback):
6649 * app/diagram.c (diagram_unparent_selected,
6650 (diagram_update_menu_sensitivity):
6651 Added unparenting of single children.
6653 * lib/bezier_conn.c:
6654 * lib/bezier_conn.h:
6655 * lib/beziershape.c:
6656 * lib/beziershape.h:
6662 * lib/neworth_conn.c:
6663 * lib/neworth_conn.h:
6670 * objects/EML/instantiation.c:
6671 * objects/EML/interaction-ortho.c:
6672 * objects/EML/interaction.c:
6673 * objects/EML/process.c:
6674 * objects/ER/attribute.c:
6675 * objects/ER/entity.c:
6676 * objects/ER/participation.c:
6677 * objects/ER/relationship.c:
6678 * objects/FS/flow-ortho.c:
6679 * objects/FS/flow-poly.c:
6680 * objects/FS/flow.c:
6681 * objects/FS/function.c:
6682 * objects/GRAFCET/action.c:
6683 * objects/GRAFCET/condition.c:
6684 * objects/GRAFCET/step.c:
6685 * objects/GRAFCET/transition.c:
6686 * objects/GRAFCET/vector.c:
6687 * objects/GRAFCET/vergent.c:
6688 * objects/Misc/analog_clock.c:
6689 * objects/SADT/annotation.c:
6690 * objects/SADT/arrow.c:
6691 * objects/SADT/box.c:
6692 * objects/UML/activity.c:
6693 * objects/UML/actor.c:
6694 * objects/UML/association.c:
6695 * objects/UML/branch.c:
6696 * objects/UML/class.c:
6697 * objects/UML/classicon.c:
6698 * objects/UML/component.c:
6699 * objects/UML/constraint.c:
6700 * objects/UML/dependency.c:
6701 * objects/UML/fork.c:
6702 * objects/UML/generalization.c:
6703 * objects/UML/implements.c:
6704 * objects/UML/large_package.c:
6705 * objects/UML/lifeline.c:
6706 * objects/UML/message.c:
6707 * objects/UML/node.c:
6708 * objects/UML/note.c:
6709 * objects/UML/object.c:
6710 * objects/UML/realizes.c:
6711 * objects/UML/small_package.c:
6712 * objects/UML/state.c:
6713 * objects/UML/state_term.c:
6714 * objects/UML/usecase.c:
6715 * objects/chronogram/chronoline.c:
6716 * objects/chronogram/chronoref.c:
6717 * objects/custom/custom_object.c:
6718 * objects/flowchart/box.c:
6719 * objects/flowchart/diamond.c:
6720 * objects/flowchart/ellipse.c:
6721 * objects/flowchart/parallelogram.c:
6722 * objects/network/bus.c:
6723 * objects/network/wanlink.c:
6724 * objects/standard/arc.c:
6725 * objects/standard/bezier.c:
6726 * objects/standard/beziergon.c:
6727 * objects/standard/box.c:
6728 * objects/standard/ellipse.c:
6729 * objects/standard/image.c:
6730 * objects/standard/line.c:
6731 * objects/standard/polygon.c:
6732 * objects/standard/polyline.c:
6733 * objects/standard/textobj.c:
6734 * objects/standard/zigzagline.c:
6735 Binary compatibility update: Added return value for foo_move() and
6736 foo_move_handle(). Orthconn derivatives also returns change from
6737 orthconn_move_handle().
6739 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
6740 doesn't support it yet.
6742 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6743 Add returning ObjectChange from object moves. Needs to handle
6744 multiple object moves.
6746 * app/modify_tool.c (modify_motion, modify_release): Add
6747 ObjectChange from move & move_handle to undo stack.
6749 * objects/EML/instantiation.c (instantiation_move): Removing
6750 duplicate move & update.
6752 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
6754 * plug-ins/xfig/xfig-export.c: Added support for arrow head
6755 export. Many arrow types not supported by XFig, replacing those
6756 with standard arrows. Not sure whether it'd be better to render
6757 them as a group of lines instead. You'd lose the arrow-ness for
6758 further editing, but preserve the actual shape of it. Also added
6759 support for dash length.
6761 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6763 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6764 description for version 3.2, for reference.
6766 * plug-ins/xfig/xfig-import.c: Added import of arrows.
6768 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
6769 Align Vertical Adjacent call _v rather than _h.
6771 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
6773 * app/scroll_tool.c (create_scroll_tool):
6774 * app/modify_tool.c (create_modify_tool): use g_new0() to
6777 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
6779 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6781 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
6783 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6785 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
6787 * configure.in: Added Belarusian to ALL_LINGUAS.
6789 2003-07-19 Hans Breuer <hans@breuer.org>
6792 Make the xslt plug-in work on win32, too. It appears
6793 to require a quite recent version of libxml and libxslt,
6794 otherwise windoze pathes aren't translated correctly
6795 during file processing
6798 * plug-ins/xslt/xslt.h : #include <glib.h> before
6801 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6802 the 'script' file finding similar to how it is done
6803 with the python scripts (no need for hardcoded pathes,
6804 removed the 'plugin' part from the path)
6806 * plug-ins/xslt/stylesheets.xml : added again. It does
6807 not have any path but only the pure filename again
6809 * plug-ins/xslt/stylesheets.xml.in : removed
6811 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6812 rule to process stylesheets.xml.in
6814 * plug-ins/makefile.msc : added xslt
6816 2003-07-19 Hans Breuer <hans@breuer.org>
6818 Finally Dia learned to remember the recent selected sheet
6820 * app/preferences.[hc] : added prefs.recent_sheet
6821 * app/interface.c : restore and remember the sheet-option-menu
6822 history, but only if the respective number is stiil available.
6823 This additional adds robustness against running Dia without
6824 any sheet (e.g. installation problems)
6825 * app/app_procs.c : call prefs_safe() in app_exit() to remember
6826 changes which are not done by the prefernces dialog
6828 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6829 removed every call (especially the conditional ones) to prefs_safe().
6830 Before prefs_safe() was called _many_ times during Dia startup
6832 2003-07-18 Hans Breuer <hans@breuer.org>
6834 * app/makefile.msc lib/makefile.msc lib/libdia.def :
6837 * lib/color.c : use gtk_widget_get_default_visual();
6838 as suggested in #114536
6840 * app/interface.c app/disp_callbacks.c :
6841 moved round_up () to the latter file where it is used
6843 * app/linewidth_area.c : #include "interface.h" for
6844 interface_get_toolbox_shell()
6846 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
6848 * plug-ins/pixbuf/.cvsignore
6849 * shapes/Cisco/.cvsignore:
6852 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
6854 * app/dia-props.c (diagram_properties_retrieve): Use
6855 diagram_get_name() to add the diagram name to the diagram
6859 * app/diagram.c (diagram_get_name): New function to get a
6860 reasonable diagram name.
6862 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6863 info. Still need to be able to set dynamic grid. Also ought to
6864 follow Gnome style and have instant apply.
6866 * app/preferences.h:
6867 * app/preferences.c (prefs_data): Remove option to use stippled
6868 grid, add option for major line offset. Default to 5 minor lines
6870 Add option for dynamically sized grid.
6872 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6874 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
6875 stippled/solid to display minor/major grid lines. Line drawing in
6876 separate functions away from calculating line distance.
6878 * app/grid.h: Split page break drawing out of grid_draw.
6880 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6881 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
6882 when menu item is selected.
6884 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
6886 * configure.in: Removed -Winline flag to make way for important
6889 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
6890 non-compressed. Should fix bug #117381, also look prettier.
6893 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
6894 Set up desktop info more properly.
6896 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
6913 Autorouting directions patch from Krzysztof Foltman
6916 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
6917 GNOME parent menu items.
6919 * app/authors.h: Added Vadim to contributors list.
6921 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
6923 * app/commands.[ch]:
6924 * app/create_object.c:
6925 * app/disp_callbacks.[ch]:
6936 * objects/UML/large_package.c: Patch from Vadim Berezniker
6937 <vadim@berezniker.com>:
6938 Objects may "parent" other objects, i.e. contain them within
6939 themselves, restrain them and move them along. Some more stuff is
6940 needed, such as selection and individual unparenting. This adds
6941 parenting to UML - Large Package rather than Box.
6943 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
6945 * app/linewidth_area.c: Patch from Krzysztof Foltman
6946 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
6947 conform more, at least:).
6949 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
6950 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
6951 arcs. Implemented images (though there is some pixelization and
6952 banding in the output). Changed output file format to be a little
6955 * app/app_procs.c (app_exit): Added message for double exit, which
6956 shouldn't happen any more. Also preventing strange g_object_unref
6957 messages by having a printf after gtk_main_quit. This is really
6960 * app/interface.c (toolbox_delete): Avoid double app_exit call by
6961 removing handler for destroy when delete is called.
6963 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
6966 * app/display.c (ddisplay_scroll_to_object,
6967 ddisplay_scroll_center_point): New function for easy scrolling to
6970 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
6972 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
6973 $(srcdir) on stylesheets.xml.
6975 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
6976 diagram menus (since they're at the top by default now). Also
6977 move the Properties... menu item from Dialogs to Objects. Dialogs
6978 menu should disappear at some point.
6980 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
6981 ./configure from ./autogen.sh, as configure may need to be run
6982 from a different directory. (Also more standard this way.)
6984 * app/app_procs.c (app_init):
6985 * app/Makefile.am (INCLUDES): Gnome standardization patch from
6988 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
6990 * objects/flowchart/parallelogram.c (pgram_update_data):
6991 Left/right alignment for parallelograms. Doesn't use all
6992 available space, but then pgrams also ignore their shear value.
6993 This thing needs a loving hand.
6995 2003-07-01 Hans Breuer <hans@breuer.org>
6997 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
6998 * lib/proplist.c : don't complain if optional attr is missing
6999 * lib/orth_conn.h : make "orth_autoroute" optional to
7000 stop complaining with older files.
7002 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
7004 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
7006 2003-06-05 Andrew Halper <ashalper@cox.net>
7008 * app/diagram_tree.c : add scrolling of drawing area
7009 to desired object on "Locate". Patch modified to use new ddisplay
7010 function ddisplay_scroll_to_object().
7012 2003-06-11 Lars Clausen <lars@raeder.dk>
7014 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
7015 info. Before next version, the grid dialog (view dialog, really)
7016 must be redone to allow a) instant apply, b) apply to all
7017 diagrams, and c) setting colour, dynamic, major lines.
7019 * app/preferences.h:
7020 * app/preferences.c (prefs_data): Remove option to use stippled
7021 grid, add option for major line offset. Default to 5 minor lines
7023 Add option for dynamically sized grid.
7025 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7027 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
7028 stippled/solid to display minor/major grid lines. Line drawing in
7029 separate function away from calculating line distance.
7031 * app/grid.h: Split page break drawing out of grid_draw.
7033 2003-05-15 Hans Breuer <hans@breuer.org>
7035 * plug-ins/python/diasvg.py : add xlink definition,
7036 also avoid to put spaces into attribute values. At least
7037 Sodipodi doesn't like them in width/height attributes
7039 * plug-ins/python/diasvg_import.py : add simple scaling.
7040 Some (more) handling for <svg>, <desc>, <circle>
7042 * plug-ins/python/scascale.py : (new file) which does
7043 some experimental scaling via StdProp api
7045 * plug-ins/python/pydia-cpoint.c
7046 plug-ins/python/pydia-handle.c : return PyDiaPoint for
7047 obj.pos not simple tuples. PyDiaPoint has a tuple interface
7048 so this may even be api compatible ...
7050 2003-05-11 Hans Breuer <hans@breuer.org>
7052 * app/line_area.c : add window position persitence
7054 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
7055 'poly_points' via StdProp api
7056 * lib/neworth_conn.h : don't rely on OrthConn and
7057 NewOrtConn having the same struct offsets
7059 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
7060 to help separating 'useful' properies - in terms of
7063 * objects/custom/custom_object.c
7065 add the missing prop_desc_list_calculate_quarks to
7066 all the *_describe_props()
7068 * objects/standard/beziergon.c objects/standard/bezier.c :
7069 explicit initializtion of default_user_data
7070 * objects/standard/polygon.c objects/standard/polyline.c :
7071 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
7073 * plug-ins/python/diamodule.c : implement dia.register_import
7075 * plug-ins/python/makefile.msc : need to link with Pango
7076 for pango_color_parse()
7078 * plug-ins/python/pydia-property.c : add a bunch of type
7079 conversions to PyDiaProperty_ApllyToObject()
7081 * plug-ins/python/diasvg_import.py : (new file) which currently
7082 is mainly a stress test for PyDia but for some files already
7083 produces better results than svg-import.c
7085 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
7087 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
7088 type-less operations.
7090 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
7092 * configure.in(ALL_LINGUAS): Added "ms".
7094 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
7096 * plug-ins/xslt/xslt.c (xslt_ok):
7097 * plug-ins/shape/shape-export.c (new_shape_renderer):
7098 * plug-ins/svg/render_svg.c (new_svg_renderer):
7099 * plug-ins/hpgl/hpgl.c (export_data):
7100 * plug-ins/dxf/dxf-export.c (export_dxf):
7101 * plug-ins/metapost/render_metapost.c (export_metapost):
7102 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
7103 * plug-ins/xfig/xfig-export.c (export_fig):
7104 * plug-ins/wpg/wpg.c (export_data):
7105 * plug-ins/cgm/cgm.c (export_cgm):
7106 * app/render_eps.c (export_eps):
7107 * app/export_png.c (export_png_ok):
7108 * app/load_save.c (diagram_data_save): Adding and standardizing
7109 output file error messages to include fopen error message.
7111 2003-05-01 Steffen Macke <sdteffen@web.de>
7113 * app/persistence.c: do not use unistd.h for MSVC build
7115 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
7117 * sheets/Assorted.sheet.in
7118 * sheets/Circuit.sheet.in
7119 * sheets/Contact.sheet.in
7120 * sheets/EML.sheet.in
7121 * sheets/ER.sheet.in
7122 * sheets/Electric.sheet.in
7123 * sheets/FS.sheet.in
7124 * sheets/Flowchart.sheet.in
7125 * sheets/GRAFCET.sheet.in
7126 * sheets/Logic.sheet.in
7127 * sheets/MSE.sheet.in
7128 * sheets/Misc.sheet.in
7129 * sheets/Pneumatic.sheet.in
7130 * sheets/SADT.sheet.in
7131 * sheets/SDL.sheet.in
7132 * sheets/UML.sheet.in
7133 * sheets/chronogram.sheet.in
7134 * sheets/ciscohub.sheet.in
7135 * sheets/ciscomisc.sheet.in
7136 * sheets/cisconetwork.sheet.in
7137 * sheets/ciscorouter.sheet.in
7138 * sheets/civil.sheet.in
7139 * sheets/network.sheet.in
7140 * sheets/sybase.sheet.in:
7141 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
7142 standardizes shape descriptions to use no articles, no 'create
7145 * app/interface.c (tool_data): Standard objects follow same
7148 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
7150 * app/color_area.c (color_area_edit): More informative title on
7151 color selection dialog.
7153 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
7154 sensitivity when dropping object in. Also reset tool to pointer.
7156 * objects/flowchart/diamond.c (diamond_update_data):
7157 * objects/flowchart/parallelogram.c (pgram_update_data): Added
7158 left and right alignment options.
7160 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
7162 * objects/flowchart/box.c: Added left and right alignment options.
7164 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
7166 * app/persistence.c (persistence_load): Test existence of
7167 persistence file before trying to open it.
7169 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
7171 * app/properties.c: Escape now closes properties dialogs.
7173 2003-04-25 Hans Breuer <hans@breuer.org>
7175 * app/config.h.win32 : bump version to 0.91+cvs
7177 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
7179 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
7181 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
7184 * app/presistence.c : need to #include "dia_xml_libxml.h"
7187 * app/layer_dialog.c : make delayed creation work by protecting
7188 all non static layer_dialog_*() with :
7189 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
7190 create_layer_dialog();
7191 * app/app_procs.c : removed /* create_layer_dialog(); */
7193 * objects/uml/association.c : give it a minimal StdProp
7194 implementation to fix bug #108896
7195 * lib/object_defaults.c : don't try to copy props if there
7196 is no obj->ops->describe_props
7198 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
7200 * objects/standard/image.c (image_create):
7201 * objects/standard/ellipse.c (ellipse_create):
7202 * objects/standard/box.c (box_create):
7203 * objects/flowchart/ellipse.c (ellipse_create):
7204 * objects/flowchart/diamond.c (diamond_create):
7205 * objects/flowchart/box.c (box_create):
7206 * objects/custom/custom_object.c (custom_create):
7207 * objects/ER/relationship.c (relationship_create):
7208 * objects/ER/entity.c (entity_create):
7209 * objects/ER/attribute.c (attribute_create): Initialize
7210 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
7212 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
7216 * plug-ins/Makefile.am:
7217 * plug-ins/xslt/Makefile.am:
7218 * plug-ins/xslt/xslt.c (dia_plugin_init):
7219 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
7220 automake-style if to only include xslt dir when needed. Works
7221 with automake 1.4 and up, at least.
7223 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
7225 * lib/diasvgrenderer.c (draw_string):
7226 * lib/dia_svg.c (dia_svg_parse_style): Use
7227 text-anchor:(start|middle|end).
7229 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
7230 polygon rather than polyline & avoid missing line pieces.
7231 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
7232 black-filled things.
7234 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
7236 * app/persistence.c (persistence_load): Check that persistence
7237 file exists before trying to read it.
7238 (persistence_update_window): Removed printf.
7240 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
7242 * lib/autoroute.c: Take badness into the layouters again, as some
7243 of them know they can do things that are pretty but would be
7244 counted as ugly by the default calculation.
7246 * objects/UML/large_package.c: Shrink package name box when no
7247 stereotype is present.
7249 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
7250 * lib/orth_conn.c: Added object menu item for autorouting.
7252 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
7253 Autorouting, plus set initial dragging handle to be the end, not
7255 (orthflow_draw): Flipped arrow place to be at the end, as
7256 originally intended (got lost in arrow update).
7258 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
7259 * objects/UML/dependency.c (dependency_get_object_menu):
7260 * objects/UML/association.c (association_get_object_menu):
7261 * objects/UML/realizes.c (realizes_get_object_menu):
7262 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
7263 * objects/GRAFCET/vector.c (arc_get_object_menu):
7264 * objects/ER/participation.c (participation_get_object_menu):
7265 * objects/EML/instantiation.c (instantiation_get_object_menu):
7266 * objects/UML/generalization.c (generalization_get_object_menu):
7267 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
7268 Autorouting setup (currently disabled for SADT/arrow).
7270 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
7272 * lib/autoroute.c: Removed printfs.
7275 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7276 non-connected orthconns too.
7278 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
7281 * lib/orth_conn.c: Function to set autorouting on/off, use
7282 autorouting in move_handle (turns off when a middle handle is
7283 moved), added to standard orthconn props.
7285 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7286 Stopped signal emission for check menu items being set to on/off.
7288 * objects/standard/zigzagline.c: Added autorouting object menu item.
7290 * lib/autoroute.c: Added last cases of autoroute layout, fixed
7291 floating point comparison bug, cleaned up layouters, tweaked
7292 badness to allow kinks.
7294 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
7296 * lib/connectionpoint.h: Changed DIR_* macros to go around the
7299 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7301 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7302 old cruft, added call to autoroute (currently cannot be turned
7303 off). Need to check what undo thinks about this.
7304 * lib/autoroute.[ch]: Fairly working simple layout.
7306 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7307 * lib/autoroute.[ch]: Start of proper autorouting functionality.
7309 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
7311 * lib/prop_widgets.c: Show labels on ListProp.
7313 2003-04-11 Steffen Macke <sdteffen@web.de>
7315 * doc/en/dia-manual.xml: removed reference of non-existing authors
7317 * doc/en/usage-objects-selecting: commented out misleading section
7320 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
7322 * app/app_procs.c (app_init): Layer window now opened at startup
7325 * lib/prop_widgets.c: Show labels on ListProp.
7327 2003-04-09 Steffen Macke <sdteffen@web.de>
7329 * doc/en/*.sgml: removed files
7330 * doc/en/*.xml: added files
7331 * doc/en/Makefile.am: switched to XML DocBook
7333 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
7335 * plug-ins/xslt/xslt.c (dia_plugin_init):
7336 * configure.in: Added --with-xslt-prefix to allow other XSLT
7337 placements than /usr/lib.
7339 2003-04-09 Steffen Macke <sdteffen@web.de>
7341 * lib/makefile.mingw: updated to include latest files, including
7343 * lib/geometry.h: don't define isinf and finite for mingw gcc build
7345 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
7347 * app/persistence.h:
7348 * app/persistence.c (persistence_register_window_create):
7349 * app/app_procs.c (app_init):
7350 Register window function that doesn't create the window unless it
7351 should be open. Other windows should move to this, so startup
7352 speed can be reduced.
7354 * app/persistence.h: Removed call prototype for update_window, now
7356 * app/persistence.c (persistence_register_window): A number of
7357 fixes. Doesn't forget position when window is closed. Now
7358 actually loads prefs.
7360 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7363 * app/preferences.c (prefs_data):
7364 * app/diagram_tree_window.h:
7365 * app/diagram_tree_window.c: Added persistence registering.
7366 Removed prefs items storing size and openness.
7368 * app/sheets_dialog.c (create_sheets_main_dialog): Added
7369 persistence registering.
7371 * app/Makefile.am (dia_core_files): Added persistence files.
7374 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7375 that dirs are present.
7377 * app/app_procs.c (app_init): Loads persistent values on startup.
7378 (app_exit): Saves persistent values on exit.
7380 * app/layer_dialog.c (create_layer_dialog): Registers the layer
7381 window for persistence.
7383 * app/persistence.[ch]: New files handling various kinds of
7386 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
7388 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7389 head spacing calculations. Added half-circle arrow from Matthieu
7390 Sozeau <mattam@netcourrier.com>
7392 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
7394 * app/app_procs.c (app_init): Moved layer dialog init to allow
7395 tooltips to be initialized.
7397 * app/interface.c (create_display_shell): More tooltips.
7399 * app/linewidth_area.c (linewidth_area_create)
7400 (linewidth_area_events):
7401 * app/color_area.c (color_area_events, color_area_create):
7402 Made tooltips work by embedding drawing_area in event_box.
7404 * app/interface.c (create_display_shell,
7405 (create_lineprops_area, create_color_area): Added a few tooltips.
7407 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
7409 * app/pixmaps/off-grid.xpm:
7410 * app/pixmaps/on-grid.xpm:
7411 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7414 * app/commands.c (view_snap_to_grid_callback):
7415 * app/display.c (ddisplay_set_snap_to_grid)
7416 (update_snap_grid_status):
7417 * app/interface.c (create_display_shell, grid_toggle_snap):
7418 Added snap-to-grid status button.
7420 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
7422 * app/app_procs.c (app_init): Create a new diagram if a file on
7423 the command line isn't found.
7425 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
7427 * lib/dialibartrenderer.c (draw_string): Correct color handling
7430 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
7433 * doc/en/dia-manual.sgml:
7434 * doc/pl/dia-manual.sgml:
7436 * dia.spec (Release):
7437 Version 0.91 is here!
7439 2003-02-10 Steffen Macke <sdteffen@web.de>
7441 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
7442 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7443 non-ANSI characters, closes #107980
7445 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
7449 * dia.spec (Release):
7450 * doc/en/dia-manual.sgml: Upping to pre6.
7452 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7454 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7455 #107511: Make arrow selector for correct arrow type.
7457 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
7459 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7462 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
7464 * doc/en/dia-manual.sgml:
7467 * dia.spec (Release): Upping to pre5.
7469 * configure.in: Add freetype-config derived libs to the
7470 AC_CHECK_LIB statement for freetype.
7472 2003-02-28 Hans Breuer <hans@breuer.org>
7474 [fix for bug #107203]
7476 * lib/diarenderer.c : add warning 'implementation'
7477 for fill_rect to avoid crashing with a renderer
7478 which does not implement this required function.
7480 * plug-ins/dxf/dxf-export.c : provide - still empty -
7481 'implementations' for fill_rect and fill_polygon
7482 to suppress the above warnings. Now it works like
7485 2003-02-28 Steffen Macke <sdteffen@web.de>
7487 * samples/all_objects.dia: New sheet containing all dia shapes
7488 and objects; one layer per sheet
7490 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
7492 * lib/prop_text.c (multistringprop_get_widget,
7493 multistringprop_reset_widget, multistringprop_set_from_widget):
7494 Now uses GtkTextView instead of deprecated stuff, and also works:)
7496 * configure.in: Slightly more informative error message for isinf.
7498 * dia.spec (Requires): Require libxml2 rather than libxml.
7500 2003-02-28 Steffen Macke <sdteffen@web.de>
7502 * shapes/Circuit/hjumper.png:
7503 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7506 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
7508 * doc/en/dia-manual.sgml:
7510 * dia.spec (Release):
7511 * NEWS: New prerelease 0.91pre4, two important fixes.
7513 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
7515 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7518 * app/commands.c (help_manual_callback): More correct URL for help
7519 page (include file://, was broken on Dillo without it).
7521 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
7523 * app/disp_callbacks.c: Set modifed when text is changed.
7525 * app/modify_tool.c (modify_button_release): Allow undo for moving
7528 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
7531 * doc/en/dia-manual.sgml:
7533 * configure.in: New prerelease with important bugfix.
7534 * shapes/network/digitizing_board.png:
7535 * shapes/network/plotter.png: Re-adding with -kb.
7537 2003-02-17 Abel Cheung <maddog@linux.org.hk>
7539 * app/app_procs.c (app_init): Add comment for translators.
7541 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
7543 * lib/filter.c (filter_register_import, filter_register_export):
7544 Don't accept filters with NULL description.
7546 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7547 (as we assume the description is available in other places).
7549 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
7551 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
7552 * app/display.c (ddisplay_resize_canvas): Use
7553 ddisplay_add_update_all().
7554 (ddisplay_add_update_all): Free display and update lists when
7555 doing update_all, as they'll be regenerated immediately to cover
7556 all visible area. Fixes bug #106165, crash when resizing. This
7557 appears to be the original AA crash bug, believed long extinct.
7559 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
7561 * app/commands.c (help_manual_callback): Use file: protocol for
7564 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7566 * plug-ins/xslt/stylesheets: Removed old-style config file.
7568 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7570 * plug-ins/xslt/Makefile.am:
7571 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7572 handling (no more DIA_PLUGIN_PATH).
7574 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
7576 * plug-ins/svg/render_svg.c:
7577 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7579 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
7581 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
7582 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
7583 side of the triangle is longer than the hypotenuse. Rounding
7586 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
7590 * doc/en/dia-manual.sgml: Update for pre2.
7592 * app/menus.c (display_menu_items): Fixed wrongly place separators.
7594 * objects/flowchart/box.c (box_update_data): Applied patch from
7595 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7598 * app/paginate_psprint.c (print_page): Set paper name, so it
7599 convinces ps printers to use to right size.
7601 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
7603 * app/properties.c (properties_show): Hide the dialog if the
7604 object is NULL (get rid of 'no properties' randomly popping up).
7606 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
7608 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7609 for diagrams not starting at origo.
7611 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
7613 * dia.spec (BuildRequires): Use libxml2-devel.
7615 * plug-ins/pixbuf/Makefile.am: Added to CVS.
7617 * RELEASE-PROCESS: Note on RPM version numbers.
7619 * app/interface.c (create_display_shell): Don't set as toolbar
7620 under Unix, either. Especially not the diagram shell. It removes
7621 it from the taskbar and makes it unresizable, always-on-top with
7622 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
7623 appropriate thing, UTILITY, is not good either, you lose resizing
7624 and minimizing/maximizing under OpenBox.
7626 * app/menus.c (display_menu_items): Set delete item to use Delete.
7628 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
7630 * dia.spec (BuildRequires, Requires): Updated for Gtk2
7633 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7634 display flush when getting focus in, or we may get an update after
7635 the diagram has been destroyed in some cases. Fixes bug #105221.
7637 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7639 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7641 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7642 - gnome-compiled Dia will now read files specified on the command line.
7644 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
7646 * INSTALL (REQUIREMENTS): Updated requirements section.
7648 * configure.in: Better finite() check from MÃ¥rten Svantesson
7649 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
7652 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
7654 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7656 * app/app_procs.c (debug_break): Added some code to avoid
7657 over-eager optimizations removing the call. Surely there's a
7658 nicer way, but I'm not sure how.
7660 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7661 that set text to black.
7663 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
7665 * NEWS: Mention of Twiki as doc source for Python.
7667 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7668 libart/libpng is not available. Later when we have a way of
7669 letting the user pick options in the file select dialog we shall
7670 allow the choice when applicable.
7672 2003-02-02 Steffen Macke <sdteffen@web.de>
7674 * doc/en/usage-loadsave.sgml:
7675 * doc/en/usage-objects.sgml: patch from
7676 James K. Lowden <jklowden@schemamania.org> to fix
7679 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
7681 * plug-ins/Makefile.am (SUBDIRS):
7682 * plug-ins/pixbuf/pixbuf.c:
7683 * plug-ins/pixbuf/Makefile.am:
7685 Added pixbuf plugin to Makefile.am, but for import only. PNG
7686 export handled by libart, which is better. JPG export is
7687 discouraged. BMP is not much used on Unix. Next release will
7688 integrate libart to allow all outputs.
7690 2003-02-01 Hans Breuer <hans@breuer.org>
7692 * app/preferences.c :
7694 the last two dialogs with 'old' button order finally
7695 are converted to gtk2, no GnomeDialog in all of Dia
7698 2003-02-01 Hans Breuer <hans@breuer.org>
7700 * app/filedlg.c : don't try to use a button as
7701 'overwrite-file-dialog'-parent, use the FileSelDialog
7704 * plug-ins/pixbuf/pixbuf.c : make it work with
7705 system-visual-depth < 24. Remove 'bmp' from output
7706 format extensions, it just was wishful thinking.
7708 * plug-ins/python/Makefile.am : added the four new python
7709 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7711 2003-02-01 Hans Breuer <hans@breuer.org>
7713 * NEWS : updated content beside dependencies
7715 2003-02-01 Hans Breuer <hans@breuer.org>
7717 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7718 to make it useable across DLL boundaries
7719 * app/lineprops_area.c : same code to access arrow_types
7722 * objects/UML/class.c : the non empty string is e.g.
7723 comment != NULL && comment[0] != '\0'
7724 * objects/UML/uml.c : same here, don't bother with
7725 empty operation stereotypes
7727 2003-02-01 Steffen Macke <sdteffen@web.de>
7729 * app/lineprops_area.c: latest changes do not work on
7730 windows, using old code without tooltips
7731 * makefile.msc: fixed copying of wmf.dll
7732 * plug-ins/makefile.msc:
7734 * lib/makefile.msc: now linking libintl
7735 * config.h.win32: enabling native language support
7737 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
7739 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7740 -ldl and -lglib. May or may not work on windows...awaiting verdict.
7742 2003-01-31 Daniel Yacob <locales@geez.org>
7744 * configure.in: Added am (Amharic) to ALL_LINGUAS.
7746 2003-01-31 Steffen Macke <sdteffen@web.de>
7748 * objects/UML/class.c (umlclass_calculate_data): fixed crash
7749 when comments were visible, no class comment available and
7752 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
7754 * RELEASE-PROCESS: Updated to fit new install-module syntax.
7755 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
7758 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
7764 Prerelease version changes, version 0.91-pre1.
7766 * app/sheets_dialog_callbacks.h:
7767 * app/sheets_dialog_callbacks.c:
7768 * app/sheets_dialog.c (create_sheets_main_dialog):
7769 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
7770 to handle destruction of main dialog cleanly, but it's a mess.
7772 * configure.in: Downgraded ieeefp test to make it not produce
7775 * lib/widgets.c (dia_arrow_selector_set_arrow):
7776 (dia_line_style_selector_set_linestyle): Select menu dot
7779 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7780 adjustment for diamondheads.
7782 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7784 * app/properties.c (create_dialog): Destroy properties dialog and
7787 * app/sheets_dialog_callbacks.c
7788 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7789 if the old one is destroyed.
7791 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
7793 * app/export_png.c (export_png_ok): Added info on resolution.
7794 Should (next release) improve export dialog to allow setting
7795 resolution instead of pixels.
7797 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7798 to generate arrowheads as well as tooltips.
7800 * lib/arrows.c: Added hollow diamond to menudesc list.
7803 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7804 unify with rendered menu.
7806 * lib/diarenderer.c (draw_line_with_arrows)
7807 (draw_polyline_with_arrows, draw_arc_with_arrows)
7808 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7809 without changing renderer API. Thanks to David Scherba for
7810 providing inspiration.
7812 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
7814 * app/interface.c (create_display_shell):
7815 * app/display.h: Patching from Hubert Figuiere
7816 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
7819 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
7821 * app/defaults.c (defaults_show): Fixed defaults closing bug.
7822 Thanks to Hans for pointing it out.
7824 2003-01-25 Hans Breuer <hans@breuer.org>
7826 * app/commands.c : don't warn about crashing libart renderer
7827 on win32. It simply doesn't render text anymore :-(
7829 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7831 * objects/UML/class.c : don't access umlclass->properties_dialog
7832 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7833 which sets the former to NULL by destroy_properties_dialog() callback.
7835 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7837 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7839 * plug-ins/python/pydia-image.c : add image.uri member
7840 not only useful for SVG rendering
7842 * plug-ins/python/diasvg.py : (new file) a more advanced
7843 example. A full blown SVG Renderer, currently only
7844 registered for .svgz
7846 * plug-ins/python/export-object.py : write text props
7848 * plug-ins/python/debug_objects.py : write prop.type and
7851 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
7853 * objects/UML/association.c (association_update_data): Better
7854 bounding box for assoc with arrows.
7856 * lib/properties.h: New flag for properties with multiple values
7859 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7860 arrow updating in dialog. Was broken due to changes from destroy
7863 * app/commands.c (view_aa_callback): AA warning only for Windows
7864 -- I trust the Unix side well enough.
7866 * app/render_libart.c (get_text_width):
7867 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7868 font height can be taken from parent instance.
7870 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
7871 (get_text_width): Proper cursor positioning for libart renderer.
7872 Ought to have a DiaInteractiveRenderer that these two can inherit
7873 from, that knows about transform.
7875 2003-01-25 Steffen Macke <sdteffen@web.de>
7877 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7878 plug-in still not working on win32
7880 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
7882 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7883 gdk_window_get_pointer to avoid destroy crash. Simpler than I
7886 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
7888 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
7889 bail out on gtk options.
7891 * lib/message.c (gtk_message_internal): Better handling of destroy
7894 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
7896 * app/color_area.c (color_area_edit):
7897 * lib/widgets.c (dia_file_selector_browse_pressed)
7898 (dia_color_selector_pressed):
7899 * app/plugin-manager.c (get_plugin_manager):
7900 * app/filedlg.c (file_open_callback, file_save_as_callback)
7901 (file_export_callback):
7902 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
7903 handling of destroy event.
7905 2003-01-22 Alan Horkan <horkana@tcd.ie>
7907 * app/commands.c (file_new_callback): Changed Untitled to Diagram
7910 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
7912 * app/preferences.c (prefs_create_dialog):
7913 * app/linewidth_area.c (linewidth_create_dialog):
7914 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
7915 * app/layer_dialog.c (create_layer_dialog)
7916 (layer_dialog_edit_layer): Correct handling of destroy signal.
7918 * app/diapsft2renderer.c (set_font): Adjust silly random factor
7919 for change in font.c
7921 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
7923 * lib/font.c (dia_font_build_layout): Let's all use the same weird
7926 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
7927 * app/layer_dialog.c (create_layer_dialog)
7928 (layer_dialog_edit_layer):
7929 * app/filedlg.c (file_open_callback, file_save_as_callback)
7930 (file_export_callback):
7931 * app/dia-props.c (create_diagram_properties_dialog):
7932 * app/defaults.c (defaults_dialog_destroyed):
7933 * app/color_area.c (color_area_edit): Dialog destroy event handling.
7935 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
7937 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
7938 defaults dialog destroyed.
7940 2003-01-19 Steffen Macke <sdteffen@web.de>
7942 * objects/makefile.msc: added bondgraph
7943 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
7944 to compile pixbuf.dll
7945 * makefile.msc: copying all objects and dlls now
7947 2003-01-19 Hans Breuer <hans@breuer.org>
7949 * app/diagram.[hc] : provide dia_open_diagrams(), make
7950 open_diagrams variable static
7951 * app/dia.def : export it (to be used by PyDia)
7952 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
7953 app/display.c app/dynamic_refresh.c app/layer_dialog.c
7954 app/load_save.c : make use of dia_open_diagrams()
7956 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
7957 on win32. It removes the diagram window from the taskbar and
7958 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
7960 * app/menus.c : add '...' to menu entries where a dialog
7962 * app/recent_files.c app/dia_embedd.c : reflect the above in
7963 menus_get_item_from_path() calls
7965 * lib/libdia.def : add dia_image_rgba_data
7967 * lib/properties.h lib/prop_text.[hc] : add new property
7969 * objects/UML/class.[hc] object/UML/class_dialog.c : use
7970 StringList for attributes_strings and operations_strings to
7971 make this calculated data accessible via the Property API
7973 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
7974 provide dia.new() to create a new diagram, dia.registered_types()
7975 to get on Dia's type registry, dia.message() for simple dialogs
7977 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
7978 to create a new display from a diagram. Let diagram.extents and
7979 diagram.bg_color return the same types as in diagramdata.*
7981 * plug-ins/python/pydia-geometry.c : add a read-only
7982 'sequence interface' to DiaPoint and DiaRectangle
7984 * plug-ins/python/pydia-property.c : allow to get on StringList
7987 * plug-ins/python/pydia-render.c : fix typo to make it compile
7989 * plug-ins/python/python-startup.py : removed 'import pygtk'
7990 again. This file does not need any gtk UI, and some python
7991 plug-ins don't do either
7993 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
7994 it should actually work as intended again
7996 * plug-ins/python/group_props.py : (new file) a prototype for
7997 one the most requested features: Change properties of selected
7998 objects in one step. Requires pygtk.
8000 * plug-ins/python/select_by.py : (new file) select objects by
8001 common properties. Requires pygtk.
8003 [Start of 'PyDia Self Documentation Series']
8005 * plug-ins/python/pydiadoc.py : (new file) generates a new
8006 diagram which contains all objects of dir(dia)
8008 * plug-ins/python/otypes.py : (new file) generates a new diagram
8009 which contains all the currently registered object types sorted
8010 by their containing package
8012 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
8014 * configure.in: Added check for Pango >= 1.1.5, which appears to
8015 be enough to have text work.
8016 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
8017 do it. AC_SUBST should be idempotent, though.
8019 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
8021 * configure.in (HAVE_FREETYPE): Better test for freetype version
8023 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
8025 * lib/font.c: Renamed global_size_one to global_zoom_factor to
8026 avoid confusion, and added comment. Set scale factor in
8027 dia_font_build_layout to 1.0 for Unix side. This fixes at least
8028 my weird scaling problems. Fonts are now of the expectable size,
8029 i.e. the space between lines at size 1.0 is 1.0. If we want a
8030 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
8031 diagrams, though there will always be differences.
8033 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
8035 * plug-ins/python/python-startup.py:
8036 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
8038 * plug-ins/python/python.c (dia_plugin_init): Added warning
8039 message for missing startup file.
8041 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
8043 * lib/dia_image.c (dia_image_rgb_data):
8044 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
8045 involving EPS. Can't do transparency in EPS yet.
8048 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
8049 data as one chunk. Documentation for the RGB data getting funcs.
8050 (dia_image_rgb_data): Added comment.
8052 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
8055 2003-01-13 Steffen Macke <sdteffen@web.de>
8057 * lib/dia_image.c: dia_image_rgb_data() is working for
8058 non-alpha images now. Fixes #93762
8059 * Makefile.am: added makefile.msc to EXTRA_DIST
8061 2003-01-10 Steffen Macke <sdteffen@web.de>
8063 * app/paginate_psprint.c: Closing print dialog when file
8064 could not be written. Fixes #84746
8066 2003-01-04 Steffen Macke <sdteffen@web.de>
8068 * doc/custom-shapes: incomplete description of <svg:text>
8070 2003-01-03 Steffen Macke <sdteffen@web.de>
8072 * makefile.msc(new): new makefile to create file
8073 structure suitable for running dia win32 under
8074 $(TOP)/dia/build/win32
8076 2003-01-02 Steffen Macke <sdteffen@web.de>
8078 * lib/dia_svg.c: including stdlib.h
8079 * lib/makefile.msc: added gdk_pixbuf libs to linker
8080 * app/makefile.msc: added gdk_pixbuf libs, made libart
8081 libs compatible with gnuwin32 package
8083 2003-01-01 Hans Breuer <hans@breuer.org>
8085 * lib/font.c : more comment about global_size_one
8087 * app/menus.c : <control>[<shift>]A for plain gtk build too.
8089 * plug-ins/wmf/wmf.cpp : some type juggling to make
8092 2002-12-31 Steffen Macke <sdteffen@web.de>
8094 * app/makefile.msc: added hint on how to enable console output
8096 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
8098 * objects/standard/textobj.c (textobj_load): Get the handle type
8099 right, at least to be the same as when created.
8101 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
8103 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
8105 2002-12-08 Hans Breuer <hans@breuer.org>
8107 * app/commands.c : fixed bug #85315 'give diagram properties,
8108 instead of no object selected error' almost a one-liner
8110 * app/splash.c : don't make having the logo pixmap
8111 mandatory. Fixes bug #96068.
8113 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
8114 sequence by connecting to the "delete_event"
8115 * app/objects/uml/class_dialog.c : handle "destroy" for
8118 * lib/libdia.def : remove diaXmlNewChild again
8120 * app/paginate_gdiprint.cpp : reflect Dia's page setting
8121 portrait/landscape in the windoze print dialog
8123 * objects/makefile.msc : only UML needs to link against
8124 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
8126 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
8128 * objects/standard/ellipse.c (ellipse_distance_from):
8129 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
8130 correct distance function. Could be faster, but it's not really
8133 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
8135 * lib/font.c: Changed global_size_one to more correct 28.35.
8140 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
8143 2002-12-07 Hans Breuer <hans@breuer.org>
8145 * lib/widgets.c : g_file_get_contents() silently assumes
8146 a binary file. Reflect when creating the font_menu file
8147 to get rid of junk in font menus
8149 2002-12-06 Hans Breuer <hans@breuer.org>
8151 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
8152 removed 0xD 0xD 0xA line ends which get created by
8153 cvs if windoze line ends 0xD 0xA are checked in from
8154 *nix and checked out on win32.
8156 * app/preferences.c : changed toolbox_on_top default to
8157 false. It is currently not possible to change the behaviour
8158 at runtime, at least not on win32.
8160 * lib/dialibartrenderer.c : bug #94791 'rendering to
8161 bitmap without PangoFt2' got delayed to milestone future
8162 so wrap libart text rendering into PANGO_WIN32_FUTURE.
8163 It is not available without my Pango patch in bugzilla.
8165 * lib/font.c : added comment to global_size_one and adapt
8166 the arbitrary size scaling in dia_font_build_layout() for
8167 win32, too. This is needed to get an acceptable font size
8168 approximation for Dia 0.90 and earlier files.
8169 Also #include "message.h".
8171 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
8172 reflect movement of group.[hc]
8173 * lib/group.h : export group_type which gets used by app/*
8175 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
8176 to get the GtkTypeInfo definition
8178 * plug-ins/makefile.msc : dxf and xfig don't need to link
8179 against app/ anymore now that group is moved to lib/
8181 * plug-ins/python/pydia-render.c : remove massive leaking
8182 of self, i.e. PyDiaRenderer
8184 * plug-ins/python/makefile.msc : remove linking against
8187 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
8189 * objects/standard/line.c: Removed properties options for gaps,
8190 until release is done.
8192 * configure.in: Check for freetype version.
8194 * lib/text.c (text_insert_char): Fixed small buffer overflow for
8197 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
8199 * app/diapsft2renderer.h:
8200 * app/diapsft2renderer.c:
8201 * app/diapsrenderer.h:
8202 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
8204 * app/render_eps.c (export_eps, new_psprint_renderer): Using
8205 PS_FT2 renderer when available. Old render stuff killed. Yay!
8207 * lib/properties.h: Fixed bad frame end def.
8209 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
8211 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
8213 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
8215 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
8217 * lib/font.c: Now checking for the proper dia-style standard fonts.
8220 * app/Makefile.am: Moving group.[ch]
8222 * plug-ins/dxf/dxf-import.c:
8223 * plug-ins/xfig/xfig-import.c:
8224 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
8228 * lib/object.c (object_list_move_delta, object_copy_list):
8229 * lib/object.h: Moved some object-related functions from
8230 object_ops to object to assist moving group.c.
8232 * lib/diatypes.h: Added Group typedef.
8235 * lib/group.c: Moved from app to lib to a) resolve plug-ins
8236 references, and b) make groups more "real" objects.
8238 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
8240 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
8242 * lib/font.c (dia_font_init): Added check that the three standard
8245 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
8248 * app/load_save.c: Linebreaks in dia files, no indentation.
8249 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
8252 * objects/standard/line.c: Small but important fixes to the line
8256 * lib/dia_xml.c (diaXmlNewChild):
8257 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8258 XML prettyprinting wrapper.
8260 2002-12-03 Steffen Macke <sdteffen@web.de>
8262 * shapes/Cisco/Makefile.am:
8263 * shapes/Cisco/*.shape: finished conversion of Cisco icons
8266 2002-12-02 Steffen Macke <sdteffen@web.de>
8268 * doc/en/Makefile.am:
8269 * doc/en/usage-objects.sgml:
8270 * doc/en/graphics/line_icon.png: (new) added line icon
8272 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
8274 * objects/standard/line.c: Binary search object edge line gap.
8276 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
8278 * configure.in: Added Cisco makefile, sorted Makefiles list.
8280 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8282 * configure.in: Now checks for availability of PangoFT2 and
8283 FreeType, raising an error if not found.
8285 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8288 2002-12-01 Steffen Macke <sdteffen@web.de>
8290 * doc/en/usage-loadsave.sgml: updated information on import
8293 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
8295 * app/commands.c (edit_copy_callback): Freeing copy_list.
8297 2002-11-28 Steffen Macke <sdteffen@web.de>
8299 * app/render_libart.c: art_config.h was included twice
8301 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
8303 * sheets/.cvsignore: More ignorance.
8305 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8307 * lib/prop_widgets.h: Two (currently unused) settings for frame
8310 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8311 (by default) foldable.
8313 * lib/propinternals.h:
8314 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8315 widgets in a more controlled manner.
8317 * objects/standard/line.c (line_update_data): Line gap things
8318 inserted. Can do xeyes now:)
8320 2002-11-26 Christian Neumair <chris@gnome-de.org>
8322 * .cvsignore: Changed.
8323 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8324 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8327 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8329 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8331 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8332 passing to font hash.
8334 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8335 utf-8 or locale-convertible before adding to dialog text. This
8336 probably needs done in a number of places where we get text from
8337 the environment and send it to GTK to display.
8339 * lib/widgets.c: Fixed case problems for font menu entries.
8341 * objects/SADT/annotation.c: Don't run the event test (but leave
8342 it here for inspiration).
8345 * lib/widgets.h: Allowing setting preview text for fonts.
8347 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8349 * objects/bondgraph/Makefile.am:
8350 * objects/bondgraph/bondgraph.c:
8352 * objects/Makefile.am: Added bond graph dir.
8354 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8356 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8358 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
8360 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8363 * app/diapsrenderer.c: Freetype rendering is back in force.
8365 * app/disp_callbacks.c: Added missing updates for pre-text-change.
8367 2002-11-25 David Hoover <jazzdaq@yahoo.com>
8369 * app/render_libart.c: Added missing #include line for libart.
8372 * lib/geometry.c: Added point_convex function. This computes
8373 points inside a line segment (0 <= alpha <= 1) or outside the
8374 line segment (alpha < 0 | alpha > 1).
8376 * objects/standard/line.c: Line now has additional code/attributes
8377 which permit the line to extend past the line anchors (gap < 0) or
8378 leave a gap without reaching the anchor (gap > 0). If no gap is
8379 specified, the default gap of 0 will result in identical line
8380 behavior as before. If the 'fractional' attributes are TRUE, the
8381 gap length is not fixed, but a percentage of the line length. I
8382 did not know how create the GTK widgets so the gap code currently
8383 cannot be used without adding XML attributes by hand.
8385 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
8387 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8389 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8391 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
8393 * lib/font.c: Debugging functionality in separate functions.
8395 * lib/widgets.c: Using fontsel with context.
8397 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8399 * objects/custom/custom_object.c: Orientation handling for shapes,
8400 patch thanks to Martin Hans <opfinder@gmx.net>.
8402 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8403 work on even better orientation handling.
8405 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8406 casting NULL pointers. Should be unnecessary in an upcoming GTK
8409 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
8413 * lib/widgets.c: Now uses correct context to get font families.
8415 * lib/diagdkrenderer.c (get_text_width, draw_string):
8416 * lib/dialibartrenderer.c (draw_string):
8418 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8419 (dia_font_build_layout): Unified the twiddle factors into a use of
8420 global_size_one. But I deeply distrust Pango for seeming to
8421 change size of fonts every time I turn my back.
8426 * app/menus.h: Updated some more methods to also be more specific
8430 * app/recent_files.c:
8431 Changed to return most specific type, to avoid run-time type errors.
8433 * app/menus.c (menus_get_item_from_path): Non-gnome version now
8434 gets menu_item rather than widget, which works better.
8436 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
8438 * app/display.c: (new_display):
8439 * app/menus.c: (menus_get_item_from_path):
8440 Relying on the tearoff to locate the input methods menu wasn't a
8441 good idea: tearoffs seem to be an endangered species nowadays.
8442 Anyway, the IM menu seems to be working now.
8444 * app/interface.c: hinted the window manager that the toolbox window
8445 is a toolbox window. Not that my (fairly default configuration)
8446 sawfish cares, but other NETWM compliant WMs may.
8453 * app/layer_dialog.c:
8454 * app/linewidth_area.c:
8456 * app/sheets_dialog.c:
8459 The GTK doc says to avoir gtk_window_set_wmclass() and
8460 gtk_window_set_policy(), and use gtk_window_set_role() and
8461 gtk_window_set_resizable(), respectively.
8463 * app/preferences.c: (prefs_create_dialog):
8464 * app/preferences.h:
8465 * app/display.c: (display_set_active):
8466 Added a preference to have the toolbox hover over diagram windows.
8468 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
8470 * lib/diagdkrenderer.c (get_text_width, draw_string):
8471 Freetype-based string drawing now works. Not very fast, though.
8472 I wish I could use the graphics card for this:( I'm doing three
8473 bitmap loops where I should be doing one. The size is not correct
8474 either, despite having get_text_width give the right thing.
8476 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
8478 * app/connectionpoint_ops.c (diagram_update_connections_object):
8479 Allows more than one connectionpoint on an object to be moved at a
8482 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
8484 * configure.in: Added cs to ALL_LINGUAS.
8486 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
8488 * app/paginate_psprint.c: Removed unnecessary decl of autosave
8491 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8493 * app/export_png.c (export_png_ok): Saving more variables from the
8496 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
8498 * lib/dialibartrenderer.c (begin_render):
8499 (end_render): Correct pushing and popping of font contexts.
8500 (draw_string): Double zooming eliminated, strange twiddle factor
8501 introduced (grumble). Close to working now, but there are still
8502 strange differences from font to font. In particular, some fonts
8503 really mess with the cursor and extents.
8505 * app/render_eps.c (export_eps):
8506 * app/diapsrenderer.c (dia_ps_renderer_finalize):
8507 Fixed file closing confusion, no longer dependent on PS/EPS.
8509 * app/diagram.c (diagram_place_down_selected)
8510 (diagram_place_up_selected): Now implemented.
8512 * lib/font.c (dia_font_init):
8514 Redesigned the font init/context pushing code. Start of fix for
8515 font name differences.
8517 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
8519 * app/sheets_dialog_callbacks.c: Fix a typo.
8521 2002-10-15 Hans Breuer <hans@breuer.org>
8523 * app/diapsrenderer.[hc] : (new files, old content :-)
8524 simple base class for post script rendering. Does neither
8525 use Pango/FT2 nor does it handle non latin1 characters.
8526 The fancy stuff which nowadays appears to be needed should
8527 probably be done in derived class(es)
8529 * app/makefile.msc app/Makefile.am : added new files
8531 * app/paginate_psrint.c : re-enabled and used as test
8532 for the simple ps renderer above.
8534 * app/render_eps.[hc] : ripped out common ps code and
8535 moved to DiaPsRenderer. The rest of the file is mostly
8536 disabled. And I don't understand enough of it to
8539 * app/diaepsrenderer.h : short lived, removed.
8541 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
8543 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8544 as a plugin (thanks to Torben Nielsen).
8546 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
8548 * app/diaepsrenderer.h:
8550 * app/paginate_psprint.c:
8551 #ifdef'd out enough ps stuff to allow compile. Now we just need
8554 2002-10-12 Hans Breuer <hans@breuer.org>
8556 [last plug-in ported]
8558 * plug-ins/xfig/xfig-export.c : ported to new renderer api
8560 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8561 scale color values to [0..1.0] to properly reconstruct
8564 * plug-ins/xfig/xfig-common.c : some cleaning
8566 2002-10-12 Hans Breuer <hans@breuer.org>
8568 [decrease inter-plug-in-dependencies]
8570 * objects/custom/shape_info.[hc] : move parse_style()
8571 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8572 the related structs and constants.
8573 * objects/custom/custom_object.c : reflect namespace
8576 * lib/dia_svg.[hc] : new files
8577 * lib/makefile.msc lib/Makefile.am : add new files
8578 * lib/libdia.def : updated externals
8580 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8582 * plug-ins/svg/svg.c : enable svg import for win32 (and
8583 probably for other non ELF builds)
8585 * plug-ins/makefile.msc : enable svg import
8587 2002-10-11 Hans Breuer <hans@breuer.org>
8589 * plug-ins/metapost/render_metapost.[hc] : ported
8591 * plug-ins/pstricks/render_pstricks.[hc] : dito
8593 2002-10-11 Hans Breuer <hans@breuer.org>
8595 * plug-ins/cgm/cgm.c : ported, appears to work as before,
8596 but graphic apps available to me can't import the generated
8597 files (the could not with Dia-0.90 cgm as well) ...
8599 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8600 Removed all those function which did emulate 'complex'
8601 drawing ops with basic ones (e.g. rect by line) cause this
8602 stuff is already provided by the base class
8603 * plug-ins/dxf/dxf-import.c : removed render.h include
8605 * plug-ins/python/pydia-font.[hc]
8606 plug-ins/python/pydia-text.c : finally ported to new font api
8608 * plug-ins/python/pydia-layer.c : add extra parameter
8609 to layer_find_closest_connectionpoint()
8611 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8613 * plug-ins/python/python.c : added missing copyright notice
8615 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
8616 actually use the renderers set_font implementation
8618 * plug-ins/renderer.inc : unused now, removed
8619 * plug-ins/Makefile.am : reflect it
8621 2002-10-08 Hans Breuer <hans@breuer.org>
8623 * app/render_gdk.c : don't add the InteractiveRenderer
8624 interface multiple times (it's added to the type, not
8626 * app/render_libart.c : dito. It's currently added
8627 unconditional cause eport_png uses it, but claims
8628 to be non-interactive. Probably set_size should be moved
8629 to the DiaRenderer interface.
8631 * lib/dialibartrenderer.c : add implementations for
8632 get_<width|height>_pixels. Libart rendering works again.
8633 DiaLibartRenderer::draw_image : use dia_image_rowstride()
8636 * lib/diatransform.c(dia_transform_coords_double) :
8637 don't ROUND() the returned values
8639 * plug-ins/pixbuf/pixbuf.c : added import function. It
8640 simply creates a wrapping "Standard - Image" object.
8642 * plug-ins/shape/shape-export.c : use the more direct
8643 method to call base class methods
8645 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
8647 * lib/font.c (dia_font_init): Changed dia_font_init to return old
8648 pango context, to allow stacked contexts (for printing while
8657 * lib/connectionpoint.h
8660 * lib/diagdkrenderer.h
8662 * lib/dialibartrenderer.h
8665 * lib/diasvgrenderer.h
8666 * lib/diatransform.h
8673 * lib/neworth_conn.h
8688 Moved all externally visible struct typedefs into diatypes.h, as
8689 per Hans' suggestions.
8691 2002-10-07 Steffen Macke <sdteffen@web.de>
8693 * lib/Makefile.am: removed a '\' causing problems
8695 2002-10-07 Hans Breuer <hans@breuer.org>
8697 [Libart Renderer resurrected; almost it's compiling but
8698 almost instantly crashing :-]
8700 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8701 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8702 * lib/diatransform.[hc] : added dia_transform_coords_double()
8704 * app/display.c : the right parameters for new_renderer_libart()
8705 * app/export_png.c : ported, removed the blind Display hack
8707 * app/makefile.msc lib/makefile.msc
8708 lib/Makefile.am : updated
8710 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8712 2002-10-06 Hans Breuer <hans@breuer.org>
8714 * plug-ins/pixbuf/pixbuf.c : (new file)
8715 there is a new export plug-in called 'Pixbuf' which uses
8716 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8717 formats (currently only PNG and JPEG).
8719 2002-10-06 Hans Breuer <hans@breuer.org>
8722 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8724 * lib/dia-enums.h lib/diatransform.[hc]
8725 lib/diarenderer.[hc] lib/diainteractiverenderer.c
8726 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8729 * lib/makefile.msc lib/makefile.am : added new files
8731 * lib/plug-ins.c : g_module_error() returns a locale
8732 string, convert to utf8 before further usage
8734 * lib/render.h : #error out. Everything including this
8736 * lib/*.[hc] : ported to new renderer api
8738 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8739 just to make the rest compile
8740 * app/render_eps.c : temporary disabled all of this
8741 * app/render_eps.h : removed RendererEPS
8743 * app/render_gdk.[hc] : a small wrapper around the new
8744 DiaGdkRenderer form lib/*
8746 * app/render_libart.h : removed RenderLibart definition
8747 * app/render_libart.c : not yet ported to new DiaRenderer
8748 but having an implementation to untie form FT2 dependency
8749 at least on win32. It is using new Pango api form bug #94791
8751 * app/render_pixmap.[hc] : a small wrapper around the new
8752 DiaGdkRenderer form lib/*
8754 * app/display.h : removed render_*.h includes
8755 * app/display.c : the only place where specific
8756 renderers need to be known
8758 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8759 use new DiaInteractiveRenderer interface
8761 * app/*.c : ported to new renderer api
8762 * object/*/*.c : ported to new renderer api
8763 s/render.h/diarenderer.h/
8764 s/Renderer/DiaRenderer/
8765 s/renderer->ops/renderer_ops/
8766 add in every draw method:
8767 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8769 * plug-ins/hpgl/hpgl.c :
8770 plug-ins/wmf/wmf.cpp
8771 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8772 * plug-ins/shape/shape-export.c
8773 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8774 (nice how small these files became :-)
8776 2002-09-28 Hans Breuer <hans@breuer.org>
8778 * */makefile.msc : updated
8780 * app/defaults.c : don't gdk_invalidate_rect(NULL)
8781 * app/disp_callbacks.c :
8782 can't cast GtkWindow to GdkWindow, use shell->window
8783 (ddisplay_unrealize) don't use already unrefed im_context
8785 can't cast from GtkMenu to GtkMenuItem
8786 (ddisp_destroy) : mark im_context as unrefed
8788 * lib/dia_xml (data_font) : prefer new font format over old one
8789 (data_add_font) : write the legacy name to allow file exchange
8790 with pre Pango versions of Dia, which would otherwise crash
8791 on missing font 'name' attribute.
8792 * lib/font.c (dia_font_get_legacy_name) : improved implementation
8793 to get a better match.
8795 * lib/libdia.def : updated
8797 * lib/messages.c : don't gdk_widget_show(NULL)
8799 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
8801 [make Dia compile, link _and_ work with mingw/gcc3.2]
8803 * config.h.win32 : #define LIBXML, this gets defined from libxml
8804 header but only for _MSC_VER. The mingw build did access an
8805 unitialized function pointer for xmlFree.
8807 * */makefile.mingw : updated (some plug-ins have build issues)
8809 * lib/handle.h lib/object.h : there appears to be no
8810 forward declaration of the form
8811 typedef enum _HandleId HandleId
8812 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
8813 use of enum `_HandleId' without previous declaration
8815 * app/paginate_gdiprint.cpp : added a hack to avoid g++
8816 naming conflict on 'export'
8818 * app/paginate_gdiprint.h : forward declare Diagram
8820 * objects/SADT/annotaion.c : use g_random_double()
8822 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
8824 * app/modify_tool.c: Made motion not happen until sufficiently
8825 large or past double-click interval, to avoid accidental moving
8826 when doubleclicking. Got the double-click time right, and fixed
8827 some issues with release. There are some corner cases that may
8828 exhibit strange behaviour, will look at those later. Nah, let's
8829 not care about those, they are rare and not dangerous.
8831 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
8833 * app/layer_dialog.c:
8835 * plug-ins/dxf/dxf-import.c:
8836 * plug-ins/python/pydia-diagram.c:
8837 * lib/diagramdata.c:
8838 * lib/diagramdata.h:
8839 Improved the consistency of the obj->parent_layer backlinks (esp.
8844 * lib/dynamic_obj.[ch] (NEW):
8847 * app/dynamic_refresh.[ch] (NEW):
8848 * objects/Misc/analog_clock.c:
8849 Added support for dynamic refresh (animated objects).
8851 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
8853 Patch from Owen Taylor <otaylor@redhat.com>:
8854 * doc/en/Makefile.am:
8855 * doc/en/dia-manual.sgml:
8856 * doc/en/usage-objects.sgml:
8857 * doc/en/usage-quickstart.sgml:
8858 * doc/pl/Makefile.am:
8859 * doc/pl/dia-manual.sgml:
8860 * doc/pl/usage-objects.sgml:
8861 * doc/pl/usage-quickstart.sgml:
8863 - Change the DTD declration from an outdated GNOME one to a
8866 - Remove close tags for <graphics> which aren't allowed for
8869 - A hacky fix for a problem where some versions of db2html don't
8870 create *.css files. (If *.css doesn't match anything, then you get
8871 the global explicitely.)
8875 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
8877 * objects/custom/custom_object.c:
8878 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
8879 were never properly prepared for use when reloading a shape with
8880 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8881 reporting the problem and coming up with a fix! (Closes: #93974)
8883 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8884 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
8887 * app/display.c: updated menu item paths Alan's patch had moved.
8889 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
8890 load the sheet-provided icon (libpng versions mismatch, grrr.).
8893 * objects/Makefile.am:
8894 * objects/Misc/Makefile.am (NEW):
8895 * objects/Misc/libmisc.c (NEW):
8896 * objects/Misc/analog_clock.c (NEW):
8897 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
8898 * sheets/Misc.sheet.in: just a little experiment...
8900 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
8902 * plug-ins/xlst/Makefile.am: found a way to silence automake while
8903 not forcing everyone to build using libxslt.
8907 * lib/object_defaults.c:
8910 * lib/properties.[ch]:
8912 * objects/standard/box.c:
8913 * objects/UML/state_term.c:
8915 * objects/FS/flow-ortho.c:
8919 * app/diagram_tree.c:
8921 * app/disp_callbacks.c:
8924 * app/lineprops_area.c:
8926 * app/preferences.c:
8929 * app/sheets_dialog_callbacks.c:
8930 * plug-ins/xslt/xslt.c:
8931 * plug-ins/metapost/render_metapost.c:
8932 * plug-ins/xfig/xfig-export.c:
8933 * plug-ins/shape/shape-export.c:
8935 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
8936 unused variables, mostly)
8939 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
8941 * app/Makefile.am: modified run_dia.sh so that we recover the
8942 ability to run a debugger despite libtool's hacks.
8944 * plug-ins/dxf/Makefile.am:
8946 "make distcheck" fixes.
8948 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
8950 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
8951 <mfranzoni@madd.it>: Check for the type being NULL.
8953 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
8955 * app/render_eps.c (set_font): Re-tweaked font size for printing.
8957 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
8959 Patch from Angus Ainslie <angusa@deltatee.com>:
8960 * plug-ins/dxf/dxf-import.c:
8961 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
8963 (plus a couple extra fixes by me, such as the removal of printf's,
8964 adapting for recent changes, and killed a couple warnings)
8966 * app/authors.h: a 60K patch isn't insignificant, is it?
8968 2002-09-09 Tor Lillqvist <tml@iki.fi>
8970 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
8971 as before) and -lfreetype (using AC_CHECK_LIB). At least on
8972 Solaris with Sun's compiler (Forte C), you need to link also the
8973 dia application with -lfreetype, even if it is implicitly linked
8974 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
8975 which is what they actually mean. Use FREETYPE_LIBS for
8978 Don't look for libsunmath if isinf() is not found in math.h (as on
8979 Solaris). The sunmath library is part of Forte C and not present
8980 on all machines. Besides, even if isinf was found in libsunmath,
8981 we didn't use it in the Makefile.am.
8983 Fix a couple of bashisms.
8985 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
8986 too, on Solaris with Forte C.
8988 Don't try to use the gcc flags with other compilers.
8989 DIA_CHECK_CFLAG gives a false indication that Forte C understands
8990 the gcc -f switches, but in fact they get interpreted meaning
8991 something completely different.
8993 Define the automake conditional HAVE_CGC.
8995 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
8997 Use -export-dynamic only with gcc.
9000 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
9001 PANGOFT2_CFLAGS rename.
9003 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
9005 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
9008 * lib/paper.c: Workaround for gccism: Can't use inline this way with
9011 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
9013 * lib/text.c(set_string): fixed a memory leak (char* ain't no
9014 std::auto_ptr<char> !).
9017 * app/interface.[ch]:
9018 * app/ddisp_callbacks.[ch]: Added some basic support for input
9019 methods (GtkIMContext-based)
9022 * app/Makefile.am: made libdia a shared object (per Tor
9023 Lillqvist's suggestion/request), to cope for platforms with a less
9024 than par dynamic library loader.
9026 * app/display.c: disabled the input method menu (I really don't
9027 see where and how to put them. Blame Frozen Bubble )
9029 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
9031 * objects/flowchart/box.c (box_update_data): Made resizing
9032 possible again (only set width & height when resized too small).
9034 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
9036 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
9039 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
9041 * app/authors.h: now showing Akira TAGOH's name in the native script.
9043 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
9045 * plug-ins/xslt/xslt.c: Removed glib warning for unset
9048 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
9050 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
9051 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
9054 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
9056 * objects/UML/class.c: Fixed showing of empty stereotypes and got
9057 the string placed correctly.
9059 2002-08-30 Hans Breuer <hans@breuer.org>
9061 * lib/font.c (dia_font_get_style) : don't shift already
9062 shifted DIA_FONT values.
9064 * lib/libdia.def : updated externals
9066 * app/disp_callbacks.c : on win32 GdkEventKey::string already
9067 is in UTF-8. (Longterm this probably should be handled on the
9070 * app/command.[hc] app/display.[hc] app/menus.c : add code to
9071 switch display renderers again. The libart renderer is very
9072 useful for win9x with it's limited GDI.
9074 * app/render_gdk.c : use g_warning instead of printf which gets
9075 nowhere on win32 (non console apps)
9077 * app/render_libart.c : make it compile without FREETYPE
9079 * objects/makefile.msc plug-ins/makefile.msc : added clean target
9081 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
9083 * app/render_eps.c (postscript_draw_contour): Debugging statement
9084 that allowed me to figure out font problems.
9086 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
9087 items for font styles.
9089 * objects/FS/flow-poly.c:
9090 * objects/FS/flow-ortho.c:
9091 * objects/FS/flow.c: Further conversion away from GTK dialogs.
9092 Can't set a default label right now:(
9094 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
9096 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
9097 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
9099 * Makefile.am: rules relating to AUTHORS and THANKS
9101 * AUTHORS: file content changed to more accurately
9102 reflect guideline requirements.
9103 * TODO: warning added about Gnome BTS.
9104 * KNOWN_BUGS: warning added about Gnome BTS.
9108 * AUTHORS: added full copyright info.
9109 * mkauthors-placeholder: (removed)
9111 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
9113 * app/paginate_psprint.c (print_page): Fixed text printing after
9114 tip from Dov Grobgeld.
9116 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
9118 * app/paginate_psprint.c (print_page): Fixed color of clip
9121 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
9123 * sheets/Makefile.am: enabled intltool-merge translation cache for
9127 * mkauthors-placeholder:
9128 * AUTHORS: revived that file (in a placeholder form) so that
9129 automake stops yelling.
9130 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
9133 Heh, by the way, thanks Christophe. I feel better now.
9135 2002-08-25 Christophe Merlet <christophe@merlet.net>
9137 * app/command.c: Removed invalid multibyte sequence in Chepelov.
9139 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
9141 * lib/dia_image.c (dia_image_rgb_data):
9142 Bugfixes in image data retrieval.
9144 * app/render_eps.c: Refactoring of new_*_renderer.
9146 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
9150 * lib/dia_image.c: Support for rowstride != width (odd width images)
9152 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
9154 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
9155 * plug-ins/xfig/xfig-import.c: Removed assertion.
9157 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
9159 * lib/paper.c: Removed app/preferences.h reference.
9161 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
9163 * plug-ins/svg/svg-import.c:
9164 * plug-ins/xfig/xfig-import.c:
9165 * lib/Makefile.am (libdia_a_SOURCES):
9166 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
9168 * objects/standard/create.h:
9169 * objects/standard/polygon.c (polygon_create):
9170 * objects/standard/polyline.c (polyline_create):
9171 * objects/standard/beziergon.c (beziergon_create):
9172 * objects/standard/bezier.c (bezierline_create):
9173 Moving create.h into lib.
9175 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
9177 * app/render_libart.[ch]: Work on PNG font export. Something's
9178 still fishy with the scaling, I don't get it.
9181 * app/interface.c: Replaced broken zoom combo with entry+menu.
9182 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
9184 * app/render_gdk.c (get_text_width): Checks for validity of text.
9185 Temporary help while debugging input -- should only activate on
9188 * objects/SADT/annotation.c:
9189 * objects/GRAFCET/transition.c:
9190 * objects/FS/function.c: Removal of gtk.h include.
9192 * objects/UML/state.c (state_load): Warnings about using State
9193 object for initial/final states.
9195 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
9197 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
9199 * app/render_eps.c: Text rendering that scales correctly. Too bad
9200 the standard fonts don't get selected right.
9202 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
9204 * lib/diagramdata.h:
9205 * lib/paper.c (get_paper_info):
9207 * plug-ins/xfig/xfig-import.c:
9208 Committed before testing. I am so embarrased. This compiles, now
9209 that the includes are in the right order.
9211 * app/diagram.c (diagram_init):
9212 * app/app_procs.c (do_convert):
9213 * app/preferences.h:
9214 * lib/diagramdata.h:
9215 * lib/diagramdata.c (new_diagram_data):
9217 * lib/paper.c (get_paper_info):
9218 Moved new_diagram part of prefs into lib/diagramdata.h. More
9219 could be done in new_diagram_data() now.
9221 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
9223 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
9225 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
9227 * configure.in: removed silly user-visible comment
9229 (actually, this is a dummy entry before I manually run nemo; for
9230 some dist-upgrade related reason, this morning's run aborted before
9231 the snapshots were created)
9233 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
9235 * objects/network/wanlink.c:
9236 * objects/network/bus.c:
9239 * objects/custom/custom_object.c:
9240 * objects/network/wanlink.c:
9241 * objects/flowchart/parallelogram.c:
9242 * objects/flowchart/ellipse.c:
9243 * objects/flowchart/diamond.c:
9244 * objects/flowchart/box.c:
9245 Removed GTK defaults stuff.
9247 * objects/UML/fork.c:
9248 * objects/UML/object.c:
9249 * objects/UML/lifeline.c:
9250 * objects/UML/branch.c:
9251 * objects/GRAFCET/transition.c:
9252 * objects/FS/function.c: Removed GTK include.
9254 * objects/FS/flow-ortho.c:
9255 * objects/FS/flow.c: Made the label behave again.
9256 Also removed GTK defaults stuff.
9258 2002-08-06 Hans Breuer <hans@breuer.org>
9260 * app/autosave.c : ported to GDir which is the improved
9261 cross platform replacement for <dirent.h>
9263 * app/makefile.msc : build autosave.obj
9265 * app/font.c : some (bad?) code calls
9266 dia_font_scaled_decent() not only with empty string but
9267 with NULL. Handle it gracefully.
9269 * lib/paper.c : don't depend on ../app. Although IMO
9270 this shouldn't be allowed on any platform it is only
9271 disabled for win32, where it simply doesn't work
9274 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9276 * objects/fs/flow.c : conditionalize debug spew, disabled
9277 and 'ported' to use g_print. Simple printf won't work with
9278 standard win32 gui apps, may even crash them.
9280 * plug-ins/makefile.msc : DISABLED svg-import cause it
9281 depends on ../objects/custom. This not only break the
9282 build for all non ELF systems but IMO also isn't acceptable
9283 from a design point of view. See dia-list mail on subject.
9285 * plug-ins/python/makefile.msc :
9286 plug-ins/python/python.c : remove all references to dirent
9288 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
9290 * configure.in: added ro to ALL_LINGUAS
9294 * ../translation-graphs/transgraph.py: added support for fuzzy
9295 translations. Enlarged the graphs.
9297 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
9299 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9300 key events according to locale. No clue if this works for
9303 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
9305 * lib/text.c: Various UTF8 related fixes, in particular in
9306 deleting. Text_insert_char is fine, far as I can tell.
9308 * app/interface.c (create_display_shell):
9309 * app/commands.c: Now uses gtk_clipboard functions, for they are
9310 much simpler. Also handles Win32 clipboard. Non-ascii chars
9311 don't seem to get handled correctly by text_insert_char in
9314 * app/commands.c (received_selection_handler): Got utf8 handling
9315 on paste, and individual char handling out of commands.c. Pasting
9316 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
9318 * lib/message.c (gtk_message_internal): Message dialog re-shown
9319 when new message appears. Maybe it should even move to top?
9323 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9324 (again) and case-insensitive.
9326 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9329 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
9331 * app/commands.c (edit_cut_text_callback):
9332 * lib/text.c (text_delete_all): Now functioning undo for text cut.
9334 * app/commands.c (edit_cut_text_callback): Now removes text.
9335 Undo is broken, though.
9337 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
9339 * app/diagram.c (diagram_update_menu_sensitivity):
9340 Making cut_text active.
9343 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9344 clipboard. Also removed AA callback.
9346 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
9348 * objects/chronogram/chronoref.c:
9349 * objects/chronogram/chronoline.c:
9350 * objects/SADT/annotation.c:
9351 * objects/SADT/arrow.c:
9352 * objects/SADT/box.c:
9353 * objects/GRAFCET/vergent.c:
9354 * objects/GRAFCET/vector.c:
9355 * objects/GRAFCET/step.c:
9356 * objects/GRAFCET/condition.c:
9357 * objects/GRAFCET/action.c:
9358 * objects/ER/participation.c:
9359 * objects/ER/relationship.c:
9360 * objects/ER/entity.c:
9361 * objects/ER/attribute.c:
9362 Removing unnecessary GTK references.
9364 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
9366 * objects/standard/image.c:
9367 * objects/standard/textobj.c:
9368 * objects/standard/ellipse.c:
9369 * objects/standard/polygon.c:
9370 * objects/standard/beziergon.c:
9371 * objects/standard/box.c:
9372 Making default default properties.
9374 * objects/standard/image.c:
9375 * objects/standard/arc.c:
9376 * objects/standard/box.c:
9377 * objects/standard/zigzagline.c:
9378 * objects/standard/polyline.c:
9379 * objects/standard/line.c:
9380 * objects/standard/ellipse.c:
9381 * objects/standard/polygon.c:
9382 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9384 * lib/object_defaults.c (dia_object_default_create):
9387 * lib/object.c (object_copy_using_properties):
9388 * lib/propdialogs.c:
9389 * lib/propinternals.h:
9390 * lib/propobject.c (object_create_props_dialog)
9391 (object_copy_props):
9392 Removing the standard (toolbox) properties from defaults dialogs.
9394 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
9396 * lib/font.c (dia_font_scaled_string_width)
9397 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9399 * lib/text.c (text_calc_boundingbox): Take descent into account.
9401 * objects/standard/bezier.c (bezierline_draw):
9402 * lib/render.c (draw_bezier_with_arrows):
9403 Better arrow drawing for beziers. Doesn't change the mouse-click
9406 * lib/arrows.h: Some const-ness.
9408 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9410 * lib/render.c (draw_arc_with_arrows):
9411 * objects/standard/arc.c (arc_draw): Better arrow drawing for
9412 arcs. Doesn't change the mouse-click area yet.
9414 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
9420 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
9422 * app/group.c (group_draw): Forgotten commit: Groups to draw as
9423 objects (using default routines).
9427 * lib/diagramdata.h:
9428 * lib/diagramdata.c (layer_find_closest_connectionpoint):
9429 * objects/standard/zigzagline.c (zigzagline_move_handle):
9430 * app/diagram.c (diagram_find_closest_connectionpoint):
9431 * plug-ins/python/pydia-diagram.c
9432 (PyDiaDiagram_FindClosestConnectionPoint):
9433 * app/object_ops.c (object_connect_display)
9434 (object_find_connectpoint_display)
9435 * app/create_object.c (create_object_button_press)
9436 (create_object_motion):
9437 * app/modify_tool.c (modify_motion):
9438 Adding object param to allow connectionpoint and handle coinciding.
9440 * objects/standard/zigzagline.c (zigzagline_check_orientation):
9441 Fixing minor problems.
9443 * objects/standard/ellipse.c (ellipse_update_data):
9444 Added direction hints.
9446 * lib/diagramdata.c:
9449 * lib/diagramdata.h:
9450 * objects/standard/zigzagline.c:
9451 First working example of zigzagline hints, currently only between
9454 2002-07-27 Steffen Macke <sdteffen@web.de>
9456 * plug-ins/svg/render_svg.c: added support for rounded
9457 rectangles (fixes #69053 if compile with
9459 * object/custom/shape_info.[c|h]: made parse_style and
9460 parse_path accessible for svg plug-in
9461 * plug-ins/svg/Makefile.am:
9462 * plug-ins/svg/svg.c:
9463 * plug-ins/svg/svg-import.c(new): added SVG import filter
9465 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
9467 * objects/standard/box.c:
9468 * objects/standard/zigzagline.c (zigzagline_move):
9469 More work on zigzagline hints.
9471 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
9472 * lib/connectionpoint.h:
9473 Hints for zigzaglines.
9475 * app/properties.c (properties_show):
9476 * app/defaults.c (defaults_show):
9478 * lib/propobject.c (object_create_props_dialog):
9480 * objects/FS/flow-poly.c:
9481 * objects/network/wanlink.c:
9482 * objects/network/bus.c:
9483 * objects/UML/class.h:
9484 * objects/UML/class_dialog.c:
9485 * objects/UML/association.c:
9486 Start of removing toolbox props from props dialogs.
9490 * app/lineprops_area.c (dia_arrow_chooser_new):
9491 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9493 * app/create_object.c:
9494 * app/modify_tool.c:
9499 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
9501 * app/preferences.c:
9503 * app/diapagelayout.c:
9504 New prefs selector kind PREF_CHOICE chooses between a list of
9505 strings. Used for picking default paper.
9507 * app/preferences.c (prefs_data):
9508 * lib/paper.c (get_paper_info): Added prefs setting for
9511 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9512 line segments at the ends (bug #86603).
9514 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
9516 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9517 #60324: Now calls update_data after copy.
9519 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9520 Now doesn't steal selection from non-object tools.
9522 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
9524 * app/commands.c (help_manual_callback): Uses BROWSER environment
9525 variable when available.
9527 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
9529 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9530 object from the new sheet when changing.
9532 * app/app_procs.c (app_init): Uses more standard size icon, from
9533 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
9535 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
9537 * objects/UML/implements.c (implements_update_data):
9538 * objects/UML/realizes.c (realizes_update_data):
9539 * objects/UML/dependency.c (dependency_update_data):
9540 Test for null strings before calling on ascent.
9542 * objects/UML/realizes.c (realizes_draw):
9543 * objects/UML/message.c (message_draw):
9544 * objects/UML/generalization.c (generalization_draw):
9545 * objects/UML/dependency.c (dependency_draw)
9546 * objects/UML/constraint.c (constraint_draw):
9547 * objects/GRAFCET/condition.c (condition_draw):
9548 * objects/UML/association.c (association_draw):
9549 * objects/FS/flow-ortho.c (orthflow_draw):
9550 * objects/FS/flow.c (flow_draw): Change to use
9551 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
9554 * lib/arrows.c (calculate_arrow_point):
9557 * objects/standard/zigzagline.c:
9558 * objects/standard/polyline.c:
9559 * objects/standard/line.c: Work towards better arrow drawing.
9561 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
9563 * objects/UML/state.c: Starting phase-out of State object as
9564 initial/final state (which never worked right).
9566 * app/app_procs.c (app_init): --version command line option for
9569 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9571 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
9573 * app/render_eps.c: Removed debugging info.
9575 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9576 Kludge to make ascent and descent work for empty strings. Won't
9577 work when using non-ASCII fonts. Better would be to get a
9578 PangoFont and ask directly.
9580 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9583 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9586 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
9588 * plug-ins/xfig/xfig-export.c: First use of draw_object render
9589 function: All shapes are now groups in XFig export.
9591 * lib/diagramdata.c (normal_render):
9594 * app/display.c (ddisplay_obj_render):
9595 New render function for drawing objects, allows renderers to group
9596 or otherwise specially handle objects. We may want to reconsider
9597 calling it in app/display.c, as we 'know' the object draw function
9598 is the default one there.
9600 * lib/Makefile.am: Removed extra \ that broke stuff.
9602 * plug-ins/xfig/xfig-import.c:
9603 Spline import for xfig. Not perfect.
9605 * objects/standard/create.h:
9606 * objects/standard/bezier.c (bezierline_create):
9607 * lib/bezier_conn.c:
9608 * lib/beziershape.c (beziershape_set_points):
9609 * lib/bezier_conn.h:
9610 * lib/beziershape.h:
9611 Support for creating beziers non-interactively.
9613 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
9615 * plug-ins/xfig/xfig-import.c: Support for polygons and
9616 polylines. Special warning handling system removed.
9618 * lib/message.c (gtk_message_internal): Fixed bug involving
9619 closing message window and then getting repeated message.
9623 * configure.in (GETTEXT_PACKAGE):
9624 Update based on bug #88199. Hopefully this doesn't break too much
9627 * dia.desktop.in (_Comment): Changed after suggestion from
9628 calum.benson@ireland.sun.com (bug 88345)
9630 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9631 <loli@unsa.edu.ar> that makes user/system distinction better.
9633 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
9635 * app/render_libart.c: Got the context right, removed crashes.
9645 Remove libart #defines from most places (still around for png export).
9647 * app/render_libart.h:
9648 * app/render_libart.c:
9649 * configure.in (HAVE_LIBART):
9650 Starting on update of libart stuff for png export (without X).
9652 * app/autosave.h (autosave_check_autosave):
9655 * app/Makefile.am (dia_core_files):
9657 * app/diagram.c (diagram_set_modified):
9659 * app/app_procs.c (app_init):
9660 Autosave support. No automatic restore yet.
9662 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
9664 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9667 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
9669 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9671 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
9673 * Fix for 'make dist' etc. --- problem caused by
9674 previous AUTHORS patch.
9676 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
9678 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9680 (set_font): NULL check.
9682 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
9684 * app/disp_callbacks.c:
9686 Addition to the object menus allows check menu items.
9688 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
9690 * HACKING: completely changed to bring up-to-date.
9691 * AUTHORS: file needs REMOVING from CVS as now
9692 dynamically generated.
9693 * app/authors.h: split into subcategories for original
9694 authors, maintainers, etc.
9695 * app/app_procs.c: --credits rewritten to support new
9697 * app/commands.c: no changes to about box code, comment
9699 * Makefile.am: added rule for AUTHORS. I'm still
9700 inexperienced with automake, it seems to work, but
9701 for AUTHORS-related bugs, look at this change first.
9703 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
9705 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9706 work. Back to including xslt dir always.
9708 * objects/UML/uml.c:
9709 * objects/UML/class.h:
9710 * objects/UML/class_dialog.c:
9711 * objects/UML/class.c: Patch from
9712 <mattam@netcourrier.com>: Adds comment visibility switch, also
9715 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9716 for state/fork/activity stuff.
9717 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9718 * objects/UML/Makefile.am:
9719 * objects/UML/uml.c:
9720 * sheets/UML.sheet.in: Added new objects activity, fork,
9722 * objects/UML/pixmaps/state_term.xpm:
9723 * objects/UML/state_term.c: New, only initial/final states.
9724 * objects/UML/pixmaps/activity.xpm:
9725 * objects/UML/activity.c: New, activity state.
9726 * objects/UML/pixmaps/fork.xpm:
9727 * objects/UML/fork.c: New, fork/join bar.
9728 * objects/UML/pixmaps/state.xpm: state icon.
9732 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9733 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9736 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
9738 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9741 * app/Makefile.am: Commented out the diaconv parts while it's not
9742 used anyway. To come back later.
9744 * configure.in (HAVE_FREETYPE):
9747 * app/render_eps.c: Support for printing with freetype, better
9748 encapsulated now. Renders the text nicely, but ignores font
9749 setting. Requires pangoft2 to get the font outline, but non-text
9750 objects can still be rendered without it.
9753 * app/commands.c (objects_place_up_callback)
9754 (objects_place_down_callback):
9756 * app/diagram.c (diagram_place_down_selected)
9757 (diagram_place_up_selected): Starting support for moving objects
9760 * app/menus.c: Removed character/numeral shortcuts.
9762 2002-07-06 Hans Breuer <hans@breuer.org>
9764 * makefile.am app/makefile.am lib/makefile.am
9765 objects/makefile.am plug-ins/makefile.am
9766 plug-ins/python/makefile.am :
9767 added required files for win32 build to EXTRA_DIST
9769 * app/paginate_psprint.c app/render_eps.c
9771 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9772 on Pango as currently is on win32 => no PostScript
9775 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9776 use '/* noop */;' for empty case labels; replace
9777 debug spew printf with g_print which is guaranteed
9778 to work on win32, too.
9780 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
9781 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
9782 in the pango_font_description_set_weight() api documentation
9783 Take care for them in dia_font_get_style() too.
9785 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9786 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9787 rename Obliquity to Slant which appears to be the usual name,
9788 also rename dia_font_get_style_string -> dia_font_get_slant_string
9790 * plug-ins/wmf/wmf.cpp : finally ported to new font api
9792 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9794 * objects/uml/association.c class.c large_package.c message.c
9795 if g_free() is used g_strdup needs to be used.
9796 * objects/custom/shape_info.c
9797 objects/ER/attribute.c entity.c
9798 objects/standard/image.c
9799 app/sheets_dialog_callbacks.c : more strdup cleaning
9801 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
9803 * app/render_eps.c: Non-crashing printing (made the right
9804 context). Font output still fscked up.
9806 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
9808 * app/authors.h: Added file --- now master
9809 location for contributors data.
9810 * app/app_procs.c: Added --credits option.
9811 * app/commands.c: Modified about box to use
9814 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
9816 * app/render_eps.c: First stab at EPS rendering using the contour
9817 code from PAPS. Crashes.
9819 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
9821 * app/recent_files.c (recent_file_history_remove):
9822 Fixed call to g_list_delete_link discarding return value.
9824 * lib/widgets.c (dia_font_selector_set_styles):
9825 * lib/font.h (DiaFontWeight):
9826 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9828 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
9830 Contribution from Alan Horkan <horkana@tcd.ie>:
9833 * sheets/Assorted.sheet:
9834 A set of 40 assorted geometric shapes.
9836 * sheets/Assorted.sheet.in:
9837 * sheets/Makefile.am
9838 * shapes/Assorted/Makefile.am:
9839 * shapes/Makefile.am:
9842 Done the integration job of Alan's shapes. (Translators: have fun!)
9844 * po/dia.pot: refreshed the main potfile.
9846 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
9848 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9850 * objects/UML/class.[ch]:
9851 * objects/UML/class_dialog.c:
9852 changed the number of connection points from a hardcoded value of
9853 8 to a #defined constant
9855 (I changed the constant back from 20 to 8, until we better know
9856 how we'll handle more connection points on the UML class in the
9857 future -- but Tim's patch is a welcome clean-up).
9859 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
9861 * shapes/MSE/demultiplexer.xpm:
9862 * shapes/MSE/node_center.xpm:
9863 * shapes/MSE/multiplexer.xpm:
9864 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9865 Horkan <horkana@tcd.ie>
9867 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
9869 * lib/widgets.c: Total rehash of font selector, with font dialog
9870 option, expanding list (not LRU yet), and stuff.
9872 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
9876 Added a set of new setter/getters, some of them more specially for
9879 * plug-ins/shape/shape-export.c: (new_shape_renderer),
9880 (destroy_shape_renderer), (set_font), (draw_string):
9881 * plug-ins/svg/render_svg.c: (new_svg_renderer),
9882 (destroy_svg_renderer), (set_font), (draw_string):
9884 Actually exported the font face, style, weight and size (sodipodi
9885 agrees with dia on how a small sample should look like (a sample
9886 0.90 would not even display anyways). Yay !)
9888 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9890 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
9892 (end of ChangeLog-less patch)
9894 * objects/custom/shape_info.c (parse_style): now understands the
9895 font-style and font-weight attributes as well. Does not use
9896 anymore dia_font_new_from_legacy_name().
9898 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
9900 * objects/standard/textobj.c: Now uses stdprops for defaults.
9902 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
9903 * lib/font.c (dia_font_get_style): Style now linear and conversion
9906 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
9909 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
9911 * plug-ins/dxf/dxf-import.c:
9912 using dia_font_new_from_style()
9914 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9916 * objects/UML/class.[ch]: Added a comment field to class
9917 * objects/UML/uml.[ch]: Added a comment field to attributes,
9918 operations and parameters.
9919 * objects/UML/class_dialog.c: Added code for the new comment
9921 * plug-ins/xslt/*.xsl: Added some code to handle comments.
9922 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
9923 Added a $directory parameter for stylesheets so the output is
9924 in the good place (not in the $PWD).
9928 * AUTHORS: added contributors, updated maintainers. Removed the
9929 specific areas of action.
9931 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
9932 from a patch by Xing Wang <quixon@gnuchina.org>:
9934 * app/commands.c: help_about_callback now supports
9935 new-style GNOME about box as well as old GTK style.
9936 code also tidied (Closes: #85726)
9940 * app/commands.c: fixed the copyright (it's not all FSF), and
9941 maintainers. Synced contributors list with AUTHORS.
9943 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
9945 * lib/message.c: More work on repeating messages, now with
9948 2002-06-24 Hans Breuer <hans@breuer.org>
9950 * lib/widget.c : some more bits in place, at least
9951 it does something useful instead of crashing. Much
9952 better - but not all ok :-)
9954 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
9956 * lib/message.c (gtk_message_internal): First stab at repeating
9959 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
9962 * objects/GRAFCET/*.c:
9964 * objects/UML/association.c: (one instance forgotten)
9965 * objects/UML/large_package.c:
9966 * objects/standard/textobj.c:
9969 using dia_font_new_from_style()
9971 2002-06-23 Hans Breuer <hans@breuer.org>
9973 * lib/font.c : giving some love to
9974 dia_font_new_from_legacy_name() that is making
9975 import of old files as painless as possible and
9976 provide an almost exact match where possible.
9977 It does not yet fully work because it interfers
9978 with the Style to DiaStyle conversion which comes
9981 [Changing these files is only allowed with Dia-0.90]
9982 * broken-files/fonts-0.90.dia : including the
9983 common hard-coded fonts from Dia-0.90. It also
9984 has drawn bounding-boxes for win32 as they were calculated
9985 from the former version (they were all too big).
9986 * broken-files/fonts-0.90-full.dia : all hardcoded
9987 fonts including the asian versions. On my machine
9988 this gives _a lot_ complaining about missing fonts
9989 and a finally a broken file display. Anyone having
9992 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
9994 * objects/chronogram/*.c:
9995 * objects/custom/custom_object.c:
9997 using dia_font_new_from_style()
9999 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
10001 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
10002 font selector (stability, insensitivity).
10004 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
10005 stretching scheme for tweaking, and made scaling scheme faster
10006 (but less precise).
10007 (dia_font_dia_style_to_pango): Oops, % != /.
10009 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
10012 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
10014 * plug-ins/xslt : Added an XSLT plugin to export dia files using
10015 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
10016 It includes a small config file to tell it what stylesheets to use.
10020 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
10021 GTK2.0/HIG compliant (the labels could be slightly more verbose,
10022 perhaps). Added back a couple forgotten _(). Removed //-style
10025 2002-06-23 Hans Breuer <hans@breuer.org>
10028 (dia_plugin_get_name) : don't crash plugin_manager
10030 (dia_plugin_load) : reuse the description field to
10031 store the error string if loading fails.
10033 * lib/font.[hc] : starting to beautify the new
10034 font api: proper namespacing, adding convenience
10035 functions like dia_font_new_from_style(), ...
10037 * objects/uml/*.c : use the new convenience functions.
10039 [Next thing I plan to do is changing the other font
10040 functions to take DiaStyle and make Style and
10041 BASIC_*_FONT vanish. As well as giving some love to
10042 dia_font_new_from_legacy_name().
10043 If anyone want's to help on converting the other
10044 objects to the new api during that, I would highly
10047 2002-06-23 Hans Breuer <hans@breuer.org>
10049 * lib/font.c : made it compile and small indent fixes.
10050 Is there a code-has-no-effect-so-needs-not-be-valid
10053 * lib/widgets.c : use g_strcasecmp
10055 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
10059 * lib/widgets.c: Font names sorted, style selector widget
10060 reappeared. Doesn't select the old style yet.
10062 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
10064 * lib/font.c: one who expects a text's font to be changed shall
10065 actually request the attributes to apply to the whole range of the
10068 * lib/font.c: extents computation was wrong.
10070 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
10071 if a last NULL parameter is added...
10073 * lib/font.c: extents computation was completely wrong. This looks
10074 much better this time.
10076 * objects/UML/class.c: fixed the various strings positions.
10078 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
10079 macros to get the hardcoded base fonts.
10081 * objects/ER/relationship.c: wasn't converted to DiaFont*
10083 2002-06-22 Hans Breuer <hans@breuer.org>
10085 * lib/widget.c : dont use backend specific functions
10086 to get on the font_families. Including it would mean
10087 including <windows.h> which breaks due to namespace
10090 * lib/libdia.def : updated externals
10092 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
10094 * lib/font.c : added empty dia_font_init_instance function,
10095 reformatting of dia_fon_unref to allow to set breakpoint,
10096 dia_fon_build_layout() : dont crash on string==NULL
10098 * lib/text.c (text_set_attributes) : don't unref the wrong font
10100 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
10101 stores lowercased font names, but dia_font_get_family()
10104 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
10107 * app/render_gdk.c: Patch from Hans Breuer.
10109 * app/Makefile.am (dia_core_files): diaconv commented out for now.
10111 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
10113 * lib/all files touched yesterday: took into account some of Hans
10114 Breuer's remarks in
10115 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
10117 * objects/chronogram/*:
10118 * objects/custom/*:
10120 * objects/flowchart/*:
10122 * objects/GRAFCET/*:
10124 * objects/standard/textobj.?:
10126 converted to the new DiaFonts.
10129 * plug-ins/pstricks/*:
10133 Made minimalistic conversions so that they'd at least compile.
10135 * app/render_gdk.c:
10136 * app/render_pixmap.c:
10137 Converted to the new DiaFonts.
10141 * app/render_eps.c:
10142 made the minimal changes so that it would at least build.
10144 *** At this point, the thing builds on my machine, but segfaults
10147 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
10149 * configure.in: removed the backend-specific pango pkg_modules
10150 (trivial to add back if needed, when actually needed)
10153 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
10154 renderer. The APIs will have completely changed when we get around
10155 to redo a renderer for it, anyways.
10157 * font.[ch]: rewrote everything from scratch, with a Pango
10158 implementation. Normally, only backend-neutral things should go in
10161 **WARNING**: new rules for managing DiaFont* pointers: these are
10162 reference-counted GObjects. One >must< diafont_ref() and
10163 diafont_unref() as appropriate. I wish I could overload operator=()...
10165 lib/plug-ins.h: bumped up the plug-in API.
10170 lib/object_defaults:
10171 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
10172 again tomorrow with GObject.
10174 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
10176 **** The rest of the tree should be updated as well ****
10178 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
10180 * app/render_gdk.h:
10181 * app/render_gdk.c:
10182 * app/render_pixmap.c:
10183 * app/render_pixmap.h:
10184 * app/render_libart.h:
10185 * app/render_libart.c:
10187 * lib/font.c: Removed freetype stuff (still around in
10188 lib/widgets.c 'cause we might want the font selector widget).
10190 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
10192 * shapes/network/laptop.(xml|shape):
10193 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
10194 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
10196 2002-06-17 Hans Breuer <hans@breuer.org>
10198 * lib/object_defaults.c : #include <libxml/tree.h> not
10199 <tree.h> pointed out by Xing Wang
10201 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
10203 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
10205 * app/color_area.c: Update to
10206 gtk_color_selection_*_current_color() fixed bad crash issues, plus
10207 updated color conversions.
10209 * sheets/ER/weakentity.xpm: Accepted patch from
10210 quixon@gnuchina.org to make icon match actual appearance.
10212 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
10213 quixon@gnuchina.org.
10215 2002-06-16 Hans Breuer <hans@breuer.org>
10217 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
10218 good tradition of information hiding. Add new function
10219 dia_plugin_get_symbol()
10220 * app/sheets.c app/sheets_dialog_callbacks.c : use it
10222 * app/sheets.c : stop complaining about object_get_type()
10223 returning NULL. This is a consequence of e.g. disabling
10224 plug-ins at runtime _and_ it was and is gracefully handled.
10225 Spitting out g_warning for it isn't appropriate.
10227 * lib/object.[ch] : removed dead code
10229 * app/plugin-mangager.c : almost complete rewrite for gtk2
10230 using GtkListStore/GtkTreeView
10232 * lib/libdia.def : updated externals
10234 * todo.gtk2 : updated, that is removed already done steps
10236 2002-06-15 Hans Breuer <hans@breuer.org>
10238 * objects/uml/class_dialog.c : clean some left-over
10239 utf8-mess, return 0 from "focus_out_event" handlers
10240 to avoid asserting in gtk (#78305). Reconstruct
10241 stereotype/NULL behaviour to avoid rendering empty
10242 stereotypes on classes and member functions
10244 [#56109 - Provide object defaults for StdProp objects,
10245 some remaining issues are discussed in bugzilla]
10247 * lib/object_defaults.c : (new file) manage default properties
10248 of dia objects. The serialization is done with standard
10249 object methods in a diagram compatible format.
10251 * lib/object.c : add object_registry_foreach() which allows
10252 to iterate over all registered object types
10254 * lib/object.h : added prototypes object_default*() and
10255 object_registry_foreach()
10257 * lib/makefile.am lib/makefile.msc : add new file to build
10259 * lib/libdia.def : export new functions
10261 * app/defaults.c : provide StdProp based defaults if the
10262 ObjectType doesn't implement it's own default functions
10264 * app/create_object.c : through dia_object_default_create()
10265 * app/disp_callbacks.c : same here
10267 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
10269 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10270 sensitivity for deleting segments.
10272 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
10274 * app/color_area.c: (color_area_events):
10275 * app/diagram.c: (diagram_destroy):
10276 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10278 * app/load_save.c: (diagram_data_load):
10279 * app/menus.c: (menus_get_item_from_path):
10280 * app/preferences.c: (prefs_load):
10281 * app/render_gdk.c: (get_text_width):
10283 * lib/color.c: (color_convert):
10284 * lib/dia_dirs.c: (dia_config_filename):
10285 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10286 * lib/intl.c: (intl_get_language_list):
10287 * lib/message.c: (message):
10289 * lib/paper.c: (get_default_paper):
10290 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10291 * lib/widgets.c: (dia_file_selector_get_file):
10293 * objects/standard/image.c: (get_directory):
10297 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
10299 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
10301 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
10303 * app/interface.c: sscanf now returns EOF on empty string, so
10304 handle no match for zoom factor better => correct zoom at start.
10306 * app/sheets.c (create_object_pixmap): Tried to display empty error.
10307 (sheets_optionmenu_create): Died when not finding specified
10308 sheet. Don't think it should.
10310 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10311 (bug #84367) to place the text better.
10313 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
10315 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10317 * app/commands.c: Removed unnecessary gnome include. Removed
10318 GNOME-Print support.
10320 * app/menus.h: Removed now unnecessary gnome include.
10322 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10323 GNOME-specific stock buttons
10325 2002-06-09 Hans Breuer <hans@breuer.org>
10327 * app/app_procs.c : convert 'Modified diagrams exits'
10328 dialog to use GtkMessageDialog. That gives us:
10329 - icons without Gnome dependency
10330 - much less code, also cross platform
10331 - improved useability ?
10333 * app/color_area.c : the Color Selection Widget looked
10334 quite wrong (alpha problems). Fix it by merging in required
10335 changes stolen from The Gimp cvs
10336 * app/color_area.h : to get the right appearance the maskes
10337 needed to be taken into account
10338 * app/interface.c : adapt to color_area_create changes.
10339 Also remove some dead code and finally remove cvs autexpansion,
10340 I was bothered enough by irrelevant differences :-)
10342 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10343 api, i.e stocks and response to make the GnomeDialog usage
10344 obsolete. Also fixed the issue with closing the 'parent'
10345 before closing the dialog
10347 * app/display.[ch] : removed some dead code and conversion
10348 to new GtkDialog api. Also trying to conform to new HIG
10349 standard http://developer.gnome.org/projects/gup/hig/
10351 2002-06-09 Hans Breuer <hans@breuer.org>
10353 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10356 * lib/dia_image.c : gtk_widget_set_default_visual()
10357 remove. It does nothing with Gtk2.
10359 * lib/libdia.def : added ps_unicoder exports
10361 * lib/message.c : remove #GNOME use GtkMessageDialog.
10362 Yeah, Dia gets dialogs wit icons cross-platform.
10364 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10365 to gtk_spin_button_get_value()
10367 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10369 add #undef GTK_DISABLE_DEPRECATED to still use ...
10370 * lib/prop_text.c : ... GtkText
10371 * lib/prop_widgets.c : ... GtkList
10372 * lib/prop_dialogs.c : ... gtk_signal_connect and more
10373 * lib/widgets.c : ... (too much to list here)
10375 * lib/ps-utf8.c : #include <string.h>
10377 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
10380 * Makefile.am: Adapted for gtk2.
10381 Removed dependencies on libunicode, on iconv(), on langinfo().
10383 * acconfig.h: removed (now obsolete)
10385 * lib/charconv.[ch]: removed (superceded by glib)
10386 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10388 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10389 libunicode types for their glib counterparts. Fixed the include
10390 paths for libxml2. Removed all traces of libxml1 or non-UTF8
10391 support (there were remains in objects/uml).
10394 2002-06-08 Hans Breuer <hans@breuer.org>
10396 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10397 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10398 Also use g_strdup()'s handling of NULL by returning NULL
10399 again at all places I found (remove unnecessary if's)
10401 * todo.gtk2 : new file to keep notes about gtk2 porting,
10402 further issues and thoughts and some status information.
10403 Also sent to dia-list ('Dia goes Gtk2 ...').
10405 [make it compile with GTK+ 2.0]
10407 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10408 removed definition of S_ISDIR, S_ISREG and getlogin
10410 * */makefile.msc : Use GTK2 and libxml2
10411 BEWARE: makefile.am, configure.in not yet ported !
10413 * app/app_procs.c app/diagram.c : remove
10414 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
10415 but set use gtk_menu_set_accel_path() on menu creation
10417 * app/color_area.c lib/widgets.c :
10418 make use of gtk_color_selection_set_has_palette ()
10420 * app/commands.c : gdk_pixbuf_new_from_file wants an
10421 extra argument. Convert from DIR to GDir usage.
10423 * app/diagram_tree.c(button_press_callback) : need to return
10424 FALSE in the signal handler to let gtk process it further.
10425 (get_object_name) : don't leak 'prop'
10427 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
10428 dia_page_layout_destroy() getting called more than once
10430 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
10431 GtkTypeInfo changes
10433 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10435 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10436 IIRC this code will not compile unchanged when USE_XIM is defined ...
10438 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10440 * app/interface.c : there is no widget->klass anymore in Gtk,
10441 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10442 parameter. Some tweaking of GtkWrapBox usage to get four tools in
10444 switch off GTK's double buffering on Dia's canvas. Otherwise we would
10445 get triple buffering and flicker.
10446 Replace call to GTK private function _gtk_accel_group_attach()
10447 with public gtk_window_add_accel_group()
10449 * app/layer_dialog.c : adapt to GtkTypeInfo changes
10451 * app/load_save.c lib/plug-ins.c lib/sheet.c
10452 objects/custom/custom.c :
10453 simplified by using g_file_test()
10455 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
10456 to gtk_accel_map_<save|load>. Also added common stock-icons
10459 * app/preferences.c : use gtk_button_set_label() instead
10460 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10462 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10463 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10466 * app/recent_files.c : removed GLIB_CHECK_VERSION
10469 plug-ins/metapost/render_metapost.c
10470 plug-ins/pstricks/render_pstricks.c
10471 plug-ins/svg/render_svg.c :
10472 replace getlogin() with g_get_user_name() which always
10475 * app/render_gdk.c : gdk_region_union_with_rect() modifies
10476 inplace now and returns nothing, also less #hell
10478 * app/render_libart.c : some initial #hell cleaning, SuckFont
10479 still needs to vanish
10481 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10482 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10484 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10485 * app/sheets_dialog_callbacks.c : some #hell and adaptions
10486 needed to GtkWrapBox api changes
10489 * lib/charconv.[hc] : removed from build
10490 [changed appropriate]
10491 * lib/prop_inttypes.c lib/prop_text.c :
10493 * lib/text.c : ported from HEAD but keep original indent
10494 intact. Original was done by Akira TAGOH.
10496 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10498 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10500 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10501 same on all platforms now!
10503 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10505 * lib/message.c : remove "charconv.h"
10507 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10510 * lib/sheet.c : convert from DIR to GDir usage
10512 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10514 * lib/widgets.h : include gtk<label|colorseldialog>.h
10517 * objects/fs/flow.c :
10518 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10520 * objects/custom/custom.c : convert from DIR to GDir usage
10523 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10526 2002-05-03 Hans Breuer <hans@breuer.org>
10528 * lib/dia_xml.c : make the well formed utf8 check
10529 actually work for û (non 7-bit ascii encoding)
10530 and fixed the file re-writing if the check fails.
10531 Thanks to Vitaly Lipatov for noticing the misbehaviour.
10533 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10534 comment on last ressort font. Thanks to Maxim Sobolev.
10536 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
10538 * sheets/network.sheet.in: corrected a typo in plotter invocation.
10540 2002-06-03 Steffen Macke <sdteffen@web.de>
10542 * shapes/network/digitizing_board.png:
10543 * shapes/network/digitizing_board.shape:
10544 * shapes/network/plotter.png:
10545 * shapes/network/plotter.shape:
10546 * shapes/network/Makefile.am
10547 * sheets/network.sheet.in: added new plotter and digitizing
10550 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
10552 * lib/font.c: made a symptomatic fix to a segfault reported by
10553 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10554 won't prevent dia from terminating, but should give more
10555 user-friendly information about why did it terminate.
10557 Two patches from <robert.young@dsto.defence.gov.au>:
10559 * app/display.c: fix the size of the canvas area which gets
10560 redrawn. There was an off-by one error (Closes #83659)
10562 * app/display.c: make sure we redraw all screen only when we
10563 really have to (some update_areas were mistakenly ignored) (Closes
10566 * NEWS: added a new entry for the future. Put there a reminder to
10567 update the dependencies.
10569 * configure.in: put in notes about what will change shortly.
10570 upped the version to 0.90+cvs (did also in config.h.win32)
10571 upped the minimum version for intltools (now 0.21)
10573 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
10579 bumped up version number to 0.90. Yay!
10581 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
10583 * doc/pl/Makefile.am:
10584 * doc/en/Makefile.am: fixed a "make install" problem when db2html
10585 is not present (Reported by Andrew Ferrier
10586 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10587 problem which prevented me from ever seeing the problem in doc/en...
10589 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10591 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10592 way to read the font path from the XFS configuration files in
10593 order to enable FreeType (fixes #83098).
10595 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10602 bumped up version number to 0.90.RC3
10604 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
10606 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10607 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10608 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10609 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10610 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10611 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10612 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10613 Added Polish documentation.
10615 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
10617 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10618 format for the UML State object. Now there's a hack to reload
10619 older files, and get them converted on the fly.
10620 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10622 * lib/properties.h:
10623 * lib/propobject.c:
10624 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10625 and adapter the proplist predicates. A LOAD_ONLY property is for
10626 when you have legacy to support but can't resist moving your
10627 fields around... (was needed to support the above state.c fix).
10629 If the in-core of your object changes and you need a LOAD_ONLY
10630 property for the old format, you must keep some spare room in your
10631 object's struct to accomodate for the potential old-style
10632 attributes. Then in foo_load(), after having called
10633 object_load_using_properties(), you must inspect the old-style
10634 fields and act accordingly. Don't ever change the on-disk formats...
10636 * objects/UML/object.c:
10637 * objects/UML/small_package.c: added a check against empty
10638 stereotypes still consuming space. Reported by Dolores Alia de
10639 Saravia <loli@unsa.edu.ar>. Thanks!
10641 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
10643 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10644 using libtool on an AFS partition.
10646 * po/update_potfiles_in.sh: now simply calls the recent intltools
10647 features; they work better than hand-crafted half-ignorant
10648 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10651 * po/POTFILES.in: added back two files update_potfiles_in.sh
10652 didn't take into account. Now this file is not automatically
10654 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10655 (the usual suspects, in fact).
10657 * configure.in: improved the isinf() / isfinite() detection on
10658 Solaris (MÃ¥rten Svantesson)
10660 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
10662 * configure.in: one expression was replacing $CFLAGS, removing
10663 whatever was previously in.
10664 Added more checks for isinf() and finite() on Solaris.
10666 * lib/geometry.h: added a macro defintion for isinf() if not
10667 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10670 * app/commands.c: "cut" did not set the 'modified' bit (paste has
10671 been for a little while). Fixes #82994.
10673 * Makefile.am: added more stuff to distclean-local. This should make
10674 "make distcheck" pass! Thanks to the author of
10675 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10676 ... I wonder who this Henstridge guy is ... ;-)
10677 Darn. Still doesn't pass. I give up for tonight.
10679 * po/update_potfiles_in.sh: updated to take care of sheet files,
10680 and to filter out the EML plug-in.
10681 * po/POTFILES.in: updated with all .c and all .sheet.in files
10683 * po/dia.pot, po/*.po: again updated all .po files with all
10684 strings (with the updated POTFILES). Now with the up-to-date
10685 POTFILES, just all languages have some fuzzy or untranslated
10686 strings (not that the 100% team was that large beforehand...)
10688 * po-checktrans: removed the comment about .po files not holding
10689 all translatable stuff, since now they do.
10691 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
10697 bumped up version number to 0.90.RC2
10699 2002-05-20 Hans Breuer <hans@breuer.org>
10701 * app/load_save.c : starting to increase
10702 Dias tolerance on incomplete/broken files. The
10703 corresponding bug is #56233. But the patch there does
10704 neither apply anymore nor does it really fix the problem
10705 but only delays it, e.g. even if it would be allowed
10706 to read a file without any layers, the later code can't
10708 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10709 handle passing in NULL for the node gracefully.
10711 * shapes/network/printer.shape : added two more connection
10712 points - one at each side - to fix bug #60359
10714 * app/commands.c (edit_copy_callback) :
10715 add ddisplay_do_update_menu_sensitivity() to make
10716 sequence select-copy-paste work.
10718 2002-05-20 Hans Breuer <hans@breuer.org>
10720 * app/create_object.c (create_object_button_press) :
10721 added a call to ddisplay_do_update_menu_sensitivity()
10722 to make Ctrl^D etc work after object creation.
10725 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
10727 * objects/ER/entity.c:
10728 * objects/ER/attribute.c:
10729 * objects/ER/relationship.c: Patch to allow text size change from
10730 Celso Tetsuo Nagase Suzuki.
10732 2002-05-18 Steffen Macke <sdteffen@web.de>
10734 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
10736 * doc/en/graphics/greendots.png:
10737 * doc/en/home_network.png:
10738 * doc/en/line_props.png:
10740 * dia_gnome_icon.png:
10741 * dia_gnome_menu_icon.png:
10743 * shapes/network/telephone.png:
10744 * shapes/Logic/and.png:
10745 * shapes/Logic/buffer.png:
10746 * shapes/Logic/connector.png:
10747 * shapes/Logic/inverter.png:
10748 * shapes/Logic/nand.png:
10749 * shapes/Logic/nor.png:
10750 * shapes/Logic/not.png:
10751 * shapes/Logic/or.png:
10752 * shapes/logic/xor.png:
10753 * samples/ER-demo.dia:
10754 * samples/SADT.dia:
10755 * samples/UML-demo.dia:
10756 * samples/chronograms.dia:
10757 * samples/grafcet.dia: re-added as binary files
10759 2002-05-17 Hans Breuer <hans@breuer.org>
10761 * lib/libdia.def : reflect removing of render_store.[ch]
10763 * */makefile.mingw : remove VERSION definition it's
10764 done in config.h.win32. Dia still doesn't work if
10765 build with mingw ...
10767 * RELEASE-PROCESS : removed */makefile.mingw
10769 * app/sheets_dialog_callbacks.c : if we use those
10770 ugly charconv_gtk_* functions lib/charconv.h needs to
10772 * lib/charconv.h : ... and needs to contain the
10773 necesseray prototypes _and_ #defines
10775 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10776 is deprecated and does nothing but spit a warning. This broke
10777 the shape format writing. Fixed.
10778 Also with libxml2 pretty formatted xml isn't the default
10779 anymore, but needs to be enabled explicit: It is done now
10780 for shape files, which almost always needed to be edited by
10783 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10784 from stderr - which is invalid on Dia/win32 - to g_print -
10785 which opens up a console window if necessary. This way
10786 a xml-deprecation-error shouldn't stay unnoticed next time
10788 2002-05-17 Steffen Macke <sdteffen@web.de>
10790 * shapes/Misc/folder.png:
10791 * shapes/Misc/file.png: re-added as binary files
10793 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
10795 * lib/font.c: Fixed segfault for fonts without family_name.
10797 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
10799 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10801 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10802 Lars' request, minor cosmetic stuff (mostly _() of human-readable
10803 XML comments in .sheet files; one translator booby-trap disarmed).
10805 * lib/charconv.c: moved #hell inside the body of the new
10806 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10809 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
10811 * plug-ins/wpg/Makefile.am (INCLUDES):
10812 * plug-ins/shape/Makefile.am (INCLUDES):
10813 * plug-ins/svg/Makefile.am (INCLUDES):
10814 * plug-ins/pstricks/Makefile.am (INCLUDES):
10815 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10816 and DEBUG_CFLAGS in some missing places.
10818 * MAINTAINERS: New file containing list of known package
10822 * lib/charconv.c: Charconv versions of some common gtk calls.
10824 * app/sheets_dialog_callbacks.c
10825 (on_sheets_new_dialog_button_ok_clicked),
10826 (on_sheets_dialog_button_edit_clicked),
10827 (on_sheets_dialog_button_remove_clicked),
10828 (on_sheets_edit_dialog_button_ok_clicked):
10829 * app/sheets.c (sheets_optionmenu_create),
10830 (sheets_optionmenu_create): Added utf8 translations.
10832 * app/sheets_dialog.c:
10834 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10836 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
10838 * po/POTFILES.in: added app/sheets_dialog.c
10840 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
10842 * lib/charconv.c: (charconv_local8_to_utf8),
10843 (charconv_utf8_to_local8): tweaked the warnings to get more
10845 * lib/font.c: (font_get_suckfont): handled a potential case of
10846 uninitialised data being used (just paranoid)
10848 * objects/GRAFCET/boolequation.c: (opstring),
10849 (opblock_get_boundingbox), (opblock_draw),
10850 (boolequation_calc_boundingbox): some extra hoops needed now dia
10851 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10852 symbols can't yet be used with their proper Unicode cells, since
10853 gtk will demand them in the Symbol font, expressed in the local
10856 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10857 the fix just above).
10859 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
10861 * app/diagram_tree.c (get_object_name): Check that name property
10862 doesn't have null string.
10864 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
10866 * autogen.sh (DIE): Added conditional --force to gettextize.
10868 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10871 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
10873 * RELEASE-PROCESS: added James' notes on how to properly make the
10876 * configure.in: removed macro nesting related to libpng.h, which
10877 was causing some problems on some systems (like mine, which made
10878 the snapshots bad).
10880 Made --enable-unicode, previously an option, the mandatory case.
10882 * app/Makefile.am: updated EXTRA_DIST
10885 * app/makefile.mingw:
10887 * doc/en/dia-manual.sgml:
10888 * plug-ins/makefile.mingw:
10889 * configure.in: bumped up the version number to 0.90.RC1
10891 * lib/render_objects.[ch]:
10892 * po/POTFILES.in: removed render_objects from the build.
10894 * plug-ins/Makefile.am:
10895 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
10896 so we keep its source in the tarball.
10898 * objects/network/*.c, Makefile.am:
10899 * objects/sybase/*.c, Makefile.am:
10900 * po/POTFILES.in: cleaned up the non-existent files from the po
10903 * plug-ins/Makefile.am: re-enabled metapost plug-in.
10905 2002-05-13 Steffen Macke <sdteffen@web.de>
10908 * app/command.c: added M. C. Nelson to the Authors
10909 * sheets/Circuit/Makefile.am: added firewall shape to build
10910 * sheets/network/Makefile.am: added telephone and microphone
10913 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
10915 * RELEASE-PROCESS: Added list of files that contain the release
10916 number or should otherwise be changed at each release.
10918 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
10920 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
10921 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
10923 2002-05-12 Hans Breuer <hans@breuer.org>
10925 * config.h.win32 : changed VERSION to 0.90.RC1
10927 * app/makefile.msc lib/makefile.msc : use renamed
10928 gdk-pixbuf version (same content but renamed because
10929 all the other gtk+ dlls are renamed) to avoid trouble
10930 mixing gtk versions (of which one would not
10933 * app/app_procs.c : removed recently unneeded
10934 inclusion of "sheets.h"
10936 * app/render_gdk.c : removed my own debug spew
10937 which should never made it to cvs
10939 * lib/render_object.[hc] : added
10940 #error "File not used anymore."
10942 * lib/libdia.def : updated externals
10944 * app/interface.c : dropped filenames need to be
10945 converted from uri with Gtk+2.0
10947 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
10949 * RELEASE-PROCESS (new): a draft document about how to release. To
10950 be discussed. (already with some input from Hans Breuer)
10952 2002-05-12 Steffen Macke <sdteffen@web.de>
10954 * sheets/Makefile.am: re-added Misc sheet to make process
10956 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
10958 * objects/FS/function.c: Added comments to humungous list of menu
10959 items, to aid translators.
10961 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10963 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10965 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10967 * app/interface.c (create_toolbox): Disallow shrinking beyond
10968 requested size. Fixes bug #59439, and confirms to GTK guidelines
10969 (see gtk_window_set_policy).
10970 (create_sheets): Removed now unnecessary set_usize call.
10972 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10974 * lib/beziershape.c (remove_handles): Fixing removal of last
10975 segment. Undo of removal still hokey.
10977 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
10979 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
10981 * lib/beziershape.c (beziershape_init): Removed early call to
10982 beziershape_update_data where points aren't set yet.
10983 (beziershape_add_segment): Use segment 0 instead of overflowing
10984 points array with segment+1.
10985 (beziershape_remove_segment): Proper offset for fixing
10987 (remove_handles): Proper offset.
10989 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
10991 * objects/GRAFCET/action.c (action_update_data): Init x value of
10992 click point for call to connpointlist_adjust_count.
10994 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
10996 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
10997 setting to where values are inited.
10999 * lib/polyshape.c (polyshape_init): Removed call to
11000 polyshape_update_data that tried to use uninitialized data.
11002 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11004 * app/sheets_dialog.c: Mass removal of //-style comments. The
11005 Irix compiler doesn't like them:( I do...
11007 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
11009 * app/render_libart.c (draw_string): Bail out when no GDK font is
11011 (set_font): Give error when font not found.
11012 (set_fillstyle): Intlized error msg.
11014 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
11015 modified when applied (and ok only does apply if apply is set
11016 sensitive). Fixes bug #75623.
11018 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
11020 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
11022 2002-05-05 Steffen Macke <sdteffen@web.de>
11024 * app/Makefile.am: added $(UNICODE_CFLAGS)
11026 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
11028 * app/commands.c (help_manual_callback): Check return value of
11031 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
11033 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
11036 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
11038 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
11040 * objects/UML/uml.c (uml_operation_read): Fix of UML default
11043 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11045 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
11046 Added button to toggle diagram compression.
11048 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11050 * lib/font.c: Support for loading extra kerning files, plus got
11051 rid of rounding errors. Bounding box mostly perfect for freetype
11053 (font_string_width): Fudge factor to get around nonlinearity of
11056 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
11058 * lib/font.c (font_string_width): YA font calculation scheme, with
11061 * objects/UML/class.c (umlclass_calculate_data): Uses the same
11062 font for drawing and calculating now.
11064 * configure.in: Added utime.h check.
11066 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
11067 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
11069 2002-04-26 Hans Breuer <hans@breuer.org>
11071 [ Instead of fixing about 70 occurances in 20 files
11072 where GTK_TALKS_UTF8_WE_DONT needed to be handled
11073 Dia on win32 from now on uses glib-2.0 and not
11074 only talks utf-8 with gtk-1.3 but also internally.
11075 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
11078 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
11079 #undef GTK_TALKS_UTF8_WE_DONT
11081 * */makefile.msc : changes to use glib-2.0 (still
11082 using gtk+1.3(win32-production)
11084 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
11085 adapt kevent->string handling, add <string.h>
11086 * app/render_gdk.c (get_text_width) : the length given
11087 is in chars, gdk_text_width() needs bytes
11089 * app/render_libart.c :
11090 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
11091 (could simplify the same way as done in render_gdk.c)
11093 * app/diagram_tree.c app/paginate_gdiprint.cpp
11095 * lib/prop_basic.c lib/prop_geomtypes.c
11096 lib/propdialgs.c lib/propobject.c :
11097 added <string.h> which is now removed from charconv.h
11099 * lib/charconv.h : optional use infrastructure from
11100 glib-2.0 -> only five direct function mapping left
11102 * lib/charconv.c : avoid to build this with glib-2.0
11104 * lib/font.c : no string conversion needed anymore
11105 when Dia and Gtk talk utf-8, also code adaptions
11106 for GLIB_CHECK_VERSION(2,0,0)
11108 * lib/libdia.def : removed charconv functions
11110 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
11111 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
11113 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
11114 removed GTK_TALKS_UTF8_WE_DONT
11116 * lib/text.c : finally(?) fixed cursor <place|move>ment
11117 for Umlauts. Also fixed char insertion, still wondering
11118 how this could ever work. Does realloc on Linux
11119 initialize the memory with zeros ?
11121 * objects/chronogram/chronoline_event.c
11122 objects/grafcet/boolequation.c :
11123 there is no uni_get_utf8 when building for glib-2.0.
11124 Replace with g_utf8_get_char() and g_utf8_next_char().
11126 * objects/uml/stereotype.c (bracketted_to_string) :
11127 simplify while adding code for glib-2.0 build
11129 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
11131 * app/diagram.h: Autosave field
11132 * app/diagram.c (diagram_set_modified): Sets autosave field.
11134 * objects/UML/usecase.c (usecase_update_data):
11135 * objects/flowchart/ellipse.c (ellipse_update_data):
11136 * objects/flowchart/parallelogram.c (pgram_update_data):
11137 * objects/flowchart/diamond.c (diamond_update_data):
11138 * objects/custom/custom_object.c (custom_update_data):
11139 * objects/UML/state.c (state_update_data):
11140 * objects/UML/small_package.c (smallpackage_update_data):
11141 * objects/UML/object.c (objet_update_data):
11142 * objects/UML/note.c (note_update_data):
11143 * objects/UML/node.c (node_update_data):
11144 * objects/UML/component.c (component_update_data):
11145 * objects/UML/classicon.c (classicon_update_data):
11146 * objects/UML/actor.c (actor_update_data):
11147 * objects/SADT/box.c (sadtbox_update_data):
11148 * objects/FS/function.c (function_update_data):
11149 All now update text boundaries from update_data.
11151 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
11154 2002-04-26 Hans Breuer <hans@breuer.org>
11156 * config.h.win32 : added VERSION definition here
11157 (and removed from makefile.msc's)
11159 * app/makefile.msc : added new files
11161 * app/app_procs.c (app_init): remove sheets_dialog_create()
11162 from start-up and ...
11164 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
11165 sheet_dialog here when it is really needed.
11166 #include "../lib/message.h", make sheets_dialog_create()
11167 return it's success or failing on (!custom_type_symbol).
11168 Although editing shapes is nice IMHO it isn't crucial enough
11169 to abort() Dia if it isn't possible.
11171 * app/sheet.h : adapt create_sheet_dialog() prototype
11173 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
11175 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
11176 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
11177 name space corrections for utime() and utim_buf #ifdef
11180 * lib/libdia.def : export new sheet functions
11182 * lib/makefile.msc : added new files
11184 * lib/render.c : don't put draw_bezier_with_arrows() in
11185 the DrawLineWithArrowsFunc slot
11187 * objects/custom/custom_object.c : #include <gmodule.h>
11188 and export 'custom_type' via G_MODULE_EXPORT
11190 * objects/uml/class_dialog.c : removed 'incompatible
11191 types' warnings. Some refactoring while making it fit
11192 on screen with 800x600 again.
11194 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
11196 * plug-ins/python/pydia-handle.h : extra parameter to
11197 PyDiaHandle_New to store the owner of the handle
11198 * plug-ins/python/pydia-handle.c : store handle owner
11199 on construction and use it in new method .connect()
11200 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
11201 adapt to changed prototype
11203 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
11205 * lib/text.c (text_calc_boundingbox): Will now return early if box
11208 * objects/flowchart/box.c (box_update_data): Now updates text
11209 width info from update_data.
11211 2002-04-23 Steffen Macke <sdteffen@web.de>
11213 * plug-ins/xfig/xfig-import.c: fixed text import
11215 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
11217 * app/export_png.c: Moved dialog functions to their own file.
11218 * app/dialogs.[ch]: New files with standard functions for creating
11219 small, transient dialogs (e.g. export options).
11220 * app/Makefile.am: Added dialogs.[ch]
11222 2002-04-19 Steffen Macke <sdteffen@web.de>
11224 * shapes/Misc/folder.*:
11225 * shapes/Misc/file.*:
11226 * shapes/Misc/Makefile.am:
11227 * shapes/Makefile.am:
11228 * sheets/Misc.sheet.in:
11229 * sheets/Makefile.am:
11230 * configure.in: added new Misc sheet containing filesystem shapes
11232 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
11234 * app/lineprops_area.c: Arrow selector in toolbox changed to use
11235 standard arrowdraw code. Line is thinner to make some arrowheads
11238 2002-04-18 Steffen Macke <sdteffen@web.de>
11240 * sheets/network.sheet.in:
11241 * shapes/network/telephone.shape:
11242 * shapes/network/Makefile.am: added telephone shape
11244 2002-04-16 Steffen Macke <sdteffen@web.de>
11246 * sheets/EML.sheet.in: commented out unavailable shapes
11248 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
11250 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
11251 variable assignment.
11253 2002-04-15 Steffen Macke <sdteffen@web.de>
11255 * plug-ins/dxf/dxf-import.c: text import works again
11256 * shapes/Pneumatic/Makefile.am: added compush shape
11257 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11260 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
11262 * All these modifications are for the 'Sheets and Objects' dialog
11265 * app/pixmaps/line_break.xpm: new icon representing a line break.
11267 * app/pixmaps/n_a.xpm: new empty icon representing not available.
11269 * app/Makefile.am: added sheets_*.[ch] files to compile list.
11271 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11273 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11275 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
11277 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11279 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11281 * app/sheets_dialog_callbacks.h: [new file] support for " " "
11283 * app/interface.c: added 'interface_current_sheet_name' global to
11284 fill_sheet_wbox(); made fill_sheet_menu() non-static
11286 * app/interface.h: added extern declaration for aboves.
11288 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11290 * app/sheets.h: [new file] declarations for backing store structures
11292 * lib/sheet.c: modification of new_sheet() parameters; introduction
11293 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11294 changes to load_register_sheet().
11296 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11297 added 'has_icon_on_sheet' flag to SheetObject structure; added
11298 'filename', 'scope', 'shadowing' fields to Sheet structure.
11300 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11303 * lib/plug-isn.h: see above.
11305 * lib/object.c: added 'sheet.h' to include list; added several
11307 to detect objects which are not found on any sheet (for future use)
11308 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11309 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11311 * lib/object.h: added public declarations for above functions where
11314 * objects/custom/custom.c: made custom_object_load() non-static so we
11315 can load and interpret .shape files from the Sheets & Objects dialog
11317 * objects/custom/custom_object.c: made 'custom_type' non-static so
11318 we can differentiate between SVG shapes and other types.a
11320 2002-04-07 Hans Breuer <hans@breuer.org>
11322 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11323 from 2002-01-22 to not destroy diagram->data->selected.
11324 Avoids to crash on Objects/Align/Vertical/Top
11326 * app/render_eps.c (draw_string) : un-const buffer
11327 It isn't at all const (g_malloc(), assignment, g_free()).
11328 Doesn't gcc catch such ?
11330 * lib/arrows.h : prototype calculate_arrow_point()
11332 * lib/font.c (font_get_suckfont) : no need to
11333 special case gdk_draw_string() with GTK_TALKS_UTF8,
11334 cause all the parameter differences are handled above
11336 * lib/libdia.def : updated externals
11338 * lib/makefile.msc : removed string_prerenderer, added render
11340 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11341 is expected. [Sometimes it's good to read compiler warnings.]
11343 * objects/standard/image.c : simplified by use of g_strconcat()
11345 * plug-ins/python/makefile.msc : updated for Python 2.2
11347 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
11349 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11350 directionality problem for zero-length line segments.
11352 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
11354 * app/diagram.c (diagram_ungroup_selected)
11355 (diagram_update_menu_sensitivity): Now allows ungrouping of
11356 several groups at once.
11358 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
11360 * lib/render.c, all renderers: Binary incompatibility, change to
11361 expandable renderops structure.
11363 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
11365 * objects/standard/Makefile.am:
11366 * objects/network/Makefile.am:
11367 * objects/UML/Makefile.am:
11368 * objects/ER/Makefile.am:
11369 * objects/FS/Makefile.am:
11370 * objects/flowchart/Makefile.am:
11371 * objects/custom/Makefile.am:
11372 * objects/GRAFCET/Makefile.am:
11373 * objects/chronogram/Makefile.am:
11374 * objects/SADT/Makefile.am:
11375 * plug-ins/cgm/Makefile.am:
11376 * plug-ins/pstricks/Makefile.am:
11377 * plug-ins/hpgl/Makefile.am:
11378 * plug-ins/wpg/Makefile.am:
11379 * plug-ins/svg/Makefile.am:
11380 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11382 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
11384 * app/render_eps.c: Support for dumping TrueType fonts (taken from
11387 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
11389 * lib/render.c: New abstract super class for renderers.
11391 2002-03-07 Akira TAGOH <tagoh@redhat.com>
11393 * objects/ER/attribute.c (attribute_save): save a font property.
11394 (attribute_load): load a font property, and if can't load it, it's
11397 * objects/ER/entity.c (entity_save): save a font property.
11398 (entity_load): load a font property, and if can't load it, it's
11401 * objects/ER/relationship.c (relationship_save): save a font property.
11402 (relationship_load): load a font property, and if can't load it, it's
11405 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11407 (umlclass_save): save the font and the font size properties.
11408 (umlclass_load): load the font and the font size properties.
11410 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
11412 * lib/string_prerenderer.[ch] (REMOVED):
11414 * lib/diagramdata.c:
11416 * app/render_eps.c: got rid of the string-specific string
11417 prerenderer, transitioned its functionality towards Lars'
11418 two-phase rendering
11420 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
11422 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
11423 may need to rerun aclocal.
11425 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
11427 * lib/font.c: First attempt at Unicodeness for Freetype.
11429 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11431 * lib/font.c (font_string_width): Fixed font_string_width for
11432 freetype. BB is now almost right.
11434 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
11436 * app/render_eps.h:
11437 * app/paginate_psprint.c (paginate_psprint):
11439 * app/render_eps.c: Support for dumping postscript fonts into
11440 postscript files with freetype. Fairly primitive, but works.
11441 Unicode version may have problems.
11443 2002-02-28 Akira TAGOH <tagoh@redhat.com>
11445 * objects/UML/class_dialog.c (class_read_from_dialog)
11446 (class_fill_in_dialog), (class_create_page): add the font selector and
11447 the font size selector.
11449 * objects/UML/class.c (umlclass_draw): uses each font_height.
11450 (umlclass_calculate_data): ditto.
11451 (fill_in_fontdata): add initial value of new font_height.
11452 (umlclass_copy): add new font_height.
11454 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
11456 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11458 * lib/font.c: calculate font metrics properly and stop guessing at
11461 2002-02-28 Akira TAGOH <tagoh@redhat.com>
11463 * configure.in: changed gtk_advancement value to dia_talks_utf8.
11464 right now Dia is working with UTF-8 internally. it means Dia probably
11465 support most languages also including the languages which heretofore
11466 didn't work correctly.
11468 2002-02-26 Akira TAGOH <tagoh@redhat.com>
11470 * objects/FS/function.c: add related text properties.
11471 (function_get_props), (function_set_props): add handling attribute.
11473 * objects/FS/flow.c: add related text properties.
11474 (flow_get_props), (flow_set_props): add handling attribute.
11476 * objects/FS/flow-ortho.c: add related text properties.
11477 (orthflow_set_props), (orthflow_get_props): add handling attribute.
11479 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11481 * objects/ER/entity.c: ditto.
11483 * objects/ER/attribute.c: ditto.
11485 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
11487 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11489 * autogen.sh: add a check for missing intltoolize.
11491 2002-02-20 Akira TAGOH <tagoh@redhat.com>
11493 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11494 charcode, it was registered the duplicate item to HashTable. fix.
11496 * app/render_gnomeprint.c (get_width_string): add new function.
11497 (draw_string): fix non-multibyte specific code.
11499 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
11501 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11503 * lib/font.c: do not try to search paths that do not begin with
11504 '/', like X Font Server addresses.
11506 * objects/UML/message.c (message_draw): free mname when not
11507 message->text but CREATE or DESTROY.
11509 * objects/UML/uml.h:
11510 * objects/UML/uml.c:
11511 * objects/UML/class_dialog.c: added code to handle a stereotype
11512 attribute for operations.
11514 2002-02-19 Akira TAGOH <tagoh@redhat.com>
11516 * lib/Makefile.am: add LIBART_CFLAGS.
11518 2002-02-15 Hans Breuer <hans@breuer.org>
11520 * lib/font.c (font_get_suck_font): the black and white pixel values
11521 need to be taken from a 1 bit colormap rather than the default colormap.
11522 (fixed again, last time was 2000-05-26)
11524 Also handle the case where GTK_TALKS_UTF8 and expects all strings
11525 passed in to be in this encoding.
11527 * lib/libdia.def : export suck_font_free()
11529 * lib/text.c (text_draw) : avoid circular dependency to ../app
11530 at least for the !USE_XIM case, where it is unnecessary.
11532 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
11534 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11536 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11537 * sheets/Circuit.sheet.in: added new shape microphone
11538 * shapes/Circuit/speaker_de.shape: Added a connection point.
11540 2002-02-13 Akira TAGOH <tagoh@redhat.com>
11542 * app/render_libart.c (draw_string): fixed build issue for Win32.
11544 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11547 * configure.in: fixed testing gtk_advancement.
11549 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11551 2002-02-12 Akira TAGOH <tagoh@redhat.com>
11553 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11556 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
11558 * app/group.c (group_copy): Made new object properly initialized
11561 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
11563 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11565 2002-02-10 Akira TAGOH <tagoh@redhat.com>
11567 * lib/text.c (text_draw): fixed XIM transaction.
11569 * app/interface.c (create_display_shell): add signal for
11572 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11574 (set_input_dialog): remove.
11575 (ddisplay_canvas_events): remove XIM transaction. it can't transact
11576 correctly on this function.
11578 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11581 * app/export_png.c: Added checks for interactivity (maybe this
11582 should be a hook after all?).
11584 * app/filedlg.c (file_export_callback): Made export dialog add
11585 suffix when reopened.
11587 * app/export_png.c: Added dialog asking for export size.
11589 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11591 * lib/widgets.c: Fixed font reselection problem and first font
11594 * objects/UML/actor.c (actor_update_data): Changed to have
11595 connection points below text.
11597 2002-02-08 Akira TAGOH <tagoh@redhat.com>
11599 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11602 2002-02-07 Akira TAGOH <tagoh@redhat.com>
11604 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11605 strings which is given.
11606 (suck_font): remove. it's any longer needed.
11608 * app/render_libart.c (set_font): don't get suckfont.
11609 (draw_string): get suckfont only which is needed for now.
11611 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11613 * lib/text.c: Fixes for misunderstood width functions.
11615 2002-02-05 Hans Breuer <hans@breuer.org>
11617 * lib/dia_xml.c : use g_strconcat() instead of
11618 malloc, strcpy, strcat dance
11619 * app/properties.c : same here and plug memory leak
11620 (gtk functions don't eat strings)
11622 * objects/UML/message.c : there is no g_sprintf()
11623 use g_strdup_printf() instead ...
11625 2002-02-05 Akira TAGOH <tagoh@redhat.com>
11627 * lib/message.c (gtk_message_internal): doesn't need to convert to
11630 * app/render_libart.c (draw_string): fixed transaction for UTF-8
11632 (get_text_width): ditto.
11634 * app/Makefile.am (EXTRA_DIST):
11635 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11637 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11638 This function needs ifdef HAVE_FREETYPE because don't use it for
11641 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
11643 * NEWS: updated with the new dependencies.
11645 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11647 * objects/UML/class.h:
11648 * objects/UML/class.c:
11649 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11650 property using a GtkMenu. Options are Undefined, In, Out, In & Out
11652 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
11654 * app/render_libart.c: Slow but working libart freetype renderer,
11657 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11659 * app/render_gdk.c (draw_string): Fixed gc_function bug.
11661 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11663 * lib/font.c (freetype_render_string):
11665 * app/render_gdk.c:
11666 * app/render_gdk.h: Changed freetype_render_string to use
11667 callback. Rendering is broken.
11669 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
11671 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11673 * objects/UML/uml.h:
11674 * objects/UML/uml.c: added UMLInheritanceType and isQuery
11675 (constant) UML Operation attributes. UMLInheritanceType is either
11676 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
11678 * objects/UML/class.h:
11679 * objects/UML/class.c:
11680 * objetcs/UML/class_dialog.c: added code to handle new
11681 UMLOperation attributes via a GtkMenu and a checkbox.
11683 2002-02-03 Akira TAGOH <tagoh@redhat.com>
11685 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11686 several client doesn't work with previous codes.
11688 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
11690 * lib/font.c (freetype_render_string): Kerning. Very few fonts
11693 2002-02-02 Akira TAGOH <tagoh@redhat.com>
11695 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11696 when doing the operation like invert the objects after active view is
11697 destroyed. when changes focus, it needs to set active_display.
11699 * app/layer_dialog.c (dia_layer_update_from_layer):
11700 (layer_dialog_edit_layer): need to convert to locale encoding
11701 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11702 (edit_layer_ok_callback):
11703 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11705 * lib/diagramdata.c (new_diagram_data): ditto.
11707 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11709 * lib/diagramdata.c (new_layer): use utfchar instead of char for
11712 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11713 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11714 it's needed for now. also this function needs prototype declaration.
11716 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
11718 * lib/widgets.c: Style now functional on font selector. Some leak
11719 possible, but doesn't show up under stress test.
11721 2002-01-31 Akira TAGOH <tagoh@redhat.com>
11723 * app/plugin-manager.c (clist_select_row): name and description needs to
11724 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11725 (get_plugin_manager): ditto.
11727 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11729 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11732 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11733 when prop->string_data is NULL.
11735 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11738 * lib/widgets.h: New font selector separating font and style.
11739 Style not functional yet.
11741 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
11744 * app/render_gdk.c (draw_string): More freetype support, now
11745 renders text. Still broken is font selection and exporting.
11747 2002-01-30 Akira TAGOH <tagoh@redhat.com>
11749 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11752 * objects/chronogram/chronoline.c (chronoline_create): ditto.
11754 * objects/UML/usecase.c (usecase_create): ditto.
11756 * objects/UML/state.c (state_create): ditto.
11758 * objects/UML/object.c (objet_create): ditto.
11760 * objects/UML/node.c (node_create): ditto.
11762 * objects/UML/message.c (message_create): ditto.
11764 * objects/UML/component.c (component_create): ditto.
11766 * objects/UML/classicon.c (classicon_create): ditto.
11768 * objects/UML/actor.c (actor_create): ditto.
11770 * objects/SADT/box.c (sadtbox_create): ditto.
11772 * objects/SADT/annotation.c (annotation_create): ditto.
11774 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11776 * objects/GRAFCET/step.c (STEP_FONT):
11777 * (step_create): ditto.
11779 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11781 * objects/GRAFCET/action.c (ACTION_FONT):
11782 (action_create): ditto.
11784 * objects/FS/function.c (function_create): ditto.
11786 * objects/FS/flow.c (flow_create):
11788 (flow_apply_defaults): ditto.
11790 * objects/FS/flow-poly.c (flow_create):
11792 (flow_apply_defaults): ditto.
11794 * objects/FS/flow-ortho.c (orthflow_create):
11796 (orthflow_apply_defaults): ditto.
11798 * objects/ER/relationship.c: use utfchar instead of char for structure.
11799 (relationship_create): name needs to convert to UTF-8.
11801 * objects/ER/attribute.c: use utfchar instead of char for structure.
11802 (attribute_create): name needs to convert to UTF-8.
11804 * objects/ER/entity.c: use utfchar instead of char for structure.
11805 (entity_create): name needs to convert to UTF-8.
11807 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11808 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11809 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11810 items. if GTK_TALKS_UTF8 isn't defined.
11812 2002-01-29 Akira TAGOH <tagoh@redhat.com>
11814 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11815 it was my careless mistake...
11817 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11818 a font name, because there are strings which isn't shown by "Courier".
11819 We need to consider a way to feel free to choose a font at runtime.
11821 * lib/render_object.c (render_object_load): ditto.
11823 * lib/text.c (data_text): ditto.
11825 * objects/EML/instantiation.c (instantiation_create): ditto.
11827 * objects/EML/interaction-ortho.c (interaction_ortho_create):
11828 (interaction_ortho_load): ditto.
11830 * objects/EML/interaction.c (interaction_create):
11831 (interaction_load): ditto.
11833 * objects/EML/process.c (fill_in_fontdata): ditto.
11835 * objects/ER/attribute.c (attribute_create):
11836 (attribute_load): ditto.
11838 * objects/ER/entity.c (entity_create):
11839 (entity_load): ditto.
11841 * objects/ER/relationship.c (relationship_create):
11842 (relationship_load): ditto.
11844 * objects/UML/association.c (association_create):
11845 (association_load): ditto.
11847 * objects/UML/class.c (fill_in_fontdata): ditto.
11849 * objects/UML/constraint.c (constraint_create): ditto.
11851 * objects/UML/dependency.c (dependency_create): ditto.
11853 * objects/UML/generalization.c (generalization_create): ditto.
11855 * objects/UML/implements.c (implements_create): ditto.
11857 * objects/UML/large_package.c (largepackage_create): ditto.
11859 * objects/UML/note.c (note_create): ditto.
11861 * objects/UML/realizes.c (realizes_create): ditto.
11863 * objects/UML/small_package.c (smallpackage_create): ditto.
11865 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11867 * objects/custom/custom_object.c (custom_create): ditto.
11869 * objects/network/antenna.c (render_to_store): ditto.
11871 * objects/network/computer.c (render_to_store): ditto.
11873 * objects/network/disc.c (render_to_store): ditto.
11875 * objects/network/flash.c (render_to_store): ditto.
11877 * objects/network/hub.c (render_to_store): ditto.
11879 * objects/network/modem.c (render_to_store): ditto.
11881 * objects/network/modularswitch.c (render_to_store): ditto.
11883 * objects/network/monitor.c (render_to_store): ditto.
11885 * objects/network/printer.c (render_to_store): ditto.
11887 * objects/network/rj45plug.c (render_to_store): ditto.
11889 * objects/network/scead-plug.c (render_to_store): ditto.
11891 * objects/standard/textobj.c (textobj_load): ditto.
11893 * objects/sybase/client.c (render_to_store): ditto.
11895 * objects/sybase/dataserver.c (render_to_store): ditto.
11897 * objects/sybase/ltm.c (render_to_store): ditto.
11899 * objects/sybase/repserver.c (render_to_store): ditto.
11901 * objects/sybase/rsm.c (render_to_store): ditto.
11903 * objects/sybase/stableq.c (render_to_store): ditto.
11905 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
11907 * objects/UML/uml.h (UML_STEREOTYPE_START):
11908 (UML_STEREOTYPE_END): changes default strings.
11910 2002-01-28 Akira TAGOH <tagoh@redhat.com>
11912 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
11913 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
11914 which is given to arguments isn't UTF-8. so don't need to convert it.
11915 if GTK+ handle UTF-8, also don't need to convert it.
11917 (bracketted_to_string): fixed transaction for UTF-8 support.
11918 also start/end bracket is not necessarily 1 character. so that when use
11919 strend(), it doesn't work correctly.
11920 (string_to_stereotype): use utfchar instead of char.
11921 (remove_stereotype_from_string): ditto.
11922 (stereotype_to_string): ditto.
11924 * objects/UML/stereotype.h: ditto.
11926 * objects/UML/message.c: use utfchar instead of char for structure.
11927 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
11929 * objects/UML/small_package.c: use utfchar instead of char for structure.
11931 * objects/UML/realizes.c: ditto.
11933 * objects/UML/object.c: ditto.
11935 * objects/UML/large_package.c: ditto.
11937 * objects/UML/implements.c: ditto.
11939 * objects/UML/generalization.c: ditto.
11941 * objects/UML/dependency.c: ditto.
11943 * objects/UML/constraint.c: ditto.
11945 * objects/UML/component.c: ditto.
11947 * objects/UML/class_dialog.c (attributes_get_current_values):
11948 (attributes_list_new_callback, attributes_fill_in_dialog):
11949 (parameters_set_values, parameters_get_values):
11950 (parameters_get_current_values, parameters_list_new_callback):
11951 (operations_set_values, operations_get_values):
11952 (operations_get_current_values, operations_list_new_callback):
11953 (operations_fill_in_dialog, templates_set_values):
11954 (templates_get_values, templates_get_current_values):
11955 (templates_list_new_callback, templates_fill_in_dialog):
11956 fixed transaction for UTF-8 support.
11958 2002-01-27 Akira TAGOH <tagoh@redhat.com>
11960 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
11962 * objects/UML/class_dialog.c (class_read_from_dialog):
11963 (class_fill_in_dialog):
11964 (attributes_get_values): ditto.
11966 * objects/UML/actor.c (actor_create): ditto.
11968 * objects/UML/class.c (umlclass_calculate_data): ditto.
11970 * objects/UML/association.c (association_apply_properties):
11971 (fill_in_dialog): ditto.
11973 * objects/UML/uml.c (uml_get_attribute_string):
11974 (uml_get_operation_string):
11975 (uml_get_parameter_string):
11976 (uml_get_formalparameter_string): use utfchar instead of char.
11978 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
11979 UML_STEREOTYPE_END.
11981 * objects/UML/class.h: use utfchar instead of char.
11983 * lib/dia_xml.c (data_add_string): ditto.
11985 * lib/text.c (text_insert_char): fixed characters# calculation
11986 when includes multibytes character in strings.
11988 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
11990 Patch from Richard Rowell <rwrowell@bellsouth.net>:
11992 * app/lineprops_area.c:
11995 * lib/widgets.c: added crow foot arrow and cross arrow
11997 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
11999 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
12001 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
12003 * po/update.pl (REMOVED):
12004 * po/update.sh (REMOVED):
12005 * xml-i18n-merge.in.kg (REMOVED):
12006 * xml-i18n-update.in.kg (REMOVED):
12007 * sheets/Makefile.am:
12010 * configure.in: converted from xml-i18n-tools to intltools
12012 This looks like it fixes the build bugs of the snapshot tarballs,
12013 and it supersedes #69611.
12015 2002-01-25 Akira TAGOH <tagoh@redhat.com>
12017 * lib/text.c (text_insert_char): fixed characters# calculation.
12018 it's not string length.
12020 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
12021 is defined, needs to convert a description to UTF-8.
12023 * app/render_gdk.c (get_text_width): fixed transaction for
12024 UTF-8 support. also should uses gdk_text_width_wc() instead
12025 of gdk_text_width().
12027 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
12028 is defined, needs to convert to locale encoding for display.
12029 Also use utfchar instead of char for argument.
12031 2002-01-24 Hans Breuer <hans@breuer.org>
12033 * app/commands.c(edit_paste_callback and more) :
12034 call diagram_modified(ddisp->diagram) to fix #68083
12035 (help_menu_callback) : plug a DIR leak
12037 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
12038 GTK_TALKS_UTF8_WE_DONT
12040 * app/render_gdk.c(get_text_with) : it's a bad idea to use
12041 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
12042 gdk_text_width(). The length value is still questionable ...
12044 * lib/charconv.c : use functions already available in early
12045 GLIB-1.3 days whiches API hasn't changed since, to avoid
12046 version problems with the win32 build
12048 * lib/font.c : finally fix #58045 and #68208
12050 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
12052 2002-01-24 Akira TAGOH <tagoh@redhat.com>
12054 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
12055 no strings, fixed transaction.
12057 * lib/charconv.h: fixed typo.
12059 * app/menus.c: fixed typo.
12061 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
12063 * objects/UML/object.c: attrib's type uses utfchar instead of char.
12065 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
12067 * lib/text.c (text_create_change): use unichar instead of char.
12069 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
12070 use utfchar instead of char.
12072 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
12075 * lib/charconv.c (charconv_utf8_get_char): add new function.
12077 2002-01-23 Akira TAGOH <tagoh@redhat.com>
12079 * lib/text.c (text_delete_forward, text_delete_backward,
12080 text_split_line): fixed transaction for UTF-8 support.
12082 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
12083 strlen[] has string length for UTF-8, so has to use alloclen[].
12087 * .cvsignore: add dia.pot.
12089 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
12091 * configure.in: Added "sk" to ALL_LINGUAS.
12093 2002-01-22 Akira TAGOH <tagoh@redhat.com>
12095 * lib/text.c (text_set_string, new_text, text_copy,
12096 text_get_string_copy, text_join_lines): use utfchar instead of gchar
12099 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
12102 * lib/charconv.c (charconv_utf8_strchr): add new function.
12104 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
12106 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
12108 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
12109 strings to the appropriate encoding.
12111 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
12113 * app/object_ops.c (object_list_align_[hv]): Leak fix.
12115 * lib/Makefile.am (INCLUDES): Added debug flags.
12117 * app/object_ops.c: Fixed ordering problem of align equi-distant &
12120 2002-01-21 Akira TAGOH <tagoh@redhat.com>
12122 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
12123 gdk_string_width().
12125 * objects/GRAFCET/boolequation.c: fixed invalid comment.
12127 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
12128 when defined UNICODE_WORK_IN_PROGRESS.
12130 * lib/dia_xml.c (data_add_string): fixed typo.
12132 2002-01-20 Akira TAGOH <tagoh@redhat.com>
12134 * configure.in: fixed test gtk_advancement.
12136 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
12138 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
12141 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12143 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
12144 tool tips, preferences, and arbitrarily long ~/.dia/history
12146 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
12147 removed 'Open Recent'; added new separators for recent documents on
12150 * app/interface.[ch] (interface_get_toolbox_shell): new function
12152 * app/diagram.c: added new parameter to recent_file_history_add() call
12154 * app/preferences.[ch]: added new 'Recent documents list size'
12157 2002-01-18 Akira TAGOH <tagoh@redhat.com>
12159 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
12160 if it failed, should be used gdk_font_load ().
12162 * lib/font.c (font_data): added the font entries for CJK.
12164 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
12166 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12168 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
12170 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
12172 Patch from Martin Cracauer <cracauer@cons.org>:
12174 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
12177 2002-01-01 Hans Breuer <hans@breuer.org>
12179 * app/command.c : optional use GDI printing on windoze
12181 * app/preferences.[hc] : add option 'prefer_psprint' to
12182 select the print engine to use (could be used for Dia/Gnome
12185 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
12186 wmf plug-in with the common win32 print api. Now printing
12187 should work almost as expected from a windows program :-)
12189 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
12190 to .edit_delete to avoid clashes with C++
12192 * app/makefile.msc : updated for GDI printing
12194 * plug-ins/wmf/wmf.cpp : some small modifications to support
12195 GDI printing. Also swap R and B channel in draw_image()
12197 * app/makefile.am : added windows only files to EXTRA_DIST
12199 * objects/uml/class.c(umlclass_set_props) : force recalculation
12200 when applying properties
12202 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
12203 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
12204 many incompatible changes (and would force a gtk update)
12206 * objects/makefile.msc : don't build C-Objects which are
12207 already available as 'pure shape'
12209 * plug-ins/makefile.msc : remove diaimport from build. It was
12210 only available via mailing-list and is broken since the
12214 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
12216 * app/preferences.[hc] : tweaked preferences.c to make
12217 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
12218 added some more DiagramTree prefererences and their own
12221 * app/diagram_tree.[hc] : allow to sort by object type or name
12222 and hide by type ...
12223 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
12224 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
12226 * app/diagram_tree_window.c : handle hidden types and window
12229 2001-12-20 Hans Breuer <hans@breuer.org>
12231 * plug-ins/python/Makefile.am : patch from Peter Moulder
12232 <pmoulder@csse.monash.edu.au> to make the python plug-in
12233 compile on *nix too.
12235 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
12237 Patch from Alan <horkana@tcd.ie>:
12239 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
12241 2001-11-20 Hans Breuer <hans@breuer.org>
12243 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12245 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
12247 * app/diagram_tree.[hc] : Added new functions and types for
12248 sorting diagram and objects, and attaching the popup menus.
12250 * app/preferences.h: Added more diagram tree preferences, using a
12251 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12252 height and width of the diagram tree window and the default sort
12253 orders for diagrams and objects.
12255 * app/preferences.c (prefs_data): Added new entries for the new
12256 diagram tree preferences.
12258 * app/preferences.c (prefs_tabs): New tab for diagram tree
12261 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
12262 * app/diagram_tree_window.c (diagram_tree_window_new):
12263 * app/interface.c (create_tree_window): The diagram tree window is
12264 initialised using the DiagramTreeConfig part of prefs.
12267 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
12269 * app/diagram_tree_menu.[hc]: New files. Functions to create the
12270 diagram tree popup menus.
12272 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12273 the diagram tree popup menus.
12275 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12278 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
12280 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12281 double-clicking a diagram tree node raises the diagram window
12282 to the foreground (and, if a object node was clicked, selects the
12283 object in the diagram).
12285 * app/diagram_tree.c (select_tree_widget): selecting an object
12286 node with single click simply updates it (no raise).
12288 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
12289 These changes make the diagram tree lazy: it is not created unless
12290 the diagram tree window is requested.
12292 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12293 function for creating the tree window.
12295 * app/interface.c (create_tree_window): call
12296 create_diagram_tree_window() instead of diagram_window().
12298 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
12299 (diagram_tree_update, diagram_tree_update_name)
12300 (diagram_tree_add_object, diagram_tree_add_objects)
12301 (diagram_tree_remove_object, diagram_tree_remove_objects)
12302 (diagram_tree_update_object): accept a NULL tree as a nominal
12303 argument (and do nothing in this case!), so that the diagram tree
12304 is not initialised if not used.
12306 * app/diagram_tree_window.c (diagram_tree): do not create the
12307 diagram tree until diagram_window() or diagtree_show_callback()
12310 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
12311 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12313 * app/diagram_tree_window.[hc] : (new files) implementation of
12314 the diagram tree window, a container for a diagram tree. [Removed
12315 the horizontal scroll bar glitch by disableing it]
12317 * app/diagram_tree.[hc] : (new files) implementation of the
12318 diagram tree widget. [Don't rely on the layers GPtrArray to be
12319 NULL terminated, but use its ->len field]
12321 * app/Makefile.am (dia_core_files): added new files
12322 diagram_tree.[hc] and diagram_tree_window.[hc]
12324 * app/interface.[hc] : (create_tree_window): this function
12325 creates the new diagram tree window widget
12327 * app/undo.c (delete_objects_apply) (delete_objects_revert)
12328 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
12329 (ungroup_objects_apply) (ungroup_objects_revert):
12330 every time that an undoable command modifies a diagram
12331 adding/removing/(un)grouping objects, a diagram_tree_something() is
12332 invoked to keep the diagram tree window in sync
12334 * app/properties.c (properties_apply): call to
12335 diagram_object_modified(), which updates the diagram tree window
12336 when the properties of an object are modified
12338 * app/preferences.[hc] : new "show_diagram_tree" configuration option
12339 (whether the diagram tree window should be shown on dia startup)
12341 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12343 * app/diagram.h (diagram_object_modified): callback notifying of a
12344 diagram object modification
12346 * app/diagram.c (diagram_load_into): added call to
12347 diagram_tree_add() to add newly loaded diagrams to the diagram
12349 (diagram_destroy): call to diagram_tree_remove() to remove a
12350 destroyed diagram from the diagram tree window
12351 (diagram_add_object): call to diagram_tree_add_object() to add an
12352 object to the diagram tree window
12353 (diagram_add_object_list): as above, but with an object list
12354 (diagram_selected_break_external): deletion of objects from the
12355 diagram is detected here, and diagram_tree_remove_object() is
12356 invoked to remove the object from the diagram tree window (it
12357 would be nice to have a diagram_remove_object() in the Diagram
12359 (diagram_set_filename): update the diagram tree window when a
12360 diagram's filename changes
12362 * app/commands.c (file_new_callback): added call to
12363 diagram_tree_add() to add newly created diagrams to the diagram
12366 * app/app_procs.c (app_init): added call to create_tree_window()
12368 * app/makefile.msc : updated
12370 2001-10-28 Hans Breuer <hans@breuer.org>
12372 * app/preferences.h (DiaPreferences):
12373 * app/preferences.c (prefs_data): new "show_diagram_tree"
12374 configuration option (whether the diagram tree window should be
12375 shown on dia startup)
12377 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12378 entry (both for GNOME and gtk)
12380 * app/diagram.h (diagram_object_modified): callback notifying of a
12381 diagram object modification
12383 * app/diagram.c (diagram_load_into): added call to
12384 diagram_tree_add() to add newly loaded diagrams to the diagram
12386 (diagram_destroy): call to diagram_tree_remove() to remove a
12387 destroyed diagram from the diagram tree window
12388 (diagram_add_object): call to diagram_tree_add_object() to add an
12389 object to the diagram tree window
12390 (diagram_add_object_list): as above, but with an object list
12391 (diagram_selected_break_external): deletion of objects from the
12392 diagram is detected here, and diagram_tree_remove_object() is
12393 invoked to remove the object from the diagram tree window (it
12394 would be nice to have a diagram_remove_object() in the Diagram
12396 (diagram_set_filename): update the diagram tree window when a
12397 diagram's filename changes
12399 * app/commands.c (file_new_callback): added call to
12400 diagram_tree_add() to add newly created diagrams to the diagram
12403 * app/app_procs.c (app_init): added call to create_tree_window()
12405 2001-10-28 Hans Breuer <hans@breuer.org>
12407 * plug-ins/python/pydia-property.c : apparently I missed
12408 to commit this last time. Now it has some more SetAttr
12409 support (apply from property)
12411 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12413 * plug-ins/python/pydia-text.[ch] : new files
12415 2001-10-14 Hans Breuer <hans@breuer.org>
12417 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12418 strings. Use g_strdup() for these.
12420 libxml2 does not produce 'any extra indentation when saving a tree'
12421 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12422 libxml(1). To get human readable XML some extra tweaking is required.
12423 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12424 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12425 * app/preferences.[ch] : initialize 'pretty_formated_xml'
12427 * lib/libdia.def : updated externals
12429 * lib/properties.h : add prototype for prop_list_from_single ()
12431 * plug-ins/makefile.msc : build metapost plug-in
12433 * plug-ins/metapost/render_metapost.c : msvc does not like
12434 switch labels without operation 'default: }'. Added a noop.
12436 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12437 * plug-ins/python/diamodule.c : added PyDiaText
12438 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12439 Although the python plug-in does not use libxml at all, the
12440 headers are required to use the lib/prop*.h headers
12442 * plug-ins/python/pydia-diagramdata.c : added wrappers for
12443 update_extents and get_sorted_selected (should I duplicate
12444 more functions from PyDiaDiagram or should they be moved?)
12446 * plug-ins/python/pydia-properties.c : allow to set (some) properties
12447 through the dictionary api
12448 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12449 * plug-ins/python/pydia-property.c : implement it (currently only
12450 string properties can be set)
12452 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12453 Quoting myself: 'Still not convinced that this is better than an
12454 integral property->type and some casting ...
12455 It is trading a straightforward 40 lines switch statement to
12456 this nice 'type safe' function mapping (about 125 lines)'
12457 (But now it works again, better than changing the News file :)
12459 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
12461 patch from <robert.young@dsto.defence.gov.au>:
12462 * objects/UML/component.c: remember to set font in UML component
12463 object (fixes #62132)
12465 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
12467 * plug-ins/metapost/metapost.c:
12468 * plug-ins/metapost/Makefile.am:
12469 * plug-ins/metapost/render_metapost.c:
12470 * plug-ins/metapost/render_metapost.h:
12471 Metapost renderer from Chris Sperandio
12473 2001-09-14 Hans Breuer <hans@breuer.org>
12475 * app/render_gdk.c : reflect the fact, that GTK already talks
12476 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12479 * app/render_libart.c : trying to fix #58045 but it appears
12480 to be an Gdk/win32, too.
12482 * lib/charconv.c : handle utf8 conversion with the help of
12483 glib-1.3 even in the !HAVE_UNICODE case.
12485 * lib/dia_xml.c : reduce complaing about missing encoding, by
12486 detecting if the default (utf8) would break the file.
12488 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
12490 * lib/charconv.c: (get_local_charset): at least please try to not
12491 silently change the logic, while avoiding crashes.
12493 * lib/font.c: (suck_font): put a #error, we have a nasty something
12494 to fix there before we switch to Gtk 2.0.
12496 2001-09-09 Hans Breuer <hans@breuer.org>
12498 * **/makefile.mingw : Approach to compile Dia with mingw.
12499 Compiling mostly works but running does not (yet) ...
12502 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
12503 Apparently mingw needs it too.
12504 - enable 'normalization' of a null verctor. Otherwise the beziergon
12505 bounding box calculation would be broken at least with msvc. What's
12506 the mathematical correct result of 0.0/0.0 ?
12508 * lib/dia_xml.c : isinf() for mingw too.
12510 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
12513 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
12514 Please don't do it.
12516 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12518 * lib/libdia.def : updated externals. Apparently mingw needs
12519 them to produce the right mangling.
12521 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12524 2001-09-08 Wang Jian <lark@linux.net.cn>
12526 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12528 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
12530 * lib/dia_xml_libxml.h:
12531 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12532 libxml1's code, to rework the output file before it gets committed
12533 to disk. This is rubbish, and will be removed when libxml2
12534 switches from discouraged to mandatory.
12535 All in all, this fixes #60152.
12538 * lib/charconv.c: (charconv_unichar_to_utf8):
12539 made the type of the input parameter explicitly an unsigned long.
12541 * configure.in: Added a check for libz (we must now include it
12542 explicitly, for xmlDiaSaveFile).
12544 * app/load_save.c: (diagram_data_save):
12545 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12546 (dia_pluginrc_write):
12547 * plug-ins/shape/shape-export.c: (new_shape_renderer),
12548 (end_render), (draw_string):
12549 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12552 Made sure we always write UTF-8 XML files, and through
12555 * NEWS: documented that fact.
12557 2001-09-07 James Henstridge <james@daa.com.au>
12559 * configure.in (found_libxml): refactor the check for libxml a
12560 little so that it handles finding both libxml1 and 2 better.
12562 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
12564 * app/app_procs.c: removed a spurious } which caused a compilation
12565 error in the (!HAVE_GNOME && HAVE_POPT_H) case
12567 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12568 don't know what ANSI X3.4-1968 is. I didn't know until this day,
12569 but it's just plain old ASCII. Added a check to shield the poor
12572 Patches from <robert.young@dsto.defence.gov.au>:
12574 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12575 width and height of text before calculating bounds. Fixes #59928
12577 * app/preferences.c: Moved grid related items into Grid Tab.
12579 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
12581 * app/interface.c: (create_zoom_widget): connected one more signal
12582 to the Zoom selector combo's list. Fixes #59879.
12584 * app/app_procs.[ch]: (app_init) (do_convert)
12585 (build_output_file_name): brought back into the main executable
12586 the rare useful bits of the ill-fated diaconv. This means we have
12587 one new feature : --export-to-format (-t), which should make
12588 writing conversion scripts easier, and a crude implementation of
12589 -t and -e for the poptless argument parsing, which means the Win32
12590 port should be able to take advantage of it (that should make
12591 resolving #58197 possible).
12593 * app/diaconv.c: kept the poor duck compiling (but that's about
12596 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12597 I've got it right).
12599 * NEWS: updated about the new feature above, and documented the
12600 "missing encoding specification" complaint.
12602 2001-09-01 Abel Cheung <maddog@linux.org.hk>
12604 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12606 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
12608 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12611 2001-09-01 James Henstridge <james@daa.com.au>
12613 * */Makefile.am: various changes to include missing files, and fix
12614 sheets dir to handle building with builddir != srcdir.
12616 * autogen.sh: unconditionally pass the --enable-maintainer-mode
12617 and --enable-db2html flags so that builds from CVS work correctly.
12619 * configure.in: increment version number. Also add an
12620 --enable-db2html flag. Without the flag, db2html won't be run (if
12621 the flag is passed and db2html is not present, do nothing).
12623 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
12625 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12626 even compiled. It's really too bad there is no lint tool easily
12627 available (or a more cautious, pedandic, paranoid and verbose
12628 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12630 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
12633 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12634 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12636 * app/menu.c: added ellipsis(...) to diagram properties menu item.
12637 * app/dia-props.c: diagram properties dialog contents did not
12638 represent current diagram settings.
12639 * app/dia-props.[ch]:
12640 * app/display.c: diagram properties contents now follows currently
12642 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12644 * AUTHORS: added Robert Young.
12646 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
12648 * app/modify_tool.c: (modify_button_release): Patch from
12649 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12650 #59090: if selection dragging was released outside of the window,
12651 artifacts of the selection box remained.
12653 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
12655 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12657 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
12660 * sheets/Makefile.am: prepared the terrain for the Version of
12661 xml-i18n-tools Which Comes After 0.9 (and which will feature at
12662 last a sane behaviour with XML files). Some reasonible delay
12663 before enforcing that version *will* be given.
12665 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12667 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12668 becomes a nonexistent symbol.
12670 2001-08-18 Hans Breuer <hans@breuer.org>
12672 * app/app_procs.c : made it compile without ENABLE_NLS
12674 * app/diap_callbacks.c : strcmp isn't guaranteed to work
12677 * app/load_save.c :
12679 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
12681 xmlGetProp, ... -> xmlFree
12682 malloc, strdup -> free
12683 g_new, g_malloc, g_strdup - > g_free
12685 * app/win32print.c : some more error checking, still not
12688 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12690 * lib/dia_xml.c : msvc still has no unistd.h
12693 * lib/sheets.c : temporary resolved libxml include brokeness
12695 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12696 changes. Compiles again, but doesn't do anything useful anymore.
12697 (see THE_PROP_TYPE_IS_INTEGRAL)
12699 * **/makefile.msc : updated to use LIBXML2
12701 * lib/libdia.def : reflect api changes
12703 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
12705 * config.h.win32: added defines telling that gtk speaks UTF8.
12706 Hans, I believe this reflects what GTK on Win32 does.
12708 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12710 * lib/prop_inttypes.c:
12712 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12715 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12716 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12717 search for plug-ins is done.
12718 * app/Makefile.am: made app/run_dia.sh use the // capability. No
12719 need to update this anymore if we get a new plug-in library (or
12722 * lib/dia_xml.c: #include <unistd.h> was missing.
12724 * lib/properties.h:
12725 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12726 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12729 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
12731 * sheets/civil.sheet: removed duplicate "Danish" entries.
12736 * sheets/Makefile.am:
12738 * Makefile.am: applied the xml-i18n-tools README's instructions.
12740 * po/(da de fr hu nl nn no sl).po: merged the translations from
12741 the sheet files into the .po files. I hope I haven't mixed
12743 * sheets/*.sheet (REMOVED):
12744 * sheets/*.sheet.in (NEW): moved the sheet files sans
12745 translations into .sheet.in files.
12747 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12748 because we don't yet want to force all translators to work using
12749 UTF-8 editors. We'll want to do that sometime (sooner rather than
12750 later). Okay, I sing a slightly different tune in po/ChangeLog...
12752 * dia.desktop (REMOVED):
12753 * dia.desktop.in (NEW): used also the x18t infrastructure for
12756 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12757 "official" version of x18t with support for .sheet files is available.
12758 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12759 "official" version of x18t which doesn't corrupt UTF-8 data in XML
12762 ** yes, we are now using xml-i18n-tools to manage the sheet
12763 translations. For the Win32 build, Nemo stores snapshots of
12764 translated strings next to the CVS snapshots. **
12766 * sheets/checktrans.py: suddenly, some sheets have lots of
12767 translations (objects which existed before sheets, mostly).
12768 Adapted the formatting.
12770 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12772 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12773 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12774 <robert.young@dsto.defence.gov.au>, to fix #59090.
12776 * app/display.c: (ddisplay_scroll): While at it, added some
12777 margin, so that autoscrolling can happen within a margin outside
12778 the diagram's extents.
12782 * app/disp_callbacks.c: Robert "forced" me to go when I usually
12783 don't, namely the app/ directory. So while I was there, I
12784 scratched a long-time itch. If no object has focus, pressing the
12785 space bar will select back the tool which was selected before the
12786 current one (I find this especially useful with "reset after create" !)
12788 * lib/proplist.c: (prop_list_from_single): Renamed
12789 prop_list_singleton() to avoid confusion with the Singleton
12790 pattern (which it definitely is not).
12792 * lib/propobject.c: (object_prop_by_name_type),
12793 (object_prop_by_name): The "flags" parameter was not necessary.
12794 These don't return synthetic properties, but properties built from
12795 a real property description list; therefore, we don't call
12796 make_new_prop() but use the existing property descriptor, which
12797 has perfectly valid (and meaningful) flags.
12799 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12800 new predicates better reflect the reason why properties exist when
12801 they're created by make_new_prop() or object_prop_by_name().
12803 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12804 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12807 * lib/properties.h: reflects all the above changes.
12809 * objects/SADT/arrow.c:
12810 * objects/SADT/annotation.c:
12811 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12814 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12816 * lib/properties.h:
12817 * lib/proplist.c: (prop_list_singleton):
12818 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12819 Added these, to simplify interactions of plug-ins with the StdProp
12824 * lib/dia_xml_libxml.h (NEW):
12829 * objects/custom/shape_info.c: A few prototypes were causing
12830 #include hell, because we generally attempt to not pull the whole
12831 libxml header set when we include dia_xml.h. Moved those
12832 prototypes away for the rare cases they're necessary.
12834 2001-08-15 Hans Breuer <hans@breuer.org>
12836 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12839 * lib/makefile.msc : updated
12841 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12842 use G_GNUC_FUNCTION instead.
12844 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12846 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12847 msvc instead of cleaning missing includes
12849 * plug-ins/wmf/wmf.cpp :
12850 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12852 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12859 * objects/custom/shape_info.c:
12860 * plug-ins/shape/shape-export.c:
12861 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12862 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12863 removed xmlKeepBlanksDefault(0) in favour for proper
12864 xmlIsBlankNode() testing. Lots of other fixups to use the
12865 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12866 make libxml1 output correct files.
12868 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12869 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12870 packages). If both devel packages are found, the build will stop
12871 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
12873 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12874 allocate the first handle :-)
12876 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12877 a cast and a sizeof.</gratuitous>
12879 * objects/custom/custom_object.c: (custom_copy): don't call
12880 text_get_attrbutes if the shape has no text...
12881 (custom_update_data): The info->resize_with_text code was a bit
12882 directive; basically, the shape's bounding box was forced to be
12883 proportional to the text's bounding box.... This fixes #57187.
12885 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
12886 default for info->aspect_ratio; unobfuscated a line about
12887 info->resize_with_text;
12889 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12891 * lib/properties.h: added comments next to the PROP_TYPEs to tell
12892 which C Property subclass to use.
12894 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
12895 cast-ridden form of setting properties in a list, in favour for
12896 the "local pointers" form. I'll take any better offer...
12898 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
12900 * lib/font.c: fprintf(...) --> fprintf(format...)
12902 * configure.in: added a disabled versioned test for glib.
12903 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
12904 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
12905 g_critical() with a simple g_error(). Proper fix is to implement
12908 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
12911 * lib/properties.h:
12912 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
12913 * lib/proplist.c: (find_prop_by_name_and_type):
12914 * lib/prop_basic.c: (make_new_prop), (initialize_property):
12915 * lib/propoffsets.c: (do_set_props_from_offsets),
12916 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
12917 Added a type_quark member to PropDescription, Property and
12918 PropOffset. Used it to implement a safety in
12919 do_[sg]et_props_from_offsets().
12921 * objects/flowchart/diamond.c: the diamond's text was not saved,
12922 and thus not even copied (c&p).
12923 * objects/standard/textobj.c: ditto.
12925 Most of the above changes thanks to Robert Young's testing. Thanks !
12927 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
12929 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
12932 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
12934 * lib/proplist.c (prop_list_from_descs): added a call to
12935 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
12936 too embarrassing to tell.
12938 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
12939 while loop to a for loop, for symmetry with
12940 prop_offset_list_calculate_quarks().
12942 * lib/geometry.h: new inline function, rectangle_equals.
12944 * lib/diagramdata.[ch]: refactored a bit the diagram extents
12945 computation logic, and changed it to always be the union of the
12946 visible layers' extents. This should close #58882 (Debian
12947 #107167), and fixes #55498.
12949 * app/display.c: made the initial visible box more coherent with
12950 the diagram being loaded's extents.
12952 * app/prop_attr.c: don't set the font (from offset) if font_data
12953 is NULL. Two brainos in colorprop_load() and fontprop_load().
12955 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
12957 * lib/properties.[ch]: split in a lot of pieces:
12959 * lib/prop_*.[ch] (NEW): all property types are now first-class
12960 objects, inheriting from the original abstract Property type.
12961 * lib/propdesc.c (NEW): property description handling routines
12962 * lib/propoffsets.c (NEW): property offset handling routines
12963 * lib/proplist.c (NEW): property list handling routines
12964 * lib/propobject.c (NEW): property list <-> object routines
12965 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
12967 * lib/propinternals.h: prototypes for stuff not usually needed by
12968 the outside of StdProps.
12969 * lib/Makefile.am: a lot of new files have been added...
12971 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
12972 BOTH INTERFACES AND RUN-TIME STABILITY.
12974 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
12976 * lib/object.h: removed the incestuous relationship with
12977 properties.h' contents. Now a Property list is a GPtrArray -->
12978 object interface change !
12980 * app/app_procs.c/app_init(): removed a disabled call to a
12981 non-existent routine. Added a call to stdprops_init().
12983 * objects/Makefile.am: disabled the construction of EML. I'm not
12984 touching these until a certain issue is solved (or this module
12987 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
12988 objects to the interface changes.
12990 * app/disp_callbacks.c: killed a warning.
12991 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
12994 The macros PROP_VALUE_* have disappeared. Adapted to using the new
12997 * plug-ins/dxf/dxf-import.c:
12998 * plug-ins/xfig/xfig-import.c:
12999 PROP_VALUE_* macros have been removed. Converted to the new API.
13001 * plug-ins/python/**/*: I gave up converting this; I can't
13002 compile --with-python (problems with object.h defined both by us
13003 and by Python). I'll gladly help whomever cares to fix it !
13004 (or, fix it myself if someone tells me how to compile it).
13006 * configure.in: added the UNICODE-related progress defines.
13009 * lib/geometry.h: On Solaris and perhaps other systems, finite()
13010 is defined in ieeefp.h rather than in math.h. Patch from Andrew
13011 Halper <ashalper@acm.org> with further modifications, isinf() is
13012 provided by -lsunmath (sunmath.h).
13014 * lib/font.c: conditionally disabled Lars' debugging messages.
13015 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
13017 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
13019 * lib/bezier_conn.h:
13020 * objects/standard/bezier.c (bezierline_create):
13021 * lib/bezier_conn.c (bezierconn_init):
13022 Preparations for use of userdata for bezier lines.
13024 * objects/standard/polygon.c:
13025 * objects/standard/create.h:
13028 * plug-ins/xfig/xfig-import.c:
13029 Use of user_data for polygon as well, including adding
13030 polyshape_set_points. Include file for non-interactive
13031 creation of standard objects, objects/standard/create.h
13033 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
13035 * app/render_gdk.c:
13036 * app/render_gdk.h:
13040 More preliminary freetype support. Not at all functional, crashes
13045 * objects/standard/polyline.c:
13046 Support for creating polyline objects with more than two points.
13047 This includes an extra function and a prototype change in the
13048 poly_conn lib object.
13050 * lib/object.c (object_copy): Fixed memory leak of handles and
13053 2001-08-08 Abel Cheung <maddog@linux.org.hk>
13055 * dia.desktop: added traditional Chinese strings
13057 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
13059 * NEWS: updated to reflect build-time dependencies.
13061 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
13062 around obj->ops->describe_props(obj). Quarks are none of an
13063 object's business in the general case...
13064 * lib/text.c: Added an apply_textattr_properties() function to
13065 factor out some common code related to applying a dialog's text
13066 attribute properties to a (Text *) which wasn't edited there.
13067 Ditto for textstr, for the string part of an objet.
13069 * objects/GRAFCET/action.c:
13070 * objects/SADT/annotation.c:
13071 * objects/SADT/box.c: used apply_textattr_properties().
13073 * objects/UML/actor.c:
13074 * objects/UML/branch.c:
13075 * objects/UML/component.c:
13076 * objects/UML/constraint.c:
13077 * objects/UML/small_package.c:
13078 * objects/UML/state.c:
13079 * objects/UML/usecase.c:
13080 * objects/UML/large_package.c:
13081 * objects/UML/note.c:
13082 * objects/UML/node.c:
13083 * objects/UML/message.c:
13084 * objects/UML/classicon.c:
13085 * objects/UML/object.c:
13086 * objects/UML/realizes.c:
13087 * objects/UML/dependency.c:
13088 * objects/UML/implements.c:
13089 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
13090 (most objects were already using StdProps to some extent ; this
13091 systematises usage and removes some dead wood).
13093 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
13094 * objects/UML/uml.[ch]: audited for UTF-8.
13096 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
13097 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
13098 private (ISO-8859-1) definition.
13100 * lib/charconv.c: Added a warning if we didn't run
13101 nl_langinfo(CODESET) but rely instead on a hardcoded default.
13103 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
13106 * app/disp_callbacks.c: added a way for an object to cause an
13107 already realised menu to be destroyed (for instance if it changes
13110 * objects/custom/custom_object.c: used the above to fix #55073.
13112 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
13114 * configure.in: Remove 2.50 prereq.
13116 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
13118 * po-checktrans.py: under some circumstances, there was one column
13119 more than what was supposed to be, thus breaking the formatting.
13121 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
13123 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
13125 * NEWS: updated with new stuff since 0.88
13127 * shapes/network/antenna.shape: the text was misplaced ; fixed.
13129 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
13130 firewall router (upon request from Cyril Lacoux
13131 <clacoux@easter-eggs.com>)
13133 * configure.in (didn't rename to configure.ac): autoconf 2.50
13134 constructs were used ; added an AC_PREREQ call to guard against
13137 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
13139 * lib/properties.c: minor clean-ups with the event delivery code.
13141 * EML/instantiation.c: brought this object back from stone and ice
13144 * app/diaconv.c(NEW): added a command-line conversion tool. Still
13145 lacks a man page and correctness. In fact, it doesn't work. Please
13146 see #58196 if you want to finish it.
13148 * lib/message.[ch]: redefined things a little so that a different
13149 message_internal routine could be passed.
13150 applications can use that to fit themselves to the display model.
13152 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
13154 * objects/SADT/box.c:
13155 * objects/GRAFCET/action.c: spelling in property descriptors (name
13157 * objects/SADT/annotation.c: ditto, plus a temporary test of the
13158 event delivery code (try to click on the "click me !" button !).
13161 * lib/properties.[ch]: improved (fixed) support for group event
13162 handlers. Fixed various things from yesterday's code to make it
13163 not too obviously crash.
13165 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
13167 * app/group.c: added delivery of events to the first member of the
13168 group which is able to process it.
13170 * lib/properties.c(prop_desc_lists_intersection): properties
13171 don't match if they don't have identical event handler.
13172 * lib/properties.h: simplified the PropEventHandler signature.
13174 Event delivery code is still untested so far, but should be
13177 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
13179 * lib/properties.[ch]: Added (untested !) property event handler
13180 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
13181 generating such events. This stuff compiles, and should lurk
13182 around silently as long as you don't declare property descriptors
13183 with events (AFAICT).
13184 In object_create_props_dialog() and friends:
13185 attached a single structure with lots of data instead of lots of
13186 little attachments of data to the dialog widget.
13188 * lib/object.h: fixed mild typedef breakage introduced by the above.
13190 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
13192 * lots of files: Changed Font to DiaFont
13193 * */Makefile.am: Added FREETYPE_LIBS
13194 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
13196 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
13198 * configure.in: Added "nn" to ALL_LINGUAS.
13200 2001-07-09 Alex Larsson <alexl@redhat.com>
13202 * app/disp_callbacks.c:
13203 Add gdk_im_ready() calls to XIM code.
13205 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
13207 * lib/properties.[ch]: splitted prop_get_widget() into
13208 prop_get_widget() (gives a widget but doesn't fill it) and
13209 prop_reset_widget() (fills an existing widget with a property's value).
13211 * lib/widgets.[ch]: const enforcement police work.
13213 * shapes/network/antenna.shape: added a connection point at top,
13214 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
13216 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
13218 * intl/*: tested with gettext-0.10.38
13219 * configure.in: moved a macro call around (AM_PROG_CC) to keep
13220 some of autogen.sh from complaining.
13221 * INSTALL: added a warning against gettext older than at least 0.10.36
13223 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
13225 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
13226 AM_ICONV (both provided by gettext)
13228 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
13230 * lib/charconv.c: corrected the degraded mode for when
13231 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
13233 * objects/chronoline/chronoline_events.c: UTF8 compliance.
13235 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
13237 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
13238 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
13239 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
13242 * objects/chronogram/chronoline.c:
13243 * objects/chronogram/chronoref.c: took advantage of the above to
13244 make nicer looking dialogs.
13246 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13247 from libunicode's internals).
13248 * lib/message.c: convert strings to local encoding prior to
13249 display (UNICODE_WORK_IN_PROGRESS)
13250 * lib/properties.[ch]: convert strings to local encoding prior to
13251 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13252 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13253 * lib/stringprerenderer.[ch]: ditto
13255 (lib/text.c has been audited for UTF8, but the size of the changes
13256 make them inappropriate for commit before 0.89)
13258 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
13260 * objects/boolequation.h (<save|load>_boolequation): made the
13261 prototypes for match the .c file.
13263 * samples/grafcet.dia: minor non-conformance with IEC-848
13264 fixed (in the transition from step 100 to step 101).
13266 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13267 disallow editing of properties if the object is part of a group.
13269 * objects/chronogram/chronoline.c:
13270 * objects/SADT/annotation.c:
13271 * objects/SADT/box.c:
13272 * objects/GRAFCET/step.c:
13273 * objects/GRAFCET/transition.c:
13274 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13276 2001-06-12 Hans Breuer <hans@breuer.org>
13278 * lib/libdia.def : removed lazyprop exports
13279 * lib/makefile.msc : removed lazyprop.obj
13281 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13282 and avoid crashes by always creating a custom->text,
13283 when (custom->info->has_text)
13285 * objects/makefile.msc : removed sybase from build
13287 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13288 ObjectNode is a pointer already, which is what we want
13289 instead of a pointer pointer.
13291 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13292 and implemented working export for images
13294 * shapes/network/zip-disk.shape : added connection points
13296 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
13298 * objects/SADT/box.c: removed lazyprops for standard props.
13299 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13300 * objects/chronograms/chronoref.c: ditto
13304 * lib/connpoint_line.c:
13305 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13306 * lib/properties.[ch]: new property types:
13307 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13308 - PROP_TYPE_MULTISTRING: same as string, but renders as a
13309 multi-line entry box.
13310 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13311 in a tabbed-notebook style (this is a bit complicated to use;
13312 see objects/chronograms/chronoline.c for an example).
13314 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
13316 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13317 * objects/GRAFCET/step.c: ditto.
13318 * objects/GRAFCET/vector.c: ditto.
13319 * objects/SADT/annotation.c: ditto.
13320 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13322 * lib/properties.[ch]: two more non-visible types
13323 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13325 * lib/neworthconn.[ch]:
13326 * lib/orthconn.[ch]: added support for manipulation through
13327 standard properties.
13329 * configure.in: removed -fomit-frame-pointer, this seems to
13330 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
13333 * charconv.[ch]: more functions from unicode.h.
13334 get_local_charset() wasn't working properly, fixed now.
13335 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
13338 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13339 * lib/lazyprops.[ch]: put a big fat warning in.
13341 * app/render_eps.c: one line mysteriously went away, causing a
13342 variable to be used uninitialised....
13344 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
13346 * app/app_procs.c: commented out the call to
13347 bind_textdomain_codeset(): it's premature.
13349 * lib/connpoint_line.c: a NULL point can be given to
13350 connpointline_adjust_count(), in case there's not really a clicked
13353 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13354 #include order troubles. #included by lib/text.h, so there is no
13355 impact outside lib/.
13356 * lib/properties.[ch]: added support for CONNPOINT_LINE and
13357 (nonvisible) TEXT properties.
13359 * objects/GRAFCET/action.c:
13360 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13363 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13364 standard properties code). Grafted a dynamic number of connection
13365 points (heavily inspired from what Vergent does). This is the real
13368 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13370 * lib/fonts.c: some hardening (mostly g_assert())
13371 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
13373 * app/app_procs.c (app_init): added a call to
13374 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13375 (UNICODE_WORK_IN_PROGRESS).
13377 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
13379 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13381 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
13382 (fixes #55863) : some clean-ups in the handling of connection
13383 points. Now the total number of connection points is just a
13384 #define (the proper solution is to retrofit the GRAFCET Vergent's
13385 dynamic behaviour wrt connection points).
13387 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
13389 * app/app_procs.c (app_init): added a call to unicode_init() (only
13390 if HAVE_UNICODE, of course).
13392 * lib/charconv.c: simplified the code which detects the local
13393 charset. No need to use <langinfo.h>, libunicode already takes the
13394 burden of figuring that out. Also, if local charset is utf8, no
13395 conversion will take place.
13396 Exposed a way to get the current charset (similar to
13397 unicode_get_charset() but actually working, hopefully).
13399 * lib/charconv.h: Added a partial non-UTF8 implementation of
13400 unicode.h if !HAVE_UNICODE (actually, all the time for the
13401 moment). The UTF8 implementation is just macros on libunicode (use
13402 the functions prefixed by uni_, as defined by charconv.h, not
13403 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13404 From now on, all strings which don't *need* to be ASCII should be
13405 utfchar *, not gchar *. Just include charconv.h, let it sort out
13406 the details (such as: "is libunicode available and enabled?")
13408 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13409 "API" instead of directly libunicode. Removed the now unnecessary
13410 speculative clustering of characters in encoding pages.
13412 * app/render_eps.c: made the local8->utf8 conversions dependent of
13413 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13414 boundary will be when this WIP is done).
13416 * lib/dia_xml.c (data_point): fixed a format string typo.
13418 * po/POTFILES.in: added all C files from lib/
13420 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
13422 * app/disp_callbacks.c: make sure the objects' connected objects
13423 are updated when the objects' size changes after a keypress event
13426 * configure.in: added a big warning about the possible future
13427 non-optionality of --enable-unicode.
13429 * TODO: removed entries which look like done ; added a few ones
13430 (Bugzilla "enhancement" bugs may be a better way to keep track of
13433 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
13435 * objects/UML/message.c: got rid of #55564 and of message_copy()
13436 by using more standard properties (are the message_state_*()
13437 functions still necessary ?)
13439 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
13442 * objecs/custom/shape_info.c:
13443 * plug-ins/shape/shape-export.c:
13444 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13445 use xmlChar instead of obsolete CHAR.
13447 2001-06-03 Hans Breuer <hans@breuer.org>
13449 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13450 * app/commands.c : give the right number of parameters
13451 to diagram_update_menu_sensitivity ()
13453 * app/preferences.c : do proper initialization for DiaPrefsData:
13454 render_bounding_boxes. It would be a real surprise if 'hidden'
13455 properties would have ever worked before.
13456 Don't try to access the widgets of hidden property, it does not
13459 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13460 it is defined in libdia, but initialized from dia app, which
13461 otherwise gave nice start-up crashes.
13463 * lib/diagramdata.c : initialize the color for rendering bounding
13464 boxes in the Dia range (0 .. 1.0)
13466 * lib/libdia.def : added *_bbox functions for export
13468 * lib/makefile.msc : added new sources
13470 * objects/custom/custom_object.c : use HAVE_UNISTD_H
13472 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
13475 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13476 removes a translation of menus (in a place where there shouldn't
13477 have been), which gets rid of a waterfall of warnings if LANG!=C,
13478 and a fix to #55047.
13480 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
13482 * lib/charconv.c : added #include <errno.h>
13484 * app/dia_embedd.c : updated menus_get_item_from_path usage
13486 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
13488 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13489 Added a special case for Symbol strings, so that they're not
13490 re-encoded using the LN encoding (we use the bare Adobe encoding
13493 * objects/custom/custom_object.c: Now that #52912 is fixed,
13494 I could remove the ugly hack I wrote to squash the shape bounding box
13495 problem shown by Ben A. Hetland a few months ago, and fix it
13496 properly this time.
13498 * lib/text.c: enlarged a little the bounding box to account for
13499 the cursor in rightmost position.
13501 * lib/diagramdata.c: draw bounding boxes only if the relevant
13502 variable is set (as before), but also only if the rendere is
13503 interactive (ie, don't bother rendering bounding boxes on
13505 Made the bounding box's line width a fixed value, 0.01
13507 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13508 and assymmetric control beziers. Implemented ellipse_bbox().
13510 * Makefile.am: incantations to get po/dia.pot build, as suggested
13511 by Hubert in #55075.
13513 * shapes/network/computer.shape: typo fixed.
13514 * shapes/network/antenna.shape: fixed #55074 (antenna is now
13515 properly translucent, except for its base where it makes sense. It
13516 doesn't look that ugly anymore if transparent mode is on).
13518 * configure.in: --enable-unicode is now the default. This
13519 still currently affects only printing.
13521 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
13523 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
13524 The overshoot code is buggy, and the bounding boxes for polyshapes
13525 looks a bit cheezy. To be done ASAP.
13527 2001-05-26 James Henstridge <james@daa.com.au>
13529 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13530 This should clear up some of the build problems people have been
13533 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13535 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
13538 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13539 box code (beginning with lines, polylines and polybeziers), into a
13540 more generic facility. While at it, a better shot at correctly
13541 computing the bounding box of a Bezieroid (should take care of
13542 #53424, #51233 and of course is part 1 of #52912).
13544 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13545 into a hidden preference (set render_bounding_boxes in diarc).
13546 * app/preferences.[ch]: Added support for hidden preferences.
13548 * lib/geometry.[ch]: sprinkled with "const" modifiers.
13550 * lib/bezier_conn.[ch]:
13551 * lib/beziershape.[ch]:
13552 * lib/connection.[ch]:
13553 * lib/element.[ch]:
13554 * lib/poly_conn.[ch]:
13555 * lib/orth_conn.[ch]:
13556 * lib/neworth_conn.[ch]:
13557 * lib/polyshape.[ch]: adapted to take advantage of
13558 boundingbox.[ch] instead of relying on private (duplicate) code.
13560 * object/FS/flow.c:
13561 * object/GRAFCET/action.c:
13562 * objects/GRAFCET/condition.c:
13563 * objects/GRAFCET/vergent.c:
13564 * objects/GRAFCET/vector.c:
13565 * objects/SADT/annotation.c:
13566 * objects/SADT/arrow.c:
13567 * objects/ER/participation.c:
13568 * objects/UML/constraint.c:
13569 * objects/UML/implements.c:
13570 * objects/UML/lifeline.c:
13571 * objects/UML/message.c:
13572 * objects/UML/realizes.c:
13573 * objects/UML/generalization.c:
13574 * objects/UML/association.c:
13575 * objects/UML/dependency.c:
13576 * objects/FS/flow-ortho.c:
13577 * objects/network/bus.c:
13578 * objects/standard/arc.c:
13579 * objects/standard/bezier.c:
13580 * objects/standard/beziergon.c:
13581 * objects/standard/line.c:
13582 * objects/standard/polygon.c:
13583 * objects/standard/zigzagline.c:
13585 * objects/standard/polyline.c: Some *BBExtras structures changed
13586 names while moving to boundingbox.[ch]. A trivial mass-renaming.
13588 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
13590 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13591 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13593 * app/display.c (ddisplay_update_scrollbars): from Patrick's
13594 suggestion, remove the extra scrollable area (it was only visible
13595 to the scrollbars). This is experimental.
13597 * objects/custom/custom_object.c: If a shape's icon file doesn't
13598 exist, warn and substitute a default icon, instead of crashing.
13601 * objects/network/network.c:
13602 * shapes/network/modularswitch.(shape|xpm) (NEW):
13603 * shapes/network/printer.(shape|xpm) (NEW):
13604 * shapes/network/genmonitor.(shape|xpm) (NEW):
13605 * shapes/network/computer.(shape|xpm) (NEW):
13606 * shapes/network/Makefile.am: four less objects, four more shapes.
13607 These were the last known RenderObjects. (phew !)
13611 * objects/sybase/Makefile.am:
13612 * objects/network/Makefile.am: Removed the older Renderobjects
13613 from the build, and their infrastructure (not yet deleted,
13616 * shapes/network/sceadplug.shape:
13617 * shapes/network/antenna.shape:
13618 * shapes/network/modem.shape:
13619 * shapes/network/hub.shape:
13620 * shapes/network/rj45plug.shape:
13621 * shapes/sybase/client.shape:
13622 * shapes/sybase/dataserver.shape:
13623 * shapes/sybase/ltm.shape:
13624 * shapes/sybase/repserver.shape:
13625 * shapes/sybase/rsm.shape:
13626 * shapes/sybase/stableq.shape: Minor corrections (line widths were
13627 ten times too narrow).
13629 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
13631 * objects/network/network.c:
13632 * shapes/network/sceadplug.(shape|xpm) (NEW):
13633 * shapes/network/antenna.(shape|xpm) (NEW):
13634 * shapes/network/modem.(shape|xpm) (NEW):
13635 * shapes/network/Makefile.am: four less objects, four more shapes.
13638 * lib/diagramdata.c:
13640 * lib/string_prerenderer.[ch] (NEW):
13641 Add a new renderer primitive, predraw_string() (does nothing, to be
13642 used as a hook to optimise the character encodings if needed).
13643 Added a string pre-renderer, which can be viewed as a filter
13644 renderer (to route draw_string() to predraw_string() and ignore
13645 the rest, in a first rendering pass)
13647 * app/render_eps.c: Took advantage of the above to make wholly
13648 optimised Postscript encoding page(s), even (especially) with
13649 non-latin1 code (HAVE_UNICODE must be true).
13651 (#53512 in fact is wholly resolved).
13653 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
13655 * lib/charconv.c: steps towards resolution of #53512 (inspired by
13656 Alexey Novodvorsky <aen@logic.ru>'s patch).
13658 * app/menus.c (dia_menu_signal_proxy): checked that the signal
13659 handler is not NULL before transferring control to it... (fixes #52836)
13661 * app/app_procs.c (app_init): removed non-constant initialiser
13664 * objects/custom/custom_object.c:
13665 * objects/custom/shape_info.[ch]:
13666 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
13667 <skh@mathstar.com>. This add support for a <svg:text> shape
13668 element, and some related style properties (font, font height,
13671 * doc/custom_shapes: a precision about the meaning of case in a
13672 SVG path (closes #52364)
13674 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13675 fixed by <drk@sgi.com>)
13677 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
13679 * objects/network/network.c:
13680 * shapes/network/Makefile.am:
13681 * shapes/network/hub.(shape|xpm) (NEW):
13682 * shapes/network/flash.(shape|xpm) (NEW):
13683 * shapes/network/rj45plug.(shape|xpm) (NEW):
13684 More shapes, less renderobjects.
13686 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
13688 * plug-ins/svg/render_svg.c: typo made exported ellipses
13689 corrupted (zero Y pseudo-radius).
13691 * objects/network/network.c:
13692 * objects/network/disc.c:
13693 * shapes/network/disc.(shape|xpm): Converted the first
13694 Renderobject into a shape. Normally, old diagrams should reload
13695 without problems (please check this against your diagrams). More
13696 flexibility should be gained that way. I intend to hunt and
13697 eradicate all renderobjects as I can commit cycles to that.
13699 * objects/Makefile.am:
13702 * objects/sybase/sybase.c:
13703 * shapes/sybase/Makefile.am(NEW):
13704 * shapes/sybase/client.(xpm|shape) (NEW):
13705 * shapes/sybase/dataserver.(xpm|shape) (NEW):
13706 * shapes/sybase/ltm.(xpm|shape) (NEW):
13707 * shapes/sybase/repserver.(xpm|shape) (NEW):
13708 * shapes/sybase/rsm.(xpm|shape) (NEW):
13709 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13710 renderobjects into shapes. The Sybase objects are now not compiled
13711 anymore, and ready to be nuked if nobody objects in the next few weeks.
13714 * app/diagram.[ch]:
13715 * app/disp_callbacks.c:
13716 * app/display.[ch]:
13717 * app/interface.[ch]:
13719 * app/modify_tool.c:
13720 * app/preferences.[ch]:
13721 * app/recent_files.c:
13722 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13723 a menu bar reflecting the popup menu, to each display window. This
13724 is optional (changing the preference currently doesn't affect
13725 already opened windows; a few other rough edges to cut).
13727 * plug-ins/wpg/wpg.c:
13728 * plug-ins/xfig/xfig-import.c:
13729 * plug-ins/python/pydia-property.c:
13730 * plug-ins/python/pydia-properties.c:
13731 * plug-ins/python/pydia-geometry.c:
13732 * plug-ins/pstricks/render_pstricks.c:
13734 * objects/EML/dbox.c:
13735 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
13738 * lib/ps-utf8.c: improved the clustering of alphabetic character
13739 definitions in custom encodings pages.
13741 2001-05-02 Hans Breuer <hans@breuer.org>
13743 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
13744 of 'obj_bb' to PROP_TYPE_RECT
13746 * objects/custom/custom_object.c : take all quarks into account,
13747 not only 4 as copy&paste suggests
13749 * objects/uml/objects.c : completed the implementation of the
13750 property api to avoid reading of totally bogus data. Removed
13751 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13752 there was too much but too less ...
13754 The above changes removed all known crashes (mentioned below)
13755 from the Property API. Property access is still incomplete though.
13757 * objects/flowchart/box.c :
13758 * objects/flowchart/diamond.c :
13759 * objects/flowchart/ellipse.c :
13760 * objects/flowchart/parallelogram.c :
13761 * objects/uml/classicon.c :
13762 * objects/uml/state.c : calculate number of quarks from quark array
13763 size instead of using hardcoded values for consistence and to avoid
13764 future bugs like the above
13766 * objects/eml/nlist.c : include <string.h> for strcmp()
13768 * lib/dia_xml.c : relax g_warning for values, which
13769 appear to be too small. There is nothing which prevents
13772 * plug-ins/python/pydia-geometry.c : changed stringifying of
13773 geometry objects accept BezPoint back to %f, which does not
13774 crash anymore, because all the data is intialized now and it
13775 simply is more readable than %e ...
13777 * plug-ins/python/python-startup.py : removed dependency
13778 to PyGtk, because it isn't required here and probably won't
13779 in i.e.: export filters.
13781 * plug-ins/python/gtkcons.py : create the gtkoutfile even
13782 if sys.stderr.fileno() isn't supported
13784 * app/makefile.msc : make version 0.88
13785 * plug-ins/makefile.msc : make version 0.88 an added new
13786 xfig files to build
13788 2001-05-11 James Henstridge <james@daa.com.au>
13790 * NEWS: remember to add news items this time.
13792 * dia.spec: update spec file for 0.88 release.
13794 * configure.in: up version number to 0.88
13796 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13797 preventing any of the useful python scripts from being
13800 * sheets/Makefile.am (sheet-translation-report): fix bustage I
13801 introduced in my fixups for the 0.87 release :(
13803 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
13805 * plug-ins/xfig/xfig-import.c: Finally got groups working.
13807 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
13809 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13810 group manipulation.
13812 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
13814 * lib/ps-utf8.[ch]:
13815 * lib/Makefile.am: fix makefile breakage which led to not
13816 including ps-utf8.[ch] in the released tarballs.
13818 2001-05-09 James Henstridge <james@daa.com.au>
13820 * Makefile.am (core-translation-report): dist scripts needed for
13821 this target, and change to $(srcdir) before running.
13823 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
13824 files aren't automatically included in the tarball by automake
13825 because they could be generated files.
13827 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13829 * doc/en/Makefile.am (install-data-hook): fix up where graphics
13832 * configure.in: up version number to 0.87
13834 * plug-ins/python/*.py: no longer necessary to explicitly set
13835 sys.argv, as python.c does it for us now (like it should).
13837 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13840 * plug-ins/python/python-startup.py: startup script that imports
13841 all modules in $(datadir)/dia/python and ~/.dia/python.
13843 * plug-ins/python/python.c (dia_plugin_init): change so that it
13844 only runs the $(datadir)/dia/python-startup.py script. Make sure
13845 that sys.argv and __main__.__file__ are set when calling the
13848 * plug-ins/python/Makefile.am: update makefile. Make it install
13849 gtkcons.py plugin. I haven't set any other plugins to install, as
13850 they look like they are mainly for debugging purposes.
13852 * configure.in: add tests to detect if python is available, so we
13853 can build the python plugin. Only run if --with-python passed to
13856 2001-05-08 James Henstridge <james@daa.com.au>
13858 * acinclude.m4: add macros for detecting python.
13860 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13861 at GNOME_APP_UI_SUBTREE entries.
13862 (menus_add_path): function to add a menu item to the menubars.
13863 Uses a hash table to keep track of extra menu items it adds. Also
13864 notifies the item factory about the entries so that accels can be
13866 (menus_add_path): implement gtk only version.
13867 (menus_init): use menus_add_path() to add the menu.
13868 (plugin_callback): simplify.
13870 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
13872 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13874 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
13876 * plug-ins/xfig/xfig-export.c:
13877 * plug-ins/xfig/xfig-common.c:
13878 * plug-ins/xfig/xfig-import.c:
13879 * plug-ins/xfig/xfig.c:
13880 * plug-ins/xfig/xfig.h:
13881 * app/Makefile.am: Added support for exporting to Fig format
13882 (except splits, which are less powerful in Fig). Some refactoring
13885 2001-05-02 Hans Breuer <hans@breuer.org>
13887 * plug-ins/python/debug_objects.py : added another
13888 test to get massive crashes from the Property API due
13889 to unintialized data.
13891 * app/menu.c : the callback_action wasn't incremented
13892 (should have checked my last optimization). Now more
13893 than one plug-in callback is supported again.
13895 * plug-ins/python/pydia-geometry.c : avoid crashes from
13896 glib, when trying to g_strdup_printf unintialized floats.
13898 * plug-ins/python/pydia-property.c : avoid crashes from
13899 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
13901 2001-05-01 Hans Breuer <hans@breuer.org>
13903 * objects/makefile.msc : added eml
13904 * objects/eml/instantiation.c : initialize 'inst' pointer
13905 before using, zero initialization for objects
13906 * objects/eml/interaction-ortho.c :
13907 * objects/eml/interaction.c : zero initialization for objects
13909 * app/menus.c : removed Gimp mru stuff which slipped in at
13910 2000-08-15, was never activated and will never be needed,
13911 because of Steffens recent file list patch added at 2001-01-05.
13913 * objects/eml/*.c : some more zero initialization of objects
13914 to avoid infinite (uninitialized) bounding boxes
13916 Implemented a callback api which allows plug-ins to register
13917 menu call backs. Dia for Gnome should compile, but will need
13918 some extra tweaking to make it work because I can't test it.
13920 * plug-ins/python/pydia-error.h :
13921 * plug-ins/python/pydia-render.c : moved Pxthon function return
13922 value handling from pydia-render.c to pydia-error.h, to make it
13924 * plug-ins/python/diamodule.c : implement callback function
13925 registration from and relaying to Python code
13927 * app/menus.c : register and use plug-in menu callbacks
13929 * lib/filter.[hc] : implement filter_register_callback() and
13930 filter_get_callbacks() for the above
13931 * lib/libdia.def : export them
13933 * plug-ins/python/debug_objects.py (new file):
13934 sample using the above
13936 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
13938 * plug-ins/shape/shape-export.c (new_shape_renderer):
13939 The name of a shape is now taken from the dir, to conform with
13942 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
13944 * app/properties.c (properties_show): Added title containing
13945 object type, plus (hopefully) fix of the ghost properties dialog.
13947 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
13949 * app/display.c: remove the display idle handler in case we
13950 destroy the ddisplay (caused crashes in ddd, probably random
13951 crashes elsewhere).
13955 * Makefile.am: hack around gettext-0.10.36's new "features".
13957 * lib/properties.[ch]: added new function object_copy_props().
13958 Added new property type PROP_TYPE_ENDPOINTS
13960 * lib/connection.h: added support for load/saving through the
13961 properties interface.
13963 * lib/object.[ch]: object_load/save/copy_using_properties()
13964 support functions (code factorisations).
13966 * objects/GRAFCET/boolequation.c: check against null values in
13967 boolequation_set_value() and boolequation_destroy().
13969 * objects/GRAFCET/transition.c: Converted from lazyprops to
13970 standard properties. 31% less (x86) code !
13972 * objects/GRAFCET/condition.c: also converted from lazyprops to
13973 standard properties. Also killed lots of code.
13975 2001-04-13 Hans Breuer <hans@breuer.org>
13977 * plug-ins/wmf/wmf.cpp : changed text conversion from
13978 g_utf8_utf16 to g_convert usage. The latter function is already
13979 available in tml's last "official" Gtk+ version (2000-12-26).
13980 This change allows to use recent Dia with either the official
13981 version or the latest cvs "gtk-1-3-win32-production"-branch.
13983 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
13985 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
13986 * app/disp_callbacks.c:
13987 - Allow submenus in DiaMenus.
13988 - Don't require DiaMenu.title to be non-null (so that
13989 submenus aren't required to have titles)
13991 * objects/FS/function.c:
13992 - object menu now has submenus, an almost complete list of
13993 standard-basis verbs, and a start on nouns.
13994 - box padding, dash length, and other visual attributes are
13995 scaled by the font size... eventually font height will be
13996 a function property.
13997 - draw functions with smaller font to make initial view hold
13998 a reasonable number of functions.
14000 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
14003 * sheets/chronogram.sheet:
14004 * sheets/jigsaw.sheet:
14005 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
14006 Wieers <dag@wieers.com>
14008 2001-04-13 Hans Breuer <hans@breuer.org>
14010 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
14011 to ensure that all the deinitialization is only done once. Fixes
14012 recent app exit crash on win32
14014 * lib/dia_xml.c : provide isinf() replacement for msc which does only
14017 * lib/libdia.def : updated
14019 * objects/makefile.msc : added wanlink.c
14021 * objects/network/wanlink.c : added M_PI_2 definition for poor
14022 platforms which don't have one
14024 * objects/standard/arc.c :
14025 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
14026 initialized which led to rather huge bounding boxes (try Ctrl^A on
14027 diagrams with Arcs or ZigZagLines).
14028 * objects/*/*.c : to avoid further bugs like the above changed all
14029 object initializations to g_malloc0 or g_new0
14032 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
14034 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
14035 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
14037 * objects/UML/class.c:
14038 * objects/UML/usecase.c:
14039 * objects/UML/large_package.c:
14040 * objects/UML/message.c:
14041 * objects/UML/object.c:
14042 * objects/UML/lifeline.c:
14043 * objects/FS/flow.c:
14044 * objects/FS/flow-ortho.c:
14045 * objects/FS/function.c:
14046 * objects/custom/custom_object.c:
14047 * objects/GRAFCET/vergent.c:
14048 * objects/chronogram/chronoref.c:
14049 * objects/SADT/box.c:
14050 * objects/SADT/annotation.c:
14051 * plug-ins/dxf/dxf-import.c:
14052 * plug-ins/xfig/xfig-import.c:
14053 * plug-ins/wpg/wpg.c:
14056 * app/display.c: /* certainly more WIP than dead code there */
14057 Unused variables, unused static function definitions, forgotten or
14058 incomplete prototypes added or fixed, lack of const or unwanted const,
14059 etc. (mostly clean-ups of leftovers of the pre-properties era).
14060 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
14061 please check these.
14063 * app/lineprops_area.c: More of the same. Missing prototypes
14064 added, and functions unused outside made static.
14066 * app/recent_files.c:
14067 * app/properties.c:
14068 * app/defaults.c: some variables are used only when doing a GNOME
14071 * app/magnify.c: missing #include <stdlib.h>.
14073 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
14075 These are a lot of clean-ups (by the way, this compiles and runs
14076 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
14077 for DEAD_CODE, and if it's yours, judge it.
14079 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
14081 * plug-ins/dxf-import.c: some progress with the arcs; still some
14082 clean-ups to do and line width scaling issues to figure out.
14084 * objects/standard/arc.c: start_point and end_point properties
14085 (duplicated from standard/line.c)
14087 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
14090 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
14092 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
14093 preliminary support for arcs (doesn't work). Circles and ellipses are
14094 now transparent. Coordinate and width scaling are now a common
14095 static constant (probably before morphing into a preference).
14097 * sheet/checktrans.py: improved error reporting. Made checktrans
14098 count lack of <name xml:lang="code"> as a lack of translation for
14099 language "code" (no, it's not a plot to bring down other
14100 language's scores !)
14102 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
14103 in the header, and have <name xml:lang="fr"> components.
14105 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
14107 * objects/custom/custom_object.c: temporary hack to fix the shape
14108 bounding box reported by Ben A. Hetland. Proper fix isn't .87
14109 material, see bugzilla #52912.
14111 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
14113 * objects/standard/image.c (get_directory): Now uses
14114 G_SEPARATOR_CHAR_S instead of "/"
14116 * sheets/network.sheet:
14117 * sheets/Logic.sheet:
14118 * sheets/Flowchart.sheet:
14119 * sheets/Electric.sheet:
14120 * sheets/Circuit.sheet:
14122 * sheets/Pneumatic.sheet:
14123 * sheets/SDL.sheet:
14124 * sheets/UML.sheet:
14125 * sheets/GRAFCET.sheet:
14126 * sheets/MSE.sheet:
14127 * sheets/chronogram.sheet:
14128 * sheets/civil.sheet:
14129 * sheets/network.sheet:
14130 Danish translations.
14132 * objects/standard/image.c (get_directory): Changed get_directory
14133 to use g_dirname to find the directory part.
14135 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
14138 * sheets/Electric.sheet:
14139 * sheets/Flowchart.sheet:
14140 * sheets/Logic.sheet:
14141 * sheets/network.sheet: More Dutch translations from Dag Wieers.
14143 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14145 * sheets/checktrans.py: now emits a warning when two descriptions
14146 for a single language code are found.
14149 * sheets/Makefile.am: -translation-reports now also depend on their
14152 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14154 * sheets/Circuit.sheet:
14155 * sheets/Contact.sheet:
14156 * sheets/Logic.sheet:
14157 * sheets/chronogram.sheet:
14158 * sheets/sybase.sheet:
14159 Dutch translations from Dag Wieers <dag@wieers.com>
14161 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14163 * po-checktrans.py: Now shows the detailed counts alongside the
14164 percentage of translations.
14166 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
14169 * po-checktrans (NEW):
14170 * po-checktrans.py (NEW): builds core-translation-report:
14171 percentages of core (gettext) translations done [Not placed into
14172 po/ where that should belong, because of integration fear^Wissues
14175 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
14176 sheets/sheet-translation-report probably ought to be copied on the
14177 user's /usr/share/doc/dia (or equivalent) directory.
14179 * sheets/Makefile.am: sheet-translation-report now a simple
14180 EXTRA_DIST; make install won't install it by default.
14182 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
14184 * app/preferences.c: changed the default grid colour to something
14187 * shapes/SDL/*.shape:
14188 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
14189 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
14190 DIA FILES (well, for files using SDL), see the mailing list
14191 archive "SDL (ab)using the global shape namespace" for a script to
14192 do this conversion.
14194 * sheets/SDL.sheet: translated into French
14195 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
14197 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
14199 * lib/dia_xml.c: made data_point() more paranoid
14201 * sheets/Makefile.am:
14202 * sheets/checktrans (NEW):
14203 * sheets/checktrans.py: Made checktrans handle more gracefully the
14204 absence of python and python-xml packages, and made the error
14205 message more helpful.
14207 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
14209 * lib/render_object.c (new_render_object): Made initial handles
14210 behave like on most other objects.
14212 * app/load_save.c (read_objects): Fixed premature free'ing ofr
14213 typestr causing garbage.
14215 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
14217 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
14218 accouting for handle ordering through copy and save. (#51479)
14220 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
14222 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
14224 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
14226 * sheets/Circuit.sheet
14228 * sheets/network.sheet: Updated German translations
14230 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14233 * app/lineprops_area.c: The return of the revenge of the arrow
14234 heads. Now all types covered by ISO 10303-201 should be covered.
14236 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14238 * sheets/Flowchart.sheet: translations in probably Hungarian were
14239 a victim of cut-n-paste from the German one. Fixed (hopefully).
14240 * sheet/UML.sheet: translation in probably Norwegian was a victim
14241 of cut-n-paste from the French one. Fixed (hopefully).
14242 * sheets/Logic.sheet: French translation not tagged with
14245 * sheets/checktrans.py:
14246 * sheets/Makefile.am: new file, sheet-translation-report, to be
14247 installed along the sheets, show how much of them has been
14248 translated into which language (I wish the result was prettier...)
14250 * po/README: most translators don't read this file, but anyway...
14252 * sheets/.cvsignore:
14253 * objects/network/.cvsignore: the usual negotiation with CVS.
14255 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14257 * sheets/*.sheet: French translations
14259 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
14261 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14263 ** objects/network/network.c:
14264 ** objects/network/wanlink.c:
14265 ** objects/network/pixmaps/wanlink.c:
14266 ** sheets/network.sheet:
14267 ** objects/network/Makefile.am: a better object to use instead of
14268 the older WAN Connection.
14270 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14272 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14275 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14276 Arc; kept the C file name (because CVS wouldn't like it), and
14277 still registering the older object name (but advertising the newer
14278 one in sheets/GRAFCET.sheet).
14280 2001-03-24 Hans Breuer <hans@breuer.org>
14282 * app/dia.def : some plug-ins (currently only python, xfig) are using
14283 functions from the dia executable. To get them working these functions
14284 need to be explicit exported on win32. IMO the much cleaner way would
14285 be to move these functions to libdia, but that would require some
14286 long term restructuring ...
14288 * lib/libdia.def : updated
14290 * plug-ins/makefile.msc : build xfig plug-in
14292 2001-03-24 Hans Breuer <hans@breuer.org>
14294 * app/diagram.c : g_strdup (dia->filename) because it will be
14297 * app/display.c : set ddisp->renderer to NULL after destruction.
14298 This may solve or help to identify erroneous access to it after
14301 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14302 get 'umlauts' working
14304 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
14306 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14307 were reversed... (look for the patch, and drink a beer to my
14310 2001-03-23 Hans Breuer <hans@breuer.org>
14312 * app/app_procs.c : don't g_error () if the config directory
14313 can't be created (at least not on windoze) because it's quite
14314 common that the user don't read or understand the FAQ ...
14316 * app/cursor.c : use ddisplay_active () instead of active_display
14319 * app/display.[hc] : made active_display var static and provide
14320 an accessor funtion ddisplay_active_diagram ()
14322 * app/dia-props.c : don't store the active_diagram, but ask
14323 for it everytime it needed.
14325 * lib/properties.h : #include "intl.h"
14327 * lib/makefile.msc : need to take care of inclusion order to
14328 avoid clashes with gtk+2.0's gdk-pixbuf
14330 * objects/makefile.msc : added uml/stereotype.c to build
14332 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
14334 * **/*.c: Added config.h to the remaining .c files, and changed
14335 all to be <config.h>.
14337 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
14342 * app/lineprops_area.c: added new arrow types with double
14345 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
14347 * shapes/Civil/civil_gas_bottle.xpm
14348 * shapes/Civil/civil_gas_bottle.shape
14349 * sheets/civil.sheet
14350 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14353 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
14355 * objects/custom/shape_info.c (load_shape_info):
14356 * objects/custom/shape_info.h:
14357 * objects/custom/custom_object.c (custom_update_data):
14358 Better support for text outside the box -- new attributes 'resize'
14359 and 'align' for text entity. Align not fully supported yet.
14361 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14363 2001-03-20 James Henstridge <james@daa.com.au>
14365 * app/interface.c (display_data_received_callback): comment out
14368 2001-03-19 James Henstridge <james@daa.com.au>
14370 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14372 * objects/UML/realizes.c: similar here.
14374 * objects/UML/implements.c: similar here.
14376 * objects/UML/component.c: similar here.
14378 * objects/UML/generalization.c: same here.
14380 * objects/UML/dependency.c: allow NULL for ->name and
14381 ->stereotype. This fixes a number of problems in loading saved
14384 * lib/properties.c: various changes so that NULL string properties
14387 * objects/standard/line.c (line_update_data):
14388 line->extra.start_long and line->extra.end_long were not being
14389 initialised. This fixes potential problems with the bounding box
14390 of "Standard - Line" objects.
14392 2001-03-19 Hans Breuer <hans@breuer.org>
14394 * app/commands.c : added win32 specific code to display a html
14395 file. #include "text.h" for text_delete_all prototype.
14398 * app/dia.rc : (new) to give Dia win32 an icon
14400 * app/win32print.[ch] : new files to support direct postscript
14401 file printing on win32. Beware: it *requires* a ps-printer!
14403 * app/paginate_psprint.c : disable the signal code for win32 build
14404 and added small specific changes to support win32print.
14406 * app/makefile.msc : added win32print and linking shell32.lib
14408 * lib/libdia.def : updated
14410 2001-03-18 Kevin Breit <battery841@mediaone.net>
14412 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
14415 2001-03-17 James Henstridge <james@daa.com.au>
14417 * app/paginate_psprint.c (diagram_print_ps): add code that traps
14418 SIGPIPEs during printing. This gets rid of a number of crashes
14419 caused by printing (eg. typing an incorrect print command).
14421 * dia.spec (%install): gzip the manpage.
14423 * lib/beziershape.c (beziershape_save): fix off by one error in
14424 beziershape save code, which was adding an extra segment to the
14427 * app/menus.c: add a separator in the gnome version of the help
14430 * app/app_procs.c (app_init): add a --nosplash argument which
14431 disables the splash screen.
14433 * app/dia_embedd.c (main): don't leave the splash screen open for
14434 embeddable component.
14436 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14437 didn't seem to be showing the splash screen like expected, so I
14438 have replaced it with some code that calls gtk_main() until the
14439 first exposure of the window.
14441 2001-03-16 James Henstridge <james@daa.com.au>
14443 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14445 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14448 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14450 * app/Makefile.am (dia_core_files): remove splash.h from file
14451 list, as it doesn't exist.
14453 * doc/en/Makefile.am (uninstall-local): remove the docdir on
14456 * doc/Makefile.am (uninstall-local): target to remove the C
14459 * dia.spec (%files): include the documentation in the package.
14461 * app/menus.c (toolbox_menu_items): add menu item for manual,
14462 which calls help_manual_callback.
14464 * app/commands.c (help_manual_callback): find help file and load
14465 netscape to view it.
14467 * app/commands.h: add prototype for help_manual_callback()
14469 * doc/Makefile.am (helpdir): similar here.
14471 * doc/en/Makefile.am (helpdir): make the helpdir
14472 $(pkgdatadir)/help/en in the non gnome case.
14474 * configure.in (HAVE_GNOME): add conditional.
14476 * doc/en/Makefile.am: handle the graphics in a more general way,
14477 so it is easier for Kevin to add them to the build (just add them
14478 to the GRAPHICS var).
14480 * app/Makefile.am (embed_extra_print_files): make the case of
14481 building without gnome-print support but with bonobo support work.
14482 dia-embedd needs to be include the gnome-print
14484 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
14486 * samples/Makefile.am: included all samples in the distribution....
14488 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
14490 * configure.in: removed premature test for DPS. Added -*- m4 -*-
14491 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14492 vanished, removed it from ALL_LINGUAS.
14494 * lib/charconv.[ch] (NEW): a very small wrapper around
14495 unicode_iconv to convert strings between utf8 and local charset
14496 (actually, ISO-8859-1, though one can do
14497 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14499 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14500 library to help build Postscript streams which use as many custom
14501 font encodings as necessary to correctly represent all characters
14502 used (testing from users with non-latin1 and/or more than 256
14503 characters in routine use *very* welcome).
14505 * app/Makefile.am, lib/Makefile.am: integrated these into the
14508 * shapes/Logic/.cvsignore (NEW): .cvsignore
14510 * app/render_eps.h: forwarded some changes Lars forgot to include.
14511 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14514 2001-03-08 Kevin Breit <battery841@mediaone.net>
14516 * doc/en/home_network.png: Added file.
14517 * doc/en/line_props.png: Added file.
14518 * doc/en/usage-objects.sgml: Added two graphics to file.
14519 * doc/en/usage-quickstart.sgml: Added one graphic to file.
14521 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
14523 * app/grid.h: Place comment around text after #endif.
14524 * lib/bezier_conn.c: #include <string.h>.
14525 * lib/beziershape.c: #include <string.h>.
14526 * lib/connpoint_line.h: Comment after #endif.
14527 * lib/dia_dirs.c: #include <string.h>.
14528 * lib/element.c: Same.
14529 * lib/lazyprops.c: #include <config.h> and "intl.h".
14530 * lib/lazyprops.h: Comment out text after #endif.
14531 * lib/neworth_conn.c: #include <string.h>
14532 * lib/orth_conn.c: Same here.
14533 * lib/poly_conn.c: Here too.
14534 * lib/polyshape.c: And here.
14535 * lib/properties.c: Remove #include "intl.h" from here and add
14536 an array of static strings to work around bug in gettext that
14537 makes it miss strings in a #define body.
14538 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14539 * objects/GRAFCET/boolequation.h: Same here.
14540 * objects/chronogram/chronoline_event.h: Add prototype for
14543 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14545 * objects/FS/function.c:
14546 * objects/FS/flow.c:
14547 * objects/FS/flow-ortho.c:
14548 Updated to use properties.
14550 2001-03-03 James Henstridge <james@daa.com.au>
14552 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14553 button labels when creating them.
14555 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14557 * objects/UML/actor.c
14558 * objects/UML/realizes.c
14559 * objects/UML/implements.c
14560 * objects/UML/generalization.c
14561 * objects/UML/dependency.c
14562 * objects/UML/constraint.c
14563 Updated to use properties.
14565 * objects/UML/stereotype.c
14566 * objects/UML/stereotype.h
14567 Generalized to any kind of bracketting.
14569 2001-02-28 James Henstridge <james@daa.com.au>
14571 * app/menus.c: add help entry to the help menu. Need to get this
14572 working for the non GNOME case as well (maybe put help under
14573 $(datadir)/dia/help for non GNOME?)
14575 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14577 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14578 this element so that we get a meaningful filename in the html
14581 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14584 * configure.in (DB2HTML): add a check for the db2html program, and
14585 set an automake conditional if it is found.
14587 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14588 and descend into doc/ directory while building.
14590 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14591 we need more complex rules for building the docs.
14593 2001-02-25 Hans Breuer <hans@breuer.org>
14595 * config.h.win32 : some cleanup
14597 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14598 are deprecated since glib-1.3.2. Sorry needing to use them
14599 contionally, but there is no glib-1.2 for win32
14601 * app/recent_files.c : use g_strescape (params) conditionally
14603 * lib/connection.c : include string.h for memcpy
14605 * lib/geometry.h : added some stuff for compatibility with
14606 msvc, which previously came from included config.h
14608 * lib/libdia.def : updated
14610 * objects/makefile.msc : updated
14612 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
14613 'extra' used without having been initialized
14615 * objects/network/bus.c(658) : initialize 'extra'
14617 * plug-ins/makefile.msc : updated
14619 * plug-ins/cgm/cgm.c :
14620 * plug-ins/pstricks/render_pstricks.c :
14621 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
14624 * plug-ins/python/python.c : use HAVE_DIRENT_H
14626 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14628 * lib/connection.c (connection_update_boundingbox):
14629 Made the BB shrink on right and lower sides, too.
14631 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
14633 * */*.c: #incude <config.h> at the top.
14634 * */*.h: Remove include of "config.h" since it should only
14635 be included in .c files and at the very top for things to
14637 * sheets/*.sheet: Updated Norwegian translations.
14639 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14641 * objects/UML/small_package.c:
14642 * objects/UML/class.c:
14643 * objects/UML/node.c:
14644 * objects/UML/usecase.c:
14645 * objects/UML/lifeline.c:
14646 * objects/UML/message.c:
14647 Various cleanup of properties in particular. Now much more use of
14648 standard properties.
14650 * lib/diagramdata.c (layer_render): Visualization of bounding
14651 boxes, for debugging purpoises.
14653 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
14656 * lib/connection.[ch]:
14657 * lib/poly_conn.[ch]:
14658 * lib/polyshape.[ch]:
14659 * lib/bezier_conn.[ch]:
14660 * lib/beziershape.[ch]:
14661 * lib/orth_conn.[ch]:
14662 * lib/neworth_conn.[ch]:
14663 * lib/element.[ch]: Changed a bit the _update_boundingbox()
14664 interface. Now the parent elements have an extra_spacing
14665 structure, which child objects just need to fill, to take care of
14666 most arrow & line width extra space needs.
14668 * objects/**/*.c: updated all objects to the new interface.
14669 While at it, killed all instances of (Object *) downcasts (phew !)
14671 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14672 doesn't speak about.
14674 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14676 * sheets/Logic.sheet: New sheet for Logic symbols.
14678 2001-02-21 James Henstridge <james@daa.com.au>
14680 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14681 widget by its path name. Walks the GnomeUIInfo heirachy rather
14682 than widget tree, compares untranslated label names and ignores
14683 underscores in the labels.
14684 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14685 lookups are not dependent on the current locale, as with
14686 gnome_app_find_menu_pos.
14688 * acconfig.h: guard against multiple inclusion of config.h.
14690 * app/select.c (select_style_callback): simply set the selection
14691 style to the value of action.
14693 * app/menus.c (menus_init): simplify the item factory based menu
14694 code a bit. It looks like it was using some code cut and pasted
14695 from the gimp, which looked a bit unnecessary. Things work fine
14697 (selectmenu): set the action to the type of selection mode
14699 (display_menu_items): use the symbolic enumeration values for the
14702 * app/plugin-manager.c:
14703 * app/plugin-manager.h:
14707 * app/select.h: change prototypes.
14709 * app/commands.c: update all callback prototypes, and get rid of
14710 some #ifdef GNOME's.
14712 * app/commands.h: change function prototypes.
14714 * app/dia_embedd.c (save_fn):
14715 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14717 * app/menus.c (menus_init): for gnome menus, use
14718 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14719 structure that proxies the callbacks to have the same signature as
14720 GtkItemFactory type 1 callbacks.
14721 (menus_init): for GTK menus, change from callback type 2 to type
14723 (display_menu_items): add back tearoffs. I don't know who removed
14724 these for the gtk menu case.
14726 2001-02-20 Kevin Breit <battery841@mediaone.net>
14728 * doc/en/usage-objects-special.sgml: Fixed a few of the special
14729 object descriptions. More to come in the next few days.
14731 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
14733 * app/render_eps.c: Fixed for internationalized floating point
14736 * objects/UML/note.c: Fixed properties -- was missing
14737 Get/ApplyPropertiesFunc. Also improved update to recalculate text
14740 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
14742 * plug-ins/xfig/xfig-import.c:
14743 File added importing xfig files. Still very rough, but good
14744 enough to let others hack on it.
14746 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
14749 * app/linewidth_area.c:
14751 * lib/properties.c:
14753 * objects/ER/attribute.c:
14754 * objects/ER/entity.c:
14755 * objects/ER/relationship.c:
14756 * objects/custom/custom_object.c:
14757 * objects/flowchart/box.c:
14758 * objects/flowchart/diamond.c:
14759 * objects/flowchart/ellipse.c:
14760 * objects/flowchart/parallelogram.c:
14761 * objects/standard/box.c:
14762 * objects/standard/textobj.c: per Vlad Harchev's request, made
14763 page sizes of gtk_adjustments different than their step sizes.
14764 When sensible values of page size weren't found (overwhelming
14765 majority of cases), page sizes were set to 10.0 * respective step
14768 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
14770 * objects/network/hub.c:
14771 Patch from Hubert Figuiere applied, adding connection points.
14773 2001-02-02 James Henstridge <james@daa.com.au>
14775 * app/display.c (new_display): set update id to 0 here.
14776 (ddisplay_update_handler): rename from ddisplay_flush, and set
14777 update_id to 0 at end of processing.
14778 (ddisplay_flush): new implementation that simply sets an idle
14779 handler to perform the actual drawing.
14781 * app/display.h: add structure member to hold the redraw idle
14784 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
14786 * objects/standard/ellipse.c (ellipse_copy):
14787 * objects/standard/zigzagline.c (zigzagline_copy):
14788 Fix of copying provided by Martin Hawlisch.
14790 2001-01-23 Kevin Breit <battery841@mediaone.net>
14792 * doc/en/graphics/: added directory
14794 * doc/en/graphics/greendots.png: added file
14796 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14799 2001-01-23 Kevin Breit <battery841@mediaone.net>
14801 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14802 thanks to John Fleck!
14804 2001-01-21 Kevin Breit <battery841@mediaone.net>
14806 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14808 2001-01-12 Michael Meeks <michael@helixcode.com>
14810 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14811 so our POA gets setup properly.
14813 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14814 things we g_malloc.
14816 * configure.in: Use bonobox_print.
14818 * app/dia_embedd.c (embeddable_factory): add print interface.
14819 (object_print): impl.
14821 2001-01-11 Michael Meeks <michael@helixcode.com>
14823 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14824 (load_fn, save_fn): impl.
14825 (view_factory): hide modified status bar, & use activate fn.
14826 (refresh_view): force redraws of the views.
14827 (view_show_hide): split from
14828 (dia_view_activate): here.
14830 * app/diagram.c (diagram_load_into): split from diagram_load.
14831 (new_diagram): simplify bu splittin stuff into
14832 (diagram_init): here.
14834 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
14836 * shapes/jigsaw/*.shape: replaced #000000 with foreground
14837 and #ffffff with background
14839 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
14841 *configure.in: GTK+-build was broken due to missing
14844 2001-01-06 Michael Meeks <michael@helixcode.com>
14846 * app/dia_embedd.c (main): add running context support.
14847 (dia_embeddable_destroy): remove old running object counting.
14848 (embeddable_factory): ditto.
14849 (view_factory): comment out menu path hiding.
14851 * lib/sheet.c (load_register_sheet): use free to free
14852 stuff from libxml not g_free.
14854 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14856 * configure.in: remove USE_OAF checks, check for a precice
14857 Bonobo version >= 0.31, revamp bits.
14859 * app/dia_embedd.c (init_server_factory): upd.
14860 (init_dia_factory): remove OAF conditionals, everything uses
14863 * app/GNOME_Dia.oafinfo: rename OAFIIDs
14865 * app/Makefile.am: remove ancient gnorba code.
14866 rename dia.oafinfo to GNOME_Dia.oafinfo
14868 2001-01-07 Hans Breuer <Hans@Breuer.Org>
14872 * readme.win32 : some more files required or useful to build
14875 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14876 fill_bezier implementation, boundary drawing in fill mode, etc.
14877 Next one complaining gets the source, uncommented ...
14879 * shapes/network/router-symbol.xpm
14880 * shapes/network/switch-atm-symbol.xpm
14881 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14882 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
14883 the files as XPMs. Maybe the X versions of these functions are more
14886 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
14888 * plug-ins/python/Makefile.am: added libart path
14890 * plug-ins/python/python.c: added dirent.h
14892 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
14894 2001-01-06 Hans Breuer <Hans@Breuer.Org>
14896 * objects/uml/actor.c
14897 * objects/uml/branch.c
14898 * objects/uml/class.c
14899 * objects/uml/classicon.c
14900 * objects/uml/component.c
14901 * objects/uml/large_package.c
14902 * objects/uml/node.c
14903 * objects/uml/note.c
14904 * objects/uml/object.c
14905 * objects/uml/small_package.c
14906 * objects/uml/state.c
14907 * objects/uml/usecase.c : started to implement the generic property
14908 interface for the uml objects. Would appreciate some help on how
14909 to implement properties which are list of properties themselves,
14910 e.g. member functions and their parameters of UMLClass.
14912 2001-01-06 Hans Breuer <Hans@Breuer.Org>
14914 * plug-ins/python/diamodule.c : finally ported to win32.
14915 Added new objects and implemented register_export function.
14917 * plug-ins/python/pydia-object.h
14918 * plug-ins/python/pydia-display.c
14919 * plug-ins/python/pydia-handle.c
14920 PyObject_HEAD_INIT needs some tweakink on win32. Done in
14921 pydia-object.h; others files simply using it.
14923 * plug-ins/python/pydia-layer.c : reflect
14924 layer_find_closest_connection(_)point renaming
14926 * plug-ins/python/pydia-object.c : add property properties.
14927 Also change bounding_box to DiaRectangle.
14929 * plug-ins/python/python.c : extended error reporting; use
14930 all *.py files from Dia's plug-in dir instead of hardcoded
14931 test.py. This sollution should be fine with Win32, but on
14932 Unix it may need some tweaking (dunno) ...
14934 * plug-ins/python/export-object.py
14935 * plug-ins/python/export-render.py : test and documentation
14936 implementations for export filter implementations in Python
14938 * plug-ins/python/pydia-color.[hc]
14939 * plug-ins/python/pydia-diagramdata.[hc]
14940 * plug-ins/python/pydia-error.[hc]
14941 * plug-ins/python/pydia-export.[hc]
14942 * plug-ins/python/pydia-font.[hc]
14943 * plug-ins/python/pydia-geometry.[hc]
14944 * plug-ins/python/pydia-image.[hc]
14945 * plug-ins/python/pydia-properties.[hc]
14946 * plug-ins/python/pydia-property.c
14947 * plug-ins/python/pydia-render.c : new objects in new files
14949 * plug-ins/python/makefile.am : added new files but can't test it
14951 * plug-ins/python/pydia.def
14952 * plug-ins/python/makefile.msc : for win32 build
14954 * plug-ins/cgm/cgm.c
14955 * plug-ins/dxf/dxf-import.c
14956 * plug-ins/dxf/dxf-export.c
14957 * plug-ins/hpgl/hpgl.c : reflect export API change
14959 * plug-ins/shape/shape-export.c : reflect export API change
14960 and check for libart (better the availibility of a png exporter)
14961 at run-time instead of compile-time.
14963 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
14965 * app/recent_files.h was missing from Hans's commit
14967 * plug-ins/shape/shape_export.c: shape export was broken
14968 due to interface changes
14970 2001-01-05 Hans Breuer <Hans@Breuer.Org>
14972 Applied Steffen's recent file list patch :
14973 * app/Makefile.am : added recent_files.[hc]
14974 * app/diagram.c : add files to recent file list
14975 * app/menus.c : add recent file menu
14976 * app/app_procs.c : changed initialization order to
14977 make recent file list work with command line processing.
14979 The Filter export()/import() functions have got an additional
14980 parameter to allow multiple filters via one C callback (required
14981 for Python bindings)
14983 * app/commands.[hc] : corrected the signature for gtk menu callback
14984 functions, which actually use the second or third parameter. This
14985 is the absolute minimum change to make these functions/menu entries
14986 work again. Using the other possible gtk menu callback signature
14987 would have required one more function to change. (see mailing list
14988 thread "Objects/Align/Equal Distance" for more information.
14990 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
14991 zoom-combo focus patch
14994 * app/interface.c : wrapped the Zoom Combo code into
14995 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
14996 improvement but cluttering the user interface. Also it wasn't
14997 compiling on Win32 anyway. The win32 version does define
14998 WITHOUT_ZOOM_COMBO to keep the old look.
14999 There are plans to use the statusbar to display size and placement
15000 of selected objects, whereas the Zoom Combo would need to get out
15001 of the way as well.
15003 Added "Save Changes?" to diagram close dialog. Hopefuly the
15004 Yes/No/Cancel option isn't too much windoze like. IHMO this is
15005 an useability improvement.
15010 * app/layer_dialog.c
15011 * app/paginate_psprint.c
15013 - reflect signature changing of filter->export function
15014 - replaced '/' with G_DIR_SEPARARTOR where appropriate
15016 * app/diaunitspinner.c
15017 * app/render_libart.c
15018 added misssing headers like <string.h>
15020 * app/object_ops.c : fixed copy&paste bug in dialog string
15022 * app/splash.c : gdk_widget_show_now () does not ensure actual
15023 drawing of the splash screen, at least not on win32. Reuse the
15024 previous implementation with gtk_main_iteration() again.
15026 * */makefile.msc : make use of the build module (available in
15027 gnome-cvs/build. Updated for other source changes
15029 * lib/filter.h : added an user_data pointer to <ex/im>port()
15030 function signature and Dia<Im/Ex>portFilter to allow different
15031 filters to reuse the same callback function
15033 * lib/font.c : #include <string.h>
15038 * lib/neworth_conn.c
15039 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
15041 * */*.def : export function definition files required by win32 build
15043 * objects/custom/custom.c : #include <string.h>
15045 * plug-ins/pstricks/render_pstricks.c
15046 * plug-ins/shape/shape_export.c
15047 * plug-ins/svg/render_svg.c
15048 reflect changes to filter export function signature
15050 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
15051 mostly work as expected
15052 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
15053 to build the wmf plug-in because on the one hand the GDI emulation
15054 isn't finished and on the other hand it isn't required when building
15055 for win32. Is there anybody out there, who wants to save WMF on non
15056 windoze platforms ?
15058 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
15059 offset into account.
15061 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
15063 * app/Makefile.am: added missing plug-ins to run_dia.sh
15065 * lib/paper.c: added paper sizes A0, A1, A2
15067 * objects/UML/class.c
15068 objects/UML/class.h
15069 objects/UML/class_dialog.c: added support for colored UML
15072 2000-12-30 Kevin Breit <battery841@mediaone.net>
15074 * doc/en/usage-customization.sgml: added more content
15076 2000-12-24 Kevin Breit <battery841@mediaone.net>
15078 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
15079 <remy.viard@laposte.net>
15081 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
15083 * added limiting lines to Civil Engineering sheet,
15084 fixed vertical pump icon
15086 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
15088 * updated/additional Civil Engineering shapes: better icons,
15089 shapes use foreground/background colors now and are filled
15091 2000-12-03 Kevin Breit <battery841@mediaone.net>
15093 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
15094 the selection <sect1>
15096 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
15098 * app/load_save.c (diagram_data_save): avoid using obsoleted
15099 libxml calls (only matters when compiling with libxml2)
15101 2000-11-25 James Henstridge <james@daa.com.au>
15103 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
15104 handle the tool drops on the canvas.
15106 * app/interface.c (display_data_received_callback): do the check
15107 to make sure that the drag is from a local toolbox here as well.
15109 * app/interface.c (create_tools): unref the pixmap/mask after
15110 creating the GtkPixmap.
15111 (tool_setup_drag_source): function to set up a drag source for
15112 create object tool buttons.
15113 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
15114 (fill_sheet_wbox): same here.
15115 (create_display_shell): set up the display canvas as a drag
15117 (display_drop_callback, display_data_received_callback): functions
15118 to handle drops of tool buttons.
15120 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
15121 does weird shit to the user_data pointer for a menu item. Object
15122 alignment should work again now.
15124 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
15125 NULL, and mark this function static.
15126 (app_splash_init): use gtk_widget_show_now() instead of the
15127 gtk_main_iteration loop.
15128 (app_splash_init): connecting gtk_widget_destroy to the destroy
15129 signal of a widget seems pretty useless.
15131 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
15133 * doc/en/dia-manual.sgml:
15134 Added sect1 for advanced object types. Starting development
15137 2000-11-18 Kevin Breit <battery841@mediaone.net>
15139 * doc/en/dia-manual.sgml:
15140 Stupid spelling fixes.
15142 2000-11-18 Kevin Breit <battery841@mediaone.net>
15144 * doc/en/dia-manual.sgml:
15145 Just some small changes I made. Props to Greg LeBlanc on the
15148 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
15151 (ddisplay_add_display_area): Clip input rectangle to
15152 the visible part of the display.
15153 (ddisplay_scroll): Optimization, don't scroll and
15154 redraw if moving to the same position as before.
15156 * app/render_libart.c (renderer_libart_copy_to_window):
15157 Removed sanity check. Now moved to ddisplay_add_display_area().
15160 Added return at end of file.
15162 2000-11-13 Kevin Breit <battery841@mypad.com>
15163 * doc/en/dia-manual.sgml
15164 Commited manual changes from Henry House <hajhouse@houseag.com>
15166 2000-10-21 Hans Breuer <Hans@Breuer.Org>
15167 * lib/beziershape.c :
15168 The previous code was accessing unowned memory due to IHMO
15169 wrong index calculation. Now it appears to be fixed.
15173 * plug-ins/makefile.msc
15174 * objects/makefile.msc
15175 * app/makefile.msc: (new files)
15176 Makefiles for Dia on Win32, Micro$oft VC only.
15178 * plug-ins/pstricks/render_pstricks.c
15179 * plug-ins/dxf/dxf-import.c
15180 * plug-ins/shape/shape-export.c
15181 * plug-ins/svg/render_svg.c
15184 * app/preferences.c
15188 * objects/custom/custom.c
15189 * objects/standard/image.c
15190 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
15191 where appropriate, add missing prototypes like <string.h>
15193 * plug-ins/wmf/wmf_gdi.cpp
15194 * plug-ins/wmf/wmf_gdi.h:
15195 start of wmf write functions for non Win32 platform. Not
15196 finished yet. The other way to get it working maybe to
15197 link the plug-in against wine libs.
15199 * plug-ins/wpg/wpg.c : add missing brace
15201 * app/load_save.c :
15202 Handling for unknown objects at load time. Previously Dia
15203 was crashing, if you try to load a file referencing objects
15204 whiches plug-ins aren't installed/available. Now it spits out
15205 a warning and ignores the unknown objects.
15208 toolbox DND support for files like The Gimp does it.
15212 Simple splash screen support and usage.
15215 Splash screen, portability fixes, dont' g_error if there is
15216 g_get_homedir return NULL. This may remove the one and only
15220 Make it compile without ENABLE_NLS
15222 * app/render_libart.c :
15223 Sanity check to avoid calling libart with wrong window coordinates.
15224 They come from the update handler. Direct Gdk is dealing nicely
15225 with coordinates out of range, libart does access un-owned memory
15226 in this case, mostly causing crashes.
15228 * app/winmain.c: (new file) Export the Win32 Gui version of the
15229 main function. This file is only required for Windoze.
15231 * app/splash.c: (new file) splash screen implementation
15235 * lib/diavar.h: (new file)
15236 moved special variable export code to diavar.h, because it is
15237 needed in color.h and font.h
15240 M$VC cann't export inlined functions. Quick hack to let it
15241 link again. Probably the glib mechanics should be used here?
15243 * objects/UML/lifeline.c : initialize var before usage
15245 * objects/GRAFCET/step.c : removed unused var
15247 2000-10-14 James Henstridge <james@daa.com.au>
15249 * app/render_gnomeprint.c (draw_image): change code so images
15250 don't get flipped when printing.
15252 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15253 sure that the return value of
15254 gnome_print_context_new_with_paper_size is not NULL.
15256 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15257 into a series of bezier segments.
15258 (fill_arc): similar code to handle filled arc segments.
15260 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
15267 * app/disp_callbacks.c
15269 * app/linewidth_area.c
15270 * app/paginate_psprint.c
15271 * app/preferences.c
15275 * app/neworth_conn.c
15277 * objects/standard/box.c: various small changes to get rid of
15278 annoying warnings (eg faulty prototypes and unused variables)
15280 * app/disp_callbacks.c
15283 * app/magnify.h: update magnify tool icon when pressing/releasing
15284 shift. I will try to make something more general so that similar
15285 things can be used by other tools.
15287 * shapes/SDL/inout.shape
15288 * shapes/SDL/return.shape: fixed some typos
15290 2000-10-09 James Henstridge <james@daa.com.au>
15292 * objects/custom/shape_info.c (parse_path): apply patch from
15293 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15296 2000-10-08 James Henstridge <james@daa.com.au>
15298 * objects/standard/image.c (image_set_props): if the file could not
15299 be loaded, show the broken image icon.
15301 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15303 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15305 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15306 object icon when loading from a file. This allows you to have PNG
15307 icon files for shapes.
15309 2000-10-07 James Henstridge <james@daa.com.au>
15311 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15313 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15314 GDK_IMLIB_CFLAGS reference.
15316 * app/commands.c (help_about_callback): remove imlib code.
15318 * lib/dia_image.c: only include the pixbuf version of the image
15321 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15323 * configure.in (CPPFLAGS): remove the check for imlib, as we now
15324 require gdk-pixbuf.
15326 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15327 conditionally define \setfont as well.
15329 2000-10-05 James Henstridge <james@daa.com.au>
15331 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15332 preamble so that we define \setlinejoinmode and \setlinecaps
15333 commands conditionally on them being undefined. This way, the
15334 pstricks output files should work without modification, and will
15335 support the commands when they are implemented in pstricks.
15337 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
15339 * dia.desktop: added hungarian translations to dia.desktop
15341 2000-10-04 James Henstridge <james@daa.com.au>
15343 * sheets/UML.sheet: fix typo.
15345 * objects/custom/shape_info.c: use strtod instead of g_strtod.
15346 (parse_path): actually call setlocale around strtod calls.
15348 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
15349 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15350 the g_strtod wrapper.
15352 * shapes/SDL/: add SDL shapes from Rubens Ramos
15353 <rubens_ramos@yahoo.com>
15355 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15357 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15359 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15360 W. Michael Petullo <mike@flyn.org>.
15362 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15363 from the 0.86 tarball) and jigsaw.sheet.
15365 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15367 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15369 * shapes/network/: add network-additional shapes here.
15371 * sheets/network.sheet: add the network-additional shapes from
15372 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15375 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
15377 * configure.in: Updated ALL_LINGUAS
15379 * po/nl.po: Removed newline from translation
15381 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
15383 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
15384 logo filename generation.
15386 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15387 Avoiding "//dia_logo.png".
15389 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
15391 * app/filedlg.c: add include <sys/types.h> to
15392 remove warning. (OS/2)
15394 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
15396 * objects/chronogram/chronoline_event.c (reparse_clevent):
15397 the __checksum routine was simply bogus. Redone it in a slightly
15398 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15400 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
15402 * app/create_object.c (create_object_button_press):
15403 * app/modify_tool.c (click_select_object):
15404 * lib/object.h: select renamed to selectf to prevent
15405 compiler problems with function select(). OS/2 version.
15407 2000-09-08 Karsten Weiss <knweiss@gmx.de>
15409 * po/de.po: Updated.
15411 2000-09-07 Karsten Weiss <knweiss@gmx.de>
15413 * dia.desktop: Added German translation
15414 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15416 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
15418 * configure.in (ALL_LINGUAS): added "es"
15420 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15425 * app/scroll_tool.c:
15426 Standardized cursor function get_cursor(). Magnify now has
15427 looking-glass cursor with + and -.
15429 * app/create_object.c (create_object_button_press):
15430 Newly created connections now snap to connection points even when
15433 2000-08-17 Daniel Egger <egger@suse.de>
15435 * app/menus.c: #ifdef'ed some code for the none GNOME
15437 * app/dia_embedd.c: Changed obvious hackery. Can anyone
15438 please have a look at the GNOME UI menu creation? The
15439 gnome-app-helper code is ages old and plainly broken!
15441 2000-08-15 Daniel Egger <egger@suse.de>
15448 * app/select.c: First big patch to get the menus
15449 working again in the international version. Copied
15450 some code written by Sven and me from GIMP and
15451 thus implemented automatic tearoffmenu creation and
15452 proper translation. I also removed that pseudo
15453 radiomenu hack and cleaned up several translation
15454 hacks which have never really worked. All in all
15455 this is part I of the big menu patch. Enjoy and tell
15456 me if you detect any problems.
15458 2000-08-14 Daniel Egger <egger@suse.de>
15460 * sheets/UML.sheet: Changed one German translation as
15461 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15463 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
15465 * app/diapagelayout.c:
15466 * lib/diagramdata.c:
15467 * lib/diagramdata.h:
15470 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15471 selecting paper size for a new diagram. TODO: Use libpaper if
15472 available and use gnome_paper-stuff if using GNOME.
15474 * sheets/Electric.sheet: fixed typo.
15476 2000-08-08 James Henstridge <james@daa.com.au>
15478 * po/README: added a readme file to tell translators to translate
15479 the .sheet files as well.
15481 * app/commands.c (help_about_callback): fix small bug where we tried
15482 to gdk_bitmap_unref() the mask for the about box image, even though
15483 it was NULL. Now check for a NULL mask.
15485 2000-08-07 Daniel Egger <egger@suse.de>
15487 * sheets/*.sheet: Added translations for the name
15488 in the toolbar tab. Brushed up some descriptions
15489 and some translations a bit.
15491 2000-08-06 James Henstridge <james@daa.com.au>
15493 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15494 identifier and dtd url for SVG output.
15495 (new_svg_renderer): fix the output of the viewBox output. The
15496 second two numbers are the width and height -- not the right
15497 and bottom sides of the box.
15499 * shapes/*/*.shape: update svg namespace URI.
15501 * objects/custom/shape_info.c (load_shape_info): change the
15502 namespace URI for custom shapes yet again to match the Candidate
15503 Recommedation. It looks like this one will probably be the final
15506 * app/display.c (new_display): remove the code that sets ic and
15507 ic_attr members to NULL, as one of the previous function calls
15508 causes the display to be realised. This means that the ic gets
15509 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15512 2000-08-06 James Henstridge <james@daa.com.au>
15514 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15516 * NEWS: fixed date in NEWS file, as I will release today.
15518 * README: updated the README a little. Added note that Dia is now
15521 * dia.spec: fix up spec file.
15523 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15525 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15526 get heaps of warnings when you turn off debugging.
15527 Also made a few other warning fixes.
15529 2000-08-02 James Henstridge <james@daa.com.au>
15531 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15533 * configure.in: update version number.
15535 2000-08-01 James Henstridge <james@daa.com.au>
15537 * app/commands.c (help_about_callback): add Hans to about dialog.
15539 * doc/shape.dtd: dtd for shape file format.
15541 * doc/custom-shapes: update doc file about creating custom shapes.
15543 * shapes/*/*.shape: change namespace URI for the SVG portion to the
15544 one for the latest draft.
15546 * shapes/*/*.shape: fix up rect definitions.
15548 * objects/custom/shape_info.c (load_shape_info): recognise newer
15549 namespace tag for SVG.
15550 (parse_svg_node): the rect element should take attributes x, y, width
15551 and height -- not x1,y1,x2,y2.
15553 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15554 output to use the newest draft DTD.
15556 * plug-ins/svg/svg.c: initialisation code for plugin.
15558 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15560 * plug-ins/svg/Makefile.am: makefile for svg plugin.
15562 * app/app_procs.c (internal_plugin_init): don't register the svg
15563 export filter here.
15565 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15567 2000-07-31 James Henstridge <james@daa.com.au>
15569 * objects/standard/textobj.c (textobj_get_defaults):
15570 * objects/standard/polygon.c (polygon_get_defaults):
15571 * objects/standard/image.c (image_get_defaults):
15572 * objects/standard/ellipse.c (ellipse_get_defaults):
15573 * objects/standard/box.c (box_get_defaults):
15574 * objects/standard/beziergon.c (beziergon_get_defaults):
15575 * objects/flowchart/parallelogram.c (pgram_get_defaults):
15576 * objects/flowchart/ellipse.c (ellipse_get_defaults):
15577 * objects/flowchart/diamond.c (diamond_get_defaults):
15578 * objects/flowchart/box.c (box_get_defaults):
15579 * objects/custom/custom_object.c (custom_get_defaults):
15580 * objects/FS/flow.c (flow_get_defaults):
15581 * objects/FS/flow-poly.c (flow_get_defaults):
15582 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15585 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15586 widgets for various object types.
15587 (create_dialog): ref and sink the no_defaults_dialog.
15589 * app/preferences.c (prefs_create_dialog): change
15590 gtk_container_border_width call to gtk_container_set_border_width.
15592 2000-07-29 James Henstridge <james@daa.com.au>
15594 * app/commands.c (view_aa_callback): show a warning dialog if
15597 * app/interface.c (fill_sheet_menu): don't add a menu item for
15600 2000-07-26 James Henstridge <james@daa.com.au>
15602 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15604 * app/menus.c: remove edit grid menu item.
15606 * app/commands.[ch] (view_edit_grid_callback): removed.
15608 * app/display.c (new_display): don't initialise removed Grid members.
15610 * app/grid.c: remove unused functions.
15612 * app/grid.h: remove dialog related stuff from Grid structure.
15613 Remove prototypes for dialog functions.
15615 * app/menus.c: add to menus
15617 * app/commands.[ch] (view_diagram_properties_callback): new command
15618 for showing the diagram properties dialog.
15620 * app/dia-props.[ch]: a new diagram properties dialog. To replace
15621 the edit grid dialog.
15623 2000-07-25 James Henstridge <james@daa.com.au>
15625 * app/grid.c (grid_x_update):
15626 (grid_y_update): as the grid setting is stored with the diagram,
15627 update all displays when a change is made.
15629 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15631 * app/create_object.c (create_object_button_press):
15632 (create_object_motion): use new snap_to_grid signature.
15634 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15635 and handle invisible grid lines.
15636 (snap_to_grid): use new grid settings. Also changed signature to
15637 take a DDisplay rather than Grid pointer.
15638 (grid_show_dialog): get the defaults from the correct place.
15640 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15642 * app/diagram.c (new_diagram): set the grid size defaults from the
15645 * app/load_save.c (diagram_data_save): save grid and guide info to
15647 (diagram_data_load): add guide and grid load support.
15649 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15652 * lib/diagramdata.h: add members to DiagramData for grid and guide
15655 * configure.in (BONOBO_LIBS): update configure scripts
15657 * app/dia.oafinfo: oafinfo file for dia embeddables.
15659 * app/dia_embedd.c: add OAF support.
15661 2000-07-24 James Henstridge <james@daa.com.au>
15663 * plug-ins/wpg/Makefile.am:
15664 * plug-ins/pstricks/Makefile.am:
15665 * plug-ins/hpgl/Makefile.am:
15666 * plug-ins/dxf/Makefile.am: same here.
15668 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
15669 the required libraries, and the link line was causing libtool not
15670 to build a shared library on some systems :(
15672 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15673 be checking x, not n.
15675 2000-07-23 James Henstridge <james@daa.com.au>
15677 * app/preferences.c (prefs_data): set the "reset tools after
15678 create" preference to true by default. That seems to be what most
15681 * app/interface.c (create_sheets): instead of a notebook, use an
15682 option menu that updates the sheet tools. The notebook tabs were
15683 getting a bit unwieldly, so the option menu should fix that. This
15684 also reduces the number of widgets in the tools radio button
15685 group, which should make the UI a little more responsive.
15687 2000-07-19 Fatih Demir <kabalak@gmx.net>
15689 * configure.in: Added tr to ALL_LINGUAS.
15690 [ Yeah, we're now having a Turkish translation,
15693 * dia.desktop: Added the Turkish entries.
15695 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
15697 * doc/diagram.dtd: changed string-element so it conforms to the
15700 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
15702 * configure.in: added chinese.
15703 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15711 objects/custom/shape_info.c:
15712 shapes/Circuit/npn.shape:
15713 shapes/Circuit/pnp.shape:
15714 sheets/*.sheet: dia now works with libxml2.
15715 Libxml2 is a bit more picky when parsing xml and reported errors on all
15716 sheet files because they use non ascii characters (added
15717 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
15718 I commented out these.
15720 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
15722 * configure.in (ALL_LINGUAS): added Italian
15724 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
15726 * configure.in (ALL_LINGUAS): added Korean
15728 2000-06-25 James Henstridge <james@daa.com.au>
15730 * objects/flowchart/parallelogram.c (pgram_create): use default font
15731 and add properties interface support.
15733 * objects/flowchart/ellipse.c (ellipse_create): use default font and
15734 add properties interface support.
15736 * objects/flowchart/diamond.c (diamond_create): use default font and
15737 add properties interface code.
15739 * objects/flowchart/box.c (box_create): use default font.
15741 * objects/custom/custom_object.c (custom_create): use default font
15744 * objects/standard/textobj.c (textobj_create): update to use default
15747 * lib/attributes.c: add implementations.
15749 * lib/attributes.h (attributes_[gs]et_default_font): add function
15750 prototypes for setting/getting a default font.
15752 2000-06-24 James Henstridge <james@daa.com.au>
15754 * app/paginate_gnomeprint.h: updated prototype.
15756 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15757 diagram page settings.
15759 * objects/standard/beziergon.c (beziergon_copy): same here.
15761 * objects/standard/polygon.c (polygon_copy): copy the fill colour
15765 * app/tool.h (tool_options_dialog_show):
15766 * app/scroll_tool.h (free_scroll_tool):
15767 * app/render_svg.h:
15768 * app/render_libart.h (renderer_libart_copy_to_window):
15769 * app/render_gdk.h (renderer_gdk_copy_to_window):
15770 * app/properties.h (properties_hide_if_shown):
15771 * app/preferences.h (prefs_load):
15772 * app/object_ops.h:
15773 * app/modify_tool.h (free_modify_tool):
15774 * app/magnify.h (free_magnify_tool):
15775 * app/linewidth_area.h (linewidth_area_create):
15776 * app/layer_dialog.h:
15777 * app/handle_ops.h (handle_is_clicked):
15779 * app/grid.h (grid_destroy_dialog):
15780 * app/defaults.h (defaults_show):
15781 * app/cut_n_paste.h (cnp_exist_stored_objects):
15782 * app/create_object.h (free_create_object_tool):
15783 * app/connectionpoint_ops.h (diagram_unconnect_selected):
15785 * app/color_area.h (color_area_create):
15786 * app/app_procs.h (app_is_embedded): remove extern keyword from
15787 function prototypes.
15790 * lib/sheet.h (load_all_sheets):
15791 * lib/render_store.h:
15792 * lib/render_object.h (render_object_load):
15793 * lib/polyshape.h (polyshape_closest_segment):
15794 * lib/poly_conn.h (polyconn_closest_segment):
15797 * lib/objchange.h (new_object_state_change):
15798 * lib/neworth_conn.h (neworthconn_add_segment):
15799 * lib/message.h (message_error):
15802 * lib/font.h (font_descent):
15803 * lib/focus.h (remove_focus):
15805 * lib/diagramdata.h:
15806 * lib/dia_xml.h (data_add_composite):
15808 * lib/connpoint_line.h:
15809 * lib/connection.h (connection_move_handle):
15811 * lib/attributes.h (attributes_set_default_line_style):
15812 * lib/arrows.h (arrow_draw): remove extern keyword from function
15813 definitions. It is not required for functions.
15815 * plug-ins/dxf/Makefile.am (INCLUDES):
15816 * plug-ins/pstricks/Makefile.am (INCLUDES):
15817 * plug-ins/cgm/Makefile.am (INCLUDES):
15818 * objects/SADT/Makefile.am (INCLUDES):
15819 * objects/chronogram/Makefile.am (INCLUDES):
15820 * objects/GRAFCET/Makefile.am (INCLUDES):
15821 * objects/flowchart/Makefile.am (INCLUDES):
15822 * objects/sybase/Makefile.am (INCLUDES):
15823 * objects/FS/Makefile.am (INCLUDES):
15824 * objects/standard/Makefile.am (INCLUDES):
15825 * objects/network/Makefile.am (INCLUDES):
15826 * objects/UML/Makefile.am (INCLUDES): same here.
15828 * objects/ER/Makefile.am: changed inclusion of some macros to
15831 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15832 handle the plug in extension, rather than have all the #ifdef's in
15835 * plug-ins/Makefile.am: add renderer.inc to dist.
15837 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15839 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
15841 * lib/plug-ins.c: Handle OS/2 dll's too.
15843 2000-06-07 James Henstridge <james@daa.com.au>
15845 * app/plugin-manager.c (get_plugin_manager): set some table
15846 packing options to make it look a little nicer.
15848 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15849 makefiles for these plug-ins.
15851 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15853 * configure.in: added hpgl and wpg directories to build. Added
15854 note about whether gnome-print support was enabled, and noted that
15855 it is not recommended.
15857 2000-06-06 James Henstridge <james@daa.com.au>
15859 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
15860 a little work, but I am checking them in so I don't lose them.
15862 2000-06-01 James Henstridge <james@daa.com.au>
15864 * objects/standard/arc.c: added extra properties.
15866 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15867 was using the wrong index into the handles array. This gets corner
15868 type changing working correctly.
15870 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15871 to properties code (no editing or loading yet though). Also added
15872 support for point array manipulation through the offsets interfaces.
15874 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
15876 * app/interface.c (origin_button_press): changes so the origin
15877 button doesn't grab the pointer when we pop up the menu.
15879 * app/commands.c (help_about_callback): fix small memory leak in
15882 * app/menus.c (menus_init): fixed breakage I introduced in the non
15883 gnome menus when I was doing the menu changes. The tearoffs work
15884 really nicely in plain gtk mode as well.
15886 * objects/standard/beziergon.c (beziergon_create): changed the
15887 returned handles to match the handle numbering changes. Now
15888 segment addition and removal works correctly with undo!
15890 * lib/beziershape.c: various changes to the code. Changed the
15891 numbering of handles, and fixed the segment removal code.
15893 2000-05-31 James Henstridge <james@daa.com.au>
15895 * objects/standard/beziergon.c: remove connection point handling.
15896 There is still a bit of work to be done to get adding and removing
15897 of segments working correctly.
15899 * lib/beziershape.c: add connection point handling to beziershape.
15900 I set it for two connection points per segment.
15902 2000-05-30 James Henstridge <james@daa.com.au>
15904 * objects/standard/polygon.c: don't do connectionpoint handling.
15906 * lib/polyshape.c: changed to handle connection points internally.
15907 Also, don't worry about connections to handles on polyshape, as
15908 all handles are non connectable.
15910 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
15912 * configure.in: Added finnish
15914 2000-05-30 James Henstridge <james@daa.com.au>
15916 * sheets/*.sheet: translation updates to the .sheet files.
15918 * po/fr.po: updated po file from Christophe Merlet.
15920 * menus.h: removed prototypes for functions which have been removed.
15922 2000-05-29 James Henstridge <james@daa.com.au>
15924 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
15925 item in the option menu when changing selected diagram.
15927 * app/dia_embedd.c (view_factory): fix up function to work with new
15930 * app/disp_callbacks.c (ddisplay_realize): remove call to
15931 display_set_active from here.
15932 (ddisplay_canvas_events): move call here. This gets rid of all the
15933 warnings, as the renderer has been fully set up correctly at this
15936 * app/menus.c (menus_init): add the tearoff item to the start of the
15939 * app/app_procs.c (create_user_dirs): we don't need to create the
15940 menus directory anymore.
15942 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
15943 necessary to update the menu state here, as it was done when the
15944 active display was set.
15946 * app/display.c (display_set_active): update the menu state when
15947 changing active displays.
15949 * app/interface.c (origin_button_press): set the display as active
15950 when a click is made on the menu button.
15952 * app/menus.c (menus_init): set up a quit function to save the accels
15954 Add tearoff items for the non GNOME menus, add accelerators for
15955 several GNOME menus.
15957 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
15958 menus_get_image_menu().
15960 * app/menus.c (menus_get_item_from_path): use display_menus here
15961 rather than ddisp->popup.
15963 * app/display.h: remove the popup member in the DDisplay structure.
15965 * app/interface.c: remove option of not using wrap box.
15966 (create_toolbox): change to always use menus_get_toolbox_menubar
15967 even when using gnome menus.
15968 (create_display_shell): use menus_get_image_menu to load accelerators
15969 only -- not the actual popup menu.
15971 * app/menus.c (menus_init): new function to create the menus.
15972 (menus_get_toolbox_menubar): use this function whether gnome is
15973 in use or not. Changed to use menus_init.
15974 (menus_get_image_menu): same here. Also, now this function always
15975 returns the same menu, rather than a new one each time.
15976 (menus_init): read a menurc file to load accelerators here.
15978 2000-05-28 James Henstridge <james@daa.com.au>
15980 * app/display.c (ddisplay_really_destroy): unset active display if
15981 active display is destroyed.
15982 (ddisplay_active): simplify function to return active_display as set
15983 by display_set_active. This allows using a pinned menu with any
15984 display -- not just the one it was popped up from.
15985 (display_set_active): notify the layer dialog of change of diagrams
15986 when active diagram changes.
15988 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
15989 on button and key presses.
15990 (ddisplay_realize): set active display on realize.
15992 * app/display.c (display_set_active): simple implementation of this
15995 * app/display.h (display_set_active): add prototype for setting
15996 the active display.
15998 * app/interface.c (create_display_shell): don't give focus to the
16001 * app/menus.c: fix up menus for Beziergon.
16003 * app/interface.c (create_display_shell): make the widget in the
16004 top left corner a button that can be used to pop up the right click
16005 menu, like in gimp and sketch.
16007 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
16010 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
16011 add code to set corner types for beziergon.
16013 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
16015 (beziershape_move_handle): use the previous corner type for right
16018 * app/interface.c (tool_data): add beziergon to toolbox.
16020 * objects/standard/standard.c (dia_plugin_init): initialise the new
16021 Beziergon object type.
16023 * objects/standard/beziergon.c: an object based on BezierShape.
16025 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
16027 * lib/beziershape.[ch]: new files implementing a bezier shape.
16029 2000-05-26 James Henstridge <james@daa.com.au>
16031 * lib/text.c (text_key_event): handle multibyte inserts.
16032 (text_key_event): also add home and end keybindings.
16034 * app/interface.c (create_display_shell): connect handlers for
16035 focus_in_event, focus_out_event, realize and unrealize signals.
16037 * app/display.[ch] (new_display): initialise input context members.
16039 * app/disp_callbacks.[ch]: added XIM support here.
16041 * lib/font.c (suck_font): the black and white pixel values should be
16042 taken from a 1 bit colormap rather than the default colormap.
16044 Hans Breuer's Windows patches ...
16046 * lib/font.c: use Courier New for fixed width font on windows
16049 * lib/dia_image.h: change to "struct _DiaImage".
16051 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
16053 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
16054 mouse button for object menu. This will make two button mouse owners
16057 2000-05-25 James Henstridge <james@daa.com.au>
16059 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
16061 * app/app_procs.c (app_init): add extra NULL argument to call of
16064 * app/load_save.h: remove prototype.
16066 * app/load_save.c: remove diagram_data function here.
16068 * app/diagram.h: added prototype.
16070 * app/diagram.c (diagram_load): new function here, which uses import
16073 * plug-ins/dxf/dxf.c: register the import filter as well.
16075 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
16076 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
16078 * objects/standard/line.c: add start_point and end_point properties
16079 to standard line object.
16081 2000-05-21 James Henstridge <james@daa.com.au>
16083 * app/paginate_psprint.c: added missing include of locale.h.
16085 * objects/custom/custom_object.c (custom_draw): use fabs rather than
16086 abs for scaling factors.
16087 (custom_distance_from): same here.
16089 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
16091 2000-05-18 James Henstridge <james@daa.com.au>
16093 * po/POTFILES.in: updated POTFILES.in.
16095 * dia.spec: incremented version number in spec file.
16097 * NEWS: added (lots of) news items for the 0.85 release.
16099 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
16102 * configure.in: updated version number here.
16104 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
16106 2000-05-17 James Henstridge <james@daa.com.au>
16108 * app/app_procs.c (internal_plugin_init): register the native import
16111 * app/load_save.c (diagram_data_load, diagram_load): split this
16112 function into two -- one that does all the work on the DiagramData
16113 structure, and the other that provides compatibility with the old
16115 (dia_import_filter): use diagram_data_load to define an import
16118 * app/diagram.h (new_diagram): added const to prototype.
16120 * app/filedlg.c (file_open_callback): change to use new import filter
16123 * lib/filter.c: added import filter management functions.
16125 * lib/filter.h: added prototypes for import filter interface.
16127 * app/commands.c (help_about_callback): updated about dialog to
16128 contain a few more names.
16130 2000-05-16 James Henstridge <james@daa.com.au>
16132 * configure.in (Configuration): added a status message to the end of
16133 the configure script to give the user some idea of what was
16136 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
16138 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
16141 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
16144 * configure.in (AM_PATH_LIBART): use the check function provided
16145 with libart rather than our own code. It is more reliable, and
16146 it only requires that people who build out of CVS have libart.m4
16147 installed (not necessarily all of libart).
16148 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
16150 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
16152 * dia.desktop: Added Swedish translation.
16154 2000-05-09 James Henstridge <james@daa.com.au>
16156 * lib/dia_xml.c: you can't free a const pointer, so remove const
16157 from variable definitions.
16159 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
16160 initialised correctly.
16162 * app/render_svg.c (export_svg): set locale to C.
16164 * app/paginate_psprint.c (paginate_psprint): set locale to C.
16166 * app/render_eps.c (export_eps): set locale to C for EPS export.
16168 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
16169 (data_add_point): same here.
16170 (data_add_rectangle): same here.
16171 (data_real): use g_strtod to convert strings to real numbers, so that
16172 locales are taken into account.
16173 (data_point): same here.
16174 (data_rectangle): same here.
16176 * AUTHORS: added Henk and Jacek to authors file.
16178 Daniel Egger's code cleanups.
16180 * app/select.c (select_invert_callback): remove unused variable.
16182 * app/plugin-manager.c (get_plugin_manager): fix typo.
16184 * app/load_save.c (read_connections, write_objects):
16185 (write_connections): made some functions static.
16187 * app/interface.c (toolbox_delete, toolbox_destroy): made some
16190 * app/filedlg.c (file_export_callback): remove unused variable.
16192 * app/app_procs.c: various warning fixes.
16194 Integrating Jacek Pliszka's pstricks export filter.
16196 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
16198 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
16199 renderer (with a few small modifications by me).
16201 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
16203 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
16205 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
16208 * sheets/Makefile.am:
16209 * shapes/Makefile.am:
16210 * shapes/Civil/Makefile.am:
16211 * sheets/civil.sheet:
16213 Added civil/hydraulic/structural engineering objects from
16214 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
16216 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
16218 * objects/FS/flow-poly.c:
16219 * objects/FS/flow.c:
16220 Fix division by zero in point_normalize().
16221 Patch by David Thompson <dcthomp@mail.utexas.edu>
16223 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
16226 * lib/bezier_conn.c:
16227 * lib/connpoint_line.c:
16228 Added checks for zero-length lines before calls to point_normalize.
16230 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16232 * app/preferences.c (prefs_data): Changed
16233 reversed_dragging_intersects to not make the dialog ridiculously
16236 2000-04-22 James Henstridge <james@daa.com.au>
16238 Hans's win32 patches:
16240 * app/export_png.c: include message.h
16241 * app/interface.c: include dia_dirs.h
16242 * app/linewidth_area.c: check for rint
16243 * app/main.c: include interface.h
16244 * app/paginate_psprint.c: remove unused variable.
16245 * app/preferences.c: include message.h
16246 * app/render_svg.c: include stdlib.h
16247 * app/select.c: include object_ops.h
16248 * lib/dia_dirs.c: miscelaneous fixes for win32.
16249 * lib/dia_image.c: include string.h
16250 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16251 * lib/properties.c: include stdlib.h
16252 * lib/properties.h: define extra data for standard properties as
16253 static variables on win32 (to get around dynamic linker problems).
16254 * objects/standard/polygon.c: polygon_create_change missing return
16257 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
16259 * configure.in (ALL_LINGUAS): added Catalan
16261 2000-04-18 James Henstridge <james@daa.com.au>
16263 * objects/standard/bezier.c (bezierline_get_object_menu): add a
16264 separator to the object menu between the add/remove segment items
16265 and the corner type items.
16266 (bezierline_get_object_menu): add code to disable the menu item for
16267 the current corner type. Really just a cosmetic change.
16269 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16270 a NULL for the label or with no associated callback.
16272 * objects/standard/bezier.c (bezierline_menu_items): use the
16273 enumeration values rather than numeric values for the corner types.
16275 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16276 structure, and add code to handle it. Also, don't save the corner
16277 types inline in the bez_points node. The way it is conditionally
16278 including the element just feels like it will break.
16280 * lib/geometry.h (BezPoint): removed the corner_type stuff from
16281 BezPoint. The corner type stuff is a user interface level idea rather
16282 than something required by the renderer, so should be taken care of
16283 at the object level.
16285 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16287 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16288 checks. Weren't able to reproduce original bug, tough.
16290 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
16292 * sheets/Electric.sheet:
16293 * sheets/Contact.sheet:
16294 * sheets/Pneumatic.sheet:
16295 * sheets/Circuit.sheet: sprayed some <br/>'s around.
16296 (added a few French translations in the last file)
16298 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16301 * lib/bezier_conn.h:
16302 * objects/standard/bezier.c:
16303 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16304 bezier points. Only one minor problem known: Menus are active
16305 for endpoints minor handles.
16306 11:28: Save and load now works, too.
16307 (bezierconn_closest_major_handle): 12:03: New function to get the
16308 non-control point handle associated with the nearest control
16310 Also fixed the menu activation problem, and made remove_segment
16311 not remove the endpoint.
16313 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16315 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16318 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
16320 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16321 <sys/stat.h>. OS/2 patch.
16323 2000-04-15 James Henstridge <james@daa.com.au>
16325 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16326 Thompson's patch that adds undo support to the function structure
16329 2000-04-14 James Henstridge <james@daa.com.au>
16331 * objects/custom/custom_object.c (custom_distance_from): new
16332 implementation of distance algorithm that actually takes the
16333 display list into account when calculating the distance. Much nicer
16334 than a simple bounding box.
16336 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
16338 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16340 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16342 * objects/standard/polygon.c: Start of polygons own changes (for
16343 connectionpoints). Need to do seperate changes in polyshape, too,
16344 rather than reuse the bezier changes.
16346 2000-04-13 James Henstridge <james@daa.com.au>
16348 * lib/dia_image.c (dia_image_draw): use the new enumeration values
16349 from after the gdk-pixbuf cleanup.
16351 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16352 on for loop. Last set of coefficients were not beeing calculated,
16353 which caused a bit of breakage.
16355 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16356 functions in geometry.c for calculating the closest segment.
16357 (bezierconn_distance_from): use distance_bez_line_point to calculate
16360 * lib/geometry.c (distance_bez_line_point): new function to calculate
16361 the distance from an open bezier line to a point.
16362 (distance_bez_shape_point): new function to calculate the distance
16363 from a closed bezier shape.
16364 (distance_ellipse_point): new function to calculate the distance from
16365 a filled ellipse to a point.
16367 * lib/geometry.h (BezPoint): moved this structure here from render.h
16369 2000-04-12 James Henstridge <james@daa.com.au>
16371 * lib/geometry.c (distance_bez_seg_point): new function to calculate
16372 the distance from a bezier segment.
16374 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16375 to calculate the distance from the object.
16377 * lib/geometry.c (distance_polygon_point): function for calculating
16378 the distance from a polygon to a point.
16380 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
16383 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
16384 breaks can be inserted in the tool box.
16386 * doc/sheet.dtd: updated the DTD
16387 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16389 2000-04-12 James Henstridge <james@daa.com.au>
16391 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16392 macro if the dialog is a GtkDialog :(
16394 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16396 * objects/standard/polygon.c: Connectionpoints now properly
16397 managed in a GList. As far as I can tell, this will not dieturb
16398 the order (but I have the nagging doubt...)
16400 * lib/polyshape.c: No longer knows about connectionpoints.
16402 2000-04-11 James Henstridge <james@daa.com.au>
16404 * app/Makefile.am: fix makefile for bonobo build.
16406 * configure.in: fix checks for bonobo.
16408 * app/menus.c: added entries for the plugin manager.
16410 * app/Makefile.am (dia_core_files): added plugin manager to files
16413 * app/plugin-manager.[ch]: the plugin manager dialog.
16415 * app/display.c (display_update_menu_state): set the antialiased
16416 menu entry to the correct value.
16418 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
16420 * objects/custom/custom_object.c: not all renderers like ellipses with
16421 negative dimensions. This could cause ellipses to disappear when using
16422 the flip_h and flip_v functions.
16424 * samples/grafcet.dia: fixed speling and correctness.
16426 2000-04-11 James Henstridge <james@daa.com.au>
16428 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16429 exposed the dia_plugin_load and dia_plugin_unload functions.
16431 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16432 already created PluginInfo structure.
16434 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16437 * lib/sheet.c: fix up call to dia_config_filename.
16439 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16440 file. This would save information such as which plugins not to
16441 load during startup.
16443 2000-04-09 James Henstridge <james@daa.com.au>
16445 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16447 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
16449 * lib/plug-ins.c (dia_register_plugins):
16450 Don't free the value returned from g_getenv.
16452 2000-04-09 Anders Carlsson <andersca@gnu.org>
16454 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16456 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16458 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
16459 right to left, select objects that intersect the rubberbanding rectangle
16460 instead of selecting objects that are in the rectangle.
16462 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16464 * lib/diagramdata.h: Likewise.
16467 2000-04-09 James Henstridge <james@daa.com.au>
16469 * lib/plug-ins.[ch]: add copyright messages to files.
16471 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16474 * objects/sybase/sybase.c (dia_plugin_init):
16475 * objects/network/network.c (dia_plugin_init):
16476 * objects/flowchart/flowchart.c (dia_plugin_init):
16477 * objects/custom/custom.c (dia_plugin_init):
16478 * objects/chronogram/chronogram.c (dia_plugin_init):
16479 * objects/UML/uml.c (dia_plugin_init):
16480 * objects/SADT/sadt.c (dia_plugin_init):
16481 * objects/GRAFCET/grafcet.c (dia_plugin_init):
16482 * objects/FS/fs.c (dia_plugin_init):
16483 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16486 * objects/standard/standard.c (dia_plugin_init): change over to new
16489 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16490 the version checker for plugins.
16492 * app/app_procs.c: remove plugin loading code from here, and use
16493 code from plug-ins.[ch]. Also move registration of internal
16494 objects/filters to a `builtin' plugin.
16496 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16498 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16500 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16501 defined variable in EXTRA_DIST.
16503 * app/preferences.h: removed dia_config_filename from header.
16505 * app/preferences.c: removed dia_config_filename function.
16507 * lib/dia_dirs.c (dia_config_filename): moved function over to this
16508 file. Also changed implementation slightly so that it should work
16509 on the win32 port correctly (and use NT home directories).
16511 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16512 it should have been.
16514 * lib/plug-ins.[ch]: new plugin loading code.
16516 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16518 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16520 * lib/polyshape.c: Fix closest segment finding, exposes deeper
16521 bugs in adding corners to 'wraparound' segment.
16523 * objects/standard/polygon.c: Added connection points (fixed so
16524 far), set menu sensitivity.
16526 * lib/polyshape.c: Changed to box-style handles, fixed for start
16527 and ends not being special, added initial connections,
16529 * lib/dummy_dep.h: Added polyshape (gotcha!)
16531 * objects/standard/pixmaps/ellipse.xpm:
16532 * objects/standard/pixmaps/box.xpm:
16533 Filled element pixmaps with white.
16536 * objects/standard/polygon.c:
16538 * objects/standard/standard.c:
16539 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
16540 * lib/Makefile.am (libdia_a_SOURCES):
16542 * app/interface.c (tool_data):
16543 Added Standard/Polygon object and PolyShape lib object. Still
16544 needs inside grab and connection points.
16546 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16549 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16552 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16553 if (argv) outside ifdefs.
16555 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16557 * objects/standard/image.c (image_set_props):
16558 Aspect ratio is back in town.
16560 * app/Makefile.am (dia_LDADD):
16563 Check for gdk_pixbuf (by default disabled, for now)
16565 * app/render_eps.c (draw_image):
16566 * app/render_libart.c (draw_image):
16567 * app/render_gnomeprint.c (draw_image):
16568 Support for alpha mask in rendering. Color postscript, too.
16572 Support for gdk_pixbuf and proper masking for exports.
16574 2000-04-01 Kjartan Maraas <kmaraas@online.no>
16576 * sheets/*.sheets: Updated Norwegian translations.
16578 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16580 * lib/text.c (text_insert_char):
16581 * lib/render_store.c (add_data):
16582 Made realloc double the alloced space rather than add
16583 a fixed amount, to reduce memory stress.
16585 * app/select.c: Added new select method 'Transitive'
16586 that select every reachable (by connections) object.
16588 2000-03-27 Kjartan Maraas <kmaraas@online.no>
16590 * dia.desktop: Added Norwegian translation.
16592 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
16594 * app/render_eps.c:
16595 * app/render_svg.c:
16596 Don't dereference NULL pointer if the renderer
16597 couldn't open the file. Fix by Lars Clausen.
16598 Bug reported by Martin Chisholm <b1mt@unb.ca>
16600 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
16604 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16606 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
16608 * app/dia.gnorba (location_info):
16609 Changed to correct executable name.
16611 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
16614 Don't do any argument parsing or initialization
16617 * app/dia_embedd.c:
16618 Call init_server_factroy before app_init.
16619 Call app_init with argv==NULL
16620 Now we don't get any critical error on startup.
16623 Add Electric and Pneumatic to makefile list.
16625 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
16627 * shapes/Electric/*:
16628 * sheets/Electric.sheet:
16629 Add some Electric circuit shapes.
16631 * shapes/Pneumatic/*:
16632 * sheets/Pneumatic.sheet:
16633 Add some Pneumatic & Hydraulic circuit shapes
16634 (both sheets are still incomplete, though feature enough
16635 things for basic circuits).
16637 * shapes/Contact/l_*.(xpm|shape):
16638 * sheets/Contact.sheet
16639 * shapes/Contact/Makefile.am
16640 made the older electric circuit shapes in Contact obsolete (disabled
16641 them in the sheet, made that sheet Ladder only). Fixed the makefile
16642 for forgotten items.
16644 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
16647 Add support for Dia bonobo component.
16648 Currently a bit raw, so it's commented out.
16650 * app/dia_embedd.c:
16652 New files for embedding dia.
16653 The menu disabling hack is a bit gross. Esp. for GNOME.
16656 Add new function app_is_embedded();
16659 Don't destroy diagram when last display is destroyed if embedded.
16662 Change initialization of display so it works with embedding.
16665 Clarify comment about display destruction.
16667 * app/interface.[ch]:
16668 Added top_level_window argument to create_display_shell.
16669 Don't open a top-level window if embedding.
16670 Don't quit app if trying to close toolbox window when embedding.
16671 Add toolbox_show() and toolbox_hide().
16674 Added app_is_embedded() function (just returns false).
16675 Added toolbox_show() call in main().
16678 Added code for getting toolbox menus. This is used to
16679 hide some menu items when running embedded.
16682 Include sheet.h to remove warning.
16684 * objects/UML/association.c:
16685 Clarify association direction text.
16687 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
16690 Fixed man page so whatis parsing works.
16692 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
16694 * app/render_libart.c (new_libart_renderer):
16695 Fix from segg <segg@infonet.ca> to compile without libart.
16696 I forgot to change the stub for new_libart_renderer when doing
16697 the interactive renderer stuff for libart.
16699 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
16701 * dia.desktop: Added Irish translation.
16703 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16705 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
16707 * app/load_save.c (fchmod): OS/2 defines only.
16709 2000-03-07 James Henstridge <james@daa.com.au>
16711 * lib/properties.c (prop_get_widget): set the position in the option
16714 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
16717 * app/export_png.c:
16718 * app/render_libart.[ch]:
16719 Don't export png:s with an interactive libart renderer.
16721 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
16723 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
16725 2000-03-02 James Henstridge <james@daa.com.au>
16727 * dia.spec (%build): unset LINGUAS before running configure. This
16728 ensures that all translations get included in the RPM.
16730 * lib/properties.c (object_create_props_dialog): put in a check for
16731 a NULL return from the describe_props() object method.
16732 (prop_desc_lists_union): make sure that the returned array is not
16734 (prop_desc_lists_intersection): same here.
16736 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
16738 * objects/ER/Makefile.am:
16739 * objects/FS/Makefile.am:
16740 * objects/UML/Makefile.am:
16741 Don't link object libs with gtk.
16743 2000-02-29 James Henstridge <james@daa.com.au>
16745 * app/preferences.c (prefs_save): check to see if the file could
16746 be opened before writing the prefs.
16748 * app/disp_callbacks.c (popup_object_menu): pass the button event
16749 to gtk_menu_popup. This allows you to click and release to open
16751 (ddisplay_canvas_events): same here.
16752 (create_object_menu): set the object type menu item in the object
16753 menu to be insensitive.
16755 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16756 as we are now requiring a new version of libxml.
16758 * dia.spec: updated version number. Added requirement for
16761 * configure.in: incremented version number to 0.84.
16762 Added check for libxml >= 1.8.5. This will prevent some of the
16763 problems people have had with broken libxml versions.
16765 * NEWS: added news items.
16767 * app/interface.c (create_color_area): removed call to realize parent
16768 widget. Segg <segg@infonet.ca> reported that it caused a warning,
16769 but I haven't seen it on my copy of dia.
16771 2000-02-28 James Henstridge <james@daa.com.au>
16773 * app/export_png.c: added copyright notice, and made the band height
16776 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
16778 * lib/font.c (suck_font):
16779 Fixed off-by one bug in font pixmap height.
16780 Fixes the problem with garbage at the bottom of some text in aa mode
16781 and in png exported files.
16783 2000-02-27 James Henstridge <james@daa.com.au>
16785 * app/app_procs.c: add the png export filter if it was compiled in.
16787 * app/export_png.c (export_png): new PNG export filter. This requires
16788 the libart renderer to work as it needs a renderer that renders to a
16791 * configure.in: add check for libpng.
16793 * lib/message.c (message_internal): use a GNOME dialog here as well.
16795 * app/display.c (ddisplay_close): use a GNOME dialog here.
16797 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16798 when exporting to EPS. This is because some people said the EPS
16799 output was too large
16801 2000-02-26 James Henstridge <james@daa.com.au>
16803 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16806 * app/app_procs.c (app_exit): use a GNOME dialog here.
16808 * app/preferences.c (prefs_create_dialog): if GNOME support is
16809 enabled, show a GNOME dialog.
16811 * app/grid.c (grid_draw): use preferences when drawing page break
16814 * app/preferences.c: add page break preferences to dialog.
16816 * app/preferences.h: added page break preferences.
16818 2000-02-25 James Henstridge <james@daa.com.au>
16820 * sheets/UML.sheet: added new objects.
16822 * objects/UML/uml.c: link in the two new objects.
16824 * objects/UML/node.c:
16825 * objects/UML/branch.c: new UML objects from Stfan Seefeld
16826 <seefelds@magellan.umontreal.ca>.
16828 2000-02-24 James Henstridge <james@daa.com.au>
16830 * objects/custom/custom_object.c: converted to use the properties
16831 interface. In the future, it would be nice to add support for
16832 defining custom properties for custom objects, but that can wait.
16834 2000-02-22 James Henstridge <james@daa.com.au>
16836 * sheets/Circuit.sheet: added new circuit shapes to sheet.
16838 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16839 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
16840 and adds a few new features.
16842 2000-02-21 Daniel Egger <egger@suse.de>
16844 * sheets/*.sheets: Added German translations and made some
16845 corrections to the others.
16847 2000-02-21 James Henstridge <james@daa.com.au>
16849 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16851 * shapes/Circuit/...: added new shapes from Erik Janssens.
16853 2000-02-20 James Henstridge <james@daa.com.au>
16855 * app/interface.c (create_color_area): realize the parent window
16858 * objects/standard/image.c: properties patch for standard image
16859 object, from Lars Clausen.
16861 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16863 * lib/properties.h (PropType): added file property type.
16865 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16868 * app/interface.c: use wrap box for toolbox.
16870 * app/Makefile.am: added new files.
16872 * app/gtk*wrapbox.[ch]: added wrap box widget.
16874 2000-02-19 James Henstridge <james@daa.com.au>
16876 * sheets/network.sheet: added extra shapes to networks sheet.
16878 * configure.in (AC_OUTPUT): added shapes/network/Makefile
16880 * shapes/network/*: added shapes that were posted to the list a while
16883 * shapes/Makefile.am (SUBDIRS): added network subdirectory
16885 * app/menus.c (toolbox_menu_items): don't right justify help menu for
16886 gtk+ version of menus.
16888 * app/properties.c (create_dialog): use a GnomeDialog if we happen
16891 2000-02-18 James Henstridge <james@daa.com.au>
16893 * objects/flowchart/box.c: set extra data for corner radius and text
16894 padding properties.
16896 * objects/standard/box.c: set extra data for corner radius property.
16898 * lib/properties.h: set extra data in some standard properties.
16900 * lib/properties.c (prop_get_widget): look at the extra data for
16901 int, real and enum property types. They now use GtkSpinButton and
16902 GtkOptionMenu respectively.
16904 * lib/properties.h: extra data members for creating property setting
16907 2000-02-17 James Henstridge <james@daa.com.au>
16909 * objects/flowchart/box.c: reverted load/save functions back to
16910 previous implementations. Made box use standard property names.
16912 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
16914 * app/grid.c: add more digits to the grid edit dialog. This patch
16915 was also from Lars Clausen.
16917 * objects/standard/zigzagline.c:
16918 * objects/standard/textobj.c:
16919 * objects/standard/polyline.c:
16920 * objects/standard/line.c:
16921 * objects/standard/ellipse.c:
16922 * objects/standard/box.c:
16923 * objects/standard/bezier.c:
16924 * objects/standard/arc.c: patches to add properties code to standard
16925 objects. Based on patches from Lars Clausen. I have also removed
16926 some dead code from the files.
16928 * lib/properties.h (PROP_STD_*): define a number of standard
16929 properties. Where appropriate, objects should include these
16930 properties in their PropDescription list. This way, the intersection
16931 of properties of two different shapes will be greater.
16933 2000-02-14 James Henstridge <james@daa.com.au>
16935 * objects/flowchart/box.c (box_load, box_save): use property save
16936 routines. Make sure that any props not handled by object_load_props
16937 are loaded before calling object_load_props, or we get errors because
16938 update_data is called.
16940 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
16941 error that could cause properties to be loaded incorrectly.
16942 (object_set_props_from_offsets): similar here.
16944 * lib/properties.[ch] (prop_{load,save}): functions for loading
16945 or saving a property in Dia's XML file format.
16946 (object_{load,save}_props): load or save some properties of an
16947 object. These functions should help simplify the load/save methods
16948 of objects that implement the properties interface.
16950 2000-02-13 James Henstridge <james@daa.com.au>
16952 * objects/flowchart/box.c: use offset code to simplify property
16955 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
16957 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
16959 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
16961 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
16963 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
16966 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
16969 Add the custom object to DIA_LIB_PATH in run_dia.sh
16971 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
16973 * sheets/Circuit.sheet:
16974 * shapes/l_sout* (NEW):
16975 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
16976 variants of simple, inverted, set and reset outputs.
16977 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
16978 probably a split of Contact and Ladder sheets. And then a major
16979 revamping of the Contact sheet.
16981 2000-02-10 James Henstridge <james@daa.com.au>
16983 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
16985 * app/app_procs.c (register_all_objects): don't explicitely
16986 register the custom objects library -- let it be loaded by the
16987 normal plugin loading methods.
16989 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
16991 * objects/custom/Makefile.am: build libcustom_objects as a shared
16994 * objects/custom/shape_info.[ch]: don't read the description field
16995 of custom shapes. It makes more sense to have these in the sheet
16996 file to localise the parts of dia that translators have to deal
16999 * objects/custom/custom_object.c (custom_object_new): do not
17000 create the sheet object for the new custom shape -- this is
17001 handled by the custom sheet code.
17003 * objects/custom/custom.c: change over to being a normal plug-in
17004 rather than being linked with the main dia executable.
17006 2000-02-09 James Henstridge <james@daa.com.au>
17008 * sheets/Circuit.sheet:
17009 * sheets/Flowchart.sheet:
17010 * sheets/Contact.sheet: fixed up sheets.
17012 * objects/custom/custom_object.c (custom_object_new): set the
17013 extra ObjectType fields.
17015 * lib/sheet.c: use extra ObjectType fields when creating sheet
17016 objects. Give a warning if <shape> tags are found in a sheet
17017 file. Now the custom sheet code does not know about custom
17018 shapes -- they look like any other object type.
17020 * lib/object.h (ObjectType): added extra members
17022 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
17024 * app/linewidth_area.c:
17025 Added code to set arbitrary line width.
17026 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
17028 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
17030 * app/linewidth_area.c:
17032 Add support for font-sucking.
17033 Implementation borrowed from gnome-canvas.
17035 * app/render_libart.[ch]:
17036 Implement text rendering.
17038 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
17040 * app/properties.c (create_dialog):
17041 ref and sink no_properties_dialog.
17043 2000-02-07 James Henstridge <james@daa.com.au>
17045 * app/group.c (group_describe_props): new function. Return the
17046 intersection of the properties of the contained objects that
17047 implement the describe_props interface.
17048 (group_get_props): implement by iterating through contained objects
17049 and calling their get_props method until all properties have been
17050 set. Maybe this should go through all objects all the time??
17051 (group_set_props): implement by calling set_props method on all
17053 (group_ops): use standard props dialog creation routines.
17055 * lib/properties.c (prop_desc_lists_intersection): fix implementation
17056 of intersection -- I was using i++ instead of i-- in a for loop :(
17058 * objects/custom/custom.c (custom_register_objects): fix usage
17059 of dia_get_data_directory again.
17061 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
17062 actually read the sheets.
17064 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
17066 Win32 port by Hans Breuer <Hans@Breuer.org>
17069 Remove DATADIR and LIBDIR defines.
17072 Add dia_dirs.c and dia_dirs.h
17073 Added DATADIR and LIBDIR defines.
17075 * lib/dia_dirs.[ch]:
17076 New files for handling special directories.
17081 * objects/custom/custom.c:
17082 Fix warnings. Use directory functions.
17085 Add prototype for diagram_redraw_all.
17087 * app/diaunitspinner.c:
17090 * app/preferences.c:
17094 Win32 doesn't have mkstemp and fchmod.
17096 * app/paginate_psprint.c:
17097 Win32 calls popen _popen and pclose _pclose.
17100 Win32 calls finite _finite.
17103 Win32 needs to dllexport the color vars.
17105 * objects/GRAFCET/step.c:
17106 * objects/chronogram/chronoref.c:
17107 snprintf -> g_snprintf
17109 2000-02-05 James Henstridge <james@daa.com.au>
17111 * lib/properties.c: more fixes so that it doesn't crash when using
17112 properties. The undo/redo stuff also works!!
17114 * objects/flowchart/box.c (box_{describe, get, set}_props): test
17115 object where I have implemented the new properties interface
17116 complete with automatic properties dialog generation.
17118 * lib/properties.c (object_apply_props): fixed stupid error when
17119 creating the old_props array. Also, it no longer frees the props
17120 array -- you will have to do that yourself.
17122 2000-02-04 James Henstridge <james@daa.com.au>
17124 * app/properties.c (properties_apply): pass object_part to
17127 * lib/object.h (ApplyPropertiesFunc): added widget argument.
17129 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
17130 created this way as well.
17132 * objects/*/*.c: ref and sink the properties dialog window for each
17133 widget. It can't rely on ref count being incremented by
17134 properties_show anymore.
17136 * app/properties.c (properties_show): don't ref the widget before
17137 removing it, or its ref count will increase each time you open the
17138 properties dialog. Don't unparent the widget, as container_remove
17141 * lib/object.h: fixed up prototypes for new object methods.
17143 * lib/properties.[ch]: added functions for automatically creating
17144 a properties dialog from the output of describe_props, get_props and
17146 (object_apply_props): apply properties and return an ObjectChange
17147 structure that can be used for undo.
17149 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
17151 * objects/GRAFCET/transition.c: minor leak plugged.
17153 * sheets/GRAFCET.sheet:
17154 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
17155 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
17157 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
17158 new ones (for condition.c).
17159 * objects/GRAFCET/action.c: added connection points for the conditions.
17160 * samples/grafcet.dia: updated the sample to improve conformance to
17161 IEC 848 and take advantage of dia's new features.
17163 * lib/geometry.h: (point_get_normed) fixed a typo.
17165 2000-02-02 James Henstridge <james@daa.com.au>
17167 * lib/object.h: added object functions describe_props, get_props and
17168 set_props. Do type definitions so that object.h doesn't need to
17169 include properties.h, since properties.h includes object.h.
17171 * lib/properties.[ch]: more hacking.
17173 * po/de.po: updated po file.
17175 2000-01-30 James Henstridge <james@daa.com.au>
17177 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
17178 check to see if the C compiler accepts the flag beforehand.
17180 * lib/properties.[ch]: start of properties code.
17182 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
17184 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
17186 * sheets/GRAFCET.sheet:
17187 * sheets/GRAFCET/etapemc.xpm: (NEW)
17188 * sheets/GRAFCET/etapesp.xpm: (NEW)
17189 * objects/GRAFCET/step.c: Added the macro and
17190 sub-program call step types.
17192 * objects/GRAFCET/receptivity.[ch]: renamed to
17193 objects/GRAFCET/boolequation.[ch].
17194 * objects/GRAFCET/transition.c: changed (Receptivity *) to
17197 * lib/connpoint_line.[ch]:
17198 * objects/chronogram/chronoline.c:
17199 * objects/chronogram/chronoref.c:
17200 * objects/GRAFCET/vergent.c:
17201 * objects/standard/line.c:
17202 * objects/SADT/box.c: Minor CPL interface changes, factored out the
17203 point count adjustment code into the CPL object.
17205 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
17207 * app/render_libart.c:
17208 Added support for images and bezier curves.
17209 Only text/fonts missing now.
17211 * app/render_gdk.c:
17212 Removed old erronous comment.
17214 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
17216 * objects/chronogram/chronoline_event.c: removed references to
17217 lround(). Please don't insist, I'm already red of shame.
17219 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
17221 * app/render_libart.[ch]:
17223 Non-finished libart renderer.
17226 Added HAVE_LIBART flag
17232 Call gdk_rbg_init().
17234 * app/connectionpoint_ops.c:
17235 * app/disp_callbacks.c:
17237 * app/handle_ops.c:
17239 * app/modify_tool.c:
17240 Change ddisp->renderer type from RendererGdk * to Renderer *
17241 Draw zoom and select rects in ddisp->canvas->window instead
17242 of ddisp->renderer->renderer->pixmap.
17244 * app/display.[ch]:
17245 Add aa_renderer to DDisplay, and support for it.
17246 New function ddisplay_set_renderer() for changing renderer.
17247 Add ddisplay_transform_coords_double() function, used by aa renderer.
17248 Change ddisp->renderer type from RendererGdk * to Renderer *
17251 Add antialias to menu.
17253 * app/commands.[ch]:
17254 add view_aa_callback function
17255 Change ddisp->renderer type from RendererGdk * to Renderer *
17257 * lib/geometry.[ch]:
17258 Added IntRectangle and int_rectangle_union.
17260 2000-01-28 James Henstridge <james@daa.com.au>
17262 * app/commands.h: removed prototypes.
17264 * app/commands.c: removed the functions that have been moved to
17267 * app/filedlg.h: added new prototypes.
17269 * app/filedlg.c (file_open_callback): move open dialog to this
17270 file. This implementation should remember the current directory
17271 between file loads.
17272 (file_save_as_callback): moved this dialog as well.
17273 (file_save_callback): moved this function here.
17275 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17276 align page boundaries to the origin.
17278 * app/diagram.c (diagram_update_extents): redraw the diagram if the
17279 scaling factor changes while updating the extents. This is so the
17280 page breaks get redrawn correctly.
17282 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17285 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17286 For normal mode, use (0,0) as the origin. For `fit to' mode, use
17287 the corner of the bounding box.
17289 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17290 into page setup dialog.
17291 (pagesetup_apply): apply new `fit to' attributes to the diagram.
17293 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17294 (diagram_data_save): save `fit to' data.
17296 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17297 (data_update_extents): when in `fit to' mode, update scale factor
17298 when we update the extents.
17300 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17303 * .../.cvsignore: added some cvsignore files to quieten cvs.
17305 * app/pagesetup.c (pagesetup_changed): added code to change the
17306 scaling/fit to values as you change the options in the page setup
17307 dialog. I haven't added code so that the fit to options are saved
17310 * app/diapagelayout.[ch]: changed the scaling portion of the widget
17311 to make it easier to set a `fit to' style scaling factor.
17313 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17314 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17315 but connpoint_line-based, so that there's a connection point at the
17316 middle of each segment. Currently only the SADT arrow uses this.
17318 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17320 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17321 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
17322 saving and editing of properties (and default properties).
17323 See the new objects (GRAFCET, SADT, chonograms) for examples.
17324 For already too hairy stuff, see objects/chronogram/chronoline.c.
17326 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
17327 evenly spaced connection points, which the user can add or remove at
17328 will. An object can own several connection point lines. See the SADT
17329 Box, or the GRAFCET vergents for examples.
17331 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
17332 quiet about unused stuff.
17334 * objects/GRAFCET (NEW):
17335 * samples/grafcet.dia (NEW):
17336 Added support for GRAFCET charts.
17338 * objects/chronogram (NEW):
17339 * samples/chronograms.dia (NEW):
17340 Added support for chronograms (feature requested by Ronald L. Chichest;
17341 I found I'd use it often, too).
17343 * objects/standard/line.c: Replace the middle connectionpoint by
17344 a whole connection point line, which defaults to one point (hint,
17345 hint). New Line object menu to take advantage of this.
17346 "Bothwards" compatibility is preserved (although you may loose
17347 connections if you load a newer file in a older dia).
17349 * app/lineprops_area.c:
17351 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
17352 (feature requested by Benjamin Kahn).
17353 Merged in Steffen Macke's slashed arrow head type.
17355 * app/Makefile.am (app/run_dia.sh actually):
17356 Added $DEBUGGER in front of dia's invocation, so that
17357 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17358 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
17359 "EFENCE=-lefence" to link with Electric Fence.
17361 * configure.in: Made gcc do more aggressive optimisations on i386, and
17364 2000-01-24 James Henstridge <james@daa.com.au>
17366 * lib/geometry.[ch]: added inline versions of functions. Used
17367 glib's G_INLINE_FUNC stuff, so it should still work on systems
17368 without inline funcs.
17370 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17371 it outputs the correct element id for the ellipse objects.
17373 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17375 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17376 object_add_handle_at. Message typo fixed.
17378 * lib/sheet.c (load_register_sheet):
17379 potential bug fixed (warning hunt).
17381 * objects/custom/custom.c (custom_object_load): disabled an assertion
17382 which made dia abort upon failure to load a shape file. Fixed a
17385 * objects/custom/shape_info.c (load_shape_info): Made the custom
17386 shape load code ignore XML comments between <?xml ...?> and the
17387 root object (mostly useful to put the emacs magic comments).
17389 * app/load_save.c: Made dia do backup copies of files when saving,
17390 and complain in case of failure.
17392 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17394 * AUTHORS: fixed my address (ISP thought it was a great idea to change
17399 * shapes/Contact/*:
17400 * sheets/Contact.sheet:
17401 * sheets/Makefile.am:
17402 Added support for Contact and LADDER charts.
17404 * dia.desktop: Added a French translation.
17406 2000-01-23 James Henstridge <james@daa.com.au>
17408 * app/commands.c (help_about_callback): don't die if can't load
17411 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17412 out NaN's when performing bezier curve subdivision.
17414 * objects/custom/custom_object.c: initialise memory of Custom structs
17417 * app/render_svg.c (draw_image): added image support to the XML
17418 output filter. The image is just referenced, rather than being
17419 included inline, so if you copy the SVG file somewhere else, you
17420 may need to move the images or fix up the links.
17422 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17423 so the text is not just displayed in black all the time.
17425 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
17427 * configure.in: fixed libpopt test so we wont try to build with
17430 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
17432 * configure.in: Added "uk" to ALL_LINGUAS.
17434 1999-12-24 James Henstridge <james@daa.com.au>
17436 * po/ru.po: updated russian translation from Valek Filippov.
17438 * app/render_svg.c (new_svg_renderer): make output use 19991203
17439 version of SVG DTD. Use viewBox to set the extents of the view.
17441 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
17442 ftp.gnome.org as the download.
17444 * TODO (TODO): weeded out completed todo items and added a few extra.
17446 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17448 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
17449 be good to get rid of the object/shape distinction and separate
17450 the custom shape code out from the main application.
17452 * objects/custom/README, diagram.dtd: moved to new doc directory.
17453 Renamed the custom shapes README to custom-shapes. Also updated
17454 custom shape docs a bit and removed the section on sheet files, as
17455 that has changed a bit.
17457 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17458 of the image data is larger than the maximum cell array. I should
17459 add code to break scan lines down further in this case, but for now
17460 an error message is better than an infinite loop.
17462 * app/filedlg.c (file_export_ok_callback): show a dialog if we
17463 couldn't determine the export filter to use.
17465 * app/commands.c (help_about_callback): fixed up about box logo
17466 expose bug. Now just use a GtkPixmap widget rather than a
17467 GtkDrawingArea and calling gdk_imlib_paste_image.
17469 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17470 because automake does not always get things right.
17472 * configure.in: updated version number to 0.83.
17474 * app/preferences.c (prefs_save):
17475 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17476 for fopen. Text is the default file mode anyway.
17478 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
17479 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
17480 * app/load_save.c (write_objects, write_connections):
17481 * app/filedlg.c (file_export_ok_callback):
17482 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
17483 * lib/dia_xml.c (data_add_point, data_add_rectangle):
17484 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17485 snprintf to calls to g_snprintf.
17487 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17488 as the picture name.
17490 1999-12-23 James Henstridge <james@daa.com.au>
17492 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17493 negative numbers. This fixes the upside down text problem I was
17495 (draw_image): implemented the image code. It will try to split the
17496 image data up into bands if it is too big to fit into a single
17497 cgm cell array element. It will have problems if you try to insert
17498 an image wider than about 10,000 pixels though.
17500 * Makefile.am: use gnomedatadir for the files that need to be
17501 installed in gnome's datadir. This is mainly to help people doing
17502 packages for weird setups.
17504 1999-12-22 James Henstridge <james@daa.com.au>
17506 * plug-ins/cgm/cgm.c: added support for text. Now only images and
17507 beziers are left to do. The text seems to be the wrong way up
17508 still. This is probably a problem with character orientation
17509 element, but I have used what the settings given in the standard.
17510 Other than this, the CGMs dia produces are readable (and displayable)
17511 by ralcgm and corel draw.
17512 (draw_string): subtract from the X coord rather than the Y coord for
17513 center and right aligned text.
17515 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
17516 the size of a real number, and changed name of write_double to
17517 write_real. Consider changing to fixed real encoding. Also, now
17518 all element headers are correct. Once the real number encoding is
17519 fixed, only text, beziers and images are left to do.
17521 1999-12-21 James Henstridge <james@daa.com.au>
17523 * Makefile.am (SUBDIRS): recurse into plug-ins.
17525 * configure.in: add plug-ins directory makefiles to list.
17527 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
17528 not done yet. Also, the output files are not quite correct.
17530 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17531 font. It doesn't work if you do.
17533 1999-12-20 James Henstridge <james@daa.com.au>
17535 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17536 export the files. Instead, use filter_guess_export_filter to
17537 guess the correct format to save in and use the appropriate filter.
17538 It defaults to postscript for compatibility.
17540 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17543 * app/commands.[ch]: removed export to eps functions.
17545 * app/menus.c: removed export to eps menu items.
17547 * app/app_procs.c: register new export filters.
17549 * app/load_save.[ch]: define dia native export filter.
17551 * app/render_eps.[ch]: define eps export filter.
17553 * lib/filter.h: added diafilename argument to the DiaExportFunc
17554 prototype. This is useful for putting the source of the diagram
17555 into the output file for instance.
17557 * app/app_procs.c (app_init): register the SVG export filter. Have
17558 to get EPS code converted to this API, and maybe also allow saving in
17559 DIA's native format from the export dialog. In fact, it is now
17560 possible to load an export filter from a shared library and it will
17561 integrate into the interface correctly.
17563 * app/menus.c: removed references to the SVG renderer.
17565 * app/commands.[ch]: removed svg stuff.
17567 * app/diagram.[ch]: removed diagram_export_to_svg function.
17569 * app/render_svg.[ch]: added a DiaExportFilter structure for this
17572 * app/filedlg.[ch]: code for the new export diagram dialog. Will
17573 probably move the open/save dialogs to this file as well.
17575 1999-12-19 James Henstridge <james@daa.com.au>
17577 * lib/filter.[ch]: start of interface for generalised handling of
17578 filters. I have only done code for export filters so far. I still
17579 need to do the gui for this, and convert the current SVG and EPS
17580 filters to the new API.
17582 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
17583 weren't setting the last handle correctly. It was actually assigning
17584 to the wrong position in the handles array, so the last handle was
17585 left as NULL, which caused the segfault.
17587 * objects/standard/image.c (image_copy): modified routine so that
17588 it just adds a reference to the DiaImage structure in the new image
17589 object. This seems to have cleared up the problems with copying
17592 * dia.spec: spec file additions from John Gotts.
17594 1999-12-12 James Henstridge <james@daa.com.au>
17596 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
17597 has not been released yet though.
17599 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17602 The following based on a patch from Lars Clausen:
17604 * objects/standard/bezier.c (bezierline_move_handle): when performing
17605 the initial drag of the bezierline, move the control points to keep
17608 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17609 make the new control points a bit closer to the major point.
17611 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17612 as the reason for the move.
17613 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17616 * lib/handle.h: new handle move reasons.
17618 1999-12-09 James Henstridge <james@daa.com.au>
17620 * dia.spec: include the new files in RPMs.
17622 * Makefile.am: install these new files.
17624 * dia.keys.in: file describing actions and icon for dia diagrams for
17625 use in the gnome file manager.
17627 * dia.mime: a file defining the application/x-dia-diagram mime type.
17629 * dia-diagram.png: an icon for dia diagrams.
17631 1999-12-08 James Henstridge <james@daa.com.au>
17633 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17635 * plug-ins/python/pydia-display.[ch]: wrapper for display.
17637 * objects/standard/ellipse.c: applied Lars's patch to optionally not
17638 draw the background of the ellipse.
17640 * app/load_save.c (read_connections): do some sanity checking on the
17641 handle and connection point numbers before performing the object
17644 * lib/bezier_conn.c (bezierconn_load): give the correct number of
17645 handles when loading a BezierConn.
17647 1999-12-07 Kjartan Maraas <kmaraas@online.no>
17649 * sheets/*.sheet: Finished Norwegian translations.
17651 1999-12-07 James Henstridge <james@daa.com.au>
17653 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17654 (PyDia_GetObjectType): find object type function.
17656 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17657 method for diagrams.
17659 * plug-ins/python/pydia-object.c: added methods for DiaObject and
17662 * AUTHORS: added Lars and Cyrille to the authors file.
17664 * objects/standard/bezier.c (bezierline_add_segment_callback): place
17665 new point correctly.
17667 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17669 * lib/bezier_conn.c: applied Lars's patch for placement of the new
17670 point when adding a segment to a BezierConn.
17672 1999-12-06 James Henstridge <james@daa.com.au>
17674 * plug-ins/python/test.py: test script for the python plug-in.
17676 * plug-ins/python/python.c: this file contains the plug-in startup
17677 code for the python plugin. Right now, it just initialises the
17678 dia module and executes a script.
17680 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17682 * objects/standard/bezier.c (bezierline_draw): draw control lines for
17683 bezier curve if we are using an interactive renderer (ie. only if
17684 displaying to the screen).
17686 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17687 to draw control lines on to a bezier curve. Based on implementation
17690 * objects/standard/bezier.c (bezierline_delete_segment_callback):
17691 calculate segment number using closest_segment rather than
17692 closest_handle. Sometimes the closest handle is part of a different
17694 (bezierline_draw): use correct size for start arrow.
17696 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17697 * lib/geometry.c (distance_line_point): added notes to documentation
17699 * app/object_ops.c (object_list_align_v):
17700 (object_list_align_h): fix of by one error when calculating free space
17701 for equal distance alignment.
17702 * app/menus.c (objects_align_h, objects_align_v): include align
17703 adjacent menu items in the gnome version of the menus.
17704 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17705 align adjacent menu items correctly.
17708 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17711 * objects/standard/bezier.c: converted bezierline to use BezierConn.
17712 Still a few bugs. It crashes on deleting line segments.
17714 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17716 1999-12-05 James Henstridge <james@daa.com.au>
17718 * lib/bezier_conn.[ch]: start of BezierConn object
17720 * app/interface.c: add bezierline to toolbox.
17722 * objects/standard/standard.c: initialise bezierline.
17724 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
17725 made a few modifications to get it working nicely. It still needs
17726 a bit of work though. Maybe create a BezierConn object in lib.
17728 1999-12-02 James Henstridge <james@daa.com.au>
17730 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17732 * plug-ins/python/Makefile.am: tried building everything. It is
17733 building as a library at the moment. I will have to convert it
17734 to a libtool library and add some initialisation code.
17736 * plug-ins/python/diamodule.c: start of the dia module, using the
17737 other object wrappers. Not complete.
17739 1999-12-01 James Henstridge <james@daa.com.au>
17741 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17742 the handles and connections attributes.
17744 * plug-ins/python/pydia-layer.c: added functions that use
17747 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17749 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17751 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17752 I am currently wrapping the basic elements in the diagram in python
17753 objects -- nothing to see or play with yet.
17755 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
17759 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17761 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
17765 Added russian translation from Valek Filippov <frob@df.ru>
17767 1999-11-24 James Henstridge <james@daa.com.au>
17770 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17771 discussed with Alex. Also added extra makefiles so that make install
17774 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
17776 * app/preferences.[ch]:
17778 Added snap to grid preference.
17779 Patch from Michael Leslie <mles@springboardwireless.com>
17781 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17787 * objects/custom/shape_info.c:
17788 All strings returned by libxml must be freed with free, not
17789 g_free, or there will be problems if you use memory debugging
17792 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17794 * app/create_object.[ch]:
17797 * app/commands.[ch]:
17799 * app/interface.[ch]:
17800 Reverted the tool menu patch. It has some 'issues'.
17801 I liked it though, so it'll probably return.
17803 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17805 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17806 <bruce@cybersight.com> for some purify runs and analysis.
17807 Also a great thank you to Owen Taylor for creating MemProf, a
17808 free memory leak detector that was used to find and verify a
17809 lot of these fixes.
17812 * app/paginate_psprint.c:
17813 * app/render_eps.[ch]:
17814 * app/render_svg.[ch]:
17818 Don't add a reference to ddisp->shell. Why was this done in
17825 Free all strings returned from xmlGetProp
17827 * app/modify_tool.c:
17830 * objects/custom/custom.c:
17831 Use closedir() after opendir().
17833 * objects/custom/shape_info.c:
17834 User g_free() instead of "if (tmp) free(tmp)".
17837 Add newline at end of file.
17840 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
17842 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17843 Adds tool menu and keyboard shortcuts.
17845 * app/create_object.[ch]:
17846 Use tool_set() instead of tool_reset().
17847 create_create_object_tool() takes extra type argument
17853 Moved tool_data here, export it.
17854 Add separate tool type for all create objects tools.
17855 new functions tool_set().
17858 New callback tool_set_callback.
17861 Moved some pixmaps to interface.c.
17864 Remove tool_data array (moved to tool.c).
17865 Use the tool_data from tool.c.
17866 Remove modify_tool_button global var.
17868 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
17870 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17873 Interprets command-line arguments as files to open even when
17874 HAVE_POPT is not defined.
17877 Shift-clicking when zooming zooms out, like the Gimp.
17880 Has hotkeys for zoom-100% and snap-to-grid.
17882 1999-11-17 James Henstridge <james@daa.com.au>
17884 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17885 that it is not jumpy.
17887 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
17889 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
17890 scrolling by pressing the shift key when using the scroll tool.
17892 * sheets/Makefile.am: fixed makefile so that install actually works
17893 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
17895 (SHEETS): install Circuit.sheet
17897 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
17898 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17900 * sheets/Circuit.sheet:
17903 * sheets/Flowchart.sheet:
17904 * sheets/UML.sheet:
17905 * sheets/network.sheet:
17906 * sheets/sybase.sheet:
17909 * sheets/Circuit.sheet:
17910 added some missing French translations
17913 killed the temporary sheet namespace
17915 * objects/custom/custom.c:
17916 obsolete comment cleaned up
17918 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
17922 Added portugese translation from Pedro Morais
17923 <pmmm@rnl.ist.utl.pt>
17925 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
17927 Changed all sheets to be specified in xml.
17928 All sheet objects removed from the C code.
17929 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17934 Updated version to 0.81cvs.
17937 Update run_dia.sh with sheet-dir.
17940 Load all sheets on startup.
17941 Create sheet directory first time.
17942 Don't call custom_register_sheets().
17945 Add sheetdir define
17948 Remove custom_register_sheets().
17951 Add sheet loading code.
17953 * sheet/Circuit.sheet:
17956 * sheet/Flowchart.sheet:
17958 * sheet/network.sheet:
17959 * sheet/sybase.sheet:
17962 * sheet/ER/weakentity.xpm:
17963 * sheet/UML/aggregation.xpm
17964 * sheet/UML/umlclass_template.xpm
17965 Added sheet pixmaps.
17966 These are moved from their old places.
17968 * sheet/.cvsignore:
17972 Removed sheet objects and sheet registration.
17974 * objects/ER/Makefile.am:
17975 * objects/ER/pixmaps/weakentity.xpm:
17976 * objects/UML/Makefile.am:
17977 * objects/UML/pixmaps/aggregation.xpm:
17978 * objects/UML/pixmaps/umlclass_template.xpm:
17979 Removed alternative pixmaps. (Moved to sheet).
17981 * objects/custom/Makefile.am:
17982 * objects/custom/load_sheet.[ch]:
17983 Removed old sheet loading code.
17985 * objects/custom/custom.c:
17986 Load all shapes instead of sheets.
17987 Removed custom_register_sheets().
17989 * objects/custom/custom_object.c:
17992 * objects/custom/shape_info.[ch]:
17993 Added shape_info_getbyname().
17995 * objects/flowchart/Makefile.am:
17996 * objects/flowchart/collate.shape
17997 * objects/flowchart/delay.shape
17998 * objects/flowchart/display.shape
17999 * objects/flowchart/document.shape
18000 * objects/flowchart/extract.shape
18001 * objects/flowchart/flowchart.c
18002 * objects/flowchart/intstorage.shape
18003 * objects/flowchart/magdisk.shape
18004 * objects/flowchart/magdrum.shape
18005 * objects/flowchart/magtape.shape
18006 * objects/flowchart/manualinput.shape
18007 * objects/flowchart/manualop.shape
18008 * objects/flowchart/merge.shape
18009 * objects/flowchart/offlinestore.shape
18010 * objects/flowchart/offpageconn.shape
18011 * objects/flowchart/or.shape
18012 * objects/flowchart/predefdproc.shape
18013 * objects/flowchart/preparation.shape
18014 * objects/flowchart/punchedcard.shape
18015 * objects/flowchart/punchedtape.shape
18016 * objects/flowchart/sort.shape
18017 * objects/flowchart/sumjunction.shape
18018 * objects/flowchart/terminal.shape
18019 * objects/flowchart/transaction.shape
18020 * objects/flowchart/transmittape.shape
18021 * objects/flowchart/pixmaps/collate.xpm
18022 * objects/flowchart/pixmaps/delay.xpm
18023 * objects/flowchart/pixmaps/display.xpm
18024 * objects/flowchart/pixmaps/document.xpm
18025 * objects/flowchart/pixmaps/extract.xpm
18026 * objects/flowchart/pixmaps/intstorage.xpm
18027 * objects/flowchart/pixmaps/magdisk.xpm
18028 * objects/flowchart/pixmaps/magdrum.xpm
18029 * objects/flowchart/pixmaps/magtape.xpm
18030 * objects/flowchart/pixmaps/manualinput.xpm
18031 * objects/flowchart/pixmaps/manualop.xpm
18032 * objects/flowchart/pixmaps/merge.xpm
18033 * objects/flowchart/pixmaps/offlinestore.xpm
18034 * objects/flowchart/pixmaps/offpageconn.xpm
18035 * objects/flowchart/pixmaps/or.xpm
18036 * objects/flowchart/pixmaps/predefdproc.xpm
18037 * objects/flowchart/pixmaps/preparation.xpm
18038 * objects/flowchart/pixmaps/punchedcard.xpm
18039 * objects/flowchart/pixmaps/punchedtape.xpm
18040 * objects/flowchart/pixmaps/sort.xpm
18041 * objects/flowchart/pixmaps/sumjunction.xpm
18042 * objects/flowchart/pixmaps/terminal.xpm
18043 * objects/flowchart/pixmaps/transaction.xpm
18044 * objects/flowchart/pixmaps/transmittape.xpm
18045 Moved shapes and their pixmaps to shapes/flowchart
18047 * shapes/Circuit/Makefile.am:
18048 * shapes/Circuit/index.sheet:
18049 Removed index.sheet.
18051 * shapes/Makefile.am:
18052 * shapes/flowchart/Makefile.am:
18053 * shapes/flowchart/*.shape:
18054 * shapes/flowchart/*.xpm:
18055 Added flowchart shapes. (Moved from objects/flowchart)
18058 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18060 * app/app_procs.c: Fixed popt stuff.
18062 1999-11-01 James Henstridge <james@daa.com.au>
18064 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
18067 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
18071 Update version to 0.81.
18074 Update with news for 0.81.
18076 * shapes/Circuit/*:
18077 * shapes/Circuit_eu/*:
18078 Moved european circuit objects to Circuit sheet.
18080 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
18082 * lib/diagramdata.[ch]:
18083 Added layer_set_object_list() function.
18086 Added support for undo of reordered objects.
18087 Fix the undo of delete to keep the right order on undo.
18090 changed loop to object_add_updates_list() calls.
18091 Added undo support to bring to front/back.
18093 * app/disp_callbacks.c:
18094 * app/paginate_psprint.c:
18097 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
18099 This plugs some leaks. Thanks to
18100 Bruce Mitchener <bruce@cybersight.com> for running
18101 Dia through purify for me.
18104 Free displays and diagrams on exit.
18106 * app/modify_tool.c:
18107 Free gc when freeing tool.
18109 * lib/diagramdata.c:
18113 Free update and display lists when destroying display.
18115 * lib/diagramdata.c:
18116 Don't leak layer name.
18118 * objects/custom/load_sheet.c:
18119 * objects/custom/shape_info.c:
18120 Free loaded xml documents.
18122 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
18125 * app/object_ops.[ch]:
18126 Add undo handling to alignment ops.
18127 Based partially on patch by Dan Cohn <dan@internap.com>.
18129 * objects/standard/image.c (image_move_handle):
18130 Don't divide by zero for small images.
18131 Patch by Dan Cohn <dan@internap.com>.
18133 * objects/UML/class.c (umlclass_destroy):
18134 * objects/custom/custom_object.c (custom_destroy):
18135 Don't free connectionpoints before calling element_destroy
18136 which unconnects them.
18138 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
18140 * objects/custom/custom_object.c:
18141 Load and save padding too. Fixes strange load crashes.
18143 * app/group.c (group_destroy):
18144 Don't unconnect already freed connectionpoints when
18145 destroying group. Probably fixes bug reported by
18146 Elliot Lee <sopwith@redhat.com>.
18148 * app/render_gdk.c:
18149 Don't crash on zero-size (broken) bezier curves.
18150 Different sort of fix. This should work on closed bezier curves
18153 * objects/standard/textobj.c:
18154 Activate default properties dialog for Text objects.
18156 * app/render_eps.c:
18158 * app/preferences.c:
18159 * app/render_svg.c:
18160 fopen files in binary or text mode.
18162 1999-10-26 Alexander Larsson <alex@cendio.se>
18164 * app/render_gdk.c (bezier_add_lines):
18165 Don't crash on zero-size (broken) bezier curves.
18166 Fixes a crashing bug.
18168 1999-10-25 James Henstridge <james@daa.com.au>
18170 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
18171 before it is installed.
18173 * objects/flowchart/flowchart.c: use relative paths to find shapes.
18175 * objects/custom/custom.c (custom_object_load): take file names
18176 relative to $(pkgdatadir)/shape-internal, and check an environment
18177 variable for an alternative directory.
18179 * app/...: added copyright messages to the top of my new code.
18181 * app/paginate_psprint.c: some general clean ups. Also, give an error
18182 dialog if we can't open the command or output file for writing.
18184 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
18185 function so it would set orientation to landscape correctly.
18187 * app/paginate_psprint.c: use the paper settings that come with
18188 the diagram. Also implemented landscape printing.
18190 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
18193 * app/commands.[ch] (file_pagesetup_callback): added callback for
18194 the page setup dialog.
18196 * app/menus.c: added page setup menu item.
18198 * app/pagesetup.[ch]: implementation of the page setup dialog.
18200 * app/diapagelayout.[ch]: added accessors for the scaling factor.
18202 * app/load_save.c (diagram_load): load paper information from save
18204 (diagram_save): save the paper info.
18206 * lib/diagramdata.c (new_diagram_data): initialise paper info section
18207 of DiagramData structure.
18208 (diagram_data_destroy): free the paper name.
18210 * lib/diagramdata.h: added a paper member to the DiagramData structure
18211 that holds the page layout info for a diagram.
18213 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
18215 * objects/flowchart/box.c:
18216 * objects/flowchart/ellipse.c:
18217 * objects/flowchart/diamond.c:
18218 * objects/flowchart/parallelogram.c:
18219 Load and save padding too. Fixes strange load crashes.
18221 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
18223 * app/app_procs.c (name_is_lib):
18224 .dll, .sl and .so.0.0.0 are also libraries.
18226 1999-10-20 James Henstridge <james@daa.com.au>
18228 * configure.in: added extra makefile.
18230 * shapes/Circuit_eu/*: a new set of european circuit shapes from
18231 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
18232 (added fuses to makefile, fill the area of some of the components).
18234 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
18238 Add GDK_IMLIB_CFLAGS to includes.
18239 Changed --export-dynamic to -export-dynamic
18242 * objects/UML/message.c:
18243 Removed c++ comment.
18245 * lib/render_store.[ch]:
18246 Don't use empty structure. That is not Ansi C.
18248 1999-10-19 James Henstridge <james@daa.com.au>
18250 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18251 the margin entries, as they allow interpretation of units.
18252 (paper_size_change): display the current page dimensions.
18254 * app/diaunitspinner.[ch]: a widget derived from the standard
18255 GtkSpinButton that tries to take units into account. So if you enter
18256 "1in" into the entry, it will convert it to 2.54cm.
18258 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
18261 Removed include of dlfcn.h
18263 1999-10-18 James Henstridge <james@daa.com.au>
18265 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18266 bound on margin widths. It is set to the paper width/height.
18268 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18269 routine for the diamond. This bug was found and fixed by Daniel Wang
18270 <danwang@CS.Princeton.EDU>
18272 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
18274 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18275 remove warning (OS/2 version).
18277 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
18280 Put a pointer to objects/custom/README.
18282 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
18285 Updated version to 0.80
18288 Updated version to 0.80cvs
18290 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18292 * Released Dia 0.80
18293 Tag called DIA_0_80
18295 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
18299 * objects/UML/Makefile.am
18300 * objects/ER/Makefile.am
18301 * objects/network/Makefile.am
18302 * objects/standard/Makefile.am
18303 * objects/FS/Makefile.am
18304 * objects/sybase/Makefile.am
18305 * objects/flowchart/Makefile.am
18306 * objects/custom/Makefile.am
18307 Added -I$(top_srcdir)/intl which is needed for
18308 --with-included-gettext.
18314 Updated swedish translation.
18316 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
18319 Updated version number to 0.80.
18325 Updated. Moved bugs to KNOWN_BUGS.
18328 Updated with 0.80 release notes.
18330 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
18333 For backwards compatibility, make sure handle 0 and 1 are the
18334 first and last handle. Fixes compatibility with 0.41, breaks
18335 compatibility with cvs version.
18336 Fixed bug in undo/redo of adding deleting endpoint segments
18337 when the endpoint was connected.
18338 Start OrthConn objects with three segments.
18340 1999-10-16 James Henstridge <james@daa.com.au>
18342 * objects/custom/custom_object.c (custom_update_data): changed
18343 resizing behaviour a bit so that shapes don't grow huge when you try
18344 to resize them to smaller than the size required by the text box.
18345 Also, now shapes will not grow with fixed aspect ratio when you enter
18346 text into them unless the shape has the fixed aspect ratio flag set.
18348 1999-10-15 James Henstridge <james@daa.com.au>
18350 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18352 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18354 * objects/flowchart/magdrum.shape:
18355 * objects/flowchart/offlinestore.shape:
18356 * objects/flowchart/punchedtape.shape:
18357 * objects/flowchart/transmittape.shape:
18358 * objects/flowchart/punchedcard.shape: new shapes.
18360 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18362 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18364 * objects/flowchart/collate.shape:
18365 * objects/flowchart/delay.shape:
18366 * objects/flowchart/extract.shape:
18367 * objects/flowchart/intstorage.shape:
18368 * objects/flowchart/magdisk.shape:
18369 * objects/flowchart/magtape.shape:
18370 * objects/flowchart/merge.shape:
18371 * objects/flowchart/or.shape:
18372 * objects/flowchart/sort.shape:
18373 * objects/flowchart/sumjunction.shape: new shapes.
18375 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
18379 Entering an erronous command as print command
18382 * app/paginate_psprint.c:
18383 Save all print dialog values for next time.
18386 Remove custom lib from DIA_LIB_PATH.
18388 1999-10-14 James Henstridge <james@daa.com.au>
18390 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18392 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18394 * objects/flowchart/offpageconn.shape:
18395 * objects/flowchart/manualop.shape:
18396 * objects/flowchart/preparation.shape:
18397 * objects/flowchart/manualinput.shape:
18398 * objects/flowchart/predefdproc.shape:
18399 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18401 1999-10-13 James Henstridge <james@daa.com.au>
18403 * app/diapagelayout.[ch]: added accessors to paper information. The
18404 widget should be just about complete now.
18406 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18407 It actually does something now.
18409 1999-10-12 James Henstridge <james@daa.com.au>
18411 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18412 for the page layout widget.
18414 * app/diapagelayout.[ch]: start of page layout widget. Not actually
18415 built yet as it is not complete.
18417 * objects/flowchart/flowchart.c: added new shapes to sheet.
18419 * objects/flowchart/display.shape:
18420 * objects/flowchart/transaction.shape: new shapes.
18422 * AUTHORS: added my name to the spec file.
18424 * dia.spec: include the dia desktop entry to the spec file.
18426 * Makefile.am: install the dia.desktop file.
18428 * dia.desktop: added a gnome desktop entry so you can start dia
18429 from the gnome panel menu.
18431 1999-10-11 James Henstridge <james@daa.com.au>
18433 * objects/custom/custom_object.c:
18434 * objects/custom/shape_info.c: warning fixes.
18436 * objects/flowchart/document.shape: a shape file for the `document'
18439 * lib/custom.h: new header with the custom shape prototypes.
18441 * app/app_procs.c: register custom objects as well.
18442 (register_objects_in): close shared libraries if they don't load
18443 correctly, and call g_module_make_resident on libraries that load
18446 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18448 * objects/custom/custom.c: removed get_version, added custom_ prefix
18449 to register_objects and register_sheets.
18451 * objects/custom/Makefile.am: converted to a normal library.
18453 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
18455 * app/lineprops_area.c:
18456 * app/render_svg.c:
18458 * objects/custom/shape_info.c:
18459 * objects/flowchart/box.c:
18460 * objects/flowchart/diamond.c:
18461 * objects/flowchart/ellipse.c:
18462 * objects/flowchart/parallelogram.c:
18463 * objects/network/flash.c:
18464 * objects/network/scead-plug.c:
18465 * objects/sybase/client.c:
18466 Removed -Wall warnings.
18468 * objects/network/bus.c:
18469 Removed unused functions.
18471 * objects/FS/flow-ortho.c:
18472 * objects/FS/flow-poly.c:
18473 * objects/FS/flow.c:
18474 * objects/FS/function.c:
18476 Implemented "non-implemented" undo for FS objects.
18477 Now at least it won't crash.
18479 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
18481 * objects/network/bus.c:
18483 Handles are now added and removed using the object menu.
18484 Default to 6 handles instead of 10.
18485 Changed name from "Standard - Bus" to "Network - Bus". Kept old
18486 name for backwards compatibility.
18488 * objects/network/network.c:
18489 Changed name from "Standard - Bus" to "Network - Bus". Kept old
18490 name for backwards compatibility.
18492 * app/properties.[ch]:
18494 Update properties in properties dialog if the shown object
18495 is part of and ObjectChange (undo or redo).
18498 Remove old known bugs list.
18500 * objects/UML/class_dialog.c:
18501 Removed debug printf's.
18503 1999-10-10 James Henstridge <james@daa.com.au>
18505 * objects/custom/custom.c (custom_object_load): new function that
18506 provides a nice entry point to the custom shape code for when it
18507 gets used by other libraries.
18509 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
18510 speeds builds up a bit.
18512 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18513 (SUBDIRS): do not descend into pixmaps subdirs.
18515 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18516 This speeds up build process.
18518 * objects/custom/custom.c (sheets): made variable static.
18520 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18523 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18525 * objects/custom/custom.c: look in ~/.shapes instead of
18526 ~/.dia_shapes as the per-user shapes directory.
18528 * app/preferences.c (prefs_save): save config to ~/.diarc.
18529 (prefs_load): load configuration from ~/.diarc. If the file
18530 does not exist, fallback on the old ~/.diarc location.
18532 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18534 (register_all_objects): look for user specific objects in
18535 ~/.objects rather than ~/.dia_libs.
18537 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18541 * objects/flowchart/box.c
18542 * objects/flowchart/ellipse.c
18543 * objects/flowchart/flowchart.c
18544 Use gmodule for dynamic linking. As gmodule is using
18545 RTLD_GLOBAL i had to change flowchart box and ellipse
18546 so the typenames doesn't conflict with the standard
18551 Use button box to make dialogs look better.
18553 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
18555 * objects/UML/class_dialog.c:
18556 * objects/UML/class.h:
18557 Implemented undo for "UML - Class" objects.
18558 Not 100% tested yet.
18560 * objects/UML/classicon.c:
18561 * objects/UML/constraint.c:
18562 * objects/UML/dependency.c:
18563 * objects/UML/generalization.c:
18564 * objects/UML/implements.c:
18565 * objects/UML/large_package.c:
18566 * objects/UML/lifeline.c:
18567 * objects/UML/message.c:
18568 * objects/UML/object.c:
18569 * objects/UML/realizes.c:
18570 * objects/UML/state.c:
18571 * objects/UML/usecase.c:
18574 * lib/connectionpoint.h:
18577 1999-10-09 James Henstridge <james@daa.com.au>
18579 * objects/custom/*.[ch]: added copyright notices to custom object
18582 * shapes/Circuit/hdiode.shape:
18583 * shapes/Circuit/hzener.shape:
18584 * shapes/Circuit/opamp.shape:
18585 * shapes/Circuit/vdiode.shape:
18586 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18587 shapes look nice after the custom shape code changes.
18589 * objects/custom/README: updated docs to cover changes to drawing
18592 * objects/custom/custom_object.c (custom_draw): honour the line
18593 properties when drawing the shape.
18595 * objects/custom/shape_info.[ch]: added support for setting line
18596 properties for individual drawing elements in a custom shape. You
18597 can set the dash style, dash length, cap style and join style.
18599 1999-10-07 James Henstridge <james@daa.com.au>
18601 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18602 for foreground and background.
18604 * objects/custom/custom_object.c (custom_draw): use the new style
18605 information when drawing the object.
18607 * objects/custom/shape_info.[ch]: store all shape style info in the
18608 GraphicStyle structure. This makes adding support for extra CSS
18609 attributes easier -- we don't have to keep adding extra arguments to
18610 a lot of functions.
18612 1999-10-05 James Henstridge <james@daa.com.au>
18614 * lib/intl.c (unalias_lang): merged in changes from the i18n code
18615 swiped from gnome-libs.
18617 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
18619 * objects/standard/image.c (get_directory):
18620 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18622 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
18624 * lib/poly_conn.c (polyconn_destroy):
18625 Fix bug. Access of freed memory.
18626 Rememeber, you can't free the handles of an object
18627 before calling object_destroy(), as it unconnects the handles
18628 therefore referencing them.
18630 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
18633 undo_clear() didn't set stack->depth to zero.
18634 This made other undo functions crash after this had been called
18638 Slightly modified by Chris Love <clove@exactis.com>
18640 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
18642 * objects/UML/class.h:
18643 * objects/UML/class_dialog.c:
18644 Retrun NULL ObjectChange on class property change.
18645 This means no crashes, but "UML - Class" doesn't support undo yet.
18647 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
18652 * objects/UML/classicon.c:
18653 * objects/UML/dependency.c:
18654 * objects/UML/generalization.c:
18655 * objects/UML/implements.c:
18656 * objects/UML/large_package.c:
18657 * objects/UML/lifeline.c:
18658 * objects/UML/message.c:
18659 * objects/UML/object.c:
18660 * objects/UML/realizes.c:
18661 * objects/UML/state.c:
18662 * objects/UML/usecase.c:
18663 Update to new undo (w. get/set_state).
18664 Add object menu to add/delete segments.
18666 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
18669 Add equal distance alignment.
18671 * app/object_ops.c:
18672 Add equal distance alignment.
18673 Fix bug in adjacent alignment.
18675 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
18677 * objects/UML/constraint.c:
18678 Update to new undo (w. get/set_state).
18680 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
18682 * app/paginate_psprint.c:
18683 Save (parts, more todo) of the info in the print dialog to the
18684 next time it's opened.
18685 Patch from Yo Ric Dude <ricdude@toad.net>
18687 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
18690 Updated version string to 0.41cvs.
18692 * objects/UML/assocition.c:
18693 Update to new undo (w. get/set_state).
18694 Add object menu to add/delete segments.
18697 Added function debug_break() and called it after all
18698 objects and sheets are loaded. Place a breakpoint here if you
18699 want to debug objects. All symbols should be loaded.
18701 1999-09-12 James Henstridge <james@daa.com.au>
18703 * app/menus.c (display_menu_items): added print menu item.
18704 (filemenu): always add print menu item -- even if gnome-print is
18707 * app/commands.h, app/commands.c (file_print_callback): the print
18708 menu item is now available for both gnome-print and non gnome-print
18711 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18712 print with the non gnome-print driver.
18714 1999-09-11 James Henstridge <james@daa.com.au>
18716 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18717 printer dialog code out of commands.c.
18719 * app/paginate_psprint.c: new file containing the pagination code for
18722 * app/render_eps.c: made a few modifications so as well as producing
18723 EPS files, this renderer can be set up to do postscript printing.
18724 This basically entailed adding an extra function to create a RenderEPS
18725 renderer which did not bother setting the viewport for the document.
18726 That was left for the pagination code.
18728 1999-09-10 James Henstridge <james@daa.com.au>
18730 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18731 gnome-print does not support elliptic arcs at the moment, approximate
18732 the ellipse with eight bezier curves. This gives a pretty good
18733 match to a true ellipse.
18735 1999-09-09 James Henstridge <james@daa.com.au>
18737 * app/commands.c (file_gnome_print_callback): added support for
18738 scaling the diagram. Also fixed a few other bugs.
18740 * app/paginate_gnomeprint.c (print_page): added ability to scale
18741 document. Fixed up test to see if the page has no objects on it.
18742 This should prevent some blank pages being printed. Non square
18743 objects such as lines could still cause problems.
18745 1999-09-08 James Henstridge <james@daa.com.au>
18747 * app/commands.c (file_gnome_print_callback): changed from using the
18748 standard printer selection dialog to one that also has a paper size
18751 * commands.[ch]: added callbacks for the print menu item. Currently
18752 it only does A4 output. I will make it configurable soon.
18754 * app/menus.c: add a print diagram menu item if gnome-print support
18757 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18758 bit higher level than the gnome-print renderer. It splits the
18759 diagram into page size chunks and then renders them. For each
18760 page, it only renders the objects whose bounding box intersects
18761 the page, and it sets the clip mask so that the diagram does not
18762 overlap the margins.
18764 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18765 that uses gnome-print as its back end.
18767 * configure.in: added a check for gnome-print. It is disabled by
18768 default because the code is not really working correctly yet.
18770 * app/menus.c: the delete object menu item was missing from the
18771 GnomeUIInfo style menus.
18773 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18776 Added japanese to ALL_LINGUAS.
18777 Fix for Linux on Alpha.
18779 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
18781 * app/create_object.c (create_object_button_press):
18782 Always initialize tool->obj. Otherwise we store a null
18783 in the undo Change.
18786 Set linestyle before drawing cursor.
18787 Fix undo of backwards delete.
18789 1999-09-05 James Henstridge <james@daa.com.au>
18791 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18793 * app/render_svg.c (draw_image): some fixes so that the appropriate
18794 style attributes are set. Before it was setting line styles on
18795 fill_* functions. Now it only does this for the draw_* variants.
18797 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18798 variable so that custom shapes can be loaded.
18800 * shapes/: new directory for custom shapes. The Circuit sheet has
18803 1999-09-02 James Henstridge <james@daa.com.au>
18805 * TODO: removed a few todo items that have been implemented.
18807 * app/interface.c (create_sheets): enabled the popup page menu to the
18808 notebook. This can make it easier to select different sheets.
18810 * object/custom/Circuit/: added diode, zener diode, ground point and
18811 operational amplifier shapes.
18813 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18814 if you want the output.
18816 * objects/custom/shape_info.c (parse_path): same here.
18818 * objects/custom/load_sheet.c (load_with_readdir): don't print so
18819 much debugging output. To get the previous level of output, define
18822 * objects/custom/shape_info.c (parse_svg_node): polygons were being
18823 recorded as polylines in the ShapeInfo structure.
18825 * objects/custom/README: some notes on writing new custom shapes.
18827 1999-09-01 James Henstridge <james@daa.com.au>
18829 * objects/custom/Circuit/hinductor.*:
18830 * objects/custom/Circuit/vinductor.*: added inductor shapes that
18831 also test out the bezier curve and SVG path support.
18833 * objects/custom/custom_object.c (custom_draw): added support for
18834 drawing bezier paths and filled shapes.
18836 * objects/custom/shape_info.c (parse_path): new function to parse
18837 SVG path elements. It does not do quadratic beziers or elliptic
18838 arcs though. Only moves, lines and cubic beziers.
18839 (*): added support for paths.
18841 1999-08-31 James Henstridge <james@daa.com.au>
18843 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18845 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18848 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18851 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18854 * lib/render_store.[ch]: use newer bezier functions.
18856 * lib/render.h: changed the bezier drawing functions to use an array
18857 of BezPoint structures instead of normal Point structures to allow
18858 lineto's mixed in with the curveto's.
18860 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18862 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18863 xpm images for different shapes to Makefile.
18865 * objects/custom/custom_object.c (custom_object_new): set the icon
18866 for the sheet button if there is one. Otherwise fall back on the
18867 default custom object icon.
18869 * objects/custom/shape_info.c (load_shape_info): read the sheet
18870 icon name from the shape file.
18872 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18873 check the pixmap_file field for the name of a pixmap file to load
18876 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
18877 at the end of the structure, and it isn't used if the pixmap field
18878 is non NULL, so it should not break binary compatibility.
18880 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
18881 added support for the use of an index.sheet file so you can specify
18882 the ordering of the shapes in the sheet, and also internationalise
18883 the sheet name and actually be able to give a description. The old
18884 readdir based sheet loading code acts as a fallback if an index.sheet
18885 file can not be found.
18887 * objects/custom/custom_util.[ch]: new file containing useful routines
18888 needed by the custom object code. Currently only contains a simple
18889 routine for resolving relative paths.
18891 * objects/custom/custom_object.c (custom_draw): fixed problem with
18892 drawing rectangles if the shape has been flipped.
18894 1999-08-30 James Henstridge <james@daa.com.au>
18896 * objects/custom/custom_object.c (custom_get_object_menu): allow
18897 flipping of custom shapes. This uses the miggle click object
18900 * objects/custom/Circuit/npn.shape: fix aspect ratio.
18902 * objects/custom/custom_object.c (custom_update_data): honour the
18903 aspect ratio constraints.
18905 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
18906 tag parsing, so you can specify a free, fixed or a range for aspect
18907 ratios for the shape.
18909 1999-08-29 James Henstridge <james@daa.com.au>
18911 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
18912 up shape namespace tag.
18914 * objects/custom/shape_info.c (load_shape_info): check xml:lang
18915 attribute on <description> elements to support i18n for custom
18916 shape descriptions.
18917 Also changed the shape namespace for custom shapes to something
18918 a little more sensible.
18920 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
18922 * lib/intl.c: new file containing some functions for i18n stuff.
18924 * app/layer_dialog.c (create_button_box): fixed a warning.
18926 * objects/custom/custom_object.c: use current line style. Save dash
18929 * objects/flowchart/diamond.c: use current line style. Save dash
18932 * objects/flowchart/parallelogram.c: use current line style. Save
18935 * objects/flowchart/ellipse.c: use current line style. Save dash
18938 * objects/flowchart/box.c: use current line style. Save dash length.
18940 * objects/standard/ellipse.c: make ellipse use current line style.
18942 * objects/standard/box.c: use the line style set in the toolbox for
18943 new boxes, and remember the dash length.
18945 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
18948 1999-08-24 James Henstridge <james@daa.com.au>
18950 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
18951 to try to stop ellipse to get infinite width/height when we resize,
18952 while trying to keep the text inside the ellipse.
18954 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
18955 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
18956 resizing behaviour, so that you can't push objects round the screen
18957 with the resize handles.
18959 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
18960 get the OK buttons in the dialogs to take default clicks.
18962 * objects/custom/custom_object.c: added code so that resizing the
18963 shape does not end up pushing it round the screen.
18965 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
18967 * app/display.[ch]:
18968 Generate rectangle with the union of the damaged regions.
18969 This is used to optimize the grid paint and the object rendering.
18970 display_render_pixmap passes this info to grid_draw() and data_render().
18973 grid_draw doesn't draw grid lines outside of damaged rectangle.
18974 Sets dashlength when drawing non-solid grid.
18976 * lib/diagramdata.[ch]:
18977 data_render() and layer_render() takes an optional damaged rectangle
18978 argument. No objects not intersecting this are drawn.
18982 Call data_render with NULL update rectangle.
18984 1999-08-23 James Henstridge <james@daa.com.au>
18986 * objects/custom/custom_object.c (custom_update_data): if the aspect
18987 ratio is fixed, make sure the shape is not distorted.
18989 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
18990 a <fixaspectratio/> tag is given in the shape file.
18992 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
18993 added support for stroke-width, stroke and fill CSS attributes
18994 specified in style attributes of the SVG elements. The line width
18995 is relative to the user specified line width. The stroke and fill
18996 attributes can only be used to swap the foreground/background
18999 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
19000 sensitivity on the dash length selector when this function is called.
19002 * objects/standard/arc.c: same. Also handle dash length.
19003 * objects/standard/zigzagline.c: same.
19004 * objects/standard/polyline.c: same. Also handle dash length.
19005 * objects/standard/line.c: use default arrow/line styles.
19007 * app/interface.c: added callbacks to set the default attributes.
19009 * lib/attributes.c: added implementations of these functions.
19011 * lib/attributes.h: added extra prototypes for the new line properties
19012 area in the toolbox.
19014 * app/interface.c (create_lineprops_area): added line properties
19015 area to bottom of toolbox.
19017 * app/lineprops_area.h: a header exporting a few routines of the
19018 line properties area widgets.
19020 * app/lineprops_area.c: new file containing a selector for arrows
19021 and line styles to go in the main toolbox.
19023 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
19026 Update Gtk+ 1.0.5 comment to 1.2.0.
19035 Make sure we don't propagate -ldl and -lpopt to all LIBS
19036 by adding new var APP_LIBS that only app/dia links with.
19039 Update run_dia.sh to load custom and flowchart objects.
19041 * objects/ER/Makefile.am:
19042 * objects/FS/Makefile.am:
19043 * objects/UML/Makefile.am:
19044 * objects/network/Makefile.am:
19045 * objects/standard/Makefile.am:
19046 * objects/sybase/Makefile.am:
19047 Don't build versioned libs.
19049 1999-08-22 James Henstridge <james@daa.com.au>
19051 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
19054 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
19055 should actually work a bit now.
19057 * objects/custom/Circuit/*: a test sheet for the custom shape code.
19058 It is a small collection of circuit elements.
19060 * objects/custom/shape_info.c: fixed up loading of polylines and
19061 polygons. Before it was removing negative signs :(
19063 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
19064 placeholder was here before. I still need to work out how to set
19065 icons for individual custom shapes.
19067 * objects/custom/custom.c: added code to load the shapes into sheets
19068 properly. The shape files should be arranged into directories, and
19069 each directory represents a different sheet in the toolbox. This
19070 will make it very easy to distribute a collection of dia shapes as
19071 a tarball. I still need to work out internationalisation, and maybe
19072 also shape ordering in the sheet.
19074 * objects/custom/custom_object.c: fixed up dialogs for these objects.
19075 (custom_create): fix for objects without text areas.
19077 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
19078 and saving of custom object works correctly now.
19080 1999-08-21 James Henstridge <james@daa.com.au>
19082 * objects/flowchart/ellipse.c:
19083 * objects/flowchart/diamond.c:
19084 * objects/flowchart/parallelogram.c:
19085 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
19086 copying or loading these object types. Not all the connection
19087 points would be initialised correctly.
19089 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
19092 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
19093 build a versioned library. It will only ever be dlopen'd, so this
19096 * objects/custom/custom_object.c (custom_distance_from): allow
19097 selecting the object by clicking on the text. This fixes problems
19098 where the text box is outside the graphic.
19100 * objects/custom/shape_info.c (load_shape_info): fixed up reading
19101 of connections points. It should be possible to add connections
19102 to custom objects now.
19104 * objects/custom/custom_object.c (custom_update_data): fixed resizing
19105 due to changes to text.
19107 * configure.in: added extra makefiles.
19109 * objects/custom/shape_info.[ch]:
19110 * objects/custom/custom_object.c:
19111 * objects/custom/custom.c: the starts of custom shape support in dia.
19112 This is not built by default at the moment, since it is not quite
19113 complete. When it is, it will let you create more shapes for dia
19114 without writing a line of C. Its implementation includes buzzwords
19115 such as XML and SVG, so it must be good :)
19117 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
19119 * app/app_procs.c (app_exit): Use button labels "Quit" and
19120 "Cancel" instead of "Yes" and "No".
19121 Set default action to "Cancel" instead of "Quit".
19123 1999-08-19 James Henstridge <james@daa.com.au>
19125 * objects/flowchart/flowchart.c: added ellipse object.
19127 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
19129 1999-08-18 James Henstridge <james@daa.com.au>d
19131 * app/color_area.c (color_area_edit): small fix to prevent dia from
19132 segfaulting when you try to change the default foreground/background.
19134 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
19136 * app/diagram.[ch] (diagram_redraw_all):
19137 Added function that redraws all diagrams.
19139 * app/preferences.c (prefs_apply):
19140 Call diagram_redraw_all when prefs are changed.
19142 * app/render_svg.c:
19143 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
19144 older libxml's, and the old version works good enought here.
19146 1999-08-17 James Henstridge <james@daa.com.au>
19148 * lib/widgets.c: changed handlers that were connected to the GtkButton
19149 "pressed" signal to connect to the "clicked" signal. This removes the
19150 problem where dialogs are inactive until you click a mouse button
19151 after using a colour selector.
19153 * configure.in: added extra makefiles to AC_OUTPUT list.
19155 * objects/Makefile.am (SUBDIRS): added flowchart module
19157 * objects/flowchart/*: a collection of shapes for use in flowcharts.
19159 * app/color_area.c (color_area_events): similar here.
19161 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
19162 event is recieved with event->width == 0, which causes a warning if we
19163 try to create a pixmap of that width.
19165 * app/preferences.c, app/preferences.h, app/grid.c: added code to
19166 allow you to configure the colour of the grid, and also lets you
19167 set the grid to use dotted lines instead of solid ones.
19169 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
19170 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
19172 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
19173 export filter. It is not quite complete, but for most shapes it
19174 works as expected. Fonts still need a bit of work.
19176 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
19178 * configure.in: Added "en_GB" to ALL_LINGUAS.
19180 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
19183 Added Undo and Redo to GNOME menus.
19185 * objects/ER/attribute.c:
19186 * objects/ER/entity.c:
19187 * objects/ER/participation.c:
19188 * objects/ER/relationship.c:
19189 Added get/set_state functions.
19191 * objects/ER/participation.c:
19192 Added add/delete segment.
19195 Updated Swedish translation.
19197 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19199 * app/preferences.[hc]:
19200 Added undo_depth pref.
19203 Never grow stack larger than pref.undo_depth.
19204 undo_depth == 0 means unlimited.
19205 Converted printfs to conditionally compiled DEBUG_PRINTFs.
19207 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19212 * lib/render_object.c:
19213 * objects/ER/attribute.c:
19214 * objects/ER/entity.c:
19215 * objects/ER/participation.c:
19216 * objects/ER/relationship.c:
19217 * objects/FS/flow-ortho.c:
19218 * objects/FS/flow-poly.c:
19219 * objects/FS/flow.c:
19220 * objects/FS/function.c:
19221 * objects/UML/actor.c:
19222 * objects/UML/association.c:
19223 * objects/UML/class.c:
19224 * objects/UML/classicon.c:
19225 * objects/UML/component.c:
19226 * objects/UML/constraint.c:
19227 * objects/UML/dependency.c:
19228 * objects/UML/generalization.c:
19229 * objects/UML/implements.c:
19230 * objects/UML/large_package.c:
19231 * objects/UML/lifeline.c:
19232 * objects/UML/message.c:
19233 * objects/UML/note.c:
19234 * objects/UML/object.c:
19235 * objects/UML/realizes.c:
19236 * objects/UML/small_package.c:
19237 * objects/UML/state.c:
19238 * objects/UML/usecase.c:
19239 * objects/network/bus.c:
19240 * objects/standard/arc.c:
19241 * objects/standard/box.c:
19242 * objects/standard/ellipse.c:
19243 * objects/standard/image.c:
19244 * objects/standard/line.c:
19245 * objects/standard/polyline.c:
19246 * objects/standard/textobj.c:
19247 * objects/standard/zigzagline.c:
19248 Removed all traces of is_empty(). It doesn't work in an
19251 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19256 Undoable grouping and ungrouping.
19258 * app/layer_dialog.c:
19259 * lib/diagramdata.[ch]:
19260 Undoable layer ops.
19262 * app/modify_tool.c:
19263 Undoable unconnect on handle move.
19265 * lib/orth_conn.[ch]:
19266 Working undoable add/remove segment.
19267 Removed endpoint_handles from OrthConn, renamed
19268 midpoint_handles to handles and put the endpoint
19271 * objects/standard/zigzagline.c:
19272 * objects/ER/participation.c:
19273 * objects/UML/association.c:
19274 * objects/UML/dependency.c:
19275 * objects/UML/generalization.c:
19276 * objects/UML/realizes.c:
19277 Update for the changes in OrthConn
19279 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
19281 * configure.in: Added "de" to ALL_LINGUAS.
19283 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
19295 Don't have the <Display> etc part of the menu strings
19296 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19299 Don't have the <Display> etc part of the menu strings
19300 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19301 Don't remove is_empty() objects, that don't work with undo.
19303 * lib/objchange.[ch]:
19305 Definition of ObjectChange. This is essentially an Change
19306 exported to the object libs. It encapsulates a change made
19307 to an objects internals. It can be applied, reverted and freed.
19308 There are also utility functions for doing ObjectChanges that
19309 only get/set the whole state of an object to store the change.
19310 This cannot be used when the object change deletes or adds a
19311 object which has references from other objects, eg. Handles which
19312 might be connected.
19315 Added objchange.c and objchange.h.
19318 Return NULL when loading fails.
19321 Menu callbacks return an ObjectChange.
19324 Reference objchange.o
19327 Key events return ObjectChange if they modify the object.
19331 Added object_add_handle_at() function.
19332 Apply properties returns an ObjectChange.
19333 Remove ObjectState and the get/set state functions, these
19334 don't always work. Use the new ObjectChange instead.
19337 Added object_add_handle_at() function implementation.
19339 * lib/orth_conn.[ch]:
19340 Use ObjectChange. Not finished yet.
19341 Removed get/set/free state functions
19343 * lib/poly_conn.[ch]:
19345 Don't remove segments that are small.
19346 Removed get/set/free state functions
19350 Added functions to get/set all text attributes.
19352 * objects/standard/arc.c:
19353 * objects/standard/box.c:
19354 * objects/standard/ellipse.c:
19355 * objects/standard/image.c:
19356 * objects/standard/line.c:
19357 * objects/standard/polyline.c:
19358 * objects/standard/textobj.c:
19359 * objects/standard/zigzagline.c:
19361 fixed bug in image_set_state.
19362 zigzagline.c not finished yet.
19364 * app/disp_callbacks.c:
19365 Use ObjectChange that are returned from menu callbacks and
19366 key_events for undo.
19368 * app/properties.c:
19369 Use ObjectChange that are returned from properties apply
19374 New undo type: ObjectChangeChange. This wraps a change to the
19375 internals of an object (and ObjectChange) in code that does
19376 app specific stuff (object_add_updates etc.)
19378 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
19380 * lib/orth_conn.[ch]:
19381 Added code for add/delete segment.
19383 * objects/standard/zigzagline.c:
19384 Use the new orth_conn code.
19387 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
19389 * objects/FS/Makefile.am
19390 Removed fs.h from sources.
19396 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
19398 * app/disp_callbacks.c (ddisplay_canvas_events):
19399 Fix for bug. Every other arrow-key press got lost.
19400 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19403 change automake.sh to autogen.sh
19405 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
19408 Don't remove 'empty' objects.
19409 This violent destruction of objects won't work
19410 with the new undo framework.
19412 * app/disp_callbacks.c:
19413 Save undo info for object menu calls and key_events.
19415 * app/properties.c:
19416 Save undo info on properties apply.
19418 * lib/dia_image.[ch]:
19419 Add refcounting for images.
19421 * app/render_eps.c:
19422 * app/render_gdk.c:
19424 DiaImage * -> DiaImage
19427 Add undo functions for object state changes.
19431 change of semntics for focus->key_event.
19432 Now returns TRUE if the object recieving the event
19438 * lib/orth_conn.[ch]:
19439 Don't automatically create and delete segments when
19440 handles are moved. This is incompatible with undo.
19441 Added state get, set and free functions.
19443 * lib/orth_conn.[ch]:
19444 Added state get, set and free functions.
19446 * objects/UML/object.c:
19447 * objects/UML/uml.c:
19448 Fixed typo "UML - Objet" -> "UML - Object".
19449 Saved old for backwards compatibility.
19451 * objects/standard/arc.c:
19452 * objects/standard/box.c:
19453 * objects/standard/ellipse.c:
19454 * objects/standard/image.c:
19455 * objects/standard/line.c:
19456 * objects/standard/polyline.c:
19457 * objects/standard/textobj.c:
19458 * objects/standard/zigzagline.c:
19459 Added get/set state functions.
19460 Textobj has a redo crash-bug.
19461 Zigzagline needs object menus to add segments.
19464 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
19466 * app/render_eps.c (set_dashlength):
19467 Don't generate eps files with zero dash-length.
19469 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
19472 * app/create_object.c:
19474 Finished undo for create and paste.
19477 Started properties undo.
19479 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
19482 Added resizeable groups.
19485 Removed unused variable.
19489 Undo/redo for cut/delete done.
19491 * app/create_object.c:
19492 * app/modify_tool.c:
19493 * lib/diagramdata.[ch]:
19494 * app/diagram.[ch]:
19495 renamed diagram_add_selected -> diagram_select
19496 renamed diagram_remove_selected -> diagram_unselect
19498 * app/properties.[ch]:
19499 Added properties_hide_if_shown() function.
19501 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
19507 * app/commands.[ch]
19508 * app/modify_tool.[ch]
19509 * app/object_ops.[ch]
19510 * app/connectionpoint_ops.c
19512 Use undo functions.
19513 WARNING: Not finished. Will break.
19514 Finished: move object, move handle.
19517 Added diagram_selected_break_external() function.
19518 It removes all connections between selected objects
19520 Add undo stack to Diagram.
19522 * lib/diagramdata.[ch]
19523 Added layer_remove_objects() function
19525 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
19527 * objects/FS/Makefile.am
19528 * objects/sybase/Makefile.am
19529 Now uses GNOME_CFLAGS.
19532 Now compiles with GNOME even if popt.h isn't available.
19534 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
19537 * objects/Makefile.am
19539 First version of sybase objects from
19540 Brian Bruns <camber@umcc.ais.org>
19542 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
19545 Added fr to ALL_LINGUAS
19547 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
19551 Popt-code is activated if popt is available.
19553 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
19555 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19557 * lib/orth_conn.[ch]:
19558 Added orthconn_get_middle_handle()
19561 Added text_set_cursor_at_end()
19564 Added first version of functions structure diagrams.
19566 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
19568 * app/modify_tool.c:
19569 Include math.h to remove warning.
19571 * app/commands.c (dialogs_properties_callback):
19572 Bring up correct properties dialog when selected
19574 From Dan Cohn <dan@internap.com>
19576 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
19578 Patch from Lars R. Clausen
19580 * app/modify_tool.c:
19581 Changed abs to fabs.
19583 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
19589 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
19591 Patches from Dan Cohn <dan@internap.com>
19593 * app/commands.[ch]:
19594 * app/display.[ch]:
19596 * app/preferences.[ch]:
19597 Implements ability to turn on/off connection points in
19598 current drawing and in global prefs.
19600 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
19602 * lib/widgets.c (dia_line_style_selector_init):
19605 * lib/diagramdata.c (layer_update_extents):
19606 Fixed uninitialized variable error.
19608 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
19611 Made some changes to the gdk_imlib visual+colormap setup.
19613 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19615 * objects/UML/usecase.c:
19616 * objects/UML/lifeline.c
19619 * objects/UML/object.c:
19620 * objects/UML/message.c:
19621 Changed font from Courier to Helvetica.
19625 Added dash lenth to the LineStyle widget.
19627 * objects/standard/ellipse.c :
19628 * objects/standard/zigzagline.c:
19629 * objects/standard/line.c:
19630 Added dash lenght property.
19632 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
19634 * app/render_eps.c:
19635 First shot at latin1 encoded eps files.
19636 Works, but the eps files get a bit large.
19638 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
19640 * objects/UML/class.[ch]:
19641 * objects/UML/uml.[ch]:
19642 Reverted the line wrap changes.
19643 Some day this might return, but it has to be selectable and
19644 default to off for loaded objects, otherwise it breaks file
19645 format compatibility.
19646 There was also some complains about how it looked, so a making it
19647 selectable is good for this too.
19649 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
19651 * objects/UML/class.[ch]:
19652 Some indentation cleanup.
19653 Added wrap_lines variable to class.
19654 I'll fix the line break stuff tomorrow.
19656 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
19659 Added ref to poly_conn.o.
19661 * objects/standard/polyline.c (polyline_draw):
19662 * objects/standard/zigzagline.c (zigzagline_draw):
19663 * objects/standard/arc.c (arc_draw):
19664 * objects/standard/line.c (line_draw):
19665 Draw lines before arrows. This makes hollow arrows not
19668 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
19670 Changes from Kim Peasley <kpeasley@ior.com>
19672 * objects/UML/class.c:
19673 Break lines with long operations so classes won't be
19676 * objects/UML/uml.[ch]:
19677 Helperfunctions for the above.
19679 * objects/UML/objects.c:
19680 Fix bug that duplicated the text in the attributes
19681 textwidget each time the object was selected.
19683 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
19685 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19687 * app/modify_tool.c:
19688 * app/modify_tool.h:
19689 Control-drag is restricted to vertical/horizontal movement
19692 ModifierKeys argument added to object_move_handle
19694 * app/connectionpoint_ops.c:
19695 * app/create_object.c:
19696 * app/object_ops.c:
19697 * objects/ER/attribute.c:
19698 * objects/ER/entity.c:
19699 * objects/ER/participation.c:
19700 * objects/ER/relationship.c:
19701 * objects/UML/actor.c:
19702 * objects/UML/association.c:
19703 * objects/UML/class.c:
19704 * objects/UML/classicon.c:
19705 * objects/UML/component.c:
19706 * objects/UML/constraint.c:
19707 * objects/UML/dependency.c:
19708 * objects/UML/generalization.c:
19709 * objects/UML/implements.c:
19710 * objects/UML/large_package.c:
19711 * objects/UML/lifeline.c:
19712 * objects/UML/message.c:
19713 * objects/UML/note.c:
19714 * objects/UML/object.c:
19715 * objects/UML/realizes.c:
19716 * objects/UML/small_package.c:
19717 * objects/UML/state.c:
19718 * objects/UML/usecase.c:
19719 * objects/network/bus.c:
19720 * objects/standard/arc.c:
19721 * objects/standard/box.c:
19722 * objects/standard/ellipse.c:
19723 * objects/standard/image.c:
19724 * objects/standard/line.c:
19725 * objects/standard/polyline.c:
19726 * objects/standard/textobj.c:
19727 * objects/standard/zigzagline.c:
19728 Changed calls to move_handle to pass the new argument.
19732 Default line width, color etc #define'd
19735 Updates of danish menus
19737 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
19740 * dia_gnome_icon.png
19741 * dia_gnome_menu_icon.png
19743 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19746 About dialog shows dia_logo.png. Removed the GNOME about dialog.
19749 Distribute the icons and install logo in pkgdatadir.
19752 Added DATADIR-define.
19754 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
19755 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19758 Updated version number, made setup quiet, can build from cvs,
19759 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19762 * objects/ER/Makefile.am
19763 * objects/UML/Makefile.am
19764 * objects/network/Makefile.am
19765 * objects/standard/Makefile.am
19766 now builds better with gnome
19768 * objects/UML/class_dialog.c
19769 Fixed typo -> po files must be updated too!!
19771 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
19774 Added reference so that widgets.o gets linked to the app.
19776 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19778 * objects/UML/classicon.c:
19781 * objects/UML/actor.c:
19782 Changed position of 'snap-to-grid' so connection points are
19785 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
19787 * objects/UML/classicon.c:
19788 Changed position of 'snap-to-grid'.
19789 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19791 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
19793 * objects/network/antenna.c
19794 * objects/network/flash.c
19795 * objects/network/hub.c
19796 * objects/network/modem.c
19797 * objects/network/modularswitch.c
19798 * objects/network/rj45plug.c
19799 * objects/network/scead-plug.c
19800 * objects/network/network.c
19801 * objects/network/Makefile.am
19802 * objects/network/pixmaps/antenna.xpm
19803 * objects/network/pixmaps/flash.xpm
19804 * objects/network/pixmaps/hub.xpm
19805 * objects/network/pixmaps/modem.xpm
19806 * objects/network/pixmaps/modularswitch.xpm
19807 * objects/network/pixmaps/rj45plug.xpm
19808 * objects/network/pixmaps/sceadplug.xpm
19809 * objects/network/pixmaps/Makefile.am
19810 Lots of new network objects from
19811 Roland Steinbach <roland@support-system.com>.
19813 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19815 * objects/UML/classicon.c:
19816 Fixed connection positions, saved type as int (it has 3 states),
19817 and other small fixes.
19819 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
19821 * app/preferences.c:
19823 Added preference compress_save. It lets dia save uncompressed
19826 * objects/UML/class.c:
19827 Fixed bug with size calculation on methods that had class scope.
19829 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19831 * objects/UML/usecase.c:
19832 Added collaboration mode
19833 Fixed connection points with text > ellipse bug and other
19836 * objects/UML/state.c:
19837 Fixed bug of bad position of text after being either end
19838 or begin, moved and returned to text
19840 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
19842 * app/preferences.c: Add prototype declaration for prefs_apply.
19844 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
19846 * app/preferences.c:
19848 Apply don't hide window.
19850 * app/properties.c:
19853 * objects/UML/object.c:
19854 * objdcts/UML/state.c:
19855 Some data was not copied on copy.
19858 Ben Hochstedler <benh@eeyore.moneng.mei.com>
19860 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
19863 Changed link order between X and libxml.
19864 Some people had problems with an old libz in their
19867 1999-04-09 Kjartan Maraas <kmaraas@online.no>
19869 * po/no.po: updated translation.
19871 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
19873 * lib/message.c (message_error):
19876 * app/commands.[ch]:
19877 * app/diagram.[ch]:
19878 Added begining of xfig importing
19880 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19882 * objects/UML/pixmaps/state.xpm:
19883 * objects/UML/state.c:
19884 New UML object state machine.
19886 * objects/UML/uml.c:
19887 * objects/UML/Makefile.am:
19888 * objects/UML/pixmaps/Makefile.am:
19889 Added the state object.
19891 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
19893 * objects/UML/usecase.c:
19894 Added dialog to allow move text outside the ellipse.
19896 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
19898 * Released Dia 0.41
19899 Tag called DIA_0_41
19904 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
19907 Updated version number to 0.41
19912 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
19915 Changed errormessage for --export-to-ps. Removed call to
19916 g_log_set_always_fatal().
19919 * app/disp_callbacks.c
19921 (i18n) Removed gettext from some debugmessages.
19924 Small fix in GNOME-menus. Added warning that will help track
19925 problems with translations.
19928 (i18n) Updated swedish translation.
19930 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
19935 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
19941 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
19944 (i18n) Updated the danish translation.
19945 From Lars R. Clausen.
19947 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
19950 (i18n) The popup menu is translated now.
19953 (i18n) Updated swedish translation.
19955 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19957 * Released Dia 0.40
19958 Tag called DIA_0_40
19961 Updated for new release
19963 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19965 * objects/network/bus.c:
19966 Added initialization of properties dialog to NULL.
19968 * app/commands.c (edit_cut_callback):
19969 Update menu sensitivity when cut object.
19971 * app/modify_tool.c (click_select_object):
19972 * app/modify_tool.c (modify_button_release):
19973 Call diagram_update_menu_sensitivity() when
19974 selecting objects to update stuff that depends
19975 on selected/not selected.
19977 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19980 Change order of subdir so that libintl.a builds.
19981 Now passed make distcheck.
19983 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19985 * lib/font.c (init_x11_font):
19988 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19990 * objects/UML/pixmaps/classicon.xpm:
19991 * objects/UML/classicon.c:
19992 * objects/UML/uml.c:
19993 Added the class stereotype icon objects.
19996 Changed default ps extension from .ps to .eps.
19998 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20001 Added diamenu.h and intl.h
20006 * objects/UML/pixmaps/Makefile.am:
20009 * objects/standard/pixmaps/Makefile.am:
20012 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20015 Use a scalable font before fixed when real font not found.
20020 * objects/standard/image.c:
20021 Better handling of loading/saving of images.
20024 Added some text about cvs, fonts and rewrote some parts.
20027 Updated with new stuff.
20030 Bump up version number to 0.40.
20032 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20035 Moved diagram_add_ddisplay() call into new_display().
20036 Fixed new_display to not use uninitialized variables
20037 causing loaded files to show up as black (or garbage).
20041 Removed unneeded calls to diagram_add_ddisplay().
20043 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20045 * objects/UML/lifeline.c:
20047 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20049 * objects/UML/message.c:
20050 Fixed bug loading messages with null-text.
20051 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20053 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
20056 Updated swedish translation.
20059 (GNOME) Removed help-browser from help menu. Fixed typo.
20062 (GNOME) Accelerators in diagrams should work now.
20064 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
20069 * app/disp_callbacks.c
20073 * app/preferences.c
20075 * lib/diagramdata.c
20081 * objects/network/*.c
20082 * objects/standard/*.c
20083 * po/update_pofiles_in.sh
20085 More i18n. All strings (expect rare debug messages) can be
20086 translated now. Moved intl.h from app to lib. Updated
20087 update_pofiles_in.sh to check all .c-files.
20089 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
20091 * app/disp_callbacks.c (ddisplay_canvas_events):
20092 Don't drop keys while num-lock, scroll-lock etc is on.
20094 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20096 * app/render_eps.c (draw_image):
20097 Fixed exporting of images.
20098 Still not perfect, but not outright buggy.
20100 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20104 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
20107 Added $* to the dia call in run_dia.sh
20109 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20112 Added color_equals() call.
20114 * objects/standard/arc.c:
20115 * objects/standard/line.c:
20116 Don't save unneccesary data.
20118 * objects/standard/box.c:
20119 * objects/standard/ellipse.c:
20120 * objects/standard/image.c:
20121 * objects/standard/polyline.c:
20122 * objects/standard/zigzagline.c:
20123 Share properties dialog.
20124 Don't save unneccesary data.
20126 1999-03-22 Seth Alves <alves@hungry.com>
20131 small changes so that gnome menus aren't broken
20133 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20136 Added danish translation from lrclause@cs.uiuc.edu.
20141 * po/update_pofiles_in.sh:
20142 Added script that updates POFILES.in.
20143 This should probably be run automatically from somewhere.
20145 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
20147 * app/diagram.[ch]:
20148 Added function diagram_update_menu_sensitivity() which
20149 sets the sensitivity of some menu items. This function
20150 is called at each diagram state change (from diagram_modified()).
20151 This is needed because otherwise the keyboard accelerators
20152 don't work correctly.
20154 * app/display.[ch]:
20155 Changed display_set_menu_sensitivity() to display_update_menu_state().
20156 Moved lots of code to diagram_update_menu_sensitivity() in
20157 diagram.c. Optimized to only look up menu-items from path:s once.
20159 * app/disp_callbacks.c:
20161 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
20162 Need to set GDK_FOCUS_CHANGE_MASK.
20164 * app/create_object.c:
20165 Call diagram_modified when an object has been created and
20166 selected so that the menu sensitivity is updated.
20169 removed menus_set_sensitive() and menus_set_state(). Exported
20170 renamed function menus_get_item_from_path().
20172 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
20174 * app/disp_callbacks.c:
20175 Show (empty) object menus on object that has none.
20176 Show title on object menus.
20179 Set zoom factor correctly when opening new displays.
20180 Better setting of scrollbars.
20184 Some reformating cleanup.
20187 Added title to object menus.
20190 Added object menu method (NULL-valued) to all objects.
20192 * objects/standard/polyline.c:
20193 Added title to object menu.
20195 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
20197 * app/preferences.[ch]:
20198 New files. Implements the preferences dialog and
20199 loading/saving of ~/.diarc.
20202 Added preferences.[ch].
20205 Load preferences on startup.
20207 * app/commands.[ch]:
20208 Added file_preferences_callback to show the preferences dialog.
20210 * app/create_object.c:
20211 Update extents when creating object.
20212 Use the reset_tools_after_create preferences setting.
20215 Use preferences when creating new display.
20218 Add preferences to menu.
20221 * app/layer_dialog.c:
20222 * app/properties.c:
20223 Don't allow shrinking of dialog.
20224 Add i18n of some strings.
20226 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
20228 Norwegian translation added.
20230 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
20232 * objects/standard/line.c:
20233 * objects/standard/arc.c:
20234 * objects/standard/polyline.c:
20235 * objects/standard/zigzagline.c:
20236 Loading of arrow data fixed.
20238 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
20241 Update extents when saving and exporting to postscript.
20242 Fixes a bug with postscript bounding-box being wrong.
20245 Changed border width from 5 to 2.
20248 Move grouped objects by the move-point of the first object.
20249 Fixes bug that made all objects in the group be off-grid
20250 when moving the group, even though all objects was on-grid.
20252 * app/layer_dialog.c:
20253 Update extents when changing layer.
20255 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20257 * objects/UML/uml.c:
20258 * objects/UML/component.c:
20259 * objects/UML/pixmaps/component.xpm:
20260 Added the UML component object
20262 1999-03-04 Seth Alves <alves@hungry.com>
20264 * objects/UML/generalization.c (generalization_create): avoid
20265 math on uninitialized genlz->text_width (NaN causes sigfpe)
20267 * objects/UML/realizes.c (realizes_create): same
20269 * objects/UML/dependency.c (dependency_create): same
20271 1999-03-01 Seth Alves <alves@hungry.com>
20273 * app/display.c (ddisplay_active): don't fly a warning panel
20274 if ddisplay_active is called when no views are open.
20276 * app/commands.c (set_default_file_selection_directory): set
20277 file selector's default directory if there is already
20280 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20283 New info about imlib requirements.
20286 Added lib/pixmaps/Makefile to created makefiles.
20290 Change from obsoleted to newer gtk calls.
20293 Pass filename of the diagram when loading and saving.
20294 This creates better oportunities to handle filename saving.
20297 Pass filenames to load and save methods.
20299 * lib/dia_image.[ch]:
20300 Added dia_image_get_broken() call that returns a image which
20301 is used for 'broken' images.
20303 * lib/pixmaps/.cvsignore:
20304 * lib/pixmaps/Makefile.am:
20305 * lib/pixmaps/broken.xpm:
20306 New files for the broken image bitmap.
20309 Fixed bug with double destroyed filedialog.
20312 Updated load and save prototypes to use the new filename argument.
20315 Render broken image instead of line when got no image.
20316 Use the new filename in load and save to save (if possible)
20317 relative pathnames and to better try to find loaded images.
20319 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20322 Some updates to the todo file.
20326 Place over/place over => sent to back/bring to front.
20327 Added some keyboard shortcuts to menus.
20329 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20332 Changed string saving/loading to a new method. This should
20333 be much better att handling &,<,> and whitespaces.
20334 Loading strings of the old kind is still supported for backwards
20337 * samples/ER-demo.dia:
20338 * samples/UML-demo.dia:
20339 Updated to use the new strings.
20342 statusbar modified update fix.
20344 1999-02-27 Seth Alves <alves@hungry.com>
20346 * app/app_procs.c (app_init): added a --export-to-ps option
20347 which will cause dia to load a dia file and save it as ps
20348 and then exit. this is a little bogus, because it still
20349 pops up a window. this option only shows up if --enable-gnome
20352 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20353 menu when built with --enable-gnome
20355 * app/interface.c (create_display_shell): build status bar
20356 even if --enable-gnome is used
20358 * app/menus.c: menu fixes for --enable-gnome
20360 * app/commands.c (file_open_dialog_ok_callback): fixed up
20361 menus when --enable-gnome is used
20362 (file_export_to_eps_callback): set a default file name
20363 when dialog is created
20365 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
20367 * objects/UML/association.c (association_create):
20368 Fixed usage of not initialized variable.
20369 Pointed out by Seth Alves <alves@hungry.com>.
20371 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
20374 Fixed detection of gnome-xml.
20375 From Valtteri Vuorikoski <vuori@k.notcom.org>.
20378 Fixed error detection on dlsym calls.
20379 From Valtteri Vuorikoski <vuori@k.notcom.org>.
20381 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
20383 * objects/UML/message.c (fill_in_dialog):
20386 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20388 * objects/standard/zigzagline.c:
20389 * objects/standard/polyline.c:
20390 * objects/standard/line.c:
20391 * objects/standard/arc.c:
20395 Support for sizeable arrows.
20397 * objects/standard/box.c:
20398 * objects/standard/ellipse.c:
20399 * objects/standard/image.c:
20400 Changed creation handle to lower-right.
20401 Transparent box/ellipse.
20403 * objects/standard/image.c:
20404 Better layout of properties boxes.
20406 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20408 * objects/UML/message.c (fill_in_dialog):
20409 Fixed dialog fill in. Common dialog for all messages.
20411 * objects/UML/object.c:
20412 Added multiple instance. Dialog related bugs fixed.
20413 Common dialog for all instances. Completed copy and destroy.
20415 * objects/UML/lifeline.c (lifeline_load):
20416 Conn initialization bug fixed and few bad loading prevention flags.
20417 Common dialog for all lifeline objects.
20419 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20421 * lib/dia_image.[ch]:
20422 More work on the DiaImage abstraction.
20425 * app/render_eps.c:
20426 * app/render_gdk.c:
20427 * objects/standard/image.c:
20428 Use the new DiaImage calls.
20430 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20434 Reversed the meaning of align horizontal/vertical.
20436 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20438 * app/load_save.c (diagram_load):
20439 Statusbar update fix.
20441 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20443 * app/interface.c (create_display_shell):
20444 Fixed status bar size.
20446 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20448 * lib/dia_image.[ch]:
20449 Added extern declaration for dia_image_release.
20450 Removed dia_image_draw, as it's not neseccary.
20452 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20454 * app/object_ops.c:
20456 Added equal distance alignment both vertical and horizontal.
20458 * objects/UML/object.c:
20459 Added a couple of attributes to load/read that were missing.
20461 * objects/UML/lifeline.c:
20462 Better handling of handles. Fixed another bug I forgot to add
20465 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
20467 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20469 * lib/dia_image.[ch]:
20471 New files. DiaImage wraps the GdkImlibImage.
20474 * app/render_eps.c:
20475 * app/render_gdk.c:
20476 * lib/render_store.[ch]:
20477 * objects/standard/image.c:
20478 Use the new DiaImagetype.
20481 Removed unused variable to eliminate warning.
20483 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
20485 * objects/standard/box.c:
20486 Added rounded corners on the box object.
20488 * lib/widgets.[ch]:
20489 Updated the DiaFileSelector widget.
20491 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20493 * objects/UML/object.c (objet_draw):
20494 Completed underlining of all object name lines.
20496 * objects/UML/message.c (fill_in_dialog):
20497 Fixed a bug that filled incorrectly the message's dialog.
20499 * objects/UML/lifeline.c (lifeline_load):
20500 Some cleanning and fixed a couple of bugs that caused
20501 crashes after reading diagrams with lifelines.
20504 Added flags to prevent crash with void strings
20506 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20507 * app/display.[ch]:
20508 Added statusbar to the display widget. Currently shows the zoom
20509 factor and modified flag of the viewed diagram. The statusbar is
20510 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20511 This caused the following additions:
20513 * app/diagram.[ch]:
20514 Added function diagram_set_modified. Calls
20515 ddisplay_update_statusbar for all displays showing the modified diagram.
20516 Changed diagram_modified to call diagram_set_modified.
20519 Added the creation of the statusbar.
20522 diagram_save now calls diagram_set_modified instead of setting
20523 dia->modified. Needed to force call to display_update_statusbar
20526 Changed the way view_show_all works. Now calls ddisplay_zoom
20527 instead of directly setting the zoom_factor, so the zoom factor is
20528 correctly shown in the statusbar.
20531 Fixed rubberband zoom to use ddisplay_zoom().
20533 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
20536 Rudimentary GNOME session management.
20538 * app/disp_callbacks.c
20542 GNOME menus. Problems:
20543 Callbacks doesn't get user_data.
20544 Weird warnings when creating popup menus.
20545 menus_set_sensitive(), menus_set_state() doesn't work.
20547 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20550 Add AM_PATH_GDK_IMLIB() call.
20553 Add gdk_imlib to linking flags.
20557 Print library-loading error messages on stdout too.
20560 Add standard image to toolbox.
20562 * app/render_eps.c:
20563 Set a more reasonable dot length. Fixed
20564 missing initialization of dot length.
20565 Added draw_image methods.
20567 * app/render_gdk.c (new_gdk_renderer):
20568 Dot a bit wider. Looks good in normal mode now.
20570 * objects/standard/image.c:
20571 * objects/standard/pixmaps/image.xpm:
20572 New files. Standard object for images.
20574 * app/render_eps.c (set_linestyle):
20575 * app/render_gdk.c (set_linestyle):
20576 * lib/widgets.c (dia_line_style_selector_init):
20578 New line style DOTTED.
20581 * lib/render_store.c:
20582 Change DrawImage call to use gdk_imlib.
20584 * lib/widgets.[ch]:
20585 Added widgets for selecting files.
20586 Added dotted to the linestyle selector.
20588 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
20590 * objects/network/printer.c:
20591 * objects/network/network.c:
20592 * objects/network/pixmaps/printer.xpm:
20593 * objects/network/.cvsignore:
20594 * objects/network/Makefile.am:
20595 * objects/network/pixmaps/Makefile.am:
20596 New printer object in network.
20597 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20600 Added known XML bug.
20602 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
20606 Reverted back from #include <gnome-xml/tree.h> to
20607 #include <tree.h> as this is fixed by the xml-config program.
20608 The former way broke for some people.
20609 Reported by blizzard@redhat.com.
20611 * objects/UML/lifeline.c:
20612 * objects/UML/message.c:
20613 * objects/UML/object.c:
20614 Removed some warnings.
20616 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20618 * objects/UML/lifeline.c:
20619 Fixed connection points over the life line when the focus of
20620 control is not drawn.
20622 * objects/UML/message.c:
20623 Now a recursive message can be freely resized using the handles.
20625 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20627 * objects/UML/lifeline.c:
20628 Added connection points.
20629 Added properties dialog with the option to draw/hide focus of control
20630 box and destruction mark.
20632 * objects/UML/object.c:
20633 Added properties dialog and stereotype, explicit state and attributes.
20634 It's also possible to mark the object as active.
20636 * objects/UML/pixmaps/object.xpm:
20639 * objects/UML/message.c:
20640 Added "recursive" message type (was not necessary to use OrthConn).
20642 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
20644 * objects/standard/arc.c:
20645 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20647 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
20649 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20653 Update xml includes to gnome-xml/*.h.
20655 * objects/standard/arc.c:
20656 Only one property dialog per type.
20657 Fix arrows directions.
20659 * objects/standard/box.c:
20660 * objects/standard/ellipse.c:
20661 * objects/standard/textobj.c
20662 Added default properties dialog.
20665 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20667 * objects/UML/Makefile.am:
20668 * objects/UML/uml.c:
20669 * objects/UML/lifeline.c:
20670 * objects/UML/object.c:
20671 * objects/UML/message.c:
20672 * objects/UML/pixmaps/lifeline.xpm:
20673 * objects/UML/pixmaps/object.xpm:
20674 * objects/UML/pixmaps/message.xpm:
20675 Added 3 new UML objects for dynamic modeling. To avoid internal
20676 conflicts, the name "objet" is used for object "object".
20679 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20682 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
20684 * app/display.[ch]:
20685 * app/modify_tool.c:
20686 Added autoscrolling while doing rubber-band select.
20687 This patch from Matthias Köster
20688 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20691 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
20693 * app/defaults.[ch]:
20694 New files, deals with default properties dialog.
20697 New file. Contains definitions for the new object menu.
20699 * lib/poly_conn.[ch]:
20700 New file. Base class for poly-line like objects.
20702 * objects/standard/polyline.c:
20703 * objects/standard/pixmaps/polyline.xpm:
20704 New files. Polyline object.
20707 Fixed bug with infinite loop when registering sheets.
20710 Removed unneccesary stuff.
20712 * app/disp_callbacks.c:
20713 Support for object menus.
20716 Added polyline to toolbox.
20717 Added call to tool_options_dialog_show() when double clicking on
20721 New function tool_options_dialog_show() for tool properties.
20727 Added ObjectType methods for handling object default dialogs.
20728 Added Object method for handling object_menu.
20729 Added unused methods to ObjectTypeOps for future binary
20732 * lib/widgets.[ch]:
20733 Added DiaArrowTypeSelector widget.
20735 * objects/standard/arc.c:
20736 * objects/standard/zigzagline.c:
20737 Added support for default properties.
20739 * objects/standard/line.c:
20740 Added support for default properties.
20741 Just use one properties dialog for all line objects. NOTE: This
20742 seems to have a bug. We're working on it.
20744 * standard/standard.c:
20745 Add the polyline object.
20747 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
20749 * app/modify_tool.c:
20750 Commented out buggy transitive select function. It wasn't really
20751 meant to go into cvs.
20754 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
20766 Swedish translation. Not completed.
20770 Added possibility to enable GNOME specific code with configure.
20773 Added possibility to set debug level with configure.
20776 Added about dialog.
20782 Added some GNOME specific code. Not ready for use.
20784 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
20787 Added text about needing gtk 1.1.13 and gnome-xml.
20790 Described changes since last version (0.20).
20792 Released version 0.30, tagged DIA_0_30.
20794 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
20796 * app/magnify.c (magnify_button_release):
20797 Fixed a problem when zooming in on a very small box would
20798 not release the grabbed pointer-focus.
20800 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
20802 * app/load_save.c (diagram_load):
20803 Be somewhat more robust when loading files that
20806 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
20810 * objects/UML/uml.c:
20811 * objects/network/network.c:
20812 * objects/standard/standard.c:
20813 Added versioning of object libraries.
20815 * app/create_object.c:
20816 Don't change tool when an object is created.
20818 * objects/network/network.c:
20823 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
20826 Updated gtk requirement to Gtk+ 1.1.13.
20829 Always add one screenful of scrolling space on
20830 each side of a diagram window.
20832 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
20835 Tell automake to auto-install missing files.
20838 Renamed deprecated Gtk+ function.
20840 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
20844 * samples/Makefile.am:
20845 * samples/ER-demo.dia:
20846 * samples/UML-demo.dia:
20847 Added samples directory.
20848 Added samples for ER and UML.
20851 * app/disp_callbacks.c:
20853 Zoom is done by sqrt(2) instead of 2.
20854 Lots of more zoom options in the menu.
20856 * objects/ER/relationship.c:
20857 Relationships have 8 connectionpoints instead of 4.
20859 * objects/UML/class.c:
20860 UML class name font a bit smaller.
20861 Fixed stupid bug in the copy operation.
20864 Displays are opened at 500x400 instead of 256x256.
20867 Fixup of internal error message.
20869 * app/color_area.c:
20871 * app/modify_tool.c:
20873 Removed debug printf's.
20876 Added new known bug.
20878 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
20882 Fixed so accelerator groups work in all windows.
20883 Updated to new gtk function names.
20889 Updated to new gtk function names.
20890 Set sensitivity of the align menu items.
20892 * objects/ER/pixmaps/Makefile.am:
20893 * objects/UML/pixmaps/Makefile.am:
20894 * objects/network/pixmaps/Makefile.am:
20895 Fix so that make dist works.
20898 * app/color_area.c:
20902 * app/layer_dialog.c:
20904 * app/object_ops.c:
20905 * app/properties.c:
20906 * lib/diagramdata.[ch]:
20908 * lib/objects/ER/attribute.c:
20909 * lib/objects/ER/entity.c:
20910 * lib/objects/ER/participation.c:
20911 * lib/objects/ER/relationship.c:
20912 * lib/objects/ER/.c:
20913 * objects/UML/actor.c:
20914 * objects/UML/association.c:
20915 * objects/UML/class_dialog.c:
20916 * objects/UML/dependency.c:
20917 * objects/UML/generalization.c:
20918 * objects/UML/large_package.c:
20919 * objects/UML/realizes.c:
20922 Updated to new gtk function names.
20925 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
20931 Fixed loading of diagrams specified as arguments.
20933 * objects/ER/attribute.c:
20934 * objects/ER/entity.c:
20936 * objects/ER/participation.c:
20937 * objects/ER/relationship.c:
20938 Updated the ER objects.
20941 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
20945 * objects/Makefile.am:
20946 * objects/ER/attribute.c:
20947 * objects/ER/entity.c:
20949 * objects/ER/participation.c:
20950 * objects/ER/relationship.c:
20951 * objects/ER/pixmaps/Makefile.am:
20952 * objects/ER/pixmaps/attribute.xpm:
20953 * objects/ER/pixmaps/entity.xpm:
20954 * objects/ER/pixmaps/participation.xpm:
20955 * objects/ER/pixmaps/relationship.xpm:
20956 * objects/ER/pixmaps/weakentity.xpm:
20957 First commit of entity relationship objects.
20958 These were done by hallon@lysator.liu.se.
20959 There are still stuff to do on these.
20961 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
20966 * app/diagram.[ch]:
20967 Change diagram_remove_all_selected to take new argument
20968 delete_empty. Empty objects are deleted only if it is TRUE.
20969 Removed call to close_eps_renderer. This is now done in end_render
20970 in the eps renderer.
20972 * app/create_object.c:
20973 * app/layer_dialog.c:
20974 Update calls to diagram_remove_all_selected.
20977 Update calls to diagram_remove_all_selected.
20978 Some code reformating.
20979 Changed order of adding updates i align_h and align_v.
20981 * app/modify_tool.c:
20982 Update calls to diagram_remove_all_selected.
20983 Added pointer grab when doing rubber-band selection, this fixes
20984 the bug when draging the box over to another window.
20986 * app/connectionpoint_ops.[ch]:
20987 diagram_update_connections_object changed to take an argument
20988 update_nonmoved. This lets connections that has not moved, but
20989 the stuff they're connected to has been moved work.
20990 Update calls to the new diagram_update_connections_object.
20992 * app/properties.c:
20993 Update calls to the new diagram_update_connections_object.
20994 Update extents when properties are applied.
20996 * app/disp_callbacks.c:
20997 Added support for zooming with the '+' and '-' keys.
21000 Removed old keyboard shortcuts for zoom.
21003 Added calls begin_render and end_render to renderer.
21004 These can be used for setup and cleanup.
21006 * lib/diagramdata.c:
21007 Added calls to begin_render and end_render in data_render.
21009 * app/render_gdk.c:
21010 Added begin_render and end_render.
21012 * app/render_eps.[ch]:
21013 Added begin_render and end_render.
21014 Moved close_eps_renderer code to end_render.
21015 Various fixes to the generated eps code. This fixes importing
21016 generated eps into LYX.
21018 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
21024 Menus for alignment updated.
21026 * app/object_ops.[ch]:
21027 Functions for object alignment updated.
21029 * app/commands.[ch]:
21030 Object alignment callbacks updated.
21031 New diagrams are called Untitled-<nr>.
21033 * app/layer_dialog.c:
21034 Active layer selected when showing layers from new
21038 Compress xml files when saving.
21039 Use xml namespace 'dia'.
21042 Minor comment update.
21044 * objects/UML/class_dialog.c:
21045 Cleanup of the gkt_list_item moving code.
21046 Fixed bug with update of operation when moving parameters.
21048 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
21050 * app/layer_dialog.[ch]:
21051 Fixed the rest of the layers dialog.
21054 Added call to redo layer dialogs diagram list when changing
21057 * lib/diagramdata.[ch]:
21058 Added data_raise_layer and data_lower_layer functions for
21059 raising/lowering layers. Added data_add_layer_at for adding a
21060 layer at a specified index.
21062 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
21064 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
21067 Added support for reading diagrams from the command line.
21069 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
21071 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
21073 * app/commands.[ch]:
21074 Added objects_align_callback().
21077 Added align objects to menu.
21079 * app/object_ops.[ch]:
21080 Add object_list_align().
21082 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
21083 * app/layer_dialog.[ch]:
21084 New files. Handles the layers dialog. Needs a bugfix for glib to
21085 work. Sent patch to gtk-list.
21087 * app/pixmaps/new.xpm:
21088 * app/pixmaps/eye.xbm:
21089 * app/pixmaps/lower.xpm:
21090 * app/pixmaps/raise.xpm:
21091 * app/pixmaps/delete.xpm:
21092 New files. Images for the layer dialog buttons.
21094 * lib/diagramdata.h
21095 * lib/diagramdata.c
21096 New files for the DiagramData and Layer structures and functions.
21099 Added call to create_layer_dialog() on startup.
21101 * app/commands.[ch]:
21102 New callbacks for showing the properties and layout dialog.
21103 Changes for the new DiagramData structure.
21105 * app/connectionpoint_ops.c:
21106 * app/cut_n_paste.c:
21107 * app/diagram.[ch]:
21108 * app/display.[ch]:
21110 * app/modify_tool.c:
21111 * app/object_ops.[ch]:
21112 * app/render_eps.c:
21114 Changes for the new DiagramData structure.
21117 * app/properties.c:
21118 Set correct wmclasses.
21121 Fix load and save of layers.
21124 Update DTD for layers.
21127 New menus for dialogs.
21133 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
21136 Removed the gtk 1.1.5 stuff.
21139 Updated gtk check to version 1.1.5.
21140 Updated version from 0.20 to 0.30
21142 * app/commands.[ch]:
21143 Updated some callbacks to be of type GtkItemFactoryCallback1.
21144 Not all are done yet, but it works anyway.
21147 Removed Gtk 1.0.0 GtkAcceleratorTable references.
21151 Update to Gtk 1.1.x functions.
21152 Use ItemFactory instead of MenuFactory.
21154 * app/render_gdk.c:
21155 Removed Gtk 1.0.0 references.
21157 * objects/UML/class_dialog.c:
21158 Scrolled window updates for Gtk 1.1.5.
21161 Removed ugly fix for gnome-xml bug. Make sure you get the
21162 newest version of gnome-xml from CVS.
21164 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
21167 Removed the xml load/save line.
21173 Removed building of files.c
21176 * lib/connection.c:
21180 * lib/render_object.c:
21181 * objects/UML/actor.c:
21182 * objects/UML/association.c:
21183 * objects/UML/class.c:
21184 * objects/UML/constraint.c:
21185 * objects/UML/dependency.c:
21186 * objects/UML/generalization.c:
21187 * objects/UML/implements.c:
21188 * objects/UML/large_package.c:
21189 * objects/UML/note.c:
21190 * objects/UML/realizes.c:
21191 * objects/UML/small_package.c:
21192 * objects/UML/uml.c:
21193 * objects/UML/usecase.c:
21194 * objects/network/bus.c:
21195 * objects/standard/arc.c:
21196 * objects/standard/box.c:
21197 * objects/standard/ellipse.c:
21198 * objects/standard/line.c:
21199 * objects/standard/textobj.c:
21200 * objects/standard/zigzagline.c:
21201 Removed all includes of files.h
21204 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
21207 Made the val property of string be implied.
21208 This makes it possible to save strings that
21209 are NULL. Just leave out val.
21211 * objects/lib/dia_xml.c:
21212 Fixed string so that it is possible to save strings
21213 that are NULL. Also made an ugly workaround of a
21214 bug in gnome-xml which removes empty properties.
21216 * objects/lib/orth_conn.c:
21217 Fixed a bug in saving. Forgot to step through the
21220 * objects/UML/association.c:
21221 * objects/UML/class.c:
21222 * objects/UML/constraint.c:
21223 * objects/UML/dependency.c:
21224 * objects/UML/generalization.c:
21225 * objects/UML/implements.c:
21226 * objects/UML/large_package.c:
21227 * objects/UML/note.c:
21228 * objects/UML/small_package.c:
21229 * objects/UML/realizes.c:
21230 * objects/UML/usecase.c:
21231 * objects/UML/actor.c:
21232 Fixed UML objects to save as xml.
21233 The last two were done by asierra@servidor.unam.mx (asierra-981204)
21235 * objects/UML/uml.[ch]:
21236 Updated *_write() and *_read() functions to use xml.
21238 * objects/network/bus.c:
21239 * objects/network/computer.c:
21240 * objects/network/disc.c:
21241 * objects/network/monitor.c:
21242 Updated network diagrams to use xml.
21244 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
21247 New file. DTD that describes the xml file format
21250 * lib/dia_xml.[ch]:
21251 New files. Support for saving object to xml files.
21256 Added check for and usage of gnome-xml library.
21259 Major chages. Now saves/loads diagrams as xml.
21262 * lib/element.[ch]:
21263 * lib/connection.[ch]:
21264 * lib/orth_conn.[ch]:
21265 * lib/render_object.[ch]:
21267 Updated object support load/save functions for xml:
21269 * object/standard/arc.c:
21270 * object/standard/box.c:
21271 * object/standard/ellipse.c:
21272 * object/standard/line.c:
21273 * object/standard/textobj.c:
21274 * object/standard/zigzagline.c:
21275 Updated all standard objects to use xml.
21278 Only the standard objects are converted right now, don't
21279 save or load uml or network diagrams yet. Also, since this
21280 is new code it is deemed a bit unstable.
21285 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
21287 * objects/UML/class.c:
21288 Changed classname font to Helvetica.
21289 Added more space above the classname
21291 * objects/UML/usecase.c:
21292 Correct placements of connectionpoints on ellipse.
21293 Better algorithm for deciding aspect ration on
21296 These changes were made by Alejandro Aguilar Sierra
21297 <asierra@servidor.unam.mx>. (asierra-981201)
21299 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
21301 * objects/UML/actor.c:
21302 Changed the extents and alignment of the element
21305 * objects/UML/.cvsignore:
21306 Added usecase.lo and actor.lo.
21308 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
21310 * objects/UML/actor.c:
21311 * objects/UML/usecase.c:
21312 * objects/UML/pixmaps/actor.xpm:
21313 * objects/UML/pixmaps/case.xpm:
21314 New files. Implements usecase and actor UML objects.
21315 These objects are done by Alejandro Aguilar Sierra
21316 <asierra@servidor.unam.mx>.
21318 * objects/UML/Makefile.am:
21319 * objects/UML/pixmaps/Makefile.am:
21320 Added usecase and actor to makefile.
21323 Added Alejandro and Jerome to autors list.
21325 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
21327 * objects/UML/class.c (umlclass_load):
21328 Fixed typo. Reported by Jerome.Abela@solsoft.fr
21330 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
21332 * app/properties.c:
21333 Update connections when doing apply in the properties window.
21335 * objects/UML/uml.[ch]:
21336 * objects/UML/class.[ch]:
21337 * objects/UML/class_dialog.c:
21338 Added connection points on both sides of attributes and
21339 operations in UML classes.
21340 Based on idea from Jerome.Abela@solsoft.fr
21342 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
21345 Some new documentation about handles and connectionpoints.
21348 Added functions object_add_connectionpoint and
21349 object_remove_connectionpoint for handling a dynamic
21350 number of connectionpoints.
21352 * objects/UML/class.c:
21353 Only reserve space for stereotype when it is shown.
21355 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21357 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
21359 * app/connectionpoint_ops.c:
21361 * app/disp_callbacks.c:
21362 * app/display.[ch]:
21364 * app/handle_ops.c:
21366 * app/modify_tool.c:
21367 * app/render_gdk.[ch]:
21369 Huge cleanup of internal rendering system.
21370 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21371 This gives a few new methods for Interactive Renderers for setting
21372 clipping regions and drawing pixel based lines and rects.
21373 Updated the rest of the code to use the new stuff.
21375 * app/render_eps.c:
21379 * objects/standard/zigzagline.c
21380 Fixed unused variable warnings.
21383 Fixedbug with stringwidth where width==0.
21388 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
21390 * lib/widgets.[ch]:
21391 Added suppot for setting the font of a
21392 DiaFontSelector widget.
21393 Also fixed some typos in the header.
21396 Added a comment about the GetPRoperties method call.
21397 You have to make sure to update widget state when
21398 this method is called. (Not all objects do this yet,
21404 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
21407 Fixed problem with height of ascent and descent for fonts.
21408 It didn't use the whole height (==ascent+descent) when calculatine
21409 ascent_ratio and descent_ratio.
21411 * objects/standard/textobj.c:
21412 * objects/standard/box.c:
21413 * objects/standard/ellipse.c:
21414 * objects/standard/line.c:
21415 * objects/standard/arc.c:
21416 Updated and added property dialogs for these objects.
21417 Also added line width/color/style to those objects
21418 that didn't have it.
21419 This change breaks fileformat compatibility for these objects.
21421 * objects/standard/zigzagline.c:
21422 Changed zigzagline to be based on OrthConn, much nicer.
21423 Also added line style and color to properties.
21424 This change breaks fileformat compatibility for zigzagline.
21427 Fixed bug in message(). Forgot a pair of '&'.
21429 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
21431 * lib/widgets.[ch]:
21432 Added DiaColorSelector widget.
21433 This is a colored button that pops up a color selection
21434 dialog when pressed.
21436 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
21438 * lib/widgets.[ch]:
21440 New files, added widgets for selecting fonts, alignment
21441 and line-style. Will be used later.
21443 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
21447 * objects/UML/Makefile.am:
21448 * objects/network/Makefile.am:
21449 * objects/standard/Makefile.am:
21450 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21451 in all Makefile.am.
21453 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
21455 * app/handle_ops.c (handle_draw):
21456 connected HANDLE_MINOR_CONTROL also becomes red.
21458 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
21461 removed -ldl from linking. This is added if needed by configure.
21464 Open dlls with RTLD_LAZY if it is defined.
21465 Some cleanups: char *error -> const char *error
21466 Added fprintf()'s to where we exited because of errors.
21469 Include <sys/types.h>
21471 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
21476 Detect dlopen better.
21477 Detect wether dlopen needs an underscore in the identifier.
21478 This code was mostly borrowed from guile.
21482 * objects/standard/standard.c:
21483 * objects/network/network.c:
21484 * objects/UML/uml.c:
21486 Changed the way sheets reference objects to use just the
21487 name. Changed module loading to a two stage model:
21488 First register_objects() is called for all modules.
21489 Then register_sheets() is called. This means that
21490 sheets can safely include objects from other modules.
21493 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
21495 * objects/network/bus.c:
21496 * objects/network/network.c:
21497 * objects/network/Makefile.am:
21498 New file bus.c. Added new object: Ethernet bus.
21500 * objects/standard/box.c:
21501 Added call to gtk_spin_button_set_numeric for linewidth spinner
21502 in property dialog.
21504 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
21506 * app/connectionpoint_ops.c:
21507 * app/create_object.c:
21509 * app/handle_ops.c:
21510 * app/modify_tool.c:
21511 * lib/connection.c:
21516 * loads of objects:
21517 Changed handle->connectable to handle->connect_type.
21518 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21519 that their connections don't break when moving objects.
21522 Always select the last handle in an object that has
21523 the closest distance.
21525 * lib/geometry.[ch]:
21526 Added rectangle_add_point function.
21529 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
21531 * app/properties.[ch]: New files. Handles the new properties
21534 * app/modify_tool.c: Changed to use new properties dialog.
21536 * app/object_ops.[ch]: Removed object_changed_callback, as it's
21537 not needed anymore. This is now handled differently in
21541 Changed the properties ops for objects. Removed typedefs
21542 ChangedObjectTime and ObjectChangedFunc needed for the old way.
21543 Added object_return_null function.
21546 * lib/render_object.c:
21548 Changed objects to use the new properties dialog.
21551 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
21553 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21556 * autogen.sh: New file. Copied from gtk and added a call to
21557 libtoolize. Anyone knows why this isn't done in gtk?
21559 * Removed autogenerated files.
21561 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
21563 * Added call setlocale(LC_NUMERIC, "C") so that formating of
21564 floating-point numbers in postscript output will be correct.
21565 * Did some cleanup of generated postscript files.