1 2006-12-03 Lars Clausen <lars@raeder.dk>
3 * doc/en/usage-objects-special.xml: A few updates.
5 * app/menus.c (display_entries): Add Alt-Return as shortcut for
6 object properties, and Shift-Alt-Return for diagram properties.
9 * objects/SADT/box.c: Make connection points not tear off the side
10 at resize. Thanks to Vadim Zelenin <green@visoft.spb.ru> for this
13 2006-12-02 Lars Clausen <lars@raeder.dk>
15 * po/POTFILES.in: Add VDX and BPMN files.
17 * lib/dialibartrenderer.c (fill_polygon): Make sure to use
18 odd-even winding rule. Fixes bug #378878.
20 * app/interface.c (tool_data): Add note about Space toggling tools.
22 * samples/render-test.dia: Updated font geometry part since font
23 size has changed. Also added polygon and beziergon with holes.
25 * lib/diasvgrenderer.c: Specify that font-size is in
26 cm, which according to
27 http://www.w3.org/TR/SVG/text.html#FontSizeProperty specifies the
28 baseline-to-baseline size of the font. InkScape does not respect
29 this, nor does gqview. See bug #332826 for details.
31 * lib/textline.c (text_line_cache_values):
32 * lib/font.c (get_layout_offsets): Fix (seemingly) remaining
33 problems in the textline adjustment process.
35 * lib/text.c: Fix a couple bugs, admit to using textline for text
36 rendering, make sure height&font are set from attributes.
39 * lib/diarenderer.c: Admit to using textline for text rendering
42 * lib/diagdkrenderer.c (draw_text_line): Removed code for caching
43 text rendering, it's not really needed with new textline based
44 rendering being so fast after all. Also remove debugging include
47 2006-12-01 Lars Clausen <lars@raeder.dk>
49 * plug-ins/pstricks/render_pstricks.c (set_linewidth): Specify
50 unit of measure. See bug #380302.
52 * lib/font.c (get_layout_offsets): Remember the newly constructed
55 * lib/textline.c (text_line_cache_values): Don't take run->glyphs
56 to be an array and crash. Still some problems with text rendering.
58 2006-12-01 Steffen Macke <sdteffen@gmail.com>
60 * lib/text.h: Added text_get_line() declaration
62 * lib/libdia.def: Added text_get_line_width, text_get_line,
63 text_get_descent,text_get_max_width
64 * objects/UML/object.c: Fixed typo in objet_draw()
65 * plug-ins/vdx/vdx-export.c: Use g_ascii_strncasecmp() instead of
68 2006-11-30 Lars Clausen <lars@raeder.dk>
70 * app/diapsft2renderer.c (draw_text_line):
71 * lib/textline.[ch] (text_line_adjust_glyphs):
72 * lib/diagdkrenderer.c (draw_text_line): Adjusting widths no
73 longer mallocs and frees, merely changes the existing object.
75 * lib/text.c (text_draw): Remember to set_font, even though
76 draw_text doesn't require it anymore.
78 2006-11-29 Lars Clausen <lars@raeder.dk>
80 * lib/diarenderer.c: Make default draw_text use its internal
83 * objects/UML/object.c:
84 * objects/UML/classicon.c:
86 * objects/GRAFCET/action.c:
87 * objects/GRAFCET/action_text_draw.c:
88 * app/modify_tool.c: Use functions to access text internals.
89 There are more places that access the structure directly, which
90 should be changed, but are not critical now.
92 * lib/text.[ch]: Add variant (to become standard) that uses a
93 TextLine for each line. Also expose some information in a more
96 * lib/diagdkrenderer.c: Use default draw_text implementation.
98 2006-11-28 Lars Clausen <lars@raeder.dk>
100 * app/modify_tool.c (modify_make_text_edit): Call
101 text_line_destroy rather than undefined text_line_free.
103 * lib/libdia.def: Removed disappeared _scaled_ functions.
105 * lib/arrows.[ch]: Moving inclusions towards .c, as too many
106 includes in .h confuses MSVC.
108 * lib/text.h: Start of using TextLine for Text lines.
110 2006-11-26 Lars Clausen <lars@raeder.dk>
112 * lib/text.[ch]: Encapsulated the arrays in Text to prepare for
113 switching to one array of TextLine. Simplified operations a lot
114 by using standard functions.
116 2006-11-25 Lars Clausen <lars@raeder.dk>
118 * lib/font.[ch]: Use text_line for the few remaining functions
119 that used _scaled_ (non of them actually *were* scaled:), and get
120 rid of all the _scaled_ stuff! One less horror of a kludge!
122 * app/diapsft2renderer.c (draw_string): Happy with using text_line
125 * lib/diagdkrenderer.c: Make highlighted area match text area, and
126 use text_line in get_text_width. These should later be
127 superfluous due to increased use of text_line at higher levels.
129 * lib/dialibartrenderer.c: Implement text_line based rendering of
130 text. Works. Also get_text_width uses a text_line. Text
131 bounding box is still a little off, but that will help once
132 text_line is used in the text system.
134 * lib/arrows.c (arrow_get_name_from_type): Function to get arrow
135 names, and proper error messages when a loaded diagram has bad
136 arrows. Finally fixes bug #144394, thanks to both Pontus Pihlgren
137 <pontus.pihlgren@farmbio.uu.se> and Vadim Zelenin
138 <green@visoft.spb.ru>
140 2006-11-24 Lars Clausen <lars@raeder.dk>
142 * samples/Metapost-Testcase.dia: A nice test case for MetaPost,
143 including most basic rendering things.
145 * lib/textline.[ch]: Little cache fix, and adding a function to
146 get alignment widths for a TextLine.
148 * lib/diagdkrenderer.c (draw_text_line): Make caching of renderer
149 data for textline work, get rid of last use of _scaled_ stuff.
151 2006-11-23 Lars Clausen <lars@raeder.dk>
153 * lib/diagdkrenderer.c (draw_text_line):
154 * lib/textline.[ch]: Underlying implementation and first
155 (currently commented out) attempt at use of textline renderer data
156 cache. Not debugged, but thennobody holds textline objects long
157 enough to make a difference yet.
159 2006-11-22 Lars Clausen <lars@raeder.dk>
161 * app/menus.c: Patch adding shortcuts for align functions, thanks
164 2006-11-18 Djihed Afifi <djihed@gmail.com>
166 * configure.in: Added Arabic Language (ar).
168 2006-11-16 Lars Clausen <lars@raeder.dk>
170 * lib/font.[ch] (get_layout_offsets): Start of function to adjust
171 all offsets in a layout line. Not used yet, and not debugged.
172 Kept around for when we have more runs in a line.
174 * lib/textline.c (text_line_adjust_layout_line): Adjusts the glyph
175 sizes within a PangoLayoutLine to overcome the rounding problems
176 and ensure linear scaling of fonts. Currently only fixes the
177 first run, since AFAIK that's all we can do with current text
180 * lib/diagdkrenderer.c (draw_text_line): Now uses
181 text_line_adjust_layout_line to avoid repeating Pango digging for
182 Freetype and GDK code both. Ready to merge freetype and GDK
185 2006-11-15 Lars Clausen <lars@raeder.dk>
187 * plug-ins/vdx/*: Update to version 0.6.1 yields improvements in
188 both export and import.
190 2006-11-13 Lars Clausen <lars@raeder.dk>
192 * lib/font.c: Internally calculate glyph offsets at *20 font size
193 to avoid rounding problems.
195 * app/layer_dialog.c: Revamped the visibility toggling system to
196 make visibility change a properly undoable operation, making the
197 page borders resize in the process.
199 * objects/standard/line.c (line_load, line_save):
200 * objects/standard/arc.c (arc_load, arc_save):
201 * objects/standard/polyline.c (polyline_load, polyline_save):
202 * objects/standard/bezier.c (bezierline_load, bezierline_save):
203 * objects/standard/zigzagline.c (zigzagline_load, zigzagline_save):
204 Use generic load/save functions.
207 * lib/arrows.[ch]: Generic functions for loading and saving
208 arrows, including sanitizing on load, part of fixing bug #144394.
210 * objects/FS/flow-ortho.c (orthflow_draw):
211 * objects/FS/flow-poly.c (orthflow_draw): Update to use modern
214 * app/modify_tool.c (modify_start_text_edit)
215 (modify_make_text_edit): Don't use dia_font_scaled_* when
218 2006-10-29 Steffen Macke <sdteffen@gmail.com>
220 * app/paginate_psprint.c: Made compile with MSVC again
222 2006-10-26 Lars Clausen <lars@raeder.dk>
224 * app/interface.[ch]: Patch from jan@uos.de: Write the accelerator
225 keys in tooltips for standard tools.
227 * app/paginate_psprint.c: Patch for better printing: Reasonable
228 file name, check before overwriting, re-popup if file write
229 failed. Thanks to Leon Stringer <leon.stringer@ntlworld.com> for
232 2006-10-26 Hans Breuer <hans@breuer.org>
234 * plug-ins/shape/shape-export.c : the icon export facility dependens
235 on the libart-size-hack; use filter_get_by_name("png-libart") instead
236 of filter_guess_export_filter(). Fixes bug #364491.
238 2006-10-19 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
240 * configure.in: Added 'gl' to ALL_LINGUAS
242 2006-10-16 Hans Breuer <hans@breuer.org>
244 * objects/UML/class.c : the comment wrapping was only working for
245 plain ASCII, now it deals with UTF-8 (Vadim Zelenin, bug #349765)
247 2006-10-16 Theppitak Karoonboonyanan <thep@linux.thai.net>
249 * configure.in : Add 'th' (Thai) to ALL_LINGUAS.
251 2006-10-14 Hans Breuer <hans@breuer.org>
253 * plug-ins/vdx/vdx-import.c : don't try to print("%s", NULL). It is
254 not generally supported and crashes on win32. Fixes bug #349883
256 * lib/arrows.[hc] : draw hollow arrow heads with linewidth 0.0
257 correctly. Patch from Michael Duelli fixing bug #358176
259 * objects/standard/arc.c : don't rely on the result of atan2(inf,inf),
260 it is C-runtime dependent. Fixes infinitesimal burning of CPU cycles,
261 bug #360013 and duplicates.
263 * app/load_save.c : protect gstdio.h by GLIB_CHECK_VERSION
264 and use the <glib/ form for installed version
266 2006-10-13 Hans Breuer <hans@breuer.org>
268 * objects/UML/(actor|large_package|node|note).c : use
269 element_update_connections_rectangle() instead of about 25 lines
270 of copy and pasted code
272 * app/load_save.c : make it compile by defining W_OK if it is
273 not there and also use '#if GLIB_CHECK_VERSION(2,8,0)' instead
274 of '#ifdef GLIB_CHECK_VERSION(2,8,0)'. Strange that gcc
275 apparently compiled this
277 * lib/parent.[ch] : parent_handle_move_in_check() was moving
278 the checked point about twice as much as needed, bug #342773.
280 2006-10-12 Lars Clausen <lars@raeder.dk>
282 * app/load_save.c (diagram_data_save): If we have GTK 2.8, check
283 that we are allowed to write to the file in question (if it
284 exists) and to the directory (for backup/temp/newly created file).
286 * lib/dia_dirs.c (dia_get_lib_directory, dia_get_data_directory):
287 * lib/Makefile.am (AM_CPPFLAGS):
288 * app/Makefile.am (INCLUDES): Rename DATADIR and LIBDIR to
289 DIA_DATADIR and DIA_LIBDIR to avoid conflicts with libtool and the
290 like. Thanks to lode leroy <lode_leroy@hotmail.com> for pointing
293 * plug-ins/pstricks/render_pstricks.c (export_pstricks)
294 (draw_string): Use \psscalebox instead of \scalebox, courtesy of
295 Dan Bolser <dmb@mrc-dunn.cam.ac.uk> and the pstricks mailing list.
297 * shapes/Makefile.am (SUBDIRS):
300 * sheets/BPMN.sheet.in:
301 * sheets/Makefile.am (sheet_in_files): New shape set BPMN for
302 Business Process Modelling from anthonym@overture.com.
304 * doc/en/dia.dbk: Correctly describing connections.
306 * objects/standard/box.c: Patch from Michael Duelli
307 <m.duelli@web.de>: Set line attributes before drawing anything.
309 2006-10-08 Lars Clausen <lars@raeder.dk>
311 * configure.in: Allow compiling without freetype on Unix systems.
312 The effect of changes to non-freetype parts of the code can now be
313 tested, and I have no excuse to not fix them anymore:(
315 2006-10-01 Lars Clausen <lars@raeder.dk>
317 * app/modify_tool.c (modify_motion): Don't use null-ness of
318 connectionpoint to skip snap-to-grid for non-connectable handles.
321 * shapes/flowchart/predefdproc.shape: Fixed midpoint.
323 2006-09-27 Steffen Macke <sdteffen@gmail.com>
325 * shapes/flowchart/datasource.png:
326 * shapes/flowchart/datasource.shape:
327 * shapes/flowchart/Makefile.am:
328 * sheets/Flowchart.sheet.in:
329 * installer/win32/dia.nsi: Added new "Data source" shape
331 2006-09-24 Hans Breuer <hans@breuer.org>
333 * lib/diagdkrenderer.c : I'm going to rip out all the Freetype
334 code the next time the GDK only compile breaks
336 2006-09-23 Hans Breuer <hans@breuer.org>
338 * app/commands.c app/create_object.c app/disp_callbacks.c : add
339 missing #include "lib/parent.h"
341 * lib/makefile.msc : build textline.obj
343 * objects/makefile.msc : don't build newgroup.obj
344 * objects/misc/libmisc.c : with newgroup gone to app/ newgroup_type can
345 not be registered from the module any longer - at least not on win32
347 * plug-ins/python/makefile.msc : removed obsolete references to
348 Python 1.5, also removed misleading link to Python 2.2 debug build
350 * app/diagram.[ch] app/app_procs.c : don't use C++ keyword 'virtual'
351 as variable name: s/virtual/is_default/
353 * plug-ins/python/*.c : don't mix PyObject_NEW() with PyMem_DEL()
354 Newer versions of Python (2.5) are not tolerant about this anymore.
356 2006-09-11 Lars Clausen <lars@raeder.dk>
358 * lib/diasvgrenderer.c (draw_text_line): First stab at making svg
359 text line renderer, doesn't work yet.
361 * lib/textline.c (text_line_draw): Removed #define.
363 * lib/diagdkrenderer.c (draw_text_line): Slight cleanups.
365 2006-09-11 Steffen Macke <sdteffen@gmail.com>
367 * plug-ins/vdx/vdx-export.c:
368 * plug-ins/vdx/vdx-import.c:
369 * plug-ins/vdx/vdx-xml.c:
370 * plug-ins/vdx/vdx.h:
371 * plug-ins/vdx/visio-types.h: Update to version 0.5 (from 0.4) of
372 Visio import, thanks to Ian Redfern, who states:
374 This is the first version to support export to VDX - for now, just
375 straight lines and text, but I'm working on the more complex bits.
376 It currently writes Visio 2002 VDX as a lowest common denominator,
377 but that won't handle Beziers, so when I get round to converting them
378 to NURBS, only Visio 2003 users will be able to import them.
380 There are also several improvements to import, both to fix the layout
381 and clean up the code, and it can now import embedded bitmaps - as Dia
382 needs them to be separate files, it puts them in /tmp (or wherever
383 tempnam() goes to on your system). Alternative suggestions are welcome.
384 NURBS import still doesn't work, but everything else seems pretty
387 In addition, two small adjustments to compile on Windows
389 2006-09-08 Steffen Macke <sdteffen@gmail.com>
393 * app/dia-win-remote.c:
394 * installer/win32/dia.nsi: From Windows Explorer, open .dia files in the
395 running Dia instance (if possible). Fixes bug #70718
397 2006-09-05 Lars Clausen <lars@raeder.dk>
400 * lib/Makefile.am (libdia_la_SOURCES):
401 * lib/diarenderer.[ch]:
403 * lib/diagdkrenderer.c:
404 * lib/textline.[ch]: TextLine now ready for commit. Rendering
405 with it is much faster and significantly more precise than
406 without. All renderers should implement a good definitions for
407 this (though there is a default one that uses draw_string), as it
408 can tell the expected width of a string.
410 * lib/libdia.def: Newly defined functions.
412 2006-08-29 Lars Clausen <lars@raeder.dk>
414 * lib/textline.[ch]: New text rendering level: A self-contained
415 single-line text object that allows safer caching and hopefully
416 more accurate rendering at various zooms. Using a PangoMatrix
419 * lib/font.c: Removing out-deffed layout cache code, it'll never
420 work. Also a couple support functions for my quest of good zoom.
422 2006-08-20 Hans Breuer <hans@breuer.org>
424 * plug-ins/cairo/diacairo.c : get rid of c++ coment
425 * app/diagram.h app/diagram.c app/modify_tool.c app/select.c
426 app/undo.c : reverted 'Shortened diagram_unselect'. It broke
427 plug-ins/python, but more iomportant made one function fromm
428 app/diagram.h asymmetric with all the others. We should not leave
429 the common C OO-pattern of passing an explicit "this pointer" just
430 because that can also be deduced from the other object.
432 2006-08-18 Lars Clausen <lars@raeder.dk>
434 * lib/render.[ch]: Finally removed unused render files now known
437 2006-08-17 Steffen Macke <sdteffen@gmail.com>
439 * installer/win32/dia-diagram.ico:
440 * installer/win32/dia.nsi: Assign icon to *.dia files
442 2006-08-16 Lars Clausen <lars@raeder.dk>
444 * app/diagram.c (diagram_load):
445 * lib/object.c (dia_object_is_selectable): Two silly null-pointer
446 errors detected by Michael Duelli <m.duelli@web.de>
448 2006-08-16 Steffen Macke <sdteffen@gmail.com>
451 * app/undo.c: Include parent.h
452 * lib/libdia.def: Include dia_object_is_selectable()
454 2006-08-13 Lars Clausen <lars@raeder.dk>
456 * objects/Misc/libmisc.c:
457 * {app,objects/Misc}/Makefile.am:
458 * objects/Misc/newgroup.c:
459 * app/newgroup.c: Moved newgroup.
464 * app/select.c: Trim diagram_unselect_object() to the one required
468 * app/interface.c (dia_dnd_file_drag_data_received):
469 * app/recent_files.c (open_recent_file_callback):
470 * app/filedlg.c (file_open_response_callback):
471 * app/diagram.c (diagram_load):
472 Make the diagram created at start-up be a virtual diagram that
473 if unchanged is filled in by the first opened diagram, like Gnumeric.
475 2006-08-11 Lars Clausen <lars@raeder.dk>
477 * app/properties.c (properties_give_focus): Give focus to first
478 thing in a properties dialog. Still need our own compound widgets
481 2006-08-06 Lars Clausen <lars@raeder.dk>
483 * objects/Misc/newgroup.c:
488 * lib/object.[ch]: Work towards a more reasonable definition of
491 2006-08-06 Steffen Macke <sdteffen@gmail.com>
493 * installer/win32/dia.nsi: Save diagrams by default in "My Pictures";
496 2006-08-04 Steffen Macke <sdteffen@gmail.com>
498 * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm
499 newgroup.xpm , *ui.xml files
501 2006-08-03 Lars Clausen <lars@raeder.dk>
503 * sheets/Makefile.am: EML sheet taken out since it's been empty
504 for five years anyway. Fixes bug #347894.
508 * doc/en/usage-layers.xml: Fixed obsolete references to
509 export-to-format. Fixes bug #346510.
511 2006-08-02 Lars Clausen <lars@raeder.dk>
513 * plug-ins/vdx/visio-types.h:
514 * plug-ins/vdx/vdx.h:
515 * plug-ins/vdx/vdx-xml.c:
516 * plug-ins/vdx/vdx-import.c:
517 * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of
518 Visio import, thanks to Ian Redfern, who states:
520 Version 0.4 does a passable job with curves, and has the first
521 implementation of Masters. It also handles XForm1D, and fixes a
522 potential crash. It gets some layers in the wrong order and still
523 has some major positioning and sizing issues.
525 Version 0.3 gets object layout correct, and does a better job of
526 text, lines, arrows, layers etc. Some diagrams (that don't contain
527 curves) now render pretty much correctly.
529 2006-07-16 Hans Breuer <hans@breuer.org>
531 * app/cut_n_paste.[hc] : maintain a generation counter to count
532 how many times the stored object list is used
533 * app/commands.c : use the generation for paste placement. The
534 first one after cut is not moved at all: a nice way to move objects
535 between layers without changing their lateral position.
536 Also sprinkled some diagram_update_extents()
538 * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080
540 * app/recent_files.c : don't g_return_if_fail() on common use case,
541 here an empty recent file list
543 * lib/dia_image.c(dia_image_draw) : don't try to draw anything if
544 width or height is smaller than 1 pixel
546 * plug-ins/cairo/diacairo.c : allow to export to svg if available
547 with cairo. Some tweaking of surface sizes.
549 2006-07-12 Lars Clausen <lars@raeder.dk>
551 * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
553 2006-06-28 Lars Clausen <lars@raeder.dk>
555 * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
558 2006-06-25 Hans Breuer <hans@breuer.org>
560 * app/display.c : avoid to call gettext on parameters for ngettext()
561 Should finally really fix bug #344896
563 * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
564 removed expand="yes" because otherwise the files can't be read with
565 gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
566 * app/menus.c app/Makefile.am : also find the ui files when run from
569 2006-06-17 Gintautas Miliauskas <gintas@akl.lt>
571 * configure.in: Added lt to ALL_LINGUAS.
573 2006-06-15 Hans Breuer <hans@breuer.org>
575 * app/display.c : use ngettext() for possible plural variations.
576 (Bug #344896, tokul@users.sourceforge.net)
578 * objects/UML/class.c : use g_list_append() rather than prepend
579 when copying attributes, operations, formalparams. Fixes bug #342902
580 Also removed some superfluous outcommented code and fixed a warning.
582 * objects/UML/class.c : dont break reading comment_line_length
583 by misguide compatibility code. Fixes bug #341887
585 * plug-ins/vdx/vdx-xml.c : added file missing from 0.3
586 version commit. Fixes bug #344804
588 * lib/create.h : add create_standard_group() prototype
589 * lib/libdia.def lib/makefile.msc objects/makefile.msc
590 plug-ins/makefile.msc : added missing (files|exports)
592 2006-06-13 Lars Clausen <lars@raeder.dk>
594 * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
595 again to Ian Redfern.
597 2006-06-12 Elijah Newren <newren gmail com>
599 * autogen.sh: Run configure by default, allow it to be skipped if
600 NOCONFIGURE is set in the environment. #344574.
602 2006-06-12 Elijah Newren <newren gmail com>
604 Pair of build fixes. #344357
606 * Makefile.am: avoid cp errors when $(srcdir) == .
608 * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
609 pixmaps/group.xpm as the latter doesn't exist.
611 2006-06-12 Hans Breuer <hans@breuer.org>
613 * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
614 which adds support for Java and inheritance. Closes bug #344187
616 2006-05-28 Lars Clausen <lars@raeder.dk>
618 * sheets/Misc.sheet.in:
619 * objects/Misc/Makefile.am (EXTRA_DIST):
620 * objects/Misc/pixmaps/newgroup.xpm:
621 * objects/Misc/newgroup.c:
622 * objects/Misc/libmisc.c: Start of new group model, with "visible"
623 object to test with. This object will later become the default
624 group object and thus (mostly) invisible.
626 * lib/parent.c (parent_handle_move_in_check):
627 * app/create_object.c (create_object_button_press):
628 * app/diagram.c (diagram_unparent_children_selected):
629 * app/disp_callbacks.c (ddisplay_drop_object):
630 * app/load_save.c (write_objects):
631 * objects/network/radiocell.c (radiocell_create):
632 * objects/AADL/aadlbox.c (aadlbox_create):
633 * objects/UML/large_package.c (largepackage_create):
634 * objects/UML/component.c (component_create):
635 * lib/object.[ch]: DiaObject API change: DiaObject now has gint
636 flags rather than gboolean can_parent, and utility function
637 object_flags_set. Uses of can_parent changed to call to function.
639 * doc/en/dia.dbk: Removal of obsolete epsi references.
641 2006-05-27 Hans Breuer <hans@breuer.org>
643 * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator
644 '<control>+': it wants '<control>plus', same for minus.
646 * tests/exports/cgm/* : cvs admin -kb *.cgm
647 tests/exports/png/* tests/exports/png-libart/*
648 tests/exports/shape/* : cvs admin -kb *.png
649 tests/exports/wpg/* : cvs admin -kb *.wpg
650 mark binary files as such to not get them broken on platforms which
651 insist on replacing line-ends.
653 * app/app_procs.c app/display.c app/filedlg.c app/interface.c
654 app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
655 plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
656 plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
657 as well. Patch from Hans de Goede, bug #342111
659 2006-05-27 Rob Staudinger <robert.staudinger@gmail.com>
665 * objects/standard/Makefile.am:
666 * plug-ins/python/Makefile.am:
667 Fix out of tree build (#340115).
669 2006-05-25 Hans Breuer <hans@breuer.org>
671 * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
672 to action_name. Don't mark action names for translation. It is not
673 needed and some languages don't support CamelCase. Fixes bug #342895
675 * app/menus.c : re-added a bunch of accelerators lost in translation
676 to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
677 it was not available with gtk+-2-6-x.
678 Use dia_get_data_directory() instead of hardcoded UIDATADIR.
679 * app/dia_embedd.c : explain instead of out-comment
681 * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c
682 lib/properties.h dia_xml.c : warningectomy
684 * lib/create.h : create_standard_group()
685 * lib/libdia.def lib/makefile.msc : reflect moved stuff
687 2006-05-25 Lars Clausen <lars@raeder.dk>
689 * tests/exports/*.dia: A set of test diagrams for export
690 plug-ins. The intention is to use these for regression tests by
691 ensuring that they don't change when code is altered, or if they
692 change that a manual inspection proves them ok. The fact that an
693 export plug-in passes these tests doesn't mean it's perfect, just
694 that is hasn't degraded.
696 * plug-ins/xfig/xfig-import.c:
697 * plug-ins/vdx/vdx-import.c:
698 * lib/create.[ch]: Functions taken from xfig to create some
699 standard objects easily. Uses of them updated, no longer need to
702 * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
703 Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>. Also a bunch of
704 samples for the purpose from the vdxtosvg project.
706 2006-05-21 Hans Breuer <hans@breuer.org>
708 * app/interface.[hc] app/disp_callbacks.c : removed unused
709 global variable popup_shell
711 * app/pagesetup.c app/diapagelayout.c : restrict every page margin
712 to a little less than half of the page. This guarantees margins
713 leaving some useable page area and thus avoids crashing on negative
714 page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
716 2006-05-20 Hans Breuer <hans@breuer.org>
718 Patch from Robert Staudinger to base dia menus on GtkAction framework
719 instead on deprecated GtkItemFactory. Tracked in bug #340352.
720 En passant fixes bug #171397
721 * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
722 * Makefile.am : added data dir
723 * app/Makefile.am : added $(uidatadir)
724 * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
725 app/diagram_tree_window.c app/diagram_tree_window.h
726 app/disp_callbacks.c app/display.c app/display.h
727 app/interface.c app/menus.c app/menus.h app/recent_files.c :
728 changed a bunch of callback signatures to take GtkAction
729 * app/pixmaps/Makefile.am
730 * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
731 data/popup-ui.xml : new files containing the menu structure
732 * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
733 registration change to be more appropriate for actions
734 * lib/libdia.def : updated externals
735 * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
736 plug-ins/python/group_props.py plug-ins/python/gtkcons.py
737 plug-ins/python/otypes.py plug-ins/python/pydiadoc.py
738 plug-ins/python/scascale.py plug-ins/python/select_by.py :
739 adapted to API change dia.register_callback to dia.register.action
741 * app/authors.h : added Robert to the authors
742 * app/commands.c : got rid of compiler warnings
744 2006-05-14 Hans Breuer <hans@breuer.org>
746 * plug-ins/python/python.c : protect the plug-in against
747 initializing if Python already is initialized. This PyDia extensions
748 is designed for embedding Python.
750 * plug-ins/python/pydia-property.c : LineStyle.dash may be either
753 * plug-ins/python/diasvg_import.py : remove FontSize debug spew
755 * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
756 setup use the pango context matching the display. Otherwise fallback
757 to a context from PangoWin32 (matches only for gtk+-2-6, not the one
758 used since gtk+-2-8 using cairo.
760 2006-05-13 Hans Breuer <hans@breuer.org>
762 [ also applied to branch dia-0-95 ]
763 * objects/UML/umloperationc: add "query" to umloperation_offsets.
764 Patch from Peter Allin, fixes bug #338336
766 [ also applied to branch dia-0-95 ]
767 * app/diagram.c(diagram_ungroup_selected) : operate on a copy
768 of data-Selected cause the original is modified during use.
769 Patch from Victor Stinner, fixes bug #334771
771 * configure.in config.h.win32 : development started again so 095+cvs.
772 Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1
775 * app/diagram.c : removed long-time outcommented code
777 * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
778 lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
780 * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
781 it is handled everywhere else just fine.
783 2006-04-19 Lars Clausen <lars@raeder.dk>
785 * installer/win32/dia.nsi:
793 * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
794 from Nick Moore <shiny.nickel@gmail.com>.
796 2006-04-17 Kjartan Maraas <kmaraas@gnome.org>
798 * configure.in: Remove obsolete entry for no_NO
799 * po/no.po: And the translation.
801 2006-04-12 Lars Clausen <lars@raeder.dk>
803 * installer/win32/dia.nsi:
811 * configure.in: Check for xgettext. Apparently
812 AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
814 2006-04-04 Steffen Macke <sdteffen@gmail.com>
816 * installer/win32/dia.nsi:
817 * installer/win32/langmacros.nsh:
818 * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
821 2006-04-03 Lars Clausen <lars@raeder.dk>
823 * installer/win32/dia.nsi:
831 * plug-ins/xfig/xfig-import.c: Initially place text in the right
834 2006-04-03 Steffen Macke <sdteffen@gmail.com>
836 * installer/win32/dia.nsi:
837 * installer/win32/locale/french.nsh: Added french installer
838 locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
840 2006-04-02 Hans Breuer <hans@breuer.org>
842 * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
844 2006-03-29 Daniel Drake <dsd@gentoo.org>
846 * configure.in: Use standard pkg-config expressions to check for
847 GTK+/Glib, the GTK-supplied macro's conflict with our usage of
848 $GTK_MODULES (#335422)
850 2006-03-28 Lars Clausen <lars@raeder.dk>
852 * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
853 Include libs and cflags in proper places.
855 * installer/win32/dia.nsi:
863 * shapes/network/mobile_phone.{png,xpm,shape}:
864 * shapes/network/telephone.shape:
865 * shapes/network/disc.shape:
866 Updates from W. Borgert <debacle@debian.org> improving looks and
869 2006-03-26 Lars Clausen <lars@raeder.dk>
871 * objects/network/radiocell.c: Patch from W. Borgert
872 <debacle@debian.org> for extra midpoint, flicker, extraneous
875 * objects/network/basestation.c: Patch for BB from W. Borgert
876 <debacle@debian.org>.
878 2006-03-23 Hans Breuer <hans@breuer.org>
880 * lib/widgets.c : use original fontname and fallback 'sans' to
881 render the font menu. Thus crashing (in Pango) is delayed until
882 the point where one chooses a font, which can't be rendered by
883 Pango. Fixes bug #335096 as far as Dia can.
885 2006-03-21 Lars Clausen <lars@raeder.dk>
887 * installer/win32/dia.nsi:
895 * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
897 2006-03-19 Hans Breuer <hans@breuer.org>
899 * app/display.c app/preferences.c : unset transient, still issues
900 with transient handling, see bug #332828
902 * app/makefile.msc lib/makefile.msc objects/makefile.msc
903 plug-ins/makefile.msc : removed stuff supposed to be used from
904 $(TOP)/glib/build/win32/make.msc
906 * plug-ins/xfig/xfig-import.c : make it compile with strict type
907 checking [these were real errors, freeing stack passed values instead
908 of the intended local variable] :
909 xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *'
910 differs in levels of indirection from 'struct _Point ** '
911 xfig-import.c(580) : warning C4024: 'g_array_free' : different types
912 for formal and actual parameter 1
914 * lib/libdia.def : export connection_adjust_for_autogap
916 * plug-ins/hpgl/hpgl.c : there is one floating point value in the
917 whole HPGL output - and it was locale dependent.
919 2006-03-12 Lars Clausen <lars@raeder.dk>
921 * installer/win32/dia.nsi:
929 * objects/UML/constraint.c (constraint_update_data):
930 * objects/UML/message.c (message_update_data):
931 * objects/UML/implements.c (implements_update_data):
932 * objects/SADT/annotation.c (annotation_update_data):
933 * objects/Jackson/phenomenon.c (message_update_data):
934 * objects/network/wanlink.c (wanlink_update_data):
935 * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
937 * objects/standard/line.c:
938 * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
939 functionality for connections.
941 2006-03-11 Lars Clausen <lars@raeder.dk>
943 * lib/diagdkrenderer.c (draw_object):
944 * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
945 in the non-interactive rendering.
948 * installer/rpm/dia.spec:
949 * installer/rpm/README:
950 Moving dia.spec to installer directory, where distribution
951 maintainers can keep their own copies.
954 * objects/UML/class.h:
955 * objects/UML/umloperation.c:
956 * objects/UML/class.c:
957 Preparations to fix bug #334037: Clean away the Lisp-like
958 constructs confusing the issue.
960 2006-03-10 Lars Clausen <lars@raeder.dk>
962 * lib/object.c: Don't compare floats with ==, even in sanity checks.
964 2006-03-09 Lars Clausen <lars@raeder.dk>
966 * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
967 reading, depth reading, and points reading. Thanks to
969 * COPYING: Added copyright info again.
971 2006-03-09 Steffen Macke <sdteffen@gmail.com>
973 * installer/win32/dia.nsi: don't uninstall old version; overwrite
976 2006-03-08 Steffen Macke <sdteffen@gmail.com>
978 * installer/Makefile.am:
979 * installer/win32/Makefile.am:
980 * installer/win32/locale/Makefile.am: Making sure that the installer
981 sources are included in the dia source distribution
982 * installer/win32/dia.nsi: Don't include makefiles in installer;
983 Add uninstaller link to start menu (bug #332650); added commandline
984 option GTKBIN to specify GTK installation directory (fixes bug #332595)
985 * installer/win32/dia-diagram.ico:
986 * installer/win32/dia-header.bmp:
987 * installer/win32/dia-install.ico:
988 * installer/win32/dia-intro.bmp:
989 * installer/win32/dia-uninstall.ico:
990 * installer/win32/dia.nsi:
991 * installer/win32/langmacros.nsh:
992 * installer/win32/locale/english.nsh:
993 * installer/win32/locale/german.nsh: Added files to build the win32
994 installer using NSIS (http://nsis.sourceforge.net)
996 2006-03-06 Lars Clausen <larsrc@raeder.dk>
1004 * samples/TexChars.dia: Added sample of the escaped chars for TeX.
1006 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
1007 Changing escape of \, [, and ] to something that works. $ is
1008 fine. Fixes parts of 333193.
1010 2006-03-05 Lars Clausen <larsrc@raeder.dk>
1012 * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
1014 * lib/orth_conn.c (orthconn_update_data):
1015 * app/diagram.c: Removing debug info.
1017 * app/object_ops.c (object_find_connectpoint_display): Don't
1020 2006-02-26 Hans Breuer <hans@breuer.org>
1022 * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
1023 * plug-ins/python/python.c : if set use it to find python-startup.py
1024 (bug #332599, Torben H. Nielsen)
1026 * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
1027 my test code]. Really closes #332177, thanks Mateus César Gröess.
1029 2006-02-26 Lars Clausen <lars@raeder.dk>
1037 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
1038 of element_width and element_height until constraints can be
1039 properly checked. Bug #328200
1041 * dia.spec (Requires): Updated GTK requirements.
1043 2006-02-25 Lars Clausen <lars@raeder.dk>
1045 * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
1046 other dynamic menus have proper translation.
1048 * lib/widgets.c (dia_dynamic_menu_create_string_item):
1049 * app/interface.c (cmp_names):
1050 * app/sheets.c (sheets_optionmenu_create):
1051 * lib/sheet.c (load_register_sheet): Using C locale for sheet
1052 names internally, translating on display instead. Also sorting
1053 by gettext order explicitly. Bug #328570.
1055 2006-02-25 Hans Breuer <hans@breuer.org>
1057 * app/interface.c(get_sheet_by_name) : be more tolerant about
1058 localization of the sheet name. ( Steffen Macke, #332070 )
1060 * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
1061 in any case. In contrast to X11/*nix displays are not optional on
1062 windoze. And we need some help of gtk to render text to bitmaps.
1063 ( Rob McDonald, bug #332177 )
1065 2006-02-21 Lars Clausen <lars@raeder.dk>
1071 * config.h.win32: Update to -pre2.
1073 * lib/beziershape.c (add_handles): Fixing CP pos calculation for
1074 adding new CP's. Fixes bug #331557.
1076 2006-02-20 Lars Clausen <lars@raeder.dk>
1078 * lib/diarenderer.c (find_center_point): Better handling of some
1080 (draw_arc_with_arrows): Draw line in all cases. Doesn't handle
1081 the truly degenerate cases well enough yet, but at least doesn't
1082 break on common cases. Probably need to do something special for
1083 arcs with start and end point the same. Improves but does not
1084 entirely fix bug #331372.
1086 2006-02-20 Hans Breuer <hans@breuer.org>
1088 * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
1090 2006-02-18 Hans Breuer <hans@breuer.org>
1092 * plug-ins/metapost/render_metapost.c : text position gives the
1093 baseline neither top nor bottom. ( Rob McDonald, #331491 )
1095 * plug-ins/wmf/wmf.cpp : finally respecting the print margins
1096 ( Rob McDonald, #331371 )
1097 * plug-ins/wmf/wmf_gdi.h : some more constants not useful
1098 without a GDI printer (driver)
1100 2006-02-17 Hans Breuer <hans@breuer.org>
1102 * plug-ins/metapost/render_metapost.c(draw_string) : dont query
1103 the font for it's height but use the 'height' parameter passed
1104 in. Close enough to the desired size - and independent of zoom -
1105 to close bug #331489 (Rob McDonald)
1107 2006-02-12 Lars Clausen <lars@raeder.dk>
1114 * config.h.win32: Updates for version 0.95-pre1.
1116 2006-02-12 Hans Breuer <hans@breuer.org>
1118 * app/makefile.msc : build three components dia.exe (console
1119 application), diaw.exe (windows application) and dia-app.dll
1120 containing almost all of Dia's application shared between
1122 * app/main.c app/winmain.c app/app_procs.c app/dia.def : some
1123 refactoring to accomplish the new dependency layout
1124 * objects/makefile.msc plug-ins/python/makefile.msc : need to
1125 link dia-app.lib now - if at all depending on app/*
1127 2006-02-11 Hans Breuer <hans@breuer.org>
1129 * makefile.msc : nmake -f makefile.msc just compiles now
1130 * app/makefile.msc lib/makefile.msc : make not using FT2
1131 on win32 the default (works around bug #150813 by diabaling it)
1132 * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
1133 $(CC) command line. It isn't understood by newer versions of cl.
1135 * app/authors.h : reflect the recent maintainers change
1137 * app/display.c app/load_save.c : removed debug spew
1139 * app/winmain.c : improved redirection
1141 2006-02-05 Hans Breuer <hans@breuer.org>
1143 * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead
1144 since 0.94. Fix somne left-overs, also properly disable the duplicate
1147 * po/POTFILES.in : added objects/network/wanlink.c
1149 2006-02-05 Hans Breuer <hans@breuer.org>
1151 * lib/dialibartrenderer.c(renderer_finalize) : dont unref
1152 parent_instance.font here. It will be done in DiaRenderer::finalize()
1153 Just another reason for crashing at diagram close with libart
1154 renderer involved ...
1156 2006-02-04 Hans Breuer <hans@breuer.org>
1158 * objects/standard/image.c : added mainpoint, patch from
1159 Torben H. Nielsen fixing bug #329603
1161 * app/layer_widget.c : avoid writing to Layer::connectable for a
1162 diagram possibly already gone. Fixes bug #329096.
1164 * lib/persitence.c(persistence_load) : dont leak filename
1165 in case of not existing file
1167 Code review via regex "[^_l>p](malloc|free|realloc)\("
1168 * objects/fs/function.c : what's g_strdup() must be g_free()'d
1169 * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
1170 * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
1172 * app/filedlg.c(file_save_as_response_callback) : before destroying
1173 the save as dialog we need to drop the dialogs diagram reference.
1174 Fixes behaviour described in bug #123225#c7
1176 * app/interface.c(get_sheet_names) : need to sort sheets by their
1177 display name to really fix bug #160101.
1179 * objects/UML/association.c : dont leak the role_name calculated
1180 with visibility attribute, use g_strdup_printf() instead of strcat().
1182 * configure.in : fix typo in error message
1184 * lib/object.c : remove duplicated prototype
1185 * lib/element.c : element_update_connections_rectangle() assumes nine
1186 connection points, i.e. requires 'mainpoint'. g_assert() for this.
1188 2006-02-03 Hans Breuer <hans@breuer.org>
1190 * objects/network/bus.c : allow to tint it. Patch from
1191 Torben H. Nielsen, closes bug #328580.
1192 * objects/network/wanlink.c : allow to tint this as well.
1194 2006-01-29 Hans Breuer <hans@breuer.org>
1196 * app/render_libart.c(draw_line) : make setting the pixel side-effect
1197 free; account for it in now (less) magic increments. Fixes bug #312147
1199 2006-01-28 Hans Breuer <hans@breuer.org>
1201 * po/checktrans.py : make it work with recent pyxml (unknown url type)
1202 * po/AADL.sheet.in : remove duplicated _description
1203 => translation report works again
1205 * app/display.c : revert back to "_Discard Changes" to avoid
1206 accelerator clash. Also gtk_button_new_with_mnemonic() to
1207 'expand' the accelerator.
1209 * lib/dia_svg.c(dia_svg_style_init) : need to initialize
1210 linecap, linejoin, linestyle to avoid invalid settings.
1211 (Nguyen Thai Ngoc Duy, bug #328945)
1212 * lib/diagdkrenderer.c : add a place fro breakpoint to
1215 * lib/diarenderer.c(setfont) : if we get passed in the
1216 same font it must be ref'd before unref.
1218 * lib/text.c(set_string) : don't eat the trailing new-line
1221 * app/app_procs.c app/display.c app/filedlg.c
1222 attempt to provide more HIG compliant dialogs. Patch from
1223 Nguyen Thai Ngoc Duy, part of bug #138183
1225 * app/recent_files.c(recent_file_history_clear_menu) : instead of
1226 messing with GtkMenuShell::children and gtk_widget_destroy() just
1227 use gtk_container_remove. Avoids memory corruption causing the
1228 most 'random' crashes recently.
1230 * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL
1231 cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the
1232 TextAttributes - not some subset. Fixes bug #327701
1233 * objects/UML/implements.c objects/UML/generalization.c
1234 objects/UML/constraint.c objects/UML/object.c
1235 objects/UML/large_package.c objects/UML/realizes.c : same here.
1236 * objects/UML/dependency.c : same here. Also draw the "Name" with the
1237 given color, not only the Stereotype.
1238 * objects/UML/class.c : same here. But we also need to restore
1239 explicit restore "text_color" for the load case.
1241 2006-01-27 Hans Breuer <hans@breuer.org>
1243 * configure.in : error out if GLib/GTK+ version is lower than required
1245 * app/filedlg.c lib/widgets.c : more default responses. Patch
1246 from Nguyen Thai Ngoc Duy, part of bug #138183
1248 * NEWS : Main point feature correction. The line is supposed to
1249 start at the border of the object not the bounding box.
1251 * app/commands.c : respect difference between documenters and
1252 translators and show both in about dialog. Closes bug #328711.
1254 * app/interface.c : instead of g_warning for missing shape icon
1255 but use message_warning and show the 'missing' icon
1257 * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
1258 not match pango_win32_get_context(). Use gdk_pango_get_context ().
1259 Also removed my special win32-modified-pango code for draw_string()
1260 without the help of gdk.
1262 * Makefile.am : include MAINTAINERS file in tarball
1264 * lib/conectionpoint.h : removed double include of "geometry.h"
1266 2006-01-22 Hans Breuer <hans@breuer.org>
1268 * app/splash.c app/commands.c : dont share the logo and finally leak
1269 it. Instead both place load and unref the logo themself.
1270 Also unbreak GNOME case.
1272 * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
1273 or GNOME specific one. 120 lines less code and more standard.
1274 * configure.in : require GTK+ >= 2.6
1276 * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
1277 make GtkTypeInfo static const as usual elsewhere
1279 * app/recent_files.c : it almost certainly is an error to ignore
1280 the return value of g_list_remove_link()
1282 * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
1283 lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
1284 lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
1285 lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
1286 objects/UML/uml.h : documentation fixes
1288 * lib/object.h lib/diagramdata.h : avoid circular inclusion
1289 * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
1290 lib/properties.h lib/sheet.h lib/diamenu.h
1291 : dont include "object.h", "diatypes.h" is enough.
1292 Rule of thumb: only headers declaring an inheritant of DiaObject
1293 should include "object.h"
1294 * lib/diarenderer.h : include "font.h" not strictly needed by
1295 this header, but needed in almost any plug-in/
1296 * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
1297 app/export_png.c app/interface.c app/load_save.c app/sheets.c
1298 app/sheets_dialog.c app/sheets_dialog_callbacks.c
1299 lib/diagdkrenderer.c lib/object.c lib/propobject.c
1300 lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
1301 plug-ins/svg/render_svg.c
1302 : some .c files now need to include "object.h" or <gtk/gtk.h>
1303 or e.g. "intl.h" direct, formerly dargged in indirectly
1304 * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
1306 2006-01-21 Hans Breuer <hans@breuer.org>
1308 * lib/connection.c lib/connection.h lib/connectionpoint.h
1309 lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
1310 lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
1311 lib/object.c lib/object.h : documentation tweaking
1313 * objects/UML/class_dialog.c(attributes_create_page,
1314 operations_create_page) : dont connect
1315 to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
1316 g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
1317 (This was a leftover of introducing the GtkTextView instead of GtkEntry)
1319 * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
1320 Introduce 'comment_tagging' switch which allows to hide the rendering
1321 {documentation = } Maybe a choice between ugliness and non-standard.
1322 Fixes bug #326214. (Unrelated: started to adapt casing of variables
1323 to Dia's common coding style)
1325 * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
1326 lib/proplist.c : fixed pdtpp_default()
1327 lib/propobject.c : correctly reflect is_default
1328 * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
1329 PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
1331 * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
1332 widget in defaults dialog
1334 * app/display.c(initialize_display_widgets) : also append the Input
1335 Methods menu to the diagram menubar. Now fixes bug #327862.
1337 * config.h.win32 : #undef LOCALEDIR
1338 * app/app_procs.c : runtime calculation of localedir. It now is
1339 $(executable_dir)/../locale. Should help fix bug #309763
1341 * sheets/AADL.sheet.in : remove left over xml:lang tag.
1342 ( Nguyen Thai Ngoc Duy, bug #327519)
1344 * lib/dialibartrenderer.c : make text rendering work without
1345 PangoFT2 and PangoWin32
1348 2006-01-18 Lars Clausen <lars@raeder.dk>
1350 * objects/UML/class.h: Enabling UML class mainpoint after failure
1353 * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
1356 2006-01-14 Hans Breuer <hans@breuer.org>
1358 * app/paginate_psprint.c : ensure we are not producing pages for
1359 epsilon. Floating imprecision is fun. Fixes bug #133856.
1360 * app/paginate_gdiprint.cpp : same here.
1362 * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
1363 found the nice samples from bug #156171 it was quite simple to
1364 confirm that the y value need indeed to be inverted. Fixes bug #304974.
1365 Also special case strings starting with \tex - i.e. dont escape them -
1366 to keep the use-case of direct tex input.
1368 * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
1371 2006-01-14 Hans Breuer <hans@breuer.org>
1373 * samples/Self/umlclass.dia : (new file) documenting part of the
1374 object relations of UMLClass. Also good for testing connections.
1376 * lib/debug.c : replace wrong call to vprintf() - missing file
1377 descriptor - with the more appropriate g_vprintf(). Thus
1378 dia_assert_true() does not smash the stack anymore on win32.
1380 * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
1381 objects/UML/umlattribute.c objects/UML/umloperation.c :
1382 reverted the memory managment of UMLAttribute/UMLOperation's
1383 ConnectionPoint(s) back to how it was up until 0.94. This finally
1384 makes the UMLClass work again including undo/redo support. Fixes
1385 bug #314153 and en passant bug #326453.
1387 2005-01-12 Lars Clausen <lars@raeder.dk>
1389 * objects/UML/umlattribute.c:
1390 * objects/UML/class_dialog.c: Better way of handling
1391 connectionpoints: Don't copy them, just reference them. Finally
1392 fixes bug #314153 (not quite the pi bug:)
1394 * app/menus.c (display_menu_items):
1395 * app/filedlg.c (file_open_response_callback):
1396 * app/display.[ch] (copy_display):
1397 * app/commands.[ch] (view_clone_view_callback):
1398 Added functionality to clone display. Preparation for storing
1399 display info in diagram files (not happening this version, though).
1401 * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
1402 users pointing at dia-installer.
1404 2006-01-08 Hans Breuer <hans@breuer.org>
1406 * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
1407 (Narcelio Filho, #326075)
1409 * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
1410 plug-ins should not depend on app/* and it even breaks 'make distcheck'.
1411 * objects/AADL/Makefile.am : added edit_port_declaration.h
1412 * app/Makefile.am : added diaconv.c to EXTRA_DIST
1413 => 'make distcheck' passes again.
1415 * configure.in : use some more of gcc's useful warnings
1417 * lib/geometry.h : removed unused functions just producing warnings
1418 [sometimes it's good to read compiler warnings]
1419 * plug-ins/cairo/diacairo.c : somehow a function call got lost
1420 (left-hand operand of comma expression has no effect)
1421 * plug-ins/metapost/render_metapost.c : dia_message_filename()
1422 wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
1423 from incompatible pointer type)
1426 2006-01-07 Hans Breuer <hans@breuer.org>
1428 * objects/custom/shape_info.c(parse_path) : handle the case of
1429 invalid path data more gracefully, i.e. show a warning instead
1430 of crashing later on.
1431 * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
1433 * configure.in sheets/Makefile.am shapes/Gane_and_Sarson
1434 shapes/Makefile.am : added Gane & Sarson shapes
1435 (Nick Moore, #319544)
1437 * objects/makefile.msc : building AADL on win32
1439 2006-01-06 Hans Breuer <hans@breuer.org>
1441 * objects/AADL/aadl.h : avoid redefinition warnings by #undef
1442 min, #undef max before local definitions
1443 * objects/AADL/aadl.h : more prototypes
1444 * objects/AADL/aadltext.c : for C89 declarations must be at the
1445 beginning of a block. And Dia *must* be compileable with C89.
1447 * objects/AADL/** objects/Makefile.am sheets/Makefile.am
1448 configure.in : AADL plug-in from Pierre Duquesne. See
1449 http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
1450 for more information
1451 * sheets/AADL.sheet.in : from the above patch but modified
1452 to become translatable like the other sheet files. That is: the
1453 french translation got temporary removed cause it does not belong here.
1455 * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
1457 * app/app_procs.c app/diaconv.c : get rid of run-on sentences
1458 (Adam Weinberger, bug #325567)
1460 * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
1461 and change some other to use <control><alt>. They collide with GTK's
1462 Unicode input feature. Fixes bug #320495. For rationale see:
1463 http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
1465 * app/display.c : pay attention to g_warnings() [should always run
1466 with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
1467 actually is a menu bar.
1469 * lib/diarenderer.c : the righthand calculation accidentially broke
1470 some arcs direction. Should be fixed again.
1472 2006-01-02 Hans Breuer <hans@breuer.org>
1474 * app/display.c(new_display) : also append the Input Methods menu to
1475 the diagram menubar. Fixes bug #308576.
1477 * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
1478 freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
1480 * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to
1481 their localized name (with g_utf8_collate). Thus not relying on the
1482 capabilities of the C libraries strcmp(). Fixes bug #160101.
1484 * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
1485 point and width from the (arrow-)corrected new points. Otherwise a
1486 whole new wrong arc may emerge. Fixes bug #312641.
1488 2006-01-01 Hans Breuer <hans@breuer.org>
1490 * objects/custom/custom_object.c(cutom_update_data) : depending
1491 on the handle moving let one scale (x or y) take precedence.
1492 (bug #308515, Eric Deplagne)
1494 * objects/UML/class.c : only perform the attributes check with
1495 attributes visible to ged rid of false warnings
1496 * objects/UML/class_dialog.c : need to setup Connection::object
1497 after uml_attribute_new() and uml_operation_new(), again less
1498 warnings but bug #314153 still not fixed.
1502 * plug-ins/python/diasvg.py : more correct svg by also writing
1503 xmlns="http://www.w3.org/200/svg"
1505 * plug-ins/python/dot.py : skip unconnected connection lines
1506 * plug-ins/python/Makefile.am : added dot.py
1508 * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
1511 2005-12-31 Hans Breuer <hans@breuer.org>
1513 * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the
1514 caching of UMLClass::attributes_strings, operations_strings,
1516 It was broken by the recent code restructuring in bug #303744 and
1517 - if necessary at all - nowadays it should be done on the
1518 UMLAttribute, UMLOperation, UMLFormalParameter level anyway.
1519 A small, much needed simplification of the code.
1521 2005-12-30 Hans Breuer <hans@breuer.org>
1523 * objects/UML/class.c : Patch from Dave Klotzbach
1524 fixes crash bug #325151
1526 * app/app_procs.c : add command line parameter --nonew to allow
1527 avoiding the empty start-up diagram
1528 Also give a hint on where the object-libs were missing.
1529 Finally work around a misbehaviour upstreamm :
1530 g_option_context_parse() returning FALSE but not setting error.
1532 * app/commands.c app/app_diagram_tree.c app/interface.c :
1533 Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
1534 http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
1536 * lib/widgets.c : image file selection finally ported to the new
1537 gtk file chooser. Fixes bug #309383
1539 2005-12-28 Hans Breuer <hans@breuer.org>
1541 * app/commands.c(file_new_callback) : convert to filename encoding before
1542 passing to new_diagram(), fixes bug #322400
1544 * app/interface.c(create_display_shell) : don't clip width on screen
1545 height - now commited. Also lazy creation of tooltips.
1547 * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1549 2005-12-27 Hans Breuer <hans@breuer.org>
1551 * app/diapsft2renderer.c(draw_bezier_outline) : only call
1552 FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1553 Prefers no text output over crashing for bug #144212
1555 * app/interface.c : removed superfluous call to dia_canvas_set_size().
1556 Suggested by Roland Stigge, fixes bug #148149.
1558 * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1559 DXF. It is not supported at all. Fixes bug #322101
1561 * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1562 define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1565 2005-12-27 Hans Breuer <hans@breuer.org>
1567 * app/navigation.c : protect on_da_button_release_event() against being
1568 called twice. Also only popdown the navigation window after the first
1569 draw (reusing nav->is_first_expose). Fixes bug #151696
1571 * app/interface.c(create_display_shell): don't clip width on screen height,
1574 * lib/plug-ins.c : fixed typo in comment
1576 * lib/libdia.def : updated externals
1577 * lib/makefile.msc : build debug.obj
1579 * plug-ins/makefile.msc : building pgf in the right alphabetical order
1580 * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1582 2005-12-08 Lars Clausen <lars@raeder.dk>
1585 * plug-ins/pgf/pgf.c:
1586 * plug-ins/pgf/render_pgf.[ch]:
1587 * plug-ins/pgf/Makefile.am:
1588 * plug-ins/Makefile.msc:
1589 * plug-ins/Makefile.am (SUBDIRS):
1590 * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1591 support for PGF output for including in (La)TeX documents that
1592 allows PDF generation.
1594 * samples/render-test.dia: Added samples of text in different
1595 sizes, standard fonts and styles with size markers.
1597 2005-12-04 Lars Clausen <lars@raeder.dk>
1599 * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1600 (BUILT_SOURCES): Added marshal files.
1602 2005-12-03 Lars Clausen <lars@raeder.dk>
1604 * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1605 about $(srcdir) and confusing everybody.
1608 * lib/diagramdata.c:
1609 * lib/diagramdata.h:
1610 * lib/diamarshal.list:
1611 * plug-ins/python/pydia-diagram.c:
1612 * plug-ins/python/pydia-diagramdata.c:
1613 * plug-ins/python/python-startup.py: Patch from David Johansson
1614 <david.lgj@gmail.com>: Add signals emitted when objects are
1615 inserted or removed.
1617 2005-11-13 Lars Clausen <lars@raeder.dk>
1619 * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1620 (small) buffer overflow by using g_strdup_printf instead of sprintf.
1622 2005-11-09 Lars Clausen <lars@raeder.dk>
1625 * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1626 when reaching the statement is a bug. Using g_critical and exit() for
1627 fatally wrong inputs.
1629 * objects/UML/uml.c:
1630 * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1631 Klotzbach): Fixes template rendering and converts home-brew inline
1632 doc format to javadoc. Doesn't yet fix bug #320934, but turns it
1635 2005-11-07 Lars Clausen <lars@raeder.dk>
1637 * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1638 box' since several objects have problems of using bounding box in
1639 different ways (see bug #300055). For now, enclosing box ==
1640 bounding box, but over time objects will learn to expand the
1641 bounding box to include things only rendered interactively.
1643 * app/modify_tool.c (modify_motion): Make sure highlight is reset
1644 when moving between overlapping objects.
1646 * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1647 diagram after toggling to make red X's come and go.
1649 * lib/font.c: #ifdef'd out layout cache for bug #307320. Define
1650 it if you need faster rendering and aren't afraid of crashbugs:)
1652 * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1653 (dave Klotzbach): Fixes null pointer problems in free function.
1655 * objects/UML/class.c
1656 * objects/UML/class.h
1657 * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1658 (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1659 and allow multi-line comments. Ugly as hell, but standard. Time
1660 for a 'Strict UML' option? Fixes bug #303744.
1662 * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1663 entry, exit and do descriptions to a state object. Fixes bug #65434.
1665 2005-11-03 Lars Clausen <lars@raeder.dk>
1670 * lib/bezier_conn.c:
1671 * lib/boundingbox.c:
1674 * lib/connectionpoint.c:
1679 * lib/diaarrowchooser.c:
1681 * lib/diagdkrenderer.c:
1682 * lib/diagramdata.c:
1687 Added documentation java-doc style. Also a few trivial cleanups.
1689 2005-10-13 Lars Clausen <lars@raeder.dk>
1691 * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1694 * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1699 * objects/UML/class.[ch]:
1700 * objects/UML/uml.h:
1701 * objects/UML/umlattribute.c:
1702 * objects/UML/umloperation.c:
1703 * objects/UML/class_dialog.c:
1704 Rework of the UML class attribute/operation handling. Now doesn't
1705 copy connection points into the dialog data, but only the "flat"
1706 data. As part of debugging made sanity check functionality.
1707 Currently still dies when deleting an attribute/operation that has
1710 2005-10-09 Hans Breuer <hans@breuer.org>
1712 * lib/properties.h : prefer american spelling of colo(u)r for
1713 user visible strings - i.e. to be translated ones.
1714 * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1716 * po/*.po : updated (by 'make distcheck')
1718 2005-10-09 Hans Breuer <hans@breuer.org>
1720 * app/display.c : allow !"toolbox on top" without restart.
1721 (Chris Hellberg, bug #310702)
1723 2005-10-09 Hans Breuer <hans@breuer.org>
1725 * lib/arrows.c : patch from Radek Krahl fixing the blanking
1726 of two arrowheads, bug #310157
1728 2005-10-08 Hans Breuer <hans@breuer.org>
1730 * plug-ins/python/group_props.py : show a descriptive text instead of an
1731 empty table if there are no common properties to change. Fixes bug #314432
1733 2005-10-08 Hans Breuer <hans@breuer.org>
1735 * objects/UML/transition.c : inverted default direction of
1736 the direction. Patch from Peter Allin, fixes bug #318049
1737 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1739 2005-10-08 Hans Breuer <hans@breuer.org>
1741 * app/Makefile.am objects/standard/Makefile.am : match the
1742 referenced icons to the needed. Make 'make distcheck' pass
1743 and thus fixes bug #312152
1745 * objects/standard/textobj.c : no C++ comments please!
1747 2005-10-08 Hans Breuer <hans@breuer.org>
1749 * objects/standard/textobj.c : preserve the position set on create
1750 [makes e.g. text positioning of diasvg_import.py work]
1752 * plug-ins/python/diasvg_import.py : restrict what eval() can do
1753 with strings from svg files. Fixes the arbitrary code execution from
1756 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1757 magnetism. At least they are distinguishable from grid snapping.
1758 * app/makefile.msc app/Makefile.am : use them
1760 * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1761 I also can't reproduce bug #309044 anymore (on win32).
1763 2005-10-01 Lars Clausen <lars@raeder.dk>
1765 * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1767 * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1768 pass FILE * as gchar *.
1770 * lib/debug.[ch] (dia_assert_true): Debugging aids.
1772 2005-09-29 Lars Clausen <lars@raeder.dk>
1774 * objects/UML/class.h: Enabling mainpoints for UML.
1776 * objects/UML/class.c (umlclass_set_props): Make sure to always
1777 realloc connection point list.
1779 2005-09-26 Ahmad Riza H Nst <rizahnst@id.gnome.org>
1781 * configure.in: Added "id" in ALL_LINGUAS line.
1783 2005-09-14 Lars Clausen <lars@raeder.dk>
1785 * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1786 loading. Fixes bug #315427.
1788 2005-09-11 Hans Breuer <hans@breuer.org>
1790 * objects/standard/arc.c objects/standard/textobj.c : fix
1791 C99isms, Dia is supposed to compile with C89 like msvc
1793 * app/makefile.msc : use the wrong center-point-magnetism
1794 icons for the win32 build, too.
1796 * plug-ins/python/pydia-error.c : dont crash on C escape
1797 sequences in the error string
1798 * plug-ins/python/pydia-render.c : dont free filename twice
1800 * plug-ins/python/dot.py : start of an exporter to DOT language
1801 which can be processed by www.graphviz.org tools
1803 2005-09-05 Iñaki Larrañaga <dooteo@euskalgnu.org>
1805 * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1807 2005-09-04 Iñaki Larrañaga <dooteo@euskalgnu.org>
1809 * configure.in: Added "eu" to ALL_LINGUAS.
1811 2005-09-04 Lars Clausen <lars@raeder.dk>
1813 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1814 dimensions frame to make ext_attributes work again.
1816 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1817 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1820 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1821 <dooms info ucl ac be>: Add vertical alignment for standard text
1822 object. This should really be moved into lib/text.c and apply to
1825 2005-09-03 Lars Clausen <lars@raeder.dk>
1827 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1828 mainpoint when snap-to-objects is not on.
1830 * app/Makefile.am (ICON_PNG_PAIRS):
1831 Fake icons for snap-to-objects.
1833 * app/commands.[ch]:
1834 * app/menus.c (menus_get_image_menubar):
1836 * app/interface.c (create_display_shell):
1837 * app/create_object.c (create_object_button_release):
1838 * app/disp_callbacks.c (ddisplay_drop_object):
1839 * app/object_ops.[ch]:
1840 * app/connectionpoint_ops.c (ddisplay_connect_selected):
1841 * app/modify_tool.c (modify_button_release):
1843 Togglable snap-to-objects, also doesn't snap when moving entire
1844 object. This should be more reasonable in practical use, and can
1845 be turned off when you want to place your arrows more precisely.
1847 2005-08-06 Hans Breuer <hans@breuer.org>
1849 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1850 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1851 becomes even more ugly when the user has choosen *not* to build
1852 the diacairo plug-in. If noone can come up with a very convincing
1853 reason why it has to be done this way I'll probably go back to
1854 my original dont-build-at-all approach when this breaks the
1857 2005-08-02 Lars Clausen <lars@raeder.dk>
1859 * objects/standard/arc.c: Patch from Grégoire Dooms
1860 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1861 implementation. "There is still a small bug when the non
1862 connected end of the arc is very close to the border of the
1863 connected object. I think this is due to rounding errors in the
1864 code for SHIFT-move handle which is reused to trim the arc in
1865 autogap. Also it is not yet possible to have a startgap and an
1866 endgap from/to the same central CP."
1868 2005-07-31 Hans Breuer <hans@breuer.org>
1870 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
1871 longer for distributions official packages - depend
1872 on cairo 0.6.0 - fixes bug #307144
1874 2005-07-20 Hans Breuer <hans@breuer.org>
1876 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1877 which must match PropDescription, that is make it at least compile.
1879 2005-07-19 Hans Breuer <hans@breuer.org>
1881 * app/diagram.c(new_diagram) : what comes from g_object_new()
1882 MUST NOT be g_free()'d
1884 * lib/message.h : added dia_message_filename() here as well.
1885 Mainly to not touch all files using. They *all* where using
1886 lib/message.h already! Maybe the implemantation should be moved
1887 to message.c as well cause the function has *nothing* to do
1888 with dynamic filename resolving. It is a wrapper around
1889 g_display_filename() mostly (only?) used for messages ...
1890 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1892 2005-07-18 Lars Clausen <larsrc@raeder.dk>
1894 * objects/EML/instantiation.c (instantiation_load):
1895 * objects/EML/interaction-ortho.c (interaction_ortho_type)
1896 * objects/ER/participation.c (participation_type):
1897 * objects/FS/flow-ortho.c (orthflow_type):
1898 * objects/GRAFCET/vector.c (arc_load):
1899 * objects/standard/zigzagline.c (zigzagline_type):
1900 * objects/UML/transition.c (transition_load):
1901 * objects/UML/realizes.c (realizes_load):
1902 * objects/UML/dependency.c (dependency_load):
1903 * objects/UML/generalization.c (generalization_type):
1904 * objects/UML/association.c (association_type):
1905 * objects/UML/component_feature.c (compfeat_load):
1906 Make autorouting deafult on except for old diagrams.
1908 * plug-ins/cairo/diacairo.c (export_data):
1909 * plug-ins/cgm/cgm.c (export_cgm):
1910 * plug-ins/dxf/dxf-export.c (export_dxf):
1911 * plug-ins/dxf/dxf-import.c:
1912 * plug-ins/hpgl/hpgl.c (export_data):
1913 * plug-ins/metapost/render_metapost.c:
1914 * plug-ins/pixbuf/pixbuf.c:
1915 * plug-ins/pstricks/render_pstricks.c:
1916 * plug-ins/python/pydia-render.c:
1917 * plug-ins/shape/shape-export.c:
1918 * plug-ins/svg/render_svg.c:
1919 * plug-ins/svg/svg-import.c:
1920 * plug-ins/wpg/wpg.c
1921 * plug-ins/xfig/xfig-export.c:
1922 * plug-ins/xfig/xfig-import.c:
1923 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1924 UTF-8 in message boxes.
1926 2005-07-18 Lars Clausen <lars@raeder.dk>
1928 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1929 to have their dimensions specified in properties. Still needs to
1930 have proper update when setting properties cause constraint changes.
1932 * app/preferences.c (update_floating_toolbox): Allow
1933 toolbox_on_top setting to happen at once.
1939 * app/sheets_dialog_callbacks.c
1945 * lib/object_defaults.c:
1946 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1947 for displaying in messages - better than crashing! Mostly fixes
1950 * objects/UML/class.c: Save normal_font_height under the same
1951 name it gets loaded as. Fixes bug #310515.
1953 * doc/en/authors.xml
1954 * doc/en/usage-customization.xml
1955 * doc/en/usage-objects-special.xml
1956 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
1959 2005-07-17 Lars Clausen <lars@raeder.dk>
1961 * doc/en/usage-customization.xml:
1962 * doc/en/usage-objects.xml:
1963 * doc/en/authors.xml:
1964 * doc/en/usage-objects-special.xml: Applied patch from
1965 stigge@antcom.de (Roland Stigge): Diverse typos and
1966 misencodings. Fixes bug #308315.
1968 * objects/UML/class.c (umlclass_save): Patch from
1969 i.pilcher@comcast.net: Save normal font height under correct name
1970 to reload it. Fixes bug #310515.
1972 2005-07-10 Hans Breuer <hans@breuer.org>
1974 * app/connectionpoint_ops.c app/object_ops.c : make the
1975 'whole object' connection point only center point again.
1976 That is: it is visible and far less magnetic. Only the
1977 line gap handling make it special. For me this probably
1980 * lib/neworth_conn.c : apply the same as for bug #173031.
1981 This OrthConn fork got broken as well. Fixes bug #309381
1983 * app/makefile.msc objects/makefile.msc : adapt to icon changes
1985 * app/interface.c app/diagram_tree.c : a char** is still not
1986 a char* and the win32 build is configured to error on
1987 sloppiness like this
1989 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1991 2005-07-10 Hans Breuer <hans@breuer.org>
1994 Take part in the toolbox icon redesign context! If you want to
1995 make them really prettier, please keep the following in mind :
1996 - the size *must* be 22x22 otherwise button reflow will get broken.
1997 Or you need to change about 800 icons at once.
1998 - one important part of Dia are control points, so maybe the icons
1999 should reflect that. (IMO gathering random icons form other
2001 - the icons should at least look consistent in their group
2004 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
2005 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
2007 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
2008 * objects/standard/pixmap/* : added arc.png beziergon.png
2009 bezierline.png box.png ellipse.png image.png line.png polygon.png
2010 polyline.png text.png zigzagline.png
2011 * objects/standard/Makefile.am : use the new icon set including
2014 * app/interface.c : remove the "will probably crash" debug spew
2016 2005-07-09 Lars Clausen <lars@raeder.dk>
2018 * objects/standard/pixmaps/*.png:
2019 * objects/standard/Makefile.am:
2020 * objects/standard/*.c:
2022 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
2023 new icons. [Slightly belated entry]
2025 2005-07-03 Hans Breuer <hans@breuer.org>
2027 * app/diagram_tree.c : dont leak display name
2028 * app/app_procs.c : dont leak GOptionContext
2029 * app/prop_widgets.c(frame_beginprop_get_widget) :
2030 Gtk api still not eating strings ...
2032 * objects/UML/class.c() : don't load properties once more
2033 which are already loaded by StdProps. In case of strings
2034 (data_string) it has even produced leaks.
2036 * app/paginate_psprint.c app/diagram.[hc] : the last
2037 of the related dialogs is gone and with it the
2038 misconception of destroying widgets from
2040 * app/display.c : ensure the diagram is still threre
2041 when we remove the display from it's list
2043 2005-07-01 Hans Breuer <hans@breuer.org>
2045 * lib/widgets.c(dia_color_selector_more_callback): dont
2046 free old_color twice
2048 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
2049 option. Thus linestyles can be preserved on export - at
2050 least on NT based systems.
2052 * NEWS : clarify the wmf outside of windows issue
2054 * app/modify_too.c : fix C99ism
2056 * objects/standard/arc.c : debug spew optional at compile time
2058 2005-06-26 Hans Breuer <hans@breuer.org>
2060 [ Cyrille would call it: warningectomy :-]
2062 * lib/font.c app/create_object.c : `...' might be used uninitialized
2063 in this function. Yes they were.
2064 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
2065 uninitialized in this function. Yes it was with textedit_activate_object()
2066 Also some static correctness.
2067 * lib/diarenderer.c:678: warning: no previous prototype for
2068 `calculate_min_radius'. Made static.
2069 * lib/dia_svg.c : ptr is a gchar *
2070 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
2071 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
2072 * app/app_procs.c : confirm warning and make dump_dependencies() static
2073 * app/autosave.c : #if 0'd old stuff
2074 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
2076 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
2077 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
2078 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
2079 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
2080 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
2081 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
2082 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
2083 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
2084 removed unused variables and functions
2085 * objects/UML/umlattribute.c objects/UML/umloperation.c
2086 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
2087 neither 'missing braces around initializer' nor 'initialization from
2088 incompatible pointer type'
2089 * objects/UML/class_dialog.c : more static
2090 * app/interface.c : static and almost const correctness and some
2091 less unitialized variables.
2092 * app/diapsft2renderer.c : use (int) casts like the original
2093 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
2094 * app/render_gdk.c: stop assignment from incompatible pointer type,
2095 make member functions match the prototype.
2096 * app/render_libart.c : Dito. Also stop caching the copy_gc in
2097 a static variable. Otherwise it finally leaks and also may cause
2098 BadMatch with changing windows
2099 => warning count down from about 250 to about 60, one or two hand full
2102 2005-06-26 Hans Breuer <hans@breuer.org>
2104 * lib/libdia.def : added dia_font_get_description, missing
2107 * app/app_procs.c : use png_get_header_ver(NULL), that is:
2108 prefer function call over exported variable to get the
2109 runtime version of libpng
2111 2005-06-19 Hans Breuer <hans@breuer.org>
2113 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
2114 as suggested by Roland Stigge, bug #308310
2116 2005-06-19 Hans Breuer <hans@breuer.org>
2118 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
2121 2005-06-18 Hans Breuer <hans@breuer.org>
2123 * NEWS : mention new file dialog
2125 [plugged remaining leaks from bug #142669]
2126 * lib/prop_attr.c(fontprop_free) : not only unref the font
2127 but free the property itself, too.
2128 * app/diagram_tree.c(create_diagram_children): remember the
2129 original list start to not only free the last element
2131 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
2132 but not used. Here it meant a potentially huge leak.
2134 2005-06-18 Hans Breuer <hans@breuer.org>
2136 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
2137 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
2138 for others, too. ( Roland Stigge, bug #144527 )
2140 2005-06-18 Hans Breuer <hans@breuer.org>
2142 * plug-ins/wmf/Makefile.am : prevent installation. It
2143 doesn't do anything useful on *NIX and even seems to be
2144 linked wrong by gcc (or me;). Fixes bug #172830
2146 2005-06-18 Hans Breuer <hans@breuer.org>
2148 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
2149 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
2150 in function declarations. 'f();' for a function without parameters is
2151 a C++ism. Though I can't get any of my compilers to warn about it.
2152 Finally fixes bug #142663.
2154 2005-06-18 Hans Breuer <hans@breuer.org>
2156 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
2157 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
2158 in function declarations. 'f();' for a function without parameters is
2159 a C++ism. Though I can't get any of my compilers to warn about it.
2160 Finally fixes the rest of bug #142663.
2162 2005-06-18 Hans Breuer <hans@breuer.org>
2164 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
2165 changes but doesn't hurt anyway. See bug #162034
2166 * app/diapsft2renderer.c app/modify_tool.c
2167 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
2168 instead of messing with internals
2169 * app/display.c : give interactive renderers more begin/end render.
2170 It is guaranteed that the scale wont change between these.
2172 2005-06-18 Hans Breuer <hans@breuer.org>
2174 * app/app_procs.c : const correctness for stderr_message_internal
2175 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
2176 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
2177 * app/disp_callbacks.c : don't dereference the to the function call
2178 when the function pointer in meant to be checked against 0
2179 * app/interface.c : warning fixes by using correct types
2180 * app/modify_tool.c : describe_props() members returns const pointer
2181 * app/render_libart.c : removed most of the render function again.
2182 They happily live in lib/dialibartrenderer.c since almost 3 years
2183 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
2184 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
2185 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
2186 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
2187 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
2188 Both mentioned in bug #159814 and not warned by most other compilers.
2189 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
2190 trailing colon in the GtkTypeInfo initialization
2191 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
2192 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
2193 between char and gint8
2194 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
2195 * plug-ins/wpg/wpg.c : consitently use guint8
2196 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
2197 redefinition warnings for python and xslt plug-ins
2199 2005-06-18 Hans Breuer <hans@breuer.org>
2201 * lib/diagramdata.c : really get rid of diagram_data_destroy
2202 and new_diagram_data [ no previous prototype for `...' is either
2203 a sign of missing static or of a function to vanish :-]
2205 * lib/geometry.c : apparently the G_INLINE stuff was working only
2206 with particular GLib version(s), glib-2.6.4 does not. Conditionally
2207 reverting to the old mecanics.
2209 2005-06-17 Hans Breuer <hans@breuer.org>
2211 * plug-ins/python/pydia-*.c : include order tweaking to
2212 get rid of redefinition warnings. Ensure to include <Python.h>
2213 before any 'system' header, some dragged in by glib.h
2214 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
2215 pydia-properties.c(PyDiaProperties_Str)
2216 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
2217 use %p to format pointers
2218 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
2219 dont cast to float for %d
2220 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
2221 use correct pointer type
2222 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
2223 dont discard qualifier aka dont free const strings
2224 * plug-ins/python/pydia-properties.c : casts to PyCFunction
2225 * plug-ins/python/pydia-property.c : removed unused function,
2226 make ensure_quarks() static
2227 * plug-ins/python/pydia-render.c : removed unused vars, use
2228 the correct signature for begin_render
2229 (dia_py_renderer_finalize): pluged a leak
2230 => except -fno-strict-aliasing there is no warning left in
2233 2005-06-12 Hans Breuer <hans@breuer.org>
2235 * app/filedlg.c : really fix the file extension mismatch on export dialog
2236 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
2238 2005-06-11 Hans Breuer <hans@breuer.org>
2240 * configure.in config.h.win32.h : mark as +cvs (should have been
2241 done directly after the 0.94 release)
2242 * NEWS : attempt to summarize 2/3 year of development
2245 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
2246 finally passes again
2248 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
2249 app/run_dia.sh --credits > THANKS => Segmentation fault
2250 * app/pixmaps/Makefile.am : added group.png and ungroup.png
2251 * Makefile.am : work around scrollkeeper bug
2252 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
2254 * po/*.po : 'noise' produced by make dist
2256 2005-06-10 Hans Breuer <hans@breuer.org>
2258 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
2259 * objects/custom/custom_object.c : ... and use it to avoid
2260 complains about missing attribute "show_background". It is
2261 safe to leave this uninitialized. Same for flip_* and "text",
2262 the latter with comment cause it usually is *not* safe to do
2263 it for the general case. Fixes remaining issues with bug #169006
2264 which where caused by an incompatible change in the shape file.
2266 * app/commands.c : use "gnome-open" instead of "netscape" as
2267 fallback for $BROWSER not set. Still not optimal but better
2268 to try some common desktop tool than an obsolete browser;)
2269 Fixes bug #307142. Also some whitespace changes.
2271 * app/interface.c(toolbox_delete): avoid random return value.
2272 Patch from Stanislav Brabec, fixes bug #307143
2274 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
2275 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
2276 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
2278 2005-06-06 Lars Clausen <lars@raeder.dk>
2281 * app/modify_tool.c:
2282 * app/textedit.[ch]:
2283 Better support for text edit highlight.
2285 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
2286 the mainpoint extra visible.
2288 2005-06-02 Lars Clausen <lars@raeder.dk>
2290 * objects/UML/class_dialog.c:
2291 * objects/UML/class.[ch]:
2292 The final fixes for mainpoint on UML Class.
2294 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
2295 Ian Redfern, now in color and with mainpoints! Very pretty!
2297 2005-06-02 Hans Breuer <hans@breuer.org>
2299 * objects/UML/class_dialog.c : the memory managment with respect to
2300 attribute/operation connections was/is a mess. But it should work again ;)
2302 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
2303 directly from the UML Specification - to show the power of Dia and
2304 some weakness. Watch the bug reports following ;)
2306 2005-06-01 Hans Breuer <hans@breuer.org>
2308 * app/dia.def : export diagram_update_connections_object
2309 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
2310 Patch from Paolo Bernardi, together with the property setting closes bug #300572
2312 2005-06-01 Hans Breuer <hans@breuer.org>
2314 * plug-ins/python/pydia-property.c : complete refactoring of property
2315 setting, now also supports setting of property arrays
2316 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
2317 Python namespacing conventions
2318 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
2319 complete UML Classes with attributes and operations
2320 * plug-ins/python/otypes.py : now also show the properties of the objects
2322 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
2323 (pointers), they might be changed with attributes and opertions changing
2325 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
2326 were broken. Apparently noone used them before.
2328 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
2329 which only operate on the DiagramData to the latter file. To get on the DiagramData
2330 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
2331 but I don't know how to reflect that in the bindings. And for backward compatibility
2332 there also is the 'data' member.]
2334 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
2335 objects/UML/umlparameter.c : describe enums with PropEnumData
2337 * app/commands.c(view_show_all_callback) : if there is something selected show
2338 that instead of all exisiting objects. If there is noting or all selcted it
2339 "Show all" shows the old behaviour.
2341 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
2342 leaks and use less allocations caused by misguided API. Also some adaption to common
2345 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
2347 * app/makefile.msc : added new icons and build as console app while
2348 not releaseing to the general public
2350 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
2351 and keep a refernce when storing the a font from style="" in s.font. This should
2352 finally allow to have shapes with fully predefined text (and no 'random' crashes)
2354 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
2355 capable to interpret it's output
2357 2005-05-31 Lars Clausen <lars@raeder.dk>
2359 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
2361 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
2363 * configure.in: Added ne in ALL_LINGUAS
2365 2005-05-24 Lars Clausen <lars@raeder.dk>
2367 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
2368 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
2371 2005-05-23 Lars Clausen <lars@raeder.dk>
2373 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
2375 2005-05-21 Lars Clausen <lars@raeder.dk>
2377 * lib/diaarrowchooser.c:
2378 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
2379 'infinite' line (three dots) arrowhead. Fix line length in arrow
2380 preview. And fix typo. Fixes bug #303904.
2382 2005-05-20 Hans Breuer <hans@breuer.org>
2384 * lib/text.c : advice from valgrind and data_string() review:
2385 neither g_free() memory on the stack
2386 * objects/GRAFCET/boolequation.c : ... nor const strings
2387 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
2390 * app/diagram.c : a g_object_ref() following g_object_new() is almost
2391 always wrong. Why would we need two refernces?
2392 * app/app_procs.c : same here.If it crashes later on someone is dropping
2393 refernces he does not own, and *that* needs to be fixed. This is reverting
2394 "Remember to ref g_object_new'd object" (bug #170972) below, which
2395 causes more harm (leaking, hiding bugs elsewhere) than good.
2397 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
2398 diagramdata_destroy() which was only a wrapper to g_object_unref()
2400 * app/display.c(selection_changed) : don't g_strdup_printf() without
2401 g_free() later /or/ a C++ comment of me mostly denotes an error
2403 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
2405 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
2406 const gchar* entry it must not eat memory, added a lot of g_free() and
2407 some const. Fixed a bunch - i.e. *all* - warnings.
2408 * lib/widget.h : removed unused/deleted functions
2410 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
2411 avoid 'Invalid write of size 4', no luck yet
2413 2005-05-19 Lars Clausen <lars@raeder.dk>
2415 * objects/UML/class.c:
2416 * objects/UML/class.h:
2417 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
2418 for uml class object. #ifdef'd out right now.
2420 2005-05-18 Lars Clausen <lars@raeder.dk>
2422 * objects/standard/line.c: Make line adjust its actual endpoints
2423 for autogap -- looks and feels better.
2425 * objects/standard/arc.c:
2427 * app/modify_tool.c: Patch from Grégoire Dooms
2428 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
2429 shifted arc angle movement.
2431 2005-05-16 Hans Breuer <hans@breuer.org>
2433 * lib/widget.c : variable declarations need to be at the start of a block,
2434 at least as we are not using C++ or C99
2436 * plug-ins/python/pydia-property.c : implment the read part for Property
2437 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
2438 They are working quite well as can be seen with export-object.py
2440 * plug-ins/python/codegen.py : prove it once more with the generation of C++
2441 or Python code from an UML Diagram. Simply save as .py or .cxx ...
2442 * plug-ins/python/Makefile.am : install it
2444 2005-05-16 Lars Clausen <lars@raeder.dk>
2446 * app/pixmaps/{un}group.png:
2447 * app/Makefile.am (ICON_PNG_PAIRS):
2448 * app/menus.c (display_menu_items):
2449 New icons for grou/ungroup finally added, closing bug #105519.
2451 * app/Makefile.am: Dependencies for pixmaps.
2453 * app/pixmaps/connectable.png: An icon that actually makes sense
2454 for switching connectability.
2456 2005-05-15 Hans Breuer <hans@breuer.org>
2458 * lib/group.c object/UML/classicon.c : fixed leftovers of
2459 'Adding connectionpoint to _move_handle
2461 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
2462 is *ALWAYS* a memory leak. Plug some more.
2465 In preparation to make UML operations/attributes/parameters setable by Python
2466 UML class became more StdProp conformant. A nice experience to be the first
2467 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
2469 * objects/UML/umlattribute.c objects/UML/umloperation.c
2470 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
2471 split from objects/UML/uml.c and made StdProp aware
2472 * objects/UML/class.c : finally make "attributes", "operations", "templates"
2473 <template parameters> first class StdProps citizens.
2474 (umlclass_load) : removed hand-written parsing for the above, it is all done
2475 by object_load_props() now. The old write code is still in place, so be very
2476 careful when changing something - at the moment load/save it is 100% compatible
2478 * objects/UML/uml.c : now just type registration here, as it is supposed to be
2479 * objects/UML/Makefile.am objects/makefile.msc : build the new files
2481 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
2483 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
2484 (darray_prop_adjust_object_records) : don't loop forever
2485 (whole file) : use the new (working) way to get on the second level offsets.
2486 Also resolved some abbreviations, it is complicated enough without them ;)
2487 * lib/proplist.c : even complete list contents may be optional
2489 2005-05-15 Hans Breuer <hans@breuer.org>
2491 * lib/bezier_conn.c(remove_handles) : don't try to remove
2492 non-exisitng handles (patch from Radek Krahl, bug #302273)
2494 2005-05-15 Hans Breuer <hans@breuer.org>
2496 * plug-ins/metapost/render_metapost.c : locale independent output
2497 (Radek Krahl, bug #301866)
2499 2005-05-12 Lars Clausen <lars@raeder.dk>
2501 * shapes/Cisco/*.{shape,png}:
2502 * sheets/cisco*.sheet.in:
2503 Updated with color icons from Ian Redfern, closing bug #303889.
2504 Added automatic midpoints, not attempt at adjusting them.
2506 2005-05-11 Lars Clausen <lars@raeder.dk>
2508 * many shapes: Use mid of bounding box for midpoint, better than
2509 mid of connection points generally.
2511 2005-05-10 Lars Clausen <lars@raeder.dk>
2513 * lib/widgets.c: Decided on one way for the ratio thing in arrow
2514 size selector: Fixed ratio is on by default and keeps the sizes
2515 at the given ratio, but doesn't clamp them to be the same. Fixes
2518 * lib/font.c: Fix for bug #303695: Allow more than one entry of
2519 each legacy name, thereby correctly encoding bold and italic of
2520 the three main fonts. Also use | rather than || to combine slant
2521 and weight, so matching works. Had to remove binary search for
2522 new font name, but the list is short enough it's not a problem.
2524 2005-05-09 Lars Clausen <lars@raeder.dk>
2526 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
2528 2005-05-08 Hans Breuer <hans@breuer.org>
2530 * objects/UML/class.c : Reverted to have no center point.
2531 At first it looked as if there was only the bug to not increase
2532 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
2533 potentially much more dynamic connection points (to the left
2534 and right of every attribute/operation). Now simply adding one
2535 between see static and dynamic will screw up any existing diagram
2536 which makes use of the dynamic connection points. The would all
2537 be connected with an off-by-one error. I have no idea how to
2538 code around that. But breaking backward compatibility is no
2539 option here. Does not completely fix bug #303301 ...
2541 * lib/widget.c(dia_font_selector_set_font): actually set the options
2542 menu state. So we are not any longer resetting the font style on Apply.
2543 Use "UML - Class" dialog as stress text example.
2545 * app/command.c : some people insist to close diagrams already
2546 closed using tear-off menus. Maybe we should add a dialog
2547 "Do you want to call Dr. Watson now?". If there is no diagram
2548 to close anymore just do nothing, fixes bug #303221
2549 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2550 Calling this with no display to close is a pathological case.
2552 * app/diagram.[hc] : moved object.h and other DiaObject stuff
2553 to the implementation in preparation of Big Things(tm)
2555 * app/interface.c : less warnings and make it compile. strncmp()
2556 does not take a char**, neither does gdk_pixbuf_new_from_inline().
2558 * objects/makefile.msc plug-ins/makefile.msc : less output
2560 2005-05-08 Lars Clausen <lars@raeder.dk>
2562 * lib/orth_conn.c (orthconn_init): The right place to set the
2563 default autorouting value. Fixes bug #303291.
2565 * app/display.c (ddisplay_close): Patch from Radek Krahl
2566 (ptasz3k@o2.pl): Fix crash when using from detached menu
2569 2005-05-07 Lars Clausen <lars@raeder.dk>
2571 * lib/orth_conn.c (orthconn_load): Autorouting should default to
2572 off in diagrams that don't have it explicitly. All diagrams
2573 should be explicit about it.
2575 2005-05-06 Hans Breuer <hans@breuer.org>
2577 * app/samples/Self/*.dia : some UML diagrams describing Dia's
2578 inner working (or it's future;)
2580 2005-04-26 Lars Clausen <lars@raeder.dk>
2582 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2583 change to display of mainpoint to be easier to debug autogenerated
2586 2005-04-23 Hans Breuer <hans@breuer.org>
2588 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2589 plug-ins/python/pydia-properties.h : use lib/ prefix for
2590 Dia internal headers with too common names (fixes bug #173061)
2592 * app/display.c : stop special casing the first display of
2593 a diagram. Every display now has it's own refernce. The initial
2594 reference gets dropped when there is no display anymore. See
2595 diagram_remove_ddisplay(). Fixes bug #300744.
2597 * app/diapsft2renderer.c : locale independent output
2598 (Radek Krahl, bug #300847)
2599 * app/paginate_psprint.c : fixing use of setlocale() calls
2600 (Radek Krahl, bug #300886)
2601 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2602 (Radek Krahl, bug #300889)
2604 * objects/UML/class.c : fix another crash with the line
2605 wrapping code (Gabor Simon, bug #160865)
2607 * plug-ins/cairo/diacairo.c : image rendering had an endianess
2608 issue (or is this working around a libpixman bug?;)
2610 2005-04-21 Lars Clausen <lars@raeder.dk>
2612 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2614 * shapes/**/*.shape: All shapes now have midpoints.
2616 2005-04-20 Lars Clausen <lars@raeder.dk>
2618 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2619 (Radek Krahl): Make sure there's enough handles for the line.
2622 * objects/UML/node.c (node_draw): Better drawing method avoids
2623 garbage after moving. Fixes bug #301032.
2625 2005-04-17 Hans Breuer <hans@breuer.org>
2627 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
2628 changes (whould compile with current cvs and 0.(3|4).0
2630 2005-04-11 Lars Clausen <lars@raeder.dk>
2632 * xmldocs.make (all): Fix to put installed docs in right place
2633 under disable-gnome.
2635 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2638 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2639 (Leonardo Boshell): Use standard gnome help if called with Gnome.
2641 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2642 locale issues for eps output. Fixes bug #173135.
2644 2005-04-10 Hans Breuer <hans@breuer.org>
2646 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
2647 changes (somewhat broken)
2649 * plug-ins/pstricks/render_pstricks.c : still C89 ...
2650 * objects/custom/shape_info.c : ... but with prototypes
2652 2005-04-07 Lars Clausen <lars@raeder.dk>
2655 * plug-ins/svg/render_svg.c:
2656 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2657 Make decimal separators be correct in save file formats
2658 (non-localized). Fixes bugs #172529 and 172531.
2660 2005-04-06 Lars Clausen <lars@raeder.dk>
2662 * app/create_object.c (create_object_button_release):
2663 * app/modify_tool.c (modify_button_release): Correct activations
2666 2005-04-05 Simon Kågström <ska@bth.se>
2668 * app/app_procs.c: the --show-layers option can now handle numeric
2671 2005-04-05 Lars Clausen <lars@raeder.dk>
2673 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2674 (Tom Kast): Avoid blockiness caused by bad updates.
2676 2005-04-03 Lars Clausen <lars@raeder.dk>
2679 * lib/beziershape.c: Main points. A crude solution, having the
2680 center in the middle of the bb. Shows a bug in the distance_from
2681 code for polyshape when a side is horizontal.
2683 2005-04-02 Lars Clausen <lars@raeder.dk>
2685 * plug-ins/pstricks/render_pstricks.c:
2686 * plug-ins/xfig/xfig-export.c: Patch from Radek
2687 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
2689 2005-04-02 Hans Breuer <hans@breuer.org>
2691 * lib/dia_image.c(dia_image_filename) : return the path
2692 again. (bug #172416, Radek Krahl)
2694 2005-04-01 Steve Murphy <murf@e-tools.com>
2696 * configure.in: Added "rw" to ALL_LINGUAS.
2698 2005-03-31 Lars Clausen <lars@raeder.dk>
2700 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2702 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2705 * objects/network/basestation.c: Main points.
2707 2005-03-27 Hans Breuer <hans@breuer.org>
2709 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2710 * app/pixmaps.h : removed arrow.xpm
2711 * lib/Makefile.am : added diamarshal
2712 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2713 => makes 'make dist' pass and produce a useable package
2715 * po/*.po : 'noise' profuced by make dist
2717 2005-03-24 Lars Clausen <lars@raeder.dk>
2719 * objects/flowchart/parallelogram.c (pgram_update_data):
2720 * objects/flowchart/ellipse.c (ellipse_update_data):
2721 * objects/flowchart/diamond.c (diamond_update_data):
2722 * objects/flowchart/box.c (box_update_data): Main points.
2724 * objects/custom/custom_object.c (custom_create):
2725 * objects/custom/shape_info.h:
2726 * shapes/Assorted/square.shape:
2727 * objects/custom/shape_info.c (load_shape_info):
2728 * doc/shape.dtd: Added main point support to shapes, and an
2729 example of how to use it.
2731 2005-03-21 Lars Clausen <lars@raeder.dk>
2733 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2734 unnormalize from same point as you normalize, or else!
2736 2005-03-20 Lars Clausen <lars@raeder.dk>
2738 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2739 Remember to ref g_object_new'd object.
2741 2005-03-19 Hans Breuer <hans@breuer.org>
2743 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2744 have configurations, fixes bug #170962
2746 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2747 or better not used any longer. Fixes bug #169142.
2749 * lib/element.c(element_update_connections_rectangle): don't initialize
2750 the eighth point twice but instead the nineth once
2752 * objects/standard/bezier.c : no C++ comments *please*
2754 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2756 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2757 * plug-ins/python/pydia-image.c : ... so, don't do it!
2759 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2760 also named colors via pango_color_parse()
2762 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2764 * lib/libdia.def : updated externals
2766 * app/object_ops.c : still not C99 everywhere
2768 2005-03-19 Hans Breuer <hans@breuer.org>
2770 * lib/autoroute.c : at least it should compile ;)
2772 2005-03-19 Lars Clausen <lars@raeder.dk>
2774 * lib/autoroute.c: Orthconns now do autogap.
2776 2005-03-17 Lars Clausen <lars@raeder.dk>
2778 * app/authors.h: Added Gregoire Dooms for gap stuff.
2780 * objects/standard/polyline.c: Patch from Grégoire Dooms
2781 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2783 * objects/standard/bezier.c: Patch from Grégoire Dooms
2784 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
2788 * objects/UML/state_term.c:
2789 * objects/UML/large_package.c:
2790 * objects/UML/node.c:
2791 * objects/UML/object.c:
2792 * objects/UML/small_package.c:
2793 * objects/UML/state.c:
2794 * objects/UML/usecase.c:
2795 * objects/UML/note.c:
2796 * objects/UML/actor.c:
2797 * objects/UML/classicon.c:
2798 * objects/UML/component.c:
2799 * objects/Misc/analog_clock.c:
2800 * objects/Jackson/requirement.c:
2801 * objects/Istar/goal.c:
2802 * objects/Istar/actor.c:
2803 * objects/FS/function.c:
2804 * object/standard/box.c:
2805 * objects/ER/entity.c:
2806 * objects/ER/relationship.c:
2807 * objects/ER/attribute.c: Main points added. Distance_from fixed
2808 in attribute, broken in relationship, I* goal, Jackson
2809 requirement, analog_clock, all non-rectangular UML elements,
2812 * lib/element.[ch]: New method to help update connection points.
2814 * app/menus.c: Change Help/Manual to Help/Contents to follow
2817 * objects/standard/line.c:
2818 * lib/geometry.[ch]:
2819 * objects/standard/bezier.c: Patch from Grégoire Dooms
2820 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2821 bezier objects. Autogap nowchanged to be a function of the
2825 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2828 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2829 CP_FLAG_ANYPLACE connpoints.
2831 2005-03-16 Lars Clausen <lars@raeder.dk>
2833 * app/interface.c (create_tools): Removed debug printf.
2835 2005-03-15 Lars Clausen <lars@raeder.dk>
2837 * lib/widgets.[ch]: Constification.
2839 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2842 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2844 * lib/connectionpoint.h: Flags for connection points.
2846 * app/create_object.c (create_object_motion):
2847 * app/modify_tool.c (modify_motion): Minor refactoring.
2849 * app/object_ops.c (object_find_connectpoint_display): Extend with
2850 finding connpoints that cover entire objects.
2852 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2854 * objects/custom/custom_object.c (custom_setup_properties): Avoid
2857 2005-03-13 Hans Breuer <hans@breuer.org>
2859 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2861 2005-03-13 Hans Breuer <hans@breuer.org>
2863 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2864 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
2865 dia_svg_style_copy(), dia_svg_style_init()
2867 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2870 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2871 not wrapped in the style attribute
2873 * plug-ins/svg/svg-import.c : implement nested group handling and style
2874 'style inheritance'. Still no transformations, no <image/>, no <style/>
2877 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2878 the latter is for programmers.
2879 Also be more tolerant if the document root namespace is not 'svg'. If the svg
2880 namespace is defined in the file search for the top node including svg. This
2881 allows us to re-read the svg part of our own shape format.
2883 * lib/libdia.def : there is no give_focus_to_object
2884 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
2885 type as an expression
2887 * lib/geometry. c : use G_IMPLEMENT_INLINES
2888 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2890 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2891 gone when trying to remove the focus
2893 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2894 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2895 case of this plug-in, i.e. producing output files]
2897 2005-03-13 Lars Clausen <lars@raeder.dk>
2899 * lib/Makefile.am (BUILT_SOURCES):
2900 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2901 the building of the icons header files.
2902 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2904 2005-03-13 Hans Breuer <hans@breuer.org>
2906 * configure.in : require Cairo 0.3.0
2907 plug-ins/cairo/diacairo.c : changed to match ;-)
2909 * app/app_procs.c() : new function dump_dependencies()
2910 which gets called by: dia --version --verbose
2911 and may help to track version dependent problems in
2914 * lib/font.c : reverted to previous version cause using
2915 not implemented Pango API did not improve the issue.
2916 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2917 for more information.
2919 * lib/dialinechooser.c : a little shrinking of the
2920 initial size (to work around line wrappjing the right
2923 2005-03-11 Lars Clausen <lars@raeder.dk>
2925 * app/textedit.c: Concentrate start/end editing in single functions.
2927 2005-03-10 Lars Clausen <lars@raeder.dk>
2930 * lib/object.h: Added new object function to allow the object to
2931 be notified when its text is being edited.
2934 * app/modify_tool.c:
2937 * lib/focus.c: Remove sideeffects from focus objects, add getter
2940 2005-03-09 Lars Clausen <lars@raeder.dk>
2942 * lib/Makefile.am (dia-lib-icons.h):
2943 * app/Makefile.am: Minor cleanup.
2945 2005-03-06 Hans Breuer <hans@breuer.org>
2947 * app/app_procs.c : avoid "assignment within conditional expression"
2948 and handle -L for the GOption case as well.
2950 * lib/widget.c : strchr() does not return -1 on not found but NULL;
2951 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
2952 indirection from 'const int '
2954 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
2955 large_arc, thus produce correct arc output (like diasvg.py does;),
2958 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
2959 from objects/custom/shape_info.c to be shared with object/custom and
2960 plug-in/svg -> finally the C based svg-import reads pathes again.
2961 Added arc parsing while I was there, which fixes bug #169191
2962 * objects/custom/shape_info.c(parse_path) :
2963 * plug-ins/svg/svg-import : reuse above function
2964 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2965 But in general this does only support a small subset of what is
2968 2005-03-06 Lars Clausen <lars@raeder.dk>
2970 * objects/UML/association.c: Patch from Dave Klotzbach applied:
2971 Add visibility to association arrow. Fixes bug #157012.
2973 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2974 closing bug #161040.
2976 * app/layer_dialog.c (create_button_box): Use stock icons instead
2977 of homemade onces. Gets us rid of four more XPMs.
2979 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
2981 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2982 This option permits command line control of which layers are visible.
2983 Useful when automatically exporting multiple versions of the same
2984 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2985 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2986 and made it static since its only used in that file.
2987 * app/authors.h: added myself
2988 * doc/en/dia.1: documented the switch
2989 * doc/en/usage-layers.xml: ditto
2991 2005-03-05 Alan Horkan <horkana@tcd.ie>
2993 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2994 this restores how Dia behaved before the GTK2 port and seems to help
2995 allow the toolbox to be more easily resized. Bug #108891.
2997 2005-03-05 Lars Clausen <lars@raeder.dk>
2999 * Civil/civil_motor.shape:
3000 * Civil/civil_rotor.shape:
3002 * Logic/buffer.shape:
3003 * Logic/connector.shape:
3004 * Logic/inverter.shape:
3010 * shapes/Assorted/arrow-left-up.shape:
3011 * shapes/Assorted/heptagon.shape:
3012 * shapes/Assorted/star5.shape:
3013 * shapes/Assorted/trapezoid.shape:
3014 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
3015 defaults, see bug #169143.
3017 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
3020 * doc/en/Makefile.am: Finally figured out the right way to ask for
3021 the manpage xslt. Closes bug #144539.
3023 2005-03-01 Lars Clausen <lars@raeder.dk>
3025 * lib/Makefile.am (nodist_include_HEADERS):
3026 * app/Makefile.am: Correctly generate these files from PNGs with
3031 * lib/widgets.c: Refactor toggle button factory to allow inline
3034 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
3036 * app/makefile.msc (ICON_PNG_PAIRS):
3037 * app/dia-app-icons.h: Updated with more icons.
3040 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
3043 * app/interface.c (create_display_shell):
3044 * app/layer_dialog.c (dia_layer_widget_init):
3045 * lib/dia_image.c (dia_image_get_broken): Use inlined data
3048 * app/display.c (ddisplay_close): Removed unused includes.
3050 2005-03-01 Lars Clausen <lars@raeder.dk>
3052 * app/sheets.c (create_object_pixmap): Create a placeholder image
3053 for when the real image is missing. Better than crashing:)
3056 2005-02-25 Hans Breuer <hans@breuer.org>
3058 * app/app_procs.c : don't requets to open a default display with
3059 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
3061 2005-02-22 Lars Clausen <lars@raeder.dk>
3063 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
3066 2005-02-19 Lars Clausen <lars@raeder.dk>
3068 * app/menus.c (display_menu_items): Applied patch from bug #94019:
3069 Menu cleanup and addition of icons. Also a few additional stock
3072 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
3075 2005-02-14 Lars Clausen <lars@raeder.dk>
3077 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
3079 2005-02-13 Lars Clausen <lars@raeder.dk>
3081 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
3082 width. Seems to work. Once tested some more, needs old code
3085 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
3086 warning by escaping & properly.
3088 2005-02-06 Lars Clausen <lars@raeder.dk>
3090 * app/filedlg.c (file_export_callback): Set correct extension as
3091 soon every time the dialog is shown. Fixes bug #162535.
3093 * app/display.c (ddisplay_set_origo): Use more standard
3096 * app/modify_tool.c (modify_motion):
3097 * app/create_object.c (create_object_motion): Put coordinates of
3098 handle/object in status bar while moving. Fixes bug #163164.
3100 2005-02-03 Lars Clausen <lars@raeder.dk>
3102 * lib/.cvsignore: Added generated files diamarshal.[ch]
3104 2005-02-02 Lars Clausen <lars@raeder.dk>
3106 * configure.in: Add GLIB_GENMARSHAL def as suggested in
3107 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
3108 Now compiles on Linux.
3110 2005-02-01 Lars Clausen <lars@raeder.dk>
3112 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
3113 need to translate the empty string. Especially not after
3114 g_assert_not_reached(). Fixes bug #165966.
3116 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
3118 * objects/UML/activity.c : add fill- and line-colour properties
3119 [applied by Hans Breuer, fixes bug #163260]
3121 2004-01-28 Hans Breuer <hans@breuer.org>
3123 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
3124 update provided by Alan Horkan (fixes bug #159592)
3126 2004-01-28 Hans Breuer <hans@breuer.org>
3128 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
3129 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
3130 generalization, dependancies, parameterized classes ...
3131 * plug-ins/xslt/styleshetts.xml : refernce it
3132 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
3134 2004-01-28 Hans Breuer <hans@breuer.org>
3136 * objects/UML/transition.c : fill out the extra_spacing struct
3137 in the OrtConn member, in order to avoid artifacts when draggin
3138 the transition. (patch by Peter Allin, bug #144956)
3140 2004-01-15 Hans Breuer <hans@breuer.org>
3142 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
3143 to something differnt than 0. Apparently there are case where Dia misses
3144 to appropriately set it before requesting a dashed line (simple line with
3145 arrow as described in bug #151716)
3147 * lib/dia_dirs.c : special casing for drive letters which I broke with
3150 2005-01-13 Hans Breuer <hans@breuer.org>
3152 * app/interface.c(create_sheet_page) : remved dead long time code
3154 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
3155 it is availbale via header - which is the better style anyway
3157 2004-12-31 Hans Breuer <hans@breuer.org>
3159 * lib/dia_dirs.c(dia_get_canonical_path) : complete
3160 rewrite to handle something like /mnt/some/where/../else
3161 too. Workaround for bug #162637.
3162 * app/filedlg.c : call gtk_file_chooser_set_current_name()
3163 to workaround gtk_file_chooser_set_filename() not setting
3164 it if the file does not exist
3166 * sheets/Jackson.sheet.in app/menus.c : fixed typos
3167 (Frank Arnold, bug #161676)
3169 2004-12-31 Steffen Macke <sdteffen@gmail.com>
3171 * doc/pl/*.xml: Added XML prolog
3172 * makefile.msc: Added libxslt, fixed libxml, libart
3174 2004-10-29 Alexander Shopov <ash@contact.bg>
3176 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
3178 2004-12-29 Lars Clausen <lars@raeder.dk>
3180 * configure.in: Make gnomeprint be truly off by default (typo) and
3181 show optional compilation correctly.
3182 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
3184 2004-12-22 Hans Breuer <hans@breuer.org>
3186 * lib/widgets.c : destroy handlers can be called more than once,
3187 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
3189 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
3191 * app/display.c : temporary debug code showing the
3192 timing the rendering
3194 * app/dialibartrenderer.c(draw_string) : removed dead
3195 code loading and leaking font and face
3197 2004-12-15 Hans Breuer <hans@breuer.org>
3199 * app/display.c : actually use the selction-changed signal for something
3200 useful. Show selections representation on statusbar.
3201 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
3202 * app/diagram_tree.c : use new function (as in app/display.c) and only
3203 poke into property internals at one place
3204 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
3207 2004-12-12 Hans Breuer <hans@breuer.org>
3209 * lib/libdia.def app/dia.def : updated externals
3211 * objects/custom/custom_object.c : custom_destroy is called per object.
3212 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
3213 reference to it. Fixes e.g. bug #158288, #160550, ...
3215 * objects/UML/association.c(association_draw) : completed porting to
3216 draw_polyline_with_arrows()
3217 (association_update_data_end) : fixed typo in point compare
3218 (association_update_data) : for name placement take degenerated
3219 segements into account. Together this fixes bug #143891
3221 2004-12-11 Hans Breuer <hans@breuer.org>
3223 * lib/widgets.c(set_size_sensitivity) : revert inverted
3224 logic for arrorw size selections, fixes bug #160527
3226 2004-12-11 Hans Breuer <hans@breuer.org>
3228 * lib/widgets.c(dia_font_selector_set_font) : initialize
3229 the font style widget, too. Gets rid of empty font
3230 style and thus default broken font style, e.g. UML::class_name
3232 * lib/widgets.c(dia_color_selector_more_callback) : fill
3233 the color palette from dynamic menu entries and also
3234 preselect the current color to the last select entry
3236 * plug-ins/python/pydia-diagramdata.c : hold a reference
3237 to the underlying GObject
3239 * app/Makefile.am app/diagrid.h : new file containing the
3240 grid 'class' moved from DiagramData to Diagram.
3241 Also moved pagebreak_color and guides cause they are only
3242 used for visual appearance not 'data'.
3243 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
3244 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
3247 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
3248 lib/libdia.def : get rid of new_diagram_data()
3249 Diagram _is_ DiagramData (and does not have one any longer,
3250 just a compatibility pointer)
3252 * lib/diarenderer.h : a small doc improvement
3254 2004-12-11 Hans Breuer <hans@breuer.org>
3256 * objects/UML/class.c : line wrapping code buffer
3257 overrun fixed by Gabor Simon, bug #160865
3259 2004-12-11 Hans Breuer <hans@breuer.org>
3261 * plug-ins/python/pydia-diagram.c : hold a reference
3262 to the diagram in PyDiaDiagram, avoids bug #159080
3263 [another way to avoid is to detroy the dialog by
3264 clsoing it. But now there is still a diagram to
3265 apply the changes to, even if it's thrwon away just
3268 2004-12-10 Hans Breuer <hans@breuer.org>
3270 * **/*.c : fixed a bunch of warnings, not only for -ansi
3271 (still too many of them, but -ansi works)
3273 prop_geomtypes.h prop_geomtypes.c:306: warning: static
3274 declaration for `fontsizeprop_reset_widget' follows non-static
3275 dia_dirs.c:196: warning: return discards qualifiers from
3279 shape_info.c:121: warning: static declaration for `parse_path'
3283 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
3284 arrow.c:244: warning: unused variable `i'
3285 arrow.c:245: warning: unused variable `p'
3286 arrow.c:246: warning: unused variable `zzr'
3288 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
3289 finally removed c++ comments
3291 objects/Istar/goal.c : initialize connections::directions
3292 while I was there - helps autorouting
3294 * objects/KAOS/metaandorrel.c objects/Istar/link.c
3295 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
3296 (it would be quite simple to add image-from-memory support
3299 * pydia-*.h : warning: no newline at end of file
3301 * plug-ins/gprint/diagnomeprint.c : allow to unregister
3302 and follow new unique name naming convention
3303 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
3306 2004-12-07 Hans Breuer <hans@breuer.org>
3308 * objects/UML/message.c : better default for initial text placement
3309 a suggested in bug #154306, Henning Mersch
3310 * objects/UML/constraint.c : doing the same
3312 * app/filedlg.c : include persistence.h for persistence_get_integer
3313 * lib/libdia.def export it
3315 2004-12-05 Hans Breuer <hans@breuer.org>
3317 * app/grid.c : respect dynamic grid during snap-to, fixes
3318 bug #135124, Dmitriy Morozov. Added some additional magic
3319 to make the grid size more useable.
3321 2004-12-05 Hans Breuer <hans@breuer.org>
3323 * app/app_procs.c : make it compile for the HAVE_POPT and
3324 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
3326 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
3327 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
3328 when interactive. Fixes bug #119329
3330 * plug-ins/cairo/diacairo.c : adapt to new type naming
3331 scheme (introduced by accident;-) for pixbuf-*
3332 * app/app_procs.c : reflect both type name changes
3334 2004-12-04 Hans Breuer <hans@breuer.org>
3336 * objects/standard/image.c : fix the correct warning
3337 `image_file_name' might be used uninitialized
3339 * app/filedlg.c : near complete rewrite
3340 - removed 'related dialog', GtkOptionMenu, most global vars,
3341 also don't hide the dialog but let it go.
3342 - added: filter view by extension, hopefully working diagram
3343 referencing, GtkComboBox usage
3345 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
3346 of im/export filter entries. So the user interface reflects
3347 the dynamic nature of pixbuf loaders
3349 * lib/filter.[ch] : implement filter_unregister_*port
3350 lib/libdia.def : added new functions
3351 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
3352 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
3353 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
3354 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
3355 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
3356 use them in _plugin_unload () thus all these plug-ins
3357 can be loaded used and unloaded during Dia's runtime
3359 2004-12-04 Lars Clausen <lars@raeder.dk>
3361 * lib/diagramdata.h: Access methods for units defined per diagram.
3363 * lib/font.c (dia_font_new_from_style): More proper object creation.
3365 * lib/properties.h: Refactored the PROP_STD_* macros to allow
3368 * app/diagram.c (diagram_init): Force filename to be absolute
3369 path, easing the job for load/save.
3371 2004-12-03 Hans Breuer <hans@breuer.org>
3373 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
3374 added dia_font_set_height, dia_font_copy (note to self: don't try to
3375 maintain these from the *NIX side ;)
3377 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
3378 the new color selection anymore
3379 * objects/UML/class_dialog.c : with the above change it would have been more
3380 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
3381 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
3383 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
3384 (used in object vtable) and make its prototype match
3386 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
3387 correlate any of these strange crashing bug with it, but assume bad things to
3388 happen when one passes stack allocated stuff to gtk_type_unique()
3390 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
3391 not there. Fixes most of the warnings from bug #156996
3393 * lib/makefile.msc : rules to generate diamarshal.[ch]
3395 2004-11-29 Hans Breuer <hans@breuer.org>
3397 * app/disp_callbacks.c : reenable so-called preedit
3398 as described in bug #158859, Etsushi Kato
3399 Also fixed some compiler warnings while there.
3401 * objects/standard/image.c(get_directory) : make
3402 the documentation match the implementation.
3403 (image_save) : don't write a leading slash on
3406 * plug-ins/gprint/diagnomeprintrenderer.c :
3407 switched to gnome-print-pango usage
3409 * app/app_procs.c configure.in : although Dia
3410 is not threaded it appears as if we have to
3411 g_thread_init() to avoid crashing in some
3412 libraries which are thread enabled
3414 * lib/diamarshal.list lib/Makefile.am : start of
3415 using GSignal to clean up some object relations
3416 * lib/libdia.def : export marshallers
3417 * app/diagram.[ch] : emit signals when REMOVED,
3419 * app/display.c : added a connection to
3420 SELECTION_CHANGED to test the new signal stuff
3422 * app/diagram.c : fixed diagram_finalize while I
3425 2004-11-28 Hans Breuer <hans@breuer.org>
3427 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
3428 the text if conversion to current locale fails. [This is actually
3429 using code written four years ago;]
3430 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
3432 * objects/standard/image.c(image_load) : be more robust against
3433 filenames which seem to be absolute
3435 2004-11-27 Hans Breuer <hans@breuer.org>
3437 * app/filedlg.c(file_save_callback) : convert to
3438 filename encoding before passing to diagram_save()
3439 Fixes bug #158381, thanks to Robert Ögren
3441 2004-11-27 Hans Breuer <hans@breuer.org>
3443 * lib/dialibartrenderer.c : sometimes its good to read
3444 compiler warnings. Not only define renderer_finalize
3445 but actually *use* it. Should plug a potential huge
3448 * configure.in plug-ins/Makefile.am
3449 plug-ins/gprint/Makefile.am : build the experimental
3450 gnomeprint plug-in on *NIX, too.
3451 * plug-ins/gprint/diagnomeprint.c : don't include
3452 specific (private) backend headers but instead select
3453 the desired backend via config key setting
3455 * lib/diagdkrenderer.c : add 1 to size of filled arc
3456 to be rendered by gdk. Fixes bug #150896.
3458 * plug-ins/gprint/diagnomeprint.c
3459 plug-ins/gprint/diagnomeprintrenderer.c : added magic
3460 to better match page and dash sizes
3462 2004-11-27 Hans Breuer <hans@breuer.org>
3464 * plug-ins/shape/shape-export.c : it's g_strdup_printf
3466 2004-11-27 Hans Breuer <hans@breuer.org>
3468 * app/app_procs.c : mention eps-builtin aka. "using
3469 latin1", does not fix the eps-pango issues but #150571
3471 2004-11-27 Hans Breuer <hans@breuer.org>
3473 * sheets/Cybernetics.sheet.in : changed encoding to
3474 utf-8, patch from Takeshi AIHANA, fixes #149580
3476 2004-11-27 Hans Breuer <hans@breuer.org>
3478 * objects/custom/custom_object.c : many existing shapes
3479 rely on a square default size, revert to it although
3480 it originally was by a typo. Fixes bug #148527.
3482 2004-11-27 Hans Breuer <hans@breuer.org>
3484 * app/load_save.c(dia_cleanup_autosave)
3485 app/diagram.c : don't use dia->filename if already
3486 freed and dont use printf at all.
3488 * app/paginate_psprint.c : not only set the renderer::paper
3489 but also renderer::is_portrait. Should fix bug #142524
3491 2004-11-26 Hans Breuer <hans@breuer.org>
3493 * dia.desktop.in : added Bug Buddy headers (as seen
3494 in planner). Hopefully the automatically filling of
3495 bugs is more meaningful by this.
3497 * objects/custom/custom_util.c objects/standard/image.c
3498 lib/plug-ins.c : getting rid of deprecated g_dirname,
3499 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
3500 bytes inside a block of size 44 free'd
3502 * lib/persistence.c(persistence_load_list) : don't
3505 * lib/diaerror.[ch] : (new file) start of better error handling
3506 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
3507 added new files/funcs
3508 * lib/proplist.c lib/propinternals.h (prop_list_load) :
3509 allow to propagate error to caller. Also set PXP_NOTSET
3510 to avoid applying unset properties, fixes bug #155255
3511 * lib/propobject.c lib/prop_sdarray.c : still spewing
3512 g_warnings but now with context information
3514 * app/filedlg.c : more absolute filenames where required
3515 and strip them where we need the filename only
3516 Also explicit DONT choose gnome-vfs backend cause its
3517 threading appears to crash Dia - at least in GNOME build,
3520 2004-11-26 Hans Breuer <hans@breuer.org>
3522 * app/filedlg.c : don't use relative filenames for
3523 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
3525 (export_set_extension) : if we don't have a filename don't
3526 use it in strrchr() to avoid crashing
3528 2004-11-23 Hans Breuer <hans@breuer.org>
3530 * app/app_procs.c : fixed build for the GNOME case
3531 (let's rip out POPT and depend on glib-2.6, please ;-)
3533 2004-11-23 Hans Breuer <hans@breuer.org>
3535 * app/app_procs.c : fixed typo which broke the
3536 build for HAVE_POPT case
3538 2004-11-21 Hans Breuer <hans@breuer.org>
3540 * app/app_procs.c : some more #if-mess, but one day
3541 we should rely on GLib's 2.6 Option Parser alone
3543 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
3544 and height for RoundRect() - otherwise size depends on offset,
3545 shorten the unique name
3547 * plug-ins/python/diamodule.c : provide a unique name
3548 for python filters as well
3550 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3551 by using the right colors (need black background cause we
3552 are tinitng it with the real color later)
3554 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3555 instead of hardcoded slahes, improved portability
3557 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3558 plug-in. Also added some more error reporting (e.g. no printer driver)
3560 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3561 plug-ins/makefile.msc : resurrection of the gnome print renderer.
3562 Kinda works (alpha quality) for export but does not print yet.
3563 With bug #158972 resolved this does even work on win32 :-)
3565 2004-11-07 Hans Breuer <hans@breuer.org>
3567 * doc/diagram.dtd : <composite> can have <composite/>,
3568 <font/> has two 'optional' atributes 'style' and 'family',
3569 these are used to store new (since 0.91) font info.
3570 With this changes non of the issues in bug #147431 remains.
3572 * plug-ins/python/otypes.py : starting to implement an
3573 'create all known object' file as ne stress test source
3574 for the dtd and Dia in general.
3576 2004-11-06 Hans Breuer <hans@breuer.org>
3578 * app/diapsrenderer.c : don't convert to locale but to
3579 "LATIN1", fixes bug #146641
3581 2004-11-06 Hans Breuer <hans@breuer.org>
3583 * app/diagram_tree.c : still no C99 everwhere ...
3584 * lib/libdia.def : update externals
3585 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3587 * app/app_procs.[hc] : declare, use ...
3588 app/winmain.c : ... and implement dia_redirect_console().
3589 Even though newer Gtk version don't popup a console window
3590 anymore redirecting the error messages to a file in $TEMP appears
3591 to be much more reasonable than just ignoring it. Fixes bug #150777
3592 based on a patch from Steffen Macke
3594 2004-11-06 Hans Breuer <hans@breuer.org>
3596 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3597 RoundRect() for high level renderer api implementation thus
3598 fixing bug #138744 reported by Lars Clausen
3600 2004-11-06 Hans Breuer <hans@breuer.org>
3602 * app/prefernces.c : applied patch to make showing the diagram
3603 menubar the default (advanced users know how to switch it off)
3604 Fixes bug #150706, Steffen Macke
3606 2004-11-06 Hans Breuer <hans@breuer.org>
3608 * app/commands.c app/commands.h : added view_fullscreen_callback()
3610 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3611 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3612 ALso modified to allow handling of unmodified keys again (aren't
3613 there plenty of bug reports for this?
3615 2004-11-06 Hans Breuer <hans@breuer.org>
3617 * objects/UML/class_dialog.c : fixed casts for usage
3618 of dia_color_selector_set_color()
3620 * app/filedlg.c : pass a valid filenames to
3621 gtk_file_chooser_set_filename(), if we don't have a name
3622 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
3623 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
3624 assertion `local_full_path[0] == '/'' failed"
3626 2004-11-06 Lars Clausen <lars@raeder.dk>
3628 * app/properties.c (create_dialog):
3629 * app/diagram_tree_window.h:
3630 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
3631 * app/diagram_tree_menu_callbacks.c:
3632 * app/diagram_tree_window.c:
3633 * app/diagram_tree_menu.c:
3634 * app/diagram_tree.c: Changed to use persistence instead of
3635 strange hacks in preferences.
3637 * lib/persistence.h:
3638 * lib/persistence.c (persistent_list_get_glist): Don't deref null
3639 pointer. New function persistent_list_remove_all, and
3640 fixed persistent_list_remove to ... work!
3642 2004-11-05 Lars Clausen <lars@raeder.dk>
3644 * app/paginate_psprint.c (diagram_print_ps): Call
3645 diagram_print_destroy on destroy rather than delete_event. That
3646 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
3649 2004-11-02 Lars Clausen <lars@raeder.dk>
3651 * objects/UML/class.c (umlclass_load): Actually load the saved
3652 fonts and font sizes. Fixes bug #157016
3654 * configure.in: Require at least GTK+ 2.4.
3656 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
3657 finally, finally. Not quite bulletproof yet, and I need to figure
3658 out a minimum version of Gtk that doesn't spew warnings all over.
3660 * app/diagram.[ch]: diagram_set_filename with const filename.
3662 * app/sheets_dialog_callbacks.c
3663 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3664 correctly recreated. Still something fishy with the sheet menu in
3665 the dialog after adding a new sheet. Probably the sheet name
3668 2004-11-01 Lars Clausen <lars@raeder.dk>
3670 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3671 stmping. Now requires g_free here and there.
3673 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3674 for remembering last sheet, better off as persistent string. Must
3675 hunt down other things like that.
3677 * app/interface.c (create_sheets): Now remembers last sheet
3678 selected again. Fixes bug #157036.
3680 2004-11-01 Hans Breuer <hans@breuer.org>
3682 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3683 will never become NULL but only point to the next char
3684 which might indeed be \0]
3685 Use tex_escape_string() to avoid writing invalid tex,
3688 * **/* : a bunch of changes caused by trying 'make distcheck'
3689 which still fails, see Bug #144527
3691 2004-10-31 Lars Clausen <lars@raeder.dk>
3693 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3694 floating point numbers being printed with commas. Fixes bug
3697 * app/interface.c (create_sheet_dropdown_menu): New function to
3698 create the sheet menu, and also allow recreation. Still buggy and
3699 slightly prone to magic.
3701 * objects/UML/class_dialog.c
3702 (attributes_list_selection_changed_callback): Don't try to update
3703 the widgets after they're destroyed. Fixes bug #156706 (I think).
3705 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3706 adjustement. Fixes bug #154637
3708 * sheets/ER/Makefile.am (PIX):
3709 * sheets/GRAFCET/Makefile.am (PIX):
3710 * sheets/Jackson/Makefile.am (PIX):
3711 * sheets/Istar/Makefile.am (PIX):
3712 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3713 XPM. Why these have their pictures in sheets rather than shapes I
3714 don't know. Fixes bug #152142.
3716 2004-10-31 Hans Breuer <hans@breuer.org>
3718 * plug-ins/pixbuf/pixbuf.c : when running non interactive
3719 Dia won't call color_init() as it assumes no display. If
3720 we have one as tested ourselve we can as well color_init()
3721 to avoid g_warnings() and produce the right collors.
3724 * app/app-procs.c : try to be a little more helpful
3725 and correct with regard to the command line options.
3726 Renamed --export-to-format to --export-filter and some
3727 other string changes
3729 2004-10-31 Hans Breuer <hans@breuer.org>
3731 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3732 added GetDeviceCaps() dummy implementation to make
3733 'wmf' compile on Linux, too.
3735 2004-10-31 Hans Breuer <hans@breuer.org>
3737 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
3738 to finally fix the long lasting clipping issue, bug #85831
3739 Also fixed the line style issue for printing on XP and don't
3742 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3744 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3745 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
3747 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
3748 some info from the console (soon gone on windoze) to message_error()
3749 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3750 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3752 plug-ins/python/diasvg_import.py : re.compile() only once per expression
3753 and some more playing with scaling
3755 * plug-ins/python/makefile.msc : updated
3757 2004-10-30 Hans Breuer <hans@breuer.org>
3759 * shapes/Civil/civil_arrow_right.shape : removed
3760 <aspectratio type="fixed" /> thus allowing to change
3761 width and height independently, fixes #154897
3762 (Serge Robinson) by making it consistent with the
3765 2004-10-30 Hans Breuer <hans@breuer.org>
3767 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3768 on arrow being NULL, fixes bug #143063
3770 2004-10-30 Hans Breuer <hans@breuer.org>
3772 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3773 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3774 removed use of chached variable DiagramData::selected_count
3775 * lib/diagramdata.h : renamed to selected_count_private
3776 (kept for binary compatibility and sanity checks)
3777 * lib/diagramdata.c : more checks on a screwed up selection list
3779 * app/diagram.c(diagram_group_selected) : don't screw up the
3780 DiagramData::selected list, was assignment of parent_list_affected(),
3781 * lib/diagramdata.c (data_select, data_unselect) : protect against
3782 multiple selections of the same object and removement of a not selected
3783 object (apparently caused by the recently added group undo stuff)
3784 together with the above this finally fixes bug #153525
3786 * app/Makefile.am : fix ./autogen.sh ->
3787 app/Makefile.am:171: blank line following trailing backslash
3789 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3790 ddisplay_do_update_menu_sensitivity() here as well
3792 * configure.in : make the experimental state of the cairo plug-in
3795 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3796 try to update anything if we can't find an active diagram
3797 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3799 * configure.in : another attempt to fix bug #156116. If there is
3800 anyone with autotools knowledge reading this - help appreciated ;-)
3802 2004-10-30 Hans Breuer <hans@breuer.org>
3804 * objects/makefile.msc objects/UML/Makefile.am
3805 objects/UML/uml.c objects/UML/transition.c
3806 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
3807 Patch from Peter Allin adds statechart transitions to the UML sheet -
3808 bug #144956 - modified to not print("%s", NULL) which crashes on
3809 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3811 2004-10-30 Hans Breuer <hans@breuer.org>
3813 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
3814 match the website anymore, i.e. sould remain unchanged.
3815 See below and lib/dia_xml.h for the reasoning
3817 * lib/libdia.def : removed dia_color_selector_get_type
3819 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3820 (like broken PNG) and g_warning if appropriate
3822 * app/interface.c : #include "message.h"
3824 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3825 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3826 better to just move diaunitspinner to lib/ instead of polluting
3827 widgets.[hc] even more ;)
3828 * app/makefile.msc lib/libdia.def : updated
3830 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3831 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3833 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3834 do something useful when compiled
3836 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3837 Also some more #ifdefed backends usage.
3839 2004-10-10 Lars Clausen <lars@raeder.dk>
3841 * lib/widgets.c: Better labels for color selector menu.
3843 * app/dia-props.c (diagram_properties_respond):
3844 * app/preferences.c (prefs_get_value_from_widget): Don't assume
3845 that a dia color selector is of type DiaColorSelector:)
3847 * lib/widgets.[ch]: Color selector changed to dynamic menu.
3849 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3852 2004-10-09 Lars Clausen <lars@raeder.dk>
3854 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3855 arrow preview to avoid long arrow heads flipping.
3857 * lib/arrows.[ch]: Support for getting from name to arrow type,
3858 and for listing all arrow names.
3860 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3862 * lib/libdia.def: Added new global functions.
3864 * lib/persistence.[ch]: Two of the persistent_list functions to
3865 return whether the item was found in the list.
3867 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3868 the growing number of sheets.
3870 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3873 2004-10-05 Lars Clausen <lars@raeder.dk>
3875 * objects/UML/association.c: Patch from Harvey Thompson
3876 <harveyandsu@yahoo.com>: Better placement of association texts.
3878 2004-10-03 Lars Clausen <lars@raeder.dk>
3880 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3881 use the fonts in question. Can't set tooltips with the name since
3882 lib objects don't know the tool_tips thing, which is rather
3885 2004-09-19 Hans Breuer <hans@breuer.org>
3887 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3888 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3890 2004-09-19 Hans Breuer <hans@breuer.org>
3892 * dia.desktop.in : string changes as proposed in bug #151822
3894 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3895 appearts not to be needed on Linux and breaks the build
3896 on OSX. Fixes bug #152970
3898 2004-09-18 Lars Clausen <lars@raeder.dk>
3900 * app/commands.c (view_show_all_callback): Add a bit of border
3901 around Ctrl-E'd diagram, for easier select and better view of edges.
3903 2004-09-19 Hans Breuer <hans@breuer.org>
3905 * app/Makefile.am : trying to fix the fix from 2004-02-15
3906 Overwriting AM_LDFLAGS still gave a automake warning and it
3907 also appeard to break linking against gtklibs in a differnt
3908 prefix. Use dia_LDFLAGS instead.
3910 * plug-ins/svg/svg-import.c : initialize 'end' before usage
3911 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3913 * lib/diarenderer.c : don't try to draw lines which are so much
3914 degenerated that their point count became negative, fixes bug #148139
3916 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
3917 strings (NULL from g_strdup())
3919 2004-09-10 Steffen Macke <sdteffen@web.de>
3921 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3922 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3923 * app/create_object.c:
3924 * app/diaunitspinner.c:
3925 * app/disp_callbacks.c:
3927 * app/modify_tool.c:
3928 * lib/prop_geomtypes.c:
3929 * lib/prop_geomtypes.h: made compile with msvc
3931 2004-09-10 Lars Clausen <lars@raeder.dk>
3933 * lib/widgets.c: Insulate conversion from outside API by adding
3934 internal function to set value. Adjustment not appropriate for
3937 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3939 2004-09-07 Lars Clausen <lars@raeder.dk>
3941 * app/diapagelayout.c: Include from widgets.c rather than
3944 2004-09-03 Lars Clausen <lars@raeder.dk>
3946 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3947 as unit-based property testbed.
3949 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3950 and fontsize widgets.
3952 * app/Makefile.am (dia_core_files):
3953 * app/diaunitspinner.h:
3954 * app/diaunitspinner.c:
3956 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3957 lib/widgets.[ch], as it's used in the properties code now.
3959 2004-08-31 Steffen Macke <sdteffen@web.de>
3961 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3963 2004-08-30 Lars Clausen <lars@raeder.dk>
3966 * app/diagram.c (diagram_remove_all_selected): Remove debugging
3971 * app/disp_callbacks.c:
3973 * app/create_object.c:
3974 * app/textedit.[ch]:
3975 * app/modify_tool.c:
3978 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3979 current input object, multiple inputs per object, and tabbing
3982 2004-08-28 Steffen Macke <sdteffen@web.de>
3984 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3985 allow separate installer component "Translations"
3987 2004-08-27 Akagic Amila <bono@linux.org.ba>
3989 * configure.in: Added 'bs' to ALL_LINGUAS.
3991 2004-08-26 Steffen Macke <sdteffen@web.de>
3993 * app/makefile.msc: using /subsystem:windows again
3994 * makefile.msc: updated ALL_LINGUAS
3996 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
3998 * configure.in: Add «nb» to ALL_LINGUAS.
4000 2004-08-21 Steffen Macke <sdteffen@web.de>
4002 * plug-ins/dxf/dxf-export.c: Patch from
4003 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
4005 2004-08-17 Lars Clausen <lars@raeder.dk>
4008 * dia.spec (Release):
4014 2004-08-13 Ankit Patel <ankit@redhat.com>
4016 * configure.in: Added "gu" in ALL_LINGUAS.
4018 2004-08-07 Lars Clausen <lars@raeder.dk>
4024 * dia.spec (Release):
4025 * NEWS: New release 0.94-pre6
4027 2004-08-07 Lars Clausen <lars@raeder.dk>
4029 * app/highlight.c (highlight_reset_objects): Unhighlight inside
4033 * plug-ins/shape/shape-export.c: String capitalization fix from
4034 Alan Horkan <horkana@tcd.ie>
4036 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
4037 Class object menu kinda work, rather than blow up. Doesn't do a
4038 proper undoable change yet.
4040 2004-08-06 Lars Clausen <lars@raeder.dk>
4042 * app/filedlg.c (file_save_as_callback): Don't remove related
4043 dialogs from the NULL diagram.
4045 2004-08-02 Lars Clausen <lars@raeder.dk>
4050 * dia.spec (Release):
4051 * NEWS: Pre5 with leak fix.
4053 * lib/font.c (dia_font_build_layout): Don't try to save an
4054 allocation of LayoutCacheItem if it breaks layout cache hash.
4055 Also make hash function correct, remove explicit height entry
4056 (it's in pfd), and make sure things are correctly unreffed.
4057 Finally fixes #148141.
4059 * lib/text.c (text_set_attributes, text_set_font): Safely unref
4060 when changing font, and actually set the new font in
4062 (text_get_attributes): Ref copied font.
4064 2004-08-01 Lars Clausen <lars@raeder.dk>
4068 * dia.spec (Release):
4071 * doc/en/dia.xml: Prerelease 4.
4073 * lib/font.c (dia_font_build_layout): Better comparision and
4074 freeing of font cache.
4076 2004-07-31 Lars Clausen <lars@raeder.dk>
4078 * lib/font.c (dia_font_build_layout): Faster update to avoid
4081 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
4082 Correctly initialize export filter variable.
4084 2004-07-25 Lars Clausen <lars@raeder.dk>
4086 * dia.spec (Release):
4091 * doc/pl/dia.xml: Pre3 coming out.
4093 * lib/diarenderer.c (draw_polygon):
4094 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
4095 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
4096 rather than O (letter), and assert num_points > 1 rather than the
4099 * app/recent_files.c:
4102 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
4103 Make filenames conform to filesystem encoding.
4105 * RDP/.cvsignore: Added standard ignore.
4107 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
4108 last entry patch-panel, too.
4111 * shapes/Circuit/*.png:
4112 * shapes/Civil/*.png:
4113 * shapes/Contact/*.png:
4114 * shapes/Electric/*.png:
4116 * shapes/Pneumatic/*.png:
4118 * shapes/flowchart/*.png:
4119 * shapes/jigsaw/*.png:
4120 * shapes/network/*.png:
4121 * shapes/sybase/*.png:
4123 * dia_gnome_icon_large.png:
4124 * doc/pl/graphics/*.png: Set -kb for PNGs.
4126 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
4128 2004-07-22 Lars Clausen <lars@raeder.dk>
4134 * dia.spec (Release):
4135 * configure.in: Update to version 0.94-pre2.
4137 * app/load_save.c (diagram_data_write_doc): Use new namespace
4140 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
4141 hidden objects properties.
4143 * objects/standard/line.c: Remove halffinished line gap box from
4146 * app/paginate_psprint.c:
4147 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
4148 Immidi): Close export and print dialog with diagram as well.
4151 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
4152 borelli): Remove deprecated stuff (#137693)
4154 * app/dia-props.c (create_diagram_properties_dialog): Patch from
4155 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
4158 2004-07-21 Ray Strode <rstrode@redhat.com>
4160 * dia/dia.desktop.in: Add MimeType line to desktop file
4163 2004-07-18 Hans Breuer <hans@breuer.org>
4165 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
4166 sheets/UML/*.png : icons in png format
4167 Partial fixup of stuff broken with the following comment:
4168 "7 days : xpm->png, namespace fix, first rotation bits."
4170 * app/load_save.c(read_objects) : don't add objects to the layer.
4171 This function is called recursively and only the topmost objects
4172 belong in the layers object list. Fixes bug #145417 and is the
4173 the real fix for bug #142480
4175 * app/app_procs.c : make the --size hack even uglier, but work again
4177 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
4178 but g_free() what is returned by g_build_filename()
4180 * objects/custom/custom_object.c(custom_destroy) : handle all enum
4181 values in switch to get rid of the warning
4183 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
4184 of setlocale()/strtod()
4185 * lib/dia_svg.c : dito
4186 * lib/dia_xml.c : almost
4188 * plug-ins/python/group_props.py : use the string representation of
4189 value to ensure "unique values". If the strings would not be different
4190 the user cann't see the difference either
4192 2004-07-17 Lars Clausen <lars@raeder.dk>
4194 * lib/persistence.h: Have "void" in prototypes (#142663)
4196 * lib/widgets.c (dia_font_selector_init): Better string handling
4199 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
4201 * objects/standard/image.c (image_load): Use path of diagram
4202 rather than running directory as base for image file place.
4204 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
4207 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
4208 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
4210 * Re-added new sample diagrams binarily.
4212 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
4214 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
4215 Disabled keyboard accels when dragging an object.
4217 2004-07-14 Lars Clausen <lars@raeder.dk>
4219 * app/grid.c (snap_to_grid): Use diagrams grid setting to
4220 determine hex grid snap.
4222 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
4224 * app/interface.h: Avoid multiply defined symbols (#147396)
4226 2004-07-10 Lars Clausen <lars@raeder.dk>
4228 * app/sheets_dialog_callbacks.c (write_user_sheet):
4229 * lib/sheet.c (load_register_sheet): Don't introduce double
4230 slashes in namespace.
4232 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
4233 old diagrams, or XSLT will barf all over.
4235 * shapes/RDP/place.shape:
4236 * shapes/RDP/transition.shape:
4237 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
4238 shapes to use those.
4240 2004-07-07 Lars Clausen <lars@raeder.dk>
4243 * doc/{en,pl}/dia.xml:
4246 * NEWS: First prerelease of version 0.94. Now with release
4247 versions in a branch and main devel in the trunk.
4249 2004-07-05 Hans Breuer <hans@breuer.org>
4251 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
4252 -std=c89. Mostly //-comments and M_PI -> G_PI
4253 [Istar, Jackson, KAOS were removed from build cause they
4254 simply have *too* much C++ comments ;]
4255 * object/UML/association.c : use g_strdup() not plain strdup()
4256 * app/paginate_psprint.c : avoid storage size of `pipe_action'
4257 isn't known with more portable signal code
4259 * app/app_procs.c : don't call gtk_init() if just --version
4260 is requested (bug #144321, Vladimir Kondratiev)
4262 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
4263 DiaFont* if not NULL
4264 * objects/UML/class.c : moved fill_in_fontdata() to
4265 umlclass_load() to avoid such trouble, though unsure if
4266 this really is an improvement...
4268 * shapes/network/makefile.am : patch-panel added here too
4270 2004-07-04 Hans Breuer <hans@breuer.org>
4272 * sheets/network.sheet.in shapes/network/patch-panel.xpm
4273 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
4274 fixes bug #136629, James McDonald
4276 2004-07-04 Hans Breuer <hans@breuer.org>
4278 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
4279 lib/object_defaults.c : revert changing of Dia's XML namespace
4280 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
4281 about its purpose and relation to real world urls.
4283 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
4284 added comment about when to do so
4285 [Should have been long time ago and probably multiple times
4286 to avoid crashing on older plug-ins]
4287 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
4288 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
4290 * lib/object.c objects/UML/class.c : there are still compilers not
4291 supporting C99 and other GCCISMs like allocating dynamic sized arrays
4293 * objects/UML/class.h : there is a differnce between a list pointer
4294 and a list pointer pointer. We and GLib want the former.
4296 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
4297 if Gtk is initialized. Using gdk_display_get_default () avoids the
4298 app/* dependency and is also closer to the requirements of the
4301 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
4302 some #ifdefed support for Cairo backends not public available yet.
4304 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
4305 windoze platform supports them. This should fix bug #109818, at
4306 least for the majority running NT or above ...
4307 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
4309 * objects/makefile.msc : build Istar, Jackson and Kaos
4311 * objects/UML/class.c(umlclass_load) : don't wrap by default to
4312 keep old diagrams as they were - instead of this nice new effect ;-)
4313 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
4315 * objects/UML/class.c : mark for translation _("Wrap ...
4317 * objects/UML/class.c : more correct types, also some default properties
4318 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
4320 * objects/UML/activity.c : removed a leftover from the
4321 use-localization-for-font-substitution-hack
4323 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
4324 'cvs admin -kb *.png' PNG files should already be *added* as binary,
4325 otherwise they are not readable on line-end-converting-platforms
4327 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
4328 filter_get_by_name()
4330 * plug-ins/python/pydia-property.c : some more g_warnings for
4331 not implemented conversions
4333 * plug-ins/python/group_props.py : ensure unique property values
4334 at the right place. Now something like :
4335 - load an old UML class diagram
4336 - change one of the classes to wrap operations
4337 - select all classes (/Select/Same Type)
4338 - /Dialogs/Group Properties : check wrap_operations, select '1'
4339 - Ok, works like a charm :-)
4341 2004-07-04 Lars Clausen <lars@raeder.dk>
4343 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
4346 2004-07-03 Lars Clausen <lars@raeder.dk>
4348 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
4349 <LAV@VL3143.spb.edu>: Fixes console output problems and some
4350 interactiveness problems.
4352 2004-07-02 Lars Clausen <lars@reader.dk>
4354 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
4355 app isn't interactive.
4357 2004-07-01 Lars Clausen <lars@raeder.dk>
4359 * plug-ins/cairo/diacairo.c: Add init of last field of filter
4360 struct to remove crash.
4362 * sheets/Makefile.am (sheet_in_files):
4363 * shapes/Makefile.am:
4364 * sheets/ChemEng.sheet.in:
4365 * shapes/ChemEng/Makefile.am:
4367 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
4368 Chemical engineering shapes.
4370 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
4371 multiple arguments when using devel script.
4373 * app/display.c (new_display):
4375 * lib/diagramdata.c (new_diagram_data):
4376 * lib/diagramdata.h:
4377 * app/preferences.h:
4378 * app/preferences.c:
4381 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
4382 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
4385 * doc/pl/authors.xml:
4386 * doc/en/authors.xml:
4387 * lib/object_defaults.c (dia_object_defaults_save):
4388 * readme.win32 (BTW):
4389 * lib/persistence.c (persistence_save):
4390 * app/load_save.c (diagram_data_write_doc):
4391 * app/commands.c (help_about_callback):
4392 * README: Fix links to home page.
4395 * app/load_save.c (diagram_data_load):
4396 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
4397 loading, and guard against them when fonting.
4399 * lib/diarenderer.c (draw_rounded_polyline): Patch from
4400 anthonym@overture.com: Make limited rounding a corner-specific
4401 rendering-only thing.
4403 2004-06-30 Lars Clausen <lars@raeder.dk>
4405 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
4406 adjustment: If you can't fix it, at least don't change it.
4408 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
4409 code instead of individual code in here.
4411 2004-06-29 Lars Clausen <lars@raeder.dk>
4413 * objects/UML/association.c: Patch from Kiran
4414 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
4419 * lib/diarenderer.c (draw_rounded_polyline):
4420 * objects/standard/polyline.c (polyline_draw):
4421 * objects/standard/zigzagline.c (zigzagline_draw):
4422 Patch from anthonym@overture.com: Add rounded polylines.
4424 2004-06-27 Lars Clausen <lars@raeder.dk>
4426 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
4428 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
4429 free family list before taking out the pointer we need. Also set
4430 the entry_nr correctly so we get the menu set up right.
4432 2004-06-23 Lars Clausen <lars@raeder.dk>
4434 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
4435 images at the right place.
4437 * objects/Istar/actor.c
4438 * objects/Istar/goal.c
4439 * objects/Istar/istar.c
4440 * objects/Istar/istar.h
4441 * objects/Istar/link.c
4442 * objects/Istar/other.c
4443 * objects/Jackson/domain.c
4444 * objects/Jackson/jackson.c
4445 * objects/Jackson/jackson.h
4446 * objects/Jackson/phenomenon.c
4447 * objects/Jackson/requirement.c
4448 * objects/KAOS/goal.c
4449 * objects/KAOS/kaos.c
4450 * objects/KAOS/kaos.h
4451 * objects/KAOS/metaandorrel.c
4452 * objects/KAOS/metabinrel.c
4453 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
4454 <cp@cetic.be>: Fix instability issues caused by not returning NULL
4455 in *_move_handle and *_move. Also improved the headers with
4456 correct (c) information.
4458 2004-06-22 Lars Clausen <lars@raeder.dk>
4460 * objects/KAOS/goal.c:
4461 * objects/KAOS/other.c:
4462 * objects/Istar/actor.c:
4463 * objects/Istar/goal.c:
4464 * objects/Istar/other.c:
4465 * objects/Jackson/domain.c:
4466 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
4467 <cp@cetic.be>: Fix resize issues.
4469 * app/filedlg.c (file_dialog_hide): Patch from Kiran
4470 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
4471 related dialog. #129520.
4473 * app/dia-props.c (diagram_properties_show): Patch from Kiran
4474 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
4475 a child of its diagram. #129520.
4477 * objects/UML/association.c (association_load): Patch from Kiran
4478 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
4479 text placement. #118313.
4481 2004-06-17 Lars Clausen <lars@raeder.dk>
4483 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
4485 * Makefile.am: Make THANKS only be generated by maintainers.
4487 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
4490 * configure.in: Added three missing Makefiles.
4494 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
4495 diagram-related (save) dialog when closing diagram. To be
4496 extended to other dialogs.
4498 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
4500 * samples/Istar.dia:
4501 * samples/Jackson.dia:
4503 * sheets/Istar.sheet.in:
4504 * sheets/Jackson.sheet.in:
4505 * sheets/KAOS.sheet.in:
4510 * objects/Jackson/*:
4513 * objects/Makefile.am (SUBDIRS):
4514 * sheets/Makefile.am (SUBDIRS):
4515 * samples/Makefile.am: Additions from Christophe Ponsard
4516 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
4519 2004-06-12 Lars Clausen <lars@raeder.dk>
4522 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
4524 * lib/font.h: Toning down comments a bit:)
4526 * lib/font.c (dia_font_build_layout): Playing around with DPI
4528 * objects/UML/association.c (association_load): Avoid crashes on
4531 * objects/UML/association.c: Patch from kimmidi@novell.com:
4532 Improve placement of labels when vertical. Part fix of #118313
4534 * lib/object.c (dia_object_is_selected): Grouped objects are not
4535 selected, only the group itself. Thus, don't crash when grouping
4538 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
4539 on how to represent empty strings. Fixes #143639.
4541 * lib/object.c (dia_object_is_selected): Added comment answer.
4543 2004-06-12 Hans Breuer <hans@breuer.org>
4545 * lib/diagramdata.c lib/object.c : deal with grouped objects
4546 not knowing their parent_layer, i.e. avoid crashing in
4547 dia_object_is_selected() via group_draw() [ Triggered by
4548 playing with the Visio generated svg from bug #143455 ]
4550 * plug-ins/python/diasvg_import.py : started to implement
4551 transformation="translate(...)" and <style/> handling. Also
4552 use some other completely bogus values for em/ex scaling
4554 2004-06-08 Lars Clausen <lars@raeder.dk>
4556 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4558 2004-06-07 Lars Clausen <lars@raeder.dk>
4560 * app/layer_dialog.c (layer_dialog_set_diagram):
4561 * app/display.c: Layer widget crash more properly dealt with in
4564 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
4565 widget deselect was called during destroy, but called
4566 ddisplay_flush, leading to a new display timeout after renderer
4569 * lib/widgets.c (dia_toggle_button_destroy):
4570 * app/recent_files.c (recent_file_menuitem_create):
4571 * lib/persistence.c (persistence_save_list):
4572 * app/commands.c (edit_delete_callback):
4573 * lib/object_defaults.c (dia_object_defaults_save):
4574 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4577 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4580 * lib/diagramdata.c (new_layer): Initialize connectibility.
4582 * app/display.c (ddisplay_obj_render):
4583 * app/diagram.c (diagram_find_closest_connectionpoint): Take
4584 connectibility into account.
4586 * app/layer_dialog.h (struct _DiaLayerWidget):
4587 * app/layer_dialog.c:
4588 Connectible toggle updates, now works fairly well.
4590 * app/select.c (select_transitive_callback): Make sure we're only
4591 selecting in the same layer.
4593 2004-06-04 Lars Clausen <lars@raeder.dk>
4595 * app/pixmaps/Makefile.am: Also install connectable images.
4597 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4598 layer toggles from layer itself. Also update diagram correctly
4599 for visibility. Still need updates for connectivity behaviour.
4601 2004-06-03 Hans Breuer <hans@breuer.org>
4603 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4605 * lib/diagdkrenderer.c(set_linejoin) : actually set
4606 join_style not cap_style
4607 (set_dashes): with the correct number of dashes
4609 2004-06-03 Lars Clausen <lars@raeder.dk>
4611 * app/modify_tool.c (click_select_object):
4612 * lib/text.c (text_set_cursor):
4613 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4615 2004-05-31 Hans Breuer <hans@breuer.org>
4617 * lib/object_defaults.c : don't 'failed to load external
4618 entity "NULL"' when the defaults file does not exist,
4619 bug #108764 [again: somehow this got lost]
4621 * app/paginate_gdiprint.cpp : don guess the WMF export
4622 filter used for printing but find it by unique name.
4623 Also update for export_func renaming
4624 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4625 provide some unique names
4627 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
4628 app/select.c : fix bug #140789 by always checking if there
4629 still is an active diagram before accessing it
4631 * app/defaults.c app/properties.c : user visible string should
4632 not read DiaObject but stay as "Object defaults/properties"
4634 * app/app_procs.c : reduce the hack to pass --size to the
4635 export via user_data to the only filter supporting it. Other
4636 filters would crash on it or do worse ;(
4638 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4640 2004-05-31 Lars Clausen <lars@raeder.dk>
4643 * lib/widgets.c: Use GtkType rather than guint for
4644 dia_size_selector_get_type.
4646 2004-05-29 Lars Clausen <lars@raeder.dk>
4648 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4649 that it matches the screen output for selfoverlapping polygons and
4652 2004-05-28 Hans Breuer <hans@breuer.org>
4654 * app/load_save.c : ignore empty groups on load and don't
4655 write empty groups while saving
4656 * lib/group.h (group_update_data): there is no first object
4657 in empty groups and they probably don't need an update at
4658 all. Maybe the shold just not exist ?
4660 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4661 text positioning as well as drawing of images with alpha
4663 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4664 HAVE_WINDOWS_H or G_OS_WIN32 is defined
4666 2004-05-28 Lars Clausen <lars@raeder.dk>
4668 * app/pixmaps/Makefile.am (imagedir):
4669 * app/pixmaps/visible.png:
4670 * app/pixmaps/visible-empty.png: New images for the visibility
4671 button in the layer dialog.
4673 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4674 more border around the button. Still some left when hovering the
4675 mouse or selecting, and the grey background is annoying.
4677 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4678 visibility connector.
4680 2004-05-26 Lars Clausen <lars@raeder.dk>
4682 * configure.in (DB2MAN): Better check for db2man docbook place.
4683 Need something even better.
4685 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4687 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4688 extraeneous borders.
4691 * dia_gnome_icon.png:
4692 * samples/render-test.dia: Rendering test from Hans.
4694 2004-05-24 Hans Breuer <hans@breuer.org>
4696 * lib/filter.h : renamed DiaExportFilter::export to
4697 _DiaExportFilter::export_func (should not use c++
4698 keywords (g++ specifc ?) in headers. Same for import
4699 out of pure symmetry reasons
4700 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4701 app/diagram.c app/filedlg.c : reflect functions renaming
4703 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4704 under *NIX, too. [If you want something done, do it yourself ;-]
4705 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4706 with wmf.cpp's GDI usage
4707 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4708 [For the moment it does not much more than compiling, i.e.
4709 the produced WMF files are invalid, if not created on windoze.]
4711 * configure.in : check for C++ to compile plug-in/wmf
4713 * objects/GRAFCET/boolequation.c : looks like fixing
4714 another leak (untested)
4716 2004-05-23 Hans Breuer <hans@breuer.org>
4718 * acinclude.m4 : another attempt to fix
4719 bug #142032 (still not sure it's the right one,
4720 but works for me(tm), which the other does not ;)
4722 * plug-ins/cairo/Makefile.am
4723 plug-ins/Makefile.am
4724 configure.in : support building the new cairo
4725 plug-in, if given --with-cairo and the cairo
4726 packages are found, see http://cairographics.org
4727 and also http://hans.breuer.org/dia/dia-cairo.htm
4729 * plug-ins/cairo/diacairo.c : make it compile
4730 with DEBUG_CAIRO defined, too.
4732 2004-05-23 Hans Breuer <hans@breuer.org>
4734 * plug-ins/cairo/Makefile.am : initial attempt
4736 * plug-ins/cairo/diacairo.c : a new exporter based on
4737 Cairo http://cairographics.org rendering api. Currently
4738 it just can export PNG and PS but one day it might get
4739 PDF and more almost for free. [It is not yet included
4740 in the *NIX build system due to lack of auto* magic.]
4742 * plug-ins/pixbuf/pixbuf.c : always register the export
4743 filter part. If the user does not want it it can be
4744 disabled by File/Plugins or explicit selected the other
4745 one in the Export Formats List
4747 2004-05-23 Hans Breuer <hans@breuer.org>
4749 * lib/dia_dirs.c : #include "message.h"
4750 lib/widgets.c : #include "persistence.h"
4751 lib/widgets.c(dia_font_selector_init) : still not C99
4752 lib/persitence.h : removed unimplemented prototype
4753 lib/persitence.c(persistence_load_list) : still not C99
4754 app/create_object.c : #include "highlight.h"
4755 app/layer_dialog.c : #include "widgets.h"
4756 app/modify_tool.c : prototype functions before usage
4757 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4758 [otherwise one will have a hard time to make C++ compile ;]
4759 lib/dia_dirs.c : #include "message.h"
4760 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4763 * plug-ins/xfig/xfig-import.c : dont initialize an int with
4766 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4767 as documented, i.e. _not_ copying. Plugs a memory leak in
4768 lib/dialibartrenderer.c
4770 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4771 to radius to more of a clue what it is representing
4773 * */makefile.msc lib/libdia.def : updated
4775 ChangeLog : fixed some date copy&paste bug
4777 2004-05-21 Lars Clausen <lars@raeder.dk>
4779 * NEWS: Release tag.
4781 * config.h.win32: Now 0.93+cvs
4783 * RELEASE-PROCESS: Update with new info about release branches.
4785 * Many files: Moved devel branch back into main trunk. Should
4786 have been done in the opposite way, with release in a branch.
4788 2004-05-20 Hans Breuer <hans@breuer.org>
4790 * acinclude.m4 : disable setting of PYTHON_PREFIX
4791 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4792 as workaround for bug #142032 (the real fix would
4793 involve some auto* knowledge which I don't have
4796 * plug-ins/python/Makefile.am : more python
4797 plug-ins to be installed (especially svg import,
4798 but also 'simple scale' should be useable
4801 * plug-ins/python/scascale.py : update display
4802 after modifying selected objects
4804 * plug-ins/python/diasvg_import.py : initialize
4807 2004-05-18 Lars Clausen <lars@raeder.dk>
4809 * app/diagram_tree.c (select_node): Use
4810 diagram_remove_all_selected to kill selected list.
4812 * lib/font.c: Set language when using a different context.
4814 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4815 and removed ctype include (#142661).
4817 * lib/paper.c (get_default_paper): Changed isalnum to
4818 g_ascii_isalnum and removed ctype include. (#142661)
4820 * objects/custom/shape_info.c:
4822 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4824 2004-05-17 Hans Breuer <hans@breuer.org>
4826 * lib/object_defaults.c : don't 'failed to load external
4827 entity "NULL"' when the defaults file does not exist,
4830 * lib/widgets.c : fixed possible menu leak
4831 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4832 avoid finalization of floating references, bug #142307
4834 2004-05-15 Lars Clausen <lars@raeder.dk>
4836 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4837 fonts better (#138655)
4839 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4841 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4842 dist, xml, dbk and man. Also the sub-xml files. (#142098)
4844 * Makefile.am (CLEANFILES):
4845 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4846 translation-reports, they are generated automagically. THANKS
4847 file not considered locally generated, so is not locally
4850 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4852 * lib/diaarrowchooser.c:
4853 * lib/prop_attr.c: Fixing naming for arrowselector.
4855 * objects/UML/object.c (objet_type): Oops, little too aggressive
4856 with the DiaObject thing here:)
4858 * objects/custom/shape_info.c (parse_svg_node): Use
4859 g_ascii_isdigit instead of isdigit.
4861 * app/diaunitspinner.c (dia_unit_spinner_update):
4862 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4863 instead of isspace avoids char subscript issues (#142467).
4865 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4866 return value conflict.
4868 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4869 value conflict. Also improved signature. (#142466)
4871 * app/load_save.c (diagram_data_load): Don't overwrite the list in
4872 the layer, but instead free the returned list (#142480)
4874 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4875 for the grid widget.
4877 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4879 * configure.in (DB2MAN): Currently just check for two known
4880 positions for the docbook xsl. Don't know a generic way to find
4881 this info. Ought to add an option for it, but then it's really
4882 only required for maintainers, I think. Maybe.
4884 * app/display.c (update_snap_grid_status): Remove nasty image
4885 toggling code not require for grid toggle button anymore. (#142475)
4887 * app/interface.c (create_display_shell): Use
4888 dia_toggle_button_new_with_images to create grid toggle button.
4889 Much nicer. (#142475)
4891 * app/menus.c (menus_initialize_updatable_items): Free the string
4892 along with the GString. (#142475)
4894 * lib/intl.c (free_alias_table): Free hash table entries in a
4895 proper way, avoiding duplicate frees. (#142475)
4897 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4898 not put in the hash (avoid reading freed memory). (#142476)
4900 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4902 (dia_font_selector_get_family_from_name): Stop leaking
4905 2004-05-14 Lars Clausen <lars@raeder.dk>
4907 * Transfer of fixes from release branch. Not the prettiest way to
4908 do it, this should be done during release, not afterwards.
4910 Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4912 * acinclude.m4: minor fixes (added missing [] quotation).
4914 Lars Clausen <lars@raeder.dk>:
4916 * app/interface.c (toolbox_delete):
4917 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4918 cancels quit due to modified diagrams.
4920 Samúel Jón Gunnarsson <sammi@techattack.nu>:
4922 * is.po: Added "is" to ALL_LINGUAS.
4924 Lars Clausen <lars@raeder.dk>:
4926 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4928 Hans Breuer <hans@breuer.org>:
4930 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
4931 burden should be shared and not be win32 only ;) [this time
4932 build was broken by adding GtkType to widget.h]
4934 * objects/standard/box.c objects/standard/ellipse.c :
4935 for code clarification compare (obj->aspect != FREE_ASPECT)
4936 and not (obj->aspect); no binary effect.
4938 * app/paginate_psprint.c : don't leak printcmd
4940 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4941 standard C requires variables to be declared at the beginning of
4942 a block, also there is no fabsf() with msvc
4944 * app/win32print.[ch] : make win32_printer_close() return an
4945 error code, it's used as pclose replacement
4947 Lars Clausen <lars@raeder.dk>:
4949 * RELEASE-PROCESS: Mention PATCH keyword in release process.
4951 2004-05-06 Lars Clausen <lars@raeder.dk>
4953 * lib/widgets.[ch]: Utility function to make a widget with two
4954 images (selected and non-selected).
4956 * lib/diagramdata.h: Renamed selectable to connectable.
4957 Selectable will come later.
4960 * app/pixmaps/Makefile.am (imagedir):
4961 * app/pixmaps/connectable.png:
4962 * app/pixmaps/connectable-empty.png: New images for the
4963 selectability widget. Proper installation, too.
4965 * app/layer_dialog.[ch]: Adding new button showing connectability
4966 status. Much cleaner way of doing the button, but some problems
4967 with the item getting selected
4969 * lib/widgets.h: Reminder of how to install images for use by
4970 dia_get_image_from_file.
4972 2004-05-05 Lars Clausen <lars@raeder.dk>
4974 * objects/network/Makefile.am:
4975 * objects/network/pixmaps/radiocell.xpm:
4976 * objects/network/pixmaps/basestation.xpm:
4977 * objects/network/network.c:
4978 * objects/network/basestation.c:
4979 * objects/network/radiocell.c:
4980 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4983 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4984 Backslash arrow head.
4986 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4987 Notify takes care. Should maybe use that more.
4989 * lib/diagramdata.[ch]:
4990 * app/filedlg.c (file_export_ok_callback):
4991 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4993 * app/dia-props.c (diagram_properties_respond):
4994 * app/diagram.c (diagram_set_modified):
4996 * app/disp_callbacks.c:
4998 * app/load_save.c (diagram_save):
4999 Better handling of undo and modified status -- only diagram
5000 properties and page setup explicitly set modified status, all
5001 other important changes should be done through the undo stack
5004 2004-05-04 Lars Clausen <lars@raeder.dk>
5006 * app/app_procs.c (app_init): Consistently open a new diagram if
5007 none specified, with standard name Diagram1.dia.
5009 * app/layer_dialog.c:
5010 * app/diagram.c (diagram_finalize):
5011 * app/commands.c (dialogs_layers_callback):
5012 * app/filedlg.c (file_export_ok_callback):
5013 * app/app_procs.c (app_exit):
5014 * app/display.c (display_set_active):
5015 * app/interface.c (dia_dnd_file_drag_data_received):
5016 * app/recent_files.c:
5017 Undone attempt at unifying the multi-diagram windows (like
5018 layers). It broke the layers and didn't make much sense for the
5019 diagram properties dialog anyway.
5023 * lib/diagramdata.c:
5025 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
5026 many subclasses have to be fixed. Fixed remaining
5027 Object/ObjectType renaming issues.
5029 2004-05-02 Lars Clausen <lars@raeder.dk>
5031 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
5032 having to make all the children objects conform to
5033 GObject style at once? Warning! Does not compile right now.
5035 * many, many files: Rename Object to DiaObject in preparation for
5036 making it a GObject.
5038 * app/diagram.[ch]: Turn diagram into a real GObject.
5041 * app/filedlg.c: Correctly ref and unref diagram.
5043 * lib/diagramdata.h: Starting to turn it into a GObject as well.
5045 2004-05-02 Lars Clausen <lars@raeder.dk>
5047 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
5050 * app/dia-props.c: Undo the attempt at making it really
5051 multi-diagram, now going for a one-diagram dialog.
5053 2004-04-30 Lars Clausen <lars@raeder.dk>
5055 * app/undo.c: Undoing broken undo stuff for diagram properties and
5056 page setup. Shouldn't be mixed into undo at all.
5058 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
5059 function to avoid in particular the grid crawling.
5061 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
5062 to allow aligning dashes, so they don't crawl.
5064 2004-04-28 Lars Clausen <lars@raeder.dk>
5066 * app/Makefile.am: New files diacanvas.[ch]
5068 * app/interface.c (create_display_shell): Use new diacanvas that
5069 allows placing widgets on canvas, for text edit.
5072 Early work towards rotation. No implementation yet.
5074 * app/layer_dialog.c (undo_layer):
5075 * objects/network/bus.c (bus_create_change):
5076 * objects/standard/box.c (aspect_create_change):
5077 * objects/standard/ellipse.c (aspect_create_change):
5078 Use g_new0 for change struct.
5080 * app/undo.c (diagram_change_apply_or_revert):
5081 Support for undo of diagram properties and page setup.
5083 * app/disp_callbacks.c (ddisplay_canvas_events):
5085 * lib/diagramdata.h:
5086 * app/modify_tool.c (click_select_object):
5087 * lib/text.c (text_register_editable):
5088 Starting work on new text editing model. Guarded by #ifdef so
5091 2004-04-07 Lars Clausen <lars@raeder.dk>
5093 * app/recent_files.c (open_recent_file_callback):
5094 * app/interface.c (origin_button_press):
5095 * app/filedlg.c (file_open_ok_callback):
5098 * app/commands.c (dialogs_layers_callback): Using new
5099 diagram_set_current() function to ensure auxilliary windows are
5102 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
5103 menu now borken. *sniff*
5105 * app/dia-props.c: Diagram properties window attempted
5106 persistentified. Trying to make more like layer dialog (since it
5107 already changes when the diagram changes), but some things still
5110 2004-04-06 Lars Clausen <lars@raeder.dk>
5112 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
5113 * lib/attributes.c (attributes_set_default_line_style):
5114 * app/interface.c (create_lineprops_area):
5115 Make line style persistent as well. Added function to directly
5116 set the style and dashlength of a dialinechooser.
5118 2004-04-03 Lars Clausen <lars@raeder.dk>
5120 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
5121 Copy the ellipse extra handle correctly.
5123 * objects/standard/box.c (box_move_handle): Move definitions
5124 according to bug #138925.
5126 2004-04-02 Lars Clausen <lars@raeder.dk>
5128 * app/recent_files.c: Use absolute name for recent files list.
5130 * lib/attributes.c: Set start and end arrow types, correctly.
5132 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
5135 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
5137 * app/interface.c (create_lineprops_area): Set persistently stored
5140 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
5143 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
5144 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
5146 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
5147 with what xfig does. Text now converted from latin-1 to utf-8
5148 (latin-1, since that's what xfig seems to use. Would like to see
5149 examples of non-latin-1 figs). String case problems fixed.
5151 2004-04-01 Lars Clausen <lars@raeder.dk>
5154 * app/interface.c: Default arrows now stored persistently, too.
5156 * lib/arrows.[ch]: New function to get arrow type from name.
5158 * app/color_area.c (color_area_create):
5160 * app/linewidth_area.c: Also persistent colors and line width.
5161 That was easy. Arrows and line style will take a bit more work,
5164 2004-04-01 Lars Clausen <lars@raeder.dk>
5166 * app/preferences.c: All preferences are now
5167 handled by persistence, old prefs load and store code is gone.
5169 * lib/persistence.[ch]: Added string and color persistents. This is
5170 a different string from the one used in the printer dialog, that
5171 one has a GtkEntry attached -- may want to make that one an
5172 encapsulation of this one or something.
5174 2004-03-31 Lars Clausen <lars@raeder.dk>
5176 * app/app_procs.c: Do persistence before prefs. Prefs are to be
5179 * lib/persistence.[ch]:
5180 * app/preferences.c: Adding persistence for integers, reals,
5181 booleans. Fixed stupid list bug. Test persistence for prefs.
5183 2004-03-30 Lars Clausen <lars@raeder.dk>
5185 * app/recent_files.c:
5186 Debugging of deallocation.
5189 Font menu now uses persistence. Ordering needs fixing, or it must
5193 * lib/Makefile.am (libdia_la_SOURCES):
5194 * app/Makefile.am (dia_core_files):
5195 * app/persistence.[ch]:
5196 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
5197 number of fixes, including multiple entries now being read
5198 properly. Still some oddity about the persistent list having the
5199 role as first entry (which makes the font menu crash after a few
5202 2004-03-26 Lars Clausen <lars@raeder.dk>
5204 * app/persistence.c:
5205 * app/recent_files.[ch]: Redoing the recent-files list using
5206 persistence, reducing code by about 50%. Still a problem when
5207 selecting an item from the menu -- possibly it doesn't like the
5208 menu being destroyed while in the callback?
5210 2004-03-25 Lars Clausen <lars@raeder.dk>
5212 * app/persistence.c (persistence_load_string): Missing semicolon?!?
5214 2004-03-24 Lars Clausen <lars@raeder.dk>
5218 * app/persistence.[ch]:
5219 * app/paginate_psprint.c (diagram_print_ps): New type of data can
5220 be stored persistently: Strings. Only the printer command/file
5221 go in here now, but things like creator, organization, diagram
5222 comments etc could also be handled this way.
5224 * objects/standard/beziergon.c (beziergon_draw): Avoid control
5225 lines when the object is not selected.
5227 2004-03-23 Lars Clausen <lars@raeder.dk>
5229 * lib/connectionpoint.h:
5230 * app/load_save.c: Allow connection points to have names, and
5231 handle that in load/store.
5233 * lib/dialibartrenderer.c: Better highlighting for text.
5235 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
5236 * lib/diagdkrenderer.c: Better highlighting for all, using same
5237 principles as libart highlighter.
5239 2004-03-22 Lars Clausen <lars@raeder.dk>
5241 * lib/dialibartrenderer.[ch]:
5242 * lib/diagdkrenderer.c:
5248 * app/modify_tool.c:
5249 * app/create_object.c:
5250 * app/highlight.[ch]:
5251 Added simple object highlighting. In GDK rendering, highlights
5252 the bbox, in libart highlights the outline of the object (except
5255 2004-03-22 Lars Clausen <lars@raeder.dk>
5257 * RELEASE-PROCESS: Added info on how to do a branch for
5258 development during release process.
5260 2004-03-20 Lars Clausen <lars@raeder.dk>
5262 * RELEASE-PROCESS: Mention PATCH keyword in release process.
5264 2004-03-19 Lars Clausen <lars@raeder.dk>
5266 * xmldocs.make: Fixed apparent uninstall error.
5269 * doc/en/dia-manual.xml:
5270 * doc/pl/dia-manual.xml:
5273 * NEWS: Version 0.93-pre1.
5275 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
5276 borelli): Remove some deprecated stuff.
5278 2004-03-18 Lars Clausen <lars@raeder.dk>
5280 * Makefile.am: Try better uninstall thing for scrollkeeper.
5282 * objects/ER/entity.c:
5283 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
5284 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
5285 1, 1 exactly, as well as associative ER entities.
5287 2004-03-17 Lars Clausen <lars@raeder.dk>
5289 * Makefile.am: Make distcheck not complain about scrollkeeper
5290 problems (as per advice from James Henstridge).
5292 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
5293 standard installation.
5295 * objects/standard/ellipse.c: Better strings for object menu.
5297 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
5298 of dialogs (shame on you, glade!)
5300 * objects/custom/custom_object.c (custom_setup_properties):
5301 Removed debugging output
5303 * app/paginate_psprint.c (diagram_print_ps): Slightly more
5304 readable printer error messages.
5308 * doc/en/Makefile.am:
5309 * doc/pl/Makefile.am:
5310 New more standard way to install the XML-based manuals.
5312 2004-03-15 Lars Clausen <lars@raeder.dk>
5314 * objects/standard/box.c (box_move_handle): More intuitive fixed
5317 * objects/standard/ellipse.c:
5318 * objects/standard/box.c:
5321 * app/layer_dialog.[ch]:
5322 Patch from Steve Langasek <vorlon@debian.org>:
5323 Fixes startup crash on Alpha (bug #137169)
5325 * objects/standard/box.c: Aspect fixing like ellipses.
5327 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
5329 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
5330 pixmaps, now can uninstall properly.
5332 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
5333 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
5335 Added object menu access.
5337 2004-03-07 Hans Breuer <hans@breuer.org>
5339 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
5340 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
5341 would not use deprecated apis, but it's much simpler this way)
5343 * lib/makefile.msc : build the above new widgets and render_pixmap
5344 * lib/libdia.def app/dia.def app/makefile.msc : updated
5346 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
5347 what I saw, i.e. how big is an empty array supposed to be ? ;-).
5348 Previously it gave :
5349 disp_callbacks.c(188) : error C2059: syntax error : '}'
5350 disp_callbacks.c(191) : warning C4034: sizeof returns 0
5352 * app/interface.c : #include "dialinechooser.h"
5354 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
5355 [one more reason not to use it here : it's quite slow compared to
5356 the native win32 font renderer ;]
5358 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
5359 a GtkDialog*, removed unneeded cast
5361 * app/render_eps.c : avoid assignment warning for void* user_data
5364 2004-03-06 Steffen Macke sdteffen@web.de>
5366 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
5369 2004-03-06 Lars Clausen <lars@raeder.dk>
5371 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
5374 * lib/font.c: Simple cleanup system for layout cache removes any
5375 layout that hasn't been used for 10 minutes, but only during idle
5378 2004-03-05 Lars Clausen <lars@raeder.dk>
5380 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
5381 (lluis padro) (#130887): Extended Electric shapes with vertical
5384 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
5385 start with "Create a" or "A", always capitalize first word).
5387 * objects/standard/ellipse.c: Patch from Grégoire Dooms
5388 <dooms@info.ucl.ac.be>: Add extra connection point in center of
5389 ellipse. Additionally added a handle in the center, and resize is
5390 now around the center.
5393 * sheets/Makefile.am (SUBDIRS):
5394 * sheets/IsometricMap.sheet.in:
5395 * shapes/Map/Isometric/*
5396 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
5398 2004-03-04 Lars Clausen <lars@raeder.dk>
5401 * lib/pixmaps/Makefile.am:
5403 Better installation handling of pixmaps.
5405 * lib/diagdkrenderer.c:
5406 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
5407 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
5410 2004-03-03 Lars Clausen <lars@raeder.dk>
5412 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
5413 * lib/diagdkrenderer.c:
5414 * lib/diasvgrenderer.c:
5415 * lib/dialibartrenderer.c:
5416 * lib/diainteractiverenderer.c:
5417 * lib/prop_text.c (multistringprop_handle_key):
5419 * lib/dia_image.c (dia_image_rgba_data):
5421 * lib/diagramdata.c (layer_set_object_list):
5424 Getting rid of compile warnings.
5426 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
5427 images. Also remove unused decls.
5429 2004-03-02 Lars Clausen <lars@raeder.dk>
5432 * lib/widgets.c (dia_size_selector_init): Add images to the size
5433 selector chain widget. Also new function to load installed images
5434 from files (better than from included XPM, IMHO).
5436 2004-03-02 Lars Clausen <lars@raeder.dk>
5439 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
5443 * lib/widgets.c (dia_size_selector_init): Work
5444 on getting proper icon onto the size selector. Need simple image
5445 load mechanism in utils.
5449 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
5450 strings, handle utf8 strlen properly. Bug #135930.
5452 2004-03-01 Lars Clausen <lars@raeder.dk>
5454 * shapes/Cybernetics/*:
5455 * sheets/Cybernetics.sheet.in:
5456 * sheets/Makefile.am:
5457 * shapes/Makefile.am:
5458 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
5459 Roggendorf): Cybernetic shapes (#95553).
5461 2004-03-01 Lars Clausen <lars@raeder.dk>
5463 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
5465 * lib/diatypes.h: New type DiaSizeSelector.
5467 * lib/widgets.[ch]: New size selector widgets that selects two
5468 values (width and height, nominally) optionally linked to keep
5471 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
5473 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
5474 in front of file. Bug #128600.
5478 * app/lineprops_area.[ch]:
5480 * lib/dialinechooser.[ch]:
5481 * lib/widgets.c (dia_line_style_selector_init): use line preview
5482 instead of text labels. This involve moving away line_chooser to lib
5485 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
5488 * app/Makefile.am (dia_core_files):
5489 * app/interface.c (create_lineprops_area):
5490 * app/render_pixmap.[ch]:
5492 * lib/diaarrowchooser.[ch]:
5495 * lib/propdialogs.c:
5496 * lib/render_pixmap.[ch]:
5497 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
5498 of text labels. This involve moving away arrow_chooser to lib from
5501 2004-02-29 Lars Clausen <lars@raeder.dk>
5503 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
5504 being updated half-way through destruction. To be removed when
5505 the lists are replaced by something better.
5507 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
5508 Accelerators for class dialog. Bug #130995.
5509 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
5512 * app/preferences.c:
5514 * objects/GRAFCET/step.c:
5515 * objects/Misc/analog_clock.c:
5516 * objects/chronogram/chronoline.c:
5517 * objects/chronogram/chronoref.c:
5518 Change to american spelling (color, not colour) to ease
5519 translators job. Note that a number of translations may need an
5520 update now. Bug #120466.
5522 2004-02-29 Lars Clausen <lars@raeder.dk>
5524 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
5525 Better arrow handling for missing arrows.
5527 * plug-ins/metapost/render_metapost.[ch]: Patch from
5528 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
5529 size. See bug #135363.
5531 * app/app_procs.c (app_init): If non-interactive, or if
5532 --log-to-stderr used, send all messages to stderr. This should
5533 mean that old diaconv == dia --export-to-format=FOO BAR
5535 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
5537 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
5539 2004-02-28 Lars Clausen <lars@raeder.dk>
5541 * lib/text.c (text_key_event): Patch from Kouhei Sutou
5542 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
5544 2004-02-27 Lars Clausen <lars@raeder.dk>
5546 * KNOWN_BUGS: Added info on most commonly reported bugs, with
5549 * app/disp_callbacks.c (popup_object_menu): Unified properties
5550 entry, fixes bug #105080.
5552 * app/diagram.c (diagram_update_menu_sensitivity):
5553 * app/menus.h (struct _UpdatableMenuItems):
5554 * app/menus.c (menus_initialize_updatable_items): Menu items
5555 changed around, align menus flattened, properties entry ghosted,
5556 dialogs menu removed, more shortcuts added. Closing bugs #94018,
5558 Also taking out Gnome menus for now. They don't allow shortcuts,
5559 so what are they good for?
5561 2004-02-27 Lars Clausen <lars@raeder.dk>
5563 * app/menus.c (display_menu_items):
5564 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5567 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
5569 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5571 2004-02-23 Lars Clausen <lars@raeder.dk>
5573 * app/app_procs.c (app_init): Comments for translators.
5575 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
5577 * app/preferences.c (prefs_create_dialog): Change packing policy
5578 for widget to expand.
5580 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5581 running with a debugger.
5583 2004-02-19 Lars Clausen <lars@raeder.dk>
5585 * app/undo.[ch]: Adding last-saved information to undo to allow a
5586 diagram with all changes since last save undo to be marked as
5587 nonmodified. Still needs integration with actual undo
5591 * app/diagram_tree.c (diagram_tree_update):
5593 * app/display.c (update_modified_status):
5594 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
5595 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5598 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5599 vs. EPSI, comment out EPSI until preview is in there.
5602 * lib/diarenderer.c: Removing debugging printfs.
5604 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5607 * objects/standard/arc.c (arc_update_handles): Check to avoid
5608 crash when start and end points are the same.
5610 2004-02-19 Lars Clausen <lars@raeder.dk>
5612 * objects/standard/bezier.c:
5613 * objects/standard/line.c (line_load):
5614 * objects/standard/polyline.c (polyline_load):
5615 * objects/standard/zigzagline.c (zigzagline_load):
5616 * objects/standard/arc.c (arc_load):
5617 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5618 instead of hardcoding.
5620 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
5622 * app/disp_callbacks.c (popup_object_menu): append a menu item to
5625 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
5627 * app/app_procs.c: declare rc properly with the proper #ifdef
5629 2004-02-17 Lars Clausen <lars@raeder.dk>
5631 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5632 objects (which seemingly FIG itself breaks, or else there is no
5635 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
5637 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5638 width renderable in xfig. Helps on bug #133637, but does not
5639 quite fix it -- something about depth is wrong.
5641 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5642 Extern definitions for Mac compilation.
5644 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5645 (jdassen@debian.org): Include fix.
5647 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
5648 sure the initial diagram size is correct.
5650 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
5652 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5653 CPPFLAGS, as per automake warning.
5654 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5655 LDFLAGS, as per automake warning.
5656 (run_dia.sh): More robust creation, and more easily moved.
5658 * app/undo.c (group_objects_revert): Don't double-free the objects
5659 list. (#129221) Call object_add_updates on grouped objects.
5660 (ungroup_objects_revert): Call object_add_updates on grouped objects.
5662 * lib/diagramdata.c: Internal
5665 * lib/polyshape.c (polyshape_update_data): Correctly calculate
5666 directions for polyshape corners (thanks, Valgrind!)
5669 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5671 * lib/arrows.h: Default arrow size defined. After all are using
5672 this, may lower to 0.4 or so.
5674 * app/lineprops_area.[ch]: New function to set the arrow type for an
5677 * app/interface.c (create_lineprops_area): Set default line to
5678 have an arrow (fairly likely to be what's wanted, plus it shows
5679 the user where arrows are set).
5681 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5683 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
5685 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5686 Dotted lines should use dot_length, not dash_length.
5688 2004-02-06 Hans Breuer <hans@breuer.org>
5690 * app/interface.c : don't use gtk_drawing_area_size() to avoid
5691 the defaut size being also the minimum size. Instead use
5692 gtk_window_set_default_size() on the display shell. Fixes #130982.
5694 [fixing #131210, but umlauts in the 'main' filename still not really
5695 supported on systems where filesystem encoding != utf8
5696 (Problems with recent file menu and window title)]
5697 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5698 to deal with possible differnces in filename encodings, see
5699 g_filename_<to|from>_utf8()
5700 * objects/standard/image.c : use them.
5702 * lib/widgets.c : handle possible encoding difference here, too.
5703 Also get rid of most warnings by using const and GTK casts where
5704 appropriate; one wrong cast (probably causing a crash) was found/fixed
5705 by this - the remaining give a hint on finally leaking FontSelectorEntry.
5707 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5708 dia_file_selector_<get|set>_file to behave like the respective Gtk
5709 functions do : encoding- and const-wise ;-)
5711 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
5713 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5715 2004-01-19 Hans Breuer <hans@breuer.org>
5717 * app/app_procs.c app/diaconv :
5718 only call bind_textdomain_codeset when available, what's good
5719 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5720 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5722 2004-01-19 Steffen Macke <sdteffen@web.de>
5724 * makefile.msc: updated for new GAIM-like installer build; sync'ed
5725 ALL_LINGUAS with configure.in
5727 2004-01-18 Hans Breuer <hans@breuer.org>
5729 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
5730 by not passing NULL to g_print()
5732 * app/interface.c (create_toolbox) : actually use
5733 persitence_register_window() to restore toolbox window size
5735 * app/makefile.msc lib/makefile.msc : allow to deselect
5736 building with Freetype by command line to nmake like :
5737 nmake -f makefile.msc "NOFT2=1"
5739 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5740 far as possible with Dia's limited line style
5741 * plug-ins/python/pydia-property.c : allow to get and set
5742 Linestyle, style and dash(length)
5744 * lib/object.h : removed typedef for ObjectId not use anywhere
5746 2004-01-17 Hans Breuer <hans@breuer.org>
5748 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5749 doc/shape.dtd doc/custom-shapes :
5750 support for images in custom shapes, also removed some long-time
5753 * doc/en/*.xml : fixed crippled line ends which get created
5754 when windoze line ends are checkin from the unix side
5756 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
5758 * configure.in: Added "sq" to ALL_LINGUAS.
5760 2004-01-11 Hans Breuer <hans@breuer.org>
5762 [more less leaks ;-]
5764 * objects/SADT/annotation.c : use text_destroy() not g_free()
5766 * objects/chronogram/chronoline.c : neither leak chronoline::events
5767 nor chronoline::name
5769 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5771 2004-01-11 Hans Breuer <hans@breuer.org>
5773 * lib/properties.h :
5774 * objects/custom/custom_object.c : more properties optional
5775 to be backward compatible for older diagrams not having them
5776 set. (Try to load samples/all_objects.dia)
5778 [less memory leaks thanks valgrind ;-]
5780 * app/recent_files.c (recent_file_history_write) :
5781 g_free(history_filename);
5782 (recent_file_menu_item) : use g_path_get_basename()
5783 which already strdups, free result of g_strescape()
5785 * app/filedlg.c (create_export_menu) : return of
5786 filter_get_export_filter_label() must be g_free()'d
5787 (create_open_menu) : same for import
5789 * app/export_png.c (export_png_ok) : destroy info ptr
5790 with png_destroy_write_struct()
5792 * app/app_procs.c (app_init) : g_free(export_format_string);
5794 * lib/font.c (dia_font_finalize) : finalize parent_class, too
5795 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5796 refing it a second time, g_type_create_from_instance() is enough
5798 * lib/object_defaults.c (_obj_store) : don't mess with names
5799 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5801 2004-01-11 Steffen Macke <sdteffen@web.de>
5803 * app/diapsftrenderer.c: including ftoutln.h
5804 * app/makefile.msc: updated for freetype build
5805 * lib/libdia.def: added dia_font_get_context()
5806 * lib/dialibartrenderer.c (draw_string): added cast
5808 2004-01-10 Hans Breuer <hans@breuer.org>
5810 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5811 transformed coordinates, fixes bug 130804
5813 2004-01-10 Hans Breuer <hans@breuer.org>
5815 * app/filedlg.c app/app_procs.c : don't try to destroy
5816 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5817 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5818 returns. Fixes 'has no handler' bugs like #121019
5820 2004-01-10 Hans Breuer <hans@breuer.org>
5822 * objects/UML/class.c objects/UML/class_dialog.c :
5823 handle umlclass->name being empty to avoid, i.e. fix #127968
5825 [plugging memleaks, thanks valgrind :-]
5827 * lib/dia_xml.c (data_string) : don't leak return value
5828 of xmlNodeListGetString()
5830 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5831 before returning, maybe alloca() would be the better
5832 choice but anyway ;)
5834 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5836 * lib/font.c (dia_font_build_layout) : don't leak result
5839 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5840 (this is the one which got me started using valgrind, see #130816)
5842 2004-01-07 Sanlig Badral <badral@openmn.org>
5844 * configure.in: Added "mn" to ALL_LINGUAS.
5846 2004-01-04 Hans Breuer <hans@breuer.org>
5848 * lib/diagdkrenderer.c : replace rendering of really small (height
5849 less than 2 pixels) with a simple dashed line, you wont notice the
5850 differnce beside it being much faster. This allows ...
5851 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5852 * app/navigation.c : ... and lets you see an read rendered text even
5853 in the nice navigation popup.
5855 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
5856 (draw_string) : don't leak temporary image
5858 2004-01-04 Hans Breuer <hans@breuer.org>
5860 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5861 * app/interface.c : use dia-app-icons.h to give Dia window icons
5863 * lib/dia_image.c lib/color.c : _never_ call functions implemented
5864 in app/ from lib/. It is not portable and broken from design
5865 * app/app_procs.c : call color_init() and dia_image_init() conditional,
5866 i.e. only if running interactive.
5868 * lib/font.h : #include <time.h>
5870 * lib/libdia.def : updated externals
5872 * objects/UML/actor.c
5873 objects/UML/association.c (todo)
5874 objects/UML/branch.c
5875 objects/UML/class.[hc] objects/UML/class_dialog.c
5876 objects/UML/classicon.c
5877 objects/UML/component.c
5878 objects/UML/constraint.c
5879 objects/UML/dependency.c
5880 objects/UML/generalization.c
5881 objects/UML/implements.c
5882 objects/UML/large_package.c
5883 objects/UML/lifeline.c
5884 objects/UML/message.c
5886 objects/UML/object.c
5887 objects/UML/realizes.c
5888 objects/UML/small_package.c
5890 objects/UML/usecase.c
5892 : ported coloring of most UML objects (bug #97517, orginal
5893 work Mathias Hasselmann)
5895 * lib/properties.h : add _OPTIONAL variants for
5896 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5897 i.e. default colored - UML diagrams without complaining
5898 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5899 not set properties with the help of PXP_NOTSET. Otherwise
5900 optional attributes would lead to wrong initialization.
5902 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5903 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5904 Same for most other selectors which probably should be rewritten
5905 to the combo box with tree model from Gtk+ 2.4
5907 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
5909 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5910 being the Right Thing(tm) to use on Solaris.
5912 * objects/standard/bezier.c (bezierline_draw): Don't draw
5913 guidelines if not selected.
5915 * lib/object.[ch] (dia_object_is_selected): Function to check whether
5916 a given object is selected. O(n), where n is # selected objects.
5919 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
5921 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5922 Fonts dialog is closed without pressing Ok (bug #128646).
5924 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
5926 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5929 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
5931 * INSTALL: Updated list of requirements (bug #129653)
5933 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5934 Pionchon <luc@handhelds.org>.
5936 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
5938 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5939 empty or NULL strings (bug #130097).
5941 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
5943 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5944 Added checks against color_black.
5946 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
5948 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5949 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
5952 * objects/UML/component_feature.c: Patch from W. Borgert
5953 <debacle@debian.org>: Add handle to component feature text.
5955 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5957 * lib/font.c: Caching PangoLayout for better rendering speed.
5959 2003-12-30 Lars Clausen <lars@raeder.dk>
5961 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5962 get absolute file name from relative.
5963 * app/recent_files.c (recent_file_history_add): Use absolute
5964 filenames for recent files menu so that files can be found when
5965 Dia is invoked from other places.
5967 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5968 Actually load different diagrams if such are requested on command
5971 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5972 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5974 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5975 remove text rendering. May be turned into greeking at some later
5979 * app/Makefile.am (dia_core_files):
5980 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5981 Adds navigation window a la Gimp, though without text being
5984 2003-12-27 Luc Pionchon <luc@handhelds.org>
5986 * app/navigation.h: (new file)
5987 * app/navigation.c: (new file) creates a navigation window with a
5988 thumbnail view of the whole diagram.
5989 * app/Makefile.am (dia_core_files): added new files.
5991 * app/interface.c (create_display_shell): added a button between
5992 the scrollbars to popup a navigation window.
5994 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5996 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5997 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5998 not want text rendering.
6000 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
6002 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
6004 * objects/custom/shape_info.[ch]: Cleanup.
6006 * objects/custom/custom_object.[ch]: Changed to use new props
6011 * lib/prop_inttypes.c:
6012 * lib/prop_geomtypes.c: Added *prop_get_data_size.
6014 * lib/libdia.def: Added object_load_props.
6016 * configure.in: Better FT2 version test, from bug #129225.
6018 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
6020 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
6021 Lehmann <holger.lehmann@catworkx.de>.
6023 * plug-ins/xslt/Makefile.am:
6024 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
6025 and OWL XSLT sheets.
6027 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
6029 * lib/diagdkrenderer.c: Add implementation so text is still
6030 rendered. May be improved later.
6036 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
6037 Allow running without a $DISPLAY!
6039 * lib/color.c: Remove warnings for non-interactive run.
6044 * app/app_procs.[ch]:
6045 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
6046 to specify size for PNG output.
6048 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
6049 render a little smaller, so as to fit the big ones.
6051 * lib/arrows.[ch]: New arrow type from W. Borgert
6052 <debacle@debian.org>: Filled Dot and Triangle.
6054 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6056 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
6059 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
6061 * acinclude.m4: Better Python configure code patch (can't find
6062 author, author please speak up!)
6064 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
6066 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
6069 2003-11-30 Hans Breuer <hans@breuer.org>
6071 * plug-ins/python/diasvg.py : initialize self.dash_length
6072 in constructor to avoid crashing if the renderer user
6073 does not set it before first usage.
6075 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
6077 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
6081 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
6082 development and stable versions.
6084 * lib/text.c (text_draw): Use new renderer function to draw the
6087 * lib/diarenderer.h:
6088 * lib/diarenderer.c: New renderer function "draw_text" with
6089 default implementation. This function should eventually be the
6090 main interface, as it will be able to handle width and caching of
6091 rendering internally. All users of draw_string should convert to
6092 use Text objects and call either renderer->draw_text or text_draw,
6093 the latter if the text can be edited in-place (as should be the
6096 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
6098 * shapes/Circuit/hresistor.shape: First example of extra
6101 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
6103 * plug-ins/shape/shape-export.c:
6104 * lib/diasvgrenderer.h:
6105 * lib/diasvgrenderer.c:
6106 * plug-ins/svg/render_svg.c (new_svg_renderer):
6107 Actually store the font size, using DiaRenderer's font fields.
6109 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
6111 * objects/custom/shape_info.[ch]:
6112 * objects/custom/custom_object.[ch]:
6113 Support for extra attributes in custom objects.
6115 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
6117 * app/diagram.c (diagram_update_menu_sensitivity): More
6118 intelligent checks for menu sensitivity. Might be slow on huge
6119 diagrams, but I think other things outweigh it by a lot.
6121 * app/menus.[ch]: Make "Bring Forwards"
6122 and "Send Backwards" updateable.
6124 2003-11-22 Steffen Macke <sdteffen@web.de>
6126 * shapes/Assorted/arrow-turn-up.shape:
6127 * shapes/Assorted/arrow-turn-up.png:
6128 * sheets/Assorted/Makefile.am:
6129 * sheets/Assorted.sheet.in: Added new arrow
6131 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
6139 * app/diagram_tree.c
6140 * app/diagram_tree_menu.c
6141 * app/diagram_tree_window.c
6142 * app/diapagelayout.c
6143 * app/diaunitspinner.c
6147 * app/layer_dialog.c
6148 * app/lineprops_area.c
6149 * app/linewidth_area.c
6152 * app/paginate_psprint.c
6154 * app/plugin-manager.c
6157 * app/recent_files.c
6159 * app/sheets_dialog.c
6160 * app/sheets_dialog_callbacks.c
6161 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
6162 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
6164 * TODO: Updated, note on EPS transparency.
6166 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
6168 * objects/UML/class.c (umlclass_draw): Allow classes with no name
6171 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
6174 * doc/en/dia-manual.xml:
6177 * NEWS: Another Brown Bag release for parenting problems,
6178 including a crash bug fix.
6180 * app/connectionpoint_ops.c (diagram_update_connections_object):
6181 Also update connections when moving children. This can cause
6182 move_handle to be called twice, so it must be idempotent.
6184 * app/load_save.c: Loading and saving of children totally redone.
6185 Now doesn't violate assumption that all objects in a layer are
6186 placed in order in XML file.
6188 * objects/UML/branch.c (branch_create): Don't lie about being
6191 * objects/UML/node.c (node_create):
6192 * objects/UML/large_package.c (largepackage_create): Drag with
6193 lower right-hand handle at creation like all other objects.
6195 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
6197 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
6198 parenting drop to behave like a move inside, i.e. constrain place
6199 instead of trying to resize. 'Cause, resizing cannot be done for
6200 all objects (e.g. UML Class). Also simplified the algorithm a lot
6203 * app/load_save.c: Saving and loading of connection points for
6204 children added. Prototypes for static functions added.
6206 * lib/dynamic_obj.c: Removed debugging output.
6208 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
6210 * doc/en/dia-manual.xml:
6211 * doc/pl/dia-manual.sgml:
6215 * NEWS: Brown Bag release 0.92.1
6217 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
6219 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
6221 * app/app_procs.c (app_init): Rearrangement for translators.
6223 2003-10-24 Steffen Macke <sdteffen@web.de>
6225 * lib/text.c(text_key_event): enforcing the inserted text length now,
6228 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
6230 * MAINTAINERS: Change Debian maintainer to be the default address.
6232 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
6233 args to match prototype, thus removing crashbug #125159.
6235 * RELEASE-PROCESS: Note to self.
6237 2003-10-22 Steffen Macke <sdteffen@web.de>
6239 * doc/en/dia-manual.xml: removed superfluous external references
6241 2003-10-21 Steffen Macke <sdteffen@web.de>
6243 * lib/libdia.def: added filter_get_by_name
6244 * app/render_eps.c: moved extensions definition outside #ifdef
6246 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
6250 Removed old Dia manual, put new one in doc/en/. Translations
6251 should go in doc/??/.
6253 * doc/en/dia-manual.xml:
6254 * doc/pl/dia-manual.sgml:
6255 * dia.spec (Release):
6258 * NEWS: 0.92 is here!
6262 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
6263 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
6266 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
6268 * doc/en/usage-objects-selecting.xml: Commented out empty note.
6270 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
6272 * doc/pl/dia-manual.sgml:
6273 * doc/en/dia-manual.xml:
6277 * dia.spec (Release): Pre7.
6279 * app/diapsrenderer.c (draw_string): Convert string to print based
6280 on current locale. If conversion fails, fall back to UTF-8 (which
6281 is almost certain to be messy).
6283 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
6285 * doc/pl/dia-manual.sgml:
6286 * dia.spec (Release):
6290 * doc/en/dia-manual.xml: Pre6.
6292 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
6293 TeX chars in strings -- must be possible to use TeX text in there.
6294 Also avoids infinite loop bug (#124464) Will get option for this
6297 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
6299 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
6301 * doc/en/dia-manual.xml:
6302 * doc/pl/dia-manual.sgml:
6303 * dia.spec (Release):
6308 * app/authors.h: Removed duplicate of M. C. Nelson.
6310 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
6312 * app/export_png.c: Unique name for libart PNG export: png-libart.
6314 * app/render_eps.c: Unique names for the two eps export methods:
6315 eps-builtin, eps-pango.
6317 * lib/filter.h: Binary compatibility change:
6318 Added unique name to export filters. Can be NULL.
6319 * lib/filter.c (filter_get_by_name): Finding a filter by
6322 * app/app_procs.h: Changed prototype for do_convert.
6323 * app/app_procs.c (app_init): Support for non-extension file
6324 format selection for export. Also allow extension to differ from
6325 that specified by the filters. A bit of refactoring, too.
6327 2003-09-28 Steffen Macke <sdteffen@web.de>
6329 * makefile.msc: added target po to update the translations
6331 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
6334 * dia.spec (Release):
6336 * doc/pl/dia-manual.sgml:
6337 * doc/en/dia-manual.xml:
6338 Pre4 is given a short try.
6340 * configure.in: Give all necessary libs to PNG test.
6342 * lib/font.c: Added legacy entries for sans, serif and monospace.
6344 * app/app_procs.c (internal_plugin_init):
6347 Added PS fonts output for Unix.
6349 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
6350 factor to make PS fonts stay in boxes.
6352 2003-08-03 Hans Breuer <hans@breuer.org>
6354 * config.h.win32 : close the version string
6356 * lib/libdia.def : with color_white, color_black being static
6357 on win32 they can not be exported anymore either
6359 * lib/dialibartrenderer.c : text rendering is back on win32,
6360 only by Gdk though; almost a year seems to be enough to
6361 wait for my patch at bug #94791 to be accepted ...
6363 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
6365 * shapes/network/{digitizing_board.png,plotter.png,
6366 laptop.png,telephone.png}: 22x22 icons.
6368 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
6370 * doc/pl/dia-manual.sgml:
6371 * doc/en/dia-manual.xml:
6372 * dia.spec (Release):
6376 pre3 improves font rendering speed.
6378 * app/app_procs.c (app_init): Don't do pango init here, it's done
6379 on demand in font.c now.
6381 * lib/font.c: Load pango context on demand rather than during
6382 init/all the time strikes a better balance between working font
6383 size and speed. Still need to cache width calculations.
6385 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
6387 * lib/dia_xml.c: Enable pretty printing. Should have been added
6390 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
6392 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
6393 adjustment a bit for half diamond and open round.
6395 * RELEASE-PROCESS: Added note about notifying translators and
6398 * doc/pl/dia-manual.sgml:
6399 * doc/en/dia-manual.xml:
6400 * dia.spec (Release):
6404 Update to 0.92-pre2.
6406 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
6408 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
6409 calculation for half diamond and open round.
6412 * objects/UML/component_feature.c:
6413 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
6414 arrows instead of specific little hacks. Much nicer, but damn
6415 there's a lot of arrows.
6417 * lib/dialibartrenderer.c (begin_render):
6418 * app/render_libart.c (begin_render): Use correct DPI for screen
6419 (well, actually the default DPI of 75 for now).
6421 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
6423 * lib/diagdkrenderer.c (draw_string): Some reformatting.
6425 * app/app_procs.c (app_init): Note on what should be done for the
6426 pango context now, only it doesn't work:(
6428 * lib/font.c (dia_font_new): Make sure to load fonts that are
6429 used, using a reasonable pango_context. Also a comment on the
6432 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
6434 * doc/pl/graphics/*.png:
6435 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
6436 loop (bug #121817). PL translator may want to change the
6437 home_network png to be in Polish. If the docs get translated into
6438 more languages, we'll want to find out how to share these things.
6440 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
6442 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
6443 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
6446 * app/filedlg.c (file_save_as_callback): Put filename setting
6447 together. (Preparation for allowing default save dir.)
6449 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
6450 correctly this time:)
6452 * app/dia-props.c (diagram_properties_show):
6453 * app/properties.c (properties_show): Make sure the
6454 dialogs are transient for the correct diagram.
6456 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
6458 * configure.in: Make sure -lz -lm is passed into second png test
6459 as well (stupid AC_LINK_IFELSE can't take it as an argument).
6461 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
6462 comment-filled files readable. Once we have a 'generic data'
6463 system, we can put comments in there.
6465 2003-09-06 Steffen Macke <sdteffen@web.de>
6467 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
6468 g_string_sized_new() instead of g_string_new() to make it compile
6469 * app/Makefile.am: including dia.ico and dia.rc in the tarball
6470 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
6471 for non-solid linestyles - otherwise custom linestyles have to be used.
6473 2003-09-02 Steffen Macke <sdteffen@web.de>
6475 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
6478 2003-09-02 Christian Neumair <chris@gnome-de.org>
6480 * sheets/Pneumatic.sheet.in: Slight unification fix.
6482 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
6486 * dia.spec (Release):
6487 * doc/en/dia-manual.xml:
6488 * doc/pl/dia-manual.sgml:
6489 * NEWS: Update to 0.92-pre1.
6491 * app/properties.c (properties_key_event): Removing Esc/Enter
6492 handling for now, interferes to much with regular dialog usage.
6494 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
6495 Function to escape special TeX characters. Not in use yet, as
6496 PSTricks output by default is TeX strings. Should get a save-time
6499 2008-09-01 Steffen Macke <sdteffen@web.de>
6501 * lib/paper.h: explanatory comment on width and height
6503 2003-08-30 Steffen Macke <sdteffen@web.de>
6506 * lib/color.h: made color_white, color_black static on win32
6508 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
6510 * configure.in (PNG_LIBS): Something in the png tests added an
6511 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
6513 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
6515 * configure.in: Quote correctly for temporarily adding freetype
6518 * app/preferences.c (prefs_save): Remove debugging g_print.
6520 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
6522 * objects/flowchart/parallelogram.c (pgram_update_data):
6523 Directions for connections, better system for placing
6526 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
6528 * lib/diagramdata.c (layer_find_closest_object_except): Look all
6529 the way through the object list, so the foremost object is selected.
6531 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
6532 included for diagramdata.c.
6534 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
6535 newline in multistringprop not close the dialog. Failed so far.
6537 2003-08-25 Steffen Macke <sdteffen@web.de>
6539 * app/commands.c: using CHM instead of HTML on win32 if available
6540 * lib/diagramdata.h: including dynamic_obj.h
6542 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
6544 * app/properties.c (properties_key_event): Make Enter = Ok for
6545 properties dialogs. Still some problems with this and Esc for
6546 Cancel, for instances escaping out of a menu closes the dialog.
6548 * objects/UML/association.c (association_get_properties):
6549 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6552 * app/diapsft2renderer.c (draw_string): Use
6553 dia_font_scaled_build_layout to ensure similarity of text.
6555 * lib/diagramdata.c: Remove obj from dynobj list when removing
6556 from layer to avoid nasty race conditions.
6558 * app/undo.c (group_objects_revert): Make sure to unparent and
6559 remove from dynobj list when changing layers objects.
6561 2003-08-23 Steffen Macke <sdteffen@web.de>
6563 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
6564 StretchBlt(); fixes #92249
6566 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
6568 * app/filedlg.c (file_save_as_callback):
6569 * app/preferences.h:
6570 * app/preferences.c (prefs_data):
6571 * lib/diagramdata.h:
6572 * lib/diagramdata.c (new_diagram_data):
6573 * app/load_save.c (diagram_data_load):
6574 Let the document remember whether it was compressed. The user can
6575 still override this in the Save As... dialog, and that will still
6576 be remembered as the default for new diagrams.
6578 2003-08-23 Steffen Macke <sdteffen@web.de>
6580 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6582 2003-08-22 Steffen Macke <sdteffen@web.de>
6584 * plug-ins/xslt/dia-uml.xsl:
6585 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6586 table containing a list of components grouped by stereotype
6588 2003-08-21 Steffen Macke <sdteffen@web.de>
6590 * lib/makefile.msc: added connectionpoint.obj
6591 * lib/libdia.def: added connpoint_update, find_slope_directions
6592 * app/disp_callbacks.c: including scroll_tool.h
6593 * obj/makefile.msc: added component_feature.obj
6594 * app/paginate_gdiprint.c: fixed loop initialization in
6595 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6598 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
6600 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6603 * lib/diagramdata.h: Colors added to prefs.
6604 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6605 New field for pagebreak color, which should
6606 behave the same as grid color and be settable for a diagram.
6608 * app/diagram.c (diagram_init): Update diagram pagebreak color
6611 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6614 * app/preferences.[ch]: Default diagram colors now #defines, so
6615 loading can use it. Also, colors are now in NewDiagramData, so
6616 are passed nicely into new diagrams directly from prefs. Yum.
6618 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
6619 Support for loading and saving grid and pagebreak colors with the
6620 diagram. I'm inclined to make all the three Colors in diagram
6621 Color*s instead, so we can tell if they're specified for the
6622 diagram or merely the default setting. There'd be no way for the
6623 user to tell if the color of a diagram is default, though, unless
6624 we add a 'reset to default' button to prefs.
6626 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6627 pagebreak color. Unsensitizing grid size when dynamic.
6629 * objects/UML/component.c: Patch from Krzysztof Foltman
6630 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6631 third. Makes the left side connections actually be on the line
6634 2003-08-20 Steffen Macke <sdteffen@web.de>
6636 * lib/libdia.def: added layer_find_closest_object_except
6637 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
6639 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
6643 * app/scroll_tool.c:
6645 * app/disp_callbacks.c:
6646 * app/create_object.h:
6647 * app/create_object.c: Patch from Krzysztof Foltman
6648 <kfoltman@onet.pl>: Middle button can scroll transiently when
6649 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6653 * sheets/UML.sheet.in:
6654 * sheets/UML/receptacle.xpm:
6655 * sheets/UML/Makefile.am:
6656 * sheets/UML/eventsource.xpm:
6657 * sheets/UML/eventsink.xpm:
6658 * objects/UML/pixmaps/facet.xpm:
6659 * objects/UML/uml.c (dia_plugin_init):
6660 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
6661 * objects/UML/component_feature.c:
6662 Patch from W. Borgert <debacle@debian.org>: Add event sources and
6665 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
6667 * lib/object.h: Turning some comments into doxygen style.
6669 * lib/object_defaults.c (dia_object_defaults_load)
6670 (dia_object_default_get, dia_object_default_create):
6671 Fixing up existing documentation.
6673 * lib/object.h: Doxygen style documentation begun.
6675 * app/create_object.c:
6677 * app/connectionpoint_ops.c:
6678 * app/disp_callbacks.c:
6679 * app/modify_tool.c:
6681 * objects/network/wanlink.c (wanlink_move_handle):
6682 * objects/network/bus.c (bus_move_handle):
6684 * objects/flowchart/parallelogram.c (pgram_move_handle):
6685 * objects/flowchart/ellipse.c (ellipse_move_handle):
6686 * objects/flowchart/diamond.c (diamond_move_handle):
6687 * objects/flowchart/box.c (box_move_handle):
6689 * objects/custom/custom_object.c (custom_move_handle):
6691 * objects/chronogram/chronoref.c (chronoref_move_handle):
6692 * objects/chronogram/chronoline.c (chronoline_move_handle):
6694 * objects/SADT/box.c (sadtbox_move_handle):
6695 * objects/SADT/arrow.c (sadtarrow_move_handle):
6696 * objects/SADT/annotation.c (annotation_move_handle):
6698 * objects/Misc/analog_clock.c (analog_clock_move_handle):
6700 * objects/GRAFCET/vergent.c (vergent_move_handle):
6701 * objects/GRAFCET/vector.c (arc_move_handle):
6702 * objects/GRAFCET/transition.c (transition_move_handle):
6703 * objects/GRAFCET/step.c (step_move_handle):
6704 * objects/GRAFCET/condition.c (condition_move_handle):
6705 * objects/GRAFCET/action.c (action_move_handle):
6707 * objects/FS/function.c:
6708 * objects/FS/flow.c:
6709 * objects/FS/flow-ortho.c (orthflow_move_handle):
6710 * objects/FS/flow-poly.c (flow_move_handle):
6712 * objects/UML/usecase.c (usecase_move_handle):
6713 * objects/UML/state_term.c (state_move_handle):
6714 * objects/UML/state.c (state_move_handle):
6715 * objects/UML/small_package.c (smallpackage_move_handle):
6716 * objects/UML/realizes.c (realizes_move_handle):
6717 * objects/UML/object.c (objet_move_handle):
6718 * objects/UML/note.c (note_move_handle):
6719 * objects/UML/node.c (node_move_handle):
6720 * objects/UML/message.c (message_move_handle):
6721 * objects/UML/lifeline.c (lifeline_move_handle):
6722 * objects/UML/large_package.c (largepackage_move_handle):
6723 * objects/UML/implements.c (implements_move_handle):
6724 * objects/UML/generalization.c (generalization_move_handle):
6725 * objects/UML/fork.c (fork_move_handle):
6726 * objects/UML/dependency.c (dependency_move_handle):
6727 * objects/UML/constraint.c (constraint_move_handle):
6728 * objects/UML/compprop.c (compprop_move_handle):
6729 * objects/UML/component.c (component_move_handle):
6730 * objects/UML/branch.c (branch_move_handle):
6731 * objects/UML/association.c (association_move_handle):
6732 * objects/UML/actor.c (actor_move_handle):
6733 * objects/UML/activity.c (state_move_handle):
6734 * objects/UML/class.c (umlclass_move_handle):
6736 * objects/standard/ellipse.c (ellipse_move_handle):
6737 * objects/standard/zigzagline.c (zigzagline_move_handle):
6738 * objects/standard/textobj.c (textobj_move_handle):
6739 * objects/standard/polyline.c (polyline_move_handle):
6740 * objects/standard/polygon.c (polygon_move_handle):
6741 * objects/standard/line.c (line_move_handle):
6742 * objects/standard/image.c (image_move_handle):
6743 * objects/standard/bezier.c (bezierline_move_handle):
6744 * objects/standard/arc.c (arc_move_handle):
6745 * objects/standard/beziergon.c (beziergon_move_handle):
6746 * objects/standard/box.c (box_move_handle):
6748 * objects/ER/relationship.c (relationship_move_handle):
6749 * objects/ER/participation.c (participation_move_handle):
6750 * objects/ER/entity.c (entity_move_handle):
6751 * objects/ER/attribute.c (attribute_move_handle):
6753 * lib/polyshape.c (polyshape_move_handle):
6755 * lib/orth_conn.c (orthconn_move_handle):
6757 * lib/neworth_conn.c (neworthconn_move_handle):
6758 * lib/neworth_conn.h:
6759 * lib/element.c (element_move_handle):
6761 * lib/connection.c (connection_move_handle):
6763 * lib/beziershape.c (beziershape_move_handle):
6764 * lib/beziershape.h:
6765 * lib/bezier_conn.c (bezierconn_move_handle):
6766 * lib/bezier_conn.h:
6767 *BINARY COMPATIBILITY CHANGE*
6768 Update prototype for *_move_handle() to include connectionpoint,
6769 and also pass on modifiers. Pass in connectionpoint where
6772 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6773 file connectionpoint.c.
6775 2003-08-17 Danilo Å egan <dsegan@gmx.net>
6777 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6779 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
6781 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6783 * lib/beziershape.c (beziershape_update_data): Autoroute
6784 directions for beziershapes!
6786 * lib/connectionpoint.c (find_slope_directions):
6787 * lib/connectionpoint.h: Function for finding the available
6788 directions on a slope.
6790 * lib/polyshape.c: Reasonable directions for
6793 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
6795 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
6796 * objects/GRAFCET/vergent.c (vergent_update_data):
6797 * objects/GRAFCET/transition.c (transition_update_data):
6798 * objects/GRAFCET/action.c (action_update_data):
6799 * objects/GRAFCET/step.c (step_update_data):
6800 * objects/FS/function.c (function_update_data):
6801 * lib/connpoint_line.c (connpointline_putonaline):
6802 * objects/ER/attribute.c (attribute_update_data):
6803 * objects/ER/entity.c (entity_update_data):
6804 * objects/ER/relationship.c (relationship_update_data):
6805 * objects/chronogram/chronoline.c (chronoline_update_data): Set
6806 directions for connection points.
6808 * objects/UML/component.c (component_create): Set to allow
6811 * app/create_object.c (create_object_button_press):
6812 * app/diagram.[ch] (diagram_find_clicked_object_except):
6813 * lib/diagramdata.[ch] (layer_find_closest_object_except):
6814 Avoid parenting to objects you're connecting to (otherwise you
6815 couldn't make a connection out of a parenting object). To do
6816 this, added functions to find the nearest object except a given
6819 * app/render_libart.c: Rearrange libart include to avoid multiple
6820 include program (and put libart includes inside #ifdef!)
6822 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
6824 * lib/dialibartrenderer.c: Don't include art_config.h if others
6825 also do, as it isn't #ifdef'd.
6827 * objects/flowchart/ellipse.c (ellipse_update_data): Add
6828 directions for connection points.
6830 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
6832 * objects/flowchart/box.c (box_update_data): Add directions, use
6834 (box_load): Use g_malloc0.
6836 * lib/Makefile.am (libdia_la_SOURCES):
6837 * lib/connectionpoint.c (connpoint_update):
6838 Function to call to update a connection point info in _update_data().
6840 * lib/connectionpoint.h: Convenience DIR_ macros.
6842 * app/preferences.c (prefs_data): Make pretty formatted XML the
6845 * lib/dialibartrenderer.c:
6846 * app/render_libart.c: Make sure art_config.h is included, cause
6847 some libart headers are broken.
6849 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6850 after test. Add freetype-config cflags to cflags variable.
6852 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
6854 * app/authors.h: Credits for Krzysztof.
6856 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6857 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
6858 than the description) is visible in the title of the properties
6859 dialog. That ought to be a short description (translatable),
6860 though we still want long descriptions for the tooltips. Hmmm...
6862 * configure.in: Updated to use AC_LINK_IFELSE instead of
6863 AC_TRY_COMPILE, also force to link to check libs on Solaris.
6865 * objects/ER/entity.c (entity_load):
6866 * objects/ER/attribute.c (attribute_load):
6867 * lib/attributes.c (attributes_set_default_font):
6868 Check if font is non-null before unreffing.
6870 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
6872 * app/diagram.c (diagram_ungroup_selected)
6873 (diagram_group_selected): Use the undo apply to make sure grouping
6874 and ungrouping is done in consistent manners. This removes a fair
6875 amount of duplicated code from diagram.c.
6877 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
6878 (group_objects_revert, group_objects_apply): Working undo/redo for
6879 diagram tree updates. The initial actions still don't quite work.
6881 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
6883 * app/create_object.c (create_object_button_press):
6885 * app/diagram.c: Undo support for parenting. Uses apply/revert in
6886 undo only for manipulating the parent/child relationships. Things
6887 like removing an object doesn't use the undo functions for
6888 parenting, so any updates to come (like to diagramtree) should be
6891 2003-08-03 Hans Breuer <hans@breuer.org>
6893 * app/create_object.c : minor formating and g_new0 for
6896 * lib/bezier_conn.[hc] lib/beziershape.[hc]
6897 lib/prop_geomtypes.c (prop_geomtypes_register)
6898 objects/standard/bezier.c objects/standard/beziergon.c :
6899 ability to set bezpoints via StdProp api
6901 * plug-ins/python/pydia-property.c : convert list of tuples
6904 * plug-ins/python/diasvg_import.py : use it to
6905 implement part of path parsing. Also minor improvements
6906 like inheritance of group attributes to members,
6907 whitespace, title and style:text/css ignoring ;-)
6909 2003-08-02 Hans Breuer <hans@breuer.org>
6911 * lib/connections.c (connection_move_handle): return
6912 something to make it compile
6913 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
6914 must return a value -> dito
6915 [Is there a warnings-as-errors switch we could use with gcc
6916 to avoid such in future ?]
6918 * plug-ins/python/pydia-object.h : define *_Check macros
6919 * plug-ins/python/diamodule.c : provide dia.group_create()
6920 * plug-ins/python/pydia-diagramdata.c : add
6921 DiaDiagramData.add_layer()
6922 * plug-ins/python/pydia-property.c : allow to set color by
6925 * plug-ins/python/diasvg_import.py : based on the above
6926 implement a) group support, b) rgb(1,2,3) color handling,
6927 and somewhat fishy data:image/png;base64 support (create
6928 temporary files from inline image data)
6929 d) dump the import errors as text into an 'Error' layer
6931 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6932 stray " in draw_rect and corrected error message formating
6934 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6935 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
6938 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
6940 * app/magnify.c (create_magnify_tool): allocate with g_new0()
6942 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
6943 preferences values (see bug 118570). Also group items into a GtkFrame.
6945 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
6950 * app/commands.c (objects_unparent_children_callback):
6952 * app/diagram.c (diagram_unparent_selected,
6953 (diagram_update_menu_sensitivity):
6954 Added unparenting of single children.
6956 * lib/bezier_conn.c:
6957 * lib/bezier_conn.h:
6958 * lib/beziershape.c:
6959 * lib/beziershape.h:
6965 * lib/neworth_conn.c:
6966 * lib/neworth_conn.h:
6973 * objects/EML/instantiation.c:
6974 * objects/EML/interaction-ortho.c:
6975 * objects/EML/interaction.c:
6976 * objects/EML/process.c:
6977 * objects/ER/attribute.c:
6978 * objects/ER/entity.c:
6979 * objects/ER/participation.c:
6980 * objects/ER/relationship.c:
6981 * objects/FS/flow-ortho.c:
6982 * objects/FS/flow-poly.c:
6983 * objects/FS/flow.c:
6984 * objects/FS/function.c:
6985 * objects/GRAFCET/action.c:
6986 * objects/GRAFCET/condition.c:
6987 * objects/GRAFCET/step.c:
6988 * objects/GRAFCET/transition.c:
6989 * objects/GRAFCET/vector.c:
6990 * objects/GRAFCET/vergent.c:
6991 * objects/Misc/analog_clock.c:
6992 * objects/SADT/annotation.c:
6993 * objects/SADT/arrow.c:
6994 * objects/SADT/box.c:
6995 * objects/UML/activity.c:
6996 * objects/UML/actor.c:
6997 * objects/UML/association.c:
6998 * objects/UML/branch.c:
6999 * objects/UML/class.c:
7000 * objects/UML/classicon.c:
7001 * objects/UML/component.c:
7002 * objects/UML/constraint.c:
7003 * objects/UML/dependency.c:
7004 * objects/UML/fork.c:
7005 * objects/UML/generalization.c:
7006 * objects/UML/implements.c:
7007 * objects/UML/large_package.c:
7008 * objects/UML/lifeline.c:
7009 * objects/UML/message.c:
7010 * objects/UML/node.c:
7011 * objects/UML/note.c:
7012 * objects/UML/object.c:
7013 * objects/UML/realizes.c:
7014 * objects/UML/small_package.c:
7015 * objects/UML/state.c:
7016 * objects/UML/state_term.c:
7017 * objects/UML/usecase.c:
7018 * objects/chronogram/chronoline.c:
7019 * objects/chronogram/chronoref.c:
7020 * objects/custom/custom_object.c:
7021 * objects/flowchart/box.c:
7022 * objects/flowchart/diamond.c:
7023 * objects/flowchart/ellipse.c:
7024 * objects/flowchart/parallelogram.c:
7025 * objects/network/bus.c:
7026 * objects/network/wanlink.c:
7027 * objects/standard/arc.c:
7028 * objects/standard/bezier.c:
7029 * objects/standard/beziergon.c:
7030 * objects/standard/box.c:
7031 * objects/standard/ellipse.c:
7032 * objects/standard/image.c:
7033 * objects/standard/line.c:
7034 * objects/standard/polygon.c:
7035 * objects/standard/polyline.c:
7036 * objects/standard/textobj.c:
7037 * objects/standard/zigzagline.c:
7038 Binary compatibility update: Added return value for foo_move() and
7039 foo_move_handle(). Orthconn derivatives also returns change from
7040 orthconn_move_handle().
7042 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
7043 doesn't support it yet.
7045 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
7046 Add returning ObjectChange from object moves. Needs to handle
7047 multiple object moves.
7049 * app/modify_tool.c (modify_motion, modify_release): Add
7050 ObjectChange from move & move_handle to undo stack.
7052 * objects/EML/instantiation.c (instantiation_move): Removing
7053 duplicate move & update.
7055 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
7057 * plug-ins/xfig/xfig-export.c: Added support for arrow head
7058 export. Many arrow types not supported by XFig, replacing those
7059 with standard arrows. Not sure whether it'd be better to render
7060 them as a group of lines instead. You'd lose the arrow-ness for
7061 further editing, but preserve the actual shape of it. Also added
7062 support for dash length.
7064 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
7066 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
7067 description for version 3.2, for reference.
7069 * plug-ins/xfig/xfig-import.c: Added import of arrows.
7071 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
7072 Align Vertical Adjacent call _v rather than _h.
7074 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
7076 * app/scroll_tool.c (create_scroll_tool):
7077 * app/modify_tool.c (create_modify_tool): use g_new0() to
7080 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
7082 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
7084 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
7086 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
7088 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
7090 * configure.in: Added Belarusian to ALL_LINGUAS.
7092 2003-07-19 Hans Breuer <hans@breuer.org>
7095 Make the xslt plug-in work on win32, too. It appears
7096 to require a quite recent version of libxml and libxslt,
7097 otherwise windoze pathes aren't translated correctly
7098 during file processing
7101 * plug-ins/xslt/xslt.h : #include <glib.h> before
7104 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
7105 the 'script' file finding similar to how it is done
7106 with the python scripts (no need for hardcoded pathes,
7107 removed the 'plugin' part from the path)
7109 * plug-ins/xslt/stylesheets.xml : added again. It does
7110 not have any path but only the pure filename again
7112 * plug-ins/xslt/stylesheets.xml.in : removed
7114 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
7115 rule to process stylesheets.xml.in
7117 * plug-ins/makefile.msc : added xslt
7119 2003-07-19 Hans Breuer <hans@breuer.org>
7121 Finally Dia learned to remember the recent selected sheet
7123 * app/preferences.[hc] : added prefs.recent_sheet
7124 * app/interface.c : restore and remember the sheet-option-menu
7125 history, but only if the respective number is stiil available.
7126 This additional adds robustness against running Dia without
7127 any sheet (e.g. installation problems)
7128 * app/app_procs.c : call prefs_safe() in app_exit() to remember
7129 changes which are not done by the prefernces dialog
7131 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
7132 removed every call (especially the conditional ones) to prefs_safe().
7133 Before prefs_safe() was called _many_ times during Dia startup
7135 2003-07-18 Hans Breuer <hans@breuer.org>
7137 * app/makefile.msc lib/makefile.msc lib/libdia.def :
7140 * lib/color.c : use gtk_widget_get_default_visual();
7141 as suggested in #114536
7143 * app/interface.c app/disp_callbacks.c :
7144 moved round_up () to the latter file where it is used
7146 * app/linewidth_area.c : #include "interface.h" for
7147 interface_get_toolbox_shell()
7149 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
7151 * plug-ins/pixbuf/.cvsignore
7152 * shapes/Cisco/.cvsignore:
7155 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
7157 * app/dia-props.c (diagram_properties_retrieve): Use
7158 diagram_get_name() to add the diagram name to the diagram
7162 * app/diagram.c (diagram_get_name): New function to get a
7163 reasonable diagram name.
7165 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
7166 info. Still need to be able to set dynamic grid. Also ought to
7167 follow Gnome style and have instant apply.
7169 * app/preferences.h:
7170 * app/preferences.c (prefs_data): Remove option to use stippled
7171 grid, add option for major line offset. Default to 5 minor lines
7173 Add option for dynamically sized grid.
7175 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7177 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
7178 stippled/solid to display minor/major grid lines. Line drawing in
7179 separate functions away from calculating line distance.
7181 * app/grid.h: Split page break drawing out of grid_draw.
7183 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
7184 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
7185 when menu item is selected.
7187 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
7189 * configure.in: Removed -Winline flag to make way for important
7192 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
7193 non-compressed. Should fix bug #117381, also look prettier.
7196 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
7197 Set up desktop info more properly.
7199 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
7216 Autorouting directions patch from Krzysztof Foltman
7219 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
7220 GNOME parent menu items.
7222 * app/authors.h: Added Vadim to contributors list.
7224 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
7226 * app/commands.[ch]:
7227 * app/create_object.c:
7228 * app/disp_callbacks.[ch]:
7239 * objects/UML/large_package.c: Patch from Vadim Berezniker
7240 <vadim@berezniker.com>:
7241 Objects may "parent" other objects, i.e. contain them within
7242 themselves, restrain them and move them along. Some more stuff is
7243 needed, such as selection and individual unparenting. This adds
7244 parenting to UML - Large Package rather than Box.
7246 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
7248 * app/linewidth_area.c: Patch from Krzysztof Foltman
7249 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
7250 conform more, at least:).
7252 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
7253 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
7254 arcs. Implemented images (though there is some pixelization and
7255 banding in the output). Changed output file format to be a little
7258 * app/app_procs.c (app_exit): Added message for double exit, which
7259 shouldn't happen any more. Also preventing strange g_object_unref
7260 messages by having a printf after gtk_main_quit. This is really
7263 * app/interface.c (toolbox_delete): Avoid double app_exit call by
7264 removing handler for destroy when delete is called.
7266 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
7269 * app/display.c (ddisplay_scroll_to_object,
7270 ddisplay_scroll_center_point): New function for easy scrolling to
7273 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
7275 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
7276 $(srcdir) on stylesheets.xml.
7278 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
7279 diagram menus (since they're at the top by default now). Also
7280 move the Properties... menu item from Dialogs to Objects. Dialogs
7281 menu should disappear at some point.
7283 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
7284 ./configure from ./autogen.sh, as configure may need to be run
7285 from a different directory. (Also more standard this way.)
7287 * app/app_procs.c (app_init):
7288 * app/Makefile.am (INCLUDES): Gnome standardization patch from
7291 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
7293 * objects/flowchart/parallelogram.c (pgram_update_data):
7294 Left/right alignment for parallelograms. Doesn't use all
7295 available space, but then pgrams also ignore their shear value.
7296 This thing needs a loving hand.
7298 2003-07-01 Hans Breuer <hans@breuer.org>
7300 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
7301 * lib/proplist.c : don't complain if optional attr is missing
7302 * lib/orth_conn.h : make "orth_autoroute" optional to
7303 stop complaining with older files.
7305 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
7307 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
7309 2003-06-05 Andrew Halper <ashalper@cox.net>
7311 * app/diagram_tree.c : add scrolling of drawing area
7312 to desired object on "Locate". Patch modified to use new ddisplay
7313 function ddisplay_scroll_to_object().
7315 2003-06-11 Lars Clausen <lars@raeder.dk>
7317 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
7318 info. Before next version, the grid dialog (view dialog, really)
7319 must be redone to allow a) instant apply, b) apply to all
7320 diagrams, and c) setting colour, dynamic, major lines.
7322 * app/preferences.h:
7323 * app/preferences.c (prefs_data): Remove option to use stippled
7324 grid, add option for major line offset. Default to 5 minor lines
7326 Add option for dynamically sized grid.
7328 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7330 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
7331 stippled/solid to display minor/major grid lines. Line drawing in
7332 separate function away from calculating line distance.
7334 * app/grid.h: Split page break drawing out of grid_draw.
7336 2003-05-15 Hans Breuer <hans@breuer.org>
7338 * plug-ins/python/diasvg.py : add xlink definition,
7339 also avoid to put spaces into attribute values. At least
7340 Sodipodi doesn't like them in width/height attributes
7342 * plug-ins/python/diasvg_import.py : add simple scaling.
7343 Some (more) handling for <svg>, <desc>, <circle>
7345 * plug-ins/python/scascale.py : (new file) which does
7346 some experimental scaling via StdProp api
7348 * plug-ins/python/pydia-cpoint.c
7349 plug-ins/python/pydia-handle.c : return PyDiaPoint for
7350 obj.pos not simple tuples. PyDiaPoint has a tuple interface
7351 so this may even be api compatible ...
7353 2003-05-11 Hans Breuer <hans@breuer.org>
7355 * app/line_area.c : add window position persitence
7357 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
7358 'poly_points' via StdProp api
7359 * lib/neworth_conn.h : don't rely on OrthConn and
7360 NewOrtConn having the same struct offsets
7362 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
7363 to help separating 'useful' properies - in terms of
7366 * objects/custom/custom_object.c
7368 add the missing prop_desc_list_calculate_quarks to
7369 all the *_describe_props()
7371 * objects/standard/beziergon.c objects/standard/bezier.c :
7372 explicit initializtion of default_user_data
7373 * objects/standard/polygon.c objects/standard/polyline.c :
7374 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
7376 * plug-ins/python/diamodule.c : implement dia.register_import
7378 * plug-ins/python/makefile.msc : need to link with Pango
7379 for pango_color_parse()
7381 * plug-ins/python/pydia-property.c : add a bunch of type
7382 conversions to PyDiaProperty_ApllyToObject()
7384 * plug-ins/python/diasvg_import.py : (new file) which currently
7385 is mainly a stress test for PyDia but for some files already
7386 produces better results than svg-import.c
7388 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
7390 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
7391 type-less operations.
7393 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
7395 * configure.in(ALL_LINGUAS): Added "ms".
7397 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
7399 * plug-ins/xslt/xslt.c (xslt_ok):
7400 * plug-ins/shape/shape-export.c (new_shape_renderer):
7401 * plug-ins/svg/render_svg.c (new_svg_renderer):
7402 * plug-ins/hpgl/hpgl.c (export_data):
7403 * plug-ins/dxf/dxf-export.c (export_dxf):
7404 * plug-ins/metapost/render_metapost.c (export_metapost):
7405 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
7406 * plug-ins/xfig/xfig-export.c (export_fig):
7407 * plug-ins/wpg/wpg.c (export_data):
7408 * plug-ins/cgm/cgm.c (export_cgm):
7409 * app/render_eps.c (export_eps):
7410 * app/export_png.c (export_png_ok):
7411 * app/load_save.c (diagram_data_save): Adding and standardizing
7412 output file error messages to include fopen error message.
7414 2003-05-01 Steffen Macke <sdteffen@web.de>
7416 * app/persistence.c: do not use unistd.h for MSVC build
7418 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
7420 * sheets/Assorted.sheet.in
7421 * sheets/Circuit.sheet.in
7422 * sheets/Contact.sheet.in
7423 * sheets/EML.sheet.in
7424 * sheets/ER.sheet.in
7425 * sheets/Electric.sheet.in
7426 * sheets/FS.sheet.in
7427 * sheets/Flowchart.sheet.in
7428 * sheets/GRAFCET.sheet.in
7429 * sheets/Logic.sheet.in
7430 * sheets/MSE.sheet.in
7431 * sheets/Misc.sheet.in
7432 * sheets/Pneumatic.sheet.in
7433 * sheets/SADT.sheet.in
7434 * sheets/SDL.sheet.in
7435 * sheets/UML.sheet.in
7436 * sheets/chronogram.sheet.in
7437 * sheets/ciscohub.sheet.in
7438 * sheets/ciscomisc.sheet.in
7439 * sheets/cisconetwork.sheet.in
7440 * sheets/ciscorouter.sheet.in
7441 * sheets/civil.sheet.in
7442 * sheets/network.sheet.in
7443 * sheets/sybase.sheet.in:
7444 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
7445 standardizes shape descriptions to use no articles, no 'create
7448 * app/interface.c (tool_data): Standard objects follow same
7451 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
7453 * app/color_area.c (color_area_edit): More informative title on
7454 color selection dialog.
7456 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
7457 sensitivity when dropping object in. Also reset tool to pointer.
7459 * objects/flowchart/diamond.c (diamond_update_data):
7460 * objects/flowchart/parallelogram.c (pgram_update_data): Added
7461 left and right alignment options.
7463 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
7465 * objects/flowchart/box.c: Added left and right alignment options.
7467 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
7469 * app/persistence.c (persistence_load): Test existence of
7470 persistence file before trying to open it.
7472 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
7474 * app/properties.c: Escape now closes properties dialogs.
7476 2003-04-25 Hans Breuer <hans@breuer.org>
7478 * app/config.h.win32 : bump version to 0.91+cvs
7480 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
7482 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
7484 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
7487 * app/presistence.c : need to #include "dia_xml_libxml.h"
7490 * app/layer_dialog.c : make delayed creation work by protecting
7491 all non static layer_dialog_*() with :
7492 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
7493 create_layer_dialog();
7494 * app/app_procs.c : removed /* create_layer_dialog(); */
7496 * objects/uml/association.c : give it a minimal StdProp
7497 implementation to fix bug #108896
7498 * lib/object_defaults.c : don't try to copy props if there
7499 is no obj->ops->describe_props
7501 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
7503 * objects/standard/image.c (image_create):
7504 * objects/standard/ellipse.c (ellipse_create):
7505 * objects/standard/box.c (box_create):
7506 * objects/flowchart/ellipse.c (ellipse_create):
7507 * objects/flowchart/diamond.c (diamond_create):
7508 * objects/flowchart/box.c (box_create):
7509 * objects/custom/custom_object.c (custom_create):
7510 * objects/ER/relationship.c (relationship_create):
7511 * objects/ER/entity.c (entity_create):
7512 * objects/ER/attribute.c (attribute_create): Initialize
7513 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
7515 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
7519 * plug-ins/Makefile.am:
7520 * plug-ins/xslt/Makefile.am:
7521 * plug-ins/xslt/xslt.c (dia_plugin_init):
7522 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
7523 automake-style if to only include xslt dir when needed. Works
7524 with automake 1.4 and up, at least.
7526 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
7528 * lib/diasvgrenderer.c (draw_string):
7529 * lib/dia_svg.c (dia_svg_parse_style): Use
7530 text-anchor:(start|middle|end).
7532 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
7533 polygon rather than polyline & avoid missing line pieces.
7534 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
7535 black-filled things.
7537 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
7539 * app/persistence.c (persistence_load): Check that persistence
7540 file exists before trying to read it.
7541 (persistence_update_window): Removed printf.
7543 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
7545 * lib/autoroute.c: Take badness into the layouters again, as some
7546 of them know they can do things that are pretty but would be
7547 counted as ugly by the default calculation.
7549 * objects/UML/large_package.c: Shrink package name box when no
7550 stereotype is present.
7552 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
7553 * lib/orth_conn.c: Added object menu item for autorouting.
7555 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
7556 Autorouting, plus set initial dragging handle to be the end, not
7558 (orthflow_draw): Flipped arrow place to be at the end, as
7559 originally intended (got lost in arrow update).
7561 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
7562 * objects/UML/dependency.c (dependency_get_object_menu):
7563 * objects/UML/association.c (association_get_object_menu):
7564 * objects/UML/realizes.c (realizes_get_object_menu):
7565 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
7566 * objects/GRAFCET/vector.c (arc_get_object_menu):
7567 * objects/ER/participation.c (participation_get_object_menu):
7568 * objects/EML/instantiation.c (instantiation_get_object_menu):
7569 * objects/UML/generalization.c (generalization_get_object_menu):
7570 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
7571 Autorouting setup (currently disabled for SADT/arrow).
7573 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
7575 * lib/autoroute.c: Removed printfs.
7578 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7579 non-connected orthconns too.
7581 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
7584 * lib/orth_conn.c: Function to set autorouting on/off, use
7585 autorouting in move_handle (turns off when a middle handle is
7586 moved), added to standard orthconn props.
7588 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7589 Stopped signal emission for check menu items being set to on/off.
7591 * objects/standard/zigzagline.c: Added autorouting object menu item.
7593 * lib/autoroute.c: Added last cases of autoroute layout, fixed
7594 floating point comparison bug, cleaned up layouters, tweaked
7595 badness to allow kinks.
7597 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
7599 * lib/connectionpoint.h: Changed DIR_* macros to go around the
7602 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7604 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7605 old cruft, added call to autoroute (currently cannot be turned
7606 off). Need to check what undo thinks about this.
7607 * lib/autoroute.[ch]: Fairly working simple layout.
7609 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7610 * lib/autoroute.[ch]: Start of proper autorouting functionality.
7612 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
7614 * lib/prop_widgets.c: Show labels on ListProp.
7616 2003-04-11 Steffen Macke <sdteffen@web.de>
7618 * doc/en/dia-manual.xml: removed reference of non-existing authors
7620 * doc/en/usage-objects-selecting: commented out misleading section
7623 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
7625 * app/app_procs.c (app_init): Layer window now opened at startup
7628 * lib/prop_widgets.c: Show labels on ListProp.
7630 2003-04-09 Steffen Macke <sdteffen@web.de>
7632 * doc/en/*.sgml: removed files
7633 * doc/en/*.xml: added files
7634 * doc/en/Makefile.am: switched to XML DocBook
7636 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
7638 * plug-ins/xslt/xslt.c (dia_plugin_init):
7639 * configure.in: Added --with-xslt-prefix to allow other XSLT
7640 placements than /usr/lib.
7642 2003-04-09 Steffen Macke <sdteffen@web.de>
7644 * lib/makefile.mingw: updated to include latest files, including
7646 * lib/geometry.h: don't define isinf and finite for mingw gcc build
7648 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
7650 * app/persistence.h:
7651 * app/persistence.c (persistence_register_window_create):
7652 * app/app_procs.c (app_init):
7653 Register window function that doesn't create the window unless it
7654 should be open. Other windows should move to this, so startup
7655 speed can be reduced.
7657 * app/persistence.h: Removed call prototype for update_window, now
7659 * app/persistence.c (persistence_register_window): A number of
7660 fixes. Doesn't forget position when window is closed. Now
7661 actually loads prefs.
7663 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7666 * app/preferences.c (prefs_data):
7667 * app/diagram_tree_window.h:
7668 * app/diagram_tree_window.c: Added persistence registering.
7669 Removed prefs items storing size and openness.
7671 * app/sheets_dialog.c (create_sheets_main_dialog): Added
7672 persistence registering.
7674 * app/Makefile.am (dia_core_files): Added persistence files.
7677 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7678 that dirs are present.
7680 * app/app_procs.c (app_init): Loads persistent values on startup.
7681 (app_exit): Saves persistent values on exit.
7683 * app/layer_dialog.c (create_layer_dialog): Registers the layer
7684 window for persistence.
7686 * app/persistence.[ch]: New files handling various kinds of
7689 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
7691 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7692 head spacing calculations. Added half-circle arrow from Matthieu
7693 Sozeau <mattam@netcourrier.com>
7695 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
7697 * app/app_procs.c (app_init): Moved layer dialog init to allow
7698 tooltips to be initialized.
7700 * app/interface.c (create_display_shell): More tooltips.
7702 * app/linewidth_area.c (linewidth_area_create)
7703 (linewidth_area_events):
7704 * app/color_area.c (color_area_events, color_area_create):
7705 Made tooltips work by embedding drawing_area in event_box.
7707 * app/interface.c (create_display_shell,
7708 (create_lineprops_area, create_color_area): Added a few tooltips.
7710 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
7712 * app/pixmaps/off-grid.xpm:
7713 * app/pixmaps/on-grid.xpm:
7714 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7717 * app/commands.c (view_snap_to_grid_callback):
7718 * app/display.c (ddisplay_set_snap_to_grid)
7719 (update_snap_grid_status):
7720 * app/interface.c (create_display_shell, grid_toggle_snap):
7721 Added snap-to-grid status button.
7723 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
7725 * app/app_procs.c (app_init): Create a new diagram if a file on
7726 the command line isn't found.
7728 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
7730 * lib/dialibartrenderer.c (draw_string): Correct color handling
7733 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
7736 * doc/en/dia-manual.sgml:
7737 * doc/pl/dia-manual.sgml:
7739 * dia.spec (Release):
7740 Version 0.91 is here!
7742 2003-02-10 Steffen Macke <sdteffen@web.de>
7744 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
7745 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7746 non-ANSI characters, closes #107980
7748 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
7752 * dia.spec (Release):
7753 * doc/en/dia-manual.sgml: Upping to pre6.
7755 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7757 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7758 #107511: Make arrow selector for correct arrow type.
7760 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
7762 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7765 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
7767 * doc/en/dia-manual.sgml:
7770 * dia.spec (Release): Upping to pre5.
7772 * configure.in: Add freetype-config derived libs to the
7773 AC_CHECK_LIB statement for freetype.
7775 2003-02-28 Hans Breuer <hans@breuer.org>
7777 [fix for bug #107203]
7779 * lib/diarenderer.c : add warning 'implementation'
7780 for fill_rect to avoid crashing with a renderer
7781 which does not implement this required function.
7783 * plug-ins/dxf/dxf-export.c : provide - still empty -
7784 'implementations' for fill_rect and fill_polygon
7785 to suppress the above warnings. Now it works like
7788 2003-02-28 Steffen Macke <sdteffen@web.de>
7790 * samples/all_objects.dia: New sheet containing all dia shapes
7791 and objects; one layer per sheet
7793 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
7795 * lib/prop_text.c (multistringprop_get_widget,
7796 multistringprop_reset_widget, multistringprop_set_from_widget):
7797 Now uses GtkTextView instead of deprecated stuff, and also works:)
7799 * configure.in: Slightly more informative error message for isinf.
7801 * dia.spec (Requires): Require libxml2 rather than libxml.
7803 2003-02-28 Steffen Macke <sdteffen@web.de>
7805 * shapes/Circuit/hjumper.png:
7806 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7809 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
7811 * doc/en/dia-manual.sgml:
7813 * dia.spec (Release):
7814 * NEWS: New prerelease 0.91pre4, two important fixes.
7816 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
7818 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7821 * app/commands.c (help_manual_callback): More correct URL for help
7822 page (include file://, was broken on Dillo without it).
7824 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
7826 * app/disp_callbacks.c: Set modifed when text is changed.
7828 * app/modify_tool.c (modify_button_release): Allow undo for moving
7831 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
7834 * doc/en/dia-manual.sgml:
7836 * configure.in: New prerelease with important bugfix.
7837 * shapes/network/digitizing_board.png:
7838 * shapes/network/plotter.png: Re-adding with -kb.
7840 2003-02-17 Abel Cheung <maddog@linux.org.hk>
7842 * app/app_procs.c (app_init): Add comment for translators.
7844 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
7846 * lib/filter.c (filter_register_import, filter_register_export):
7847 Don't accept filters with NULL description.
7849 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7850 (as we assume the description is available in other places).
7852 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
7854 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
7855 * app/display.c (ddisplay_resize_canvas): Use
7856 ddisplay_add_update_all().
7857 (ddisplay_add_update_all): Free display and update lists when
7858 doing update_all, as they'll be regenerated immediately to cover
7859 all visible area. Fixes bug #106165, crash when resizing. This
7860 appears to be the original AA crash bug, believed long extinct.
7862 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
7864 * app/commands.c (help_manual_callback): Use file: protocol for
7867 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7869 * plug-ins/xslt/stylesheets: Removed old-style config file.
7871 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7873 * plug-ins/xslt/Makefile.am:
7874 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7875 handling (no more DIA_PLUGIN_PATH).
7877 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
7879 * plug-ins/svg/render_svg.c:
7880 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7882 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
7884 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
7885 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
7886 side of the triangle is longer than the hypotenuse. Rounding
7889 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
7893 * doc/en/dia-manual.sgml: Update for pre2.
7895 * app/menus.c (display_menu_items): Fixed wrongly place separators.
7897 * objects/flowchart/box.c (box_update_data): Applied patch from
7898 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7901 * app/paginate_psprint.c (print_page): Set paper name, so it
7902 convinces ps printers to use to right size.
7904 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
7906 * app/properties.c (properties_show): Hide the dialog if the
7907 object is NULL (get rid of 'no properties' randomly popping up).
7909 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
7911 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7912 for diagrams not starting at origo.
7914 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
7916 * dia.spec (BuildRequires): Use libxml2-devel.
7918 * plug-ins/pixbuf/Makefile.am: Added to CVS.
7920 * RELEASE-PROCESS: Note on RPM version numbers.
7922 * app/interface.c (create_display_shell): Don't set as toolbar
7923 under Unix, either. Especially not the diagram shell. It removes
7924 it from the taskbar and makes it unresizable, always-on-top with
7925 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
7926 appropriate thing, UTILITY, is not good either, you lose resizing
7927 and minimizing/maximizing under OpenBox.
7929 * app/menus.c (display_menu_items): Set delete item to use Delete.
7931 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
7933 * dia.spec (BuildRequires, Requires): Updated for Gtk2
7936 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7937 display flush when getting focus in, or we may get an update after
7938 the diagram has been destroyed in some cases. Fixes bug #105221.
7940 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7942 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7944 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7945 - gnome-compiled Dia will now read files specified on the command line.
7947 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
7949 * INSTALL (REQUIREMENTS): Updated requirements section.
7951 * configure.in: Better finite() check from MÃ¥rten Svantesson
7952 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
7955 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
7957 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7959 * app/app_procs.c (debug_break): Added some code to avoid
7960 over-eager optimizations removing the call. Surely there's a
7961 nicer way, but I'm not sure how.
7963 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7964 that set text to black.
7966 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
7968 * NEWS: Mention of Twiki as doc source for Python.
7970 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7971 libart/libpng is not available. Later when we have a way of
7972 letting the user pick options in the file select dialog we shall
7973 allow the choice when applicable.
7975 2003-02-02 Steffen Macke <sdteffen@web.de>
7977 * doc/en/usage-loadsave.sgml:
7978 * doc/en/usage-objects.sgml: patch from
7979 James K. Lowden <jklowden@schemamania.org> to fix
7982 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
7984 * plug-ins/Makefile.am (SUBDIRS):
7985 * plug-ins/pixbuf/pixbuf.c:
7986 * plug-ins/pixbuf/Makefile.am:
7988 Added pixbuf plugin to Makefile.am, but for import only. PNG
7989 export handled by libart, which is better. JPG export is
7990 discouraged. BMP is not much used on Unix. Next release will
7991 integrate libart to allow all outputs.
7993 2003-02-01 Hans Breuer <hans@breuer.org>
7995 * app/preferences.c :
7997 the last two dialogs with 'old' button order finally
7998 are converted to gtk2, no GnomeDialog in all of Dia
8001 2003-02-01 Hans Breuer <hans@breuer.org>
8003 * app/filedlg.c : don't try to use a button as
8004 'overwrite-file-dialog'-parent, use the FileSelDialog
8007 * plug-ins/pixbuf/pixbuf.c : make it work with
8008 system-visual-depth < 24. Remove 'bmp' from output
8009 format extensions, it just was wishful thinking.
8011 * plug-ins/python/Makefile.am : added the four new python
8012 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
8014 2003-02-01 Hans Breuer <hans@breuer.org>
8016 * NEWS : updated content beside dependencies
8018 2003-02-01 Hans Breuer <hans@breuer.org>
8020 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
8021 to make it useable across DLL boundaries
8022 * app/lineprops_area.c : same code to access arrow_types
8025 * objects/UML/class.c : the non empty string is e.g.
8026 comment != NULL && comment[0] != '\0'
8027 * objects/UML/uml.c : same here, don't bother with
8028 empty operation stereotypes
8030 2003-02-01 Steffen Macke <sdteffen@web.de>
8032 * app/lineprops_area.c: latest changes do not work on
8033 windows, using old code without tooltips
8034 * makefile.msc: fixed copying of wmf.dll
8035 * plug-ins/makefile.msc:
8037 * lib/makefile.msc: now linking libintl
8038 * config.h.win32: enabling native language support
8040 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
8042 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
8043 -ldl and -lglib. May or may not work on windows...awaiting verdict.
8045 2003-01-31 Daniel Yacob <locales@geez.org>
8047 * configure.in: Added am (Amharic) to ALL_LINGUAS.
8049 2003-01-31 Steffen Macke <sdteffen@web.de>
8051 * objects/UML/class.c (umlclass_calculate_data): fixed crash
8052 when comments were visible, no class comment available and
8055 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
8057 * RELEASE-PROCESS: Updated to fit new install-module syntax.
8058 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
8061 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
8067 Prerelease version changes, version 0.91-pre1.
8069 * app/sheets_dialog_callbacks.h:
8070 * app/sheets_dialog_callbacks.c:
8071 * app/sheets_dialog.c (create_sheets_main_dialog):
8072 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
8073 to handle destruction of main dialog cleanly, but it's a mess.
8075 * configure.in: Downgraded ieeefp test to make it not produce
8078 * lib/widgets.c (dia_arrow_selector_set_arrow):
8079 (dia_line_style_selector_set_linestyle): Select menu dot
8082 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
8083 adjustment for diamondheads.
8085 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
8087 * app/properties.c (create_dialog): Destroy properties dialog and
8090 * app/sheets_dialog_callbacks.c
8091 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
8092 if the old one is destroyed.
8094 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
8096 * app/export_png.c (export_png_ok): Added info on resolution.
8097 Should (next release) improve export dialog to allow setting
8098 resolution instead of pixels.
8100 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
8101 to generate arrowheads as well as tooltips.
8103 * lib/arrows.c: Added hollow diamond to menudesc list.
8106 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
8107 unify with rendered menu.
8109 * lib/diarenderer.c (draw_line_with_arrows)
8110 (draw_polyline_with_arrows, draw_arc_with_arrows)
8111 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
8112 without changing renderer API. Thanks to David Scherba for
8113 providing inspiration.
8115 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
8117 * app/interface.c (create_display_shell):
8118 * app/display.h: Patching from Hubert Figuiere
8119 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
8122 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
8124 * app/defaults.c (defaults_show): Fixed defaults closing bug.
8125 Thanks to Hans for pointing it out.
8127 2003-01-25 Hans Breuer <hans@breuer.org>
8129 * app/commands.c : don't warn about crashing libart renderer
8130 on win32. It simply doesn't render text anymore :-(
8132 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
8134 * objects/UML/class.c : don't access umlclass->properties_dialog
8135 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
8136 which sets the former to NULL by destroy_properties_dialog() callback.
8138 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
8140 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
8142 * plug-ins/python/pydia-image.c : add image.uri member
8143 not only useful for SVG rendering
8145 * plug-ins/python/diasvg.py : (new file) a more advanced
8146 example. A full blown SVG Renderer, currently only
8147 registered for .svgz
8149 * plug-ins/python/export-object.py : write text props
8151 * plug-ins/python/debug_objects.py : write prop.type and
8154 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
8156 * objects/UML/association.c (association_update_data): Better
8157 bounding box for assoc with arrows.
8159 * lib/properties.h: New flag for properties with multiple values
8162 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
8163 arrow updating in dialog. Was broken due to changes from destroy
8166 * app/commands.c (view_aa_callback): AA warning only for Windows
8167 -- I trust the Unix side well enough.
8169 * app/render_libart.c (get_text_width):
8170 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
8171 font height can be taken from parent instance.
8173 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
8174 (get_text_width): Proper cursor positioning for libart renderer.
8175 Ought to have a DiaInteractiveRenderer that these two can inherit
8176 from, that knows about transform.
8178 2003-01-25 Steffen Macke <sdteffen@web.de>
8180 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
8181 plug-in still not working on win32
8183 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
8185 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
8186 gdk_window_get_pointer to avoid destroy crash. Simpler than I
8189 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
8191 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
8192 bail out on gtk options.
8194 * lib/message.c (gtk_message_internal): Better handling of destroy
8197 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
8199 * app/color_area.c (color_area_edit):
8200 * lib/widgets.c (dia_file_selector_browse_pressed)
8201 (dia_color_selector_pressed):
8202 * app/plugin-manager.c (get_plugin_manager):
8203 * app/filedlg.c (file_open_callback, file_save_as_callback)
8204 (file_export_callback):
8205 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
8206 handling of destroy event.
8208 2003-01-22 Alan Horkan <horkana@tcd.ie>
8210 * app/commands.c (file_new_callback): Changed Untitled to Diagram
8213 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
8215 * app/preferences.c (prefs_create_dialog):
8216 * app/linewidth_area.c (linewidth_create_dialog):
8217 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
8218 * app/layer_dialog.c (create_layer_dialog)
8219 (layer_dialog_edit_layer): Correct handling of destroy signal.
8221 * app/diapsft2renderer.c (set_font): Adjust silly random factor
8222 for change in font.c
8224 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
8226 * lib/font.c (dia_font_build_layout): Let's all use the same weird
8229 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
8230 * app/layer_dialog.c (create_layer_dialog)
8231 (layer_dialog_edit_layer):
8232 * app/filedlg.c (file_open_callback, file_save_as_callback)
8233 (file_export_callback):
8234 * app/dia-props.c (create_diagram_properties_dialog):
8235 * app/defaults.c (defaults_dialog_destroyed):
8236 * app/color_area.c (color_area_edit): Dialog destroy event handling.
8238 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
8240 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
8241 defaults dialog destroyed.
8243 2003-01-19 Steffen Macke <sdteffen@web.de>
8245 * objects/makefile.msc: added bondgraph
8246 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
8247 to compile pixbuf.dll
8248 * makefile.msc: copying all objects and dlls now
8250 2003-01-19 Hans Breuer <hans@breuer.org>
8252 * app/diagram.[hc] : provide dia_open_diagrams(), make
8253 open_diagrams variable static
8254 * app/dia.def : export it (to be used by PyDia)
8255 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
8256 app/display.c app/dynamic_refresh.c app/layer_dialog.c
8257 app/load_save.c : make use of dia_open_diagrams()
8259 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
8260 on win32. It removes the diagram window from the taskbar and
8261 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
8263 * app/menus.c : add '...' to menu entries where a dialog
8265 * app/recent_files.c app/dia_embedd.c : reflect the above in
8266 menus_get_item_from_path() calls
8268 * lib/libdia.def : add dia_image_rgba_data
8270 * lib/properties.h lib/prop_text.[hc] : add new property
8272 * objects/UML/class.[hc] object/UML/class_dialog.c : use
8273 StringList for attributes_strings and operations_strings to
8274 make this calculated data accessible via the Property API
8276 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
8277 provide dia.new() to create a new diagram, dia.registered_types()
8278 to get on Dia's type registry, dia.message() for simple dialogs
8280 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
8281 to create a new display from a diagram. Let diagram.extents and
8282 diagram.bg_color return the same types as in diagramdata.*
8284 * plug-ins/python/pydia-geometry.c : add a read-only
8285 'sequence interface' to DiaPoint and DiaRectangle
8287 * plug-ins/python/pydia-property.c : allow to get on StringList
8290 * plug-ins/python/pydia-render.c : fix typo to make it compile
8292 * plug-ins/python/python-startup.py : removed 'import pygtk'
8293 again. This file does not need any gtk UI, and some python
8294 plug-ins don't do either
8296 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
8297 it should actually work as intended again
8299 * plug-ins/python/group_props.py : (new file) a prototype for
8300 one the most requested features: Change properties of selected
8301 objects in one step. Requires pygtk.
8303 * plug-ins/python/select_by.py : (new file) select objects by
8304 common properties. Requires pygtk.
8306 [Start of 'PyDia Self Documentation Series']
8308 * plug-ins/python/pydiadoc.py : (new file) generates a new
8309 diagram which contains all objects of dir(dia)
8311 * plug-ins/python/otypes.py : (new file) generates a new diagram
8312 which contains all the currently registered object types sorted
8313 by their containing package
8315 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
8317 * configure.in: Added check for Pango >= 1.1.5, which appears to
8318 be enough to have text work.
8319 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
8320 do it. AC_SUBST should be idempotent, though.
8322 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
8324 * configure.in (HAVE_FREETYPE): Better test for freetype version
8326 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
8328 * lib/font.c: Renamed global_size_one to global_zoom_factor to
8329 avoid confusion, and added comment. Set scale factor in
8330 dia_font_build_layout to 1.0 for Unix side. This fixes at least
8331 my weird scaling problems. Fonts are now of the expectable size,
8332 i.e. the space between lines at size 1.0 is 1.0. If we want a
8333 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
8334 diagrams, though there will always be differences.
8336 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
8338 * plug-ins/python/python-startup.py:
8339 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
8341 * plug-ins/python/python.c (dia_plugin_init): Added warning
8342 message for missing startup file.
8344 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
8346 * lib/dia_image.c (dia_image_rgb_data):
8347 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
8348 involving EPS. Can't do transparency in EPS yet.
8351 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
8352 data as one chunk. Documentation for the RGB data getting funcs.
8353 (dia_image_rgb_data): Added comment.
8355 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
8358 2003-01-13 Steffen Macke <sdteffen@web.de>
8360 * lib/dia_image.c: dia_image_rgb_data() is working for
8361 non-alpha images now. Fixes #93762
8362 * Makefile.am: added makefile.msc to EXTRA_DIST
8364 2003-01-10 Steffen Macke <sdteffen@web.de>
8366 * app/paginate_psprint.c: Closing print dialog when file
8367 could not be written. Fixes #84746
8369 2003-01-04 Steffen Macke <sdteffen@web.de>
8371 * doc/custom-shapes: incomplete description of <svg:text>
8373 2003-01-03 Steffen Macke <sdteffen@web.de>
8375 * makefile.msc(new): new makefile to create file
8376 structure suitable for running dia win32 under
8377 $(TOP)/dia/build/win32
8379 2003-01-02 Steffen Macke <sdteffen@web.de>
8381 * lib/dia_svg.c: including stdlib.h
8382 * lib/makefile.msc: added gdk_pixbuf libs to linker
8383 * app/makefile.msc: added gdk_pixbuf libs, made libart
8384 libs compatible with gnuwin32 package
8386 2003-01-01 Hans Breuer <hans@breuer.org>
8388 * lib/font.c : more comment about global_size_one
8390 * app/menus.c : <control>[<shift>]A for plain gtk build too.
8392 * plug-ins/wmf/wmf.cpp : some type juggling to make
8395 2002-12-31 Steffen Macke <sdteffen@web.de>
8397 * app/makefile.msc: added hint on how to enable console output
8399 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
8401 * objects/standard/textobj.c (textobj_load): Get the handle type
8402 right, at least to be the same as when created.
8404 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
8406 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
8408 2002-12-08 Hans Breuer <hans@breuer.org>
8410 * app/commands.c : fixed bug #85315 'give diagram properties,
8411 instead of no object selected error' almost a one-liner
8413 * app/splash.c : don't make having the logo pixmap
8414 mandatory. Fixes bug #96068.
8416 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
8417 sequence by connecting to the "delete_event"
8418 * app/objects/uml/class_dialog.c : handle "destroy" for
8421 * lib/libdia.def : remove diaXmlNewChild again
8423 * app/paginate_gdiprint.cpp : reflect Dia's page setting
8424 portrait/landscape in the windoze print dialog
8426 * objects/makefile.msc : only UML needs to link against
8427 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
8429 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
8431 * objects/standard/ellipse.c (ellipse_distance_from):
8432 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
8433 correct distance function. Could be faster, but it's not really
8436 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
8438 * lib/font.c: Changed global_size_one to more correct 28.35.
8443 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
8446 2002-12-07 Hans Breuer <hans@breuer.org>
8448 * lib/widgets.c : g_file_get_contents() silently assumes
8449 a binary file. Reflect when creating the font_menu file
8450 to get rid of junk in font menus
8452 2002-12-06 Hans Breuer <hans@breuer.org>
8454 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
8455 removed 0xD 0xD 0xA line ends which get created by
8456 cvs if windoze line ends 0xD 0xA are checked in from
8457 *nix and checked out on win32.
8459 * app/preferences.c : changed toolbox_on_top default to
8460 false. It is currently not possible to change the behaviour
8461 at runtime, at least not on win32.
8463 * lib/dialibartrenderer.c : bug #94791 'rendering to
8464 bitmap without PangoFt2' got delayed to milestone future
8465 so wrap libart text rendering into PANGO_WIN32_FUTURE.
8466 It is not available without my Pango patch in bugzilla.
8468 * lib/font.c : added comment to global_size_one and adapt
8469 the arbitrary size scaling in dia_font_build_layout() for
8470 win32, too. This is needed to get an acceptable font size
8471 approximation for Dia 0.90 and earlier files.
8472 Also #include "message.h".
8474 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
8475 reflect movement of group.[hc]
8476 * lib/group.h : export group_type which gets used by app/*
8478 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
8479 to get the GtkTypeInfo definition
8481 * plug-ins/makefile.msc : dxf and xfig don't need to link
8482 against app/ anymore now that group is moved to lib/
8484 * plug-ins/python/pydia-render.c : remove massive leaking
8485 of self, i.e. PyDiaRenderer
8487 * plug-ins/python/makefile.msc : remove linking against
8490 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
8492 * objects/standard/line.c: Removed properties options for gaps,
8493 until release is done.
8495 * configure.in: Check for freetype version.
8497 * lib/text.c (text_insert_char): Fixed small buffer overflow for
8500 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
8502 * app/diapsft2renderer.h:
8503 * app/diapsft2renderer.c:
8504 * app/diapsrenderer.h:
8505 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
8507 * app/render_eps.c (export_eps, new_psprint_renderer): Using
8508 PS_FT2 renderer when available. Old render stuff killed. Yay!
8510 * lib/properties.h: Fixed bad frame end def.
8512 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
8514 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
8516 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
8518 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
8520 * lib/font.c: Now checking for the proper dia-style standard fonts.
8523 * app/Makefile.am: Moving group.[ch]
8525 * plug-ins/dxf/dxf-import.c:
8526 * plug-ins/xfig/xfig-import.c:
8527 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
8531 * lib/object.c (object_list_move_delta, object_copy_list):
8532 * lib/object.h: Moved some object-related functions from
8533 object_ops to object to assist moving group.c.
8535 * lib/diatypes.h: Added Group typedef.
8538 * lib/group.c: Moved from app to lib to a) resolve plug-ins
8539 references, and b) make groups more "real" objects.
8541 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
8543 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
8545 * lib/font.c (dia_font_init): Added check that the three standard
8548 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
8551 * app/load_save.c: Linebreaks in dia files, no indentation.
8552 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
8555 * objects/standard/line.c: Small but important fixes to the line
8559 * lib/dia_xml.c (diaXmlNewChild):
8560 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8561 XML prettyprinting wrapper.
8563 2002-12-03 Steffen Macke <sdteffen@web.de>
8565 * shapes/Cisco/Makefile.am:
8566 * shapes/Cisco/*.shape: finished conversion of Cisco icons
8569 2002-12-02 Steffen Macke <sdteffen@web.de>
8571 * doc/en/Makefile.am:
8572 * doc/en/usage-objects.sgml:
8573 * doc/en/graphics/line_icon.png: (new) added line icon
8575 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
8577 * objects/standard/line.c: Binary search object edge line gap.
8579 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
8581 * configure.in: Added Cisco makefile, sorted Makefiles list.
8583 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8585 * configure.in: Now checks for availability of PangoFT2 and
8586 FreeType, raising an error if not found.
8588 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8591 2002-12-01 Steffen Macke <sdteffen@web.de>
8593 * doc/en/usage-loadsave.sgml: updated information on import
8596 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
8598 * app/commands.c (edit_copy_callback): Freeing copy_list.
8600 2002-11-28 Steffen Macke <sdteffen@web.de>
8602 * app/render_libart.c: art_config.h was included twice
8604 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
8606 * sheets/.cvsignore: More ignorance.
8608 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8610 * lib/prop_widgets.h: Two (currently unused) settings for frame
8613 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8614 (by default) foldable.
8616 * lib/propinternals.h:
8617 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8618 widgets in a more controlled manner.
8620 * objects/standard/line.c (line_update_data): Line gap things
8621 inserted. Can do xeyes now:)
8623 2002-11-26 Christian Neumair <chris@gnome-de.org>
8625 * .cvsignore: Changed.
8626 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8627 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8630 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8632 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8634 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8635 passing to font hash.
8637 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8638 utf-8 or locale-convertible before adding to dialog text. This
8639 probably needs done in a number of places where we get text from
8640 the environment and send it to GTK to display.
8642 * lib/widgets.c: Fixed case problems for font menu entries.
8644 * objects/SADT/annotation.c: Don't run the event test (but leave
8645 it here for inspiration).
8648 * lib/widgets.h: Allowing setting preview text for fonts.
8650 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8652 * objects/bondgraph/Makefile.am:
8653 * objects/bondgraph/bondgraph.c:
8655 * objects/Makefile.am: Added bond graph dir.
8657 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8659 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8661 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
8663 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8666 * app/diapsrenderer.c: Freetype rendering is back in force.
8668 * app/disp_callbacks.c: Added missing updates for pre-text-change.
8670 2002-11-25 David Hoover <jazzdaq@yahoo.com>
8672 * app/render_libart.c: Added missing #include line for libart.
8675 * lib/geometry.c: Added point_convex function. This computes
8676 points inside a line segment (0 <= alpha <= 1) or outside the
8677 line segment (alpha < 0 | alpha > 1).
8679 * objects/standard/line.c: Line now has additional code/attributes
8680 which permit the line to extend past the line anchors (gap < 0) or
8681 leave a gap without reaching the anchor (gap > 0). If no gap is
8682 specified, the default gap of 0 will result in identical line
8683 behavior as before. If the 'fractional' attributes are TRUE, the
8684 gap length is not fixed, but a percentage of the line length. I
8685 did not know how create the GTK widgets so the gap code currently
8686 cannot be used without adding XML attributes by hand.
8688 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
8690 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8692 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8694 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
8696 * lib/font.c: Debugging functionality in separate functions.
8698 * lib/widgets.c: Using fontsel with context.
8700 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8702 * objects/custom/custom_object.c: Orientation handling for shapes,
8703 patch thanks to Martin Hans <opfinder@gmx.net>.
8705 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8706 work on even better orientation handling.
8708 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8709 casting NULL pointers. Should be unnecessary in an upcoming GTK
8712 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
8716 * lib/widgets.c: Now uses correct context to get font families.
8718 * lib/diagdkrenderer.c (get_text_width, draw_string):
8719 * lib/dialibartrenderer.c (draw_string):
8721 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8722 (dia_font_build_layout): Unified the twiddle factors into a use of
8723 global_size_one. But I deeply distrust Pango for seeming to
8724 change size of fonts every time I turn my back.
8729 * app/menus.h: Updated some more methods to also be more specific
8733 * app/recent_files.c:
8734 Changed to return most specific type, to avoid run-time type errors.
8736 * app/menus.c (menus_get_item_from_path): Non-gnome version now
8737 gets menu_item rather than widget, which works better.
8739 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
8741 * app/display.c: (new_display):
8742 * app/menus.c: (menus_get_item_from_path):
8743 Relying on the tearoff to locate the input methods menu wasn't a
8744 good idea: tearoffs seem to be an endangered species nowadays.
8745 Anyway, the IM menu seems to be working now.
8747 * app/interface.c: hinted the window manager that the toolbox window
8748 is a toolbox window. Not that my (fairly default configuration)
8749 sawfish cares, but other NETWM compliant WMs may.
8756 * app/layer_dialog.c:
8757 * app/linewidth_area.c:
8759 * app/sheets_dialog.c:
8762 The GTK doc says to avoir gtk_window_set_wmclass() and
8763 gtk_window_set_policy(), and use gtk_window_set_role() and
8764 gtk_window_set_resizable(), respectively.
8766 * app/preferences.c: (prefs_create_dialog):
8767 * app/preferences.h:
8768 * app/display.c: (display_set_active):
8769 Added a preference to have the toolbox hover over diagram windows.
8771 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
8773 * lib/diagdkrenderer.c (get_text_width, draw_string):
8774 Freetype-based string drawing now works. Not very fast, though.
8775 I wish I could use the graphics card for this:( I'm doing three
8776 bitmap loops where I should be doing one. The size is not correct
8777 either, despite having get_text_width give the right thing.
8779 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
8781 * app/connectionpoint_ops.c (diagram_update_connections_object):
8782 Allows more than one connectionpoint on an object to be moved at a
8785 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
8787 * configure.in: Added cs to ALL_LINGUAS.
8789 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
8791 * app/paginate_psprint.c: Removed unnecessary decl of autosave
8794 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8796 * app/export_png.c (export_png_ok): Saving more variables from the
8799 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
8801 * lib/dialibartrenderer.c (begin_render):
8802 (end_render): Correct pushing and popping of font contexts.
8803 (draw_string): Double zooming eliminated, strange twiddle factor
8804 introduced (grumble). Close to working now, but there are still
8805 strange differences from font to font. In particular, some fonts
8806 really mess with the cursor and extents.
8808 * app/render_eps.c (export_eps):
8809 * app/diapsrenderer.c (dia_ps_renderer_finalize):
8810 Fixed file closing confusion, no longer dependent on PS/EPS.
8812 * app/diagram.c (diagram_place_down_selected)
8813 (diagram_place_up_selected): Now implemented.
8815 * lib/font.c (dia_font_init):
8817 Redesigned the font init/context pushing code. Start of fix for
8818 font name differences.
8820 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
8822 * app/sheets_dialog_callbacks.c: Fix a typo.
8824 2002-10-15 Hans Breuer <hans@breuer.org>
8826 * app/diapsrenderer.[hc] : (new files, old content :-)
8827 simple base class for post script rendering. Does neither
8828 use Pango/FT2 nor does it handle non latin1 characters.
8829 The fancy stuff which nowadays appears to be needed should
8830 probably be done in derived class(es)
8832 * app/makefile.msc app/Makefile.am : added new files
8834 * app/paginate_psrint.c : re-enabled and used as test
8835 for the simple ps renderer above.
8837 * app/render_eps.[hc] : ripped out common ps code and
8838 moved to DiaPsRenderer. The rest of the file is mostly
8839 disabled. And I don't understand enough of it to
8842 * app/diaepsrenderer.h : short lived, removed.
8844 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
8846 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8847 as a plugin (thanks to Torben Nielsen).
8849 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
8851 * app/diaepsrenderer.h:
8853 * app/paginate_psprint.c:
8854 #ifdef'd out enough ps stuff to allow compile. Now we just need
8857 2002-10-12 Hans Breuer <hans@breuer.org>
8859 [last plug-in ported]
8861 * plug-ins/xfig/xfig-export.c : ported to new renderer api
8863 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8864 scale color values to [0..1.0] to properly reconstruct
8867 * plug-ins/xfig/xfig-common.c : some cleaning
8869 2002-10-12 Hans Breuer <hans@breuer.org>
8871 [decrease inter-plug-in-dependencies]
8873 * objects/custom/shape_info.[hc] : move parse_style()
8874 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8875 the related structs and constants.
8876 * objects/custom/custom_object.c : reflect namespace
8879 * lib/dia_svg.[hc] : new files
8880 * lib/makefile.msc lib/Makefile.am : add new files
8881 * lib/libdia.def : updated externals
8883 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8885 * plug-ins/svg/svg.c : enable svg import for win32 (and
8886 probably for other non ELF builds)
8888 * plug-ins/makefile.msc : enable svg import
8890 2002-10-11 Hans Breuer <hans@breuer.org>
8892 * plug-ins/metapost/render_metapost.[hc] : ported
8894 * plug-ins/pstricks/render_pstricks.[hc] : dito
8896 2002-10-11 Hans Breuer <hans@breuer.org>
8898 * plug-ins/cgm/cgm.c : ported, appears to work as before,
8899 but graphic apps available to me can't import the generated
8900 files (the could not with Dia-0.90 cgm as well) ...
8902 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8903 Removed all those function which did emulate 'complex'
8904 drawing ops with basic ones (e.g. rect by line) cause this
8905 stuff is already provided by the base class
8906 * plug-ins/dxf/dxf-import.c : removed render.h include
8908 * plug-ins/python/pydia-font.[hc]
8909 plug-ins/python/pydia-text.c : finally ported to new font api
8911 * plug-ins/python/pydia-layer.c : add extra parameter
8912 to layer_find_closest_connectionpoint()
8914 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8916 * plug-ins/python/python.c : added missing copyright notice
8918 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
8919 actually use the renderers set_font implementation
8921 * plug-ins/renderer.inc : unused now, removed
8922 * plug-ins/Makefile.am : reflect it
8924 2002-10-08 Hans Breuer <hans@breuer.org>
8926 * app/render_gdk.c : don't add the InteractiveRenderer
8927 interface multiple times (it's added to the type, not
8929 * app/render_libart.c : dito. It's currently added
8930 unconditional cause eport_png uses it, but claims
8931 to be non-interactive. Probably set_size should be moved
8932 to the DiaRenderer interface.
8934 * lib/dialibartrenderer.c : add implementations for
8935 get_<width|height>_pixels. Libart rendering works again.
8936 DiaLibartRenderer::draw_image : use dia_image_rowstride()
8939 * lib/diatransform.c(dia_transform_coords_double) :
8940 don't ROUND() the returned values
8942 * plug-ins/pixbuf/pixbuf.c : added import function. It
8943 simply creates a wrapping "Standard - Image" object.
8945 * plug-ins/shape/shape-export.c : use the more direct
8946 method to call base class methods
8948 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
8950 * lib/font.c (dia_font_init): Changed dia_font_init to return old
8951 pango context, to allow stacked contexts (for printing while
8960 * lib/connectionpoint.h
8963 * lib/diagdkrenderer.h
8965 * lib/dialibartrenderer.h
8968 * lib/diasvgrenderer.h
8969 * lib/diatransform.h
8976 * lib/neworth_conn.h
8991 Moved all externally visible struct typedefs into diatypes.h, as
8992 per Hans' suggestions.
8994 2002-10-07 Steffen Macke <sdteffen@web.de>
8996 * lib/Makefile.am: removed a '\' causing problems
8998 2002-10-07 Hans Breuer <hans@breuer.org>
9000 [Libart Renderer resurrected; almost it's compiling but
9001 almost instantly crashing :-]
9003 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
9004 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
9005 * lib/diatransform.[hc] : added dia_transform_coords_double()
9007 * app/display.c : the right parameters for new_renderer_libart()
9008 * app/export_png.c : ported, removed the blind Display hack
9010 * app/makefile.msc lib/makefile.msc
9011 lib/Makefile.am : updated
9013 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
9015 2002-10-06 Hans Breuer <hans@breuer.org>
9017 * plug-ins/pixbuf/pixbuf.c : (new file)
9018 there is a new export plug-in called 'Pixbuf' which uses
9019 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
9020 formats (currently only PNG and JPEG).
9022 2002-10-06 Hans Breuer <hans@breuer.org>
9025 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
9027 * lib/dia-enums.h lib/diatransform.[hc]
9028 lib/diarenderer.[hc] lib/diainteractiverenderer.c
9029 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
9032 * lib/makefile.msc lib/makefile.am : added new files
9034 * lib/plug-ins.c : g_module_error() returns a locale
9035 string, convert to utf8 before further usage
9037 * lib/render.h : #error out. Everything including this
9039 * lib/*.[hc] : ported to new renderer api
9041 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
9042 just to make the rest compile
9043 * app/render_eps.c : temporary disabled all of this
9044 * app/render_eps.h : removed RendererEPS
9046 * app/render_gdk.[hc] : a small wrapper around the new
9047 DiaGdkRenderer form lib/*
9049 * app/render_libart.h : removed RenderLibart definition
9050 * app/render_libart.c : not yet ported to new DiaRenderer
9051 but having an implementation to untie form FT2 dependency
9052 at least on win32. It is using new Pango api form bug #94791
9054 * app/render_pixmap.[hc] : a small wrapper around the new
9055 DiaGdkRenderer form lib/*
9057 * app/display.h : removed render_*.h includes
9058 * app/display.c : the only place where specific
9059 renderers need to be known
9061 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
9062 use new DiaInteractiveRenderer interface
9064 * app/*.c : ported to new renderer api
9065 * object/*/*.c : ported to new renderer api
9066 s/render.h/diarenderer.h/
9067 s/Renderer/DiaRenderer/
9068 s/renderer->ops/renderer_ops/
9069 add in every draw method:
9070 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
9072 * plug-ins/hpgl/hpgl.c :
9073 plug-ins/wmf/wmf.cpp
9074 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
9075 * plug-ins/shape/shape-export.c
9076 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
9077 (nice how small these files became :-)
9079 2002-09-28 Hans Breuer <hans@breuer.org>
9081 * */makefile.msc : updated
9083 * app/defaults.c : don't gdk_invalidate_rect(NULL)
9084 * app/disp_callbacks.c :
9085 can't cast GtkWindow to GdkWindow, use shell->window
9086 (ddisplay_unrealize) don't use already unrefed im_context
9088 can't cast from GtkMenu to GtkMenuItem
9089 (ddisp_destroy) : mark im_context as unrefed
9091 * lib/dia_xml (data_font) : prefer new font format over old one
9092 (data_add_font) : write the legacy name to allow file exchange
9093 with pre Pango versions of Dia, which would otherwise crash
9094 on missing font 'name' attribute.
9095 * lib/font.c (dia_font_get_legacy_name) : improved implementation
9096 to get a better match.
9098 * lib/libdia.def : updated
9100 * lib/messages.c : don't gdk_widget_show(NULL)
9102 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
9104 [make Dia compile, link _and_ work with mingw/gcc3.2]
9106 * config.h.win32 : #define LIBXML, this gets defined from libxml
9107 header but only for _MSC_VER. The mingw build did access an
9108 unitialized function pointer for xmlFree.
9110 * */makefile.mingw : updated (some plug-ins have build issues)
9112 * lib/handle.h lib/object.h : there appears to be no
9113 forward declaration of the form
9114 typedef enum _HandleId HandleId
9115 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
9116 use of enum `_HandleId' without previous declaration
9118 * app/paginate_gdiprint.cpp : added a hack to avoid g++
9119 naming conflict on 'export'
9121 * app/paginate_gdiprint.h : forward declare Diagram
9123 * objects/SADT/annotaion.c : use g_random_double()
9125 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
9127 * app/modify_tool.c: Made motion not happen until sufficiently
9128 large or past double-click interval, to avoid accidental moving
9129 when doubleclicking. Got the double-click time right, and fixed
9130 some issues with release. There are some corner cases that may
9131 exhibit strange behaviour, will look at those later. Nah, let's
9132 not care about those, they are rare and not dangerous.
9134 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
9136 * app/layer_dialog.c:
9138 * plug-ins/dxf/dxf-import.c:
9139 * plug-ins/python/pydia-diagram.c:
9140 * lib/diagramdata.c:
9141 * lib/diagramdata.h:
9142 Improved the consistency of the obj->parent_layer backlinks (esp.
9147 * lib/dynamic_obj.[ch] (NEW):
9150 * app/dynamic_refresh.[ch] (NEW):
9151 * objects/Misc/analog_clock.c:
9152 Added support for dynamic refresh (animated objects).
9154 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
9156 Patch from Owen Taylor <otaylor@redhat.com>:
9157 * doc/en/Makefile.am:
9158 * doc/en/dia-manual.sgml:
9159 * doc/en/usage-objects.sgml:
9160 * doc/en/usage-quickstart.sgml:
9161 * doc/pl/Makefile.am:
9162 * doc/pl/dia-manual.sgml:
9163 * doc/pl/usage-objects.sgml:
9164 * doc/pl/usage-quickstart.sgml:
9166 - Change the DTD declration from an outdated GNOME one to a
9169 - Remove close tags for <graphics> which aren't allowed for
9172 - A hacky fix for a problem where some versions of db2html don't
9173 create *.css files. (If *.css doesn't match anything, then you get
9174 the global explicitely.)
9178 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
9180 * objects/custom/custom_object.c:
9181 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
9182 were never properly prepared for use when reloading a shape with
9183 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
9184 reporting the problem and coming up with a fix! (Closes: #93974)
9186 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
9187 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
9190 * app/display.c: updated menu item paths Alan's patch had moved.
9192 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
9193 load the sheet-provided icon (libpng versions mismatch, grrr.).
9196 * objects/Makefile.am:
9197 * objects/Misc/Makefile.am (NEW):
9198 * objects/Misc/libmisc.c (NEW):
9199 * objects/Misc/analog_clock.c (NEW):
9200 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
9201 * sheets/Misc.sheet.in: just a little experiment...
9203 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
9205 * plug-ins/xlst/Makefile.am: found a way to silence automake while
9206 not forcing everyone to build using libxslt.
9210 * lib/object_defaults.c:
9213 * lib/properties.[ch]:
9215 * objects/standard/box.c:
9216 * objects/UML/state_term.c:
9218 * objects/FS/flow-ortho.c:
9222 * app/diagram_tree.c:
9224 * app/disp_callbacks.c:
9227 * app/lineprops_area.c:
9229 * app/preferences.c:
9232 * app/sheets_dialog_callbacks.c:
9233 * plug-ins/xslt/xslt.c:
9234 * plug-ins/metapost/render_metapost.c:
9235 * plug-ins/xfig/xfig-export.c:
9236 * plug-ins/shape/shape-export.c:
9238 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
9239 unused variables, mostly)
9242 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
9244 * app/Makefile.am: modified run_dia.sh so that we recover the
9245 ability to run a debugger despite libtool's hacks.
9247 * plug-ins/dxf/Makefile.am:
9249 "make distcheck" fixes.
9251 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
9253 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
9254 <mfranzoni@madd.it>: Check for the type being NULL.
9256 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
9258 * app/render_eps.c (set_font): Re-tweaked font size for printing.
9260 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
9262 Patch from Angus Ainslie <angusa@deltatee.com>:
9263 * plug-ins/dxf/dxf-import.c:
9264 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
9266 (plus a couple extra fixes by me, such as the removal of printf's,
9267 adapting for recent changes, and killed a couple warnings)
9269 * app/authors.h: a 60K patch isn't insignificant, is it?
9271 2002-09-09 Tor Lillqvist <tml@iki.fi>
9273 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
9274 as before) and -lfreetype (using AC_CHECK_LIB). At least on
9275 Solaris with Sun's compiler (Forte C), you need to link also the
9276 dia application with -lfreetype, even if it is implicitly linked
9277 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
9278 which is what they actually mean. Use FREETYPE_LIBS for
9281 Don't look for libsunmath if isinf() is not found in math.h (as on
9282 Solaris). The sunmath library is part of Forte C and not present
9283 on all machines. Besides, even if isinf was found in libsunmath,
9284 we didn't use it in the Makefile.am.
9286 Fix a couple of bashisms.
9288 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
9289 too, on Solaris with Forte C.
9291 Don't try to use the gcc flags with other compilers.
9292 DIA_CHECK_CFLAG gives a false indication that Forte C understands
9293 the gcc -f switches, but in fact they get interpreted meaning
9294 something completely different.
9296 Define the automake conditional HAVE_CGC.
9298 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
9300 Use -export-dynamic only with gcc.
9303 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
9304 PANGOFT2_CFLAGS rename.
9306 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
9308 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
9311 * lib/paper.c: Workaround for gccism: Can't use inline this way with
9314 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
9316 * lib/text.c(set_string): fixed a memory leak (char* ain't no
9317 std::auto_ptr<char> !).
9320 * app/interface.[ch]:
9321 * app/ddisp_callbacks.[ch]: Added some basic support for input
9322 methods (GtkIMContext-based)
9325 * app/Makefile.am: made libdia a shared object (per Tor
9326 Lillqvist's suggestion/request), to cope for platforms with a less
9327 than par dynamic library loader.
9329 * app/display.c: disabled the input method menu (I really don't
9330 see where and how to put them. Blame Frozen Bubble )
9332 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
9334 * objects/flowchart/box.c (box_update_data): Made resizing
9335 possible again (only set width & height when resized too small).
9337 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
9339 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
9342 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
9344 * app/authors.h: now showing Akira TAGOH's name in the native script.
9346 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
9348 * plug-ins/xslt/xslt.c: Removed glib warning for unset
9351 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
9353 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
9354 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
9357 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
9359 * objects/UML/class.c: Fixed showing of empty stereotypes and got
9360 the string placed correctly.
9362 2002-08-30 Hans Breuer <hans@breuer.org>
9364 * lib/font.c (dia_font_get_style) : don't shift already
9365 shifted DIA_FONT values.
9367 * lib/libdia.def : updated externals
9369 * app/disp_callbacks.c : on win32 GdkEventKey::string already
9370 is in UTF-8. (Longterm this probably should be handled on the
9373 * app/command.[hc] app/display.[hc] app/menus.c : add code to
9374 switch display renderers again. The libart renderer is very
9375 useful for win9x with it's limited GDI.
9377 * app/render_gdk.c : use g_warning instead of printf which gets
9378 nowhere on win32 (non console apps)
9380 * app/render_libart.c : make it compile without FREETYPE
9382 * objects/makefile.msc plug-ins/makefile.msc : added clean target
9384 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
9386 * app/render_eps.c (postscript_draw_contour): Debugging statement
9387 that allowed me to figure out font problems.
9389 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
9390 items for font styles.
9392 * objects/FS/flow-poly.c:
9393 * objects/FS/flow-ortho.c:
9394 * objects/FS/flow.c: Further conversion away from GTK dialogs.
9395 Can't set a default label right now:(
9397 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
9399 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
9400 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
9402 * Makefile.am: rules relating to AUTHORS and THANKS
9404 * AUTHORS: file content changed to more accurately
9405 reflect guideline requirements.
9406 * TODO: warning added about Gnome BTS.
9407 * KNOWN_BUGS: warning added about Gnome BTS.
9411 * AUTHORS: added full copyright info.
9412 * mkauthors-placeholder: (removed)
9414 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
9416 * app/paginate_psprint.c (print_page): Fixed text printing after
9417 tip from Dov Grobgeld.
9419 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
9421 * app/paginate_psprint.c (print_page): Fixed color of clip
9424 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
9426 * sheets/Makefile.am: enabled intltool-merge translation cache for
9430 * mkauthors-placeholder:
9431 * AUTHORS: revived that file (in a placeholder form) so that
9432 automake stops yelling.
9433 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
9436 Heh, by the way, thanks Christophe. I feel better now.
9438 2002-08-25 Christophe Merlet <christophe@merlet.net>
9440 * app/command.c: Removed invalid multibyte sequence in Chepelov.
9442 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
9444 * lib/dia_image.c (dia_image_rgb_data):
9445 Bugfixes in image data retrieval.
9447 * app/render_eps.c: Refactoring of new_*_renderer.
9449 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
9453 * lib/dia_image.c: Support for rowstride != width (odd width images)
9455 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
9457 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
9458 * plug-ins/xfig/xfig-import.c: Removed assertion.
9460 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
9462 * lib/paper.c: Removed app/preferences.h reference.
9464 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
9466 * plug-ins/svg/svg-import.c:
9467 * plug-ins/xfig/xfig-import.c:
9468 * lib/Makefile.am (libdia_a_SOURCES):
9469 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
9471 * objects/standard/create.h:
9472 * objects/standard/polygon.c (polygon_create):
9473 * objects/standard/polyline.c (polyline_create):
9474 * objects/standard/beziergon.c (beziergon_create):
9475 * objects/standard/bezier.c (bezierline_create):
9476 Moving create.h into lib.
9478 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
9480 * app/render_libart.[ch]: Work on PNG font export. Something's
9481 still fishy with the scaling, I don't get it.
9484 * app/interface.c: Replaced broken zoom combo with entry+menu.
9485 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
9487 * app/render_gdk.c (get_text_width): Checks for validity of text.
9488 Temporary help while debugging input -- should only activate on
9491 * objects/SADT/annotation.c:
9492 * objects/GRAFCET/transition.c:
9493 * objects/FS/function.c: Removal of gtk.h include.
9495 * objects/UML/state.c (state_load): Warnings about using State
9496 object for initial/final states.
9498 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
9500 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
9502 * app/render_eps.c: Text rendering that scales correctly. Too bad
9503 the standard fonts don't get selected right.
9505 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
9507 * lib/diagramdata.h:
9508 * lib/paper.c (get_paper_info):
9510 * plug-ins/xfig/xfig-import.c:
9511 Committed before testing. I am so embarrased. This compiles, now
9512 that the includes are in the right order.
9514 * app/diagram.c (diagram_init):
9515 * app/app_procs.c (do_convert):
9516 * app/preferences.h:
9517 * lib/diagramdata.h:
9518 * lib/diagramdata.c (new_diagram_data):
9520 * lib/paper.c (get_paper_info):
9521 Moved new_diagram part of prefs into lib/diagramdata.h. More
9522 could be done in new_diagram_data() now.
9524 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
9526 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
9528 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
9530 * configure.in: removed silly user-visible comment
9532 (actually, this is a dummy entry before I manually run nemo; for
9533 some dist-upgrade related reason, this morning's run aborted before
9534 the snapshots were created)
9536 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
9538 * objects/network/wanlink.c:
9539 * objects/network/bus.c:
9542 * objects/custom/custom_object.c:
9543 * objects/network/wanlink.c:
9544 * objects/flowchart/parallelogram.c:
9545 * objects/flowchart/ellipse.c:
9546 * objects/flowchart/diamond.c:
9547 * objects/flowchart/box.c:
9548 Removed GTK defaults stuff.
9550 * objects/UML/fork.c:
9551 * objects/UML/object.c:
9552 * objects/UML/lifeline.c:
9553 * objects/UML/branch.c:
9554 * objects/GRAFCET/transition.c:
9555 * objects/FS/function.c: Removed GTK include.
9557 * objects/FS/flow-ortho.c:
9558 * objects/FS/flow.c: Made the label behave again.
9559 Also removed GTK defaults stuff.
9561 2002-08-06 Hans Breuer <hans@breuer.org>
9563 * app/autosave.c : ported to GDir which is the improved
9564 cross platform replacement for <dirent.h>
9566 * app/makefile.msc : build autosave.obj
9568 * app/font.c : some (bad?) code calls
9569 dia_font_scaled_decent() not only with empty string but
9570 with NULL. Handle it gracefully.
9572 * lib/paper.c : don't depend on ../app. Although IMO
9573 this shouldn't be allowed on any platform it is only
9574 disabled for win32, where it simply doesn't work
9577 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9579 * objects/fs/flow.c : conditionalize debug spew, disabled
9580 and 'ported' to use g_print. Simple printf won't work with
9581 standard win32 gui apps, may even crash them.
9583 * plug-ins/makefile.msc : DISABLED svg-import cause it
9584 depends on ../objects/custom. This not only break the
9585 build for all non ELF systems but IMO also isn't acceptable
9586 from a design point of view. See dia-list mail on subject.
9588 * plug-ins/python/makefile.msc :
9589 plug-ins/python/python.c : remove all references to dirent
9591 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
9593 * configure.in: added ro to ALL_LINGUAS
9597 * ../translation-graphs/transgraph.py: added support for fuzzy
9598 translations. Enlarged the graphs.
9600 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
9602 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9603 key events according to locale. No clue if this works for
9606 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
9608 * lib/text.c: Various UTF8 related fixes, in particular in
9609 deleting. Text_insert_char is fine, far as I can tell.
9611 * app/interface.c (create_display_shell):
9612 * app/commands.c: Now uses gtk_clipboard functions, for they are
9613 much simpler. Also handles Win32 clipboard. Non-ascii chars
9614 don't seem to get handled correctly by text_insert_char in
9617 * app/commands.c (received_selection_handler): Got utf8 handling
9618 on paste, and individual char handling out of commands.c. Pasting
9619 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
9621 * lib/message.c (gtk_message_internal): Message dialog re-shown
9622 when new message appears. Maybe it should even move to top?
9626 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9627 (again) and case-insensitive.
9629 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9632 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
9634 * app/commands.c (edit_cut_text_callback):
9635 * lib/text.c (text_delete_all): Now functioning undo for text cut.
9637 * app/commands.c (edit_cut_text_callback): Now removes text.
9638 Undo is broken, though.
9640 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
9642 * app/diagram.c (diagram_update_menu_sensitivity):
9643 Making cut_text active.
9646 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9647 clipboard. Also removed AA callback.
9649 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
9651 * objects/chronogram/chronoref.c:
9652 * objects/chronogram/chronoline.c:
9653 * objects/SADT/annotation.c:
9654 * objects/SADT/arrow.c:
9655 * objects/SADT/box.c:
9656 * objects/GRAFCET/vergent.c:
9657 * objects/GRAFCET/vector.c:
9658 * objects/GRAFCET/step.c:
9659 * objects/GRAFCET/condition.c:
9660 * objects/GRAFCET/action.c:
9661 * objects/ER/participation.c:
9662 * objects/ER/relationship.c:
9663 * objects/ER/entity.c:
9664 * objects/ER/attribute.c:
9665 Removing unnecessary GTK references.
9667 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
9669 * objects/standard/image.c:
9670 * objects/standard/textobj.c:
9671 * objects/standard/ellipse.c:
9672 * objects/standard/polygon.c:
9673 * objects/standard/beziergon.c:
9674 * objects/standard/box.c:
9675 Making default default properties.
9677 * objects/standard/image.c:
9678 * objects/standard/arc.c:
9679 * objects/standard/box.c:
9680 * objects/standard/zigzagline.c:
9681 * objects/standard/polyline.c:
9682 * objects/standard/line.c:
9683 * objects/standard/ellipse.c:
9684 * objects/standard/polygon.c:
9685 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9687 * lib/object_defaults.c (dia_object_default_create):
9690 * lib/object.c (object_copy_using_properties):
9691 * lib/propdialogs.c:
9692 * lib/propinternals.h:
9693 * lib/propobject.c (object_create_props_dialog)
9694 (object_copy_props):
9695 Removing the standard (toolbox) properties from defaults dialogs.
9697 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
9699 * lib/font.c (dia_font_scaled_string_width)
9700 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9702 * lib/text.c (text_calc_boundingbox): Take descent into account.
9704 * objects/standard/bezier.c (bezierline_draw):
9705 * lib/render.c (draw_bezier_with_arrows):
9706 Better arrow drawing for beziers. Doesn't change the mouse-click
9709 * lib/arrows.h: Some const-ness.
9711 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9713 * lib/render.c (draw_arc_with_arrows):
9714 * objects/standard/arc.c (arc_draw): Better arrow drawing for
9715 arcs. Doesn't change the mouse-click area yet.
9717 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
9723 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
9725 * app/group.c (group_draw): Forgotten commit: Groups to draw as
9726 objects (using default routines).
9730 * lib/diagramdata.h:
9731 * lib/diagramdata.c (layer_find_closest_connectionpoint):
9732 * objects/standard/zigzagline.c (zigzagline_move_handle):
9733 * app/diagram.c (diagram_find_closest_connectionpoint):
9734 * plug-ins/python/pydia-diagram.c
9735 (PyDiaDiagram_FindClosestConnectionPoint):
9736 * app/object_ops.c (object_connect_display)
9737 (object_find_connectpoint_display)
9738 * app/create_object.c (create_object_button_press)
9739 (create_object_motion):
9740 * app/modify_tool.c (modify_motion):
9741 Adding object param to allow connectionpoint and handle coinciding.
9743 * objects/standard/zigzagline.c (zigzagline_check_orientation):
9744 Fixing minor problems.
9746 * objects/standard/ellipse.c (ellipse_update_data):
9747 Added direction hints.
9749 * lib/diagramdata.c:
9752 * lib/diagramdata.h:
9753 * objects/standard/zigzagline.c:
9754 First working example of zigzagline hints, currently only between
9757 2002-07-27 Steffen Macke <sdteffen@web.de>
9759 * plug-ins/svg/render_svg.c: added support for rounded
9760 rectangles (fixes #69053 if compile with
9762 * object/custom/shape_info.[c|h]: made parse_style and
9763 parse_path accessible for svg plug-in
9764 * plug-ins/svg/Makefile.am:
9765 * plug-ins/svg/svg.c:
9766 * plug-ins/svg/svg-import.c(new): added SVG import filter
9768 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
9770 * objects/standard/box.c:
9771 * objects/standard/zigzagline.c (zigzagline_move):
9772 More work on zigzagline hints.
9774 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
9775 * lib/connectionpoint.h:
9776 Hints for zigzaglines.
9778 * app/properties.c (properties_show):
9779 * app/defaults.c (defaults_show):
9781 * lib/propobject.c (object_create_props_dialog):
9783 * objects/FS/flow-poly.c:
9784 * objects/network/wanlink.c:
9785 * objects/network/bus.c:
9786 * objects/UML/class.h:
9787 * objects/UML/class_dialog.c:
9788 * objects/UML/association.c:
9789 Start of removing toolbox props from props dialogs.
9793 * app/lineprops_area.c (dia_arrow_chooser_new):
9794 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9796 * app/create_object.c:
9797 * app/modify_tool.c:
9802 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
9804 * app/preferences.c:
9806 * app/diapagelayout.c:
9807 New prefs selector kind PREF_CHOICE chooses between a list of
9808 strings. Used for picking default paper.
9810 * app/preferences.c (prefs_data):
9811 * lib/paper.c (get_paper_info): Added prefs setting for
9814 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9815 line segments at the ends (bug #86603).
9817 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
9819 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9820 #60324: Now calls update_data after copy.
9822 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9823 Now doesn't steal selection from non-object tools.
9825 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
9827 * app/commands.c (help_manual_callback): Uses BROWSER environment
9828 variable when available.
9830 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
9832 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9833 object from the new sheet when changing.
9835 * app/app_procs.c (app_init): Uses more standard size icon, from
9836 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
9838 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
9840 * objects/UML/implements.c (implements_update_data):
9841 * objects/UML/realizes.c (realizes_update_data):
9842 * objects/UML/dependency.c (dependency_update_data):
9843 Test for null strings before calling on ascent.
9845 * objects/UML/realizes.c (realizes_draw):
9846 * objects/UML/message.c (message_draw):
9847 * objects/UML/generalization.c (generalization_draw):
9848 * objects/UML/dependency.c (dependency_draw)
9849 * objects/UML/constraint.c (constraint_draw):
9850 * objects/GRAFCET/condition.c (condition_draw):
9851 * objects/UML/association.c (association_draw):
9852 * objects/FS/flow-ortho.c (orthflow_draw):
9853 * objects/FS/flow.c (flow_draw): Change to use
9854 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
9857 * lib/arrows.c (calculate_arrow_point):
9860 * objects/standard/zigzagline.c:
9861 * objects/standard/polyline.c:
9862 * objects/standard/line.c: Work towards better arrow drawing.
9864 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
9866 * objects/UML/state.c: Starting phase-out of State object as
9867 initial/final state (which never worked right).
9869 * app/app_procs.c (app_init): --version command line option for
9872 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9874 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
9876 * app/render_eps.c: Removed debugging info.
9878 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9879 Kludge to make ascent and descent work for empty strings. Won't
9880 work when using non-ASCII fonts. Better would be to get a
9881 PangoFont and ask directly.
9883 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9886 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9889 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
9891 * plug-ins/xfig/xfig-export.c: First use of draw_object render
9892 function: All shapes are now groups in XFig export.
9894 * lib/diagramdata.c (normal_render):
9897 * app/display.c (ddisplay_obj_render):
9898 New render function for drawing objects, allows renderers to group
9899 or otherwise specially handle objects. We may want to reconsider
9900 calling it in app/display.c, as we 'know' the object draw function
9901 is the default one there.
9903 * lib/Makefile.am: Removed extra \ that broke stuff.
9905 * plug-ins/xfig/xfig-import.c:
9906 Spline import for xfig. Not perfect.
9908 * objects/standard/create.h:
9909 * objects/standard/bezier.c (bezierline_create):
9910 * lib/bezier_conn.c:
9911 * lib/beziershape.c (beziershape_set_points):
9912 * lib/bezier_conn.h:
9913 * lib/beziershape.h:
9914 Support for creating beziers non-interactively.
9916 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
9918 * plug-ins/xfig/xfig-import.c: Support for polygons and
9919 polylines. Special warning handling system removed.
9921 * lib/message.c (gtk_message_internal): Fixed bug involving
9922 closing message window and then getting repeated message.
9926 * configure.in (GETTEXT_PACKAGE):
9927 Update based on bug #88199. Hopefully this doesn't break too much
9930 * dia.desktop.in (_Comment): Changed after suggestion from
9931 calum.benson@ireland.sun.com (bug 88345)
9933 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9934 <loli@unsa.edu.ar> that makes user/system distinction better.
9936 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
9938 * app/render_libart.c: Got the context right, removed crashes.
9948 Remove libart #defines from most places (still around for png export).
9950 * app/render_libart.h:
9951 * app/render_libart.c:
9952 * configure.in (HAVE_LIBART):
9953 Starting on update of libart stuff for png export (without X).
9955 * app/autosave.h (autosave_check_autosave):
9958 * app/Makefile.am (dia_core_files):
9960 * app/diagram.c (diagram_set_modified):
9962 * app/app_procs.c (app_init):
9963 Autosave support. No automatic restore yet.
9965 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
9967 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9970 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
9972 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9974 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
9976 * Fix for 'make dist' etc. --- problem caused by
9977 previous AUTHORS patch.
9979 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
9981 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9983 (set_font): NULL check.
9985 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
9987 * app/disp_callbacks.c:
9989 Addition to the object menus allows check menu items.
9991 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
9993 * HACKING: completely changed to bring up-to-date.
9994 * AUTHORS: file needs REMOVING from CVS as now
9995 dynamically generated.
9996 * app/authors.h: split into subcategories for original
9997 authors, maintainers, etc.
9998 * app/app_procs.c: --credits rewritten to support new
10000 * app/commands.c: no changes to about box code, comment
10002 * Makefile.am: added rule for AUTHORS. I'm still
10003 inexperienced with automake, it seems to work, but
10004 for AUTHORS-related bugs, look at this change first.
10006 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
10008 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
10009 work. Back to including xslt dir always.
10011 * objects/UML/uml.c:
10012 * objects/UML/class.h:
10013 * objects/UML/class_dialog.c:
10014 * objects/UML/class.c: Patch from
10015 <mattam@netcourrier.com>: Adds comment visibility switch, also
10016 fixes various bugs.
10018 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
10019 for state/fork/activity stuff.
10020 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
10021 * objects/UML/Makefile.am:
10022 * objects/UML/uml.c:
10023 * sheets/UML.sheet.in: Added new objects activity, fork,
10025 * objects/UML/pixmaps/state_term.xpm:
10026 * objects/UML/state_term.c: New, only initial/final states.
10027 * objects/UML/pixmaps/activity.xpm:
10028 * objects/UML/activity.c: New, activity state.
10029 * objects/UML/pixmaps/fork.xpm:
10030 * objects/UML/fork.c: New, fork/join bar.
10031 * objects/UML/pixmaps/state.xpm: state icon.
10035 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
10036 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
10039 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
10041 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
10044 * app/Makefile.am: Commented out the diaconv parts while it's not
10045 used anyway. To come back later.
10047 * configure.in (HAVE_FREETYPE):
10049 * app/render_eps.h:
10050 * app/render_eps.c: Support for printing with freetype, better
10051 encapsulated now. Renders the text nicely, but ignores font
10052 setting. Requires pangoft2 to get the font outline, but non-text
10053 objects can still be rendered without it.
10056 * app/commands.c (objects_place_up_callback)
10057 (objects_place_down_callback):
10059 * app/diagram.c (diagram_place_down_selected)
10060 (diagram_place_up_selected): Starting support for moving objects
10063 * app/menus.c: Removed character/numeral shortcuts.
10065 2002-07-06 Hans Breuer <hans@breuer.org>
10067 * makefile.am app/makefile.am lib/makefile.am
10068 objects/makefile.am plug-ins/makefile.am
10069 plug-ins/python/makefile.am :
10070 added required files for win32 build to EXTRA_DIST
10072 * app/paginate_psprint.c app/render_eps.c
10074 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
10075 on Pango as currently is on win32 => no PostScript
10078 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
10079 use '/* noop */;' for empty case labels; replace
10080 debug spew printf with g_print which is guaranteed
10081 to work on win32, too.
10083 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
10084 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
10085 in the pango_font_description_set_weight() api documentation
10086 Take care for them in dia_font_get_style() too.
10088 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
10089 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
10090 rename Obliquity to Slant which appears to be the usual name,
10091 also rename dia_font_get_style_string -> dia_font_get_slant_string
10093 * plug-ins/wmf/wmf.cpp : finally ported to new font api
10095 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
10097 * objects/uml/association.c class.c large_package.c message.c
10098 if g_free() is used g_strdup needs to be used.
10099 * objects/custom/shape_info.c
10100 objects/ER/attribute.c entity.c
10101 objects/standard/image.c
10102 app/sheets_dialog_callbacks.c : more strdup cleaning
10104 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
10106 * app/render_eps.c: Non-crashing printing (made the right
10107 context). Font output still fscked up.
10109 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
10111 * app/authors.h: Added file --- now master
10112 location for contributors data.
10113 * app/app_procs.c: Added --credits option.
10114 * app/commands.c: Modified about box to use
10117 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
10119 * app/render_eps.c: First stab at EPS rendering using the contour
10120 code from PAPS. Crashes.
10122 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
10124 * app/recent_files.c (recent_file_history_remove):
10125 Fixed call to g_list_delete_link discarding return value.
10127 * lib/widgets.c (dia_font_selector_set_styles):
10128 * lib/font.h (DiaFontWeight):
10129 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
10131 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
10133 Contribution from Alan Horkan <horkana@tcd.ie>:
10135 * shapes/Assorted/*
10136 * sheets/Assorted.sheet:
10137 A set of 40 assorted geometric shapes.
10139 * sheets/Assorted.sheet.in:
10140 * sheets/Makefile.am
10141 * shapes/Assorted/Makefile.am:
10142 * shapes/Makefile.am:
10145 Done the integration job of Alan's shapes. (Translators: have fun!)
10147 * po/dia.pot: refreshed the main potfile.
10149 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
10151 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
10153 * objects/UML/class.[ch]:
10154 * objects/UML/class_dialog.c:
10155 changed the number of connection points from a hardcoded value of
10156 8 to a #defined constant
10158 (I changed the constant back from 20 to 8, until we better know
10159 how we'll handle more connection points on the UML class in the
10160 future -- but Tim's patch is a welcome clean-up).
10162 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
10164 * shapes/MSE/demultiplexer.xpm:
10165 * shapes/MSE/node_center.xpm:
10166 * shapes/MSE/multiplexer.xpm:
10167 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
10168 Horkan <horkana@tcd.ie>
10170 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
10172 * lib/widgets.c: Total rehash of font selector, with font dialog
10173 option, expanding list (not LRU yet), and stuff.
10175 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
10179 Added a set of new setter/getters, some of them more specially for
10182 * plug-ins/shape/shape-export.c: (new_shape_renderer),
10183 (destroy_shape_renderer), (set_font), (draw_string):
10184 * plug-ins/svg/render_svg.c: (new_svg_renderer),
10185 (destroy_svg_renderer), (set_font), (draw_string):
10187 Actually exported the font face, style, weight and size (sodipodi
10188 agrees with dia on how a small sample should look like (a sample
10189 0.90 would not even display anyways). Yay !)
10191 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10193 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
10195 (end of ChangeLog-less patch)
10197 * objects/custom/shape_info.c (parse_style): now understands the
10198 font-style and font-weight attributes as well. Does not use
10199 anymore dia_font_new_from_legacy_name().
10201 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
10203 * objects/standard/textobj.c: Now uses stdprops for defaults.
10205 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
10206 * lib/font.c (dia_font_get_style): Style now linear and conversion
10209 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
10212 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
10214 * plug-ins/dxf/dxf-import.c:
10215 using dia_font_new_from_style()
10217 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10219 * objects/UML/class.[ch]: Added a comment field to class
10220 * objects/UML/uml.[ch]: Added a comment field to attributes,
10221 operations and parameters.
10222 * objects/UML/class_dialog.c: Added code for the new comment
10224 * plug-ins/xslt/*.xsl: Added some code to handle comments.
10225 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
10226 Added a $directory parameter for stylesheets so the output is
10227 in the good place (not in the $PWD).
10231 * AUTHORS: added contributors, updated maintainers. Removed the
10232 specific areas of action.
10234 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
10235 from a patch by Xing Wang <quixon@gnuchina.org>:
10237 * app/commands.c: help_about_callback now supports
10238 new-style GNOME about box as well as old GTK style.
10239 code also tidied (Closes: #85726)
10243 * app/commands.c: fixed the copyright (it's not all FSF), and
10244 maintainers. Synced contributors list with AUTHORS.
10246 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
10248 * lib/message.c: More work on repeating messages, now with
10251 2002-06-24 Hans Breuer <hans@breuer.org>
10253 * lib/widget.c : some more bits in place, at least
10254 it does something useful instead of crashing. Much
10255 better - but not all ok :-)
10257 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
10259 * lib/message.c (gtk_message_internal): First stab at repeating
10262 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
10265 * objects/GRAFCET/*.c:
10266 * objects/SADT/*.c:
10267 * objects/UML/association.c: (one instance forgotten)
10268 * objects/UML/large_package.c:
10269 * objects/standard/textobj.c:
10270 * lib/attributes.c:
10272 using dia_font_new_from_style()
10274 2002-06-23 Hans Breuer <hans@breuer.org>
10276 * lib/font.c : giving some love to
10277 dia_font_new_from_legacy_name() that is making
10278 import of old files as painless as possible and
10279 provide an almost exact match where possible.
10280 It does not yet fully work because it interfers
10281 with the Style to DiaStyle conversion which comes
10284 [Changing these files is only allowed with Dia-0.90]
10285 * broken-files/fonts-0.90.dia : including the
10286 common hard-coded fonts from Dia-0.90. It also
10287 has drawn bounding-boxes for win32 as they were calculated
10288 from the former version (they were all too big).
10289 * broken-files/fonts-0.90-full.dia : all hardcoded
10290 fonts including the asian versions. On my machine
10291 this gives _a lot_ complaining about missing fonts
10292 and a finally a broken file display. Anyone having
10295 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
10297 * objects/chronogram/*.c:
10298 * objects/custom/custom_object.c:
10300 using dia_font_new_from_style()
10302 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
10304 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
10305 font selector (stability, insensitivity).
10307 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
10308 stretching scheme for tweaking, and made scaling scheme faster
10309 (but less precise).
10310 (dia_font_dia_style_to_pango): Oops, % != /.
10312 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
10315 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
10317 * plug-ins/xslt : Added an XSLT plugin to export dia files using
10318 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
10319 It includes a small config file to tell it what stylesheets to use.
10323 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
10324 GTK2.0/HIG compliant (the labels could be slightly more verbose,
10325 perhaps). Added back a couple forgotten _(). Removed //-style
10328 2002-06-23 Hans Breuer <hans@breuer.org>
10331 (dia_plugin_get_name) : don't crash plugin_manager
10333 (dia_plugin_load) : reuse the description field to
10334 store the error string if loading fails.
10336 * lib/font.[hc] : starting to beautify the new
10337 font api: proper namespacing, adding convenience
10338 functions like dia_font_new_from_style(), ...
10340 * objects/uml/*.c : use the new convenience functions.
10342 [Next thing I plan to do is changing the other font
10343 functions to take DiaStyle and make Style and
10344 BASIC_*_FONT vanish. As well as giving some love to
10345 dia_font_new_from_legacy_name().
10346 If anyone want's to help on converting the other
10347 objects to the new api during that, I would highly
10350 2002-06-23 Hans Breuer <hans@breuer.org>
10352 * lib/font.c : made it compile and small indent fixes.
10353 Is there a code-has-no-effect-so-needs-not-be-valid
10356 * lib/widgets.c : use g_strcasecmp
10358 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
10362 * lib/widgets.c: Font names sorted, style selector widget
10363 reappeared. Doesn't select the old style yet.
10365 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
10367 * lib/font.c: one who expects a text's font to be changed shall
10368 actually request the attributes to apply to the whole range of the
10371 * lib/font.c: extents computation was wrong.
10373 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
10374 if a last NULL parameter is added...
10376 * lib/font.c: extents computation was completely wrong. This looks
10377 much better this time.
10379 * objects/UML/class.c: fixed the various strings positions.
10381 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
10382 macros to get the hardcoded base fonts.
10384 * objects/ER/relationship.c: wasn't converted to DiaFont*
10386 2002-06-22 Hans Breuer <hans@breuer.org>
10388 * lib/widget.c : dont use backend specific functions
10389 to get on the font_families. Including it would mean
10390 including <windows.h> which breaks due to namespace
10393 * lib/libdia.def : updated externals
10395 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
10397 * lib/font.c : added empty dia_font_init_instance function,
10398 reformatting of dia_fon_unref to allow to set breakpoint,
10399 dia_fon_build_layout() : dont crash on string==NULL
10401 * lib/text.c (text_set_attributes) : don't unref the wrong font
10403 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
10404 stores lowercased font names, but dia_font_get_family()
10407 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
10410 * app/render_gdk.c: Patch from Hans Breuer.
10412 * app/Makefile.am (dia_core_files): diaconv commented out for now.
10414 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
10416 * lib/all files touched yesterday: took into account some of Hans
10417 Breuer's remarks in
10418 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
10420 * objects/chronogram/*:
10421 * objects/custom/*:
10423 * objects/flowchart/*:
10425 * objects/GRAFCET/*:
10427 * objects/standard/textobj.?:
10429 converted to the new DiaFonts.
10432 * plug-ins/pstricks/*:
10436 Made minimalistic conversions so that they'd at least compile.
10438 * app/render_gdk.c:
10439 * app/render_pixmap.c:
10440 Converted to the new DiaFonts.
10444 * app/render_eps.c:
10445 made the minimal changes so that it would at least build.
10447 *** At this point, the thing builds on my machine, but segfaults
10450 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
10452 * configure.in: removed the backend-specific pango pkg_modules
10453 (trivial to add back if needed, when actually needed)
10456 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
10457 renderer. The APIs will have completely changed when we get around
10458 to redo a renderer for it, anyways.
10460 * font.[ch]: rewrote everything from scratch, with a Pango
10461 implementation. Normally, only backend-neutral things should go in
10464 **WARNING**: new rules for managing DiaFont* pointers: these are
10465 reference-counted GObjects. One >must< diafont_ref() and
10466 diafont_unref() as appropriate. I wish I could overload operator=()...
10468 lib/plug-ins.h: bumped up the plug-in API.
10473 lib/object_defaults:
10474 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
10475 again tomorrow with GObject.
10477 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
10479 **** The rest of the tree should be updated as well ****
10481 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
10483 * app/render_gdk.h:
10484 * app/render_gdk.c:
10485 * app/render_pixmap.c:
10486 * app/render_pixmap.h:
10487 * app/render_libart.h:
10488 * app/render_libart.c:
10490 * lib/font.c: Removed freetype stuff (still around in
10491 lib/widgets.c 'cause we might want the font selector widget).
10493 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
10495 * shapes/network/laptop.(xml|shape):
10496 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
10497 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
10499 2002-06-17 Hans Breuer <hans@breuer.org>
10501 * lib/object_defaults.c : #include <libxml/tree.h> not
10502 <tree.h> pointed out by Xing Wang
10504 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
10506 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
10508 * app/color_area.c: Update to
10509 gtk_color_selection_*_current_color() fixed bad crash issues, plus
10510 updated color conversions.
10512 * sheets/ER/weakentity.xpm: Accepted patch from
10513 quixon@gnuchina.org to make icon match actual appearance.
10515 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
10516 quixon@gnuchina.org.
10518 2002-06-16 Hans Breuer <hans@breuer.org>
10520 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
10521 good tradition of information hiding. Add new function
10522 dia_plugin_get_symbol()
10523 * app/sheets.c app/sheets_dialog_callbacks.c : use it
10525 * app/sheets.c : stop complaining about object_get_type()
10526 returning NULL. This is a consequence of e.g. disabling
10527 plug-ins at runtime _and_ it was and is gracefully handled.
10528 Spitting out g_warning for it isn't appropriate.
10530 * lib/object.[ch] : removed dead code
10532 * app/plugin-mangager.c : almost complete rewrite for gtk2
10533 using GtkListStore/GtkTreeView
10535 * lib/libdia.def : updated externals
10537 * todo.gtk2 : updated, that is removed already done steps
10539 2002-06-15 Hans Breuer <hans@breuer.org>
10541 * objects/uml/class_dialog.c : clean some left-over
10542 utf8-mess, return 0 from "focus_out_event" handlers
10543 to avoid asserting in gtk (#78305). Reconstruct
10544 stereotype/NULL behaviour to avoid rendering empty
10545 stereotypes on classes and member functions
10547 [#56109 - Provide object defaults for StdProp objects,
10548 some remaining issues are discussed in bugzilla]
10550 * lib/object_defaults.c : (new file) manage default properties
10551 of dia objects. The serialization is done with standard
10552 object methods in a diagram compatible format.
10554 * lib/object.c : add object_registry_foreach() which allows
10555 to iterate over all registered object types
10557 * lib/object.h : added prototypes object_default*() and
10558 object_registry_foreach()
10560 * lib/makefile.am lib/makefile.msc : add new file to build
10562 * lib/libdia.def : export new functions
10564 * app/defaults.c : provide StdProp based defaults if the
10565 ObjectType doesn't implement it's own default functions
10567 * app/create_object.c : through dia_object_default_create()
10568 * app/disp_callbacks.c : same here
10570 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
10572 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10573 sensitivity for deleting segments.
10575 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
10577 * app/color_area.c: (color_area_events):
10578 * app/diagram.c: (diagram_destroy):
10579 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10581 * app/load_save.c: (diagram_data_load):
10582 * app/menus.c: (menus_get_item_from_path):
10583 * app/preferences.c: (prefs_load):
10584 * app/render_gdk.c: (get_text_width):
10586 * lib/color.c: (color_convert):
10587 * lib/dia_dirs.c: (dia_config_filename):
10588 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10589 * lib/intl.c: (intl_get_language_list):
10590 * lib/message.c: (message):
10592 * lib/paper.c: (get_default_paper):
10593 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10594 * lib/widgets.c: (dia_file_selector_get_file):
10596 * objects/standard/image.c: (get_directory):
10600 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
10602 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
10604 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
10606 * app/interface.c: sscanf now returns EOF on empty string, so
10607 handle no match for zoom factor better => correct zoom at start.
10609 * app/sheets.c (create_object_pixmap): Tried to display empty error.
10610 (sheets_optionmenu_create): Died when not finding specified
10611 sheet. Don't think it should.
10613 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10614 (bug #84367) to place the text better.
10616 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
10618 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10620 * app/commands.c: Removed unnecessary gnome include. Removed
10621 GNOME-Print support.
10623 * app/menus.h: Removed now unnecessary gnome include.
10625 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10626 GNOME-specific stock buttons
10628 2002-06-09 Hans Breuer <hans@breuer.org>
10630 * app/app_procs.c : convert 'Modified diagrams exits'
10631 dialog to use GtkMessageDialog. That gives us:
10632 - icons without Gnome dependency
10633 - much less code, also cross platform
10634 - improved useability ?
10636 * app/color_area.c : the Color Selection Widget looked
10637 quite wrong (alpha problems). Fix it by merging in required
10638 changes stolen from The Gimp cvs
10639 * app/color_area.h : to get the right appearance the maskes
10640 needed to be taken into account
10641 * app/interface.c : adapt to color_area_create changes.
10642 Also remove some dead code and finally remove cvs autexpansion,
10643 I was bothered enough by irrelevant differences :-)
10645 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10646 api, i.e stocks and response to make the GnomeDialog usage
10647 obsolete. Also fixed the issue with closing the 'parent'
10648 before closing the dialog
10650 * app/display.[ch] : removed some dead code and conversion
10651 to new GtkDialog api. Also trying to conform to new HIG
10652 standard http://developer.gnome.org/projects/gup/hig/
10654 2002-06-09 Hans Breuer <hans@breuer.org>
10656 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10659 * lib/dia_image.c : gtk_widget_set_default_visual()
10660 remove. It does nothing with Gtk2.
10662 * lib/libdia.def : added ps_unicoder exports
10664 * lib/message.c : remove #GNOME use GtkMessageDialog.
10665 Yeah, Dia gets dialogs wit icons cross-platform.
10667 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10668 to gtk_spin_button_get_value()
10670 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10672 add #undef GTK_DISABLE_DEPRECATED to still use ...
10673 * lib/prop_text.c : ... GtkText
10674 * lib/prop_widgets.c : ... GtkList
10675 * lib/prop_dialogs.c : ... gtk_signal_connect and more
10676 * lib/widgets.c : ... (too much to list here)
10678 * lib/ps-utf8.c : #include <string.h>
10680 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
10683 * Makefile.am: Adapted for gtk2.
10684 Removed dependencies on libunicode, on iconv(), on langinfo().
10686 * acconfig.h: removed (now obsolete)
10688 * lib/charconv.[ch]: removed (superceded by glib)
10689 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10691 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10692 libunicode types for their glib counterparts. Fixed the include
10693 paths for libxml2. Removed all traces of libxml1 or non-UTF8
10694 support (there were remains in objects/uml).
10697 2002-06-08 Hans Breuer <hans@breuer.org>
10699 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10700 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10701 Also use g_strdup()'s handling of NULL by returning NULL
10702 again at all places I found (remove unnecessary if's)
10704 * todo.gtk2 : new file to keep notes about gtk2 porting,
10705 further issues and thoughts and some status information.
10706 Also sent to dia-list ('Dia goes Gtk2 ...').
10708 [make it compile with GTK+ 2.0]
10710 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10711 removed definition of S_ISDIR, S_ISREG and getlogin
10713 * */makefile.msc : Use GTK2 and libxml2
10714 BEWARE: makefile.am, configure.in not yet ported !
10716 * app/app_procs.c app/diagram.c : remove
10717 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
10718 but set use gtk_menu_set_accel_path() on menu creation
10720 * app/color_area.c lib/widgets.c :
10721 make use of gtk_color_selection_set_has_palette ()
10723 * app/commands.c : gdk_pixbuf_new_from_file wants an
10724 extra argument. Convert from DIR to GDir usage.
10726 * app/diagram_tree.c(button_press_callback) : need to return
10727 FALSE in the signal handler to let gtk process it further.
10728 (get_object_name) : don't leak 'prop'
10730 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
10731 dia_page_layout_destroy() getting called more than once
10733 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
10734 GtkTypeInfo changes
10736 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10738 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10739 IIRC this code will not compile unchanged when USE_XIM is defined ...
10741 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10743 * app/interface.c : there is no widget->klass anymore in Gtk,
10744 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10745 parameter. Some tweaking of GtkWrapBox usage to get four tools in
10747 switch off GTK's double buffering on Dia's canvas. Otherwise we would
10748 get triple buffering and flicker.
10749 Replace call to GTK private function _gtk_accel_group_attach()
10750 with public gtk_window_add_accel_group()
10752 * app/layer_dialog.c : adapt to GtkTypeInfo changes
10754 * app/load_save.c lib/plug-ins.c lib/sheet.c
10755 objects/custom/custom.c :
10756 simplified by using g_file_test()
10758 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
10759 to gtk_accel_map_<save|load>. Also added common stock-icons
10762 * app/preferences.c : use gtk_button_set_label() instead
10763 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10765 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10766 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10769 * app/recent_files.c : removed GLIB_CHECK_VERSION
10772 plug-ins/metapost/render_metapost.c
10773 plug-ins/pstricks/render_pstricks.c
10774 plug-ins/svg/render_svg.c :
10775 replace getlogin() with g_get_user_name() which always
10778 * app/render_gdk.c : gdk_region_union_with_rect() modifies
10779 inplace now and returns nothing, also less #hell
10781 * app/render_libart.c : some initial #hell cleaning, SuckFont
10782 still needs to vanish
10784 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10785 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10787 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10788 * app/sheets_dialog_callbacks.c : some #hell and adaptions
10789 needed to GtkWrapBox api changes
10792 * lib/charconv.[hc] : removed from build
10793 [changed appropriate]
10794 * lib/prop_inttypes.c lib/prop_text.c :
10796 * lib/text.c : ported from HEAD but keep original indent
10797 intact. Original was done by Akira TAGOH.
10799 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10801 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10803 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10804 same on all platforms now!
10806 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10808 * lib/message.c : remove "charconv.h"
10810 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10813 * lib/sheet.c : convert from DIR to GDir usage
10815 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10817 * lib/widgets.h : include gtk<label|colorseldialog>.h
10820 * objects/fs/flow.c :
10821 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10823 * objects/custom/custom.c : convert from DIR to GDir usage
10826 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10829 2002-05-03 Hans Breuer <hans@breuer.org>
10831 * lib/dia_xml.c : make the well formed utf8 check
10832 actually work for û (non 7-bit ascii encoding)
10833 and fixed the file re-writing if the check fails.
10834 Thanks to Vitaly Lipatov for noticing the misbehaviour.
10836 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10837 comment on last ressort font. Thanks to Maxim Sobolev.
10839 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
10841 * sheets/network.sheet.in: corrected a typo in plotter invocation.
10843 2002-06-03 Steffen Macke <sdteffen@web.de>
10845 * shapes/network/digitizing_board.png:
10846 * shapes/network/digitizing_board.shape:
10847 * shapes/network/plotter.png:
10848 * shapes/network/plotter.shape:
10849 * shapes/network/Makefile.am
10850 * sheets/network.sheet.in: added new plotter and digitizing
10853 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
10855 * lib/font.c: made a symptomatic fix to a segfault reported by
10856 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10857 won't prevent dia from terminating, but should give more
10858 user-friendly information about why did it terminate.
10860 Two patches from <robert.young@dsto.defence.gov.au>:
10862 * app/display.c: fix the size of the canvas area which gets
10863 redrawn. There was an off-by one error (Closes #83659)
10865 * app/display.c: make sure we redraw all screen only when we
10866 really have to (some update_areas were mistakenly ignored) (Closes
10869 * NEWS: added a new entry for the future. Put there a reminder to
10870 update the dependencies.
10872 * configure.in: put in notes about what will change shortly.
10873 upped the version to 0.90+cvs (did also in config.h.win32)
10874 upped the minimum version for intltools (now 0.21)
10876 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
10882 bumped up version number to 0.90. Yay!
10884 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
10886 * doc/pl/Makefile.am:
10887 * doc/en/Makefile.am: fixed a "make install" problem when db2html
10888 is not present (Reported by Andrew Ferrier
10889 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10890 problem which prevented me from ever seeing the problem in doc/en...
10892 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10894 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10895 way to read the font path from the XFS configuration files in
10896 order to enable FreeType (fixes #83098).
10898 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10905 bumped up version number to 0.90.RC3
10907 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
10909 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10910 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10911 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10912 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10913 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10914 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10915 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10916 Added Polish documentation.
10918 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
10920 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10921 format for the UML State object. Now there's a hack to reload
10922 older files, and get them converted on the fly.
10923 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10925 * lib/properties.h:
10926 * lib/propobject.c:
10927 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10928 and adapter the proplist predicates. A LOAD_ONLY property is for
10929 when you have legacy to support but can't resist moving your
10930 fields around... (was needed to support the above state.c fix).
10932 If the in-core of your object changes and you need a LOAD_ONLY
10933 property for the old format, you must keep some spare room in your
10934 object's struct to accomodate for the potential old-style
10935 attributes. Then in foo_load(), after having called
10936 object_load_using_properties(), you must inspect the old-style
10937 fields and act accordingly. Don't ever change the on-disk formats...
10939 * objects/UML/object.c:
10940 * objects/UML/small_package.c: added a check against empty
10941 stereotypes still consuming space. Reported by Dolores Alia de
10942 Saravia <loli@unsa.edu.ar>. Thanks!
10944 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
10946 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10947 using libtool on an AFS partition.
10949 * po/update_potfiles_in.sh: now simply calls the recent intltools
10950 features; they work better than hand-crafted half-ignorant
10951 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10954 * po/POTFILES.in: added back two files update_potfiles_in.sh
10955 didn't take into account. Now this file is not automatically
10957 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10958 (the usual suspects, in fact).
10960 * configure.in: improved the isinf() / isfinite() detection on
10961 Solaris (MÃ¥rten Svantesson)
10963 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
10965 * configure.in: one expression was replacing $CFLAGS, removing
10966 whatever was previously in.
10967 Added more checks for isinf() and finite() on Solaris.
10969 * lib/geometry.h: added a macro defintion for isinf() if not
10970 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10973 * app/commands.c: "cut" did not set the 'modified' bit (paste has
10974 been for a little while). Fixes #82994.
10976 * Makefile.am: added more stuff to distclean-local. This should make
10977 "make distcheck" pass! Thanks to the author of
10978 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10979 ... I wonder who this Henstridge guy is ... ;-)
10980 Darn. Still doesn't pass. I give up for tonight.
10982 * po/update_potfiles_in.sh: updated to take care of sheet files,
10983 and to filter out the EML plug-in.
10984 * po/POTFILES.in: updated with all .c and all .sheet.in files
10986 * po/dia.pot, po/*.po: again updated all .po files with all
10987 strings (with the updated POTFILES). Now with the up-to-date
10988 POTFILES, just all languages have some fuzzy or untranslated
10989 strings (not that the 100% team was that large beforehand...)
10991 * po-checktrans: removed the comment about .po files not holding
10992 all translatable stuff, since now they do.
10994 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
11000 bumped up version number to 0.90.RC2
11002 2002-05-20 Hans Breuer <hans@breuer.org>
11004 * app/load_save.c : starting to increase
11005 Dias tolerance on incomplete/broken files. The
11006 corresponding bug is #56233. But the patch there does
11007 neither apply anymore nor does it really fix the problem
11008 but only delays it, e.g. even if it would be allowed
11009 to read a file without any layers, the later code can't
11011 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
11012 handle passing in NULL for the node gracefully.
11014 * shapes/network/printer.shape : added two more connection
11015 points - one at each side - to fix bug #60359
11017 * app/commands.c (edit_copy_callback) :
11018 add ddisplay_do_update_menu_sensitivity() to make
11019 sequence select-copy-paste work.
11021 2002-05-20 Hans Breuer <hans@breuer.org>
11023 * app/create_object.c (create_object_button_press) :
11024 added a call to ddisplay_do_update_menu_sensitivity()
11025 to make Ctrl^D etc work after object creation.
11028 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
11030 * objects/ER/entity.c:
11031 * objects/ER/attribute.c:
11032 * objects/ER/relationship.c: Patch to allow text size change from
11033 Celso Tetsuo Nagase Suzuki.
11035 2002-05-18 Steffen Macke <sdteffen@web.de>
11037 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
11039 * doc/en/graphics/greendots.png:
11040 * doc/en/home_network.png:
11041 * doc/en/line_props.png:
11043 * dia_gnome_icon.png:
11044 * dia_gnome_menu_icon.png:
11046 * shapes/network/telephone.png:
11047 * shapes/Logic/and.png:
11048 * shapes/Logic/buffer.png:
11049 * shapes/Logic/connector.png:
11050 * shapes/Logic/inverter.png:
11051 * shapes/Logic/nand.png:
11052 * shapes/Logic/nor.png:
11053 * shapes/Logic/not.png:
11054 * shapes/Logic/or.png:
11055 * shapes/logic/xor.png:
11056 * samples/ER-demo.dia:
11057 * samples/SADT.dia:
11058 * samples/UML-demo.dia:
11059 * samples/chronograms.dia:
11060 * samples/grafcet.dia: re-added as binary files
11062 2002-05-17 Hans Breuer <hans@breuer.org>
11064 * lib/libdia.def : reflect removing of render_store.[ch]
11066 * */makefile.mingw : remove VERSION definition it's
11067 done in config.h.win32. Dia still doesn't work if
11068 build with mingw ...
11070 * RELEASE-PROCESS : removed */makefile.mingw
11072 * app/sheets_dialog_callbacks.c : if we use those
11073 ugly charconv_gtk_* functions lib/charconv.h needs to
11075 * lib/charconv.h : ... and needs to contain the
11076 necesseray prototypes _and_ #defines
11078 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
11079 is deprecated and does nothing but spit a warning. This broke
11080 the shape format writing. Fixed.
11081 Also with libxml2 pretty formatted xml isn't the default
11082 anymore, but needs to be enabled explicit: It is done now
11083 for shape files, which almost always needed to be edited by
11086 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
11087 from stderr - which is invalid on Dia/win32 - to g_print -
11088 which opens up a console window if necessary. This way
11089 a xml-deprecation-error shouldn't stay unnoticed next time
11091 2002-05-17 Steffen Macke <sdteffen@web.de>
11093 * shapes/Misc/folder.png:
11094 * shapes/Misc/file.png: re-added as binary files
11096 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
11098 * lib/font.c: Fixed segfault for fonts without family_name.
11100 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
11102 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
11104 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
11105 Lars' request, minor cosmetic stuff (mostly _() of human-readable
11106 XML comments in .sheet files; one translator booby-trap disarmed).
11108 * lib/charconv.c: moved #hell inside the body of the new
11109 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
11112 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
11114 * plug-ins/wpg/Makefile.am (INCLUDES):
11115 * plug-ins/shape/Makefile.am (INCLUDES):
11116 * plug-ins/svg/Makefile.am (INCLUDES):
11117 * plug-ins/pstricks/Makefile.am (INCLUDES):
11118 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
11119 and DEBUG_CFLAGS in some missing places.
11121 * MAINTAINERS: New file containing list of known package
11125 * lib/charconv.c: Charconv versions of some common gtk calls.
11127 * app/sheets_dialog_callbacks.c
11128 (on_sheets_new_dialog_button_ok_clicked),
11129 (on_sheets_dialog_button_edit_clicked),
11130 (on_sheets_dialog_button_remove_clicked),
11131 (on_sheets_edit_dialog_button_ok_clicked):
11132 * app/sheets.c (sheets_optionmenu_create),
11133 (sheets_optionmenu_create): Added utf8 translations.
11135 * app/sheets_dialog.c:
11137 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
11139 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
11141 * po/POTFILES.in: added app/sheets_dialog.c
11143 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
11145 * lib/charconv.c: (charconv_local8_to_utf8),
11146 (charconv_utf8_to_local8): tweaked the warnings to get more
11148 * lib/font.c: (font_get_suckfont): handled a potential case of
11149 uninitialised data being used (just paranoid)
11151 * objects/GRAFCET/boolequation.c: (opstring),
11152 (opblock_get_boundingbox), (opblock_draw),
11153 (boolequation_calc_boundingbox): some extra hoops needed now dia
11154 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
11155 symbols can't yet be used with their proper Unicode cells, since
11156 gtk will demand them in the Symbol font, expressed in the local
11159 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
11160 the fix just above).
11162 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
11164 * app/diagram_tree.c (get_object_name): Check that name property
11165 doesn't have null string.
11167 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
11169 * autogen.sh (DIE): Added conditional --force to gettextize.
11171 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
11174 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
11176 * RELEASE-PROCESS: added James' notes on how to properly make the
11179 * configure.in: removed macro nesting related to libpng.h, which
11180 was causing some problems on some systems (like mine, which made
11181 the snapshots bad).
11183 Made --enable-unicode, previously an option, the mandatory case.
11185 * app/Makefile.am: updated EXTRA_DIST
11188 * app/makefile.mingw:
11190 * doc/en/dia-manual.sgml:
11191 * plug-ins/makefile.mingw:
11192 * configure.in: bumped up the version number to 0.90.RC1
11194 * lib/render_objects.[ch]:
11195 * po/POTFILES.in: removed render_objects from the build.
11197 * plug-ins/Makefile.am:
11198 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
11199 so we keep its source in the tarball.
11201 * objects/network/*.c, Makefile.am:
11202 * objects/sybase/*.c, Makefile.am:
11203 * po/POTFILES.in: cleaned up the non-existent files from the po
11206 * plug-ins/Makefile.am: re-enabled metapost plug-in.
11208 2002-05-13 Steffen Macke <sdteffen@web.de>
11211 * app/command.c: added M. C. Nelson to the Authors
11212 * sheets/Circuit/Makefile.am: added firewall shape to build
11213 * sheets/network/Makefile.am: added telephone and microphone
11216 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
11218 * RELEASE-PROCESS: Added list of files that contain the release
11219 number or should otherwise be changed at each release.
11221 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
11223 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
11224 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
11226 2002-05-12 Hans Breuer <hans@breuer.org>
11228 * config.h.win32 : changed VERSION to 0.90.RC1
11230 * app/makefile.msc lib/makefile.msc : use renamed
11231 gdk-pixbuf version (same content but renamed because
11232 all the other gtk+ dlls are renamed) to avoid trouble
11233 mixing gtk versions (of which one would not
11236 * app/app_procs.c : removed recently unneeded
11237 inclusion of "sheets.h"
11239 * app/render_gdk.c : removed my own debug spew
11240 which should never made it to cvs
11242 * lib/render_object.[hc] : added
11243 #error "File not used anymore."
11245 * lib/libdia.def : updated externals
11247 * app/interface.c : dropped filenames need to be
11248 converted from uri with Gtk+2.0
11250 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
11252 * RELEASE-PROCESS (new): a draft document about how to release. To
11253 be discussed. (already with some input from Hans Breuer)
11255 2002-05-12 Steffen Macke <sdteffen@web.de>
11257 * sheets/Makefile.am: re-added Misc sheet to make process
11259 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
11261 * objects/FS/function.c: Added comments to humungous list of menu
11262 items, to aid translators.
11264 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11266 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
11268 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
11270 * app/interface.c (create_toolbox): Disallow shrinking beyond
11271 requested size. Fixes bug #59439, and confirms to GTK guidelines
11272 (see gtk_window_set_policy).
11273 (create_sheets): Removed now unnecessary set_usize call.
11275 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11277 * lib/beziershape.c (remove_handles): Fixing removal of last
11278 segment. Undo of removal still hokey.
11280 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
11282 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
11284 * lib/beziershape.c (beziershape_init): Removed early call to
11285 beziershape_update_data where points aren't set yet.
11286 (beziershape_add_segment): Use segment 0 instead of overflowing
11287 points array with segment+1.
11288 (beziershape_remove_segment): Proper offset for fixing
11290 (remove_handles): Proper offset.
11292 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
11294 * objects/GRAFCET/action.c (action_update_data): Init x value of
11295 click point for call to connpointlist_adjust_count.
11297 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
11299 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
11300 setting to where values are inited.
11302 * lib/polyshape.c (polyshape_init): Removed call to
11303 polyshape_update_data that tried to use uninitialized data.
11305 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11307 * app/sheets_dialog.c: Mass removal of //-style comments. The
11308 Irix compiler doesn't like them:( I do...
11310 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
11312 * app/render_libart.c (draw_string): Bail out when no GDK font is
11314 (set_font): Give error when font not found.
11315 (set_fillstyle): Intlized error msg.
11317 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
11318 modified when applied (and ok only does apply if apply is set
11319 sensitive). Fixes bug #75623.
11321 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
11323 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
11325 2002-05-05 Steffen Macke <sdteffen@web.de>
11327 * app/Makefile.am: added $(UNICODE_CFLAGS)
11329 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
11331 * app/commands.c (help_manual_callback): Check return value of
11334 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
11336 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
11339 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
11341 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
11343 * objects/UML/uml.c (uml_operation_read): Fix of UML default
11346 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11348 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
11349 Added button to toggle diagram compression.
11351 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11353 * lib/font.c: Support for loading extra kerning files, plus got
11354 rid of rounding errors. Bounding box mostly perfect for freetype
11356 (font_string_width): Fudge factor to get around nonlinearity of
11359 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
11361 * lib/font.c (font_string_width): YA font calculation scheme, with
11364 * objects/UML/class.c (umlclass_calculate_data): Uses the same
11365 font for drawing and calculating now.
11367 * configure.in: Added utime.h check.
11369 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
11370 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
11372 2002-04-26 Hans Breuer <hans@breuer.org>
11374 [ Instead of fixing about 70 occurances in 20 files
11375 where GTK_TALKS_UTF8_WE_DONT needed to be handled
11376 Dia on win32 from now on uses glib-2.0 and not
11377 only talks utf-8 with gtk-1.3 but also internally.
11378 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
11381 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
11382 #undef GTK_TALKS_UTF8_WE_DONT
11384 * */makefile.msc : changes to use glib-2.0 (still
11385 using gtk+1.3(win32-production)
11387 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
11388 adapt kevent->string handling, add <string.h>
11389 * app/render_gdk.c (get_text_width) : the length given
11390 is in chars, gdk_text_width() needs bytes
11392 * app/render_libart.c :
11393 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
11394 (could simplify the same way as done in render_gdk.c)
11396 * app/diagram_tree.c app/paginate_gdiprint.cpp
11398 * lib/prop_basic.c lib/prop_geomtypes.c
11399 lib/propdialgs.c lib/propobject.c :
11400 added <string.h> which is now removed from charconv.h
11402 * lib/charconv.h : optional use infrastructure from
11403 glib-2.0 -> only five direct function mapping left
11405 * lib/charconv.c : avoid to build this with glib-2.0
11407 * lib/font.c : no string conversion needed anymore
11408 when Dia and Gtk talk utf-8, also code adaptions
11409 for GLIB_CHECK_VERSION(2,0,0)
11411 * lib/libdia.def : removed charconv functions
11413 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
11414 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
11416 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
11417 removed GTK_TALKS_UTF8_WE_DONT
11419 * lib/text.c : finally(?) fixed cursor <place|move>ment
11420 for Umlauts. Also fixed char insertion, still wondering
11421 how this could ever work. Does realloc on Linux
11422 initialize the memory with zeros ?
11424 * objects/chronogram/chronoline_event.c
11425 objects/grafcet/boolequation.c :
11426 there is no uni_get_utf8 when building for glib-2.0.
11427 Replace with g_utf8_get_char() and g_utf8_next_char().
11429 * objects/uml/stereotype.c (bracketted_to_string) :
11430 simplify while adding code for glib-2.0 build
11432 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
11434 * app/diagram.h: Autosave field
11435 * app/diagram.c (diagram_set_modified): Sets autosave field.
11437 * objects/UML/usecase.c (usecase_update_data):
11438 * objects/flowchart/ellipse.c (ellipse_update_data):
11439 * objects/flowchart/parallelogram.c (pgram_update_data):
11440 * objects/flowchart/diamond.c (diamond_update_data):
11441 * objects/custom/custom_object.c (custom_update_data):
11442 * objects/UML/state.c (state_update_data):
11443 * objects/UML/small_package.c (smallpackage_update_data):
11444 * objects/UML/object.c (objet_update_data):
11445 * objects/UML/note.c (note_update_data):
11446 * objects/UML/node.c (node_update_data):
11447 * objects/UML/component.c (component_update_data):
11448 * objects/UML/classicon.c (classicon_update_data):
11449 * objects/UML/actor.c (actor_update_data):
11450 * objects/SADT/box.c (sadtbox_update_data):
11451 * objects/FS/function.c (function_update_data):
11452 All now update text boundaries from update_data.
11454 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
11457 2002-04-26 Hans Breuer <hans@breuer.org>
11459 * config.h.win32 : added VERSION definition here
11460 (and removed from makefile.msc's)
11462 * app/makefile.msc : added new files
11464 * app/app_procs.c (app_init): remove sheets_dialog_create()
11465 from start-up and ...
11467 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
11468 sheet_dialog here when it is really needed.
11469 #include "../lib/message.h", make sheets_dialog_create()
11470 return it's success or failing on (!custom_type_symbol).
11471 Although editing shapes is nice IMHO it isn't crucial enough
11472 to abort() Dia if it isn't possible.
11474 * app/sheet.h : adapt create_sheet_dialog() prototype
11476 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
11478 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
11479 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
11480 name space corrections for utime() and utim_buf #ifdef
11483 * lib/libdia.def : export new sheet functions
11485 * lib/makefile.msc : added new files
11487 * lib/render.c : don't put draw_bezier_with_arrows() in
11488 the DrawLineWithArrowsFunc slot
11490 * objects/custom/custom_object.c : #include <gmodule.h>
11491 and export 'custom_type' via G_MODULE_EXPORT
11493 * objects/uml/class_dialog.c : removed 'incompatible
11494 types' warnings. Some refactoring while making it fit
11495 on screen with 800x600 again.
11497 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
11499 * plug-ins/python/pydia-handle.h : extra parameter to
11500 PyDiaHandle_New to store the owner of the handle
11501 * plug-ins/python/pydia-handle.c : store handle owner
11502 on construction and use it in new method .connect()
11503 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
11504 adapt to changed prototype
11506 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
11508 * lib/text.c (text_calc_boundingbox): Will now return early if box
11511 * objects/flowchart/box.c (box_update_data): Now updates text
11512 width info from update_data.
11514 2002-04-23 Steffen Macke <sdteffen@web.de>
11516 * plug-ins/xfig/xfig-import.c: fixed text import
11518 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
11520 * app/export_png.c: Moved dialog functions to their own file.
11521 * app/dialogs.[ch]: New files with standard functions for creating
11522 small, transient dialogs (e.g. export options).
11523 * app/Makefile.am: Added dialogs.[ch]
11525 2002-04-19 Steffen Macke <sdteffen@web.de>
11527 * shapes/Misc/folder.*:
11528 * shapes/Misc/file.*:
11529 * shapes/Misc/Makefile.am:
11530 * shapes/Makefile.am:
11531 * sheets/Misc.sheet.in:
11532 * sheets/Makefile.am:
11533 * configure.in: added new Misc sheet containing filesystem shapes
11535 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
11537 * app/lineprops_area.c: Arrow selector in toolbox changed to use
11538 standard arrowdraw code. Line is thinner to make some arrowheads
11541 2002-04-18 Steffen Macke <sdteffen@web.de>
11543 * sheets/network.sheet.in:
11544 * shapes/network/telephone.shape:
11545 * shapes/network/Makefile.am: added telephone shape
11547 2002-04-16 Steffen Macke <sdteffen@web.de>
11549 * sheets/EML.sheet.in: commented out unavailable shapes
11551 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
11553 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
11554 variable assignment.
11556 2002-04-15 Steffen Macke <sdteffen@web.de>
11558 * plug-ins/dxf/dxf-import.c: text import works again
11559 * shapes/Pneumatic/Makefile.am: added compush shape
11560 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11563 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
11565 * All these modifications are for the 'Sheets and Objects' dialog
11568 * app/pixmaps/line_break.xpm: new icon representing a line break.
11570 * app/pixmaps/n_a.xpm: new empty icon representing not available.
11572 * app/Makefile.am: added sheets_*.[ch] files to compile list.
11574 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11576 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11578 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
11580 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11582 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11584 * app/sheets_dialog_callbacks.h: [new file] support for " " "
11586 * app/interface.c: added 'interface_current_sheet_name' global to
11587 fill_sheet_wbox(); made fill_sheet_menu() non-static
11589 * app/interface.h: added extern declaration for aboves.
11591 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11593 * app/sheets.h: [new file] declarations for backing store structures
11595 * lib/sheet.c: modification of new_sheet() parameters; introduction
11596 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11597 changes to load_register_sheet().
11599 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11600 added 'has_icon_on_sheet' flag to SheetObject structure; added
11601 'filename', 'scope', 'shadowing' fields to Sheet structure.
11603 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11606 * lib/plug-isn.h: see above.
11608 * lib/object.c: added 'sheet.h' to include list; added several
11610 to detect objects which are not found on any sheet (for future use)
11611 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11612 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11614 * lib/object.h: added public declarations for above functions where
11617 * objects/custom/custom.c: made custom_object_load() non-static so we
11618 can load and interpret .shape files from the Sheets & Objects dialog
11620 * objects/custom/custom_object.c: made 'custom_type' non-static so
11621 we can differentiate between SVG shapes and other types.a
11623 2002-04-07 Hans Breuer <hans@breuer.org>
11625 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11626 from 2002-01-22 to not destroy diagram->data->selected.
11627 Avoids to crash on Objects/Align/Vertical/Top
11629 * app/render_eps.c (draw_string) : un-const buffer
11630 It isn't at all const (g_malloc(), assignment, g_free()).
11631 Doesn't gcc catch such ?
11633 * lib/arrows.h : prototype calculate_arrow_point()
11635 * lib/font.c (font_get_suckfont) : no need to
11636 special case gdk_draw_string() with GTK_TALKS_UTF8,
11637 cause all the parameter differences are handled above
11639 * lib/libdia.def : updated externals
11641 * lib/makefile.msc : removed string_prerenderer, added render
11643 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11644 is expected. [Sometimes it's good to read compiler warnings.]
11646 * objects/standard/image.c : simplified by use of g_strconcat()
11648 * plug-ins/python/makefile.msc : updated for Python 2.2
11650 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
11652 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11653 directionality problem for zero-length line segments.
11655 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
11657 * app/diagram.c (diagram_ungroup_selected)
11658 (diagram_update_menu_sensitivity): Now allows ungrouping of
11659 several groups at once.
11661 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
11663 * lib/render.c, all renderers: Binary incompatibility, change to
11664 expandable renderops structure.
11666 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
11668 * objects/standard/Makefile.am:
11669 * objects/network/Makefile.am:
11670 * objects/UML/Makefile.am:
11671 * objects/ER/Makefile.am:
11672 * objects/FS/Makefile.am:
11673 * objects/flowchart/Makefile.am:
11674 * objects/custom/Makefile.am:
11675 * objects/GRAFCET/Makefile.am:
11676 * objects/chronogram/Makefile.am:
11677 * objects/SADT/Makefile.am:
11678 * plug-ins/cgm/Makefile.am:
11679 * plug-ins/pstricks/Makefile.am:
11680 * plug-ins/hpgl/Makefile.am:
11681 * plug-ins/wpg/Makefile.am:
11682 * plug-ins/svg/Makefile.am:
11683 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11685 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
11687 * app/render_eps.c: Support for dumping TrueType fonts (taken from
11690 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
11692 * lib/render.c: New abstract super class for renderers.
11694 2002-03-07 Akira TAGOH <tagoh@redhat.com>
11696 * objects/ER/attribute.c (attribute_save): save a font property.
11697 (attribute_load): load a font property, and if can't load it, it's
11700 * objects/ER/entity.c (entity_save): save a font property.
11701 (entity_load): load a font property, and if can't load it, it's
11704 * objects/ER/relationship.c (relationship_save): save a font property.
11705 (relationship_load): load a font property, and if can't load it, it's
11708 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11710 (umlclass_save): save the font and the font size properties.
11711 (umlclass_load): load the font and the font size properties.
11713 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
11715 * lib/string_prerenderer.[ch] (REMOVED):
11717 * lib/diagramdata.c:
11719 * app/render_eps.c: got rid of the string-specific string
11720 prerenderer, transitioned its functionality towards Lars'
11721 two-phase rendering
11723 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
11725 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
11726 may need to rerun aclocal.
11728 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
11730 * lib/font.c: First attempt at Unicodeness for Freetype.
11732 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11734 * lib/font.c (font_string_width): Fixed font_string_width for
11735 freetype. BB is now almost right.
11737 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
11739 * app/render_eps.h:
11740 * app/paginate_psprint.c (paginate_psprint):
11742 * app/render_eps.c: Support for dumping postscript fonts into
11743 postscript files with freetype. Fairly primitive, but works.
11744 Unicode version may have problems.
11746 2002-02-28 Akira TAGOH <tagoh@redhat.com>
11748 * objects/UML/class_dialog.c (class_read_from_dialog)
11749 (class_fill_in_dialog), (class_create_page): add the font selector and
11750 the font size selector.
11752 * objects/UML/class.c (umlclass_draw): uses each font_height.
11753 (umlclass_calculate_data): ditto.
11754 (fill_in_fontdata): add initial value of new font_height.
11755 (umlclass_copy): add new font_height.
11757 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
11759 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11761 * lib/font.c: calculate font metrics properly and stop guessing at
11764 2002-02-28 Akira TAGOH <tagoh@redhat.com>
11766 * configure.in: changed gtk_advancement value to dia_talks_utf8.
11767 right now Dia is working with UTF-8 internally. it means Dia probably
11768 support most languages also including the languages which heretofore
11769 didn't work correctly.
11771 2002-02-26 Akira TAGOH <tagoh@redhat.com>
11773 * objects/FS/function.c: add related text properties.
11774 (function_get_props), (function_set_props): add handling attribute.
11776 * objects/FS/flow.c: add related text properties.
11777 (flow_get_props), (flow_set_props): add handling attribute.
11779 * objects/FS/flow-ortho.c: add related text properties.
11780 (orthflow_set_props), (orthflow_get_props): add handling attribute.
11782 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11784 * objects/ER/entity.c: ditto.
11786 * objects/ER/attribute.c: ditto.
11788 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
11790 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11792 * autogen.sh: add a check for missing intltoolize.
11794 2002-02-20 Akira TAGOH <tagoh@redhat.com>
11796 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11797 charcode, it was registered the duplicate item to HashTable. fix.
11799 * app/render_gnomeprint.c (get_width_string): add new function.
11800 (draw_string): fix non-multibyte specific code.
11802 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
11804 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11806 * lib/font.c: do not try to search paths that do not begin with
11807 '/', like X Font Server addresses.
11809 * objects/UML/message.c (message_draw): free mname when not
11810 message->text but CREATE or DESTROY.
11812 * objects/UML/uml.h:
11813 * objects/UML/uml.c:
11814 * objects/UML/class_dialog.c: added code to handle a stereotype
11815 attribute for operations.
11817 2002-02-19 Akira TAGOH <tagoh@redhat.com>
11819 * lib/Makefile.am: add LIBART_CFLAGS.
11821 2002-02-15 Hans Breuer <hans@breuer.org>
11823 * lib/font.c (font_get_suck_font): the black and white pixel values
11824 need to be taken from a 1 bit colormap rather than the default colormap.
11825 (fixed again, last time was 2000-05-26)
11827 Also handle the case where GTK_TALKS_UTF8 and expects all strings
11828 passed in to be in this encoding.
11830 * lib/libdia.def : export suck_font_free()
11832 * lib/text.c (text_draw) : avoid circular dependency to ../app
11833 at least for the !USE_XIM case, where it is unnecessary.
11835 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
11837 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11839 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11840 * sheets/Circuit.sheet.in: added new shape microphone
11841 * shapes/Circuit/speaker_de.shape: Added a connection point.
11843 2002-02-13 Akira TAGOH <tagoh@redhat.com>
11845 * app/render_libart.c (draw_string): fixed build issue for Win32.
11847 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11850 * configure.in: fixed testing gtk_advancement.
11852 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11854 2002-02-12 Akira TAGOH <tagoh@redhat.com>
11856 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11859 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
11861 * app/group.c (group_copy): Made new object properly initialized
11864 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
11866 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11868 2002-02-10 Akira TAGOH <tagoh@redhat.com>
11870 * lib/text.c (text_draw): fixed XIM transaction.
11872 * app/interface.c (create_display_shell): add signal for
11875 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11877 (set_input_dialog): remove.
11878 (ddisplay_canvas_events): remove XIM transaction. it can't transact
11879 correctly on this function.
11881 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11884 * app/export_png.c: Added checks for interactivity (maybe this
11885 should be a hook after all?).
11887 * app/filedlg.c (file_export_callback): Made export dialog add
11888 suffix when reopened.
11890 * app/export_png.c: Added dialog asking for export size.
11892 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11894 * lib/widgets.c: Fixed font reselection problem and first font
11897 * objects/UML/actor.c (actor_update_data): Changed to have
11898 connection points below text.
11900 2002-02-08 Akira TAGOH <tagoh@redhat.com>
11902 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11905 2002-02-07 Akira TAGOH <tagoh@redhat.com>
11907 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11908 strings which is given.
11909 (suck_font): remove. it's any longer needed.
11911 * app/render_libart.c (set_font): don't get suckfont.
11912 (draw_string): get suckfont only which is needed for now.
11914 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11916 * lib/text.c: Fixes for misunderstood width functions.
11918 2002-02-05 Hans Breuer <hans@breuer.org>
11920 * lib/dia_xml.c : use g_strconcat() instead of
11921 malloc, strcpy, strcat dance
11922 * app/properties.c : same here and plug memory leak
11923 (gtk functions don't eat strings)
11925 * objects/UML/message.c : there is no g_sprintf()
11926 use g_strdup_printf() instead ...
11928 2002-02-05 Akira TAGOH <tagoh@redhat.com>
11930 * lib/message.c (gtk_message_internal): doesn't need to convert to
11933 * app/render_libart.c (draw_string): fixed transaction for UTF-8
11935 (get_text_width): ditto.
11937 * app/Makefile.am (EXTRA_DIST):
11938 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11940 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11941 This function needs ifdef HAVE_FREETYPE because don't use it for
11944 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
11946 * NEWS: updated with the new dependencies.
11948 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11950 * objects/UML/class.h:
11951 * objects/UML/class.c:
11952 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11953 property using a GtkMenu. Options are Undefined, In, Out, In & Out
11955 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
11957 * app/render_libart.c: Slow but working libart freetype renderer,
11960 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11962 * app/render_gdk.c (draw_string): Fixed gc_function bug.
11964 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11966 * lib/font.c (freetype_render_string):
11968 * app/render_gdk.c:
11969 * app/render_gdk.h: Changed freetype_render_string to use
11970 callback. Rendering is broken.
11972 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
11974 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11976 * objects/UML/uml.h:
11977 * objects/UML/uml.c: added UMLInheritanceType and isQuery
11978 (constant) UML Operation attributes. UMLInheritanceType is either
11979 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
11981 * objects/UML/class.h:
11982 * objects/UML/class.c:
11983 * objetcs/UML/class_dialog.c: added code to handle new
11984 UMLOperation attributes via a GtkMenu and a checkbox.
11986 2002-02-03 Akira TAGOH <tagoh@redhat.com>
11988 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11989 several client doesn't work with previous codes.
11991 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
11993 * lib/font.c (freetype_render_string): Kerning. Very few fonts
11996 2002-02-02 Akira TAGOH <tagoh@redhat.com>
11998 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11999 when doing the operation like invert the objects after active view is
12000 destroyed. when changes focus, it needs to set active_display.
12002 * app/layer_dialog.c (dia_layer_update_from_layer):
12003 (layer_dialog_edit_layer): need to convert to locale encoding
12004 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
12005 (edit_layer_ok_callback):
12006 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
12008 * lib/diagramdata.c (new_diagram_data): ditto.
12010 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
12012 * lib/diagramdata.c (new_layer): use utfchar instead of char for
12015 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
12016 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
12017 it's needed for now. also this function needs prototype declaration.
12019 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
12021 * lib/widgets.c: Style now functional on font selector. Some leak
12022 possible, but doesn't show up under stress test.
12024 2002-01-31 Akira TAGOH <tagoh@redhat.com>
12026 * app/plugin-manager.c (clist_select_row): name and description needs to
12027 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
12028 (get_plugin_manager): ditto.
12030 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
12032 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
12035 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
12036 when prop->string_data is NULL.
12038 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
12041 * lib/widgets.h: New font selector separating font and style.
12042 Style not functional yet.
12044 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
12047 * app/render_gdk.c (draw_string): More freetype support, now
12048 renders text. Still broken is font selection and exporting.
12050 2002-01-30 Akira TAGOH <tagoh@redhat.com>
12052 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
12055 * objects/chronogram/chronoline.c (chronoline_create): ditto.
12057 * objects/UML/usecase.c (usecase_create): ditto.
12059 * objects/UML/state.c (state_create): ditto.
12061 * objects/UML/object.c (objet_create): ditto.
12063 * objects/UML/node.c (node_create): ditto.
12065 * objects/UML/message.c (message_create): ditto.
12067 * objects/UML/component.c (component_create): ditto.
12069 * objects/UML/classicon.c (classicon_create): ditto.
12071 * objects/UML/actor.c (actor_create): ditto.
12073 * objects/SADT/box.c (sadtbox_create): ditto.
12075 * objects/SADT/annotation.c (annotation_create): ditto.
12077 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
12079 * objects/GRAFCET/step.c (STEP_FONT):
12080 * (step_create): ditto.
12082 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
12084 * objects/GRAFCET/action.c (ACTION_FONT):
12085 (action_create): ditto.
12087 * objects/FS/function.c (function_create): ditto.
12089 * objects/FS/flow.c (flow_create):
12091 (flow_apply_defaults): ditto.
12093 * objects/FS/flow-poly.c (flow_create):
12095 (flow_apply_defaults): ditto.
12097 * objects/FS/flow-ortho.c (orthflow_create):
12099 (orthflow_apply_defaults): ditto.
12101 * objects/ER/relationship.c: use utfchar instead of char for structure.
12102 (relationship_create): name needs to convert to UTF-8.
12104 * objects/ER/attribute.c: use utfchar instead of char for structure.
12105 (attribute_create): name needs to convert to UTF-8.
12107 * objects/ER/entity.c: use utfchar instead of char for structure.
12108 (entity_create): name needs to convert to UTF-8.
12110 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
12111 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
12112 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
12113 items. if GTK_TALKS_UTF8 isn't defined.
12115 2002-01-29 Akira TAGOH <tagoh@redhat.com>
12117 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
12118 it was my careless mistake...
12120 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
12121 a font name, because there are strings which isn't shown by "Courier".
12122 We need to consider a way to feel free to choose a font at runtime.
12124 * lib/render_object.c (render_object_load): ditto.
12126 * lib/text.c (data_text): ditto.
12128 * objects/EML/instantiation.c (instantiation_create): ditto.
12130 * objects/EML/interaction-ortho.c (interaction_ortho_create):
12131 (interaction_ortho_load): ditto.
12133 * objects/EML/interaction.c (interaction_create):
12134 (interaction_load): ditto.
12136 * objects/EML/process.c (fill_in_fontdata): ditto.
12138 * objects/ER/attribute.c (attribute_create):
12139 (attribute_load): ditto.
12141 * objects/ER/entity.c (entity_create):
12142 (entity_load): ditto.
12144 * objects/ER/relationship.c (relationship_create):
12145 (relationship_load): ditto.
12147 * objects/UML/association.c (association_create):
12148 (association_load): ditto.
12150 * objects/UML/class.c (fill_in_fontdata): ditto.
12152 * objects/UML/constraint.c (constraint_create): ditto.
12154 * objects/UML/dependency.c (dependency_create): ditto.
12156 * objects/UML/generalization.c (generalization_create): ditto.
12158 * objects/UML/implements.c (implements_create): ditto.
12160 * objects/UML/large_package.c (largepackage_create): ditto.
12162 * objects/UML/note.c (note_create): ditto.
12164 * objects/UML/realizes.c (realizes_create): ditto.
12166 * objects/UML/small_package.c (smallpackage_create): ditto.
12168 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
12170 * objects/custom/custom_object.c (custom_create): ditto.
12172 * objects/network/antenna.c (render_to_store): ditto.
12174 * objects/network/computer.c (render_to_store): ditto.
12176 * objects/network/disc.c (render_to_store): ditto.
12178 * objects/network/flash.c (render_to_store): ditto.
12180 * objects/network/hub.c (render_to_store): ditto.
12182 * objects/network/modem.c (render_to_store): ditto.
12184 * objects/network/modularswitch.c (render_to_store): ditto.
12186 * objects/network/monitor.c (render_to_store): ditto.
12188 * objects/network/printer.c (render_to_store): ditto.
12190 * objects/network/rj45plug.c (render_to_store): ditto.
12192 * objects/network/scead-plug.c (render_to_store): ditto.
12194 * objects/standard/textobj.c (textobj_load): ditto.
12196 * objects/sybase/client.c (render_to_store): ditto.
12198 * objects/sybase/dataserver.c (render_to_store): ditto.
12200 * objects/sybase/ltm.c (render_to_store): ditto.
12202 * objects/sybase/repserver.c (render_to_store): ditto.
12204 * objects/sybase/rsm.c (render_to_store): ditto.
12206 * objects/sybase/stableq.c (render_to_store): ditto.
12208 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
12210 * objects/UML/uml.h (UML_STEREOTYPE_START):
12211 (UML_STEREOTYPE_END): changes default strings.
12213 2002-01-28 Akira TAGOH <tagoh@redhat.com>
12215 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
12216 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
12217 which is given to arguments isn't UTF-8. so don't need to convert it.
12218 if GTK+ handle UTF-8, also don't need to convert it.
12220 (bracketted_to_string): fixed transaction for UTF-8 support.
12221 also start/end bracket is not necessarily 1 character. so that when use
12222 strend(), it doesn't work correctly.
12223 (string_to_stereotype): use utfchar instead of char.
12224 (remove_stereotype_from_string): ditto.
12225 (stereotype_to_string): ditto.
12227 * objects/UML/stereotype.h: ditto.
12229 * objects/UML/message.c: use utfchar instead of char for structure.
12230 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
12232 * objects/UML/small_package.c: use utfchar instead of char for structure.
12234 * objects/UML/realizes.c: ditto.
12236 * objects/UML/object.c: ditto.
12238 * objects/UML/large_package.c: ditto.
12240 * objects/UML/implements.c: ditto.
12242 * objects/UML/generalization.c: ditto.
12244 * objects/UML/dependency.c: ditto.
12246 * objects/UML/constraint.c: ditto.
12248 * objects/UML/component.c: ditto.
12250 * objects/UML/class_dialog.c (attributes_get_current_values):
12251 (attributes_list_new_callback, attributes_fill_in_dialog):
12252 (parameters_set_values, parameters_get_values):
12253 (parameters_get_current_values, parameters_list_new_callback):
12254 (operations_set_values, operations_get_values):
12255 (operations_get_current_values, operations_list_new_callback):
12256 (operations_fill_in_dialog, templates_set_values):
12257 (templates_get_values, templates_get_current_values):
12258 (templates_list_new_callback, templates_fill_in_dialog):
12259 fixed transaction for UTF-8 support.
12261 2002-01-27 Akira TAGOH <tagoh@redhat.com>
12263 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
12265 * objects/UML/class_dialog.c (class_read_from_dialog):
12266 (class_fill_in_dialog):
12267 (attributes_get_values): ditto.
12269 * objects/UML/actor.c (actor_create): ditto.
12271 * objects/UML/class.c (umlclass_calculate_data): ditto.
12273 * objects/UML/association.c (association_apply_properties):
12274 (fill_in_dialog): ditto.
12276 * objects/UML/uml.c (uml_get_attribute_string):
12277 (uml_get_operation_string):
12278 (uml_get_parameter_string):
12279 (uml_get_formalparameter_string): use utfchar instead of char.
12281 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
12282 UML_STEREOTYPE_END.
12284 * objects/UML/class.h: use utfchar instead of char.
12286 * lib/dia_xml.c (data_add_string): ditto.
12288 * lib/text.c (text_insert_char): fixed characters# calculation
12289 when includes multibytes character in strings.
12291 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
12293 Patch from Richard Rowell <rwrowell@bellsouth.net>:
12295 * app/lineprops_area.c:
12298 * lib/widgets.c: added crow foot arrow and cross arrow
12300 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
12302 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
12304 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
12306 * po/update.pl (REMOVED):
12307 * po/update.sh (REMOVED):
12308 * xml-i18n-merge.in.kg (REMOVED):
12309 * xml-i18n-update.in.kg (REMOVED):
12310 * sheets/Makefile.am:
12313 * configure.in: converted from xml-i18n-tools to intltools
12315 This looks like it fixes the build bugs of the snapshot tarballs,
12316 and it supersedes #69611.
12318 2002-01-25 Akira TAGOH <tagoh@redhat.com>
12320 * lib/text.c (text_insert_char): fixed characters# calculation.
12321 it's not string length.
12323 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
12324 is defined, needs to convert a description to UTF-8.
12326 * app/render_gdk.c (get_text_width): fixed transaction for
12327 UTF-8 support. also should uses gdk_text_width_wc() instead
12328 of gdk_text_width().
12330 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
12331 is defined, needs to convert to locale encoding for display.
12332 Also use utfchar instead of char for argument.
12334 2002-01-24 Hans Breuer <hans@breuer.org>
12336 * app/commands.c(edit_paste_callback and more) :
12337 call diagram_modified(ddisp->diagram) to fix #68083
12338 (help_menu_callback) : plug a DIR leak
12340 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
12341 GTK_TALKS_UTF8_WE_DONT
12343 * app/render_gdk.c(get_text_with) : it's a bad idea to use
12344 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
12345 gdk_text_width(). The length value is still questionable ...
12347 * lib/charconv.c : use functions already available in early
12348 GLIB-1.3 days whiches API hasn't changed since, to avoid
12349 version problems with the win32 build
12351 * lib/font.c : finally fix #58045 and #68208
12353 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
12355 2002-01-24 Akira TAGOH <tagoh@redhat.com>
12357 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
12358 no strings, fixed transaction.
12360 * lib/charconv.h: fixed typo.
12362 * app/menus.c: fixed typo.
12364 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
12366 * objects/UML/object.c: attrib's type uses utfchar instead of char.
12368 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
12370 * lib/text.c (text_create_change): use unichar instead of char.
12372 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
12373 use utfchar instead of char.
12375 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
12378 * lib/charconv.c (charconv_utf8_get_char): add new function.
12380 2002-01-23 Akira TAGOH <tagoh@redhat.com>
12382 * lib/text.c (text_delete_forward, text_delete_backward,
12383 text_split_line): fixed transaction for UTF-8 support.
12385 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
12386 strlen[] has string length for UTF-8, so has to use alloclen[].
12390 * .cvsignore: add dia.pot.
12392 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
12394 * configure.in: Added "sk" to ALL_LINGUAS.
12396 2002-01-22 Akira TAGOH <tagoh@redhat.com>
12398 * lib/text.c (text_set_string, new_text, text_copy,
12399 text_get_string_copy, text_join_lines): use utfchar instead of gchar
12402 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
12405 * lib/charconv.c (charconv_utf8_strchr): add new function.
12407 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
12409 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
12411 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
12412 strings to the appropriate encoding.
12414 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
12416 * app/object_ops.c (object_list_align_[hv]): Leak fix.
12418 * lib/Makefile.am (INCLUDES): Added debug flags.
12420 * app/object_ops.c: Fixed ordering problem of align equi-distant &
12423 2002-01-21 Akira TAGOH <tagoh@redhat.com>
12425 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
12426 gdk_string_width().
12428 * objects/GRAFCET/boolequation.c: fixed invalid comment.
12430 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
12431 when defined UNICODE_WORK_IN_PROGRESS.
12433 * lib/dia_xml.c (data_add_string): fixed typo.
12435 2002-01-20 Akira TAGOH <tagoh@redhat.com>
12437 * configure.in: fixed test gtk_advancement.
12439 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
12441 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
12444 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12446 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
12447 tool tips, preferences, and arbitrarily long ~/.dia/history
12449 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
12450 removed 'Open Recent'; added new separators for recent documents on
12453 * app/interface.[ch] (interface_get_toolbox_shell): new function
12455 * app/diagram.c: added new parameter to recent_file_history_add() call
12457 * app/preferences.[ch]: added new 'Recent documents list size'
12460 2002-01-18 Akira TAGOH <tagoh@redhat.com>
12462 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
12463 if it failed, should be used gdk_font_load ().
12465 * lib/font.c (font_data): added the font entries for CJK.
12467 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
12469 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12471 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
12473 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
12475 Patch from Martin Cracauer <cracauer@cons.org>:
12477 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
12480 2002-01-01 Hans Breuer <hans@breuer.org>
12482 * app/command.c : optional use GDI printing on windoze
12484 * app/preferences.[hc] : add option 'prefer_psprint' to
12485 select the print engine to use (could be used for Dia/Gnome
12488 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
12489 wmf plug-in with the common win32 print api. Now printing
12490 should work almost as expected from a windows program :-)
12492 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
12493 to .edit_delete to avoid clashes with C++
12495 * app/makefile.msc : updated for GDI printing
12497 * plug-ins/wmf/wmf.cpp : some small modifications to support
12498 GDI printing. Also swap R and B channel in draw_image()
12500 * app/makefile.am : added windows only files to EXTRA_DIST
12502 * objects/uml/class.c(umlclass_set_props) : force recalculation
12503 when applying properties
12505 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
12506 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
12507 many incompatible changes (and would force a gtk update)
12509 * objects/makefile.msc : don't build C-Objects which are
12510 already available as 'pure shape'
12512 * plug-ins/makefile.msc : remove diaimport from build. It was
12513 only available via mailing-list and is broken since the
12517 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
12519 * app/preferences.[hc] : tweaked preferences.c to make
12520 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
12521 added some more DiagramTree prefererences and their own
12524 * app/diagram_tree.[hc] : allow to sort by object type or name
12525 and hide by type ...
12526 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
12527 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
12529 * app/diagram_tree_window.c : handle hidden types and window
12532 2001-12-20 Hans Breuer <hans@breuer.org>
12534 * plug-ins/python/Makefile.am : patch from Peter Moulder
12535 <pmoulder@csse.monash.edu.au> to make the python plug-in
12536 compile on *nix too.
12538 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
12540 Patch from Alan <horkana@tcd.ie>:
12542 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
12544 2001-11-20 Hans Breuer <hans@breuer.org>
12546 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12548 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
12550 * app/diagram_tree.[hc] : Added new functions and types for
12551 sorting diagram and objects, and attaching the popup menus.
12553 * app/preferences.h: Added more diagram tree preferences, using a
12554 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12555 height and width of the diagram tree window and the default sort
12556 orders for diagrams and objects.
12558 * app/preferences.c (prefs_data): Added new entries for the new
12559 diagram tree preferences.
12561 * app/preferences.c (prefs_tabs): New tab for diagram tree
12564 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
12565 * app/diagram_tree_window.c (diagram_tree_window_new):
12566 * app/interface.c (create_tree_window): The diagram tree window is
12567 initialised using the DiagramTreeConfig part of prefs.
12570 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
12572 * app/diagram_tree_menu.[hc]: New files. Functions to create the
12573 diagram tree popup menus.
12575 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12576 the diagram tree popup menus.
12578 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12581 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
12583 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12584 double-clicking a diagram tree node raises the diagram window
12585 to the foreground (and, if a object node was clicked, selects the
12586 object in the diagram).
12588 * app/diagram_tree.c (select_tree_widget): selecting an object
12589 node with single click simply updates it (no raise).
12591 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
12592 These changes make the diagram tree lazy: it is not created unless
12593 the diagram tree window is requested.
12595 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12596 function for creating the tree window.
12598 * app/interface.c (create_tree_window): call
12599 create_diagram_tree_window() instead of diagram_window().
12601 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
12602 (diagram_tree_update, diagram_tree_update_name)
12603 (diagram_tree_add_object, diagram_tree_add_objects)
12604 (diagram_tree_remove_object, diagram_tree_remove_objects)
12605 (diagram_tree_update_object): accept a NULL tree as a nominal
12606 argument (and do nothing in this case!), so that the diagram tree
12607 is not initialised if not used.
12609 * app/diagram_tree_window.c (diagram_tree): do not create the
12610 diagram tree until diagram_window() or diagtree_show_callback()
12613 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
12614 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12616 * app/diagram_tree_window.[hc] : (new files) implementation of
12617 the diagram tree window, a container for a diagram tree. [Removed
12618 the horizontal scroll bar glitch by disableing it]
12620 * app/diagram_tree.[hc] : (new files) implementation of the
12621 diagram tree widget. [Don't rely on the layers GPtrArray to be
12622 NULL terminated, but use its ->len field]
12624 * app/Makefile.am (dia_core_files): added new files
12625 diagram_tree.[hc] and diagram_tree_window.[hc]
12627 * app/interface.[hc] : (create_tree_window): this function
12628 creates the new diagram tree window widget
12630 * app/undo.c (delete_objects_apply) (delete_objects_revert)
12631 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
12632 (ungroup_objects_apply) (ungroup_objects_revert):
12633 every time that an undoable command modifies a diagram
12634 adding/removing/(un)grouping objects, a diagram_tree_something() is
12635 invoked to keep the diagram tree window in sync
12637 * app/properties.c (properties_apply): call to
12638 diagram_object_modified(), which updates the diagram tree window
12639 when the properties of an object are modified
12641 * app/preferences.[hc] : new "show_diagram_tree" configuration option
12642 (whether the diagram tree window should be shown on dia startup)
12644 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12646 * app/diagram.h (diagram_object_modified): callback notifying of a
12647 diagram object modification
12649 * app/diagram.c (diagram_load_into): added call to
12650 diagram_tree_add() to add newly loaded diagrams to the diagram
12652 (diagram_destroy): call to diagram_tree_remove() to remove a
12653 destroyed diagram from the diagram tree window
12654 (diagram_add_object): call to diagram_tree_add_object() to add an
12655 object to the diagram tree window
12656 (diagram_add_object_list): as above, but with an object list
12657 (diagram_selected_break_external): deletion of objects from the
12658 diagram is detected here, and diagram_tree_remove_object() is
12659 invoked to remove the object from the diagram tree window (it
12660 would be nice to have a diagram_remove_object() in the Diagram
12662 (diagram_set_filename): update the diagram tree window when a
12663 diagram's filename changes
12665 * app/commands.c (file_new_callback): added call to
12666 diagram_tree_add() to add newly created diagrams to the diagram
12669 * app/app_procs.c (app_init): added call to create_tree_window()
12671 * app/makefile.msc : updated
12673 2001-10-28 Hans Breuer <hans@breuer.org>
12675 * app/preferences.h (DiaPreferences):
12676 * app/preferences.c (prefs_data): new "show_diagram_tree"
12677 configuration option (whether the diagram tree window should be
12678 shown on dia startup)
12680 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12681 entry (both for GNOME and gtk)
12683 * app/diagram.h (diagram_object_modified): callback notifying of a
12684 diagram object modification
12686 * app/diagram.c (diagram_load_into): added call to
12687 diagram_tree_add() to add newly loaded diagrams to the diagram
12689 (diagram_destroy): call to diagram_tree_remove() to remove a
12690 destroyed diagram from the diagram tree window
12691 (diagram_add_object): call to diagram_tree_add_object() to add an
12692 object to the diagram tree window
12693 (diagram_add_object_list): as above, but with an object list
12694 (diagram_selected_break_external): deletion of objects from the
12695 diagram is detected here, and diagram_tree_remove_object() is
12696 invoked to remove the object from the diagram tree window (it
12697 would be nice to have a diagram_remove_object() in the Diagram
12699 (diagram_set_filename): update the diagram tree window when a
12700 diagram's filename changes
12702 * app/commands.c (file_new_callback): added call to
12703 diagram_tree_add() to add newly created diagrams to the diagram
12706 * app/app_procs.c (app_init): added call to create_tree_window()
12708 2001-10-28 Hans Breuer <hans@breuer.org>
12710 * plug-ins/python/pydia-property.c : apparently I missed
12711 to commit this last time. Now it has some more SetAttr
12712 support (apply from property)
12714 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12716 * plug-ins/python/pydia-text.[ch] : new files
12718 2001-10-14 Hans Breuer <hans@breuer.org>
12720 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12721 strings. Use g_strdup() for these.
12723 libxml2 does not produce 'any extra indentation when saving a tree'
12724 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12725 libxml(1). To get human readable XML some extra tweaking is required.
12726 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12727 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12728 * app/preferences.[ch] : initialize 'pretty_formated_xml'
12730 * lib/libdia.def : updated externals
12732 * lib/properties.h : add prototype for prop_list_from_single ()
12734 * plug-ins/makefile.msc : build metapost plug-in
12736 * plug-ins/metapost/render_metapost.c : msvc does not like
12737 switch labels without operation 'default: }'. Added a noop.
12739 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12740 * plug-ins/python/diamodule.c : added PyDiaText
12741 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12742 Although the python plug-in does not use libxml at all, the
12743 headers are required to use the lib/prop*.h headers
12745 * plug-ins/python/pydia-diagramdata.c : added wrappers for
12746 update_extents and get_sorted_selected (should I duplicate
12747 more functions from PyDiaDiagram or should they be moved?)
12749 * plug-ins/python/pydia-properties.c : allow to set (some) properties
12750 through the dictionary api
12751 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12752 * plug-ins/python/pydia-property.c : implement it (currently only
12753 string properties can be set)
12755 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12756 Quoting myself: 'Still not convinced that this is better than an
12757 integral property->type and some casting ...
12758 It is trading a straightforward 40 lines switch statement to
12759 this nice 'type safe' function mapping (about 125 lines)'
12760 (But now it works again, better than changing the News file :)
12762 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
12764 patch from <robert.young@dsto.defence.gov.au>:
12765 * objects/UML/component.c: remember to set font in UML component
12766 object (fixes #62132)
12768 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
12770 * plug-ins/metapost/metapost.c:
12771 * plug-ins/metapost/Makefile.am:
12772 * plug-ins/metapost/render_metapost.c:
12773 * plug-ins/metapost/render_metapost.h:
12774 Metapost renderer from Chris Sperandio
12776 2001-09-14 Hans Breuer <hans@breuer.org>
12778 * app/render_gdk.c : reflect the fact, that GTK already talks
12779 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12782 * app/render_libart.c : trying to fix #58045 but it appears
12783 to be an Gdk/win32, too.
12785 * lib/charconv.c : handle utf8 conversion with the help of
12786 glib-1.3 even in the !HAVE_UNICODE case.
12788 * lib/dia_xml.c : reduce complaing about missing encoding, by
12789 detecting if the default (utf8) would break the file.
12791 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
12793 * lib/charconv.c: (get_local_charset): at least please try to not
12794 silently change the logic, while avoiding crashes.
12796 * lib/font.c: (suck_font): put a #error, we have a nasty something
12797 to fix there before we switch to Gtk 2.0.
12799 2001-09-09 Hans Breuer <hans@breuer.org>
12801 * **/makefile.mingw : Approach to compile Dia with mingw.
12802 Compiling mostly works but running does not (yet) ...
12805 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
12806 Apparently mingw needs it too.
12807 - enable 'normalization' of a null verctor. Otherwise the beziergon
12808 bounding box calculation would be broken at least with msvc. What's
12809 the mathematical correct result of 0.0/0.0 ?
12811 * lib/dia_xml.c : isinf() for mingw too.
12813 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
12816 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
12817 Please don't do it.
12819 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12821 * lib/libdia.def : updated externals. Apparently mingw needs
12822 them to produce the right mangling.
12824 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12827 2001-09-08 Wang Jian <lark@linux.net.cn>
12829 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12831 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
12833 * lib/dia_xml_libxml.h:
12834 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12835 libxml1's code, to rework the output file before it gets committed
12836 to disk. This is rubbish, and will be removed when libxml2
12837 switches from discouraged to mandatory.
12838 All in all, this fixes #60152.
12841 * lib/charconv.c: (charconv_unichar_to_utf8):
12842 made the type of the input parameter explicitly an unsigned long.
12844 * configure.in: Added a check for libz (we must now include it
12845 explicitly, for xmlDiaSaveFile).
12847 * app/load_save.c: (diagram_data_save):
12848 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12849 (dia_pluginrc_write):
12850 * plug-ins/shape/shape-export.c: (new_shape_renderer),
12851 (end_render), (draw_string):
12852 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12855 Made sure we always write UTF-8 XML files, and through
12858 * NEWS: documented that fact.
12860 2001-09-07 James Henstridge <james@daa.com.au>
12862 * configure.in (found_libxml): refactor the check for libxml a
12863 little so that it handles finding both libxml1 and 2 better.
12865 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
12867 * app/app_procs.c: removed a spurious } which caused a compilation
12868 error in the (!HAVE_GNOME && HAVE_POPT_H) case
12870 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12871 don't know what ANSI X3.4-1968 is. I didn't know until this day,
12872 but it's just plain old ASCII. Added a check to shield the poor
12875 Patches from <robert.young@dsto.defence.gov.au>:
12877 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12878 width and height of text before calculating bounds. Fixes #59928
12880 * app/preferences.c: Moved grid related items into Grid Tab.
12882 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
12884 * app/interface.c: (create_zoom_widget): connected one more signal
12885 to the Zoom selector combo's list. Fixes #59879.
12887 * app/app_procs.[ch]: (app_init) (do_convert)
12888 (build_output_file_name): brought back into the main executable
12889 the rare useful bits of the ill-fated diaconv. This means we have
12890 one new feature : --export-to-format (-t), which should make
12891 writing conversion scripts easier, and a crude implementation of
12892 -t and -e for the poptless argument parsing, which means the Win32
12893 port should be able to take advantage of it (that should make
12894 resolving #58197 possible).
12896 * app/diaconv.c: kept the poor duck compiling (but that's about
12899 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12900 I've got it right).
12902 * NEWS: updated about the new feature above, and documented the
12903 "missing encoding specification" complaint.
12905 2001-09-01 Abel Cheung <maddog@linux.org.hk>
12907 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12909 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
12911 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12914 2001-09-01 James Henstridge <james@daa.com.au>
12916 * */Makefile.am: various changes to include missing files, and fix
12917 sheets dir to handle building with builddir != srcdir.
12919 * autogen.sh: unconditionally pass the --enable-maintainer-mode
12920 and --enable-db2html flags so that builds from CVS work correctly.
12922 * configure.in: increment version number. Also add an
12923 --enable-db2html flag. Without the flag, db2html won't be run (if
12924 the flag is passed and db2html is not present, do nothing).
12926 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
12928 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12929 even compiled. It's really too bad there is no lint tool easily
12930 available (or a more cautious, pedandic, paranoid and verbose
12931 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12933 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
12936 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12937 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12939 * app/menu.c: added ellipsis(...) to diagram properties menu item.
12940 * app/dia-props.c: diagram properties dialog contents did not
12941 represent current diagram settings.
12942 * app/dia-props.[ch]:
12943 * app/display.c: diagram properties contents now follows currently
12945 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12947 * AUTHORS: added Robert Young.
12949 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
12951 * app/modify_tool.c: (modify_button_release): Patch from
12952 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12953 #59090: if selection dragging was released outside of the window,
12954 artifacts of the selection box remained.
12956 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
12958 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12960 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
12963 * sheets/Makefile.am: prepared the terrain for the Version of
12964 xml-i18n-tools Which Comes After 0.9 (and which will feature at
12965 last a sane behaviour with XML files). Some reasonible delay
12966 before enforcing that version *will* be given.
12968 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12970 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12971 becomes a nonexistent symbol.
12973 2001-08-18 Hans Breuer <hans@breuer.org>
12975 * app/app_procs.c : made it compile without ENABLE_NLS
12977 * app/diap_callbacks.c : strcmp isn't guaranteed to work
12980 * app/load_save.c :
12982 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
12984 xmlGetProp, ... -> xmlFree
12985 malloc, strdup -> free
12986 g_new, g_malloc, g_strdup - > g_free
12988 * app/win32print.c : some more error checking, still not
12991 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12993 * lib/dia_xml.c : msvc still has no unistd.h
12996 * lib/sheets.c : temporary resolved libxml include brokeness
12998 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12999 changes. Compiles again, but doesn't do anything useful anymore.
13000 (see THE_PROP_TYPE_IS_INTEGRAL)
13002 * **/makefile.msc : updated to use LIBXML2
13004 * lib/libdia.def : reflect api changes
13006 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
13008 * config.h.win32: added defines telling that gtk speaks UTF8.
13009 Hans, I believe this reflects what GTK on Win32 does.
13011 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
13013 * lib/prop_inttypes.c:
13015 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
13018 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
13019 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
13020 search for plug-ins is done.
13021 * app/Makefile.am: made app/run_dia.sh use the // capability. No
13022 need to update this anymore if we get a new plug-in library (or
13025 * lib/dia_xml.c: #include <unistd.h> was missing.
13027 * lib/properties.h:
13028 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
13029 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
13032 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
13034 * sheets/civil.sheet: removed duplicate "Danish" entries.
13039 * sheets/Makefile.am:
13041 * Makefile.am: applied the xml-i18n-tools README's instructions.
13043 * po/(da de fr hu nl nn no sl).po: merged the translations from
13044 the sheet files into the .po files. I hope I haven't mixed
13046 * sheets/*.sheet (REMOVED):
13047 * sheets/*.sheet.in (NEW): moved the sheet files sans
13048 translations into .sheet.in files.
13050 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
13051 because we don't yet want to force all translators to work using
13052 UTF-8 editors. We'll want to do that sometime (sooner rather than
13053 later). Okay, I sing a slightly different tune in po/ChangeLog...
13055 * dia.desktop (REMOVED):
13056 * dia.desktop.in (NEW): used also the x18t infrastructure for
13059 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
13060 "official" version of x18t with support for .sheet files is available.
13061 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
13062 "official" version of x18t which doesn't corrupt UTF-8 data in XML
13065 ** yes, we are now using xml-i18n-tools to manage the sheet
13066 translations. For the Win32 build, Nemo stores snapshots of
13067 translated strings next to the CVS snapshots. **
13069 * sheets/checktrans.py: suddenly, some sheets have lots of
13070 translations (objects which existed before sheets, mostly).
13071 Adapted the formatting.
13073 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
13075 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
13076 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
13077 <robert.young@dsto.defence.gov.au>, to fix #59090.
13079 * app/display.c: (ddisplay_scroll): While at it, added some
13080 margin, so that autoscrolling can happen within a margin outside
13081 the diagram's extents.
13085 * app/disp_callbacks.c: Robert "forced" me to go when I usually
13086 don't, namely the app/ directory. So while I was there, I
13087 scratched a long-time itch. If no object has focus, pressing the
13088 space bar will select back the tool which was selected before the
13089 current one (I find this especially useful with "reset after create" !)
13091 * lib/proplist.c: (prop_list_from_single): Renamed
13092 prop_list_singleton() to avoid confusion with the Singleton
13093 pattern (which it definitely is not).
13095 * lib/propobject.c: (object_prop_by_name_type),
13096 (object_prop_by_name): The "flags" parameter was not necessary.
13097 These don't return synthetic properties, but properties built from
13098 a real property description list; therefore, we don't call
13099 make_new_prop() but use the existing property descriptor, which
13100 has perfectly valid (and meaningful) flags.
13102 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
13103 new predicates better reflect the reason why properties exist when
13104 they're created by make_new_prop() or object_prop_by_name().
13106 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
13107 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
13110 * lib/properties.h: reflects all the above changes.
13112 * objects/SADT/arrow.c:
13113 * objects/SADT/annotation.c:
13114 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
13117 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
13119 * lib/properties.h:
13120 * lib/proplist.c: (prop_list_singleton):
13121 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
13122 Added these, to simplify interactions of plug-ins with the StdProp
13127 * lib/dia_xml_libxml.h (NEW):
13132 * objects/custom/shape_info.c: A few prototypes were causing
13133 #include hell, because we generally attempt to not pull the whole
13134 libxml header set when we include dia_xml.h. Moved those
13135 prototypes away for the rare cases they're necessary.
13137 2001-08-15 Hans Breuer <hans@breuer.org>
13139 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
13142 * lib/makefile.msc : updated
13144 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
13145 use G_GNUC_FUNCTION instead.
13147 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
13149 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
13150 msvc instead of cleaning missing includes
13152 * plug-ins/wmf/wmf.cpp :
13153 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
13155 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
13162 * objects/custom/shape_info.c:
13163 * plug-ins/shape/shape-export.c:
13164 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
13165 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
13166 removed xmlKeepBlanksDefault(0) in favour for proper
13167 xmlIsBlankNode() testing. Lots of other fixups to use the
13168 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
13169 make libxml1 output correct files.
13171 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
13172 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
13173 packages). If both devel packages are found, the build will stop
13174 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
13176 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
13177 allocate the first handle :-)
13179 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
13180 a cast and a sizeof.</gratuitous>
13182 * objects/custom/custom_object.c: (custom_copy): don't call
13183 text_get_attrbutes if the shape has no text...
13184 (custom_update_data): The info->resize_with_text code was a bit
13185 directive; basically, the shape's bounding box was forced to be
13186 proportional to the text's bounding box.... This fixes #57187.
13188 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
13189 default for info->aspect_ratio; unobfuscated a line about
13190 info->resize_with_text;
13192 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
13194 * lib/properties.h: added comments next to the PROP_TYPEs to tell
13195 which C Property subclass to use.
13197 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
13198 cast-ridden form of setting properties in a list, in favour for
13199 the "local pointers" form. I'll take any better offer...
13201 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
13203 * lib/font.c: fprintf(...) --> fprintf(format...)
13205 * configure.in: added a disabled versioned test for glib.
13206 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
13207 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
13208 g_critical() with a simple g_error(). Proper fix is to implement
13211 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
13214 * lib/properties.h:
13215 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
13216 * lib/proplist.c: (find_prop_by_name_and_type):
13217 * lib/prop_basic.c: (make_new_prop), (initialize_property):
13218 * lib/propoffsets.c: (do_set_props_from_offsets),
13219 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
13220 Added a type_quark member to PropDescription, Property and
13221 PropOffset. Used it to implement a safety in
13222 do_[sg]et_props_from_offsets().
13224 * objects/flowchart/diamond.c: the diamond's text was not saved,
13225 and thus not even copied (c&p).
13226 * objects/standard/textobj.c: ditto.
13228 Most of the above changes thanks to Robert Young's testing. Thanks !
13230 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
13232 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
13235 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
13237 * lib/proplist.c (prop_list_from_descs): added a call to
13238 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
13239 too embarrassing to tell.
13241 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
13242 while loop to a for loop, for symmetry with
13243 prop_offset_list_calculate_quarks().
13245 * lib/geometry.h: new inline function, rectangle_equals.
13247 * lib/diagramdata.[ch]: refactored a bit the diagram extents
13248 computation logic, and changed it to always be the union of the
13249 visible layers' extents. This should close #58882 (Debian
13250 #107167), and fixes #55498.
13252 * app/display.c: made the initial visible box more coherent with
13253 the diagram being loaded's extents.
13255 * app/prop_attr.c: don't set the font (from offset) if font_data
13256 is NULL. Two brainos in colorprop_load() and fontprop_load().
13258 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
13260 * lib/properties.[ch]: split in a lot of pieces:
13262 * lib/prop_*.[ch] (NEW): all property types are now first-class
13263 objects, inheriting from the original abstract Property type.
13264 * lib/propdesc.c (NEW): property description handling routines
13265 * lib/propoffsets.c (NEW): property offset handling routines
13266 * lib/proplist.c (NEW): property list handling routines
13267 * lib/propobject.c (NEW): property list <-> object routines
13268 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
13270 * lib/propinternals.h: prototypes for stuff not usually needed by
13271 the outside of StdProps.
13272 * lib/Makefile.am: a lot of new files have been added...
13274 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
13275 BOTH INTERFACES AND RUN-TIME STABILITY.
13277 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
13279 * lib/object.h: removed the incestuous relationship with
13280 properties.h' contents. Now a Property list is a GPtrArray -->
13281 object interface change !
13283 * app/app_procs.c/app_init(): removed a disabled call to a
13284 non-existent routine. Added a call to stdprops_init().
13286 * objects/Makefile.am: disabled the construction of EML. I'm not
13287 touching these until a certain issue is solved (or this module
13290 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
13291 objects to the interface changes.
13293 * app/disp_callbacks.c: killed a warning.
13294 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
13297 The macros PROP_VALUE_* have disappeared. Adapted to using the new
13300 * plug-ins/dxf/dxf-import.c:
13301 * plug-ins/xfig/xfig-import.c:
13302 PROP_VALUE_* macros have been removed. Converted to the new API.
13304 * plug-ins/python/**/*: I gave up converting this; I can't
13305 compile --with-python (problems with object.h defined both by us
13306 and by Python). I'll gladly help whomever cares to fix it !
13307 (or, fix it myself if someone tells me how to compile it).
13309 * configure.in: added the UNICODE-related progress defines.
13312 * lib/geometry.h: On Solaris and perhaps other systems, finite()
13313 is defined in ieeefp.h rather than in math.h. Patch from Andrew
13314 Halper <ashalper@acm.org> with further modifications, isinf() is
13315 provided by -lsunmath (sunmath.h).
13317 * lib/font.c: conditionally disabled Lars' debugging messages.
13318 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
13320 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
13322 * lib/bezier_conn.h:
13323 * objects/standard/bezier.c (bezierline_create):
13324 * lib/bezier_conn.c (bezierconn_init):
13325 Preparations for use of userdata for bezier lines.
13327 * objects/standard/polygon.c:
13328 * objects/standard/create.h:
13331 * plug-ins/xfig/xfig-import.c:
13332 Use of user_data for polygon as well, including adding
13333 polyshape_set_points. Include file for non-interactive
13334 creation of standard objects, objects/standard/create.h
13336 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
13338 * app/render_gdk.c:
13339 * app/render_gdk.h:
13343 More preliminary freetype support. Not at all functional, crashes
13348 * objects/standard/polyline.c:
13349 Support for creating polyline objects with more than two points.
13350 This includes an extra function and a prototype change in the
13351 poly_conn lib object.
13353 * lib/object.c (object_copy): Fixed memory leak of handles and
13356 2001-08-08 Abel Cheung <maddog@linux.org.hk>
13358 * dia.desktop: added traditional Chinese strings
13360 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
13362 * NEWS: updated to reflect build-time dependencies.
13364 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
13365 around obj->ops->describe_props(obj). Quarks are none of an
13366 object's business in the general case...
13367 * lib/text.c: Added an apply_textattr_properties() function to
13368 factor out some common code related to applying a dialog's text
13369 attribute properties to a (Text *) which wasn't edited there.
13370 Ditto for textstr, for the string part of an objet.
13372 * objects/GRAFCET/action.c:
13373 * objects/SADT/annotation.c:
13374 * objects/SADT/box.c: used apply_textattr_properties().
13376 * objects/UML/actor.c:
13377 * objects/UML/branch.c:
13378 * objects/UML/component.c:
13379 * objects/UML/constraint.c:
13380 * objects/UML/small_package.c:
13381 * objects/UML/state.c:
13382 * objects/UML/usecase.c:
13383 * objects/UML/large_package.c:
13384 * objects/UML/note.c:
13385 * objects/UML/node.c:
13386 * objects/UML/message.c:
13387 * objects/UML/classicon.c:
13388 * objects/UML/object.c:
13389 * objects/UML/realizes.c:
13390 * objects/UML/dependency.c:
13391 * objects/UML/implements.c:
13392 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
13393 (most objects were already using StdProps to some extent ; this
13394 systematises usage and removes some dead wood).
13396 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
13397 * objects/UML/uml.[ch]: audited for UTF-8.
13399 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
13400 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
13401 private (ISO-8859-1) definition.
13403 * lib/charconv.c: Added a warning if we didn't run
13404 nl_langinfo(CODESET) but rely instead on a hardcoded default.
13406 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
13409 * app/disp_callbacks.c: added a way for an object to cause an
13410 already realised menu to be destroyed (for instance if it changes
13413 * objects/custom/custom_object.c: used the above to fix #55073.
13415 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
13417 * configure.in: Remove 2.50 prereq.
13419 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
13421 * po-checktrans.py: under some circumstances, there was one column
13422 more than what was supposed to be, thus breaking the formatting.
13424 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
13426 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
13428 * NEWS: updated with new stuff since 0.88
13430 * shapes/network/antenna.shape: the text was misplaced ; fixed.
13432 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
13433 firewall router (upon request from Cyril Lacoux
13434 <clacoux@easter-eggs.com>)
13436 * configure.in (didn't rename to configure.ac): autoconf 2.50
13437 constructs were used ; added an AC_PREREQ call to guard against
13440 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
13442 * lib/properties.c: minor clean-ups with the event delivery code.
13444 * EML/instantiation.c: brought this object back from stone and ice
13447 * app/diaconv.c(NEW): added a command-line conversion tool. Still
13448 lacks a man page and correctness. In fact, it doesn't work. Please
13449 see #58196 if you want to finish it.
13451 * lib/message.[ch]: redefined things a little so that a different
13452 message_internal routine could be passed.
13453 applications can use that to fit themselves to the display model.
13455 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
13457 * objects/SADT/box.c:
13458 * objects/GRAFCET/action.c: spelling in property descriptors (name
13460 * objects/SADT/annotation.c: ditto, plus a temporary test of the
13461 event delivery code (try to click on the "click me !" button !).
13464 * lib/properties.[ch]: improved (fixed) support for group event
13465 handlers. Fixed various things from yesterday's code to make it
13466 not too obviously crash.
13468 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
13470 * app/group.c: added delivery of events to the first member of the
13471 group which is able to process it.
13473 * lib/properties.c(prop_desc_lists_intersection): properties
13474 don't match if they don't have identical event handler.
13475 * lib/properties.h: simplified the PropEventHandler signature.
13477 Event delivery code is still untested so far, but should be
13480 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
13482 * lib/properties.[ch]: Added (untested !) property event handler
13483 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
13484 generating such events. This stuff compiles, and should lurk
13485 around silently as long as you don't declare property descriptors
13486 with events (AFAICT).
13487 In object_create_props_dialog() and friends:
13488 attached a single structure with lots of data instead of lots of
13489 little attachments of data to the dialog widget.
13491 * lib/object.h: fixed mild typedef breakage introduced by the above.
13493 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
13495 * lots of files: Changed Font to DiaFont
13496 * */Makefile.am: Added FREETYPE_LIBS
13497 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
13499 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
13501 * configure.in: Added "nn" to ALL_LINGUAS.
13503 2001-07-09 Alex Larsson <alexl@redhat.com>
13505 * app/disp_callbacks.c:
13506 Add gdk_im_ready() calls to XIM code.
13508 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
13510 * lib/properties.[ch]: splitted prop_get_widget() into
13511 prop_get_widget() (gives a widget but doesn't fill it) and
13512 prop_reset_widget() (fills an existing widget with a property's value).
13514 * lib/widgets.[ch]: const enforcement police work.
13516 * shapes/network/antenna.shape: added a connection point at top,
13517 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
13519 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
13521 * intl/*: tested with gettext-0.10.38
13522 * configure.in: moved a macro call around (AM_PROG_CC) to keep
13523 some of autogen.sh from complaining.
13524 * INSTALL: added a warning against gettext older than at least 0.10.36
13526 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
13528 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
13529 AM_ICONV (both provided by gettext)
13531 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
13533 * lib/charconv.c: corrected the degraded mode for when
13534 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
13536 * objects/chronoline/chronoline_events.c: UTF8 compliance.
13538 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
13540 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
13541 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
13542 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
13545 * objects/chronogram/chronoline.c:
13546 * objects/chronogram/chronoref.c: took advantage of the above to
13547 make nicer looking dialogs.
13549 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13550 from libunicode's internals).
13551 * lib/message.c: convert strings to local encoding prior to
13552 display (UNICODE_WORK_IN_PROGRESS)
13553 * lib/properties.[ch]: convert strings to local encoding prior to
13554 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13555 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13556 * lib/stringprerenderer.[ch]: ditto
13558 (lib/text.c has been audited for UTF8, but the size of the changes
13559 make them inappropriate for commit before 0.89)
13561 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
13563 * objects/boolequation.h (<save|load>_boolequation): made the
13564 prototypes for match the .c file.
13566 * samples/grafcet.dia: minor non-conformance with IEC-848
13567 fixed (in the transition from step 100 to step 101).
13569 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13570 disallow editing of properties if the object is part of a group.
13572 * objects/chronogram/chronoline.c:
13573 * objects/SADT/annotation.c:
13574 * objects/SADT/box.c:
13575 * objects/GRAFCET/step.c:
13576 * objects/GRAFCET/transition.c:
13577 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13579 2001-06-12 Hans Breuer <hans@breuer.org>
13581 * lib/libdia.def : removed lazyprop exports
13582 * lib/makefile.msc : removed lazyprop.obj
13584 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13585 and avoid crashes by always creating a custom->text,
13586 when (custom->info->has_text)
13588 * objects/makefile.msc : removed sybase from build
13590 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13591 ObjectNode is a pointer already, which is what we want
13592 instead of a pointer pointer.
13594 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13595 and implemented working export for images
13597 * shapes/network/zip-disk.shape : added connection points
13599 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
13601 * objects/SADT/box.c: removed lazyprops for standard props.
13602 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13603 * objects/chronograms/chronoref.c: ditto
13607 * lib/connpoint_line.c:
13608 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13609 * lib/properties.[ch]: new property types:
13610 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13611 - PROP_TYPE_MULTISTRING: same as string, but renders as a
13612 multi-line entry box.
13613 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13614 in a tabbed-notebook style (this is a bit complicated to use;
13615 see objects/chronograms/chronoline.c for an example).
13617 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
13619 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13620 * objects/GRAFCET/step.c: ditto.
13621 * objects/GRAFCET/vector.c: ditto.
13622 * objects/SADT/annotation.c: ditto.
13623 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13625 * lib/properties.[ch]: two more non-visible types
13626 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13628 * lib/neworthconn.[ch]:
13629 * lib/orthconn.[ch]: added support for manipulation through
13630 standard properties.
13632 * configure.in: removed -fomit-frame-pointer, this seems to
13633 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
13636 * charconv.[ch]: more functions from unicode.h.
13637 get_local_charset() wasn't working properly, fixed now.
13638 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
13641 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13642 * lib/lazyprops.[ch]: put a big fat warning in.
13644 * app/render_eps.c: one line mysteriously went away, causing a
13645 variable to be used uninitialised....
13647 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
13649 * app/app_procs.c: commented out the call to
13650 bind_textdomain_codeset(): it's premature.
13652 * lib/connpoint_line.c: a NULL point can be given to
13653 connpointline_adjust_count(), in case there's not really a clicked
13656 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13657 #include order troubles. #included by lib/text.h, so there is no
13658 impact outside lib/.
13659 * lib/properties.[ch]: added support for CONNPOINT_LINE and
13660 (nonvisible) TEXT properties.
13662 * objects/GRAFCET/action.c:
13663 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13666 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13667 standard properties code). Grafted a dynamic number of connection
13668 points (heavily inspired from what Vergent does). This is the real
13671 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13673 * lib/fonts.c: some hardening (mostly g_assert())
13674 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
13676 * app/app_procs.c (app_init): added a call to
13677 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13678 (UNICODE_WORK_IN_PROGRESS).
13680 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
13682 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13684 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
13685 (fixes #55863) : some clean-ups in the handling of connection
13686 points. Now the total number of connection points is just a
13687 #define (the proper solution is to retrofit the GRAFCET Vergent's
13688 dynamic behaviour wrt connection points).
13690 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
13692 * app/app_procs.c (app_init): added a call to unicode_init() (only
13693 if HAVE_UNICODE, of course).
13695 * lib/charconv.c: simplified the code which detects the local
13696 charset. No need to use <langinfo.h>, libunicode already takes the
13697 burden of figuring that out. Also, if local charset is utf8, no
13698 conversion will take place.
13699 Exposed a way to get the current charset (similar to
13700 unicode_get_charset() but actually working, hopefully).
13702 * lib/charconv.h: Added a partial non-UTF8 implementation of
13703 unicode.h if !HAVE_UNICODE (actually, all the time for the
13704 moment). The UTF8 implementation is just macros on libunicode (use
13705 the functions prefixed by uni_, as defined by charconv.h, not
13706 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13707 From now on, all strings which don't *need* to be ASCII should be
13708 utfchar *, not gchar *. Just include charconv.h, let it sort out
13709 the details (such as: "is libunicode available and enabled?")
13711 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13712 "API" instead of directly libunicode. Removed the now unnecessary
13713 speculative clustering of characters in encoding pages.
13715 * app/render_eps.c: made the local8->utf8 conversions dependent of
13716 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13717 boundary will be when this WIP is done).
13719 * lib/dia_xml.c (data_point): fixed a format string typo.
13721 * po/POTFILES.in: added all C files from lib/
13723 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
13725 * app/disp_callbacks.c: make sure the objects' connected objects
13726 are updated when the objects' size changes after a keypress event
13729 * configure.in: added a big warning about the possible future
13730 non-optionality of --enable-unicode.
13732 * TODO: removed entries which look like done ; added a few ones
13733 (Bugzilla "enhancement" bugs may be a better way to keep track of
13736 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
13738 * objects/UML/message.c: got rid of #55564 and of message_copy()
13739 by using more standard properties (are the message_state_*()
13740 functions still necessary ?)
13742 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
13745 * objecs/custom/shape_info.c:
13746 * plug-ins/shape/shape-export.c:
13747 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13748 use xmlChar instead of obsolete CHAR.
13750 2001-06-03 Hans Breuer <hans@breuer.org>
13752 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13753 * app/commands.c : give the right number of parameters
13754 to diagram_update_menu_sensitivity ()
13756 * app/preferences.c : do proper initialization for DiaPrefsData:
13757 render_bounding_boxes. It would be a real surprise if 'hidden'
13758 properties would have ever worked before.
13759 Don't try to access the widgets of hidden property, it does not
13762 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13763 it is defined in libdia, but initialized from dia app, which
13764 otherwise gave nice start-up crashes.
13766 * lib/diagramdata.c : initialize the color for rendering bounding
13767 boxes in the Dia range (0 .. 1.0)
13769 * lib/libdia.def : added *_bbox functions for export
13771 * lib/makefile.msc : added new sources
13773 * objects/custom/custom_object.c : use HAVE_UNISTD_H
13775 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
13778 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13779 removes a translation of menus (in a place where there shouldn't
13780 have been), which gets rid of a waterfall of warnings if LANG!=C,
13781 and a fix to #55047.
13783 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
13785 * lib/charconv.c : added #include <errno.h>
13787 * app/dia_embedd.c : updated menus_get_item_from_path usage
13789 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
13791 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13792 Added a special case for Symbol strings, so that they're not
13793 re-encoded using the LN encoding (we use the bare Adobe encoding
13796 * objects/custom/custom_object.c: Now that #52912 is fixed,
13797 I could remove the ugly hack I wrote to squash the shape bounding box
13798 problem shown by Ben A. Hetland a few months ago, and fix it
13799 properly this time.
13801 * lib/text.c: enlarged a little the bounding box to account for
13802 the cursor in rightmost position.
13804 * lib/diagramdata.c: draw bounding boxes only if the relevant
13805 variable is set (as before), but also only if the rendere is
13806 interactive (ie, don't bother rendering bounding boxes on
13808 Made the bounding box's line width a fixed value, 0.01
13810 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13811 and assymmetric control beziers. Implemented ellipse_bbox().
13813 * Makefile.am: incantations to get po/dia.pot build, as suggested
13814 by Hubert in #55075.
13816 * shapes/network/computer.shape: typo fixed.
13817 * shapes/network/antenna.shape: fixed #55074 (antenna is now
13818 properly translucent, except for its base where it makes sense. It
13819 doesn't look that ugly anymore if transparent mode is on).
13821 * configure.in: --enable-unicode is now the default. This
13822 still currently affects only printing.
13824 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
13826 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
13827 The overshoot code is buggy, and the bounding boxes for polyshapes
13828 looks a bit cheezy. To be done ASAP.
13830 2001-05-26 James Henstridge <james@daa.com.au>
13832 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13833 This should clear up some of the build problems people have been
13836 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13838 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
13841 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13842 box code (beginning with lines, polylines and polybeziers), into a
13843 more generic facility. While at it, a better shot at correctly
13844 computing the bounding box of a Bezieroid (should take care of
13845 #53424, #51233 and of course is part 1 of #52912).
13847 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13848 into a hidden preference (set render_bounding_boxes in diarc).
13849 * app/preferences.[ch]: Added support for hidden preferences.
13851 * lib/geometry.[ch]: sprinkled with "const" modifiers.
13853 * lib/bezier_conn.[ch]:
13854 * lib/beziershape.[ch]:
13855 * lib/connection.[ch]:
13856 * lib/element.[ch]:
13857 * lib/poly_conn.[ch]:
13858 * lib/orth_conn.[ch]:
13859 * lib/neworth_conn.[ch]:
13860 * lib/polyshape.[ch]: adapted to take advantage of
13861 boundingbox.[ch] instead of relying on private (duplicate) code.
13863 * object/FS/flow.c:
13864 * object/GRAFCET/action.c:
13865 * objects/GRAFCET/condition.c:
13866 * objects/GRAFCET/vergent.c:
13867 * objects/GRAFCET/vector.c:
13868 * objects/SADT/annotation.c:
13869 * objects/SADT/arrow.c:
13870 * objects/ER/participation.c:
13871 * objects/UML/constraint.c:
13872 * objects/UML/implements.c:
13873 * objects/UML/lifeline.c:
13874 * objects/UML/message.c:
13875 * objects/UML/realizes.c:
13876 * objects/UML/generalization.c:
13877 * objects/UML/association.c:
13878 * objects/UML/dependency.c:
13879 * objects/FS/flow-ortho.c:
13880 * objects/network/bus.c:
13881 * objects/standard/arc.c:
13882 * objects/standard/bezier.c:
13883 * objects/standard/beziergon.c:
13884 * objects/standard/line.c:
13885 * objects/standard/polygon.c:
13886 * objects/standard/zigzagline.c:
13888 * objects/standard/polyline.c: Some *BBExtras structures changed
13889 names while moving to boundingbox.[ch]. A trivial mass-renaming.
13891 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
13893 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13894 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13896 * app/display.c (ddisplay_update_scrollbars): from Patrick's
13897 suggestion, remove the extra scrollable area (it was only visible
13898 to the scrollbars). This is experimental.
13900 * objects/custom/custom_object.c: If a shape's icon file doesn't
13901 exist, warn and substitute a default icon, instead of crashing.
13904 * objects/network/network.c:
13905 * shapes/network/modularswitch.(shape|xpm) (NEW):
13906 * shapes/network/printer.(shape|xpm) (NEW):
13907 * shapes/network/genmonitor.(shape|xpm) (NEW):
13908 * shapes/network/computer.(shape|xpm) (NEW):
13909 * shapes/network/Makefile.am: four less objects, four more shapes.
13910 These were the last known RenderObjects. (phew !)
13914 * objects/sybase/Makefile.am:
13915 * objects/network/Makefile.am: Removed the older Renderobjects
13916 from the build, and their infrastructure (not yet deleted,
13919 * shapes/network/sceadplug.shape:
13920 * shapes/network/antenna.shape:
13921 * shapes/network/modem.shape:
13922 * shapes/network/hub.shape:
13923 * shapes/network/rj45plug.shape:
13924 * shapes/sybase/client.shape:
13925 * shapes/sybase/dataserver.shape:
13926 * shapes/sybase/ltm.shape:
13927 * shapes/sybase/repserver.shape:
13928 * shapes/sybase/rsm.shape:
13929 * shapes/sybase/stableq.shape: Minor corrections (line widths were
13930 ten times too narrow).
13932 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
13934 * objects/network/network.c:
13935 * shapes/network/sceadplug.(shape|xpm) (NEW):
13936 * shapes/network/antenna.(shape|xpm) (NEW):
13937 * shapes/network/modem.(shape|xpm) (NEW):
13938 * shapes/network/Makefile.am: four less objects, four more shapes.
13941 * lib/diagramdata.c:
13943 * lib/string_prerenderer.[ch] (NEW):
13944 Add a new renderer primitive, predraw_string() (does nothing, to be
13945 used as a hook to optimise the character encodings if needed).
13946 Added a string pre-renderer, which can be viewed as a filter
13947 renderer (to route draw_string() to predraw_string() and ignore
13948 the rest, in a first rendering pass)
13950 * app/render_eps.c: Took advantage of the above to make wholly
13951 optimised Postscript encoding page(s), even (especially) with
13952 non-latin1 code (HAVE_UNICODE must be true).
13954 (#53512 in fact is wholly resolved).
13956 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
13958 * lib/charconv.c: steps towards resolution of #53512 (inspired by
13959 Alexey Novodvorsky <aen@logic.ru>'s patch).
13961 * app/menus.c (dia_menu_signal_proxy): checked that the signal
13962 handler is not NULL before transferring control to it... (fixes #52836)
13964 * app/app_procs.c (app_init): removed non-constant initialiser
13967 * objects/custom/custom_object.c:
13968 * objects/custom/shape_info.[ch]:
13969 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
13970 <skh@mathstar.com>. This add support for a <svg:text> shape
13971 element, and some related style properties (font, font height,
13974 * doc/custom_shapes: a precision about the meaning of case in a
13975 SVG path (closes #52364)
13977 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13978 fixed by <drk@sgi.com>)
13980 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
13982 * objects/network/network.c:
13983 * shapes/network/Makefile.am:
13984 * shapes/network/hub.(shape|xpm) (NEW):
13985 * shapes/network/flash.(shape|xpm) (NEW):
13986 * shapes/network/rj45plug.(shape|xpm) (NEW):
13987 More shapes, less renderobjects.
13989 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
13991 * plug-ins/svg/render_svg.c: typo made exported ellipses
13992 corrupted (zero Y pseudo-radius).
13994 * objects/network/network.c:
13995 * objects/network/disc.c:
13996 * shapes/network/disc.(shape|xpm): Converted the first
13997 Renderobject into a shape. Normally, old diagrams should reload
13998 without problems (please check this against your diagrams). More
13999 flexibility should be gained that way. I intend to hunt and
14000 eradicate all renderobjects as I can commit cycles to that.
14002 * objects/Makefile.am:
14005 * objects/sybase/sybase.c:
14006 * shapes/sybase/Makefile.am(NEW):
14007 * shapes/sybase/client.(xpm|shape) (NEW):
14008 * shapes/sybase/dataserver.(xpm|shape) (NEW):
14009 * shapes/sybase/ltm.(xpm|shape) (NEW):
14010 * shapes/sybase/repserver.(xpm|shape) (NEW):
14011 * shapes/sybase/rsm.(xpm|shape) (NEW):
14012 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
14013 renderobjects into shapes. The Sybase objects are now not compiled
14014 anymore, and ready to be nuked if nobody objects in the next few weeks.
14017 * app/diagram.[ch]:
14018 * app/disp_callbacks.c:
14019 * app/display.[ch]:
14020 * app/interface.[ch]:
14022 * app/modify_tool.c:
14023 * app/preferences.[ch]:
14024 * app/recent_files.c:
14025 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
14026 a menu bar reflecting the popup menu, to each display window. This
14027 is optional (changing the preference currently doesn't affect
14028 already opened windows; a few other rough edges to cut).
14030 * plug-ins/wpg/wpg.c:
14031 * plug-ins/xfig/xfig-import.c:
14032 * plug-ins/python/pydia-property.c:
14033 * plug-ins/python/pydia-properties.c:
14034 * plug-ins/python/pydia-geometry.c:
14035 * plug-ins/pstricks/render_pstricks.c:
14037 * objects/EML/dbox.c:
14038 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
14041 * lib/ps-utf8.c: improved the clustering of alphabetic character
14042 definitions in custom encodings pages.
14044 2001-05-02 Hans Breuer <hans@breuer.org>
14046 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
14047 of 'obj_bb' to PROP_TYPE_RECT
14049 * objects/custom/custom_object.c : take all quarks into account,
14050 not only 4 as copy&paste suggests
14052 * objects/uml/objects.c : completed the implementation of the
14053 property api to avoid reading of totally bogus data. Removed
14054 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
14055 there was too much but too less ...
14057 The above changes removed all known crashes (mentioned below)
14058 from the Property API. Property access is still incomplete though.
14060 * objects/flowchart/box.c :
14061 * objects/flowchart/diamond.c :
14062 * objects/flowchart/ellipse.c :
14063 * objects/flowchart/parallelogram.c :
14064 * objects/uml/classicon.c :
14065 * objects/uml/state.c : calculate number of quarks from quark array
14066 size instead of using hardcoded values for consistence and to avoid
14067 future bugs like the above
14069 * objects/eml/nlist.c : include <string.h> for strcmp()
14071 * lib/dia_xml.c : relax g_warning for values, which
14072 appear to be too small. There is nothing which prevents
14075 * plug-ins/python/pydia-geometry.c : changed stringifying of
14076 geometry objects accept BezPoint back to %f, which does not
14077 crash anymore, because all the data is intialized now and it
14078 simply is more readable than %e ...
14080 * plug-ins/python/python-startup.py : removed dependency
14081 to PyGtk, because it isn't required here and probably won't
14082 in i.e.: export filters.
14084 * plug-ins/python/gtkcons.py : create the gtkoutfile even
14085 if sys.stderr.fileno() isn't supported
14087 * app/makefile.msc : make version 0.88
14088 * plug-ins/makefile.msc : make version 0.88 an added new
14089 xfig files to build
14091 2001-05-11 James Henstridge <james@daa.com.au>
14093 * NEWS: remember to add news items this time.
14095 * dia.spec: update spec file for 0.88 release.
14097 * configure.in: up version number to 0.88
14099 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
14100 preventing any of the useful python scripts from being
14103 * sheets/Makefile.am (sheet-translation-report): fix bustage I
14104 introduced in my fixups for the 0.87 release :(
14106 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
14108 * plug-ins/xfig/xfig-import.c: Finally got groups working.
14110 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
14112 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
14113 group manipulation.
14115 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
14117 * lib/ps-utf8.[ch]:
14118 * lib/Makefile.am: fix makefile breakage which led to not
14119 including ps-utf8.[ch] in the released tarballs.
14121 2001-05-09 James Henstridge <james@daa.com.au>
14123 * Makefile.am (core-translation-report): dist scripts needed for
14124 this target, and change to $(srcdir) before running.
14126 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
14127 files aren't automatically included in the tarball by automake
14128 because they could be generated files.
14130 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
14132 * doc/en/Makefile.am (install-data-hook): fix up where graphics
14135 * configure.in: up version number to 0.87
14137 * plug-ins/python/*.py: no longer necessary to explicitly set
14138 sys.argv, as python.c does it for us now (like it should).
14140 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
14143 * plug-ins/python/python-startup.py: startup script that imports
14144 all modules in $(datadir)/dia/python and ~/.dia/python.
14146 * plug-ins/python/python.c (dia_plugin_init): change so that it
14147 only runs the $(datadir)/dia/python-startup.py script. Make sure
14148 that sys.argv and __main__.__file__ are set when calling the
14151 * plug-ins/python/Makefile.am: update makefile. Make it install
14152 gtkcons.py plugin. I haven't set any other plugins to install, as
14153 they look like they are mainly for debugging purposes.
14155 * configure.in: add tests to detect if python is available, so we
14156 can build the python plugin. Only run if --with-python passed to
14159 2001-05-08 James Henstridge <james@daa.com.au>
14161 * acinclude.m4: add macros for detecting python.
14163 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
14164 at GNOME_APP_UI_SUBTREE entries.
14165 (menus_add_path): function to add a menu item to the menubars.
14166 Uses a hash table to keep track of extra menu items it adds. Also
14167 notifies the item factory about the entries so that accels can be
14169 (menus_add_path): implement gtk only version.
14170 (menus_init): use menus_add_path() to add the menu.
14171 (plugin_callback): simplify.
14173 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
14175 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
14177 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
14179 * plug-ins/xfig/xfig-export.c:
14180 * plug-ins/xfig/xfig-common.c:
14181 * plug-ins/xfig/xfig-import.c:
14182 * plug-ins/xfig/xfig.c:
14183 * plug-ins/xfig/xfig.h:
14184 * app/Makefile.am: Added support for exporting to Fig format
14185 (except splits, which are less powerful in Fig). Some refactoring
14188 2001-05-02 Hans Breuer <hans@breuer.org>
14190 * plug-ins/python/debug_objects.py : added another
14191 test to get massive crashes from the Property API due
14192 to unintialized data.
14194 * app/menu.c : the callback_action wasn't incremented
14195 (should have checked my last optimization). Now more
14196 than one plug-in callback is supported again.
14198 * plug-ins/python/pydia-geometry.c : avoid crashes from
14199 glib, when trying to g_strdup_printf unintialized floats.
14201 * plug-ins/python/pydia-property.c : avoid crashes from
14202 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
14204 2001-05-01 Hans Breuer <hans@breuer.org>
14206 * objects/makefile.msc : added eml
14207 * objects/eml/instantiation.c : initialize 'inst' pointer
14208 before using, zero initialization for objects
14209 * objects/eml/interaction-ortho.c :
14210 * objects/eml/interaction.c : zero initialization for objects
14212 * app/menus.c : removed Gimp mru stuff which slipped in at
14213 2000-08-15, was never activated and will never be needed,
14214 because of Steffens recent file list patch added at 2001-01-05.
14216 * objects/eml/*.c : some more zero initialization of objects
14217 to avoid infinite (uninitialized) bounding boxes
14219 Implemented a callback api which allows plug-ins to register
14220 menu call backs. Dia for Gnome should compile, but will need
14221 some extra tweaking to make it work because I can't test it.
14223 * plug-ins/python/pydia-error.h :
14224 * plug-ins/python/pydia-render.c : moved Pxthon function return
14225 value handling from pydia-render.c to pydia-error.h, to make it
14227 * plug-ins/python/diamodule.c : implement callback function
14228 registration from and relaying to Python code
14230 * app/menus.c : register and use plug-in menu callbacks
14232 * lib/filter.[hc] : implement filter_register_callback() and
14233 filter_get_callbacks() for the above
14234 * lib/libdia.def : export them
14236 * plug-ins/python/debug_objects.py (new file):
14237 sample using the above
14239 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
14241 * plug-ins/shape/shape-export.c (new_shape_renderer):
14242 The name of a shape is now taken from the dir, to conform with
14245 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
14247 * app/properties.c (properties_show): Added title containing
14248 object type, plus (hopefully) fix of the ghost properties dialog.
14250 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
14252 * app/display.c: remove the display idle handler in case we
14253 destroy the ddisplay (caused crashes in ddd, probably random
14254 crashes elsewhere).
14258 * Makefile.am: hack around gettext-0.10.36's new "features".
14260 * lib/properties.[ch]: added new function object_copy_props().
14261 Added new property type PROP_TYPE_ENDPOINTS
14263 * lib/connection.h: added support for load/saving through the
14264 properties interface.
14266 * lib/object.[ch]: object_load/save/copy_using_properties()
14267 support functions (code factorisations).
14269 * objects/GRAFCET/boolequation.c: check against null values in
14270 boolequation_set_value() and boolequation_destroy().
14272 * objects/GRAFCET/transition.c: Converted from lazyprops to
14273 standard properties. 31% less (x86) code !
14275 * objects/GRAFCET/condition.c: also converted from lazyprops to
14276 standard properties. Also killed lots of code.
14278 2001-04-13 Hans Breuer <hans@breuer.org>
14280 * plug-ins/wmf/wmf.cpp : changed text conversion from
14281 g_utf8_utf16 to g_convert usage. The latter function is already
14282 available in tml's last "official" Gtk+ version (2000-12-26).
14283 This change allows to use recent Dia with either the official
14284 version or the latest cvs "gtk-1-3-win32-production"-branch.
14286 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
14288 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
14289 * app/disp_callbacks.c:
14290 - Allow submenus in DiaMenus.
14291 - Don't require DiaMenu.title to be non-null (so that
14292 submenus aren't required to have titles)
14294 * objects/FS/function.c:
14295 - object menu now has submenus, an almost complete list of
14296 standard-basis verbs, and a start on nouns.
14297 - box padding, dash length, and other visual attributes are
14298 scaled by the font size... eventually font height will be
14299 a function property.
14300 - draw functions with smaller font to make initial view hold
14301 a reasonable number of functions.
14303 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
14306 * sheets/chronogram.sheet:
14307 * sheets/jigsaw.sheet:
14308 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
14309 Wieers <dag@wieers.com>
14311 2001-04-13 Hans Breuer <hans@breuer.org>
14313 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
14314 to ensure that all the deinitialization is only done once. Fixes
14315 recent app exit crash on win32
14317 * lib/dia_xml.c : provide isinf() replacement for msc which does only
14320 * lib/libdia.def : updated
14322 * objects/makefile.msc : added wanlink.c
14324 * objects/network/wanlink.c : added M_PI_2 definition for poor
14325 platforms which don't have one
14327 * objects/standard/arc.c :
14328 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
14329 initialized which led to rather huge bounding boxes (try Ctrl^A on
14330 diagrams with Arcs or ZigZagLines).
14331 * objects/*/*.c : to avoid further bugs like the above changed all
14332 object initializations to g_malloc0 or g_new0
14335 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
14337 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
14338 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
14340 * objects/UML/class.c:
14341 * objects/UML/usecase.c:
14342 * objects/UML/large_package.c:
14343 * objects/UML/message.c:
14344 * objects/UML/object.c:
14345 * objects/UML/lifeline.c:
14346 * objects/FS/flow.c:
14347 * objects/FS/flow-ortho.c:
14348 * objects/FS/function.c:
14349 * objects/custom/custom_object.c:
14350 * objects/GRAFCET/vergent.c:
14351 * objects/chronogram/chronoref.c:
14352 * objects/SADT/box.c:
14353 * objects/SADT/annotation.c:
14354 * plug-ins/dxf/dxf-import.c:
14355 * plug-ins/xfig/xfig-import.c:
14356 * plug-ins/wpg/wpg.c:
14359 * app/display.c: /* certainly more WIP than dead code there */
14360 Unused variables, unused static function definitions, forgotten or
14361 incomplete prototypes added or fixed, lack of const or unwanted const,
14362 etc. (mostly clean-ups of leftovers of the pre-properties era).
14363 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
14364 please check these.
14366 * app/lineprops_area.c: More of the same. Missing prototypes
14367 added, and functions unused outside made static.
14369 * app/recent_files.c:
14370 * app/properties.c:
14371 * app/defaults.c: some variables are used only when doing a GNOME
14374 * app/magnify.c: missing #include <stdlib.h>.
14376 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
14378 These are a lot of clean-ups (by the way, this compiles and runs
14379 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
14380 for DEAD_CODE, and if it's yours, judge it.
14382 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
14384 * plug-ins/dxf-import.c: some progress with the arcs; still some
14385 clean-ups to do and line width scaling issues to figure out.
14387 * objects/standard/arc.c: start_point and end_point properties
14388 (duplicated from standard/line.c)
14390 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
14393 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
14395 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
14396 preliminary support for arcs (doesn't work). Circles and ellipses are
14397 now transparent. Coordinate and width scaling are now a common
14398 static constant (probably before morphing into a preference).
14400 * sheet/checktrans.py: improved error reporting. Made checktrans
14401 count lack of <name xml:lang="code"> as a lack of translation for
14402 language "code" (no, it's not a plot to bring down other
14403 language's scores !)
14405 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
14406 in the header, and have <name xml:lang="fr"> components.
14408 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
14410 * objects/custom/custom_object.c: temporary hack to fix the shape
14411 bounding box reported by Ben A. Hetland. Proper fix isn't .87
14412 material, see bugzilla #52912.
14414 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
14416 * objects/standard/image.c (get_directory): Now uses
14417 G_SEPARATOR_CHAR_S instead of "/"
14419 * sheets/network.sheet:
14420 * sheets/Logic.sheet:
14421 * sheets/Flowchart.sheet:
14422 * sheets/Electric.sheet:
14423 * sheets/Circuit.sheet:
14425 * sheets/Pneumatic.sheet:
14426 * sheets/SDL.sheet:
14427 * sheets/UML.sheet:
14428 * sheets/GRAFCET.sheet:
14429 * sheets/MSE.sheet:
14430 * sheets/chronogram.sheet:
14431 * sheets/civil.sheet:
14432 * sheets/network.sheet:
14433 Danish translations.
14435 * objects/standard/image.c (get_directory): Changed get_directory
14436 to use g_dirname to find the directory part.
14438 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
14441 * sheets/Electric.sheet:
14442 * sheets/Flowchart.sheet:
14443 * sheets/Logic.sheet:
14444 * sheets/network.sheet: More Dutch translations from Dag Wieers.
14446 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14448 * sheets/checktrans.py: now emits a warning when two descriptions
14449 for a single language code are found.
14452 * sheets/Makefile.am: -translation-reports now also depend on their
14455 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14457 * sheets/Circuit.sheet:
14458 * sheets/Contact.sheet:
14459 * sheets/Logic.sheet:
14460 * sheets/chronogram.sheet:
14461 * sheets/sybase.sheet:
14462 Dutch translations from Dag Wieers <dag@wieers.com>
14464 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14466 * po-checktrans.py: Now shows the detailed counts alongside the
14467 percentage of translations.
14469 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
14472 * po-checktrans (NEW):
14473 * po-checktrans.py (NEW): builds core-translation-report:
14474 percentages of core (gettext) translations done [Not placed into
14475 po/ where that should belong, because of integration fear^Wissues
14478 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
14479 sheets/sheet-translation-report probably ought to be copied on the
14480 user's /usr/share/doc/dia (or equivalent) directory.
14482 * sheets/Makefile.am: sheet-translation-report now a simple
14483 EXTRA_DIST; make install won't install it by default.
14485 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
14487 * app/preferences.c: changed the default grid colour to something
14490 * shapes/SDL/*.shape:
14491 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
14492 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
14493 DIA FILES (well, for files using SDL), see the mailing list
14494 archive "SDL (ab)using the global shape namespace" for a script to
14495 do this conversion.
14497 * sheets/SDL.sheet: translated into French
14498 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
14500 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
14502 * lib/dia_xml.c: made data_point() more paranoid
14504 * sheets/Makefile.am:
14505 * sheets/checktrans (NEW):
14506 * sheets/checktrans.py: Made checktrans handle more gracefully the
14507 absence of python and python-xml packages, and made the error
14508 message more helpful.
14510 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
14512 * lib/render_object.c (new_render_object): Made initial handles
14513 behave like on most other objects.
14515 * app/load_save.c (read_objects): Fixed premature free'ing ofr
14516 typestr causing garbage.
14518 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
14520 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
14521 accouting for handle ordering through copy and save. (#51479)
14523 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
14525 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
14527 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
14529 * sheets/Circuit.sheet
14531 * sheets/network.sheet: Updated German translations
14533 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14536 * app/lineprops_area.c: The return of the revenge of the arrow
14537 heads. Now all types covered by ISO 10303-201 should be covered.
14539 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14541 * sheets/Flowchart.sheet: translations in probably Hungarian were
14542 a victim of cut-n-paste from the German one. Fixed (hopefully).
14543 * sheet/UML.sheet: translation in probably Norwegian was a victim
14544 of cut-n-paste from the French one. Fixed (hopefully).
14545 * sheets/Logic.sheet: French translation not tagged with
14548 * sheets/checktrans.py:
14549 * sheets/Makefile.am: new file, sheet-translation-report, to be
14550 installed along the sheets, show how much of them has been
14551 translated into which language (I wish the result was prettier...)
14553 * po/README: most translators don't read this file, but anyway...
14555 * sheets/.cvsignore:
14556 * objects/network/.cvsignore: the usual negotiation with CVS.
14558 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14560 * sheets/*.sheet: French translations
14562 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
14564 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14566 ** objects/network/network.c:
14567 ** objects/network/wanlink.c:
14568 ** objects/network/pixmaps/wanlink.c:
14569 ** sheets/network.sheet:
14570 ** objects/network/Makefile.am: a better object to use instead of
14571 the older WAN Connection.
14573 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14575 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14578 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14579 Arc; kept the C file name (because CVS wouldn't like it), and
14580 still registering the older object name (but advertising the newer
14581 one in sheets/GRAFCET.sheet).
14583 2001-03-24 Hans Breuer <hans@breuer.org>
14585 * app/dia.def : some plug-ins (currently only python, xfig) are using
14586 functions from the dia executable. To get them working these functions
14587 need to be explicit exported on win32. IMO the much cleaner way would
14588 be to move these functions to libdia, but that would require some
14589 long term restructuring ...
14591 * lib/libdia.def : updated
14593 * plug-ins/makefile.msc : build xfig plug-in
14595 2001-03-24 Hans Breuer <hans@breuer.org>
14597 * app/diagram.c : g_strdup (dia->filename) because it will be
14600 * app/display.c : set ddisp->renderer to NULL after destruction.
14601 This may solve or help to identify erroneous access to it after
14604 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14605 get 'umlauts' working
14607 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
14609 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14610 were reversed... (look for the patch, and drink a beer to my
14613 2001-03-23 Hans Breuer <hans@breuer.org>
14615 * app/app_procs.c : don't g_error () if the config directory
14616 can't be created (at least not on windoze) because it's quite
14617 common that the user don't read or understand the FAQ ...
14619 * app/cursor.c : use ddisplay_active () instead of active_display
14622 * app/display.[hc] : made active_display var static and provide
14623 an accessor funtion ddisplay_active_diagram ()
14625 * app/dia-props.c : don't store the active_diagram, but ask
14626 for it everytime it needed.
14628 * lib/properties.h : #include "intl.h"
14630 * lib/makefile.msc : need to take care of inclusion order to
14631 avoid clashes with gtk+2.0's gdk-pixbuf
14633 * objects/makefile.msc : added uml/stereotype.c to build
14635 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
14637 * **/*.c: Added config.h to the remaining .c files, and changed
14638 all to be <config.h>.
14640 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
14645 * app/lineprops_area.c: added new arrow types with double
14648 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
14650 * shapes/Civil/civil_gas_bottle.xpm
14651 * shapes/Civil/civil_gas_bottle.shape
14652 * sheets/civil.sheet
14653 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14656 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
14658 * objects/custom/shape_info.c (load_shape_info):
14659 * objects/custom/shape_info.h:
14660 * objects/custom/custom_object.c (custom_update_data):
14661 Better support for text outside the box -- new attributes 'resize'
14662 and 'align' for text entity. Align not fully supported yet.
14664 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14666 2001-03-20 James Henstridge <james@daa.com.au>
14668 * app/interface.c (display_data_received_callback): comment out
14671 2001-03-19 James Henstridge <james@daa.com.au>
14673 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14675 * objects/UML/realizes.c: similar here.
14677 * objects/UML/implements.c: similar here.
14679 * objects/UML/component.c: similar here.
14681 * objects/UML/generalization.c: same here.
14683 * objects/UML/dependency.c: allow NULL for ->name and
14684 ->stereotype. This fixes a number of problems in loading saved
14687 * lib/properties.c: various changes so that NULL string properties
14690 * objects/standard/line.c (line_update_data):
14691 line->extra.start_long and line->extra.end_long were not being
14692 initialised. This fixes potential problems with the bounding box
14693 of "Standard - Line" objects.
14695 2001-03-19 Hans Breuer <hans@breuer.org>
14697 * app/commands.c : added win32 specific code to display a html
14698 file. #include "text.h" for text_delete_all prototype.
14701 * app/dia.rc : (new) to give Dia win32 an icon
14703 * app/win32print.[ch] : new files to support direct postscript
14704 file printing on win32. Beware: it *requires* a ps-printer!
14706 * app/paginate_psprint.c : disable the signal code for win32 build
14707 and added small specific changes to support win32print.
14709 * app/makefile.msc : added win32print and linking shell32.lib
14711 * lib/libdia.def : updated
14713 2001-03-18 Kevin Breit <battery841@mediaone.net>
14715 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
14718 2001-03-17 James Henstridge <james@daa.com.au>
14720 * app/paginate_psprint.c (diagram_print_ps): add code that traps
14721 SIGPIPEs during printing. This gets rid of a number of crashes
14722 caused by printing (eg. typing an incorrect print command).
14724 * dia.spec (%install): gzip the manpage.
14726 * lib/beziershape.c (beziershape_save): fix off by one error in
14727 beziershape save code, which was adding an extra segment to the
14730 * app/menus.c: add a separator in the gnome version of the help
14733 * app/app_procs.c (app_init): add a --nosplash argument which
14734 disables the splash screen.
14736 * app/dia_embedd.c (main): don't leave the splash screen open for
14737 embeddable component.
14739 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14740 didn't seem to be showing the splash screen like expected, so I
14741 have replaced it with some code that calls gtk_main() until the
14742 first exposure of the window.
14744 2001-03-16 James Henstridge <james@daa.com.au>
14746 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14748 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14751 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14753 * app/Makefile.am (dia_core_files): remove splash.h from file
14754 list, as it doesn't exist.
14756 * doc/en/Makefile.am (uninstall-local): remove the docdir on
14759 * doc/Makefile.am (uninstall-local): target to remove the C
14762 * dia.spec (%files): include the documentation in the package.
14764 * app/menus.c (toolbox_menu_items): add menu item for manual,
14765 which calls help_manual_callback.
14767 * app/commands.c (help_manual_callback): find help file and load
14768 netscape to view it.
14770 * app/commands.h: add prototype for help_manual_callback()
14772 * doc/Makefile.am (helpdir): similar here.
14774 * doc/en/Makefile.am (helpdir): make the helpdir
14775 $(pkgdatadir)/help/en in the non gnome case.
14777 * configure.in (HAVE_GNOME): add conditional.
14779 * doc/en/Makefile.am: handle the graphics in a more general way,
14780 so it is easier for Kevin to add them to the build (just add them
14781 to the GRAPHICS var).
14783 * app/Makefile.am (embed_extra_print_files): make the case of
14784 building without gnome-print support but with bonobo support work.
14785 dia-embedd needs to be include the gnome-print
14787 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
14789 * samples/Makefile.am: included all samples in the distribution....
14791 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
14793 * configure.in: removed premature test for DPS. Added -*- m4 -*-
14794 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14795 vanished, removed it from ALL_LINGUAS.
14797 * lib/charconv.[ch] (NEW): a very small wrapper around
14798 unicode_iconv to convert strings between utf8 and local charset
14799 (actually, ISO-8859-1, though one can do
14800 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14802 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14803 library to help build Postscript streams which use as many custom
14804 font encodings as necessary to correctly represent all characters
14805 used (testing from users with non-latin1 and/or more than 256
14806 characters in routine use *very* welcome).
14808 * app/Makefile.am, lib/Makefile.am: integrated these into the
14811 * shapes/Logic/.cvsignore (NEW): .cvsignore
14813 * app/render_eps.h: forwarded some changes Lars forgot to include.
14814 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14817 2001-03-08 Kevin Breit <battery841@mediaone.net>
14819 * doc/en/home_network.png: Added file.
14820 * doc/en/line_props.png: Added file.
14821 * doc/en/usage-objects.sgml: Added two graphics to file.
14822 * doc/en/usage-quickstart.sgml: Added one graphic to file.
14824 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
14826 * app/grid.h: Place comment around text after #endif.
14827 * lib/bezier_conn.c: #include <string.h>.
14828 * lib/beziershape.c: #include <string.h>.
14829 * lib/connpoint_line.h: Comment after #endif.
14830 * lib/dia_dirs.c: #include <string.h>.
14831 * lib/element.c: Same.
14832 * lib/lazyprops.c: #include <config.h> and "intl.h".
14833 * lib/lazyprops.h: Comment out text after #endif.
14834 * lib/neworth_conn.c: #include <string.h>
14835 * lib/orth_conn.c: Same here.
14836 * lib/poly_conn.c: Here too.
14837 * lib/polyshape.c: And here.
14838 * lib/properties.c: Remove #include "intl.h" from here and add
14839 an array of static strings to work around bug in gettext that
14840 makes it miss strings in a #define body.
14841 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14842 * objects/GRAFCET/boolequation.h: Same here.
14843 * objects/chronogram/chronoline_event.h: Add prototype for
14846 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14848 * objects/FS/function.c:
14849 * objects/FS/flow.c:
14850 * objects/FS/flow-ortho.c:
14851 Updated to use properties.
14853 2001-03-03 James Henstridge <james@daa.com.au>
14855 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14856 button labels when creating them.
14858 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14860 * objects/UML/actor.c
14861 * objects/UML/realizes.c
14862 * objects/UML/implements.c
14863 * objects/UML/generalization.c
14864 * objects/UML/dependency.c
14865 * objects/UML/constraint.c
14866 Updated to use properties.
14868 * objects/UML/stereotype.c
14869 * objects/UML/stereotype.h
14870 Generalized to any kind of bracketting.
14872 2001-02-28 James Henstridge <james@daa.com.au>
14874 * app/menus.c: add help entry to the help menu. Need to get this
14875 working for the non GNOME case as well (maybe put help under
14876 $(datadir)/dia/help for non GNOME?)
14878 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14880 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14881 this element so that we get a meaningful filename in the html
14884 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14887 * configure.in (DB2HTML): add a check for the db2html program, and
14888 set an automake conditional if it is found.
14890 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14891 and descend into doc/ directory while building.
14893 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14894 we need more complex rules for building the docs.
14896 2001-02-25 Hans Breuer <hans@breuer.org>
14898 * config.h.win32 : some cleanup
14900 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14901 are deprecated since glib-1.3.2. Sorry needing to use them
14902 contionally, but there is no glib-1.2 for win32
14904 * app/recent_files.c : use g_strescape (params) conditionally
14906 * lib/connection.c : include string.h for memcpy
14908 * lib/geometry.h : added some stuff for compatibility with
14909 msvc, which previously came from included config.h
14911 * lib/libdia.def : updated
14913 * objects/makefile.msc : updated
14915 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
14916 'extra' used without having been initialized
14918 * objects/network/bus.c(658) : initialize 'extra'
14920 * plug-ins/makefile.msc : updated
14922 * plug-ins/cgm/cgm.c :
14923 * plug-ins/pstricks/render_pstricks.c :
14924 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
14927 * plug-ins/python/python.c : use HAVE_DIRENT_H
14929 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14931 * lib/connection.c (connection_update_boundingbox):
14932 Made the BB shrink on right and lower sides, too.
14934 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
14936 * */*.c: #incude <config.h> at the top.
14937 * */*.h: Remove include of "config.h" since it should only
14938 be included in .c files and at the very top for things to
14940 * sheets/*.sheet: Updated Norwegian translations.
14942 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14944 * objects/UML/small_package.c:
14945 * objects/UML/class.c:
14946 * objects/UML/node.c:
14947 * objects/UML/usecase.c:
14948 * objects/UML/lifeline.c:
14949 * objects/UML/message.c:
14950 Various cleanup of properties in particular. Now much more use of
14951 standard properties.
14953 * lib/diagramdata.c (layer_render): Visualization of bounding
14954 boxes, for debugging purpoises.
14956 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
14959 * lib/connection.[ch]:
14960 * lib/poly_conn.[ch]:
14961 * lib/polyshape.[ch]:
14962 * lib/bezier_conn.[ch]:
14963 * lib/beziershape.[ch]:
14964 * lib/orth_conn.[ch]:
14965 * lib/neworth_conn.[ch]:
14966 * lib/element.[ch]: Changed a bit the _update_boundingbox()
14967 interface. Now the parent elements have an extra_spacing
14968 structure, which child objects just need to fill, to take care of
14969 most arrow & line width extra space needs.
14971 * objects/**/*.c: updated all objects to the new interface.
14972 While at it, killed all instances of (Object *) downcasts (phew !)
14974 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14975 doesn't speak about.
14977 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14979 * sheets/Logic.sheet: New sheet for Logic symbols.
14981 2001-02-21 James Henstridge <james@daa.com.au>
14983 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14984 widget by its path name. Walks the GnomeUIInfo heirachy rather
14985 than widget tree, compares untranslated label names and ignores
14986 underscores in the labels.
14987 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14988 lookups are not dependent on the current locale, as with
14989 gnome_app_find_menu_pos.
14991 * acconfig.h: guard against multiple inclusion of config.h.
14993 * app/select.c (select_style_callback): simply set the selection
14994 style to the value of action.
14996 * app/menus.c (menus_init): simplify the item factory based menu
14997 code a bit. It looks like it was using some code cut and pasted
14998 from the gimp, which looked a bit unnecessary. Things work fine
15000 (selectmenu): set the action to the type of selection mode
15002 (display_menu_items): use the symbolic enumeration values for the
15005 * app/plugin-manager.c:
15006 * app/plugin-manager.h:
15010 * app/select.h: change prototypes.
15012 * app/commands.c: update all callback prototypes, and get rid of
15013 some #ifdef GNOME's.
15015 * app/commands.h: change function prototypes.
15017 * app/dia_embedd.c (save_fn):
15018 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
15020 * app/menus.c (menus_init): for gnome menus, use
15021 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
15022 structure that proxies the callbacks to have the same signature as
15023 GtkItemFactory type 1 callbacks.
15024 (menus_init): for GTK menus, change from callback type 2 to type
15026 (display_menu_items): add back tearoffs. I don't know who removed
15027 these for the gtk menu case.
15029 2001-02-20 Kevin Breit <battery841@mediaone.net>
15031 * doc/en/usage-objects-special.sgml: Fixed a few of the special
15032 object descriptions. More to come in the next few days.
15034 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
15036 * app/render_eps.c: Fixed for internationalized floating point
15039 * objects/UML/note.c: Fixed properties -- was missing
15040 Get/ApplyPropertiesFunc. Also improved update to recalculate text
15043 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
15045 * plug-ins/xfig/xfig-import.c:
15046 File added importing xfig files. Still very rough, but good
15047 enough to let others hack on it.
15049 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
15052 * app/linewidth_area.c:
15054 * lib/properties.c:
15056 * objects/ER/attribute.c:
15057 * objects/ER/entity.c:
15058 * objects/ER/relationship.c:
15059 * objects/custom/custom_object.c:
15060 * objects/flowchart/box.c:
15061 * objects/flowchart/diamond.c:
15062 * objects/flowchart/ellipse.c:
15063 * objects/flowchart/parallelogram.c:
15064 * objects/standard/box.c:
15065 * objects/standard/textobj.c: per Vlad Harchev's request, made
15066 page sizes of gtk_adjustments different than their step sizes.
15067 When sensible values of page size weren't found (overwhelming
15068 majority of cases), page sizes were set to 10.0 * respective step
15071 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
15073 * objects/network/hub.c:
15074 Patch from Hubert Figuiere applied, adding connection points.
15076 2001-02-02 James Henstridge <james@daa.com.au>
15078 * app/display.c (new_display): set update id to 0 here.
15079 (ddisplay_update_handler): rename from ddisplay_flush, and set
15080 update_id to 0 at end of processing.
15081 (ddisplay_flush): new implementation that simply sets an idle
15082 handler to perform the actual drawing.
15084 * app/display.h: add structure member to hold the redraw idle
15087 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
15089 * objects/standard/ellipse.c (ellipse_copy):
15090 * objects/standard/zigzagline.c (zigzagline_copy):
15091 Fix of copying provided by Martin Hawlisch.
15093 2001-01-23 Kevin Breit <battery841@mediaone.net>
15095 * doc/en/graphics/: added directory
15097 * doc/en/graphics/greendots.png: added file
15099 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
15102 2001-01-23 Kevin Breit <battery841@mediaone.net>
15104 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
15105 thanks to John Fleck!
15107 2001-01-21 Kevin Breit <battery841@mediaone.net>
15109 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
15111 2001-01-12 Michael Meeks <michael@helixcode.com>
15113 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
15114 so our POA gets setup properly.
15116 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
15117 things we g_malloc.
15119 * configure.in: Use bonobox_print.
15121 * app/dia_embedd.c (embeddable_factory): add print interface.
15122 (object_print): impl.
15124 2001-01-11 Michael Meeks <michael@helixcode.com>
15126 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
15127 (load_fn, save_fn): impl.
15128 (view_factory): hide modified status bar, & use activate fn.
15129 (refresh_view): force redraws of the views.
15130 (view_show_hide): split from
15131 (dia_view_activate): here.
15133 * app/diagram.c (diagram_load_into): split from diagram_load.
15134 (new_diagram): simplify bu splittin stuff into
15135 (diagram_init): here.
15137 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
15139 * shapes/jigsaw/*.shape: replaced #000000 with foreground
15140 and #ffffff with background
15142 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
15144 *configure.in: GTK+-build was broken due to missing
15147 2001-01-06 Michael Meeks <michael@helixcode.com>
15149 * app/dia_embedd.c (main): add running context support.
15150 (dia_embeddable_destroy): remove old running object counting.
15151 (embeddable_factory): ditto.
15152 (view_factory): comment out menu path hiding.
15154 * lib/sheet.c (load_register_sheet): use free to free
15155 stuff from libxml not g_free.
15157 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
15159 * configure.in: remove USE_OAF checks, check for a precice
15160 Bonobo version >= 0.31, revamp bits.
15162 * app/dia_embedd.c (init_server_factory): upd.
15163 (init_dia_factory): remove OAF conditionals, everything uses
15166 * app/GNOME_Dia.oafinfo: rename OAFIIDs
15168 * app/Makefile.am: remove ancient gnorba code.
15169 rename dia.oafinfo to GNOME_Dia.oafinfo
15171 2001-01-07 Hans Breuer <Hans@Breuer.Org>
15175 * readme.win32 : some more files required or useful to build
15178 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
15179 fill_bezier implementation, boundary drawing in fill mode, etc.
15180 Next one complaining gets the source, uncommented ...
15182 * shapes/network/router-symbol.xpm
15183 * shapes/network/switch-atm-symbol.xpm
15184 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
15185 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
15186 the files as XPMs. Maybe the X versions of these functions are more
15189 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
15191 * plug-ins/python/Makefile.am: added libart path
15193 * plug-ins/python/python.c: added dirent.h
15195 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
15197 2001-01-06 Hans Breuer <Hans@Breuer.Org>
15199 * objects/uml/actor.c
15200 * objects/uml/branch.c
15201 * objects/uml/class.c
15202 * objects/uml/classicon.c
15203 * objects/uml/component.c
15204 * objects/uml/large_package.c
15205 * objects/uml/node.c
15206 * objects/uml/note.c
15207 * objects/uml/object.c
15208 * objects/uml/small_package.c
15209 * objects/uml/state.c
15210 * objects/uml/usecase.c : started to implement the generic property
15211 interface for the uml objects. Would appreciate some help on how
15212 to implement properties which are list of properties themselves,
15213 e.g. member functions and their parameters of UMLClass.
15215 2001-01-06 Hans Breuer <Hans@Breuer.Org>
15217 * plug-ins/python/diamodule.c : finally ported to win32.
15218 Added new objects and implemented register_export function.
15220 * plug-ins/python/pydia-object.h
15221 * plug-ins/python/pydia-display.c
15222 * plug-ins/python/pydia-handle.c
15223 PyObject_HEAD_INIT needs some tweakink on win32. Done in
15224 pydia-object.h; others files simply using it.
15226 * plug-ins/python/pydia-layer.c : reflect
15227 layer_find_closest_connection(_)point renaming
15229 * plug-ins/python/pydia-object.c : add property properties.
15230 Also change bounding_box to DiaRectangle.
15232 * plug-ins/python/python.c : extended error reporting; use
15233 all *.py files from Dia's plug-in dir instead of hardcoded
15234 test.py. This sollution should be fine with Win32, but on
15235 Unix it may need some tweaking (dunno) ...
15237 * plug-ins/python/export-object.py
15238 * plug-ins/python/export-render.py : test and documentation
15239 implementations for export filter implementations in Python
15241 * plug-ins/python/pydia-color.[hc]
15242 * plug-ins/python/pydia-diagramdata.[hc]
15243 * plug-ins/python/pydia-error.[hc]
15244 * plug-ins/python/pydia-export.[hc]
15245 * plug-ins/python/pydia-font.[hc]
15246 * plug-ins/python/pydia-geometry.[hc]
15247 * plug-ins/python/pydia-image.[hc]
15248 * plug-ins/python/pydia-properties.[hc]
15249 * plug-ins/python/pydia-property.c
15250 * plug-ins/python/pydia-render.c : new objects in new files
15252 * plug-ins/python/makefile.am : added new files but can't test it
15254 * plug-ins/python/pydia.def
15255 * plug-ins/python/makefile.msc : for win32 build
15257 * plug-ins/cgm/cgm.c
15258 * plug-ins/dxf/dxf-import.c
15259 * plug-ins/dxf/dxf-export.c
15260 * plug-ins/hpgl/hpgl.c : reflect export API change
15262 * plug-ins/shape/shape-export.c : reflect export API change
15263 and check for libart (better the availibility of a png exporter)
15264 at run-time instead of compile-time.
15266 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
15268 * app/recent_files.h was missing from Hans's commit
15270 * plug-ins/shape/shape_export.c: shape export was broken
15271 due to interface changes
15273 2001-01-05 Hans Breuer <Hans@Breuer.Org>
15275 Applied Steffen's recent file list patch :
15276 * app/Makefile.am : added recent_files.[hc]
15277 * app/diagram.c : add files to recent file list
15278 * app/menus.c : add recent file menu
15279 * app/app_procs.c : changed initialization order to
15280 make recent file list work with command line processing.
15282 The Filter export()/import() functions have got an additional
15283 parameter to allow multiple filters via one C callback (required
15284 for Python bindings)
15286 * app/commands.[hc] : corrected the signature for gtk menu callback
15287 functions, which actually use the second or third parameter. This
15288 is the absolute minimum change to make these functions/menu entries
15289 work again. Using the other possible gtk menu callback signature
15290 would have required one more function to change. (see mailing list
15291 thread "Objects/Align/Equal Distance" for more information.
15293 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
15294 zoom-combo focus patch
15297 * app/interface.c : wrapped the Zoom Combo code into
15298 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
15299 improvement but cluttering the user interface. Also it wasn't
15300 compiling on Win32 anyway. The win32 version does define
15301 WITHOUT_ZOOM_COMBO to keep the old look.
15302 There are plans to use the statusbar to display size and placement
15303 of selected objects, whereas the Zoom Combo would need to get out
15304 of the way as well.
15306 Added "Save Changes?" to diagram close dialog. Hopefuly the
15307 Yes/No/Cancel option isn't too much windoze like. IHMO this is
15308 an useability improvement.
15313 * app/layer_dialog.c
15314 * app/paginate_psprint.c
15316 - reflect signature changing of filter->export function
15317 - replaced '/' with G_DIR_SEPARARTOR where appropriate
15319 * app/diaunitspinner.c
15320 * app/render_libart.c
15321 added misssing headers like <string.h>
15323 * app/object_ops.c : fixed copy&paste bug in dialog string
15325 * app/splash.c : gdk_widget_show_now () does not ensure actual
15326 drawing of the splash screen, at least not on win32. Reuse the
15327 previous implementation with gtk_main_iteration() again.
15329 * */makefile.msc : make use of the build module (available in
15330 gnome-cvs/build. Updated for other source changes
15332 * lib/filter.h : added an user_data pointer to <ex/im>port()
15333 function signature and Dia<Im/Ex>portFilter to allow different
15334 filters to reuse the same callback function
15336 * lib/font.c : #include <string.h>
15341 * lib/neworth_conn.c
15342 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
15344 * */*.def : export function definition files required by win32 build
15346 * objects/custom/custom.c : #include <string.h>
15348 * plug-ins/pstricks/render_pstricks.c
15349 * plug-ins/shape/shape_export.c
15350 * plug-ins/svg/render_svg.c
15351 reflect changes to filter export function signature
15353 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
15354 mostly work as expected
15355 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
15356 to build the wmf plug-in because on the one hand the GDI emulation
15357 isn't finished and on the other hand it isn't required when building
15358 for win32. Is there anybody out there, who wants to save WMF on non
15359 windoze platforms ?
15361 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
15362 offset into account.
15364 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
15366 * app/Makefile.am: added missing plug-ins to run_dia.sh
15368 * lib/paper.c: added paper sizes A0, A1, A2
15370 * objects/UML/class.c
15371 objects/UML/class.h
15372 objects/UML/class_dialog.c: added support for colored UML
15375 2000-12-30 Kevin Breit <battery841@mediaone.net>
15377 * doc/en/usage-customization.sgml: added more content
15379 2000-12-24 Kevin Breit <battery841@mediaone.net>
15381 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
15382 <remy.viard@laposte.net>
15384 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
15386 * added limiting lines to Civil Engineering sheet,
15387 fixed vertical pump icon
15389 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
15391 * updated/additional Civil Engineering shapes: better icons,
15392 shapes use foreground/background colors now and are filled
15394 2000-12-03 Kevin Breit <battery841@mediaone.net>
15396 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
15397 the selection <sect1>
15399 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
15401 * app/load_save.c (diagram_data_save): avoid using obsoleted
15402 libxml calls (only matters when compiling with libxml2)
15404 2000-11-25 James Henstridge <james@daa.com.au>
15406 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
15407 handle the tool drops on the canvas.
15409 * app/interface.c (display_data_received_callback): do the check
15410 to make sure that the drag is from a local toolbox here as well.
15412 * app/interface.c (create_tools): unref the pixmap/mask after
15413 creating the GtkPixmap.
15414 (tool_setup_drag_source): function to set up a drag source for
15415 create object tool buttons.
15416 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
15417 (fill_sheet_wbox): same here.
15418 (create_display_shell): set up the display canvas as a drag
15420 (display_drop_callback, display_data_received_callback): functions
15421 to handle drops of tool buttons.
15423 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
15424 does weird shit to the user_data pointer for a menu item. Object
15425 alignment should work again now.
15427 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
15428 NULL, and mark this function static.
15429 (app_splash_init): use gtk_widget_show_now() instead of the
15430 gtk_main_iteration loop.
15431 (app_splash_init): connecting gtk_widget_destroy to the destroy
15432 signal of a widget seems pretty useless.
15434 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
15436 * doc/en/dia-manual.sgml:
15437 Added sect1 for advanced object types. Starting development
15440 2000-11-18 Kevin Breit <battery841@mediaone.net>
15442 * doc/en/dia-manual.sgml:
15443 Stupid spelling fixes.
15445 2000-11-18 Kevin Breit <battery841@mediaone.net>
15447 * doc/en/dia-manual.sgml:
15448 Just some small changes I made. Props to Greg LeBlanc on the
15451 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
15454 (ddisplay_add_display_area): Clip input rectangle to
15455 the visible part of the display.
15456 (ddisplay_scroll): Optimization, don't scroll and
15457 redraw if moving to the same position as before.
15459 * app/render_libart.c (renderer_libart_copy_to_window):
15460 Removed sanity check. Now moved to ddisplay_add_display_area().
15463 Added return at end of file.
15465 2000-11-13 Kevin Breit <battery841@mypad.com>
15466 * doc/en/dia-manual.sgml
15467 Commited manual changes from Henry House <hajhouse@houseag.com>
15469 2000-10-21 Hans Breuer <Hans@Breuer.Org>
15470 * lib/beziershape.c :
15471 The previous code was accessing unowned memory due to IHMO
15472 wrong index calculation. Now it appears to be fixed.
15476 * plug-ins/makefile.msc
15477 * objects/makefile.msc
15478 * app/makefile.msc: (new files)
15479 Makefiles for Dia on Win32, Micro$oft VC only.
15481 * plug-ins/pstricks/render_pstricks.c
15482 * plug-ins/dxf/dxf-import.c
15483 * plug-ins/shape/shape-export.c
15484 * plug-ins/svg/render_svg.c
15487 * app/preferences.c
15491 * objects/custom/custom.c
15492 * objects/standard/image.c
15493 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
15494 where appropriate, add missing prototypes like <string.h>
15496 * plug-ins/wmf/wmf_gdi.cpp
15497 * plug-ins/wmf/wmf_gdi.h:
15498 start of wmf write functions for non Win32 platform. Not
15499 finished yet. The other way to get it working maybe to
15500 link the plug-in against wine libs.
15502 * plug-ins/wpg/wpg.c : add missing brace
15504 * app/load_save.c :
15505 Handling for unknown objects at load time. Previously Dia
15506 was crashing, if you try to load a file referencing objects
15507 whiches plug-ins aren't installed/available. Now it spits out
15508 a warning and ignores the unknown objects.
15511 toolbox DND support for files like The Gimp does it.
15515 Simple splash screen support and usage.
15518 Splash screen, portability fixes, dont' g_error if there is
15519 g_get_homedir return NULL. This may remove the one and only
15523 Make it compile without ENABLE_NLS
15525 * app/render_libart.c :
15526 Sanity check to avoid calling libart with wrong window coordinates.
15527 They come from the update handler. Direct Gdk is dealing nicely
15528 with coordinates out of range, libart does access un-owned memory
15529 in this case, mostly causing crashes.
15531 * app/winmain.c: (new file) Export the Win32 Gui version of the
15532 main function. This file is only required for Windoze.
15534 * app/splash.c: (new file) splash screen implementation
15538 * lib/diavar.h: (new file)
15539 moved special variable export code to diavar.h, because it is
15540 needed in color.h and font.h
15543 M$VC cann't export inlined functions. Quick hack to let it
15544 link again. Probably the glib mechanics should be used here?
15546 * objects/UML/lifeline.c : initialize var before usage
15548 * objects/GRAFCET/step.c : removed unused var
15550 2000-10-14 James Henstridge <james@daa.com.au>
15552 * app/render_gnomeprint.c (draw_image): change code so images
15553 don't get flipped when printing.
15555 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15556 sure that the return value of
15557 gnome_print_context_new_with_paper_size is not NULL.
15559 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15560 into a series of bezier segments.
15561 (fill_arc): similar code to handle filled arc segments.
15563 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
15570 * app/disp_callbacks.c
15572 * app/linewidth_area.c
15573 * app/paginate_psprint.c
15574 * app/preferences.c
15578 * app/neworth_conn.c
15580 * objects/standard/box.c: various small changes to get rid of
15581 annoying warnings (eg faulty prototypes and unused variables)
15583 * app/disp_callbacks.c
15586 * app/magnify.h: update magnify tool icon when pressing/releasing
15587 shift. I will try to make something more general so that similar
15588 things can be used by other tools.
15590 * shapes/SDL/inout.shape
15591 * shapes/SDL/return.shape: fixed some typos
15593 2000-10-09 James Henstridge <james@daa.com.au>
15595 * objects/custom/shape_info.c (parse_path): apply patch from
15596 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15599 2000-10-08 James Henstridge <james@daa.com.au>
15601 * objects/standard/image.c (image_set_props): if the file could not
15602 be loaded, show the broken image icon.
15604 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15606 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15608 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15609 object icon when loading from a file. This allows you to have PNG
15610 icon files for shapes.
15612 2000-10-07 James Henstridge <james@daa.com.au>
15614 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15616 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15617 GDK_IMLIB_CFLAGS reference.
15619 * app/commands.c (help_about_callback): remove imlib code.
15621 * lib/dia_image.c: only include the pixbuf version of the image
15624 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15626 * configure.in (CPPFLAGS): remove the check for imlib, as we now
15627 require gdk-pixbuf.
15629 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15630 conditionally define \setfont as well.
15632 2000-10-05 James Henstridge <james@daa.com.au>
15634 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15635 preamble so that we define \setlinejoinmode and \setlinecaps
15636 commands conditionally on them being undefined. This way, the
15637 pstricks output files should work without modification, and will
15638 support the commands when they are implemented in pstricks.
15640 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
15642 * dia.desktop: added hungarian translations to dia.desktop
15644 2000-10-04 James Henstridge <james@daa.com.au>
15646 * sheets/UML.sheet: fix typo.
15648 * objects/custom/shape_info.c: use strtod instead of g_strtod.
15649 (parse_path): actually call setlocale around strtod calls.
15651 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
15652 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15653 the g_strtod wrapper.
15655 * shapes/SDL/: add SDL shapes from Rubens Ramos
15656 <rubens_ramos@yahoo.com>
15658 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15660 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15662 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15663 W. Michael Petullo <mike@flyn.org>.
15665 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15666 from the 0.86 tarball) and jigsaw.sheet.
15668 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15670 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15672 * shapes/network/: add network-additional shapes here.
15674 * sheets/network.sheet: add the network-additional shapes from
15675 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15678 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
15680 * configure.in: Updated ALL_LINGUAS
15682 * po/nl.po: Removed newline from translation
15684 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
15686 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
15687 logo filename generation.
15689 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15690 Avoiding "//dia_logo.png".
15692 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
15694 * app/filedlg.c: add include <sys/types.h> to
15695 remove warning. (OS/2)
15697 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
15699 * objects/chronogram/chronoline_event.c (reparse_clevent):
15700 the __checksum routine was simply bogus. Redone it in a slightly
15701 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15703 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
15705 * app/create_object.c (create_object_button_press):
15706 * app/modify_tool.c (click_select_object):
15707 * lib/object.h: select renamed to selectf to prevent
15708 compiler problems with function select(). OS/2 version.
15710 2000-09-08 Karsten Weiss <knweiss@gmx.de>
15712 * po/de.po: Updated.
15714 2000-09-07 Karsten Weiss <knweiss@gmx.de>
15716 * dia.desktop: Added German translation
15717 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15719 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
15721 * configure.in (ALL_LINGUAS): added "es"
15723 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15728 * app/scroll_tool.c:
15729 Standardized cursor function get_cursor(). Magnify now has
15730 looking-glass cursor with + and -.
15732 * app/create_object.c (create_object_button_press):
15733 Newly created connections now snap to connection points even when
15736 2000-08-17 Daniel Egger <egger@suse.de>
15738 * app/menus.c: #ifdef'ed some code for the none GNOME
15740 * app/dia_embedd.c: Changed obvious hackery. Can anyone
15741 please have a look at the GNOME UI menu creation? The
15742 gnome-app-helper code is ages old and plainly broken!
15744 2000-08-15 Daniel Egger <egger@suse.de>
15751 * app/select.c: First big patch to get the menus
15752 working again in the international version. Copied
15753 some code written by Sven and me from GIMP and
15754 thus implemented automatic tearoffmenu creation and
15755 proper translation. I also removed that pseudo
15756 radiomenu hack and cleaned up several translation
15757 hacks which have never really worked. All in all
15758 this is part I of the big menu patch. Enjoy and tell
15759 me if you detect any problems.
15761 2000-08-14 Daniel Egger <egger@suse.de>
15763 * sheets/UML.sheet: Changed one German translation as
15764 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15766 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
15768 * app/diapagelayout.c:
15769 * lib/diagramdata.c:
15770 * lib/diagramdata.h:
15773 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15774 selecting paper size for a new diagram. TODO: Use libpaper if
15775 available and use gnome_paper-stuff if using GNOME.
15777 * sheets/Electric.sheet: fixed typo.
15779 2000-08-08 James Henstridge <james@daa.com.au>
15781 * po/README: added a readme file to tell translators to translate
15782 the .sheet files as well.
15784 * app/commands.c (help_about_callback): fix small bug where we tried
15785 to gdk_bitmap_unref() the mask for the about box image, even though
15786 it was NULL. Now check for a NULL mask.
15788 2000-08-07 Daniel Egger <egger@suse.de>
15790 * sheets/*.sheet: Added translations for the name
15791 in the toolbar tab. Brushed up some descriptions
15792 and some translations a bit.
15794 2000-08-06 James Henstridge <james@daa.com.au>
15796 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15797 identifier and dtd url for SVG output.
15798 (new_svg_renderer): fix the output of the viewBox output. The
15799 second two numbers are the width and height -- not the right
15800 and bottom sides of the box.
15802 * shapes/*/*.shape: update svg namespace URI.
15804 * objects/custom/shape_info.c (load_shape_info): change the
15805 namespace URI for custom shapes yet again to match the Candidate
15806 Recommedation. It looks like this one will probably be the final
15809 * app/display.c (new_display): remove the code that sets ic and
15810 ic_attr members to NULL, as one of the previous function calls
15811 causes the display to be realised. This means that the ic gets
15812 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15815 2000-08-06 James Henstridge <james@daa.com.au>
15817 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15819 * NEWS: fixed date in NEWS file, as I will release today.
15821 * README: updated the README a little. Added note that Dia is now
15824 * dia.spec: fix up spec file.
15826 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15828 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15829 get heaps of warnings when you turn off debugging.
15830 Also made a few other warning fixes.
15832 2000-08-02 James Henstridge <james@daa.com.au>
15834 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15836 * configure.in: update version number.
15838 2000-08-01 James Henstridge <james@daa.com.au>
15840 * app/commands.c (help_about_callback): add Hans to about dialog.
15842 * doc/shape.dtd: dtd for shape file format.
15844 * doc/custom-shapes: update doc file about creating custom shapes.
15846 * shapes/*/*.shape: change namespace URI for the SVG portion to the
15847 one for the latest draft.
15849 * shapes/*/*.shape: fix up rect definitions.
15851 * objects/custom/shape_info.c (load_shape_info): recognise newer
15852 namespace tag for SVG.
15853 (parse_svg_node): the rect element should take attributes x, y, width
15854 and height -- not x1,y1,x2,y2.
15856 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15857 output to use the newest draft DTD.
15859 * plug-ins/svg/svg.c: initialisation code for plugin.
15861 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15863 * plug-ins/svg/Makefile.am: makefile for svg plugin.
15865 * app/app_procs.c (internal_plugin_init): don't register the svg
15866 export filter here.
15868 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15870 2000-07-31 James Henstridge <james@daa.com.au>
15872 * objects/standard/textobj.c (textobj_get_defaults):
15873 * objects/standard/polygon.c (polygon_get_defaults):
15874 * objects/standard/image.c (image_get_defaults):
15875 * objects/standard/ellipse.c (ellipse_get_defaults):
15876 * objects/standard/box.c (box_get_defaults):
15877 * objects/standard/beziergon.c (beziergon_get_defaults):
15878 * objects/flowchart/parallelogram.c (pgram_get_defaults):
15879 * objects/flowchart/ellipse.c (ellipse_get_defaults):
15880 * objects/flowchart/diamond.c (diamond_get_defaults):
15881 * objects/flowchart/box.c (box_get_defaults):
15882 * objects/custom/custom_object.c (custom_get_defaults):
15883 * objects/FS/flow.c (flow_get_defaults):
15884 * objects/FS/flow-poly.c (flow_get_defaults):
15885 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15888 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15889 widgets for various object types.
15890 (create_dialog): ref and sink the no_defaults_dialog.
15892 * app/preferences.c (prefs_create_dialog): change
15893 gtk_container_border_width call to gtk_container_set_border_width.
15895 2000-07-29 James Henstridge <james@daa.com.au>
15897 * app/commands.c (view_aa_callback): show a warning dialog if
15900 * app/interface.c (fill_sheet_menu): don't add a menu item for
15903 2000-07-26 James Henstridge <james@daa.com.au>
15905 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15907 * app/menus.c: remove edit grid menu item.
15909 * app/commands.[ch] (view_edit_grid_callback): removed.
15911 * app/display.c (new_display): don't initialise removed Grid members.
15913 * app/grid.c: remove unused functions.
15915 * app/grid.h: remove dialog related stuff from Grid structure.
15916 Remove prototypes for dialog functions.
15918 * app/menus.c: add to menus
15920 * app/commands.[ch] (view_diagram_properties_callback): new command
15921 for showing the diagram properties dialog.
15923 * app/dia-props.[ch]: a new diagram properties dialog. To replace
15924 the edit grid dialog.
15926 2000-07-25 James Henstridge <james@daa.com.au>
15928 * app/grid.c (grid_x_update):
15929 (grid_y_update): as the grid setting is stored with the diagram,
15930 update all displays when a change is made.
15932 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15934 * app/create_object.c (create_object_button_press):
15935 (create_object_motion): use new snap_to_grid signature.
15937 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15938 and handle invisible grid lines.
15939 (snap_to_grid): use new grid settings. Also changed signature to
15940 take a DDisplay rather than Grid pointer.
15941 (grid_show_dialog): get the defaults from the correct place.
15943 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15945 * app/diagram.c (new_diagram): set the grid size defaults from the
15948 * app/load_save.c (diagram_data_save): save grid and guide info to
15950 (diagram_data_load): add guide and grid load support.
15952 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15955 * lib/diagramdata.h: add members to DiagramData for grid and guide
15958 * configure.in (BONOBO_LIBS): update configure scripts
15960 * app/dia.oafinfo: oafinfo file for dia embeddables.
15962 * app/dia_embedd.c: add OAF support.
15964 2000-07-24 James Henstridge <james@daa.com.au>
15966 * plug-ins/wpg/Makefile.am:
15967 * plug-ins/pstricks/Makefile.am:
15968 * plug-ins/hpgl/Makefile.am:
15969 * plug-ins/dxf/Makefile.am: same here.
15971 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
15972 the required libraries, and the link line was causing libtool not
15973 to build a shared library on some systems :(
15975 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15976 be checking x, not n.
15978 2000-07-23 James Henstridge <james@daa.com.au>
15980 * app/preferences.c (prefs_data): set the "reset tools after
15981 create" preference to true by default. That seems to be what most
15984 * app/interface.c (create_sheets): instead of a notebook, use an
15985 option menu that updates the sheet tools. The notebook tabs were
15986 getting a bit unwieldly, so the option menu should fix that. This
15987 also reduces the number of widgets in the tools radio button
15988 group, which should make the UI a little more responsive.
15990 2000-07-19 Fatih Demir <kabalak@gmx.net>
15992 * configure.in: Added tr to ALL_LINGUAS.
15993 [ Yeah, we're now having a Turkish translation,
15996 * dia.desktop: Added the Turkish entries.
15998 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
16000 * doc/diagram.dtd: changed string-element so it conforms to the
16003 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
16005 * configure.in: added chinese.
16006 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
16014 objects/custom/shape_info.c:
16015 shapes/Circuit/npn.shape:
16016 shapes/Circuit/pnp.shape:
16017 sheets/*.sheet: dia now works with libxml2.
16018 Libxml2 is a bit more picky when parsing xml and reported errors on all
16019 sheet files because they use non ascii characters (added
16020 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
16021 I commented out these.
16023 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
16025 * configure.in (ALL_LINGUAS): added Italian
16027 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
16029 * configure.in (ALL_LINGUAS): added Korean
16031 2000-06-25 James Henstridge <james@daa.com.au>
16033 * objects/flowchart/parallelogram.c (pgram_create): use default font
16034 and add properties interface support.
16036 * objects/flowchart/ellipse.c (ellipse_create): use default font and
16037 add properties interface support.
16039 * objects/flowchart/diamond.c (diamond_create): use default font and
16040 add properties interface code.
16042 * objects/flowchart/box.c (box_create): use default font.
16044 * objects/custom/custom_object.c (custom_create): use default font
16047 * objects/standard/textobj.c (textobj_create): update to use default
16050 * lib/attributes.c: add implementations.
16052 * lib/attributes.h (attributes_[gs]et_default_font): add function
16053 prototypes for setting/getting a default font.
16055 2000-06-24 James Henstridge <james@daa.com.au>
16057 * app/paginate_gnomeprint.h: updated prototype.
16059 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
16060 diagram page settings.
16062 * objects/standard/beziergon.c (beziergon_copy): same here.
16064 * objects/standard/polygon.c (polygon_copy): copy the fill colour
16068 * app/tool.h (tool_options_dialog_show):
16069 * app/scroll_tool.h (free_scroll_tool):
16070 * app/render_svg.h:
16071 * app/render_libart.h (renderer_libart_copy_to_window):
16072 * app/render_gdk.h (renderer_gdk_copy_to_window):
16073 * app/properties.h (properties_hide_if_shown):
16074 * app/preferences.h (prefs_load):
16075 * app/object_ops.h:
16076 * app/modify_tool.h (free_modify_tool):
16077 * app/magnify.h (free_magnify_tool):
16078 * app/linewidth_area.h (linewidth_area_create):
16079 * app/layer_dialog.h:
16080 * app/handle_ops.h (handle_is_clicked):
16082 * app/grid.h (grid_destroy_dialog):
16083 * app/defaults.h (defaults_show):
16084 * app/cut_n_paste.h (cnp_exist_stored_objects):
16085 * app/create_object.h (free_create_object_tool):
16086 * app/connectionpoint_ops.h (diagram_unconnect_selected):
16088 * app/color_area.h (color_area_create):
16089 * app/app_procs.h (app_is_embedded): remove extern keyword from
16090 function prototypes.
16093 * lib/sheet.h (load_all_sheets):
16094 * lib/render_store.h:
16095 * lib/render_object.h (render_object_load):
16096 * lib/polyshape.h (polyshape_closest_segment):
16097 * lib/poly_conn.h (polyconn_closest_segment):
16100 * lib/objchange.h (new_object_state_change):
16101 * lib/neworth_conn.h (neworthconn_add_segment):
16102 * lib/message.h (message_error):
16105 * lib/font.h (font_descent):
16106 * lib/focus.h (remove_focus):
16108 * lib/diagramdata.h:
16109 * lib/dia_xml.h (data_add_composite):
16111 * lib/connpoint_line.h:
16112 * lib/connection.h (connection_move_handle):
16114 * lib/attributes.h (attributes_set_default_line_style):
16115 * lib/arrows.h (arrow_draw): remove extern keyword from function
16116 definitions. It is not required for functions.
16118 * plug-ins/dxf/Makefile.am (INCLUDES):
16119 * plug-ins/pstricks/Makefile.am (INCLUDES):
16120 * plug-ins/cgm/Makefile.am (INCLUDES):
16121 * objects/SADT/Makefile.am (INCLUDES):
16122 * objects/chronogram/Makefile.am (INCLUDES):
16123 * objects/GRAFCET/Makefile.am (INCLUDES):
16124 * objects/flowchart/Makefile.am (INCLUDES):
16125 * objects/sybase/Makefile.am (INCLUDES):
16126 * objects/FS/Makefile.am (INCLUDES):
16127 * objects/standard/Makefile.am (INCLUDES):
16128 * objects/network/Makefile.am (INCLUDES):
16129 * objects/UML/Makefile.am (INCLUDES): same here.
16131 * objects/ER/Makefile.am: changed inclusion of some macros to
16134 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
16135 handle the plug in extension, rather than have all the #ifdef's in
16138 * plug-ins/Makefile.am: add renderer.inc to dist.
16140 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
16142 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
16144 * lib/plug-ins.c: Handle OS/2 dll's too.
16146 2000-06-07 James Henstridge <james@daa.com.au>
16148 * app/plugin-manager.c (get_plugin_manager): set some table
16149 packing options to make it look a little nicer.
16151 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
16152 makefiles for these plug-ins.
16154 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
16156 * configure.in: added hpgl and wpg directories to build. Added
16157 note about whether gnome-print support was enabled, and noted that
16158 it is not recommended.
16160 2000-06-06 James Henstridge <james@daa.com.au>
16162 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
16163 a little work, but I am checking them in so I don't lose them.
16165 2000-06-01 James Henstridge <james@daa.com.au>
16167 * objects/standard/arc.c: added extra properties.
16169 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
16170 was using the wrong index into the handles array. This gets corner
16171 type changing working correctly.
16173 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
16174 to properties code (no editing or loading yet though). Also added
16175 support for point array manipulation through the offsets interfaces.
16177 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
16179 * app/interface.c (origin_button_press): changes so the origin
16180 button doesn't grab the pointer when we pop up the menu.
16182 * app/commands.c (help_about_callback): fix small memory leak in
16185 * app/menus.c (menus_init): fixed breakage I introduced in the non
16186 gnome menus when I was doing the menu changes. The tearoffs work
16187 really nicely in plain gtk mode as well.
16189 * objects/standard/beziergon.c (beziergon_create): changed the
16190 returned handles to match the handle numbering changes. Now
16191 segment addition and removal works correctly with undo!
16193 * lib/beziershape.c: various changes to the code. Changed the
16194 numbering of handles, and fixed the segment removal code.
16196 2000-05-31 James Henstridge <james@daa.com.au>
16198 * objects/standard/beziergon.c: remove connection point handling.
16199 There is still a bit of work to be done to get adding and removing
16200 of segments working correctly.
16202 * lib/beziershape.c: add connection point handling to beziershape.
16203 I set it for two connection points per segment.
16205 2000-05-30 James Henstridge <james@daa.com.au>
16207 * objects/standard/polygon.c: don't do connectionpoint handling.
16209 * lib/polyshape.c: changed to handle connection points internally.
16210 Also, don't worry about connections to handles on polyshape, as
16211 all handles are non connectable.
16213 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
16215 * configure.in: Added finnish
16217 2000-05-30 James Henstridge <james@daa.com.au>
16219 * sheets/*.sheet: translation updates to the .sheet files.
16221 * po/fr.po: updated po file from Christophe Merlet.
16223 * menus.h: removed prototypes for functions which have been removed.
16225 2000-05-29 James Henstridge <james@daa.com.au>
16227 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
16228 item in the option menu when changing selected diagram.
16230 * app/dia_embedd.c (view_factory): fix up function to work with new
16233 * app/disp_callbacks.c (ddisplay_realize): remove call to
16234 display_set_active from here.
16235 (ddisplay_canvas_events): move call here. This gets rid of all the
16236 warnings, as the renderer has been fully set up correctly at this
16239 * app/menus.c (menus_init): add the tearoff item to the start of the
16242 * app/app_procs.c (create_user_dirs): we don't need to create the
16243 menus directory anymore.
16245 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
16246 necessary to update the menu state here, as it was done when the
16247 active display was set.
16249 * app/display.c (display_set_active): update the menu state when
16250 changing active displays.
16252 * app/interface.c (origin_button_press): set the display as active
16253 when a click is made on the menu button.
16255 * app/menus.c (menus_init): set up a quit function to save the accels
16257 Add tearoff items for the non GNOME menus, add accelerators for
16258 several GNOME menus.
16260 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
16261 menus_get_image_menu().
16263 * app/menus.c (menus_get_item_from_path): use display_menus here
16264 rather than ddisp->popup.
16266 * app/display.h: remove the popup member in the DDisplay structure.
16268 * app/interface.c: remove option of not using wrap box.
16269 (create_toolbox): change to always use menus_get_toolbox_menubar
16270 even when using gnome menus.
16271 (create_display_shell): use menus_get_image_menu to load accelerators
16272 only -- not the actual popup menu.
16274 * app/menus.c (menus_init): new function to create the menus.
16275 (menus_get_toolbox_menubar): use this function whether gnome is
16276 in use or not. Changed to use menus_init.
16277 (menus_get_image_menu): same here. Also, now this function always
16278 returns the same menu, rather than a new one each time.
16279 (menus_init): read a menurc file to load accelerators here.
16281 2000-05-28 James Henstridge <james@daa.com.au>
16283 * app/display.c (ddisplay_really_destroy): unset active display if
16284 active display is destroyed.
16285 (ddisplay_active): simplify function to return active_display as set
16286 by display_set_active. This allows using a pinned menu with any
16287 display -- not just the one it was popped up from.
16288 (display_set_active): notify the layer dialog of change of diagrams
16289 when active diagram changes.
16291 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
16292 on button and key presses.
16293 (ddisplay_realize): set active display on realize.
16295 * app/display.c (display_set_active): simple implementation of this
16298 * app/display.h (display_set_active): add prototype for setting
16299 the active display.
16301 * app/interface.c (create_display_shell): don't give focus to the
16304 * app/menus.c: fix up menus for Beziergon.
16306 * app/interface.c (create_display_shell): make the widget in the
16307 top left corner a button that can be used to pop up the right click
16308 menu, like in gimp and sketch.
16310 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
16313 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
16314 add code to set corner types for beziergon.
16316 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
16318 (beziershape_move_handle): use the previous corner type for right
16321 * app/interface.c (tool_data): add beziergon to toolbox.
16323 * objects/standard/standard.c (dia_plugin_init): initialise the new
16324 Beziergon object type.
16326 * objects/standard/beziergon.c: an object based on BezierShape.
16328 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
16330 * lib/beziershape.[ch]: new files implementing a bezier shape.
16332 2000-05-26 James Henstridge <james@daa.com.au>
16334 * lib/text.c (text_key_event): handle multibyte inserts.
16335 (text_key_event): also add home and end keybindings.
16337 * app/interface.c (create_display_shell): connect handlers for
16338 focus_in_event, focus_out_event, realize and unrealize signals.
16340 * app/display.[ch] (new_display): initialise input context members.
16342 * app/disp_callbacks.[ch]: added XIM support here.
16344 * lib/font.c (suck_font): the black and white pixel values should be
16345 taken from a 1 bit colormap rather than the default colormap.
16347 Hans Breuer's Windows patches ...
16349 * lib/font.c: use Courier New for fixed width font on windows
16352 * lib/dia_image.h: change to "struct _DiaImage".
16354 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
16356 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
16357 mouse button for object menu. This will make two button mouse owners
16360 2000-05-25 James Henstridge <james@daa.com.au>
16362 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
16364 * app/app_procs.c (app_init): add extra NULL argument to call of
16367 * app/load_save.h: remove prototype.
16369 * app/load_save.c: remove diagram_data function here.
16371 * app/diagram.h: added prototype.
16373 * app/diagram.c (diagram_load): new function here, which uses import
16376 * plug-ins/dxf/dxf.c: register the import filter as well.
16378 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
16379 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
16381 * objects/standard/line.c: add start_point and end_point properties
16382 to standard line object.
16384 2000-05-21 James Henstridge <james@daa.com.au>
16386 * app/paginate_psprint.c: added missing include of locale.h.
16388 * objects/custom/custom_object.c (custom_draw): use fabs rather than
16389 abs for scaling factors.
16390 (custom_distance_from): same here.
16392 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
16394 2000-05-18 James Henstridge <james@daa.com.au>
16396 * po/POTFILES.in: updated POTFILES.in.
16398 * dia.spec: incremented version number in spec file.
16400 * NEWS: added (lots of) news items for the 0.85 release.
16402 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
16405 * configure.in: updated version number here.
16407 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
16409 2000-05-17 James Henstridge <james@daa.com.au>
16411 * app/app_procs.c (internal_plugin_init): register the native import
16414 * app/load_save.c (diagram_data_load, diagram_load): split this
16415 function into two -- one that does all the work on the DiagramData
16416 structure, and the other that provides compatibility with the old
16418 (dia_import_filter): use diagram_data_load to define an import
16421 * app/diagram.h (new_diagram): added const to prototype.
16423 * app/filedlg.c (file_open_callback): change to use new import filter
16426 * lib/filter.c: added import filter management functions.
16428 * lib/filter.h: added prototypes for import filter interface.
16430 * app/commands.c (help_about_callback): updated about dialog to
16431 contain a few more names.
16433 2000-05-16 James Henstridge <james@daa.com.au>
16435 * configure.in (Configuration): added a status message to the end of
16436 the configure script to give the user some idea of what was
16439 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
16441 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
16444 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
16447 * configure.in (AM_PATH_LIBART): use the check function provided
16448 with libart rather than our own code. It is more reliable, and
16449 it only requires that people who build out of CVS have libart.m4
16450 installed (not necessarily all of libart).
16451 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
16453 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
16455 * dia.desktop: Added Swedish translation.
16457 2000-05-09 James Henstridge <james@daa.com.au>
16459 * lib/dia_xml.c: you can't free a const pointer, so remove const
16460 from variable definitions.
16462 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
16463 initialised correctly.
16465 * app/render_svg.c (export_svg): set locale to C.
16467 * app/paginate_psprint.c (paginate_psprint): set locale to C.
16469 * app/render_eps.c (export_eps): set locale to C for EPS export.
16471 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
16472 (data_add_point): same here.
16473 (data_add_rectangle): same here.
16474 (data_real): use g_strtod to convert strings to real numbers, so that
16475 locales are taken into account.
16476 (data_point): same here.
16477 (data_rectangle): same here.
16479 * AUTHORS: added Henk and Jacek to authors file.
16481 Daniel Egger's code cleanups.
16483 * app/select.c (select_invert_callback): remove unused variable.
16485 * app/plugin-manager.c (get_plugin_manager): fix typo.
16487 * app/load_save.c (read_connections, write_objects):
16488 (write_connections): made some functions static.
16490 * app/interface.c (toolbox_delete, toolbox_destroy): made some
16493 * app/filedlg.c (file_export_callback): remove unused variable.
16495 * app/app_procs.c: various warning fixes.
16497 Integrating Jacek Pliszka's pstricks export filter.
16499 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
16501 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
16502 renderer (with a few small modifications by me).
16504 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
16506 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
16508 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
16511 * sheets/Makefile.am:
16512 * shapes/Makefile.am:
16513 * shapes/Civil/Makefile.am:
16514 * sheets/civil.sheet:
16516 Added civil/hydraulic/structural engineering objects from
16517 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
16519 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
16521 * objects/FS/flow-poly.c:
16522 * objects/FS/flow.c:
16523 Fix division by zero in point_normalize().
16524 Patch by David Thompson <dcthomp@mail.utexas.edu>
16526 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
16529 * lib/bezier_conn.c:
16530 * lib/connpoint_line.c:
16531 Added checks for zero-length lines before calls to point_normalize.
16533 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16535 * app/preferences.c (prefs_data): Changed
16536 reversed_dragging_intersects to not make the dialog ridiculously
16539 2000-04-22 James Henstridge <james@daa.com.au>
16541 Hans's win32 patches:
16543 * app/export_png.c: include message.h
16544 * app/interface.c: include dia_dirs.h
16545 * app/linewidth_area.c: check for rint
16546 * app/main.c: include interface.h
16547 * app/paginate_psprint.c: remove unused variable.
16548 * app/preferences.c: include message.h
16549 * app/render_svg.c: include stdlib.h
16550 * app/select.c: include object_ops.h
16551 * lib/dia_dirs.c: miscelaneous fixes for win32.
16552 * lib/dia_image.c: include string.h
16553 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16554 * lib/properties.c: include stdlib.h
16555 * lib/properties.h: define extra data for standard properties as
16556 static variables on win32 (to get around dynamic linker problems).
16557 * objects/standard/polygon.c: polygon_create_change missing return
16560 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
16562 * configure.in (ALL_LINGUAS): added Catalan
16564 2000-04-18 James Henstridge <james@daa.com.au>
16566 * objects/standard/bezier.c (bezierline_get_object_menu): add a
16567 separator to the object menu between the add/remove segment items
16568 and the corner type items.
16569 (bezierline_get_object_menu): add code to disable the menu item for
16570 the current corner type. Really just a cosmetic change.
16572 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16573 a NULL for the label or with no associated callback.
16575 * objects/standard/bezier.c (bezierline_menu_items): use the
16576 enumeration values rather than numeric values for the corner types.
16578 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16579 structure, and add code to handle it. Also, don't save the corner
16580 types inline in the bez_points node. The way it is conditionally
16581 including the element just feels like it will break.
16583 * lib/geometry.h (BezPoint): removed the corner_type stuff from
16584 BezPoint. The corner type stuff is a user interface level idea rather
16585 than something required by the renderer, so should be taken care of
16586 at the object level.
16588 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16590 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16591 checks. Weren't able to reproduce original bug, tough.
16593 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
16595 * sheets/Electric.sheet:
16596 * sheets/Contact.sheet:
16597 * sheets/Pneumatic.sheet:
16598 * sheets/Circuit.sheet: sprayed some <br/>'s around.
16599 (added a few French translations in the last file)
16601 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16604 * lib/bezier_conn.h:
16605 * objects/standard/bezier.c:
16606 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16607 bezier points. Only one minor problem known: Menus are active
16608 for endpoints minor handles.
16609 11:28: Save and load now works, too.
16610 (bezierconn_closest_major_handle): 12:03: New function to get the
16611 non-control point handle associated with the nearest control
16613 Also fixed the menu activation problem, and made remove_segment
16614 not remove the endpoint.
16616 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16618 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16621 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
16623 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16624 <sys/stat.h>. OS/2 patch.
16626 2000-04-15 James Henstridge <james@daa.com.au>
16628 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16629 Thompson's patch that adds undo support to the function structure
16632 2000-04-14 James Henstridge <james@daa.com.au>
16634 * objects/custom/custom_object.c (custom_distance_from): new
16635 implementation of distance algorithm that actually takes the
16636 display list into account when calculating the distance. Much nicer
16637 than a simple bounding box.
16639 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
16641 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16643 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16645 * objects/standard/polygon.c: Start of polygons own changes (for
16646 connectionpoints). Need to do seperate changes in polyshape, too,
16647 rather than reuse the bezier changes.
16649 2000-04-13 James Henstridge <james@daa.com.au>
16651 * lib/dia_image.c (dia_image_draw): use the new enumeration values
16652 from after the gdk-pixbuf cleanup.
16654 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16655 on for loop. Last set of coefficients were not beeing calculated,
16656 which caused a bit of breakage.
16658 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16659 functions in geometry.c for calculating the closest segment.
16660 (bezierconn_distance_from): use distance_bez_line_point to calculate
16663 * lib/geometry.c (distance_bez_line_point): new function to calculate
16664 the distance from an open bezier line to a point.
16665 (distance_bez_shape_point): new function to calculate the distance
16666 from a closed bezier shape.
16667 (distance_ellipse_point): new function to calculate the distance from
16668 a filled ellipse to a point.
16670 * lib/geometry.h (BezPoint): moved this structure here from render.h
16672 2000-04-12 James Henstridge <james@daa.com.au>
16674 * lib/geometry.c (distance_bez_seg_point): new function to calculate
16675 the distance from a bezier segment.
16677 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16678 to calculate the distance from the object.
16680 * lib/geometry.c (distance_polygon_point): function for calculating
16681 the distance from a polygon to a point.
16683 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
16686 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
16687 breaks can be inserted in the tool box.
16689 * doc/sheet.dtd: updated the DTD
16690 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16692 2000-04-12 James Henstridge <james@daa.com.au>
16694 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16695 macro if the dialog is a GtkDialog :(
16697 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16699 * objects/standard/polygon.c: Connectionpoints now properly
16700 managed in a GList. As far as I can tell, this will not dieturb
16701 the order (but I have the nagging doubt...)
16703 * lib/polyshape.c: No longer knows about connectionpoints.
16705 2000-04-11 James Henstridge <james@daa.com.au>
16707 * app/Makefile.am: fix makefile for bonobo build.
16709 * configure.in: fix checks for bonobo.
16711 * app/menus.c: added entries for the plugin manager.
16713 * app/Makefile.am (dia_core_files): added plugin manager to files
16716 * app/plugin-manager.[ch]: the plugin manager dialog.
16718 * app/display.c (display_update_menu_state): set the antialiased
16719 menu entry to the correct value.
16721 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
16723 * objects/custom/custom_object.c: not all renderers like ellipses with
16724 negative dimensions. This could cause ellipses to disappear when using
16725 the flip_h and flip_v functions.
16727 * samples/grafcet.dia: fixed speling and correctness.
16729 2000-04-11 James Henstridge <james@daa.com.au>
16731 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16732 exposed the dia_plugin_load and dia_plugin_unload functions.
16734 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16735 already created PluginInfo structure.
16737 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16740 * lib/sheet.c: fix up call to dia_config_filename.
16742 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16743 file. This would save information such as which plugins not to
16744 load during startup.
16746 2000-04-09 James Henstridge <james@daa.com.au>
16748 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16750 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
16752 * lib/plug-ins.c (dia_register_plugins):
16753 Don't free the value returned from g_getenv.
16755 2000-04-09 Anders Carlsson <andersca@gnu.org>
16757 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16759 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16761 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
16762 right to left, select objects that intersect the rubberbanding rectangle
16763 instead of selecting objects that are in the rectangle.
16765 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16767 * lib/diagramdata.h: Likewise.
16770 2000-04-09 James Henstridge <james@daa.com.au>
16772 * lib/plug-ins.[ch]: add copyright messages to files.
16774 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16777 * objects/sybase/sybase.c (dia_plugin_init):
16778 * objects/network/network.c (dia_plugin_init):
16779 * objects/flowchart/flowchart.c (dia_plugin_init):
16780 * objects/custom/custom.c (dia_plugin_init):
16781 * objects/chronogram/chronogram.c (dia_plugin_init):
16782 * objects/UML/uml.c (dia_plugin_init):
16783 * objects/SADT/sadt.c (dia_plugin_init):
16784 * objects/GRAFCET/grafcet.c (dia_plugin_init):
16785 * objects/FS/fs.c (dia_plugin_init):
16786 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16789 * objects/standard/standard.c (dia_plugin_init): change over to new
16792 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16793 the version checker for plugins.
16795 * app/app_procs.c: remove plugin loading code from here, and use
16796 code from plug-ins.[ch]. Also move registration of internal
16797 objects/filters to a `builtin' plugin.
16799 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16801 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16803 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16804 defined variable in EXTRA_DIST.
16806 * app/preferences.h: removed dia_config_filename from header.
16808 * app/preferences.c: removed dia_config_filename function.
16810 * lib/dia_dirs.c (dia_config_filename): moved function over to this
16811 file. Also changed implementation slightly so that it should work
16812 on the win32 port correctly (and use NT home directories).
16814 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16815 it should have been.
16817 * lib/plug-ins.[ch]: new plugin loading code.
16819 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16821 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16823 * lib/polyshape.c: Fix closest segment finding, exposes deeper
16824 bugs in adding corners to 'wraparound' segment.
16826 * objects/standard/polygon.c: Added connection points (fixed so
16827 far), set menu sensitivity.
16829 * lib/polyshape.c: Changed to box-style handles, fixed for start
16830 and ends not being special, added initial connections,
16832 * lib/dummy_dep.h: Added polyshape (gotcha!)
16834 * objects/standard/pixmaps/ellipse.xpm:
16835 * objects/standard/pixmaps/box.xpm:
16836 Filled element pixmaps with white.
16839 * objects/standard/polygon.c:
16841 * objects/standard/standard.c:
16842 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
16843 * lib/Makefile.am (libdia_a_SOURCES):
16845 * app/interface.c (tool_data):
16846 Added Standard/Polygon object and PolyShape lib object. Still
16847 needs inside grab and connection points.
16849 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16852 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16855 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16856 if (argv) outside ifdefs.
16858 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16860 * objects/standard/image.c (image_set_props):
16861 Aspect ratio is back in town.
16863 * app/Makefile.am (dia_LDADD):
16866 Check for gdk_pixbuf (by default disabled, for now)
16868 * app/render_eps.c (draw_image):
16869 * app/render_libart.c (draw_image):
16870 * app/render_gnomeprint.c (draw_image):
16871 Support for alpha mask in rendering. Color postscript, too.
16875 Support for gdk_pixbuf and proper masking for exports.
16877 2000-04-01 Kjartan Maraas <kmaraas@online.no>
16879 * sheets/*.sheets: Updated Norwegian translations.
16881 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16883 * lib/text.c (text_insert_char):
16884 * lib/render_store.c (add_data):
16885 Made realloc double the alloced space rather than add
16886 a fixed amount, to reduce memory stress.
16888 * app/select.c: Added new select method 'Transitive'
16889 that select every reachable (by connections) object.
16891 2000-03-27 Kjartan Maraas <kmaraas@online.no>
16893 * dia.desktop: Added Norwegian translation.
16895 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
16897 * app/render_eps.c:
16898 * app/render_svg.c:
16899 Don't dereference NULL pointer if the renderer
16900 couldn't open the file. Fix by Lars Clausen.
16901 Bug reported by Martin Chisholm <b1mt@unb.ca>
16903 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
16907 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16909 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
16911 * app/dia.gnorba (location_info):
16912 Changed to correct executable name.
16914 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
16917 Don't do any argument parsing or initialization
16920 * app/dia_embedd.c:
16921 Call init_server_factroy before app_init.
16922 Call app_init with argv==NULL
16923 Now we don't get any critical error on startup.
16926 Add Electric and Pneumatic to makefile list.
16928 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
16930 * shapes/Electric/*:
16931 * sheets/Electric.sheet:
16932 Add some Electric circuit shapes.
16934 * shapes/Pneumatic/*:
16935 * sheets/Pneumatic.sheet:
16936 Add some Pneumatic & Hydraulic circuit shapes
16937 (both sheets are still incomplete, though feature enough
16938 things for basic circuits).
16940 * shapes/Contact/l_*.(xpm|shape):
16941 * sheets/Contact.sheet
16942 * shapes/Contact/Makefile.am
16943 made the older electric circuit shapes in Contact obsolete (disabled
16944 them in the sheet, made that sheet Ladder only). Fixed the makefile
16945 for forgotten items.
16947 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
16950 Add support for Dia bonobo component.
16951 Currently a bit raw, so it's commented out.
16953 * app/dia_embedd.c:
16955 New files for embedding dia.
16956 The menu disabling hack is a bit gross. Esp. for GNOME.
16959 Add new function app_is_embedded();
16962 Don't destroy diagram when last display is destroyed if embedded.
16965 Change initialization of display so it works with embedding.
16968 Clarify comment about display destruction.
16970 * app/interface.[ch]:
16971 Added top_level_window argument to create_display_shell.
16972 Don't open a top-level window if embedding.
16973 Don't quit app if trying to close toolbox window when embedding.
16974 Add toolbox_show() and toolbox_hide().
16977 Added app_is_embedded() function (just returns false).
16978 Added toolbox_show() call in main().
16981 Added code for getting toolbox menus. This is used to
16982 hide some menu items when running embedded.
16985 Include sheet.h to remove warning.
16987 * objects/UML/association.c:
16988 Clarify association direction text.
16990 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
16993 Fixed man page so whatis parsing works.
16995 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
16997 * app/render_libart.c (new_libart_renderer):
16998 Fix from segg <segg@infonet.ca> to compile without libart.
16999 I forgot to change the stub for new_libart_renderer when doing
17000 the interactive renderer stuff for libart.
17002 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
17004 * dia.desktop: Added Irish translation.
17006 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
17008 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
17010 * app/load_save.c (fchmod): OS/2 defines only.
17012 2000-03-07 James Henstridge <james@daa.com.au>
17014 * lib/properties.c (prop_get_widget): set the position in the option
17017 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
17020 * app/export_png.c:
17021 * app/render_libart.[ch]:
17022 Don't export png:s with an interactive libart renderer.
17024 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
17026 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
17028 2000-03-02 James Henstridge <james@daa.com.au>
17030 * dia.spec (%build): unset LINGUAS before running configure. This
17031 ensures that all translations get included in the RPM.
17033 * lib/properties.c (object_create_props_dialog): put in a check for
17034 a NULL return from the describe_props() object method.
17035 (prop_desc_lists_union): make sure that the returned array is not
17037 (prop_desc_lists_intersection): same here.
17039 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
17041 * objects/ER/Makefile.am:
17042 * objects/FS/Makefile.am:
17043 * objects/UML/Makefile.am:
17044 Don't link object libs with gtk.
17046 2000-02-29 James Henstridge <james@daa.com.au>
17048 * app/preferences.c (prefs_save): check to see if the file could
17049 be opened before writing the prefs.
17051 * app/disp_callbacks.c (popup_object_menu): pass the button event
17052 to gtk_menu_popup. This allows you to click and release to open
17054 (ddisplay_canvas_events): same here.
17055 (create_object_menu): set the object type menu item in the object
17056 menu to be insensitive.
17058 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
17059 as we are now requiring a new version of libxml.
17061 * dia.spec: updated version number. Added requirement for
17064 * configure.in: incremented version number to 0.84.
17065 Added check for libxml >= 1.8.5. This will prevent some of the
17066 problems people have had with broken libxml versions.
17068 * NEWS: added news items.
17070 * app/interface.c (create_color_area): removed call to realize parent
17071 widget. Segg <segg@infonet.ca> reported that it caused a warning,
17072 but I haven't seen it on my copy of dia.
17074 2000-02-28 James Henstridge <james@daa.com.au>
17076 * app/export_png.c: added copyright notice, and made the band height
17079 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
17081 * lib/font.c (suck_font):
17082 Fixed off-by one bug in font pixmap height.
17083 Fixes the problem with garbage at the bottom of some text in aa mode
17084 and in png exported files.
17086 2000-02-27 James Henstridge <james@daa.com.au>
17088 * app/app_procs.c: add the png export filter if it was compiled in.
17090 * app/export_png.c (export_png): new PNG export filter. This requires
17091 the libart renderer to work as it needs a renderer that renders to a
17094 * configure.in: add check for libpng.
17096 * lib/message.c (message_internal): use a GNOME dialog here as well.
17098 * app/display.c (ddisplay_close): use a GNOME dialog here.
17100 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
17101 when exporting to EPS. This is because some people said the EPS
17102 output was too large
17104 2000-02-26 James Henstridge <james@daa.com.au>
17106 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
17109 * app/app_procs.c (app_exit): use a GNOME dialog here.
17111 * app/preferences.c (prefs_create_dialog): if GNOME support is
17112 enabled, show a GNOME dialog.
17114 * app/grid.c (grid_draw): use preferences when drawing page break
17117 * app/preferences.c: add page break preferences to dialog.
17119 * app/preferences.h: added page break preferences.
17121 2000-02-25 James Henstridge <james@daa.com.au>
17123 * sheets/UML.sheet: added new objects.
17125 * objects/UML/uml.c: link in the two new objects.
17127 * objects/UML/node.c:
17128 * objects/UML/branch.c: new UML objects from Stfan Seefeld
17129 <seefelds@magellan.umontreal.ca>.
17131 2000-02-24 James Henstridge <james@daa.com.au>
17133 * objects/custom/custom_object.c: converted to use the properties
17134 interface. In the future, it would be nice to add support for
17135 defining custom properties for custom objects, but that can wait.
17137 2000-02-22 James Henstridge <james@daa.com.au>
17139 * sheets/Circuit.sheet: added new circuit shapes to sheet.
17141 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
17142 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
17143 and adds a few new features.
17145 2000-02-21 Daniel Egger <egger@suse.de>
17147 * sheets/*.sheets: Added German translations and made some
17148 corrections to the others.
17150 2000-02-21 James Henstridge <james@daa.com.au>
17152 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
17154 * shapes/Circuit/...: added new shapes from Erik Janssens.
17156 2000-02-20 James Henstridge <james@daa.com.au>
17158 * app/interface.c (create_color_area): realize the parent window
17161 * objects/standard/image.c: properties patch for standard image
17162 object, from Lars Clausen.
17164 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
17166 * lib/properties.h (PropType): added file property type.
17168 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
17171 * app/interface.c: use wrap box for toolbox.
17173 * app/Makefile.am: added new files.
17175 * app/gtk*wrapbox.[ch]: added wrap box widget.
17177 2000-02-19 James Henstridge <james@daa.com.au>
17179 * sheets/network.sheet: added extra shapes to networks sheet.
17181 * configure.in (AC_OUTPUT): added shapes/network/Makefile
17183 * shapes/network/*: added shapes that were posted to the list a while
17186 * shapes/Makefile.am (SUBDIRS): added network subdirectory
17188 * app/menus.c (toolbox_menu_items): don't right justify help menu for
17189 gtk+ version of menus.
17191 * app/properties.c (create_dialog): use a GnomeDialog if we happen
17194 2000-02-18 James Henstridge <james@daa.com.au>
17196 * objects/flowchart/box.c: set extra data for corner radius and text
17197 padding properties.
17199 * objects/standard/box.c: set extra data for corner radius property.
17201 * lib/properties.h: set extra data in some standard properties.
17203 * lib/properties.c (prop_get_widget): look at the extra data for
17204 int, real and enum property types. They now use GtkSpinButton and
17205 GtkOptionMenu respectively.
17207 * lib/properties.h: extra data members for creating property setting
17210 2000-02-17 James Henstridge <james@daa.com.au>
17212 * objects/flowchart/box.c: reverted load/save functions back to
17213 previous implementations. Made box use standard property names.
17215 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
17217 * app/grid.c: add more digits to the grid edit dialog. This patch
17218 was also from Lars Clausen.
17220 * objects/standard/zigzagline.c:
17221 * objects/standard/textobj.c:
17222 * objects/standard/polyline.c:
17223 * objects/standard/line.c:
17224 * objects/standard/ellipse.c:
17225 * objects/standard/box.c:
17226 * objects/standard/bezier.c:
17227 * objects/standard/arc.c: patches to add properties code to standard
17228 objects. Based on patches from Lars Clausen. I have also removed
17229 some dead code from the files.
17231 * lib/properties.h (PROP_STD_*): define a number of standard
17232 properties. Where appropriate, objects should include these
17233 properties in their PropDescription list. This way, the intersection
17234 of properties of two different shapes will be greater.
17236 2000-02-14 James Henstridge <james@daa.com.au>
17238 * objects/flowchart/box.c (box_load, box_save): use property save
17239 routines. Make sure that any props not handled by object_load_props
17240 are loaded before calling object_load_props, or we get errors because
17241 update_data is called.
17243 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
17244 error that could cause properties to be loaded incorrectly.
17245 (object_set_props_from_offsets): similar here.
17247 * lib/properties.[ch] (prop_{load,save}): functions for loading
17248 or saving a property in Dia's XML file format.
17249 (object_{load,save}_props): load or save some properties of an
17250 object. These functions should help simplify the load/save methods
17251 of objects that implement the properties interface.
17253 2000-02-13 James Henstridge <james@daa.com.au>
17255 * objects/flowchart/box.c: use offset code to simplify property
17258 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
17260 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
17262 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
17264 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
17266 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
17269 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
17272 Add the custom object to DIA_LIB_PATH in run_dia.sh
17274 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
17276 * sheets/Circuit.sheet:
17277 * shapes/l_sout* (NEW):
17278 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
17279 variants of simple, inverted, set and reset outputs.
17280 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
17281 probably a split of Contact and Ladder sheets. And then a major
17282 revamping of the Contact sheet.
17284 2000-02-10 James Henstridge <james@daa.com.au>
17286 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
17288 * app/app_procs.c (register_all_objects): don't explicitely
17289 register the custom objects library -- let it be loaded by the
17290 normal plugin loading methods.
17292 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
17294 * objects/custom/Makefile.am: build libcustom_objects as a shared
17297 * objects/custom/shape_info.[ch]: don't read the description field
17298 of custom shapes. It makes more sense to have these in the sheet
17299 file to localise the parts of dia that translators have to deal
17302 * objects/custom/custom_object.c (custom_object_new): do not
17303 create the sheet object for the new custom shape -- this is
17304 handled by the custom sheet code.
17306 * objects/custom/custom.c: change over to being a normal plug-in
17307 rather than being linked with the main dia executable.
17309 2000-02-09 James Henstridge <james@daa.com.au>
17311 * sheets/Circuit.sheet:
17312 * sheets/Flowchart.sheet:
17313 * sheets/Contact.sheet: fixed up sheets.
17315 * objects/custom/custom_object.c (custom_object_new): set the
17316 extra ObjectType fields.
17318 * lib/sheet.c: use extra ObjectType fields when creating sheet
17319 objects. Give a warning if <shape> tags are found in a sheet
17320 file. Now the custom sheet code does not know about custom
17321 shapes -- they look like any other object type.
17323 * lib/object.h (ObjectType): added extra members
17325 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
17327 * app/linewidth_area.c:
17328 Added code to set arbitrary line width.
17329 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
17331 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
17333 * app/linewidth_area.c:
17335 Add support for font-sucking.
17336 Implementation borrowed from gnome-canvas.
17338 * app/render_libart.[ch]:
17339 Implement text rendering.
17341 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
17343 * app/properties.c (create_dialog):
17344 ref and sink no_properties_dialog.
17346 2000-02-07 James Henstridge <james@daa.com.au>
17348 * app/group.c (group_describe_props): new function. Return the
17349 intersection of the properties of the contained objects that
17350 implement the describe_props interface.
17351 (group_get_props): implement by iterating through contained objects
17352 and calling their get_props method until all properties have been
17353 set. Maybe this should go through all objects all the time??
17354 (group_set_props): implement by calling set_props method on all
17356 (group_ops): use standard props dialog creation routines.
17358 * lib/properties.c (prop_desc_lists_intersection): fix implementation
17359 of intersection -- I was using i++ instead of i-- in a for loop :(
17361 * objects/custom/custom.c (custom_register_objects): fix usage
17362 of dia_get_data_directory again.
17364 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
17365 actually read the sheets.
17367 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
17369 Win32 port by Hans Breuer <Hans@Breuer.org>
17372 Remove DATADIR and LIBDIR defines.
17375 Add dia_dirs.c and dia_dirs.h
17376 Added DATADIR and LIBDIR defines.
17378 * lib/dia_dirs.[ch]:
17379 New files for handling special directories.
17384 * objects/custom/custom.c:
17385 Fix warnings. Use directory functions.
17388 Add prototype for diagram_redraw_all.
17390 * app/diaunitspinner.c:
17393 * app/preferences.c:
17397 Win32 doesn't have mkstemp and fchmod.
17399 * app/paginate_psprint.c:
17400 Win32 calls popen _popen and pclose _pclose.
17403 Win32 calls finite _finite.
17406 Win32 needs to dllexport the color vars.
17408 * objects/GRAFCET/step.c:
17409 * objects/chronogram/chronoref.c:
17410 snprintf -> g_snprintf
17412 2000-02-05 James Henstridge <james@daa.com.au>
17414 * lib/properties.c: more fixes so that it doesn't crash when using
17415 properties. The undo/redo stuff also works!!
17417 * objects/flowchart/box.c (box_{describe, get, set}_props): test
17418 object where I have implemented the new properties interface
17419 complete with automatic properties dialog generation.
17421 * lib/properties.c (object_apply_props): fixed stupid error when
17422 creating the old_props array. Also, it no longer frees the props
17423 array -- you will have to do that yourself.
17425 2000-02-04 James Henstridge <james@daa.com.au>
17427 * app/properties.c (properties_apply): pass object_part to
17430 * lib/object.h (ApplyPropertiesFunc): added widget argument.
17432 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
17433 created this way as well.
17435 * objects/*/*.c: ref and sink the properties dialog window for each
17436 widget. It can't rely on ref count being incremented by
17437 properties_show anymore.
17439 * app/properties.c (properties_show): don't ref the widget before
17440 removing it, or its ref count will increase each time you open the
17441 properties dialog. Don't unparent the widget, as container_remove
17444 * lib/object.h: fixed up prototypes for new object methods.
17446 * lib/properties.[ch]: added functions for automatically creating
17447 a properties dialog from the output of describe_props, get_props and
17449 (object_apply_props): apply properties and return an ObjectChange
17450 structure that can be used for undo.
17452 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
17454 * objects/GRAFCET/transition.c: minor leak plugged.
17456 * sheets/GRAFCET.sheet:
17457 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
17458 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
17460 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
17461 new ones (for condition.c).
17462 * objects/GRAFCET/action.c: added connection points for the conditions.
17463 * samples/grafcet.dia: updated the sample to improve conformance to
17464 IEC 848 and take advantage of dia's new features.
17466 * lib/geometry.h: (point_get_normed) fixed a typo.
17468 2000-02-02 James Henstridge <james@daa.com.au>
17470 * lib/object.h: added object functions describe_props, get_props and
17471 set_props. Do type definitions so that object.h doesn't need to
17472 include properties.h, since properties.h includes object.h.
17474 * lib/properties.[ch]: more hacking.
17476 * po/de.po: updated po file.
17478 2000-01-30 James Henstridge <james@daa.com.au>
17480 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
17481 check to see if the C compiler accepts the flag beforehand.
17483 * lib/properties.[ch]: start of properties code.
17485 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
17487 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
17489 * sheets/GRAFCET.sheet:
17490 * sheets/GRAFCET/etapemc.xpm: (NEW)
17491 * sheets/GRAFCET/etapesp.xpm: (NEW)
17492 * objects/GRAFCET/step.c: Added the macro and
17493 sub-program call step types.
17495 * objects/GRAFCET/receptivity.[ch]: renamed to
17496 objects/GRAFCET/boolequation.[ch].
17497 * objects/GRAFCET/transition.c: changed (Receptivity *) to
17500 * lib/connpoint_line.[ch]:
17501 * objects/chronogram/chronoline.c:
17502 * objects/chronogram/chronoref.c:
17503 * objects/GRAFCET/vergent.c:
17504 * objects/standard/line.c:
17505 * objects/SADT/box.c: Minor CPL interface changes, factored out the
17506 point count adjustment code into the CPL object.
17508 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
17510 * app/render_libart.c:
17511 Added support for images and bezier curves.
17512 Only text/fonts missing now.
17514 * app/render_gdk.c:
17515 Removed old erronous comment.
17517 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
17519 * objects/chronogram/chronoline_event.c: removed references to
17520 lround(). Please don't insist, I'm already red of shame.
17522 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
17524 * app/render_libart.[ch]:
17526 Non-finished libart renderer.
17529 Added HAVE_LIBART flag
17535 Call gdk_rbg_init().
17537 * app/connectionpoint_ops.c:
17538 * app/disp_callbacks.c:
17540 * app/handle_ops.c:
17542 * app/modify_tool.c:
17543 Change ddisp->renderer type from RendererGdk * to Renderer *
17544 Draw zoom and select rects in ddisp->canvas->window instead
17545 of ddisp->renderer->renderer->pixmap.
17547 * app/display.[ch]:
17548 Add aa_renderer to DDisplay, and support for it.
17549 New function ddisplay_set_renderer() for changing renderer.
17550 Add ddisplay_transform_coords_double() function, used by aa renderer.
17551 Change ddisp->renderer type from RendererGdk * to Renderer *
17554 Add antialias to menu.
17556 * app/commands.[ch]:
17557 add view_aa_callback function
17558 Change ddisp->renderer type from RendererGdk * to Renderer *
17560 * lib/geometry.[ch]:
17561 Added IntRectangle and int_rectangle_union.
17563 2000-01-28 James Henstridge <james@daa.com.au>
17565 * app/commands.h: removed prototypes.
17567 * app/commands.c: removed the functions that have been moved to
17570 * app/filedlg.h: added new prototypes.
17572 * app/filedlg.c (file_open_callback): move open dialog to this
17573 file. This implementation should remember the current directory
17574 between file loads.
17575 (file_save_as_callback): moved this dialog as well.
17576 (file_save_callback): moved this function here.
17578 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17579 align page boundaries to the origin.
17581 * app/diagram.c (diagram_update_extents): redraw the diagram if the
17582 scaling factor changes while updating the extents. This is so the
17583 page breaks get redrawn correctly.
17585 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17588 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17589 For normal mode, use (0,0) as the origin. For `fit to' mode, use
17590 the corner of the bounding box.
17592 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17593 into page setup dialog.
17594 (pagesetup_apply): apply new `fit to' attributes to the diagram.
17596 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17597 (diagram_data_save): save `fit to' data.
17599 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17600 (data_update_extents): when in `fit to' mode, update scale factor
17601 when we update the extents.
17603 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17606 * .../.cvsignore: added some cvsignore files to quieten cvs.
17608 * app/pagesetup.c (pagesetup_changed): added code to change the
17609 scaling/fit to values as you change the options in the page setup
17610 dialog. I haven't added code so that the fit to options are saved
17613 * app/diapagelayout.[ch]: changed the scaling portion of the widget
17614 to make it easier to set a `fit to' style scaling factor.
17616 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17617 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17618 but connpoint_line-based, so that there's a connection point at the
17619 middle of each segment. Currently only the SADT arrow uses this.
17621 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17623 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17624 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
17625 saving and editing of properties (and default properties).
17626 See the new objects (GRAFCET, SADT, chonograms) for examples.
17627 For already too hairy stuff, see objects/chronogram/chronoline.c.
17629 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
17630 evenly spaced connection points, which the user can add or remove at
17631 will. An object can own several connection point lines. See the SADT
17632 Box, or the GRAFCET vergents for examples.
17634 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
17635 quiet about unused stuff.
17637 * objects/GRAFCET (NEW):
17638 * samples/grafcet.dia (NEW):
17639 Added support for GRAFCET charts.
17641 * objects/chronogram (NEW):
17642 * samples/chronograms.dia (NEW):
17643 Added support for chronograms (feature requested by Ronald L. Chichest;
17644 I found I'd use it often, too).
17646 * objects/standard/line.c: Replace the middle connectionpoint by
17647 a whole connection point line, which defaults to one point (hint,
17648 hint). New Line object menu to take advantage of this.
17649 "Bothwards" compatibility is preserved (although you may loose
17650 connections if you load a newer file in a older dia).
17652 * app/lineprops_area.c:
17654 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
17655 (feature requested by Benjamin Kahn).
17656 Merged in Steffen Macke's slashed arrow head type.
17658 * app/Makefile.am (app/run_dia.sh actually):
17659 Added $DEBUGGER in front of dia's invocation, so that
17660 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17661 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
17662 "EFENCE=-lefence" to link with Electric Fence.
17664 * configure.in: Made gcc do more aggressive optimisations on i386, and
17667 2000-01-24 James Henstridge <james@daa.com.au>
17669 * lib/geometry.[ch]: added inline versions of functions. Used
17670 glib's G_INLINE_FUNC stuff, so it should still work on systems
17671 without inline funcs.
17673 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17674 it outputs the correct element id for the ellipse objects.
17676 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17678 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17679 object_add_handle_at. Message typo fixed.
17681 * lib/sheet.c (load_register_sheet):
17682 potential bug fixed (warning hunt).
17684 * objects/custom/custom.c (custom_object_load): disabled an assertion
17685 which made dia abort upon failure to load a shape file. Fixed a
17688 * objects/custom/shape_info.c (load_shape_info): Made the custom
17689 shape load code ignore XML comments between <?xml ...?> and the
17690 root object (mostly useful to put the emacs magic comments).
17692 * app/load_save.c: Made dia do backup copies of files when saving,
17693 and complain in case of failure.
17695 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17697 * AUTHORS: fixed my address (ISP thought it was a great idea to change
17702 * shapes/Contact/*:
17703 * sheets/Contact.sheet:
17704 * sheets/Makefile.am:
17705 Added support for Contact and LADDER charts.
17707 * dia.desktop: Added a French translation.
17709 2000-01-23 James Henstridge <james@daa.com.au>
17711 * app/commands.c (help_about_callback): don't die if can't load
17714 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17715 out NaN's when performing bezier curve subdivision.
17717 * objects/custom/custom_object.c: initialise memory of Custom structs
17720 * app/render_svg.c (draw_image): added image support to the XML
17721 output filter. The image is just referenced, rather than being
17722 included inline, so if you copy the SVG file somewhere else, you
17723 may need to move the images or fix up the links.
17725 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17726 so the text is not just displayed in black all the time.
17728 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
17730 * configure.in: fixed libpopt test so we wont try to build with
17733 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
17735 * configure.in: Added "uk" to ALL_LINGUAS.
17737 1999-12-24 James Henstridge <james@daa.com.au>
17739 * po/ru.po: updated russian translation from Valek Filippov.
17741 * app/render_svg.c (new_svg_renderer): make output use 19991203
17742 version of SVG DTD. Use viewBox to set the extents of the view.
17744 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
17745 ftp.gnome.org as the download.
17747 * TODO (TODO): weeded out completed todo items and added a few extra.
17749 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17751 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
17752 be good to get rid of the object/shape distinction and separate
17753 the custom shape code out from the main application.
17755 * objects/custom/README, diagram.dtd: moved to new doc directory.
17756 Renamed the custom shapes README to custom-shapes. Also updated
17757 custom shape docs a bit and removed the section on sheet files, as
17758 that has changed a bit.
17760 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17761 of the image data is larger than the maximum cell array. I should
17762 add code to break scan lines down further in this case, but for now
17763 an error message is better than an infinite loop.
17765 * app/filedlg.c (file_export_ok_callback): show a dialog if we
17766 couldn't determine the export filter to use.
17768 * app/commands.c (help_about_callback): fixed up about box logo
17769 expose bug. Now just use a GtkPixmap widget rather than a
17770 GtkDrawingArea and calling gdk_imlib_paste_image.
17772 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17773 because automake does not always get things right.
17775 * configure.in: updated version number to 0.83.
17777 * app/preferences.c (prefs_save):
17778 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17779 for fopen. Text is the default file mode anyway.
17781 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
17782 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
17783 * app/load_save.c (write_objects, write_connections):
17784 * app/filedlg.c (file_export_ok_callback):
17785 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
17786 * lib/dia_xml.c (data_add_point, data_add_rectangle):
17787 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17788 snprintf to calls to g_snprintf.
17790 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17791 as the picture name.
17793 1999-12-23 James Henstridge <james@daa.com.au>
17795 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17796 negative numbers. This fixes the upside down text problem I was
17798 (draw_image): implemented the image code. It will try to split the
17799 image data up into bands if it is too big to fit into a single
17800 cgm cell array element. It will have problems if you try to insert
17801 an image wider than about 10,000 pixels though.
17803 * Makefile.am: use gnomedatadir for the files that need to be
17804 installed in gnome's datadir. This is mainly to help people doing
17805 packages for weird setups.
17807 1999-12-22 James Henstridge <james@daa.com.au>
17809 * plug-ins/cgm/cgm.c: added support for text. Now only images and
17810 beziers are left to do. The text seems to be the wrong way up
17811 still. This is probably a problem with character orientation
17812 element, but I have used what the settings given in the standard.
17813 Other than this, the CGMs dia produces are readable (and displayable)
17814 by ralcgm and corel draw.
17815 (draw_string): subtract from the X coord rather than the Y coord for
17816 center and right aligned text.
17818 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
17819 the size of a real number, and changed name of write_double to
17820 write_real. Consider changing to fixed real encoding. Also, now
17821 all element headers are correct. Once the real number encoding is
17822 fixed, only text, beziers and images are left to do.
17824 1999-12-21 James Henstridge <james@daa.com.au>
17826 * Makefile.am (SUBDIRS): recurse into plug-ins.
17828 * configure.in: add plug-ins directory makefiles to list.
17830 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
17831 not done yet. Also, the output files are not quite correct.
17833 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17834 font. It doesn't work if you do.
17836 1999-12-20 James Henstridge <james@daa.com.au>
17838 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17839 export the files. Instead, use filter_guess_export_filter to
17840 guess the correct format to save in and use the appropriate filter.
17841 It defaults to postscript for compatibility.
17843 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17846 * app/commands.[ch]: removed export to eps functions.
17848 * app/menus.c: removed export to eps menu items.
17850 * app/app_procs.c: register new export filters.
17852 * app/load_save.[ch]: define dia native export filter.
17854 * app/render_eps.[ch]: define eps export filter.
17856 * lib/filter.h: added diafilename argument to the DiaExportFunc
17857 prototype. This is useful for putting the source of the diagram
17858 into the output file for instance.
17860 * app/app_procs.c (app_init): register the SVG export filter. Have
17861 to get EPS code converted to this API, and maybe also allow saving in
17862 DIA's native format from the export dialog. In fact, it is now
17863 possible to load an export filter from a shared library and it will
17864 integrate into the interface correctly.
17866 * app/menus.c: removed references to the SVG renderer.
17868 * app/commands.[ch]: removed svg stuff.
17870 * app/diagram.[ch]: removed diagram_export_to_svg function.
17872 * app/render_svg.[ch]: added a DiaExportFilter structure for this
17875 * app/filedlg.[ch]: code for the new export diagram dialog. Will
17876 probably move the open/save dialogs to this file as well.
17878 1999-12-19 James Henstridge <james@daa.com.au>
17880 * lib/filter.[ch]: start of interface for generalised handling of
17881 filters. I have only done code for export filters so far. I still
17882 need to do the gui for this, and convert the current SVG and EPS
17883 filters to the new API.
17885 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
17886 weren't setting the last handle correctly. It was actually assigning
17887 to the wrong position in the handles array, so the last handle was
17888 left as NULL, which caused the segfault.
17890 * objects/standard/image.c (image_copy): modified routine so that
17891 it just adds a reference to the DiaImage structure in the new image
17892 object. This seems to have cleared up the problems with copying
17895 * dia.spec: spec file additions from John Gotts.
17897 1999-12-12 James Henstridge <james@daa.com.au>
17899 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
17900 has not been released yet though.
17902 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17905 The following based on a patch from Lars Clausen:
17907 * objects/standard/bezier.c (bezierline_move_handle): when performing
17908 the initial drag of the bezierline, move the control points to keep
17911 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17912 make the new control points a bit closer to the major point.
17914 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17915 as the reason for the move.
17916 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17919 * lib/handle.h: new handle move reasons.
17921 1999-12-09 James Henstridge <james@daa.com.au>
17923 * dia.spec: include the new files in RPMs.
17925 * Makefile.am: install these new files.
17927 * dia.keys.in: file describing actions and icon for dia diagrams for
17928 use in the gnome file manager.
17930 * dia.mime: a file defining the application/x-dia-diagram mime type.
17932 * dia-diagram.png: an icon for dia diagrams.
17934 1999-12-08 James Henstridge <james@daa.com.au>
17936 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17938 * plug-ins/python/pydia-display.[ch]: wrapper for display.
17940 * objects/standard/ellipse.c: applied Lars's patch to optionally not
17941 draw the background of the ellipse.
17943 * app/load_save.c (read_connections): do some sanity checking on the
17944 handle and connection point numbers before performing the object
17947 * lib/bezier_conn.c (bezierconn_load): give the correct number of
17948 handles when loading a BezierConn.
17950 1999-12-07 Kjartan Maraas <kmaraas@online.no>
17952 * sheets/*.sheet: Finished Norwegian translations.
17954 1999-12-07 James Henstridge <james@daa.com.au>
17956 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17957 (PyDia_GetObjectType): find object type function.
17959 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17960 method for diagrams.
17962 * plug-ins/python/pydia-object.c: added methods for DiaObject and
17965 * AUTHORS: added Lars and Cyrille to the authors file.
17967 * objects/standard/bezier.c (bezierline_add_segment_callback): place
17968 new point correctly.
17970 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17972 * lib/bezier_conn.c: applied Lars's patch for placement of the new
17973 point when adding a segment to a BezierConn.
17975 1999-12-06 James Henstridge <james@daa.com.au>
17977 * plug-ins/python/test.py: test script for the python plug-in.
17979 * plug-ins/python/python.c: this file contains the plug-in startup
17980 code for the python plugin. Right now, it just initialises the
17981 dia module and executes a script.
17983 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17985 * objects/standard/bezier.c (bezierline_draw): draw control lines for
17986 bezier curve if we are using an interactive renderer (ie. only if
17987 displaying to the screen).
17989 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17990 to draw control lines on to a bezier curve. Based on implementation
17993 * objects/standard/bezier.c (bezierline_delete_segment_callback):
17994 calculate segment number using closest_segment rather than
17995 closest_handle. Sometimes the closest handle is part of a different
17997 (bezierline_draw): use correct size for start arrow.
17999 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
18000 * lib/geometry.c (distance_line_point): added notes to documentation
18002 * app/object_ops.c (object_list_align_v):
18003 (object_list_align_h): fix of by one error when calculating free space
18004 for equal distance alignment.
18005 * app/menus.c (objects_align_h, objects_align_v): include align
18006 adjacent menu items in the gnome version of the menus.
18007 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
18008 align adjacent menu items correctly.
18011 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
18014 * objects/standard/bezier.c: converted bezierline to use BezierConn.
18015 Still a few bugs. It crashes on deleting line segments.
18017 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
18019 1999-12-05 James Henstridge <james@daa.com.au>
18021 * lib/bezier_conn.[ch]: start of BezierConn object
18023 * app/interface.c: add bezierline to toolbox.
18025 * objects/standard/standard.c: initialise bezierline.
18027 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
18028 made a few modifications to get it working nicely. It still needs
18029 a bit of work though. Maybe create a BezierConn object in lib.
18031 1999-12-02 James Henstridge <james@daa.com.au>
18033 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
18035 * plug-ins/python/Makefile.am: tried building everything. It is
18036 building as a library at the moment. I will have to convert it
18037 to a libtool library and add some initialisation code.
18039 * plug-ins/python/diamodule.c: start of the dia module, using the
18040 other object wrappers. Not complete.
18042 1999-12-01 James Henstridge <james@daa.com.au>
18044 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
18045 the handles and connections attributes.
18047 * plug-ins/python/pydia-layer.c: added functions that use
18050 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
18052 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
18054 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
18055 I am currently wrapping the basic elements in the diagram in python
18056 objects -- nothing to see or play with yet.
18058 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
18062 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
18064 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
18068 Added russian translation from Valek Filippov <frob@df.ru>
18070 1999-11-24 James Henstridge <james@daa.com.au>
18073 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
18074 discussed with Alex. Also added extra makefiles so that make install
18077 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
18079 * app/preferences.[ch]:
18081 Added snap to grid preference.
18082 Patch from Michael Leslie <mles@springboardwireless.com>
18084 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
18090 * objects/custom/shape_info.c:
18091 All strings returned by libxml must be freed with free, not
18092 g_free, or there will be problems if you use memory debugging
18095 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
18097 * app/create_object.[ch]:
18100 * app/commands.[ch]:
18102 * app/interface.[ch]:
18103 Reverted the tool menu patch. It has some 'issues'.
18104 I liked it though, so it'll probably return.
18106 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
18108 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
18109 <bruce@cybersight.com> for some purify runs and analysis.
18110 Also a great thank you to Owen Taylor for creating MemProf, a
18111 free memory leak detector that was used to find and verify a
18112 lot of these fixes.
18115 * app/paginate_psprint.c:
18116 * app/render_eps.[ch]:
18117 * app/render_svg.[ch]:
18121 Don't add a reference to ddisp->shell. Why was this done in
18128 Free all strings returned from xmlGetProp
18130 * app/modify_tool.c:
18133 * objects/custom/custom.c:
18134 Use closedir() after opendir().
18136 * objects/custom/shape_info.c:
18137 User g_free() instead of "if (tmp) free(tmp)".
18140 Add newline at end of file.
18143 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
18145 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
18146 Adds tool menu and keyboard shortcuts.
18148 * app/create_object.[ch]:
18149 Use tool_set() instead of tool_reset().
18150 create_create_object_tool() takes extra type argument
18156 Moved tool_data here, export it.
18157 Add separate tool type for all create objects tools.
18158 new functions tool_set().
18161 New callback tool_set_callback.
18164 Moved some pixmaps to interface.c.
18167 Remove tool_data array (moved to tool.c).
18168 Use the tool_data from tool.c.
18169 Remove modify_tool_button global var.
18171 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
18173 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
18176 Interprets command-line arguments as files to open even when
18177 HAVE_POPT is not defined.
18180 Shift-clicking when zooming zooms out, like the Gimp.
18183 Has hotkeys for zoom-100% and snap-to-grid.
18185 1999-11-17 James Henstridge <james@daa.com.au>
18187 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
18188 that it is not jumpy.
18190 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
18192 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
18193 scrolling by pressing the shift key when using the scroll tool.
18195 * sheets/Makefile.am: fixed makefile so that install actually works
18196 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
18198 (SHEETS): install Circuit.sheet
18200 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
18201 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
18203 * sheets/Circuit.sheet:
18206 * sheets/Flowchart.sheet:
18207 * sheets/UML.sheet:
18208 * sheets/network.sheet:
18209 * sheets/sybase.sheet:
18212 * sheets/Circuit.sheet:
18213 added some missing French translations
18216 killed the temporary sheet namespace
18218 * objects/custom/custom.c:
18219 obsolete comment cleaned up
18221 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
18225 Added portugese translation from Pedro Morais
18226 <pmmm@rnl.ist.utl.pt>
18228 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
18230 Changed all sheets to be specified in xml.
18231 All sheet objects removed from the C code.
18232 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
18237 Updated version to 0.81cvs.
18240 Update run_dia.sh with sheet-dir.
18243 Load all sheets on startup.
18244 Create sheet directory first time.
18245 Don't call custom_register_sheets().
18248 Add sheetdir define
18251 Remove custom_register_sheets().
18254 Add sheet loading code.
18256 * sheet/Circuit.sheet:
18259 * sheet/Flowchart.sheet:
18261 * sheet/network.sheet:
18262 * sheet/sybase.sheet:
18265 * sheet/ER/weakentity.xpm:
18266 * sheet/UML/aggregation.xpm
18267 * sheet/UML/umlclass_template.xpm
18268 Added sheet pixmaps.
18269 These are moved from their old places.
18271 * sheet/.cvsignore:
18275 Removed sheet objects and sheet registration.
18277 * objects/ER/Makefile.am:
18278 * objects/ER/pixmaps/weakentity.xpm:
18279 * objects/UML/Makefile.am:
18280 * objects/UML/pixmaps/aggregation.xpm:
18281 * objects/UML/pixmaps/umlclass_template.xpm:
18282 Removed alternative pixmaps. (Moved to sheet).
18284 * objects/custom/Makefile.am:
18285 * objects/custom/load_sheet.[ch]:
18286 Removed old sheet loading code.
18288 * objects/custom/custom.c:
18289 Load all shapes instead of sheets.
18290 Removed custom_register_sheets().
18292 * objects/custom/custom_object.c:
18295 * objects/custom/shape_info.[ch]:
18296 Added shape_info_getbyname().
18298 * objects/flowchart/Makefile.am:
18299 * objects/flowchart/collate.shape
18300 * objects/flowchart/delay.shape
18301 * objects/flowchart/display.shape
18302 * objects/flowchart/document.shape
18303 * objects/flowchart/extract.shape
18304 * objects/flowchart/flowchart.c
18305 * objects/flowchart/intstorage.shape
18306 * objects/flowchart/magdisk.shape
18307 * objects/flowchart/magdrum.shape
18308 * objects/flowchart/magtape.shape
18309 * objects/flowchart/manualinput.shape
18310 * objects/flowchart/manualop.shape
18311 * objects/flowchart/merge.shape
18312 * objects/flowchart/offlinestore.shape
18313 * objects/flowchart/offpageconn.shape
18314 * objects/flowchart/or.shape
18315 * objects/flowchart/predefdproc.shape
18316 * objects/flowchart/preparation.shape
18317 * objects/flowchart/punchedcard.shape
18318 * objects/flowchart/punchedtape.shape
18319 * objects/flowchart/sort.shape
18320 * objects/flowchart/sumjunction.shape
18321 * objects/flowchart/terminal.shape
18322 * objects/flowchart/transaction.shape
18323 * objects/flowchart/transmittape.shape
18324 * objects/flowchart/pixmaps/collate.xpm
18325 * objects/flowchart/pixmaps/delay.xpm
18326 * objects/flowchart/pixmaps/display.xpm
18327 * objects/flowchart/pixmaps/document.xpm
18328 * objects/flowchart/pixmaps/extract.xpm
18329 * objects/flowchart/pixmaps/intstorage.xpm
18330 * objects/flowchart/pixmaps/magdisk.xpm
18331 * objects/flowchart/pixmaps/magdrum.xpm
18332 * objects/flowchart/pixmaps/magtape.xpm
18333 * objects/flowchart/pixmaps/manualinput.xpm
18334 * objects/flowchart/pixmaps/manualop.xpm
18335 * objects/flowchart/pixmaps/merge.xpm
18336 * objects/flowchart/pixmaps/offlinestore.xpm
18337 * objects/flowchart/pixmaps/offpageconn.xpm
18338 * objects/flowchart/pixmaps/or.xpm
18339 * objects/flowchart/pixmaps/predefdproc.xpm
18340 * objects/flowchart/pixmaps/preparation.xpm
18341 * objects/flowchart/pixmaps/punchedcard.xpm
18342 * objects/flowchart/pixmaps/punchedtape.xpm
18343 * objects/flowchart/pixmaps/sort.xpm
18344 * objects/flowchart/pixmaps/sumjunction.xpm
18345 * objects/flowchart/pixmaps/terminal.xpm
18346 * objects/flowchart/pixmaps/transaction.xpm
18347 * objects/flowchart/pixmaps/transmittape.xpm
18348 Moved shapes and their pixmaps to shapes/flowchart
18350 * shapes/Circuit/Makefile.am:
18351 * shapes/Circuit/index.sheet:
18352 Removed index.sheet.
18354 * shapes/Makefile.am:
18355 * shapes/flowchart/Makefile.am:
18356 * shapes/flowchart/*.shape:
18357 * shapes/flowchart/*.xpm:
18358 Added flowchart shapes. (Moved from objects/flowchart)
18361 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18363 * app/app_procs.c: Fixed popt stuff.
18365 1999-11-01 James Henstridge <james@daa.com.au>
18367 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
18370 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
18374 Update version to 0.81.
18377 Update with news for 0.81.
18379 * shapes/Circuit/*:
18380 * shapes/Circuit_eu/*:
18381 Moved european circuit objects to Circuit sheet.
18383 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
18385 * lib/diagramdata.[ch]:
18386 Added layer_set_object_list() function.
18389 Added support for undo of reordered objects.
18390 Fix the undo of delete to keep the right order on undo.
18393 changed loop to object_add_updates_list() calls.
18394 Added undo support to bring to front/back.
18396 * app/disp_callbacks.c:
18397 * app/paginate_psprint.c:
18400 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
18402 This plugs some leaks. Thanks to
18403 Bruce Mitchener <bruce@cybersight.com> for running
18404 Dia through purify for me.
18407 Free displays and diagrams on exit.
18409 * app/modify_tool.c:
18410 Free gc when freeing tool.
18412 * lib/diagramdata.c:
18416 Free update and display lists when destroying display.
18418 * lib/diagramdata.c:
18419 Don't leak layer name.
18421 * objects/custom/load_sheet.c:
18422 * objects/custom/shape_info.c:
18423 Free loaded xml documents.
18425 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
18428 * app/object_ops.[ch]:
18429 Add undo handling to alignment ops.
18430 Based partially on patch by Dan Cohn <dan@internap.com>.
18432 * objects/standard/image.c (image_move_handle):
18433 Don't divide by zero for small images.
18434 Patch by Dan Cohn <dan@internap.com>.
18436 * objects/UML/class.c (umlclass_destroy):
18437 * objects/custom/custom_object.c (custom_destroy):
18438 Don't free connectionpoints before calling element_destroy
18439 which unconnects them.
18441 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
18443 * objects/custom/custom_object.c:
18444 Load and save padding too. Fixes strange load crashes.
18446 * app/group.c (group_destroy):
18447 Don't unconnect already freed connectionpoints when
18448 destroying group. Probably fixes bug reported by
18449 Elliot Lee <sopwith@redhat.com>.
18451 * app/render_gdk.c:
18452 Don't crash on zero-size (broken) bezier curves.
18453 Different sort of fix. This should work on closed bezier curves
18456 * objects/standard/textobj.c:
18457 Activate default properties dialog for Text objects.
18459 * app/render_eps.c:
18461 * app/preferences.c:
18462 * app/render_svg.c:
18463 fopen files in binary or text mode.
18465 1999-10-26 Alexander Larsson <alex@cendio.se>
18467 * app/render_gdk.c (bezier_add_lines):
18468 Don't crash on zero-size (broken) bezier curves.
18469 Fixes a crashing bug.
18471 1999-10-25 James Henstridge <james@daa.com.au>
18473 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
18474 before it is installed.
18476 * objects/flowchart/flowchart.c: use relative paths to find shapes.
18478 * objects/custom/custom.c (custom_object_load): take file names
18479 relative to $(pkgdatadir)/shape-internal, and check an environment
18480 variable for an alternative directory.
18482 * app/...: added copyright messages to the top of my new code.
18484 * app/paginate_psprint.c: some general clean ups. Also, give an error
18485 dialog if we can't open the command or output file for writing.
18487 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
18488 function so it would set orientation to landscape correctly.
18490 * app/paginate_psprint.c: use the paper settings that come with
18491 the diagram. Also implemented landscape printing.
18493 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
18496 * app/commands.[ch] (file_pagesetup_callback): added callback for
18497 the page setup dialog.
18499 * app/menus.c: added page setup menu item.
18501 * app/pagesetup.[ch]: implementation of the page setup dialog.
18503 * app/diapagelayout.[ch]: added accessors for the scaling factor.
18505 * app/load_save.c (diagram_load): load paper information from save
18507 (diagram_save): save the paper info.
18509 * lib/diagramdata.c (new_diagram_data): initialise paper info section
18510 of DiagramData structure.
18511 (diagram_data_destroy): free the paper name.
18513 * lib/diagramdata.h: added a paper member to the DiagramData structure
18514 that holds the page layout info for a diagram.
18516 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
18518 * objects/flowchart/box.c:
18519 * objects/flowchart/ellipse.c:
18520 * objects/flowchart/diamond.c:
18521 * objects/flowchart/parallelogram.c:
18522 Load and save padding too. Fixes strange load crashes.
18524 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
18526 * app/app_procs.c (name_is_lib):
18527 .dll, .sl and .so.0.0.0 are also libraries.
18529 1999-10-20 James Henstridge <james@daa.com.au>
18531 * configure.in: added extra makefile.
18533 * shapes/Circuit_eu/*: a new set of european circuit shapes from
18534 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
18535 (added fuses to makefile, fill the area of some of the components).
18537 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
18541 Add GDK_IMLIB_CFLAGS to includes.
18542 Changed --export-dynamic to -export-dynamic
18545 * objects/UML/message.c:
18546 Removed c++ comment.
18548 * lib/render_store.[ch]:
18549 Don't use empty structure. That is not Ansi C.
18551 1999-10-19 James Henstridge <james@daa.com.au>
18553 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18554 the margin entries, as they allow interpretation of units.
18555 (paper_size_change): display the current page dimensions.
18557 * app/diaunitspinner.[ch]: a widget derived from the standard
18558 GtkSpinButton that tries to take units into account. So if you enter
18559 "1in" into the entry, it will convert it to 2.54cm.
18561 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
18564 Removed include of dlfcn.h
18566 1999-10-18 James Henstridge <james@daa.com.au>
18568 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18569 bound on margin widths. It is set to the paper width/height.
18571 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18572 routine for the diamond. This bug was found and fixed by Daniel Wang
18573 <danwang@CS.Princeton.EDU>
18575 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
18577 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18578 remove warning (OS/2 version).
18580 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
18583 Put a pointer to objects/custom/README.
18585 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
18588 Updated version to 0.80
18591 Updated version to 0.80cvs
18593 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18595 * Released Dia 0.80
18596 Tag called DIA_0_80
18598 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
18602 * objects/UML/Makefile.am
18603 * objects/ER/Makefile.am
18604 * objects/network/Makefile.am
18605 * objects/standard/Makefile.am
18606 * objects/FS/Makefile.am
18607 * objects/sybase/Makefile.am
18608 * objects/flowchart/Makefile.am
18609 * objects/custom/Makefile.am
18610 Added -I$(top_srcdir)/intl which is needed for
18611 --with-included-gettext.
18617 Updated swedish translation.
18619 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
18622 Updated version number to 0.80.
18628 Updated. Moved bugs to KNOWN_BUGS.
18631 Updated with 0.80 release notes.
18633 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
18636 For backwards compatibility, make sure handle 0 and 1 are the
18637 first and last handle. Fixes compatibility with 0.41, breaks
18638 compatibility with cvs version.
18639 Fixed bug in undo/redo of adding deleting endpoint segments
18640 when the endpoint was connected.
18641 Start OrthConn objects with three segments.
18643 1999-10-16 James Henstridge <james@daa.com.au>
18645 * objects/custom/custom_object.c (custom_update_data): changed
18646 resizing behaviour a bit so that shapes don't grow huge when you try
18647 to resize them to smaller than the size required by the text box.
18648 Also, now shapes will not grow with fixed aspect ratio when you enter
18649 text into them unless the shape has the fixed aspect ratio flag set.
18651 1999-10-15 James Henstridge <james@daa.com.au>
18653 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18655 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18657 * objects/flowchart/magdrum.shape:
18658 * objects/flowchart/offlinestore.shape:
18659 * objects/flowchart/punchedtape.shape:
18660 * objects/flowchart/transmittape.shape:
18661 * objects/flowchart/punchedcard.shape: new shapes.
18663 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18665 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18667 * objects/flowchart/collate.shape:
18668 * objects/flowchart/delay.shape:
18669 * objects/flowchart/extract.shape:
18670 * objects/flowchart/intstorage.shape:
18671 * objects/flowchart/magdisk.shape:
18672 * objects/flowchart/magtape.shape:
18673 * objects/flowchart/merge.shape:
18674 * objects/flowchart/or.shape:
18675 * objects/flowchart/sort.shape:
18676 * objects/flowchart/sumjunction.shape: new shapes.
18678 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
18682 Entering an erronous command as print command
18685 * app/paginate_psprint.c:
18686 Save all print dialog values for next time.
18689 Remove custom lib from DIA_LIB_PATH.
18691 1999-10-14 James Henstridge <james@daa.com.au>
18693 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18695 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18697 * objects/flowchart/offpageconn.shape:
18698 * objects/flowchart/manualop.shape:
18699 * objects/flowchart/preparation.shape:
18700 * objects/flowchart/manualinput.shape:
18701 * objects/flowchart/predefdproc.shape:
18702 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18704 1999-10-13 James Henstridge <james@daa.com.au>
18706 * app/diapagelayout.[ch]: added accessors to paper information. The
18707 widget should be just about complete now.
18709 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18710 It actually does something now.
18712 1999-10-12 James Henstridge <james@daa.com.au>
18714 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18715 for the page layout widget.
18717 * app/diapagelayout.[ch]: start of page layout widget. Not actually
18718 built yet as it is not complete.
18720 * objects/flowchart/flowchart.c: added new shapes to sheet.
18722 * objects/flowchart/display.shape:
18723 * objects/flowchart/transaction.shape: new shapes.
18725 * AUTHORS: added my name to the spec file.
18727 * dia.spec: include the dia desktop entry to the spec file.
18729 * Makefile.am: install the dia.desktop file.
18731 * dia.desktop: added a gnome desktop entry so you can start dia
18732 from the gnome panel menu.
18734 1999-10-11 James Henstridge <james@daa.com.au>
18736 * objects/custom/custom_object.c:
18737 * objects/custom/shape_info.c: warning fixes.
18739 * objects/flowchart/document.shape: a shape file for the `document'
18742 * lib/custom.h: new header with the custom shape prototypes.
18744 * app/app_procs.c: register custom objects as well.
18745 (register_objects_in): close shared libraries if they don't load
18746 correctly, and call g_module_make_resident on libraries that load
18749 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18751 * objects/custom/custom.c: removed get_version, added custom_ prefix
18752 to register_objects and register_sheets.
18754 * objects/custom/Makefile.am: converted to a normal library.
18756 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
18758 * app/lineprops_area.c:
18759 * app/render_svg.c:
18761 * objects/custom/shape_info.c:
18762 * objects/flowchart/box.c:
18763 * objects/flowchart/diamond.c:
18764 * objects/flowchart/ellipse.c:
18765 * objects/flowchart/parallelogram.c:
18766 * objects/network/flash.c:
18767 * objects/network/scead-plug.c:
18768 * objects/sybase/client.c:
18769 Removed -Wall warnings.
18771 * objects/network/bus.c:
18772 Removed unused functions.
18774 * objects/FS/flow-ortho.c:
18775 * objects/FS/flow-poly.c:
18776 * objects/FS/flow.c:
18777 * objects/FS/function.c:
18779 Implemented "non-implemented" undo for FS objects.
18780 Now at least it won't crash.
18782 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
18784 * objects/network/bus.c:
18786 Handles are now added and removed using the object menu.
18787 Default to 6 handles instead of 10.
18788 Changed name from "Standard - Bus" to "Network - Bus". Kept old
18789 name for backwards compatibility.
18791 * objects/network/network.c:
18792 Changed name from "Standard - Bus" to "Network - Bus". Kept old
18793 name for backwards compatibility.
18795 * app/properties.[ch]:
18797 Update properties in properties dialog if the shown object
18798 is part of and ObjectChange (undo or redo).
18801 Remove old known bugs list.
18803 * objects/UML/class_dialog.c:
18804 Removed debug printf's.
18806 1999-10-10 James Henstridge <james@daa.com.au>
18808 * objects/custom/custom.c (custom_object_load): new function that
18809 provides a nice entry point to the custom shape code for when it
18810 gets used by other libraries.
18812 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
18813 speeds builds up a bit.
18815 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18816 (SUBDIRS): do not descend into pixmaps subdirs.
18818 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18819 This speeds up build process.
18821 * objects/custom/custom.c (sheets): made variable static.
18823 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18826 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18828 * objects/custom/custom.c: look in ~/.shapes instead of
18829 ~/.dia_shapes as the per-user shapes directory.
18831 * app/preferences.c (prefs_save): save config to ~/.diarc.
18832 (prefs_load): load configuration from ~/.diarc. If the file
18833 does not exist, fallback on the old ~/.diarc location.
18835 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18837 (register_all_objects): look for user specific objects in
18838 ~/.objects rather than ~/.dia_libs.
18840 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18844 * objects/flowchart/box.c
18845 * objects/flowchart/ellipse.c
18846 * objects/flowchart/flowchart.c
18847 Use gmodule for dynamic linking. As gmodule is using
18848 RTLD_GLOBAL i had to change flowchart box and ellipse
18849 so the typenames doesn't conflict with the standard
18854 Use button box to make dialogs look better.
18856 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
18858 * objects/UML/class_dialog.c:
18859 * objects/UML/class.h:
18860 Implemented undo for "UML - Class" objects.
18861 Not 100% tested yet.
18863 * objects/UML/classicon.c:
18864 * objects/UML/constraint.c:
18865 * objects/UML/dependency.c:
18866 * objects/UML/generalization.c:
18867 * objects/UML/implements.c:
18868 * objects/UML/large_package.c:
18869 * objects/UML/lifeline.c:
18870 * objects/UML/message.c:
18871 * objects/UML/object.c:
18872 * objects/UML/realizes.c:
18873 * objects/UML/state.c:
18874 * objects/UML/usecase.c:
18877 * lib/connectionpoint.h:
18880 1999-10-09 James Henstridge <james@daa.com.au>
18882 * objects/custom/*.[ch]: added copyright notices to custom object
18885 * shapes/Circuit/hdiode.shape:
18886 * shapes/Circuit/hzener.shape:
18887 * shapes/Circuit/opamp.shape:
18888 * shapes/Circuit/vdiode.shape:
18889 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18890 shapes look nice after the custom shape code changes.
18892 * objects/custom/README: updated docs to cover changes to drawing
18895 * objects/custom/custom_object.c (custom_draw): honour the line
18896 properties when drawing the shape.
18898 * objects/custom/shape_info.[ch]: added support for setting line
18899 properties for individual drawing elements in a custom shape. You
18900 can set the dash style, dash length, cap style and join style.
18902 1999-10-07 James Henstridge <james@daa.com.au>
18904 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18905 for foreground and background.
18907 * objects/custom/custom_object.c (custom_draw): use the new style
18908 information when drawing the object.
18910 * objects/custom/shape_info.[ch]: store all shape style info in the
18911 GraphicStyle structure. This makes adding support for extra CSS
18912 attributes easier -- we don't have to keep adding extra arguments to
18913 a lot of functions.
18915 1999-10-05 James Henstridge <james@daa.com.au>
18917 * lib/intl.c (unalias_lang): merged in changes from the i18n code
18918 swiped from gnome-libs.
18920 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
18922 * objects/standard/image.c (get_directory):
18923 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18925 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
18927 * lib/poly_conn.c (polyconn_destroy):
18928 Fix bug. Access of freed memory.
18929 Rememeber, you can't free the handles of an object
18930 before calling object_destroy(), as it unconnects the handles
18931 therefore referencing them.
18933 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
18936 undo_clear() didn't set stack->depth to zero.
18937 This made other undo functions crash after this had been called
18941 Slightly modified by Chris Love <clove@exactis.com>
18943 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
18945 * objects/UML/class.h:
18946 * objects/UML/class_dialog.c:
18947 Retrun NULL ObjectChange on class property change.
18948 This means no crashes, but "UML - Class" doesn't support undo yet.
18950 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
18955 * objects/UML/classicon.c:
18956 * objects/UML/dependency.c:
18957 * objects/UML/generalization.c:
18958 * objects/UML/implements.c:
18959 * objects/UML/large_package.c:
18960 * objects/UML/lifeline.c:
18961 * objects/UML/message.c:
18962 * objects/UML/object.c:
18963 * objects/UML/realizes.c:
18964 * objects/UML/state.c:
18965 * objects/UML/usecase.c:
18966 Update to new undo (w. get/set_state).
18967 Add object menu to add/delete segments.
18969 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
18972 Add equal distance alignment.
18974 * app/object_ops.c:
18975 Add equal distance alignment.
18976 Fix bug in adjacent alignment.
18978 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
18980 * objects/UML/constraint.c:
18981 Update to new undo (w. get/set_state).
18983 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
18985 * app/paginate_psprint.c:
18986 Save (parts, more todo) of the info in the print dialog to the
18987 next time it's opened.
18988 Patch from Yo Ric Dude <ricdude@toad.net>
18990 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
18993 Updated version string to 0.41cvs.
18995 * objects/UML/assocition.c:
18996 Update to new undo (w. get/set_state).
18997 Add object menu to add/delete segments.
19000 Added function debug_break() and called it after all
19001 objects and sheets are loaded. Place a breakpoint here if you
19002 want to debug objects. All symbols should be loaded.
19004 1999-09-12 James Henstridge <james@daa.com.au>
19006 * app/menus.c (display_menu_items): added print menu item.
19007 (filemenu): always add print menu item -- even if gnome-print is
19010 * app/commands.h, app/commands.c (file_print_callback): the print
19011 menu item is now available for both gnome-print and non gnome-print
19014 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
19015 print with the non gnome-print driver.
19017 1999-09-11 James Henstridge <james@daa.com.au>
19019 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
19020 printer dialog code out of commands.c.
19022 * app/paginate_psprint.c: new file containing the pagination code for
19025 * app/render_eps.c: made a few modifications so as well as producing
19026 EPS files, this renderer can be set up to do postscript printing.
19027 This basically entailed adding an extra function to create a RenderEPS
19028 renderer which did not bother setting the viewport for the document.
19029 That was left for the pagination code.
19031 1999-09-10 James Henstridge <james@daa.com.au>
19033 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
19034 gnome-print does not support elliptic arcs at the moment, approximate
19035 the ellipse with eight bezier curves. This gives a pretty good
19036 match to a true ellipse.
19038 1999-09-09 James Henstridge <james@daa.com.au>
19040 * app/commands.c (file_gnome_print_callback): added support for
19041 scaling the diagram. Also fixed a few other bugs.
19043 * app/paginate_gnomeprint.c (print_page): added ability to scale
19044 document. Fixed up test to see if the page has no objects on it.
19045 This should prevent some blank pages being printed. Non square
19046 objects such as lines could still cause problems.
19048 1999-09-08 James Henstridge <james@daa.com.au>
19050 * app/commands.c (file_gnome_print_callback): changed from using the
19051 standard printer selection dialog to one that also has a paper size
19054 * commands.[ch]: added callbacks for the print menu item. Currently
19055 it only does A4 output. I will make it configurable soon.
19057 * app/menus.c: add a print diagram menu item if gnome-print support
19060 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
19061 bit higher level than the gnome-print renderer. It splits the
19062 diagram into page size chunks and then renders them. For each
19063 page, it only renders the objects whose bounding box intersects
19064 the page, and it sets the clip mask so that the diagram does not
19065 overlap the margins.
19067 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
19068 that uses gnome-print as its back end.
19070 * configure.in: added a check for gnome-print. It is disabled by
19071 default because the code is not really working correctly yet.
19073 * app/menus.c: the delete object menu item was missing from the
19074 GnomeUIInfo style menus.
19076 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
19079 Added japanese to ALL_LINGUAS.
19080 Fix for Linux on Alpha.
19082 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
19084 * app/create_object.c (create_object_button_press):
19085 Always initialize tool->obj. Otherwise we store a null
19086 in the undo Change.
19089 Set linestyle before drawing cursor.
19090 Fix undo of backwards delete.
19092 1999-09-05 James Henstridge <james@daa.com.au>
19094 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
19096 * app/render_svg.c (draw_image): some fixes so that the appropriate
19097 style attributes are set. Before it was setting line styles on
19098 fill_* functions. Now it only does this for the draw_* variants.
19100 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
19101 variable so that custom shapes can be loaded.
19103 * shapes/: new directory for custom shapes. The Circuit sheet has
19106 1999-09-02 James Henstridge <james@daa.com.au>
19108 * TODO: removed a few todo items that have been implemented.
19110 * app/interface.c (create_sheets): enabled the popup page menu to the
19111 notebook. This can make it easier to select different sheets.
19113 * object/custom/Circuit/: added diode, zener diode, ground point and
19114 operational amplifier shapes.
19116 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
19117 if you want the output.
19119 * objects/custom/shape_info.c (parse_path): same here.
19121 * objects/custom/load_sheet.c (load_with_readdir): don't print so
19122 much debugging output. To get the previous level of output, define
19125 * objects/custom/shape_info.c (parse_svg_node): polygons were being
19126 recorded as polylines in the ShapeInfo structure.
19128 * objects/custom/README: some notes on writing new custom shapes.
19130 1999-09-01 James Henstridge <james@daa.com.au>
19132 * objects/custom/Circuit/hinductor.*:
19133 * objects/custom/Circuit/vinductor.*: added inductor shapes that
19134 also test out the bezier curve and SVG path support.
19136 * objects/custom/custom_object.c (custom_draw): added support for
19137 drawing bezier paths and filled shapes.
19139 * objects/custom/shape_info.c (parse_path): new function to parse
19140 SVG path elements. It does not do quadratic beziers or elliptic
19141 arcs though. Only moves, lines and cubic beziers.
19142 (*): added support for paths.
19144 1999-08-31 James Henstridge <james@daa.com.au>
19146 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
19148 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
19151 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
19154 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
19157 * lib/render_store.[ch]: use newer bezier functions.
19159 * lib/render.h: changed the bezier drawing functions to use an array
19160 of BezPoint structures instead of normal Point structures to allow
19161 lineto's mixed in with the curveto's.
19163 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
19165 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
19166 xpm images for different shapes to Makefile.
19168 * objects/custom/custom_object.c (custom_object_new): set the icon
19169 for the sheet button if there is one. Otherwise fall back on the
19170 default custom object icon.
19172 * objects/custom/shape_info.c (load_shape_info): read the sheet
19173 icon name from the shape file.
19175 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
19176 check the pixmap_file field for the name of a pixmap file to load
19179 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
19180 at the end of the structure, and it isn't used if the pixmap field
19181 is non NULL, so it should not break binary compatibility.
19183 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
19184 added support for the use of an index.sheet file so you can specify
19185 the ordering of the shapes in the sheet, and also internationalise
19186 the sheet name and actually be able to give a description. The old
19187 readdir based sheet loading code acts as a fallback if an index.sheet
19188 file can not be found.
19190 * objects/custom/custom_util.[ch]: new file containing useful routines
19191 needed by the custom object code. Currently only contains a simple
19192 routine for resolving relative paths.
19194 * objects/custom/custom_object.c (custom_draw): fixed problem with
19195 drawing rectangles if the shape has been flipped.
19197 1999-08-30 James Henstridge <james@daa.com.au>
19199 * objects/custom/custom_object.c (custom_get_object_menu): allow
19200 flipping of custom shapes. This uses the miggle click object
19203 * objects/custom/Circuit/npn.shape: fix aspect ratio.
19205 * objects/custom/custom_object.c (custom_update_data): honour the
19206 aspect ratio constraints.
19208 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
19209 tag parsing, so you can specify a free, fixed or a range for aspect
19210 ratios for the shape.
19212 1999-08-29 James Henstridge <james@daa.com.au>
19214 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
19215 up shape namespace tag.
19217 * objects/custom/shape_info.c (load_shape_info): check xml:lang
19218 attribute on <description> elements to support i18n for custom
19219 shape descriptions.
19220 Also changed the shape namespace for custom shapes to something
19221 a little more sensible.
19223 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
19225 * lib/intl.c: new file containing some functions for i18n stuff.
19227 * app/layer_dialog.c (create_button_box): fixed a warning.
19229 * objects/custom/custom_object.c: use current line style. Save dash
19232 * objects/flowchart/diamond.c: use current line style. Save dash
19235 * objects/flowchart/parallelogram.c: use current line style. Save
19238 * objects/flowchart/ellipse.c: use current line style. Save dash
19241 * objects/flowchart/box.c: use current line style. Save dash length.
19243 * objects/standard/ellipse.c: make ellipse use current line style.
19245 * objects/standard/box.c: use the line style set in the toolbox for
19246 new boxes, and remember the dash length.
19248 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
19251 1999-08-24 James Henstridge <james@daa.com.au>
19253 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
19254 to try to stop ellipse to get infinite width/height when we resize,
19255 while trying to keep the text inside the ellipse.
19257 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
19258 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
19259 resizing behaviour, so that you can't push objects round the screen
19260 with the resize handles.
19262 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
19263 get the OK buttons in the dialogs to take default clicks.
19265 * objects/custom/custom_object.c: added code so that resizing the
19266 shape does not end up pushing it round the screen.
19268 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
19270 * app/display.[ch]:
19271 Generate rectangle with the union of the damaged regions.
19272 This is used to optimize the grid paint and the object rendering.
19273 display_render_pixmap passes this info to grid_draw() and data_render().
19276 grid_draw doesn't draw grid lines outside of damaged rectangle.
19277 Sets dashlength when drawing non-solid grid.
19279 * lib/diagramdata.[ch]:
19280 data_render() and layer_render() takes an optional damaged rectangle
19281 argument. No objects not intersecting this are drawn.
19285 Call data_render with NULL update rectangle.
19287 1999-08-23 James Henstridge <james@daa.com.au>
19289 * objects/custom/custom_object.c (custom_update_data): if the aspect
19290 ratio is fixed, make sure the shape is not distorted.
19292 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
19293 a <fixaspectratio/> tag is given in the shape file.
19295 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
19296 added support for stroke-width, stroke and fill CSS attributes
19297 specified in style attributes of the SVG elements. The line width
19298 is relative to the user specified line width. The stroke and fill
19299 attributes can only be used to swap the foreground/background
19302 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
19303 sensitivity on the dash length selector when this function is called.
19305 * objects/standard/arc.c: same. Also handle dash length.
19306 * objects/standard/zigzagline.c: same.
19307 * objects/standard/polyline.c: same. Also handle dash length.
19308 * objects/standard/line.c: use default arrow/line styles.
19310 * app/interface.c: added callbacks to set the default attributes.
19312 * lib/attributes.c: added implementations of these functions.
19314 * lib/attributes.h: added extra prototypes for the new line properties
19315 area in the toolbox.
19317 * app/interface.c (create_lineprops_area): added line properties
19318 area to bottom of toolbox.
19320 * app/lineprops_area.h: a header exporting a few routines of the
19321 line properties area widgets.
19323 * app/lineprops_area.c: new file containing a selector for arrows
19324 and line styles to go in the main toolbox.
19326 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
19329 Update Gtk+ 1.0.5 comment to 1.2.0.
19338 Make sure we don't propagate -ldl and -lpopt to all LIBS
19339 by adding new var APP_LIBS that only app/dia links with.
19342 Update run_dia.sh to load custom and flowchart objects.
19344 * objects/ER/Makefile.am:
19345 * objects/FS/Makefile.am:
19346 * objects/UML/Makefile.am:
19347 * objects/network/Makefile.am:
19348 * objects/standard/Makefile.am:
19349 * objects/sybase/Makefile.am:
19350 Don't build versioned libs.
19352 1999-08-22 James Henstridge <james@daa.com.au>
19354 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
19357 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
19358 should actually work a bit now.
19360 * objects/custom/Circuit/*: a test sheet for the custom shape code.
19361 It is a small collection of circuit elements.
19363 * objects/custom/shape_info.c: fixed up loading of polylines and
19364 polygons. Before it was removing negative signs :(
19366 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
19367 placeholder was here before. I still need to work out how to set
19368 icons for individual custom shapes.
19370 * objects/custom/custom.c: added code to load the shapes into sheets
19371 properly. The shape files should be arranged into directories, and
19372 each directory represents a different sheet in the toolbox. This
19373 will make it very easy to distribute a collection of dia shapes as
19374 a tarball. I still need to work out internationalisation, and maybe
19375 also shape ordering in the sheet.
19377 * objects/custom/custom_object.c: fixed up dialogs for these objects.
19378 (custom_create): fix for objects without text areas.
19380 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
19381 and saving of custom object works correctly now.
19383 1999-08-21 James Henstridge <james@daa.com.au>
19385 * objects/flowchart/ellipse.c:
19386 * objects/flowchart/diamond.c:
19387 * objects/flowchart/parallelogram.c:
19388 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
19389 copying or loading these object types. Not all the connection
19390 points would be initialised correctly.
19392 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
19395 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
19396 build a versioned library. It will only ever be dlopen'd, so this
19399 * objects/custom/custom_object.c (custom_distance_from): allow
19400 selecting the object by clicking on the text. This fixes problems
19401 where the text box is outside the graphic.
19403 * objects/custom/shape_info.c (load_shape_info): fixed up reading
19404 of connections points. It should be possible to add connections
19405 to custom objects now.
19407 * objects/custom/custom_object.c (custom_update_data): fixed resizing
19408 due to changes to text.
19410 * configure.in: added extra makefiles.
19412 * objects/custom/shape_info.[ch]:
19413 * objects/custom/custom_object.c:
19414 * objects/custom/custom.c: the starts of custom shape support in dia.
19415 This is not built by default at the moment, since it is not quite
19416 complete. When it is, it will let you create more shapes for dia
19417 without writing a line of C. Its implementation includes buzzwords
19418 such as XML and SVG, so it must be good :)
19420 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
19422 * app/app_procs.c (app_exit): Use button labels "Quit" and
19423 "Cancel" instead of "Yes" and "No".
19424 Set default action to "Cancel" instead of "Quit".
19426 1999-08-19 James Henstridge <james@daa.com.au>
19428 * objects/flowchart/flowchart.c: added ellipse object.
19430 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
19432 1999-08-18 James Henstridge <james@daa.com.au>d
19434 * app/color_area.c (color_area_edit): small fix to prevent dia from
19435 segfaulting when you try to change the default foreground/background.
19437 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
19439 * app/diagram.[ch] (diagram_redraw_all):
19440 Added function that redraws all diagrams.
19442 * app/preferences.c (prefs_apply):
19443 Call diagram_redraw_all when prefs are changed.
19445 * app/render_svg.c:
19446 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
19447 older libxml's, and the old version works good enought here.
19449 1999-08-17 James Henstridge <james@daa.com.au>
19451 * lib/widgets.c: changed handlers that were connected to the GtkButton
19452 "pressed" signal to connect to the "clicked" signal. This removes the
19453 problem where dialogs are inactive until you click a mouse button
19454 after using a colour selector.
19456 * configure.in: added extra makefiles to AC_OUTPUT list.
19458 * objects/Makefile.am (SUBDIRS): added flowchart module
19460 * objects/flowchart/*: a collection of shapes for use in flowcharts.
19462 * app/color_area.c (color_area_events): similar here.
19464 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
19465 event is recieved with event->width == 0, which causes a warning if we
19466 try to create a pixmap of that width.
19468 * app/preferences.c, app/preferences.h, app/grid.c: added code to
19469 allow you to configure the colour of the grid, and also lets you
19470 set the grid to use dotted lines instead of solid ones.
19472 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
19473 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
19475 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
19476 export filter. It is not quite complete, but for most shapes it
19477 works as expected. Fonts still need a bit of work.
19479 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
19481 * configure.in: Added "en_GB" to ALL_LINGUAS.
19483 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
19486 Added Undo and Redo to GNOME menus.
19488 * objects/ER/attribute.c:
19489 * objects/ER/entity.c:
19490 * objects/ER/participation.c:
19491 * objects/ER/relationship.c:
19492 Added get/set_state functions.
19494 * objects/ER/participation.c:
19495 Added add/delete segment.
19498 Updated Swedish translation.
19500 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19502 * app/preferences.[hc]:
19503 Added undo_depth pref.
19506 Never grow stack larger than pref.undo_depth.
19507 undo_depth == 0 means unlimited.
19508 Converted printfs to conditionally compiled DEBUG_PRINTFs.
19510 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19515 * lib/render_object.c:
19516 * objects/ER/attribute.c:
19517 * objects/ER/entity.c:
19518 * objects/ER/participation.c:
19519 * objects/ER/relationship.c:
19520 * objects/FS/flow-ortho.c:
19521 * objects/FS/flow-poly.c:
19522 * objects/FS/flow.c:
19523 * objects/FS/function.c:
19524 * objects/UML/actor.c:
19525 * objects/UML/association.c:
19526 * objects/UML/class.c:
19527 * objects/UML/classicon.c:
19528 * objects/UML/component.c:
19529 * objects/UML/constraint.c:
19530 * objects/UML/dependency.c:
19531 * objects/UML/generalization.c:
19532 * objects/UML/implements.c:
19533 * objects/UML/large_package.c:
19534 * objects/UML/lifeline.c:
19535 * objects/UML/message.c:
19536 * objects/UML/note.c:
19537 * objects/UML/object.c:
19538 * objects/UML/realizes.c:
19539 * objects/UML/small_package.c:
19540 * objects/UML/state.c:
19541 * objects/UML/usecase.c:
19542 * objects/network/bus.c:
19543 * objects/standard/arc.c:
19544 * objects/standard/box.c:
19545 * objects/standard/ellipse.c:
19546 * objects/standard/image.c:
19547 * objects/standard/line.c:
19548 * objects/standard/polyline.c:
19549 * objects/standard/textobj.c:
19550 * objects/standard/zigzagline.c:
19551 Removed all traces of is_empty(). It doesn't work in an
19554 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19559 Undoable grouping and ungrouping.
19561 * app/layer_dialog.c:
19562 * lib/diagramdata.[ch]:
19563 Undoable layer ops.
19565 * app/modify_tool.c:
19566 Undoable unconnect on handle move.
19568 * lib/orth_conn.[ch]:
19569 Working undoable add/remove segment.
19570 Removed endpoint_handles from OrthConn, renamed
19571 midpoint_handles to handles and put the endpoint
19574 * objects/standard/zigzagline.c:
19575 * objects/ER/participation.c:
19576 * objects/UML/association.c:
19577 * objects/UML/dependency.c:
19578 * objects/UML/generalization.c:
19579 * objects/UML/realizes.c:
19580 Update for the changes in OrthConn
19582 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
19584 * configure.in: Added "de" to ALL_LINGUAS.
19586 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
19598 Don't have the <Display> etc part of the menu strings
19599 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19602 Don't have the <Display> etc part of the menu strings
19603 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19604 Don't remove is_empty() objects, that don't work with undo.
19606 * lib/objchange.[ch]:
19608 Definition of ObjectChange. This is essentially an Change
19609 exported to the object libs. It encapsulates a change made
19610 to an objects internals. It can be applied, reverted and freed.
19611 There are also utility functions for doing ObjectChanges that
19612 only get/set the whole state of an object to store the change.
19613 This cannot be used when the object change deletes or adds a
19614 object which has references from other objects, eg. Handles which
19615 might be connected.
19618 Added objchange.c and objchange.h.
19621 Return NULL when loading fails.
19624 Menu callbacks return an ObjectChange.
19627 Reference objchange.o
19630 Key events return ObjectChange if they modify the object.
19634 Added object_add_handle_at() function.
19635 Apply properties returns an ObjectChange.
19636 Remove ObjectState and the get/set state functions, these
19637 don't always work. Use the new ObjectChange instead.
19640 Added object_add_handle_at() function implementation.
19642 * lib/orth_conn.[ch]:
19643 Use ObjectChange. Not finished yet.
19644 Removed get/set/free state functions
19646 * lib/poly_conn.[ch]:
19648 Don't remove segments that are small.
19649 Removed get/set/free state functions
19653 Added functions to get/set all text attributes.
19655 * objects/standard/arc.c:
19656 * objects/standard/box.c:
19657 * objects/standard/ellipse.c:
19658 * objects/standard/image.c:
19659 * objects/standard/line.c:
19660 * objects/standard/polyline.c:
19661 * objects/standard/textobj.c:
19662 * objects/standard/zigzagline.c:
19664 fixed bug in image_set_state.
19665 zigzagline.c not finished yet.
19667 * app/disp_callbacks.c:
19668 Use ObjectChange that are returned from menu callbacks and
19669 key_events for undo.
19671 * app/properties.c:
19672 Use ObjectChange that are returned from properties apply
19677 New undo type: ObjectChangeChange. This wraps a change to the
19678 internals of an object (and ObjectChange) in code that does
19679 app specific stuff (object_add_updates etc.)
19681 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
19683 * lib/orth_conn.[ch]:
19684 Added code for add/delete segment.
19686 * objects/standard/zigzagline.c:
19687 Use the new orth_conn code.
19690 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
19692 * objects/FS/Makefile.am
19693 Removed fs.h from sources.
19699 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
19701 * app/disp_callbacks.c (ddisplay_canvas_events):
19702 Fix for bug. Every other arrow-key press got lost.
19703 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19706 change automake.sh to autogen.sh
19708 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
19711 Don't remove 'empty' objects.
19712 This violent destruction of objects won't work
19713 with the new undo framework.
19715 * app/disp_callbacks.c:
19716 Save undo info for object menu calls and key_events.
19718 * app/properties.c:
19719 Save undo info on properties apply.
19721 * lib/dia_image.[ch]:
19722 Add refcounting for images.
19724 * app/render_eps.c:
19725 * app/render_gdk.c:
19727 DiaImage * -> DiaImage
19730 Add undo functions for object state changes.
19734 change of semntics for focus->key_event.
19735 Now returns TRUE if the object recieving the event
19741 * lib/orth_conn.[ch]:
19742 Don't automatically create and delete segments when
19743 handles are moved. This is incompatible with undo.
19744 Added state get, set and free functions.
19746 * lib/orth_conn.[ch]:
19747 Added state get, set and free functions.
19749 * objects/UML/object.c:
19750 * objects/UML/uml.c:
19751 Fixed typo "UML - Objet" -> "UML - Object".
19752 Saved old for backwards compatibility.
19754 * objects/standard/arc.c:
19755 * objects/standard/box.c:
19756 * objects/standard/ellipse.c:
19757 * objects/standard/image.c:
19758 * objects/standard/line.c:
19759 * objects/standard/polyline.c:
19760 * objects/standard/textobj.c:
19761 * objects/standard/zigzagline.c:
19762 Added get/set state functions.
19763 Textobj has a redo crash-bug.
19764 Zigzagline needs object menus to add segments.
19767 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
19769 * app/render_eps.c (set_dashlength):
19770 Don't generate eps files with zero dash-length.
19772 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
19775 * app/create_object.c:
19777 Finished undo for create and paste.
19780 Started properties undo.
19782 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
19785 Added resizeable groups.
19788 Removed unused variable.
19792 Undo/redo for cut/delete done.
19794 * app/create_object.c:
19795 * app/modify_tool.c:
19796 * lib/diagramdata.[ch]:
19797 * app/diagram.[ch]:
19798 renamed diagram_add_selected -> diagram_select
19799 renamed diagram_remove_selected -> diagram_unselect
19801 * app/properties.[ch]:
19802 Added properties_hide_if_shown() function.
19804 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
19810 * app/commands.[ch]
19811 * app/modify_tool.[ch]
19812 * app/object_ops.[ch]
19813 * app/connectionpoint_ops.c
19815 Use undo functions.
19816 WARNING: Not finished. Will break.
19817 Finished: move object, move handle.
19820 Added diagram_selected_break_external() function.
19821 It removes all connections between selected objects
19823 Add undo stack to Diagram.
19825 * lib/diagramdata.[ch]
19826 Added layer_remove_objects() function
19828 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
19830 * objects/FS/Makefile.am
19831 * objects/sybase/Makefile.am
19832 Now uses GNOME_CFLAGS.
19835 Now compiles with GNOME even if popt.h isn't available.
19837 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
19840 * objects/Makefile.am
19842 First version of sybase objects from
19843 Brian Bruns <camber@umcc.ais.org>
19845 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
19848 Added fr to ALL_LINGUAS
19850 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
19854 Popt-code is activated if popt is available.
19856 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
19858 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19860 * lib/orth_conn.[ch]:
19861 Added orthconn_get_middle_handle()
19864 Added text_set_cursor_at_end()
19867 Added first version of functions structure diagrams.
19869 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
19871 * app/modify_tool.c:
19872 Include math.h to remove warning.
19874 * app/commands.c (dialogs_properties_callback):
19875 Bring up correct properties dialog when selected
19877 From Dan Cohn <dan@internap.com>
19879 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
19881 Patch from Lars R. Clausen
19883 * app/modify_tool.c:
19884 Changed abs to fabs.
19886 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
19892 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
19894 Patches from Dan Cohn <dan@internap.com>
19896 * app/commands.[ch]:
19897 * app/display.[ch]:
19899 * app/preferences.[ch]:
19900 Implements ability to turn on/off connection points in
19901 current drawing and in global prefs.
19903 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
19905 * lib/widgets.c (dia_line_style_selector_init):
19908 * lib/diagramdata.c (layer_update_extents):
19909 Fixed uninitialized variable error.
19911 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
19914 Made some changes to the gdk_imlib visual+colormap setup.
19916 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19918 * objects/UML/usecase.c:
19919 * objects/UML/lifeline.c
19922 * objects/UML/object.c:
19923 * objects/UML/message.c:
19924 Changed font from Courier to Helvetica.
19928 Added dash lenth to the LineStyle widget.
19930 * objects/standard/ellipse.c :
19931 * objects/standard/zigzagline.c:
19932 * objects/standard/line.c:
19933 Added dash lenght property.
19935 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
19937 * app/render_eps.c:
19938 First shot at latin1 encoded eps files.
19939 Works, but the eps files get a bit large.
19941 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
19943 * objects/UML/class.[ch]:
19944 * objects/UML/uml.[ch]:
19945 Reverted the line wrap changes.
19946 Some day this might return, but it has to be selectable and
19947 default to off for loaded objects, otherwise it breaks file
19948 format compatibility.
19949 There was also some complains about how it looked, so a making it
19950 selectable is good for this too.
19952 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
19954 * objects/UML/class.[ch]:
19955 Some indentation cleanup.
19956 Added wrap_lines variable to class.
19957 I'll fix the line break stuff tomorrow.
19959 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
19962 Added ref to poly_conn.o.
19964 * objects/standard/polyline.c (polyline_draw):
19965 * objects/standard/zigzagline.c (zigzagline_draw):
19966 * objects/standard/arc.c (arc_draw):
19967 * objects/standard/line.c (line_draw):
19968 Draw lines before arrows. This makes hollow arrows not
19971 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
19973 Changes from Kim Peasley <kpeasley@ior.com>
19975 * objects/UML/class.c:
19976 Break lines with long operations so classes won't be
19979 * objects/UML/uml.[ch]:
19980 Helperfunctions for the above.
19982 * objects/UML/objects.c:
19983 Fix bug that duplicated the text in the attributes
19984 textwidget each time the object was selected.
19986 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
19988 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19990 * app/modify_tool.c:
19991 * app/modify_tool.h:
19992 Control-drag is restricted to vertical/horizontal movement
19995 ModifierKeys argument added to object_move_handle
19997 * app/connectionpoint_ops.c:
19998 * app/create_object.c:
19999 * app/object_ops.c:
20000 * objects/ER/attribute.c:
20001 * objects/ER/entity.c:
20002 * objects/ER/participation.c:
20003 * objects/ER/relationship.c:
20004 * objects/UML/actor.c:
20005 * objects/UML/association.c:
20006 * objects/UML/class.c:
20007 * objects/UML/classicon.c:
20008 * objects/UML/component.c:
20009 * objects/UML/constraint.c:
20010 * objects/UML/dependency.c:
20011 * objects/UML/generalization.c:
20012 * objects/UML/implements.c:
20013 * objects/UML/large_package.c:
20014 * objects/UML/lifeline.c:
20015 * objects/UML/message.c:
20016 * objects/UML/note.c:
20017 * objects/UML/object.c:
20018 * objects/UML/realizes.c:
20019 * objects/UML/small_package.c:
20020 * objects/UML/state.c:
20021 * objects/UML/usecase.c:
20022 * objects/network/bus.c:
20023 * objects/standard/arc.c:
20024 * objects/standard/box.c:
20025 * objects/standard/ellipse.c:
20026 * objects/standard/image.c:
20027 * objects/standard/line.c:
20028 * objects/standard/polyline.c:
20029 * objects/standard/textobj.c:
20030 * objects/standard/zigzagline.c:
20031 Changed calls to move_handle to pass the new argument.
20035 Default line width, color etc #define'd
20038 Updates of danish menus
20040 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
20043 * dia_gnome_icon.png
20044 * dia_gnome_menu_icon.png
20046 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
20049 About dialog shows dia_logo.png. Removed the GNOME about dialog.
20052 Distribute the icons and install logo in pkgdatadir.
20055 Added DATADIR-define.
20057 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
20058 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
20061 Updated version number, made setup quiet, can build from cvs,
20062 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
20065 * objects/ER/Makefile.am
20066 * objects/UML/Makefile.am
20067 * objects/network/Makefile.am
20068 * objects/standard/Makefile.am
20069 now builds better with gnome
20071 * objects/UML/class_dialog.c
20072 Fixed typo -> po files must be updated too!!
20074 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
20077 Added reference so that widgets.o gets linked to the app.
20079 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20081 * objects/UML/classicon.c:
20084 * objects/UML/actor.c:
20085 Changed position of 'snap-to-grid' so connection points are
20088 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
20090 * objects/UML/classicon.c:
20091 Changed position of 'snap-to-grid'.
20092 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20094 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
20096 * objects/network/antenna.c
20097 * objects/network/flash.c
20098 * objects/network/hub.c
20099 * objects/network/modem.c
20100 * objects/network/modularswitch.c
20101 * objects/network/rj45plug.c
20102 * objects/network/scead-plug.c
20103 * objects/network/network.c
20104 * objects/network/Makefile.am
20105 * objects/network/pixmaps/antenna.xpm
20106 * objects/network/pixmaps/flash.xpm
20107 * objects/network/pixmaps/hub.xpm
20108 * objects/network/pixmaps/modem.xpm
20109 * objects/network/pixmaps/modularswitch.xpm
20110 * objects/network/pixmaps/rj45plug.xpm
20111 * objects/network/pixmaps/sceadplug.xpm
20112 * objects/network/pixmaps/Makefile.am
20113 Lots of new network objects from
20114 Roland Steinbach <roland@support-system.com>.
20116 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20118 * objects/UML/classicon.c:
20119 Fixed connection positions, saved type as int (it has 3 states),
20120 and other small fixes.
20122 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
20124 * app/preferences.c:
20126 Added preference compress_save. It lets dia save uncompressed
20129 * objects/UML/class.c:
20130 Fixed bug with size calculation on methods that had class scope.
20132 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20134 * objects/UML/usecase.c:
20135 Added collaboration mode
20136 Fixed connection points with text > ellipse bug and other
20139 * objects/UML/state.c:
20140 Fixed bug of bad position of text after being either end
20141 or begin, moved and returned to text
20143 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
20145 * app/preferences.c: Add prototype declaration for prefs_apply.
20147 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
20149 * app/preferences.c:
20151 Apply don't hide window.
20153 * app/properties.c:
20156 * objects/UML/object.c:
20157 * objdcts/UML/state.c:
20158 Some data was not copied on copy.
20161 Ben Hochstedler <benh@eeyore.moneng.mei.com>
20163 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
20166 Changed link order between X and libxml.
20167 Some people had problems with an old libz in their
20170 1999-04-09 Kjartan Maraas <kmaraas@online.no>
20172 * po/no.po: updated translation.
20174 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
20176 * lib/message.c (message_error):
20179 * app/commands.[ch]:
20180 * app/diagram.[ch]:
20181 Added begining of xfig importing
20183 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20185 * objects/UML/pixmaps/state.xpm:
20186 * objects/UML/state.c:
20187 New UML object state machine.
20189 * objects/UML/uml.c:
20190 * objects/UML/Makefile.am:
20191 * objects/UML/pixmaps/Makefile.am:
20192 Added the state object.
20194 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
20196 * objects/UML/usecase.c:
20197 Added dialog to allow move text outside the ellipse.
20199 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
20201 * Released Dia 0.41
20202 Tag called DIA_0_41
20207 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
20210 Updated version number to 0.41
20215 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
20218 Changed errormessage for --export-to-ps. Removed call to
20219 g_log_set_always_fatal().
20222 * app/disp_callbacks.c
20224 (i18n) Removed gettext from some debugmessages.
20227 Small fix in GNOME-menus. Added warning that will help track
20228 problems with translations.
20231 (i18n) Updated swedish translation.
20233 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
20238 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
20244 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
20247 (i18n) Updated the danish translation.
20248 From Lars R. Clausen.
20250 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
20253 (i18n) The popup menu is translated now.
20256 (i18n) Updated swedish translation.
20258 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
20260 * Released Dia 0.40
20261 Tag called DIA_0_40
20264 Updated for new release
20266 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
20268 * objects/network/bus.c:
20269 Added initialization of properties dialog to NULL.
20271 * app/commands.c (edit_cut_callback):
20272 Update menu sensitivity when cut object.
20274 * app/modify_tool.c (click_select_object):
20275 * app/modify_tool.c (modify_button_release):
20276 Call diagram_update_menu_sensitivity() when
20277 selecting objects to update stuff that depends
20278 on selected/not selected.
20280 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
20283 Change order of subdir so that libintl.a builds.
20284 Now passed make distcheck.
20286 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20288 * lib/font.c (init_x11_font):
20291 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20293 * objects/UML/pixmaps/classicon.xpm:
20294 * objects/UML/classicon.c:
20295 * objects/UML/uml.c:
20296 Added the class stereotype icon objects.
20299 Changed default ps extension from .ps to .eps.
20301 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20304 Added diamenu.h and intl.h
20309 * objects/UML/pixmaps/Makefile.am:
20312 * objects/standard/pixmaps/Makefile.am:
20315 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20318 Use a scalable font before fixed when real font not found.
20323 * objects/standard/image.c:
20324 Better handling of loading/saving of images.
20327 Added some text about cvs, fonts and rewrote some parts.
20330 Updated with new stuff.
20333 Bump up version number to 0.40.
20335 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20338 Moved diagram_add_ddisplay() call into new_display().
20339 Fixed new_display to not use uninitialized variables
20340 causing loaded files to show up as black (or garbage).
20344 Removed unneeded calls to diagram_add_ddisplay().
20346 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20348 * objects/UML/lifeline.c:
20350 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20352 * objects/UML/message.c:
20353 Fixed bug loading messages with null-text.
20354 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20356 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
20359 Updated swedish translation.
20362 (GNOME) Removed help-browser from help menu. Fixed typo.
20365 (GNOME) Accelerators in diagrams should work now.
20367 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
20372 * app/disp_callbacks.c
20376 * app/preferences.c
20378 * lib/diagramdata.c
20384 * objects/network/*.c
20385 * objects/standard/*.c
20386 * po/update_pofiles_in.sh
20388 More i18n. All strings (expect rare debug messages) can be
20389 translated now. Moved intl.h from app to lib. Updated
20390 update_pofiles_in.sh to check all .c-files.
20392 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
20394 * app/disp_callbacks.c (ddisplay_canvas_events):
20395 Don't drop keys while num-lock, scroll-lock etc is on.
20397 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20399 * app/render_eps.c (draw_image):
20400 Fixed exporting of images.
20401 Still not perfect, but not outright buggy.
20403 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20407 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
20410 Added $* to the dia call in run_dia.sh
20412 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20415 Added color_equals() call.
20417 * objects/standard/arc.c:
20418 * objects/standard/line.c:
20419 Don't save unneccesary data.
20421 * objects/standard/box.c:
20422 * objects/standard/ellipse.c:
20423 * objects/standard/image.c:
20424 * objects/standard/polyline.c:
20425 * objects/standard/zigzagline.c:
20426 Share properties dialog.
20427 Don't save unneccesary data.
20429 1999-03-22 Seth Alves <alves@hungry.com>
20434 small changes so that gnome menus aren't broken
20436 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20439 Added danish translation from lrclause@cs.uiuc.edu.
20444 * po/update_pofiles_in.sh:
20445 Added script that updates POFILES.in.
20446 This should probably be run automatically from somewhere.
20448 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
20450 * app/diagram.[ch]:
20451 Added function diagram_update_menu_sensitivity() which
20452 sets the sensitivity of some menu items. This function
20453 is called at each diagram state change (from diagram_modified()).
20454 This is needed because otherwise the keyboard accelerators
20455 don't work correctly.
20457 * app/display.[ch]:
20458 Changed display_set_menu_sensitivity() to display_update_menu_state().
20459 Moved lots of code to diagram_update_menu_sensitivity() in
20460 diagram.c. Optimized to only look up menu-items from path:s once.
20462 * app/disp_callbacks.c:
20464 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
20465 Need to set GDK_FOCUS_CHANGE_MASK.
20467 * app/create_object.c:
20468 Call diagram_modified when an object has been created and
20469 selected so that the menu sensitivity is updated.
20472 removed menus_set_sensitive() and menus_set_state(). Exported
20473 renamed function menus_get_item_from_path().
20475 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
20477 * app/disp_callbacks.c:
20478 Show (empty) object menus on object that has none.
20479 Show title on object menus.
20482 Set zoom factor correctly when opening new displays.
20483 Better setting of scrollbars.
20487 Some reformating cleanup.
20490 Added title to object menus.
20493 Added object menu method (NULL-valued) to all objects.
20495 * objects/standard/polyline.c:
20496 Added title to object menu.
20498 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
20500 * app/preferences.[ch]:
20501 New files. Implements the preferences dialog and
20502 loading/saving of ~/.diarc.
20505 Added preferences.[ch].
20508 Load preferences on startup.
20510 * app/commands.[ch]:
20511 Added file_preferences_callback to show the preferences dialog.
20513 * app/create_object.c:
20514 Update extents when creating object.
20515 Use the reset_tools_after_create preferences setting.
20518 Use preferences when creating new display.
20521 Add preferences to menu.
20524 * app/layer_dialog.c:
20525 * app/properties.c:
20526 Don't allow shrinking of dialog.
20527 Add i18n of some strings.
20529 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
20531 Norwegian translation added.
20533 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
20535 * objects/standard/line.c:
20536 * objects/standard/arc.c:
20537 * objects/standard/polyline.c:
20538 * objects/standard/zigzagline.c:
20539 Loading of arrow data fixed.
20541 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
20544 Update extents when saving and exporting to postscript.
20545 Fixes a bug with postscript bounding-box being wrong.
20548 Changed border width from 5 to 2.
20551 Move grouped objects by the move-point of the first object.
20552 Fixes bug that made all objects in the group be off-grid
20553 when moving the group, even though all objects was on-grid.
20555 * app/layer_dialog.c:
20556 Update extents when changing layer.
20558 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20560 * objects/UML/uml.c:
20561 * objects/UML/component.c:
20562 * objects/UML/pixmaps/component.xpm:
20563 Added the UML component object
20565 1999-03-04 Seth Alves <alves@hungry.com>
20567 * objects/UML/generalization.c (generalization_create): avoid
20568 math on uninitialized genlz->text_width (NaN causes sigfpe)
20570 * objects/UML/realizes.c (realizes_create): same
20572 * objects/UML/dependency.c (dependency_create): same
20574 1999-03-01 Seth Alves <alves@hungry.com>
20576 * app/display.c (ddisplay_active): don't fly a warning panel
20577 if ddisplay_active is called when no views are open.
20579 * app/commands.c (set_default_file_selection_directory): set
20580 file selector's default directory if there is already
20583 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20586 New info about imlib requirements.
20589 Added lib/pixmaps/Makefile to created makefiles.
20593 Change from obsoleted to newer gtk calls.
20596 Pass filename of the diagram when loading and saving.
20597 This creates better oportunities to handle filename saving.
20600 Pass filenames to load and save methods.
20602 * lib/dia_image.[ch]:
20603 Added dia_image_get_broken() call that returns a image which
20604 is used for 'broken' images.
20606 * lib/pixmaps/.cvsignore:
20607 * lib/pixmaps/Makefile.am:
20608 * lib/pixmaps/broken.xpm:
20609 New files for the broken image bitmap.
20612 Fixed bug with double destroyed filedialog.
20615 Updated load and save prototypes to use the new filename argument.
20618 Render broken image instead of line when got no image.
20619 Use the new filename in load and save to save (if possible)
20620 relative pathnames and to better try to find loaded images.
20622 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20625 Some updates to the todo file.
20629 Place over/place over => sent to back/bring to front.
20630 Added some keyboard shortcuts to menus.
20632 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20635 Changed string saving/loading to a new method. This should
20636 be much better att handling &,<,> and whitespaces.
20637 Loading strings of the old kind is still supported for backwards
20640 * samples/ER-demo.dia:
20641 * samples/UML-demo.dia:
20642 Updated to use the new strings.
20645 statusbar modified update fix.
20647 1999-02-27 Seth Alves <alves@hungry.com>
20649 * app/app_procs.c (app_init): added a --export-to-ps option
20650 which will cause dia to load a dia file and save it as ps
20651 and then exit. this is a little bogus, because it still
20652 pops up a window. this option only shows up if --enable-gnome
20655 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20656 menu when built with --enable-gnome
20658 * app/interface.c (create_display_shell): build status bar
20659 even if --enable-gnome is used
20661 * app/menus.c: menu fixes for --enable-gnome
20663 * app/commands.c (file_open_dialog_ok_callback): fixed up
20664 menus when --enable-gnome is used
20665 (file_export_to_eps_callback): set a default file name
20666 when dialog is created
20668 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
20670 * objects/UML/association.c (association_create):
20671 Fixed usage of not initialized variable.
20672 Pointed out by Seth Alves <alves@hungry.com>.
20674 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
20677 Fixed detection of gnome-xml.
20678 From Valtteri Vuorikoski <vuori@k.notcom.org>.
20681 Fixed error detection on dlsym calls.
20682 From Valtteri Vuorikoski <vuori@k.notcom.org>.
20684 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
20686 * objects/UML/message.c (fill_in_dialog):
20689 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20691 * objects/standard/zigzagline.c:
20692 * objects/standard/polyline.c:
20693 * objects/standard/line.c:
20694 * objects/standard/arc.c:
20698 Support for sizeable arrows.
20700 * objects/standard/box.c:
20701 * objects/standard/ellipse.c:
20702 * objects/standard/image.c:
20703 Changed creation handle to lower-right.
20704 Transparent box/ellipse.
20706 * objects/standard/image.c:
20707 Better layout of properties boxes.
20709 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20711 * objects/UML/message.c (fill_in_dialog):
20712 Fixed dialog fill in. Common dialog for all messages.
20714 * objects/UML/object.c:
20715 Added multiple instance. Dialog related bugs fixed.
20716 Common dialog for all instances. Completed copy and destroy.
20718 * objects/UML/lifeline.c (lifeline_load):
20719 Conn initialization bug fixed and few bad loading prevention flags.
20720 Common dialog for all lifeline objects.
20722 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20724 * lib/dia_image.[ch]:
20725 More work on the DiaImage abstraction.
20728 * app/render_eps.c:
20729 * app/render_gdk.c:
20730 * objects/standard/image.c:
20731 Use the new DiaImage calls.
20733 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20737 Reversed the meaning of align horizontal/vertical.
20739 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20741 * app/load_save.c (diagram_load):
20742 Statusbar update fix.
20744 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20746 * app/interface.c (create_display_shell):
20747 Fixed status bar size.
20749 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20751 * lib/dia_image.[ch]:
20752 Added extern declaration for dia_image_release.
20753 Removed dia_image_draw, as it's not neseccary.
20755 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20757 * app/object_ops.c:
20759 Added equal distance alignment both vertical and horizontal.
20761 * objects/UML/object.c:
20762 Added a couple of attributes to load/read that were missing.
20764 * objects/UML/lifeline.c:
20765 Better handling of handles. Fixed another bug I forgot to add
20768 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
20770 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20772 * lib/dia_image.[ch]:
20774 New files. DiaImage wraps the GdkImlibImage.
20777 * app/render_eps.c:
20778 * app/render_gdk.c:
20779 * lib/render_store.[ch]:
20780 * objects/standard/image.c:
20781 Use the new DiaImagetype.
20784 Removed unused variable to eliminate warning.
20786 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
20788 * objects/standard/box.c:
20789 Added rounded corners on the box object.
20791 * lib/widgets.[ch]:
20792 Updated the DiaFileSelector widget.
20794 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20796 * objects/UML/object.c (objet_draw):
20797 Completed underlining of all object name lines.
20799 * objects/UML/message.c (fill_in_dialog):
20800 Fixed a bug that filled incorrectly the message's dialog.
20802 * objects/UML/lifeline.c (lifeline_load):
20803 Some cleanning and fixed a couple of bugs that caused
20804 crashes after reading diagrams with lifelines.
20807 Added flags to prevent crash with void strings
20809 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20810 * app/display.[ch]:
20811 Added statusbar to the display widget. Currently shows the zoom
20812 factor and modified flag of the viewed diagram. The statusbar is
20813 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20814 This caused the following additions:
20816 * app/diagram.[ch]:
20817 Added function diagram_set_modified. Calls
20818 ddisplay_update_statusbar for all displays showing the modified diagram.
20819 Changed diagram_modified to call diagram_set_modified.
20822 Added the creation of the statusbar.
20825 diagram_save now calls diagram_set_modified instead of setting
20826 dia->modified. Needed to force call to display_update_statusbar
20829 Changed the way view_show_all works. Now calls ddisplay_zoom
20830 instead of directly setting the zoom_factor, so the zoom factor is
20831 correctly shown in the statusbar.
20834 Fixed rubberband zoom to use ddisplay_zoom().
20836 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
20839 Rudimentary GNOME session management.
20841 * app/disp_callbacks.c
20845 GNOME menus. Problems:
20846 Callbacks doesn't get user_data.
20847 Weird warnings when creating popup menus.
20848 menus_set_sensitive(), menus_set_state() doesn't work.
20850 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20853 Add AM_PATH_GDK_IMLIB() call.
20856 Add gdk_imlib to linking flags.
20860 Print library-loading error messages on stdout too.
20863 Add standard image to toolbox.
20865 * app/render_eps.c:
20866 Set a more reasonable dot length. Fixed
20867 missing initialization of dot length.
20868 Added draw_image methods.
20870 * app/render_gdk.c (new_gdk_renderer):
20871 Dot a bit wider. Looks good in normal mode now.
20873 * objects/standard/image.c:
20874 * objects/standard/pixmaps/image.xpm:
20875 New files. Standard object for images.
20877 * app/render_eps.c (set_linestyle):
20878 * app/render_gdk.c (set_linestyle):
20879 * lib/widgets.c (dia_line_style_selector_init):
20881 New line style DOTTED.
20884 * lib/render_store.c:
20885 Change DrawImage call to use gdk_imlib.
20887 * lib/widgets.[ch]:
20888 Added widgets for selecting files.
20889 Added dotted to the linestyle selector.
20891 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
20893 * objects/network/printer.c:
20894 * objects/network/network.c:
20895 * objects/network/pixmaps/printer.xpm:
20896 * objects/network/.cvsignore:
20897 * objects/network/Makefile.am:
20898 * objects/network/pixmaps/Makefile.am:
20899 New printer object in network.
20900 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20903 Added known XML bug.
20905 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
20909 Reverted back from #include <gnome-xml/tree.h> to
20910 #include <tree.h> as this is fixed by the xml-config program.
20911 The former way broke for some people.
20912 Reported by blizzard@redhat.com.
20914 * objects/UML/lifeline.c:
20915 * objects/UML/message.c:
20916 * objects/UML/object.c:
20917 Removed some warnings.
20919 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20921 * objects/UML/lifeline.c:
20922 Fixed connection points over the life line when the focus of
20923 control is not drawn.
20925 * objects/UML/message.c:
20926 Now a recursive message can be freely resized using the handles.
20928 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20930 * objects/UML/lifeline.c:
20931 Added connection points.
20932 Added properties dialog with the option to draw/hide focus of control
20933 box and destruction mark.
20935 * objects/UML/object.c:
20936 Added properties dialog and stereotype, explicit state and attributes.
20937 It's also possible to mark the object as active.
20939 * objects/UML/pixmaps/object.xpm:
20942 * objects/UML/message.c:
20943 Added "recursive" message type (was not necessary to use OrthConn).
20945 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
20947 * objects/standard/arc.c:
20948 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20950 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
20952 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20956 Update xml includes to gnome-xml/*.h.
20958 * objects/standard/arc.c:
20959 Only one property dialog per type.
20960 Fix arrows directions.
20962 * objects/standard/box.c:
20963 * objects/standard/ellipse.c:
20964 * objects/standard/textobj.c
20965 Added default properties dialog.
20968 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20970 * objects/UML/Makefile.am:
20971 * objects/UML/uml.c:
20972 * objects/UML/lifeline.c:
20973 * objects/UML/object.c:
20974 * objects/UML/message.c:
20975 * objects/UML/pixmaps/lifeline.xpm:
20976 * objects/UML/pixmaps/object.xpm:
20977 * objects/UML/pixmaps/message.xpm:
20978 Added 3 new UML objects for dynamic modeling. To avoid internal
20979 conflicts, the name "objet" is used for object "object".
20982 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20985 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
20987 * app/display.[ch]:
20988 * app/modify_tool.c:
20989 Added autoscrolling while doing rubber-band select.
20990 This patch from Matthias Köster
20991 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20994 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
20996 * app/defaults.[ch]:
20997 New files, deals with default properties dialog.
21000 New file. Contains definitions for the new object menu.
21002 * lib/poly_conn.[ch]:
21003 New file. Base class for poly-line like objects.
21005 * objects/standard/polyline.c:
21006 * objects/standard/pixmaps/polyline.xpm:
21007 New files. Polyline object.
21010 Fixed bug with infinite loop when registering sheets.
21013 Removed unneccesary stuff.
21015 * app/disp_callbacks.c:
21016 Support for object menus.
21019 Added polyline to toolbox.
21020 Added call to tool_options_dialog_show() when double clicking on
21024 New function tool_options_dialog_show() for tool properties.
21030 Added ObjectType methods for handling object default dialogs.
21031 Added Object method for handling object_menu.
21032 Added unused methods to ObjectTypeOps for future binary
21035 * lib/widgets.[ch]:
21036 Added DiaArrowTypeSelector widget.
21038 * objects/standard/arc.c:
21039 * objects/standard/zigzagline.c:
21040 Added support for default properties.
21042 * objects/standard/line.c:
21043 Added support for default properties.
21044 Just use one properties dialog for all line objects. NOTE: This
21045 seems to have a bug. We're working on it.
21047 * standard/standard.c:
21048 Add the polyline object.
21050 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
21052 * app/modify_tool.c:
21053 Commented out buggy transitive select function. It wasn't really
21054 meant to go into cvs.
21057 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
21069 Swedish translation. Not completed.
21073 Added possibility to enable GNOME specific code with configure.
21076 Added possibility to set debug level with configure.
21079 Added about dialog.
21085 Added some GNOME specific code. Not ready for use.
21087 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
21090 Added text about needing gtk 1.1.13 and gnome-xml.
21093 Described changes since last version (0.20).
21095 Released version 0.30, tagged DIA_0_30.
21097 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
21099 * app/magnify.c (magnify_button_release):
21100 Fixed a problem when zooming in on a very small box would
21101 not release the grabbed pointer-focus.
21103 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
21105 * app/load_save.c (diagram_load):
21106 Be somewhat more robust when loading files that
21109 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
21113 * objects/UML/uml.c:
21114 * objects/network/network.c:
21115 * objects/standard/standard.c:
21116 Added versioning of object libraries.
21118 * app/create_object.c:
21119 Don't change tool when an object is created.
21121 * objects/network/network.c:
21126 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
21129 Updated gtk requirement to Gtk+ 1.1.13.
21132 Always add one screenful of scrolling space on
21133 each side of a diagram window.
21135 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
21138 Tell automake to auto-install missing files.
21141 Renamed deprecated Gtk+ function.
21143 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
21147 * samples/Makefile.am:
21148 * samples/ER-demo.dia:
21149 * samples/UML-demo.dia:
21150 Added samples directory.
21151 Added samples for ER and UML.
21154 * app/disp_callbacks.c:
21156 Zoom is done by sqrt(2) instead of 2.
21157 Lots of more zoom options in the menu.
21159 * objects/ER/relationship.c:
21160 Relationships have 8 connectionpoints instead of 4.
21162 * objects/UML/class.c:
21163 UML class name font a bit smaller.
21164 Fixed stupid bug in the copy operation.
21167 Displays are opened at 500x400 instead of 256x256.
21170 Fixup of internal error message.
21172 * app/color_area.c:
21174 * app/modify_tool.c:
21176 Removed debug printf's.
21179 Added new known bug.
21181 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
21185 Fixed so accelerator groups work in all windows.
21186 Updated to new gtk function names.
21192 Updated to new gtk function names.
21193 Set sensitivity of the align menu items.
21195 * objects/ER/pixmaps/Makefile.am:
21196 * objects/UML/pixmaps/Makefile.am:
21197 * objects/network/pixmaps/Makefile.am:
21198 Fix so that make dist works.
21201 * app/color_area.c:
21205 * app/layer_dialog.c:
21207 * app/object_ops.c:
21208 * app/properties.c:
21209 * lib/diagramdata.[ch]:
21211 * lib/objects/ER/attribute.c:
21212 * lib/objects/ER/entity.c:
21213 * lib/objects/ER/participation.c:
21214 * lib/objects/ER/relationship.c:
21215 * lib/objects/ER/.c:
21216 * objects/UML/actor.c:
21217 * objects/UML/association.c:
21218 * objects/UML/class_dialog.c:
21219 * objects/UML/dependency.c:
21220 * objects/UML/generalization.c:
21221 * objects/UML/large_package.c:
21222 * objects/UML/realizes.c:
21225 Updated to new gtk function names.
21228 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
21234 Fixed loading of diagrams specified as arguments.
21236 * objects/ER/attribute.c:
21237 * objects/ER/entity.c:
21239 * objects/ER/participation.c:
21240 * objects/ER/relationship.c:
21241 Updated the ER objects.
21244 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
21248 * objects/Makefile.am:
21249 * objects/ER/attribute.c:
21250 * objects/ER/entity.c:
21252 * objects/ER/participation.c:
21253 * objects/ER/relationship.c:
21254 * objects/ER/pixmaps/Makefile.am:
21255 * objects/ER/pixmaps/attribute.xpm:
21256 * objects/ER/pixmaps/entity.xpm:
21257 * objects/ER/pixmaps/participation.xpm:
21258 * objects/ER/pixmaps/relationship.xpm:
21259 * objects/ER/pixmaps/weakentity.xpm:
21260 First commit of entity relationship objects.
21261 These were done by hallon@lysator.liu.se.
21262 There are still stuff to do on these.
21264 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
21269 * app/diagram.[ch]:
21270 Change diagram_remove_all_selected to take new argument
21271 delete_empty. Empty objects are deleted only if it is TRUE.
21272 Removed call to close_eps_renderer. This is now done in end_render
21273 in the eps renderer.
21275 * app/create_object.c:
21276 * app/layer_dialog.c:
21277 Update calls to diagram_remove_all_selected.
21280 Update calls to diagram_remove_all_selected.
21281 Some code reformating.
21282 Changed order of adding updates i align_h and align_v.
21284 * app/modify_tool.c:
21285 Update calls to diagram_remove_all_selected.
21286 Added pointer grab when doing rubber-band selection, this fixes
21287 the bug when draging the box over to another window.
21289 * app/connectionpoint_ops.[ch]:
21290 diagram_update_connections_object changed to take an argument
21291 update_nonmoved. This lets connections that has not moved, but
21292 the stuff they're connected to has been moved work.
21293 Update calls to the new diagram_update_connections_object.
21295 * app/properties.c:
21296 Update calls to the new diagram_update_connections_object.
21297 Update extents when properties are applied.
21299 * app/disp_callbacks.c:
21300 Added support for zooming with the '+' and '-' keys.
21303 Removed old keyboard shortcuts for zoom.
21306 Added calls begin_render and end_render to renderer.
21307 These can be used for setup and cleanup.
21309 * lib/diagramdata.c:
21310 Added calls to begin_render and end_render in data_render.
21312 * app/render_gdk.c:
21313 Added begin_render and end_render.
21315 * app/render_eps.[ch]:
21316 Added begin_render and end_render.
21317 Moved close_eps_renderer code to end_render.
21318 Various fixes to the generated eps code. This fixes importing
21319 generated eps into LYX.
21321 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
21327 Menus for alignment updated.
21329 * app/object_ops.[ch]:
21330 Functions for object alignment updated.
21332 * app/commands.[ch]:
21333 Object alignment callbacks updated.
21334 New diagrams are called Untitled-<nr>.
21336 * app/layer_dialog.c:
21337 Active layer selected when showing layers from new
21341 Compress xml files when saving.
21342 Use xml namespace 'dia'.
21345 Minor comment update.
21347 * objects/UML/class_dialog.c:
21348 Cleanup of the gkt_list_item moving code.
21349 Fixed bug with update of operation when moving parameters.
21351 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
21353 * app/layer_dialog.[ch]:
21354 Fixed the rest of the layers dialog.
21357 Added call to redo layer dialogs diagram list when changing
21360 * lib/diagramdata.[ch]:
21361 Added data_raise_layer and data_lower_layer functions for
21362 raising/lowering layers. Added data_add_layer_at for adding a
21363 layer at a specified index.
21365 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
21367 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
21370 Added support for reading diagrams from the command line.
21372 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
21374 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
21376 * app/commands.[ch]:
21377 Added objects_align_callback().
21380 Added align objects to menu.
21382 * app/object_ops.[ch]:
21383 Add object_list_align().
21385 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
21386 * app/layer_dialog.[ch]:
21387 New files. Handles the layers dialog. Needs a bugfix for glib to
21388 work. Sent patch to gtk-list.
21390 * app/pixmaps/new.xpm:
21391 * app/pixmaps/eye.xbm:
21392 * app/pixmaps/lower.xpm:
21393 * app/pixmaps/raise.xpm:
21394 * app/pixmaps/delete.xpm:
21395 New files. Images for the layer dialog buttons.
21397 * lib/diagramdata.h
21398 * lib/diagramdata.c
21399 New files for the DiagramData and Layer structures and functions.
21402 Added call to create_layer_dialog() on startup.
21404 * app/commands.[ch]:
21405 New callbacks for showing the properties and layout dialog.
21406 Changes for the new DiagramData structure.
21408 * app/connectionpoint_ops.c:
21409 * app/cut_n_paste.c:
21410 * app/diagram.[ch]:
21411 * app/display.[ch]:
21413 * app/modify_tool.c:
21414 * app/object_ops.[ch]:
21415 * app/render_eps.c:
21417 Changes for the new DiagramData structure.
21420 * app/properties.c:
21421 Set correct wmclasses.
21424 Fix load and save of layers.
21427 Update DTD for layers.
21430 New menus for dialogs.
21436 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
21439 Removed the gtk 1.1.5 stuff.
21442 Updated gtk check to version 1.1.5.
21443 Updated version from 0.20 to 0.30
21445 * app/commands.[ch]:
21446 Updated some callbacks to be of type GtkItemFactoryCallback1.
21447 Not all are done yet, but it works anyway.
21450 Removed Gtk 1.0.0 GtkAcceleratorTable references.
21454 Update to Gtk 1.1.x functions.
21455 Use ItemFactory instead of MenuFactory.
21457 * app/render_gdk.c:
21458 Removed Gtk 1.0.0 references.
21460 * objects/UML/class_dialog.c:
21461 Scrolled window updates for Gtk 1.1.5.
21464 Removed ugly fix for gnome-xml bug. Make sure you get the
21465 newest version of gnome-xml from CVS.
21467 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
21470 Removed the xml load/save line.
21476 Removed building of files.c
21479 * lib/connection.c:
21483 * lib/render_object.c:
21484 * objects/UML/actor.c:
21485 * objects/UML/association.c:
21486 * objects/UML/class.c:
21487 * objects/UML/constraint.c:
21488 * objects/UML/dependency.c:
21489 * objects/UML/generalization.c:
21490 * objects/UML/implements.c:
21491 * objects/UML/large_package.c:
21492 * objects/UML/note.c:
21493 * objects/UML/realizes.c:
21494 * objects/UML/small_package.c:
21495 * objects/UML/uml.c:
21496 * objects/UML/usecase.c:
21497 * objects/network/bus.c:
21498 * objects/standard/arc.c:
21499 * objects/standard/box.c:
21500 * objects/standard/ellipse.c:
21501 * objects/standard/line.c:
21502 * objects/standard/textobj.c:
21503 * objects/standard/zigzagline.c:
21504 Removed all includes of files.h
21507 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
21510 Made the val property of string be implied.
21511 This makes it possible to save strings that
21512 are NULL. Just leave out val.
21514 * objects/lib/dia_xml.c:
21515 Fixed string so that it is possible to save strings
21516 that are NULL. Also made an ugly workaround of a
21517 bug in gnome-xml which removes empty properties.
21519 * objects/lib/orth_conn.c:
21520 Fixed a bug in saving. Forgot to step through the
21523 * objects/UML/association.c:
21524 * objects/UML/class.c:
21525 * objects/UML/constraint.c:
21526 * objects/UML/dependency.c:
21527 * objects/UML/generalization.c:
21528 * objects/UML/implements.c:
21529 * objects/UML/large_package.c:
21530 * objects/UML/note.c:
21531 * objects/UML/small_package.c:
21532 * objects/UML/realizes.c:
21533 * objects/UML/usecase.c:
21534 * objects/UML/actor.c:
21535 Fixed UML objects to save as xml.
21536 The last two were done by asierra@servidor.unam.mx (asierra-981204)
21538 * objects/UML/uml.[ch]:
21539 Updated *_write() and *_read() functions to use xml.
21541 * objects/network/bus.c:
21542 * objects/network/computer.c:
21543 * objects/network/disc.c:
21544 * objects/network/monitor.c:
21545 Updated network diagrams to use xml.
21547 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
21550 New file. DTD that describes the xml file format
21553 * lib/dia_xml.[ch]:
21554 New files. Support for saving object to xml files.
21559 Added check for and usage of gnome-xml library.
21562 Major chages. Now saves/loads diagrams as xml.
21565 * lib/element.[ch]:
21566 * lib/connection.[ch]:
21567 * lib/orth_conn.[ch]:
21568 * lib/render_object.[ch]:
21570 Updated object support load/save functions for xml:
21572 * object/standard/arc.c:
21573 * object/standard/box.c:
21574 * object/standard/ellipse.c:
21575 * object/standard/line.c:
21576 * object/standard/textobj.c:
21577 * object/standard/zigzagline.c:
21578 Updated all standard objects to use xml.
21581 Only the standard objects are converted right now, don't
21582 save or load uml or network diagrams yet. Also, since this
21583 is new code it is deemed a bit unstable.
21588 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
21590 * objects/UML/class.c:
21591 Changed classname font to Helvetica.
21592 Added more space above the classname
21594 * objects/UML/usecase.c:
21595 Correct placements of connectionpoints on ellipse.
21596 Better algorithm for deciding aspect ration on
21599 These changes were made by Alejandro Aguilar Sierra
21600 <asierra@servidor.unam.mx>. (asierra-981201)
21602 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
21604 * objects/UML/actor.c:
21605 Changed the extents and alignment of the element
21608 * objects/UML/.cvsignore:
21609 Added usecase.lo and actor.lo.
21611 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
21613 * objects/UML/actor.c:
21614 * objects/UML/usecase.c:
21615 * objects/UML/pixmaps/actor.xpm:
21616 * objects/UML/pixmaps/case.xpm:
21617 New files. Implements usecase and actor UML objects.
21618 These objects are done by Alejandro Aguilar Sierra
21619 <asierra@servidor.unam.mx>.
21621 * objects/UML/Makefile.am:
21622 * objects/UML/pixmaps/Makefile.am:
21623 Added usecase and actor to makefile.
21626 Added Alejandro and Jerome to autors list.
21628 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
21630 * objects/UML/class.c (umlclass_load):
21631 Fixed typo. Reported by Jerome.Abela@solsoft.fr
21633 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
21635 * app/properties.c:
21636 Update connections when doing apply in the properties window.
21638 * objects/UML/uml.[ch]:
21639 * objects/UML/class.[ch]:
21640 * objects/UML/class_dialog.c:
21641 Added connection points on both sides of attributes and
21642 operations in UML classes.
21643 Based on idea from Jerome.Abela@solsoft.fr
21645 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
21648 Some new documentation about handles and connectionpoints.
21651 Added functions object_add_connectionpoint and
21652 object_remove_connectionpoint for handling a dynamic
21653 number of connectionpoints.
21655 * objects/UML/class.c:
21656 Only reserve space for stereotype when it is shown.
21658 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21660 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
21662 * app/connectionpoint_ops.c:
21664 * app/disp_callbacks.c:
21665 * app/display.[ch]:
21667 * app/handle_ops.c:
21669 * app/modify_tool.c:
21670 * app/render_gdk.[ch]:
21672 Huge cleanup of internal rendering system.
21673 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21674 This gives a few new methods for Interactive Renderers for setting
21675 clipping regions and drawing pixel based lines and rects.
21676 Updated the rest of the code to use the new stuff.
21678 * app/render_eps.c:
21682 * objects/standard/zigzagline.c
21683 Fixed unused variable warnings.
21686 Fixedbug with stringwidth where width==0.
21691 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
21693 * lib/widgets.[ch]:
21694 Added suppot for setting the font of a
21695 DiaFontSelector widget.
21696 Also fixed some typos in the header.
21699 Added a comment about the GetPRoperties method call.
21700 You have to make sure to update widget state when
21701 this method is called. (Not all objects do this yet,
21707 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
21710 Fixed problem with height of ascent and descent for fonts.
21711 It didn't use the whole height (==ascent+descent) when calculatine
21712 ascent_ratio and descent_ratio.
21714 * objects/standard/textobj.c:
21715 * objects/standard/box.c:
21716 * objects/standard/ellipse.c:
21717 * objects/standard/line.c:
21718 * objects/standard/arc.c:
21719 Updated and added property dialogs for these objects.
21720 Also added line width/color/style to those objects
21721 that didn't have it.
21722 This change breaks fileformat compatibility for these objects.
21724 * objects/standard/zigzagline.c:
21725 Changed zigzagline to be based on OrthConn, much nicer.
21726 Also added line style and color to properties.
21727 This change breaks fileformat compatibility for zigzagline.
21730 Fixed bug in message(). Forgot a pair of '&'.
21732 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
21734 * lib/widgets.[ch]:
21735 Added DiaColorSelector widget.
21736 This is a colored button that pops up a color selection
21737 dialog when pressed.
21739 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
21741 * lib/widgets.[ch]:
21743 New files, added widgets for selecting fonts, alignment
21744 and line-style. Will be used later.
21746 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
21750 * objects/UML/Makefile.am:
21751 * objects/network/Makefile.am:
21752 * objects/standard/Makefile.am:
21753 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21754 in all Makefile.am.
21756 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
21758 * app/handle_ops.c (handle_draw):
21759 connected HANDLE_MINOR_CONTROL also becomes red.
21761 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
21764 removed -ldl from linking. This is added if needed by configure.
21767 Open dlls with RTLD_LAZY if it is defined.
21768 Some cleanups: char *error -> const char *error
21769 Added fprintf()'s to where we exited because of errors.
21772 Include <sys/types.h>
21774 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
21779 Detect dlopen better.
21780 Detect wether dlopen needs an underscore in the identifier.
21781 This code was mostly borrowed from guile.
21785 * objects/standard/standard.c:
21786 * objects/network/network.c:
21787 * objects/UML/uml.c:
21789 Changed the way sheets reference objects to use just the
21790 name. Changed module loading to a two stage model:
21791 First register_objects() is called for all modules.
21792 Then register_sheets() is called. This means that
21793 sheets can safely include objects from other modules.
21796 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
21798 * objects/network/bus.c:
21799 * objects/network/network.c:
21800 * objects/network/Makefile.am:
21801 New file bus.c. Added new object: Ethernet bus.
21803 * objects/standard/box.c:
21804 Added call to gtk_spin_button_set_numeric for linewidth spinner
21805 in property dialog.
21807 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
21809 * app/connectionpoint_ops.c:
21810 * app/create_object.c:
21812 * app/handle_ops.c:
21813 * app/modify_tool.c:
21814 * lib/connection.c:
21819 * loads of objects:
21820 Changed handle->connectable to handle->connect_type.
21821 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21822 that their connections don't break when moving objects.
21825 Always select the last handle in an object that has
21826 the closest distance.
21828 * lib/geometry.[ch]:
21829 Added rectangle_add_point function.
21832 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
21834 * app/properties.[ch]: New files. Handles the new properties
21837 * app/modify_tool.c: Changed to use new properties dialog.
21839 * app/object_ops.[ch]: Removed object_changed_callback, as it's
21840 not needed anymore. This is now handled differently in
21844 Changed the properties ops for objects. Removed typedefs
21845 ChangedObjectTime and ObjectChangedFunc needed for the old way.
21846 Added object_return_null function.
21849 * lib/render_object.c:
21851 Changed objects to use the new properties dialog.
21854 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
21856 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21859 * autogen.sh: New file. Copied from gtk and added a call to
21860 libtoolize. Anyone knows why this isn't done in gtk?
21862 * Removed autogenerated files.
21864 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
21866 * Added call setlocale(LC_NUMERIC, "C") so that formating of
21867 floating-point numbers in postscript output will be correct.
21868 * Did some cleanup of generated postscript files.