1 2006-09-27 Steffen Macke <sdteffen@gmail.com>
3 * shapes/flowchart/datasource.png:
4 * shapes/flowchart/datasource.shape:
5 * shapes/flowchart/Makefile.am:
6 * sheets/Flowchart.sheet.in:
7 * installer/win32/dia.nsi: Added new "Data source" shape
9 2006-09-24 Hans Breuer <hans@breuer.org>
11 * lib/diagdkrenderer.c : I'm going to rip out all the Freetype
12 code the next time the GDK only compile breaks
14 2006-09-23 Hans Breuer <hans@breuer.org>
16 * app/commands.c app/create_object.c app/disp_callbacks.c : add
17 missing #include "lib/parent.h"
19 * lib/makefile.msc : build textline.obj
21 * objects/makefile.msc : don't build newgroup.obj
22 * objects/misc/libmisc.c : with newgroup gone to app/ newgroup_type can
23 not be registered from the module any longer - at least not on win32
25 * plug-ins/python/makefile.msc : removed obsolete references to
26 Python 1.5, also removed misleading link to Python 2.2 debug build
28 * app/diagram.[ch] app/app_procs.c : don't use C++ keyword 'virtual'
29 as variable name: s/virtual/is_default/
31 * plug-ins/python/*.c : don't mix PyObject_NEW() with PyMem_DEL()
32 Newer versions of Python (2.5) are not tolerant about this anymore.
34 2006-09-11 Lars Clausen <lars@raeder.dk>
36 * lib/diasvgrenderer.c (draw_text_line): First stab at making svg
37 text line renderer, doesn't work yet.
39 * lib/textline.c (text_line_draw): Removed #define.
41 * lib/diagdkrenderer.c (draw_text_line): Slight cleanups.
43 2006-09-11 Steffen Macke <sdteffen@gmail.com>
45 * plug-ins/vdx/vdx-export.c:
46 * plug-ins/vdx/vdx-import.c:
47 * plug-ins/vdx/vdx-xml.c:
49 * plug-ins/vdx/visio-types.h: Update to version 0.5 (from 0.4) of
50 Visio import, thanks to Ian Redfern, who states:
52 This is the first version to support export to VDX - for now, just
53 straight lines and text, but I'm working on the more complex bits.
54 It currently writes Visio 2002 VDX as a lowest common denominator,
55 but that won't handle Beziers, so when I get round to converting them
56 to NURBS, only Visio 2003 users will be able to import them.
58 There are also several improvements to import, both to fix the layout
59 and clean up the code, and it can now import embedded bitmaps - as Dia
60 needs them to be separate files, it puts them in /tmp (or wherever
61 tempnam() goes to on your system). Alternative suggestions are welcome.
62 NURBS import still doesn't work, but everything else seems pretty
65 In addition, two small adjustments to compile on Windows
67 2006-09-08 Steffen Macke <sdteffen@gmail.com>
71 * app/dia-win-remote.c:
72 * installer/win32/dia.nsi: From Windows Explorer, open .dia files in the
73 running Dia instance (if possible). Fixes bug #70718
75 2006-09-05 Lars Clausen <lars@raeder.dk>
78 * lib/Makefile.am (libdia_la_SOURCES):
79 * lib/diarenderer.[ch]:
81 * lib/diagdkrenderer.c:
82 * lib/textline.[ch]: TextLine now ready for commit. Rendering
83 with it is much faster and significantly more precise than
84 without. All renderers should implement a good definitions for
85 this (though there is a default one that uses draw_string), as it
86 can tell the expected width of a string.
88 * lib/libdia.def: Newly defined functions.
90 2006-08-29 Lars Clausen <lars@raeder.dk>
92 * lib/textline.[ch]: New text rendering level: A self-contained
93 single-line text object that allows safer caching and hopefully
94 more accurate rendering at various zooms. Using a PangoMatrix
97 * lib/font.c: Removing out-deffed layout cache code, it'll never
98 work. Also a couple support functions for my quest of good zoom.
100 2006-08-20 Hans Breuer <hans@breuer.org>
102 * plug-ins/cairo/diacairo.c : get rid of c++ coment
103 * app/diagram.h app/diagram.c app/modify_tool.c app/select.c
104 app/undo.c : reverted 'Shortened diagram_unselect'. It broke
105 plug-ins/python, but more iomportant made one function fromm
106 app/diagram.h asymmetric with all the others. We should not leave
107 the common C OO-pattern of passing an explicit "this pointer" just
108 because that can also be deduced from the other object.
110 2006-08-18 Lars Clausen <lars@raeder.dk>
112 * lib/render.[ch]: Finally removed unused render files now known
115 2006-08-17 Steffen Macke <sdteffen@gmail.com>
117 * installer/win32/dia-diagram.ico:
118 * installer/win32/dia.nsi: Assign icon to *.dia files
120 2006-08-16 Lars Clausen <lars@raeder.dk>
122 * app/diagram.c (diagram_load):
123 * lib/object.c (dia_object_is_selectable): Two silly null-pointer
124 errors detected by Michael Duelli <m.duelli@web.de>
126 2006-08-16 Steffen Macke <sdteffen@gmail.com>
129 * app/undo.c: Include parent.h
130 * lib/libdia.def: Include dia_object_is_selectable()
132 2006-08-13 Lars Clausen <lars@raeder.dk>
134 * objects/Misc/libmisc.c:
135 * {app,objects/Misc}/Makefile.am:
136 * objects/Misc/newgroup.c:
137 * app/newgroup.c: Moved newgroup.
142 * app/select.c: Trim diagram_unselect_object() to the one required
146 * app/interface.c (dia_dnd_file_drag_data_received):
147 * app/recent_files.c (open_recent_file_callback):
148 * app/filedlg.c (file_open_response_callback):
149 * app/diagram.c (diagram_load):
150 Make the diagram created at start-up be a virtual diagram that
151 if unchanged is filled in by the first opened diagram, like Gnumeric.
153 2006-08-11 Lars Clausen <lars@raeder.dk>
155 * app/properties.c (properties_give_focus): Give focus to first
156 thing in a properties dialog. Still need our own compound widgets
159 2006-08-06 Lars Clausen <lars@raeder.dk>
161 * objects/Misc/newgroup.c:
166 * lib/object.[ch]: Work towards a more reasonable definition of
169 2006-08-06 Steffen Macke <sdteffen@gmail.com>
171 * installer/win32/dia.nsi: Save diagrams by default in "My Pictures";
174 2006-08-04 Steffen Macke <sdteffen@gmail.com>
176 * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm
177 newgroup.xpm , *ui.xml files
179 2006-08-03 Lars Clausen <lars@raeder.dk>
181 * sheets/Makefile.am: EML sheet taken out since it's been empty
182 for five years anyway. Fixes bug #347894.
186 * doc/en/usage-layers.xml: Fixed obsolete references to
187 export-to-format. Fixes bug #346510.
189 2006-08-02 Lars Clausen <lars@raeder.dk>
191 * plug-ins/vdx/visio-types.h:
192 * plug-ins/vdx/vdx.h:
193 * plug-ins/vdx/vdx-xml.c:
194 * plug-ins/vdx/vdx-import.c:
195 * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of
196 Visio import, thanks to Ian Redfern, who states:
198 Version 0.4 does a passable job with curves, and has the first
199 implementation of Masters. It also handles XForm1D, and fixes a
200 potential crash. It gets some layers in the wrong order and still
201 has some major positioning and sizing issues.
203 Version 0.3 gets object layout correct, and does a better job of
204 text, lines, arrows, layers etc. Some diagrams (that don't contain
205 curves) now render pretty much correctly.
207 2006-07-16 Hans Breuer <hans@breuer.org>
209 * app/cut_n_paste.[hc] : maintain a generation counter to count
210 how many times the stored object list is used
211 * app/commands.c : use the generation for paste placement. The
212 first one after cut is not moved at all: a nice way to move objects
213 between layers without changing their lateral position.
214 Also sprinkled some diagram_update_extents()
216 * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080
218 * app/recent_files.c : don't g_return_if_fail() on common use case,
219 here an empty recent file list
221 * lib/dia_image.c(dia_image_draw) : don't try to draw anything if
222 width or height is smaller than 1 pixel
224 * plug-ins/cairo/diacairo.c : allow to export to svg if available
225 with cairo. Some tweaking of surface sizes.
227 2006-07-12 Lars Clausen <lars@raeder.dk>
229 * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
231 2006-06-28 Lars Clausen <lars@raeder.dk>
233 * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
236 2006-06-25 Hans Breuer <hans@breuer.org>
238 * app/display.c : avoid to call gettext on parameters for ngettext()
239 Should finally really fix bug #344896
241 * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
242 removed expand="yes" because otherwise the files can't be read with
243 gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
244 * app/menus.c app/Makefile.am : also find the ui files when run from
247 2006-06-17 Gintautas Miliauskas <gintas@akl.lt>
249 * configure.in: Added lt to ALL_LINGUAS.
251 2006-06-15 Hans Breuer <hans@breuer.org>
253 * app/display.c : use ngettext() for possible plural variations.
254 (Bug #344896, tokul@users.sourceforge.net)
256 * objects/UML/class.c : use g_list_append() rather than prepend
257 when copying attributes, operations, formalparams. Fixes bug #342902
258 Also removed some superfluous outcommented code and fixed a warning.
260 * objects/UML/class.c : dont break reading comment_line_length
261 by misguide compatibility code. Fixes bug #341887
263 * plug-ins/vdx/vdx-xml.c : added file missing from 0.3
264 version commit. Fixes bug #344804
266 * lib/create.h : add create_standard_group() prototype
267 * lib/libdia.def lib/makefile.msc objects/makefile.msc
268 plug-ins/makefile.msc : added missing (files|exports)
270 2006-06-13 Lars Clausen <lars@raeder.dk>
272 * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
273 again to Ian Redfern.
275 2006-06-12 Elijah Newren <newren gmail com>
277 * autogen.sh: Run configure by default, allow it to be skipped if
278 NOCONFIGURE is set in the environment. #344574.
280 2006-06-12 Elijah Newren <newren gmail com>
282 Pair of build fixes. #344357
284 * Makefile.am: avoid cp errors when $(srcdir) == .
286 * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
287 pixmaps/group.xpm as the latter doesn't exist.
289 2006-06-12 Hans Breuer <hans@breuer.org>
291 * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
292 which adds support for Java and inheritance. Closes bug #344187
294 2006-05-28 Lars Clausen <lars@raeder.dk>
296 * sheets/Misc.sheet.in:
297 * objects/Misc/Makefile.am (EXTRA_DIST):
298 * objects/Misc/pixmaps/newgroup.xpm:
299 * objects/Misc/newgroup.c:
300 * objects/Misc/libmisc.c: Start of new group model, with "visible"
301 object to test with. This object will later become the default
302 group object and thus (mostly) invisible.
304 * lib/parent.c (parent_handle_move_in_check):
305 * app/create_object.c (create_object_button_press):
306 * app/diagram.c (diagram_unparent_children_selected):
307 * app/disp_callbacks.c (ddisplay_drop_object):
308 * app/load_save.c (write_objects):
309 * objects/network/radiocell.c (radiocell_create):
310 * objects/AADL/aadlbox.c (aadlbox_create):
311 * objects/UML/large_package.c (largepackage_create):
312 * objects/UML/component.c (component_create):
313 * lib/object.[ch]: DiaObject API change: DiaObject now has gint
314 flags rather than gboolean can_parent, and utility function
315 object_flags_set. Uses of can_parent changed to call to function.
317 * doc/en/dia.dbk: Removal of obsolete epsi references.
319 2006-05-27 Hans Breuer <hans@breuer.org>
321 * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator
322 '<control>+': it wants '<control>plus', same for minus.
324 * tests/exports/cgm/* : cvs admin -kb *.cgm
325 tests/exports/png/* tests/exports/png-libart/*
326 tests/exports/shape/* : cvs admin -kb *.png
327 tests/exports/wpg/* : cvs admin -kb *.wpg
328 mark binary files as such to not get them broken on platforms which
329 insist on replacing line-ends.
331 * app/app_procs.c app/display.c app/filedlg.c app/interface.c
332 app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
333 plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
334 plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
335 as well. Patch from Hans de Goede, bug #342111
337 2006-05-27 Rob Staudinger <robert.staudinger@gmail.com>
343 * objects/standard/Makefile.am:
344 * plug-ins/python/Makefile.am:
345 Fix out of tree build (#340115).
347 2006-05-25 Hans Breuer <hans@breuer.org>
349 * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
350 to action_name. Don't mark action names for translation. It is not
351 needed and some languages don't support CamelCase. Fixes bug #342895
353 * app/menus.c : re-added a bunch of accelerators lost in translation
354 to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
355 it was not available with gtk+-2-6-x.
356 Use dia_get_data_directory() instead of hardcoded UIDATADIR.
357 * app/dia_embedd.c : explain instead of out-comment
359 * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c
360 lib/properties.h dia_xml.c : warningectomy
362 * lib/create.h : create_standard_group()
363 * lib/libdia.def lib/makefile.msc : reflect moved stuff
365 2006-05-25 Lars Clausen <lars@raeder.dk>
367 * tests/exports/*.dia: A set of test diagrams for export
368 plug-ins. The intention is to use these for regression tests by
369 ensuring that they don't change when code is altered, or if they
370 change that a manual inspection proves them ok. The fact that an
371 export plug-in passes these tests doesn't mean it's perfect, just
372 that is hasn't degraded.
374 * plug-ins/xfig/xfig-import.c:
375 * plug-ins/vdx/vdx-import.c:
376 * lib/create.[ch]: Functions taken from xfig to create some
377 standard objects easily. Uses of them updated, no longer need to
380 * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
381 Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>. Also a bunch of
382 samples for the purpose from the vdxtosvg project.
384 2006-05-21 Hans Breuer <hans@breuer.org>
386 * app/interface.[hc] app/disp_callbacks.c : removed unused
387 global variable popup_shell
389 * app/pagesetup.c app/diapagelayout.c : restrict every page margin
390 to a little less than half of the page. This guarantees margins
391 leaving some useable page area and thus avoids crashing on negative
392 page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
394 2006-05-20 Hans Breuer <hans@breuer.org>
396 Patch from Robert Staudinger to base dia menus on GtkAction framework
397 instead on deprecated GtkItemFactory. Tracked in bug #340352.
398 En passant fixes bug #171397
399 * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
400 * Makefile.am : added data dir
401 * app/Makefile.am : added $(uidatadir)
402 * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
403 app/diagram_tree_window.c app/diagram_tree_window.h
404 app/disp_callbacks.c app/display.c app/display.h
405 app/interface.c app/menus.c app/menus.h app/recent_files.c :
406 changed a bunch of callback signatures to take GtkAction
407 * app/pixmaps/Makefile.am
408 * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
409 data/popup-ui.xml : new files containing the menu structure
410 * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
411 registration change to be more appropriate for actions
412 * lib/libdia.def : updated externals
413 * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
414 plug-ins/python/group_props.py plug-ins/python/gtkcons.py
415 plug-ins/python/otypes.py plug-ins/python/pydiadoc.py
416 plug-ins/python/scascale.py plug-ins/python/select_by.py :
417 adapted to API change dia.register_callback to dia.register.action
419 * app/authors.h : added Robert to the authors
420 * app/commands.c : got rid of compiler warnings
422 2006-05-14 Hans Breuer <hans@breuer.org>
424 * plug-ins/python/python.c : protect the plug-in against
425 initializing if Python already is initialized. This PyDia extensions
426 is designed for embedding Python.
428 * plug-ins/python/pydia-property.c : LineStyle.dash may be either
431 * plug-ins/python/diasvg_import.py : remove FontSize debug spew
433 * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
434 setup use the pango context matching the display. Otherwise fallback
435 to a context from PangoWin32 (matches only for gtk+-2-6, not the one
436 used since gtk+-2-8 using cairo.
438 2006-05-13 Hans Breuer <hans@breuer.org>
440 [ also applied to branch dia-0-95 ]
441 * objects/UML/umloperationc: add "query" to umloperation_offsets.
442 Patch from Peter Allin, fixes bug #338336
444 [ also applied to branch dia-0-95 ]
445 * app/diagram.c(diagram_ungroup_selected) : operate on a copy
446 of data-Selected cause the original is modified during use.
447 Patch from Victor Stinner, fixes bug #334771
449 * configure.in config.h.win32 : development started again so 095+cvs.
450 Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1
453 * app/diagram.c : removed long-time outcommented code
455 * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
456 lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
458 * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
459 it is handled everywhere else just fine.
461 2006-04-19 Lars Clausen <lars@raeder.dk>
463 * installer/win32/dia.nsi:
471 * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
472 from Nick Moore <shiny.nickel@gmail.com>.
474 2006-04-17 Kjartan Maraas <kmaraas@gnome.org>
476 * configure.in: Remove obsolete entry for no_NO
477 * po/no.po: And the translation.
479 2006-04-12 Lars Clausen <lars@raeder.dk>
481 * installer/win32/dia.nsi:
489 * configure.in: Check for xgettext. Apparently
490 AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
492 2006-04-04 Steffen Macke <sdteffen@gmail.com>
494 * installer/win32/dia.nsi:
495 * installer/win32/langmacros.nsh:
496 * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
499 2006-04-03 Lars Clausen <lars@raeder.dk>
501 * installer/win32/dia.nsi:
509 * plug-ins/xfig/xfig-import.c: Initially place text in the right
512 2006-04-03 Steffen Macke <sdteffen@gmail.com>
514 * installer/win32/dia.nsi:
515 * installer/win32/locale/french.nsh: Added french installer
516 locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
518 2006-04-02 Hans Breuer <hans@breuer.org>
520 * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
522 2006-03-29 Daniel Drake <dsd@gentoo.org>
524 * configure.in: Use standard pkg-config expressions to check for
525 GTK+/Glib, the GTK-supplied macro's conflict with our usage of
526 $GTK_MODULES (#335422)
528 2006-03-28 Lars Clausen <lars@raeder.dk>
530 * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
531 Include libs and cflags in proper places.
533 * installer/win32/dia.nsi:
541 * shapes/network/mobile_phone.{png,xpm,shape}:
542 * shapes/network/telephone.shape:
543 * shapes/network/disc.shape:
544 Updates from W. Borgert <debacle@debian.org> improving looks and
547 2006-03-26 Lars Clausen <lars@raeder.dk>
549 * objects/network/radiocell.c: Patch from W. Borgert
550 <debacle@debian.org> for extra midpoint, flicker, extraneous
553 * objects/network/basestation.c: Patch for BB from W. Borgert
554 <debacle@debian.org>.
556 2006-03-23 Hans Breuer <hans@breuer.org>
558 * lib/widgets.c : use original fontname and fallback 'sans' to
559 render the font menu. Thus crashing (in Pango) is delayed until
560 the point where one chooses a font, which can't be rendered by
561 Pango. Fixes bug #335096 as far as Dia can.
563 2006-03-21 Lars Clausen <lars@raeder.dk>
565 * installer/win32/dia.nsi:
573 * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
575 2006-03-19 Hans Breuer <hans@breuer.org>
577 * app/display.c app/preferences.c : unset transient, still issues
578 with transient handling, see bug #332828
580 * app/makefile.msc lib/makefile.msc objects/makefile.msc
581 plug-ins/makefile.msc : removed stuff supposed to be used from
582 $(TOP)/glib/build/win32/make.msc
584 * plug-ins/xfig/xfig-import.c : make it compile with strict type
585 checking [these were real errors, freeing stack passed values instead
586 of the intended local variable] :
587 xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *'
588 differs in levels of indirection from 'struct _Point ** '
589 xfig-import.c(580) : warning C4024: 'g_array_free' : different types
590 for formal and actual parameter 1
592 * lib/libdia.def : export connection_adjust_for_autogap
594 * plug-ins/hpgl/hpgl.c : there is one floating point value in the
595 whole HPGL output - and it was locale dependent.
597 2006-03-12 Lars Clausen <lars@raeder.dk>
599 * installer/win32/dia.nsi:
607 * objects/UML/constraint.c (constraint_update_data):
608 * objects/UML/message.c (message_update_data):
609 * objects/UML/implements.c (implements_update_data):
610 * objects/SADT/annotation.c (annotation_update_data):
611 * objects/Jackson/phenomenon.c (message_update_data):
612 * objects/network/wanlink.c (wanlink_update_data):
613 * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
615 * objects/standard/line.c:
616 * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
617 functionality for connections.
619 2006-03-11 Lars Clausen <lars@raeder.dk>
621 * lib/diagdkrenderer.c (draw_object):
622 * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
623 in the non-interactive rendering.
626 * installer/rpm/dia.spec:
627 * installer/rpm/README:
628 Moving dia.spec to installer directory, where distribution
629 maintainers can keep their own copies.
632 * objects/UML/class.h:
633 * objects/UML/umloperation.c:
634 * objects/UML/class.c:
635 Preparations to fix bug #334037: Clean away the Lisp-like
636 constructs confusing the issue.
638 2006-03-10 Lars Clausen <lars@raeder.dk>
640 * lib/object.c: Don't compare floats with ==, even in sanity checks.
642 2006-03-09 Lars Clausen <lars@raeder.dk>
644 * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
645 reading, depth reading, and points reading. Thanks to
647 * COPYING: Added copyright info again.
649 2006-03-09 Steffen Macke <sdteffen@gmail.com>
651 * installer/win32/dia.nsi: don't uninstall old version; overwrite
654 2006-03-08 Steffen Macke <sdteffen@gmail.com>
656 * installer/Makefile.am:
657 * installer/win32/Makefile.am:
658 * installer/win32/locale/Makefile.am: Making sure that the installer
659 sources are included in the dia source distribution
660 * installer/win32/dia.nsi: Don't include makefiles in installer;
661 Add uninstaller link to start menu (bug #332650); added commandline
662 option GTKBIN to specify GTK installation directory (fixes bug #332595)
663 * installer/win32/dia-diagram.ico:
664 * installer/win32/dia-header.bmp:
665 * installer/win32/dia-install.ico:
666 * installer/win32/dia-intro.bmp:
667 * installer/win32/dia-uninstall.ico:
668 * installer/win32/dia.nsi:
669 * installer/win32/langmacros.nsh:
670 * installer/win32/locale/english.nsh:
671 * installer/win32/locale/german.nsh: Added files to build the win32
672 installer using NSIS (http://nsis.sourceforge.net)
674 2006-03-06 Lars Clausen <larsrc@raeder.dk>
682 * samples/TexChars.dia: Added sample of the escaped chars for TeX.
684 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
685 Changing escape of \, [, and ] to something that works. $ is
686 fine. Fixes parts of 333193.
688 2006-03-05 Lars Clausen <larsrc@raeder.dk>
690 * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
692 * lib/orth_conn.c (orthconn_update_data):
693 * app/diagram.c: Removing debug info.
695 * app/object_ops.c (object_find_connectpoint_display): Don't
698 2006-02-26 Hans Breuer <hans@breuer.org>
700 * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
701 * plug-ins/python/python.c : if set use it to find python-startup.py
702 (bug #332599, Torben H. Nielsen)
704 * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
705 my test code]. Really closes #332177, thanks Mateus César Gröess.
707 2006-02-26 Lars Clausen <lars@raeder.dk>
715 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
716 of element_width and element_height until constraints can be
717 properly checked. Bug #328200
719 * dia.spec (Requires): Updated GTK requirements.
721 2006-02-25 Lars Clausen <lars@raeder.dk>
723 * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
724 other dynamic menus have proper translation.
726 * lib/widgets.c (dia_dynamic_menu_create_string_item):
727 * app/interface.c (cmp_names):
728 * app/sheets.c (sheets_optionmenu_create):
729 * lib/sheet.c (load_register_sheet): Using C locale for sheet
730 names internally, translating on display instead. Also sorting
731 by gettext order explicitly. Bug #328570.
733 2006-02-25 Hans Breuer <hans@breuer.org>
735 * app/interface.c(get_sheet_by_name) : be more tolerant about
736 localization of the sheet name. ( Steffen Macke, #332070 )
738 * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
739 in any case. In contrast to X11/*nix displays are not optional on
740 windoze. And we need some help of gtk to render text to bitmaps.
741 ( Rob McDonald, bug #332177 )
743 2006-02-21 Lars Clausen <lars@raeder.dk>
749 * config.h.win32: Update to -pre2.
751 * lib/beziershape.c (add_handles): Fixing CP pos calculation for
752 adding new CP's. Fixes bug #331557.
754 2006-02-20 Lars Clausen <lars@raeder.dk>
756 * lib/diarenderer.c (find_center_point): Better handling of some
758 (draw_arc_with_arrows): Draw line in all cases. Doesn't handle
759 the truly degenerate cases well enough yet, but at least doesn't
760 break on common cases. Probably need to do something special for
761 arcs with start and end point the same. Improves but does not
762 entirely fix bug #331372.
764 2006-02-20 Hans Breuer <hans@breuer.org>
766 * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
768 2006-02-18 Hans Breuer <hans@breuer.org>
770 * plug-ins/metapost/render_metapost.c : text position gives the
771 baseline neither top nor bottom. ( Rob McDonald, #331491 )
773 * plug-ins/wmf/wmf.cpp : finally respecting the print margins
774 ( Rob McDonald, #331371 )
775 * plug-ins/wmf/wmf_gdi.h : some more constants not useful
776 without a GDI printer (driver)
778 2006-02-17 Hans Breuer <hans@breuer.org>
780 * plug-ins/metapost/render_metapost.c(draw_string) : dont query
781 the font for it's height but use the 'height' parameter passed
782 in. Close enough to the desired size - and independent of zoom -
783 to close bug #331489 (Rob McDonald)
785 2006-02-12 Lars Clausen <lars@raeder.dk>
792 * config.h.win32: Updates for version 0.95-pre1.
794 2006-02-12 Hans Breuer <hans@breuer.org>
796 * app/makefile.msc : build three components dia.exe (console
797 application), diaw.exe (windows application) and dia-app.dll
798 containing almost all of Dia's application shared between
800 * app/main.c app/winmain.c app/app_procs.c app/dia.def : some
801 refactoring to accomplish the new dependency layout
802 * objects/makefile.msc plug-ins/python/makefile.msc : need to
803 link dia-app.lib now - if at all depending on app/*
805 2006-02-11 Hans Breuer <hans@breuer.org>
807 * makefile.msc : nmake -f makefile.msc just compiles now
808 * app/makefile.msc lib/makefile.msc : make not using FT2
809 on win32 the default (works around bug #150813 by diabaling it)
810 * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
811 $(CC) command line. It isn't understood by newer versions of cl.
813 * app/authors.h : reflect the recent maintainers change
815 * app/display.c app/load_save.c : removed debug spew
817 * app/winmain.c : improved redirection
819 2006-02-05 Hans Breuer <hans@breuer.org>
821 * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead
822 since 0.94. Fix somne left-overs, also properly disable the duplicate
825 * po/POTFILES.in : added objects/network/wanlink.c
827 2006-02-05 Hans Breuer <hans@breuer.org>
829 * lib/dialibartrenderer.c(renderer_finalize) : dont unref
830 parent_instance.font here. It will be done in DiaRenderer::finalize()
831 Just another reason for crashing at diagram close with libart
832 renderer involved ...
834 2006-02-04 Hans Breuer <hans@breuer.org>
836 * objects/standard/image.c : added mainpoint, patch from
837 Torben H. Nielsen fixing bug #329603
839 * app/layer_widget.c : avoid writing to Layer::connectable for a
840 diagram possibly already gone. Fixes bug #329096.
842 * lib/persitence.c(persistence_load) : dont leak filename
843 in case of not existing file
845 Code review via regex "[^_l>p](malloc|free|realloc)\("
846 * objects/fs/function.c : what's g_strdup() must be g_free()'d
847 * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
848 * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
850 * app/filedlg.c(file_save_as_response_callback) : before destroying
851 the save as dialog we need to drop the dialogs diagram reference.
852 Fixes behaviour described in bug #123225#c7
854 * app/interface.c(get_sheet_names) : need to sort sheets by their
855 display name to really fix bug #160101.
857 * objects/UML/association.c : dont leak the role_name calculated
858 with visibility attribute, use g_strdup_printf() instead of strcat().
860 * configure.in : fix typo in error message
862 * lib/object.c : remove duplicated prototype
863 * lib/element.c : element_update_connections_rectangle() assumes nine
864 connection points, i.e. requires 'mainpoint'. g_assert() for this.
866 2006-02-03 Hans Breuer <hans@breuer.org>
868 * objects/network/bus.c : allow to tint it. Patch from
869 Torben H. Nielsen, closes bug #328580.
870 * objects/network/wanlink.c : allow to tint this as well.
872 2006-01-29 Hans Breuer <hans@breuer.org>
874 * app/render_libart.c(draw_line) : make setting the pixel side-effect
875 free; account for it in now (less) magic increments. Fixes bug #312147
877 2006-01-28 Hans Breuer <hans@breuer.org>
879 * po/checktrans.py : make it work with recent pyxml (unknown url type)
880 * po/AADL.sheet.in : remove duplicated _description
881 => translation report works again
883 * app/display.c : revert back to "_Discard Changes" to avoid
884 accelerator clash. Also gtk_button_new_with_mnemonic() to
885 'expand' the accelerator.
887 * lib/dia_svg.c(dia_svg_style_init) : need to initialize
888 linecap, linejoin, linestyle to avoid invalid settings.
889 (Nguyen Thai Ngoc Duy, bug #328945)
890 * lib/diagdkrenderer.c : add a place fro breakpoint to
893 * lib/diarenderer.c(setfont) : if we get passed in the
894 same font it must be ref'd before unref.
896 * lib/text.c(set_string) : don't eat the trailing new-line
899 * app/app_procs.c app/display.c app/filedlg.c
900 attempt to provide more HIG compliant dialogs. Patch from
901 Nguyen Thai Ngoc Duy, part of bug #138183
903 * app/recent_files.c(recent_file_history_clear_menu) : instead of
904 messing with GtkMenuShell::children and gtk_widget_destroy() just
905 use gtk_container_remove. Avoids memory corruption causing the
906 most 'random' crashes recently.
908 * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL
909 cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the
910 TextAttributes - not some subset. Fixes bug #327701
911 * objects/UML/implements.c objects/UML/generalization.c
912 objects/UML/constraint.c objects/UML/object.c
913 objects/UML/large_package.c objects/UML/realizes.c : same here.
914 * objects/UML/dependency.c : same here. Also draw the "Name" with the
915 given color, not only the Stereotype.
916 * objects/UML/class.c : same here. But we also need to restore
917 explicit restore "text_color" for the load case.
919 2006-01-27 Hans Breuer <hans@breuer.org>
921 * configure.in : error out if GLib/GTK+ version is lower than required
923 * app/filedlg.c lib/widgets.c : more default responses. Patch
924 from Nguyen Thai Ngoc Duy, part of bug #138183
926 * NEWS : Main point feature correction. The line is supposed to
927 start at the border of the object not the bounding box.
929 * app/commands.c : respect difference between documenters and
930 translators and show both in about dialog. Closes bug #328711.
932 * app/interface.c : instead of g_warning for missing shape icon
933 but use message_warning and show the 'missing' icon
935 * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
936 not match pango_win32_get_context(). Use gdk_pango_get_context ().
937 Also removed my special win32-modified-pango code for draw_string()
938 without the help of gdk.
940 * Makefile.am : include MAINTAINERS file in tarball
942 * lib/conectionpoint.h : removed double include of "geometry.h"
944 2006-01-22 Hans Breuer <hans@breuer.org>
946 * app/splash.c app/commands.c : dont share the logo and finally leak
947 it. Instead both place load and unref the logo themself.
948 Also unbreak GNOME case.
950 * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
951 or GNOME specific one. 120 lines less code and more standard.
952 * configure.in : require GTK+ >= 2.6
954 * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
955 make GtkTypeInfo static const as usual elsewhere
957 * app/recent_files.c : it almost certainly is an error to ignore
958 the return value of g_list_remove_link()
960 * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
961 lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
962 lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
963 lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
964 objects/UML/uml.h : documentation fixes
966 * lib/object.h lib/diagramdata.h : avoid circular inclusion
967 * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
968 lib/properties.h lib/sheet.h lib/diamenu.h
969 : dont include "object.h", "diatypes.h" is enough.
970 Rule of thumb: only headers declaring an inheritant of DiaObject
971 should include "object.h"
972 * lib/diarenderer.h : include "font.h" not strictly needed by
973 this header, but needed in almost any plug-in/
974 * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
975 app/export_png.c app/interface.c app/load_save.c app/sheets.c
976 app/sheets_dialog.c app/sheets_dialog_callbacks.c
977 lib/diagdkrenderer.c lib/object.c lib/propobject.c
978 lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
979 plug-ins/svg/render_svg.c
980 : some .c files now need to include "object.h" or <gtk/gtk.h>
981 or e.g. "intl.h" direct, formerly dargged in indirectly
982 * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
984 2006-01-21 Hans Breuer <hans@breuer.org>
986 * lib/connection.c lib/connection.h lib/connectionpoint.h
987 lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
988 lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
989 lib/object.c lib/object.h : documentation tweaking
991 * objects/UML/class_dialog.c(attributes_create_page,
992 operations_create_page) : dont connect
993 to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
994 g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
995 (This was a leftover of introducing the GtkTextView instead of GtkEntry)
997 * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
998 Introduce 'comment_tagging' switch which allows to hide the rendering
999 {documentation = } Maybe a choice between ugliness and non-standard.
1000 Fixes bug #326214. (Unrelated: started to adapt casing of variables
1001 to Dia's common coding style)
1003 * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
1004 lib/proplist.c : fixed pdtpp_default()
1005 lib/propobject.c : correctly reflect is_default
1006 * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
1007 PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
1009 * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
1010 widget in defaults dialog
1012 * app/display.c(initialize_display_widgets) : also append the Input
1013 Methods menu to the diagram menubar. Now fixes bug #327862.
1015 * config.h.win32 : #undef LOCALEDIR
1016 * app/app_procs.c : runtime calculation of localedir. It now is
1017 $(executable_dir)/../locale. Should help fix bug #309763
1019 * sheets/AADL.sheet.in : remove left over xml:lang tag.
1020 ( Nguyen Thai Ngoc Duy, bug #327519)
1022 * lib/dialibartrenderer.c : make text rendering work without
1023 PangoFT2 and PangoWin32
1026 2006-01-18 Lars Clausen <lars@raeder.dk>
1028 * objects/UML/class.h: Enabling UML class mainpoint after failure
1031 * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
1034 2006-01-14 Hans Breuer <hans@breuer.org>
1036 * app/paginate_psprint.c : ensure we are not producing pages for
1037 epsilon. Floating imprecision is fun. Fixes bug #133856.
1038 * app/paginate_gdiprint.cpp : same here.
1040 * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
1041 found the nice samples from bug #156171 it was quite simple to
1042 confirm that the y value need indeed to be inverted. Fixes bug #304974.
1043 Also special case strings starting with \tex - i.e. dont escape them -
1044 to keep the use-case of direct tex input.
1046 * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
1049 2006-01-14 Hans Breuer <hans@breuer.org>
1051 * samples/Self/umlclass.dia : (new file) documenting part of the
1052 object relations of UMLClass. Also good for testing connections.
1054 * lib/debug.c : replace wrong call to vprintf() - missing file
1055 descriptor - with the more appropriate g_vprintf(). Thus
1056 dia_assert_true() does not smash the stack anymore on win32.
1058 * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
1059 objects/UML/umlattribute.c objects/UML/umloperation.c :
1060 reverted the memory managment of UMLAttribute/UMLOperation's
1061 ConnectionPoint(s) back to how it was up until 0.94. This finally
1062 makes the UMLClass work again including undo/redo support. Fixes
1063 bug #314153 and en passant bug #326453.
1065 2005-01-12 Lars Clausen <lars@raeder.dk>
1067 * objects/UML/umlattribute.c:
1068 * objects/UML/class_dialog.c: Better way of handling
1069 connectionpoints: Don't copy them, just reference them. Finally
1070 fixes bug #314153 (not quite the pi bug:)
1072 * app/menus.c (display_menu_items):
1073 * app/filedlg.c (file_open_response_callback):
1074 * app/display.[ch] (copy_display):
1075 * app/commands.[ch] (view_clone_view_callback):
1076 Added functionality to clone display. Preparation for storing
1077 display info in diagram files (not happening this version, though).
1079 * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
1080 users pointing at dia-installer.
1082 2006-01-08 Hans Breuer <hans@breuer.org>
1084 * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
1085 (Narcelio Filho, #326075)
1087 * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
1088 plug-ins should not depend on app/* and it even breaks 'make distcheck'.
1089 * objects/AADL/Makefile.am : added edit_port_declaration.h
1090 * app/Makefile.am : added diaconv.c to EXTRA_DIST
1091 => 'make distcheck' passes again.
1093 * configure.in : use some more of gcc's useful warnings
1095 * lib/geometry.h : removed unused functions just producing warnings
1096 [sometimes it's good to read compiler warnings]
1097 * plug-ins/cairo/diacairo.c : somehow a function call got lost
1098 (left-hand operand of comma expression has no effect)
1099 * plug-ins/metapost/render_metapost.c : dia_message_filename()
1100 wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
1101 from incompatible pointer type)
1104 2006-01-07 Hans Breuer <hans@breuer.org>
1106 * objects/custom/shape_info.c(parse_path) : handle the case of
1107 invalid path data more gracefully, i.e. show a warning instead
1108 of crashing later on.
1109 * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
1111 * configure.in sheets/Makefile.am shapes/Gane_and_Sarson
1112 shapes/Makefile.am : added Gane & Sarson shapes
1113 (Nick Moore, #319544)
1115 * objects/makefile.msc : building AADL on win32
1117 2006-01-06 Hans Breuer <hans@breuer.org>
1119 * objects/AADL/aadl.h : avoid redefinition warnings by #undef
1120 min, #undef max before local definitions
1121 * objects/AADL/aadl.h : more prototypes
1122 * objects/AADL/aadltext.c : for C89 declarations must be at the
1123 beginning of a block. And Dia *must* be compileable with C89.
1125 * objects/AADL/** objects/Makefile.am sheets/Makefile.am
1126 configure.in : AADL plug-in from Pierre Duquesne. See
1127 http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
1128 for more information
1129 * sheets/AADL.sheet.in : from the above patch but modified
1130 to become translatable like the other sheet files. That is: the
1131 french translation got temporary removed cause it does not belong here.
1133 * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
1135 * app/app_procs.c app/diaconv.c : get rid of run-on sentences
1136 (Adam Weinberger, bug #325567)
1138 * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
1139 and change some other to use <control><alt>. They collide with GTK's
1140 Unicode input feature. Fixes bug #320495. For rationale see:
1141 http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
1143 * app/display.c : pay attention to g_warnings() [should always run
1144 with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
1145 actually is a menu bar.
1147 * lib/diarenderer.c : the righthand calculation accidentially broke
1148 some arcs direction. Should be fixed again.
1150 2006-01-02 Hans Breuer <hans@breuer.org>
1152 * app/display.c(new_display) : also append the Input Methods menu to
1153 the diagram menubar. Fixes bug #308576.
1155 * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
1156 freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
1158 * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to
1159 their localized name (with g_utf8_collate). Thus not relying on the
1160 capabilities of the C libraries strcmp(). Fixes bug #160101.
1162 * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
1163 point and width from the (arrow-)corrected new points. Otherwise a
1164 whole new wrong arc may emerge. Fixes bug #312641.
1166 2006-01-01 Hans Breuer <hans@breuer.org>
1168 * objects/custom/custom_object.c(cutom_update_data) : depending
1169 on the handle moving let one scale (x or y) take precedence.
1170 (bug #308515, Eric Deplagne)
1172 * objects/UML/class.c : only perform the attributes check with
1173 attributes visible to ged rid of false warnings
1174 * objects/UML/class_dialog.c : need to setup Connection::object
1175 after uml_attribute_new() and uml_operation_new(), again less
1176 warnings but bug #314153 still not fixed.
1180 * plug-ins/python/diasvg.py : more correct svg by also writing
1181 xmlns="http://www.w3.org/200/svg"
1183 * plug-ins/python/dot.py : skip unconnected connection lines
1184 * plug-ins/python/Makefile.am : added dot.py
1186 * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
1189 2005-12-31 Hans Breuer <hans@breuer.org>
1191 * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the
1192 caching of UMLClass::attributes_strings, operations_strings,
1194 It was broken by the recent code restructuring in bug #303744 and
1195 - if necessary at all - nowadays it should be done on the
1196 UMLAttribute, UMLOperation, UMLFormalParameter level anyway.
1197 A small, much needed simplification of the code.
1199 2005-12-30 Hans Breuer <hans@breuer.org>
1201 * objects/UML/class.c : Patch from Dave Klotzbach
1202 fixes crash bug #325151
1204 * app/app_procs.c : add command line parameter --nonew to allow
1205 avoiding the empty start-up diagram
1206 Also give a hint on where the object-libs were missing.
1207 Finally work around a misbehaviour upstreamm :
1208 g_option_context_parse() returning FALSE but not setting error.
1210 * app/commands.c app/app_diagram_tree.c app/interface.c :
1211 Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
1212 http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
1214 * lib/widgets.c : image file selection finally ported to the new
1215 gtk file chooser. Fixes bug #309383
1217 2005-12-28 Hans Breuer <hans@breuer.org>
1219 * app/commands.c(file_new_callback) : convert to filename encoding before
1220 passing to new_diagram(), fixes bug #322400
1222 * app/interface.c(create_display_shell) : don't clip width on screen
1223 height - now commited. Also lazy creation of tooltips.
1225 * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1227 2005-12-27 Hans Breuer <hans@breuer.org>
1229 * app/diapsft2renderer.c(draw_bezier_outline) : only call
1230 FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1231 Prefers no text output over crashing for bug #144212
1233 * app/interface.c : removed superfluous call to dia_canvas_set_size().
1234 Suggested by Roland Stigge, fixes bug #148149.
1236 * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1237 DXF. It is not supported at all. Fixes bug #322101
1239 * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1240 define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1243 2005-12-27 Hans Breuer <hans@breuer.org>
1245 * app/navigation.c : protect on_da_button_release_event() against being
1246 called twice. Also only popdown the navigation window after the first
1247 draw (reusing nav->is_first_expose). Fixes bug #151696
1249 * app/interface.c(create_display_shell): don't clip width on screen height,
1252 * lib/plug-ins.c : fixed typo in comment
1254 * lib/libdia.def : updated externals
1255 * lib/makefile.msc : build debug.obj
1257 * plug-ins/makefile.msc : building pgf in the right alphabetical order
1258 * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1260 2005-12-08 Lars Clausen <lars@raeder.dk>
1263 * plug-ins/pgf/pgf.c:
1264 * plug-ins/pgf/render_pgf.[ch]:
1265 * plug-ins/pgf/Makefile.am:
1266 * plug-ins/Makefile.msc:
1267 * plug-ins/Makefile.am (SUBDIRS):
1268 * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1269 support for PGF output for including in (La)TeX documents that
1270 allows PDF generation.
1272 * samples/render-test.dia: Added samples of text in different
1273 sizes, standard fonts and styles with size markers.
1275 2005-12-04 Lars Clausen <lars@raeder.dk>
1277 * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1278 (BUILT_SOURCES): Added marshal files.
1280 2005-12-03 Lars Clausen <lars@raeder.dk>
1282 * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1283 about $(srcdir) and confusing everybody.
1286 * lib/diagramdata.c:
1287 * lib/diagramdata.h:
1288 * lib/diamarshal.list:
1289 * plug-ins/python/pydia-diagram.c:
1290 * plug-ins/python/pydia-diagramdata.c:
1291 * plug-ins/python/python-startup.py: Patch from David Johansson
1292 <david.lgj@gmail.com>: Add signals emitted when objects are
1293 inserted or removed.
1295 2005-11-13 Lars Clausen <lars@raeder.dk>
1297 * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1298 (small) buffer overflow by using g_strdup_printf instead of sprintf.
1300 2005-11-09 Lars Clausen <lars@raeder.dk>
1303 * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1304 when reaching the statement is a bug. Using g_critical and exit() for
1305 fatally wrong inputs.
1307 * objects/UML/uml.c:
1308 * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1309 Klotzbach): Fixes template rendering and converts home-brew inline
1310 doc format to javadoc. Doesn't yet fix bug #320934, but turns it
1313 2005-11-07 Lars Clausen <lars@raeder.dk>
1315 * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1316 box' since several objects have problems of using bounding box in
1317 different ways (see bug #300055). For now, enclosing box ==
1318 bounding box, but over time objects will learn to expand the
1319 bounding box to include things only rendered interactively.
1321 * app/modify_tool.c (modify_motion): Make sure highlight is reset
1322 when moving between overlapping objects.
1324 * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1325 diagram after toggling to make red X's come and go.
1327 * lib/font.c: #ifdef'd out layout cache for bug #307320. Define
1328 it if you need faster rendering and aren't afraid of crashbugs:)
1330 * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1331 (dave Klotzbach): Fixes null pointer problems in free function.
1333 * objects/UML/class.c
1334 * objects/UML/class.h
1335 * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1336 (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1337 and allow multi-line comments. Ugly as hell, but standard. Time
1338 for a 'Strict UML' option? Fixes bug #303744.
1340 * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1341 entry, exit and do descriptions to a state object. Fixes bug #65434.
1343 2005-11-03 Lars Clausen <lars@raeder.dk>
1348 * lib/bezier_conn.c:
1349 * lib/boundingbox.c:
1352 * lib/connectionpoint.c:
1357 * lib/diaarrowchooser.c:
1359 * lib/diagdkrenderer.c:
1360 * lib/diagramdata.c:
1365 Added documentation java-doc style. Also a few trivial cleanups.
1367 2005-10-13 Lars Clausen <lars@raeder.dk>
1369 * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1372 * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1377 * objects/UML/class.[ch]:
1378 * objects/UML/uml.h:
1379 * objects/UML/umlattribute.c:
1380 * objects/UML/umloperation.c:
1381 * objects/UML/class_dialog.c:
1382 Rework of the UML class attribute/operation handling. Now doesn't
1383 copy connection points into the dialog data, but only the "flat"
1384 data. As part of debugging made sanity check functionality.
1385 Currently still dies when deleting an attribute/operation that has
1388 2005-10-09 Hans Breuer <hans@breuer.org>
1390 * lib/properties.h : prefer american spelling of colo(u)r for
1391 user visible strings - i.e. to be translated ones.
1392 * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1394 * po/*.po : updated (by 'make distcheck')
1396 2005-10-09 Hans Breuer <hans@breuer.org>
1398 * app/display.c : allow !"toolbox on top" without restart.
1399 (Chris Hellberg, bug #310702)
1401 2005-10-09 Hans Breuer <hans@breuer.org>
1403 * lib/arrows.c : patch from Radek Krahl fixing the blanking
1404 of two arrowheads, bug #310157
1406 2005-10-08 Hans Breuer <hans@breuer.org>
1408 * plug-ins/python/group_props.py : show a descriptive text instead of an
1409 empty table if there are no common properties to change. Fixes bug #314432
1411 2005-10-08 Hans Breuer <hans@breuer.org>
1413 * objects/UML/transition.c : inverted default direction of
1414 the direction. Patch from Peter Allin, fixes bug #318049
1415 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1417 2005-10-08 Hans Breuer <hans@breuer.org>
1419 * app/Makefile.am objects/standard/Makefile.am : match the
1420 referenced icons to the needed. Make 'make distcheck' pass
1421 and thus fixes bug #312152
1423 * objects/standard/textobj.c : no C++ comments please!
1425 2005-10-08 Hans Breuer <hans@breuer.org>
1427 * objects/standard/textobj.c : preserve the position set on create
1428 [makes e.g. text positioning of diasvg_import.py work]
1430 * plug-ins/python/diasvg_import.py : restrict what eval() can do
1431 with strings from svg files. Fixes the arbitrary code execution from
1434 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1435 magnetism. At least they are distinguishable from grid snapping.
1436 * app/makefile.msc app/Makefile.am : use them
1438 * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1439 I also can't reproduce bug #309044 anymore (on win32).
1441 2005-10-01 Lars Clausen <lars@raeder.dk>
1443 * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1445 * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1446 pass FILE * as gchar *.
1448 * lib/debug.[ch] (dia_assert_true): Debugging aids.
1450 2005-09-29 Lars Clausen <lars@raeder.dk>
1452 * objects/UML/class.h: Enabling mainpoints for UML.
1454 * objects/UML/class.c (umlclass_set_props): Make sure to always
1455 realloc connection point list.
1457 2005-09-26 Ahmad Riza H Nst <rizahnst@id.gnome.org>
1459 * configure.in: Added "id" in ALL_LINGUAS line.
1461 2005-09-14 Lars Clausen <lars@raeder.dk>
1463 * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1464 loading. Fixes bug #315427.
1466 2005-09-11 Hans Breuer <hans@breuer.org>
1468 * objects/standard/arc.c objects/standard/textobj.c : fix
1469 C99isms, Dia is supposed to compile with C89 like msvc
1471 * app/makefile.msc : use the wrong center-point-magnetism
1472 icons for the win32 build, too.
1474 * plug-ins/python/pydia-error.c : dont crash on C escape
1475 sequences in the error string
1476 * plug-ins/python/pydia-render.c : dont free filename twice
1478 * plug-ins/python/dot.py : start of an exporter to DOT language
1479 which can be processed by www.graphviz.org tools
1481 2005-09-05 Iñaki Larrañaga <dooteo@euskalgnu.org>
1483 * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1485 2005-09-04 Iñaki Larrañaga <dooteo@euskalgnu.org>
1487 * configure.in: Added "eu" to ALL_LINGUAS.
1489 2005-09-04 Lars Clausen <lars@raeder.dk>
1491 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1492 dimensions frame to make ext_attributes work again.
1494 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1495 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1498 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1499 <dooms info ucl ac be>: Add vertical alignment for standard text
1500 object. This should really be moved into lib/text.c and apply to
1503 2005-09-03 Lars Clausen <lars@raeder.dk>
1505 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1506 mainpoint when snap-to-objects is not on.
1508 * app/Makefile.am (ICON_PNG_PAIRS):
1509 Fake icons for snap-to-objects.
1511 * app/commands.[ch]:
1512 * app/menus.c (menus_get_image_menubar):
1514 * app/interface.c (create_display_shell):
1515 * app/create_object.c (create_object_button_release):
1516 * app/disp_callbacks.c (ddisplay_drop_object):
1517 * app/object_ops.[ch]:
1518 * app/connectionpoint_ops.c (ddisplay_connect_selected):
1519 * app/modify_tool.c (modify_button_release):
1521 Togglable snap-to-objects, also doesn't snap when moving entire
1522 object. This should be more reasonable in practical use, and can
1523 be turned off when you want to place your arrows more precisely.
1525 2005-08-06 Hans Breuer <hans@breuer.org>
1527 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1528 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1529 becomes even more ugly when the user has choosen *not* to build
1530 the diacairo plug-in. If noone can come up with a very convincing
1531 reason why it has to be done this way I'll probably go back to
1532 my original dont-build-at-all approach when this breaks the
1535 2005-08-02 Lars Clausen <lars@raeder.dk>
1537 * objects/standard/arc.c: Patch from Grégoire Dooms
1538 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1539 implementation. "There is still a small bug when the non
1540 connected end of the arc is very close to the border of the
1541 connected object. I think this is due to rounding errors in the
1542 code for SHIFT-move handle which is reused to trim the arc in
1543 autogap. Also it is not yet possible to have a startgap and an
1544 endgap from/to the same central CP."
1546 2005-07-31 Hans Breuer <hans@breuer.org>
1548 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
1549 longer for distributions official packages - depend
1550 on cairo 0.6.0 - fixes bug #307144
1552 2005-07-20 Hans Breuer <hans@breuer.org>
1554 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1555 which must match PropDescription, that is make it at least compile.
1557 2005-07-19 Hans Breuer <hans@breuer.org>
1559 * app/diagram.c(new_diagram) : what comes from g_object_new()
1560 MUST NOT be g_free()'d
1562 * lib/message.h : added dia_message_filename() here as well.
1563 Mainly to not touch all files using. They *all* where using
1564 lib/message.h already! Maybe the implemantation should be moved
1565 to message.c as well cause the function has *nothing* to do
1566 with dynamic filename resolving. It is a wrapper around
1567 g_display_filename() mostly (only?) used for messages ...
1568 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1570 2005-07-18 Lars Clausen <larsrc@raeder.dk>
1572 * objects/EML/instantiation.c (instantiation_load):
1573 * objects/EML/interaction-ortho.c (interaction_ortho_type)
1574 * objects/ER/participation.c (participation_type):
1575 * objects/FS/flow-ortho.c (orthflow_type):
1576 * objects/GRAFCET/vector.c (arc_load):
1577 * objects/standard/zigzagline.c (zigzagline_type):
1578 * objects/UML/transition.c (transition_load):
1579 * objects/UML/realizes.c (realizes_load):
1580 * objects/UML/dependency.c (dependency_load):
1581 * objects/UML/generalization.c (generalization_type):
1582 * objects/UML/association.c (association_type):
1583 * objects/UML/component_feature.c (compfeat_load):
1584 Make autorouting deafult on except for old diagrams.
1586 * plug-ins/cairo/diacairo.c (export_data):
1587 * plug-ins/cgm/cgm.c (export_cgm):
1588 * plug-ins/dxf/dxf-export.c (export_dxf):
1589 * plug-ins/dxf/dxf-import.c:
1590 * plug-ins/hpgl/hpgl.c (export_data):
1591 * plug-ins/metapost/render_metapost.c:
1592 * plug-ins/pixbuf/pixbuf.c:
1593 * plug-ins/pstricks/render_pstricks.c:
1594 * plug-ins/python/pydia-render.c:
1595 * plug-ins/shape/shape-export.c:
1596 * plug-ins/svg/render_svg.c:
1597 * plug-ins/svg/svg-import.c:
1598 * plug-ins/wpg/wpg.c
1599 * plug-ins/xfig/xfig-export.c:
1600 * plug-ins/xfig/xfig-import.c:
1601 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1602 UTF-8 in message boxes.
1604 2005-07-18 Lars Clausen <lars@raeder.dk>
1606 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1607 to have their dimensions specified in properties. Still needs to
1608 have proper update when setting properties cause constraint changes.
1610 * app/preferences.c (update_floating_toolbox): Allow
1611 toolbox_on_top setting to happen at once.
1617 * app/sheets_dialog_callbacks.c
1623 * lib/object_defaults.c:
1624 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1625 for displaying in messages - better than crashing! Mostly fixes
1628 * objects/UML/class.c: Save normal_font_height under the same
1629 name it gets loaded as. Fixes bug #310515.
1631 * doc/en/authors.xml
1632 * doc/en/usage-customization.xml
1633 * doc/en/usage-objects-special.xml
1634 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
1637 2005-07-17 Lars Clausen <lars@raeder.dk>
1639 * doc/en/usage-customization.xml:
1640 * doc/en/usage-objects.xml:
1641 * doc/en/authors.xml:
1642 * doc/en/usage-objects-special.xml: Applied patch from
1643 stigge@antcom.de (Roland Stigge): Diverse typos and
1644 misencodings. Fixes bug #308315.
1646 * objects/UML/class.c (umlclass_save): Patch from
1647 i.pilcher@comcast.net: Save normal font height under correct name
1648 to reload it. Fixes bug #310515.
1650 2005-07-10 Hans Breuer <hans@breuer.org>
1652 * app/connectionpoint_ops.c app/object_ops.c : make the
1653 'whole object' connection point only center point again.
1654 That is: it is visible and far less magnetic. Only the
1655 line gap handling make it special. For me this probably
1658 * lib/neworth_conn.c : apply the same as for bug #173031.
1659 This OrthConn fork got broken as well. Fixes bug #309381
1661 * app/makefile.msc objects/makefile.msc : adapt to icon changes
1663 * app/interface.c app/diagram_tree.c : a char** is still not
1664 a char* and the win32 build is configured to error on
1665 sloppiness like this
1667 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1669 2005-07-10 Hans Breuer <hans@breuer.org>
1672 Take part in the toolbox icon redesign context! If you want to
1673 make them really prettier, please keep the following in mind :
1674 - the size *must* be 22x22 otherwise button reflow will get broken.
1675 Or you need to change about 800 icons at once.
1676 - one important part of Dia are control points, so maybe the icons
1677 should reflect that. (IMO gathering random icons form other
1679 - the icons should at least look consistent in their group
1682 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1683 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1685 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1686 * objects/standard/pixmap/* : added arc.png beziergon.png
1687 bezierline.png box.png ellipse.png image.png line.png polygon.png
1688 polyline.png text.png zigzagline.png
1689 * objects/standard/Makefile.am : use the new icon set including
1692 * app/interface.c : remove the "will probably crash" debug spew
1694 2005-07-09 Lars Clausen <lars@raeder.dk>
1696 * objects/standard/pixmaps/*.png:
1697 * objects/standard/Makefile.am:
1698 * objects/standard/*.c:
1700 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1701 new icons. [Slightly belated entry]
1703 2005-07-03 Hans Breuer <hans@breuer.org>
1705 * app/diagram_tree.c : dont leak display name
1706 * app/app_procs.c : dont leak GOptionContext
1707 * app/prop_widgets.c(frame_beginprop_get_widget) :
1708 Gtk api still not eating strings ...
1710 * objects/UML/class.c() : don't load properties once more
1711 which are already loaded by StdProps. In case of strings
1712 (data_string) it has even produced leaks.
1714 * app/paginate_psprint.c app/diagram.[hc] : the last
1715 of the related dialogs is gone and with it the
1716 misconception of destroying widgets from
1718 * app/display.c : ensure the diagram is still threre
1719 when we remove the display from it's list
1721 2005-07-01 Hans Breuer <hans@breuer.org>
1723 * lib/widgets.c(dia_color_selector_more_callback): dont
1724 free old_color twice
1726 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1727 option. Thus linestyles can be preserved on export - at
1728 least on NT based systems.
1730 * NEWS : clarify the wmf outside of windows issue
1732 * app/modify_too.c : fix C99ism
1734 * objects/standard/arc.c : debug spew optional at compile time
1736 2005-06-26 Hans Breuer <hans@breuer.org>
1738 [ Cyrille would call it: warningectomy :-]
1740 * lib/font.c app/create_object.c : `...' might be used uninitialized
1741 in this function. Yes they were.
1742 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
1743 uninitialized in this function. Yes it was with textedit_activate_object()
1744 Also some static correctness.
1745 * lib/diarenderer.c:678: warning: no previous prototype for
1746 `calculate_min_radius'. Made static.
1747 * lib/dia_svg.c : ptr is a gchar *
1748 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1749 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1750 * app/app_procs.c : confirm warning and make dump_dependencies() static
1751 * app/autosave.c : #if 0'd old stuff
1752 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1754 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1755 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1756 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1757 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1758 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1759 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
1760 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1761 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
1762 removed unused variables and functions
1763 * objects/UML/umlattribute.c objects/UML/umloperation.c
1764 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
1765 neither 'missing braces around initializer' nor 'initialization from
1766 incompatible pointer type'
1767 * objects/UML/class_dialog.c : more static
1768 * app/interface.c : static and almost const correctness and some
1769 less unitialized variables.
1770 * app/diapsft2renderer.c : use (int) casts like the original
1771 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1772 * app/render_gdk.c: stop assignment from incompatible pointer type,
1773 make member functions match the prototype.
1774 * app/render_libart.c : Dito. Also stop caching the copy_gc in
1775 a static variable. Otherwise it finally leaks and also may cause
1776 BadMatch with changing windows
1777 => warning count down from about 250 to about 60, one or two hand full
1780 2005-06-26 Hans Breuer <hans@breuer.org>
1782 * lib/libdia.def : added dia_font_get_description, missing
1785 * app/app_procs.c : use png_get_header_ver(NULL), that is:
1786 prefer function call over exported variable to get the
1787 runtime version of libpng
1789 2005-06-19 Hans Breuer <hans@breuer.org>
1791 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1792 as suggested by Roland Stigge, bug #308310
1794 2005-06-19 Hans Breuer <hans@breuer.org>
1796 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
1799 2005-06-18 Hans Breuer <hans@breuer.org>
1801 * NEWS : mention new file dialog
1803 [plugged remaining leaks from bug #142669]
1804 * lib/prop_attr.c(fontprop_free) : not only unref the font
1805 but free the property itself, too.
1806 * app/diagram_tree.c(create_diagram_children): remember the
1807 original list start to not only free the last element
1809 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
1810 but not used. Here it meant a potentially huge leak.
1812 2005-06-18 Hans Breuer <hans@breuer.org>
1814 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
1815 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
1816 for others, too. ( Roland Stigge, bug #144527 )
1818 2005-06-18 Hans Breuer <hans@breuer.org>
1820 * plug-ins/wmf/Makefile.am : prevent installation. It
1821 doesn't do anything useful on *NIX and even seems to be
1822 linked wrong by gcc (or me;). Fixes bug #172830
1824 2005-06-18 Hans Breuer <hans@breuer.org>
1826 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1827 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1828 in function declarations. 'f();' for a function without parameters is
1829 a C++ism. Though I can't get any of my compilers to warn about it.
1830 Finally fixes bug #142663.
1832 2005-06-18 Hans Breuer <hans@breuer.org>
1834 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1835 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1836 in function declarations. 'f();' for a function without parameters is
1837 a C++ism. Though I can't get any of my compilers to warn about it.
1838 Finally fixes the rest of bug #142663.
1840 2005-06-18 Hans Breuer <hans@breuer.org>
1842 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
1843 changes but doesn't hurt anyway. See bug #162034
1844 * app/diapsft2renderer.c app/modify_tool.c
1845 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
1846 instead of messing with internals
1847 * app/display.c : give interactive renderers more begin/end render.
1848 It is guaranteed that the scale wont change between these.
1850 2005-06-18 Hans Breuer <hans@breuer.org>
1852 * app/app_procs.c : const correctness for stderr_message_internal
1853 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
1854 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1855 * app/disp_callbacks.c : don't dereference the to the function call
1856 when the function pointer in meant to be checked against 0
1857 * app/interface.c : warning fixes by using correct types
1858 * app/modify_tool.c : describe_props() members returns const pointer
1859 * app/render_libart.c : removed most of the render function again.
1860 They happily live in lib/dialibartrenderer.c since almost 3 years
1861 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1862 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1863 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1864 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1865 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1866 Both mentioned in bug #159814 and not warned by most other compilers.
1867 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
1868 trailing colon in the GtkTypeInfo initialization
1869 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
1870 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
1871 between char and gint8
1872 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
1873 * plug-ins/wpg/wpg.c : consitently use guint8
1874 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
1875 redefinition warnings for python and xslt plug-ins
1877 2005-06-18 Hans Breuer <hans@breuer.org>
1879 * lib/diagramdata.c : really get rid of diagram_data_destroy
1880 and new_diagram_data [ no previous prototype for `...' is either
1881 a sign of missing static or of a function to vanish :-]
1883 * lib/geometry.c : apparently the G_INLINE stuff was working only
1884 with particular GLib version(s), glib-2.6.4 does not. Conditionally
1885 reverting to the old mecanics.
1887 2005-06-17 Hans Breuer <hans@breuer.org>
1889 * plug-ins/python/pydia-*.c : include order tweaking to
1890 get rid of redefinition warnings. Ensure to include <Python.h>
1891 before any 'system' header, some dragged in by glib.h
1892 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
1893 pydia-properties.c(PyDiaProperties_Str)
1894 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
1895 use %p to format pointers
1896 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
1897 dont cast to float for %d
1898 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
1899 use correct pointer type
1900 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
1901 dont discard qualifier aka dont free const strings
1902 * plug-ins/python/pydia-properties.c : casts to PyCFunction
1903 * plug-ins/python/pydia-property.c : removed unused function,
1904 make ensure_quarks() static
1905 * plug-ins/python/pydia-render.c : removed unused vars, use
1906 the correct signature for begin_render
1907 (dia_py_renderer_finalize): pluged a leak
1908 => except -fno-strict-aliasing there is no warning left in
1911 2005-06-12 Hans Breuer <hans@breuer.org>
1913 * app/filedlg.c : really fix the file extension mismatch on export dialog
1914 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
1916 2005-06-11 Hans Breuer <hans@breuer.org>
1918 * configure.in config.h.win32.h : mark as +cvs (should have been
1919 done directly after the 0.94 release)
1920 * NEWS : attempt to summarize 2/3 year of development
1923 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
1924 finally passes again
1926 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
1927 app/run_dia.sh --credits > THANKS => Segmentation fault
1928 * app/pixmaps/Makefile.am : added group.png and ungroup.png
1929 * Makefile.am : work around scrollkeeper bug
1930 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
1932 * po/*.po : 'noise' produced by make dist
1934 2005-06-10 Hans Breuer <hans@breuer.org>
1936 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
1937 * objects/custom/custom_object.c : ... and use it to avoid
1938 complains about missing attribute "show_background". It is
1939 safe to leave this uninitialized. Same for flip_* and "text",
1940 the latter with comment cause it usually is *not* safe to do
1941 it for the general case. Fixes remaining issues with bug #169006
1942 which where caused by an incompatible change in the shape file.
1944 * app/commands.c : use "gnome-open" instead of "netscape" as
1945 fallback for $BROWSER not set. Still not optimal but better
1946 to try some common desktop tool than an obsolete browser;)
1947 Fixes bug #307142. Also some whitespace changes.
1949 * app/interface.c(toolbox_delete): avoid random return value.
1950 Patch from Stanislav Brabec, fixes bug #307143
1952 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
1953 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
1954 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
1956 2005-06-06 Lars Clausen <lars@raeder.dk>
1959 * app/modify_tool.c:
1960 * app/textedit.[ch]:
1961 Better support for text edit highlight.
1963 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
1964 the mainpoint extra visible.
1966 2005-06-02 Lars Clausen <lars@raeder.dk>
1968 * objects/UML/class_dialog.c:
1969 * objects/UML/class.[ch]:
1970 The final fixes for mainpoint on UML Class.
1972 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
1973 Ian Redfern, now in color and with mainpoints! Very pretty!
1975 2005-06-02 Hans Breuer <hans@breuer.org>
1977 * objects/UML/class_dialog.c : the memory managment with respect to
1978 attribute/operation connections was/is a mess. But it should work again ;)
1980 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
1981 directly from the UML Specification - to show the power of Dia and
1982 some weakness. Watch the bug reports following ;)
1984 2005-06-01 Hans Breuer <hans@breuer.org>
1986 * app/dia.def : export diagram_update_connections_object
1987 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
1988 Patch from Paolo Bernardi, together with the property setting closes bug #300572
1990 2005-06-01 Hans Breuer <hans@breuer.org>
1992 * plug-ins/python/pydia-property.c : complete refactoring of property
1993 setting, now also supports setting of property arrays
1994 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
1995 Python namespacing conventions
1996 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
1997 complete UML Classes with attributes and operations
1998 * plug-ins/python/otypes.py : now also show the properties of the objects
2000 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
2001 (pointers), they might be changed with attributes and opertions changing
2003 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
2004 were broken. Apparently noone used them before.
2006 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
2007 which only operate on the DiagramData to the latter file. To get on the DiagramData
2008 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
2009 but I don't know how to reflect that in the bindings. And for backward compatibility
2010 there also is the 'data' member.]
2012 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
2013 objects/UML/umlparameter.c : describe enums with PropEnumData
2015 * app/commands.c(view_show_all_callback) : if there is something selected show
2016 that instead of all exisiting objects. If there is noting or all selcted it
2017 "Show all" shows the old behaviour.
2019 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
2020 leaks and use less allocations caused by misguided API. Also some adaption to common
2023 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
2025 * app/makefile.msc : added new icons and build as console app while
2026 not releaseing to the general public
2028 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
2029 and keep a refernce when storing the a font from style="" in s.font. This should
2030 finally allow to have shapes with fully predefined text (and no 'random' crashes)
2032 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
2033 capable to interpret it's output
2035 2005-05-31 Lars Clausen <lars@raeder.dk>
2037 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
2039 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
2041 * configure.in: Added ne in ALL_LINGUAS
2043 2005-05-24 Lars Clausen <lars@raeder.dk>
2045 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
2046 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
2049 2005-05-23 Lars Clausen <lars@raeder.dk>
2051 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
2053 2005-05-21 Lars Clausen <lars@raeder.dk>
2055 * lib/diaarrowchooser.c:
2056 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
2057 'infinite' line (three dots) arrowhead. Fix line length in arrow
2058 preview. And fix typo. Fixes bug #303904.
2060 2005-05-20 Hans Breuer <hans@breuer.org>
2062 * lib/text.c : advice from valgrind and data_string() review:
2063 neither g_free() memory on the stack
2064 * objects/GRAFCET/boolequation.c : ... nor const strings
2065 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
2068 * app/diagram.c : a g_object_ref() following g_object_new() is almost
2069 always wrong. Why would we need two refernces?
2070 * app/app_procs.c : same here.If it crashes later on someone is dropping
2071 refernces he does not own, and *that* needs to be fixed. This is reverting
2072 "Remember to ref g_object_new'd object" (bug #170972) below, which
2073 causes more harm (leaking, hiding bugs elsewhere) than good.
2075 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
2076 diagramdata_destroy() which was only a wrapper to g_object_unref()
2078 * app/display.c(selection_changed) : don't g_strdup_printf() without
2079 g_free() later /or/ a C++ comment of me mostly denotes an error
2081 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
2083 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
2084 const gchar* entry it must not eat memory, added a lot of g_free() and
2085 some const. Fixed a bunch - i.e. *all* - warnings.
2086 * lib/widget.h : removed unused/deleted functions
2088 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
2089 avoid 'Invalid write of size 4', no luck yet
2091 2005-05-19 Lars Clausen <lars@raeder.dk>
2093 * objects/UML/class.c:
2094 * objects/UML/class.h:
2095 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
2096 for uml class object. #ifdef'd out right now.
2098 2005-05-18 Lars Clausen <lars@raeder.dk>
2100 * objects/standard/line.c: Make line adjust its actual endpoints
2101 for autogap -- looks and feels better.
2103 * objects/standard/arc.c:
2105 * app/modify_tool.c: Patch from Grégoire Dooms
2106 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
2107 shifted arc angle movement.
2109 2005-05-16 Hans Breuer <hans@breuer.org>
2111 * lib/widget.c : variable declarations need to be at the start of a block,
2112 at least as we are not using C++ or C99
2114 * plug-ins/python/pydia-property.c : implment the read part for Property
2115 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
2116 They are working quite well as can be seen with export-object.py
2118 * plug-ins/python/codegen.py : prove it once more with the generation of C++
2119 or Python code from an UML Diagram. Simply save as .py or .cxx ...
2120 * plug-ins/python/Makefile.am : install it
2122 2005-05-16 Lars Clausen <lars@raeder.dk>
2124 * app/pixmaps/{un}group.png:
2125 * app/Makefile.am (ICON_PNG_PAIRS):
2126 * app/menus.c (display_menu_items):
2127 New icons for grou/ungroup finally added, closing bug #105519.
2129 * app/Makefile.am: Dependencies for pixmaps.
2131 * app/pixmaps/connectable.png: An icon that actually makes sense
2132 for switching connectability.
2134 2005-05-15 Hans Breuer <hans@breuer.org>
2136 * lib/group.c object/UML/classicon.c : fixed leftovers of
2137 'Adding connectionpoint to _move_handle
2139 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
2140 is *ALWAYS* a memory leak. Plug some more.
2143 In preparation to make UML operations/attributes/parameters setable by Python
2144 UML class became more StdProp conformant. A nice experience to be the first
2145 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
2147 * objects/UML/umlattribute.c objects/UML/umloperation.c
2148 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
2149 split from objects/UML/uml.c and made StdProp aware
2150 * objects/UML/class.c : finally make "attributes", "operations", "templates"
2151 <template parameters> first class StdProps citizens.
2152 (umlclass_load) : removed hand-written parsing for the above, it is all done
2153 by object_load_props() now. The old write code is still in place, so be very
2154 careful when changing something - at the moment load/save it is 100% compatible
2156 * objects/UML/uml.c : now just type registration here, as it is supposed to be
2157 * objects/UML/Makefile.am objects/makefile.msc : build the new files
2159 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
2161 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
2162 (darray_prop_adjust_object_records) : don't loop forever
2163 (whole file) : use the new (working) way to get on the second level offsets.
2164 Also resolved some abbreviations, it is complicated enough without them ;)
2165 * lib/proplist.c : even complete list contents may be optional
2167 2005-05-15 Hans Breuer <hans@breuer.org>
2169 * lib/bezier_conn.c(remove_handles) : don't try to remove
2170 non-exisitng handles (patch from Radek Krahl, bug #302273)
2172 2005-05-15 Hans Breuer <hans@breuer.org>
2174 * plug-ins/metapost/render_metapost.c : locale independent output
2175 (Radek Krahl, bug #301866)
2177 2005-05-12 Lars Clausen <lars@raeder.dk>
2179 * shapes/Cisco/*.{shape,png}:
2180 * sheets/cisco*.sheet.in:
2181 Updated with color icons from Ian Redfern, closing bug #303889.
2182 Added automatic midpoints, not attempt at adjusting them.
2184 2005-05-11 Lars Clausen <lars@raeder.dk>
2186 * many shapes: Use mid of bounding box for midpoint, better than
2187 mid of connection points generally.
2189 2005-05-10 Lars Clausen <lars@raeder.dk>
2191 * lib/widgets.c: Decided on one way for the ratio thing in arrow
2192 size selector: Fixed ratio is on by default and keeps the sizes
2193 at the given ratio, but doesn't clamp them to be the same. Fixes
2196 * lib/font.c: Fix for bug #303695: Allow more than one entry of
2197 each legacy name, thereby correctly encoding bold and italic of
2198 the three main fonts. Also use | rather than || to combine slant
2199 and weight, so matching works. Had to remove binary search for
2200 new font name, but the list is short enough it's not a problem.
2202 2005-05-09 Lars Clausen <lars@raeder.dk>
2204 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
2206 2005-05-08 Hans Breuer <hans@breuer.org>
2208 * objects/UML/class.c : Reverted to have no center point.
2209 At first it looked as if there was only the bug to not increase
2210 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
2211 potentially much more dynamic connection points (to the left
2212 and right of every attribute/operation). Now simply adding one
2213 between see static and dynamic will screw up any existing diagram
2214 which makes use of the dynamic connection points. The would all
2215 be connected with an off-by-one error. I have no idea how to
2216 code around that. But breaking backward compatibility is no
2217 option here. Does not completely fix bug #303301 ...
2219 * lib/widget.c(dia_font_selector_set_font): actually set the options
2220 menu state. So we are not any longer resetting the font style on Apply.
2221 Use "UML - Class" dialog as stress text example.
2223 * app/command.c : some people insist to close diagrams already
2224 closed using tear-off menus. Maybe we should add a dialog
2225 "Do you want to call Dr. Watson now?". If there is no diagram
2226 to close anymore just do nothing, fixes bug #303221
2227 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2228 Calling this with no display to close is a pathological case.
2230 * app/diagram.[hc] : moved object.h and other DiaObject stuff
2231 to the implementation in preparation of Big Things(tm)
2233 * app/interface.c : less warnings and make it compile. strncmp()
2234 does not take a char**, neither does gdk_pixbuf_new_from_inline().
2236 * objects/makefile.msc plug-ins/makefile.msc : less output
2238 2005-05-08 Lars Clausen <lars@raeder.dk>
2240 * lib/orth_conn.c (orthconn_init): The right place to set the
2241 default autorouting value. Fixes bug #303291.
2243 * app/display.c (ddisplay_close): Patch from Radek Krahl
2244 (ptasz3k@o2.pl): Fix crash when using from detached menu
2247 2005-05-07 Lars Clausen <lars@raeder.dk>
2249 * lib/orth_conn.c (orthconn_load): Autorouting should default to
2250 off in diagrams that don't have it explicitly. All diagrams
2251 should be explicit about it.
2253 2005-05-06 Hans Breuer <hans@breuer.org>
2255 * app/samples/Self/*.dia : some UML diagrams describing Dia's
2256 inner working (or it's future;)
2258 2005-04-26 Lars Clausen <lars@raeder.dk>
2260 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2261 change to display of mainpoint to be easier to debug autogenerated
2264 2005-04-23 Hans Breuer <hans@breuer.org>
2266 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2267 plug-ins/python/pydia-properties.h : use lib/ prefix for
2268 Dia internal headers with too common names (fixes bug #173061)
2270 * app/display.c : stop special casing the first display of
2271 a diagram. Every display now has it's own refernce. The initial
2272 reference gets dropped when there is no display anymore. See
2273 diagram_remove_ddisplay(). Fixes bug #300744.
2275 * app/diapsft2renderer.c : locale independent output
2276 (Radek Krahl, bug #300847)
2277 * app/paginate_psprint.c : fixing use of setlocale() calls
2278 (Radek Krahl, bug #300886)
2279 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2280 (Radek Krahl, bug #300889)
2282 * objects/UML/class.c : fix another crash with the line
2283 wrapping code (Gabor Simon, bug #160865)
2285 * plug-ins/cairo/diacairo.c : image rendering had an endianess
2286 issue (or is this working around a libpixman bug?;)
2288 2005-04-21 Lars Clausen <lars@raeder.dk>
2290 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2292 * shapes/**/*.shape: All shapes now have midpoints.
2294 2005-04-20 Lars Clausen <lars@raeder.dk>
2296 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2297 (Radek Krahl): Make sure there's enough handles for the line.
2300 * objects/UML/node.c (node_draw): Better drawing method avoids
2301 garbage after moving. Fixes bug #301032.
2303 2005-04-17 Hans Breuer <hans@breuer.org>
2305 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
2306 changes (whould compile with current cvs and 0.(3|4).0
2308 2005-04-11 Lars Clausen <lars@raeder.dk>
2310 * xmldocs.make (all): Fix to put installed docs in right place
2311 under disable-gnome.
2313 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2316 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2317 (Leonardo Boshell): Use standard gnome help if called with Gnome.
2319 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2320 locale issues for eps output. Fixes bug #173135.
2322 2005-04-10 Hans Breuer <hans@breuer.org>
2324 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
2325 changes (somewhat broken)
2327 * plug-ins/pstricks/render_pstricks.c : still C89 ...
2328 * objects/custom/shape_info.c : ... but with prototypes
2330 2005-04-07 Lars Clausen <lars@raeder.dk>
2333 * plug-ins/svg/render_svg.c:
2334 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2335 Make decimal separators be correct in save file formats
2336 (non-localized). Fixes bugs #172529 and 172531.
2338 2005-04-06 Lars Clausen <lars@raeder.dk>
2340 * app/create_object.c (create_object_button_release):
2341 * app/modify_tool.c (modify_button_release): Correct activations
2344 2005-04-05 Simon Kågström <ska@bth.se>
2346 * app/app_procs.c: the --show-layers option can now handle numeric
2349 2005-04-05 Lars Clausen <lars@raeder.dk>
2351 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2352 (Tom Kast): Avoid blockiness caused by bad updates.
2354 2005-04-03 Lars Clausen <lars@raeder.dk>
2357 * lib/beziershape.c: Main points. A crude solution, having the
2358 center in the middle of the bb. Shows a bug in the distance_from
2359 code for polyshape when a side is horizontal.
2361 2005-04-02 Lars Clausen <lars@raeder.dk>
2363 * plug-ins/pstricks/render_pstricks.c:
2364 * plug-ins/xfig/xfig-export.c: Patch from Radek
2365 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
2367 2005-04-02 Hans Breuer <hans@breuer.org>
2369 * lib/dia_image.c(dia_image_filename) : return the path
2370 again. (bug #172416, Radek Krahl)
2372 2005-04-01 Steve Murphy <murf@e-tools.com>
2374 * configure.in: Added "rw" to ALL_LINGUAS.
2376 2005-03-31 Lars Clausen <lars@raeder.dk>
2378 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2380 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2383 * objects/network/basestation.c: Main points.
2385 2005-03-27 Hans Breuer <hans@breuer.org>
2387 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2388 * app/pixmaps.h : removed arrow.xpm
2389 * lib/Makefile.am : added diamarshal
2390 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2391 => makes 'make dist' pass and produce a useable package
2393 * po/*.po : 'noise' profuced by make dist
2395 2005-03-24 Lars Clausen <lars@raeder.dk>
2397 * objects/flowchart/parallelogram.c (pgram_update_data):
2398 * objects/flowchart/ellipse.c (ellipse_update_data):
2399 * objects/flowchart/diamond.c (diamond_update_data):
2400 * objects/flowchart/box.c (box_update_data): Main points.
2402 * objects/custom/custom_object.c (custom_create):
2403 * objects/custom/shape_info.h:
2404 * shapes/Assorted/square.shape:
2405 * objects/custom/shape_info.c (load_shape_info):
2406 * doc/shape.dtd: Added main point support to shapes, and an
2407 example of how to use it.
2409 2005-03-21 Lars Clausen <lars@raeder.dk>
2411 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2412 unnormalize from same point as you normalize, or else!
2414 2005-03-20 Lars Clausen <lars@raeder.dk>
2416 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2417 Remember to ref g_object_new'd object.
2419 2005-03-19 Hans Breuer <hans@breuer.org>
2421 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2422 have configurations, fixes bug #170962
2424 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2425 or better not used any longer. Fixes bug #169142.
2427 * lib/element.c(element_update_connections_rectangle): don't initialize
2428 the eighth point twice but instead the nineth once
2430 * objects/standard/bezier.c : no C++ comments *please*
2432 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2434 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2435 * plug-ins/python/pydia-image.c : ... so, don't do it!
2437 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2438 also named colors via pango_color_parse()
2440 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2442 * lib/libdia.def : updated externals
2444 * app/object_ops.c : still not C99 everywhere
2446 2005-03-19 Hans Breuer <hans@breuer.org>
2448 * lib/autoroute.c : at least it should compile ;)
2450 2005-03-19 Lars Clausen <lars@raeder.dk>
2452 * lib/autoroute.c: Orthconns now do autogap.
2454 2005-03-17 Lars Clausen <lars@raeder.dk>
2456 * app/authors.h: Added Gregoire Dooms for gap stuff.
2458 * objects/standard/polyline.c: Patch from Grégoire Dooms
2459 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2461 * objects/standard/bezier.c: Patch from Grégoire Dooms
2462 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
2466 * objects/UML/state_term.c:
2467 * objects/UML/large_package.c:
2468 * objects/UML/node.c:
2469 * objects/UML/object.c:
2470 * objects/UML/small_package.c:
2471 * objects/UML/state.c:
2472 * objects/UML/usecase.c:
2473 * objects/UML/note.c:
2474 * objects/UML/actor.c:
2475 * objects/UML/classicon.c:
2476 * objects/UML/component.c:
2477 * objects/Misc/analog_clock.c:
2478 * objects/Jackson/requirement.c:
2479 * objects/Istar/goal.c:
2480 * objects/Istar/actor.c:
2481 * objects/FS/function.c:
2482 * object/standard/box.c:
2483 * objects/ER/entity.c:
2484 * objects/ER/relationship.c:
2485 * objects/ER/attribute.c: Main points added. Distance_from fixed
2486 in attribute, broken in relationship, I* goal, Jackson
2487 requirement, analog_clock, all non-rectangular UML elements,
2490 * lib/element.[ch]: New method to help update connection points.
2492 * app/menus.c: Change Help/Manual to Help/Contents to follow
2495 * objects/standard/line.c:
2496 * lib/geometry.[ch]:
2497 * objects/standard/bezier.c: Patch from Grégoire Dooms
2498 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2499 bezier objects. Autogap nowchanged to be a function of the
2503 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2506 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2507 CP_FLAG_ANYPLACE connpoints.
2509 2005-03-16 Lars Clausen <lars@raeder.dk>
2511 * app/interface.c (create_tools): Removed debug printf.
2513 2005-03-15 Lars Clausen <lars@raeder.dk>
2515 * lib/widgets.[ch]: Constification.
2517 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2520 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2522 * lib/connectionpoint.h: Flags for connection points.
2524 * app/create_object.c (create_object_motion):
2525 * app/modify_tool.c (modify_motion): Minor refactoring.
2527 * app/object_ops.c (object_find_connectpoint_display): Extend with
2528 finding connpoints that cover entire objects.
2530 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2532 * objects/custom/custom_object.c (custom_setup_properties): Avoid
2535 2005-03-13 Hans Breuer <hans@breuer.org>
2537 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2539 2005-03-13 Hans Breuer <hans@breuer.org>
2541 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2542 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
2543 dia_svg_style_copy(), dia_svg_style_init()
2545 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2548 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2549 not wrapped in the style attribute
2551 * plug-ins/svg/svg-import.c : implement nested group handling and style
2552 'style inheritance'. Still no transformations, no <image/>, no <style/>
2555 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2556 the latter is for programmers.
2557 Also be more tolerant if the document root namespace is not 'svg'. If the svg
2558 namespace is defined in the file search for the top node including svg. This
2559 allows us to re-read the svg part of our own shape format.
2561 * lib/libdia.def : there is no give_focus_to_object
2562 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
2563 type as an expression
2565 * lib/geometry. c : use G_IMPLEMENT_INLINES
2566 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2568 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2569 gone when trying to remove the focus
2571 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2572 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2573 case of this plug-in, i.e. producing output files]
2575 2005-03-13 Lars Clausen <lars@raeder.dk>
2577 * lib/Makefile.am (BUILT_SOURCES):
2578 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2579 the building of the icons header files.
2580 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2582 2005-03-13 Hans Breuer <hans@breuer.org>
2584 * configure.in : require Cairo 0.3.0
2585 plug-ins/cairo/diacairo.c : changed to match ;-)
2587 * app/app_procs.c() : new function dump_dependencies()
2588 which gets called by: dia --version --verbose
2589 and may help to track version dependent problems in
2592 * lib/font.c : reverted to previous version cause using
2593 not implemented Pango API did not improve the issue.
2594 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2595 for more information.
2597 * lib/dialinechooser.c : a little shrinking of the
2598 initial size (to work around line wrappjing the right
2601 2005-03-11 Lars Clausen <lars@raeder.dk>
2603 * app/textedit.c: Concentrate start/end editing in single functions.
2605 2005-03-10 Lars Clausen <lars@raeder.dk>
2608 * lib/object.h: Added new object function to allow the object to
2609 be notified when its text is being edited.
2612 * app/modify_tool.c:
2615 * lib/focus.c: Remove sideeffects from focus objects, add getter
2618 2005-03-09 Lars Clausen <lars@raeder.dk>
2620 * lib/Makefile.am (dia-lib-icons.h):
2621 * app/Makefile.am: Minor cleanup.
2623 2005-03-06 Hans Breuer <hans@breuer.org>
2625 * app/app_procs.c : avoid "assignment within conditional expression"
2626 and handle -L for the GOption case as well.
2628 * lib/widget.c : strchr() does not return -1 on not found but NULL;
2629 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
2630 indirection from 'const int '
2632 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
2633 large_arc, thus produce correct arc output (like diasvg.py does;),
2636 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
2637 from objects/custom/shape_info.c to be shared with object/custom and
2638 plug-in/svg -> finally the C based svg-import reads pathes again.
2639 Added arc parsing while I was there, which fixes bug #169191
2640 * objects/custom/shape_info.c(parse_path) :
2641 * plug-ins/svg/svg-import : reuse above function
2642 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2643 But in general this does only support a small subset of what is
2646 2005-03-06 Lars Clausen <lars@raeder.dk>
2648 * objects/UML/association.c: Patch from Dave Klotzbach applied:
2649 Add visibility to association arrow. Fixes bug #157012.
2651 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2652 closing bug #161040.
2654 * app/layer_dialog.c (create_button_box): Use stock icons instead
2655 of homemade onces. Gets us rid of four more XPMs.
2657 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
2659 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2660 This option permits command line control of which layers are visible.
2661 Useful when automatically exporting multiple versions of the same
2662 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2663 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2664 and made it static since its only used in that file.
2665 * app/authors.h: added myself
2666 * doc/en/dia.1: documented the switch
2667 * doc/en/usage-layers.xml: ditto
2669 2005-03-05 Alan Horkan <horkana@tcd.ie>
2671 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2672 this restores how Dia behaved before the GTK2 port and seems to help
2673 allow the toolbox to be more easily resized. Bug #108891.
2675 2005-03-05 Lars Clausen <lars@raeder.dk>
2677 * Civil/civil_motor.shape:
2678 * Civil/civil_rotor.shape:
2680 * Logic/buffer.shape:
2681 * Logic/connector.shape:
2682 * Logic/inverter.shape:
2688 * shapes/Assorted/arrow-left-up.shape:
2689 * shapes/Assorted/heptagon.shape:
2690 * shapes/Assorted/star5.shape:
2691 * shapes/Assorted/trapezoid.shape:
2692 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2693 defaults, see bug #169143.
2695 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2698 * doc/en/Makefile.am: Finally figured out the right way to ask for
2699 the manpage xslt. Closes bug #144539.
2701 2005-03-01 Lars Clausen <lars@raeder.dk>
2703 * lib/Makefile.am (nodist_include_HEADERS):
2704 * app/Makefile.am: Correctly generate these files from PNGs with
2709 * lib/widgets.c: Refactor toggle button factory to allow inline
2712 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2714 * app/makefile.msc (ICON_PNG_PAIRS):
2715 * app/dia-app-icons.h: Updated with more icons.
2718 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2721 * app/interface.c (create_display_shell):
2722 * app/layer_dialog.c (dia_layer_widget_init):
2723 * lib/dia_image.c (dia_image_get_broken): Use inlined data
2726 * app/display.c (ddisplay_close): Removed unused includes.
2728 2005-03-01 Lars Clausen <lars@raeder.dk>
2730 * app/sheets.c (create_object_pixmap): Create a placeholder image
2731 for when the real image is missing. Better than crashing:)
2734 2005-02-25 Hans Breuer <hans@breuer.org>
2736 * app/app_procs.c : don't requets to open a default display with
2737 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2739 2005-02-22 Lars Clausen <lars@raeder.dk>
2741 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2744 2005-02-19 Lars Clausen <lars@raeder.dk>
2746 * app/menus.c (display_menu_items): Applied patch from bug #94019:
2747 Menu cleanup and addition of icons. Also a few additional stock
2750 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2753 2005-02-14 Lars Clausen <lars@raeder.dk>
2755 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2757 2005-02-13 Lars Clausen <lars@raeder.dk>
2759 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2760 width. Seems to work. Once tested some more, needs old code
2763 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2764 warning by escaping & properly.
2766 2005-02-06 Lars Clausen <lars@raeder.dk>
2768 * app/filedlg.c (file_export_callback): Set correct extension as
2769 soon every time the dialog is shown. Fixes bug #162535.
2771 * app/display.c (ddisplay_set_origo): Use more standard
2774 * app/modify_tool.c (modify_motion):
2775 * app/create_object.c (create_object_motion): Put coordinates of
2776 handle/object in status bar while moving. Fixes bug #163164.
2778 2005-02-03 Lars Clausen <lars@raeder.dk>
2780 * lib/.cvsignore: Added generated files diamarshal.[ch]
2782 2005-02-02 Lars Clausen <lars@raeder.dk>
2784 * configure.in: Add GLIB_GENMARSHAL def as suggested in
2785 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2786 Now compiles on Linux.
2788 2005-02-01 Lars Clausen <lars@raeder.dk>
2790 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2791 need to translate the empty string. Especially not after
2792 g_assert_not_reached(). Fixes bug #165966.
2794 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
2796 * objects/UML/activity.c : add fill- and line-colour properties
2797 [applied by Hans Breuer, fixes bug #163260]
2799 2004-01-28 Hans Breuer <hans@breuer.org>
2801 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2802 update provided by Alan Horkan (fixes bug #159592)
2804 2004-01-28 Hans Breuer <hans@breuer.org>
2806 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2807 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2808 generalization, dependancies, parameterized classes ...
2809 * plug-ins/xslt/styleshetts.xml : refernce it
2810 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2812 2004-01-28 Hans Breuer <hans@breuer.org>
2814 * objects/UML/transition.c : fill out the extra_spacing struct
2815 in the OrtConn member, in order to avoid artifacts when draggin
2816 the transition. (patch by Peter Allin, bug #144956)
2818 2004-01-15 Hans Breuer <hans@breuer.org>
2820 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2821 to something differnt than 0. Apparently there are case where Dia misses
2822 to appropriately set it before requesting a dashed line (simple line with
2823 arrow as described in bug #151716)
2825 * lib/dia_dirs.c : special casing for drive letters which I broke with
2828 2005-01-13 Hans Breuer <hans@breuer.org>
2830 * app/interface.c(create_sheet_page) : remved dead long time code
2832 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2833 it is availbale via header - which is the better style anyway
2835 2004-12-31 Hans Breuer <hans@breuer.org>
2837 * lib/dia_dirs.c(dia_get_canonical_path) : complete
2838 rewrite to handle something like /mnt/some/where/../else
2839 too. Workaround for bug #162637.
2840 * app/filedlg.c : call gtk_file_chooser_set_current_name()
2841 to workaround gtk_file_chooser_set_filename() not setting
2842 it if the file does not exist
2844 * sheets/Jackson.sheet.in app/menus.c : fixed typos
2845 (Frank Arnold, bug #161676)
2847 2004-12-31 Steffen Macke <sdteffen@gmail.com>
2849 * doc/pl/*.xml: Added XML prolog
2850 * makefile.msc: Added libxslt, fixed libxml, libart
2852 2004-10-29 Alexander Shopov <ash@contact.bg>
2854 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2856 2004-12-29 Lars Clausen <lars@raeder.dk>
2858 * configure.in: Make gnomeprint be truly off by default (typo) and
2859 show optional compilation correctly.
2860 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2862 2004-12-22 Hans Breuer <hans@breuer.org>
2864 * lib/widgets.c : destroy handlers can be called more than once,
2865 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
2867 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
2869 * app/display.c : temporary debug code showing the
2870 timing the rendering
2872 * app/dialibartrenderer.c(draw_string) : removed dead
2873 code loading and leaking font and face
2875 2004-12-15 Hans Breuer <hans@breuer.org>
2877 * app/display.c : actually use the selction-changed signal for something
2878 useful. Show selections representation on statusbar.
2879 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
2880 * app/diagram_tree.c : use new function (as in app/display.c) and only
2881 poke into property internals at one place
2882 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
2885 2004-12-12 Hans Breuer <hans@breuer.org>
2887 * lib/libdia.def app/dia.def : updated externals
2889 * objects/custom/custom_object.c : custom_destroy is called per object.
2890 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
2891 reference to it. Fixes e.g. bug #158288, #160550, ...
2893 * objects/UML/association.c(association_draw) : completed porting to
2894 draw_polyline_with_arrows()
2895 (association_update_data_end) : fixed typo in point compare
2896 (association_update_data) : for name placement take degenerated
2897 segements into account. Together this fixes bug #143891
2899 2004-12-11 Hans Breuer <hans@breuer.org>
2901 * lib/widgets.c(set_size_sensitivity) : revert inverted
2902 logic for arrorw size selections, fixes bug #160527
2904 2004-12-11 Hans Breuer <hans@breuer.org>
2906 * lib/widgets.c(dia_font_selector_set_font) : initialize
2907 the font style widget, too. Gets rid of empty font
2908 style and thus default broken font style, e.g. UML::class_name
2910 * lib/widgets.c(dia_color_selector_more_callback) : fill
2911 the color palette from dynamic menu entries and also
2912 preselect the current color to the last select entry
2914 * plug-ins/python/pydia-diagramdata.c : hold a reference
2915 to the underlying GObject
2917 * app/Makefile.am app/diagrid.h : new file containing the
2918 grid 'class' moved from DiagramData to Diagram.
2919 Also moved pagebreak_color and guides cause they are only
2920 used for visual appearance not 'data'.
2921 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
2922 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
2925 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
2926 lib/libdia.def : get rid of new_diagram_data()
2927 Diagram _is_ DiagramData (and does not have one any longer,
2928 just a compatibility pointer)
2930 * lib/diarenderer.h : a small doc improvement
2932 2004-12-11 Hans Breuer <hans@breuer.org>
2934 * objects/UML/class.c : line wrapping code buffer
2935 overrun fixed by Gabor Simon, bug #160865
2937 2004-12-11 Hans Breuer <hans@breuer.org>
2939 * plug-ins/python/pydia-diagram.c : hold a reference
2940 to the diagram in PyDiaDiagram, avoids bug #159080
2941 [another way to avoid is to detroy the dialog by
2942 clsoing it. But now there is still a diagram to
2943 apply the changes to, even if it's thrwon away just
2946 2004-12-10 Hans Breuer <hans@breuer.org>
2948 * **/*.c : fixed a bunch of warnings, not only for -ansi
2949 (still too many of them, but -ansi works)
2951 prop_geomtypes.h prop_geomtypes.c:306: warning: static
2952 declaration for `fontsizeprop_reset_widget' follows non-static
2953 dia_dirs.c:196: warning: return discards qualifiers from
2957 shape_info.c:121: warning: static declaration for `parse_path'
2961 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
2962 arrow.c:244: warning: unused variable `i'
2963 arrow.c:245: warning: unused variable `p'
2964 arrow.c:246: warning: unused variable `zzr'
2966 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
2967 finally removed c++ comments
2969 objects/Istar/goal.c : initialize connections::directions
2970 while I was there - helps autorouting
2972 * objects/KAOS/metaandorrel.c objects/Istar/link.c
2973 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
2974 (it would be quite simple to add image-from-memory support
2977 * pydia-*.h : warning: no newline at end of file
2979 * plug-ins/gprint/diagnomeprint.c : allow to unregister
2980 and follow new unique name naming convention
2981 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
2984 2004-12-07 Hans Breuer <hans@breuer.org>
2986 * objects/UML/message.c : better default for initial text placement
2987 a suggested in bug #154306, Henning Mersch
2988 * objects/UML/constraint.c : doing the same
2990 * app/filedlg.c : include persistence.h for persistence_get_integer
2991 * lib/libdia.def export it
2993 2004-12-05 Hans Breuer <hans@breuer.org>
2995 * app/grid.c : respect dynamic grid during snap-to, fixes
2996 bug #135124, Dmitriy Morozov. Added some additional magic
2997 to make the grid size more useable.
2999 2004-12-05 Hans Breuer <hans@breuer.org>
3001 * app/app_procs.c : make it compile for the HAVE_POPT and
3002 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
3004 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
3005 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
3006 when interactive. Fixes bug #119329
3008 * plug-ins/cairo/diacairo.c : adapt to new type naming
3009 scheme (introduced by accident;-) for pixbuf-*
3010 * app/app_procs.c : reflect both type name changes
3012 2004-12-04 Hans Breuer <hans@breuer.org>
3014 * objects/standard/image.c : fix the correct warning
3015 `image_file_name' might be used uninitialized
3017 * app/filedlg.c : near complete rewrite
3018 - removed 'related dialog', GtkOptionMenu, most global vars,
3019 also don't hide the dialog but let it go.
3020 - added: filter view by extension, hopefully working diagram
3021 referencing, GtkComboBox usage
3023 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
3024 of im/export filter entries. So the user interface reflects
3025 the dynamic nature of pixbuf loaders
3027 * lib/filter.[ch] : implement filter_unregister_*port
3028 lib/libdia.def : added new functions
3029 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
3030 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
3031 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
3032 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
3033 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
3034 use them in _plugin_unload () thus all these plug-ins
3035 can be loaded used and unloaded during Dia's runtime
3037 2004-12-04 Lars Clausen <lars@raeder.dk>
3039 * lib/diagramdata.h: Access methods for units defined per diagram.
3041 * lib/font.c (dia_font_new_from_style): More proper object creation.
3043 * lib/properties.h: Refactored the PROP_STD_* macros to allow
3046 * app/diagram.c (diagram_init): Force filename to be absolute
3047 path, easing the job for load/save.
3049 2004-12-03 Hans Breuer <hans@breuer.org>
3051 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
3052 added dia_font_set_height, dia_font_copy (note to self: don't try to
3053 maintain these from the *NIX side ;)
3055 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
3056 the new color selection anymore
3057 * objects/UML/class_dialog.c : with the above change it would have been more
3058 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
3059 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
3061 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
3062 (used in object vtable) and make its prototype match
3064 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
3065 correlate any of these strange crashing bug with it, but assume bad things to
3066 happen when one passes stack allocated stuff to gtk_type_unique()
3068 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
3069 not there. Fixes most of the warnings from bug #156996
3071 * lib/makefile.msc : rules to generate diamarshal.[ch]
3073 2004-11-29 Hans Breuer <hans@breuer.org>
3075 * app/disp_callbacks.c : reenable so-called preedit
3076 as described in bug #158859, Etsushi Kato
3077 Also fixed some compiler warnings while there.
3079 * objects/standard/image.c(get_directory) : make
3080 the documentation match the implementation.
3081 (image_save) : don't write a leading slash on
3084 * plug-ins/gprint/diagnomeprintrenderer.c :
3085 switched to gnome-print-pango usage
3087 * app/app_procs.c configure.in : although Dia
3088 is not threaded it appears as if we have to
3089 g_thread_init() to avoid crashing in some
3090 libraries which are thread enabled
3092 * lib/diamarshal.list lib/Makefile.am : start of
3093 using GSignal to clean up some object relations
3094 * lib/libdia.def : export marshallers
3095 * app/diagram.[ch] : emit signals when REMOVED,
3097 * app/display.c : added a connection to
3098 SELECTION_CHANGED to test the new signal stuff
3100 * app/diagram.c : fixed diagram_finalize while I
3103 2004-11-28 Hans Breuer <hans@breuer.org>
3105 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
3106 the text if conversion to current locale fails. [This is actually
3107 using code written four years ago;]
3108 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
3110 * objects/standard/image.c(image_load) : be more robust against
3111 filenames which seem to be absolute
3113 2004-11-27 Hans Breuer <hans@breuer.org>
3115 * app/filedlg.c(file_save_callback) : convert to
3116 filename encoding before passing to diagram_save()
3117 Fixes bug #158381, thanks to Robert Ögren
3119 2004-11-27 Hans Breuer <hans@breuer.org>
3121 * lib/dialibartrenderer.c : sometimes its good to read
3122 compiler warnings. Not only define renderer_finalize
3123 but actually *use* it. Should plug a potential huge
3126 * configure.in plug-ins/Makefile.am
3127 plug-ins/gprint/Makefile.am : build the experimental
3128 gnomeprint plug-in on *NIX, too.
3129 * plug-ins/gprint/diagnomeprint.c : don't include
3130 specific (private) backend headers but instead select
3131 the desired backend via config key setting
3133 * lib/diagdkrenderer.c : add 1 to size of filled arc
3134 to be rendered by gdk. Fixes bug #150896.
3136 * plug-ins/gprint/diagnomeprint.c
3137 plug-ins/gprint/diagnomeprintrenderer.c : added magic
3138 to better match page and dash sizes
3140 2004-11-27 Hans Breuer <hans@breuer.org>
3142 * plug-ins/shape/shape-export.c : it's g_strdup_printf
3144 2004-11-27 Hans Breuer <hans@breuer.org>
3146 * app/app_procs.c : mention eps-builtin aka. "using
3147 latin1", does not fix the eps-pango issues but #150571
3149 2004-11-27 Hans Breuer <hans@breuer.org>
3151 * sheets/Cybernetics.sheet.in : changed encoding to
3152 utf-8, patch from Takeshi AIHANA, fixes #149580
3154 2004-11-27 Hans Breuer <hans@breuer.org>
3156 * objects/custom/custom_object.c : many existing shapes
3157 rely on a square default size, revert to it although
3158 it originally was by a typo. Fixes bug #148527.
3160 2004-11-27 Hans Breuer <hans@breuer.org>
3162 * app/load_save.c(dia_cleanup_autosave)
3163 app/diagram.c : don't use dia->filename if already
3164 freed and dont use printf at all.
3166 * app/paginate_psprint.c : not only set the renderer::paper
3167 but also renderer::is_portrait. Should fix bug #142524
3169 2004-11-26 Hans Breuer <hans@breuer.org>
3171 * dia.desktop.in : added Bug Buddy headers (as seen
3172 in planner). Hopefully the automatically filling of
3173 bugs is more meaningful by this.
3175 * objects/custom/custom_util.c objects/standard/image.c
3176 lib/plug-ins.c : getting rid of deprecated g_dirname,
3177 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
3178 bytes inside a block of size 44 free'd
3180 * lib/persistence.c(persistence_load_list) : don't
3183 * lib/diaerror.[ch] : (new file) start of better error handling
3184 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
3185 added new files/funcs
3186 * lib/proplist.c lib/propinternals.h (prop_list_load) :
3187 allow to propagate error to caller. Also set PXP_NOTSET
3188 to avoid applying unset properties, fixes bug #155255
3189 * lib/propobject.c lib/prop_sdarray.c : still spewing
3190 g_warnings but now with context information
3192 * app/filedlg.c : more absolute filenames where required
3193 and strip them where we need the filename only
3194 Also explicit DONT choose gnome-vfs backend cause its
3195 threading appears to crash Dia - at least in GNOME build,
3198 2004-11-26 Hans Breuer <hans@breuer.org>
3200 * app/filedlg.c : don't use relative filenames for
3201 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
3203 (export_set_extension) : if we don't have a filename don't
3204 use it in strrchr() to avoid crashing
3206 2004-11-23 Hans Breuer <hans@breuer.org>
3208 * app/app_procs.c : fixed build for the GNOME case
3209 (let's rip out POPT and depend on glib-2.6, please ;-)
3211 2004-11-23 Hans Breuer <hans@breuer.org>
3213 * app/app_procs.c : fixed typo which broke the
3214 build for HAVE_POPT case
3216 2004-11-21 Hans Breuer <hans@breuer.org>
3218 * app/app_procs.c : some more #if-mess, but one day
3219 we should rely on GLib's 2.6 Option Parser alone
3221 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
3222 and height for RoundRect() - otherwise size depends on offset,
3223 shorten the unique name
3225 * plug-ins/python/diamodule.c : provide a unique name
3226 for python filters as well
3228 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3229 by using the right colors (need black background cause we
3230 are tinitng it with the real color later)
3232 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3233 instead of hardcoded slahes, improved portability
3235 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3236 plug-in. Also added some more error reporting (e.g. no printer driver)
3238 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3239 plug-ins/makefile.msc : resurrection of the gnome print renderer.
3240 Kinda works (alpha quality) for export but does not print yet.
3241 With bug #158972 resolved this does even work on win32 :-)
3243 2004-11-07 Hans Breuer <hans@breuer.org>
3245 * doc/diagram.dtd : <composite> can have <composite/>,
3246 <font/> has two 'optional' atributes 'style' and 'family',
3247 these are used to store new (since 0.91) font info.
3248 With this changes non of the issues in bug #147431 remains.
3250 * plug-ins/python/otypes.py : starting to implement an
3251 'create all known object' file as ne stress test source
3252 for the dtd and Dia in general.
3254 2004-11-06 Hans Breuer <hans@breuer.org>
3256 * app/diapsrenderer.c : don't convert to locale but to
3257 "LATIN1", fixes bug #146641
3259 2004-11-06 Hans Breuer <hans@breuer.org>
3261 * app/diagram_tree.c : still no C99 everwhere ...
3262 * lib/libdia.def : update externals
3263 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3265 * app/app_procs.[hc] : declare, use ...
3266 app/winmain.c : ... and implement dia_redirect_console().
3267 Even though newer Gtk version don't popup a console window
3268 anymore redirecting the error messages to a file in $TEMP appears
3269 to be much more reasonable than just ignoring it. Fixes bug #150777
3270 based on a patch from Steffen Macke
3272 2004-11-06 Hans Breuer <hans@breuer.org>
3274 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3275 RoundRect() for high level renderer api implementation thus
3276 fixing bug #138744 reported by Lars Clausen
3278 2004-11-06 Hans Breuer <hans@breuer.org>
3280 * app/prefernces.c : applied patch to make showing the diagram
3281 menubar the default (advanced users know how to switch it off)
3282 Fixes bug #150706, Steffen Macke
3284 2004-11-06 Hans Breuer <hans@breuer.org>
3286 * app/commands.c app/commands.h : added view_fullscreen_callback()
3288 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3289 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3290 ALso modified to allow handling of unmodified keys again (aren't
3291 there plenty of bug reports for this?
3293 2004-11-06 Hans Breuer <hans@breuer.org>
3295 * objects/UML/class_dialog.c : fixed casts for usage
3296 of dia_color_selector_set_color()
3298 * app/filedlg.c : pass a valid filenames to
3299 gtk_file_chooser_set_filename(), if we don't have a name
3300 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
3301 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
3302 assertion `local_full_path[0] == '/'' failed"
3304 2004-11-06 Lars Clausen <lars@raeder.dk>
3306 * app/properties.c (create_dialog):
3307 * app/diagram_tree_window.h:
3308 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
3309 * app/diagram_tree_menu_callbacks.c:
3310 * app/diagram_tree_window.c:
3311 * app/diagram_tree_menu.c:
3312 * app/diagram_tree.c: Changed to use persistence instead of
3313 strange hacks in preferences.
3315 * lib/persistence.h:
3316 * lib/persistence.c (persistent_list_get_glist): Don't deref null
3317 pointer. New function persistent_list_remove_all, and
3318 fixed persistent_list_remove to ... work!
3320 2004-11-05 Lars Clausen <lars@raeder.dk>
3322 * app/paginate_psprint.c (diagram_print_ps): Call
3323 diagram_print_destroy on destroy rather than delete_event. That
3324 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
3327 2004-11-02 Lars Clausen <lars@raeder.dk>
3329 * objects/UML/class.c (umlclass_load): Actually load the saved
3330 fonts and font sizes. Fixes bug #157016
3332 * configure.in: Require at least GTK+ 2.4.
3334 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
3335 finally, finally. Not quite bulletproof yet, and I need to figure
3336 out a minimum version of Gtk that doesn't spew warnings all over.
3338 * app/diagram.[ch]: diagram_set_filename with const filename.
3340 * app/sheets_dialog_callbacks.c
3341 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3342 correctly recreated. Still something fishy with the sheet menu in
3343 the dialog after adding a new sheet. Probably the sheet name
3346 2004-11-01 Lars Clausen <lars@raeder.dk>
3348 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3349 stmping. Now requires g_free here and there.
3351 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3352 for remembering last sheet, better off as persistent string. Must
3353 hunt down other things like that.
3355 * app/interface.c (create_sheets): Now remembers last sheet
3356 selected again. Fixes bug #157036.
3358 2004-11-01 Hans Breuer <hans@breuer.org>
3360 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3361 will never become NULL but only point to the next char
3362 which might indeed be \0]
3363 Use tex_escape_string() to avoid writing invalid tex,
3366 * **/* : a bunch of changes caused by trying 'make distcheck'
3367 which still fails, see Bug #144527
3369 2004-10-31 Lars Clausen <lars@raeder.dk>
3371 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3372 floating point numbers being printed with commas. Fixes bug
3375 * app/interface.c (create_sheet_dropdown_menu): New function to
3376 create the sheet menu, and also allow recreation. Still buggy and
3377 slightly prone to magic.
3379 * objects/UML/class_dialog.c
3380 (attributes_list_selection_changed_callback): Don't try to update
3381 the widgets after they're destroyed. Fixes bug #156706 (I think).
3383 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3384 adjustement. Fixes bug #154637
3386 * sheets/ER/Makefile.am (PIX):
3387 * sheets/GRAFCET/Makefile.am (PIX):
3388 * sheets/Jackson/Makefile.am (PIX):
3389 * sheets/Istar/Makefile.am (PIX):
3390 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3391 XPM. Why these have their pictures in sheets rather than shapes I
3392 don't know. Fixes bug #152142.
3394 2004-10-31 Hans Breuer <hans@breuer.org>
3396 * plug-ins/pixbuf/pixbuf.c : when running non interactive
3397 Dia won't call color_init() as it assumes no display. If
3398 we have one as tested ourselve we can as well color_init()
3399 to avoid g_warnings() and produce the right collors.
3402 * app/app-procs.c : try to be a little more helpful
3403 and correct with regard to the command line options.
3404 Renamed --export-to-format to --export-filter and some
3405 other string changes
3407 2004-10-31 Hans Breuer <hans@breuer.org>
3409 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3410 added GetDeviceCaps() dummy implementation to make
3411 'wmf' compile on Linux, too.
3413 2004-10-31 Hans Breuer <hans@breuer.org>
3415 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
3416 to finally fix the long lasting clipping issue, bug #85831
3417 Also fixed the line style issue for printing on XP and don't
3420 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3422 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3423 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
3425 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
3426 some info from the console (soon gone on windoze) to message_error()
3427 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3428 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3430 plug-ins/python/diasvg_import.py : re.compile() only once per expression
3431 and some more playing with scaling
3433 * plug-ins/python/makefile.msc : updated
3435 2004-10-30 Hans Breuer <hans@breuer.org>
3437 * shapes/Civil/civil_arrow_right.shape : removed
3438 <aspectratio type="fixed" /> thus allowing to change
3439 width and height independently, fixes #154897
3440 (Serge Robinson) by making it consistent with the
3443 2004-10-30 Hans Breuer <hans@breuer.org>
3445 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3446 on arrow being NULL, fixes bug #143063
3448 2004-10-30 Hans Breuer <hans@breuer.org>
3450 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3451 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3452 removed use of chached variable DiagramData::selected_count
3453 * lib/diagramdata.h : renamed to selected_count_private
3454 (kept for binary compatibility and sanity checks)
3455 * lib/diagramdata.c : more checks on a screwed up selection list
3457 * app/diagram.c(diagram_group_selected) : don't screw up the
3458 DiagramData::selected list, was assignment of parent_list_affected(),
3459 * lib/diagramdata.c (data_select, data_unselect) : protect against
3460 multiple selections of the same object and removement of a not selected
3461 object (apparently caused by the recently added group undo stuff)
3462 together with the above this finally fixes bug #153525
3464 * app/Makefile.am : fix ./autogen.sh ->
3465 app/Makefile.am:171: blank line following trailing backslash
3467 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3468 ddisplay_do_update_menu_sensitivity() here as well
3470 * configure.in : make the experimental state of the cairo plug-in
3473 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3474 try to update anything if we can't find an active diagram
3475 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3477 * configure.in : another attempt to fix bug #156116. If there is
3478 anyone with autotools knowledge reading this - help appreciated ;-)
3480 2004-10-30 Hans Breuer <hans@breuer.org>
3482 * objects/makefile.msc objects/UML/Makefile.am
3483 objects/UML/uml.c objects/UML/transition.c
3484 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
3485 Patch from Peter Allin adds statechart transitions to the UML sheet -
3486 bug #144956 - modified to not print("%s", NULL) which crashes on
3487 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3489 2004-10-30 Hans Breuer <hans@breuer.org>
3491 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
3492 match the website anymore, i.e. sould remain unchanged.
3493 See below and lib/dia_xml.h for the reasoning
3495 * lib/libdia.def : removed dia_color_selector_get_type
3497 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3498 (like broken PNG) and g_warning if appropriate
3500 * app/interface.c : #include "message.h"
3502 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3503 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3504 better to just move diaunitspinner to lib/ instead of polluting
3505 widgets.[hc] even more ;)
3506 * app/makefile.msc lib/libdia.def : updated
3508 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3509 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3511 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3512 do something useful when compiled
3514 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3515 Also some more #ifdefed backends usage.
3517 2004-10-10 Lars Clausen <lars@raeder.dk>
3519 * lib/widgets.c: Better labels for color selector menu.
3521 * app/dia-props.c (diagram_properties_respond):
3522 * app/preferences.c (prefs_get_value_from_widget): Don't assume
3523 that a dia color selector is of type DiaColorSelector:)
3525 * lib/widgets.[ch]: Color selector changed to dynamic menu.
3527 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3530 2004-10-09 Lars Clausen <lars@raeder.dk>
3532 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3533 arrow preview to avoid long arrow heads flipping.
3535 * lib/arrows.[ch]: Support for getting from name to arrow type,
3536 and for listing all arrow names.
3538 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3540 * lib/libdia.def: Added new global functions.
3542 * lib/persistence.[ch]: Two of the persistent_list functions to
3543 return whether the item was found in the list.
3545 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3546 the growing number of sheets.
3548 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3551 2004-10-05 Lars Clausen <lars@raeder.dk>
3553 * objects/UML/association.c: Patch from Harvey Thompson
3554 <harveyandsu@yahoo.com>: Better placement of association texts.
3556 2004-10-03 Lars Clausen <lars@raeder.dk>
3558 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3559 use the fonts in question. Can't set tooltips with the name since
3560 lib objects don't know the tool_tips thing, which is rather
3563 2004-09-19 Hans Breuer <hans@breuer.org>
3565 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3566 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3568 2004-09-19 Hans Breuer <hans@breuer.org>
3570 * dia.desktop.in : string changes as proposed in bug #151822
3572 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3573 appearts not to be needed on Linux and breaks the build
3574 on OSX. Fixes bug #152970
3576 2004-09-18 Lars Clausen <lars@raeder.dk>
3578 * app/commands.c (view_show_all_callback): Add a bit of border
3579 around Ctrl-E'd diagram, for easier select and better view of edges.
3581 2004-09-19 Hans Breuer <hans@breuer.org>
3583 * app/Makefile.am : trying to fix the fix from 2004-02-15
3584 Overwriting AM_LDFLAGS still gave a automake warning and it
3585 also appeard to break linking against gtklibs in a differnt
3586 prefix. Use dia_LDFLAGS instead.
3588 * plug-ins/svg/svg-import.c : initialize 'end' before usage
3589 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3591 * lib/diarenderer.c : don't try to draw lines which are so much
3592 degenerated that their point count became negative, fixes bug #148139
3594 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
3595 strings (NULL from g_strdup())
3597 2004-09-10 Steffen Macke <sdteffen@web.de>
3599 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3600 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3601 * app/create_object.c:
3602 * app/diaunitspinner.c:
3603 * app/disp_callbacks.c:
3605 * app/modify_tool.c:
3606 * lib/prop_geomtypes.c:
3607 * lib/prop_geomtypes.h: made compile with msvc
3609 2004-09-10 Lars Clausen <lars@raeder.dk>
3611 * lib/widgets.c: Insulate conversion from outside API by adding
3612 internal function to set value. Adjustment not appropriate for
3615 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3617 2004-09-07 Lars Clausen <lars@raeder.dk>
3619 * app/diapagelayout.c: Include from widgets.c rather than
3622 2004-09-03 Lars Clausen <lars@raeder.dk>
3624 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3625 as unit-based property testbed.
3627 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3628 and fontsize widgets.
3630 * app/Makefile.am (dia_core_files):
3631 * app/diaunitspinner.h:
3632 * app/diaunitspinner.c:
3634 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3635 lib/widgets.[ch], as it's used in the properties code now.
3637 2004-08-31 Steffen Macke <sdteffen@web.de>
3639 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3641 2004-08-30 Lars Clausen <lars@raeder.dk>
3644 * app/diagram.c (diagram_remove_all_selected): Remove debugging
3649 * app/disp_callbacks.c:
3651 * app/create_object.c:
3652 * app/textedit.[ch]:
3653 * app/modify_tool.c:
3656 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3657 current input object, multiple inputs per object, and tabbing
3660 2004-08-28 Steffen Macke <sdteffen@web.de>
3662 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3663 allow separate installer component "Translations"
3665 2004-08-27 Akagic Amila <bono@linux.org.ba>
3667 * configure.in: Added 'bs' to ALL_LINGUAS.
3669 2004-08-26 Steffen Macke <sdteffen@web.de>
3671 * app/makefile.msc: using /subsystem:windows again
3672 * makefile.msc: updated ALL_LINGUAS
3674 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
3676 * configure.in: Add «nb» to ALL_LINGUAS.
3678 2004-08-21 Steffen Macke <sdteffen@web.de>
3680 * plug-ins/dxf/dxf-export.c: Patch from
3681 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3683 2004-08-17 Lars Clausen <lars@raeder.dk>
3686 * dia.spec (Release):
3692 2004-08-13 Ankit Patel <ankit@redhat.com>
3694 * configure.in: Added "gu" in ALL_LINGUAS.
3696 2004-08-07 Lars Clausen <lars@raeder.dk>
3702 * dia.spec (Release):
3703 * NEWS: New release 0.94-pre6
3705 2004-08-07 Lars Clausen <lars@raeder.dk>
3707 * app/highlight.c (highlight_reset_objects): Unhighlight inside
3711 * plug-ins/shape/shape-export.c: String capitalization fix from
3712 Alan Horkan <horkana@tcd.ie>
3714 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3715 Class object menu kinda work, rather than blow up. Doesn't do a
3716 proper undoable change yet.
3718 2004-08-06 Lars Clausen <lars@raeder.dk>
3720 * app/filedlg.c (file_save_as_callback): Don't remove related
3721 dialogs from the NULL diagram.
3723 2004-08-02 Lars Clausen <lars@raeder.dk>
3728 * dia.spec (Release):
3729 * NEWS: Pre5 with leak fix.
3731 * lib/font.c (dia_font_build_layout): Don't try to save an
3732 allocation of LayoutCacheItem if it breaks layout cache hash.
3733 Also make hash function correct, remove explicit height entry
3734 (it's in pfd), and make sure things are correctly unreffed.
3735 Finally fixes #148141.
3737 * lib/text.c (text_set_attributes, text_set_font): Safely unref
3738 when changing font, and actually set the new font in
3740 (text_get_attributes): Ref copied font.
3742 2004-08-01 Lars Clausen <lars@raeder.dk>
3746 * dia.spec (Release):
3749 * doc/en/dia.xml: Prerelease 4.
3751 * lib/font.c (dia_font_build_layout): Better comparision and
3752 freeing of font cache.
3754 2004-07-31 Lars Clausen <lars@raeder.dk>
3756 * lib/font.c (dia_font_build_layout): Faster update to avoid
3759 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3760 Correctly initialize export filter variable.
3762 2004-07-25 Lars Clausen <lars@raeder.dk>
3764 * dia.spec (Release):
3769 * doc/pl/dia.xml: Pre3 coming out.
3771 * lib/diarenderer.c (draw_polygon):
3772 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3773 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3774 rather than O (letter), and assert num_points > 1 rather than the
3777 * app/recent_files.c:
3780 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3781 Make filenames conform to filesystem encoding.
3783 * RDP/.cvsignore: Added standard ignore.
3785 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3786 last entry patch-panel, too.
3789 * shapes/Circuit/*.png:
3790 * shapes/Civil/*.png:
3791 * shapes/Contact/*.png:
3792 * shapes/Electric/*.png:
3794 * shapes/Pneumatic/*.png:
3796 * shapes/flowchart/*.png:
3797 * shapes/jigsaw/*.png:
3798 * shapes/network/*.png:
3799 * shapes/sybase/*.png:
3801 * dia_gnome_icon_large.png:
3802 * doc/pl/graphics/*.png: Set -kb for PNGs.
3804 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3806 2004-07-22 Lars Clausen <lars@raeder.dk>
3812 * dia.spec (Release):
3813 * configure.in: Update to version 0.94-pre2.
3815 * app/load_save.c (diagram_data_write_doc): Use new namespace
3818 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3819 hidden objects properties.
3821 * objects/standard/line.c: Remove halffinished line gap box from
3824 * app/paginate_psprint.c:
3825 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3826 Immidi): Close export and print dialog with diagram as well.
3829 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3830 borelli): Remove deprecated stuff (#137693)
3832 * app/dia-props.c (create_diagram_properties_dialog): Patch from
3833 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
3836 2004-07-21 Ray Strode <rstrode@redhat.com>
3838 * dia/dia.desktop.in: Add MimeType line to desktop file
3841 2004-07-18 Hans Breuer <hans@breuer.org>
3843 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
3844 sheets/UML/*.png : icons in png format
3845 Partial fixup of stuff broken with the following comment:
3846 "7 days : xpm->png, namespace fix, first rotation bits."
3848 * app/load_save.c(read_objects) : don't add objects to the layer.
3849 This function is called recursively and only the topmost objects
3850 belong in the layers object list. Fixes bug #145417 and is the
3851 the real fix for bug #142480
3853 * app/app_procs.c : make the --size hack even uglier, but work again
3855 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3856 but g_free() what is returned by g_build_filename()
3858 * objects/custom/custom_object.c(custom_destroy) : handle all enum
3859 values in switch to get rid of the warning
3861 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
3862 of setlocale()/strtod()
3863 * lib/dia_svg.c : dito
3864 * lib/dia_xml.c : almost
3866 * plug-ins/python/group_props.py : use the string representation of
3867 value to ensure "unique values". If the strings would not be different
3868 the user cann't see the difference either
3870 2004-07-17 Lars Clausen <lars@raeder.dk>
3872 * lib/persistence.h: Have "void" in prototypes (#142663)
3874 * lib/widgets.c (dia_font_selector_init): Better string handling
3877 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
3879 * objects/standard/image.c (image_load): Use path of diagram
3880 rather than running directory as base for image file place.
3882 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
3885 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
3886 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
3888 * Re-added new sample diagrams binarily.
3890 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
3892 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
3893 Disabled keyboard accels when dragging an object.
3895 2004-07-14 Lars Clausen <lars@raeder.dk>
3897 * app/grid.c (snap_to_grid): Use diagrams grid setting to
3898 determine hex grid snap.
3900 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
3902 * app/interface.h: Avoid multiply defined symbols (#147396)
3904 2004-07-10 Lars Clausen <lars@raeder.dk>
3906 * app/sheets_dialog_callbacks.c (write_user_sheet):
3907 * lib/sheet.c (load_register_sheet): Don't introduce double
3908 slashes in namespace.
3910 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
3911 old diagrams, or XSLT will barf all over.
3913 * shapes/RDP/place.shape:
3914 * shapes/RDP/transition.shape:
3915 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
3916 shapes to use those.
3918 2004-07-07 Lars Clausen <lars@raeder.dk>
3921 * doc/{en,pl}/dia.xml:
3924 * NEWS: First prerelease of version 0.94. Now with release
3925 versions in a branch and main devel in the trunk.
3927 2004-07-05 Hans Breuer <hans@breuer.org>
3929 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
3930 -std=c89. Mostly //-comments and M_PI -> G_PI
3931 [Istar, Jackson, KAOS were removed from build cause they
3932 simply have *too* much C++ comments ;]
3933 * object/UML/association.c : use g_strdup() not plain strdup()
3934 * app/paginate_psprint.c : avoid storage size of `pipe_action'
3935 isn't known with more portable signal code
3937 * app/app_procs.c : don't call gtk_init() if just --version
3938 is requested (bug #144321, Vladimir Kondratiev)
3940 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
3941 DiaFont* if not NULL
3942 * objects/UML/class.c : moved fill_in_fontdata() to
3943 umlclass_load() to avoid such trouble, though unsure if
3944 this really is an improvement...
3946 * shapes/network/makefile.am : patch-panel added here too
3948 2004-07-04 Hans Breuer <hans@breuer.org>
3950 * sheets/network.sheet.in shapes/network/patch-panel.xpm
3951 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
3952 fixes bug #136629, James McDonald
3954 2004-07-04 Hans Breuer <hans@breuer.org>
3956 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
3957 lib/object_defaults.c : revert changing of Dia's XML namespace
3958 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
3959 about its purpose and relation to real world urls.
3961 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
3962 added comment about when to do so
3963 [Should have been long time ago and probably multiple times
3964 to avoid crashing on older plug-ins]
3965 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
3966 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
3968 * lib/object.c objects/UML/class.c : there are still compilers not
3969 supporting C99 and other GCCISMs like allocating dynamic sized arrays
3971 * objects/UML/class.h : there is a differnce between a list pointer
3972 and a list pointer pointer. We and GLib want the former.
3974 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
3975 if Gtk is initialized. Using gdk_display_get_default () avoids the
3976 app/* dependency and is also closer to the requirements of the
3979 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
3980 some #ifdefed support for Cairo backends not public available yet.
3982 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
3983 windoze platform supports them. This should fix bug #109818, at
3984 least for the majority running NT or above ...
3985 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
3987 * objects/makefile.msc : build Istar, Jackson and Kaos
3989 * objects/UML/class.c(umlclass_load) : don't wrap by default to
3990 keep old diagrams as they were - instead of this nice new effect ;-)
3991 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
3993 * objects/UML/class.c : mark for translation _("Wrap ...
3995 * objects/UML/class.c : more correct types, also some default properties
3996 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
3998 * objects/UML/activity.c : removed a leftover from the
3999 use-localization-for-font-substitution-hack
4001 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
4002 'cvs admin -kb *.png' PNG files should already be *added* as binary,
4003 otherwise they are not readable on line-end-converting-platforms
4005 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
4006 filter_get_by_name()
4008 * plug-ins/python/pydia-property.c : some more g_warnings for
4009 not implemented conversions
4011 * plug-ins/python/group_props.py : ensure unique property values
4012 at the right place. Now something like :
4013 - load an old UML class diagram
4014 - change one of the classes to wrap operations
4015 - select all classes (/Select/Same Type)
4016 - /Dialogs/Group Properties : check wrap_operations, select '1'
4017 - Ok, works like a charm :-)
4019 2004-07-04 Lars Clausen <lars@raeder.dk>
4021 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
4024 2004-07-03 Lars Clausen <lars@raeder.dk>
4026 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
4027 <LAV@VL3143.spb.edu>: Fixes console output problems and some
4028 interactiveness problems.
4030 2004-07-02 Lars Clausen <lars@reader.dk>
4032 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
4033 app isn't interactive.
4035 2004-07-01 Lars Clausen <lars@raeder.dk>
4037 * plug-ins/cairo/diacairo.c: Add init of last field of filter
4038 struct to remove crash.
4040 * sheets/Makefile.am (sheet_in_files):
4041 * shapes/Makefile.am:
4042 * sheets/ChemEng.sheet.in:
4043 * shapes/ChemEng/Makefile.am:
4045 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
4046 Chemical engineering shapes.
4048 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
4049 multiple arguments when using devel script.
4051 * app/display.c (new_display):
4053 * lib/diagramdata.c (new_diagram_data):
4054 * lib/diagramdata.h:
4055 * app/preferences.h:
4056 * app/preferences.c:
4059 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
4060 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
4063 * doc/pl/authors.xml:
4064 * doc/en/authors.xml:
4065 * lib/object_defaults.c (dia_object_defaults_save):
4066 * readme.win32 (BTW):
4067 * lib/persistence.c (persistence_save):
4068 * app/load_save.c (diagram_data_write_doc):
4069 * app/commands.c (help_about_callback):
4070 * README: Fix links to home page.
4073 * app/load_save.c (diagram_data_load):
4074 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
4075 loading, and guard against them when fonting.
4077 * lib/diarenderer.c (draw_rounded_polyline): Patch from
4078 anthonym@overture.com: Make limited rounding a corner-specific
4079 rendering-only thing.
4081 2004-06-30 Lars Clausen <lars@raeder.dk>
4083 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
4084 adjustment: If you can't fix it, at least don't change it.
4086 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
4087 code instead of individual code in here.
4089 2004-06-29 Lars Clausen <lars@raeder.dk>
4091 * objects/UML/association.c: Patch from Kiran
4092 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
4097 * lib/diarenderer.c (draw_rounded_polyline):
4098 * objects/standard/polyline.c (polyline_draw):
4099 * objects/standard/zigzagline.c (zigzagline_draw):
4100 Patch from anthonym@overture.com: Add rounded polylines.
4102 2004-06-27 Lars Clausen <lars@raeder.dk>
4104 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
4106 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
4107 free family list before taking out the pointer we need. Also set
4108 the entry_nr correctly so we get the menu set up right.
4110 2004-06-23 Lars Clausen <lars@raeder.dk>
4112 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
4113 images at the right place.
4115 * objects/Istar/actor.c
4116 * objects/Istar/goal.c
4117 * objects/Istar/istar.c
4118 * objects/Istar/istar.h
4119 * objects/Istar/link.c
4120 * objects/Istar/other.c
4121 * objects/Jackson/domain.c
4122 * objects/Jackson/jackson.c
4123 * objects/Jackson/jackson.h
4124 * objects/Jackson/phenomenon.c
4125 * objects/Jackson/requirement.c
4126 * objects/KAOS/goal.c
4127 * objects/KAOS/kaos.c
4128 * objects/KAOS/kaos.h
4129 * objects/KAOS/metaandorrel.c
4130 * objects/KAOS/metabinrel.c
4131 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
4132 <cp@cetic.be>: Fix instability issues caused by not returning NULL
4133 in *_move_handle and *_move. Also improved the headers with
4134 correct (c) information.
4136 2004-06-22 Lars Clausen <lars@raeder.dk>
4138 * objects/KAOS/goal.c:
4139 * objects/KAOS/other.c:
4140 * objects/Istar/actor.c:
4141 * objects/Istar/goal.c:
4142 * objects/Istar/other.c:
4143 * objects/Jackson/domain.c:
4144 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
4145 <cp@cetic.be>: Fix resize issues.
4147 * app/filedlg.c (file_dialog_hide): Patch from Kiran
4148 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
4149 related dialog. #129520.
4151 * app/dia-props.c (diagram_properties_show): Patch from Kiran
4152 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
4153 a child of its diagram. #129520.
4155 * objects/UML/association.c (association_load): Patch from Kiran
4156 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
4157 text placement. #118313.
4159 2004-06-17 Lars Clausen <lars@raeder.dk>
4161 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
4163 * Makefile.am: Make THANKS only be generated by maintainers.
4165 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
4168 * configure.in: Added three missing Makefiles.
4172 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
4173 diagram-related (save) dialog when closing diagram. To be
4174 extended to other dialogs.
4176 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
4178 * samples/Istar.dia:
4179 * samples/Jackson.dia:
4181 * sheets/Istar.sheet.in:
4182 * sheets/Jackson.sheet.in:
4183 * sheets/KAOS.sheet.in:
4188 * objects/Jackson/*:
4191 * objects/Makefile.am (SUBDIRS):
4192 * sheets/Makefile.am (SUBDIRS):
4193 * samples/Makefile.am: Additions from Christophe Ponsard
4194 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
4197 2004-06-12 Lars Clausen <lars@raeder.dk>
4200 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
4202 * lib/font.h: Toning down comments a bit:)
4204 * lib/font.c (dia_font_build_layout): Playing around with DPI
4206 * objects/UML/association.c (association_load): Avoid crashes on
4209 * objects/UML/association.c: Patch from kimmidi@novell.com:
4210 Improve placement of labels when vertical. Part fix of #118313
4212 * lib/object.c (dia_object_is_selected): Grouped objects are not
4213 selected, only the group itself. Thus, don't crash when grouping
4216 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
4217 on how to represent empty strings. Fixes #143639.
4219 * lib/object.c (dia_object_is_selected): Added comment answer.
4221 2004-06-12 Hans Breuer <hans@breuer.org>
4223 * lib/diagramdata.c lib/object.c : deal with grouped objects
4224 not knowing their parent_layer, i.e. avoid crashing in
4225 dia_object_is_selected() via group_draw() [ Triggered by
4226 playing with the Visio generated svg from bug #143455 ]
4228 * plug-ins/python/diasvg_import.py : started to implement
4229 transformation="translate(...)" and <style/> handling. Also
4230 use some other completely bogus values for em/ex scaling
4232 2004-06-08 Lars Clausen <lars@raeder.dk>
4234 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4236 2004-06-07 Lars Clausen <lars@raeder.dk>
4238 * app/layer_dialog.c (layer_dialog_set_diagram):
4239 * app/display.c: Layer widget crash more properly dealt with in
4242 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
4243 widget deselect was called during destroy, but called
4244 ddisplay_flush, leading to a new display timeout after renderer
4247 * lib/widgets.c (dia_toggle_button_destroy):
4248 * app/recent_files.c (recent_file_menuitem_create):
4249 * lib/persistence.c (persistence_save_list):
4250 * app/commands.c (edit_delete_callback):
4251 * lib/object_defaults.c (dia_object_defaults_save):
4252 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4255 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4258 * lib/diagramdata.c (new_layer): Initialize connectibility.
4260 * app/display.c (ddisplay_obj_render):
4261 * app/diagram.c (diagram_find_closest_connectionpoint): Take
4262 connectibility into account.
4264 * app/layer_dialog.h (struct _DiaLayerWidget):
4265 * app/layer_dialog.c:
4266 Connectible toggle updates, now works fairly well.
4268 * app/select.c (select_transitive_callback): Make sure we're only
4269 selecting in the same layer.
4271 2004-06-04 Lars Clausen <lars@raeder.dk>
4273 * app/pixmaps/Makefile.am: Also install connectable images.
4275 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4276 layer toggles from layer itself. Also update diagram correctly
4277 for visibility. Still need updates for connectivity behaviour.
4279 2004-06-03 Hans Breuer <hans@breuer.org>
4281 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4283 * lib/diagdkrenderer.c(set_linejoin) : actually set
4284 join_style not cap_style
4285 (set_dashes): with the correct number of dashes
4287 2004-06-03 Lars Clausen <lars@raeder.dk>
4289 * app/modify_tool.c (click_select_object):
4290 * lib/text.c (text_set_cursor):
4291 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4293 2004-05-31 Hans Breuer <hans@breuer.org>
4295 * lib/object_defaults.c : don't 'failed to load external
4296 entity "NULL"' when the defaults file does not exist,
4297 bug #108764 [again: somehow this got lost]
4299 * app/paginate_gdiprint.cpp : don guess the WMF export
4300 filter used for printing but find it by unique name.
4301 Also update for export_func renaming
4302 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4303 provide some unique names
4305 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
4306 app/select.c : fix bug #140789 by always checking if there
4307 still is an active diagram before accessing it
4309 * app/defaults.c app/properties.c : user visible string should
4310 not read DiaObject but stay as "Object defaults/properties"
4312 * app/app_procs.c : reduce the hack to pass --size to the
4313 export via user_data to the only filter supporting it. Other
4314 filters would crash on it or do worse ;(
4316 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4318 2004-05-31 Lars Clausen <lars@raeder.dk>
4321 * lib/widgets.c: Use GtkType rather than guint for
4322 dia_size_selector_get_type.
4324 2004-05-29 Lars Clausen <lars@raeder.dk>
4326 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4327 that it matches the screen output for selfoverlapping polygons and
4330 2004-05-28 Hans Breuer <hans@breuer.org>
4332 * app/load_save.c : ignore empty groups on load and don't
4333 write empty groups while saving
4334 * lib/group.h (group_update_data): there is no first object
4335 in empty groups and they probably don't need an update at
4336 all. Maybe the shold just not exist ?
4338 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4339 text positioning as well as drawing of images with alpha
4341 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4342 HAVE_WINDOWS_H or G_OS_WIN32 is defined
4344 2004-05-28 Lars Clausen <lars@raeder.dk>
4346 * app/pixmaps/Makefile.am (imagedir):
4347 * app/pixmaps/visible.png:
4348 * app/pixmaps/visible-empty.png: New images for the visibility
4349 button in the layer dialog.
4351 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4352 more border around the button. Still some left when hovering the
4353 mouse or selecting, and the grey background is annoying.
4355 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4356 visibility connector.
4358 2004-05-26 Lars Clausen <lars@raeder.dk>
4360 * configure.in (DB2MAN): Better check for db2man docbook place.
4361 Need something even better.
4363 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4365 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4366 extraeneous borders.
4369 * dia_gnome_icon.png:
4370 * samples/render-test.dia: Rendering test from Hans.
4372 2004-05-24 Hans Breuer <hans@breuer.org>
4374 * lib/filter.h : renamed DiaExportFilter::export to
4375 _DiaExportFilter::export_func (should not use c++
4376 keywords (g++ specifc ?) in headers. Same for import
4377 out of pure symmetry reasons
4378 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4379 app/diagram.c app/filedlg.c : reflect functions renaming
4381 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4382 under *NIX, too. [If you want something done, do it yourself ;-]
4383 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4384 with wmf.cpp's GDI usage
4385 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4386 [For the moment it does not much more than compiling, i.e.
4387 the produced WMF files are invalid, if not created on windoze.]
4389 * configure.in : check for C++ to compile plug-in/wmf
4391 * objects/GRAFCET/boolequation.c : looks like fixing
4392 another leak (untested)
4394 2004-05-23 Hans Breuer <hans@breuer.org>
4396 * acinclude.m4 : another attempt to fix
4397 bug #142032 (still not sure it's the right one,
4398 but works for me(tm), which the other does not ;)
4400 * plug-ins/cairo/Makefile.am
4401 plug-ins/Makefile.am
4402 configure.in : support building the new cairo
4403 plug-in, if given --with-cairo and the cairo
4404 packages are found, see http://cairographics.org
4405 and also http://hans.breuer.org/dia/dia-cairo.htm
4407 * plug-ins/cairo/diacairo.c : make it compile
4408 with DEBUG_CAIRO defined, too.
4410 2004-05-23 Hans Breuer <hans@breuer.org>
4412 * plug-ins/cairo/Makefile.am : initial attempt
4414 * plug-ins/cairo/diacairo.c : a new exporter based on
4415 Cairo http://cairographics.org rendering api. Currently
4416 it just can export PNG and PS but one day it might get
4417 PDF and more almost for free. [It is not yet included
4418 in the *NIX build system due to lack of auto* magic.]
4420 * plug-ins/pixbuf/pixbuf.c : always register the export
4421 filter part. If the user does not want it it can be
4422 disabled by File/Plugins or explicit selected the other
4423 one in the Export Formats List
4425 2004-05-23 Hans Breuer <hans@breuer.org>
4427 * lib/dia_dirs.c : #include "message.h"
4428 lib/widgets.c : #include "persistence.h"
4429 lib/widgets.c(dia_font_selector_init) : still not C99
4430 lib/persitence.h : removed unimplemented prototype
4431 lib/persitence.c(persistence_load_list) : still not C99
4432 app/create_object.c : #include "highlight.h"
4433 app/layer_dialog.c : #include "widgets.h"
4434 app/modify_tool.c : prototype functions before usage
4435 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4436 [otherwise one will have a hard time to make C++ compile ;]
4437 lib/dia_dirs.c : #include "message.h"
4438 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4441 * plug-ins/xfig/xfig-import.c : dont initialize an int with
4444 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4445 as documented, i.e. _not_ copying. Plugs a memory leak in
4446 lib/dialibartrenderer.c
4448 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4449 to radius to more of a clue what it is representing
4451 * */makefile.msc lib/libdia.def : updated
4453 ChangeLog : fixed some date copy&paste bug
4455 2004-05-21 Lars Clausen <lars@raeder.dk>
4457 * NEWS: Release tag.
4459 * config.h.win32: Now 0.93+cvs
4461 * RELEASE-PROCESS: Update with new info about release branches.
4463 * Many files: Moved devel branch back into main trunk. Should
4464 have been done in the opposite way, with release in a branch.
4466 2004-05-20 Hans Breuer <hans@breuer.org>
4468 * acinclude.m4 : disable setting of PYTHON_PREFIX
4469 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4470 as workaround for bug #142032 (the real fix would
4471 involve some auto* knowledge which I don't have
4474 * plug-ins/python/Makefile.am : more python
4475 plug-ins to be installed (especially svg import,
4476 but also 'simple scale' should be useable
4479 * plug-ins/python/scascale.py : update display
4480 after modifying selected objects
4482 * plug-ins/python/diasvg_import.py : initialize
4485 2004-05-18 Lars Clausen <lars@raeder.dk>
4487 * app/diagram_tree.c (select_node): Use
4488 diagram_remove_all_selected to kill selected list.
4490 * lib/font.c: Set language when using a different context.
4492 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4493 and removed ctype include (#142661).
4495 * lib/paper.c (get_default_paper): Changed isalnum to
4496 g_ascii_isalnum and removed ctype include. (#142661)
4498 * objects/custom/shape_info.c:
4500 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4502 2004-05-17 Hans Breuer <hans@breuer.org>
4504 * lib/object_defaults.c : don't 'failed to load external
4505 entity "NULL"' when the defaults file does not exist,
4508 * lib/widgets.c : fixed possible menu leak
4509 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4510 avoid finalization of floating references, bug #142307
4512 2004-05-15 Lars Clausen <lars@raeder.dk>
4514 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4515 fonts better (#138655)
4517 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4519 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4520 dist, xml, dbk and man. Also the sub-xml files. (#142098)
4522 * Makefile.am (CLEANFILES):
4523 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4524 translation-reports, they are generated automagically. THANKS
4525 file not considered locally generated, so is not locally
4528 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4530 * lib/diaarrowchooser.c:
4531 * lib/prop_attr.c: Fixing naming for arrowselector.
4533 * objects/UML/object.c (objet_type): Oops, little too aggressive
4534 with the DiaObject thing here:)
4536 * objects/custom/shape_info.c (parse_svg_node): Use
4537 g_ascii_isdigit instead of isdigit.
4539 * app/diaunitspinner.c (dia_unit_spinner_update):
4540 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4541 instead of isspace avoids char subscript issues (#142467).
4543 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4544 return value conflict.
4546 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4547 value conflict. Also improved signature. (#142466)
4549 * app/load_save.c (diagram_data_load): Don't overwrite the list in
4550 the layer, but instead free the returned list (#142480)
4552 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4553 for the grid widget.
4555 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4557 * configure.in (DB2MAN): Currently just check for two known
4558 positions for the docbook xsl. Don't know a generic way to find
4559 this info. Ought to add an option for it, but then it's really
4560 only required for maintainers, I think. Maybe.
4562 * app/display.c (update_snap_grid_status): Remove nasty image
4563 toggling code not require for grid toggle button anymore. (#142475)
4565 * app/interface.c (create_display_shell): Use
4566 dia_toggle_button_new_with_images to create grid toggle button.
4567 Much nicer. (#142475)
4569 * app/menus.c (menus_initialize_updatable_items): Free the string
4570 along with the GString. (#142475)
4572 * lib/intl.c (free_alias_table): Free hash table entries in a
4573 proper way, avoiding duplicate frees. (#142475)
4575 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4576 not put in the hash (avoid reading freed memory). (#142476)
4578 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4580 (dia_font_selector_get_family_from_name): Stop leaking
4583 2004-05-14 Lars Clausen <lars@raeder.dk>
4585 * Transfer of fixes from release branch. Not the prettiest way to
4586 do it, this should be done during release, not afterwards.
4588 Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4590 * acinclude.m4: minor fixes (added missing [] quotation).
4592 Lars Clausen <lars@raeder.dk>:
4594 * app/interface.c (toolbox_delete):
4595 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4596 cancels quit due to modified diagrams.
4598 Samúel Jón Gunnarsson <sammi@techattack.nu>:
4600 * is.po: Added "is" to ALL_LINGUAS.
4602 Lars Clausen <lars@raeder.dk>:
4604 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4606 Hans Breuer <hans@breuer.org>:
4608 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
4609 burden should be shared and not be win32 only ;) [this time
4610 build was broken by adding GtkType to widget.h]
4612 * objects/standard/box.c objects/standard/ellipse.c :
4613 for code clarification compare (obj->aspect != FREE_ASPECT)
4614 and not (obj->aspect); no binary effect.
4616 * app/paginate_psprint.c : don't leak printcmd
4618 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4619 standard C requires variables to be declared at the beginning of
4620 a block, also there is no fabsf() with msvc
4622 * app/win32print.[ch] : make win32_printer_close() return an
4623 error code, it's used as pclose replacement
4625 Lars Clausen <lars@raeder.dk>:
4627 * RELEASE-PROCESS: Mention PATCH keyword in release process.
4629 2004-05-06 Lars Clausen <lars@raeder.dk>
4631 * lib/widgets.[ch]: Utility function to make a widget with two
4632 images (selected and non-selected).
4634 * lib/diagramdata.h: Renamed selectable to connectable.
4635 Selectable will come later.
4638 * app/pixmaps/Makefile.am (imagedir):
4639 * app/pixmaps/connectable.png:
4640 * app/pixmaps/connectable-empty.png: New images for the
4641 selectability widget. Proper installation, too.
4643 * app/layer_dialog.[ch]: Adding new button showing connectability
4644 status. Much cleaner way of doing the button, but some problems
4645 with the item getting selected
4647 * lib/widgets.h: Reminder of how to install images for use by
4648 dia_get_image_from_file.
4650 2004-05-05 Lars Clausen <lars@raeder.dk>
4652 * objects/network/Makefile.am:
4653 * objects/network/pixmaps/radiocell.xpm:
4654 * objects/network/pixmaps/basestation.xpm:
4655 * objects/network/network.c:
4656 * objects/network/basestation.c:
4657 * objects/network/radiocell.c:
4658 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4661 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4662 Backslash arrow head.
4664 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4665 Notify takes care. Should maybe use that more.
4667 * lib/diagramdata.[ch]:
4668 * app/filedlg.c (file_export_ok_callback):
4669 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4671 * app/dia-props.c (diagram_properties_respond):
4672 * app/diagram.c (diagram_set_modified):
4674 * app/disp_callbacks.c:
4676 * app/load_save.c (diagram_save):
4677 Better handling of undo and modified status -- only diagram
4678 properties and page setup explicitly set modified status, all
4679 other important changes should be done through the undo stack
4682 2004-05-04 Lars Clausen <lars@raeder.dk>
4684 * app/app_procs.c (app_init): Consistently open a new diagram if
4685 none specified, with standard name Diagram1.dia.
4687 * app/layer_dialog.c:
4688 * app/diagram.c (diagram_finalize):
4689 * app/commands.c (dialogs_layers_callback):
4690 * app/filedlg.c (file_export_ok_callback):
4691 * app/app_procs.c (app_exit):
4692 * app/display.c (display_set_active):
4693 * app/interface.c (dia_dnd_file_drag_data_received):
4694 * app/recent_files.c:
4695 Undone attempt at unifying the multi-diagram windows (like
4696 layers). It broke the layers and didn't make much sense for the
4697 diagram properties dialog anyway.
4701 * lib/diagramdata.c:
4703 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4704 many subclasses have to be fixed. Fixed remaining
4705 Object/ObjectType renaming issues.
4707 2004-05-02 Lars Clausen <lars@raeder.dk>
4709 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
4710 having to make all the children objects conform to
4711 GObject style at once? Warning! Does not compile right now.
4713 * many, many files: Rename Object to DiaObject in preparation for
4714 making it a GObject.
4716 * app/diagram.[ch]: Turn diagram into a real GObject.
4719 * app/filedlg.c: Correctly ref and unref diagram.
4721 * lib/diagramdata.h: Starting to turn it into a GObject as well.
4723 2004-05-02 Lars Clausen <lars@raeder.dk>
4725 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4728 * app/dia-props.c: Undo the attempt at making it really
4729 multi-diagram, now going for a one-diagram dialog.
4731 2004-04-30 Lars Clausen <lars@raeder.dk>
4733 * app/undo.c: Undoing broken undo stuff for diagram properties and
4734 page setup. Shouldn't be mixed into undo at all.
4736 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4737 function to avoid in particular the grid crawling.
4739 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4740 to allow aligning dashes, so they don't crawl.
4742 2004-04-28 Lars Clausen <lars@raeder.dk>
4744 * app/Makefile.am: New files diacanvas.[ch]
4746 * app/interface.c (create_display_shell): Use new diacanvas that
4747 allows placing widgets on canvas, for text edit.
4750 Early work towards rotation. No implementation yet.
4752 * app/layer_dialog.c (undo_layer):
4753 * objects/network/bus.c (bus_create_change):
4754 * objects/standard/box.c (aspect_create_change):
4755 * objects/standard/ellipse.c (aspect_create_change):
4756 Use g_new0 for change struct.
4758 * app/undo.c (diagram_change_apply_or_revert):
4759 Support for undo of diagram properties and page setup.
4761 * app/disp_callbacks.c (ddisplay_canvas_events):
4763 * lib/diagramdata.h:
4764 * app/modify_tool.c (click_select_object):
4765 * lib/text.c (text_register_editable):
4766 Starting work on new text editing model. Guarded by #ifdef so
4769 2004-04-07 Lars Clausen <lars@raeder.dk>
4771 * app/recent_files.c (open_recent_file_callback):
4772 * app/interface.c (origin_button_press):
4773 * app/filedlg.c (file_open_ok_callback):
4776 * app/commands.c (dialogs_layers_callback): Using new
4777 diagram_set_current() function to ensure auxilliary windows are
4780 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
4781 menu now borken. *sniff*
4783 * app/dia-props.c: Diagram properties window attempted
4784 persistentified. Trying to make more like layer dialog (since it
4785 already changes when the diagram changes), but some things still
4788 2004-04-06 Lars Clausen <lars@raeder.dk>
4790 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
4791 * lib/attributes.c (attributes_set_default_line_style):
4792 * app/interface.c (create_lineprops_area):
4793 Make line style persistent as well. Added function to directly
4794 set the style and dashlength of a dialinechooser.
4796 2004-04-03 Lars Clausen <lars@raeder.dk>
4798 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4799 Copy the ellipse extra handle correctly.
4801 * objects/standard/box.c (box_move_handle): Move definitions
4802 according to bug #138925.
4804 2004-04-02 Lars Clausen <lars@raeder.dk>
4806 * app/recent_files.c: Use absolute name for recent files list.
4808 * lib/attributes.c: Set start and end arrow types, correctly.
4810 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4813 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4815 * app/interface.c (create_lineprops_area): Set persistently stored
4818 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4821 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4822 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
4824 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4825 with what xfig does. Text now converted from latin-1 to utf-8
4826 (latin-1, since that's what xfig seems to use. Would like to see
4827 examples of non-latin-1 figs). String case problems fixed.
4829 2004-04-01 Lars Clausen <lars@raeder.dk>
4832 * app/interface.c: Default arrows now stored persistently, too.
4834 * lib/arrows.[ch]: New function to get arrow type from name.
4836 * app/color_area.c (color_area_create):
4838 * app/linewidth_area.c: Also persistent colors and line width.
4839 That was easy. Arrows and line style will take a bit more work,
4842 2004-04-01 Lars Clausen <lars@raeder.dk>
4844 * app/preferences.c: All preferences are now
4845 handled by persistence, old prefs load and store code is gone.
4847 * lib/persistence.[ch]: Added string and color persistents. This is
4848 a different string from the one used in the printer dialog, that
4849 one has a GtkEntry attached -- may want to make that one an
4850 encapsulation of this one or something.
4852 2004-03-31 Lars Clausen <lars@raeder.dk>
4854 * app/app_procs.c: Do persistence before prefs. Prefs are to be
4857 * lib/persistence.[ch]:
4858 * app/preferences.c: Adding persistence for integers, reals,
4859 booleans. Fixed stupid list bug. Test persistence for prefs.
4861 2004-03-30 Lars Clausen <lars@raeder.dk>
4863 * app/recent_files.c:
4864 Debugging of deallocation.
4867 Font menu now uses persistence. Ordering needs fixing, or it must
4871 * lib/Makefile.am (libdia_la_SOURCES):
4872 * app/Makefile.am (dia_core_files):
4873 * app/persistence.[ch]:
4874 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
4875 number of fixes, including multiple entries now being read
4876 properly. Still some oddity about the persistent list having the
4877 role as first entry (which makes the font menu crash after a few
4880 2004-03-26 Lars Clausen <lars@raeder.dk>
4882 * app/persistence.c:
4883 * app/recent_files.[ch]: Redoing the recent-files list using
4884 persistence, reducing code by about 50%. Still a problem when
4885 selecting an item from the menu -- possibly it doesn't like the
4886 menu being destroyed while in the callback?
4888 2004-03-25 Lars Clausen <lars@raeder.dk>
4890 * app/persistence.c (persistence_load_string): Missing semicolon?!?
4892 2004-03-24 Lars Clausen <lars@raeder.dk>
4896 * app/persistence.[ch]:
4897 * app/paginate_psprint.c (diagram_print_ps): New type of data can
4898 be stored persistently: Strings. Only the printer command/file
4899 go in here now, but things like creator, organization, diagram
4900 comments etc could also be handled this way.
4902 * objects/standard/beziergon.c (beziergon_draw): Avoid control
4903 lines when the object is not selected.
4905 2004-03-23 Lars Clausen <lars@raeder.dk>
4907 * lib/connectionpoint.h:
4908 * app/load_save.c: Allow connection points to have names, and
4909 handle that in load/store.
4911 * lib/dialibartrenderer.c: Better highlighting for text.
4913 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
4914 * lib/diagdkrenderer.c: Better highlighting for all, using same
4915 principles as libart highlighter.
4917 2004-03-22 Lars Clausen <lars@raeder.dk>
4919 * lib/dialibartrenderer.[ch]:
4920 * lib/diagdkrenderer.c:
4926 * app/modify_tool.c:
4927 * app/create_object.c:
4928 * app/highlight.[ch]:
4929 Added simple object highlighting. In GDK rendering, highlights
4930 the bbox, in libart highlights the outline of the object (except
4933 2004-03-22 Lars Clausen <lars@raeder.dk>
4935 * RELEASE-PROCESS: Added info on how to do a branch for
4936 development during release process.
4938 2004-03-20 Lars Clausen <lars@raeder.dk>
4940 * RELEASE-PROCESS: Mention PATCH keyword in release process.
4942 2004-03-19 Lars Clausen <lars@raeder.dk>
4944 * xmldocs.make: Fixed apparent uninstall error.
4947 * doc/en/dia-manual.xml:
4948 * doc/pl/dia-manual.xml:
4951 * NEWS: Version 0.93-pre1.
4953 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
4954 borelli): Remove some deprecated stuff.
4956 2004-03-18 Lars Clausen <lars@raeder.dk>
4958 * Makefile.am: Try better uninstall thing for scrollkeeper.
4960 * objects/ER/entity.c:
4961 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
4962 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
4963 1, 1 exactly, as well as associative ER entities.
4965 2004-03-17 Lars Clausen <lars@raeder.dk>
4967 * Makefile.am: Make distcheck not complain about scrollkeeper
4968 problems (as per advice from James Henstridge).
4970 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
4971 standard installation.
4973 * objects/standard/ellipse.c: Better strings for object menu.
4975 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
4976 of dialogs (shame on you, glade!)
4978 * objects/custom/custom_object.c (custom_setup_properties):
4979 Removed debugging output
4981 * app/paginate_psprint.c (diagram_print_ps): Slightly more
4982 readable printer error messages.
4986 * doc/en/Makefile.am:
4987 * doc/pl/Makefile.am:
4988 New more standard way to install the XML-based manuals.
4990 2004-03-15 Lars Clausen <lars@raeder.dk>
4992 * objects/standard/box.c (box_move_handle): More intuitive fixed
4995 * objects/standard/ellipse.c:
4996 * objects/standard/box.c:
4999 * app/layer_dialog.[ch]:
5000 Patch from Steve Langasek <vorlon@debian.org>:
5001 Fixes startup crash on Alpha (bug #137169)
5003 * objects/standard/box.c: Aspect fixing like ellipses.
5005 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
5007 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
5008 pixmaps, now can uninstall properly.
5010 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
5011 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
5013 Added object menu access.
5015 2004-03-07 Hans Breuer <hans@breuer.org>
5017 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
5018 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
5019 would not use deprecated apis, but it's much simpler this way)
5021 * lib/makefile.msc : build the above new widgets and render_pixmap
5022 * lib/libdia.def app/dia.def app/makefile.msc : updated
5024 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
5025 what I saw, i.e. how big is an empty array supposed to be ? ;-).
5026 Previously it gave :
5027 disp_callbacks.c(188) : error C2059: syntax error : '}'
5028 disp_callbacks.c(191) : warning C4034: sizeof returns 0
5030 * app/interface.c : #include "dialinechooser.h"
5032 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
5033 [one more reason not to use it here : it's quite slow compared to
5034 the native win32 font renderer ;]
5036 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
5037 a GtkDialog*, removed unneeded cast
5039 * app/render_eps.c : avoid assignment warning for void* user_data
5042 2004-03-06 Steffen Macke sdteffen@web.de>
5044 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
5047 2004-03-06 Lars Clausen <lars@raeder.dk>
5049 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
5052 * lib/font.c: Simple cleanup system for layout cache removes any
5053 layout that hasn't been used for 10 minutes, but only during idle
5056 2004-03-05 Lars Clausen <lars@raeder.dk>
5058 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
5059 (lluis padro) (#130887): Extended Electric shapes with vertical
5062 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
5063 start with "Create a" or "A", always capitalize first word).
5065 * objects/standard/ellipse.c: Patch from Grégoire Dooms
5066 <dooms@info.ucl.ac.be>: Add extra connection point in center of
5067 ellipse. Additionally added a handle in the center, and resize is
5068 now around the center.
5071 * sheets/Makefile.am (SUBDIRS):
5072 * sheets/IsometricMap.sheet.in:
5073 * shapes/Map/Isometric/*
5074 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
5076 2004-03-04 Lars Clausen <lars@raeder.dk>
5079 * lib/pixmaps/Makefile.am:
5081 Better installation handling of pixmaps.
5083 * lib/diagdkrenderer.c:
5084 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
5085 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
5088 2004-03-03 Lars Clausen <lars@raeder.dk>
5090 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
5091 * lib/diagdkrenderer.c:
5092 * lib/diasvgrenderer.c:
5093 * lib/dialibartrenderer.c:
5094 * lib/diainteractiverenderer.c:
5095 * lib/prop_text.c (multistringprop_handle_key):
5097 * lib/dia_image.c (dia_image_rgba_data):
5099 * lib/diagramdata.c (layer_set_object_list):
5102 Getting rid of compile warnings.
5104 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
5105 images. Also remove unused decls.
5107 2004-03-02 Lars Clausen <lars@raeder.dk>
5110 * lib/widgets.c (dia_size_selector_init): Add images to the size
5111 selector chain widget. Also new function to load installed images
5112 from files (better than from included XPM, IMHO).
5114 2004-03-02 Lars Clausen <lars@raeder.dk>
5117 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
5121 * lib/widgets.c (dia_size_selector_init): Work
5122 on getting proper icon onto the size selector. Need simple image
5123 load mechanism in utils.
5127 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
5128 strings, handle utf8 strlen properly. Bug #135930.
5130 2004-03-01 Lars Clausen <lars@raeder.dk>
5132 * shapes/Cybernetics/*:
5133 * sheets/Cybernetics.sheet.in:
5134 * sheets/Makefile.am:
5135 * shapes/Makefile.am:
5136 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
5137 Roggendorf): Cybernetic shapes (#95553).
5139 2004-03-01 Lars Clausen <lars@raeder.dk>
5141 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
5143 * lib/diatypes.h: New type DiaSizeSelector.
5145 * lib/widgets.[ch]: New size selector widgets that selects two
5146 values (width and height, nominally) optionally linked to keep
5149 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
5151 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
5152 in front of file. Bug #128600.
5156 * app/lineprops_area.[ch]:
5158 * lib/dialinechooser.[ch]:
5159 * lib/widgets.c (dia_line_style_selector_init): use line preview
5160 instead of text labels. This involve moving away line_chooser to lib
5163 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
5166 * app/Makefile.am (dia_core_files):
5167 * app/interface.c (create_lineprops_area):
5168 * app/render_pixmap.[ch]:
5170 * lib/diaarrowchooser.[ch]:
5173 * lib/propdialogs.c:
5174 * lib/render_pixmap.[ch]:
5175 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
5176 of text labels. This involve moving away arrow_chooser to lib from
5179 2004-02-29 Lars Clausen <lars@raeder.dk>
5181 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
5182 being updated half-way through destruction. To be removed when
5183 the lists are replaced by something better.
5185 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
5186 Accelerators for class dialog. Bug #130995.
5187 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
5190 * app/preferences.c:
5192 * objects/GRAFCET/step.c:
5193 * objects/Misc/analog_clock.c:
5194 * objects/chronogram/chronoline.c:
5195 * objects/chronogram/chronoref.c:
5196 Change to american spelling (color, not colour) to ease
5197 translators job. Note that a number of translations may need an
5198 update now. Bug #120466.
5200 2004-02-29 Lars Clausen <lars@raeder.dk>
5202 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
5203 Better arrow handling for missing arrows.
5205 * plug-ins/metapost/render_metapost.[ch]: Patch from
5206 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
5207 size. See bug #135363.
5209 * app/app_procs.c (app_init): If non-interactive, or if
5210 --log-to-stderr used, send all messages to stderr. This should
5211 mean that old diaconv == dia --export-to-format=FOO BAR
5213 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
5215 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
5217 2004-02-28 Lars Clausen <lars@raeder.dk>
5219 * lib/text.c (text_key_event): Patch from Kouhei Sutou
5220 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
5222 2004-02-27 Lars Clausen <lars@raeder.dk>
5224 * KNOWN_BUGS: Added info on most commonly reported bugs, with
5227 * app/disp_callbacks.c (popup_object_menu): Unified properties
5228 entry, fixes bug #105080.
5230 * app/diagram.c (diagram_update_menu_sensitivity):
5231 * app/menus.h (struct _UpdatableMenuItems):
5232 * app/menus.c (menus_initialize_updatable_items): Menu items
5233 changed around, align menus flattened, properties entry ghosted,
5234 dialogs menu removed, more shortcuts added. Closing bugs #94018,
5236 Also taking out Gnome menus for now. They don't allow shortcuts,
5237 so what are they good for?
5239 2004-02-27 Lars Clausen <lars@raeder.dk>
5241 * app/menus.c (display_menu_items):
5242 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5245 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
5247 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5249 2004-02-23 Lars Clausen <lars@raeder.dk>
5251 * app/app_procs.c (app_init): Comments for translators.
5253 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
5255 * app/preferences.c (prefs_create_dialog): Change packing policy
5256 for widget to expand.
5258 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5259 running with a debugger.
5261 2004-02-19 Lars Clausen <lars@raeder.dk>
5263 * app/undo.[ch]: Adding last-saved information to undo to allow a
5264 diagram with all changes since last save undo to be marked as
5265 nonmodified. Still needs integration with actual undo
5269 * app/diagram_tree.c (diagram_tree_update):
5271 * app/display.c (update_modified_status):
5272 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
5273 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5276 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5277 vs. EPSI, comment out EPSI until preview is in there.
5280 * lib/diarenderer.c: Removing debugging printfs.
5282 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5285 * objects/standard/arc.c (arc_update_handles): Check to avoid
5286 crash when start and end points are the same.
5288 2004-02-19 Lars Clausen <lars@raeder.dk>
5290 * objects/standard/bezier.c:
5291 * objects/standard/line.c (line_load):
5292 * objects/standard/polyline.c (polyline_load):
5293 * objects/standard/zigzagline.c (zigzagline_load):
5294 * objects/standard/arc.c (arc_load):
5295 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5296 instead of hardcoding.
5298 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
5300 * app/disp_callbacks.c (popup_object_menu): append a menu item to
5303 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
5305 * app/app_procs.c: declare rc properly with the proper #ifdef
5307 2004-02-17 Lars Clausen <lars@raeder.dk>
5309 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5310 objects (which seemingly FIG itself breaks, or else there is no
5313 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
5315 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5316 width renderable in xfig. Helps on bug #133637, but does not
5317 quite fix it -- something about depth is wrong.
5319 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5320 Extern definitions for Mac compilation.
5322 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5323 (jdassen@debian.org): Include fix.
5325 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
5326 sure the initial diagram size is correct.
5328 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
5330 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5331 CPPFLAGS, as per automake warning.
5332 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5333 LDFLAGS, as per automake warning.
5334 (run_dia.sh): More robust creation, and more easily moved.
5336 * app/undo.c (group_objects_revert): Don't double-free the objects
5337 list. (#129221) Call object_add_updates on grouped objects.
5338 (ungroup_objects_revert): Call object_add_updates on grouped objects.
5340 * lib/diagramdata.c: Internal
5343 * lib/polyshape.c (polyshape_update_data): Correctly calculate
5344 directions for polyshape corners (thanks, Valgrind!)
5347 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5349 * lib/arrows.h: Default arrow size defined. After all are using
5350 this, may lower to 0.4 or so.
5352 * app/lineprops_area.[ch]: New function to set the arrow type for an
5355 * app/interface.c (create_lineprops_area): Set default line to
5356 have an arrow (fairly likely to be what's wanted, plus it shows
5357 the user where arrows are set).
5359 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5361 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
5363 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5364 Dotted lines should use dot_length, not dash_length.
5366 2004-02-06 Hans Breuer <hans@breuer.org>
5368 * app/interface.c : don't use gtk_drawing_area_size() to avoid
5369 the defaut size being also the minimum size. Instead use
5370 gtk_window_set_default_size() on the display shell. Fixes #130982.
5372 [fixing #131210, but umlauts in the 'main' filename still not really
5373 supported on systems where filesystem encoding != utf8
5374 (Problems with recent file menu and window title)]
5375 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5376 to deal with possible differnces in filename encodings, see
5377 g_filename_<to|from>_utf8()
5378 * objects/standard/image.c : use them.
5380 * lib/widgets.c : handle possible encoding difference here, too.
5381 Also get rid of most warnings by using const and GTK casts where
5382 appropriate; one wrong cast (probably causing a crash) was found/fixed
5383 by this - the remaining give a hint on finally leaking FontSelectorEntry.
5385 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5386 dia_file_selector_<get|set>_file to behave like the respective Gtk
5387 functions do : encoding- and const-wise ;-)
5389 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
5391 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5393 2004-01-19 Hans Breuer <hans@breuer.org>
5395 * app/app_procs.c app/diaconv :
5396 only call bind_textdomain_codeset when available, what's good
5397 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5398 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5400 2004-01-19 Steffen Macke <sdteffen@web.de>
5402 * makefile.msc: updated for new GAIM-like installer build; sync'ed
5403 ALL_LINGUAS with configure.in
5405 2004-01-18 Hans Breuer <hans@breuer.org>
5407 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
5408 by not passing NULL to g_print()
5410 * app/interface.c (create_toolbox) : actually use
5411 persitence_register_window() to restore toolbox window size
5413 * app/makefile.msc lib/makefile.msc : allow to deselect
5414 building with Freetype by command line to nmake like :
5415 nmake -f makefile.msc "NOFT2=1"
5417 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5418 far as possible with Dia's limited line style
5419 * plug-ins/python/pydia-property.c : allow to get and set
5420 Linestyle, style and dash(length)
5422 * lib/object.h : removed typedef for ObjectId not use anywhere
5424 2004-01-17 Hans Breuer <hans@breuer.org>
5426 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5427 doc/shape.dtd doc/custom-shapes :
5428 support for images in custom shapes, also removed some long-time
5431 * doc/en/*.xml : fixed crippled line ends which get created
5432 when windoze line ends are checkin from the unix side
5434 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
5436 * configure.in: Added "sq" to ALL_LINGUAS.
5438 2004-01-11 Hans Breuer <hans@breuer.org>
5440 [more less leaks ;-]
5442 * objects/SADT/annotation.c : use text_destroy() not g_free()
5444 * objects/chronogram/chronoline.c : neither leak chronoline::events
5445 nor chronoline::name
5447 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5449 2004-01-11 Hans Breuer <hans@breuer.org>
5451 * lib/properties.h :
5452 * objects/custom/custom_object.c : more properties optional
5453 to be backward compatible for older diagrams not having them
5454 set. (Try to load samples/all_objects.dia)
5456 [less memory leaks thanks valgrind ;-]
5458 * app/recent_files.c (recent_file_history_write) :
5459 g_free(history_filename);
5460 (recent_file_menu_item) : use g_path_get_basename()
5461 which already strdups, free result of g_strescape()
5463 * app/filedlg.c (create_export_menu) : return of
5464 filter_get_export_filter_label() must be g_free()'d
5465 (create_open_menu) : same for import
5467 * app/export_png.c (export_png_ok) : destroy info ptr
5468 with png_destroy_write_struct()
5470 * app/app_procs.c (app_init) : g_free(export_format_string);
5472 * lib/font.c (dia_font_finalize) : finalize parent_class, too
5473 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5474 refing it a second time, g_type_create_from_instance() is enough
5476 * lib/object_defaults.c (_obj_store) : don't mess with names
5477 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5479 2004-01-11 Steffen Macke <sdteffen@web.de>
5481 * app/diapsftrenderer.c: including ftoutln.h
5482 * app/makefile.msc: updated for freetype build
5483 * lib/libdia.def: added dia_font_get_context()
5484 * lib/dialibartrenderer.c (draw_string): added cast
5486 2004-01-10 Hans Breuer <hans@breuer.org>
5488 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5489 transformed coordinates, fixes bug 130804
5491 2004-01-10 Hans Breuer <hans@breuer.org>
5493 * app/filedlg.c app/app_procs.c : don't try to destroy
5494 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5495 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5496 returns. Fixes 'has no handler' bugs like #121019
5498 2004-01-10 Hans Breuer <hans@breuer.org>
5500 * objects/UML/class.c objects/UML/class_dialog.c :
5501 handle umlclass->name being empty to avoid, i.e. fix #127968
5503 [plugging memleaks, thanks valgrind :-]
5505 * lib/dia_xml.c (data_string) : don't leak return value
5506 of xmlNodeListGetString()
5508 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5509 before returning, maybe alloca() would be the better
5510 choice but anyway ;)
5512 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5514 * lib/font.c (dia_font_build_layout) : don't leak result
5517 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5518 (this is the one which got me started using valgrind, see #130816)
5520 2004-01-07 Sanlig Badral <badral@openmn.org>
5522 * configure.in: Added "mn" to ALL_LINGUAS.
5524 2004-01-04 Hans Breuer <hans@breuer.org>
5526 * lib/diagdkrenderer.c : replace rendering of really small (height
5527 less than 2 pixels) with a simple dashed line, you wont notice the
5528 differnce beside it being much faster. This allows ...
5529 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5530 * app/navigation.c : ... and lets you see an read rendered text even
5531 in the nice navigation popup.
5533 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
5534 (draw_string) : don't leak temporary image
5536 2004-01-04 Hans Breuer <hans@breuer.org>
5538 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5539 * app/interface.c : use dia-app-icons.h to give Dia window icons
5541 * lib/dia_image.c lib/color.c : _never_ call functions implemented
5542 in app/ from lib/. It is not portable and broken from design
5543 * app/app_procs.c : call color_init() and dia_image_init() conditional,
5544 i.e. only if running interactive.
5546 * lib/font.h : #include <time.h>
5548 * lib/libdia.def : updated externals
5550 * objects/UML/actor.c
5551 objects/UML/association.c (todo)
5552 objects/UML/branch.c
5553 objects/UML/class.[hc] objects/UML/class_dialog.c
5554 objects/UML/classicon.c
5555 objects/UML/component.c
5556 objects/UML/constraint.c
5557 objects/UML/dependency.c
5558 objects/UML/generalization.c
5559 objects/UML/implements.c
5560 objects/UML/large_package.c
5561 objects/UML/lifeline.c
5562 objects/UML/message.c
5564 objects/UML/object.c
5565 objects/UML/realizes.c
5566 objects/UML/small_package.c
5568 objects/UML/usecase.c
5570 : ported coloring of most UML objects (bug #97517, orginal
5571 work Mathias Hasselmann)
5573 * lib/properties.h : add _OPTIONAL variants for
5574 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5575 i.e. default colored - UML diagrams without complaining
5576 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5577 not set properties with the help of PXP_NOTSET. Otherwise
5578 optional attributes would lead to wrong initialization.
5580 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5581 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5582 Same for most other selectors which probably should be rewritten
5583 to the combo box with tree model from Gtk+ 2.4
5585 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
5587 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5588 being the Right Thing(tm) to use on Solaris.
5590 * objects/standard/bezier.c (bezierline_draw): Don't draw
5591 guidelines if not selected.
5593 * lib/object.[ch] (dia_object_is_selected): Function to check whether
5594 a given object is selected. O(n), where n is # selected objects.
5597 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
5599 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5600 Fonts dialog is closed without pressing Ok (bug #128646).
5602 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
5604 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5607 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
5609 * INSTALL: Updated list of requirements (bug #129653)
5611 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5612 Pionchon <luc@handhelds.org>.
5614 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
5616 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5617 empty or NULL strings (bug #130097).
5619 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
5621 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5622 Added checks against color_black.
5624 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
5626 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5627 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
5630 * objects/UML/component_feature.c: Patch from W. Borgert
5631 <debacle@debian.org>: Add handle to component feature text.
5633 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5635 * lib/font.c: Caching PangoLayout for better rendering speed.
5637 2003-12-30 Lars Clausen <lars@raeder.dk>
5639 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5640 get absolute file name from relative.
5641 * app/recent_files.c (recent_file_history_add): Use absolute
5642 filenames for recent files menu so that files can be found when
5643 Dia is invoked from other places.
5645 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5646 Actually load different diagrams if such are requested on command
5649 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5650 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5652 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5653 remove text rendering. May be turned into greeking at some later
5657 * app/Makefile.am (dia_core_files):
5658 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5659 Adds navigation window a la Gimp, though without text being
5662 2003-12-27 Luc Pionchon <luc@handhelds.org>
5664 * app/navigation.h: (new file)
5665 * app/navigation.c: (new file) creates a navigation window with a
5666 thumbnail view of the whole diagram.
5667 * app/Makefile.am (dia_core_files): added new files.
5669 * app/interface.c (create_display_shell): added a button between
5670 the scrollbars to popup a navigation window.
5672 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5674 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5675 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5676 not want text rendering.
5678 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
5680 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5682 * objects/custom/shape_info.[ch]: Cleanup.
5684 * objects/custom/custom_object.[ch]: Changed to use new props
5689 * lib/prop_inttypes.c:
5690 * lib/prop_geomtypes.c: Added *prop_get_data_size.
5692 * lib/libdia.def: Added object_load_props.
5694 * configure.in: Better FT2 version test, from bug #129225.
5696 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5698 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5699 Lehmann <holger.lehmann@catworkx.de>.
5701 * plug-ins/xslt/Makefile.am:
5702 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5703 and OWL XSLT sheets.
5705 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
5707 * lib/diagdkrenderer.c: Add implementation so text is still
5708 rendered. May be improved later.
5714 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5715 Allow running without a $DISPLAY!
5717 * lib/color.c: Remove warnings for non-interactive run.
5722 * app/app_procs.[ch]:
5723 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5724 to specify size for PNG output.
5726 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5727 render a little smaller, so as to fit the big ones.
5729 * lib/arrows.[ch]: New arrow type from W. Borgert
5730 <debacle@debian.org>: Filled Dot and Triangle.
5732 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
5734 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5737 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5739 * acinclude.m4: Better Python configure code patch (can't find
5740 author, author please speak up!)
5742 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
5744 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5747 2003-11-30 Hans Breuer <hans@breuer.org>
5749 * plug-ins/python/diasvg.py : initialize self.dash_length
5750 in constructor to avoid crashing if the renderer user
5751 does not set it before first usage.
5753 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
5755 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5759 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5760 development and stable versions.
5762 * lib/text.c (text_draw): Use new renderer function to draw the
5765 * lib/diarenderer.h:
5766 * lib/diarenderer.c: New renderer function "draw_text" with
5767 default implementation. This function should eventually be the
5768 main interface, as it will be able to handle width and caching of
5769 rendering internally. All users of draw_string should convert to
5770 use Text objects and call either renderer->draw_text or text_draw,
5771 the latter if the text can be edited in-place (as should be the
5774 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
5776 * shapes/Circuit/hresistor.shape: First example of extra
5779 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
5781 * plug-ins/shape/shape-export.c:
5782 * lib/diasvgrenderer.h:
5783 * lib/diasvgrenderer.c:
5784 * plug-ins/svg/render_svg.c (new_svg_renderer):
5785 Actually store the font size, using DiaRenderer's font fields.
5787 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
5789 * objects/custom/shape_info.[ch]:
5790 * objects/custom/custom_object.[ch]:
5791 Support for extra attributes in custom objects.
5793 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
5795 * app/diagram.c (diagram_update_menu_sensitivity): More
5796 intelligent checks for menu sensitivity. Might be slow on huge
5797 diagrams, but I think other things outweigh it by a lot.
5799 * app/menus.[ch]: Make "Bring Forwards"
5800 and "Send Backwards" updateable.
5802 2003-11-22 Steffen Macke <sdteffen@web.de>
5804 * shapes/Assorted/arrow-turn-up.shape:
5805 * shapes/Assorted/arrow-turn-up.png:
5806 * sheets/Assorted/Makefile.am:
5807 * sheets/Assorted.sheet.in: Added new arrow
5809 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
5817 * app/diagram_tree.c
5818 * app/diagram_tree_menu.c
5819 * app/diagram_tree_window.c
5820 * app/diapagelayout.c
5821 * app/diaunitspinner.c
5825 * app/layer_dialog.c
5826 * app/lineprops_area.c
5827 * app/linewidth_area.c
5830 * app/paginate_psprint.c
5832 * app/plugin-manager.c
5835 * app/recent_files.c
5837 * app/sheets_dialog.c
5838 * app/sheets_dialog_callbacks.c
5839 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5840 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5842 * TODO: Updated, note on EPS transparency.
5844 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
5846 * objects/UML/class.c (umlclass_draw): Allow classes with no name
5849 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
5852 * doc/en/dia-manual.xml:
5855 * NEWS: Another Brown Bag release for parenting problems,
5856 including a crash bug fix.
5858 * app/connectionpoint_ops.c (diagram_update_connections_object):
5859 Also update connections when moving children. This can cause
5860 move_handle to be called twice, so it must be idempotent.
5862 * app/load_save.c: Loading and saving of children totally redone.
5863 Now doesn't violate assumption that all objects in a layer are
5864 placed in order in XML file.
5866 * objects/UML/branch.c (branch_create): Don't lie about being
5869 * objects/UML/node.c (node_create):
5870 * objects/UML/large_package.c (largepackage_create): Drag with
5871 lower right-hand handle at creation like all other objects.
5873 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
5875 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
5876 parenting drop to behave like a move inside, i.e. constrain place
5877 instead of trying to resize. 'Cause, resizing cannot be done for
5878 all objects (e.g. UML Class). Also simplified the algorithm a lot
5881 * app/load_save.c: Saving and loading of connection points for
5882 children added. Prototypes for static functions added.
5884 * lib/dynamic_obj.c: Removed debugging output.
5886 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
5888 * doc/en/dia-manual.xml:
5889 * doc/pl/dia-manual.sgml:
5893 * NEWS: Brown Bag release 0.92.1
5895 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
5897 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
5899 * app/app_procs.c (app_init): Rearrangement for translators.
5901 2003-10-24 Steffen Macke <sdteffen@web.de>
5903 * lib/text.c(text_key_event): enforcing the inserted text length now,
5906 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
5908 * MAINTAINERS: Change Debian maintainer to be the default address.
5910 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
5911 args to match prototype, thus removing crashbug #125159.
5913 * RELEASE-PROCESS: Note to self.
5915 2003-10-22 Steffen Macke <sdteffen@web.de>
5917 * doc/en/dia-manual.xml: removed superfluous external references
5919 2003-10-21 Steffen Macke <sdteffen@web.de>
5921 * lib/libdia.def: added filter_get_by_name
5922 * app/render_eps.c: moved extensions definition outside #ifdef
5924 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
5928 Removed old Dia manual, put new one in doc/en/. Translations
5929 should go in doc/??/.
5931 * doc/en/dia-manual.xml:
5932 * doc/pl/dia-manual.sgml:
5933 * dia.spec (Release):
5936 * NEWS: 0.92 is here!
5940 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
5941 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
5944 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
5946 * doc/en/usage-objects-selecting.xml: Commented out empty note.
5948 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
5950 * doc/pl/dia-manual.sgml:
5951 * doc/en/dia-manual.xml:
5955 * dia.spec (Release): Pre7.
5957 * app/diapsrenderer.c (draw_string): Convert string to print based
5958 on current locale. If conversion fails, fall back to UTF-8 (which
5959 is almost certain to be messy).
5961 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
5963 * doc/pl/dia-manual.sgml:
5964 * dia.spec (Release):
5968 * doc/en/dia-manual.xml: Pre6.
5970 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
5971 TeX chars in strings -- must be possible to use TeX text in there.
5972 Also avoids infinite loop bug (#124464) Will get option for this
5975 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
5977 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
5979 * doc/en/dia-manual.xml:
5980 * doc/pl/dia-manual.sgml:
5981 * dia.spec (Release):
5986 * app/authors.h: Removed duplicate of M. C. Nelson.
5988 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
5990 * app/export_png.c: Unique name for libart PNG export: png-libart.
5992 * app/render_eps.c: Unique names for the two eps export methods:
5993 eps-builtin, eps-pango.
5995 * lib/filter.h: Binary compatibility change:
5996 Added unique name to export filters. Can be NULL.
5997 * lib/filter.c (filter_get_by_name): Finding a filter by
6000 * app/app_procs.h: Changed prototype for do_convert.
6001 * app/app_procs.c (app_init): Support for non-extension file
6002 format selection for export. Also allow extension to differ from
6003 that specified by the filters. A bit of refactoring, too.
6005 2003-09-28 Steffen Macke <sdteffen@web.de>
6007 * makefile.msc: added target po to update the translations
6009 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
6012 * dia.spec (Release):
6014 * doc/pl/dia-manual.sgml:
6015 * doc/en/dia-manual.xml:
6016 Pre4 is given a short try.
6018 * configure.in: Give all necessary libs to PNG test.
6020 * lib/font.c: Added legacy entries for sans, serif and monospace.
6022 * app/app_procs.c (internal_plugin_init):
6025 Added PS fonts output for Unix.
6027 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
6028 factor to make PS fonts stay in boxes.
6030 2003-08-03 Hans Breuer <hans@breuer.org>
6032 * config.h.win32 : close the version string
6034 * lib/libdia.def : with color_white, color_black being static
6035 on win32 they can not be exported anymore either
6037 * lib/dialibartrenderer.c : text rendering is back on win32,
6038 only by Gdk though; almost a year seems to be enough to
6039 wait for my patch at bug #94791 to be accepted ...
6041 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
6043 * shapes/network/{digitizing_board.png,plotter.png,
6044 laptop.png,telephone.png}: 22x22 icons.
6046 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
6048 * doc/pl/dia-manual.sgml:
6049 * doc/en/dia-manual.xml:
6050 * dia.spec (Release):
6054 pre3 improves font rendering speed.
6056 * app/app_procs.c (app_init): Don't do pango init here, it's done
6057 on demand in font.c now.
6059 * lib/font.c: Load pango context on demand rather than during
6060 init/all the time strikes a better balance between working font
6061 size and speed. Still need to cache width calculations.
6063 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
6065 * lib/dia_xml.c: Enable pretty printing. Should have been added
6068 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
6070 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
6071 adjustment a bit for half diamond and open round.
6073 * RELEASE-PROCESS: Added note about notifying translators and
6076 * doc/pl/dia-manual.sgml:
6077 * doc/en/dia-manual.xml:
6078 * dia.spec (Release):
6082 Update to 0.92-pre2.
6084 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
6086 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
6087 calculation for half diamond and open round.
6090 * objects/UML/component_feature.c:
6091 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
6092 arrows instead of specific little hacks. Much nicer, but damn
6093 there's a lot of arrows.
6095 * lib/dialibartrenderer.c (begin_render):
6096 * app/render_libart.c (begin_render): Use correct DPI for screen
6097 (well, actually the default DPI of 75 for now).
6099 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
6101 * lib/diagdkrenderer.c (draw_string): Some reformatting.
6103 * app/app_procs.c (app_init): Note on what should be done for the
6104 pango context now, only it doesn't work:(
6106 * lib/font.c (dia_font_new): Make sure to load fonts that are
6107 used, using a reasonable pango_context. Also a comment on the
6110 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
6112 * doc/pl/graphics/*.png:
6113 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
6114 loop (bug #121817). PL translator may want to change the
6115 home_network png to be in Polish. If the docs get translated into
6116 more languages, we'll want to find out how to share these things.
6118 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
6120 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
6121 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
6124 * app/filedlg.c (file_save_as_callback): Put filename setting
6125 together. (Preparation for allowing default save dir.)
6127 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
6128 correctly this time:)
6130 * app/dia-props.c (diagram_properties_show):
6131 * app/properties.c (properties_show): Make sure the
6132 dialogs are transient for the correct diagram.
6134 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
6136 * configure.in: Make sure -lz -lm is passed into second png test
6137 as well (stupid AC_LINK_IFELSE can't take it as an argument).
6139 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
6140 comment-filled files readable. Once we have a 'generic data'
6141 system, we can put comments in there.
6143 2003-09-06 Steffen Macke <sdteffen@web.de>
6145 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
6146 g_string_sized_new() instead of g_string_new() to make it compile
6147 * app/Makefile.am: including dia.ico and dia.rc in the tarball
6148 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
6149 for non-solid linestyles - otherwise custom linestyles have to be used.
6151 2003-09-02 Steffen Macke <sdteffen@web.de>
6153 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
6156 2003-09-02 Christian Neumair <chris@gnome-de.org>
6158 * sheets/Pneumatic.sheet.in: Slight unification fix.
6160 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
6164 * dia.spec (Release):
6165 * doc/en/dia-manual.xml:
6166 * doc/pl/dia-manual.sgml:
6167 * NEWS: Update to 0.92-pre1.
6169 * app/properties.c (properties_key_event): Removing Esc/Enter
6170 handling for now, interferes to much with regular dialog usage.
6172 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
6173 Function to escape special TeX characters. Not in use yet, as
6174 PSTricks output by default is TeX strings. Should get a save-time
6177 2008-09-01 Steffen Macke <sdteffen@web.de>
6179 * lib/paper.h: explanatory comment on width and height
6181 2003-08-30 Steffen Macke <sdteffen@web.de>
6184 * lib/color.h: made color_white, color_black static on win32
6186 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
6188 * configure.in (PNG_LIBS): Something in the png tests added an
6189 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
6191 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
6193 * configure.in: Quote correctly for temporarily adding freetype
6196 * app/preferences.c (prefs_save): Remove debugging g_print.
6198 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
6200 * objects/flowchart/parallelogram.c (pgram_update_data):
6201 Directions for connections, better system for placing
6204 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
6206 * lib/diagramdata.c (layer_find_closest_object_except): Look all
6207 the way through the object list, so the foremost object is selected.
6209 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
6210 included for diagramdata.c.
6212 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
6213 newline in multistringprop not close the dialog. Failed so far.
6215 2003-08-25 Steffen Macke <sdteffen@web.de>
6217 * app/commands.c: using CHM instead of HTML on win32 if available
6218 * lib/diagramdata.h: including dynamic_obj.h
6220 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
6222 * app/properties.c (properties_key_event): Make Enter = Ok for
6223 properties dialogs. Still some problems with this and Esc for
6224 Cancel, for instances escaping out of a menu closes the dialog.
6226 * objects/UML/association.c (association_get_properties):
6227 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6230 * app/diapsft2renderer.c (draw_string): Use
6231 dia_font_scaled_build_layout to ensure similarity of text.
6233 * lib/diagramdata.c: Remove obj from dynobj list when removing
6234 from layer to avoid nasty race conditions.
6236 * app/undo.c (group_objects_revert): Make sure to unparent and
6237 remove from dynobj list when changing layers objects.
6239 2003-08-23 Steffen Macke <sdteffen@web.de>
6241 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
6242 StretchBlt(); fixes #92249
6244 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
6246 * app/filedlg.c (file_save_as_callback):
6247 * app/preferences.h:
6248 * app/preferences.c (prefs_data):
6249 * lib/diagramdata.h:
6250 * lib/diagramdata.c (new_diagram_data):
6251 * app/load_save.c (diagram_data_load):
6252 Let the document remember whether it was compressed. The user can
6253 still override this in the Save As... dialog, and that will still
6254 be remembered as the default for new diagrams.
6256 2003-08-23 Steffen Macke <sdteffen@web.de>
6258 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6260 2003-08-22 Steffen Macke <sdteffen@web.de>
6262 * plug-ins/xslt/dia-uml.xsl:
6263 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6264 table containing a list of components grouped by stereotype
6266 2003-08-21 Steffen Macke <sdteffen@web.de>
6268 * lib/makefile.msc: added connectionpoint.obj
6269 * lib/libdia.def: added connpoint_update, find_slope_directions
6270 * app/disp_callbacks.c: including scroll_tool.h
6271 * obj/makefile.msc: added component_feature.obj
6272 * app/paginate_gdiprint.c: fixed loop initialization in
6273 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6276 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
6278 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6281 * lib/diagramdata.h: Colors added to prefs.
6282 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6283 New field for pagebreak color, which should
6284 behave the same as grid color and be settable for a diagram.
6286 * app/diagram.c (diagram_init): Update diagram pagebreak color
6289 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6292 * app/preferences.[ch]: Default diagram colors now #defines, so
6293 loading can use it. Also, colors are now in NewDiagramData, so
6294 are passed nicely into new diagrams directly from prefs. Yum.
6296 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
6297 Support for loading and saving grid and pagebreak colors with the
6298 diagram. I'm inclined to make all the three Colors in diagram
6299 Color*s instead, so we can tell if they're specified for the
6300 diagram or merely the default setting. There'd be no way for the
6301 user to tell if the color of a diagram is default, though, unless
6302 we add a 'reset to default' button to prefs.
6304 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6305 pagebreak color. Unsensitizing grid size when dynamic.
6307 * objects/UML/component.c: Patch from Krzysztof Foltman
6308 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6309 third. Makes the left side connections actually be on the line
6312 2003-08-20 Steffen Macke <sdteffen@web.de>
6314 * lib/libdia.def: added layer_find_closest_object_except
6315 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
6317 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
6321 * app/scroll_tool.c:
6323 * app/disp_callbacks.c:
6324 * app/create_object.h:
6325 * app/create_object.c: Patch from Krzysztof Foltman
6326 <kfoltman@onet.pl>: Middle button can scroll transiently when
6327 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6331 * sheets/UML.sheet.in:
6332 * sheets/UML/receptacle.xpm:
6333 * sheets/UML/Makefile.am:
6334 * sheets/UML/eventsource.xpm:
6335 * sheets/UML/eventsink.xpm:
6336 * objects/UML/pixmaps/facet.xpm:
6337 * objects/UML/uml.c (dia_plugin_init):
6338 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
6339 * objects/UML/component_feature.c:
6340 Patch from W. Borgert <debacle@debian.org>: Add event sources and
6343 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
6345 * lib/object.h: Turning some comments into doxygen style.
6347 * lib/object_defaults.c (dia_object_defaults_load)
6348 (dia_object_default_get, dia_object_default_create):
6349 Fixing up existing documentation.
6351 * lib/object.h: Doxygen style documentation begun.
6353 * app/create_object.c:
6355 * app/connectionpoint_ops.c:
6356 * app/disp_callbacks.c:
6357 * app/modify_tool.c:
6359 * objects/network/wanlink.c (wanlink_move_handle):
6360 * objects/network/bus.c (bus_move_handle):
6362 * objects/flowchart/parallelogram.c (pgram_move_handle):
6363 * objects/flowchart/ellipse.c (ellipse_move_handle):
6364 * objects/flowchart/diamond.c (diamond_move_handle):
6365 * objects/flowchart/box.c (box_move_handle):
6367 * objects/custom/custom_object.c (custom_move_handle):
6369 * objects/chronogram/chronoref.c (chronoref_move_handle):
6370 * objects/chronogram/chronoline.c (chronoline_move_handle):
6372 * objects/SADT/box.c (sadtbox_move_handle):
6373 * objects/SADT/arrow.c (sadtarrow_move_handle):
6374 * objects/SADT/annotation.c (annotation_move_handle):
6376 * objects/Misc/analog_clock.c (analog_clock_move_handle):
6378 * objects/GRAFCET/vergent.c (vergent_move_handle):
6379 * objects/GRAFCET/vector.c (arc_move_handle):
6380 * objects/GRAFCET/transition.c (transition_move_handle):
6381 * objects/GRAFCET/step.c (step_move_handle):
6382 * objects/GRAFCET/condition.c (condition_move_handle):
6383 * objects/GRAFCET/action.c (action_move_handle):
6385 * objects/FS/function.c:
6386 * objects/FS/flow.c:
6387 * objects/FS/flow-ortho.c (orthflow_move_handle):
6388 * objects/FS/flow-poly.c (flow_move_handle):
6390 * objects/UML/usecase.c (usecase_move_handle):
6391 * objects/UML/state_term.c (state_move_handle):
6392 * objects/UML/state.c (state_move_handle):
6393 * objects/UML/small_package.c (smallpackage_move_handle):
6394 * objects/UML/realizes.c (realizes_move_handle):
6395 * objects/UML/object.c (objet_move_handle):
6396 * objects/UML/note.c (note_move_handle):
6397 * objects/UML/node.c (node_move_handle):
6398 * objects/UML/message.c (message_move_handle):
6399 * objects/UML/lifeline.c (lifeline_move_handle):
6400 * objects/UML/large_package.c (largepackage_move_handle):
6401 * objects/UML/implements.c (implements_move_handle):
6402 * objects/UML/generalization.c (generalization_move_handle):
6403 * objects/UML/fork.c (fork_move_handle):
6404 * objects/UML/dependency.c (dependency_move_handle):
6405 * objects/UML/constraint.c (constraint_move_handle):
6406 * objects/UML/compprop.c (compprop_move_handle):
6407 * objects/UML/component.c (component_move_handle):
6408 * objects/UML/branch.c (branch_move_handle):
6409 * objects/UML/association.c (association_move_handle):
6410 * objects/UML/actor.c (actor_move_handle):
6411 * objects/UML/activity.c (state_move_handle):
6412 * objects/UML/class.c (umlclass_move_handle):
6414 * objects/standard/ellipse.c (ellipse_move_handle):
6415 * objects/standard/zigzagline.c (zigzagline_move_handle):
6416 * objects/standard/textobj.c (textobj_move_handle):
6417 * objects/standard/polyline.c (polyline_move_handle):
6418 * objects/standard/polygon.c (polygon_move_handle):
6419 * objects/standard/line.c (line_move_handle):
6420 * objects/standard/image.c (image_move_handle):
6421 * objects/standard/bezier.c (bezierline_move_handle):
6422 * objects/standard/arc.c (arc_move_handle):
6423 * objects/standard/beziergon.c (beziergon_move_handle):
6424 * objects/standard/box.c (box_move_handle):
6426 * objects/ER/relationship.c (relationship_move_handle):
6427 * objects/ER/participation.c (participation_move_handle):
6428 * objects/ER/entity.c (entity_move_handle):
6429 * objects/ER/attribute.c (attribute_move_handle):
6431 * lib/polyshape.c (polyshape_move_handle):
6433 * lib/orth_conn.c (orthconn_move_handle):
6435 * lib/neworth_conn.c (neworthconn_move_handle):
6436 * lib/neworth_conn.h:
6437 * lib/element.c (element_move_handle):
6439 * lib/connection.c (connection_move_handle):
6441 * lib/beziershape.c (beziershape_move_handle):
6442 * lib/beziershape.h:
6443 * lib/bezier_conn.c (bezierconn_move_handle):
6444 * lib/bezier_conn.h:
6445 *BINARY COMPATIBILITY CHANGE*
6446 Update prototype for *_move_handle() to include connectionpoint,
6447 and also pass on modifiers. Pass in connectionpoint where
6450 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6451 file connectionpoint.c.
6453 2003-08-17 Danilo Å egan <dsegan@gmx.net>
6455 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6457 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
6459 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6461 * lib/beziershape.c (beziershape_update_data): Autoroute
6462 directions for beziershapes!
6464 * lib/connectionpoint.c (find_slope_directions):
6465 * lib/connectionpoint.h: Function for finding the available
6466 directions on a slope.
6468 * lib/polyshape.c: Reasonable directions for
6471 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
6473 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
6474 * objects/GRAFCET/vergent.c (vergent_update_data):
6475 * objects/GRAFCET/transition.c (transition_update_data):
6476 * objects/GRAFCET/action.c (action_update_data):
6477 * objects/GRAFCET/step.c (step_update_data):
6478 * objects/FS/function.c (function_update_data):
6479 * lib/connpoint_line.c (connpointline_putonaline):
6480 * objects/ER/attribute.c (attribute_update_data):
6481 * objects/ER/entity.c (entity_update_data):
6482 * objects/ER/relationship.c (relationship_update_data):
6483 * objects/chronogram/chronoline.c (chronoline_update_data): Set
6484 directions for connection points.
6486 * objects/UML/component.c (component_create): Set to allow
6489 * app/create_object.c (create_object_button_press):
6490 * app/diagram.[ch] (diagram_find_clicked_object_except):
6491 * lib/diagramdata.[ch] (layer_find_closest_object_except):
6492 Avoid parenting to objects you're connecting to (otherwise you
6493 couldn't make a connection out of a parenting object). To do
6494 this, added functions to find the nearest object except a given
6497 * app/render_libart.c: Rearrange libart include to avoid multiple
6498 include program (and put libart includes inside #ifdef!)
6500 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
6502 * lib/dialibartrenderer.c: Don't include art_config.h if others
6503 also do, as it isn't #ifdef'd.
6505 * objects/flowchart/ellipse.c (ellipse_update_data): Add
6506 directions for connection points.
6508 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
6510 * objects/flowchart/box.c (box_update_data): Add directions, use
6512 (box_load): Use g_malloc0.
6514 * lib/Makefile.am (libdia_la_SOURCES):
6515 * lib/connectionpoint.c (connpoint_update):
6516 Function to call to update a connection point info in _update_data().
6518 * lib/connectionpoint.h: Convenience DIR_ macros.
6520 * app/preferences.c (prefs_data): Make pretty formatted XML the
6523 * lib/dialibartrenderer.c:
6524 * app/render_libart.c: Make sure art_config.h is included, cause
6525 some libart headers are broken.
6527 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6528 after test. Add freetype-config cflags to cflags variable.
6530 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
6532 * app/authors.h: Credits for Krzysztof.
6534 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6535 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
6536 than the description) is visible in the title of the properties
6537 dialog. That ought to be a short description (translatable),
6538 though we still want long descriptions for the tooltips. Hmmm...
6540 * configure.in: Updated to use AC_LINK_IFELSE instead of
6541 AC_TRY_COMPILE, also force to link to check libs on Solaris.
6543 * objects/ER/entity.c (entity_load):
6544 * objects/ER/attribute.c (attribute_load):
6545 * lib/attributes.c (attributes_set_default_font):
6546 Check if font is non-null before unreffing.
6548 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
6550 * app/diagram.c (diagram_ungroup_selected)
6551 (diagram_group_selected): Use the undo apply to make sure grouping
6552 and ungrouping is done in consistent manners. This removes a fair
6553 amount of duplicated code from diagram.c.
6555 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
6556 (group_objects_revert, group_objects_apply): Working undo/redo for
6557 diagram tree updates. The initial actions still don't quite work.
6559 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
6561 * app/create_object.c (create_object_button_press):
6563 * app/diagram.c: Undo support for parenting. Uses apply/revert in
6564 undo only for manipulating the parent/child relationships. Things
6565 like removing an object doesn't use the undo functions for
6566 parenting, so any updates to come (like to diagramtree) should be
6569 2003-08-03 Hans Breuer <hans@breuer.org>
6571 * app/create_object.c : minor formating and g_new0 for
6574 * lib/bezier_conn.[hc] lib/beziershape.[hc]
6575 lib/prop_geomtypes.c (prop_geomtypes_register)
6576 objects/standard/bezier.c objects/standard/beziergon.c :
6577 ability to set bezpoints via StdProp api
6579 * plug-ins/python/pydia-property.c : convert list of tuples
6582 * plug-ins/python/diasvg_import.py : use it to
6583 implement part of path parsing. Also minor improvements
6584 like inheritance of group attributes to members,
6585 whitespace, title and style:text/css ignoring ;-)
6587 2003-08-02 Hans Breuer <hans@breuer.org>
6589 * lib/connections.c (connection_move_handle): return
6590 something to make it compile
6591 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
6592 must return a value -> dito
6593 [Is there a warnings-as-errors switch we could use with gcc
6594 to avoid such in future ?]
6596 * plug-ins/python/pydia-object.h : define *_Check macros
6597 * plug-ins/python/diamodule.c : provide dia.group_create()
6598 * plug-ins/python/pydia-diagramdata.c : add
6599 DiaDiagramData.add_layer()
6600 * plug-ins/python/pydia-property.c : allow to set color by
6603 * plug-ins/python/diasvg_import.py : based on the above
6604 implement a) group support, b) rgb(1,2,3) color handling,
6605 and somewhat fishy data:image/png;base64 support (create
6606 temporary files from inline image data)
6607 d) dump the import errors as text into an 'Error' layer
6609 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6610 stray " in draw_rect and corrected error message formating
6612 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6613 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
6616 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
6618 * app/magnify.c (create_magnify_tool): allocate with g_new0()
6620 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
6621 preferences values (see bug 118570). Also group items into a GtkFrame.
6623 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
6628 * app/commands.c (objects_unparent_children_callback):
6630 * app/diagram.c (diagram_unparent_selected,
6631 (diagram_update_menu_sensitivity):
6632 Added unparenting of single children.
6634 * lib/bezier_conn.c:
6635 * lib/bezier_conn.h:
6636 * lib/beziershape.c:
6637 * lib/beziershape.h:
6643 * lib/neworth_conn.c:
6644 * lib/neworth_conn.h:
6651 * objects/EML/instantiation.c:
6652 * objects/EML/interaction-ortho.c:
6653 * objects/EML/interaction.c:
6654 * objects/EML/process.c:
6655 * objects/ER/attribute.c:
6656 * objects/ER/entity.c:
6657 * objects/ER/participation.c:
6658 * objects/ER/relationship.c:
6659 * objects/FS/flow-ortho.c:
6660 * objects/FS/flow-poly.c:
6661 * objects/FS/flow.c:
6662 * objects/FS/function.c:
6663 * objects/GRAFCET/action.c:
6664 * objects/GRAFCET/condition.c:
6665 * objects/GRAFCET/step.c:
6666 * objects/GRAFCET/transition.c:
6667 * objects/GRAFCET/vector.c:
6668 * objects/GRAFCET/vergent.c:
6669 * objects/Misc/analog_clock.c:
6670 * objects/SADT/annotation.c:
6671 * objects/SADT/arrow.c:
6672 * objects/SADT/box.c:
6673 * objects/UML/activity.c:
6674 * objects/UML/actor.c:
6675 * objects/UML/association.c:
6676 * objects/UML/branch.c:
6677 * objects/UML/class.c:
6678 * objects/UML/classicon.c:
6679 * objects/UML/component.c:
6680 * objects/UML/constraint.c:
6681 * objects/UML/dependency.c:
6682 * objects/UML/fork.c:
6683 * objects/UML/generalization.c:
6684 * objects/UML/implements.c:
6685 * objects/UML/large_package.c:
6686 * objects/UML/lifeline.c:
6687 * objects/UML/message.c:
6688 * objects/UML/node.c:
6689 * objects/UML/note.c:
6690 * objects/UML/object.c:
6691 * objects/UML/realizes.c:
6692 * objects/UML/small_package.c:
6693 * objects/UML/state.c:
6694 * objects/UML/state_term.c:
6695 * objects/UML/usecase.c:
6696 * objects/chronogram/chronoline.c:
6697 * objects/chronogram/chronoref.c:
6698 * objects/custom/custom_object.c:
6699 * objects/flowchart/box.c:
6700 * objects/flowchart/diamond.c:
6701 * objects/flowchart/ellipse.c:
6702 * objects/flowchart/parallelogram.c:
6703 * objects/network/bus.c:
6704 * objects/network/wanlink.c:
6705 * objects/standard/arc.c:
6706 * objects/standard/bezier.c:
6707 * objects/standard/beziergon.c:
6708 * objects/standard/box.c:
6709 * objects/standard/ellipse.c:
6710 * objects/standard/image.c:
6711 * objects/standard/line.c:
6712 * objects/standard/polygon.c:
6713 * objects/standard/polyline.c:
6714 * objects/standard/textobj.c:
6715 * objects/standard/zigzagline.c:
6716 Binary compatibility update: Added return value for foo_move() and
6717 foo_move_handle(). Orthconn derivatives also returns change from
6718 orthconn_move_handle().
6720 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
6721 doesn't support it yet.
6723 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6724 Add returning ObjectChange from object moves. Needs to handle
6725 multiple object moves.
6727 * app/modify_tool.c (modify_motion, modify_release): Add
6728 ObjectChange from move & move_handle to undo stack.
6730 * objects/EML/instantiation.c (instantiation_move): Removing
6731 duplicate move & update.
6733 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
6735 * plug-ins/xfig/xfig-export.c: Added support for arrow head
6736 export. Many arrow types not supported by XFig, replacing those
6737 with standard arrows. Not sure whether it'd be better to render
6738 them as a group of lines instead. You'd lose the arrow-ness for
6739 further editing, but preserve the actual shape of it. Also added
6740 support for dash length.
6742 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6744 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6745 description for version 3.2, for reference.
6747 * plug-ins/xfig/xfig-import.c: Added import of arrows.
6749 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
6750 Align Vertical Adjacent call _v rather than _h.
6752 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
6754 * app/scroll_tool.c (create_scroll_tool):
6755 * app/modify_tool.c (create_modify_tool): use g_new0() to
6758 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
6760 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6762 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
6764 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6766 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
6768 * configure.in: Added Belarusian to ALL_LINGUAS.
6770 2003-07-19 Hans Breuer <hans@breuer.org>
6773 Make the xslt plug-in work on win32, too. It appears
6774 to require a quite recent version of libxml and libxslt,
6775 otherwise windoze pathes aren't translated correctly
6776 during file processing
6779 * plug-ins/xslt/xslt.h : #include <glib.h> before
6782 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6783 the 'script' file finding similar to how it is done
6784 with the python scripts (no need for hardcoded pathes,
6785 removed the 'plugin' part from the path)
6787 * plug-ins/xslt/stylesheets.xml : added again. It does
6788 not have any path but only the pure filename again
6790 * plug-ins/xslt/stylesheets.xml.in : removed
6792 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6793 rule to process stylesheets.xml.in
6795 * plug-ins/makefile.msc : added xslt
6797 2003-07-19 Hans Breuer <hans@breuer.org>
6799 Finally Dia learned to remember the recent selected sheet
6801 * app/preferences.[hc] : added prefs.recent_sheet
6802 * app/interface.c : restore and remember the sheet-option-menu
6803 history, but only if the respective number is stiil available.
6804 This additional adds robustness against running Dia without
6805 any sheet (e.g. installation problems)
6806 * app/app_procs.c : call prefs_safe() in app_exit() to remember
6807 changes which are not done by the prefernces dialog
6809 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6810 removed every call (especially the conditional ones) to prefs_safe().
6811 Before prefs_safe() was called _many_ times during Dia startup
6813 2003-07-18 Hans Breuer <hans@breuer.org>
6815 * app/makefile.msc lib/makefile.msc lib/libdia.def :
6818 * lib/color.c : use gtk_widget_get_default_visual();
6819 as suggested in #114536
6821 * app/interface.c app/disp_callbacks.c :
6822 moved round_up () to the latter file where it is used
6824 * app/linewidth_area.c : #include "interface.h" for
6825 interface_get_toolbox_shell()
6827 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
6829 * plug-ins/pixbuf/.cvsignore
6830 * shapes/Cisco/.cvsignore:
6833 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
6835 * app/dia-props.c (diagram_properties_retrieve): Use
6836 diagram_get_name() to add the diagram name to the diagram
6840 * app/diagram.c (diagram_get_name): New function to get a
6841 reasonable diagram name.
6843 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6844 info. Still need to be able to set dynamic grid. Also ought to
6845 follow Gnome style and have instant apply.
6847 * app/preferences.h:
6848 * app/preferences.c (prefs_data): Remove option to use stippled
6849 grid, add option for major line offset. Default to 5 minor lines
6851 Add option for dynamically sized grid.
6853 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6855 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
6856 stippled/solid to display minor/major grid lines. Line drawing in
6857 separate functions away from calculating line distance.
6859 * app/grid.h: Split page break drawing out of grid_draw.
6861 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6862 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
6863 when menu item is selected.
6865 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
6867 * configure.in: Removed -Winline flag to make way for important
6870 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
6871 non-compressed. Should fix bug #117381, also look prettier.
6874 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
6875 Set up desktop info more properly.
6877 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
6894 Autorouting directions patch from Krzysztof Foltman
6897 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
6898 GNOME parent menu items.
6900 * app/authors.h: Added Vadim to contributors list.
6902 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
6904 * app/commands.[ch]:
6905 * app/create_object.c:
6906 * app/disp_callbacks.[ch]:
6917 * objects/UML/large_package.c: Patch from Vadim Berezniker
6918 <vadim@berezniker.com>:
6919 Objects may "parent" other objects, i.e. contain them within
6920 themselves, restrain them and move them along. Some more stuff is
6921 needed, such as selection and individual unparenting. This adds
6922 parenting to UML - Large Package rather than Box.
6924 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
6926 * app/linewidth_area.c: Patch from Krzysztof Foltman
6927 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
6928 conform more, at least:).
6930 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
6931 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
6932 arcs. Implemented images (though there is some pixelization and
6933 banding in the output). Changed output file format to be a little
6936 * app/app_procs.c (app_exit): Added message for double exit, which
6937 shouldn't happen any more. Also preventing strange g_object_unref
6938 messages by having a printf after gtk_main_quit. This is really
6941 * app/interface.c (toolbox_delete): Avoid double app_exit call by
6942 removing handler for destroy when delete is called.
6944 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
6947 * app/display.c (ddisplay_scroll_to_object,
6948 ddisplay_scroll_center_point): New function for easy scrolling to
6951 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
6953 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
6954 $(srcdir) on stylesheets.xml.
6956 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
6957 diagram menus (since they're at the top by default now). Also
6958 move the Properties... menu item from Dialogs to Objects. Dialogs
6959 menu should disappear at some point.
6961 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
6962 ./configure from ./autogen.sh, as configure may need to be run
6963 from a different directory. (Also more standard this way.)
6965 * app/app_procs.c (app_init):
6966 * app/Makefile.am (INCLUDES): Gnome standardization patch from
6969 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
6971 * objects/flowchart/parallelogram.c (pgram_update_data):
6972 Left/right alignment for parallelograms. Doesn't use all
6973 available space, but then pgrams also ignore their shear value.
6974 This thing needs a loving hand.
6976 2003-07-01 Hans Breuer <hans@breuer.org>
6978 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
6979 * lib/proplist.c : don't complain if optional attr is missing
6980 * lib/orth_conn.h : make "orth_autoroute" optional to
6981 stop complaining with older files.
6983 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
6985 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
6987 2003-06-05 Andrew Halper <ashalper@cox.net>
6989 * app/diagram_tree.c : add scrolling of drawing area
6990 to desired object on "Locate". Patch modified to use new ddisplay
6991 function ddisplay_scroll_to_object().
6993 2003-06-11 Lars Clausen <lars@raeder.dk>
6995 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6996 info. Before next version, the grid dialog (view dialog, really)
6997 must be redone to allow a) instant apply, b) apply to all
6998 diagrams, and c) setting colour, dynamic, major lines.
7000 * app/preferences.h:
7001 * app/preferences.c (prefs_data): Remove option to use stippled
7002 grid, add option for major line offset. Default to 5 minor lines
7004 Add option for dynamically sized grid.
7006 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7008 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
7009 stippled/solid to display minor/major grid lines. Line drawing in
7010 separate function away from calculating line distance.
7012 * app/grid.h: Split page break drawing out of grid_draw.
7014 2003-05-15 Hans Breuer <hans@breuer.org>
7016 * plug-ins/python/diasvg.py : add xlink definition,
7017 also avoid to put spaces into attribute values. At least
7018 Sodipodi doesn't like them in width/height attributes
7020 * plug-ins/python/diasvg_import.py : add simple scaling.
7021 Some (more) handling for <svg>, <desc>, <circle>
7023 * plug-ins/python/scascale.py : (new file) which does
7024 some experimental scaling via StdProp api
7026 * plug-ins/python/pydia-cpoint.c
7027 plug-ins/python/pydia-handle.c : return PyDiaPoint for
7028 obj.pos not simple tuples. PyDiaPoint has a tuple interface
7029 so this may even be api compatible ...
7031 2003-05-11 Hans Breuer <hans@breuer.org>
7033 * app/line_area.c : add window position persitence
7035 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
7036 'poly_points' via StdProp api
7037 * lib/neworth_conn.h : don't rely on OrthConn and
7038 NewOrtConn having the same struct offsets
7040 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
7041 to help separating 'useful' properies - in terms of
7044 * objects/custom/custom_object.c
7046 add the missing prop_desc_list_calculate_quarks to
7047 all the *_describe_props()
7049 * objects/standard/beziergon.c objects/standard/bezier.c :
7050 explicit initializtion of default_user_data
7051 * objects/standard/polygon.c objects/standard/polyline.c :
7052 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
7054 * plug-ins/python/diamodule.c : implement dia.register_import
7056 * plug-ins/python/makefile.msc : need to link with Pango
7057 for pango_color_parse()
7059 * plug-ins/python/pydia-property.c : add a bunch of type
7060 conversions to PyDiaProperty_ApllyToObject()
7062 * plug-ins/python/diasvg_import.py : (new file) which currently
7063 is mainly a stress test for PyDia but for some files already
7064 produces better results than svg-import.c
7066 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
7068 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
7069 type-less operations.
7071 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
7073 * configure.in(ALL_LINGUAS): Added "ms".
7075 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
7077 * plug-ins/xslt/xslt.c (xslt_ok):
7078 * plug-ins/shape/shape-export.c (new_shape_renderer):
7079 * plug-ins/svg/render_svg.c (new_svg_renderer):
7080 * plug-ins/hpgl/hpgl.c (export_data):
7081 * plug-ins/dxf/dxf-export.c (export_dxf):
7082 * plug-ins/metapost/render_metapost.c (export_metapost):
7083 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
7084 * plug-ins/xfig/xfig-export.c (export_fig):
7085 * plug-ins/wpg/wpg.c (export_data):
7086 * plug-ins/cgm/cgm.c (export_cgm):
7087 * app/render_eps.c (export_eps):
7088 * app/export_png.c (export_png_ok):
7089 * app/load_save.c (diagram_data_save): Adding and standardizing
7090 output file error messages to include fopen error message.
7092 2003-05-01 Steffen Macke <sdteffen@web.de>
7094 * app/persistence.c: do not use unistd.h for MSVC build
7096 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
7098 * sheets/Assorted.sheet.in
7099 * sheets/Circuit.sheet.in
7100 * sheets/Contact.sheet.in
7101 * sheets/EML.sheet.in
7102 * sheets/ER.sheet.in
7103 * sheets/Electric.sheet.in
7104 * sheets/FS.sheet.in
7105 * sheets/Flowchart.sheet.in
7106 * sheets/GRAFCET.sheet.in
7107 * sheets/Logic.sheet.in
7108 * sheets/MSE.sheet.in
7109 * sheets/Misc.sheet.in
7110 * sheets/Pneumatic.sheet.in
7111 * sheets/SADT.sheet.in
7112 * sheets/SDL.sheet.in
7113 * sheets/UML.sheet.in
7114 * sheets/chronogram.sheet.in
7115 * sheets/ciscohub.sheet.in
7116 * sheets/ciscomisc.sheet.in
7117 * sheets/cisconetwork.sheet.in
7118 * sheets/ciscorouter.sheet.in
7119 * sheets/civil.sheet.in
7120 * sheets/network.sheet.in
7121 * sheets/sybase.sheet.in:
7122 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
7123 standardizes shape descriptions to use no articles, no 'create
7126 * app/interface.c (tool_data): Standard objects follow same
7129 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
7131 * app/color_area.c (color_area_edit): More informative title on
7132 color selection dialog.
7134 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
7135 sensitivity when dropping object in. Also reset tool to pointer.
7137 * objects/flowchart/diamond.c (diamond_update_data):
7138 * objects/flowchart/parallelogram.c (pgram_update_data): Added
7139 left and right alignment options.
7141 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
7143 * objects/flowchart/box.c: Added left and right alignment options.
7145 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
7147 * app/persistence.c (persistence_load): Test existence of
7148 persistence file before trying to open it.
7150 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
7152 * app/properties.c: Escape now closes properties dialogs.
7154 2003-04-25 Hans Breuer <hans@breuer.org>
7156 * app/config.h.win32 : bump version to 0.91+cvs
7158 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
7160 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
7162 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
7165 * app/presistence.c : need to #include "dia_xml_libxml.h"
7168 * app/layer_dialog.c : make delayed creation work by protecting
7169 all non static layer_dialog_*() with :
7170 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
7171 create_layer_dialog();
7172 * app/app_procs.c : removed /* create_layer_dialog(); */
7174 * objects/uml/association.c : give it a minimal StdProp
7175 implementation to fix bug #108896
7176 * lib/object_defaults.c : don't try to copy props if there
7177 is no obj->ops->describe_props
7179 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
7181 * objects/standard/image.c (image_create):
7182 * objects/standard/ellipse.c (ellipse_create):
7183 * objects/standard/box.c (box_create):
7184 * objects/flowchart/ellipse.c (ellipse_create):
7185 * objects/flowchart/diamond.c (diamond_create):
7186 * objects/flowchart/box.c (box_create):
7187 * objects/custom/custom_object.c (custom_create):
7188 * objects/ER/relationship.c (relationship_create):
7189 * objects/ER/entity.c (entity_create):
7190 * objects/ER/attribute.c (attribute_create): Initialize
7191 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
7193 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
7197 * plug-ins/Makefile.am:
7198 * plug-ins/xslt/Makefile.am:
7199 * plug-ins/xslt/xslt.c (dia_plugin_init):
7200 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
7201 automake-style if to only include xslt dir when needed. Works
7202 with automake 1.4 and up, at least.
7204 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
7206 * lib/diasvgrenderer.c (draw_string):
7207 * lib/dia_svg.c (dia_svg_parse_style): Use
7208 text-anchor:(start|middle|end).
7210 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
7211 polygon rather than polyline & avoid missing line pieces.
7212 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
7213 black-filled things.
7215 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
7217 * app/persistence.c (persistence_load): Check that persistence
7218 file exists before trying to read it.
7219 (persistence_update_window): Removed printf.
7221 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
7223 * lib/autoroute.c: Take badness into the layouters again, as some
7224 of them know they can do things that are pretty but would be
7225 counted as ugly by the default calculation.
7227 * objects/UML/large_package.c: Shrink package name box when no
7228 stereotype is present.
7230 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
7231 * lib/orth_conn.c: Added object menu item for autorouting.
7233 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
7234 Autorouting, plus set initial dragging handle to be the end, not
7236 (orthflow_draw): Flipped arrow place to be at the end, as
7237 originally intended (got lost in arrow update).
7239 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
7240 * objects/UML/dependency.c (dependency_get_object_menu):
7241 * objects/UML/association.c (association_get_object_menu):
7242 * objects/UML/realizes.c (realizes_get_object_menu):
7243 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
7244 * objects/GRAFCET/vector.c (arc_get_object_menu):
7245 * objects/ER/participation.c (participation_get_object_menu):
7246 * objects/EML/instantiation.c (instantiation_get_object_menu):
7247 * objects/UML/generalization.c (generalization_get_object_menu):
7248 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
7249 Autorouting setup (currently disabled for SADT/arrow).
7251 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
7253 * lib/autoroute.c: Removed printfs.
7256 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7257 non-connected orthconns too.
7259 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
7262 * lib/orth_conn.c: Function to set autorouting on/off, use
7263 autorouting in move_handle (turns off when a middle handle is
7264 moved), added to standard orthconn props.
7266 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7267 Stopped signal emission for check menu items being set to on/off.
7269 * objects/standard/zigzagline.c: Added autorouting object menu item.
7271 * lib/autoroute.c: Added last cases of autoroute layout, fixed
7272 floating point comparison bug, cleaned up layouters, tweaked
7273 badness to allow kinks.
7275 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
7277 * lib/connectionpoint.h: Changed DIR_* macros to go around the
7280 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7282 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7283 old cruft, added call to autoroute (currently cannot be turned
7284 off). Need to check what undo thinks about this.
7285 * lib/autoroute.[ch]: Fairly working simple layout.
7287 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7288 * lib/autoroute.[ch]: Start of proper autorouting functionality.
7290 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
7292 * lib/prop_widgets.c: Show labels on ListProp.
7294 2003-04-11 Steffen Macke <sdteffen@web.de>
7296 * doc/en/dia-manual.xml: removed reference of non-existing authors
7298 * doc/en/usage-objects-selecting: commented out misleading section
7301 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
7303 * app/app_procs.c (app_init): Layer window now opened at startup
7306 * lib/prop_widgets.c: Show labels on ListProp.
7308 2003-04-09 Steffen Macke <sdteffen@web.de>
7310 * doc/en/*.sgml: removed files
7311 * doc/en/*.xml: added files
7312 * doc/en/Makefile.am: switched to XML DocBook
7314 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
7316 * plug-ins/xslt/xslt.c (dia_plugin_init):
7317 * configure.in: Added --with-xslt-prefix to allow other XSLT
7318 placements than /usr/lib.
7320 2003-04-09 Steffen Macke <sdteffen@web.de>
7322 * lib/makefile.mingw: updated to include latest files, including
7324 * lib/geometry.h: don't define isinf and finite for mingw gcc build
7326 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
7328 * app/persistence.h:
7329 * app/persistence.c (persistence_register_window_create):
7330 * app/app_procs.c (app_init):
7331 Register window function that doesn't create the window unless it
7332 should be open. Other windows should move to this, so startup
7333 speed can be reduced.
7335 * app/persistence.h: Removed call prototype for update_window, now
7337 * app/persistence.c (persistence_register_window): A number of
7338 fixes. Doesn't forget position when window is closed. Now
7339 actually loads prefs.
7341 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7344 * app/preferences.c (prefs_data):
7345 * app/diagram_tree_window.h:
7346 * app/diagram_tree_window.c: Added persistence registering.
7347 Removed prefs items storing size and openness.
7349 * app/sheets_dialog.c (create_sheets_main_dialog): Added
7350 persistence registering.
7352 * app/Makefile.am (dia_core_files): Added persistence files.
7355 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7356 that dirs are present.
7358 * app/app_procs.c (app_init): Loads persistent values on startup.
7359 (app_exit): Saves persistent values on exit.
7361 * app/layer_dialog.c (create_layer_dialog): Registers the layer
7362 window for persistence.
7364 * app/persistence.[ch]: New files handling various kinds of
7367 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
7369 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7370 head spacing calculations. Added half-circle arrow from Matthieu
7371 Sozeau <mattam@netcourrier.com>
7373 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
7375 * app/app_procs.c (app_init): Moved layer dialog init to allow
7376 tooltips to be initialized.
7378 * app/interface.c (create_display_shell): More tooltips.
7380 * app/linewidth_area.c (linewidth_area_create)
7381 (linewidth_area_events):
7382 * app/color_area.c (color_area_events, color_area_create):
7383 Made tooltips work by embedding drawing_area in event_box.
7385 * app/interface.c (create_display_shell,
7386 (create_lineprops_area, create_color_area): Added a few tooltips.
7388 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
7390 * app/pixmaps/off-grid.xpm:
7391 * app/pixmaps/on-grid.xpm:
7392 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7395 * app/commands.c (view_snap_to_grid_callback):
7396 * app/display.c (ddisplay_set_snap_to_grid)
7397 (update_snap_grid_status):
7398 * app/interface.c (create_display_shell, grid_toggle_snap):
7399 Added snap-to-grid status button.
7401 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
7403 * app/app_procs.c (app_init): Create a new diagram if a file on
7404 the command line isn't found.
7406 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
7408 * lib/dialibartrenderer.c (draw_string): Correct color handling
7411 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
7414 * doc/en/dia-manual.sgml:
7415 * doc/pl/dia-manual.sgml:
7417 * dia.spec (Release):
7418 Version 0.91 is here!
7420 2003-02-10 Steffen Macke <sdteffen@web.de>
7422 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
7423 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7424 non-ANSI characters, closes #107980
7426 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
7430 * dia.spec (Release):
7431 * doc/en/dia-manual.sgml: Upping to pre6.
7433 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7435 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7436 #107511: Make arrow selector for correct arrow type.
7438 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
7440 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7443 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
7445 * doc/en/dia-manual.sgml:
7448 * dia.spec (Release): Upping to pre5.
7450 * configure.in: Add freetype-config derived libs to the
7451 AC_CHECK_LIB statement for freetype.
7453 2003-02-28 Hans Breuer <hans@breuer.org>
7455 [fix for bug #107203]
7457 * lib/diarenderer.c : add warning 'implementation'
7458 for fill_rect to avoid crashing with a renderer
7459 which does not implement this required function.
7461 * plug-ins/dxf/dxf-export.c : provide - still empty -
7462 'implementations' for fill_rect and fill_polygon
7463 to suppress the above warnings. Now it works like
7466 2003-02-28 Steffen Macke <sdteffen@web.de>
7468 * samples/all_objects.dia: New sheet containing all dia shapes
7469 and objects; one layer per sheet
7471 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
7473 * lib/prop_text.c (multistringprop_get_widget,
7474 multistringprop_reset_widget, multistringprop_set_from_widget):
7475 Now uses GtkTextView instead of deprecated stuff, and also works:)
7477 * configure.in: Slightly more informative error message for isinf.
7479 * dia.spec (Requires): Require libxml2 rather than libxml.
7481 2003-02-28 Steffen Macke <sdteffen@web.de>
7483 * shapes/Circuit/hjumper.png:
7484 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7487 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
7489 * doc/en/dia-manual.sgml:
7491 * dia.spec (Release):
7492 * NEWS: New prerelease 0.91pre4, two important fixes.
7494 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
7496 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7499 * app/commands.c (help_manual_callback): More correct URL for help
7500 page (include file://, was broken on Dillo without it).
7502 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
7504 * app/disp_callbacks.c: Set modifed when text is changed.
7506 * app/modify_tool.c (modify_button_release): Allow undo for moving
7509 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
7512 * doc/en/dia-manual.sgml:
7514 * configure.in: New prerelease with important bugfix.
7515 * shapes/network/digitizing_board.png:
7516 * shapes/network/plotter.png: Re-adding with -kb.
7518 2003-02-17 Abel Cheung <maddog@linux.org.hk>
7520 * app/app_procs.c (app_init): Add comment for translators.
7522 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
7524 * lib/filter.c (filter_register_import, filter_register_export):
7525 Don't accept filters with NULL description.
7527 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7528 (as we assume the description is available in other places).
7530 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
7532 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
7533 * app/display.c (ddisplay_resize_canvas): Use
7534 ddisplay_add_update_all().
7535 (ddisplay_add_update_all): Free display and update lists when
7536 doing update_all, as they'll be regenerated immediately to cover
7537 all visible area. Fixes bug #106165, crash when resizing. This
7538 appears to be the original AA crash bug, believed long extinct.
7540 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
7542 * app/commands.c (help_manual_callback): Use file: protocol for
7545 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7547 * plug-ins/xslt/stylesheets: Removed old-style config file.
7549 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7551 * plug-ins/xslt/Makefile.am:
7552 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7553 handling (no more DIA_PLUGIN_PATH).
7555 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
7557 * plug-ins/svg/render_svg.c:
7558 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7560 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
7562 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
7563 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
7564 side of the triangle is longer than the hypotenuse. Rounding
7567 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
7571 * doc/en/dia-manual.sgml: Update for pre2.
7573 * app/menus.c (display_menu_items): Fixed wrongly place separators.
7575 * objects/flowchart/box.c (box_update_data): Applied patch from
7576 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7579 * app/paginate_psprint.c (print_page): Set paper name, so it
7580 convinces ps printers to use to right size.
7582 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
7584 * app/properties.c (properties_show): Hide the dialog if the
7585 object is NULL (get rid of 'no properties' randomly popping up).
7587 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
7589 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7590 for diagrams not starting at origo.
7592 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
7594 * dia.spec (BuildRequires): Use libxml2-devel.
7596 * plug-ins/pixbuf/Makefile.am: Added to CVS.
7598 * RELEASE-PROCESS: Note on RPM version numbers.
7600 * app/interface.c (create_display_shell): Don't set as toolbar
7601 under Unix, either. Especially not the diagram shell. It removes
7602 it from the taskbar and makes it unresizable, always-on-top with
7603 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
7604 appropriate thing, UTILITY, is not good either, you lose resizing
7605 and minimizing/maximizing under OpenBox.
7607 * app/menus.c (display_menu_items): Set delete item to use Delete.
7609 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
7611 * dia.spec (BuildRequires, Requires): Updated for Gtk2
7614 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7615 display flush when getting focus in, or we may get an update after
7616 the diagram has been destroyed in some cases. Fixes bug #105221.
7618 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7620 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7622 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7623 - gnome-compiled Dia will now read files specified on the command line.
7625 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
7627 * INSTALL (REQUIREMENTS): Updated requirements section.
7629 * configure.in: Better finite() check from MÃ¥rten Svantesson
7630 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
7633 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
7635 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7637 * app/app_procs.c (debug_break): Added some code to avoid
7638 over-eager optimizations removing the call. Surely there's a
7639 nicer way, but I'm not sure how.
7641 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7642 that set text to black.
7644 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
7646 * NEWS: Mention of Twiki as doc source for Python.
7648 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7649 libart/libpng is not available. Later when we have a way of
7650 letting the user pick options in the file select dialog we shall
7651 allow the choice when applicable.
7653 2003-02-02 Steffen Macke <sdteffen@web.de>
7655 * doc/en/usage-loadsave.sgml:
7656 * doc/en/usage-objects.sgml: patch from
7657 James K. Lowden <jklowden@schemamania.org> to fix
7660 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
7662 * plug-ins/Makefile.am (SUBDIRS):
7663 * plug-ins/pixbuf/pixbuf.c:
7664 * plug-ins/pixbuf/Makefile.am:
7666 Added pixbuf plugin to Makefile.am, but for import only. PNG
7667 export handled by libart, which is better. JPG export is
7668 discouraged. BMP is not much used on Unix. Next release will
7669 integrate libart to allow all outputs.
7671 2003-02-01 Hans Breuer <hans@breuer.org>
7673 * app/preferences.c :
7675 the last two dialogs with 'old' button order finally
7676 are converted to gtk2, no GnomeDialog in all of Dia
7679 2003-02-01 Hans Breuer <hans@breuer.org>
7681 * app/filedlg.c : don't try to use a button as
7682 'overwrite-file-dialog'-parent, use the FileSelDialog
7685 * plug-ins/pixbuf/pixbuf.c : make it work with
7686 system-visual-depth < 24. Remove 'bmp' from output
7687 format extensions, it just was wishful thinking.
7689 * plug-ins/python/Makefile.am : added the four new python
7690 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7692 2003-02-01 Hans Breuer <hans@breuer.org>
7694 * NEWS : updated content beside dependencies
7696 2003-02-01 Hans Breuer <hans@breuer.org>
7698 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7699 to make it useable across DLL boundaries
7700 * app/lineprops_area.c : same code to access arrow_types
7703 * objects/UML/class.c : the non empty string is e.g.
7704 comment != NULL && comment[0] != '\0'
7705 * objects/UML/uml.c : same here, don't bother with
7706 empty operation stereotypes
7708 2003-02-01 Steffen Macke <sdteffen@web.de>
7710 * app/lineprops_area.c: latest changes do not work on
7711 windows, using old code without tooltips
7712 * makefile.msc: fixed copying of wmf.dll
7713 * plug-ins/makefile.msc:
7715 * lib/makefile.msc: now linking libintl
7716 * config.h.win32: enabling native language support
7718 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
7720 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7721 -ldl and -lglib. May or may not work on windows...awaiting verdict.
7723 2003-01-31 Daniel Yacob <locales@geez.org>
7725 * configure.in: Added am (Amharic) to ALL_LINGUAS.
7727 2003-01-31 Steffen Macke <sdteffen@web.de>
7729 * objects/UML/class.c (umlclass_calculate_data): fixed crash
7730 when comments were visible, no class comment available and
7733 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
7735 * RELEASE-PROCESS: Updated to fit new install-module syntax.
7736 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
7739 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
7745 Prerelease version changes, version 0.91-pre1.
7747 * app/sheets_dialog_callbacks.h:
7748 * app/sheets_dialog_callbacks.c:
7749 * app/sheets_dialog.c (create_sheets_main_dialog):
7750 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
7751 to handle destruction of main dialog cleanly, but it's a mess.
7753 * configure.in: Downgraded ieeefp test to make it not produce
7756 * lib/widgets.c (dia_arrow_selector_set_arrow):
7757 (dia_line_style_selector_set_linestyle): Select menu dot
7760 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7761 adjustment for diamondheads.
7763 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7765 * app/properties.c (create_dialog): Destroy properties dialog and
7768 * app/sheets_dialog_callbacks.c
7769 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7770 if the old one is destroyed.
7772 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
7774 * app/export_png.c (export_png_ok): Added info on resolution.
7775 Should (next release) improve export dialog to allow setting
7776 resolution instead of pixels.
7778 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7779 to generate arrowheads as well as tooltips.
7781 * lib/arrows.c: Added hollow diamond to menudesc list.
7784 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7785 unify with rendered menu.
7787 * lib/diarenderer.c (draw_line_with_arrows)
7788 (draw_polyline_with_arrows, draw_arc_with_arrows)
7789 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7790 without changing renderer API. Thanks to David Scherba for
7791 providing inspiration.
7793 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
7795 * app/interface.c (create_display_shell):
7796 * app/display.h: Patching from Hubert Figuiere
7797 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
7800 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
7802 * app/defaults.c (defaults_show): Fixed defaults closing bug.
7803 Thanks to Hans for pointing it out.
7805 2003-01-25 Hans Breuer <hans@breuer.org>
7807 * app/commands.c : don't warn about crashing libart renderer
7808 on win32. It simply doesn't render text anymore :-(
7810 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7812 * objects/UML/class.c : don't access umlclass->properties_dialog
7813 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7814 which sets the former to NULL by destroy_properties_dialog() callback.
7816 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7818 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7820 * plug-ins/python/pydia-image.c : add image.uri member
7821 not only useful for SVG rendering
7823 * plug-ins/python/diasvg.py : (new file) a more advanced
7824 example. A full blown SVG Renderer, currently only
7825 registered for .svgz
7827 * plug-ins/python/export-object.py : write text props
7829 * plug-ins/python/debug_objects.py : write prop.type and
7832 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
7834 * objects/UML/association.c (association_update_data): Better
7835 bounding box for assoc with arrows.
7837 * lib/properties.h: New flag for properties with multiple values
7840 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7841 arrow updating in dialog. Was broken due to changes from destroy
7844 * app/commands.c (view_aa_callback): AA warning only for Windows
7845 -- I trust the Unix side well enough.
7847 * app/render_libart.c (get_text_width):
7848 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7849 font height can be taken from parent instance.
7851 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
7852 (get_text_width): Proper cursor positioning for libart renderer.
7853 Ought to have a DiaInteractiveRenderer that these two can inherit
7854 from, that knows about transform.
7856 2003-01-25 Steffen Macke <sdteffen@web.de>
7858 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7859 plug-in still not working on win32
7861 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
7863 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7864 gdk_window_get_pointer to avoid destroy crash. Simpler than I
7867 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
7869 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
7870 bail out on gtk options.
7872 * lib/message.c (gtk_message_internal): Better handling of destroy
7875 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
7877 * app/color_area.c (color_area_edit):
7878 * lib/widgets.c (dia_file_selector_browse_pressed)
7879 (dia_color_selector_pressed):
7880 * app/plugin-manager.c (get_plugin_manager):
7881 * app/filedlg.c (file_open_callback, file_save_as_callback)
7882 (file_export_callback):
7883 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
7884 handling of destroy event.
7886 2003-01-22 Alan Horkan <horkana@tcd.ie>
7888 * app/commands.c (file_new_callback): Changed Untitled to Diagram
7891 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
7893 * app/preferences.c (prefs_create_dialog):
7894 * app/linewidth_area.c (linewidth_create_dialog):
7895 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
7896 * app/layer_dialog.c (create_layer_dialog)
7897 (layer_dialog_edit_layer): Correct handling of destroy signal.
7899 * app/diapsft2renderer.c (set_font): Adjust silly random factor
7900 for change in font.c
7902 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
7904 * lib/font.c (dia_font_build_layout): Let's all use the same weird
7907 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
7908 * app/layer_dialog.c (create_layer_dialog)
7909 (layer_dialog_edit_layer):
7910 * app/filedlg.c (file_open_callback, file_save_as_callback)
7911 (file_export_callback):
7912 * app/dia-props.c (create_diagram_properties_dialog):
7913 * app/defaults.c (defaults_dialog_destroyed):
7914 * app/color_area.c (color_area_edit): Dialog destroy event handling.
7916 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
7918 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
7919 defaults dialog destroyed.
7921 2003-01-19 Steffen Macke <sdteffen@web.de>
7923 * objects/makefile.msc: added bondgraph
7924 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
7925 to compile pixbuf.dll
7926 * makefile.msc: copying all objects and dlls now
7928 2003-01-19 Hans Breuer <hans@breuer.org>
7930 * app/diagram.[hc] : provide dia_open_diagrams(), make
7931 open_diagrams variable static
7932 * app/dia.def : export it (to be used by PyDia)
7933 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
7934 app/display.c app/dynamic_refresh.c app/layer_dialog.c
7935 app/load_save.c : make use of dia_open_diagrams()
7937 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
7938 on win32. It removes the diagram window from the taskbar and
7939 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
7941 * app/menus.c : add '...' to menu entries where a dialog
7943 * app/recent_files.c app/dia_embedd.c : reflect the above in
7944 menus_get_item_from_path() calls
7946 * lib/libdia.def : add dia_image_rgba_data
7948 * lib/properties.h lib/prop_text.[hc] : add new property
7950 * objects/UML/class.[hc] object/UML/class_dialog.c : use
7951 StringList for attributes_strings and operations_strings to
7952 make this calculated data accessible via the Property API
7954 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
7955 provide dia.new() to create a new diagram, dia.registered_types()
7956 to get on Dia's type registry, dia.message() for simple dialogs
7958 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
7959 to create a new display from a diagram. Let diagram.extents and
7960 diagram.bg_color return the same types as in diagramdata.*
7962 * plug-ins/python/pydia-geometry.c : add a read-only
7963 'sequence interface' to DiaPoint and DiaRectangle
7965 * plug-ins/python/pydia-property.c : allow to get on StringList
7968 * plug-ins/python/pydia-render.c : fix typo to make it compile
7970 * plug-ins/python/python-startup.py : removed 'import pygtk'
7971 again. This file does not need any gtk UI, and some python
7972 plug-ins don't do either
7974 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
7975 it should actually work as intended again
7977 * plug-ins/python/group_props.py : (new file) a prototype for
7978 one the most requested features: Change properties of selected
7979 objects in one step. Requires pygtk.
7981 * plug-ins/python/select_by.py : (new file) select objects by
7982 common properties. Requires pygtk.
7984 [Start of 'PyDia Self Documentation Series']
7986 * plug-ins/python/pydiadoc.py : (new file) generates a new
7987 diagram which contains all objects of dir(dia)
7989 * plug-ins/python/otypes.py : (new file) generates a new diagram
7990 which contains all the currently registered object types sorted
7991 by their containing package
7993 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
7995 * configure.in: Added check for Pango >= 1.1.5, which appears to
7996 be enough to have text work.
7997 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
7998 do it. AC_SUBST should be idempotent, though.
8000 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
8002 * configure.in (HAVE_FREETYPE): Better test for freetype version
8004 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
8006 * lib/font.c: Renamed global_size_one to global_zoom_factor to
8007 avoid confusion, and added comment. Set scale factor in
8008 dia_font_build_layout to 1.0 for Unix side. This fixes at least
8009 my weird scaling problems. Fonts are now of the expectable size,
8010 i.e. the space between lines at size 1.0 is 1.0. If we want a
8011 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
8012 diagrams, though there will always be differences.
8014 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
8016 * plug-ins/python/python-startup.py:
8017 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
8019 * plug-ins/python/python.c (dia_plugin_init): Added warning
8020 message for missing startup file.
8022 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
8024 * lib/dia_image.c (dia_image_rgb_data):
8025 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
8026 involving EPS. Can't do transparency in EPS yet.
8029 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
8030 data as one chunk. Documentation for the RGB data getting funcs.
8031 (dia_image_rgb_data): Added comment.
8033 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
8036 2003-01-13 Steffen Macke <sdteffen@web.de>
8038 * lib/dia_image.c: dia_image_rgb_data() is working for
8039 non-alpha images now. Fixes #93762
8040 * Makefile.am: added makefile.msc to EXTRA_DIST
8042 2003-01-10 Steffen Macke <sdteffen@web.de>
8044 * app/paginate_psprint.c: Closing print dialog when file
8045 could not be written. Fixes #84746
8047 2003-01-04 Steffen Macke <sdteffen@web.de>
8049 * doc/custom-shapes: incomplete description of <svg:text>
8051 2003-01-03 Steffen Macke <sdteffen@web.de>
8053 * makefile.msc(new): new makefile to create file
8054 structure suitable for running dia win32 under
8055 $(TOP)/dia/build/win32
8057 2003-01-02 Steffen Macke <sdteffen@web.de>
8059 * lib/dia_svg.c: including stdlib.h
8060 * lib/makefile.msc: added gdk_pixbuf libs to linker
8061 * app/makefile.msc: added gdk_pixbuf libs, made libart
8062 libs compatible with gnuwin32 package
8064 2003-01-01 Hans Breuer <hans@breuer.org>
8066 * lib/font.c : more comment about global_size_one
8068 * app/menus.c : <control>[<shift>]A for plain gtk build too.
8070 * plug-ins/wmf/wmf.cpp : some type juggling to make
8073 2002-12-31 Steffen Macke <sdteffen@web.de>
8075 * app/makefile.msc: added hint on how to enable console output
8077 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
8079 * objects/standard/textobj.c (textobj_load): Get the handle type
8080 right, at least to be the same as when created.
8082 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
8084 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
8086 2002-12-08 Hans Breuer <hans@breuer.org>
8088 * app/commands.c : fixed bug #85315 'give diagram properties,
8089 instead of no object selected error' almost a one-liner
8091 * app/splash.c : don't make having the logo pixmap
8092 mandatory. Fixes bug #96068.
8094 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
8095 sequence by connecting to the "delete_event"
8096 * app/objects/uml/class_dialog.c : handle "destroy" for
8099 * lib/libdia.def : remove diaXmlNewChild again
8101 * app/paginate_gdiprint.cpp : reflect Dia's page setting
8102 portrait/landscape in the windoze print dialog
8104 * objects/makefile.msc : only UML needs to link against
8105 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
8107 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
8109 * objects/standard/ellipse.c (ellipse_distance_from):
8110 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
8111 correct distance function. Could be faster, but it's not really
8114 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
8116 * lib/font.c: Changed global_size_one to more correct 28.35.
8121 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
8124 2002-12-07 Hans Breuer <hans@breuer.org>
8126 * lib/widgets.c : g_file_get_contents() silently assumes
8127 a binary file. Reflect when creating the font_menu file
8128 to get rid of junk in font menus
8130 2002-12-06 Hans Breuer <hans@breuer.org>
8132 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
8133 removed 0xD 0xD 0xA line ends which get created by
8134 cvs if windoze line ends 0xD 0xA are checked in from
8135 *nix and checked out on win32.
8137 * app/preferences.c : changed toolbox_on_top default to
8138 false. It is currently not possible to change the behaviour
8139 at runtime, at least not on win32.
8141 * lib/dialibartrenderer.c : bug #94791 'rendering to
8142 bitmap without PangoFt2' got delayed to milestone future
8143 so wrap libart text rendering into PANGO_WIN32_FUTURE.
8144 It is not available without my Pango patch in bugzilla.
8146 * lib/font.c : added comment to global_size_one and adapt
8147 the arbitrary size scaling in dia_font_build_layout() for
8148 win32, too. This is needed to get an acceptable font size
8149 approximation for Dia 0.90 and earlier files.
8150 Also #include "message.h".
8152 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
8153 reflect movement of group.[hc]
8154 * lib/group.h : export group_type which gets used by app/*
8156 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
8157 to get the GtkTypeInfo definition
8159 * plug-ins/makefile.msc : dxf and xfig don't need to link
8160 against app/ anymore now that group is moved to lib/
8162 * plug-ins/python/pydia-render.c : remove massive leaking
8163 of self, i.e. PyDiaRenderer
8165 * plug-ins/python/makefile.msc : remove linking against
8168 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
8170 * objects/standard/line.c: Removed properties options for gaps,
8171 until release is done.
8173 * configure.in: Check for freetype version.
8175 * lib/text.c (text_insert_char): Fixed small buffer overflow for
8178 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
8180 * app/diapsft2renderer.h:
8181 * app/diapsft2renderer.c:
8182 * app/diapsrenderer.h:
8183 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
8185 * app/render_eps.c (export_eps, new_psprint_renderer): Using
8186 PS_FT2 renderer when available. Old render stuff killed. Yay!
8188 * lib/properties.h: Fixed bad frame end def.
8190 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
8192 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
8194 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
8196 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
8198 * lib/font.c: Now checking for the proper dia-style standard fonts.
8201 * app/Makefile.am: Moving group.[ch]
8203 * plug-ins/dxf/dxf-import.c:
8204 * plug-ins/xfig/xfig-import.c:
8205 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
8209 * lib/object.c (object_list_move_delta, object_copy_list):
8210 * lib/object.h: Moved some object-related functions from
8211 object_ops to object to assist moving group.c.
8213 * lib/diatypes.h: Added Group typedef.
8216 * lib/group.c: Moved from app to lib to a) resolve plug-ins
8217 references, and b) make groups more "real" objects.
8219 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
8221 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
8223 * lib/font.c (dia_font_init): Added check that the three standard
8226 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
8229 * app/load_save.c: Linebreaks in dia files, no indentation.
8230 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
8233 * objects/standard/line.c: Small but important fixes to the line
8237 * lib/dia_xml.c (diaXmlNewChild):
8238 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8239 XML prettyprinting wrapper.
8241 2002-12-03 Steffen Macke <sdteffen@web.de>
8243 * shapes/Cisco/Makefile.am:
8244 * shapes/Cisco/*.shape: finished conversion of Cisco icons
8247 2002-12-02 Steffen Macke <sdteffen@web.de>
8249 * doc/en/Makefile.am:
8250 * doc/en/usage-objects.sgml:
8251 * doc/en/graphics/line_icon.png: (new) added line icon
8253 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
8255 * objects/standard/line.c: Binary search object edge line gap.
8257 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
8259 * configure.in: Added Cisco makefile, sorted Makefiles list.
8261 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8263 * configure.in: Now checks for availability of PangoFT2 and
8264 FreeType, raising an error if not found.
8266 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8269 2002-12-01 Steffen Macke <sdteffen@web.de>
8271 * doc/en/usage-loadsave.sgml: updated information on import
8274 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
8276 * app/commands.c (edit_copy_callback): Freeing copy_list.
8278 2002-11-28 Steffen Macke <sdteffen@web.de>
8280 * app/render_libart.c: art_config.h was included twice
8282 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
8284 * sheets/.cvsignore: More ignorance.
8286 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8288 * lib/prop_widgets.h: Two (currently unused) settings for frame
8291 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8292 (by default) foldable.
8294 * lib/propinternals.h:
8295 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8296 widgets in a more controlled manner.
8298 * objects/standard/line.c (line_update_data): Line gap things
8299 inserted. Can do xeyes now:)
8301 2002-11-26 Christian Neumair <chris@gnome-de.org>
8303 * .cvsignore: Changed.
8304 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8305 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8308 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8310 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8312 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8313 passing to font hash.
8315 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8316 utf-8 or locale-convertible before adding to dialog text. This
8317 probably needs done in a number of places where we get text from
8318 the environment and send it to GTK to display.
8320 * lib/widgets.c: Fixed case problems for font menu entries.
8322 * objects/SADT/annotation.c: Don't run the event test (but leave
8323 it here for inspiration).
8326 * lib/widgets.h: Allowing setting preview text for fonts.
8328 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8330 * objects/bondgraph/Makefile.am:
8331 * objects/bondgraph/bondgraph.c:
8333 * objects/Makefile.am: Added bond graph dir.
8335 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8337 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8339 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
8341 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8344 * app/diapsrenderer.c: Freetype rendering is back in force.
8346 * app/disp_callbacks.c: Added missing updates for pre-text-change.
8348 2002-11-25 David Hoover <jazzdaq@yahoo.com>
8350 * app/render_libart.c: Added missing #include line for libart.
8353 * lib/geometry.c: Added point_convex function. This computes
8354 points inside a line segment (0 <= alpha <= 1) or outside the
8355 line segment (alpha < 0 | alpha > 1).
8357 * objects/standard/line.c: Line now has additional code/attributes
8358 which permit the line to extend past the line anchors (gap < 0) or
8359 leave a gap without reaching the anchor (gap > 0). If no gap is
8360 specified, the default gap of 0 will result in identical line
8361 behavior as before. If the 'fractional' attributes are TRUE, the
8362 gap length is not fixed, but a percentage of the line length. I
8363 did not know how create the GTK widgets so the gap code currently
8364 cannot be used without adding XML attributes by hand.
8366 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
8368 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8370 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8372 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
8374 * lib/font.c: Debugging functionality in separate functions.
8376 * lib/widgets.c: Using fontsel with context.
8378 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8380 * objects/custom/custom_object.c: Orientation handling for shapes,
8381 patch thanks to Martin Hans <opfinder@gmx.net>.
8383 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8384 work on even better orientation handling.
8386 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8387 casting NULL pointers. Should be unnecessary in an upcoming GTK
8390 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
8394 * lib/widgets.c: Now uses correct context to get font families.
8396 * lib/diagdkrenderer.c (get_text_width, draw_string):
8397 * lib/dialibartrenderer.c (draw_string):
8399 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8400 (dia_font_build_layout): Unified the twiddle factors into a use of
8401 global_size_one. But I deeply distrust Pango for seeming to
8402 change size of fonts every time I turn my back.
8407 * app/menus.h: Updated some more methods to also be more specific
8411 * app/recent_files.c:
8412 Changed to return most specific type, to avoid run-time type errors.
8414 * app/menus.c (menus_get_item_from_path): Non-gnome version now
8415 gets menu_item rather than widget, which works better.
8417 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
8419 * app/display.c: (new_display):
8420 * app/menus.c: (menus_get_item_from_path):
8421 Relying on the tearoff to locate the input methods menu wasn't a
8422 good idea: tearoffs seem to be an endangered species nowadays.
8423 Anyway, the IM menu seems to be working now.
8425 * app/interface.c: hinted the window manager that the toolbox window
8426 is a toolbox window. Not that my (fairly default configuration)
8427 sawfish cares, but other NETWM compliant WMs may.
8434 * app/layer_dialog.c:
8435 * app/linewidth_area.c:
8437 * app/sheets_dialog.c:
8440 The GTK doc says to avoir gtk_window_set_wmclass() and
8441 gtk_window_set_policy(), and use gtk_window_set_role() and
8442 gtk_window_set_resizable(), respectively.
8444 * app/preferences.c: (prefs_create_dialog):
8445 * app/preferences.h:
8446 * app/display.c: (display_set_active):
8447 Added a preference to have the toolbox hover over diagram windows.
8449 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
8451 * lib/diagdkrenderer.c (get_text_width, draw_string):
8452 Freetype-based string drawing now works. Not very fast, though.
8453 I wish I could use the graphics card for this:( I'm doing three
8454 bitmap loops where I should be doing one. The size is not correct
8455 either, despite having get_text_width give the right thing.
8457 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
8459 * app/connectionpoint_ops.c (diagram_update_connections_object):
8460 Allows more than one connectionpoint on an object to be moved at a
8463 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
8465 * configure.in: Added cs to ALL_LINGUAS.
8467 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
8469 * app/paginate_psprint.c: Removed unnecessary decl of autosave
8472 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8474 * app/export_png.c (export_png_ok): Saving more variables from the
8477 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
8479 * lib/dialibartrenderer.c (begin_render):
8480 (end_render): Correct pushing and popping of font contexts.
8481 (draw_string): Double zooming eliminated, strange twiddle factor
8482 introduced (grumble). Close to working now, but there are still
8483 strange differences from font to font. In particular, some fonts
8484 really mess with the cursor and extents.
8486 * app/render_eps.c (export_eps):
8487 * app/diapsrenderer.c (dia_ps_renderer_finalize):
8488 Fixed file closing confusion, no longer dependent on PS/EPS.
8490 * app/diagram.c (diagram_place_down_selected)
8491 (diagram_place_up_selected): Now implemented.
8493 * lib/font.c (dia_font_init):
8495 Redesigned the font init/context pushing code. Start of fix for
8496 font name differences.
8498 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
8500 * app/sheets_dialog_callbacks.c: Fix a typo.
8502 2002-10-15 Hans Breuer <hans@breuer.org>
8504 * app/diapsrenderer.[hc] : (new files, old content :-)
8505 simple base class for post script rendering. Does neither
8506 use Pango/FT2 nor does it handle non latin1 characters.
8507 The fancy stuff which nowadays appears to be needed should
8508 probably be done in derived class(es)
8510 * app/makefile.msc app/Makefile.am : added new files
8512 * app/paginate_psrint.c : re-enabled and used as test
8513 for the simple ps renderer above.
8515 * app/render_eps.[hc] : ripped out common ps code and
8516 moved to DiaPsRenderer. The rest of the file is mostly
8517 disabled. And I don't understand enough of it to
8520 * app/diaepsrenderer.h : short lived, removed.
8522 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
8524 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8525 as a plugin (thanks to Torben Nielsen).
8527 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
8529 * app/diaepsrenderer.h:
8531 * app/paginate_psprint.c:
8532 #ifdef'd out enough ps stuff to allow compile. Now we just need
8535 2002-10-12 Hans Breuer <hans@breuer.org>
8537 [last plug-in ported]
8539 * plug-ins/xfig/xfig-export.c : ported to new renderer api
8541 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8542 scale color values to [0..1.0] to properly reconstruct
8545 * plug-ins/xfig/xfig-common.c : some cleaning
8547 2002-10-12 Hans Breuer <hans@breuer.org>
8549 [decrease inter-plug-in-dependencies]
8551 * objects/custom/shape_info.[hc] : move parse_style()
8552 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8553 the related structs and constants.
8554 * objects/custom/custom_object.c : reflect namespace
8557 * lib/dia_svg.[hc] : new files
8558 * lib/makefile.msc lib/Makefile.am : add new files
8559 * lib/libdia.def : updated externals
8561 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8563 * plug-ins/svg/svg.c : enable svg import for win32 (and
8564 probably for other non ELF builds)
8566 * plug-ins/makefile.msc : enable svg import
8568 2002-10-11 Hans Breuer <hans@breuer.org>
8570 * plug-ins/metapost/render_metapost.[hc] : ported
8572 * plug-ins/pstricks/render_pstricks.[hc] : dito
8574 2002-10-11 Hans Breuer <hans@breuer.org>
8576 * plug-ins/cgm/cgm.c : ported, appears to work as before,
8577 but graphic apps available to me can't import the generated
8578 files (the could not with Dia-0.90 cgm as well) ...
8580 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8581 Removed all those function which did emulate 'complex'
8582 drawing ops with basic ones (e.g. rect by line) cause this
8583 stuff is already provided by the base class
8584 * plug-ins/dxf/dxf-import.c : removed render.h include
8586 * plug-ins/python/pydia-font.[hc]
8587 plug-ins/python/pydia-text.c : finally ported to new font api
8589 * plug-ins/python/pydia-layer.c : add extra parameter
8590 to layer_find_closest_connectionpoint()
8592 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8594 * plug-ins/python/python.c : added missing copyright notice
8596 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
8597 actually use the renderers set_font implementation
8599 * plug-ins/renderer.inc : unused now, removed
8600 * plug-ins/Makefile.am : reflect it
8602 2002-10-08 Hans Breuer <hans@breuer.org>
8604 * app/render_gdk.c : don't add the InteractiveRenderer
8605 interface multiple times (it's added to the type, not
8607 * app/render_libart.c : dito. It's currently added
8608 unconditional cause eport_png uses it, but claims
8609 to be non-interactive. Probably set_size should be moved
8610 to the DiaRenderer interface.
8612 * lib/dialibartrenderer.c : add implementations for
8613 get_<width|height>_pixels. Libart rendering works again.
8614 DiaLibartRenderer::draw_image : use dia_image_rowstride()
8617 * lib/diatransform.c(dia_transform_coords_double) :
8618 don't ROUND() the returned values
8620 * plug-ins/pixbuf/pixbuf.c : added import function. It
8621 simply creates a wrapping "Standard - Image" object.
8623 * plug-ins/shape/shape-export.c : use the more direct
8624 method to call base class methods
8626 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
8628 * lib/font.c (dia_font_init): Changed dia_font_init to return old
8629 pango context, to allow stacked contexts (for printing while
8638 * lib/connectionpoint.h
8641 * lib/diagdkrenderer.h
8643 * lib/dialibartrenderer.h
8646 * lib/diasvgrenderer.h
8647 * lib/diatransform.h
8654 * lib/neworth_conn.h
8669 Moved all externally visible struct typedefs into diatypes.h, as
8670 per Hans' suggestions.
8672 2002-10-07 Steffen Macke <sdteffen@web.de>
8674 * lib/Makefile.am: removed a '\' causing problems
8676 2002-10-07 Hans Breuer <hans@breuer.org>
8678 [Libart Renderer resurrected; almost it's compiling but
8679 almost instantly crashing :-]
8681 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8682 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8683 * lib/diatransform.[hc] : added dia_transform_coords_double()
8685 * app/display.c : the right parameters for new_renderer_libart()
8686 * app/export_png.c : ported, removed the blind Display hack
8688 * app/makefile.msc lib/makefile.msc
8689 lib/Makefile.am : updated
8691 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8693 2002-10-06 Hans Breuer <hans@breuer.org>
8695 * plug-ins/pixbuf/pixbuf.c : (new file)
8696 there is a new export plug-in called 'Pixbuf' which uses
8697 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8698 formats (currently only PNG and JPEG).
8700 2002-10-06 Hans Breuer <hans@breuer.org>
8703 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8705 * lib/dia-enums.h lib/diatransform.[hc]
8706 lib/diarenderer.[hc] lib/diainteractiverenderer.c
8707 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8710 * lib/makefile.msc lib/makefile.am : added new files
8712 * lib/plug-ins.c : g_module_error() returns a locale
8713 string, convert to utf8 before further usage
8715 * lib/render.h : #error out. Everything including this
8717 * lib/*.[hc] : ported to new renderer api
8719 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8720 just to make the rest compile
8721 * app/render_eps.c : temporary disabled all of this
8722 * app/render_eps.h : removed RendererEPS
8724 * app/render_gdk.[hc] : a small wrapper around the new
8725 DiaGdkRenderer form lib/*
8727 * app/render_libart.h : removed RenderLibart definition
8728 * app/render_libart.c : not yet ported to new DiaRenderer
8729 but having an implementation to untie form FT2 dependency
8730 at least on win32. It is using new Pango api form bug #94791
8732 * app/render_pixmap.[hc] : a small wrapper around the new
8733 DiaGdkRenderer form lib/*
8735 * app/display.h : removed render_*.h includes
8736 * app/display.c : the only place where specific
8737 renderers need to be known
8739 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8740 use new DiaInteractiveRenderer interface
8742 * app/*.c : ported to new renderer api
8743 * object/*/*.c : ported to new renderer api
8744 s/render.h/diarenderer.h/
8745 s/Renderer/DiaRenderer/
8746 s/renderer->ops/renderer_ops/
8747 add in every draw method:
8748 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8750 * plug-ins/hpgl/hpgl.c :
8751 plug-ins/wmf/wmf.cpp
8752 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8753 * plug-ins/shape/shape-export.c
8754 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8755 (nice how small these files became :-)
8757 2002-09-28 Hans Breuer <hans@breuer.org>
8759 * */makefile.msc : updated
8761 * app/defaults.c : don't gdk_invalidate_rect(NULL)
8762 * app/disp_callbacks.c :
8763 can't cast GtkWindow to GdkWindow, use shell->window
8764 (ddisplay_unrealize) don't use already unrefed im_context
8766 can't cast from GtkMenu to GtkMenuItem
8767 (ddisp_destroy) : mark im_context as unrefed
8769 * lib/dia_xml (data_font) : prefer new font format over old one
8770 (data_add_font) : write the legacy name to allow file exchange
8771 with pre Pango versions of Dia, which would otherwise crash
8772 on missing font 'name' attribute.
8773 * lib/font.c (dia_font_get_legacy_name) : improved implementation
8774 to get a better match.
8776 * lib/libdia.def : updated
8778 * lib/messages.c : don't gdk_widget_show(NULL)
8780 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
8782 [make Dia compile, link _and_ work with mingw/gcc3.2]
8784 * config.h.win32 : #define LIBXML, this gets defined from libxml
8785 header but only for _MSC_VER. The mingw build did access an
8786 unitialized function pointer for xmlFree.
8788 * */makefile.mingw : updated (some plug-ins have build issues)
8790 * lib/handle.h lib/object.h : there appears to be no
8791 forward declaration of the form
8792 typedef enum _HandleId HandleId
8793 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
8794 use of enum `_HandleId' without previous declaration
8796 * app/paginate_gdiprint.cpp : added a hack to avoid g++
8797 naming conflict on 'export'
8799 * app/paginate_gdiprint.h : forward declare Diagram
8801 * objects/SADT/annotaion.c : use g_random_double()
8803 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
8805 * app/modify_tool.c: Made motion not happen until sufficiently
8806 large or past double-click interval, to avoid accidental moving
8807 when doubleclicking. Got the double-click time right, and fixed
8808 some issues with release. There are some corner cases that may
8809 exhibit strange behaviour, will look at those later. Nah, let's
8810 not care about those, they are rare and not dangerous.
8812 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
8814 * app/layer_dialog.c:
8816 * plug-ins/dxf/dxf-import.c:
8817 * plug-ins/python/pydia-diagram.c:
8818 * lib/diagramdata.c:
8819 * lib/diagramdata.h:
8820 Improved the consistency of the obj->parent_layer backlinks (esp.
8825 * lib/dynamic_obj.[ch] (NEW):
8828 * app/dynamic_refresh.[ch] (NEW):
8829 * objects/Misc/analog_clock.c:
8830 Added support for dynamic refresh (animated objects).
8832 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
8834 Patch from Owen Taylor <otaylor@redhat.com>:
8835 * doc/en/Makefile.am:
8836 * doc/en/dia-manual.sgml:
8837 * doc/en/usage-objects.sgml:
8838 * doc/en/usage-quickstart.sgml:
8839 * doc/pl/Makefile.am:
8840 * doc/pl/dia-manual.sgml:
8841 * doc/pl/usage-objects.sgml:
8842 * doc/pl/usage-quickstart.sgml:
8844 - Change the DTD declration from an outdated GNOME one to a
8847 - Remove close tags for <graphics> which aren't allowed for
8850 - A hacky fix for a problem where some versions of db2html don't
8851 create *.css files. (If *.css doesn't match anything, then you get
8852 the global explicitely.)
8856 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
8858 * objects/custom/custom_object.c:
8859 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
8860 were never properly prepared for use when reloading a shape with
8861 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8862 reporting the problem and coming up with a fix! (Closes: #93974)
8864 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8865 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
8868 * app/display.c: updated menu item paths Alan's patch had moved.
8870 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
8871 load the sheet-provided icon (libpng versions mismatch, grrr.).
8874 * objects/Makefile.am:
8875 * objects/Misc/Makefile.am (NEW):
8876 * objects/Misc/libmisc.c (NEW):
8877 * objects/Misc/analog_clock.c (NEW):
8878 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
8879 * sheets/Misc.sheet.in: just a little experiment...
8881 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
8883 * plug-ins/xlst/Makefile.am: found a way to silence automake while
8884 not forcing everyone to build using libxslt.
8888 * lib/object_defaults.c:
8891 * lib/properties.[ch]:
8893 * objects/standard/box.c:
8894 * objects/UML/state_term.c:
8896 * objects/FS/flow-ortho.c:
8900 * app/diagram_tree.c:
8902 * app/disp_callbacks.c:
8905 * app/lineprops_area.c:
8907 * app/preferences.c:
8910 * app/sheets_dialog_callbacks.c:
8911 * plug-ins/xslt/xslt.c:
8912 * plug-ins/metapost/render_metapost.c:
8913 * plug-ins/xfig/xfig-export.c:
8914 * plug-ins/shape/shape-export.c:
8916 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
8917 unused variables, mostly)
8920 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
8922 * app/Makefile.am: modified run_dia.sh so that we recover the
8923 ability to run a debugger despite libtool's hacks.
8925 * plug-ins/dxf/Makefile.am:
8927 "make distcheck" fixes.
8929 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
8931 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
8932 <mfranzoni@madd.it>: Check for the type being NULL.
8934 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
8936 * app/render_eps.c (set_font): Re-tweaked font size for printing.
8938 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
8940 Patch from Angus Ainslie <angusa@deltatee.com>:
8941 * plug-ins/dxf/dxf-import.c:
8942 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
8944 (plus a couple extra fixes by me, such as the removal of printf's,
8945 adapting for recent changes, and killed a couple warnings)
8947 * app/authors.h: a 60K patch isn't insignificant, is it?
8949 2002-09-09 Tor Lillqvist <tml@iki.fi>
8951 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
8952 as before) and -lfreetype (using AC_CHECK_LIB). At least on
8953 Solaris with Sun's compiler (Forte C), you need to link also the
8954 dia application with -lfreetype, even if it is implicitly linked
8955 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
8956 which is what they actually mean. Use FREETYPE_LIBS for
8959 Don't look for libsunmath if isinf() is not found in math.h (as on
8960 Solaris). The sunmath library is part of Forte C and not present
8961 on all machines. Besides, even if isinf was found in libsunmath,
8962 we didn't use it in the Makefile.am.
8964 Fix a couple of bashisms.
8966 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
8967 too, on Solaris with Forte C.
8969 Don't try to use the gcc flags with other compilers.
8970 DIA_CHECK_CFLAG gives a false indication that Forte C understands
8971 the gcc -f switches, but in fact they get interpreted meaning
8972 something completely different.
8974 Define the automake conditional HAVE_CGC.
8976 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
8978 Use -export-dynamic only with gcc.
8981 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
8982 PANGOFT2_CFLAGS rename.
8984 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
8986 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
8989 * lib/paper.c: Workaround for gccism: Can't use inline this way with
8992 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
8994 * lib/text.c(set_string): fixed a memory leak (char* ain't no
8995 std::auto_ptr<char> !).
8998 * app/interface.[ch]:
8999 * app/ddisp_callbacks.[ch]: Added some basic support for input
9000 methods (GtkIMContext-based)
9003 * app/Makefile.am: made libdia a shared object (per Tor
9004 Lillqvist's suggestion/request), to cope for platforms with a less
9005 than par dynamic library loader.
9007 * app/display.c: disabled the input method menu (I really don't
9008 see where and how to put them. Blame Frozen Bubble )
9010 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
9012 * objects/flowchart/box.c (box_update_data): Made resizing
9013 possible again (only set width & height when resized too small).
9015 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
9017 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
9020 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
9022 * app/authors.h: now showing Akira TAGOH's name in the native script.
9024 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
9026 * plug-ins/xslt/xslt.c: Removed glib warning for unset
9029 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
9031 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
9032 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
9035 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
9037 * objects/UML/class.c: Fixed showing of empty stereotypes and got
9038 the string placed correctly.
9040 2002-08-30 Hans Breuer <hans@breuer.org>
9042 * lib/font.c (dia_font_get_style) : don't shift already
9043 shifted DIA_FONT values.
9045 * lib/libdia.def : updated externals
9047 * app/disp_callbacks.c : on win32 GdkEventKey::string already
9048 is in UTF-8. (Longterm this probably should be handled on the
9051 * app/command.[hc] app/display.[hc] app/menus.c : add code to
9052 switch display renderers again. The libart renderer is very
9053 useful for win9x with it's limited GDI.
9055 * app/render_gdk.c : use g_warning instead of printf which gets
9056 nowhere on win32 (non console apps)
9058 * app/render_libart.c : make it compile without FREETYPE
9060 * objects/makefile.msc plug-ins/makefile.msc : added clean target
9062 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
9064 * app/render_eps.c (postscript_draw_contour): Debugging statement
9065 that allowed me to figure out font problems.
9067 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
9068 items for font styles.
9070 * objects/FS/flow-poly.c:
9071 * objects/FS/flow-ortho.c:
9072 * objects/FS/flow.c: Further conversion away from GTK dialogs.
9073 Can't set a default label right now:(
9075 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
9077 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
9078 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
9080 * Makefile.am: rules relating to AUTHORS and THANKS
9082 * AUTHORS: file content changed to more accurately
9083 reflect guideline requirements.
9084 * TODO: warning added about Gnome BTS.
9085 * KNOWN_BUGS: warning added about Gnome BTS.
9089 * AUTHORS: added full copyright info.
9090 * mkauthors-placeholder: (removed)
9092 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
9094 * app/paginate_psprint.c (print_page): Fixed text printing after
9095 tip from Dov Grobgeld.
9097 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
9099 * app/paginate_psprint.c (print_page): Fixed color of clip
9102 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
9104 * sheets/Makefile.am: enabled intltool-merge translation cache for
9108 * mkauthors-placeholder:
9109 * AUTHORS: revived that file (in a placeholder form) so that
9110 automake stops yelling.
9111 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
9114 Heh, by the way, thanks Christophe. I feel better now.
9116 2002-08-25 Christophe Merlet <christophe@merlet.net>
9118 * app/command.c: Removed invalid multibyte sequence in Chepelov.
9120 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
9122 * lib/dia_image.c (dia_image_rgb_data):
9123 Bugfixes in image data retrieval.
9125 * app/render_eps.c: Refactoring of new_*_renderer.
9127 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
9131 * lib/dia_image.c: Support for rowstride != width (odd width images)
9133 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
9135 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
9136 * plug-ins/xfig/xfig-import.c: Removed assertion.
9138 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
9140 * lib/paper.c: Removed app/preferences.h reference.
9142 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
9144 * plug-ins/svg/svg-import.c:
9145 * plug-ins/xfig/xfig-import.c:
9146 * lib/Makefile.am (libdia_a_SOURCES):
9147 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
9149 * objects/standard/create.h:
9150 * objects/standard/polygon.c (polygon_create):
9151 * objects/standard/polyline.c (polyline_create):
9152 * objects/standard/beziergon.c (beziergon_create):
9153 * objects/standard/bezier.c (bezierline_create):
9154 Moving create.h into lib.
9156 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
9158 * app/render_libart.[ch]: Work on PNG font export. Something's
9159 still fishy with the scaling, I don't get it.
9162 * app/interface.c: Replaced broken zoom combo with entry+menu.
9163 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
9165 * app/render_gdk.c (get_text_width): Checks for validity of text.
9166 Temporary help while debugging input -- should only activate on
9169 * objects/SADT/annotation.c:
9170 * objects/GRAFCET/transition.c:
9171 * objects/FS/function.c: Removal of gtk.h include.
9173 * objects/UML/state.c (state_load): Warnings about using State
9174 object for initial/final states.
9176 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
9178 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
9180 * app/render_eps.c: Text rendering that scales correctly. Too bad
9181 the standard fonts don't get selected right.
9183 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
9185 * lib/diagramdata.h:
9186 * lib/paper.c (get_paper_info):
9188 * plug-ins/xfig/xfig-import.c:
9189 Committed before testing. I am so embarrased. This compiles, now
9190 that the includes are in the right order.
9192 * app/diagram.c (diagram_init):
9193 * app/app_procs.c (do_convert):
9194 * app/preferences.h:
9195 * lib/diagramdata.h:
9196 * lib/diagramdata.c (new_diagram_data):
9198 * lib/paper.c (get_paper_info):
9199 Moved new_diagram part of prefs into lib/diagramdata.h. More
9200 could be done in new_diagram_data() now.
9202 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
9204 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
9206 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
9208 * configure.in: removed silly user-visible comment
9210 (actually, this is a dummy entry before I manually run nemo; for
9211 some dist-upgrade related reason, this morning's run aborted before
9212 the snapshots were created)
9214 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
9216 * objects/network/wanlink.c:
9217 * objects/network/bus.c:
9220 * objects/custom/custom_object.c:
9221 * objects/network/wanlink.c:
9222 * objects/flowchart/parallelogram.c:
9223 * objects/flowchart/ellipse.c:
9224 * objects/flowchart/diamond.c:
9225 * objects/flowchart/box.c:
9226 Removed GTK defaults stuff.
9228 * objects/UML/fork.c:
9229 * objects/UML/object.c:
9230 * objects/UML/lifeline.c:
9231 * objects/UML/branch.c:
9232 * objects/GRAFCET/transition.c:
9233 * objects/FS/function.c: Removed GTK include.
9235 * objects/FS/flow-ortho.c:
9236 * objects/FS/flow.c: Made the label behave again.
9237 Also removed GTK defaults stuff.
9239 2002-08-06 Hans Breuer <hans@breuer.org>
9241 * app/autosave.c : ported to GDir which is the improved
9242 cross platform replacement for <dirent.h>
9244 * app/makefile.msc : build autosave.obj
9246 * app/font.c : some (bad?) code calls
9247 dia_font_scaled_decent() not only with empty string but
9248 with NULL. Handle it gracefully.
9250 * lib/paper.c : don't depend on ../app. Although IMO
9251 this shouldn't be allowed on any platform it is only
9252 disabled for win32, where it simply doesn't work
9255 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9257 * objects/fs/flow.c : conditionalize debug spew, disabled
9258 and 'ported' to use g_print. Simple printf won't work with
9259 standard win32 gui apps, may even crash them.
9261 * plug-ins/makefile.msc : DISABLED svg-import cause it
9262 depends on ../objects/custom. This not only break the
9263 build for all non ELF systems but IMO also isn't acceptable
9264 from a design point of view. See dia-list mail on subject.
9266 * plug-ins/python/makefile.msc :
9267 plug-ins/python/python.c : remove all references to dirent
9269 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
9271 * configure.in: added ro to ALL_LINGUAS
9275 * ../translation-graphs/transgraph.py: added support for fuzzy
9276 translations. Enlarged the graphs.
9278 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
9280 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9281 key events according to locale. No clue if this works for
9284 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
9286 * lib/text.c: Various UTF8 related fixes, in particular in
9287 deleting. Text_insert_char is fine, far as I can tell.
9289 * app/interface.c (create_display_shell):
9290 * app/commands.c: Now uses gtk_clipboard functions, for they are
9291 much simpler. Also handles Win32 clipboard. Non-ascii chars
9292 don't seem to get handled correctly by text_insert_char in
9295 * app/commands.c (received_selection_handler): Got utf8 handling
9296 on paste, and individual char handling out of commands.c. Pasting
9297 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
9299 * lib/message.c (gtk_message_internal): Message dialog re-shown
9300 when new message appears. Maybe it should even move to top?
9304 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9305 (again) and case-insensitive.
9307 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9310 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
9312 * app/commands.c (edit_cut_text_callback):
9313 * lib/text.c (text_delete_all): Now functioning undo for text cut.
9315 * app/commands.c (edit_cut_text_callback): Now removes text.
9316 Undo is broken, though.
9318 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
9320 * app/diagram.c (diagram_update_menu_sensitivity):
9321 Making cut_text active.
9324 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9325 clipboard. Also removed AA callback.
9327 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
9329 * objects/chronogram/chronoref.c:
9330 * objects/chronogram/chronoline.c:
9331 * objects/SADT/annotation.c:
9332 * objects/SADT/arrow.c:
9333 * objects/SADT/box.c:
9334 * objects/GRAFCET/vergent.c:
9335 * objects/GRAFCET/vector.c:
9336 * objects/GRAFCET/step.c:
9337 * objects/GRAFCET/condition.c:
9338 * objects/GRAFCET/action.c:
9339 * objects/ER/participation.c:
9340 * objects/ER/relationship.c:
9341 * objects/ER/entity.c:
9342 * objects/ER/attribute.c:
9343 Removing unnecessary GTK references.
9345 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
9347 * objects/standard/image.c:
9348 * objects/standard/textobj.c:
9349 * objects/standard/ellipse.c:
9350 * objects/standard/polygon.c:
9351 * objects/standard/beziergon.c:
9352 * objects/standard/box.c:
9353 Making default default properties.
9355 * objects/standard/image.c:
9356 * objects/standard/arc.c:
9357 * objects/standard/box.c:
9358 * objects/standard/zigzagline.c:
9359 * objects/standard/polyline.c:
9360 * objects/standard/line.c:
9361 * objects/standard/ellipse.c:
9362 * objects/standard/polygon.c:
9363 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9365 * lib/object_defaults.c (dia_object_default_create):
9368 * lib/object.c (object_copy_using_properties):
9369 * lib/propdialogs.c:
9370 * lib/propinternals.h:
9371 * lib/propobject.c (object_create_props_dialog)
9372 (object_copy_props):
9373 Removing the standard (toolbox) properties from defaults dialogs.
9375 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
9377 * lib/font.c (dia_font_scaled_string_width)
9378 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9380 * lib/text.c (text_calc_boundingbox): Take descent into account.
9382 * objects/standard/bezier.c (bezierline_draw):
9383 * lib/render.c (draw_bezier_with_arrows):
9384 Better arrow drawing for beziers. Doesn't change the mouse-click
9387 * lib/arrows.h: Some const-ness.
9389 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9391 * lib/render.c (draw_arc_with_arrows):
9392 * objects/standard/arc.c (arc_draw): Better arrow drawing for
9393 arcs. Doesn't change the mouse-click area yet.
9395 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
9401 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
9403 * app/group.c (group_draw): Forgotten commit: Groups to draw as
9404 objects (using default routines).
9408 * lib/diagramdata.h:
9409 * lib/diagramdata.c (layer_find_closest_connectionpoint):
9410 * objects/standard/zigzagline.c (zigzagline_move_handle):
9411 * app/diagram.c (diagram_find_closest_connectionpoint):
9412 * plug-ins/python/pydia-diagram.c
9413 (PyDiaDiagram_FindClosestConnectionPoint):
9414 * app/object_ops.c (object_connect_display)
9415 (object_find_connectpoint_display)
9416 * app/create_object.c (create_object_button_press)
9417 (create_object_motion):
9418 * app/modify_tool.c (modify_motion):
9419 Adding object param to allow connectionpoint and handle coinciding.
9421 * objects/standard/zigzagline.c (zigzagline_check_orientation):
9422 Fixing minor problems.
9424 * objects/standard/ellipse.c (ellipse_update_data):
9425 Added direction hints.
9427 * lib/diagramdata.c:
9430 * lib/diagramdata.h:
9431 * objects/standard/zigzagline.c:
9432 First working example of zigzagline hints, currently only between
9435 2002-07-27 Steffen Macke <sdteffen@web.de>
9437 * plug-ins/svg/render_svg.c: added support for rounded
9438 rectangles (fixes #69053 if compile with
9440 * object/custom/shape_info.[c|h]: made parse_style and
9441 parse_path accessible for svg plug-in
9442 * plug-ins/svg/Makefile.am:
9443 * plug-ins/svg/svg.c:
9444 * plug-ins/svg/svg-import.c(new): added SVG import filter
9446 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
9448 * objects/standard/box.c:
9449 * objects/standard/zigzagline.c (zigzagline_move):
9450 More work on zigzagline hints.
9452 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
9453 * lib/connectionpoint.h:
9454 Hints for zigzaglines.
9456 * app/properties.c (properties_show):
9457 * app/defaults.c (defaults_show):
9459 * lib/propobject.c (object_create_props_dialog):
9461 * objects/FS/flow-poly.c:
9462 * objects/network/wanlink.c:
9463 * objects/network/bus.c:
9464 * objects/UML/class.h:
9465 * objects/UML/class_dialog.c:
9466 * objects/UML/association.c:
9467 Start of removing toolbox props from props dialogs.
9471 * app/lineprops_area.c (dia_arrow_chooser_new):
9472 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9474 * app/create_object.c:
9475 * app/modify_tool.c:
9480 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
9482 * app/preferences.c:
9484 * app/diapagelayout.c:
9485 New prefs selector kind PREF_CHOICE chooses between a list of
9486 strings. Used for picking default paper.
9488 * app/preferences.c (prefs_data):
9489 * lib/paper.c (get_paper_info): Added prefs setting for
9492 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9493 line segments at the ends (bug #86603).
9495 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
9497 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9498 #60324: Now calls update_data after copy.
9500 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9501 Now doesn't steal selection from non-object tools.
9503 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
9505 * app/commands.c (help_manual_callback): Uses BROWSER environment
9506 variable when available.
9508 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
9510 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9511 object from the new sheet when changing.
9513 * app/app_procs.c (app_init): Uses more standard size icon, from
9514 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
9516 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
9518 * objects/UML/implements.c (implements_update_data):
9519 * objects/UML/realizes.c (realizes_update_data):
9520 * objects/UML/dependency.c (dependency_update_data):
9521 Test for null strings before calling on ascent.
9523 * objects/UML/realizes.c (realizes_draw):
9524 * objects/UML/message.c (message_draw):
9525 * objects/UML/generalization.c (generalization_draw):
9526 * objects/UML/dependency.c (dependency_draw)
9527 * objects/UML/constraint.c (constraint_draw):
9528 * objects/GRAFCET/condition.c (condition_draw):
9529 * objects/UML/association.c (association_draw):
9530 * objects/FS/flow-ortho.c (orthflow_draw):
9531 * objects/FS/flow.c (flow_draw): Change to use
9532 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
9535 * lib/arrows.c (calculate_arrow_point):
9538 * objects/standard/zigzagline.c:
9539 * objects/standard/polyline.c:
9540 * objects/standard/line.c: Work towards better arrow drawing.
9542 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
9544 * objects/UML/state.c: Starting phase-out of State object as
9545 initial/final state (which never worked right).
9547 * app/app_procs.c (app_init): --version command line option for
9550 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9552 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
9554 * app/render_eps.c: Removed debugging info.
9556 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9557 Kludge to make ascent and descent work for empty strings. Won't
9558 work when using non-ASCII fonts. Better would be to get a
9559 PangoFont and ask directly.
9561 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9564 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9567 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
9569 * plug-ins/xfig/xfig-export.c: First use of draw_object render
9570 function: All shapes are now groups in XFig export.
9572 * lib/diagramdata.c (normal_render):
9575 * app/display.c (ddisplay_obj_render):
9576 New render function for drawing objects, allows renderers to group
9577 or otherwise specially handle objects. We may want to reconsider
9578 calling it in app/display.c, as we 'know' the object draw function
9579 is the default one there.
9581 * lib/Makefile.am: Removed extra \ that broke stuff.
9583 * plug-ins/xfig/xfig-import.c:
9584 Spline import for xfig. Not perfect.
9586 * objects/standard/create.h:
9587 * objects/standard/bezier.c (bezierline_create):
9588 * lib/bezier_conn.c:
9589 * lib/beziershape.c (beziershape_set_points):
9590 * lib/bezier_conn.h:
9591 * lib/beziershape.h:
9592 Support for creating beziers non-interactively.
9594 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
9596 * plug-ins/xfig/xfig-import.c: Support for polygons and
9597 polylines. Special warning handling system removed.
9599 * lib/message.c (gtk_message_internal): Fixed bug involving
9600 closing message window and then getting repeated message.
9604 * configure.in (GETTEXT_PACKAGE):
9605 Update based on bug #88199. Hopefully this doesn't break too much
9608 * dia.desktop.in (_Comment): Changed after suggestion from
9609 calum.benson@ireland.sun.com (bug 88345)
9611 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9612 <loli@unsa.edu.ar> that makes user/system distinction better.
9614 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
9616 * app/render_libart.c: Got the context right, removed crashes.
9626 Remove libart #defines from most places (still around for png export).
9628 * app/render_libart.h:
9629 * app/render_libart.c:
9630 * configure.in (HAVE_LIBART):
9631 Starting on update of libart stuff for png export (without X).
9633 * app/autosave.h (autosave_check_autosave):
9636 * app/Makefile.am (dia_core_files):
9638 * app/diagram.c (diagram_set_modified):
9640 * app/app_procs.c (app_init):
9641 Autosave support. No automatic restore yet.
9643 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
9645 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9648 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
9650 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9652 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
9654 * Fix for 'make dist' etc. --- problem caused by
9655 previous AUTHORS patch.
9657 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
9659 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9661 (set_font): NULL check.
9663 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
9665 * app/disp_callbacks.c:
9667 Addition to the object menus allows check menu items.
9669 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
9671 * HACKING: completely changed to bring up-to-date.
9672 * AUTHORS: file needs REMOVING from CVS as now
9673 dynamically generated.
9674 * app/authors.h: split into subcategories for original
9675 authors, maintainers, etc.
9676 * app/app_procs.c: --credits rewritten to support new
9678 * app/commands.c: no changes to about box code, comment
9680 * Makefile.am: added rule for AUTHORS. I'm still
9681 inexperienced with automake, it seems to work, but
9682 for AUTHORS-related bugs, look at this change first.
9684 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
9686 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9687 work. Back to including xslt dir always.
9689 * objects/UML/uml.c:
9690 * objects/UML/class.h:
9691 * objects/UML/class_dialog.c:
9692 * objects/UML/class.c: Patch from
9693 <mattam@netcourrier.com>: Adds comment visibility switch, also
9696 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9697 for state/fork/activity stuff.
9698 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9699 * objects/UML/Makefile.am:
9700 * objects/UML/uml.c:
9701 * sheets/UML.sheet.in: Added new objects activity, fork,
9703 * objects/UML/pixmaps/state_term.xpm:
9704 * objects/UML/state_term.c: New, only initial/final states.
9705 * objects/UML/pixmaps/activity.xpm:
9706 * objects/UML/activity.c: New, activity state.
9707 * objects/UML/pixmaps/fork.xpm:
9708 * objects/UML/fork.c: New, fork/join bar.
9709 * objects/UML/pixmaps/state.xpm: state icon.
9713 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9714 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9717 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
9719 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9722 * app/Makefile.am: Commented out the diaconv parts while it's not
9723 used anyway. To come back later.
9725 * configure.in (HAVE_FREETYPE):
9728 * app/render_eps.c: Support for printing with freetype, better
9729 encapsulated now. Renders the text nicely, but ignores font
9730 setting. Requires pangoft2 to get the font outline, but non-text
9731 objects can still be rendered without it.
9734 * app/commands.c (objects_place_up_callback)
9735 (objects_place_down_callback):
9737 * app/diagram.c (diagram_place_down_selected)
9738 (diagram_place_up_selected): Starting support for moving objects
9741 * app/menus.c: Removed character/numeral shortcuts.
9743 2002-07-06 Hans Breuer <hans@breuer.org>
9745 * makefile.am app/makefile.am lib/makefile.am
9746 objects/makefile.am plug-ins/makefile.am
9747 plug-ins/python/makefile.am :
9748 added required files for win32 build to EXTRA_DIST
9750 * app/paginate_psprint.c app/render_eps.c
9752 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9753 on Pango as currently is on win32 => no PostScript
9756 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9757 use '/* noop */;' for empty case labels; replace
9758 debug spew printf with g_print which is guaranteed
9759 to work on win32, too.
9761 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
9762 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
9763 in the pango_font_description_set_weight() api documentation
9764 Take care for them in dia_font_get_style() too.
9766 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9767 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9768 rename Obliquity to Slant which appears to be the usual name,
9769 also rename dia_font_get_style_string -> dia_font_get_slant_string
9771 * plug-ins/wmf/wmf.cpp : finally ported to new font api
9773 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9775 * objects/uml/association.c class.c large_package.c message.c
9776 if g_free() is used g_strdup needs to be used.
9777 * objects/custom/shape_info.c
9778 objects/ER/attribute.c entity.c
9779 objects/standard/image.c
9780 app/sheets_dialog_callbacks.c : more strdup cleaning
9782 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
9784 * app/render_eps.c: Non-crashing printing (made the right
9785 context). Font output still fscked up.
9787 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
9789 * app/authors.h: Added file --- now master
9790 location for contributors data.
9791 * app/app_procs.c: Added --credits option.
9792 * app/commands.c: Modified about box to use
9795 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
9797 * app/render_eps.c: First stab at EPS rendering using the contour
9798 code from PAPS. Crashes.
9800 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
9802 * app/recent_files.c (recent_file_history_remove):
9803 Fixed call to g_list_delete_link discarding return value.
9805 * lib/widgets.c (dia_font_selector_set_styles):
9806 * lib/font.h (DiaFontWeight):
9807 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9809 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
9811 Contribution from Alan Horkan <horkana@tcd.ie>:
9814 * sheets/Assorted.sheet:
9815 A set of 40 assorted geometric shapes.
9817 * sheets/Assorted.sheet.in:
9818 * sheets/Makefile.am
9819 * shapes/Assorted/Makefile.am:
9820 * shapes/Makefile.am:
9823 Done the integration job of Alan's shapes. (Translators: have fun!)
9825 * po/dia.pot: refreshed the main potfile.
9827 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
9829 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9831 * objects/UML/class.[ch]:
9832 * objects/UML/class_dialog.c:
9833 changed the number of connection points from a hardcoded value of
9834 8 to a #defined constant
9836 (I changed the constant back from 20 to 8, until we better know
9837 how we'll handle more connection points on the UML class in the
9838 future -- but Tim's patch is a welcome clean-up).
9840 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
9842 * shapes/MSE/demultiplexer.xpm:
9843 * shapes/MSE/node_center.xpm:
9844 * shapes/MSE/multiplexer.xpm:
9845 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9846 Horkan <horkana@tcd.ie>
9848 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
9850 * lib/widgets.c: Total rehash of font selector, with font dialog
9851 option, expanding list (not LRU yet), and stuff.
9853 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
9857 Added a set of new setter/getters, some of them more specially for
9860 * plug-ins/shape/shape-export.c: (new_shape_renderer),
9861 (destroy_shape_renderer), (set_font), (draw_string):
9862 * plug-ins/svg/render_svg.c: (new_svg_renderer),
9863 (destroy_svg_renderer), (set_font), (draw_string):
9865 Actually exported the font face, style, weight and size (sodipodi
9866 agrees with dia on how a small sample should look like (a sample
9867 0.90 would not even display anyways). Yay !)
9869 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9871 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
9873 (end of ChangeLog-less patch)
9875 * objects/custom/shape_info.c (parse_style): now understands the
9876 font-style and font-weight attributes as well. Does not use
9877 anymore dia_font_new_from_legacy_name().
9879 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
9881 * objects/standard/textobj.c: Now uses stdprops for defaults.
9883 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
9884 * lib/font.c (dia_font_get_style): Style now linear and conversion
9887 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
9890 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
9892 * plug-ins/dxf/dxf-import.c:
9893 using dia_font_new_from_style()
9895 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9897 * objects/UML/class.[ch]: Added a comment field to class
9898 * objects/UML/uml.[ch]: Added a comment field to attributes,
9899 operations and parameters.
9900 * objects/UML/class_dialog.c: Added code for the new comment
9902 * plug-ins/xslt/*.xsl: Added some code to handle comments.
9903 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
9904 Added a $directory parameter for stylesheets so the output is
9905 in the good place (not in the $PWD).
9909 * AUTHORS: added contributors, updated maintainers. Removed the
9910 specific areas of action.
9912 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
9913 from a patch by Xing Wang <quixon@gnuchina.org>:
9915 * app/commands.c: help_about_callback now supports
9916 new-style GNOME about box as well as old GTK style.
9917 code also tidied (Closes: #85726)
9921 * app/commands.c: fixed the copyright (it's not all FSF), and
9922 maintainers. Synced contributors list with AUTHORS.
9924 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
9926 * lib/message.c: More work on repeating messages, now with
9929 2002-06-24 Hans Breuer <hans@breuer.org>
9931 * lib/widget.c : some more bits in place, at least
9932 it does something useful instead of crashing. Much
9933 better - but not all ok :-)
9935 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
9937 * lib/message.c (gtk_message_internal): First stab at repeating
9940 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
9943 * objects/GRAFCET/*.c:
9945 * objects/UML/association.c: (one instance forgotten)
9946 * objects/UML/large_package.c:
9947 * objects/standard/textobj.c:
9950 using dia_font_new_from_style()
9952 2002-06-23 Hans Breuer <hans@breuer.org>
9954 * lib/font.c : giving some love to
9955 dia_font_new_from_legacy_name() that is making
9956 import of old files as painless as possible and
9957 provide an almost exact match where possible.
9958 It does not yet fully work because it interfers
9959 with the Style to DiaStyle conversion which comes
9962 [Changing these files is only allowed with Dia-0.90]
9963 * broken-files/fonts-0.90.dia : including the
9964 common hard-coded fonts from Dia-0.90. It also
9965 has drawn bounding-boxes for win32 as they were calculated
9966 from the former version (they were all too big).
9967 * broken-files/fonts-0.90-full.dia : all hardcoded
9968 fonts including the asian versions. On my machine
9969 this gives _a lot_ complaining about missing fonts
9970 and a finally a broken file display. Anyone having
9973 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
9975 * objects/chronogram/*.c:
9976 * objects/custom/custom_object.c:
9978 using dia_font_new_from_style()
9980 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
9982 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
9983 font selector (stability, insensitivity).
9985 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
9986 stretching scheme for tweaking, and made scaling scheme faster
9988 (dia_font_dia_style_to_pango): Oops, % != /.
9990 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
9993 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
9995 * plug-ins/xslt : Added an XSLT plugin to export dia files using
9996 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
9997 It includes a small config file to tell it what stylesheets to use.
10001 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
10002 GTK2.0/HIG compliant (the labels could be slightly more verbose,
10003 perhaps). Added back a couple forgotten _(). Removed //-style
10006 2002-06-23 Hans Breuer <hans@breuer.org>
10009 (dia_plugin_get_name) : don't crash plugin_manager
10011 (dia_plugin_load) : reuse the description field to
10012 store the error string if loading fails.
10014 * lib/font.[hc] : starting to beautify the new
10015 font api: proper namespacing, adding convenience
10016 functions like dia_font_new_from_style(), ...
10018 * objects/uml/*.c : use the new convenience functions.
10020 [Next thing I plan to do is changing the other font
10021 functions to take DiaStyle and make Style and
10022 BASIC_*_FONT vanish. As well as giving some love to
10023 dia_font_new_from_legacy_name().
10024 If anyone want's to help on converting the other
10025 objects to the new api during that, I would highly
10028 2002-06-23 Hans Breuer <hans@breuer.org>
10030 * lib/font.c : made it compile and small indent fixes.
10031 Is there a code-has-no-effect-so-needs-not-be-valid
10034 * lib/widgets.c : use g_strcasecmp
10036 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
10040 * lib/widgets.c: Font names sorted, style selector widget
10041 reappeared. Doesn't select the old style yet.
10043 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
10045 * lib/font.c: one who expects a text's font to be changed shall
10046 actually request the attributes to apply to the whole range of the
10049 * lib/font.c: extents computation was wrong.
10051 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
10052 if a last NULL parameter is added...
10054 * lib/font.c: extents computation was completely wrong. This looks
10055 much better this time.
10057 * objects/UML/class.c: fixed the various strings positions.
10059 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
10060 macros to get the hardcoded base fonts.
10062 * objects/ER/relationship.c: wasn't converted to DiaFont*
10064 2002-06-22 Hans Breuer <hans@breuer.org>
10066 * lib/widget.c : dont use backend specific functions
10067 to get on the font_families. Including it would mean
10068 including <windows.h> which breaks due to namespace
10071 * lib/libdia.def : updated externals
10073 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
10075 * lib/font.c : added empty dia_font_init_instance function,
10076 reformatting of dia_fon_unref to allow to set breakpoint,
10077 dia_fon_build_layout() : dont crash on string==NULL
10079 * lib/text.c (text_set_attributes) : don't unref the wrong font
10081 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
10082 stores lowercased font names, but dia_font_get_family()
10085 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
10088 * app/render_gdk.c: Patch from Hans Breuer.
10090 * app/Makefile.am (dia_core_files): diaconv commented out for now.
10092 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
10094 * lib/all files touched yesterday: took into account some of Hans
10095 Breuer's remarks in
10096 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
10098 * objects/chronogram/*:
10099 * objects/custom/*:
10101 * objects/flowchart/*:
10103 * objects/GRAFCET/*:
10105 * objects/standard/textobj.?:
10107 converted to the new DiaFonts.
10110 * plug-ins/pstricks/*:
10114 Made minimalistic conversions so that they'd at least compile.
10116 * app/render_gdk.c:
10117 * app/render_pixmap.c:
10118 Converted to the new DiaFonts.
10122 * app/render_eps.c:
10123 made the minimal changes so that it would at least build.
10125 *** At this point, the thing builds on my machine, but segfaults
10128 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
10130 * configure.in: removed the backend-specific pango pkg_modules
10131 (trivial to add back if needed, when actually needed)
10134 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
10135 renderer. The APIs will have completely changed when we get around
10136 to redo a renderer for it, anyways.
10138 * font.[ch]: rewrote everything from scratch, with a Pango
10139 implementation. Normally, only backend-neutral things should go in
10142 **WARNING**: new rules for managing DiaFont* pointers: these are
10143 reference-counted GObjects. One >must< diafont_ref() and
10144 diafont_unref() as appropriate. I wish I could overload operator=()...
10146 lib/plug-ins.h: bumped up the plug-in API.
10151 lib/object_defaults:
10152 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
10153 again tomorrow with GObject.
10155 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
10157 **** The rest of the tree should be updated as well ****
10159 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
10161 * app/render_gdk.h:
10162 * app/render_gdk.c:
10163 * app/render_pixmap.c:
10164 * app/render_pixmap.h:
10165 * app/render_libart.h:
10166 * app/render_libart.c:
10168 * lib/font.c: Removed freetype stuff (still around in
10169 lib/widgets.c 'cause we might want the font selector widget).
10171 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
10173 * shapes/network/laptop.(xml|shape):
10174 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
10175 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
10177 2002-06-17 Hans Breuer <hans@breuer.org>
10179 * lib/object_defaults.c : #include <libxml/tree.h> not
10180 <tree.h> pointed out by Xing Wang
10182 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
10184 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
10186 * app/color_area.c: Update to
10187 gtk_color_selection_*_current_color() fixed bad crash issues, plus
10188 updated color conversions.
10190 * sheets/ER/weakentity.xpm: Accepted patch from
10191 quixon@gnuchina.org to make icon match actual appearance.
10193 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
10194 quixon@gnuchina.org.
10196 2002-06-16 Hans Breuer <hans@breuer.org>
10198 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
10199 good tradition of information hiding. Add new function
10200 dia_plugin_get_symbol()
10201 * app/sheets.c app/sheets_dialog_callbacks.c : use it
10203 * app/sheets.c : stop complaining about object_get_type()
10204 returning NULL. This is a consequence of e.g. disabling
10205 plug-ins at runtime _and_ it was and is gracefully handled.
10206 Spitting out g_warning for it isn't appropriate.
10208 * lib/object.[ch] : removed dead code
10210 * app/plugin-mangager.c : almost complete rewrite for gtk2
10211 using GtkListStore/GtkTreeView
10213 * lib/libdia.def : updated externals
10215 * todo.gtk2 : updated, that is removed already done steps
10217 2002-06-15 Hans Breuer <hans@breuer.org>
10219 * objects/uml/class_dialog.c : clean some left-over
10220 utf8-mess, return 0 from "focus_out_event" handlers
10221 to avoid asserting in gtk (#78305). Reconstruct
10222 stereotype/NULL behaviour to avoid rendering empty
10223 stereotypes on classes and member functions
10225 [#56109 - Provide object defaults for StdProp objects,
10226 some remaining issues are discussed in bugzilla]
10228 * lib/object_defaults.c : (new file) manage default properties
10229 of dia objects. The serialization is done with standard
10230 object methods in a diagram compatible format.
10232 * lib/object.c : add object_registry_foreach() which allows
10233 to iterate over all registered object types
10235 * lib/object.h : added prototypes object_default*() and
10236 object_registry_foreach()
10238 * lib/makefile.am lib/makefile.msc : add new file to build
10240 * lib/libdia.def : export new functions
10242 * app/defaults.c : provide StdProp based defaults if the
10243 ObjectType doesn't implement it's own default functions
10245 * app/create_object.c : through dia_object_default_create()
10246 * app/disp_callbacks.c : same here
10248 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
10250 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10251 sensitivity for deleting segments.
10253 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
10255 * app/color_area.c: (color_area_events):
10256 * app/diagram.c: (diagram_destroy):
10257 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10259 * app/load_save.c: (diagram_data_load):
10260 * app/menus.c: (menus_get_item_from_path):
10261 * app/preferences.c: (prefs_load):
10262 * app/render_gdk.c: (get_text_width):
10264 * lib/color.c: (color_convert):
10265 * lib/dia_dirs.c: (dia_config_filename):
10266 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10267 * lib/intl.c: (intl_get_language_list):
10268 * lib/message.c: (message):
10270 * lib/paper.c: (get_default_paper):
10271 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10272 * lib/widgets.c: (dia_file_selector_get_file):
10274 * objects/standard/image.c: (get_directory):
10278 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
10280 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
10282 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
10284 * app/interface.c: sscanf now returns EOF on empty string, so
10285 handle no match for zoom factor better => correct zoom at start.
10287 * app/sheets.c (create_object_pixmap): Tried to display empty error.
10288 (sheets_optionmenu_create): Died when not finding specified
10289 sheet. Don't think it should.
10291 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10292 (bug #84367) to place the text better.
10294 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
10296 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10298 * app/commands.c: Removed unnecessary gnome include. Removed
10299 GNOME-Print support.
10301 * app/menus.h: Removed now unnecessary gnome include.
10303 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10304 GNOME-specific stock buttons
10306 2002-06-09 Hans Breuer <hans@breuer.org>
10308 * app/app_procs.c : convert 'Modified diagrams exits'
10309 dialog to use GtkMessageDialog. That gives us:
10310 - icons without Gnome dependency
10311 - much less code, also cross platform
10312 - improved useability ?
10314 * app/color_area.c : the Color Selection Widget looked
10315 quite wrong (alpha problems). Fix it by merging in required
10316 changes stolen from The Gimp cvs
10317 * app/color_area.h : to get the right appearance the maskes
10318 needed to be taken into account
10319 * app/interface.c : adapt to color_area_create changes.
10320 Also remove some dead code and finally remove cvs autexpansion,
10321 I was bothered enough by irrelevant differences :-)
10323 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10324 api, i.e stocks and response to make the GnomeDialog usage
10325 obsolete. Also fixed the issue with closing the 'parent'
10326 before closing the dialog
10328 * app/display.[ch] : removed some dead code and conversion
10329 to new GtkDialog api. Also trying to conform to new HIG
10330 standard http://developer.gnome.org/projects/gup/hig/
10332 2002-06-09 Hans Breuer <hans@breuer.org>
10334 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10337 * lib/dia_image.c : gtk_widget_set_default_visual()
10338 remove. It does nothing with Gtk2.
10340 * lib/libdia.def : added ps_unicoder exports
10342 * lib/message.c : remove #GNOME use GtkMessageDialog.
10343 Yeah, Dia gets dialogs wit icons cross-platform.
10345 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10346 to gtk_spin_button_get_value()
10348 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10350 add #undef GTK_DISABLE_DEPRECATED to still use ...
10351 * lib/prop_text.c : ... GtkText
10352 * lib/prop_widgets.c : ... GtkList
10353 * lib/prop_dialogs.c : ... gtk_signal_connect and more
10354 * lib/widgets.c : ... (too much to list here)
10356 * lib/ps-utf8.c : #include <string.h>
10358 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
10361 * Makefile.am: Adapted for gtk2.
10362 Removed dependencies on libunicode, on iconv(), on langinfo().
10364 * acconfig.h: removed (now obsolete)
10366 * lib/charconv.[ch]: removed (superceded by glib)
10367 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10369 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10370 libunicode types for their glib counterparts. Fixed the include
10371 paths for libxml2. Removed all traces of libxml1 or non-UTF8
10372 support (there were remains in objects/uml).
10375 2002-06-08 Hans Breuer <hans@breuer.org>
10377 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10378 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10379 Also use g_strdup()'s handling of NULL by returning NULL
10380 again at all places I found (remove unnecessary if's)
10382 * todo.gtk2 : new file to keep notes about gtk2 porting,
10383 further issues and thoughts and some status information.
10384 Also sent to dia-list ('Dia goes Gtk2 ...').
10386 [make it compile with GTK+ 2.0]
10388 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10389 removed definition of S_ISDIR, S_ISREG and getlogin
10391 * */makefile.msc : Use GTK2 and libxml2
10392 BEWARE: makefile.am, configure.in not yet ported !
10394 * app/app_procs.c app/diagram.c : remove
10395 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
10396 but set use gtk_menu_set_accel_path() on menu creation
10398 * app/color_area.c lib/widgets.c :
10399 make use of gtk_color_selection_set_has_palette ()
10401 * app/commands.c : gdk_pixbuf_new_from_file wants an
10402 extra argument. Convert from DIR to GDir usage.
10404 * app/diagram_tree.c(button_press_callback) : need to return
10405 FALSE in the signal handler to let gtk process it further.
10406 (get_object_name) : don't leak 'prop'
10408 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
10409 dia_page_layout_destroy() getting called more than once
10411 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
10412 GtkTypeInfo changes
10414 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10416 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10417 IIRC this code will not compile unchanged when USE_XIM is defined ...
10419 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10421 * app/interface.c : there is no widget->klass anymore in Gtk,
10422 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10423 parameter. Some tweaking of GtkWrapBox usage to get four tools in
10425 switch off GTK's double buffering on Dia's canvas. Otherwise we would
10426 get triple buffering and flicker.
10427 Replace call to GTK private function _gtk_accel_group_attach()
10428 with public gtk_window_add_accel_group()
10430 * app/layer_dialog.c : adapt to GtkTypeInfo changes
10432 * app/load_save.c lib/plug-ins.c lib/sheet.c
10433 objects/custom/custom.c :
10434 simplified by using g_file_test()
10436 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
10437 to gtk_accel_map_<save|load>. Also added common stock-icons
10440 * app/preferences.c : use gtk_button_set_label() instead
10441 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10443 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10444 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10447 * app/recent_files.c : removed GLIB_CHECK_VERSION
10450 plug-ins/metapost/render_metapost.c
10451 plug-ins/pstricks/render_pstricks.c
10452 plug-ins/svg/render_svg.c :
10453 replace getlogin() with g_get_user_name() which always
10456 * app/render_gdk.c : gdk_region_union_with_rect() modifies
10457 inplace now and returns nothing, also less #hell
10459 * app/render_libart.c : some initial #hell cleaning, SuckFont
10460 still needs to vanish
10462 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10463 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10465 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10466 * app/sheets_dialog_callbacks.c : some #hell and adaptions
10467 needed to GtkWrapBox api changes
10470 * lib/charconv.[hc] : removed from build
10471 [changed appropriate]
10472 * lib/prop_inttypes.c lib/prop_text.c :
10474 * lib/text.c : ported from HEAD but keep original indent
10475 intact. Original was done by Akira TAGOH.
10477 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10479 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10481 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10482 same on all platforms now!
10484 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10486 * lib/message.c : remove "charconv.h"
10488 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10491 * lib/sheet.c : convert from DIR to GDir usage
10493 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10495 * lib/widgets.h : include gtk<label|colorseldialog>.h
10498 * objects/fs/flow.c :
10499 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10501 * objects/custom/custom.c : convert from DIR to GDir usage
10504 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10507 2002-05-03 Hans Breuer <hans@breuer.org>
10509 * lib/dia_xml.c : make the well formed utf8 check
10510 actually work for û (non 7-bit ascii encoding)
10511 and fixed the file re-writing if the check fails.
10512 Thanks to Vitaly Lipatov for noticing the misbehaviour.
10514 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10515 comment on last ressort font. Thanks to Maxim Sobolev.
10517 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
10519 * sheets/network.sheet.in: corrected a typo in plotter invocation.
10521 2002-06-03 Steffen Macke <sdteffen@web.de>
10523 * shapes/network/digitizing_board.png:
10524 * shapes/network/digitizing_board.shape:
10525 * shapes/network/plotter.png:
10526 * shapes/network/plotter.shape:
10527 * shapes/network/Makefile.am
10528 * sheets/network.sheet.in: added new plotter and digitizing
10531 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
10533 * lib/font.c: made a symptomatic fix to a segfault reported by
10534 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10535 won't prevent dia from terminating, but should give more
10536 user-friendly information about why did it terminate.
10538 Two patches from <robert.young@dsto.defence.gov.au>:
10540 * app/display.c: fix the size of the canvas area which gets
10541 redrawn. There was an off-by one error (Closes #83659)
10543 * app/display.c: make sure we redraw all screen only when we
10544 really have to (some update_areas were mistakenly ignored) (Closes
10547 * NEWS: added a new entry for the future. Put there a reminder to
10548 update the dependencies.
10550 * configure.in: put in notes about what will change shortly.
10551 upped the version to 0.90+cvs (did also in config.h.win32)
10552 upped the minimum version for intltools (now 0.21)
10554 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
10560 bumped up version number to 0.90. Yay!
10562 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
10564 * doc/pl/Makefile.am:
10565 * doc/en/Makefile.am: fixed a "make install" problem when db2html
10566 is not present (Reported by Andrew Ferrier
10567 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10568 problem which prevented me from ever seeing the problem in doc/en...
10570 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10572 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10573 way to read the font path from the XFS configuration files in
10574 order to enable FreeType (fixes #83098).
10576 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10583 bumped up version number to 0.90.RC3
10585 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
10587 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10588 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10589 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10590 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10591 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10592 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10593 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10594 Added Polish documentation.
10596 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
10598 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10599 format for the UML State object. Now there's a hack to reload
10600 older files, and get them converted on the fly.
10601 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10603 * lib/properties.h:
10604 * lib/propobject.c:
10605 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10606 and adapter the proplist predicates. A LOAD_ONLY property is for
10607 when you have legacy to support but can't resist moving your
10608 fields around... (was needed to support the above state.c fix).
10610 If the in-core of your object changes and you need a LOAD_ONLY
10611 property for the old format, you must keep some spare room in your
10612 object's struct to accomodate for the potential old-style
10613 attributes. Then in foo_load(), after having called
10614 object_load_using_properties(), you must inspect the old-style
10615 fields and act accordingly. Don't ever change the on-disk formats...
10617 * objects/UML/object.c:
10618 * objects/UML/small_package.c: added a check against empty
10619 stereotypes still consuming space. Reported by Dolores Alia de
10620 Saravia <loli@unsa.edu.ar>. Thanks!
10622 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
10624 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10625 using libtool on an AFS partition.
10627 * po/update_potfiles_in.sh: now simply calls the recent intltools
10628 features; they work better than hand-crafted half-ignorant
10629 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10632 * po/POTFILES.in: added back two files update_potfiles_in.sh
10633 didn't take into account. Now this file is not automatically
10635 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10636 (the usual suspects, in fact).
10638 * configure.in: improved the isinf() / isfinite() detection on
10639 Solaris (MÃ¥rten Svantesson)
10641 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
10643 * configure.in: one expression was replacing $CFLAGS, removing
10644 whatever was previously in.
10645 Added more checks for isinf() and finite() on Solaris.
10647 * lib/geometry.h: added a macro defintion for isinf() if not
10648 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10651 * app/commands.c: "cut" did not set the 'modified' bit (paste has
10652 been for a little while). Fixes #82994.
10654 * Makefile.am: added more stuff to distclean-local. This should make
10655 "make distcheck" pass! Thanks to the author of
10656 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10657 ... I wonder who this Henstridge guy is ... ;-)
10658 Darn. Still doesn't pass. I give up for tonight.
10660 * po/update_potfiles_in.sh: updated to take care of sheet files,
10661 and to filter out the EML plug-in.
10662 * po/POTFILES.in: updated with all .c and all .sheet.in files
10664 * po/dia.pot, po/*.po: again updated all .po files with all
10665 strings (with the updated POTFILES). Now with the up-to-date
10666 POTFILES, just all languages have some fuzzy or untranslated
10667 strings (not that the 100% team was that large beforehand...)
10669 * po-checktrans: removed the comment about .po files not holding
10670 all translatable stuff, since now they do.
10672 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
10678 bumped up version number to 0.90.RC2
10680 2002-05-20 Hans Breuer <hans@breuer.org>
10682 * app/load_save.c : starting to increase
10683 Dias tolerance on incomplete/broken files. The
10684 corresponding bug is #56233. But the patch there does
10685 neither apply anymore nor does it really fix the problem
10686 but only delays it, e.g. even if it would be allowed
10687 to read a file without any layers, the later code can't
10689 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10690 handle passing in NULL for the node gracefully.
10692 * shapes/network/printer.shape : added two more connection
10693 points - one at each side - to fix bug #60359
10695 * app/commands.c (edit_copy_callback) :
10696 add ddisplay_do_update_menu_sensitivity() to make
10697 sequence select-copy-paste work.
10699 2002-05-20 Hans Breuer <hans@breuer.org>
10701 * app/create_object.c (create_object_button_press) :
10702 added a call to ddisplay_do_update_menu_sensitivity()
10703 to make Ctrl^D etc work after object creation.
10706 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
10708 * objects/ER/entity.c:
10709 * objects/ER/attribute.c:
10710 * objects/ER/relationship.c: Patch to allow text size change from
10711 Celso Tetsuo Nagase Suzuki.
10713 2002-05-18 Steffen Macke <sdteffen@web.de>
10715 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
10717 * doc/en/graphics/greendots.png:
10718 * doc/en/home_network.png:
10719 * doc/en/line_props.png:
10721 * dia_gnome_icon.png:
10722 * dia_gnome_menu_icon.png:
10724 * shapes/network/telephone.png:
10725 * shapes/Logic/and.png:
10726 * shapes/Logic/buffer.png:
10727 * shapes/Logic/connector.png:
10728 * shapes/Logic/inverter.png:
10729 * shapes/Logic/nand.png:
10730 * shapes/Logic/nor.png:
10731 * shapes/Logic/not.png:
10732 * shapes/Logic/or.png:
10733 * shapes/logic/xor.png:
10734 * samples/ER-demo.dia:
10735 * samples/SADT.dia:
10736 * samples/UML-demo.dia:
10737 * samples/chronograms.dia:
10738 * samples/grafcet.dia: re-added as binary files
10740 2002-05-17 Hans Breuer <hans@breuer.org>
10742 * lib/libdia.def : reflect removing of render_store.[ch]
10744 * */makefile.mingw : remove VERSION definition it's
10745 done in config.h.win32. Dia still doesn't work if
10746 build with mingw ...
10748 * RELEASE-PROCESS : removed */makefile.mingw
10750 * app/sheets_dialog_callbacks.c : if we use those
10751 ugly charconv_gtk_* functions lib/charconv.h needs to
10753 * lib/charconv.h : ... and needs to contain the
10754 necesseray prototypes _and_ #defines
10756 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10757 is deprecated and does nothing but spit a warning. This broke
10758 the shape format writing. Fixed.
10759 Also with libxml2 pretty formatted xml isn't the default
10760 anymore, but needs to be enabled explicit: It is done now
10761 for shape files, which almost always needed to be edited by
10764 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10765 from stderr - which is invalid on Dia/win32 - to g_print -
10766 which opens up a console window if necessary. This way
10767 a xml-deprecation-error shouldn't stay unnoticed next time
10769 2002-05-17 Steffen Macke <sdteffen@web.de>
10771 * shapes/Misc/folder.png:
10772 * shapes/Misc/file.png: re-added as binary files
10774 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
10776 * lib/font.c: Fixed segfault for fonts without family_name.
10778 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
10780 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10782 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10783 Lars' request, minor cosmetic stuff (mostly _() of human-readable
10784 XML comments in .sheet files; one translator booby-trap disarmed).
10786 * lib/charconv.c: moved #hell inside the body of the new
10787 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10790 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
10792 * plug-ins/wpg/Makefile.am (INCLUDES):
10793 * plug-ins/shape/Makefile.am (INCLUDES):
10794 * plug-ins/svg/Makefile.am (INCLUDES):
10795 * plug-ins/pstricks/Makefile.am (INCLUDES):
10796 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10797 and DEBUG_CFLAGS in some missing places.
10799 * MAINTAINERS: New file containing list of known package
10803 * lib/charconv.c: Charconv versions of some common gtk calls.
10805 * app/sheets_dialog_callbacks.c
10806 (on_sheets_new_dialog_button_ok_clicked),
10807 (on_sheets_dialog_button_edit_clicked),
10808 (on_sheets_dialog_button_remove_clicked),
10809 (on_sheets_edit_dialog_button_ok_clicked):
10810 * app/sheets.c (sheets_optionmenu_create),
10811 (sheets_optionmenu_create): Added utf8 translations.
10813 * app/sheets_dialog.c:
10815 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10817 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
10819 * po/POTFILES.in: added app/sheets_dialog.c
10821 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
10823 * lib/charconv.c: (charconv_local8_to_utf8),
10824 (charconv_utf8_to_local8): tweaked the warnings to get more
10826 * lib/font.c: (font_get_suckfont): handled a potential case of
10827 uninitialised data being used (just paranoid)
10829 * objects/GRAFCET/boolequation.c: (opstring),
10830 (opblock_get_boundingbox), (opblock_draw),
10831 (boolequation_calc_boundingbox): some extra hoops needed now dia
10832 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10833 symbols can't yet be used with their proper Unicode cells, since
10834 gtk will demand them in the Symbol font, expressed in the local
10837 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10838 the fix just above).
10840 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
10842 * app/diagram_tree.c (get_object_name): Check that name property
10843 doesn't have null string.
10845 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
10847 * autogen.sh (DIE): Added conditional --force to gettextize.
10849 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10852 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
10854 * RELEASE-PROCESS: added James' notes on how to properly make the
10857 * configure.in: removed macro nesting related to libpng.h, which
10858 was causing some problems on some systems (like mine, which made
10859 the snapshots bad).
10861 Made --enable-unicode, previously an option, the mandatory case.
10863 * app/Makefile.am: updated EXTRA_DIST
10866 * app/makefile.mingw:
10868 * doc/en/dia-manual.sgml:
10869 * plug-ins/makefile.mingw:
10870 * configure.in: bumped up the version number to 0.90.RC1
10872 * lib/render_objects.[ch]:
10873 * po/POTFILES.in: removed render_objects from the build.
10875 * plug-ins/Makefile.am:
10876 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
10877 so we keep its source in the tarball.
10879 * objects/network/*.c, Makefile.am:
10880 * objects/sybase/*.c, Makefile.am:
10881 * po/POTFILES.in: cleaned up the non-existent files from the po
10884 * plug-ins/Makefile.am: re-enabled metapost plug-in.
10886 2002-05-13 Steffen Macke <sdteffen@web.de>
10889 * app/command.c: added M. C. Nelson to the Authors
10890 * sheets/Circuit/Makefile.am: added firewall shape to build
10891 * sheets/network/Makefile.am: added telephone and microphone
10894 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
10896 * RELEASE-PROCESS: Added list of files that contain the release
10897 number or should otherwise be changed at each release.
10899 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
10901 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
10902 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
10904 2002-05-12 Hans Breuer <hans@breuer.org>
10906 * config.h.win32 : changed VERSION to 0.90.RC1
10908 * app/makefile.msc lib/makefile.msc : use renamed
10909 gdk-pixbuf version (same content but renamed because
10910 all the other gtk+ dlls are renamed) to avoid trouble
10911 mixing gtk versions (of which one would not
10914 * app/app_procs.c : removed recently unneeded
10915 inclusion of "sheets.h"
10917 * app/render_gdk.c : removed my own debug spew
10918 which should never made it to cvs
10920 * lib/render_object.[hc] : added
10921 #error "File not used anymore."
10923 * lib/libdia.def : updated externals
10925 * app/interface.c : dropped filenames need to be
10926 converted from uri with Gtk+2.0
10928 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
10930 * RELEASE-PROCESS (new): a draft document about how to release. To
10931 be discussed. (already with some input from Hans Breuer)
10933 2002-05-12 Steffen Macke <sdteffen@web.de>
10935 * sheets/Makefile.am: re-added Misc sheet to make process
10937 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
10939 * objects/FS/function.c: Added comments to humungous list of menu
10940 items, to aid translators.
10942 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10944 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10946 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10948 * app/interface.c (create_toolbox): Disallow shrinking beyond
10949 requested size. Fixes bug #59439, and confirms to GTK guidelines
10950 (see gtk_window_set_policy).
10951 (create_sheets): Removed now unnecessary set_usize call.
10953 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10955 * lib/beziershape.c (remove_handles): Fixing removal of last
10956 segment. Undo of removal still hokey.
10958 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
10960 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
10962 * lib/beziershape.c (beziershape_init): Removed early call to
10963 beziershape_update_data where points aren't set yet.
10964 (beziershape_add_segment): Use segment 0 instead of overflowing
10965 points array with segment+1.
10966 (beziershape_remove_segment): Proper offset for fixing
10968 (remove_handles): Proper offset.
10970 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
10972 * objects/GRAFCET/action.c (action_update_data): Init x value of
10973 click point for call to connpointlist_adjust_count.
10975 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
10977 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
10978 setting to where values are inited.
10980 * lib/polyshape.c (polyshape_init): Removed call to
10981 polyshape_update_data that tried to use uninitialized data.
10983 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10985 * app/sheets_dialog.c: Mass removal of //-style comments. The
10986 Irix compiler doesn't like them:( I do...
10988 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
10990 * app/render_libart.c (draw_string): Bail out when no GDK font is
10992 (set_font): Give error when font not found.
10993 (set_fillstyle): Intlized error msg.
10995 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
10996 modified when applied (and ok only does apply if apply is set
10997 sensitive). Fixes bug #75623.
10999 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
11001 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
11003 2002-05-05 Steffen Macke <sdteffen@web.de>
11005 * app/Makefile.am: added $(UNICODE_CFLAGS)
11007 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
11009 * app/commands.c (help_manual_callback): Check return value of
11012 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
11014 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
11017 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
11019 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
11021 * objects/UML/uml.c (uml_operation_read): Fix of UML default
11024 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11026 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
11027 Added button to toggle diagram compression.
11029 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11031 * lib/font.c: Support for loading extra kerning files, plus got
11032 rid of rounding errors. Bounding box mostly perfect for freetype
11034 (font_string_width): Fudge factor to get around nonlinearity of
11037 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
11039 * lib/font.c (font_string_width): YA font calculation scheme, with
11042 * objects/UML/class.c (umlclass_calculate_data): Uses the same
11043 font for drawing and calculating now.
11045 * configure.in: Added utime.h check.
11047 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
11048 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
11050 2002-04-26 Hans Breuer <hans@breuer.org>
11052 [ Instead of fixing about 70 occurances in 20 files
11053 where GTK_TALKS_UTF8_WE_DONT needed to be handled
11054 Dia on win32 from now on uses glib-2.0 and not
11055 only talks utf-8 with gtk-1.3 but also internally.
11056 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
11059 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
11060 #undef GTK_TALKS_UTF8_WE_DONT
11062 * */makefile.msc : changes to use glib-2.0 (still
11063 using gtk+1.3(win32-production)
11065 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
11066 adapt kevent->string handling, add <string.h>
11067 * app/render_gdk.c (get_text_width) : the length given
11068 is in chars, gdk_text_width() needs bytes
11070 * app/render_libart.c :
11071 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
11072 (could simplify the same way as done in render_gdk.c)
11074 * app/diagram_tree.c app/paginate_gdiprint.cpp
11076 * lib/prop_basic.c lib/prop_geomtypes.c
11077 lib/propdialgs.c lib/propobject.c :
11078 added <string.h> which is now removed from charconv.h
11080 * lib/charconv.h : optional use infrastructure from
11081 glib-2.0 -> only five direct function mapping left
11083 * lib/charconv.c : avoid to build this with glib-2.0
11085 * lib/font.c : no string conversion needed anymore
11086 when Dia and Gtk talk utf-8, also code adaptions
11087 for GLIB_CHECK_VERSION(2,0,0)
11089 * lib/libdia.def : removed charconv functions
11091 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
11092 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
11094 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
11095 removed GTK_TALKS_UTF8_WE_DONT
11097 * lib/text.c : finally(?) fixed cursor <place|move>ment
11098 for Umlauts. Also fixed char insertion, still wondering
11099 how this could ever work. Does realloc on Linux
11100 initialize the memory with zeros ?
11102 * objects/chronogram/chronoline_event.c
11103 objects/grafcet/boolequation.c :
11104 there is no uni_get_utf8 when building for glib-2.0.
11105 Replace with g_utf8_get_char() and g_utf8_next_char().
11107 * objects/uml/stereotype.c (bracketted_to_string) :
11108 simplify while adding code for glib-2.0 build
11110 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
11112 * app/diagram.h: Autosave field
11113 * app/diagram.c (diagram_set_modified): Sets autosave field.
11115 * objects/UML/usecase.c (usecase_update_data):
11116 * objects/flowchart/ellipse.c (ellipse_update_data):
11117 * objects/flowchart/parallelogram.c (pgram_update_data):
11118 * objects/flowchart/diamond.c (diamond_update_data):
11119 * objects/custom/custom_object.c (custom_update_data):
11120 * objects/UML/state.c (state_update_data):
11121 * objects/UML/small_package.c (smallpackage_update_data):
11122 * objects/UML/object.c (objet_update_data):
11123 * objects/UML/note.c (note_update_data):
11124 * objects/UML/node.c (node_update_data):
11125 * objects/UML/component.c (component_update_data):
11126 * objects/UML/classicon.c (classicon_update_data):
11127 * objects/UML/actor.c (actor_update_data):
11128 * objects/SADT/box.c (sadtbox_update_data):
11129 * objects/FS/function.c (function_update_data):
11130 All now update text boundaries from update_data.
11132 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
11135 2002-04-26 Hans Breuer <hans@breuer.org>
11137 * config.h.win32 : added VERSION definition here
11138 (and removed from makefile.msc's)
11140 * app/makefile.msc : added new files
11142 * app/app_procs.c (app_init): remove sheets_dialog_create()
11143 from start-up and ...
11145 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
11146 sheet_dialog here when it is really needed.
11147 #include "../lib/message.h", make sheets_dialog_create()
11148 return it's success or failing on (!custom_type_symbol).
11149 Although editing shapes is nice IMHO it isn't crucial enough
11150 to abort() Dia if it isn't possible.
11152 * app/sheet.h : adapt create_sheet_dialog() prototype
11154 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
11156 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
11157 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
11158 name space corrections for utime() and utim_buf #ifdef
11161 * lib/libdia.def : export new sheet functions
11163 * lib/makefile.msc : added new files
11165 * lib/render.c : don't put draw_bezier_with_arrows() in
11166 the DrawLineWithArrowsFunc slot
11168 * objects/custom/custom_object.c : #include <gmodule.h>
11169 and export 'custom_type' via G_MODULE_EXPORT
11171 * objects/uml/class_dialog.c : removed 'incompatible
11172 types' warnings. Some refactoring while making it fit
11173 on screen with 800x600 again.
11175 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
11177 * plug-ins/python/pydia-handle.h : extra parameter to
11178 PyDiaHandle_New to store the owner of the handle
11179 * plug-ins/python/pydia-handle.c : store handle owner
11180 on construction and use it in new method .connect()
11181 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
11182 adapt to changed prototype
11184 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
11186 * lib/text.c (text_calc_boundingbox): Will now return early if box
11189 * objects/flowchart/box.c (box_update_data): Now updates text
11190 width info from update_data.
11192 2002-04-23 Steffen Macke <sdteffen@web.de>
11194 * plug-ins/xfig/xfig-import.c: fixed text import
11196 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
11198 * app/export_png.c: Moved dialog functions to their own file.
11199 * app/dialogs.[ch]: New files with standard functions for creating
11200 small, transient dialogs (e.g. export options).
11201 * app/Makefile.am: Added dialogs.[ch]
11203 2002-04-19 Steffen Macke <sdteffen@web.de>
11205 * shapes/Misc/folder.*:
11206 * shapes/Misc/file.*:
11207 * shapes/Misc/Makefile.am:
11208 * shapes/Makefile.am:
11209 * sheets/Misc.sheet.in:
11210 * sheets/Makefile.am:
11211 * configure.in: added new Misc sheet containing filesystem shapes
11213 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
11215 * app/lineprops_area.c: Arrow selector in toolbox changed to use
11216 standard arrowdraw code. Line is thinner to make some arrowheads
11219 2002-04-18 Steffen Macke <sdteffen@web.de>
11221 * sheets/network.sheet.in:
11222 * shapes/network/telephone.shape:
11223 * shapes/network/Makefile.am: added telephone shape
11225 2002-04-16 Steffen Macke <sdteffen@web.de>
11227 * sheets/EML.sheet.in: commented out unavailable shapes
11229 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
11231 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
11232 variable assignment.
11234 2002-04-15 Steffen Macke <sdteffen@web.de>
11236 * plug-ins/dxf/dxf-import.c: text import works again
11237 * shapes/Pneumatic/Makefile.am: added compush shape
11238 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11241 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
11243 * All these modifications are for the 'Sheets and Objects' dialog
11246 * app/pixmaps/line_break.xpm: new icon representing a line break.
11248 * app/pixmaps/n_a.xpm: new empty icon representing not available.
11250 * app/Makefile.am: added sheets_*.[ch] files to compile list.
11252 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11254 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11256 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
11258 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11260 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11262 * app/sheets_dialog_callbacks.h: [new file] support for " " "
11264 * app/interface.c: added 'interface_current_sheet_name' global to
11265 fill_sheet_wbox(); made fill_sheet_menu() non-static
11267 * app/interface.h: added extern declaration for aboves.
11269 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11271 * app/sheets.h: [new file] declarations for backing store structures
11273 * lib/sheet.c: modification of new_sheet() parameters; introduction
11274 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11275 changes to load_register_sheet().
11277 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11278 added 'has_icon_on_sheet' flag to SheetObject structure; added
11279 'filename', 'scope', 'shadowing' fields to Sheet structure.
11281 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11284 * lib/plug-isn.h: see above.
11286 * lib/object.c: added 'sheet.h' to include list; added several
11288 to detect objects which are not found on any sheet (for future use)
11289 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11290 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11292 * lib/object.h: added public declarations for above functions where
11295 * objects/custom/custom.c: made custom_object_load() non-static so we
11296 can load and interpret .shape files from the Sheets & Objects dialog
11298 * objects/custom/custom_object.c: made 'custom_type' non-static so
11299 we can differentiate between SVG shapes and other types.a
11301 2002-04-07 Hans Breuer <hans@breuer.org>
11303 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11304 from 2002-01-22 to not destroy diagram->data->selected.
11305 Avoids to crash on Objects/Align/Vertical/Top
11307 * app/render_eps.c (draw_string) : un-const buffer
11308 It isn't at all const (g_malloc(), assignment, g_free()).
11309 Doesn't gcc catch such ?
11311 * lib/arrows.h : prototype calculate_arrow_point()
11313 * lib/font.c (font_get_suckfont) : no need to
11314 special case gdk_draw_string() with GTK_TALKS_UTF8,
11315 cause all the parameter differences are handled above
11317 * lib/libdia.def : updated externals
11319 * lib/makefile.msc : removed string_prerenderer, added render
11321 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11322 is expected. [Sometimes it's good to read compiler warnings.]
11324 * objects/standard/image.c : simplified by use of g_strconcat()
11326 * plug-ins/python/makefile.msc : updated for Python 2.2
11328 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
11330 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11331 directionality problem for zero-length line segments.
11333 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
11335 * app/diagram.c (diagram_ungroup_selected)
11336 (diagram_update_menu_sensitivity): Now allows ungrouping of
11337 several groups at once.
11339 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
11341 * lib/render.c, all renderers: Binary incompatibility, change to
11342 expandable renderops structure.
11344 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
11346 * objects/standard/Makefile.am:
11347 * objects/network/Makefile.am:
11348 * objects/UML/Makefile.am:
11349 * objects/ER/Makefile.am:
11350 * objects/FS/Makefile.am:
11351 * objects/flowchart/Makefile.am:
11352 * objects/custom/Makefile.am:
11353 * objects/GRAFCET/Makefile.am:
11354 * objects/chronogram/Makefile.am:
11355 * objects/SADT/Makefile.am:
11356 * plug-ins/cgm/Makefile.am:
11357 * plug-ins/pstricks/Makefile.am:
11358 * plug-ins/hpgl/Makefile.am:
11359 * plug-ins/wpg/Makefile.am:
11360 * plug-ins/svg/Makefile.am:
11361 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11363 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
11365 * app/render_eps.c: Support for dumping TrueType fonts (taken from
11368 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
11370 * lib/render.c: New abstract super class for renderers.
11372 2002-03-07 Akira TAGOH <tagoh@redhat.com>
11374 * objects/ER/attribute.c (attribute_save): save a font property.
11375 (attribute_load): load a font property, and if can't load it, it's
11378 * objects/ER/entity.c (entity_save): save a font property.
11379 (entity_load): load a font property, and if can't load it, it's
11382 * objects/ER/relationship.c (relationship_save): save a font property.
11383 (relationship_load): load a font property, and if can't load it, it's
11386 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11388 (umlclass_save): save the font and the font size properties.
11389 (umlclass_load): load the font and the font size properties.
11391 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
11393 * lib/string_prerenderer.[ch] (REMOVED):
11395 * lib/diagramdata.c:
11397 * app/render_eps.c: got rid of the string-specific string
11398 prerenderer, transitioned its functionality towards Lars'
11399 two-phase rendering
11401 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
11403 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
11404 may need to rerun aclocal.
11406 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
11408 * lib/font.c: First attempt at Unicodeness for Freetype.
11410 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11412 * lib/font.c (font_string_width): Fixed font_string_width for
11413 freetype. BB is now almost right.
11415 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
11417 * app/render_eps.h:
11418 * app/paginate_psprint.c (paginate_psprint):
11420 * app/render_eps.c: Support for dumping postscript fonts into
11421 postscript files with freetype. Fairly primitive, but works.
11422 Unicode version may have problems.
11424 2002-02-28 Akira TAGOH <tagoh@redhat.com>
11426 * objects/UML/class_dialog.c (class_read_from_dialog)
11427 (class_fill_in_dialog), (class_create_page): add the font selector and
11428 the font size selector.
11430 * objects/UML/class.c (umlclass_draw): uses each font_height.
11431 (umlclass_calculate_data): ditto.
11432 (fill_in_fontdata): add initial value of new font_height.
11433 (umlclass_copy): add new font_height.
11435 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
11437 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11439 * lib/font.c: calculate font metrics properly and stop guessing at
11442 2002-02-28 Akira TAGOH <tagoh@redhat.com>
11444 * configure.in: changed gtk_advancement value to dia_talks_utf8.
11445 right now Dia is working with UTF-8 internally. it means Dia probably
11446 support most languages also including the languages which heretofore
11447 didn't work correctly.
11449 2002-02-26 Akira TAGOH <tagoh@redhat.com>
11451 * objects/FS/function.c: add related text properties.
11452 (function_get_props), (function_set_props): add handling attribute.
11454 * objects/FS/flow.c: add related text properties.
11455 (flow_get_props), (flow_set_props): add handling attribute.
11457 * objects/FS/flow-ortho.c: add related text properties.
11458 (orthflow_set_props), (orthflow_get_props): add handling attribute.
11460 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11462 * objects/ER/entity.c: ditto.
11464 * objects/ER/attribute.c: ditto.
11466 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
11468 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11470 * autogen.sh: add a check for missing intltoolize.
11472 2002-02-20 Akira TAGOH <tagoh@redhat.com>
11474 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11475 charcode, it was registered the duplicate item to HashTable. fix.
11477 * app/render_gnomeprint.c (get_width_string): add new function.
11478 (draw_string): fix non-multibyte specific code.
11480 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
11482 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11484 * lib/font.c: do not try to search paths that do not begin with
11485 '/', like X Font Server addresses.
11487 * objects/UML/message.c (message_draw): free mname when not
11488 message->text but CREATE or DESTROY.
11490 * objects/UML/uml.h:
11491 * objects/UML/uml.c:
11492 * objects/UML/class_dialog.c: added code to handle a stereotype
11493 attribute for operations.
11495 2002-02-19 Akira TAGOH <tagoh@redhat.com>
11497 * lib/Makefile.am: add LIBART_CFLAGS.
11499 2002-02-15 Hans Breuer <hans@breuer.org>
11501 * lib/font.c (font_get_suck_font): the black and white pixel values
11502 need to be taken from a 1 bit colormap rather than the default colormap.
11503 (fixed again, last time was 2000-05-26)
11505 Also handle the case where GTK_TALKS_UTF8 and expects all strings
11506 passed in to be in this encoding.
11508 * lib/libdia.def : export suck_font_free()
11510 * lib/text.c (text_draw) : avoid circular dependency to ../app
11511 at least for the !USE_XIM case, where it is unnecessary.
11513 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
11515 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11517 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11518 * sheets/Circuit.sheet.in: added new shape microphone
11519 * shapes/Circuit/speaker_de.shape: Added a connection point.
11521 2002-02-13 Akira TAGOH <tagoh@redhat.com>
11523 * app/render_libart.c (draw_string): fixed build issue for Win32.
11525 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11528 * configure.in: fixed testing gtk_advancement.
11530 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11532 2002-02-12 Akira TAGOH <tagoh@redhat.com>
11534 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11537 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
11539 * app/group.c (group_copy): Made new object properly initialized
11542 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
11544 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11546 2002-02-10 Akira TAGOH <tagoh@redhat.com>
11548 * lib/text.c (text_draw): fixed XIM transaction.
11550 * app/interface.c (create_display_shell): add signal for
11553 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11555 (set_input_dialog): remove.
11556 (ddisplay_canvas_events): remove XIM transaction. it can't transact
11557 correctly on this function.
11559 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11562 * app/export_png.c: Added checks for interactivity (maybe this
11563 should be a hook after all?).
11565 * app/filedlg.c (file_export_callback): Made export dialog add
11566 suffix when reopened.
11568 * app/export_png.c: Added dialog asking for export size.
11570 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11572 * lib/widgets.c: Fixed font reselection problem and first font
11575 * objects/UML/actor.c (actor_update_data): Changed to have
11576 connection points below text.
11578 2002-02-08 Akira TAGOH <tagoh@redhat.com>
11580 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11583 2002-02-07 Akira TAGOH <tagoh@redhat.com>
11585 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11586 strings which is given.
11587 (suck_font): remove. it's any longer needed.
11589 * app/render_libart.c (set_font): don't get suckfont.
11590 (draw_string): get suckfont only which is needed for now.
11592 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11594 * lib/text.c: Fixes for misunderstood width functions.
11596 2002-02-05 Hans Breuer <hans@breuer.org>
11598 * lib/dia_xml.c : use g_strconcat() instead of
11599 malloc, strcpy, strcat dance
11600 * app/properties.c : same here and plug memory leak
11601 (gtk functions don't eat strings)
11603 * objects/UML/message.c : there is no g_sprintf()
11604 use g_strdup_printf() instead ...
11606 2002-02-05 Akira TAGOH <tagoh@redhat.com>
11608 * lib/message.c (gtk_message_internal): doesn't need to convert to
11611 * app/render_libart.c (draw_string): fixed transaction for UTF-8
11613 (get_text_width): ditto.
11615 * app/Makefile.am (EXTRA_DIST):
11616 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11618 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11619 This function needs ifdef HAVE_FREETYPE because don't use it for
11622 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
11624 * NEWS: updated with the new dependencies.
11626 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11628 * objects/UML/class.h:
11629 * objects/UML/class.c:
11630 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11631 property using a GtkMenu. Options are Undefined, In, Out, In & Out
11633 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
11635 * app/render_libart.c: Slow but working libart freetype renderer,
11638 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11640 * app/render_gdk.c (draw_string): Fixed gc_function bug.
11642 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11644 * lib/font.c (freetype_render_string):
11646 * app/render_gdk.c:
11647 * app/render_gdk.h: Changed freetype_render_string to use
11648 callback. Rendering is broken.
11650 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
11652 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11654 * objects/UML/uml.h:
11655 * objects/UML/uml.c: added UMLInheritanceType and isQuery
11656 (constant) UML Operation attributes. UMLInheritanceType is either
11657 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
11659 * objects/UML/class.h:
11660 * objects/UML/class.c:
11661 * objetcs/UML/class_dialog.c: added code to handle new
11662 UMLOperation attributes via a GtkMenu and a checkbox.
11664 2002-02-03 Akira TAGOH <tagoh@redhat.com>
11666 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11667 several client doesn't work with previous codes.
11669 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
11671 * lib/font.c (freetype_render_string): Kerning. Very few fonts
11674 2002-02-02 Akira TAGOH <tagoh@redhat.com>
11676 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11677 when doing the operation like invert the objects after active view is
11678 destroyed. when changes focus, it needs to set active_display.
11680 * app/layer_dialog.c (dia_layer_update_from_layer):
11681 (layer_dialog_edit_layer): need to convert to locale encoding
11682 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11683 (edit_layer_ok_callback):
11684 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11686 * lib/diagramdata.c (new_diagram_data): ditto.
11688 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11690 * lib/diagramdata.c (new_layer): use utfchar instead of char for
11693 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11694 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11695 it's needed for now. also this function needs prototype declaration.
11697 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
11699 * lib/widgets.c: Style now functional on font selector. Some leak
11700 possible, but doesn't show up under stress test.
11702 2002-01-31 Akira TAGOH <tagoh@redhat.com>
11704 * app/plugin-manager.c (clist_select_row): name and description needs to
11705 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11706 (get_plugin_manager): ditto.
11708 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11710 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11713 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11714 when prop->string_data is NULL.
11716 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11719 * lib/widgets.h: New font selector separating font and style.
11720 Style not functional yet.
11722 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
11725 * app/render_gdk.c (draw_string): More freetype support, now
11726 renders text. Still broken is font selection and exporting.
11728 2002-01-30 Akira TAGOH <tagoh@redhat.com>
11730 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11733 * objects/chronogram/chronoline.c (chronoline_create): ditto.
11735 * objects/UML/usecase.c (usecase_create): ditto.
11737 * objects/UML/state.c (state_create): ditto.
11739 * objects/UML/object.c (objet_create): ditto.
11741 * objects/UML/node.c (node_create): ditto.
11743 * objects/UML/message.c (message_create): ditto.
11745 * objects/UML/component.c (component_create): ditto.
11747 * objects/UML/classicon.c (classicon_create): ditto.
11749 * objects/UML/actor.c (actor_create): ditto.
11751 * objects/SADT/box.c (sadtbox_create): ditto.
11753 * objects/SADT/annotation.c (annotation_create): ditto.
11755 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11757 * objects/GRAFCET/step.c (STEP_FONT):
11758 * (step_create): ditto.
11760 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11762 * objects/GRAFCET/action.c (ACTION_FONT):
11763 (action_create): ditto.
11765 * objects/FS/function.c (function_create): ditto.
11767 * objects/FS/flow.c (flow_create):
11769 (flow_apply_defaults): ditto.
11771 * objects/FS/flow-poly.c (flow_create):
11773 (flow_apply_defaults): ditto.
11775 * objects/FS/flow-ortho.c (orthflow_create):
11777 (orthflow_apply_defaults): ditto.
11779 * objects/ER/relationship.c: use utfchar instead of char for structure.
11780 (relationship_create): name needs to convert to UTF-8.
11782 * objects/ER/attribute.c: use utfchar instead of char for structure.
11783 (attribute_create): name needs to convert to UTF-8.
11785 * objects/ER/entity.c: use utfchar instead of char for structure.
11786 (entity_create): name needs to convert to UTF-8.
11788 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11789 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11790 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11791 items. if GTK_TALKS_UTF8 isn't defined.
11793 2002-01-29 Akira TAGOH <tagoh@redhat.com>
11795 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11796 it was my careless mistake...
11798 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11799 a font name, because there are strings which isn't shown by "Courier".
11800 We need to consider a way to feel free to choose a font at runtime.
11802 * lib/render_object.c (render_object_load): ditto.
11804 * lib/text.c (data_text): ditto.
11806 * objects/EML/instantiation.c (instantiation_create): ditto.
11808 * objects/EML/interaction-ortho.c (interaction_ortho_create):
11809 (interaction_ortho_load): ditto.
11811 * objects/EML/interaction.c (interaction_create):
11812 (interaction_load): ditto.
11814 * objects/EML/process.c (fill_in_fontdata): ditto.
11816 * objects/ER/attribute.c (attribute_create):
11817 (attribute_load): ditto.
11819 * objects/ER/entity.c (entity_create):
11820 (entity_load): ditto.
11822 * objects/ER/relationship.c (relationship_create):
11823 (relationship_load): ditto.
11825 * objects/UML/association.c (association_create):
11826 (association_load): ditto.
11828 * objects/UML/class.c (fill_in_fontdata): ditto.
11830 * objects/UML/constraint.c (constraint_create): ditto.
11832 * objects/UML/dependency.c (dependency_create): ditto.
11834 * objects/UML/generalization.c (generalization_create): ditto.
11836 * objects/UML/implements.c (implements_create): ditto.
11838 * objects/UML/large_package.c (largepackage_create): ditto.
11840 * objects/UML/note.c (note_create): ditto.
11842 * objects/UML/realizes.c (realizes_create): ditto.
11844 * objects/UML/small_package.c (smallpackage_create): ditto.
11846 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11848 * objects/custom/custom_object.c (custom_create): ditto.
11850 * objects/network/antenna.c (render_to_store): ditto.
11852 * objects/network/computer.c (render_to_store): ditto.
11854 * objects/network/disc.c (render_to_store): ditto.
11856 * objects/network/flash.c (render_to_store): ditto.
11858 * objects/network/hub.c (render_to_store): ditto.
11860 * objects/network/modem.c (render_to_store): ditto.
11862 * objects/network/modularswitch.c (render_to_store): ditto.
11864 * objects/network/monitor.c (render_to_store): ditto.
11866 * objects/network/printer.c (render_to_store): ditto.
11868 * objects/network/rj45plug.c (render_to_store): ditto.
11870 * objects/network/scead-plug.c (render_to_store): ditto.
11872 * objects/standard/textobj.c (textobj_load): ditto.
11874 * objects/sybase/client.c (render_to_store): ditto.
11876 * objects/sybase/dataserver.c (render_to_store): ditto.
11878 * objects/sybase/ltm.c (render_to_store): ditto.
11880 * objects/sybase/repserver.c (render_to_store): ditto.
11882 * objects/sybase/rsm.c (render_to_store): ditto.
11884 * objects/sybase/stableq.c (render_to_store): ditto.
11886 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
11888 * objects/UML/uml.h (UML_STEREOTYPE_START):
11889 (UML_STEREOTYPE_END): changes default strings.
11891 2002-01-28 Akira TAGOH <tagoh@redhat.com>
11893 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
11894 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
11895 which is given to arguments isn't UTF-8. so don't need to convert it.
11896 if GTK+ handle UTF-8, also don't need to convert it.
11898 (bracketted_to_string): fixed transaction for UTF-8 support.
11899 also start/end bracket is not necessarily 1 character. so that when use
11900 strend(), it doesn't work correctly.
11901 (string_to_stereotype): use utfchar instead of char.
11902 (remove_stereotype_from_string): ditto.
11903 (stereotype_to_string): ditto.
11905 * objects/UML/stereotype.h: ditto.
11907 * objects/UML/message.c: use utfchar instead of char for structure.
11908 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
11910 * objects/UML/small_package.c: use utfchar instead of char for structure.
11912 * objects/UML/realizes.c: ditto.
11914 * objects/UML/object.c: ditto.
11916 * objects/UML/large_package.c: ditto.
11918 * objects/UML/implements.c: ditto.
11920 * objects/UML/generalization.c: ditto.
11922 * objects/UML/dependency.c: ditto.
11924 * objects/UML/constraint.c: ditto.
11926 * objects/UML/component.c: ditto.
11928 * objects/UML/class_dialog.c (attributes_get_current_values):
11929 (attributes_list_new_callback, attributes_fill_in_dialog):
11930 (parameters_set_values, parameters_get_values):
11931 (parameters_get_current_values, parameters_list_new_callback):
11932 (operations_set_values, operations_get_values):
11933 (operations_get_current_values, operations_list_new_callback):
11934 (operations_fill_in_dialog, templates_set_values):
11935 (templates_get_values, templates_get_current_values):
11936 (templates_list_new_callback, templates_fill_in_dialog):
11937 fixed transaction for UTF-8 support.
11939 2002-01-27 Akira TAGOH <tagoh@redhat.com>
11941 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
11943 * objects/UML/class_dialog.c (class_read_from_dialog):
11944 (class_fill_in_dialog):
11945 (attributes_get_values): ditto.
11947 * objects/UML/actor.c (actor_create): ditto.
11949 * objects/UML/class.c (umlclass_calculate_data): ditto.
11951 * objects/UML/association.c (association_apply_properties):
11952 (fill_in_dialog): ditto.
11954 * objects/UML/uml.c (uml_get_attribute_string):
11955 (uml_get_operation_string):
11956 (uml_get_parameter_string):
11957 (uml_get_formalparameter_string): use utfchar instead of char.
11959 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
11960 UML_STEREOTYPE_END.
11962 * objects/UML/class.h: use utfchar instead of char.
11964 * lib/dia_xml.c (data_add_string): ditto.
11966 * lib/text.c (text_insert_char): fixed characters# calculation
11967 when includes multibytes character in strings.
11969 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
11971 Patch from Richard Rowell <rwrowell@bellsouth.net>:
11973 * app/lineprops_area.c:
11976 * lib/widgets.c: added crow foot arrow and cross arrow
11978 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
11980 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
11982 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
11984 * po/update.pl (REMOVED):
11985 * po/update.sh (REMOVED):
11986 * xml-i18n-merge.in.kg (REMOVED):
11987 * xml-i18n-update.in.kg (REMOVED):
11988 * sheets/Makefile.am:
11991 * configure.in: converted from xml-i18n-tools to intltools
11993 This looks like it fixes the build bugs of the snapshot tarballs,
11994 and it supersedes #69611.
11996 2002-01-25 Akira TAGOH <tagoh@redhat.com>
11998 * lib/text.c (text_insert_char): fixed characters# calculation.
11999 it's not string length.
12001 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
12002 is defined, needs to convert a description to UTF-8.
12004 * app/render_gdk.c (get_text_width): fixed transaction for
12005 UTF-8 support. also should uses gdk_text_width_wc() instead
12006 of gdk_text_width().
12008 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
12009 is defined, needs to convert to locale encoding for display.
12010 Also use utfchar instead of char for argument.
12012 2002-01-24 Hans Breuer <hans@breuer.org>
12014 * app/commands.c(edit_paste_callback and more) :
12015 call diagram_modified(ddisp->diagram) to fix #68083
12016 (help_menu_callback) : plug a DIR leak
12018 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
12019 GTK_TALKS_UTF8_WE_DONT
12021 * app/render_gdk.c(get_text_with) : it's a bad idea to use
12022 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
12023 gdk_text_width(). The length value is still questionable ...
12025 * lib/charconv.c : use functions already available in early
12026 GLIB-1.3 days whiches API hasn't changed since, to avoid
12027 version problems with the win32 build
12029 * lib/font.c : finally fix #58045 and #68208
12031 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
12033 2002-01-24 Akira TAGOH <tagoh@redhat.com>
12035 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
12036 no strings, fixed transaction.
12038 * lib/charconv.h: fixed typo.
12040 * app/menus.c: fixed typo.
12042 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
12044 * objects/UML/object.c: attrib's type uses utfchar instead of char.
12046 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
12048 * lib/text.c (text_create_change): use unichar instead of char.
12050 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
12051 use utfchar instead of char.
12053 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
12056 * lib/charconv.c (charconv_utf8_get_char): add new function.
12058 2002-01-23 Akira TAGOH <tagoh@redhat.com>
12060 * lib/text.c (text_delete_forward, text_delete_backward,
12061 text_split_line): fixed transaction for UTF-8 support.
12063 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
12064 strlen[] has string length for UTF-8, so has to use alloclen[].
12068 * .cvsignore: add dia.pot.
12070 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
12072 * configure.in: Added "sk" to ALL_LINGUAS.
12074 2002-01-22 Akira TAGOH <tagoh@redhat.com>
12076 * lib/text.c (text_set_string, new_text, text_copy,
12077 text_get_string_copy, text_join_lines): use utfchar instead of gchar
12080 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
12083 * lib/charconv.c (charconv_utf8_strchr): add new function.
12085 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
12087 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
12089 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
12090 strings to the appropriate encoding.
12092 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
12094 * app/object_ops.c (object_list_align_[hv]): Leak fix.
12096 * lib/Makefile.am (INCLUDES): Added debug flags.
12098 * app/object_ops.c: Fixed ordering problem of align equi-distant &
12101 2002-01-21 Akira TAGOH <tagoh@redhat.com>
12103 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
12104 gdk_string_width().
12106 * objects/GRAFCET/boolequation.c: fixed invalid comment.
12108 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
12109 when defined UNICODE_WORK_IN_PROGRESS.
12111 * lib/dia_xml.c (data_add_string): fixed typo.
12113 2002-01-20 Akira TAGOH <tagoh@redhat.com>
12115 * configure.in: fixed test gtk_advancement.
12117 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
12119 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
12122 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12124 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
12125 tool tips, preferences, and arbitrarily long ~/.dia/history
12127 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
12128 removed 'Open Recent'; added new separators for recent documents on
12131 * app/interface.[ch] (interface_get_toolbox_shell): new function
12133 * app/diagram.c: added new parameter to recent_file_history_add() call
12135 * app/preferences.[ch]: added new 'Recent documents list size'
12138 2002-01-18 Akira TAGOH <tagoh@redhat.com>
12140 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
12141 if it failed, should be used gdk_font_load ().
12143 * lib/font.c (font_data): added the font entries for CJK.
12145 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
12147 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12149 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
12151 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
12153 Patch from Martin Cracauer <cracauer@cons.org>:
12155 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
12158 2002-01-01 Hans Breuer <hans@breuer.org>
12160 * app/command.c : optional use GDI printing on windoze
12162 * app/preferences.[hc] : add option 'prefer_psprint' to
12163 select the print engine to use (could be used for Dia/Gnome
12166 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
12167 wmf plug-in with the common win32 print api. Now printing
12168 should work almost as expected from a windows program :-)
12170 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
12171 to .edit_delete to avoid clashes with C++
12173 * app/makefile.msc : updated for GDI printing
12175 * plug-ins/wmf/wmf.cpp : some small modifications to support
12176 GDI printing. Also swap R and B channel in draw_image()
12178 * app/makefile.am : added windows only files to EXTRA_DIST
12180 * objects/uml/class.c(umlclass_set_props) : force recalculation
12181 when applying properties
12183 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
12184 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
12185 many incompatible changes (and would force a gtk update)
12187 * objects/makefile.msc : don't build C-Objects which are
12188 already available as 'pure shape'
12190 * plug-ins/makefile.msc : remove diaimport from build. It was
12191 only available via mailing-list and is broken since the
12195 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
12197 * app/preferences.[hc] : tweaked preferences.c to make
12198 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
12199 added some more DiagramTree prefererences and their own
12202 * app/diagram_tree.[hc] : allow to sort by object type or name
12203 and hide by type ...
12204 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
12205 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
12207 * app/diagram_tree_window.c : handle hidden types and window
12210 2001-12-20 Hans Breuer <hans@breuer.org>
12212 * plug-ins/python/Makefile.am : patch from Peter Moulder
12213 <pmoulder@csse.monash.edu.au> to make the python plug-in
12214 compile on *nix too.
12216 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
12218 Patch from Alan <horkana@tcd.ie>:
12220 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
12222 2001-11-20 Hans Breuer <hans@breuer.org>
12224 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12226 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
12228 * app/diagram_tree.[hc] : Added new functions and types for
12229 sorting diagram and objects, and attaching the popup menus.
12231 * app/preferences.h: Added more diagram tree preferences, using a
12232 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12233 height and width of the diagram tree window and the default sort
12234 orders for diagrams and objects.
12236 * app/preferences.c (prefs_data): Added new entries for the new
12237 diagram tree preferences.
12239 * app/preferences.c (prefs_tabs): New tab for diagram tree
12242 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
12243 * app/diagram_tree_window.c (diagram_tree_window_new):
12244 * app/interface.c (create_tree_window): The diagram tree window is
12245 initialised using the DiagramTreeConfig part of prefs.
12248 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
12250 * app/diagram_tree_menu.[hc]: New files. Functions to create the
12251 diagram tree popup menus.
12253 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12254 the diagram tree popup menus.
12256 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12259 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
12261 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12262 double-clicking a diagram tree node raises the diagram window
12263 to the foreground (and, if a object node was clicked, selects the
12264 object in the diagram).
12266 * app/diagram_tree.c (select_tree_widget): selecting an object
12267 node with single click simply updates it (no raise).
12269 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
12270 These changes make the diagram tree lazy: it is not created unless
12271 the diagram tree window is requested.
12273 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12274 function for creating the tree window.
12276 * app/interface.c (create_tree_window): call
12277 create_diagram_tree_window() instead of diagram_window().
12279 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
12280 (diagram_tree_update, diagram_tree_update_name)
12281 (diagram_tree_add_object, diagram_tree_add_objects)
12282 (diagram_tree_remove_object, diagram_tree_remove_objects)
12283 (diagram_tree_update_object): accept a NULL tree as a nominal
12284 argument (and do nothing in this case!), so that the diagram tree
12285 is not initialised if not used.
12287 * app/diagram_tree_window.c (diagram_tree): do not create the
12288 diagram tree until diagram_window() or diagtree_show_callback()
12291 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
12292 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12294 * app/diagram_tree_window.[hc] : (new files) implementation of
12295 the diagram tree window, a container for a diagram tree. [Removed
12296 the horizontal scroll bar glitch by disableing it]
12298 * app/diagram_tree.[hc] : (new files) implementation of the
12299 diagram tree widget. [Don't rely on the layers GPtrArray to be
12300 NULL terminated, but use its ->len field]
12302 * app/Makefile.am (dia_core_files): added new files
12303 diagram_tree.[hc] and diagram_tree_window.[hc]
12305 * app/interface.[hc] : (create_tree_window): this function
12306 creates the new diagram tree window widget
12308 * app/undo.c (delete_objects_apply) (delete_objects_revert)
12309 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
12310 (ungroup_objects_apply) (ungroup_objects_revert):
12311 every time that an undoable command modifies a diagram
12312 adding/removing/(un)grouping objects, a diagram_tree_something() is
12313 invoked to keep the diagram tree window in sync
12315 * app/properties.c (properties_apply): call to
12316 diagram_object_modified(), which updates the diagram tree window
12317 when the properties of an object are modified
12319 * app/preferences.[hc] : new "show_diagram_tree" configuration option
12320 (whether the diagram tree window should be shown on dia startup)
12322 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12324 * app/diagram.h (diagram_object_modified): callback notifying of a
12325 diagram object modification
12327 * app/diagram.c (diagram_load_into): added call to
12328 diagram_tree_add() to add newly loaded diagrams to the diagram
12330 (diagram_destroy): call to diagram_tree_remove() to remove a
12331 destroyed diagram from the diagram tree window
12332 (diagram_add_object): call to diagram_tree_add_object() to add an
12333 object to the diagram tree window
12334 (diagram_add_object_list): as above, but with an object list
12335 (diagram_selected_break_external): deletion of objects from the
12336 diagram is detected here, and diagram_tree_remove_object() is
12337 invoked to remove the object from the diagram tree window (it
12338 would be nice to have a diagram_remove_object() in the Diagram
12340 (diagram_set_filename): update the diagram tree window when a
12341 diagram's filename changes
12343 * app/commands.c (file_new_callback): added call to
12344 diagram_tree_add() to add newly created diagrams to the diagram
12347 * app/app_procs.c (app_init): added call to create_tree_window()
12349 * app/makefile.msc : updated
12351 2001-10-28 Hans Breuer <hans@breuer.org>
12353 * app/preferences.h (DiaPreferences):
12354 * app/preferences.c (prefs_data): new "show_diagram_tree"
12355 configuration option (whether the diagram tree window should be
12356 shown on dia startup)
12358 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12359 entry (both for GNOME and gtk)
12361 * app/diagram.h (diagram_object_modified): callback notifying of a
12362 diagram object modification
12364 * app/diagram.c (diagram_load_into): added call to
12365 diagram_tree_add() to add newly loaded diagrams to the diagram
12367 (diagram_destroy): call to diagram_tree_remove() to remove a
12368 destroyed diagram from the diagram tree window
12369 (diagram_add_object): call to diagram_tree_add_object() to add an
12370 object to the diagram tree window
12371 (diagram_add_object_list): as above, but with an object list
12372 (diagram_selected_break_external): deletion of objects from the
12373 diagram is detected here, and diagram_tree_remove_object() is
12374 invoked to remove the object from the diagram tree window (it
12375 would be nice to have a diagram_remove_object() in the Diagram
12377 (diagram_set_filename): update the diagram tree window when a
12378 diagram's filename changes
12380 * app/commands.c (file_new_callback): added call to
12381 diagram_tree_add() to add newly created diagrams to the diagram
12384 * app/app_procs.c (app_init): added call to create_tree_window()
12386 2001-10-28 Hans Breuer <hans@breuer.org>
12388 * plug-ins/python/pydia-property.c : apparently I missed
12389 to commit this last time. Now it has some more SetAttr
12390 support (apply from property)
12392 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12394 * plug-ins/python/pydia-text.[ch] : new files
12396 2001-10-14 Hans Breuer <hans@breuer.org>
12398 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12399 strings. Use g_strdup() for these.
12401 libxml2 does not produce 'any extra indentation when saving a tree'
12402 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12403 libxml(1). To get human readable XML some extra tweaking is required.
12404 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12405 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12406 * app/preferences.[ch] : initialize 'pretty_formated_xml'
12408 * lib/libdia.def : updated externals
12410 * lib/properties.h : add prototype for prop_list_from_single ()
12412 * plug-ins/makefile.msc : build metapost plug-in
12414 * plug-ins/metapost/render_metapost.c : msvc does not like
12415 switch labels without operation 'default: }'. Added a noop.
12417 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12418 * plug-ins/python/diamodule.c : added PyDiaText
12419 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12420 Although the python plug-in does not use libxml at all, the
12421 headers are required to use the lib/prop*.h headers
12423 * plug-ins/python/pydia-diagramdata.c : added wrappers for
12424 update_extents and get_sorted_selected (should I duplicate
12425 more functions from PyDiaDiagram or should they be moved?)
12427 * plug-ins/python/pydia-properties.c : allow to set (some) properties
12428 through the dictionary api
12429 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12430 * plug-ins/python/pydia-property.c : implement it (currently only
12431 string properties can be set)
12433 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12434 Quoting myself: 'Still not convinced that this is better than an
12435 integral property->type and some casting ...
12436 It is trading a straightforward 40 lines switch statement to
12437 this nice 'type safe' function mapping (about 125 lines)'
12438 (But now it works again, better than changing the News file :)
12440 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
12442 patch from <robert.young@dsto.defence.gov.au>:
12443 * objects/UML/component.c: remember to set font in UML component
12444 object (fixes #62132)
12446 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
12448 * plug-ins/metapost/metapost.c:
12449 * plug-ins/metapost/Makefile.am:
12450 * plug-ins/metapost/render_metapost.c:
12451 * plug-ins/metapost/render_metapost.h:
12452 Metapost renderer from Chris Sperandio
12454 2001-09-14 Hans Breuer <hans@breuer.org>
12456 * app/render_gdk.c : reflect the fact, that GTK already talks
12457 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12460 * app/render_libart.c : trying to fix #58045 but it appears
12461 to be an Gdk/win32, too.
12463 * lib/charconv.c : handle utf8 conversion with the help of
12464 glib-1.3 even in the !HAVE_UNICODE case.
12466 * lib/dia_xml.c : reduce complaing about missing encoding, by
12467 detecting if the default (utf8) would break the file.
12469 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
12471 * lib/charconv.c: (get_local_charset): at least please try to not
12472 silently change the logic, while avoiding crashes.
12474 * lib/font.c: (suck_font): put a #error, we have a nasty something
12475 to fix there before we switch to Gtk 2.0.
12477 2001-09-09 Hans Breuer <hans@breuer.org>
12479 * **/makefile.mingw : Approach to compile Dia with mingw.
12480 Compiling mostly works but running does not (yet) ...
12483 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
12484 Apparently mingw needs it too.
12485 - enable 'normalization' of a null verctor. Otherwise the beziergon
12486 bounding box calculation would be broken at least with msvc. What's
12487 the mathematical correct result of 0.0/0.0 ?
12489 * lib/dia_xml.c : isinf() for mingw too.
12491 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
12494 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
12495 Please don't do it.
12497 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12499 * lib/libdia.def : updated externals. Apparently mingw needs
12500 them to produce the right mangling.
12502 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12505 2001-09-08 Wang Jian <lark@linux.net.cn>
12507 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12509 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
12511 * lib/dia_xml_libxml.h:
12512 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12513 libxml1's code, to rework the output file before it gets committed
12514 to disk. This is rubbish, and will be removed when libxml2
12515 switches from discouraged to mandatory.
12516 All in all, this fixes #60152.
12519 * lib/charconv.c: (charconv_unichar_to_utf8):
12520 made the type of the input parameter explicitly an unsigned long.
12522 * configure.in: Added a check for libz (we must now include it
12523 explicitly, for xmlDiaSaveFile).
12525 * app/load_save.c: (diagram_data_save):
12526 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12527 (dia_pluginrc_write):
12528 * plug-ins/shape/shape-export.c: (new_shape_renderer),
12529 (end_render), (draw_string):
12530 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12533 Made sure we always write UTF-8 XML files, and through
12536 * NEWS: documented that fact.
12538 2001-09-07 James Henstridge <james@daa.com.au>
12540 * configure.in (found_libxml): refactor the check for libxml a
12541 little so that it handles finding both libxml1 and 2 better.
12543 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
12545 * app/app_procs.c: removed a spurious } which caused a compilation
12546 error in the (!HAVE_GNOME && HAVE_POPT_H) case
12548 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12549 don't know what ANSI X3.4-1968 is. I didn't know until this day,
12550 but it's just plain old ASCII. Added a check to shield the poor
12553 Patches from <robert.young@dsto.defence.gov.au>:
12555 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12556 width and height of text before calculating bounds. Fixes #59928
12558 * app/preferences.c: Moved grid related items into Grid Tab.
12560 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
12562 * app/interface.c: (create_zoom_widget): connected one more signal
12563 to the Zoom selector combo's list. Fixes #59879.
12565 * app/app_procs.[ch]: (app_init) (do_convert)
12566 (build_output_file_name): brought back into the main executable
12567 the rare useful bits of the ill-fated diaconv. This means we have
12568 one new feature : --export-to-format (-t), which should make
12569 writing conversion scripts easier, and a crude implementation of
12570 -t and -e for the poptless argument parsing, which means the Win32
12571 port should be able to take advantage of it (that should make
12572 resolving #58197 possible).
12574 * app/diaconv.c: kept the poor duck compiling (but that's about
12577 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12578 I've got it right).
12580 * NEWS: updated about the new feature above, and documented the
12581 "missing encoding specification" complaint.
12583 2001-09-01 Abel Cheung <maddog@linux.org.hk>
12585 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12587 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
12589 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12592 2001-09-01 James Henstridge <james@daa.com.au>
12594 * */Makefile.am: various changes to include missing files, and fix
12595 sheets dir to handle building with builddir != srcdir.
12597 * autogen.sh: unconditionally pass the --enable-maintainer-mode
12598 and --enable-db2html flags so that builds from CVS work correctly.
12600 * configure.in: increment version number. Also add an
12601 --enable-db2html flag. Without the flag, db2html won't be run (if
12602 the flag is passed and db2html is not present, do nothing).
12604 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
12606 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12607 even compiled. It's really too bad there is no lint tool easily
12608 available (or a more cautious, pedandic, paranoid and verbose
12609 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12611 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
12614 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12615 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12617 * app/menu.c: added ellipsis(...) to diagram properties menu item.
12618 * app/dia-props.c: diagram properties dialog contents did not
12619 represent current diagram settings.
12620 * app/dia-props.[ch]:
12621 * app/display.c: diagram properties contents now follows currently
12623 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12625 * AUTHORS: added Robert Young.
12627 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
12629 * app/modify_tool.c: (modify_button_release): Patch from
12630 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12631 #59090: if selection dragging was released outside of the window,
12632 artifacts of the selection box remained.
12634 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
12636 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12638 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
12641 * sheets/Makefile.am: prepared the terrain for the Version of
12642 xml-i18n-tools Which Comes After 0.9 (and which will feature at
12643 last a sane behaviour with XML files). Some reasonible delay
12644 before enforcing that version *will* be given.
12646 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12648 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12649 becomes a nonexistent symbol.
12651 2001-08-18 Hans Breuer <hans@breuer.org>
12653 * app/app_procs.c : made it compile without ENABLE_NLS
12655 * app/diap_callbacks.c : strcmp isn't guaranteed to work
12658 * app/load_save.c :
12660 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
12662 xmlGetProp, ... -> xmlFree
12663 malloc, strdup -> free
12664 g_new, g_malloc, g_strdup - > g_free
12666 * app/win32print.c : some more error checking, still not
12669 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12671 * lib/dia_xml.c : msvc still has no unistd.h
12674 * lib/sheets.c : temporary resolved libxml include brokeness
12676 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12677 changes. Compiles again, but doesn't do anything useful anymore.
12678 (see THE_PROP_TYPE_IS_INTEGRAL)
12680 * **/makefile.msc : updated to use LIBXML2
12682 * lib/libdia.def : reflect api changes
12684 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
12686 * config.h.win32: added defines telling that gtk speaks UTF8.
12687 Hans, I believe this reflects what GTK on Win32 does.
12689 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12691 * lib/prop_inttypes.c:
12693 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12696 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12697 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12698 search for plug-ins is done.
12699 * app/Makefile.am: made app/run_dia.sh use the // capability. No
12700 need to update this anymore if we get a new plug-in library (or
12703 * lib/dia_xml.c: #include <unistd.h> was missing.
12705 * lib/properties.h:
12706 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12707 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12710 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
12712 * sheets/civil.sheet: removed duplicate "Danish" entries.
12717 * sheets/Makefile.am:
12719 * Makefile.am: applied the xml-i18n-tools README's instructions.
12721 * po/(da de fr hu nl nn no sl).po: merged the translations from
12722 the sheet files into the .po files. I hope I haven't mixed
12724 * sheets/*.sheet (REMOVED):
12725 * sheets/*.sheet.in (NEW): moved the sheet files sans
12726 translations into .sheet.in files.
12728 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12729 because we don't yet want to force all translators to work using
12730 UTF-8 editors. We'll want to do that sometime (sooner rather than
12731 later). Okay, I sing a slightly different tune in po/ChangeLog...
12733 * dia.desktop (REMOVED):
12734 * dia.desktop.in (NEW): used also the x18t infrastructure for
12737 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12738 "official" version of x18t with support for .sheet files is available.
12739 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12740 "official" version of x18t which doesn't corrupt UTF-8 data in XML
12743 ** yes, we are now using xml-i18n-tools to manage the sheet
12744 translations. For the Win32 build, Nemo stores snapshots of
12745 translated strings next to the CVS snapshots. **
12747 * sheets/checktrans.py: suddenly, some sheets have lots of
12748 translations (objects which existed before sheets, mostly).
12749 Adapted the formatting.
12751 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12753 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12754 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12755 <robert.young@dsto.defence.gov.au>, to fix #59090.
12757 * app/display.c: (ddisplay_scroll): While at it, added some
12758 margin, so that autoscrolling can happen within a margin outside
12759 the diagram's extents.
12763 * app/disp_callbacks.c: Robert "forced" me to go when I usually
12764 don't, namely the app/ directory. So while I was there, I
12765 scratched a long-time itch. If no object has focus, pressing the
12766 space bar will select back the tool which was selected before the
12767 current one (I find this especially useful with "reset after create" !)
12769 * lib/proplist.c: (prop_list_from_single): Renamed
12770 prop_list_singleton() to avoid confusion with the Singleton
12771 pattern (which it definitely is not).
12773 * lib/propobject.c: (object_prop_by_name_type),
12774 (object_prop_by_name): The "flags" parameter was not necessary.
12775 These don't return synthetic properties, but properties built from
12776 a real property description list; therefore, we don't call
12777 make_new_prop() but use the existing property descriptor, which
12778 has perfectly valid (and meaningful) flags.
12780 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12781 new predicates better reflect the reason why properties exist when
12782 they're created by make_new_prop() or object_prop_by_name().
12784 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12785 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12788 * lib/properties.h: reflects all the above changes.
12790 * objects/SADT/arrow.c:
12791 * objects/SADT/annotation.c:
12792 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12795 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12797 * lib/properties.h:
12798 * lib/proplist.c: (prop_list_singleton):
12799 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12800 Added these, to simplify interactions of plug-ins with the StdProp
12805 * lib/dia_xml_libxml.h (NEW):
12810 * objects/custom/shape_info.c: A few prototypes were causing
12811 #include hell, because we generally attempt to not pull the whole
12812 libxml header set when we include dia_xml.h. Moved those
12813 prototypes away for the rare cases they're necessary.
12815 2001-08-15 Hans Breuer <hans@breuer.org>
12817 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12820 * lib/makefile.msc : updated
12822 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12823 use G_GNUC_FUNCTION instead.
12825 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12827 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12828 msvc instead of cleaning missing includes
12830 * plug-ins/wmf/wmf.cpp :
12831 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12833 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12840 * objects/custom/shape_info.c:
12841 * plug-ins/shape/shape-export.c:
12842 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12843 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12844 removed xmlKeepBlanksDefault(0) in favour for proper
12845 xmlIsBlankNode() testing. Lots of other fixups to use the
12846 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12847 make libxml1 output correct files.
12849 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12850 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12851 packages). If both devel packages are found, the build will stop
12852 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
12854 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12855 allocate the first handle :-)
12857 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12858 a cast and a sizeof.</gratuitous>
12860 * objects/custom/custom_object.c: (custom_copy): don't call
12861 text_get_attrbutes if the shape has no text...
12862 (custom_update_data): The info->resize_with_text code was a bit
12863 directive; basically, the shape's bounding box was forced to be
12864 proportional to the text's bounding box.... This fixes #57187.
12866 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
12867 default for info->aspect_ratio; unobfuscated a line about
12868 info->resize_with_text;
12870 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12872 * lib/properties.h: added comments next to the PROP_TYPEs to tell
12873 which C Property subclass to use.
12875 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
12876 cast-ridden form of setting properties in a list, in favour for
12877 the "local pointers" form. I'll take any better offer...
12879 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
12881 * lib/font.c: fprintf(...) --> fprintf(format...)
12883 * configure.in: added a disabled versioned test for glib.
12884 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
12885 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
12886 g_critical() with a simple g_error(). Proper fix is to implement
12889 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
12892 * lib/properties.h:
12893 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
12894 * lib/proplist.c: (find_prop_by_name_and_type):
12895 * lib/prop_basic.c: (make_new_prop), (initialize_property):
12896 * lib/propoffsets.c: (do_set_props_from_offsets),
12897 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
12898 Added a type_quark member to PropDescription, Property and
12899 PropOffset. Used it to implement a safety in
12900 do_[sg]et_props_from_offsets().
12902 * objects/flowchart/diamond.c: the diamond's text was not saved,
12903 and thus not even copied (c&p).
12904 * objects/standard/textobj.c: ditto.
12906 Most of the above changes thanks to Robert Young's testing. Thanks !
12908 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
12910 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
12913 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
12915 * lib/proplist.c (prop_list_from_descs): added a call to
12916 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
12917 too embarrassing to tell.
12919 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
12920 while loop to a for loop, for symmetry with
12921 prop_offset_list_calculate_quarks().
12923 * lib/geometry.h: new inline function, rectangle_equals.
12925 * lib/diagramdata.[ch]: refactored a bit the diagram extents
12926 computation logic, and changed it to always be the union of the
12927 visible layers' extents. This should close #58882 (Debian
12928 #107167), and fixes #55498.
12930 * app/display.c: made the initial visible box more coherent with
12931 the diagram being loaded's extents.
12933 * app/prop_attr.c: don't set the font (from offset) if font_data
12934 is NULL. Two brainos in colorprop_load() and fontprop_load().
12936 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
12938 * lib/properties.[ch]: split in a lot of pieces:
12940 * lib/prop_*.[ch] (NEW): all property types are now first-class
12941 objects, inheriting from the original abstract Property type.
12942 * lib/propdesc.c (NEW): property description handling routines
12943 * lib/propoffsets.c (NEW): property offset handling routines
12944 * lib/proplist.c (NEW): property list handling routines
12945 * lib/propobject.c (NEW): property list <-> object routines
12946 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
12948 * lib/propinternals.h: prototypes for stuff not usually needed by
12949 the outside of StdProps.
12950 * lib/Makefile.am: a lot of new files have been added...
12952 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
12953 BOTH INTERFACES AND RUN-TIME STABILITY.
12955 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
12957 * lib/object.h: removed the incestuous relationship with
12958 properties.h' contents. Now a Property list is a GPtrArray -->
12959 object interface change !
12961 * app/app_procs.c/app_init(): removed a disabled call to a
12962 non-existent routine. Added a call to stdprops_init().
12964 * objects/Makefile.am: disabled the construction of EML. I'm not
12965 touching these until a certain issue is solved (or this module
12968 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
12969 objects to the interface changes.
12971 * app/disp_callbacks.c: killed a warning.
12972 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
12975 The macros PROP_VALUE_* have disappeared. Adapted to using the new
12978 * plug-ins/dxf/dxf-import.c:
12979 * plug-ins/xfig/xfig-import.c:
12980 PROP_VALUE_* macros have been removed. Converted to the new API.
12982 * plug-ins/python/**/*: I gave up converting this; I can't
12983 compile --with-python (problems with object.h defined both by us
12984 and by Python). I'll gladly help whomever cares to fix it !
12985 (or, fix it myself if someone tells me how to compile it).
12987 * configure.in: added the UNICODE-related progress defines.
12990 * lib/geometry.h: On Solaris and perhaps other systems, finite()
12991 is defined in ieeefp.h rather than in math.h. Patch from Andrew
12992 Halper <ashalper@acm.org> with further modifications, isinf() is
12993 provided by -lsunmath (sunmath.h).
12995 * lib/font.c: conditionally disabled Lars' debugging messages.
12996 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
12998 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
13000 * lib/bezier_conn.h:
13001 * objects/standard/bezier.c (bezierline_create):
13002 * lib/bezier_conn.c (bezierconn_init):
13003 Preparations for use of userdata for bezier lines.
13005 * objects/standard/polygon.c:
13006 * objects/standard/create.h:
13009 * plug-ins/xfig/xfig-import.c:
13010 Use of user_data for polygon as well, including adding
13011 polyshape_set_points. Include file for non-interactive
13012 creation of standard objects, objects/standard/create.h
13014 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
13016 * app/render_gdk.c:
13017 * app/render_gdk.h:
13021 More preliminary freetype support. Not at all functional, crashes
13026 * objects/standard/polyline.c:
13027 Support for creating polyline objects with more than two points.
13028 This includes an extra function and a prototype change in the
13029 poly_conn lib object.
13031 * lib/object.c (object_copy): Fixed memory leak of handles and
13034 2001-08-08 Abel Cheung <maddog@linux.org.hk>
13036 * dia.desktop: added traditional Chinese strings
13038 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
13040 * NEWS: updated to reflect build-time dependencies.
13042 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
13043 around obj->ops->describe_props(obj). Quarks are none of an
13044 object's business in the general case...
13045 * lib/text.c: Added an apply_textattr_properties() function to
13046 factor out some common code related to applying a dialog's text
13047 attribute properties to a (Text *) which wasn't edited there.
13048 Ditto for textstr, for the string part of an objet.
13050 * objects/GRAFCET/action.c:
13051 * objects/SADT/annotation.c:
13052 * objects/SADT/box.c: used apply_textattr_properties().
13054 * objects/UML/actor.c:
13055 * objects/UML/branch.c:
13056 * objects/UML/component.c:
13057 * objects/UML/constraint.c:
13058 * objects/UML/small_package.c:
13059 * objects/UML/state.c:
13060 * objects/UML/usecase.c:
13061 * objects/UML/large_package.c:
13062 * objects/UML/note.c:
13063 * objects/UML/node.c:
13064 * objects/UML/message.c:
13065 * objects/UML/classicon.c:
13066 * objects/UML/object.c:
13067 * objects/UML/realizes.c:
13068 * objects/UML/dependency.c:
13069 * objects/UML/implements.c:
13070 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
13071 (most objects were already using StdProps to some extent ; this
13072 systematises usage and removes some dead wood).
13074 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
13075 * objects/UML/uml.[ch]: audited for UTF-8.
13077 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
13078 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
13079 private (ISO-8859-1) definition.
13081 * lib/charconv.c: Added a warning if we didn't run
13082 nl_langinfo(CODESET) but rely instead on a hardcoded default.
13084 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
13087 * app/disp_callbacks.c: added a way for an object to cause an
13088 already realised menu to be destroyed (for instance if it changes
13091 * objects/custom/custom_object.c: used the above to fix #55073.
13093 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
13095 * configure.in: Remove 2.50 prereq.
13097 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
13099 * po-checktrans.py: under some circumstances, there was one column
13100 more than what was supposed to be, thus breaking the formatting.
13102 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
13104 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
13106 * NEWS: updated with new stuff since 0.88
13108 * shapes/network/antenna.shape: the text was misplaced ; fixed.
13110 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
13111 firewall router (upon request from Cyril Lacoux
13112 <clacoux@easter-eggs.com>)
13114 * configure.in (didn't rename to configure.ac): autoconf 2.50
13115 constructs were used ; added an AC_PREREQ call to guard against
13118 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
13120 * lib/properties.c: minor clean-ups with the event delivery code.
13122 * EML/instantiation.c: brought this object back from stone and ice
13125 * app/diaconv.c(NEW): added a command-line conversion tool. Still
13126 lacks a man page and correctness. In fact, it doesn't work. Please
13127 see #58196 if you want to finish it.
13129 * lib/message.[ch]: redefined things a little so that a different
13130 message_internal routine could be passed.
13131 applications can use that to fit themselves to the display model.
13133 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
13135 * objects/SADT/box.c:
13136 * objects/GRAFCET/action.c: spelling in property descriptors (name
13138 * objects/SADT/annotation.c: ditto, plus a temporary test of the
13139 event delivery code (try to click on the "click me !" button !).
13142 * lib/properties.[ch]: improved (fixed) support for group event
13143 handlers. Fixed various things from yesterday's code to make it
13144 not too obviously crash.
13146 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
13148 * app/group.c: added delivery of events to the first member of the
13149 group which is able to process it.
13151 * lib/properties.c(prop_desc_lists_intersection): properties
13152 don't match if they don't have identical event handler.
13153 * lib/properties.h: simplified the PropEventHandler signature.
13155 Event delivery code is still untested so far, but should be
13158 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
13160 * lib/properties.[ch]: Added (untested !) property event handler
13161 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
13162 generating such events. This stuff compiles, and should lurk
13163 around silently as long as you don't declare property descriptors
13164 with events (AFAICT).
13165 In object_create_props_dialog() and friends:
13166 attached a single structure with lots of data instead of lots of
13167 little attachments of data to the dialog widget.
13169 * lib/object.h: fixed mild typedef breakage introduced by the above.
13171 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
13173 * lots of files: Changed Font to DiaFont
13174 * */Makefile.am: Added FREETYPE_LIBS
13175 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
13177 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
13179 * configure.in: Added "nn" to ALL_LINGUAS.
13181 2001-07-09 Alex Larsson <alexl@redhat.com>
13183 * app/disp_callbacks.c:
13184 Add gdk_im_ready() calls to XIM code.
13186 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
13188 * lib/properties.[ch]: splitted prop_get_widget() into
13189 prop_get_widget() (gives a widget but doesn't fill it) and
13190 prop_reset_widget() (fills an existing widget with a property's value).
13192 * lib/widgets.[ch]: const enforcement police work.
13194 * shapes/network/antenna.shape: added a connection point at top,
13195 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
13197 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
13199 * intl/*: tested with gettext-0.10.38
13200 * configure.in: moved a macro call around (AM_PROG_CC) to keep
13201 some of autogen.sh from complaining.
13202 * INSTALL: added a warning against gettext older than at least 0.10.36
13204 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
13206 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
13207 AM_ICONV (both provided by gettext)
13209 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
13211 * lib/charconv.c: corrected the degraded mode for when
13212 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
13214 * objects/chronoline/chronoline_events.c: UTF8 compliance.
13216 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
13218 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
13219 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
13220 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
13223 * objects/chronogram/chronoline.c:
13224 * objects/chronogram/chronoref.c: took advantage of the above to
13225 make nicer looking dialogs.
13227 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13228 from libunicode's internals).
13229 * lib/message.c: convert strings to local encoding prior to
13230 display (UNICODE_WORK_IN_PROGRESS)
13231 * lib/properties.[ch]: convert strings to local encoding prior to
13232 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13233 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13234 * lib/stringprerenderer.[ch]: ditto
13236 (lib/text.c has been audited for UTF8, but the size of the changes
13237 make them inappropriate for commit before 0.89)
13239 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
13241 * objects/boolequation.h (<save|load>_boolequation): made the
13242 prototypes for match the .c file.
13244 * samples/grafcet.dia: minor non-conformance with IEC-848
13245 fixed (in the transition from step 100 to step 101).
13247 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13248 disallow editing of properties if the object is part of a group.
13250 * objects/chronogram/chronoline.c:
13251 * objects/SADT/annotation.c:
13252 * objects/SADT/box.c:
13253 * objects/GRAFCET/step.c:
13254 * objects/GRAFCET/transition.c:
13255 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13257 2001-06-12 Hans Breuer <hans@breuer.org>
13259 * lib/libdia.def : removed lazyprop exports
13260 * lib/makefile.msc : removed lazyprop.obj
13262 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13263 and avoid crashes by always creating a custom->text,
13264 when (custom->info->has_text)
13266 * objects/makefile.msc : removed sybase from build
13268 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13269 ObjectNode is a pointer already, which is what we want
13270 instead of a pointer pointer.
13272 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13273 and implemented working export for images
13275 * shapes/network/zip-disk.shape : added connection points
13277 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
13279 * objects/SADT/box.c: removed lazyprops for standard props.
13280 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13281 * objects/chronograms/chronoref.c: ditto
13285 * lib/connpoint_line.c:
13286 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13287 * lib/properties.[ch]: new property types:
13288 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13289 - PROP_TYPE_MULTISTRING: same as string, but renders as a
13290 multi-line entry box.
13291 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13292 in a tabbed-notebook style (this is a bit complicated to use;
13293 see objects/chronograms/chronoline.c for an example).
13295 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
13297 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13298 * objects/GRAFCET/step.c: ditto.
13299 * objects/GRAFCET/vector.c: ditto.
13300 * objects/SADT/annotation.c: ditto.
13301 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13303 * lib/properties.[ch]: two more non-visible types
13304 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13306 * lib/neworthconn.[ch]:
13307 * lib/orthconn.[ch]: added support for manipulation through
13308 standard properties.
13310 * configure.in: removed -fomit-frame-pointer, this seems to
13311 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
13314 * charconv.[ch]: more functions from unicode.h.
13315 get_local_charset() wasn't working properly, fixed now.
13316 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
13319 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13320 * lib/lazyprops.[ch]: put a big fat warning in.
13322 * app/render_eps.c: one line mysteriously went away, causing a
13323 variable to be used uninitialised....
13325 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
13327 * app/app_procs.c: commented out the call to
13328 bind_textdomain_codeset(): it's premature.
13330 * lib/connpoint_line.c: a NULL point can be given to
13331 connpointline_adjust_count(), in case there's not really a clicked
13334 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13335 #include order troubles. #included by lib/text.h, so there is no
13336 impact outside lib/.
13337 * lib/properties.[ch]: added support for CONNPOINT_LINE and
13338 (nonvisible) TEXT properties.
13340 * objects/GRAFCET/action.c:
13341 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13344 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13345 standard properties code). Grafted a dynamic number of connection
13346 points (heavily inspired from what Vergent does). This is the real
13349 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13351 * lib/fonts.c: some hardening (mostly g_assert())
13352 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
13354 * app/app_procs.c (app_init): added a call to
13355 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13356 (UNICODE_WORK_IN_PROGRESS).
13358 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
13360 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13362 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
13363 (fixes #55863) : some clean-ups in the handling of connection
13364 points. Now the total number of connection points is just a
13365 #define (the proper solution is to retrofit the GRAFCET Vergent's
13366 dynamic behaviour wrt connection points).
13368 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
13370 * app/app_procs.c (app_init): added a call to unicode_init() (only
13371 if HAVE_UNICODE, of course).
13373 * lib/charconv.c: simplified the code which detects the local
13374 charset. No need to use <langinfo.h>, libunicode already takes the
13375 burden of figuring that out. Also, if local charset is utf8, no
13376 conversion will take place.
13377 Exposed a way to get the current charset (similar to
13378 unicode_get_charset() but actually working, hopefully).
13380 * lib/charconv.h: Added a partial non-UTF8 implementation of
13381 unicode.h if !HAVE_UNICODE (actually, all the time for the
13382 moment). The UTF8 implementation is just macros on libunicode (use
13383 the functions prefixed by uni_, as defined by charconv.h, not
13384 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13385 From now on, all strings which don't *need* to be ASCII should be
13386 utfchar *, not gchar *. Just include charconv.h, let it sort out
13387 the details (such as: "is libunicode available and enabled?")
13389 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13390 "API" instead of directly libunicode. Removed the now unnecessary
13391 speculative clustering of characters in encoding pages.
13393 * app/render_eps.c: made the local8->utf8 conversions dependent of
13394 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13395 boundary will be when this WIP is done).
13397 * lib/dia_xml.c (data_point): fixed a format string typo.
13399 * po/POTFILES.in: added all C files from lib/
13401 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
13403 * app/disp_callbacks.c: make sure the objects' connected objects
13404 are updated when the objects' size changes after a keypress event
13407 * configure.in: added a big warning about the possible future
13408 non-optionality of --enable-unicode.
13410 * TODO: removed entries which look like done ; added a few ones
13411 (Bugzilla "enhancement" bugs may be a better way to keep track of
13414 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
13416 * objects/UML/message.c: got rid of #55564 and of message_copy()
13417 by using more standard properties (are the message_state_*()
13418 functions still necessary ?)
13420 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
13423 * objecs/custom/shape_info.c:
13424 * plug-ins/shape/shape-export.c:
13425 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13426 use xmlChar instead of obsolete CHAR.
13428 2001-06-03 Hans Breuer <hans@breuer.org>
13430 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13431 * app/commands.c : give the right number of parameters
13432 to diagram_update_menu_sensitivity ()
13434 * app/preferences.c : do proper initialization for DiaPrefsData:
13435 render_bounding_boxes. It would be a real surprise if 'hidden'
13436 properties would have ever worked before.
13437 Don't try to access the widgets of hidden property, it does not
13440 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13441 it is defined in libdia, but initialized from dia app, which
13442 otherwise gave nice start-up crashes.
13444 * lib/diagramdata.c : initialize the color for rendering bounding
13445 boxes in the Dia range (0 .. 1.0)
13447 * lib/libdia.def : added *_bbox functions for export
13449 * lib/makefile.msc : added new sources
13451 * objects/custom/custom_object.c : use HAVE_UNISTD_H
13453 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
13456 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13457 removes a translation of menus (in a place where there shouldn't
13458 have been), which gets rid of a waterfall of warnings if LANG!=C,
13459 and a fix to #55047.
13461 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
13463 * lib/charconv.c : added #include <errno.h>
13465 * app/dia_embedd.c : updated menus_get_item_from_path usage
13467 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
13469 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13470 Added a special case for Symbol strings, so that they're not
13471 re-encoded using the LN encoding (we use the bare Adobe encoding
13474 * objects/custom/custom_object.c: Now that #52912 is fixed,
13475 I could remove the ugly hack I wrote to squash the shape bounding box
13476 problem shown by Ben A. Hetland a few months ago, and fix it
13477 properly this time.
13479 * lib/text.c: enlarged a little the bounding box to account for
13480 the cursor in rightmost position.
13482 * lib/diagramdata.c: draw bounding boxes only if the relevant
13483 variable is set (as before), but also only if the rendere is
13484 interactive (ie, don't bother rendering bounding boxes on
13486 Made the bounding box's line width a fixed value, 0.01
13488 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13489 and assymmetric control beziers. Implemented ellipse_bbox().
13491 * Makefile.am: incantations to get po/dia.pot build, as suggested
13492 by Hubert in #55075.
13494 * shapes/network/computer.shape: typo fixed.
13495 * shapes/network/antenna.shape: fixed #55074 (antenna is now
13496 properly translucent, except for its base where it makes sense. It
13497 doesn't look that ugly anymore if transparent mode is on).
13499 * configure.in: --enable-unicode is now the default. This
13500 still currently affects only printing.
13502 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
13504 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
13505 The overshoot code is buggy, and the bounding boxes for polyshapes
13506 looks a bit cheezy. To be done ASAP.
13508 2001-05-26 James Henstridge <james@daa.com.au>
13510 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13511 This should clear up some of the build problems people have been
13514 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13516 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
13519 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13520 box code (beginning with lines, polylines and polybeziers), into a
13521 more generic facility. While at it, a better shot at correctly
13522 computing the bounding box of a Bezieroid (should take care of
13523 #53424, #51233 and of course is part 1 of #52912).
13525 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13526 into a hidden preference (set render_bounding_boxes in diarc).
13527 * app/preferences.[ch]: Added support for hidden preferences.
13529 * lib/geometry.[ch]: sprinkled with "const" modifiers.
13531 * lib/bezier_conn.[ch]:
13532 * lib/beziershape.[ch]:
13533 * lib/connection.[ch]:
13534 * lib/element.[ch]:
13535 * lib/poly_conn.[ch]:
13536 * lib/orth_conn.[ch]:
13537 * lib/neworth_conn.[ch]:
13538 * lib/polyshape.[ch]: adapted to take advantage of
13539 boundingbox.[ch] instead of relying on private (duplicate) code.
13541 * object/FS/flow.c:
13542 * object/GRAFCET/action.c:
13543 * objects/GRAFCET/condition.c:
13544 * objects/GRAFCET/vergent.c:
13545 * objects/GRAFCET/vector.c:
13546 * objects/SADT/annotation.c:
13547 * objects/SADT/arrow.c:
13548 * objects/ER/participation.c:
13549 * objects/UML/constraint.c:
13550 * objects/UML/implements.c:
13551 * objects/UML/lifeline.c:
13552 * objects/UML/message.c:
13553 * objects/UML/realizes.c:
13554 * objects/UML/generalization.c:
13555 * objects/UML/association.c:
13556 * objects/UML/dependency.c:
13557 * objects/FS/flow-ortho.c:
13558 * objects/network/bus.c:
13559 * objects/standard/arc.c:
13560 * objects/standard/bezier.c:
13561 * objects/standard/beziergon.c:
13562 * objects/standard/line.c:
13563 * objects/standard/polygon.c:
13564 * objects/standard/zigzagline.c:
13566 * objects/standard/polyline.c: Some *BBExtras structures changed
13567 names while moving to boundingbox.[ch]. A trivial mass-renaming.
13569 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
13571 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13572 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13574 * app/display.c (ddisplay_update_scrollbars): from Patrick's
13575 suggestion, remove the extra scrollable area (it was only visible
13576 to the scrollbars). This is experimental.
13578 * objects/custom/custom_object.c: If a shape's icon file doesn't
13579 exist, warn and substitute a default icon, instead of crashing.
13582 * objects/network/network.c:
13583 * shapes/network/modularswitch.(shape|xpm) (NEW):
13584 * shapes/network/printer.(shape|xpm) (NEW):
13585 * shapes/network/genmonitor.(shape|xpm) (NEW):
13586 * shapes/network/computer.(shape|xpm) (NEW):
13587 * shapes/network/Makefile.am: four less objects, four more shapes.
13588 These were the last known RenderObjects. (phew !)
13592 * objects/sybase/Makefile.am:
13593 * objects/network/Makefile.am: Removed the older Renderobjects
13594 from the build, and their infrastructure (not yet deleted,
13597 * shapes/network/sceadplug.shape:
13598 * shapes/network/antenna.shape:
13599 * shapes/network/modem.shape:
13600 * shapes/network/hub.shape:
13601 * shapes/network/rj45plug.shape:
13602 * shapes/sybase/client.shape:
13603 * shapes/sybase/dataserver.shape:
13604 * shapes/sybase/ltm.shape:
13605 * shapes/sybase/repserver.shape:
13606 * shapes/sybase/rsm.shape:
13607 * shapes/sybase/stableq.shape: Minor corrections (line widths were
13608 ten times too narrow).
13610 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
13612 * objects/network/network.c:
13613 * shapes/network/sceadplug.(shape|xpm) (NEW):
13614 * shapes/network/antenna.(shape|xpm) (NEW):
13615 * shapes/network/modem.(shape|xpm) (NEW):
13616 * shapes/network/Makefile.am: four less objects, four more shapes.
13619 * lib/diagramdata.c:
13621 * lib/string_prerenderer.[ch] (NEW):
13622 Add a new renderer primitive, predraw_string() (does nothing, to be
13623 used as a hook to optimise the character encodings if needed).
13624 Added a string pre-renderer, which can be viewed as a filter
13625 renderer (to route draw_string() to predraw_string() and ignore
13626 the rest, in a first rendering pass)
13628 * app/render_eps.c: Took advantage of the above to make wholly
13629 optimised Postscript encoding page(s), even (especially) with
13630 non-latin1 code (HAVE_UNICODE must be true).
13632 (#53512 in fact is wholly resolved).
13634 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
13636 * lib/charconv.c: steps towards resolution of #53512 (inspired by
13637 Alexey Novodvorsky <aen@logic.ru>'s patch).
13639 * app/menus.c (dia_menu_signal_proxy): checked that the signal
13640 handler is not NULL before transferring control to it... (fixes #52836)
13642 * app/app_procs.c (app_init): removed non-constant initialiser
13645 * objects/custom/custom_object.c:
13646 * objects/custom/shape_info.[ch]:
13647 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
13648 <skh@mathstar.com>. This add support for a <svg:text> shape
13649 element, and some related style properties (font, font height,
13652 * doc/custom_shapes: a precision about the meaning of case in a
13653 SVG path (closes #52364)
13655 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13656 fixed by <drk@sgi.com>)
13658 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
13660 * objects/network/network.c:
13661 * shapes/network/Makefile.am:
13662 * shapes/network/hub.(shape|xpm) (NEW):
13663 * shapes/network/flash.(shape|xpm) (NEW):
13664 * shapes/network/rj45plug.(shape|xpm) (NEW):
13665 More shapes, less renderobjects.
13667 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
13669 * plug-ins/svg/render_svg.c: typo made exported ellipses
13670 corrupted (zero Y pseudo-radius).
13672 * objects/network/network.c:
13673 * objects/network/disc.c:
13674 * shapes/network/disc.(shape|xpm): Converted the first
13675 Renderobject into a shape. Normally, old diagrams should reload
13676 without problems (please check this against your diagrams). More
13677 flexibility should be gained that way. I intend to hunt and
13678 eradicate all renderobjects as I can commit cycles to that.
13680 * objects/Makefile.am:
13683 * objects/sybase/sybase.c:
13684 * shapes/sybase/Makefile.am(NEW):
13685 * shapes/sybase/client.(xpm|shape) (NEW):
13686 * shapes/sybase/dataserver.(xpm|shape) (NEW):
13687 * shapes/sybase/ltm.(xpm|shape) (NEW):
13688 * shapes/sybase/repserver.(xpm|shape) (NEW):
13689 * shapes/sybase/rsm.(xpm|shape) (NEW):
13690 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13691 renderobjects into shapes. The Sybase objects are now not compiled
13692 anymore, and ready to be nuked if nobody objects in the next few weeks.
13695 * app/diagram.[ch]:
13696 * app/disp_callbacks.c:
13697 * app/display.[ch]:
13698 * app/interface.[ch]:
13700 * app/modify_tool.c:
13701 * app/preferences.[ch]:
13702 * app/recent_files.c:
13703 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13704 a menu bar reflecting the popup menu, to each display window. This
13705 is optional (changing the preference currently doesn't affect
13706 already opened windows; a few other rough edges to cut).
13708 * plug-ins/wpg/wpg.c:
13709 * plug-ins/xfig/xfig-import.c:
13710 * plug-ins/python/pydia-property.c:
13711 * plug-ins/python/pydia-properties.c:
13712 * plug-ins/python/pydia-geometry.c:
13713 * plug-ins/pstricks/render_pstricks.c:
13715 * objects/EML/dbox.c:
13716 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
13719 * lib/ps-utf8.c: improved the clustering of alphabetic character
13720 definitions in custom encodings pages.
13722 2001-05-02 Hans Breuer <hans@breuer.org>
13724 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
13725 of 'obj_bb' to PROP_TYPE_RECT
13727 * objects/custom/custom_object.c : take all quarks into account,
13728 not only 4 as copy&paste suggests
13730 * objects/uml/objects.c : completed the implementation of the
13731 property api to avoid reading of totally bogus data. Removed
13732 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13733 there was too much but too less ...
13735 The above changes removed all known crashes (mentioned below)
13736 from the Property API. Property access is still incomplete though.
13738 * objects/flowchart/box.c :
13739 * objects/flowchart/diamond.c :
13740 * objects/flowchart/ellipse.c :
13741 * objects/flowchart/parallelogram.c :
13742 * objects/uml/classicon.c :
13743 * objects/uml/state.c : calculate number of quarks from quark array
13744 size instead of using hardcoded values for consistence and to avoid
13745 future bugs like the above
13747 * objects/eml/nlist.c : include <string.h> for strcmp()
13749 * lib/dia_xml.c : relax g_warning for values, which
13750 appear to be too small. There is nothing which prevents
13753 * plug-ins/python/pydia-geometry.c : changed stringifying of
13754 geometry objects accept BezPoint back to %f, which does not
13755 crash anymore, because all the data is intialized now and it
13756 simply is more readable than %e ...
13758 * plug-ins/python/python-startup.py : removed dependency
13759 to PyGtk, because it isn't required here and probably won't
13760 in i.e.: export filters.
13762 * plug-ins/python/gtkcons.py : create the gtkoutfile even
13763 if sys.stderr.fileno() isn't supported
13765 * app/makefile.msc : make version 0.88
13766 * plug-ins/makefile.msc : make version 0.88 an added new
13767 xfig files to build
13769 2001-05-11 James Henstridge <james@daa.com.au>
13771 * NEWS: remember to add news items this time.
13773 * dia.spec: update spec file for 0.88 release.
13775 * configure.in: up version number to 0.88
13777 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13778 preventing any of the useful python scripts from being
13781 * sheets/Makefile.am (sheet-translation-report): fix bustage I
13782 introduced in my fixups for the 0.87 release :(
13784 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
13786 * plug-ins/xfig/xfig-import.c: Finally got groups working.
13788 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
13790 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13791 group manipulation.
13793 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
13795 * lib/ps-utf8.[ch]:
13796 * lib/Makefile.am: fix makefile breakage which led to not
13797 including ps-utf8.[ch] in the released tarballs.
13799 2001-05-09 James Henstridge <james@daa.com.au>
13801 * Makefile.am (core-translation-report): dist scripts needed for
13802 this target, and change to $(srcdir) before running.
13804 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
13805 files aren't automatically included in the tarball by automake
13806 because they could be generated files.
13808 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13810 * doc/en/Makefile.am (install-data-hook): fix up where graphics
13813 * configure.in: up version number to 0.87
13815 * plug-ins/python/*.py: no longer necessary to explicitly set
13816 sys.argv, as python.c does it for us now (like it should).
13818 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13821 * plug-ins/python/python-startup.py: startup script that imports
13822 all modules in $(datadir)/dia/python and ~/.dia/python.
13824 * plug-ins/python/python.c (dia_plugin_init): change so that it
13825 only runs the $(datadir)/dia/python-startup.py script. Make sure
13826 that sys.argv and __main__.__file__ are set when calling the
13829 * plug-ins/python/Makefile.am: update makefile. Make it install
13830 gtkcons.py plugin. I haven't set any other plugins to install, as
13831 they look like they are mainly for debugging purposes.
13833 * configure.in: add tests to detect if python is available, so we
13834 can build the python plugin. Only run if --with-python passed to
13837 2001-05-08 James Henstridge <james@daa.com.au>
13839 * acinclude.m4: add macros for detecting python.
13841 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13842 at GNOME_APP_UI_SUBTREE entries.
13843 (menus_add_path): function to add a menu item to the menubars.
13844 Uses a hash table to keep track of extra menu items it adds. Also
13845 notifies the item factory about the entries so that accels can be
13847 (menus_add_path): implement gtk only version.
13848 (menus_init): use menus_add_path() to add the menu.
13849 (plugin_callback): simplify.
13851 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
13853 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13855 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
13857 * plug-ins/xfig/xfig-export.c:
13858 * plug-ins/xfig/xfig-common.c:
13859 * plug-ins/xfig/xfig-import.c:
13860 * plug-ins/xfig/xfig.c:
13861 * plug-ins/xfig/xfig.h:
13862 * app/Makefile.am: Added support for exporting to Fig format
13863 (except splits, which are less powerful in Fig). Some refactoring
13866 2001-05-02 Hans Breuer <hans@breuer.org>
13868 * plug-ins/python/debug_objects.py : added another
13869 test to get massive crashes from the Property API due
13870 to unintialized data.
13872 * app/menu.c : the callback_action wasn't incremented
13873 (should have checked my last optimization). Now more
13874 than one plug-in callback is supported again.
13876 * plug-ins/python/pydia-geometry.c : avoid crashes from
13877 glib, when trying to g_strdup_printf unintialized floats.
13879 * plug-ins/python/pydia-property.c : avoid crashes from
13880 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
13882 2001-05-01 Hans Breuer <hans@breuer.org>
13884 * objects/makefile.msc : added eml
13885 * objects/eml/instantiation.c : initialize 'inst' pointer
13886 before using, zero initialization for objects
13887 * objects/eml/interaction-ortho.c :
13888 * objects/eml/interaction.c : zero initialization for objects
13890 * app/menus.c : removed Gimp mru stuff which slipped in at
13891 2000-08-15, was never activated and will never be needed,
13892 because of Steffens recent file list patch added at 2001-01-05.
13894 * objects/eml/*.c : some more zero initialization of objects
13895 to avoid infinite (uninitialized) bounding boxes
13897 Implemented a callback api which allows plug-ins to register
13898 menu call backs. Dia for Gnome should compile, but will need
13899 some extra tweaking to make it work because I can't test it.
13901 * plug-ins/python/pydia-error.h :
13902 * plug-ins/python/pydia-render.c : moved Pxthon function return
13903 value handling from pydia-render.c to pydia-error.h, to make it
13905 * plug-ins/python/diamodule.c : implement callback function
13906 registration from and relaying to Python code
13908 * app/menus.c : register and use plug-in menu callbacks
13910 * lib/filter.[hc] : implement filter_register_callback() and
13911 filter_get_callbacks() for the above
13912 * lib/libdia.def : export them
13914 * plug-ins/python/debug_objects.py (new file):
13915 sample using the above
13917 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
13919 * plug-ins/shape/shape-export.c (new_shape_renderer):
13920 The name of a shape is now taken from the dir, to conform with
13923 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
13925 * app/properties.c (properties_show): Added title containing
13926 object type, plus (hopefully) fix of the ghost properties dialog.
13928 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
13930 * app/display.c: remove the display idle handler in case we
13931 destroy the ddisplay (caused crashes in ddd, probably random
13932 crashes elsewhere).
13936 * Makefile.am: hack around gettext-0.10.36's new "features".
13938 * lib/properties.[ch]: added new function object_copy_props().
13939 Added new property type PROP_TYPE_ENDPOINTS
13941 * lib/connection.h: added support for load/saving through the
13942 properties interface.
13944 * lib/object.[ch]: object_load/save/copy_using_properties()
13945 support functions (code factorisations).
13947 * objects/GRAFCET/boolequation.c: check against null values in
13948 boolequation_set_value() and boolequation_destroy().
13950 * objects/GRAFCET/transition.c: Converted from lazyprops to
13951 standard properties. 31% less (x86) code !
13953 * objects/GRAFCET/condition.c: also converted from lazyprops to
13954 standard properties. Also killed lots of code.
13956 2001-04-13 Hans Breuer <hans@breuer.org>
13958 * plug-ins/wmf/wmf.cpp : changed text conversion from
13959 g_utf8_utf16 to g_convert usage. The latter function is already
13960 available in tml's last "official" Gtk+ version (2000-12-26).
13961 This change allows to use recent Dia with either the official
13962 version or the latest cvs "gtk-1-3-win32-production"-branch.
13964 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
13966 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
13967 * app/disp_callbacks.c:
13968 - Allow submenus in DiaMenus.
13969 - Don't require DiaMenu.title to be non-null (so that
13970 submenus aren't required to have titles)
13972 * objects/FS/function.c:
13973 - object menu now has submenus, an almost complete list of
13974 standard-basis verbs, and a start on nouns.
13975 - box padding, dash length, and other visual attributes are
13976 scaled by the font size... eventually font height will be
13977 a function property.
13978 - draw functions with smaller font to make initial view hold
13979 a reasonable number of functions.
13981 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
13984 * sheets/chronogram.sheet:
13985 * sheets/jigsaw.sheet:
13986 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
13987 Wieers <dag@wieers.com>
13989 2001-04-13 Hans Breuer <hans@breuer.org>
13991 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
13992 to ensure that all the deinitialization is only done once. Fixes
13993 recent app exit crash on win32
13995 * lib/dia_xml.c : provide isinf() replacement for msc which does only
13998 * lib/libdia.def : updated
14000 * objects/makefile.msc : added wanlink.c
14002 * objects/network/wanlink.c : added M_PI_2 definition for poor
14003 platforms which don't have one
14005 * objects/standard/arc.c :
14006 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
14007 initialized which led to rather huge bounding boxes (try Ctrl^A on
14008 diagrams with Arcs or ZigZagLines).
14009 * objects/*/*.c : to avoid further bugs like the above changed all
14010 object initializations to g_malloc0 or g_new0
14013 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
14015 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
14016 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
14018 * objects/UML/class.c:
14019 * objects/UML/usecase.c:
14020 * objects/UML/large_package.c:
14021 * objects/UML/message.c:
14022 * objects/UML/object.c:
14023 * objects/UML/lifeline.c:
14024 * objects/FS/flow.c:
14025 * objects/FS/flow-ortho.c:
14026 * objects/FS/function.c:
14027 * objects/custom/custom_object.c:
14028 * objects/GRAFCET/vergent.c:
14029 * objects/chronogram/chronoref.c:
14030 * objects/SADT/box.c:
14031 * objects/SADT/annotation.c:
14032 * plug-ins/dxf/dxf-import.c:
14033 * plug-ins/xfig/xfig-import.c:
14034 * plug-ins/wpg/wpg.c:
14037 * app/display.c: /* certainly more WIP than dead code there */
14038 Unused variables, unused static function definitions, forgotten or
14039 incomplete prototypes added or fixed, lack of const or unwanted const,
14040 etc. (mostly clean-ups of leftovers of the pre-properties era).
14041 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
14042 please check these.
14044 * app/lineprops_area.c: More of the same. Missing prototypes
14045 added, and functions unused outside made static.
14047 * app/recent_files.c:
14048 * app/properties.c:
14049 * app/defaults.c: some variables are used only when doing a GNOME
14052 * app/magnify.c: missing #include <stdlib.h>.
14054 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
14056 These are a lot of clean-ups (by the way, this compiles and runs
14057 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
14058 for DEAD_CODE, and if it's yours, judge it.
14060 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
14062 * plug-ins/dxf-import.c: some progress with the arcs; still some
14063 clean-ups to do and line width scaling issues to figure out.
14065 * objects/standard/arc.c: start_point and end_point properties
14066 (duplicated from standard/line.c)
14068 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
14071 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
14073 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
14074 preliminary support for arcs (doesn't work). Circles and ellipses are
14075 now transparent. Coordinate and width scaling are now a common
14076 static constant (probably before morphing into a preference).
14078 * sheet/checktrans.py: improved error reporting. Made checktrans
14079 count lack of <name xml:lang="code"> as a lack of translation for
14080 language "code" (no, it's not a plot to bring down other
14081 language's scores !)
14083 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
14084 in the header, and have <name xml:lang="fr"> components.
14086 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
14088 * objects/custom/custom_object.c: temporary hack to fix the shape
14089 bounding box reported by Ben A. Hetland. Proper fix isn't .87
14090 material, see bugzilla #52912.
14092 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
14094 * objects/standard/image.c (get_directory): Now uses
14095 G_SEPARATOR_CHAR_S instead of "/"
14097 * sheets/network.sheet:
14098 * sheets/Logic.sheet:
14099 * sheets/Flowchart.sheet:
14100 * sheets/Electric.sheet:
14101 * sheets/Circuit.sheet:
14103 * sheets/Pneumatic.sheet:
14104 * sheets/SDL.sheet:
14105 * sheets/UML.sheet:
14106 * sheets/GRAFCET.sheet:
14107 * sheets/MSE.sheet:
14108 * sheets/chronogram.sheet:
14109 * sheets/civil.sheet:
14110 * sheets/network.sheet:
14111 Danish translations.
14113 * objects/standard/image.c (get_directory): Changed get_directory
14114 to use g_dirname to find the directory part.
14116 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
14119 * sheets/Electric.sheet:
14120 * sheets/Flowchart.sheet:
14121 * sheets/Logic.sheet:
14122 * sheets/network.sheet: More Dutch translations from Dag Wieers.
14124 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14126 * sheets/checktrans.py: now emits a warning when two descriptions
14127 for a single language code are found.
14130 * sheets/Makefile.am: -translation-reports now also depend on their
14133 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14135 * sheets/Circuit.sheet:
14136 * sheets/Contact.sheet:
14137 * sheets/Logic.sheet:
14138 * sheets/chronogram.sheet:
14139 * sheets/sybase.sheet:
14140 Dutch translations from Dag Wieers <dag@wieers.com>
14142 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14144 * po-checktrans.py: Now shows the detailed counts alongside the
14145 percentage of translations.
14147 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
14150 * po-checktrans (NEW):
14151 * po-checktrans.py (NEW): builds core-translation-report:
14152 percentages of core (gettext) translations done [Not placed into
14153 po/ where that should belong, because of integration fear^Wissues
14156 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
14157 sheets/sheet-translation-report probably ought to be copied on the
14158 user's /usr/share/doc/dia (or equivalent) directory.
14160 * sheets/Makefile.am: sheet-translation-report now a simple
14161 EXTRA_DIST; make install won't install it by default.
14163 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
14165 * app/preferences.c: changed the default grid colour to something
14168 * shapes/SDL/*.shape:
14169 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
14170 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
14171 DIA FILES (well, for files using SDL), see the mailing list
14172 archive "SDL (ab)using the global shape namespace" for a script to
14173 do this conversion.
14175 * sheets/SDL.sheet: translated into French
14176 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
14178 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
14180 * lib/dia_xml.c: made data_point() more paranoid
14182 * sheets/Makefile.am:
14183 * sheets/checktrans (NEW):
14184 * sheets/checktrans.py: Made checktrans handle more gracefully the
14185 absence of python and python-xml packages, and made the error
14186 message more helpful.
14188 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
14190 * lib/render_object.c (new_render_object): Made initial handles
14191 behave like on most other objects.
14193 * app/load_save.c (read_objects): Fixed premature free'ing ofr
14194 typestr causing garbage.
14196 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
14198 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
14199 accouting for handle ordering through copy and save. (#51479)
14201 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
14203 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
14205 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
14207 * sheets/Circuit.sheet
14209 * sheets/network.sheet: Updated German translations
14211 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14214 * app/lineprops_area.c: The return of the revenge of the arrow
14215 heads. Now all types covered by ISO 10303-201 should be covered.
14217 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14219 * sheets/Flowchart.sheet: translations in probably Hungarian were
14220 a victim of cut-n-paste from the German one. Fixed (hopefully).
14221 * sheet/UML.sheet: translation in probably Norwegian was a victim
14222 of cut-n-paste from the French one. Fixed (hopefully).
14223 * sheets/Logic.sheet: French translation not tagged with
14226 * sheets/checktrans.py:
14227 * sheets/Makefile.am: new file, sheet-translation-report, to be
14228 installed along the sheets, show how much of them has been
14229 translated into which language (I wish the result was prettier...)
14231 * po/README: most translators don't read this file, but anyway...
14233 * sheets/.cvsignore:
14234 * objects/network/.cvsignore: the usual negotiation with CVS.
14236 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14238 * sheets/*.sheet: French translations
14240 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
14242 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14244 ** objects/network/network.c:
14245 ** objects/network/wanlink.c:
14246 ** objects/network/pixmaps/wanlink.c:
14247 ** sheets/network.sheet:
14248 ** objects/network/Makefile.am: a better object to use instead of
14249 the older WAN Connection.
14251 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14253 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14256 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14257 Arc; kept the C file name (because CVS wouldn't like it), and
14258 still registering the older object name (but advertising the newer
14259 one in sheets/GRAFCET.sheet).
14261 2001-03-24 Hans Breuer <hans@breuer.org>
14263 * app/dia.def : some plug-ins (currently only python, xfig) are using
14264 functions from the dia executable. To get them working these functions
14265 need to be explicit exported on win32. IMO the much cleaner way would
14266 be to move these functions to libdia, but that would require some
14267 long term restructuring ...
14269 * lib/libdia.def : updated
14271 * plug-ins/makefile.msc : build xfig plug-in
14273 2001-03-24 Hans Breuer <hans@breuer.org>
14275 * app/diagram.c : g_strdup (dia->filename) because it will be
14278 * app/display.c : set ddisp->renderer to NULL after destruction.
14279 This may solve or help to identify erroneous access to it after
14282 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14283 get 'umlauts' working
14285 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
14287 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14288 were reversed... (look for the patch, and drink a beer to my
14291 2001-03-23 Hans Breuer <hans@breuer.org>
14293 * app/app_procs.c : don't g_error () if the config directory
14294 can't be created (at least not on windoze) because it's quite
14295 common that the user don't read or understand the FAQ ...
14297 * app/cursor.c : use ddisplay_active () instead of active_display
14300 * app/display.[hc] : made active_display var static and provide
14301 an accessor funtion ddisplay_active_diagram ()
14303 * app/dia-props.c : don't store the active_diagram, but ask
14304 for it everytime it needed.
14306 * lib/properties.h : #include "intl.h"
14308 * lib/makefile.msc : need to take care of inclusion order to
14309 avoid clashes with gtk+2.0's gdk-pixbuf
14311 * objects/makefile.msc : added uml/stereotype.c to build
14313 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
14315 * **/*.c: Added config.h to the remaining .c files, and changed
14316 all to be <config.h>.
14318 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
14323 * app/lineprops_area.c: added new arrow types with double
14326 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
14328 * shapes/Civil/civil_gas_bottle.xpm
14329 * shapes/Civil/civil_gas_bottle.shape
14330 * sheets/civil.sheet
14331 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14334 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
14336 * objects/custom/shape_info.c (load_shape_info):
14337 * objects/custom/shape_info.h:
14338 * objects/custom/custom_object.c (custom_update_data):
14339 Better support for text outside the box -- new attributes 'resize'
14340 and 'align' for text entity. Align not fully supported yet.
14342 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14344 2001-03-20 James Henstridge <james@daa.com.au>
14346 * app/interface.c (display_data_received_callback): comment out
14349 2001-03-19 James Henstridge <james@daa.com.au>
14351 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14353 * objects/UML/realizes.c: similar here.
14355 * objects/UML/implements.c: similar here.
14357 * objects/UML/component.c: similar here.
14359 * objects/UML/generalization.c: same here.
14361 * objects/UML/dependency.c: allow NULL for ->name and
14362 ->stereotype. This fixes a number of problems in loading saved
14365 * lib/properties.c: various changes so that NULL string properties
14368 * objects/standard/line.c (line_update_data):
14369 line->extra.start_long and line->extra.end_long were not being
14370 initialised. This fixes potential problems with the bounding box
14371 of "Standard - Line" objects.
14373 2001-03-19 Hans Breuer <hans@breuer.org>
14375 * app/commands.c : added win32 specific code to display a html
14376 file. #include "text.h" for text_delete_all prototype.
14379 * app/dia.rc : (new) to give Dia win32 an icon
14381 * app/win32print.[ch] : new files to support direct postscript
14382 file printing on win32. Beware: it *requires* a ps-printer!
14384 * app/paginate_psprint.c : disable the signal code for win32 build
14385 and added small specific changes to support win32print.
14387 * app/makefile.msc : added win32print and linking shell32.lib
14389 * lib/libdia.def : updated
14391 2001-03-18 Kevin Breit <battery841@mediaone.net>
14393 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
14396 2001-03-17 James Henstridge <james@daa.com.au>
14398 * app/paginate_psprint.c (diagram_print_ps): add code that traps
14399 SIGPIPEs during printing. This gets rid of a number of crashes
14400 caused by printing (eg. typing an incorrect print command).
14402 * dia.spec (%install): gzip the manpage.
14404 * lib/beziershape.c (beziershape_save): fix off by one error in
14405 beziershape save code, which was adding an extra segment to the
14408 * app/menus.c: add a separator in the gnome version of the help
14411 * app/app_procs.c (app_init): add a --nosplash argument which
14412 disables the splash screen.
14414 * app/dia_embedd.c (main): don't leave the splash screen open for
14415 embeddable component.
14417 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14418 didn't seem to be showing the splash screen like expected, so I
14419 have replaced it with some code that calls gtk_main() until the
14420 first exposure of the window.
14422 2001-03-16 James Henstridge <james@daa.com.au>
14424 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14426 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14429 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14431 * app/Makefile.am (dia_core_files): remove splash.h from file
14432 list, as it doesn't exist.
14434 * doc/en/Makefile.am (uninstall-local): remove the docdir on
14437 * doc/Makefile.am (uninstall-local): target to remove the C
14440 * dia.spec (%files): include the documentation in the package.
14442 * app/menus.c (toolbox_menu_items): add menu item for manual,
14443 which calls help_manual_callback.
14445 * app/commands.c (help_manual_callback): find help file and load
14446 netscape to view it.
14448 * app/commands.h: add prototype for help_manual_callback()
14450 * doc/Makefile.am (helpdir): similar here.
14452 * doc/en/Makefile.am (helpdir): make the helpdir
14453 $(pkgdatadir)/help/en in the non gnome case.
14455 * configure.in (HAVE_GNOME): add conditional.
14457 * doc/en/Makefile.am: handle the graphics in a more general way,
14458 so it is easier for Kevin to add them to the build (just add them
14459 to the GRAPHICS var).
14461 * app/Makefile.am (embed_extra_print_files): make the case of
14462 building without gnome-print support but with bonobo support work.
14463 dia-embedd needs to be include the gnome-print
14465 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
14467 * samples/Makefile.am: included all samples in the distribution....
14469 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
14471 * configure.in: removed premature test for DPS. Added -*- m4 -*-
14472 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14473 vanished, removed it from ALL_LINGUAS.
14475 * lib/charconv.[ch] (NEW): a very small wrapper around
14476 unicode_iconv to convert strings between utf8 and local charset
14477 (actually, ISO-8859-1, though one can do
14478 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14480 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14481 library to help build Postscript streams which use as many custom
14482 font encodings as necessary to correctly represent all characters
14483 used (testing from users with non-latin1 and/or more than 256
14484 characters in routine use *very* welcome).
14486 * app/Makefile.am, lib/Makefile.am: integrated these into the
14489 * shapes/Logic/.cvsignore (NEW): .cvsignore
14491 * app/render_eps.h: forwarded some changes Lars forgot to include.
14492 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14495 2001-03-08 Kevin Breit <battery841@mediaone.net>
14497 * doc/en/home_network.png: Added file.
14498 * doc/en/line_props.png: Added file.
14499 * doc/en/usage-objects.sgml: Added two graphics to file.
14500 * doc/en/usage-quickstart.sgml: Added one graphic to file.
14502 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
14504 * app/grid.h: Place comment around text after #endif.
14505 * lib/bezier_conn.c: #include <string.h>.
14506 * lib/beziershape.c: #include <string.h>.
14507 * lib/connpoint_line.h: Comment after #endif.
14508 * lib/dia_dirs.c: #include <string.h>.
14509 * lib/element.c: Same.
14510 * lib/lazyprops.c: #include <config.h> and "intl.h".
14511 * lib/lazyprops.h: Comment out text after #endif.
14512 * lib/neworth_conn.c: #include <string.h>
14513 * lib/orth_conn.c: Same here.
14514 * lib/poly_conn.c: Here too.
14515 * lib/polyshape.c: And here.
14516 * lib/properties.c: Remove #include "intl.h" from here and add
14517 an array of static strings to work around bug in gettext that
14518 makes it miss strings in a #define body.
14519 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14520 * objects/GRAFCET/boolequation.h: Same here.
14521 * objects/chronogram/chronoline_event.h: Add prototype for
14524 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14526 * objects/FS/function.c:
14527 * objects/FS/flow.c:
14528 * objects/FS/flow-ortho.c:
14529 Updated to use properties.
14531 2001-03-03 James Henstridge <james@daa.com.au>
14533 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14534 button labels when creating them.
14536 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14538 * objects/UML/actor.c
14539 * objects/UML/realizes.c
14540 * objects/UML/implements.c
14541 * objects/UML/generalization.c
14542 * objects/UML/dependency.c
14543 * objects/UML/constraint.c
14544 Updated to use properties.
14546 * objects/UML/stereotype.c
14547 * objects/UML/stereotype.h
14548 Generalized to any kind of bracketting.
14550 2001-02-28 James Henstridge <james@daa.com.au>
14552 * app/menus.c: add help entry to the help menu. Need to get this
14553 working for the non GNOME case as well (maybe put help under
14554 $(datadir)/dia/help for non GNOME?)
14556 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14558 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14559 this element so that we get a meaningful filename in the html
14562 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14565 * configure.in (DB2HTML): add a check for the db2html program, and
14566 set an automake conditional if it is found.
14568 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14569 and descend into doc/ directory while building.
14571 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14572 we need more complex rules for building the docs.
14574 2001-02-25 Hans Breuer <hans@breuer.org>
14576 * config.h.win32 : some cleanup
14578 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14579 are deprecated since glib-1.3.2. Sorry needing to use them
14580 contionally, but there is no glib-1.2 for win32
14582 * app/recent_files.c : use g_strescape (params) conditionally
14584 * lib/connection.c : include string.h for memcpy
14586 * lib/geometry.h : added some stuff for compatibility with
14587 msvc, which previously came from included config.h
14589 * lib/libdia.def : updated
14591 * objects/makefile.msc : updated
14593 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
14594 'extra' used without having been initialized
14596 * objects/network/bus.c(658) : initialize 'extra'
14598 * plug-ins/makefile.msc : updated
14600 * plug-ins/cgm/cgm.c :
14601 * plug-ins/pstricks/render_pstricks.c :
14602 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
14605 * plug-ins/python/python.c : use HAVE_DIRENT_H
14607 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14609 * lib/connection.c (connection_update_boundingbox):
14610 Made the BB shrink on right and lower sides, too.
14612 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
14614 * */*.c: #incude <config.h> at the top.
14615 * */*.h: Remove include of "config.h" since it should only
14616 be included in .c files and at the very top for things to
14618 * sheets/*.sheet: Updated Norwegian translations.
14620 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14622 * objects/UML/small_package.c:
14623 * objects/UML/class.c:
14624 * objects/UML/node.c:
14625 * objects/UML/usecase.c:
14626 * objects/UML/lifeline.c:
14627 * objects/UML/message.c:
14628 Various cleanup of properties in particular. Now much more use of
14629 standard properties.
14631 * lib/diagramdata.c (layer_render): Visualization of bounding
14632 boxes, for debugging purpoises.
14634 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
14637 * lib/connection.[ch]:
14638 * lib/poly_conn.[ch]:
14639 * lib/polyshape.[ch]:
14640 * lib/bezier_conn.[ch]:
14641 * lib/beziershape.[ch]:
14642 * lib/orth_conn.[ch]:
14643 * lib/neworth_conn.[ch]:
14644 * lib/element.[ch]: Changed a bit the _update_boundingbox()
14645 interface. Now the parent elements have an extra_spacing
14646 structure, which child objects just need to fill, to take care of
14647 most arrow & line width extra space needs.
14649 * objects/**/*.c: updated all objects to the new interface.
14650 While at it, killed all instances of (Object *) downcasts (phew !)
14652 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14653 doesn't speak about.
14655 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14657 * sheets/Logic.sheet: New sheet for Logic symbols.
14659 2001-02-21 James Henstridge <james@daa.com.au>
14661 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14662 widget by its path name. Walks the GnomeUIInfo heirachy rather
14663 than widget tree, compares untranslated label names and ignores
14664 underscores in the labels.
14665 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14666 lookups are not dependent on the current locale, as with
14667 gnome_app_find_menu_pos.
14669 * acconfig.h: guard against multiple inclusion of config.h.
14671 * app/select.c (select_style_callback): simply set the selection
14672 style to the value of action.
14674 * app/menus.c (menus_init): simplify the item factory based menu
14675 code a bit. It looks like it was using some code cut and pasted
14676 from the gimp, which looked a bit unnecessary. Things work fine
14678 (selectmenu): set the action to the type of selection mode
14680 (display_menu_items): use the symbolic enumeration values for the
14683 * app/plugin-manager.c:
14684 * app/plugin-manager.h:
14688 * app/select.h: change prototypes.
14690 * app/commands.c: update all callback prototypes, and get rid of
14691 some #ifdef GNOME's.
14693 * app/commands.h: change function prototypes.
14695 * app/dia_embedd.c (save_fn):
14696 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14698 * app/menus.c (menus_init): for gnome menus, use
14699 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14700 structure that proxies the callbacks to have the same signature as
14701 GtkItemFactory type 1 callbacks.
14702 (menus_init): for GTK menus, change from callback type 2 to type
14704 (display_menu_items): add back tearoffs. I don't know who removed
14705 these for the gtk menu case.
14707 2001-02-20 Kevin Breit <battery841@mediaone.net>
14709 * doc/en/usage-objects-special.sgml: Fixed a few of the special
14710 object descriptions. More to come in the next few days.
14712 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
14714 * app/render_eps.c: Fixed for internationalized floating point
14717 * objects/UML/note.c: Fixed properties -- was missing
14718 Get/ApplyPropertiesFunc. Also improved update to recalculate text
14721 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
14723 * plug-ins/xfig/xfig-import.c:
14724 File added importing xfig files. Still very rough, but good
14725 enough to let others hack on it.
14727 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
14730 * app/linewidth_area.c:
14732 * lib/properties.c:
14734 * objects/ER/attribute.c:
14735 * objects/ER/entity.c:
14736 * objects/ER/relationship.c:
14737 * objects/custom/custom_object.c:
14738 * objects/flowchart/box.c:
14739 * objects/flowchart/diamond.c:
14740 * objects/flowchart/ellipse.c:
14741 * objects/flowchart/parallelogram.c:
14742 * objects/standard/box.c:
14743 * objects/standard/textobj.c: per Vlad Harchev's request, made
14744 page sizes of gtk_adjustments different than their step sizes.
14745 When sensible values of page size weren't found (overwhelming
14746 majority of cases), page sizes were set to 10.0 * respective step
14749 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
14751 * objects/network/hub.c:
14752 Patch from Hubert Figuiere applied, adding connection points.
14754 2001-02-02 James Henstridge <james@daa.com.au>
14756 * app/display.c (new_display): set update id to 0 here.
14757 (ddisplay_update_handler): rename from ddisplay_flush, and set
14758 update_id to 0 at end of processing.
14759 (ddisplay_flush): new implementation that simply sets an idle
14760 handler to perform the actual drawing.
14762 * app/display.h: add structure member to hold the redraw idle
14765 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
14767 * objects/standard/ellipse.c (ellipse_copy):
14768 * objects/standard/zigzagline.c (zigzagline_copy):
14769 Fix of copying provided by Martin Hawlisch.
14771 2001-01-23 Kevin Breit <battery841@mediaone.net>
14773 * doc/en/graphics/: added directory
14775 * doc/en/graphics/greendots.png: added file
14777 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14780 2001-01-23 Kevin Breit <battery841@mediaone.net>
14782 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14783 thanks to John Fleck!
14785 2001-01-21 Kevin Breit <battery841@mediaone.net>
14787 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14789 2001-01-12 Michael Meeks <michael@helixcode.com>
14791 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14792 so our POA gets setup properly.
14794 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14795 things we g_malloc.
14797 * configure.in: Use bonobox_print.
14799 * app/dia_embedd.c (embeddable_factory): add print interface.
14800 (object_print): impl.
14802 2001-01-11 Michael Meeks <michael@helixcode.com>
14804 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14805 (load_fn, save_fn): impl.
14806 (view_factory): hide modified status bar, & use activate fn.
14807 (refresh_view): force redraws of the views.
14808 (view_show_hide): split from
14809 (dia_view_activate): here.
14811 * app/diagram.c (diagram_load_into): split from diagram_load.
14812 (new_diagram): simplify bu splittin stuff into
14813 (diagram_init): here.
14815 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
14817 * shapes/jigsaw/*.shape: replaced #000000 with foreground
14818 and #ffffff with background
14820 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
14822 *configure.in: GTK+-build was broken due to missing
14825 2001-01-06 Michael Meeks <michael@helixcode.com>
14827 * app/dia_embedd.c (main): add running context support.
14828 (dia_embeddable_destroy): remove old running object counting.
14829 (embeddable_factory): ditto.
14830 (view_factory): comment out menu path hiding.
14832 * lib/sheet.c (load_register_sheet): use free to free
14833 stuff from libxml not g_free.
14835 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14837 * configure.in: remove USE_OAF checks, check for a precice
14838 Bonobo version >= 0.31, revamp bits.
14840 * app/dia_embedd.c (init_server_factory): upd.
14841 (init_dia_factory): remove OAF conditionals, everything uses
14844 * app/GNOME_Dia.oafinfo: rename OAFIIDs
14846 * app/Makefile.am: remove ancient gnorba code.
14847 rename dia.oafinfo to GNOME_Dia.oafinfo
14849 2001-01-07 Hans Breuer <Hans@Breuer.Org>
14853 * readme.win32 : some more files required or useful to build
14856 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14857 fill_bezier implementation, boundary drawing in fill mode, etc.
14858 Next one complaining gets the source, uncommented ...
14860 * shapes/network/router-symbol.xpm
14861 * shapes/network/switch-atm-symbol.xpm
14862 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14863 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
14864 the files as XPMs. Maybe the X versions of these functions are more
14867 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
14869 * plug-ins/python/Makefile.am: added libart path
14871 * plug-ins/python/python.c: added dirent.h
14873 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
14875 2001-01-06 Hans Breuer <Hans@Breuer.Org>
14877 * objects/uml/actor.c
14878 * objects/uml/branch.c
14879 * objects/uml/class.c
14880 * objects/uml/classicon.c
14881 * objects/uml/component.c
14882 * objects/uml/large_package.c
14883 * objects/uml/node.c
14884 * objects/uml/note.c
14885 * objects/uml/object.c
14886 * objects/uml/small_package.c
14887 * objects/uml/state.c
14888 * objects/uml/usecase.c : started to implement the generic property
14889 interface for the uml objects. Would appreciate some help on how
14890 to implement properties which are list of properties themselves,
14891 e.g. member functions and their parameters of UMLClass.
14893 2001-01-06 Hans Breuer <Hans@Breuer.Org>
14895 * plug-ins/python/diamodule.c : finally ported to win32.
14896 Added new objects and implemented register_export function.
14898 * plug-ins/python/pydia-object.h
14899 * plug-ins/python/pydia-display.c
14900 * plug-ins/python/pydia-handle.c
14901 PyObject_HEAD_INIT needs some tweakink on win32. Done in
14902 pydia-object.h; others files simply using it.
14904 * plug-ins/python/pydia-layer.c : reflect
14905 layer_find_closest_connection(_)point renaming
14907 * plug-ins/python/pydia-object.c : add property properties.
14908 Also change bounding_box to DiaRectangle.
14910 * plug-ins/python/python.c : extended error reporting; use
14911 all *.py files from Dia's plug-in dir instead of hardcoded
14912 test.py. This sollution should be fine with Win32, but on
14913 Unix it may need some tweaking (dunno) ...
14915 * plug-ins/python/export-object.py
14916 * plug-ins/python/export-render.py : test and documentation
14917 implementations for export filter implementations in Python
14919 * plug-ins/python/pydia-color.[hc]
14920 * plug-ins/python/pydia-diagramdata.[hc]
14921 * plug-ins/python/pydia-error.[hc]
14922 * plug-ins/python/pydia-export.[hc]
14923 * plug-ins/python/pydia-font.[hc]
14924 * plug-ins/python/pydia-geometry.[hc]
14925 * plug-ins/python/pydia-image.[hc]
14926 * plug-ins/python/pydia-properties.[hc]
14927 * plug-ins/python/pydia-property.c
14928 * plug-ins/python/pydia-render.c : new objects in new files
14930 * plug-ins/python/makefile.am : added new files but can't test it
14932 * plug-ins/python/pydia.def
14933 * plug-ins/python/makefile.msc : for win32 build
14935 * plug-ins/cgm/cgm.c
14936 * plug-ins/dxf/dxf-import.c
14937 * plug-ins/dxf/dxf-export.c
14938 * plug-ins/hpgl/hpgl.c : reflect export API change
14940 * plug-ins/shape/shape-export.c : reflect export API change
14941 and check for libart (better the availibility of a png exporter)
14942 at run-time instead of compile-time.
14944 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
14946 * app/recent_files.h was missing from Hans's commit
14948 * plug-ins/shape/shape_export.c: shape export was broken
14949 due to interface changes
14951 2001-01-05 Hans Breuer <Hans@Breuer.Org>
14953 Applied Steffen's recent file list patch :
14954 * app/Makefile.am : added recent_files.[hc]
14955 * app/diagram.c : add files to recent file list
14956 * app/menus.c : add recent file menu
14957 * app/app_procs.c : changed initialization order to
14958 make recent file list work with command line processing.
14960 The Filter export()/import() functions have got an additional
14961 parameter to allow multiple filters via one C callback (required
14962 for Python bindings)
14964 * app/commands.[hc] : corrected the signature for gtk menu callback
14965 functions, which actually use the second or third parameter. This
14966 is the absolute minimum change to make these functions/menu entries
14967 work again. Using the other possible gtk menu callback signature
14968 would have required one more function to change. (see mailing list
14969 thread "Objects/Align/Equal Distance" for more information.
14971 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
14972 zoom-combo focus patch
14975 * app/interface.c : wrapped the Zoom Combo code into
14976 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
14977 improvement but cluttering the user interface. Also it wasn't
14978 compiling on Win32 anyway. The win32 version does define
14979 WITHOUT_ZOOM_COMBO to keep the old look.
14980 There are plans to use the statusbar to display size and placement
14981 of selected objects, whereas the Zoom Combo would need to get out
14982 of the way as well.
14984 Added "Save Changes?" to diagram close dialog. Hopefuly the
14985 Yes/No/Cancel option isn't too much windoze like. IHMO this is
14986 an useability improvement.
14991 * app/layer_dialog.c
14992 * app/paginate_psprint.c
14994 - reflect signature changing of filter->export function
14995 - replaced '/' with G_DIR_SEPARARTOR where appropriate
14997 * app/diaunitspinner.c
14998 * app/render_libart.c
14999 added misssing headers like <string.h>
15001 * app/object_ops.c : fixed copy&paste bug in dialog string
15003 * app/splash.c : gdk_widget_show_now () does not ensure actual
15004 drawing of the splash screen, at least not on win32. Reuse the
15005 previous implementation with gtk_main_iteration() again.
15007 * */makefile.msc : make use of the build module (available in
15008 gnome-cvs/build. Updated for other source changes
15010 * lib/filter.h : added an user_data pointer to <ex/im>port()
15011 function signature and Dia<Im/Ex>portFilter to allow different
15012 filters to reuse the same callback function
15014 * lib/font.c : #include <string.h>
15019 * lib/neworth_conn.c
15020 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
15022 * */*.def : export function definition files required by win32 build
15024 * objects/custom/custom.c : #include <string.h>
15026 * plug-ins/pstricks/render_pstricks.c
15027 * plug-ins/shape/shape_export.c
15028 * plug-ins/svg/render_svg.c
15029 reflect changes to filter export function signature
15031 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
15032 mostly work as expected
15033 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
15034 to build the wmf plug-in because on the one hand the GDI emulation
15035 isn't finished and on the other hand it isn't required when building
15036 for win32. Is there anybody out there, who wants to save WMF on non
15037 windoze platforms ?
15039 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
15040 offset into account.
15042 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
15044 * app/Makefile.am: added missing plug-ins to run_dia.sh
15046 * lib/paper.c: added paper sizes A0, A1, A2
15048 * objects/UML/class.c
15049 objects/UML/class.h
15050 objects/UML/class_dialog.c: added support for colored UML
15053 2000-12-30 Kevin Breit <battery841@mediaone.net>
15055 * doc/en/usage-customization.sgml: added more content
15057 2000-12-24 Kevin Breit <battery841@mediaone.net>
15059 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
15060 <remy.viard@laposte.net>
15062 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
15064 * added limiting lines to Civil Engineering sheet,
15065 fixed vertical pump icon
15067 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
15069 * updated/additional Civil Engineering shapes: better icons,
15070 shapes use foreground/background colors now and are filled
15072 2000-12-03 Kevin Breit <battery841@mediaone.net>
15074 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
15075 the selection <sect1>
15077 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
15079 * app/load_save.c (diagram_data_save): avoid using obsoleted
15080 libxml calls (only matters when compiling with libxml2)
15082 2000-11-25 James Henstridge <james@daa.com.au>
15084 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
15085 handle the tool drops on the canvas.
15087 * app/interface.c (display_data_received_callback): do the check
15088 to make sure that the drag is from a local toolbox here as well.
15090 * app/interface.c (create_tools): unref the pixmap/mask after
15091 creating the GtkPixmap.
15092 (tool_setup_drag_source): function to set up a drag source for
15093 create object tool buttons.
15094 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
15095 (fill_sheet_wbox): same here.
15096 (create_display_shell): set up the display canvas as a drag
15098 (display_drop_callback, display_data_received_callback): functions
15099 to handle drops of tool buttons.
15101 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
15102 does weird shit to the user_data pointer for a menu item. Object
15103 alignment should work again now.
15105 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
15106 NULL, and mark this function static.
15107 (app_splash_init): use gtk_widget_show_now() instead of the
15108 gtk_main_iteration loop.
15109 (app_splash_init): connecting gtk_widget_destroy to the destroy
15110 signal of a widget seems pretty useless.
15112 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
15114 * doc/en/dia-manual.sgml:
15115 Added sect1 for advanced object types. Starting development
15118 2000-11-18 Kevin Breit <battery841@mediaone.net>
15120 * doc/en/dia-manual.sgml:
15121 Stupid spelling fixes.
15123 2000-11-18 Kevin Breit <battery841@mediaone.net>
15125 * doc/en/dia-manual.sgml:
15126 Just some small changes I made. Props to Greg LeBlanc on the
15129 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
15132 (ddisplay_add_display_area): Clip input rectangle to
15133 the visible part of the display.
15134 (ddisplay_scroll): Optimization, don't scroll and
15135 redraw if moving to the same position as before.
15137 * app/render_libart.c (renderer_libart_copy_to_window):
15138 Removed sanity check. Now moved to ddisplay_add_display_area().
15141 Added return at end of file.
15143 2000-11-13 Kevin Breit <battery841@mypad.com>
15144 * doc/en/dia-manual.sgml
15145 Commited manual changes from Henry House <hajhouse@houseag.com>
15147 2000-10-21 Hans Breuer <Hans@Breuer.Org>
15148 * lib/beziershape.c :
15149 The previous code was accessing unowned memory due to IHMO
15150 wrong index calculation. Now it appears to be fixed.
15154 * plug-ins/makefile.msc
15155 * objects/makefile.msc
15156 * app/makefile.msc: (new files)
15157 Makefiles for Dia on Win32, Micro$oft VC only.
15159 * plug-ins/pstricks/render_pstricks.c
15160 * plug-ins/dxf/dxf-import.c
15161 * plug-ins/shape/shape-export.c
15162 * plug-ins/svg/render_svg.c
15165 * app/preferences.c
15169 * objects/custom/custom.c
15170 * objects/standard/image.c
15171 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
15172 where appropriate, add missing prototypes like <string.h>
15174 * plug-ins/wmf/wmf_gdi.cpp
15175 * plug-ins/wmf/wmf_gdi.h:
15176 start of wmf write functions for non Win32 platform. Not
15177 finished yet. The other way to get it working maybe to
15178 link the plug-in against wine libs.
15180 * plug-ins/wpg/wpg.c : add missing brace
15182 * app/load_save.c :
15183 Handling for unknown objects at load time. Previously Dia
15184 was crashing, if you try to load a file referencing objects
15185 whiches plug-ins aren't installed/available. Now it spits out
15186 a warning and ignores the unknown objects.
15189 toolbox DND support for files like The Gimp does it.
15193 Simple splash screen support and usage.
15196 Splash screen, portability fixes, dont' g_error if there is
15197 g_get_homedir return NULL. This may remove the one and only
15201 Make it compile without ENABLE_NLS
15203 * app/render_libart.c :
15204 Sanity check to avoid calling libart with wrong window coordinates.
15205 They come from the update handler. Direct Gdk is dealing nicely
15206 with coordinates out of range, libart does access un-owned memory
15207 in this case, mostly causing crashes.
15209 * app/winmain.c: (new file) Export the Win32 Gui version of the
15210 main function. This file is only required for Windoze.
15212 * app/splash.c: (new file) splash screen implementation
15216 * lib/diavar.h: (new file)
15217 moved special variable export code to diavar.h, because it is
15218 needed in color.h and font.h
15221 M$VC cann't export inlined functions. Quick hack to let it
15222 link again. Probably the glib mechanics should be used here?
15224 * objects/UML/lifeline.c : initialize var before usage
15226 * objects/GRAFCET/step.c : removed unused var
15228 2000-10-14 James Henstridge <james@daa.com.au>
15230 * app/render_gnomeprint.c (draw_image): change code so images
15231 don't get flipped when printing.
15233 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15234 sure that the return value of
15235 gnome_print_context_new_with_paper_size is not NULL.
15237 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15238 into a series of bezier segments.
15239 (fill_arc): similar code to handle filled arc segments.
15241 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
15248 * app/disp_callbacks.c
15250 * app/linewidth_area.c
15251 * app/paginate_psprint.c
15252 * app/preferences.c
15256 * app/neworth_conn.c
15258 * objects/standard/box.c: various small changes to get rid of
15259 annoying warnings (eg faulty prototypes and unused variables)
15261 * app/disp_callbacks.c
15264 * app/magnify.h: update magnify tool icon when pressing/releasing
15265 shift. I will try to make something more general so that similar
15266 things can be used by other tools.
15268 * shapes/SDL/inout.shape
15269 * shapes/SDL/return.shape: fixed some typos
15271 2000-10-09 James Henstridge <james@daa.com.au>
15273 * objects/custom/shape_info.c (parse_path): apply patch from
15274 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15277 2000-10-08 James Henstridge <james@daa.com.au>
15279 * objects/standard/image.c (image_set_props): if the file could not
15280 be loaded, show the broken image icon.
15282 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15284 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15286 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15287 object icon when loading from a file. This allows you to have PNG
15288 icon files for shapes.
15290 2000-10-07 James Henstridge <james@daa.com.au>
15292 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15294 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15295 GDK_IMLIB_CFLAGS reference.
15297 * app/commands.c (help_about_callback): remove imlib code.
15299 * lib/dia_image.c: only include the pixbuf version of the image
15302 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15304 * configure.in (CPPFLAGS): remove the check for imlib, as we now
15305 require gdk-pixbuf.
15307 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15308 conditionally define \setfont as well.
15310 2000-10-05 James Henstridge <james@daa.com.au>
15312 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15313 preamble so that we define \setlinejoinmode and \setlinecaps
15314 commands conditionally on them being undefined. This way, the
15315 pstricks output files should work without modification, and will
15316 support the commands when they are implemented in pstricks.
15318 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
15320 * dia.desktop: added hungarian translations to dia.desktop
15322 2000-10-04 James Henstridge <james@daa.com.au>
15324 * sheets/UML.sheet: fix typo.
15326 * objects/custom/shape_info.c: use strtod instead of g_strtod.
15327 (parse_path): actually call setlocale around strtod calls.
15329 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
15330 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15331 the g_strtod wrapper.
15333 * shapes/SDL/: add SDL shapes from Rubens Ramos
15334 <rubens_ramos@yahoo.com>
15336 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15338 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15340 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15341 W. Michael Petullo <mike@flyn.org>.
15343 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15344 from the 0.86 tarball) and jigsaw.sheet.
15346 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15348 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15350 * shapes/network/: add network-additional shapes here.
15352 * sheets/network.sheet: add the network-additional shapes from
15353 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15356 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
15358 * configure.in: Updated ALL_LINGUAS
15360 * po/nl.po: Removed newline from translation
15362 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
15364 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
15365 logo filename generation.
15367 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15368 Avoiding "//dia_logo.png".
15370 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
15372 * app/filedlg.c: add include <sys/types.h> to
15373 remove warning. (OS/2)
15375 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
15377 * objects/chronogram/chronoline_event.c (reparse_clevent):
15378 the __checksum routine was simply bogus. Redone it in a slightly
15379 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15381 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
15383 * app/create_object.c (create_object_button_press):
15384 * app/modify_tool.c (click_select_object):
15385 * lib/object.h: select renamed to selectf to prevent
15386 compiler problems with function select(). OS/2 version.
15388 2000-09-08 Karsten Weiss <knweiss@gmx.de>
15390 * po/de.po: Updated.
15392 2000-09-07 Karsten Weiss <knweiss@gmx.de>
15394 * dia.desktop: Added German translation
15395 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15397 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
15399 * configure.in (ALL_LINGUAS): added "es"
15401 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15406 * app/scroll_tool.c:
15407 Standardized cursor function get_cursor(). Magnify now has
15408 looking-glass cursor with + and -.
15410 * app/create_object.c (create_object_button_press):
15411 Newly created connections now snap to connection points even when
15414 2000-08-17 Daniel Egger <egger@suse.de>
15416 * app/menus.c: #ifdef'ed some code for the none GNOME
15418 * app/dia_embedd.c: Changed obvious hackery. Can anyone
15419 please have a look at the GNOME UI menu creation? The
15420 gnome-app-helper code is ages old and plainly broken!
15422 2000-08-15 Daniel Egger <egger@suse.de>
15429 * app/select.c: First big patch to get the menus
15430 working again in the international version. Copied
15431 some code written by Sven and me from GIMP and
15432 thus implemented automatic tearoffmenu creation and
15433 proper translation. I also removed that pseudo
15434 radiomenu hack and cleaned up several translation
15435 hacks which have never really worked. All in all
15436 this is part I of the big menu patch. Enjoy and tell
15437 me if you detect any problems.
15439 2000-08-14 Daniel Egger <egger@suse.de>
15441 * sheets/UML.sheet: Changed one German translation as
15442 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15444 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
15446 * app/diapagelayout.c:
15447 * lib/diagramdata.c:
15448 * lib/diagramdata.h:
15451 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15452 selecting paper size for a new diagram. TODO: Use libpaper if
15453 available and use gnome_paper-stuff if using GNOME.
15455 * sheets/Electric.sheet: fixed typo.
15457 2000-08-08 James Henstridge <james@daa.com.au>
15459 * po/README: added a readme file to tell translators to translate
15460 the .sheet files as well.
15462 * app/commands.c (help_about_callback): fix small bug where we tried
15463 to gdk_bitmap_unref() the mask for the about box image, even though
15464 it was NULL. Now check for a NULL mask.
15466 2000-08-07 Daniel Egger <egger@suse.de>
15468 * sheets/*.sheet: Added translations for the name
15469 in the toolbar tab. Brushed up some descriptions
15470 and some translations a bit.
15472 2000-08-06 James Henstridge <james@daa.com.au>
15474 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15475 identifier and dtd url for SVG output.
15476 (new_svg_renderer): fix the output of the viewBox output. The
15477 second two numbers are the width and height -- not the right
15478 and bottom sides of the box.
15480 * shapes/*/*.shape: update svg namespace URI.
15482 * objects/custom/shape_info.c (load_shape_info): change the
15483 namespace URI for custom shapes yet again to match the Candidate
15484 Recommedation. It looks like this one will probably be the final
15487 * app/display.c (new_display): remove the code that sets ic and
15488 ic_attr members to NULL, as one of the previous function calls
15489 causes the display to be realised. This means that the ic gets
15490 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15493 2000-08-06 James Henstridge <james@daa.com.au>
15495 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15497 * NEWS: fixed date in NEWS file, as I will release today.
15499 * README: updated the README a little. Added note that Dia is now
15502 * dia.spec: fix up spec file.
15504 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15506 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15507 get heaps of warnings when you turn off debugging.
15508 Also made a few other warning fixes.
15510 2000-08-02 James Henstridge <james@daa.com.au>
15512 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15514 * configure.in: update version number.
15516 2000-08-01 James Henstridge <james@daa.com.au>
15518 * app/commands.c (help_about_callback): add Hans to about dialog.
15520 * doc/shape.dtd: dtd for shape file format.
15522 * doc/custom-shapes: update doc file about creating custom shapes.
15524 * shapes/*/*.shape: change namespace URI for the SVG portion to the
15525 one for the latest draft.
15527 * shapes/*/*.shape: fix up rect definitions.
15529 * objects/custom/shape_info.c (load_shape_info): recognise newer
15530 namespace tag for SVG.
15531 (parse_svg_node): the rect element should take attributes x, y, width
15532 and height -- not x1,y1,x2,y2.
15534 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15535 output to use the newest draft DTD.
15537 * plug-ins/svg/svg.c: initialisation code for plugin.
15539 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15541 * plug-ins/svg/Makefile.am: makefile for svg plugin.
15543 * app/app_procs.c (internal_plugin_init): don't register the svg
15544 export filter here.
15546 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15548 2000-07-31 James Henstridge <james@daa.com.au>
15550 * objects/standard/textobj.c (textobj_get_defaults):
15551 * objects/standard/polygon.c (polygon_get_defaults):
15552 * objects/standard/image.c (image_get_defaults):
15553 * objects/standard/ellipse.c (ellipse_get_defaults):
15554 * objects/standard/box.c (box_get_defaults):
15555 * objects/standard/beziergon.c (beziergon_get_defaults):
15556 * objects/flowchart/parallelogram.c (pgram_get_defaults):
15557 * objects/flowchart/ellipse.c (ellipse_get_defaults):
15558 * objects/flowchart/diamond.c (diamond_get_defaults):
15559 * objects/flowchart/box.c (box_get_defaults):
15560 * objects/custom/custom_object.c (custom_get_defaults):
15561 * objects/FS/flow.c (flow_get_defaults):
15562 * objects/FS/flow-poly.c (flow_get_defaults):
15563 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15566 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15567 widgets for various object types.
15568 (create_dialog): ref and sink the no_defaults_dialog.
15570 * app/preferences.c (prefs_create_dialog): change
15571 gtk_container_border_width call to gtk_container_set_border_width.
15573 2000-07-29 James Henstridge <james@daa.com.au>
15575 * app/commands.c (view_aa_callback): show a warning dialog if
15578 * app/interface.c (fill_sheet_menu): don't add a menu item for
15581 2000-07-26 James Henstridge <james@daa.com.au>
15583 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15585 * app/menus.c: remove edit grid menu item.
15587 * app/commands.[ch] (view_edit_grid_callback): removed.
15589 * app/display.c (new_display): don't initialise removed Grid members.
15591 * app/grid.c: remove unused functions.
15593 * app/grid.h: remove dialog related stuff from Grid structure.
15594 Remove prototypes for dialog functions.
15596 * app/menus.c: add to menus
15598 * app/commands.[ch] (view_diagram_properties_callback): new command
15599 for showing the diagram properties dialog.
15601 * app/dia-props.[ch]: a new diagram properties dialog. To replace
15602 the edit grid dialog.
15604 2000-07-25 James Henstridge <james@daa.com.au>
15606 * app/grid.c (grid_x_update):
15607 (grid_y_update): as the grid setting is stored with the diagram,
15608 update all displays when a change is made.
15610 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15612 * app/create_object.c (create_object_button_press):
15613 (create_object_motion): use new snap_to_grid signature.
15615 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15616 and handle invisible grid lines.
15617 (snap_to_grid): use new grid settings. Also changed signature to
15618 take a DDisplay rather than Grid pointer.
15619 (grid_show_dialog): get the defaults from the correct place.
15621 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15623 * app/diagram.c (new_diagram): set the grid size defaults from the
15626 * app/load_save.c (diagram_data_save): save grid and guide info to
15628 (diagram_data_load): add guide and grid load support.
15630 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15633 * lib/diagramdata.h: add members to DiagramData for grid and guide
15636 * configure.in (BONOBO_LIBS): update configure scripts
15638 * app/dia.oafinfo: oafinfo file for dia embeddables.
15640 * app/dia_embedd.c: add OAF support.
15642 2000-07-24 James Henstridge <james@daa.com.au>
15644 * plug-ins/wpg/Makefile.am:
15645 * plug-ins/pstricks/Makefile.am:
15646 * plug-ins/hpgl/Makefile.am:
15647 * plug-ins/dxf/Makefile.am: same here.
15649 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
15650 the required libraries, and the link line was causing libtool not
15651 to build a shared library on some systems :(
15653 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15654 be checking x, not n.
15656 2000-07-23 James Henstridge <james@daa.com.au>
15658 * app/preferences.c (prefs_data): set the "reset tools after
15659 create" preference to true by default. That seems to be what most
15662 * app/interface.c (create_sheets): instead of a notebook, use an
15663 option menu that updates the sheet tools. The notebook tabs were
15664 getting a bit unwieldly, so the option menu should fix that. This
15665 also reduces the number of widgets in the tools radio button
15666 group, which should make the UI a little more responsive.
15668 2000-07-19 Fatih Demir <kabalak@gmx.net>
15670 * configure.in: Added tr to ALL_LINGUAS.
15671 [ Yeah, we're now having a Turkish translation,
15674 * dia.desktop: Added the Turkish entries.
15676 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
15678 * doc/diagram.dtd: changed string-element so it conforms to the
15681 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
15683 * configure.in: added chinese.
15684 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15692 objects/custom/shape_info.c:
15693 shapes/Circuit/npn.shape:
15694 shapes/Circuit/pnp.shape:
15695 sheets/*.sheet: dia now works with libxml2.
15696 Libxml2 is a bit more picky when parsing xml and reported errors on all
15697 sheet files because they use non ascii characters (added
15698 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
15699 I commented out these.
15701 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
15703 * configure.in (ALL_LINGUAS): added Italian
15705 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
15707 * configure.in (ALL_LINGUAS): added Korean
15709 2000-06-25 James Henstridge <james@daa.com.au>
15711 * objects/flowchart/parallelogram.c (pgram_create): use default font
15712 and add properties interface support.
15714 * objects/flowchart/ellipse.c (ellipse_create): use default font and
15715 add properties interface support.
15717 * objects/flowchart/diamond.c (diamond_create): use default font and
15718 add properties interface code.
15720 * objects/flowchart/box.c (box_create): use default font.
15722 * objects/custom/custom_object.c (custom_create): use default font
15725 * objects/standard/textobj.c (textobj_create): update to use default
15728 * lib/attributes.c: add implementations.
15730 * lib/attributes.h (attributes_[gs]et_default_font): add function
15731 prototypes for setting/getting a default font.
15733 2000-06-24 James Henstridge <james@daa.com.au>
15735 * app/paginate_gnomeprint.h: updated prototype.
15737 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15738 diagram page settings.
15740 * objects/standard/beziergon.c (beziergon_copy): same here.
15742 * objects/standard/polygon.c (polygon_copy): copy the fill colour
15746 * app/tool.h (tool_options_dialog_show):
15747 * app/scroll_tool.h (free_scroll_tool):
15748 * app/render_svg.h:
15749 * app/render_libart.h (renderer_libart_copy_to_window):
15750 * app/render_gdk.h (renderer_gdk_copy_to_window):
15751 * app/properties.h (properties_hide_if_shown):
15752 * app/preferences.h (prefs_load):
15753 * app/object_ops.h:
15754 * app/modify_tool.h (free_modify_tool):
15755 * app/magnify.h (free_magnify_tool):
15756 * app/linewidth_area.h (linewidth_area_create):
15757 * app/layer_dialog.h:
15758 * app/handle_ops.h (handle_is_clicked):
15760 * app/grid.h (grid_destroy_dialog):
15761 * app/defaults.h (defaults_show):
15762 * app/cut_n_paste.h (cnp_exist_stored_objects):
15763 * app/create_object.h (free_create_object_tool):
15764 * app/connectionpoint_ops.h (diagram_unconnect_selected):
15766 * app/color_area.h (color_area_create):
15767 * app/app_procs.h (app_is_embedded): remove extern keyword from
15768 function prototypes.
15771 * lib/sheet.h (load_all_sheets):
15772 * lib/render_store.h:
15773 * lib/render_object.h (render_object_load):
15774 * lib/polyshape.h (polyshape_closest_segment):
15775 * lib/poly_conn.h (polyconn_closest_segment):
15778 * lib/objchange.h (new_object_state_change):
15779 * lib/neworth_conn.h (neworthconn_add_segment):
15780 * lib/message.h (message_error):
15783 * lib/font.h (font_descent):
15784 * lib/focus.h (remove_focus):
15786 * lib/diagramdata.h:
15787 * lib/dia_xml.h (data_add_composite):
15789 * lib/connpoint_line.h:
15790 * lib/connection.h (connection_move_handle):
15792 * lib/attributes.h (attributes_set_default_line_style):
15793 * lib/arrows.h (arrow_draw): remove extern keyword from function
15794 definitions. It is not required for functions.
15796 * plug-ins/dxf/Makefile.am (INCLUDES):
15797 * plug-ins/pstricks/Makefile.am (INCLUDES):
15798 * plug-ins/cgm/Makefile.am (INCLUDES):
15799 * objects/SADT/Makefile.am (INCLUDES):
15800 * objects/chronogram/Makefile.am (INCLUDES):
15801 * objects/GRAFCET/Makefile.am (INCLUDES):
15802 * objects/flowchart/Makefile.am (INCLUDES):
15803 * objects/sybase/Makefile.am (INCLUDES):
15804 * objects/FS/Makefile.am (INCLUDES):
15805 * objects/standard/Makefile.am (INCLUDES):
15806 * objects/network/Makefile.am (INCLUDES):
15807 * objects/UML/Makefile.am (INCLUDES): same here.
15809 * objects/ER/Makefile.am: changed inclusion of some macros to
15812 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15813 handle the plug in extension, rather than have all the #ifdef's in
15816 * plug-ins/Makefile.am: add renderer.inc to dist.
15818 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15820 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
15822 * lib/plug-ins.c: Handle OS/2 dll's too.
15824 2000-06-07 James Henstridge <james@daa.com.au>
15826 * app/plugin-manager.c (get_plugin_manager): set some table
15827 packing options to make it look a little nicer.
15829 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15830 makefiles for these plug-ins.
15832 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15834 * configure.in: added hpgl and wpg directories to build. Added
15835 note about whether gnome-print support was enabled, and noted that
15836 it is not recommended.
15838 2000-06-06 James Henstridge <james@daa.com.au>
15840 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
15841 a little work, but I am checking them in so I don't lose them.
15843 2000-06-01 James Henstridge <james@daa.com.au>
15845 * objects/standard/arc.c: added extra properties.
15847 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15848 was using the wrong index into the handles array. This gets corner
15849 type changing working correctly.
15851 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15852 to properties code (no editing or loading yet though). Also added
15853 support for point array manipulation through the offsets interfaces.
15855 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
15857 * app/interface.c (origin_button_press): changes so the origin
15858 button doesn't grab the pointer when we pop up the menu.
15860 * app/commands.c (help_about_callback): fix small memory leak in
15863 * app/menus.c (menus_init): fixed breakage I introduced in the non
15864 gnome menus when I was doing the menu changes. The tearoffs work
15865 really nicely in plain gtk mode as well.
15867 * objects/standard/beziergon.c (beziergon_create): changed the
15868 returned handles to match the handle numbering changes. Now
15869 segment addition and removal works correctly with undo!
15871 * lib/beziershape.c: various changes to the code. Changed the
15872 numbering of handles, and fixed the segment removal code.
15874 2000-05-31 James Henstridge <james@daa.com.au>
15876 * objects/standard/beziergon.c: remove connection point handling.
15877 There is still a bit of work to be done to get adding and removing
15878 of segments working correctly.
15880 * lib/beziershape.c: add connection point handling to beziershape.
15881 I set it for two connection points per segment.
15883 2000-05-30 James Henstridge <james@daa.com.au>
15885 * objects/standard/polygon.c: don't do connectionpoint handling.
15887 * lib/polyshape.c: changed to handle connection points internally.
15888 Also, don't worry about connections to handles on polyshape, as
15889 all handles are non connectable.
15891 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
15893 * configure.in: Added finnish
15895 2000-05-30 James Henstridge <james@daa.com.au>
15897 * sheets/*.sheet: translation updates to the .sheet files.
15899 * po/fr.po: updated po file from Christophe Merlet.
15901 * menus.h: removed prototypes for functions which have been removed.
15903 2000-05-29 James Henstridge <james@daa.com.au>
15905 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
15906 item in the option menu when changing selected diagram.
15908 * app/dia_embedd.c (view_factory): fix up function to work with new
15911 * app/disp_callbacks.c (ddisplay_realize): remove call to
15912 display_set_active from here.
15913 (ddisplay_canvas_events): move call here. This gets rid of all the
15914 warnings, as the renderer has been fully set up correctly at this
15917 * app/menus.c (menus_init): add the tearoff item to the start of the
15920 * app/app_procs.c (create_user_dirs): we don't need to create the
15921 menus directory anymore.
15923 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
15924 necessary to update the menu state here, as it was done when the
15925 active display was set.
15927 * app/display.c (display_set_active): update the menu state when
15928 changing active displays.
15930 * app/interface.c (origin_button_press): set the display as active
15931 when a click is made on the menu button.
15933 * app/menus.c (menus_init): set up a quit function to save the accels
15935 Add tearoff items for the non GNOME menus, add accelerators for
15936 several GNOME menus.
15938 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
15939 menus_get_image_menu().
15941 * app/menus.c (menus_get_item_from_path): use display_menus here
15942 rather than ddisp->popup.
15944 * app/display.h: remove the popup member in the DDisplay structure.
15946 * app/interface.c: remove option of not using wrap box.
15947 (create_toolbox): change to always use menus_get_toolbox_menubar
15948 even when using gnome menus.
15949 (create_display_shell): use menus_get_image_menu to load accelerators
15950 only -- not the actual popup menu.
15952 * app/menus.c (menus_init): new function to create the menus.
15953 (menus_get_toolbox_menubar): use this function whether gnome is
15954 in use or not. Changed to use menus_init.
15955 (menus_get_image_menu): same here. Also, now this function always
15956 returns the same menu, rather than a new one each time.
15957 (menus_init): read a menurc file to load accelerators here.
15959 2000-05-28 James Henstridge <james@daa.com.au>
15961 * app/display.c (ddisplay_really_destroy): unset active display if
15962 active display is destroyed.
15963 (ddisplay_active): simplify function to return active_display as set
15964 by display_set_active. This allows using a pinned menu with any
15965 display -- not just the one it was popped up from.
15966 (display_set_active): notify the layer dialog of change of diagrams
15967 when active diagram changes.
15969 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
15970 on button and key presses.
15971 (ddisplay_realize): set active display on realize.
15973 * app/display.c (display_set_active): simple implementation of this
15976 * app/display.h (display_set_active): add prototype for setting
15977 the active display.
15979 * app/interface.c (create_display_shell): don't give focus to the
15982 * app/menus.c: fix up menus for Beziergon.
15984 * app/interface.c (create_display_shell): make the widget in the
15985 top left corner a button that can be used to pop up the right click
15986 menu, like in gimp and sketch.
15988 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
15991 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
15992 add code to set corner types for beziergon.
15994 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
15996 (beziershape_move_handle): use the previous corner type for right
15999 * app/interface.c (tool_data): add beziergon to toolbox.
16001 * objects/standard/standard.c (dia_plugin_init): initialise the new
16002 Beziergon object type.
16004 * objects/standard/beziergon.c: an object based on BezierShape.
16006 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
16008 * lib/beziershape.[ch]: new files implementing a bezier shape.
16010 2000-05-26 James Henstridge <james@daa.com.au>
16012 * lib/text.c (text_key_event): handle multibyte inserts.
16013 (text_key_event): also add home and end keybindings.
16015 * app/interface.c (create_display_shell): connect handlers for
16016 focus_in_event, focus_out_event, realize and unrealize signals.
16018 * app/display.[ch] (new_display): initialise input context members.
16020 * app/disp_callbacks.[ch]: added XIM support here.
16022 * lib/font.c (suck_font): the black and white pixel values should be
16023 taken from a 1 bit colormap rather than the default colormap.
16025 Hans Breuer's Windows patches ...
16027 * lib/font.c: use Courier New for fixed width font on windows
16030 * lib/dia_image.h: change to "struct _DiaImage".
16032 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
16034 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
16035 mouse button for object menu. This will make two button mouse owners
16038 2000-05-25 James Henstridge <james@daa.com.au>
16040 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
16042 * app/app_procs.c (app_init): add extra NULL argument to call of
16045 * app/load_save.h: remove prototype.
16047 * app/load_save.c: remove diagram_data function here.
16049 * app/diagram.h: added prototype.
16051 * app/diagram.c (diagram_load): new function here, which uses import
16054 * plug-ins/dxf/dxf.c: register the import filter as well.
16056 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
16057 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
16059 * objects/standard/line.c: add start_point and end_point properties
16060 to standard line object.
16062 2000-05-21 James Henstridge <james@daa.com.au>
16064 * app/paginate_psprint.c: added missing include of locale.h.
16066 * objects/custom/custom_object.c (custom_draw): use fabs rather than
16067 abs for scaling factors.
16068 (custom_distance_from): same here.
16070 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
16072 2000-05-18 James Henstridge <james@daa.com.au>
16074 * po/POTFILES.in: updated POTFILES.in.
16076 * dia.spec: incremented version number in spec file.
16078 * NEWS: added (lots of) news items for the 0.85 release.
16080 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
16083 * configure.in: updated version number here.
16085 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
16087 2000-05-17 James Henstridge <james@daa.com.au>
16089 * app/app_procs.c (internal_plugin_init): register the native import
16092 * app/load_save.c (diagram_data_load, diagram_load): split this
16093 function into two -- one that does all the work on the DiagramData
16094 structure, and the other that provides compatibility with the old
16096 (dia_import_filter): use diagram_data_load to define an import
16099 * app/diagram.h (new_diagram): added const to prototype.
16101 * app/filedlg.c (file_open_callback): change to use new import filter
16104 * lib/filter.c: added import filter management functions.
16106 * lib/filter.h: added prototypes for import filter interface.
16108 * app/commands.c (help_about_callback): updated about dialog to
16109 contain a few more names.
16111 2000-05-16 James Henstridge <james@daa.com.au>
16113 * configure.in (Configuration): added a status message to the end of
16114 the configure script to give the user some idea of what was
16117 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
16119 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
16122 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
16125 * configure.in (AM_PATH_LIBART): use the check function provided
16126 with libart rather than our own code. It is more reliable, and
16127 it only requires that people who build out of CVS have libart.m4
16128 installed (not necessarily all of libart).
16129 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
16131 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
16133 * dia.desktop: Added Swedish translation.
16135 2000-05-09 James Henstridge <james@daa.com.au>
16137 * lib/dia_xml.c: you can't free a const pointer, so remove const
16138 from variable definitions.
16140 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
16141 initialised correctly.
16143 * app/render_svg.c (export_svg): set locale to C.
16145 * app/paginate_psprint.c (paginate_psprint): set locale to C.
16147 * app/render_eps.c (export_eps): set locale to C for EPS export.
16149 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
16150 (data_add_point): same here.
16151 (data_add_rectangle): same here.
16152 (data_real): use g_strtod to convert strings to real numbers, so that
16153 locales are taken into account.
16154 (data_point): same here.
16155 (data_rectangle): same here.
16157 * AUTHORS: added Henk and Jacek to authors file.
16159 Daniel Egger's code cleanups.
16161 * app/select.c (select_invert_callback): remove unused variable.
16163 * app/plugin-manager.c (get_plugin_manager): fix typo.
16165 * app/load_save.c (read_connections, write_objects):
16166 (write_connections): made some functions static.
16168 * app/interface.c (toolbox_delete, toolbox_destroy): made some
16171 * app/filedlg.c (file_export_callback): remove unused variable.
16173 * app/app_procs.c: various warning fixes.
16175 Integrating Jacek Pliszka's pstricks export filter.
16177 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
16179 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
16180 renderer (with a few small modifications by me).
16182 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
16184 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
16186 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
16189 * sheets/Makefile.am:
16190 * shapes/Makefile.am:
16191 * shapes/Civil/Makefile.am:
16192 * sheets/civil.sheet:
16194 Added civil/hydraulic/structural engineering objects from
16195 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
16197 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
16199 * objects/FS/flow-poly.c:
16200 * objects/FS/flow.c:
16201 Fix division by zero in point_normalize().
16202 Patch by David Thompson <dcthomp@mail.utexas.edu>
16204 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
16207 * lib/bezier_conn.c:
16208 * lib/connpoint_line.c:
16209 Added checks for zero-length lines before calls to point_normalize.
16211 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16213 * app/preferences.c (prefs_data): Changed
16214 reversed_dragging_intersects to not make the dialog ridiculously
16217 2000-04-22 James Henstridge <james@daa.com.au>
16219 Hans's win32 patches:
16221 * app/export_png.c: include message.h
16222 * app/interface.c: include dia_dirs.h
16223 * app/linewidth_area.c: check for rint
16224 * app/main.c: include interface.h
16225 * app/paginate_psprint.c: remove unused variable.
16226 * app/preferences.c: include message.h
16227 * app/render_svg.c: include stdlib.h
16228 * app/select.c: include object_ops.h
16229 * lib/dia_dirs.c: miscelaneous fixes for win32.
16230 * lib/dia_image.c: include string.h
16231 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16232 * lib/properties.c: include stdlib.h
16233 * lib/properties.h: define extra data for standard properties as
16234 static variables on win32 (to get around dynamic linker problems).
16235 * objects/standard/polygon.c: polygon_create_change missing return
16238 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
16240 * configure.in (ALL_LINGUAS): added Catalan
16242 2000-04-18 James Henstridge <james@daa.com.au>
16244 * objects/standard/bezier.c (bezierline_get_object_menu): add a
16245 separator to the object menu between the add/remove segment items
16246 and the corner type items.
16247 (bezierline_get_object_menu): add code to disable the menu item for
16248 the current corner type. Really just a cosmetic change.
16250 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16251 a NULL for the label or with no associated callback.
16253 * objects/standard/bezier.c (bezierline_menu_items): use the
16254 enumeration values rather than numeric values for the corner types.
16256 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16257 structure, and add code to handle it. Also, don't save the corner
16258 types inline in the bez_points node. The way it is conditionally
16259 including the element just feels like it will break.
16261 * lib/geometry.h (BezPoint): removed the corner_type stuff from
16262 BezPoint. The corner type stuff is a user interface level idea rather
16263 than something required by the renderer, so should be taken care of
16264 at the object level.
16266 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16268 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16269 checks. Weren't able to reproduce original bug, tough.
16271 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
16273 * sheets/Electric.sheet:
16274 * sheets/Contact.sheet:
16275 * sheets/Pneumatic.sheet:
16276 * sheets/Circuit.sheet: sprayed some <br/>'s around.
16277 (added a few French translations in the last file)
16279 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16282 * lib/bezier_conn.h:
16283 * objects/standard/bezier.c:
16284 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16285 bezier points. Only one minor problem known: Menus are active
16286 for endpoints minor handles.
16287 11:28: Save and load now works, too.
16288 (bezierconn_closest_major_handle): 12:03: New function to get the
16289 non-control point handle associated with the nearest control
16291 Also fixed the menu activation problem, and made remove_segment
16292 not remove the endpoint.
16294 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16296 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16299 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
16301 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16302 <sys/stat.h>. OS/2 patch.
16304 2000-04-15 James Henstridge <james@daa.com.au>
16306 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16307 Thompson's patch that adds undo support to the function structure
16310 2000-04-14 James Henstridge <james@daa.com.au>
16312 * objects/custom/custom_object.c (custom_distance_from): new
16313 implementation of distance algorithm that actually takes the
16314 display list into account when calculating the distance. Much nicer
16315 than a simple bounding box.
16317 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
16319 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16321 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16323 * objects/standard/polygon.c: Start of polygons own changes (for
16324 connectionpoints). Need to do seperate changes in polyshape, too,
16325 rather than reuse the bezier changes.
16327 2000-04-13 James Henstridge <james@daa.com.au>
16329 * lib/dia_image.c (dia_image_draw): use the new enumeration values
16330 from after the gdk-pixbuf cleanup.
16332 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16333 on for loop. Last set of coefficients were not beeing calculated,
16334 which caused a bit of breakage.
16336 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16337 functions in geometry.c for calculating the closest segment.
16338 (bezierconn_distance_from): use distance_bez_line_point to calculate
16341 * lib/geometry.c (distance_bez_line_point): new function to calculate
16342 the distance from an open bezier line to a point.
16343 (distance_bez_shape_point): new function to calculate the distance
16344 from a closed bezier shape.
16345 (distance_ellipse_point): new function to calculate the distance from
16346 a filled ellipse to a point.
16348 * lib/geometry.h (BezPoint): moved this structure here from render.h
16350 2000-04-12 James Henstridge <james@daa.com.au>
16352 * lib/geometry.c (distance_bez_seg_point): new function to calculate
16353 the distance from a bezier segment.
16355 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16356 to calculate the distance from the object.
16358 * lib/geometry.c (distance_polygon_point): function for calculating
16359 the distance from a polygon to a point.
16361 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
16364 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
16365 breaks can be inserted in the tool box.
16367 * doc/sheet.dtd: updated the DTD
16368 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16370 2000-04-12 James Henstridge <james@daa.com.au>
16372 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16373 macro if the dialog is a GtkDialog :(
16375 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16377 * objects/standard/polygon.c: Connectionpoints now properly
16378 managed in a GList. As far as I can tell, this will not dieturb
16379 the order (but I have the nagging doubt...)
16381 * lib/polyshape.c: No longer knows about connectionpoints.
16383 2000-04-11 James Henstridge <james@daa.com.au>
16385 * app/Makefile.am: fix makefile for bonobo build.
16387 * configure.in: fix checks for bonobo.
16389 * app/menus.c: added entries for the plugin manager.
16391 * app/Makefile.am (dia_core_files): added plugin manager to files
16394 * app/plugin-manager.[ch]: the plugin manager dialog.
16396 * app/display.c (display_update_menu_state): set the antialiased
16397 menu entry to the correct value.
16399 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
16401 * objects/custom/custom_object.c: not all renderers like ellipses with
16402 negative dimensions. This could cause ellipses to disappear when using
16403 the flip_h and flip_v functions.
16405 * samples/grafcet.dia: fixed speling and correctness.
16407 2000-04-11 James Henstridge <james@daa.com.au>
16409 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16410 exposed the dia_plugin_load and dia_plugin_unload functions.
16412 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16413 already created PluginInfo structure.
16415 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16418 * lib/sheet.c: fix up call to dia_config_filename.
16420 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16421 file. This would save information such as which plugins not to
16422 load during startup.
16424 2000-04-09 James Henstridge <james@daa.com.au>
16426 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16428 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
16430 * lib/plug-ins.c (dia_register_plugins):
16431 Don't free the value returned from g_getenv.
16433 2000-04-09 Anders Carlsson <andersca@gnu.org>
16435 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16437 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16439 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
16440 right to left, select objects that intersect the rubberbanding rectangle
16441 instead of selecting objects that are in the rectangle.
16443 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16445 * lib/diagramdata.h: Likewise.
16448 2000-04-09 James Henstridge <james@daa.com.au>
16450 * lib/plug-ins.[ch]: add copyright messages to files.
16452 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16455 * objects/sybase/sybase.c (dia_plugin_init):
16456 * objects/network/network.c (dia_plugin_init):
16457 * objects/flowchart/flowchart.c (dia_plugin_init):
16458 * objects/custom/custom.c (dia_plugin_init):
16459 * objects/chronogram/chronogram.c (dia_plugin_init):
16460 * objects/UML/uml.c (dia_plugin_init):
16461 * objects/SADT/sadt.c (dia_plugin_init):
16462 * objects/GRAFCET/grafcet.c (dia_plugin_init):
16463 * objects/FS/fs.c (dia_plugin_init):
16464 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16467 * objects/standard/standard.c (dia_plugin_init): change over to new
16470 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16471 the version checker for plugins.
16473 * app/app_procs.c: remove plugin loading code from here, and use
16474 code from plug-ins.[ch]. Also move registration of internal
16475 objects/filters to a `builtin' plugin.
16477 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16479 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16481 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16482 defined variable in EXTRA_DIST.
16484 * app/preferences.h: removed dia_config_filename from header.
16486 * app/preferences.c: removed dia_config_filename function.
16488 * lib/dia_dirs.c (dia_config_filename): moved function over to this
16489 file. Also changed implementation slightly so that it should work
16490 on the win32 port correctly (and use NT home directories).
16492 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16493 it should have been.
16495 * lib/plug-ins.[ch]: new plugin loading code.
16497 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16499 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16501 * lib/polyshape.c: Fix closest segment finding, exposes deeper
16502 bugs in adding corners to 'wraparound' segment.
16504 * objects/standard/polygon.c: Added connection points (fixed so
16505 far), set menu sensitivity.
16507 * lib/polyshape.c: Changed to box-style handles, fixed for start
16508 and ends not being special, added initial connections,
16510 * lib/dummy_dep.h: Added polyshape (gotcha!)
16512 * objects/standard/pixmaps/ellipse.xpm:
16513 * objects/standard/pixmaps/box.xpm:
16514 Filled element pixmaps with white.
16517 * objects/standard/polygon.c:
16519 * objects/standard/standard.c:
16520 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
16521 * lib/Makefile.am (libdia_a_SOURCES):
16523 * app/interface.c (tool_data):
16524 Added Standard/Polygon object and PolyShape lib object. Still
16525 needs inside grab and connection points.
16527 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16530 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16533 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16534 if (argv) outside ifdefs.
16536 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16538 * objects/standard/image.c (image_set_props):
16539 Aspect ratio is back in town.
16541 * app/Makefile.am (dia_LDADD):
16544 Check for gdk_pixbuf (by default disabled, for now)
16546 * app/render_eps.c (draw_image):
16547 * app/render_libart.c (draw_image):
16548 * app/render_gnomeprint.c (draw_image):
16549 Support for alpha mask in rendering. Color postscript, too.
16553 Support for gdk_pixbuf and proper masking for exports.
16555 2000-04-01 Kjartan Maraas <kmaraas@online.no>
16557 * sheets/*.sheets: Updated Norwegian translations.
16559 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16561 * lib/text.c (text_insert_char):
16562 * lib/render_store.c (add_data):
16563 Made realloc double the alloced space rather than add
16564 a fixed amount, to reduce memory stress.
16566 * app/select.c: Added new select method 'Transitive'
16567 that select every reachable (by connections) object.
16569 2000-03-27 Kjartan Maraas <kmaraas@online.no>
16571 * dia.desktop: Added Norwegian translation.
16573 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
16575 * app/render_eps.c:
16576 * app/render_svg.c:
16577 Don't dereference NULL pointer if the renderer
16578 couldn't open the file. Fix by Lars Clausen.
16579 Bug reported by Martin Chisholm <b1mt@unb.ca>
16581 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
16585 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16587 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
16589 * app/dia.gnorba (location_info):
16590 Changed to correct executable name.
16592 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
16595 Don't do any argument parsing or initialization
16598 * app/dia_embedd.c:
16599 Call init_server_factroy before app_init.
16600 Call app_init with argv==NULL
16601 Now we don't get any critical error on startup.
16604 Add Electric and Pneumatic to makefile list.
16606 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
16608 * shapes/Electric/*:
16609 * sheets/Electric.sheet:
16610 Add some Electric circuit shapes.
16612 * shapes/Pneumatic/*:
16613 * sheets/Pneumatic.sheet:
16614 Add some Pneumatic & Hydraulic circuit shapes
16615 (both sheets are still incomplete, though feature enough
16616 things for basic circuits).
16618 * shapes/Contact/l_*.(xpm|shape):
16619 * sheets/Contact.sheet
16620 * shapes/Contact/Makefile.am
16621 made the older electric circuit shapes in Contact obsolete (disabled
16622 them in the sheet, made that sheet Ladder only). Fixed the makefile
16623 for forgotten items.
16625 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
16628 Add support for Dia bonobo component.
16629 Currently a bit raw, so it's commented out.
16631 * app/dia_embedd.c:
16633 New files for embedding dia.
16634 The menu disabling hack is a bit gross. Esp. for GNOME.
16637 Add new function app_is_embedded();
16640 Don't destroy diagram when last display is destroyed if embedded.
16643 Change initialization of display so it works with embedding.
16646 Clarify comment about display destruction.
16648 * app/interface.[ch]:
16649 Added top_level_window argument to create_display_shell.
16650 Don't open a top-level window if embedding.
16651 Don't quit app if trying to close toolbox window when embedding.
16652 Add toolbox_show() and toolbox_hide().
16655 Added app_is_embedded() function (just returns false).
16656 Added toolbox_show() call in main().
16659 Added code for getting toolbox menus. This is used to
16660 hide some menu items when running embedded.
16663 Include sheet.h to remove warning.
16665 * objects/UML/association.c:
16666 Clarify association direction text.
16668 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
16671 Fixed man page so whatis parsing works.
16673 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
16675 * app/render_libart.c (new_libart_renderer):
16676 Fix from segg <segg@infonet.ca> to compile without libart.
16677 I forgot to change the stub for new_libart_renderer when doing
16678 the interactive renderer stuff for libart.
16680 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
16682 * dia.desktop: Added Irish translation.
16684 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16686 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
16688 * app/load_save.c (fchmod): OS/2 defines only.
16690 2000-03-07 James Henstridge <james@daa.com.au>
16692 * lib/properties.c (prop_get_widget): set the position in the option
16695 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
16698 * app/export_png.c:
16699 * app/render_libart.[ch]:
16700 Don't export png:s with an interactive libart renderer.
16702 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
16704 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
16706 2000-03-02 James Henstridge <james@daa.com.au>
16708 * dia.spec (%build): unset LINGUAS before running configure. This
16709 ensures that all translations get included in the RPM.
16711 * lib/properties.c (object_create_props_dialog): put in a check for
16712 a NULL return from the describe_props() object method.
16713 (prop_desc_lists_union): make sure that the returned array is not
16715 (prop_desc_lists_intersection): same here.
16717 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
16719 * objects/ER/Makefile.am:
16720 * objects/FS/Makefile.am:
16721 * objects/UML/Makefile.am:
16722 Don't link object libs with gtk.
16724 2000-02-29 James Henstridge <james@daa.com.au>
16726 * app/preferences.c (prefs_save): check to see if the file could
16727 be opened before writing the prefs.
16729 * app/disp_callbacks.c (popup_object_menu): pass the button event
16730 to gtk_menu_popup. This allows you to click and release to open
16732 (ddisplay_canvas_events): same here.
16733 (create_object_menu): set the object type menu item in the object
16734 menu to be insensitive.
16736 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16737 as we are now requiring a new version of libxml.
16739 * dia.spec: updated version number. Added requirement for
16742 * configure.in: incremented version number to 0.84.
16743 Added check for libxml >= 1.8.5. This will prevent some of the
16744 problems people have had with broken libxml versions.
16746 * NEWS: added news items.
16748 * app/interface.c (create_color_area): removed call to realize parent
16749 widget. Segg <segg@infonet.ca> reported that it caused a warning,
16750 but I haven't seen it on my copy of dia.
16752 2000-02-28 James Henstridge <james@daa.com.au>
16754 * app/export_png.c: added copyright notice, and made the band height
16757 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
16759 * lib/font.c (suck_font):
16760 Fixed off-by one bug in font pixmap height.
16761 Fixes the problem with garbage at the bottom of some text in aa mode
16762 and in png exported files.
16764 2000-02-27 James Henstridge <james@daa.com.au>
16766 * app/app_procs.c: add the png export filter if it was compiled in.
16768 * app/export_png.c (export_png): new PNG export filter. This requires
16769 the libart renderer to work as it needs a renderer that renders to a
16772 * configure.in: add check for libpng.
16774 * lib/message.c (message_internal): use a GNOME dialog here as well.
16776 * app/display.c (ddisplay_close): use a GNOME dialog here.
16778 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16779 when exporting to EPS. This is because some people said the EPS
16780 output was too large
16782 2000-02-26 James Henstridge <james@daa.com.au>
16784 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16787 * app/app_procs.c (app_exit): use a GNOME dialog here.
16789 * app/preferences.c (prefs_create_dialog): if GNOME support is
16790 enabled, show a GNOME dialog.
16792 * app/grid.c (grid_draw): use preferences when drawing page break
16795 * app/preferences.c: add page break preferences to dialog.
16797 * app/preferences.h: added page break preferences.
16799 2000-02-25 James Henstridge <james@daa.com.au>
16801 * sheets/UML.sheet: added new objects.
16803 * objects/UML/uml.c: link in the two new objects.
16805 * objects/UML/node.c:
16806 * objects/UML/branch.c: new UML objects from Stfan Seefeld
16807 <seefelds@magellan.umontreal.ca>.
16809 2000-02-24 James Henstridge <james@daa.com.au>
16811 * objects/custom/custom_object.c: converted to use the properties
16812 interface. In the future, it would be nice to add support for
16813 defining custom properties for custom objects, but that can wait.
16815 2000-02-22 James Henstridge <james@daa.com.au>
16817 * sheets/Circuit.sheet: added new circuit shapes to sheet.
16819 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16820 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
16821 and adds a few new features.
16823 2000-02-21 Daniel Egger <egger@suse.de>
16825 * sheets/*.sheets: Added German translations and made some
16826 corrections to the others.
16828 2000-02-21 James Henstridge <james@daa.com.au>
16830 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16832 * shapes/Circuit/...: added new shapes from Erik Janssens.
16834 2000-02-20 James Henstridge <james@daa.com.au>
16836 * app/interface.c (create_color_area): realize the parent window
16839 * objects/standard/image.c: properties patch for standard image
16840 object, from Lars Clausen.
16842 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16844 * lib/properties.h (PropType): added file property type.
16846 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16849 * app/interface.c: use wrap box for toolbox.
16851 * app/Makefile.am: added new files.
16853 * app/gtk*wrapbox.[ch]: added wrap box widget.
16855 2000-02-19 James Henstridge <james@daa.com.au>
16857 * sheets/network.sheet: added extra shapes to networks sheet.
16859 * configure.in (AC_OUTPUT): added shapes/network/Makefile
16861 * shapes/network/*: added shapes that were posted to the list a while
16864 * shapes/Makefile.am (SUBDIRS): added network subdirectory
16866 * app/menus.c (toolbox_menu_items): don't right justify help menu for
16867 gtk+ version of menus.
16869 * app/properties.c (create_dialog): use a GnomeDialog if we happen
16872 2000-02-18 James Henstridge <james@daa.com.au>
16874 * objects/flowchart/box.c: set extra data for corner radius and text
16875 padding properties.
16877 * objects/standard/box.c: set extra data for corner radius property.
16879 * lib/properties.h: set extra data in some standard properties.
16881 * lib/properties.c (prop_get_widget): look at the extra data for
16882 int, real and enum property types. They now use GtkSpinButton and
16883 GtkOptionMenu respectively.
16885 * lib/properties.h: extra data members for creating property setting
16888 2000-02-17 James Henstridge <james@daa.com.au>
16890 * objects/flowchart/box.c: reverted load/save functions back to
16891 previous implementations. Made box use standard property names.
16893 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
16895 * app/grid.c: add more digits to the grid edit dialog. This patch
16896 was also from Lars Clausen.
16898 * objects/standard/zigzagline.c:
16899 * objects/standard/textobj.c:
16900 * objects/standard/polyline.c:
16901 * objects/standard/line.c:
16902 * objects/standard/ellipse.c:
16903 * objects/standard/box.c:
16904 * objects/standard/bezier.c:
16905 * objects/standard/arc.c: patches to add properties code to standard
16906 objects. Based on patches from Lars Clausen. I have also removed
16907 some dead code from the files.
16909 * lib/properties.h (PROP_STD_*): define a number of standard
16910 properties. Where appropriate, objects should include these
16911 properties in their PropDescription list. This way, the intersection
16912 of properties of two different shapes will be greater.
16914 2000-02-14 James Henstridge <james@daa.com.au>
16916 * objects/flowchart/box.c (box_load, box_save): use property save
16917 routines. Make sure that any props not handled by object_load_props
16918 are loaded before calling object_load_props, or we get errors because
16919 update_data is called.
16921 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
16922 error that could cause properties to be loaded incorrectly.
16923 (object_set_props_from_offsets): similar here.
16925 * lib/properties.[ch] (prop_{load,save}): functions for loading
16926 or saving a property in Dia's XML file format.
16927 (object_{load,save}_props): load or save some properties of an
16928 object. These functions should help simplify the load/save methods
16929 of objects that implement the properties interface.
16931 2000-02-13 James Henstridge <james@daa.com.au>
16933 * objects/flowchart/box.c: use offset code to simplify property
16936 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
16938 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
16940 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
16942 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
16944 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
16947 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
16950 Add the custom object to DIA_LIB_PATH in run_dia.sh
16952 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
16954 * sheets/Circuit.sheet:
16955 * shapes/l_sout* (NEW):
16956 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
16957 variants of simple, inverted, set and reset outputs.
16958 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
16959 probably a split of Contact and Ladder sheets. And then a major
16960 revamping of the Contact sheet.
16962 2000-02-10 James Henstridge <james@daa.com.au>
16964 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
16966 * app/app_procs.c (register_all_objects): don't explicitely
16967 register the custom objects library -- let it be loaded by the
16968 normal plugin loading methods.
16970 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
16972 * objects/custom/Makefile.am: build libcustom_objects as a shared
16975 * objects/custom/shape_info.[ch]: don't read the description field
16976 of custom shapes. It makes more sense to have these in the sheet
16977 file to localise the parts of dia that translators have to deal
16980 * objects/custom/custom_object.c (custom_object_new): do not
16981 create the sheet object for the new custom shape -- this is
16982 handled by the custom sheet code.
16984 * objects/custom/custom.c: change over to being a normal plug-in
16985 rather than being linked with the main dia executable.
16987 2000-02-09 James Henstridge <james@daa.com.au>
16989 * sheets/Circuit.sheet:
16990 * sheets/Flowchart.sheet:
16991 * sheets/Contact.sheet: fixed up sheets.
16993 * objects/custom/custom_object.c (custom_object_new): set the
16994 extra ObjectType fields.
16996 * lib/sheet.c: use extra ObjectType fields when creating sheet
16997 objects. Give a warning if <shape> tags are found in a sheet
16998 file. Now the custom sheet code does not know about custom
16999 shapes -- they look like any other object type.
17001 * lib/object.h (ObjectType): added extra members
17003 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
17005 * app/linewidth_area.c:
17006 Added code to set arbitrary line width.
17007 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
17009 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
17011 * app/linewidth_area.c:
17013 Add support for font-sucking.
17014 Implementation borrowed from gnome-canvas.
17016 * app/render_libart.[ch]:
17017 Implement text rendering.
17019 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
17021 * app/properties.c (create_dialog):
17022 ref and sink no_properties_dialog.
17024 2000-02-07 James Henstridge <james@daa.com.au>
17026 * app/group.c (group_describe_props): new function. Return the
17027 intersection of the properties of the contained objects that
17028 implement the describe_props interface.
17029 (group_get_props): implement by iterating through contained objects
17030 and calling their get_props method until all properties have been
17031 set. Maybe this should go through all objects all the time??
17032 (group_set_props): implement by calling set_props method on all
17034 (group_ops): use standard props dialog creation routines.
17036 * lib/properties.c (prop_desc_lists_intersection): fix implementation
17037 of intersection -- I was using i++ instead of i-- in a for loop :(
17039 * objects/custom/custom.c (custom_register_objects): fix usage
17040 of dia_get_data_directory again.
17042 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
17043 actually read the sheets.
17045 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
17047 Win32 port by Hans Breuer <Hans@Breuer.org>
17050 Remove DATADIR and LIBDIR defines.
17053 Add dia_dirs.c and dia_dirs.h
17054 Added DATADIR and LIBDIR defines.
17056 * lib/dia_dirs.[ch]:
17057 New files for handling special directories.
17062 * objects/custom/custom.c:
17063 Fix warnings. Use directory functions.
17066 Add prototype for diagram_redraw_all.
17068 * app/diaunitspinner.c:
17071 * app/preferences.c:
17075 Win32 doesn't have mkstemp and fchmod.
17077 * app/paginate_psprint.c:
17078 Win32 calls popen _popen and pclose _pclose.
17081 Win32 calls finite _finite.
17084 Win32 needs to dllexport the color vars.
17086 * objects/GRAFCET/step.c:
17087 * objects/chronogram/chronoref.c:
17088 snprintf -> g_snprintf
17090 2000-02-05 James Henstridge <james@daa.com.au>
17092 * lib/properties.c: more fixes so that it doesn't crash when using
17093 properties. The undo/redo stuff also works!!
17095 * objects/flowchart/box.c (box_{describe, get, set}_props): test
17096 object where I have implemented the new properties interface
17097 complete with automatic properties dialog generation.
17099 * lib/properties.c (object_apply_props): fixed stupid error when
17100 creating the old_props array. Also, it no longer frees the props
17101 array -- you will have to do that yourself.
17103 2000-02-04 James Henstridge <james@daa.com.au>
17105 * app/properties.c (properties_apply): pass object_part to
17108 * lib/object.h (ApplyPropertiesFunc): added widget argument.
17110 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
17111 created this way as well.
17113 * objects/*/*.c: ref and sink the properties dialog window for each
17114 widget. It can't rely on ref count being incremented by
17115 properties_show anymore.
17117 * app/properties.c (properties_show): don't ref the widget before
17118 removing it, or its ref count will increase each time you open the
17119 properties dialog. Don't unparent the widget, as container_remove
17122 * lib/object.h: fixed up prototypes for new object methods.
17124 * lib/properties.[ch]: added functions for automatically creating
17125 a properties dialog from the output of describe_props, get_props and
17127 (object_apply_props): apply properties and return an ObjectChange
17128 structure that can be used for undo.
17130 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
17132 * objects/GRAFCET/transition.c: minor leak plugged.
17134 * sheets/GRAFCET.sheet:
17135 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
17136 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
17138 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
17139 new ones (for condition.c).
17140 * objects/GRAFCET/action.c: added connection points for the conditions.
17141 * samples/grafcet.dia: updated the sample to improve conformance to
17142 IEC 848 and take advantage of dia's new features.
17144 * lib/geometry.h: (point_get_normed) fixed a typo.
17146 2000-02-02 James Henstridge <james@daa.com.au>
17148 * lib/object.h: added object functions describe_props, get_props and
17149 set_props. Do type definitions so that object.h doesn't need to
17150 include properties.h, since properties.h includes object.h.
17152 * lib/properties.[ch]: more hacking.
17154 * po/de.po: updated po file.
17156 2000-01-30 James Henstridge <james@daa.com.au>
17158 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
17159 check to see if the C compiler accepts the flag beforehand.
17161 * lib/properties.[ch]: start of properties code.
17163 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
17165 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
17167 * sheets/GRAFCET.sheet:
17168 * sheets/GRAFCET/etapemc.xpm: (NEW)
17169 * sheets/GRAFCET/etapesp.xpm: (NEW)
17170 * objects/GRAFCET/step.c: Added the macro and
17171 sub-program call step types.
17173 * objects/GRAFCET/receptivity.[ch]: renamed to
17174 objects/GRAFCET/boolequation.[ch].
17175 * objects/GRAFCET/transition.c: changed (Receptivity *) to
17178 * lib/connpoint_line.[ch]:
17179 * objects/chronogram/chronoline.c:
17180 * objects/chronogram/chronoref.c:
17181 * objects/GRAFCET/vergent.c:
17182 * objects/standard/line.c:
17183 * objects/SADT/box.c: Minor CPL interface changes, factored out the
17184 point count adjustment code into the CPL object.
17186 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
17188 * app/render_libart.c:
17189 Added support for images and bezier curves.
17190 Only text/fonts missing now.
17192 * app/render_gdk.c:
17193 Removed old erronous comment.
17195 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
17197 * objects/chronogram/chronoline_event.c: removed references to
17198 lround(). Please don't insist, I'm already red of shame.
17200 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
17202 * app/render_libart.[ch]:
17204 Non-finished libart renderer.
17207 Added HAVE_LIBART flag
17213 Call gdk_rbg_init().
17215 * app/connectionpoint_ops.c:
17216 * app/disp_callbacks.c:
17218 * app/handle_ops.c:
17220 * app/modify_tool.c:
17221 Change ddisp->renderer type from RendererGdk * to Renderer *
17222 Draw zoom and select rects in ddisp->canvas->window instead
17223 of ddisp->renderer->renderer->pixmap.
17225 * app/display.[ch]:
17226 Add aa_renderer to DDisplay, and support for it.
17227 New function ddisplay_set_renderer() for changing renderer.
17228 Add ddisplay_transform_coords_double() function, used by aa renderer.
17229 Change ddisp->renderer type from RendererGdk * to Renderer *
17232 Add antialias to menu.
17234 * app/commands.[ch]:
17235 add view_aa_callback function
17236 Change ddisp->renderer type from RendererGdk * to Renderer *
17238 * lib/geometry.[ch]:
17239 Added IntRectangle and int_rectangle_union.
17241 2000-01-28 James Henstridge <james@daa.com.au>
17243 * app/commands.h: removed prototypes.
17245 * app/commands.c: removed the functions that have been moved to
17248 * app/filedlg.h: added new prototypes.
17250 * app/filedlg.c (file_open_callback): move open dialog to this
17251 file. This implementation should remember the current directory
17252 between file loads.
17253 (file_save_as_callback): moved this dialog as well.
17254 (file_save_callback): moved this function here.
17256 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17257 align page boundaries to the origin.
17259 * app/diagram.c (diagram_update_extents): redraw the diagram if the
17260 scaling factor changes while updating the extents. This is so the
17261 page breaks get redrawn correctly.
17263 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17266 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17267 For normal mode, use (0,0) as the origin. For `fit to' mode, use
17268 the corner of the bounding box.
17270 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17271 into page setup dialog.
17272 (pagesetup_apply): apply new `fit to' attributes to the diagram.
17274 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17275 (diagram_data_save): save `fit to' data.
17277 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17278 (data_update_extents): when in `fit to' mode, update scale factor
17279 when we update the extents.
17281 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17284 * .../.cvsignore: added some cvsignore files to quieten cvs.
17286 * app/pagesetup.c (pagesetup_changed): added code to change the
17287 scaling/fit to values as you change the options in the page setup
17288 dialog. I haven't added code so that the fit to options are saved
17291 * app/diapagelayout.[ch]: changed the scaling portion of the widget
17292 to make it easier to set a `fit to' style scaling factor.
17294 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17295 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17296 but connpoint_line-based, so that there's a connection point at the
17297 middle of each segment. Currently only the SADT arrow uses this.
17299 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17301 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17302 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
17303 saving and editing of properties (and default properties).
17304 See the new objects (GRAFCET, SADT, chonograms) for examples.
17305 For already too hairy stuff, see objects/chronogram/chronoline.c.
17307 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
17308 evenly spaced connection points, which the user can add or remove at
17309 will. An object can own several connection point lines. See the SADT
17310 Box, or the GRAFCET vergents for examples.
17312 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
17313 quiet about unused stuff.
17315 * objects/GRAFCET (NEW):
17316 * samples/grafcet.dia (NEW):
17317 Added support for GRAFCET charts.
17319 * objects/chronogram (NEW):
17320 * samples/chronograms.dia (NEW):
17321 Added support for chronograms (feature requested by Ronald L. Chichest;
17322 I found I'd use it often, too).
17324 * objects/standard/line.c: Replace the middle connectionpoint by
17325 a whole connection point line, which defaults to one point (hint,
17326 hint). New Line object menu to take advantage of this.
17327 "Bothwards" compatibility is preserved (although you may loose
17328 connections if you load a newer file in a older dia).
17330 * app/lineprops_area.c:
17332 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
17333 (feature requested by Benjamin Kahn).
17334 Merged in Steffen Macke's slashed arrow head type.
17336 * app/Makefile.am (app/run_dia.sh actually):
17337 Added $DEBUGGER in front of dia's invocation, so that
17338 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17339 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
17340 "EFENCE=-lefence" to link with Electric Fence.
17342 * configure.in: Made gcc do more aggressive optimisations on i386, and
17345 2000-01-24 James Henstridge <james@daa.com.au>
17347 * lib/geometry.[ch]: added inline versions of functions. Used
17348 glib's G_INLINE_FUNC stuff, so it should still work on systems
17349 without inline funcs.
17351 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17352 it outputs the correct element id for the ellipse objects.
17354 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17356 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17357 object_add_handle_at. Message typo fixed.
17359 * lib/sheet.c (load_register_sheet):
17360 potential bug fixed (warning hunt).
17362 * objects/custom/custom.c (custom_object_load): disabled an assertion
17363 which made dia abort upon failure to load a shape file. Fixed a
17366 * objects/custom/shape_info.c (load_shape_info): Made the custom
17367 shape load code ignore XML comments between <?xml ...?> and the
17368 root object (mostly useful to put the emacs magic comments).
17370 * app/load_save.c: Made dia do backup copies of files when saving,
17371 and complain in case of failure.
17373 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17375 * AUTHORS: fixed my address (ISP thought it was a great idea to change
17380 * shapes/Contact/*:
17381 * sheets/Contact.sheet:
17382 * sheets/Makefile.am:
17383 Added support for Contact and LADDER charts.
17385 * dia.desktop: Added a French translation.
17387 2000-01-23 James Henstridge <james@daa.com.au>
17389 * app/commands.c (help_about_callback): don't die if can't load
17392 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17393 out NaN's when performing bezier curve subdivision.
17395 * objects/custom/custom_object.c: initialise memory of Custom structs
17398 * app/render_svg.c (draw_image): added image support to the XML
17399 output filter. The image is just referenced, rather than being
17400 included inline, so if you copy the SVG file somewhere else, you
17401 may need to move the images or fix up the links.
17403 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17404 so the text is not just displayed in black all the time.
17406 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
17408 * configure.in: fixed libpopt test so we wont try to build with
17411 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
17413 * configure.in: Added "uk" to ALL_LINGUAS.
17415 1999-12-24 James Henstridge <james@daa.com.au>
17417 * po/ru.po: updated russian translation from Valek Filippov.
17419 * app/render_svg.c (new_svg_renderer): make output use 19991203
17420 version of SVG DTD. Use viewBox to set the extents of the view.
17422 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
17423 ftp.gnome.org as the download.
17425 * TODO (TODO): weeded out completed todo items and added a few extra.
17427 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17429 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
17430 be good to get rid of the object/shape distinction and separate
17431 the custom shape code out from the main application.
17433 * objects/custom/README, diagram.dtd: moved to new doc directory.
17434 Renamed the custom shapes README to custom-shapes. Also updated
17435 custom shape docs a bit and removed the section on sheet files, as
17436 that has changed a bit.
17438 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17439 of the image data is larger than the maximum cell array. I should
17440 add code to break scan lines down further in this case, but for now
17441 an error message is better than an infinite loop.
17443 * app/filedlg.c (file_export_ok_callback): show a dialog if we
17444 couldn't determine the export filter to use.
17446 * app/commands.c (help_about_callback): fixed up about box logo
17447 expose bug. Now just use a GtkPixmap widget rather than a
17448 GtkDrawingArea and calling gdk_imlib_paste_image.
17450 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17451 because automake does not always get things right.
17453 * configure.in: updated version number to 0.83.
17455 * app/preferences.c (prefs_save):
17456 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17457 for fopen. Text is the default file mode anyway.
17459 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
17460 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
17461 * app/load_save.c (write_objects, write_connections):
17462 * app/filedlg.c (file_export_ok_callback):
17463 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
17464 * lib/dia_xml.c (data_add_point, data_add_rectangle):
17465 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17466 snprintf to calls to g_snprintf.
17468 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17469 as the picture name.
17471 1999-12-23 James Henstridge <james@daa.com.au>
17473 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17474 negative numbers. This fixes the upside down text problem I was
17476 (draw_image): implemented the image code. It will try to split the
17477 image data up into bands if it is too big to fit into a single
17478 cgm cell array element. It will have problems if you try to insert
17479 an image wider than about 10,000 pixels though.
17481 * Makefile.am: use gnomedatadir for the files that need to be
17482 installed in gnome's datadir. This is mainly to help people doing
17483 packages for weird setups.
17485 1999-12-22 James Henstridge <james@daa.com.au>
17487 * plug-ins/cgm/cgm.c: added support for text. Now only images and
17488 beziers are left to do. The text seems to be the wrong way up
17489 still. This is probably a problem with character orientation
17490 element, but I have used what the settings given in the standard.
17491 Other than this, the CGMs dia produces are readable (and displayable)
17492 by ralcgm and corel draw.
17493 (draw_string): subtract from the X coord rather than the Y coord for
17494 center and right aligned text.
17496 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
17497 the size of a real number, and changed name of write_double to
17498 write_real. Consider changing to fixed real encoding. Also, now
17499 all element headers are correct. Once the real number encoding is
17500 fixed, only text, beziers and images are left to do.
17502 1999-12-21 James Henstridge <james@daa.com.au>
17504 * Makefile.am (SUBDIRS): recurse into plug-ins.
17506 * configure.in: add plug-ins directory makefiles to list.
17508 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
17509 not done yet. Also, the output files are not quite correct.
17511 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17512 font. It doesn't work if you do.
17514 1999-12-20 James Henstridge <james@daa.com.au>
17516 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17517 export the files. Instead, use filter_guess_export_filter to
17518 guess the correct format to save in and use the appropriate filter.
17519 It defaults to postscript for compatibility.
17521 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17524 * app/commands.[ch]: removed export to eps functions.
17526 * app/menus.c: removed export to eps menu items.
17528 * app/app_procs.c: register new export filters.
17530 * app/load_save.[ch]: define dia native export filter.
17532 * app/render_eps.[ch]: define eps export filter.
17534 * lib/filter.h: added diafilename argument to the DiaExportFunc
17535 prototype. This is useful for putting the source of the diagram
17536 into the output file for instance.
17538 * app/app_procs.c (app_init): register the SVG export filter. Have
17539 to get EPS code converted to this API, and maybe also allow saving in
17540 DIA's native format from the export dialog. In fact, it is now
17541 possible to load an export filter from a shared library and it will
17542 integrate into the interface correctly.
17544 * app/menus.c: removed references to the SVG renderer.
17546 * app/commands.[ch]: removed svg stuff.
17548 * app/diagram.[ch]: removed diagram_export_to_svg function.
17550 * app/render_svg.[ch]: added a DiaExportFilter structure for this
17553 * app/filedlg.[ch]: code for the new export diagram dialog. Will
17554 probably move the open/save dialogs to this file as well.
17556 1999-12-19 James Henstridge <james@daa.com.au>
17558 * lib/filter.[ch]: start of interface for generalised handling of
17559 filters. I have only done code for export filters so far. I still
17560 need to do the gui for this, and convert the current SVG and EPS
17561 filters to the new API.
17563 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
17564 weren't setting the last handle correctly. It was actually assigning
17565 to the wrong position in the handles array, so the last handle was
17566 left as NULL, which caused the segfault.
17568 * objects/standard/image.c (image_copy): modified routine so that
17569 it just adds a reference to the DiaImage structure in the new image
17570 object. This seems to have cleared up the problems with copying
17573 * dia.spec: spec file additions from John Gotts.
17575 1999-12-12 James Henstridge <james@daa.com.au>
17577 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
17578 has not been released yet though.
17580 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17583 The following based on a patch from Lars Clausen:
17585 * objects/standard/bezier.c (bezierline_move_handle): when performing
17586 the initial drag of the bezierline, move the control points to keep
17589 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17590 make the new control points a bit closer to the major point.
17592 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17593 as the reason for the move.
17594 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17597 * lib/handle.h: new handle move reasons.
17599 1999-12-09 James Henstridge <james@daa.com.au>
17601 * dia.spec: include the new files in RPMs.
17603 * Makefile.am: install these new files.
17605 * dia.keys.in: file describing actions and icon for dia diagrams for
17606 use in the gnome file manager.
17608 * dia.mime: a file defining the application/x-dia-diagram mime type.
17610 * dia-diagram.png: an icon for dia diagrams.
17612 1999-12-08 James Henstridge <james@daa.com.au>
17614 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17616 * plug-ins/python/pydia-display.[ch]: wrapper for display.
17618 * objects/standard/ellipse.c: applied Lars's patch to optionally not
17619 draw the background of the ellipse.
17621 * app/load_save.c (read_connections): do some sanity checking on the
17622 handle and connection point numbers before performing the object
17625 * lib/bezier_conn.c (bezierconn_load): give the correct number of
17626 handles when loading a BezierConn.
17628 1999-12-07 Kjartan Maraas <kmaraas@online.no>
17630 * sheets/*.sheet: Finished Norwegian translations.
17632 1999-12-07 James Henstridge <james@daa.com.au>
17634 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17635 (PyDia_GetObjectType): find object type function.
17637 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17638 method for diagrams.
17640 * plug-ins/python/pydia-object.c: added methods for DiaObject and
17643 * AUTHORS: added Lars and Cyrille to the authors file.
17645 * objects/standard/bezier.c (bezierline_add_segment_callback): place
17646 new point correctly.
17648 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17650 * lib/bezier_conn.c: applied Lars's patch for placement of the new
17651 point when adding a segment to a BezierConn.
17653 1999-12-06 James Henstridge <james@daa.com.au>
17655 * plug-ins/python/test.py: test script for the python plug-in.
17657 * plug-ins/python/python.c: this file contains the plug-in startup
17658 code for the python plugin. Right now, it just initialises the
17659 dia module and executes a script.
17661 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17663 * objects/standard/bezier.c (bezierline_draw): draw control lines for
17664 bezier curve if we are using an interactive renderer (ie. only if
17665 displaying to the screen).
17667 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17668 to draw control lines on to a bezier curve. Based on implementation
17671 * objects/standard/bezier.c (bezierline_delete_segment_callback):
17672 calculate segment number using closest_segment rather than
17673 closest_handle. Sometimes the closest handle is part of a different
17675 (bezierline_draw): use correct size for start arrow.
17677 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17678 * lib/geometry.c (distance_line_point): added notes to documentation
17680 * app/object_ops.c (object_list_align_v):
17681 (object_list_align_h): fix of by one error when calculating free space
17682 for equal distance alignment.
17683 * app/menus.c (objects_align_h, objects_align_v): include align
17684 adjacent menu items in the gnome version of the menus.
17685 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17686 align adjacent menu items correctly.
17689 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17692 * objects/standard/bezier.c: converted bezierline to use BezierConn.
17693 Still a few bugs. It crashes on deleting line segments.
17695 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17697 1999-12-05 James Henstridge <james@daa.com.au>
17699 * lib/bezier_conn.[ch]: start of BezierConn object
17701 * app/interface.c: add bezierline to toolbox.
17703 * objects/standard/standard.c: initialise bezierline.
17705 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
17706 made a few modifications to get it working nicely. It still needs
17707 a bit of work though. Maybe create a BezierConn object in lib.
17709 1999-12-02 James Henstridge <james@daa.com.au>
17711 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17713 * plug-ins/python/Makefile.am: tried building everything. It is
17714 building as a library at the moment. I will have to convert it
17715 to a libtool library and add some initialisation code.
17717 * plug-ins/python/diamodule.c: start of the dia module, using the
17718 other object wrappers. Not complete.
17720 1999-12-01 James Henstridge <james@daa.com.au>
17722 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17723 the handles and connections attributes.
17725 * plug-ins/python/pydia-layer.c: added functions that use
17728 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17730 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17732 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17733 I am currently wrapping the basic elements in the diagram in python
17734 objects -- nothing to see or play with yet.
17736 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
17740 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17742 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
17746 Added russian translation from Valek Filippov <frob@df.ru>
17748 1999-11-24 James Henstridge <james@daa.com.au>
17751 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17752 discussed with Alex. Also added extra makefiles so that make install
17755 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
17757 * app/preferences.[ch]:
17759 Added snap to grid preference.
17760 Patch from Michael Leslie <mles@springboardwireless.com>
17762 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17768 * objects/custom/shape_info.c:
17769 All strings returned by libxml must be freed with free, not
17770 g_free, or there will be problems if you use memory debugging
17773 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17775 * app/create_object.[ch]:
17778 * app/commands.[ch]:
17780 * app/interface.[ch]:
17781 Reverted the tool menu patch. It has some 'issues'.
17782 I liked it though, so it'll probably return.
17784 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17786 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17787 <bruce@cybersight.com> for some purify runs and analysis.
17788 Also a great thank you to Owen Taylor for creating MemProf, a
17789 free memory leak detector that was used to find and verify a
17790 lot of these fixes.
17793 * app/paginate_psprint.c:
17794 * app/render_eps.[ch]:
17795 * app/render_svg.[ch]:
17799 Don't add a reference to ddisp->shell. Why was this done in
17806 Free all strings returned from xmlGetProp
17808 * app/modify_tool.c:
17811 * objects/custom/custom.c:
17812 Use closedir() after opendir().
17814 * objects/custom/shape_info.c:
17815 User g_free() instead of "if (tmp) free(tmp)".
17818 Add newline at end of file.
17821 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
17823 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17824 Adds tool menu and keyboard shortcuts.
17826 * app/create_object.[ch]:
17827 Use tool_set() instead of tool_reset().
17828 create_create_object_tool() takes extra type argument
17834 Moved tool_data here, export it.
17835 Add separate tool type for all create objects tools.
17836 new functions tool_set().
17839 New callback tool_set_callback.
17842 Moved some pixmaps to interface.c.
17845 Remove tool_data array (moved to tool.c).
17846 Use the tool_data from tool.c.
17847 Remove modify_tool_button global var.
17849 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
17851 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17854 Interprets command-line arguments as files to open even when
17855 HAVE_POPT is not defined.
17858 Shift-clicking when zooming zooms out, like the Gimp.
17861 Has hotkeys for zoom-100% and snap-to-grid.
17863 1999-11-17 James Henstridge <james@daa.com.au>
17865 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17866 that it is not jumpy.
17868 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
17870 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
17871 scrolling by pressing the shift key when using the scroll tool.
17873 * sheets/Makefile.am: fixed makefile so that install actually works
17874 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
17876 (SHEETS): install Circuit.sheet
17878 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
17879 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17881 * sheets/Circuit.sheet:
17884 * sheets/Flowchart.sheet:
17885 * sheets/UML.sheet:
17886 * sheets/network.sheet:
17887 * sheets/sybase.sheet:
17890 * sheets/Circuit.sheet:
17891 added some missing French translations
17894 killed the temporary sheet namespace
17896 * objects/custom/custom.c:
17897 obsolete comment cleaned up
17899 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
17903 Added portugese translation from Pedro Morais
17904 <pmmm@rnl.ist.utl.pt>
17906 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
17908 Changed all sheets to be specified in xml.
17909 All sheet objects removed from the C code.
17910 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17915 Updated version to 0.81cvs.
17918 Update run_dia.sh with sheet-dir.
17921 Load all sheets on startup.
17922 Create sheet directory first time.
17923 Don't call custom_register_sheets().
17926 Add sheetdir define
17929 Remove custom_register_sheets().
17932 Add sheet loading code.
17934 * sheet/Circuit.sheet:
17937 * sheet/Flowchart.sheet:
17939 * sheet/network.sheet:
17940 * sheet/sybase.sheet:
17943 * sheet/ER/weakentity.xpm:
17944 * sheet/UML/aggregation.xpm
17945 * sheet/UML/umlclass_template.xpm
17946 Added sheet pixmaps.
17947 These are moved from their old places.
17949 * sheet/.cvsignore:
17953 Removed sheet objects and sheet registration.
17955 * objects/ER/Makefile.am:
17956 * objects/ER/pixmaps/weakentity.xpm:
17957 * objects/UML/Makefile.am:
17958 * objects/UML/pixmaps/aggregation.xpm:
17959 * objects/UML/pixmaps/umlclass_template.xpm:
17960 Removed alternative pixmaps. (Moved to sheet).
17962 * objects/custom/Makefile.am:
17963 * objects/custom/load_sheet.[ch]:
17964 Removed old sheet loading code.
17966 * objects/custom/custom.c:
17967 Load all shapes instead of sheets.
17968 Removed custom_register_sheets().
17970 * objects/custom/custom_object.c:
17973 * objects/custom/shape_info.[ch]:
17974 Added shape_info_getbyname().
17976 * objects/flowchart/Makefile.am:
17977 * objects/flowchart/collate.shape
17978 * objects/flowchart/delay.shape
17979 * objects/flowchart/display.shape
17980 * objects/flowchart/document.shape
17981 * objects/flowchart/extract.shape
17982 * objects/flowchart/flowchart.c
17983 * objects/flowchart/intstorage.shape
17984 * objects/flowchart/magdisk.shape
17985 * objects/flowchart/magdrum.shape
17986 * objects/flowchart/magtape.shape
17987 * objects/flowchart/manualinput.shape
17988 * objects/flowchart/manualop.shape
17989 * objects/flowchart/merge.shape
17990 * objects/flowchart/offlinestore.shape
17991 * objects/flowchart/offpageconn.shape
17992 * objects/flowchart/or.shape
17993 * objects/flowchart/predefdproc.shape
17994 * objects/flowchart/preparation.shape
17995 * objects/flowchart/punchedcard.shape
17996 * objects/flowchart/punchedtape.shape
17997 * objects/flowchart/sort.shape
17998 * objects/flowchart/sumjunction.shape
17999 * objects/flowchart/terminal.shape
18000 * objects/flowchart/transaction.shape
18001 * objects/flowchart/transmittape.shape
18002 * objects/flowchart/pixmaps/collate.xpm
18003 * objects/flowchart/pixmaps/delay.xpm
18004 * objects/flowchart/pixmaps/display.xpm
18005 * objects/flowchart/pixmaps/document.xpm
18006 * objects/flowchart/pixmaps/extract.xpm
18007 * objects/flowchart/pixmaps/intstorage.xpm
18008 * objects/flowchart/pixmaps/magdisk.xpm
18009 * objects/flowchart/pixmaps/magdrum.xpm
18010 * objects/flowchart/pixmaps/magtape.xpm
18011 * objects/flowchart/pixmaps/manualinput.xpm
18012 * objects/flowchart/pixmaps/manualop.xpm
18013 * objects/flowchart/pixmaps/merge.xpm
18014 * objects/flowchart/pixmaps/offlinestore.xpm
18015 * objects/flowchart/pixmaps/offpageconn.xpm
18016 * objects/flowchart/pixmaps/or.xpm
18017 * objects/flowchart/pixmaps/predefdproc.xpm
18018 * objects/flowchart/pixmaps/preparation.xpm
18019 * objects/flowchart/pixmaps/punchedcard.xpm
18020 * objects/flowchart/pixmaps/punchedtape.xpm
18021 * objects/flowchart/pixmaps/sort.xpm
18022 * objects/flowchart/pixmaps/sumjunction.xpm
18023 * objects/flowchart/pixmaps/terminal.xpm
18024 * objects/flowchart/pixmaps/transaction.xpm
18025 * objects/flowchart/pixmaps/transmittape.xpm
18026 Moved shapes and their pixmaps to shapes/flowchart
18028 * shapes/Circuit/Makefile.am:
18029 * shapes/Circuit/index.sheet:
18030 Removed index.sheet.
18032 * shapes/Makefile.am:
18033 * shapes/flowchart/Makefile.am:
18034 * shapes/flowchart/*.shape:
18035 * shapes/flowchart/*.xpm:
18036 Added flowchart shapes. (Moved from objects/flowchart)
18039 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18041 * app/app_procs.c: Fixed popt stuff.
18043 1999-11-01 James Henstridge <james@daa.com.au>
18045 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
18048 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
18052 Update version to 0.81.
18055 Update with news for 0.81.
18057 * shapes/Circuit/*:
18058 * shapes/Circuit_eu/*:
18059 Moved european circuit objects to Circuit sheet.
18061 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
18063 * lib/diagramdata.[ch]:
18064 Added layer_set_object_list() function.
18067 Added support for undo of reordered objects.
18068 Fix the undo of delete to keep the right order on undo.
18071 changed loop to object_add_updates_list() calls.
18072 Added undo support to bring to front/back.
18074 * app/disp_callbacks.c:
18075 * app/paginate_psprint.c:
18078 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
18080 This plugs some leaks. Thanks to
18081 Bruce Mitchener <bruce@cybersight.com> for running
18082 Dia through purify for me.
18085 Free displays and diagrams on exit.
18087 * app/modify_tool.c:
18088 Free gc when freeing tool.
18090 * lib/diagramdata.c:
18094 Free update and display lists when destroying display.
18096 * lib/diagramdata.c:
18097 Don't leak layer name.
18099 * objects/custom/load_sheet.c:
18100 * objects/custom/shape_info.c:
18101 Free loaded xml documents.
18103 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
18106 * app/object_ops.[ch]:
18107 Add undo handling to alignment ops.
18108 Based partially on patch by Dan Cohn <dan@internap.com>.
18110 * objects/standard/image.c (image_move_handle):
18111 Don't divide by zero for small images.
18112 Patch by Dan Cohn <dan@internap.com>.
18114 * objects/UML/class.c (umlclass_destroy):
18115 * objects/custom/custom_object.c (custom_destroy):
18116 Don't free connectionpoints before calling element_destroy
18117 which unconnects them.
18119 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
18121 * objects/custom/custom_object.c:
18122 Load and save padding too. Fixes strange load crashes.
18124 * app/group.c (group_destroy):
18125 Don't unconnect already freed connectionpoints when
18126 destroying group. Probably fixes bug reported by
18127 Elliot Lee <sopwith@redhat.com>.
18129 * app/render_gdk.c:
18130 Don't crash on zero-size (broken) bezier curves.
18131 Different sort of fix. This should work on closed bezier curves
18134 * objects/standard/textobj.c:
18135 Activate default properties dialog for Text objects.
18137 * app/render_eps.c:
18139 * app/preferences.c:
18140 * app/render_svg.c:
18141 fopen files in binary or text mode.
18143 1999-10-26 Alexander Larsson <alex@cendio.se>
18145 * app/render_gdk.c (bezier_add_lines):
18146 Don't crash on zero-size (broken) bezier curves.
18147 Fixes a crashing bug.
18149 1999-10-25 James Henstridge <james@daa.com.au>
18151 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
18152 before it is installed.
18154 * objects/flowchart/flowchart.c: use relative paths to find shapes.
18156 * objects/custom/custom.c (custom_object_load): take file names
18157 relative to $(pkgdatadir)/shape-internal, and check an environment
18158 variable for an alternative directory.
18160 * app/...: added copyright messages to the top of my new code.
18162 * app/paginate_psprint.c: some general clean ups. Also, give an error
18163 dialog if we can't open the command or output file for writing.
18165 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
18166 function so it would set orientation to landscape correctly.
18168 * app/paginate_psprint.c: use the paper settings that come with
18169 the diagram. Also implemented landscape printing.
18171 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
18174 * app/commands.[ch] (file_pagesetup_callback): added callback for
18175 the page setup dialog.
18177 * app/menus.c: added page setup menu item.
18179 * app/pagesetup.[ch]: implementation of the page setup dialog.
18181 * app/diapagelayout.[ch]: added accessors for the scaling factor.
18183 * app/load_save.c (diagram_load): load paper information from save
18185 (diagram_save): save the paper info.
18187 * lib/diagramdata.c (new_diagram_data): initialise paper info section
18188 of DiagramData structure.
18189 (diagram_data_destroy): free the paper name.
18191 * lib/diagramdata.h: added a paper member to the DiagramData structure
18192 that holds the page layout info for a diagram.
18194 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
18196 * objects/flowchart/box.c:
18197 * objects/flowchart/ellipse.c:
18198 * objects/flowchart/diamond.c:
18199 * objects/flowchart/parallelogram.c:
18200 Load and save padding too. Fixes strange load crashes.
18202 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
18204 * app/app_procs.c (name_is_lib):
18205 .dll, .sl and .so.0.0.0 are also libraries.
18207 1999-10-20 James Henstridge <james@daa.com.au>
18209 * configure.in: added extra makefile.
18211 * shapes/Circuit_eu/*: a new set of european circuit shapes from
18212 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
18213 (added fuses to makefile, fill the area of some of the components).
18215 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
18219 Add GDK_IMLIB_CFLAGS to includes.
18220 Changed --export-dynamic to -export-dynamic
18223 * objects/UML/message.c:
18224 Removed c++ comment.
18226 * lib/render_store.[ch]:
18227 Don't use empty structure. That is not Ansi C.
18229 1999-10-19 James Henstridge <james@daa.com.au>
18231 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18232 the margin entries, as they allow interpretation of units.
18233 (paper_size_change): display the current page dimensions.
18235 * app/diaunitspinner.[ch]: a widget derived from the standard
18236 GtkSpinButton that tries to take units into account. So if you enter
18237 "1in" into the entry, it will convert it to 2.54cm.
18239 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
18242 Removed include of dlfcn.h
18244 1999-10-18 James Henstridge <james@daa.com.au>
18246 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18247 bound on margin widths. It is set to the paper width/height.
18249 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18250 routine for the diamond. This bug was found and fixed by Daniel Wang
18251 <danwang@CS.Princeton.EDU>
18253 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
18255 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18256 remove warning (OS/2 version).
18258 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
18261 Put a pointer to objects/custom/README.
18263 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
18266 Updated version to 0.80
18269 Updated version to 0.80cvs
18271 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18273 * Released Dia 0.80
18274 Tag called DIA_0_80
18276 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
18280 * objects/UML/Makefile.am
18281 * objects/ER/Makefile.am
18282 * objects/network/Makefile.am
18283 * objects/standard/Makefile.am
18284 * objects/FS/Makefile.am
18285 * objects/sybase/Makefile.am
18286 * objects/flowchart/Makefile.am
18287 * objects/custom/Makefile.am
18288 Added -I$(top_srcdir)/intl which is needed for
18289 --with-included-gettext.
18295 Updated swedish translation.
18297 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
18300 Updated version number to 0.80.
18306 Updated. Moved bugs to KNOWN_BUGS.
18309 Updated with 0.80 release notes.
18311 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
18314 For backwards compatibility, make sure handle 0 and 1 are the
18315 first and last handle. Fixes compatibility with 0.41, breaks
18316 compatibility with cvs version.
18317 Fixed bug in undo/redo of adding deleting endpoint segments
18318 when the endpoint was connected.
18319 Start OrthConn objects with three segments.
18321 1999-10-16 James Henstridge <james@daa.com.au>
18323 * objects/custom/custom_object.c (custom_update_data): changed
18324 resizing behaviour a bit so that shapes don't grow huge when you try
18325 to resize them to smaller than the size required by the text box.
18326 Also, now shapes will not grow with fixed aspect ratio when you enter
18327 text into them unless the shape has the fixed aspect ratio flag set.
18329 1999-10-15 James Henstridge <james@daa.com.au>
18331 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18333 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18335 * objects/flowchart/magdrum.shape:
18336 * objects/flowchart/offlinestore.shape:
18337 * objects/flowchart/punchedtape.shape:
18338 * objects/flowchart/transmittape.shape:
18339 * objects/flowchart/punchedcard.shape: new shapes.
18341 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18343 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18345 * objects/flowchart/collate.shape:
18346 * objects/flowchart/delay.shape:
18347 * objects/flowchart/extract.shape:
18348 * objects/flowchart/intstorage.shape:
18349 * objects/flowchart/magdisk.shape:
18350 * objects/flowchart/magtape.shape:
18351 * objects/flowchart/merge.shape:
18352 * objects/flowchart/or.shape:
18353 * objects/flowchart/sort.shape:
18354 * objects/flowchart/sumjunction.shape: new shapes.
18356 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
18360 Entering an erronous command as print command
18363 * app/paginate_psprint.c:
18364 Save all print dialog values for next time.
18367 Remove custom lib from DIA_LIB_PATH.
18369 1999-10-14 James Henstridge <james@daa.com.au>
18371 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18373 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18375 * objects/flowchart/offpageconn.shape:
18376 * objects/flowchart/manualop.shape:
18377 * objects/flowchart/preparation.shape:
18378 * objects/flowchart/manualinput.shape:
18379 * objects/flowchart/predefdproc.shape:
18380 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18382 1999-10-13 James Henstridge <james@daa.com.au>
18384 * app/diapagelayout.[ch]: added accessors to paper information. The
18385 widget should be just about complete now.
18387 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18388 It actually does something now.
18390 1999-10-12 James Henstridge <james@daa.com.au>
18392 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18393 for the page layout widget.
18395 * app/diapagelayout.[ch]: start of page layout widget. Not actually
18396 built yet as it is not complete.
18398 * objects/flowchart/flowchart.c: added new shapes to sheet.
18400 * objects/flowchart/display.shape:
18401 * objects/flowchart/transaction.shape: new shapes.
18403 * AUTHORS: added my name to the spec file.
18405 * dia.spec: include the dia desktop entry to the spec file.
18407 * Makefile.am: install the dia.desktop file.
18409 * dia.desktop: added a gnome desktop entry so you can start dia
18410 from the gnome panel menu.
18412 1999-10-11 James Henstridge <james@daa.com.au>
18414 * objects/custom/custom_object.c:
18415 * objects/custom/shape_info.c: warning fixes.
18417 * objects/flowchart/document.shape: a shape file for the `document'
18420 * lib/custom.h: new header with the custom shape prototypes.
18422 * app/app_procs.c: register custom objects as well.
18423 (register_objects_in): close shared libraries if they don't load
18424 correctly, and call g_module_make_resident on libraries that load
18427 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18429 * objects/custom/custom.c: removed get_version, added custom_ prefix
18430 to register_objects and register_sheets.
18432 * objects/custom/Makefile.am: converted to a normal library.
18434 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
18436 * app/lineprops_area.c:
18437 * app/render_svg.c:
18439 * objects/custom/shape_info.c:
18440 * objects/flowchart/box.c:
18441 * objects/flowchart/diamond.c:
18442 * objects/flowchart/ellipse.c:
18443 * objects/flowchart/parallelogram.c:
18444 * objects/network/flash.c:
18445 * objects/network/scead-plug.c:
18446 * objects/sybase/client.c:
18447 Removed -Wall warnings.
18449 * objects/network/bus.c:
18450 Removed unused functions.
18452 * objects/FS/flow-ortho.c:
18453 * objects/FS/flow-poly.c:
18454 * objects/FS/flow.c:
18455 * objects/FS/function.c:
18457 Implemented "non-implemented" undo for FS objects.
18458 Now at least it won't crash.
18460 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
18462 * objects/network/bus.c:
18464 Handles are now added and removed using the object menu.
18465 Default to 6 handles instead of 10.
18466 Changed name from "Standard - Bus" to "Network - Bus". Kept old
18467 name for backwards compatibility.
18469 * objects/network/network.c:
18470 Changed name from "Standard - Bus" to "Network - Bus". Kept old
18471 name for backwards compatibility.
18473 * app/properties.[ch]:
18475 Update properties in properties dialog if the shown object
18476 is part of and ObjectChange (undo or redo).
18479 Remove old known bugs list.
18481 * objects/UML/class_dialog.c:
18482 Removed debug printf's.
18484 1999-10-10 James Henstridge <james@daa.com.au>
18486 * objects/custom/custom.c (custom_object_load): new function that
18487 provides a nice entry point to the custom shape code for when it
18488 gets used by other libraries.
18490 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
18491 speeds builds up a bit.
18493 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18494 (SUBDIRS): do not descend into pixmaps subdirs.
18496 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18497 This speeds up build process.
18499 * objects/custom/custom.c (sheets): made variable static.
18501 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18504 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18506 * objects/custom/custom.c: look in ~/.shapes instead of
18507 ~/.dia_shapes as the per-user shapes directory.
18509 * app/preferences.c (prefs_save): save config to ~/.diarc.
18510 (prefs_load): load configuration from ~/.diarc. If the file
18511 does not exist, fallback on the old ~/.diarc location.
18513 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18515 (register_all_objects): look for user specific objects in
18516 ~/.objects rather than ~/.dia_libs.
18518 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18522 * objects/flowchart/box.c
18523 * objects/flowchart/ellipse.c
18524 * objects/flowchart/flowchart.c
18525 Use gmodule for dynamic linking. As gmodule is using
18526 RTLD_GLOBAL i had to change flowchart box and ellipse
18527 so the typenames doesn't conflict with the standard
18532 Use button box to make dialogs look better.
18534 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
18536 * objects/UML/class_dialog.c:
18537 * objects/UML/class.h:
18538 Implemented undo for "UML - Class" objects.
18539 Not 100% tested yet.
18541 * objects/UML/classicon.c:
18542 * objects/UML/constraint.c:
18543 * objects/UML/dependency.c:
18544 * objects/UML/generalization.c:
18545 * objects/UML/implements.c:
18546 * objects/UML/large_package.c:
18547 * objects/UML/lifeline.c:
18548 * objects/UML/message.c:
18549 * objects/UML/object.c:
18550 * objects/UML/realizes.c:
18551 * objects/UML/state.c:
18552 * objects/UML/usecase.c:
18555 * lib/connectionpoint.h:
18558 1999-10-09 James Henstridge <james@daa.com.au>
18560 * objects/custom/*.[ch]: added copyright notices to custom object
18563 * shapes/Circuit/hdiode.shape:
18564 * shapes/Circuit/hzener.shape:
18565 * shapes/Circuit/opamp.shape:
18566 * shapes/Circuit/vdiode.shape:
18567 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18568 shapes look nice after the custom shape code changes.
18570 * objects/custom/README: updated docs to cover changes to drawing
18573 * objects/custom/custom_object.c (custom_draw): honour the line
18574 properties when drawing the shape.
18576 * objects/custom/shape_info.[ch]: added support for setting line
18577 properties for individual drawing elements in a custom shape. You
18578 can set the dash style, dash length, cap style and join style.
18580 1999-10-07 James Henstridge <james@daa.com.au>
18582 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18583 for foreground and background.
18585 * objects/custom/custom_object.c (custom_draw): use the new style
18586 information when drawing the object.
18588 * objects/custom/shape_info.[ch]: store all shape style info in the
18589 GraphicStyle structure. This makes adding support for extra CSS
18590 attributes easier -- we don't have to keep adding extra arguments to
18591 a lot of functions.
18593 1999-10-05 James Henstridge <james@daa.com.au>
18595 * lib/intl.c (unalias_lang): merged in changes from the i18n code
18596 swiped from gnome-libs.
18598 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
18600 * objects/standard/image.c (get_directory):
18601 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18603 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
18605 * lib/poly_conn.c (polyconn_destroy):
18606 Fix bug. Access of freed memory.
18607 Rememeber, you can't free the handles of an object
18608 before calling object_destroy(), as it unconnects the handles
18609 therefore referencing them.
18611 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
18614 undo_clear() didn't set stack->depth to zero.
18615 This made other undo functions crash after this had been called
18619 Slightly modified by Chris Love <clove@exactis.com>
18621 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
18623 * objects/UML/class.h:
18624 * objects/UML/class_dialog.c:
18625 Retrun NULL ObjectChange on class property change.
18626 This means no crashes, but "UML - Class" doesn't support undo yet.
18628 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
18633 * objects/UML/classicon.c:
18634 * objects/UML/dependency.c:
18635 * objects/UML/generalization.c:
18636 * objects/UML/implements.c:
18637 * objects/UML/large_package.c:
18638 * objects/UML/lifeline.c:
18639 * objects/UML/message.c:
18640 * objects/UML/object.c:
18641 * objects/UML/realizes.c:
18642 * objects/UML/state.c:
18643 * objects/UML/usecase.c:
18644 Update to new undo (w. get/set_state).
18645 Add object menu to add/delete segments.
18647 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
18650 Add equal distance alignment.
18652 * app/object_ops.c:
18653 Add equal distance alignment.
18654 Fix bug in adjacent alignment.
18656 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
18658 * objects/UML/constraint.c:
18659 Update to new undo (w. get/set_state).
18661 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
18663 * app/paginate_psprint.c:
18664 Save (parts, more todo) of the info in the print dialog to the
18665 next time it's opened.
18666 Patch from Yo Ric Dude <ricdude@toad.net>
18668 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
18671 Updated version string to 0.41cvs.
18673 * objects/UML/assocition.c:
18674 Update to new undo (w. get/set_state).
18675 Add object menu to add/delete segments.
18678 Added function debug_break() and called it after all
18679 objects and sheets are loaded. Place a breakpoint here if you
18680 want to debug objects. All symbols should be loaded.
18682 1999-09-12 James Henstridge <james@daa.com.au>
18684 * app/menus.c (display_menu_items): added print menu item.
18685 (filemenu): always add print menu item -- even if gnome-print is
18688 * app/commands.h, app/commands.c (file_print_callback): the print
18689 menu item is now available for both gnome-print and non gnome-print
18692 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18693 print with the non gnome-print driver.
18695 1999-09-11 James Henstridge <james@daa.com.au>
18697 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18698 printer dialog code out of commands.c.
18700 * app/paginate_psprint.c: new file containing the pagination code for
18703 * app/render_eps.c: made a few modifications so as well as producing
18704 EPS files, this renderer can be set up to do postscript printing.
18705 This basically entailed adding an extra function to create a RenderEPS
18706 renderer which did not bother setting the viewport for the document.
18707 That was left for the pagination code.
18709 1999-09-10 James Henstridge <james@daa.com.au>
18711 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18712 gnome-print does not support elliptic arcs at the moment, approximate
18713 the ellipse with eight bezier curves. This gives a pretty good
18714 match to a true ellipse.
18716 1999-09-09 James Henstridge <james@daa.com.au>
18718 * app/commands.c (file_gnome_print_callback): added support for
18719 scaling the diagram. Also fixed a few other bugs.
18721 * app/paginate_gnomeprint.c (print_page): added ability to scale
18722 document. Fixed up test to see if the page has no objects on it.
18723 This should prevent some blank pages being printed. Non square
18724 objects such as lines could still cause problems.
18726 1999-09-08 James Henstridge <james@daa.com.au>
18728 * app/commands.c (file_gnome_print_callback): changed from using the
18729 standard printer selection dialog to one that also has a paper size
18732 * commands.[ch]: added callbacks for the print menu item. Currently
18733 it only does A4 output. I will make it configurable soon.
18735 * app/menus.c: add a print diagram menu item if gnome-print support
18738 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18739 bit higher level than the gnome-print renderer. It splits the
18740 diagram into page size chunks and then renders them. For each
18741 page, it only renders the objects whose bounding box intersects
18742 the page, and it sets the clip mask so that the diagram does not
18743 overlap the margins.
18745 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18746 that uses gnome-print as its back end.
18748 * configure.in: added a check for gnome-print. It is disabled by
18749 default because the code is not really working correctly yet.
18751 * app/menus.c: the delete object menu item was missing from the
18752 GnomeUIInfo style menus.
18754 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18757 Added japanese to ALL_LINGUAS.
18758 Fix for Linux on Alpha.
18760 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
18762 * app/create_object.c (create_object_button_press):
18763 Always initialize tool->obj. Otherwise we store a null
18764 in the undo Change.
18767 Set linestyle before drawing cursor.
18768 Fix undo of backwards delete.
18770 1999-09-05 James Henstridge <james@daa.com.au>
18772 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18774 * app/render_svg.c (draw_image): some fixes so that the appropriate
18775 style attributes are set. Before it was setting line styles on
18776 fill_* functions. Now it only does this for the draw_* variants.
18778 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18779 variable so that custom shapes can be loaded.
18781 * shapes/: new directory for custom shapes. The Circuit sheet has
18784 1999-09-02 James Henstridge <james@daa.com.au>
18786 * TODO: removed a few todo items that have been implemented.
18788 * app/interface.c (create_sheets): enabled the popup page menu to the
18789 notebook. This can make it easier to select different sheets.
18791 * object/custom/Circuit/: added diode, zener diode, ground point and
18792 operational amplifier shapes.
18794 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18795 if you want the output.
18797 * objects/custom/shape_info.c (parse_path): same here.
18799 * objects/custom/load_sheet.c (load_with_readdir): don't print so
18800 much debugging output. To get the previous level of output, define
18803 * objects/custom/shape_info.c (parse_svg_node): polygons were being
18804 recorded as polylines in the ShapeInfo structure.
18806 * objects/custom/README: some notes on writing new custom shapes.
18808 1999-09-01 James Henstridge <james@daa.com.au>
18810 * objects/custom/Circuit/hinductor.*:
18811 * objects/custom/Circuit/vinductor.*: added inductor shapes that
18812 also test out the bezier curve and SVG path support.
18814 * objects/custom/custom_object.c (custom_draw): added support for
18815 drawing bezier paths and filled shapes.
18817 * objects/custom/shape_info.c (parse_path): new function to parse
18818 SVG path elements. It does not do quadratic beziers or elliptic
18819 arcs though. Only moves, lines and cubic beziers.
18820 (*): added support for paths.
18822 1999-08-31 James Henstridge <james@daa.com.au>
18824 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18826 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18829 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18832 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18835 * lib/render_store.[ch]: use newer bezier functions.
18837 * lib/render.h: changed the bezier drawing functions to use an array
18838 of BezPoint structures instead of normal Point structures to allow
18839 lineto's mixed in with the curveto's.
18841 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18843 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18844 xpm images for different shapes to Makefile.
18846 * objects/custom/custom_object.c (custom_object_new): set the icon
18847 for the sheet button if there is one. Otherwise fall back on the
18848 default custom object icon.
18850 * objects/custom/shape_info.c (load_shape_info): read the sheet
18851 icon name from the shape file.
18853 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18854 check the pixmap_file field for the name of a pixmap file to load
18857 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
18858 at the end of the structure, and it isn't used if the pixmap field
18859 is non NULL, so it should not break binary compatibility.
18861 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
18862 added support for the use of an index.sheet file so you can specify
18863 the ordering of the shapes in the sheet, and also internationalise
18864 the sheet name and actually be able to give a description. The old
18865 readdir based sheet loading code acts as a fallback if an index.sheet
18866 file can not be found.
18868 * objects/custom/custom_util.[ch]: new file containing useful routines
18869 needed by the custom object code. Currently only contains a simple
18870 routine for resolving relative paths.
18872 * objects/custom/custom_object.c (custom_draw): fixed problem with
18873 drawing rectangles if the shape has been flipped.
18875 1999-08-30 James Henstridge <james@daa.com.au>
18877 * objects/custom/custom_object.c (custom_get_object_menu): allow
18878 flipping of custom shapes. This uses the miggle click object
18881 * objects/custom/Circuit/npn.shape: fix aspect ratio.
18883 * objects/custom/custom_object.c (custom_update_data): honour the
18884 aspect ratio constraints.
18886 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
18887 tag parsing, so you can specify a free, fixed or a range for aspect
18888 ratios for the shape.
18890 1999-08-29 James Henstridge <james@daa.com.au>
18892 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
18893 up shape namespace tag.
18895 * objects/custom/shape_info.c (load_shape_info): check xml:lang
18896 attribute on <description> elements to support i18n for custom
18897 shape descriptions.
18898 Also changed the shape namespace for custom shapes to something
18899 a little more sensible.
18901 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
18903 * lib/intl.c: new file containing some functions for i18n stuff.
18905 * app/layer_dialog.c (create_button_box): fixed a warning.
18907 * objects/custom/custom_object.c: use current line style. Save dash
18910 * objects/flowchart/diamond.c: use current line style. Save dash
18913 * objects/flowchart/parallelogram.c: use current line style. Save
18916 * objects/flowchart/ellipse.c: use current line style. Save dash
18919 * objects/flowchart/box.c: use current line style. Save dash length.
18921 * objects/standard/ellipse.c: make ellipse use current line style.
18923 * objects/standard/box.c: use the line style set in the toolbox for
18924 new boxes, and remember the dash length.
18926 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
18929 1999-08-24 James Henstridge <james@daa.com.au>
18931 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
18932 to try to stop ellipse to get infinite width/height when we resize,
18933 while trying to keep the text inside the ellipse.
18935 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
18936 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
18937 resizing behaviour, so that you can't push objects round the screen
18938 with the resize handles.
18940 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
18941 get the OK buttons in the dialogs to take default clicks.
18943 * objects/custom/custom_object.c: added code so that resizing the
18944 shape does not end up pushing it round the screen.
18946 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
18948 * app/display.[ch]:
18949 Generate rectangle with the union of the damaged regions.
18950 This is used to optimize the grid paint and the object rendering.
18951 display_render_pixmap passes this info to grid_draw() and data_render().
18954 grid_draw doesn't draw grid lines outside of damaged rectangle.
18955 Sets dashlength when drawing non-solid grid.
18957 * lib/diagramdata.[ch]:
18958 data_render() and layer_render() takes an optional damaged rectangle
18959 argument. No objects not intersecting this are drawn.
18963 Call data_render with NULL update rectangle.
18965 1999-08-23 James Henstridge <james@daa.com.au>
18967 * objects/custom/custom_object.c (custom_update_data): if the aspect
18968 ratio is fixed, make sure the shape is not distorted.
18970 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
18971 a <fixaspectratio/> tag is given in the shape file.
18973 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
18974 added support for stroke-width, stroke and fill CSS attributes
18975 specified in style attributes of the SVG elements. The line width
18976 is relative to the user specified line width. The stroke and fill
18977 attributes can only be used to swap the foreground/background
18980 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
18981 sensitivity on the dash length selector when this function is called.
18983 * objects/standard/arc.c: same. Also handle dash length.
18984 * objects/standard/zigzagline.c: same.
18985 * objects/standard/polyline.c: same. Also handle dash length.
18986 * objects/standard/line.c: use default arrow/line styles.
18988 * app/interface.c: added callbacks to set the default attributes.
18990 * lib/attributes.c: added implementations of these functions.
18992 * lib/attributes.h: added extra prototypes for the new line properties
18993 area in the toolbox.
18995 * app/interface.c (create_lineprops_area): added line properties
18996 area to bottom of toolbox.
18998 * app/lineprops_area.h: a header exporting a few routines of the
18999 line properties area widgets.
19001 * app/lineprops_area.c: new file containing a selector for arrows
19002 and line styles to go in the main toolbox.
19004 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
19007 Update Gtk+ 1.0.5 comment to 1.2.0.
19016 Make sure we don't propagate -ldl and -lpopt to all LIBS
19017 by adding new var APP_LIBS that only app/dia links with.
19020 Update run_dia.sh to load custom and flowchart objects.
19022 * objects/ER/Makefile.am:
19023 * objects/FS/Makefile.am:
19024 * objects/UML/Makefile.am:
19025 * objects/network/Makefile.am:
19026 * objects/standard/Makefile.am:
19027 * objects/sybase/Makefile.am:
19028 Don't build versioned libs.
19030 1999-08-22 James Henstridge <james@daa.com.au>
19032 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
19035 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
19036 should actually work a bit now.
19038 * objects/custom/Circuit/*: a test sheet for the custom shape code.
19039 It is a small collection of circuit elements.
19041 * objects/custom/shape_info.c: fixed up loading of polylines and
19042 polygons. Before it was removing negative signs :(
19044 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
19045 placeholder was here before. I still need to work out how to set
19046 icons for individual custom shapes.
19048 * objects/custom/custom.c: added code to load the shapes into sheets
19049 properly. The shape files should be arranged into directories, and
19050 each directory represents a different sheet in the toolbox. This
19051 will make it very easy to distribute a collection of dia shapes as
19052 a tarball. I still need to work out internationalisation, and maybe
19053 also shape ordering in the sheet.
19055 * objects/custom/custom_object.c: fixed up dialogs for these objects.
19056 (custom_create): fix for objects without text areas.
19058 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
19059 and saving of custom object works correctly now.
19061 1999-08-21 James Henstridge <james@daa.com.au>
19063 * objects/flowchart/ellipse.c:
19064 * objects/flowchart/diamond.c:
19065 * objects/flowchart/parallelogram.c:
19066 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
19067 copying or loading these object types. Not all the connection
19068 points would be initialised correctly.
19070 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
19073 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
19074 build a versioned library. It will only ever be dlopen'd, so this
19077 * objects/custom/custom_object.c (custom_distance_from): allow
19078 selecting the object by clicking on the text. This fixes problems
19079 where the text box is outside the graphic.
19081 * objects/custom/shape_info.c (load_shape_info): fixed up reading
19082 of connections points. It should be possible to add connections
19083 to custom objects now.
19085 * objects/custom/custom_object.c (custom_update_data): fixed resizing
19086 due to changes to text.
19088 * configure.in: added extra makefiles.
19090 * objects/custom/shape_info.[ch]:
19091 * objects/custom/custom_object.c:
19092 * objects/custom/custom.c: the starts of custom shape support in dia.
19093 This is not built by default at the moment, since it is not quite
19094 complete. When it is, it will let you create more shapes for dia
19095 without writing a line of C. Its implementation includes buzzwords
19096 such as XML and SVG, so it must be good :)
19098 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
19100 * app/app_procs.c (app_exit): Use button labels "Quit" and
19101 "Cancel" instead of "Yes" and "No".
19102 Set default action to "Cancel" instead of "Quit".
19104 1999-08-19 James Henstridge <james@daa.com.au>
19106 * objects/flowchart/flowchart.c: added ellipse object.
19108 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
19110 1999-08-18 James Henstridge <james@daa.com.au>d
19112 * app/color_area.c (color_area_edit): small fix to prevent dia from
19113 segfaulting when you try to change the default foreground/background.
19115 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
19117 * app/diagram.[ch] (diagram_redraw_all):
19118 Added function that redraws all diagrams.
19120 * app/preferences.c (prefs_apply):
19121 Call diagram_redraw_all when prefs are changed.
19123 * app/render_svg.c:
19124 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
19125 older libxml's, and the old version works good enought here.
19127 1999-08-17 James Henstridge <james@daa.com.au>
19129 * lib/widgets.c: changed handlers that were connected to the GtkButton
19130 "pressed" signal to connect to the "clicked" signal. This removes the
19131 problem where dialogs are inactive until you click a mouse button
19132 after using a colour selector.
19134 * configure.in: added extra makefiles to AC_OUTPUT list.
19136 * objects/Makefile.am (SUBDIRS): added flowchart module
19138 * objects/flowchart/*: a collection of shapes for use in flowcharts.
19140 * app/color_area.c (color_area_events): similar here.
19142 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
19143 event is recieved with event->width == 0, which causes a warning if we
19144 try to create a pixmap of that width.
19146 * app/preferences.c, app/preferences.h, app/grid.c: added code to
19147 allow you to configure the colour of the grid, and also lets you
19148 set the grid to use dotted lines instead of solid ones.
19150 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
19151 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
19153 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
19154 export filter. It is not quite complete, but for most shapes it
19155 works as expected. Fonts still need a bit of work.
19157 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
19159 * configure.in: Added "en_GB" to ALL_LINGUAS.
19161 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
19164 Added Undo and Redo to GNOME menus.
19166 * objects/ER/attribute.c:
19167 * objects/ER/entity.c:
19168 * objects/ER/participation.c:
19169 * objects/ER/relationship.c:
19170 Added get/set_state functions.
19172 * objects/ER/participation.c:
19173 Added add/delete segment.
19176 Updated Swedish translation.
19178 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19180 * app/preferences.[hc]:
19181 Added undo_depth pref.
19184 Never grow stack larger than pref.undo_depth.
19185 undo_depth == 0 means unlimited.
19186 Converted printfs to conditionally compiled DEBUG_PRINTFs.
19188 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19193 * lib/render_object.c:
19194 * objects/ER/attribute.c:
19195 * objects/ER/entity.c:
19196 * objects/ER/participation.c:
19197 * objects/ER/relationship.c:
19198 * objects/FS/flow-ortho.c:
19199 * objects/FS/flow-poly.c:
19200 * objects/FS/flow.c:
19201 * objects/FS/function.c:
19202 * objects/UML/actor.c:
19203 * objects/UML/association.c:
19204 * objects/UML/class.c:
19205 * objects/UML/classicon.c:
19206 * objects/UML/component.c:
19207 * objects/UML/constraint.c:
19208 * objects/UML/dependency.c:
19209 * objects/UML/generalization.c:
19210 * objects/UML/implements.c:
19211 * objects/UML/large_package.c:
19212 * objects/UML/lifeline.c:
19213 * objects/UML/message.c:
19214 * objects/UML/note.c:
19215 * objects/UML/object.c:
19216 * objects/UML/realizes.c:
19217 * objects/UML/small_package.c:
19218 * objects/UML/state.c:
19219 * objects/UML/usecase.c:
19220 * objects/network/bus.c:
19221 * objects/standard/arc.c:
19222 * objects/standard/box.c:
19223 * objects/standard/ellipse.c:
19224 * objects/standard/image.c:
19225 * objects/standard/line.c:
19226 * objects/standard/polyline.c:
19227 * objects/standard/textobj.c:
19228 * objects/standard/zigzagline.c:
19229 Removed all traces of is_empty(). It doesn't work in an
19232 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19237 Undoable grouping and ungrouping.
19239 * app/layer_dialog.c:
19240 * lib/diagramdata.[ch]:
19241 Undoable layer ops.
19243 * app/modify_tool.c:
19244 Undoable unconnect on handle move.
19246 * lib/orth_conn.[ch]:
19247 Working undoable add/remove segment.
19248 Removed endpoint_handles from OrthConn, renamed
19249 midpoint_handles to handles and put the endpoint
19252 * objects/standard/zigzagline.c:
19253 * objects/ER/participation.c:
19254 * objects/UML/association.c:
19255 * objects/UML/dependency.c:
19256 * objects/UML/generalization.c:
19257 * objects/UML/realizes.c:
19258 Update for the changes in OrthConn
19260 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
19262 * configure.in: Added "de" to ALL_LINGUAS.
19264 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
19276 Don't have the <Display> etc part of the menu strings
19277 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19280 Don't have the <Display> etc part of the menu strings
19281 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19282 Don't remove is_empty() objects, that don't work with undo.
19284 * lib/objchange.[ch]:
19286 Definition of ObjectChange. This is essentially an Change
19287 exported to the object libs. It encapsulates a change made
19288 to an objects internals. It can be applied, reverted and freed.
19289 There are also utility functions for doing ObjectChanges that
19290 only get/set the whole state of an object to store the change.
19291 This cannot be used when the object change deletes or adds a
19292 object which has references from other objects, eg. Handles which
19293 might be connected.
19296 Added objchange.c and objchange.h.
19299 Return NULL when loading fails.
19302 Menu callbacks return an ObjectChange.
19305 Reference objchange.o
19308 Key events return ObjectChange if they modify the object.
19312 Added object_add_handle_at() function.
19313 Apply properties returns an ObjectChange.
19314 Remove ObjectState and the get/set state functions, these
19315 don't always work. Use the new ObjectChange instead.
19318 Added object_add_handle_at() function implementation.
19320 * lib/orth_conn.[ch]:
19321 Use ObjectChange. Not finished yet.
19322 Removed get/set/free state functions
19324 * lib/poly_conn.[ch]:
19326 Don't remove segments that are small.
19327 Removed get/set/free state functions
19331 Added functions to get/set all text attributes.
19333 * objects/standard/arc.c:
19334 * objects/standard/box.c:
19335 * objects/standard/ellipse.c:
19336 * objects/standard/image.c:
19337 * objects/standard/line.c:
19338 * objects/standard/polyline.c:
19339 * objects/standard/textobj.c:
19340 * objects/standard/zigzagline.c:
19342 fixed bug in image_set_state.
19343 zigzagline.c not finished yet.
19345 * app/disp_callbacks.c:
19346 Use ObjectChange that are returned from menu callbacks and
19347 key_events for undo.
19349 * app/properties.c:
19350 Use ObjectChange that are returned from properties apply
19355 New undo type: ObjectChangeChange. This wraps a change to the
19356 internals of an object (and ObjectChange) in code that does
19357 app specific stuff (object_add_updates etc.)
19359 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
19361 * lib/orth_conn.[ch]:
19362 Added code for add/delete segment.
19364 * objects/standard/zigzagline.c:
19365 Use the new orth_conn code.
19368 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
19370 * objects/FS/Makefile.am
19371 Removed fs.h from sources.
19377 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
19379 * app/disp_callbacks.c (ddisplay_canvas_events):
19380 Fix for bug. Every other arrow-key press got lost.
19381 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19384 change automake.sh to autogen.sh
19386 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
19389 Don't remove 'empty' objects.
19390 This violent destruction of objects won't work
19391 with the new undo framework.
19393 * app/disp_callbacks.c:
19394 Save undo info for object menu calls and key_events.
19396 * app/properties.c:
19397 Save undo info on properties apply.
19399 * lib/dia_image.[ch]:
19400 Add refcounting for images.
19402 * app/render_eps.c:
19403 * app/render_gdk.c:
19405 DiaImage * -> DiaImage
19408 Add undo functions for object state changes.
19412 change of semntics for focus->key_event.
19413 Now returns TRUE if the object recieving the event
19419 * lib/orth_conn.[ch]:
19420 Don't automatically create and delete segments when
19421 handles are moved. This is incompatible with undo.
19422 Added state get, set and free functions.
19424 * lib/orth_conn.[ch]:
19425 Added state get, set and free functions.
19427 * objects/UML/object.c:
19428 * objects/UML/uml.c:
19429 Fixed typo "UML - Objet" -> "UML - Object".
19430 Saved old for backwards compatibility.
19432 * objects/standard/arc.c:
19433 * objects/standard/box.c:
19434 * objects/standard/ellipse.c:
19435 * objects/standard/image.c:
19436 * objects/standard/line.c:
19437 * objects/standard/polyline.c:
19438 * objects/standard/textobj.c:
19439 * objects/standard/zigzagline.c:
19440 Added get/set state functions.
19441 Textobj has a redo crash-bug.
19442 Zigzagline needs object menus to add segments.
19445 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
19447 * app/render_eps.c (set_dashlength):
19448 Don't generate eps files with zero dash-length.
19450 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
19453 * app/create_object.c:
19455 Finished undo for create and paste.
19458 Started properties undo.
19460 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
19463 Added resizeable groups.
19466 Removed unused variable.
19470 Undo/redo for cut/delete done.
19472 * app/create_object.c:
19473 * app/modify_tool.c:
19474 * lib/diagramdata.[ch]:
19475 * app/diagram.[ch]:
19476 renamed diagram_add_selected -> diagram_select
19477 renamed diagram_remove_selected -> diagram_unselect
19479 * app/properties.[ch]:
19480 Added properties_hide_if_shown() function.
19482 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
19488 * app/commands.[ch]
19489 * app/modify_tool.[ch]
19490 * app/object_ops.[ch]
19491 * app/connectionpoint_ops.c
19493 Use undo functions.
19494 WARNING: Not finished. Will break.
19495 Finished: move object, move handle.
19498 Added diagram_selected_break_external() function.
19499 It removes all connections between selected objects
19501 Add undo stack to Diagram.
19503 * lib/diagramdata.[ch]
19504 Added layer_remove_objects() function
19506 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
19508 * objects/FS/Makefile.am
19509 * objects/sybase/Makefile.am
19510 Now uses GNOME_CFLAGS.
19513 Now compiles with GNOME even if popt.h isn't available.
19515 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
19518 * objects/Makefile.am
19520 First version of sybase objects from
19521 Brian Bruns <camber@umcc.ais.org>
19523 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
19526 Added fr to ALL_LINGUAS
19528 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
19532 Popt-code is activated if popt is available.
19534 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
19536 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19538 * lib/orth_conn.[ch]:
19539 Added orthconn_get_middle_handle()
19542 Added text_set_cursor_at_end()
19545 Added first version of functions structure diagrams.
19547 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
19549 * app/modify_tool.c:
19550 Include math.h to remove warning.
19552 * app/commands.c (dialogs_properties_callback):
19553 Bring up correct properties dialog when selected
19555 From Dan Cohn <dan@internap.com>
19557 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
19559 Patch from Lars R. Clausen
19561 * app/modify_tool.c:
19562 Changed abs to fabs.
19564 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
19570 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
19572 Patches from Dan Cohn <dan@internap.com>
19574 * app/commands.[ch]:
19575 * app/display.[ch]:
19577 * app/preferences.[ch]:
19578 Implements ability to turn on/off connection points in
19579 current drawing and in global prefs.
19581 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
19583 * lib/widgets.c (dia_line_style_selector_init):
19586 * lib/diagramdata.c (layer_update_extents):
19587 Fixed uninitialized variable error.
19589 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
19592 Made some changes to the gdk_imlib visual+colormap setup.
19594 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19596 * objects/UML/usecase.c:
19597 * objects/UML/lifeline.c
19600 * objects/UML/object.c:
19601 * objects/UML/message.c:
19602 Changed font from Courier to Helvetica.
19606 Added dash lenth to the LineStyle widget.
19608 * objects/standard/ellipse.c :
19609 * objects/standard/zigzagline.c:
19610 * objects/standard/line.c:
19611 Added dash lenght property.
19613 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
19615 * app/render_eps.c:
19616 First shot at latin1 encoded eps files.
19617 Works, but the eps files get a bit large.
19619 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
19621 * objects/UML/class.[ch]:
19622 * objects/UML/uml.[ch]:
19623 Reverted the line wrap changes.
19624 Some day this might return, but it has to be selectable and
19625 default to off for loaded objects, otherwise it breaks file
19626 format compatibility.
19627 There was also some complains about how it looked, so a making it
19628 selectable is good for this too.
19630 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
19632 * objects/UML/class.[ch]:
19633 Some indentation cleanup.
19634 Added wrap_lines variable to class.
19635 I'll fix the line break stuff tomorrow.
19637 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
19640 Added ref to poly_conn.o.
19642 * objects/standard/polyline.c (polyline_draw):
19643 * objects/standard/zigzagline.c (zigzagline_draw):
19644 * objects/standard/arc.c (arc_draw):
19645 * objects/standard/line.c (line_draw):
19646 Draw lines before arrows. This makes hollow arrows not
19649 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
19651 Changes from Kim Peasley <kpeasley@ior.com>
19653 * objects/UML/class.c:
19654 Break lines with long operations so classes won't be
19657 * objects/UML/uml.[ch]:
19658 Helperfunctions for the above.
19660 * objects/UML/objects.c:
19661 Fix bug that duplicated the text in the attributes
19662 textwidget each time the object was selected.
19664 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
19666 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19668 * app/modify_tool.c:
19669 * app/modify_tool.h:
19670 Control-drag is restricted to vertical/horizontal movement
19673 ModifierKeys argument added to object_move_handle
19675 * app/connectionpoint_ops.c:
19676 * app/create_object.c:
19677 * app/object_ops.c:
19678 * objects/ER/attribute.c:
19679 * objects/ER/entity.c:
19680 * objects/ER/participation.c:
19681 * objects/ER/relationship.c:
19682 * objects/UML/actor.c:
19683 * objects/UML/association.c:
19684 * objects/UML/class.c:
19685 * objects/UML/classicon.c:
19686 * objects/UML/component.c:
19687 * objects/UML/constraint.c:
19688 * objects/UML/dependency.c:
19689 * objects/UML/generalization.c:
19690 * objects/UML/implements.c:
19691 * objects/UML/large_package.c:
19692 * objects/UML/lifeline.c:
19693 * objects/UML/message.c:
19694 * objects/UML/note.c:
19695 * objects/UML/object.c:
19696 * objects/UML/realizes.c:
19697 * objects/UML/small_package.c:
19698 * objects/UML/state.c:
19699 * objects/UML/usecase.c:
19700 * objects/network/bus.c:
19701 * objects/standard/arc.c:
19702 * objects/standard/box.c:
19703 * objects/standard/ellipse.c:
19704 * objects/standard/image.c:
19705 * objects/standard/line.c:
19706 * objects/standard/polyline.c:
19707 * objects/standard/textobj.c:
19708 * objects/standard/zigzagline.c:
19709 Changed calls to move_handle to pass the new argument.
19713 Default line width, color etc #define'd
19716 Updates of danish menus
19718 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
19721 * dia_gnome_icon.png
19722 * dia_gnome_menu_icon.png
19724 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19727 About dialog shows dia_logo.png. Removed the GNOME about dialog.
19730 Distribute the icons and install logo in pkgdatadir.
19733 Added DATADIR-define.
19735 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
19736 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19739 Updated version number, made setup quiet, can build from cvs,
19740 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19743 * objects/ER/Makefile.am
19744 * objects/UML/Makefile.am
19745 * objects/network/Makefile.am
19746 * objects/standard/Makefile.am
19747 now builds better with gnome
19749 * objects/UML/class_dialog.c
19750 Fixed typo -> po files must be updated too!!
19752 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
19755 Added reference so that widgets.o gets linked to the app.
19757 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19759 * objects/UML/classicon.c:
19762 * objects/UML/actor.c:
19763 Changed position of 'snap-to-grid' so connection points are
19766 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
19768 * objects/UML/classicon.c:
19769 Changed position of 'snap-to-grid'.
19770 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19772 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
19774 * objects/network/antenna.c
19775 * objects/network/flash.c
19776 * objects/network/hub.c
19777 * objects/network/modem.c
19778 * objects/network/modularswitch.c
19779 * objects/network/rj45plug.c
19780 * objects/network/scead-plug.c
19781 * objects/network/network.c
19782 * objects/network/Makefile.am
19783 * objects/network/pixmaps/antenna.xpm
19784 * objects/network/pixmaps/flash.xpm
19785 * objects/network/pixmaps/hub.xpm
19786 * objects/network/pixmaps/modem.xpm
19787 * objects/network/pixmaps/modularswitch.xpm
19788 * objects/network/pixmaps/rj45plug.xpm
19789 * objects/network/pixmaps/sceadplug.xpm
19790 * objects/network/pixmaps/Makefile.am
19791 Lots of new network objects from
19792 Roland Steinbach <roland@support-system.com>.
19794 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19796 * objects/UML/classicon.c:
19797 Fixed connection positions, saved type as int (it has 3 states),
19798 and other small fixes.
19800 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
19802 * app/preferences.c:
19804 Added preference compress_save. It lets dia save uncompressed
19807 * objects/UML/class.c:
19808 Fixed bug with size calculation on methods that had class scope.
19810 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19812 * objects/UML/usecase.c:
19813 Added collaboration mode
19814 Fixed connection points with text > ellipse bug and other
19817 * objects/UML/state.c:
19818 Fixed bug of bad position of text after being either end
19819 or begin, moved and returned to text
19821 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
19823 * app/preferences.c: Add prototype declaration for prefs_apply.
19825 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
19827 * app/preferences.c:
19829 Apply don't hide window.
19831 * app/properties.c:
19834 * objects/UML/object.c:
19835 * objdcts/UML/state.c:
19836 Some data was not copied on copy.
19839 Ben Hochstedler <benh@eeyore.moneng.mei.com>
19841 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
19844 Changed link order between X and libxml.
19845 Some people had problems with an old libz in their
19848 1999-04-09 Kjartan Maraas <kmaraas@online.no>
19850 * po/no.po: updated translation.
19852 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
19854 * lib/message.c (message_error):
19857 * app/commands.[ch]:
19858 * app/diagram.[ch]:
19859 Added begining of xfig importing
19861 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19863 * objects/UML/pixmaps/state.xpm:
19864 * objects/UML/state.c:
19865 New UML object state machine.
19867 * objects/UML/uml.c:
19868 * objects/UML/Makefile.am:
19869 * objects/UML/pixmaps/Makefile.am:
19870 Added the state object.
19872 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
19874 * objects/UML/usecase.c:
19875 Added dialog to allow move text outside the ellipse.
19877 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
19879 * Released Dia 0.41
19880 Tag called DIA_0_41
19885 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
19888 Updated version number to 0.41
19893 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
19896 Changed errormessage for --export-to-ps. Removed call to
19897 g_log_set_always_fatal().
19900 * app/disp_callbacks.c
19902 (i18n) Removed gettext from some debugmessages.
19905 Small fix in GNOME-menus. Added warning that will help track
19906 problems with translations.
19909 (i18n) Updated swedish translation.
19911 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
19916 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
19922 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
19925 (i18n) Updated the danish translation.
19926 From Lars R. Clausen.
19928 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
19931 (i18n) The popup menu is translated now.
19934 (i18n) Updated swedish translation.
19936 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19938 * Released Dia 0.40
19939 Tag called DIA_0_40
19942 Updated for new release
19944 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19946 * objects/network/bus.c:
19947 Added initialization of properties dialog to NULL.
19949 * app/commands.c (edit_cut_callback):
19950 Update menu sensitivity when cut object.
19952 * app/modify_tool.c (click_select_object):
19953 * app/modify_tool.c (modify_button_release):
19954 Call diagram_update_menu_sensitivity() when
19955 selecting objects to update stuff that depends
19956 on selected/not selected.
19958 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19961 Change order of subdir so that libintl.a builds.
19962 Now passed make distcheck.
19964 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19966 * lib/font.c (init_x11_font):
19969 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19971 * objects/UML/pixmaps/classicon.xpm:
19972 * objects/UML/classicon.c:
19973 * objects/UML/uml.c:
19974 Added the class stereotype icon objects.
19977 Changed default ps extension from .ps to .eps.
19979 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19982 Added diamenu.h and intl.h
19987 * objects/UML/pixmaps/Makefile.am:
19990 * objects/standard/pixmaps/Makefile.am:
19993 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19996 Use a scalable font before fixed when real font not found.
20001 * objects/standard/image.c:
20002 Better handling of loading/saving of images.
20005 Added some text about cvs, fonts and rewrote some parts.
20008 Updated with new stuff.
20011 Bump up version number to 0.40.
20013 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20016 Moved diagram_add_ddisplay() call into new_display().
20017 Fixed new_display to not use uninitialized variables
20018 causing loaded files to show up as black (or garbage).
20022 Removed unneeded calls to diagram_add_ddisplay().
20024 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20026 * objects/UML/lifeline.c:
20028 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20030 * objects/UML/message.c:
20031 Fixed bug loading messages with null-text.
20032 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20034 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
20037 Updated swedish translation.
20040 (GNOME) Removed help-browser from help menu. Fixed typo.
20043 (GNOME) Accelerators in diagrams should work now.
20045 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
20050 * app/disp_callbacks.c
20054 * app/preferences.c
20056 * lib/diagramdata.c
20062 * objects/network/*.c
20063 * objects/standard/*.c
20064 * po/update_pofiles_in.sh
20066 More i18n. All strings (expect rare debug messages) can be
20067 translated now. Moved intl.h from app to lib. Updated
20068 update_pofiles_in.sh to check all .c-files.
20070 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
20072 * app/disp_callbacks.c (ddisplay_canvas_events):
20073 Don't drop keys while num-lock, scroll-lock etc is on.
20075 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20077 * app/render_eps.c (draw_image):
20078 Fixed exporting of images.
20079 Still not perfect, but not outright buggy.
20081 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20085 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
20088 Added $* to the dia call in run_dia.sh
20090 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20093 Added color_equals() call.
20095 * objects/standard/arc.c:
20096 * objects/standard/line.c:
20097 Don't save unneccesary data.
20099 * objects/standard/box.c:
20100 * objects/standard/ellipse.c:
20101 * objects/standard/image.c:
20102 * objects/standard/polyline.c:
20103 * objects/standard/zigzagline.c:
20104 Share properties dialog.
20105 Don't save unneccesary data.
20107 1999-03-22 Seth Alves <alves@hungry.com>
20112 small changes so that gnome menus aren't broken
20114 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20117 Added danish translation from lrclause@cs.uiuc.edu.
20122 * po/update_pofiles_in.sh:
20123 Added script that updates POFILES.in.
20124 This should probably be run automatically from somewhere.
20126 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
20128 * app/diagram.[ch]:
20129 Added function diagram_update_menu_sensitivity() which
20130 sets the sensitivity of some menu items. This function
20131 is called at each diagram state change (from diagram_modified()).
20132 This is needed because otherwise the keyboard accelerators
20133 don't work correctly.
20135 * app/display.[ch]:
20136 Changed display_set_menu_sensitivity() to display_update_menu_state().
20137 Moved lots of code to diagram_update_menu_sensitivity() in
20138 diagram.c. Optimized to only look up menu-items from path:s once.
20140 * app/disp_callbacks.c:
20142 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
20143 Need to set GDK_FOCUS_CHANGE_MASK.
20145 * app/create_object.c:
20146 Call diagram_modified when an object has been created and
20147 selected so that the menu sensitivity is updated.
20150 removed menus_set_sensitive() and menus_set_state(). Exported
20151 renamed function menus_get_item_from_path().
20153 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
20155 * app/disp_callbacks.c:
20156 Show (empty) object menus on object that has none.
20157 Show title on object menus.
20160 Set zoom factor correctly when opening new displays.
20161 Better setting of scrollbars.
20165 Some reformating cleanup.
20168 Added title to object menus.
20171 Added object menu method (NULL-valued) to all objects.
20173 * objects/standard/polyline.c:
20174 Added title to object menu.
20176 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
20178 * app/preferences.[ch]:
20179 New files. Implements the preferences dialog and
20180 loading/saving of ~/.diarc.
20183 Added preferences.[ch].
20186 Load preferences on startup.
20188 * app/commands.[ch]:
20189 Added file_preferences_callback to show the preferences dialog.
20191 * app/create_object.c:
20192 Update extents when creating object.
20193 Use the reset_tools_after_create preferences setting.
20196 Use preferences when creating new display.
20199 Add preferences to menu.
20202 * app/layer_dialog.c:
20203 * app/properties.c:
20204 Don't allow shrinking of dialog.
20205 Add i18n of some strings.
20207 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
20209 Norwegian translation added.
20211 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
20213 * objects/standard/line.c:
20214 * objects/standard/arc.c:
20215 * objects/standard/polyline.c:
20216 * objects/standard/zigzagline.c:
20217 Loading of arrow data fixed.
20219 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
20222 Update extents when saving and exporting to postscript.
20223 Fixes a bug with postscript bounding-box being wrong.
20226 Changed border width from 5 to 2.
20229 Move grouped objects by the move-point of the first object.
20230 Fixes bug that made all objects in the group be off-grid
20231 when moving the group, even though all objects was on-grid.
20233 * app/layer_dialog.c:
20234 Update extents when changing layer.
20236 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20238 * objects/UML/uml.c:
20239 * objects/UML/component.c:
20240 * objects/UML/pixmaps/component.xpm:
20241 Added the UML component object
20243 1999-03-04 Seth Alves <alves@hungry.com>
20245 * objects/UML/generalization.c (generalization_create): avoid
20246 math on uninitialized genlz->text_width (NaN causes sigfpe)
20248 * objects/UML/realizes.c (realizes_create): same
20250 * objects/UML/dependency.c (dependency_create): same
20252 1999-03-01 Seth Alves <alves@hungry.com>
20254 * app/display.c (ddisplay_active): don't fly a warning panel
20255 if ddisplay_active is called when no views are open.
20257 * app/commands.c (set_default_file_selection_directory): set
20258 file selector's default directory if there is already
20261 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20264 New info about imlib requirements.
20267 Added lib/pixmaps/Makefile to created makefiles.
20271 Change from obsoleted to newer gtk calls.
20274 Pass filename of the diagram when loading and saving.
20275 This creates better oportunities to handle filename saving.
20278 Pass filenames to load and save methods.
20280 * lib/dia_image.[ch]:
20281 Added dia_image_get_broken() call that returns a image which
20282 is used for 'broken' images.
20284 * lib/pixmaps/.cvsignore:
20285 * lib/pixmaps/Makefile.am:
20286 * lib/pixmaps/broken.xpm:
20287 New files for the broken image bitmap.
20290 Fixed bug with double destroyed filedialog.
20293 Updated load and save prototypes to use the new filename argument.
20296 Render broken image instead of line when got no image.
20297 Use the new filename in load and save to save (if possible)
20298 relative pathnames and to better try to find loaded images.
20300 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20303 Some updates to the todo file.
20307 Place over/place over => sent to back/bring to front.
20308 Added some keyboard shortcuts to menus.
20310 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20313 Changed string saving/loading to a new method. This should
20314 be much better att handling &,<,> and whitespaces.
20315 Loading strings of the old kind is still supported for backwards
20318 * samples/ER-demo.dia:
20319 * samples/UML-demo.dia:
20320 Updated to use the new strings.
20323 statusbar modified update fix.
20325 1999-02-27 Seth Alves <alves@hungry.com>
20327 * app/app_procs.c (app_init): added a --export-to-ps option
20328 which will cause dia to load a dia file and save it as ps
20329 and then exit. this is a little bogus, because it still
20330 pops up a window. this option only shows up if --enable-gnome
20333 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20334 menu when built with --enable-gnome
20336 * app/interface.c (create_display_shell): build status bar
20337 even if --enable-gnome is used
20339 * app/menus.c: menu fixes for --enable-gnome
20341 * app/commands.c (file_open_dialog_ok_callback): fixed up
20342 menus when --enable-gnome is used
20343 (file_export_to_eps_callback): set a default file name
20344 when dialog is created
20346 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
20348 * objects/UML/association.c (association_create):
20349 Fixed usage of not initialized variable.
20350 Pointed out by Seth Alves <alves@hungry.com>.
20352 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
20355 Fixed detection of gnome-xml.
20356 From Valtteri Vuorikoski <vuori@k.notcom.org>.
20359 Fixed error detection on dlsym calls.
20360 From Valtteri Vuorikoski <vuori@k.notcom.org>.
20362 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
20364 * objects/UML/message.c (fill_in_dialog):
20367 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20369 * objects/standard/zigzagline.c:
20370 * objects/standard/polyline.c:
20371 * objects/standard/line.c:
20372 * objects/standard/arc.c:
20376 Support for sizeable arrows.
20378 * objects/standard/box.c:
20379 * objects/standard/ellipse.c:
20380 * objects/standard/image.c:
20381 Changed creation handle to lower-right.
20382 Transparent box/ellipse.
20384 * objects/standard/image.c:
20385 Better layout of properties boxes.
20387 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20389 * objects/UML/message.c (fill_in_dialog):
20390 Fixed dialog fill in. Common dialog for all messages.
20392 * objects/UML/object.c:
20393 Added multiple instance. Dialog related bugs fixed.
20394 Common dialog for all instances. Completed copy and destroy.
20396 * objects/UML/lifeline.c (lifeline_load):
20397 Conn initialization bug fixed and few bad loading prevention flags.
20398 Common dialog for all lifeline objects.
20400 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20402 * lib/dia_image.[ch]:
20403 More work on the DiaImage abstraction.
20406 * app/render_eps.c:
20407 * app/render_gdk.c:
20408 * objects/standard/image.c:
20409 Use the new DiaImage calls.
20411 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20415 Reversed the meaning of align horizontal/vertical.
20417 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20419 * app/load_save.c (diagram_load):
20420 Statusbar update fix.
20422 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20424 * app/interface.c (create_display_shell):
20425 Fixed status bar size.
20427 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20429 * lib/dia_image.[ch]:
20430 Added extern declaration for dia_image_release.
20431 Removed dia_image_draw, as it's not neseccary.
20433 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20435 * app/object_ops.c:
20437 Added equal distance alignment both vertical and horizontal.
20439 * objects/UML/object.c:
20440 Added a couple of attributes to load/read that were missing.
20442 * objects/UML/lifeline.c:
20443 Better handling of handles. Fixed another bug I forgot to add
20446 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
20448 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20450 * lib/dia_image.[ch]:
20452 New files. DiaImage wraps the GdkImlibImage.
20455 * app/render_eps.c:
20456 * app/render_gdk.c:
20457 * lib/render_store.[ch]:
20458 * objects/standard/image.c:
20459 Use the new DiaImagetype.
20462 Removed unused variable to eliminate warning.
20464 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
20466 * objects/standard/box.c:
20467 Added rounded corners on the box object.
20469 * lib/widgets.[ch]:
20470 Updated the DiaFileSelector widget.
20472 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20474 * objects/UML/object.c (objet_draw):
20475 Completed underlining of all object name lines.
20477 * objects/UML/message.c (fill_in_dialog):
20478 Fixed a bug that filled incorrectly the message's dialog.
20480 * objects/UML/lifeline.c (lifeline_load):
20481 Some cleanning and fixed a couple of bugs that caused
20482 crashes after reading diagrams with lifelines.
20485 Added flags to prevent crash with void strings
20487 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20488 * app/display.[ch]:
20489 Added statusbar to the display widget. Currently shows the zoom
20490 factor and modified flag of the viewed diagram. The statusbar is
20491 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20492 This caused the following additions:
20494 * app/diagram.[ch]:
20495 Added function diagram_set_modified. Calls
20496 ddisplay_update_statusbar for all displays showing the modified diagram.
20497 Changed diagram_modified to call diagram_set_modified.
20500 Added the creation of the statusbar.
20503 diagram_save now calls diagram_set_modified instead of setting
20504 dia->modified. Needed to force call to display_update_statusbar
20507 Changed the way view_show_all works. Now calls ddisplay_zoom
20508 instead of directly setting the zoom_factor, so the zoom factor is
20509 correctly shown in the statusbar.
20512 Fixed rubberband zoom to use ddisplay_zoom().
20514 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
20517 Rudimentary GNOME session management.
20519 * app/disp_callbacks.c
20523 GNOME menus. Problems:
20524 Callbacks doesn't get user_data.
20525 Weird warnings when creating popup menus.
20526 menus_set_sensitive(), menus_set_state() doesn't work.
20528 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20531 Add AM_PATH_GDK_IMLIB() call.
20534 Add gdk_imlib to linking flags.
20538 Print library-loading error messages on stdout too.
20541 Add standard image to toolbox.
20543 * app/render_eps.c:
20544 Set a more reasonable dot length. Fixed
20545 missing initialization of dot length.
20546 Added draw_image methods.
20548 * app/render_gdk.c (new_gdk_renderer):
20549 Dot a bit wider. Looks good in normal mode now.
20551 * objects/standard/image.c:
20552 * objects/standard/pixmaps/image.xpm:
20553 New files. Standard object for images.
20555 * app/render_eps.c (set_linestyle):
20556 * app/render_gdk.c (set_linestyle):
20557 * lib/widgets.c (dia_line_style_selector_init):
20559 New line style DOTTED.
20562 * lib/render_store.c:
20563 Change DrawImage call to use gdk_imlib.
20565 * lib/widgets.[ch]:
20566 Added widgets for selecting files.
20567 Added dotted to the linestyle selector.
20569 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
20571 * objects/network/printer.c:
20572 * objects/network/network.c:
20573 * objects/network/pixmaps/printer.xpm:
20574 * objects/network/.cvsignore:
20575 * objects/network/Makefile.am:
20576 * objects/network/pixmaps/Makefile.am:
20577 New printer object in network.
20578 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20581 Added known XML bug.
20583 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
20587 Reverted back from #include <gnome-xml/tree.h> to
20588 #include <tree.h> as this is fixed by the xml-config program.
20589 The former way broke for some people.
20590 Reported by blizzard@redhat.com.
20592 * objects/UML/lifeline.c:
20593 * objects/UML/message.c:
20594 * objects/UML/object.c:
20595 Removed some warnings.
20597 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20599 * objects/UML/lifeline.c:
20600 Fixed connection points over the life line when the focus of
20601 control is not drawn.
20603 * objects/UML/message.c:
20604 Now a recursive message can be freely resized using the handles.
20606 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20608 * objects/UML/lifeline.c:
20609 Added connection points.
20610 Added properties dialog with the option to draw/hide focus of control
20611 box and destruction mark.
20613 * objects/UML/object.c:
20614 Added properties dialog and stereotype, explicit state and attributes.
20615 It's also possible to mark the object as active.
20617 * objects/UML/pixmaps/object.xpm:
20620 * objects/UML/message.c:
20621 Added "recursive" message type (was not necessary to use OrthConn).
20623 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
20625 * objects/standard/arc.c:
20626 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20628 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
20630 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20634 Update xml includes to gnome-xml/*.h.
20636 * objects/standard/arc.c:
20637 Only one property dialog per type.
20638 Fix arrows directions.
20640 * objects/standard/box.c:
20641 * objects/standard/ellipse.c:
20642 * objects/standard/textobj.c
20643 Added default properties dialog.
20646 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20648 * objects/UML/Makefile.am:
20649 * objects/UML/uml.c:
20650 * objects/UML/lifeline.c:
20651 * objects/UML/object.c:
20652 * objects/UML/message.c:
20653 * objects/UML/pixmaps/lifeline.xpm:
20654 * objects/UML/pixmaps/object.xpm:
20655 * objects/UML/pixmaps/message.xpm:
20656 Added 3 new UML objects for dynamic modeling. To avoid internal
20657 conflicts, the name "objet" is used for object "object".
20660 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20663 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
20665 * app/display.[ch]:
20666 * app/modify_tool.c:
20667 Added autoscrolling while doing rubber-band select.
20668 This patch from Matthias Köster
20669 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20672 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
20674 * app/defaults.[ch]:
20675 New files, deals with default properties dialog.
20678 New file. Contains definitions for the new object menu.
20680 * lib/poly_conn.[ch]:
20681 New file. Base class for poly-line like objects.
20683 * objects/standard/polyline.c:
20684 * objects/standard/pixmaps/polyline.xpm:
20685 New files. Polyline object.
20688 Fixed bug with infinite loop when registering sheets.
20691 Removed unneccesary stuff.
20693 * app/disp_callbacks.c:
20694 Support for object menus.
20697 Added polyline to toolbox.
20698 Added call to tool_options_dialog_show() when double clicking on
20702 New function tool_options_dialog_show() for tool properties.
20708 Added ObjectType methods for handling object default dialogs.
20709 Added Object method for handling object_menu.
20710 Added unused methods to ObjectTypeOps for future binary
20713 * lib/widgets.[ch]:
20714 Added DiaArrowTypeSelector widget.
20716 * objects/standard/arc.c:
20717 * objects/standard/zigzagline.c:
20718 Added support for default properties.
20720 * objects/standard/line.c:
20721 Added support for default properties.
20722 Just use one properties dialog for all line objects. NOTE: This
20723 seems to have a bug. We're working on it.
20725 * standard/standard.c:
20726 Add the polyline object.
20728 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
20730 * app/modify_tool.c:
20731 Commented out buggy transitive select function. It wasn't really
20732 meant to go into cvs.
20735 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
20747 Swedish translation. Not completed.
20751 Added possibility to enable GNOME specific code with configure.
20754 Added possibility to set debug level with configure.
20757 Added about dialog.
20763 Added some GNOME specific code. Not ready for use.
20765 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
20768 Added text about needing gtk 1.1.13 and gnome-xml.
20771 Described changes since last version (0.20).
20773 Released version 0.30, tagged DIA_0_30.
20775 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
20777 * app/magnify.c (magnify_button_release):
20778 Fixed a problem when zooming in on a very small box would
20779 not release the grabbed pointer-focus.
20781 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
20783 * app/load_save.c (diagram_load):
20784 Be somewhat more robust when loading files that
20787 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
20791 * objects/UML/uml.c:
20792 * objects/network/network.c:
20793 * objects/standard/standard.c:
20794 Added versioning of object libraries.
20796 * app/create_object.c:
20797 Don't change tool when an object is created.
20799 * objects/network/network.c:
20804 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
20807 Updated gtk requirement to Gtk+ 1.1.13.
20810 Always add one screenful of scrolling space on
20811 each side of a diagram window.
20813 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
20816 Tell automake to auto-install missing files.
20819 Renamed deprecated Gtk+ function.
20821 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
20825 * samples/Makefile.am:
20826 * samples/ER-demo.dia:
20827 * samples/UML-demo.dia:
20828 Added samples directory.
20829 Added samples for ER and UML.
20832 * app/disp_callbacks.c:
20834 Zoom is done by sqrt(2) instead of 2.
20835 Lots of more zoom options in the menu.
20837 * objects/ER/relationship.c:
20838 Relationships have 8 connectionpoints instead of 4.
20840 * objects/UML/class.c:
20841 UML class name font a bit smaller.
20842 Fixed stupid bug in the copy operation.
20845 Displays are opened at 500x400 instead of 256x256.
20848 Fixup of internal error message.
20850 * app/color_area.c:
20852 * app/modify_tool.c:
20854 Removed debug printf's.
20857 Added new known bug.
20859 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
20863 Fixed so accelerator groups work in all windows.
20864 Updated to new gtk function names.
20870 Updated to new gtk function names.
20871 Set sensitivity of the align menu items.
20873 * objects/ER/pixmaps/Makefile.am:
20874 * objects/UML/pixmaps/Makefile.am:
20875 * objects/network/pixmaps/Makefile.am:
20876 Fix so that make dist works.
20879 * app/color_area.c:
20883 * app/layer_dialog.c:
20885 * app/object_ops.c:
20886 * app/properties.c:
20887 * lib/diagramdata.[ch]:
20889 * lib/objects/ER/attribute.c:
20890 * lib/objects/ER/entity.c:
20891 * lib/objects/ER/participation.c:
20892 * lib/objects/ER/relationship.c:
20893 * lib/objects/ER/.c:
20894 * objects/UML/actor.c:
20895 * objects/UML/association.c:
20896 * objects/UML/class_dialog.c:
20897 * objects/UML/dependency.c:
20898 * objects/UML/generalization.c:
20899 * objects/UML/large_package.c:
20900 * objects/UML/realizes.c:
20903 Updated to new gtk function names.
20906 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
20912 Fixed loading of diagrams specified as arguments.
20914 * objects/ER/attribute.c:
20915 * objects/ER/entity.c:
20917 * objects/ER/participation.c:
20918 * objects/ER/relationship.c:
20919 Updated the ER objects.
20922 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
20926 * objects/Makefile.am:
20927 * objects/ER/attribute.c:
20928 * objects/ER/entity.c:
20930 * objects/ER/participation.c:
20931 * objects/ER/relationship.c:
20932 * objects/ER/pixmaps/Makefile.am:
20933 * objects/ER/pixmaps/attribute.xpm:
20934 * objects/ER/pixmaps/entity.xpm:
20935 * objects/ER/pixmaps/participation.xpm:
20936 * objects/ER/pixmaps/relationship.xpm:
20937 * objects/ER/pixmaps/weakentity.xpm:
20938 First commit of entity relationship objects.
20939 These were done by hallon@lysator.liu.se.
20940 There are still stuff to do on these.
20942 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
20947 * app/diagram.[ch]:
20948 Change diagram_remove_all_selected to take new argument
20949 delete_empty. Empty objects are deleted only if it is TRUE.
20950 Removed call to close_eps_renderer. This is now done in end_render
20951 in the eps renderer.
20953 * app/create_object.c:
20954 * app/layer_dialog.c:
20955 Update calls to diagram_remove_all_selected.
20958 Update calls to diagram_remove_all_selected.
20959 Some code reformating.
20960 Changed order of adding updates i align_h and align_v.
20962 * app/modify_tool.c:
20963 Update calls to diagram_remove_all_selected.
20964 Added pointer grab when doing rubber-band selection, this fixes
20965 the bug when draging the box over to another window.
20967 * app/connectionpoint_ops.[ch]:
20968 diagram_update_connections_object changed to take an argument
20969 update_nonmoved. This lets connections that has not moved, but
20970 the stuff they're connected to has been moved work.
20971 Update calls to the new diagram_update_connections_object.
20973 * app/properties.c:
20974 Update calls to the new diagram_update_connections_object.
20975 Update extents when properties are applied.
20977 * app/disp_callbacks.c:
20978 Added support for zooming with the '+' and '-' keys.
20981 Removed old keyboard shortcuts for zoom.
20984 Added calls begin_render and end_render to renderer.
20985 These can be used for setup and cleanup.
20987 * lib/diagramdata.c:
20988 Added calls to begin_render and end_render in data_render.
20990 * app/render_gdk.c:
20991 Added begin_render and end_render.
20993 * app/render_eps.[ch]:
20994 Added begin_render and end_render.
20995 Moved close_eps_renderer code to end_render.
20996 Various fixes to the generated eps code. This fixes importing
20997 generated eps into LYX.
20999 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
21005 Menus for alignment updated.
21007 * app/object_ops.[ch]:
21008 Functions for object alignment updated.
21010 * app/commands.[ch]:
21011 Object alignment callbacks updated.
21012 New diagrams are called Untitled-<nr>.
21014 * app/layer_dialog.c:
21015 Active layer selected when showing layers from new
21019 Compress xml files when saving.
21020 Use xml namespace 'dia'.
21023 Minor comment update.
21025 * objects/UML/class_dialog.c:
21026 Cleanup of the gkt_list_item moving code.
21027 Fixed bug with update of operation when moving parameters.
21029 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
21031 * app/layer_dialog.[ch]:
21032 Fixed the rest of the layers dialog.
21035 Added call to redo layer dialogs diagram list when changing
21038 * lib/diagramdata.[ch]:
21039 Added data_raise_layer and data_lower_layer functions for
21040 raising/lowering layers. Added data_add_layer_at for adding a
21041 layer at a specified index.
21043 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
21045 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
21048 Added support for reading diagrams from the command line.
21050 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
21052 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
21054 * app/commands.[ch]:
21055 Added objects_align_callback().
21058 Added align objects to menu.
21060 * app/object_ops.[ch]:
21061 Add object_list_align().
21063 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
21064 * app/layer_dialog.[ch]:
21065 New files. Handles the layers dialog. Needs a bugfix for glib to
21066 work. Sent patch to gtk-list.
21068 * app/pixmaps/new.xpm:
21069 * app/pixmaps/eye.xbm:
21070 * app/pixmaps/lower.xpm:
21071 * app/pixmaps/raise.xpm:
21072 * app/pixmaps/delete.xpm:
21073 New files. Images for the layer dialog buttons.
21075 * lib/diagramdata.h
21076 * lib/diagramdata.c
21077 New files for the DiagramData and Layer structures and functions.
21080 Added call to create_layer_dialog() on startup.
21082 * app/commands.[ch]:
21083 New callbacks for showing the properties and layout dialog.
21084 Changes for the new DiagramData structure.
21086 * app/connectionpoint_ops.c:
21087 * app/cut_n_paste.c:
21088 * app/diagram.[ch]:
21089 * app/display.[ch]:
21091 * app/modify_tool.c:
21092 * app/object_ops.[ch]:
21093 * app/render_eps.c:
21095 Changes for the new DiagramData structure.
21098 * app/properties.c:
21099 Set correct wmclasses.
21102 Fix load and save of layers.
21105 Update DTD for layers.
21108 New menus for dialogs.
21114 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
21117 Removed the gtk 1.1.5 stuff.
21120 Updated gtk check to version 1.1.5.
21121 Updated version from 0.20 to 0.30
21123 * app/commands.[ch]:
21124 Updated some callbacks to be of type GtkItemFactoryCallback1.
21125 Not all are done yet, but it works anyway.
21128 Removed Gtk 1.0.0 GtkAcceleratorTable references.
21132 Update to Gtk 1.1.x functions.
21133 Use ItemFactory instead of MenuFactory.
21135 * app/render_gdk.c:
21136 Removed Gtk 1.0.0 references.
21138 * objects/UML/class_dialog.c:
21139 Scrolled window updates for Gtk 1.1.5.
21142 Removed ugly fix for gnome-xml bug. Make sure you get the
21143 newest version of gnome-xml from CVS.
21145 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
21148 Removed the xml load/save line.
21154 Removed building of files.c
21157 * lib/connection.c:
21161 * lib/render_object.c:
21162 * objects/UML/actor.c:
21163 * objects/UML/association.c:
21164 * objects/UML/class.c:
21165 * objects/UML/constraint.c:
21166 * objects/UML/dependency.c:
21167 * objects/UML/generalization.c:
21168 * objects/UML/implements.c:
21169 * objects/UML/large_package.c:
21170 * objects/UML/note.c:
21171 * objects/UML/realizes.c:
21172 * objects/UML/small_package.c:
21173 * objects/UML/uml.c:
21174 * objects/UML/usecase.c:
21175 * objects/network/bus.c:
21176 * objects/standard/arc.c:
21177 * objects/standard/box.c:
21178 * objects/standard/ellipse.c:
21179 * objects/standard/line.c:
21180 * objects/standard/textobj.c:
21181 * objects/standard/zigzagline.c:
21182 Removed all includes of files.h
21185 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
21188 Made the val property of string be implied.
21189 This makes it possible to save strings that
21190 are NULL. Just leave out val.
21192 * objects/lib/dia_xml.c:
21193 Fixed string so that it is possible to save strings
21194 that are NULL. Also made an ugly workaround of a
21195 bug in gnome-xml which removes empty properties.
21197 * objects/lib/orth_conn.c:
21198 Fixed a bug in saving. Forgot to step through the
21201 * objects/UML/association.c:
21202 * objects/UML/class.c:
21203 * objects/UML/constraint.c:
21204 * objects/UML/dependency.c:
21205 * objects/UML/generalization.c:
21206 * objects/UML/implements.c:
21207 * objects/UML/large_package.c:
21208 * objects/UML/note.c:
21209 * objects/UML/small_package.c:
21210 * objects/UML/realizes.c:
21211 * objects/UML/usecase.c:
21212 * objects/UML/actor.c:
21213 Fixed UML objects to save as xml.
21214 The last two were done by asierra@servidor.unam.mx (asierra-981204)
21216 * objects/UML/uml.[ch]:
21217 Updated *_write() and *_read() functions to use xml.
21219 * objects/network/bus.c:
21220 * objects/network/computer.c:
21221 * objects/network/disc.c:
21222 * objects/network/monitor.c:
21223 Updated network diagrams to use xml.
21225 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
21228 New file. DTD that describes the xml file format
21231 * lib/dia_xml.[ch]:
21232 New files. Support for saving object to xml files.
21237 Added check for and usage of gnome-xml library.
21240 Major chages. Now saves/loads diagrams as xml.
21243 * lib/element.[ch]:
21244 * lib/connection.[ch]:
21245 * lib/orth_conn.[ch]:
21246 * lib/render_object.[ch]:
21248 Updated object support load/save functions for xml:
21250 * object/standard/arc.c:
21251 * object/standard/box.c:
21252 * object/standard/ellipse.c:
21253 * object/standard/line.c:
21254 * object/standard/textobj.c:
21255 * object/standard/zigzagline.c:
21256 Updated all standard objects to use xml.
21259 Only the standard objects are converted right now, don't
21260 save or load uml or network diagrams yet. Also, since this
21261 is new code it is deemed a bit unstable.
21266 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
21268 * objects/UML/class.c:
21269 Changed classname font to Helvetica.
21270 Added more space above the classname
21272 * objects/UML/usecase.c:
21273 Correct placements of connectionpoints on ellipse.
21274 Better algorithm for deciding aspect ration on
21277 These changes were made by Alejandro Aguilar Sierra
21278 <asierra@servidor.unam.mx>. (asierra-981201)
21280 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
21282 * objects/UML/actor.c:
21283 Changed the extents and alignment of the element
21286 * objects/UML/.cvsignore:
21287 Added usecase.lo and actor.lo.
21289 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
21291 * objects/UML/actor.c:
21292 * objects/UML/usecase.c:
21293 * objects/UML/pixmaps/actor.xpm:
21294 * objects/UML/pixmaps/case.xpm:
21295 New files. Implements usecase and actor UML objects.
21296 These objects are done by Alejandro Aguilar Sierra
21297 <asierra@servidor.unam.mx>.
21299 * objects/UML/Makefile.am:
21300 * objects/UML/pixmaps/Makefile.am:
21301 Added usecase and actor to makefile.
21304 Added Alejandro and Jerome to autors list.
21306 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
21308 * objects/UML/class.c (umlclass_load):
21309 Fixed typo. Reported by Jerome.Abela@solsoft.fr
21311 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
21313 * app/properties.c:
21314 Update connections when doing apply in the properties window.
21316 * objects/UML/uml.[ch]:
21317 * objects/UML/class.[ch]:
21318 * objects/UML/class_dialog.c:
21319 Added connection points on both sides of attributes and
21320 operations in UML classes.
21321 Based on idea from Jerome.Abela@solsoft.fr
21323 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
21326 Some new documentation about handles and connectionpoints.
21329 Added functions object_add_connectionpoint and
21330 object_remove_connectionpoint for handling a dynamic
21331 number of connectionpoints.
21333 * objects/UML/class.c:
21334 Only reserve space for stereotype when it is shown.
21336 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21338 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
21340 * app/connectionpoint_ops.c:
21342 * app/disp_callbacks.c:
21343 * app/display.[ch]:
21345 * app/handle_ops.c:
21347 * app/modify_tool.c:
21348 * app/render_gdk.[ch]:
21350 Huge cleanup of internal rendering system.
21351 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21352 This gives a few new methods for Interactive Renderers for setting
21353 clipping regions and drawing pixel based lines and rects.
21354 Updated the rest of the code to use the new stuff.
21356 * app/render_eps.c:
21360 * objects/standard/zigzagline.c
21361 Fixed unused variable warnings.
21364 Fixedbug with stringwidth where width==0.
21369 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
21371 * lib/widgets.[ch]:
21372 Added suppot for setting the font of a
21373 DiaFontSelector widget.
21374 Also fixed some typos in the header.
21377 Added a comment about the GetPRoperties method call.
21378 You have to make sure to update widget state when
21379 this method is called. (Not all objects do this yet,
21385 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
21388 Fixed problem with height of ascent and descent for fonts.
21389 It didn't use the whole height (==ascent+descent) when calculatine
21390 ascent_ratio and descent_ratio.
21392 * objects/standard/textobj.c:
21393 * objects/standard/box.c:
21394 * objects/standard/ellipse.c:
21395 * objects/standard/line.c:
21396 * objects/standard/arc.c:
21397 Updated and added property dialogs for these objects.
21398 Also added line width/color/style to those objects
21399 that didn't have it.
21400 This change breaks fileformat compatibility for these objects.
21402 * objects/standard/zigzagline.c:
21403 Changed zigzagline to be based on OrthConn, much nicer.
21404 Also added line style and color to properties.
21405 This change breaks fileformat compatibility for zigzagline.
21408 Fixed bug in message(). Forgot a pair of '&'.
21410 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
21412 * lib/widgets.[ch]:
21413 Added DiaColorSelector widget.
21414 This is a colored button that pops up a color selection
21415 dialog when pressed.
21417 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
21419 * lib/widgets.[ch]:
21421 New files, added widgets for selecting fonts, alignment
21422 and line-style. Will be used later.
21424 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
21428 * objects/UML/Makefile.am:
21429 * objects/network/Makefile.am:
21430 * objects/standard/Makefile.am:
21431 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21432 in all Makefile.am.
21434 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
21436 * app/handle_ops.c (handle_draw):
21437 connected HANDLE_MINOR_CONTROL also becomes red.
21439 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
21442 removed -ldl from linking. This is added if needed by configure.
21445 Open dlls with RTLD_LAZY if it is defined.
21446 Some cleanups: char *error -> const char *error
21447 Added fprintf()'s to where we exited because of errors.
21450 Include <sys/types.h>
21452 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
21457 Detect dlopen better.
21458 Detect wether dlopen needs an underscore in the identifier.
21459 This code was mostly borrowed from guile.
21463 * objects/standard/standard.c:
21464 * objects/network/network.c:
21465 * objects/UML/uml.c:
21467 Changed the way sheets reference objects to use just the
21468 name. Changed module loading to a two stage model:
21469 First register_objects() is called for all modules.
21470 Then register_sheets() is called. This means that
21471 sheets can safely include objects from other modules.
21474 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
21476 * objects/network/bus.c:
21477 * objects/network/network.c:
21478 * objects/network/Makefile.am:
21479 New file bus.c. Added new object: Ethernet bus.
21481 * objects/standard/box.c:
21482 Added call to gtk_spin_button_set_numeric for linewidth spinner
21483 in property dialog.
21485 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
21487 * app/connectionpoint_ops.c:
21488 * app/create_object.c:
21490 * app/handle_ops.c:
21491 * app/modify_tool.c:
21492 * lib/connection.c:
21497 * loads of objects:
21498 Changed handle->connectable to handle->connect_type.
21499 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21500 that their connections don't break when moving objects.
21503 Always select the last handle in an object that has
21504 the closest distance.
21506 * lib/geometry.[ch]:
21507 Added rectangle_add_point function.
21510 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
21512 * app/properties.[ch]: New files. Handles the new properties
21515 * app/modify_tool.c: Changed to use new properties dialog.
21517 * app/object_ops.[ch]: Removed object_changed_callback, as it's
21518 not needed anymore. This is now handled differently in
21522 Changed the properties ops for objects. Removed typedefs
21523 ChangedObjectTime and ObjectChangedFunc needed for the old way.
21524 Added object_return_null function.
21527 * lib/render_object.c:
21529 Changed objects to use the new properties dialog.
21532 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
21534 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21537 * autogen.sh: New file. Copied from gtk and added a call to
21538 libtoolize. Anyone knows why this isn't done in gtk?
21540 * Removed autogenerated files.
21542 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
21544 * Added call setlocale(LC_NUMERIC, "C") so that formating of
21545 floating-point numbers in postscript output will be correct.
21546 * Did some cleanup of generated postscript files.