1 2005-05-15 Hans Breuer <hans@breuer.org>
3 * plug-ins/metapost/render_metapost.c : locale independent output
4 (Radek Krahl, bug #301866)
6 2005-05-12 Lars Clausen <lars@raeder.dk>
8 * shapes/Cisco/*.{shape,png}:
9 * sheets/cisco*.sheet.in:
10 Updated with color icons from Ian Redfern, closing bug #303889.
11 Added automatic midpoints, not attempt at adjusting them.
13 2005-05-11 Lars Clausen <lars@raeder.dk>
15 * many shapes: Use mid of bounding box for midpoint, better than
16 mid of connection points generally.
18 2005-05-10 Lars Clausen <lars@raeder.dk>
20 * lib/widgets.c: Decided on one way for the ratio thing in arrow
21 size selector: Fixed ratio is on by default and keeps the sizes
22 at the given ratio, but doesn't clamp them to be the same. Fixes
25 * lib/font.c: Fix for bug #303695: Allow more than one entry of
26 each legacy name, thereby correctly encoding bold and italic of
27 the three main fonts. Also use | rather than || to combine slant
28 and weight, so matching works. Had to remove binary search for
29 new font name, but the list is short enough it's not a problem.
31 2005-05-09 Lars Clausen <lars@raeder.dk>
33 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
35 2005-05-08 Hans Breuer <hans@breuer.org>
37 * objects/UML/class.c : Reverted to have no center point.
38 At first it looked as if there was only the bug to not increase
39 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
40 potentially much more dynamic connection points (to the left
41 and right of every attribute/operation). Now simply adding one
42 between see static and dynamic will screw up any existing diagram
43 which makes use of the dynamic connection points. The would all
44 be connected with an off-by-one error. I have no idea how to
45 code around that. But breaking backward compatibility is no
46 option here. Does not completely fix bug #303301 ...
48 * lib/widget.c(dia_font_selector_set_font): actually set the options
49 menu state. So we are not any longer resetting the font style on Apply.
50 Use "UML - Class" dialog as stress text example.
52 * app/command.c : some people insist to close diagrams already
53 closed using tear-off menus. Maybe we should add a dialog
54 "Do you want to call Dr. Watson now?". If there is no diagram
55 to close anymore just do nothing, fixes bug #303221
56 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
57 Calling this with no display to close is a pathological case.
59 * app/diagram.[hc] : moved object.h and other DiaObject stuff
60 to the implementation in preparation of Big Things(tm)
62 * app/interface.c : less warnings and make it compile. strncmp()
63 does not take a char**, neither does gdk_pixbuf_new_from_inline().
65 * objects/makefile.msc plug-ins/makefile.msc : less output
67 2005-05-08 Lars Clausen <lars@raeder.dk>
69 * lib/orth_conn.c (orthconn_init): The right place to set the
70 default autorouting value. Fixes bug #303291.
72 * app/display.c (ddisplay_close): Patch from Radek Krahl
73 (ptasz3k@o2.pl): Fix crash when using from detached menu
76 2005-05-07 Lars Clausen <lars@raeder.dk>
78 * lib/orth_conn.c (orthconn_load): Autorouting should default to
79 off in diagrams that don't have it explicitly. All diagrams
80 should be explicit about it.
82 2005-05-06 Hans Breuer <hans@breuer.org>
84 * app/samples/Self/*.dia : some UML diagrams describing Dia's
85 inner working (or it's future;)
87 2005-04-26 Lars Clausen <lars@raeder.dk>
89 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
90 change to display of mainpoint to be easier to debug autogenerated
93 2005-04-23 Hans Breuer <hans@breuer.org>
95 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
96 plug-ins/python/pydia-properties.h : use lib/ prefix for
97 Dia internal headers with too common names (fixes bug #173061)
99 * app/display.c : stop special casing the first display of
100 a diagram. Every display now has it's own refernce. The initial
101 reference gets dropped when there is no display anymore. See
102 diagram_remove_ddisplay(). Fixes bug #300744.
104 * app/diapsft2renderer.c : locale independent output
105 (Radek Krahl, bug #300847)
106 * app/paginate_psprint.c : fixing use of setlocale() calls
107 (Radek Krahl, bug #300886)
108 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
109 (Radek Krahl, bug #300889)
111 * objects/UML/class.c : fix another crash with the line
112 wrapping code (Gabor Simon, bug #160865)
114 * plug-ins/cairo/diacairo.c : image rendering had an endianess
115 issue (or is this working around a libpixman bug?;)
117 2005-04-21 Lars Clausen <lars@raeder.dk>
119 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
121 * shapes/**/*.shape: All shapes now have midpoints.
123 2005-04-20 Lars Clausen <lars@raeder.dk>
125 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
126 (Radek Krahl): Make sure there's enough handles for the line.
129 * objects/UML/node.c (node_draw): Better drawing method avoids
130 garbage after moving. Fixes bug #301032.
132 2005-04-17 Hans Breuer <hans@breuer.org>
134 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
135 changes (whould compile with current cvs and 0.(3|4).0
137 2005-04-11 Lars Clausen <lars@raeder.dk>
139 * xmldocs.make (all): Fix to put installed docs in right place
142 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
145 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
146 (Leonardo Boshell): Use standard gnome help if called with Gnome.
148 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
149 locale issues for eps output. Fixes bug #173135.
151 2005-04-10 Hans Breuer <hans@breuer.org>
153 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
154 changes (somewhat broken)
156 * plug-ins/pstricks/render_pstricks.c : still C89 ...
157 * objects/custom/shape_info.c : ... but with prototypes
159 2005-04-07 Lars Clausen <lars@raeder.dk>
162 * plug-ins/svg/render_svg.c:
163 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
164 Make decimal separators be correct in save file formats
165 (non-localized). Fixes bugs #172529 and 172531.
167 2005-04-06 Lars Clausen <lars@raeder.dk>
169 * app/create_object.c (create_object_button_release):
170 * app/modify_tool.c (modify_button_release): Correct activations
173 2005-04-05 Simon Kågström <ska@bth.se>
175 * app/app_procs.c: the --show-layers option can now handle numeric
178 2005-04-05 Lars Clausen <lars@raeder.dk>
180 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
181 (Tom Kast): Avoid blockiness caused by bad updates.
183 2005-04-03 Lars Clausen <lars@raeder.dk>
186 * lib/beziershape.c: Main points. A crude solution, having the
187 center in the middle of the bb. Shows a bug in the distance_from
188 code for polyshape when a side is horizontal.
190 2005-04-02 Lars Clausen <lars@raeder.dk>
192 * plug-ins/pstricks/render_pstricks.c:
193 * plug-ins/xfig/xfig-export.c: Patch from Radek
194 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
196 2005-04-02 Hans Breuer <hans@breuer.org>
198 * lib/dia_image.c(dia_image_filename) : return the path
199 again. (bug #172416, Radek Krahl)
201 2005-04-01 Steve Murphy <murf@e-tools.com>
203 * configure.in: Added "rw" to ALL_LINGUAS.
205 2005-03-31 Lars Clausen <lars@raeder.dk>
207 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
209 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
212 * objects/network/basestation.c: Main points.
214 2005-03-27 Hans Breuer <hans@breuer.org>
216 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
217 * app/pixmaps.h : removed arrow.xpm
218 * lib/Makefile.am : added diamarshal
219 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
220 => makes 'make dist' pass and produce a useable package
222 * po/*.po : 'noise' profuced by make dist
224 2005-03-24 Lars Clausen <lars@raeder.dk>
226 * objects/flowchart/parallelogram.c (pgram_update_data):
227 * objects/flowchart/ellipse.c (ellipse_update_data):
228 * objects/flowchart/diamond.c (diamond_update_data):
229 * objects/flowchart/box.c (box_update_data): Main points.
231 * objects/custom/custom_object.c (custom_create):
232 * objects/custom/shape_info.h:
233 * shapes/Assorted/square.shape:
234 * objects/custom/shape_info.c (load_shape_info):
235 * doc/shape.dtd: Added main point support to shapes, and an
236 example of how to use it.
238 2005-03-21 Lars Clausen <lars@raeder.dk>
240 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
241 unnormalize from same point as you normalize, or else!
243 2005-03-20 Lars Clausen <lars@raeder.dk>
245 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
246 Remember to ref g_object_new'd object.
248 2005-03-19 Hans Breuer <hans@breuer.org>
250 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
251 have configurations, fixes bug #170962
253 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
254 or better not used any longer. Fixes bug #169142.
256 * lib/element.c(element_update_connections_rectangle): don't initialize
257 the eighth point twice but instead the nineth once
259 * objects/standard/bezier.c : no C++ comments *please*
261 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
263 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
264 * plug-ins/python/pydia-image.c : ... so, don't do it!
266 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
267 also named colors via pango_color_parse()
269 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
271 * lib/libdia.def : updated externals
273 * app/object_ops.c : still not C99 everywhere
275 2005-03-19 Hans Breuer <hans@breuer.org>
277 * lib/autoroute.c : at least it should compile ;)
279 2005-03-19 Lars Clausen <lars@raeder.dk>
281 * lib/autoroute.c: Orthconns now do autogap.
283 2005-03-17 Lars Clausen <lars@raeder.dk>
285 * app/authors.h: Added Gregoire Dooms for gap stuff.
287 * objects/standard/polyline.c: Patch from Grégoire Dooms
288 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
290 * objects/standard/bezier.c: Patch from Grégoire Dooms
291 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
295 * objects/UML/state_term.c:
296 * objects/UML/large_package.c:
297 * objects/UML/node.c:
298 * objects/UML/object.c:
299 * objects/UML/small_package.c:
300 * objects/UML/state.c:
301 * objects/UML/usecase.c:
302 * objects/UML/note.c:
303 * objects/UML/actor.c:
304 * objects/UML/classicon.c:
305 * objects/UML/component.c:
306 * objects/Misc/analog_clock.c:
307 * objects/Jackson/requirement.c:
308 * objects/Istar/goal.c:
309 * objects/Istar/actor.c:
310 * objects/FS/function.c:
311 * object/standard/box.c:
312 * objects/ER/entity.c:
313 * objects/ER/relationship.c:
314 * objects/ER/attribute.c: Main points added. Distance_from fixed
315 in attribute, broken in relationship, I* goal, Jackson
316 requirement, analog_clock, all non-rectangular UML elements,
319 * lib/element.[ch]: New method to help update connection points.
321 * app/menus.c: Change Help/Manual to Help/Contents to follow
324 * objects/standard/line.c:
326 * objects/standard/bezier.c: Patch from Grégoire Dooms
327 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
328 bezier objects. Autogap nowchanged to be a function of the
332 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
335 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
336 CP_FLAG_ANYPLACE connpoints.
338 2005-03-16 Lars Clausen <lars@LittlePooter.local.>
340 * app/interface.c (create_tools): Removed debug printf.
342 2005-03-15 Lars Clausen <lars@raeder.dk>
344 * lib/widgets.[ch]: Constification.
346 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
349 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
351 * lib/connectionpoint.h: Flags for connection points.
353 * app/create_object.c (create_object_motion):
354 * app/modify_tool.c (modify_motion): Minor refactoring.
356 * app/object_ops.c (object_find_connectpoint_display): Extend with
357 finding connpoints that cover entire objects.
359 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
361 * objects/custom/custom_object.c (custom_setup_properties): Avoid
364 2005-03-13 Hans Breuer <hans@breuer.org>
366 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
368 2005-03-13 Hans Breuer <hans@breuer.org>
370 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
371 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
372 dia_svg_style_copy(), dia_svg_style_init()
374 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
377 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
378 not wrapped in the style attribute
380 * plug-ins/svg/svg-import.c : implement nested group handling and style
381 'style inheritance'. Still no transformations, no <image/>, no <style/>
384 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
385 the latter is for programmers.
386 Also be more tolerant if the document root namespace is not 'svg'. If the svg
387 namespace is defined in the file search for the top node including svg. This
388 allows us to re-read the svg part of our own shape format.
390 * lib/libdia.def : there is no give_focus_to_object
391 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
392 type as an expression
394 * lib/geometry. c : use G_IMPLEMENT_INLINES
395 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
397 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
398 gone when trying to remove the focus
400 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
401 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
402 case of this plug-in, i.e. producing output files]
404 2005-03-13 Lars Clausen <lars@raeder.dk>
406 * lib/Makefile.am (BUILT_SOURCES):
407 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
408 the building of the icons header files.
409 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
411 2005-03-13 Hans Breuer <hans@breuer.org>
413 * configure.in : require Cairo 0.3.0
414 plug-ins/cairo/diacairo.c : changed to match ;-)
416 * app/app_procs.c() : new function dump_dependencies()
417 which gets called by: dia --version --verbose
418 and may help to track version dependent problems in
421 * lib/font.c : reverted to previous version cause using
422 not implemented Pango API did not improve the issue.
423 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
424 for more information.
426 * lib/dialinechooser.c : a little shrinking of the
427 initial size (to work around line wrappjing the right
430 2005-03-11 Lars Clausen <lars@raeder.dk>
432 * app/textedit.c: Concentrate start/end editing in single functions.
434 2005-03-10 Lars Clausen <lars@raeder.dk>
437 * lib/object.h: Added new object function to allow the object to
438 be notified when its text is being edited.
444 * lib/focus.c: Remove sideeffects from focus objects, add getter
447 2005-03-09 Lars Clausen <lars@raeder.dk>
449 * lib/Makefile.am (dia-lib-icons.h):
450 * app/Makefile.am: Minor cleanup.
452 2005-03-06 Hans Breuer <hans@breuer.org>
454 * app/app_procs.c : avoid "assignment within conditional expression"
455 and handle -L for the GOption case as well.
457 * lib/widget.c : strchr() does not return -1 on not found but NULL;
458 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
459 indirection from 'const int '
461 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
462 large_arc, thus produce correct arc output (like diasvg.py does;),
465 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
466 from objects/custom/shape_info.c to be shared with object/custom and
467 plug-in/svg -> finally the C based svg-import reads pathes again.
468 Added arc parsing while I was there, which fixes bug #169191
469 * objects/custom/shape_info.c(parse_path) :
470 * plug-ins/svg/svg-import : reuse above function
471 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
472 But in general this does only support a small subset of what is
475 2005-03-06 Lars Clausen <lars@raeder.dk>
477 * objects/UML/association.c: Patch from Dave Klotzbach applied:
478 Add visibility to association arrow. Fixes bug #157012.
480 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
483 * app/layer_dialog.c (create_button_box): Use stock icons instead
484 of homemade onces. Gets us rid of four more XPMs.
486 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
488 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
489 This option permits command line control of which layers are visible.
490 Useful when automatically exporting multiple versions of the same
491 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
492 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
493 and made it static since its only used in that file.
494 * app/authors.h: added myself
495 * doc/en/dia.1: documented the switch
496 * doc/en/usage-layers.xml: ditto
498 2005-03-05 Alan Horkan <horkana@tcd.ie>
500 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
501 this restores how Dia behaved before the GTK2 port and seems to help
502 allow the toolbox to be more easily resized. Bug #108891.
504 2005-03-05 Lars Clausen <lars@raeder.dk>
506 * Civil/civil_motor.shape:
507 * Civil/civil_rotor.shape:
509 * Logic/buffer.shape:
510 * Logic/connector.shape:
511 * Logic/inverter.shape:
517 * shapes/Assorted/arrow-left-up.shape:
518 * shapes/Assorted/heptagon.shape:
519 * shapes/Assorted/star5.shape:
520 * shapes/Assorted/trapezoid.shape:
521 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
522 defaults, see bug #169143.
524 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
527 * doc/en/Makefile.am: Finally figured out the right way to ask for
528 the manpage xslt. Closes bug #144539.
530 2005-03-01 Lars Clausen <lars@raeder.dk>
532 * lib/Makefile.am (nodist_include_HEADERS):
533 * app/Makefile.am: Correctly generate these files from PNGs with
538 * lib/widgets.c: Refactor toggle button factory to allow inline
541 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
543 * app/makefile.msc (ICON_PNG_PAIRS):
544 * app/dia-app-icons.h: Updated with more icons.
547 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
550 * app/interface.c (create_display_shell):
551 * app/layer_dialog.c (dia_layer_widget_init):
552 * lib/dia_image.c (dia_image_get_broken): Use inlined data
555 * app/display.c (ddisplay_close): Removed unused includes.
557 2005-03-01 Lars Clausen <lars@raeder.dk>
559 * app/sheets.c (create_object_pixmap): Create a placeholder image
560 for when the real image is missing. Better than crashing:)
563 2005-02-25 Hans Breuer <hans@breuer.org>
565 * app/app_procs.c : don't requets to open a default display with
566 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
568 2005-02-22 Lars Clausen <lars@raeder.dk>
570 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
573 2005-02-19 Lars Clausen <lars@raeder.dk>
575 * app/menus.c (display_menu_items): Applied patch from bug #94019:
576 Menu cleanup and addition of icons. Also a few additional stock
579 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
582 2005-02-14 Lars Clausen <lars@raeder.dk>
584 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
586 2005-02-13 Lars Clausen <lars@raeder.dk>
588 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
589 width. Seems to work. Once tested some more, needs old code
592 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
593 warning by escaping & properly.
595 2005-02-06 Lars Clausen <lars@raeder.dk>
597 * app/filedlg.c (file_export_callback): Set correct extension as
598 soon every time the dialog is shown. Fixes bug #162535.
600 * app/display.c (ddisplay_set_origo): Use more standard
603 * app/modify_tool.c (modify_motion):
604 * app/create_object.c (create_object_motion): Put coordinates of
605 handle/object in status bar while moving. Fixes bug #163164.
607 2005-02-03 Lars Clausen <lars@raeder.dk>
609 * lib/.cvsignore: Added generated files diamarshal.[ch]
611 2005-02-02 Lars Clausen <lars@raeder.dk>
613 * configure.in: Add GLIB_GENMARSHAL def as suggested in
614 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
615 Now compiles on Linux.
617 2005-02-01 Lars Clausen <lars@raeder.dk>
619 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
620 need to translate the empty string. Especially not after
621 g_assert_not_reached(). Fixes bug #165966.
623 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
625 * objects/UML/activity.c : add fill- and line-colour properties
626 [applied by Hans Breuer, fixes bug #163260]
628 2004-01-28 Hans Breuer <hans@breuer.org>
630 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
631 update provided by Alan Horkan (fixes bug #159592)
633 2004-01-28 Hans Breuer <hans@breuer.org>
635 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
636 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
637 generalization, dependancies, parameterized classes ...
638 * plug-ins/xslt/styleshetts.xml : refernce it
639 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
641 2004-01-28 Hans Breuer <hans@breuer.org>
643 * objects/UML/transition.c : fill out the extra_spacing struct
644 in the OrtConn member, in order to avoid artifacts when draggin
645 the transition. (patch by Peter Allin, bug #144956)
647 2004-01-15 Hans Breuer <hans@breuer.org>
649 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
650 to something differnt than 0. Apparently there are case where Dia misses
651 to appropriately set it before requesting a dashed line (simple line with
652 arrow as described in bug #151716)
654 * lib/dia_dirs.c : special casing for drive letters which I broke with
657 2005-01-13 Hans Breuer <hans@breuer.org>
659 * app/interface.c(create_sheet_page) : remved dead long time code
661 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
662 it is availbale via header - which is the better style anyway
664 2004-12-31 Hans Breuer <hans@breuer.org>
666 * lib/dia_dirs.c(dia_get_canonical_path) : complete
667 rewrite to handle something like /mnt/some/where/../else
668 too. Workaround for bug #162637.
669 * app/filedlg.c : call gtk_file_chooser_set_current_name()
670 to workaround gtk_file_chooser_set_filename() not setting
671 it if the file does not exist
673 * sheets/Jackson.sheet.in app/menus.c : fixed typos
674 (Frank Arnold, bug #161676)
676 2004-12-31 Steffen Macke <sdteffen@gmail.com>
678 * doc/pl/*.xml: Added XML prolog
679 * makefile.msc: Added libxslt, fixed libxml, libart
681 2004-10-29 Alexander Shopov <ash@contact.bg>
683 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
685 2004-12-29 Lars Clausen <lars@raeder.dk>
687 * configure.in: Make gnomeprint be truly off by default (typo) and
688 show optional compilation correctly.
689 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
691 2004-12-22 Hans Breuer <hans@breuer.org>
693 * lib/widgets.c : destroy handlers can be called more than once,
694 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
696 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
698 * app/display.c : temporary debug code showing the
701 * app/dialibartrenderer.c(draw_string) : removed dead
702 code loading and leaking font and face
704 2004-12-15 Hans Breuer <hans@breuer.org>
706 * app/display.c : actually use the selction-changed signal for something
707 useful. Show selections representation on statusbar.
708 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
709 * app/diagram_tree.c : use new function (as in app/display.c) and only
710 poke into property internals at one place
711 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
714 2004-12-12 Hans Breuer <hans@breuer.org>
716 * lib/libdia.def app/dia.def : updated externals
718 * objects/custom/custom_object.c : custom_destroy is called per object.
719 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
720 reference to it. Fixes e.g. bug #158288, #160550, ...
722 * objects/UML/association.c(association_draw) : completed porting to
723 draw_polyline_with_arrows()
724 (association_update_data_end) : fixed typo in point compare
725 (association_update_data) : for name placement take degenerated
726 segements into account. Together this fixes bug #143891
728 2004-12-11 Hans Breuer <hans@breuer.org>
730 * lib/widgets.c(set_size_sensitivity) : revert inverted
731 logic for arrorw size selections, fixes bug #160527
733 2004-12-11 Hans Breuer <hans@breuer.org>
735 * lib/widgets.c(dia_font_selector_set_font) : initialize
736 the font style widget, too. Gets rid of empty font
737 style and thus default broken font style, e.g. UML::class_name
739 * lib/widgets.c(dia_color_selector_more_callback) : fill
740 the color palette from dynamic menu entries and also
741 preselect the current color to the last select entry
743 * plug-ins/python/pydia-diagramdata.c : hold a reference
744 to the underlying GObject
746 * app/Makefile.am app/diagrid.h : new file containing the
747 grid 'class' moved from DiagramData to Diagram.
748 Also moved pagebreak_color and guides cause they are only
749 used for visual appearance not 'data'.
750 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
751 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
754 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
755 lib/libdia.def : get rid of new_diagram_data()
756 Diagram _is_ DiagramData (and does not have one any longer,
757 just a compatibility pointer)
759 * lib/diarenderer.h : a small doc improvement
761 2004-12-11 Hans Breuer <hans@breuer.org>
763 * objects/UML/class.c : line wrapping code buffer
764 overrun fixed by Gabor Simon, bug #160865
766 2004-12-11 Hans Breuer <hans@breuer.org>
768 * plug-ins/python/pydia-diagram.c : hold a reference
769 to the diagram in PyDiaDiagram, avoids bug #159080
770 [another way to avoid is to detroy the dialog by
771 clsoing it. But now there is still a diagram to
772 apply the changes to, even if it's thrwon away just
775 2004-12-10 Hans Breuer <hans@breuer.org>
777 * **/*.c : fixed a bunch of warnings, not only for -ansi
778 (still too many of them, but -ansi works)
780 prop_geomtypes.h prop_geomtypes.c:306: warning: static
781 declaration for `fontsizeprop_reset_widget' follows non-static
782 dia_dirs.c:196: warning: return discards qualifiers from
786 shape_info.c:121: warning: static declaration for `parse_path'
790 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
791 arrow.c:244: warning: unused variable `i'
792 arrow.c:245: warning: unused variable `p'
793 arrow.c:246: warning: unused variable `zzr'
795 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
796 finally removed c++ comments
798 objects/Istar/goal.c : initialize connections::directions
799 while I was there - helps autorouting
801 * objects/KAOS/metaandorrel.c objects/Istar/link.c
802 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
803 (it would be quite simple to add image-from-memory support
806 * pydia-*.h : warning: no newline at end of file
808 * plug-ins/gprint/diagnomeprint.c : allow to unregister
809 and follow new unique name naming convention
810 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
813 2004-12-07 Hans Breuer <hans@breuer.org>
815 * objects/UML/message.c : better default for initial text placement
816 a suggested in bug #154306, Henning Mersch
817 * objects/UML/constraint.c : doing the same
819 * app/filedlg.c : include persistence.h for persistence_get_integer
820 * lib/libdia.def export it
822 2004-12-05 Hans Breuer <hans@breuer.org>
824 * app/grid.c : respect dynamic grid during snap-to, fixes
825 bug #135124, Dmitriy Morozov. Added some additional magic
826 to make the grid size more useable.
828 2004-12-05 Hans Breuer <hans@breuer.org>
830 * app/app_procs.c : make it compile for the HAVE_POPT and
831 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
833 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
834 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
835 when interactive. Fixes bug #119329
837 * plug-ins/cairo/diacairo.c : adapt to new type naming
838 scheme (introduced by accident;-) for pixbuf-*
839 * app/app_procs.c : reflect both type name changes
841 2004-12-04 Hans Breuer <hans@breuer.org>
843 * objects/standard/image.c : fix the correct warning
844 `image_file_name' might be used uninitialized
846 * app/filedlg.c : near complete rewrite
847 - removed 'related dialog', GtkOptionMenu, most global vars,
848 also don't hide the dialog but let it go.
849 - added: filter view by extension, hopefully working diagram
850 referencing, GtkComboBox usage
852 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
853 of im/export filter entries. So the user interface reflects
854 the dynamic nature of pixbuf loaders
856 * lib/filter.[ch] : implement filter_unregister_*port
857 lib/libdia.def : added new functions
858 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
859 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
860 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
861 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
862 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
863 use them in _plugin_unload () thus all these plug-ins
864 can be loaded used and unloaded during Dia's runtime
866 2004-12-04 Lars Clausen <lars@raeder.dk>
868 * lib/diagramdata.h: Access methods for units defined per diagram.
870 * lib/font.c (dia_font_new_from_style): More proper object creation.
872 * lib/properties.h: Refactored the PROP_STD_* macros to allow
875 * app/diagram.c (diagram_init): Force filename to be absolute
876 path, easing the job for load/save.
878 2004-12-03 Hans Breuer <hans@breuer.org>
880 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
881 added dia_font_set_height, dia_font_copy (note to self: don't try to
882 maintain these from the *NIX side ;)
884 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
885 the new color selection anymore
886 * objects/UML/class_dialog.c : with the above change it would have been more
887 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
888 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
890 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
891 (used in object vtable) and make its prototype match
893 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
894 correlate any of these strange crashing bug with it, but assume bad things to
895 happen when one passes stack allocated stuff to gtk_type_unique()
897 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
898 not there. Fixes most of the warnings from bug #156996
900 * lib/makefile.msc : rules to generate diamarshal.[ch]
902 2004-11-29 Hans Breuer <hans@breuer.org>
904 * app/disp_callbacks.c : reenable so-called preedit
905 as described in bug #158859, Etsushi Kato
906 Also fixed some compiler warnings while there.
908 * objects/standard/image.c(get_directory) : make
909 the documentation match the implementation.
910 (image_save) : don't write a leading slash on
913 * plug-ins/gprint/diagnomeprintrenderer.c :
914 switched to gnome-print-pango usage
916 * app/app_procs.c configure.in : although Dia
917 is not threaded it appears as if we have to
918 g_thread_init() to avoid crashing in some
919 libraries which are thread enabled
921 * lib/diamarshal.list lib/Makefile.am : start of
922 using GSignal to clean up some object relations
923 * lib/libdia.def : export marshallers
924 * app/diagram.[ch] : emit signals when REMOVED,
926 * app/display.c : added a connection to
927 SELECTION_CHANGED to test the new signal stuff
929 * app/diagram.c : fixed diagram_finalize while I
932 2004-11-28 Hans Breuer <hans@breuer.org>
934 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
935 the text if conversion to current locale fails. [This is actually
936 using code written four years ago;]
937 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
939 * objects/standard/image.c(image_load) : be more robust against
940 filenames which seem to be absolute
942 2004-11-27 Hans Breuer <hans@breuer.org>
944 * app/filedlg.c(file_save_callback) : convert to
945 filename encoding before passing to diagram_save()
946 Fixes bug #158381, thanks to Robert Ögren
948 2004-11-27 Hans Breuer <hans@breuer.org>
950 * lib/dialibartrenderer.c : sometimes its good to read
951 compiler warnings. Not only define renderer_finalize
952 but actually *use* it. Should plug a potential huge
955 * configure.in plug-ins/Makefile.am
956 plug-ins/gprint/Makefile.am : build the experimental
957 gnomeprint plug-in on *NIX, too.
958 * plug-ins/gprint/diagnomeprint.c : don't include
959 specific (private) backend headers but instead select
960 the desired backend via config key setting
962 * lib/diagdkrenderer.c : add 1 to size of filled arc
963 to be rendered by gdk. Fixes bug #150896.
965 * plug-ins/gprint/diagnomeprint.c
966 plug-ins/gprint/diagnomeprintrenderer.c : added magic
967 to better match page and dash sizes
969 2004-11-27 Hans Breuer <hans@breuer.org>
971 * plug-ins/shape/shape-export.c : it's g_strdup_printf
973 2004-11-27 Hans Breuer <hans@breuer.org>
975 * app/app_procs.c : mention eps-builtin aka. "using
976 latin1", does not fix the eps-pango issues but #150571
978 2004-11-27 Hans Breuer <hans@breuer.org>
980 * sheets/Cybernetics.sheet.in : changed encoding to
981 utf-8, patch from Takeshi AIHANA, fixes #149580
983 2004-11-27 Hans Breuer <hans@breuer.org>
985 * objects/custom/custom_object.c : many existing shapes
986 rely on a square default size, revert to it although
987 it originally was by a typo. Fixes bug #148527.
989 2004-11-27 Hans Breuer <hans@breuer.org>
991 * app/load_save.c(dia_cleanup_autosave)
992 app/diagram.c : don't use dia->filename if already
993 freed and dont use printf at all.
995 * app/paginate_psprint.c : not only set the renderer::paper
996 but also renderer::is_portrait. Should fix bug #142524
998 2004-11-26 Hans Breuer <hans@breuer.org>
1000 * dia.desktop.in : added Bug Buddy headers (as seen
1001 in planner). Hopefully the automatically filling of
1002 bugs is more meaningful by this.
1004 * objects/custom/custom_util.c objects/standard/image.c
1005 lib/plug-ins.c : getting rid of deprecated g_dirname,
1006 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
1007 bytes inside a block of size 44 free'd
1009 * lib/persistence.c(persistence_load_list) : don't
1012 * lib/diaerror.[ch] : (new file) start of better error handling
1013 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
1014 added new files/funcs
1015 * lib/proplist.c lib/propinternals.h (prop_list_load) :
1016 allow to propagate error to caller. Also set PXP_NOTSET
1017 to avoid applying unset properties, fixes bug #155255
1018 * lib/propobject.c lib/prop_sdarray.c : still spewing
1019 g_warnings but now with context information
1021 * app/filedlg.c : more absolute filenames where required
1022 and strip them where we need the filename only
1023 Also explicit DONT choose gnome-vfs backend cause its
1024 threading appears to crash Dia - at least in GNOME build,
1027 2004-11-26 Hans Breuer <hans@breuer.org>
1029 * app/filedlg.c : don't use relative filenames for
1030 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
1032 (export_set_extension) : if we don't have a filename don't
1033 use it in strrchr() to avoid crashing
1035 2004-11-23 Hans Breuer <hans@breuer.org>
1037 * app/app_procs.c : fixed build for the GNOME case
1038 (let's rip out POPT and depend on glib-2.6, please ;-)
1040 2004-11-23 Hans Breuer <hans@breuer.org>
1042 * app/app_procs.c : fixed typo which broke the
1043 build for HAVE_POPT case
1045 2004-11-21 Hans Breuer <hans@breuer.org>
1047 * app/app_procs.c : some more #if-mess, but one day
1048 we should rely on GLib's 2.6 Option Parser alone
1050 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
1051 and height for RoundRect() - otherwise size depends on offset,
1052 shorten the unique name
1054 * plug-ins/python/diamodule.c : provide a unique name
1055 for python filters as well
1057 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
1058 by using the right colors (need black background cause we
1059 are tinitng it with the real color later)
1061 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
1062 instead of hardcoded slahes, improved portability
1064 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
1065 plug-in. Also added some more error reporting (e.g. no printer driver)
1067 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
1068 plug-ins/makefile.msc : resurrection of the gnome print renderer.
1069 Kinda works (alpha quality) for export but does not print yet.
1070 With bug #158972 resolved this does even work on win32 :-)
1072 2004-11-07 Hans Breuer <hans@breuer.org>
1074 * doc/diagram.dtd : <composite> can have <composite/>,
1075 <font/> has two 'optional' atributes 'style' and 'family',
1076 these are used to store new (since 0.91) font info.
1077 With this changes non of the issues in bug #147431 remains.
1079 * plug-ins/python/otypes.py : starting to implement an
1080 'create all known object' file as ne stress test source
1081 for the dtd and Dia in general.
1083 2004-11-06 Hans Breuer <hans@breuer.org>
1085 * app/diapsrenderer.c : don't convert to locale but to
1086 "LATIN1", fixes bug #146641
1088 2004-11-06 Hans Breuer <hans@breuer.org>
1090 * app/diagram_tree.c : still no C99 everwhere ...
1091 * lib/libdia.def : update externals
1092 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
1094 * app/app_procs.[hc] : declare, use ...
1095 app/winmain.c : ... and implement dia_redirect_console().
1096 Even though newer Gtk version don't popup a console window
1097 anymore redirecting the error messages to a file in $TEMP appears
1098 to be much more reasonable than just ignoring it. Fixes bug #150777
1099 based on a patch from Steffen Macke
1101 2004-11-06 Hans Breuer <hans@breuer.org>
1103 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
1104 RoundRect() for high level renderer api implementation thus
1105 fixing bug #138744 reported by Lars Clausen
1107 2004-11-06 Hans Breuer <hans@breuer.org>
1109 * app/prefernces.c : applied patch to make showing the diagram
1110 menubar the default (advanced users know how to switch it off)
1111 Fixes bug #150706, Steffen Macke
1113 2004-11-06 Hans Breuer <hans@breuer.org>
1115 * app/commands.c app/commands.h : added view_fullscreen_callback()
1117 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
1118 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
1119 ALso modified to allow handling of unmodified keys again (aren't
1120 there plenty of bug reports for this?
1122 2004-11-06 Hans Breuer <hans@breuer.org>
1124 * objects/UML/class_dialog.c : fixed casts for usage
1125 of dia_color_selector_set_color()
1127 * app/filedlg.c : pass a valid filenames to
1128 gtk_file_chooser_set_filename(), if we don't have a name
1129 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
1130 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
1131 assertion `local_full_path[0] == '/'' failed"
1133 2004-11-06 Lars Clausen <lars@raeder.dk>
1135 * app/properties.c (create_dialog):
1136 * app/diagram_tree_window.h:
1137 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
1138 * app/diagram_tree_menu_callbacks.c:
1139 * app/diagram_tree_window.c:
1140 * app/diagram_tree_menu.c:
1141 * app/diagram_tree.c: Changed to use persistence instead of
1142 strange hacks in preferences.
1144 * lib/persistence.h:
1145 * lib/persistence.c (persistent_list_get_glist): Don't deref null
1146 pointer. New function persistent_list_remove_all, and
1147 fixed persistent_list_remove to ... work!
1149 2004-11-05 Lars Clausen <lars@raeder.dk>
1151 * app/paginate_psprint.c (diagram_print_ps): Call
1152 diagram_print_destroy on destroy rather than delete_event. That
1153 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
1156 2004-11-02 Lars Clausen <lars@raeder.dk>
1158 * objects/UML/class.c (umlclass_load): Actually load the saved
1159 fonts and font sizes. Fixes bug #157016
1161 * configure.in: Require at least GTK+ 2.4.
1163 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
1164 finally, finally. Not quite bulletproof yet, and I need to figure
1165 out a minimum version of Gtk that doesn't spew warnings all over.
1167 * app/diagram.[ch]: diagram_set_filename with const filename.
1169 * app/sheets_dialog_callbacks.c
1170 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
1171 correctly recreated. Still something fishy with the sheet menu in
1172 the dialog after adding a new sheet. Probably the sheet name
1175 2004-11-01 Lars Clausen <lars@raeder.dk>
1177 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
1178 stmping. Now requires g_free here and there.
1180 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
1181 for remembering last sheet, better off as persistent string. Must
1182 hunt down other things like that.
1184 * app/interface.c (create_sheets): Now remembers last sheet
1185 selected again. Fixes bug #157036.
1187 2004-11-01 Hans Breuer <hans@breuer.org>
1189 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
1190 will never become NULL but only point to the next char
1191 which might indeed be \0]
1192 Use tex_escape_string() to avoid writing invalid tex,
1195 * **/* : a bunch of changes caused by trying 'make distcheck'
1196 which still fails, see Bug #144527
1198 2004-10-31 Lars Clausen <lars@raeder.dk>
1200 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
1201 floating point numbers being printed with commas. Fixes bug
1204 * app/interface.c (create_sheet_dropdown_menu): New function to
1205 create the sheet menu, and also allow recreation. Still buggy and
1206 slightly prone to magic.
1208 * objects/UML/class_dialog.c
1209 (attributes_list_selection_changed_callback): Don't try to update
1210 the widgets after they're destroyed. Fixes bug #156706 (I think).
1212 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
1213 adjustement. Fixes bug #154637
1215 * sheets/ER/Makefile.am (PIX):
1216 * sheets/GRAFCET/Makefile.am (PIX):
1217 * sheets/Jackson/Makefile.am (PIX):
1218 * sheets/Istar/Makefile.am (PIX):
1219 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
1220 XPM. Why these have their pictures in sheets rather than shapes I
1221 don't know. Fixes bug #152142.
1223 2004-10-31 Hans Breuer <hans@breuer.org>
1225 * plug-ins/pixbuf/pixbuf.c : when running non interactive
1226 Dia won't call color_init() as it assumes no display. If
1227 we have one as tested ourselve we can as well color_init()
1228 to avoid g_warnings() and produce the right collors.
1231 * app/app-procs.c : try to be a little more helpful
1232 and correct with regard to the command line options.
1233 Renamed --export-to-format to --export-filter and some
1234 other string changes
1236 2004-10-31 Hans Breuer <hans@breuer.org>
1238 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
1239 added GetDeviceCaps() dummy implementation to make
1240 'wmf' compile on Linux, too.
1242 2004-10-31 Hans Breuer <hans@breuer.org>
1244 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
1245 to finally fix the long lasting clipping issue, bug #85831
1246 Also fixed the line style issue for printing on XP and don't
1249 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
1251 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
1252 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
1254 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
1255 some info from the console (soon gone on windoze) to message_error()
1256 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
1257 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
1259 plug-ins/python/diasvg_import.py : re.compile() only once per expression
1260 and some more playing with scaling
1262 * plug-ins/python/makefile.msc : updated
1264 2004-10-30 Hans Breuer <hans@breuer.org>
1266 * shapes/Civil/civil_arrow_right.shape : removed
1267 <aspectratio type="fixed" /> thus allowing to change
1268 width and height independently, fixes #154897
1269 (Serge Robinson) by making it consistent with the
1272 2004-10-30 Hans Breuer <hans@breuer.org>
1274 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
1275 on arrow being NULL, fixes bug #143063
1277 2004-10-30 Hans Breuer <hans@breuer.org>
1279 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
1280 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
1281 removed use of chached variable DiagramData::selected_count
1282 * lib/diagramdata.h : renamed to selected_count_private
1283 (kept for binary compatibility and sanity checks)
1284 * lib/diagramdata.c : more checks on a screwed up selection list
1286 * app/diagram.c(diagram_group_selected) : don't screw up the
1287 DiagramData::selected list, was assignment of parent_list_affected(),
1288 * lib/diagramdata.c (data_select, data_unselect) : protect against
1289 multiple selections of the same object and removement of a not selected
1290 object (apparently caused by the recently added group undo stuff)
1291 together with the above this finally fixes bug #153525
1293 * app/Makefile.am : fix ./autogen.sh ->
1294 app/Makefile.am:171: blank line following trailing backslash
1296 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
1297 ddisplay_do_update_menu_sensitivity() here as well
1299 * configure.in : make the experimental state of the cairo plug-in
1302 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
1303 try to update anything if we can't find an active diagram
1304 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
1306 * configure.in : another attempt to fix bug #156116. If there is
1307 anyone with autotools knowledge reading this - help appreciated ;-)
1309 2004-10-30 Hans Breuer <hans@breuer.org>
1311 * objects/makefile.msc objects/UML/Makefile.am
1312 objects/UML/uml.c objects/UML/transition.c
1313 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
1314 Patch from Peter Allin adds statechart transitions to the UML sheet -
1315 bug #144956 - modified to not print("%s", NULL) which crashes on
1316 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
1318 2004-10-30 Hans Breuer <hans@breuer.org>
1320 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
1321 match the website anymore, i.e. sould remain unchanged.
1322 See below and lib/dia_xml.h for the reasoning
1324 * lib/libdia.def : removed dia_color_selector_get_type
1326 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
1327 (like broken PNG) and g_warning if appropriate
1329 * app/interface.c : #include "message.h"
1331 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
1332 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
1333 better to just move diaunitspinner to lib/ instead of polluting
1334 widgets.[hc] even more ;)
1335 * app/makefile.msc lib/libdia.def : updated
1337 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
1338 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
1340 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
1341 do something useful when compiled
1343 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
1344 Also some more #ifdefed backends usage.
1346 2004-10-10 Lars Clausen <lars@raeder.dk>
1348 * lib/widgets.c: Better labels for color selector menu.
1350 * app/dia-props.c (diagram_properties_respond):
1351 * app/preferences.c (prefs_get_value_from_widget): Don't assume
1352 that a dia color selector is of type DiaColorSelector:)
1354 * lib/widgets.[ch]: Color selector changed to dynamic menu.
1356 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
1359 2004-10-09 Lars Clausen <lars@raeder.dk>
1361 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
1362 arrow preview to avoid long arrow heads flipping.
1364 * lib/arrows.[ch]: Support for getting from name to arrow type,
1365 and for listing all arrow names.
1367 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
1369 * lib/libdia.def: Added new global functions.
1371 * lib/persistence.[ch]: Two of the persistent_list functions to
1372 return whether the item was found in the list.
1374 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
1375 the growing number of sheets.
1377 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
1380 2004-10-05 Lars Clausen <lars@raeder.dk>
1382 * objects/UML/association.c: Patch from Harvey Thompson
1383 <harveyandsu@yahoo.com>: Better placement of association texts.
1385 2004-10-03 Lars Clausen <lars@raeder.dk>
1387 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
1388 use the fonts in question. Can't set tooltips with the name since
1389 lib objects don't know the tool_tips thing, which is rather
1392 2004-09-19 Hans Breuer <hans@breuer.org>
1394 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
1395 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
1397 2004-09-19 Hans Breuer <hans@breuer.org>
1399 * dia.desktop.in : string changes as proposed in bug #151822
1401 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
1402 appearts not to be needed on Linux and breaks the build
1403 on OSX. Fixes bug #152970
1405 2004-09-18 Lars Clausen <lars@raeder.dk>
1407 * app/commands.c (view_show_all_callback): Add a bit of border
1408 around Ctrl-E'd diagram, for easier select and better view of edges.
1410 2004-09-19 Hans Breuer <hans@breuer.org>
1412 * app/Makefile.am : trying to fix the fix from 2004-02-15
1413 Overwriting AM_LDFLAGS still gave a automake warning and it
1414 also appeard to break linking against gtklibs in a differnt
1415 prefix. Use dia_LDFLAGS instead.
1417 * plug-ins/svg/svg-import.c : initialize 'end' before usage
1418 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
1420 * lib/diarenderer.c : don't try to draw lines which are so much
1421 degenerated that their point count became negative, fixes bug #148139
1423 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
1424 strings (NULL from g_strdup())
1426 2004-09-10 Steffen Macke <sdteffen@web.de>
1428 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
1429 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
1430 * app/create_object.c:
1431 * app/diaunitspinner.c:
1432 * app/disp_callbacks.c:
1434 * app/modify_tool.c:
1435 * lib/prop_geomtypes.c:
1436 * lib/prop_geomtypes.h: made compile with msvc
1438 2004-09-10 Lars Clausen <lars@raeder.dk>
1440 * lib/widgets.c: Insulate conversion from outside API by adding
1441 internal function to set value. Adjustment not appropriate for
1444 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
1446 2004-09-07 Lars Clausen <lars@raeder.dk>
1448 * app/diapagelayout.c: Include from widgets.c rather than
1451 2004-09-03 Lars Clausen <lars@raeder.dk>
1453 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
1454 as unit-based property testbed.
1456 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
1457 and fontsize widgets.
1459 * app/Makefile.am (dia_core_files):
1460 * app/diaunitspinner.h:
1461 * app/diaunitspinner.c:
1463 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
1464 lib/widgets.[ch], as it's used in the properties code now.
1466 2004-08-31 Steffen Macke <sdteffen@web.de>
1468 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
1470 2004-08-30 Lars Clausen <lars@raeder.dk>
1473 * app/diagram.c (diagram_remove_all_selected): Remove debugging
1478 * app/disp_callbacks.c:
1480 * app/create_object.c:
1481 * app/textedit.[ch]:
1482 * app/modify_tool.c:
1485 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
1486 current input object, multiple inputs per object, and tabbing
1489 2004-08-28 Steffen Macke <sdteffen@web.de>
1491 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
1492 allow separate installer component "Translations"
1494 2004-08-27 Akagic Amila <bono@linux.org.ba>
1496 * configure.in: Added 'bs' to ALL_LINGUAS.
1498 2004-08-26 Steffen Macke <sdteffen@web.de>
1500 * app/makefile.msc: using /subsystem:windows again
1501 * makefile.msc: updated ALL_LINGUAS
1503 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
1505 * configure.in: Add «nb» to ALL_LINGUAS.
1507 2004-08-21 Steffen Macke <sdteffen@web.de>
1509 * plug-ins/dxf/dxf-export.c: Patch from
1510 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
1512 2004-08-17 Lars Clausen <lars@raeder.dk>
1515 * dia.spec (Release):
1521 2004-08-13 Ankit Patel <ankit@redhat.com>
1523 * configure.in: Added "gu" in ALL_LINGUAS.
1525 2004-08-07 Lars Clausen <lars@raeder.dk>
1531 * dia.spec (Release):
1532 * NEWS: New release 0.94-pre6
1534 2004-08-07 Lars Clausen <lars@raeder.dk>
1536 * app/highlight.c (highlight_reset_objects): Unhighlight inside
1540 * plug-ins/shape/shape-export.c: String capitalization fix from
1541 Alan Horkan <horkana@tcd.ie>
1543 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
1544 Class object menu kinda work, rather than blow up. Doesn't do a
1545 proper undoable change yet.
1547 2004-08-06 Lars Clausen <lars@raeder.dk>
1549 * app/filedlg.c (file_save_as_callback): Don't remove related
1550 dialogs from the NULL diagram.
1552 2004-08-02 Lars Clausen <lars@raeder.dk>
1557 * dia.spec (Release):
1558 * NEWS: Pre5 with leak fix.
1560 * lib/font.c (dia_font_build_layout): Don't try to save an
1561 allocation of LayoutCacheItem if it breaks layout cache hash.
1562 Also make hash function correct, remove explicit height entry
1563 (it's in pfd), and make sure things are correctly unreffed.
1564 Finally fixes #148141.
1566 * lib/text.c (text_set_attributes, text_set_font): Safely unref
1567 when changing font, and actually set the new font in
1569 (text_get_attributes): Ref copied font.
1571 2004-08-01 Lars Clausen <lars@raeder.dk>
1575 * dia.spec (Release):
1578 * doc/en/dia.xml: Prerelease 4.
1580 * lib/font.c (dia_font_build_layout): Better comparision and
1581 freeing of font cache.
1583 2004-07-31 Lars Clausen <lars@raeder.dk>
1585 * lib/font.c (dia_font_build_layout): Faster update to avoid
1588 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
1589 Correctly initialize export filter variable.
1591 2004-07-25 Lars Clausen <lars@raeder.dk>
1593 * dia.spec (Release):
1598 * doc/pl/dia.xml: Pre3 coming out.
1600 * lib/diarenderer.c (draw_polygon):
1601 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
1602 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
1603 rather than O (letter), and assert num_points > 1 rather than the
1606 * app/recent_files.c:
1609 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
1610 Make filenames conform to filesystem encoding.
1612 * RDP/.cvsignore: Added standard ignore.
1614 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
1615 last entry patch-panel, too.
1618 * shapes/Circuit/*.png:
1619 * shapes/Civil/*.png:
1620 * shapes/Contact/*.png:
1621 * shapes/Electric/*.png:
1623 * shapes/Pneumatic/*.png:
1625 * shapes/flowchart/*.png:
1626 * shapes/jigsaw/*.png:
1627 * shapes/network/*.png:
1628 * shapes/sybase/*.png:
1630 * dia_gnome_icon_large.png:
1631 * doc/pl/graphics/*.png: Set -kb for PNGs.
1633 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
1635 2004-07-22 Lars Clausen <lars@raeder.dk>
1641 * dia.spec (Release):
1642 * configure.in: Update to version 0.94-pre2.
1644 * app/load_save.c (diagram_data_write_doc): Use new namespace
1647 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
1648 hidden objects properties.
1650 * objects/standard/line.c: Remove halffinished line gap box from
1653 * app/paginate_psprint.c:
1654 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
1655 Immidi): Close export and print dialog with diagram as well.
1658 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
1659 borelli): Remove deprecated stuff (#137693)
1661 * app/dia-props.c (create_diagram_properties_dialog): Patch from
1662 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
1665 2004-07-21 Ray Strode <rstrode@redhat.com>
1667 * dia/dia.desktop.in: Add MimeType line to desktop file
1670 2004-07-18 Hans Breuer <hans@breuer.org>
1672 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
1673 sheets/UML/*.png : icons in png format
1674 Partial fixup of stuff broken with the following comment:
1675 "7 days : xpm->png, namespace fix, first rotation bits."
1677 * app/load_save.c(read_objects) : don't add objects to the layer.
1678 This function is called recursively and only the topmost objects
1679 belong in the layers object list. Fixes bug #145417 and is the
1680 the real fix for bug #142480
1682 * app/app_procs.c : make the --size hack even uglier, but work again
1684 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
1685 but g_free() what is returned by g_build_filename()
1687 * objects/custom/custom_object.c(custom_destroy) : handle all enum
1688 values in switch to get rid of the warning
1690 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
1691 of setlocale()/strtod()
1692 * lib/dia_svg.c : dito
1693 * lib/dia_xml.c : almost
1695 * plug-ins/python/group_props.py : use the string representation of
1696 value to ensure "unique values". If the strings would not be different
1697 the user cann't see the difference either
1699 2004-07-17 Lars Clausen <lars@raeder.dk>
1701 * lib/persistence.h: Have "void" in prototypes (#142663)
1703 * lib/widgets.c (dia_font_selector_init): Better string handling
1706 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
1708 * objects/standard/image.c (image_load): Use path of diagram
1709 rather than running directory as base for image file place.
1711 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
1714 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
1715 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
1717 * Re-added new sample diagrams binarily.
1719 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
1721 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
1722 Disabled keyboard accels when dragging an object.
1724 2004-07-14 Lars Clausen <lars@raeder.dk>
1726 * app/grid.c (snap_to_grid): Use diagrams grid setting to
1727 determine hex grid snap.
1729 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
1731 * app/interface.h: Avoid multiply defined symbols (#147396)
1733 2004-07-10 Lars Clausen <lars@raeder.dk>
1735 * app/sheets_dialog_callbacks.c (write_user_sheet):
1736 * lib/sheet.c (load_register_sheet): Don't introduce double
1737 slashes in namespace.
1739 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
1740 old diagrams, or XSLT will barf all over.
1742 * shapes/RDP/place.shape:
1743 * shapes/RDP/transition.shape:
1744 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
1745 shapes to use those.
1747 2004-07-07 Lars Clausen <lars@raeder.dk>
1750 * doc/{en,pl}/dia.xml:
1753 * NEWS: First prerelease of version 0.94. Now with release
1754 versions in a branch and main devel in the trunk.
1756 2004-07-05 Hans Breuer <hans@breuer.org>
1758 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
1759 -std=c89. Mostly //-comments and M_PI -> G_PI
1760 [Istar, Jackson, KAOS were removed from build cause they
1761 simply have *too* much C++ comments ;]
1762 * object/UML/association.c : use g_strdup() not plain strdup()
1763 * app/paginate_psprint.c : avoid storage size of `pipe_action'
1764 isn't known with more portable signal code
1766 * app/app_procs.c : don't call gtk_init() if just --version
1767 is requested (bug #144321, Vladimir Kondratiev)
1769 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
1770 DiaFont* if not NULL
1771 * objects/UML/class.c : moved fill_in_fontdata() to
1772 umlclass_load() to avoid such trouble, though unsure if
1773 this really is an improvement...
1775 * shapes/network/makefile.am : patch-panel added here too
1777 2004-07-04 Hans Breuer <hans@breuer.org>
1779 * sheets/network.sheet.in shapes/network/patch-panel.xpm
1780 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
1781 fixes bug #136629, James McDonald
1783 2004-07-04 Hans Breuer <hans@breuer.org>
1785 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
1786 lib/object_defaults.c : revert changing of Dia's XML namespace
1787 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
1788 about its purpose and relation to real world urls.
1790 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
1791 added comment about when to do so
1792 [Should have been long time ago and probably multiple times
1793 to avoid crashing on older plug-ins]
1794 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
1795 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
1797 * lib/object.c objects/UML/class.c : there are still compilers not
1798 supporting C99 and other GCCISMs like allocating dynamic sized arrays
1800 * objects/UML/class.h : there is a differnce between a list pointer
1801 and a list pointer pointer. We and GLib want the former.
1803 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
1804 if Gtk is initialized. Using gdk_display_get_default () avoids the
1805 app/* dependency and is also closer to the requirements of the
1808 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
1809 some #ifdefed support for Cairo backends not public available yet.
1811 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
1812 windoze platform supports them. This should fix bug #109818, at
1813 least for the majority running NT or above ...
1814 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
1816 * objects/makefile.msc : build Istar, Jackson and Kaos
1818 * objects/UML/class.c(umlclass_load) : don't wrap by default to
1819 keep old diagrams as they were - instead of this nice new effect ;-)
1820 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
1822 * objects/UML/class.c : mark for translation _("Wrap ...
1824 * objects/UML/class.c : more correct types, also some default properties
1825 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
1827 * objects/UML/activity.c : removed a leftover from the
1828 use-localization-for-font-substitution-hack
1830 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
1831 'cvs admin -kb *.png' PNG files should already be *added* as binary,
1832 otherwise they are not readable on line-end-converting-platforms
1834 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
1835 filter_get_by_name()
1837 * plug-ins/python/pydia-property.c : some more g_warnings for
1838 not implemented conversions
1840 * plug-ins/python/group_props.py : ensure unique property values
1841 at the right place. Now something like :
1842 - load an old UML class diagram
1843 - change one of the classes to wrap operations
1844 - select all classes (/Select/Same Type)
1845 - /Dialogs/Group Properties : check wrap_operations, select '1'
1846 - Ok, works like a charm :-)
1848 2004-07-04 Lars Clausen <lars@raeder.dk>
1850 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
1853 2004-07-03 Lars Clausen <lars@raeder.dk>
1855 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
1856 <LAV@VL3143.spb.edu>: Fixes console output problems and some
1857 interactiveness problems.
1859 2004-07-02 Lars Clausen <lars@reader.dk>
1861 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
1862 app isn't interactive.
1864 2004-07-01 Lars Clausen <lars@raeder.dk>
1866 * plug-ins/cairo/diacairo.c: Add init of last field of filter
1867 struct to remove crash.
1869 * sheets/Makefile.am (sheet_in_files):
1870 * shapes/Makefile.am:
1871 * sheets/ChemEng.sheet.in:
1872 * shapes/ChemEng/Makefile.am:
1874 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
1875 Chemical engineering shapes.
1877 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
1878 multiple arguments when using devel script.
1880 * app/display.c (new_display):
1882 * lib/diagramdata.c (new_diagram_data):
1883 * lib/diagramdata.h:
1884 * app/preferences.h:
1885 * app/preferences.c:
1888 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
1889 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
1892 * doc/pl/authors.xml:
1893 * doc/en/authors.xml:
1894 * lib/object_defaults.c (dia_object_defaults_save):
1895 * readme.win32 (BTW):
1896 * lib/persistence.c (persistence_save):
1897 * app/load_save.c (diagram_data_write_doc):
1898 * app/commands.c (help_about_callback):
1899 * README: Fix links to home page.
1902 * app/load_save.c (diagram_data_load):
1903 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
1904 loading, and guard against them when fonting.
1906 * lib/diarenderer.c (draw_rounded_polyline): Patch from
1907 anthonym@overture.com: Make limited rounding a corner-specific
1908 rendering-only thing.
1910 2004-06-30 Lars Clausen <lars@raeder.dk>
1912 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
1913 adjustment: If you can't fix it, at least don't change it.
1915 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
1916 code instead of individual code in here.
1918 2004-06-29 Lars Clausen <lars@raeder.dk>
1920 * objects/UML/association.c: Patch from Kiran
1921 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
1926 * lib/diarenderer.c (draw_rounded_polyline):
1927 * objects/standard/polyline.c (polyline_draw):
1928 * objects/standard/zigzagline.c (zigzagline_draw):
1929 Patch from anthonym@overture.com: Add rounded polylines.
1931 2004-06-27 Lars Clausen <lars@raeder.dk>
1933 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
1935 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
1936 free family list before taking out the pointer we need. Also set
1937 the entry_nr correctly so we get the menu set up right.
1939 2004-06-23 Lars Clausen <lars@raeder.dk>
1941 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
1942 images at the right place.
1944 * objects/Istar/actor.c
1945 * objects/Istar/goal.c
1946 * objects/Istar/istar.c
1947 * objects/Istar/istar.h
1948 * objects/Istar/link.c
1949 * objects/Istar/other.c
1950 * objects/Jackson/domain.c
1951 * objects/Jackson/jackson.c
1952 * objects/Jackson/jackson.h
1953 * objects/Jackson/phenomenon.c
1954 * objects/Jackson/requirement.c
1955 * objects/KAOS/goal.c
1956 * objects/KAOS/kaos.c
1957 * objects/KAOS/kaos.h
1958 * objects/KAOS/metaandorrel.c
1959 * objects/KAOS/metabinrel.c
1960 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
1961 <cp@cetic.be>: Fix instability issues caused by not returning NULL
1962 in *_move_handle and *_move. Also improved the headers with
1963 correct (c) information.
1965 2004-06-22 Lars Clausen <lars@raeder.dk>
1967 * objects/KAOS/goal.c:
1968 * objects/KAOS/other.c:
1969 * objects/Istar/actor.c:
1970 * objects/Istar/goal.c:
1971 * objects/Istar/other.c:
1972 * objects/Jackson/domain.c:
1973 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
1974 <cp@cetic.be>: Fix resize issues.
1976 * app/filedlg.c (file_dialog_hide): Patch from Kiran
1977 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
1978 related dialog. #129520.
1980 * app/dia-props.c (diagram_properties_show): Patch from Kiran
1981 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
1982 a child of its diagram. #129520.
1984 * objects/UML/association.c (association_load): Patch from Kiran
1985 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
1986 text placement. #118313.
1988 2004-06-17 Lars Clausen <lars@raeder.dk>
1990 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
1992 * Makefile.am: Make THANKS only be generated by maintainers.
1994 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
1997 * configure.in: Added three missing Makefiles.
2001 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
2002 diagram-related (save) dialog when closing diagram. To be
2003 extended to other dialogs.
2005 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
2007 * samples/Istar.dia:
2008 * samples/Jackson.dia:
2010 * sheets/Istar.sheet.in:
2011 * sheets/Jackson.sheet.in:
2012 * sheets/KAOS.sheet.in:
2017 * objects/Jackson/*:
2020 * objects/Makefile.am (SUBDIRS):
2021 * sheets/Makefile.am (SUBDIRS):
2022 * samples/Makefile.am: Additions from Christophe Ponsard
2023 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
2026 2004-06-12 Lars Clausen <lars@raeder.dk>
2029 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
2031 * lib/font.h: Toning down comments a bit:)
2033 * lib/font.c (dia_font_build_layout): Playing around with DPI
2035 * objects/UML/association.c (association_load): Avoid crashes on
2038 * objects/UML/association.c: Patch from kimmidi@novell.com:
2039 Improve placement of labels when vertical. Part fix of #118313
2041 * lib/object.c (dia_object_is_selected): Grouped objects are not
2042 selected, only the group itself. Thus, don't crash when grouping
2045 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
2046 on how to represent empty strings. Fixes #143639.
2048 * lib/object.c (dia_object_is_selected): Added comment answer.
2050 2004-06-12 Hans Breuer <hans@breuer.org>
2052 * lib/diagramdata.c lib/object.c : deal with grouped objects
2053 not knowing their parent_layer, i.e. avoid crashing in
2054 dia_object_is_selected() via group_draw() [ Triggered by
2055 playing with the Visio generated svg from bug #143455 ]
2057 * plug-ins/python/diasvg_import.py : started to implement
2058 transformation="translate(...)" and <style/> handling. Also
2059 use some other completely bogus values for em/ex scaling
2061 2004-06-08 Lars Clausen <lars@raeder.dk>
2063 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
2065 2004-06-07 Lars Clausen <lars@raeder.dk>
2067 * app/layer_dialog.c (layer_dialog_set_diagram):
2068 * app/display.c: Layer widget crash more properly dealt with in
2071 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
2072 widget deselect was called during destroy, but called
2073 ddisplay_flush, leading to a new display timeout after renderer
2076 * lib/widgets.c (dia_toggle_button_destroy):
2077 * app/recent_files.c (recent_file_menuitem_create):
2078 * lib/persistence.c (persistence_save_list):
2079 * app/commands.c (edit_delete_callback):
2080 * lib/object_defaults.c (dia_object_defaults_save):
2081 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
2084 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2087 * lib/diagramdata.c (new_layer): Initialize connectibility.
2089 * app/display.c (ddisplay_obj_render):
2090 * app/diagram.c (diagram_find_closest_connectionpoint): Take
2091 connectibility into account.
2093 * app/layer_dialog.h (struct _DiaLayerWidget):
2094 * app/layer_dialog.c:
2095 Connectible toggle updates, now works fairly well.
2097 * app/select.c (select_transitive_callback): Make sure we're only
2098 selecting in the same layer.
2100 2004-06-04 Lars Clausen <lars@raeder.dk>
2102 * app/pixmaps/Makefile.am: Also install connectable images.
2104 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
2105 layer toggles from layer itself. Also update diagram correctly
2106 for visibility. Still need updates for connectivity behaviour.
2108 2004-06-03 Hans Breuer <hans@breuer.org>
2110 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
2112 * lib/diagdkrenderer.c(set_linejoin) : actually set
2113 join_style not cap_style
2114 (set_dashes): with the correct number of dashes
2116 2004-06-03 Lars Clausen <lars@raeder.dk>
2118 * app/modify_tool.c (click_select_object):
2119 * lib/text.c (text_set_cursor):
2120 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
2122 2004-05-31 Hans Breuer <hans@breuer.org>
2124 * lib/object_defaults.c : don't 'failed to load external
2125 entity "NULL"' when the defaults file does not exist,
2126 bug #108764 [again: somehow this got lost]
2128 * app/paginate_gdiprint.cpp : don guess the WMF export
2129 filter used for printing but find it by unique name.
2130 Also update for export_func renaming
2131 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
2132 provide some unique names
2134 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
2135 app/select.c : fix bug #140789 by always checking if there
2136 still is an active diagram before accessing it
2138 * app/defaults.c app/properties.c : user visible string should
2139 not read DiaObject but stay as "Object defaults/properties"
2141 * app/app_procs.c : reduce the hack to pass --size to the
2142 export via user_data to the only filter supporting it. Other
2143 filters would crash on it or do worse ;(
2145 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
2147 2004-05-31 Lars Clausen <lars@raeder.dk>
2150 * lib/widgets.c: Use GtkType rather than guint for
2151 dia_size_selector_get_type.
2153 2004-05-29 Lars Clausen <lars@raeder.dk>
2155 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
2156 that it matches the screen output for selfoverlapping polygons and
2159 2004-05-28 Hans Breuer <hans@breuer.org>
2161 * app/load_save.c : ignore empty groups on load and don't
2162 write empty groups while saving
2163 * lib/group.h (group_update_data): there is no first object
2164 in empty groups and they probably don't need an update at
2165 all. Maybe the shold just not exist ?
2167 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
2168 text positioning as well as drawing of images with alpha
2170 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
2171 HAVE_WINDOWS_H or G_OS_WIN32 is defined
2173 2004-05-28 Lars Clausen <lars@raeder.dk>
2175 * app/pixmaps/Makefile.am (imagedir):
2176 * app/pixmaps/visible.png:
2177 * app/pixmaps/visible-empty.png: New images for the visibility
2178 button in the layer dialog.
2180 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
2181 more border around the button. Still some left when hovering the
2182 mouse or selecting, and the grey background is annoying.
2184 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
2185 visibility connector.
2187 2004-05-26 Lars Clausen <lars@raeder.dk>
2189 * configure.in (DB2MAN): Better check for db2man docbook place.
2190 Need something even better.
2192 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
2194 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2195 extraeneous borders.
2198 * dia_gnome_icon.png:
2199 * samples/render-test.dia: Rendering test from Hans.
2201 2004-05-24 Hans Breuer <hans@breuer.org>
2203 * lib/filter.h : renamed DiaExportFilter::export to
2204 _DiaExportFilter::export_func (should not use c++
2205 keywords (g++ specifc ?) in headers. Same for import
2206 out of pure symmetry reasons
2207 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
2208 app/diagram.c app/filedlg.c : reflect functions renaming
2210 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
2211 under *NIX, too. [If you want something done, do it yourself ;-]
2212 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
2213 with wmf.cpp's GDI usage
2214 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
2215 [For the moment it does not much more than compiling, i.e.
2216 the produced WMF files are invalid, if not created on windoze.]
2218 * configure.in : check for C++ to compile plug-in/wmf
2220 * objects/GRAFCET/boolequation.c : looks like fixing
2221 another leak (untested)
2223 2004-05-23 Hans Breuer <hans@breuer.org>
2225 * acinclude.m4 : another attempt to fix
2226 bug #142032 (still not sure it's the right one,
2227 but works for me(tm), which the other does not ;)
2229 * plug-ins/cairo/Makefile.am
2230 plug-ins/Makefile.am
2231 configure.in : support building the new cairo
2232 plug-in, if given --with-cairo and the cairo
2233 packages are found, see http://cairographics.org
2234 and also http://hans.breuer.org/dia/dia-cairo.htm
2236 * plug-ins/cairo/diacairo.c : make it compile
2237 with DEBUG_CAIRO defined, too.
2239 2004-05-23 Hans Breuer <hans@breuer.org>
2241 * plug-ins/cairo/Makefile.am : initial attempt
2243 * plug-ins/cairo/diacairo.c : a new exporter based on
2244 Cairo http://cairographics.org rendering api. Currently
2245 it just can export PNG and PS but one day it might get
2246 PDF and more almost for free. [It is not yet included
2247 in the *NIX build system due to lack of auto* magic.]
2249 * plug-ins/pixbuf/pixbuf.c : always register the export
2250 filter part. If the user does not want it it can be
2251 disabled by File/Plugins or explicit selected the other
2252 one in the Export Formats List
2254 2004-05-23 Hans Breuer <hans@breuer.org>
2256 * lib/dia_dirs.c : #include "message.h"
2257 lib/widgets.c : #include "persistence.h"
2258 lib/widgets.c(dia_font_selector_init) : still not C99
2259 lib/persitence.h : removed unimplemented prototype
2260 lib/persitence.c(persistence_load_list) : still not C99
2261 app/create_object.c : #include "highlight.h"
2262 app/layer_dialog.c : #include "widgets.h"
2263 app/modify_tool.c : prototype functions before usage
2264 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
2265 [otherwise one will have a hard time to make C++ compile ;]
2266 lib/dia_dirs.c : #include "message.h"
2267 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
2270 * plug-ins/xfig/xfig-import.c : dont initialize an int with
2273 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
2274 as documented, i.e. _not_ copying. Plugs a memory leak in
2275 lib/dialibartrenderer.c
2277 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
2278 to radius to more of a clue what it is representing
2280 * */makefile.msc lib/libdia.def : updated
2282 ChangeLog : fixed some date copy&paste bug
2284 2004-05-21 Lars Clausen <lars@raeder.dk>
2286 * NEWS: Release tag.
2288 * config.h.win32: Now 0.93+cvs
2290 * RELEASE-PROCESS: Update with new info about release branches.
2292 * Many files: Moved devel branch back into main trunk. Should
2293 have been done in the opposite way, with release in a branch.
2295 2004-05-20 Hans Breuer <hans@breuer.org>
2297 * acinclude.m4 : disable setting of PYTHON_PREFIX
2298 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
2299 as workaround for bug #142032 (the real fix would
2300 involve some auto* knowledge which I don't have
2303 * plug-ins/python/Makefile.am : more python
2304 plug-ins to be installed (especially svg import,
2305 but also 'simple scale' should be useable
2308 * plug-ins/python/scascale.py : update display
2309 after modifying selected objects
2311 * plug-ins/python/diasvg_import.py : initialize
2314 2004-05-18 Lars Clausen <lars@raeder.dk>
2316 * app/diagram_tree.c (select_node): Use
2317 diagram_remove_all_selected to kill selected list.
2319 * lib/font.c: Set language when using a different context.
2321 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
2322 and removed ctype include (#142661).
2324 * lib/paper.c (get_default_paper): Changed isalnum to
2325 g_ascii_isalnum and removed ctype include. (#142661)
2327 * objects/custom/shape_info.c:
2329 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
2331 2004-05-17 Hans Breuer <hans@breuer.org>
2333 * lib/object_defaults.c : don't 'failed to load external
2334 entity "NULL"' when the defaults file does not exist,
2337 * lib/widgets.c : fixed possible menu leak
2338 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
2339 avoid finalization of floating references, bug #142307
2341 2004-05-15 Lars Clausen <lars@raeder.dk>
2343 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
2344 fonts better (#138655)
2346 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
2348 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
2349 dist, xml, dbk and man. Also the sub-xml files. (#142098)
2351 * Makefile.am (CLEANFILES):
2352 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
2353 translation-reports, they are generated automagically. THANKS
2354 file not considered locally generated, so is not locally
2357 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
2359 * lib/diaarrowchooser.c:
2360 * lib/prop_attr.c: Fixing naming for arrowselector.
2362 * objects/UML/object.c (objet_type): Oops, little too aggressive
2363 with the DiaObject thing here:)
2365 * objects/custom/shape_info.c (parse_svg_node): Use
2366 g_ascii_isdigit instead of isdigit.
2368 * app/diaunitspinner.c (dia_unit_spinner_update):
2369 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
2370 instead of isspace avoids char subscript issues (#142467).
2372 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
2373 return value conflict.
2375 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
2376 value conflict. Also improved signature. (#142466)
2378 * app/load_save.c (diagram_data_load): Don't overwrite the list in
2379 the layer, but instead free the returned list (#142480)
2381 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
2382 for the grid widget.
2384 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
2386 * configure.in (DB2MAN): Currently just check for two known
2387 positions for the docbook xsl. Don't know a generic way to find
2388 this info. Ought to add an option for it, but then it's really
2389 only required for maintainers, I think. Maybe.
2391 * app/display.c (update_snap_grid_status): Remove nasty image
2392 toggling code not require for grid toggle button anymore. (#142475)
2394 * app/interface.c (create_display_shell): Use
2395 dia_toggle_button_new_with_images to create grid toggle button.
2396 Much nicer. (#142475)
2398 * app/menus.c (menus_initialize_updatable_items): Free the string
2399 along with the GString. (#142475)
2401 * lib/intl.c (free_alias_table): Free hash table entries in a
2402 proper way, avoiding duplicate frees. (#142475)
2404 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
2405 not put in the hash (avoid reading freed memory). (#142476)
2407 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
2409 (dia_font_selector_get_family_from_name): Stop leaking
2412 2004-05-14 Lars Clausen <lars@raeder.dk>
2414 * Transfer of fixes from release branch. Not the prettiest way to
2415 do it, this should be done during release, not afterwards.
2417 Tomasz Kłoczko <kloczek@pld.org.pl>:
2419 * acinclude.m4: minor fixes (added missing [] quotation).
2421 Lars Clausen <lars@raeder.dk>:
2423 * app/interface.c (toolbox_delete):
2424 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
2425 cancels quit due to modified diagrams.
2427 Samúel Jón Gunnarsson <sammi@techattack.nu>:
2429 * is.po: Added "is" to ALL_LINGUAS.
2431 Lars Clausen <lars@raeder.dk>:
2433 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
2435 Hans Breuer <hans@breuer.org>:
2437 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
2438 burden should be shared and not be win32 only ;) [this time
2439 build was broken by adding GtkType to widget.h]
2441 * objects/standard/box.c objects/standard/ellipse.c :
2442 for code clarification compare (obj->aspect != FREE_ASPECT)
2443 and not (obj->aspect); no binary effect.
2445 * app/paginate_psprint.c : don't leak printcmd
2447 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
2448 standard C requires variables to be declared at the beginning of
2449 a block, also there is no fabsf() with msvc
2451 * app/win32print.[ch] : make win32_printer_close() return an
2452 error code, it's used as pclose replacement
2454 Lars Clausen <lars@raeder.dk>:
2456 * RELEASE-PROCESS: Mention PATCH keyword in release process.
2458 2004-05-06 Lars Clausen <lars@raeder.dk>
2460 * lib/widgets.[ch]: Utility function to make a widget with two
2461 images (selected and non-selected).
2463 * lib/diagramdata.h: Renamed selectable to connectable.
2464 Selectable will come later.
2467 * app/pixmaps/Makefile.am (imagedir):
2468 * app/pixmaps/connectable.png:
2469 * app/pixmaps/connectable-empty.png: New images for the
2470 selectability widget. Proper installation, too.
2472 * app/layer_dialog.[ch]: Adding new button showing connectability
2473 status. Much cleaner way of doing the button, but some problems
2474 with the item getting selected
2476 * lib/widgets.h: Reminder of how to install images for use by
2477 dia_get_image_from_file.
2479 2004-05-05 Lars Clausen <lars@raeder.dk>
2481 * objects/network/Makefile.am:
2482 * objects/network/pixmaps/radiocell.xpm:
2483 * objects/network/pixmaps/basestation.xpm:
2484 * objects/network/network.c:
2485 * objects/network/basestation.c:
2486 * objects/network/radiocell.c:
2487 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
2490 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
2491 Backslash arrow head.
2493 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
2494 Notify takes care. Should maybe use that more.
2496 * lib/diagramdata.[ch]:
2497 * app/filedlg.c (file_export_ok_callback):
2498 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
2500 * app/dia-props.c (diagram_properties_respond):
2501 * app/diagram.c (diagram_set_modified):
2503 * app/disp_callbacks.c:
2505 * app/load_save.c (diagram_save):
2506 Better handling of undo and modified status -- only diagram
2507 properties and page setup explicitly set modified status, all
2508 other important changes should be done through the undo stack
2511 2004-05-04 Lars Clausen <lars@raeder.dk>
2513 * app/app_procs.c (app_init): Consistently open a new diagram if
2514 none specified, with standard name Diagram1.dia.
2516 * app/layer_dialog.c:
2517 * app/diagram.c (diagram_finalize):
2518 * app/commands.c (dialogs_layers_callback):
2519 * app/filedlg.c (file_export_ok_callback):
2520 * app/app_procs.c (app_exit):
2521 * app/display.c (display_set_active):
2522 * app/interface.c (dia_dnd_file_drag_data_received):
2523 * app/recent_files.c:
2524 Undone attempt at unifying the multi-diagram windows (like
2525 layers). It broke the layers and didn't make much sense for the
2526 diagram properties dialog anyway.
2530 * lib/diagramdata.c:
2532 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
2533 many subclasses have to be fixed. Fixed remaining
2534 Object/ObjectType renaming issues.
2536 2004-05-02 Lars Clausen <lars@raeder.dk>
2538 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
2539 having to make all the children objects conform to
2540 GObject style at once? Warning! Does not compile right now.
2542 * many, many files: Rename Object to DiaObject in preparation for
2543 making it a GObject.
2545 * app/diagram.[ch]: Turn diagram into a real GObject.
2548 * app/filedlg.c: Correctly ref and unref diagram.
2550 * lib/diagramdata.h: Starting to turn it into a GObject as well.
2552 2004-05-02 Lars Clausen <lars@raeder.dk>
2554 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
2557 * app/dia-props.c: Undo the attempt at making it really
2558 multi-diagram, now going for a one-diagram dialog.
2560 2004-04-30 Lars Clausen <lars@raeder.dk>
2562 * app/undo.c: Undoing broken undo stuff for diagram properties and
2563 page setup. Shouldn't be mixed into undo at all.
2565 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
2566 function to avoid in particular the grid crawling.
2568 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
2569 to allow aligning dashes, so they don't crawl.
2571 2004-04-28 Lars Clausen <lars@raeder.dk>
2573 * app/Makefile.am: New files diacanvas.[ch]
2575 * app/interface.c (create_display_shell): Use new diacanvas that
2576 allows placing widgets on canvas, for text edit.
2579 Early work towards rotation. No implementation yet.
2581 * app/layer_dialog.c (undo_layer):
2582 * objects/network/bus.c (bus_create_change):
2583 * objects/standard/box.c (aspect_create_change):
2584 * objects/standard/ellipse.c (aspect_create_change):
2585 Use g_new0 for change struct.
2587 * app/undo.c (diagram_change_apply_or_revert):
2588 Support for undo of diagram properties and page setup.
2590 * app/disp_callbacks.c (ddisplay_canvas_events):
2592 * lib/diagramdata.h:
2593 * app/modify_tool.c (click_select_object):
2594 * lib/text.c (text_register_editable):
2595 Starting work on new text editing model. Guarded by #ifdef so
2598 2004-04-07 Lars Clausen <lars@raeder.dk>
2600 * app/recent_files.c (open_recent_file_callback):
2601 * app/interface.c (origin_button_press):
2602 * app/filedlg.c (file_open_ok_callback):
2605 * app/commands.c (dialogs_layers_callback): Using new
2606 diagram_set_current() function to ensure auxilliary windows are
2609 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
2610 menu now borken. *sniff*
2612 * app/dia-props.c: Diagram properties window attempted
2613 persistentified. Trying to make more like layer dialog (since it
2614 already changes when the diagram changes), but some things still
2617 2004-04-06 Lars Clausen <lars@raeder.dk>
2619 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
2620 * lib/attributes.c (attributes_set_default_line_style):
2621 * app/interface.c (create_lineprops_area):
2622 Make line style persistent as well. Added function to directly
2623 set the style and dashlength of a dialinechooser.
2625 2004-04-03 Lars Clausen <lars@raeder.dk>
2627 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
2628 Copy the ellipse extra handle correctly.
2630 * objects/standard/box.c (box_move_handle): Move definitions
2631 according to bug #138925.
2633 2004-04-02 Lars Clausen <lars@raeder.dk>
2635 * app/recent_files.c: Use absolute name for recent files list.
2637 * lib/attributes.c: Set start and end arrow types, correctly.
2639 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
2642 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
2644 * app/interface.c (create_lineprops_area): Set persistently stored
2647 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
2650 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
2651 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
2653 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
2654 with what xfig does. Text now converted from latin-1 to utf-8
2655 (latin-1, since that's what xfig seems to use. Would like to see
2656 examples of non-latin-1 figs). String case problems fixed.
2658 2004-04-01 Lars Clausen <lars@raeder.dk>
2661 * app/interface.c: Default arrows now stored persistently, too.
2663 * lib/arrows.[ch]: New function to get arrow type from name.
2665 * app/color_area.c (color_area_create):
2667 * app/linewidth_area.c: Also persistent colors and line width.
2668 That was easy. Arrows and line style will take a bit more work,
2671 2004-04-01 Lars Clausen <lars@raeder.dk>
2673 * app/preferences.c: All preferences are now
2674 handled by persistence, old prefs load and store code is gone.
2676 * lib/persistence.[ch]: Added string and color persistents. This is
2677 a different string from the one used in the printer dialog, that
2678 one has a GtkEntry attached -- may want to make that one an
2679 encapsulation of this one or something.
2681 2004-03-31 Lars Clausen <lars@raeder.dk>
2683 * app/app_procs.c: Do persistence before prefs. Prefs are to be
2686 * lib/persistence.[ch]:
2687 * app/preferences.c: Adding persistence for integers, reals,
2688 booleans. Fixed stupid list bug. Test persistence for prefs.
2690 2004-03-30 Lars Clausen <lars@raeder.dk>
2692 * app/recent_files.c:
2693 Debugging of deallocation.
2696 Font menu now uses persistence. Ordering needs fixing, or it must
2700 * lib/Makefile.am (libdia_la_SOURCES):
2701 * app/Makefile.am (dia_core_files):
2702 * app/persistence.[ch]:
2703 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
2704 number of fixes, including multiple entries now being read
2705 properly. Still some oddity about the persistent list having the
2706 role as first entry (which makes the font menu crash after a few
2709 2004-03-26 Lars Clausen <lars@raeder.dk>
2711 * app/persistence.c:
2712 * app/recent_files.[ch]: Redoing the recent-files list using
2713 persistence, reducing code by about 50%. Still a problem when
2714 selecting an item from the menu -- possibly it doesn't like the
2715 menu being destroyed while in the callback?
2717 2004-03-25 Lars Clausen <lars@raeder.dk>
2719 * app/persistence.c (persistence_load_string): Missing semicolon?!?
2721 2004-03-24 Lars Clausen <lars@raeder.dk>
2725 * app/persistence.[ch]:
2726 * app/paginate_psprint.c (diagram_print_ps): New type of data can
2727 be stored persistently: Strings. Only the printer command/file
2728 go in here now, but things like creator, organization, diagram
2729 comments etc could also be handled this way.
2731 * objects/standard/beziergon.c (beziergon_draw): Avoid control
2732 lines when the object is not selected.
2734 2004-03-23 Lars Clausen <lars@raeder.dk>
2736 * lib/connectionpoint.h:
2737 * app/load_save.c: Allow connection points to have names, and
2738 handle that in load/store.
2740 * lib/dialibartrenderer.c: Better highlighting for text.
2742 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
2743 * lib/diagdkrenderer.c: Better highlighting for all, using same
2744 principles as libart highlighter.
2746 2004-03-22 Lars Clausen <lars@raeder.dk>
2748 * lib/dialibartrenderer.[ch]:
2749 * lib/diagdkrenderer.c:
2755 * app/modify_tool.c:
2756 * app/create_object.c:
2757 * app/highlight.[ch]:
2758 Added simple object highlighting. In GDK rendering, highlights
2759 the bbox, in libart highlights the outline of the object (except
2762 2004-03-22 Lars Clausen <lars@raeder.dk>
2764 * RELEASE-PROCESS: Added info on how to do a branch for
2765 development during release process.
2767 2004-03-20 Lars Clausen <lars@raeder.dk>
2769 * RELEASE-PROCESS: Mention PATCH keyword in release process.
2771 2004-03-19 Lars Clausen <lars@raeder.dk>
2773 * xmldocs.make: Fixed apparent uninstall error.
2776 * doc/en/dia-manual.xml:
2777 * doc/pl/dia-manual.xml:
2780 * NEWS: Version 0.93-pre1.
2782 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
2783 borelli): Remove some deprecated stuff.
2785 2004-03-18 Lars Clausen <lars@raeder.dk>
2787 * Makefile.am: Try better uninstall thing for scrollkeeper.
2789 * objects/ER/entity.c:
2790 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
2791 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
2792 1, 1 exactly, as well as associative ER entities.
2794 2004-03-17 Lars Clausen <lars@raeder.dk>
2796 * Makefile.am: Make distcheck not complain about scrollkeeper
2797 problems (as per advice from James Henstridge).
2799 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
2800 standard installation.
2802 * objects/standard/ellipse.c: Better strings for object menu.
2804 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
2805 of dialogs (shame on you, glade!)
2807 * objects/custom/custom_object.c (custom_setup_properties):
2808 Removed debugging output
2810 * app/paginate_psprint.c (diagram_print_ps): Slightly more
2811 readable printer error messages.
2815 * doc/en/Makefile.am:
2816 * doc/pl/Makefile.am:
2817 New more standard way to install the XML-based manuals.
2819 2004-03-15 Lars Clausen <lars@raeder.dk>
2821 * objects/standard/box.c (box_move_handle): More intuitive fixed
2824 * objects/standard/ellipse.c:
2825 * objects/standard/box.c:
2828 * app/layer_dialog.[ch]:
2829 Patch from Steve Langasek <vorlon@debian.org>:
2830 Fixes startup crash on Alpha (bug #137169)
2832 * objects/standard/box.c: Aspect fixing like ellipses.
2834 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
2836 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
2837 pixmaps, now can uninstall properly.
2839 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
2840 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
2842 Added object menu access.
2844 2004-03-07 Hans Breuer <hans@breuer.org>
2846 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
2847 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
2848 would not use deprecated apis, but it's much simpler this way)
2850 * lib/makefile.msc : build the above new widgets and render_pixmap
2851 * lib/libdia.def app/dia.def app/makefile.msc : updated
2853 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
2854 what I saw, i.e. how big is an empty array supposed to be ? ;-).
2855 Previously it gave :
2856 disp_callbacks.c(188) : error C2059: syntax error : '}'
2857 disp_callbacks.c(191) : warning C4034: sizeof returns 0
2859 * app/interface.c : #include "dialinechooser.h"
2861 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
2862 [one more reason not to use it here : it's quite slow compared to
2863 the native win32 font renderer ;]
2865 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
2866 a GtkDialog*, removed unneeded cast
2868 * app/render_eps.c : avoid assignment warning for void* user_data
2871 2004-03-06 Steffen Macke sdteffen@web.de>
2873 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
2876 2004-03-06 Lars Clausen <lars@raeder.dk>
2878 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
2881 * lib/font.c: Simple cleanup system for layout cache removes any
2882 layout that hasn't been used for 10 minutes, but only during idle
2885 2004-03-05 Lars Clausen <lars@raeder.dk>
2887 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
2888 (lluis padro) (#130887): Extended Electric shapes with vertical
2891 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
2892 start with "Create a" or "A", always capitalize first word).
2894 * objects/standard/ellipse.c: Patch from Grégoire Dooms
2895 <dooms@info.ucl.ac.be>: Add extra connection point in center of
2896 ellipse. Additionally added a handle in the center, and resize is
2897 now around the center.
2900 * sheets/Makefile.am (SUBDIRS):
2901 * sheets/IsometricMap.sheet.in:
2902 * shapes/Map/Isometric/*
2903 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
2905 2004-03-04 Lars Clausen <lars@raeder.dk>
2908 * lib/pixmaps/Makefile.am:
2910 Better installation handling of pixmaps.
2912 * lib/diagdkrenderer.c:
2913 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
2914 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
2917 2004-03-03 Lars Clausen <lars@raeder.dk>
2919 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
2920 * lib/diagdkrenderer.c:
2921 * lib/diasvgrenderer.c:
2922 * lib/dialibartrenderer.c:
2923 * lib/diainteractiverenderer.c:
2924 * lib/prop_text.c (multistringprop_handle_key):
2926 * lib/dia_image.c (dia_image_rgba_data):
2928 * lib/diagramdata.c (layer_set_object_list):
2931 Getting rid of compile warnings.
2933 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
2934 images. Also remove unused decls.
2936 2004-03-02 Lars Clausen <lars@raeder.dk>
2939 * lib/widgets.c (dia_size_selector_init): Add images to the size
2940 selector chain widget. Also new function to load installed images
2941 from files (better than from included XPM, IMHO).
2943 2004-03-02 Lars Clausen <lars@raeder.dk>
2946 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
2950 * lib/widgets.c (dia_size_selector_init): Work
2951 on getting proper icon onto the size selector. Need simple image
2952 load mechanism in utils.
2956 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
2957 strings, handle utf8 strlen properly. Bug #135930.
2959 2004-03-01 Lars Clausen <lars@raeder.dk>
2961 * shapes/Cybernetics/*:
2962 * sheets/Cybernetics.sheet.in:
2963 * sheets/Makefile.am:
2964 * shapes/Makefile.am:
2965 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
2966 Roggendorf): Cybernetic shapes (#95553).
2968 2004-03-01 Lars Clausen <lars@raeder.dk>
2970 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
2972 * lib/diatypes.h: New type DiaSizeSelector.
2974 * lib/widgets.[ch]: New size selector widgets that selects two
2975 values (width and height, nominally) optionally linked to keep
2978 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
2980 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
2981 in front of file. Bug #128600.
2985 * app/lineprops_area.[ch]:
2987 * lib/dialinechooser.[ch]:
2988 * lib/widgets.c (dia_line_style_selector_init): use line preview
2989 instead of text labels. This involve moving away line_chooser to lib
2992 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
2995 * app/Makefile.am (dia_core_files):
2996 * app/interface.c (create_lineprops_area):
2997 * app/render_pixmap.[ch]:
2999 * lib/diaarrowchooser.[ch]:
3002 * lib/propdialogs.c:
3003 * lib/render_pixmap.[ch]:
3004 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
3005 of text labels. This involve moving away arrow_chooser to lib from
3008 2004-02-29 Lars Clausen <lars@raeder.dk>
3010 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
3011 being updated half-way through destruction. To be removed when
3012 the lists are replaced by something better.
3014 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
3015 Accelerators for class dialog. Bug #130995.
3016 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
3019 * app/preferences.c:
3021 * objects/GRAFCET/step.c:
3022 * objects/Misc/analog_clock.c:
3023 * objects/chronogram/chronoline.c:
3024 * objects/chronogram/chronoref.c:
3025 Change to american spelling (color, not colour) to ease
3026 translators job. Note that a number of translations may need an
3027 update now. Bug #120466.
3029 2004-02-29 Lars Clausen <lars@raeder.dk>
3031 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
3032 Better arrow handling for missing arrows.
3034 * plug-ins/metapost/render_metapost.[ch]: Patch from
3035 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
3036 size. See bug #135363.
3038 * app/app_procs.c (app_init): If non-interactive, or if
3039 --log-to-stderr used, send all messages to stderr. This should
3040 mean that old diaconv == dia --export-to-format=FOO BAR
3042 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
3044 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
3046 2004-02-28 Lars Clausen <lars@raeder.dk>
3048 * lib/text.c (text_key_event): Patch from Kouhei Sutou
3049 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
3051 2004-02-27 Lars Clausen <lars@raeder.dk>
3053 * KNOWN_BUGS: Added info on most commonly reported bugs, with
3056 * app/disp_callbacks.c (popup_object_menu): Unified properties
3057 entry, fixes bug #105080.
3059 * app/diagram.c (diagram_update_menu_sensitivity):
3060 * app/menus.h (struct _UpdatableMenuItems):
3061 * app/menus.c (menus_initialize_updatable_items): Menu items
3062 changed around, align menus flattened, properties entry ghosted,
3063 dialogs menu removed, more shortcuts added. Closing bugs #94018,
3065 Also taking out Gnome menus for now. They don't allow shortcuts,
3066 so what are they good for?
3068 2004-02-27 Lars Clausen <lars@raeder.dk>
3070 * app/menus.c (display_menu_items):
3071 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
3074 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
3076 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
3078 2004-02-23 Lars Clausen <lars@raeder.dk>
3080 * app/app_procs.c (app_init): Comments for translators.
3082 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
3084 * app/preferences.c (prefs_create_dialog): Change packing policy
3085 for widget to expand.
3087 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
3088 running with a debugger.
3090 2004-02-19 Lars Clausen <lars@raeder.dk>
3092 * app/undo.[ch]: Adding last-saved information to undo to allow a
3093 diagram with all changes since last save undo to be marked as
3094 nonmodified. Still needs integration with actual undo
3098 * app/diagram_tree.c (diagram_tree_update):
3100 * app/display.c (update_modified_status):
3101 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
3102 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
3105 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
3106 vs. EPSI, comment out EPSI until preview is in there.
3109 * lib/diarenderer.c: Removing debugging printfs.
3111 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
3114 * objects/standard/arc.c (arc_update_handles): Check to avoid
3115 crash when start and end points are the same.
3117 2004-02-19 Lars Clausen <lars@raeder.dk>
3119 * objects/standard/bezier.c:
3120 * objects/standard/line.c (line_load):
3121 * objects/standard/polyline.c (polyline_load):
3122 * objects/standard/zigzagline.c (zigzagline_load):
3123 * objects/standard/arc.c (arc_load):
3124 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
3125 instead of hardcoding.
3127 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
3129 * app/disp_callbacks.c (popup_object_menu): append a menu item to
3132 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
3134 * app/app_procs.c: declare rc properly with the proper #ifdef
3136 2004-02-17 Lars Clausen <lars@raeder.dk>
3138 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
3139 objects (which seemingly FIG itself breaks, or else there is no
3142 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
3144 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
3145 width renderable in xfig. Helps on bug #133637, but does not
3146 quite fix it -- something about depth is wrong.
3148 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
3149 Extern definitions for Mac compilation.
3151 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
3152 (jdassen@debian.org): Include fix.
3154 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
3155 sure the initial diagram size is correct.
3157 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
3159 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
3160 CPPFLAGS, as per automake warning.
3161 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
3162 LDFLAGS, as per automake warning.
3163 (run_dia.sh): More robust creation, and more easily moved.
3165 * app/undo.c (group_objects_revert): Don't double-free the objects
3166 list. (#129221) Call object_add_updates on grouped objects.
3167 (ungroup_objects_revert): Call object_add_updates on grouped objects.
3169 * lib/diagramdata.c: Internal
3172 * lib/polyshape.c (polyshape_update_data): Correctly calculate
3173 directions for polyshape corners (thanks, Valgrind!)
3176 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
3178 * lib/arrows.h: Default arrow size defined. After all are using
3179 this, may lower to 0.4 or so.
3181 * app/lineprops_area.[ch]: New function to set the arrow type for an
3184 * app/interface.c (create_lineprops_area): Set default line to
3185 have an arrow (fairly likely to be what's wanted, plus it shows
3186 the user where arrows are set).
3188 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
3190 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
3192 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
3193 Dotted lines should use dot_length, not dash_length.
3195 2004-02-06 Hans Breuer <hans@breuer.org>
3197 * app/interface.c : don't use gtk_drawing_area_size() to avoid
3198 the defaut size being also the minimum size. Instead use
3199 gtk_window_set_default_size() on the display shell. Fixes #130982.
3201 [fixing #131210, but umlauts in the 'main' filename still not really
3202 supported on systems where filesystem encoding != utf8
3203 (Problems with recent file menu and window title)]
3204 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
3205 to deal with possible differnces in filename encodings, see
3206 g_filename_<to|from>_utf8()
3207 * objects/standard/image.c : use them.
3209 * lib/widgets.c : handle possible encoding difference here, too.
3210 Also get rid of most warnings by using const and GTK casts where
3211 appropriate; one wrong cast (probably causing a crash) was found/fixed
3212 by this - the remaining give a hint on finally leaking FontSelectorEntry.
3214 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
3215 dia_file_selector_<get|set>_file to behave like the respective Gtk
3216 functions do : encoding- and const-wise ;-)
3218 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
3220 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
3222 2004-01-19 Hans Breuer <hans@breuer.org>
3224 * app/app_procs.c app/diaconv :
3225 only call bind_textdomain_codeset when available, what's good
3226 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
3227 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
3229 2004-01-19 Steffen Macke <sdteffen@web.de>
3231 * makefile.msc: updated for new GAIM-like installer build; sync'ed
3232 ALL_LINGUAS with configure.in
3234 2004-01-18 Hans Breuer <hans@breuer.org>
3236 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
3237 by not passing NULL to g_print()
3239 * app/interface.c (create_toolbox) : actually use
3240 persitence_register_window() to restore toolbox window size
3242 * app/makefile.msc lib/makefile.msc : allow to deselect
3243 building with Freetype by command line to nmake like :
3244 nmake -f makefile.msc "NOFT2=1"
3246 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
3247 far as possible with Dia's limited line style
3248 * plug-ins/python/pydia-property.c : allow to get and set
3249 Linestyle, style and dash(length)
3251 * lib/object.h : removed typedef for ObjectId not use anywhere
3253 2004-01-17 Hans Breuer <hans@breuer.org>
3255 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
3256 doc/shape.dtd doc/custom-shapes :
3257 support for images in custom shapes, also removed some long-time
3260 * doc/en/*.xml : fixed crippled line ends which get created
3261 when windoze line ends are checkin from the unix side
3263 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
3265 * configure.in: Added "sq" to ALL_LINGUAS.
3267 2004-01-11 Hans Breuer <hans@breuer.org>
3269 [more less leaks ;-]
3271 * objects/SADT/annotation.c : use text_destroy() not g_free()
3273 * objects/chronogram/chronoline.c : neither leak chronoline::events
3274 nor chronoline::name
3276 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
3278 2004-01-11 Hans Breuer <hans@breuer.org>
3280 * lib/properties.h :
3281 * objects/custom/custom_object.c : more properties optional
3282 to be backward compatible for older diagrams not having them
3283 set. (Try to load samples/all_objects.dia)
3285 [less memory leaks thanks valgrind ;-]
3287 * app/recent_files.c (recent_file_history_write) :
3288 g_free(history_filename);
3289 (recent_file_menu_item) : use g_path_get_basename()
3290 which already strdups, free result of g_strescape()
3292 * app/filedlg.c (create_export_menu) : return of
3293 filter_get_export_filter_label() must be g_free()'d
3294 (create_open_menu) : same for import
3296 * app/export_png.c (export_png_ok) : destroy info ptr
3297 with png_destroy_write_struct()
3299 * app/app_procs.c (app_init) : g_free(export_format_string);
3301 * lib/font.c (dia_font_finalize) : finalize parent_class, too
3302 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
3303 refing it a second time, g_type_create_from_instance() is enough
3305 * lib/object_defaults.c (_obj_store) : don't mess with names
3306 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
3308 2004-01-11 Steffen Macke <sdteffen@web.de>
3310 * app/diapsftrenderer.c: including ftoutln.h
3311 * app/makefile.msc: updated for freetype build
3312 * lib/libdia.def: added dia_font_get_context()
3313 * lib/dialibartrenderer.c (draw_string): added cast
3315 2004-01-10 Hans Breuer <hans@breuer.org>
3317 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
3318 transformed coordinates, fixes bug 130804
3320 2004-01-10 Hans Breuer <hans@breuer.org>
3322 * app/filedlg.c app/app_procs.c : don't try to destroy
3323 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
3324 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
3325 returns. Fixes 'has no handler' bugs like #121019
3327 2004-01-10 Hans Breuer <hans@breuer.org>
3329 * objects/UML/class.c objects/UML/class_dialog.c :
3330 handle umlclass->name being empty to avoid, i.e. fix #127968
3332 [plugging memleaks, thanks valgrind :-]
3334 * lib/dia_xml.c (data_string) : don't leak return value
3335 of xmlNodeListGetString()
3337 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
3338 before returning, maybe alloca() would be the better
3339 choice but anyway ;)
3341 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
3343 * lib/font.c (dia_font_build_layout) : don't leak result
3346 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
3347 (this is the one which got me started using valgrind, see #130816)
3349 2004-01-07 Sanlig Badral <badral@openmn.org>
3351 * configure.in: Added "mn" to ALL_LINGUAS.
3353 2004-01-04 Hans Breuer <hans@breuer.org>
3355 * lib/diagdkrenderer.c : replace rendering of really small (height
3356 less than 2 pixels) with a simple dashed line, you wont notice the
3357 differnce beside it being much faster. This allows ...
3358 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
3359 * app/navigation.c : ... and lets you see an read rendered text even
3360 in the nice navigation popup.
3362 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
3363 (draw_string) : don't leak temporary image
3365 2004-01-04 Hans Breuer <hans@breuer.org>
3367 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
3368 * app/interface.c : use dia-app-icons.h to give Dia window icons
3370 * lib/dia_image.c lib/color.c : _never_ call functions implemented
3371 in app/ from lib/. It is not portable and broken from design
3372 * app/app_procs.c : call color_init() and dia_image_init() conditional,
3373 i.e. only if running interactive.
3375 * lib/font.h : #include <time.h>
3377 * lib/libdia.def : updated externals
3379 * objects/UML/actor.c
3380 objects/UML/association.c (todo)
3381 objects/UML/branch.c
3382 objects/UML/class.[hc] objects/UML/class_dialog.c
3383 objects/UML/classicon.c
3384 objects/UML/component.c
3385 objects/UML/constraint.c
3386 objects/UML/dependency.c
3387 objects/UML/generalization.c
3388 objects/UML/implements.c
3389 objects/UML/large_package.c
3390 objects/UML/lifeline.c
3391 objects/UML/message.c
3393 objects/UML/object.c
3394 objects/UML/realizes.c
3395 objects/UML/small_package.c
3397 objects/UML/usecase.c
3399 : ported coloring of most UML objects (bug #97517, orginal
3400 work Mathias Hasselmann)
3402 * lib/properties.h : add _OPTIONAL variants for
3403 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
3404 i.e. default colored - UML diagrams without complaining
3405 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
3406 not set properties with the help of PXP_NOTSET. Otherwise
3407 optional attributes would lead to wrong initialization.
3409 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
3410 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
3411 Same for most other selectors which probably should be rewritten
3412 to the combo box with tree model from Gtk+ 2.4
3414 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
3416 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
3417 being the Right Thing(tm) to use on Solaris.
3419 * objects/standard/bezier.c (bezierline_draw): Don't draw
3420 guidelines if not selected.
3422 * lib/object.[ch] (dia_object_is_selected): Function to check whether
3423 a given object is selected. O(n), where n is # selected objects.
3426 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
3428 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
3429 Fonts dialog is closed without pressing Ok (bug #128646).
3431 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
3433 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
3436 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
3438 * INSTALL: Updated list of requirements (bug #129653)
3440 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
3441 Pionchon <luc@handhelds.org>.
3443 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
3445 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
3446 empty or NULL strings (bug #130097).
3448 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
3450 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
3451 Added checks against color_black.
3453 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
3455 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
3456 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
3459 * objects/UML/component_feature.c: Patch from W. Borgert
3460 <debacle@debian.org>: Add handle to component feature text.
3462 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
3464 * lib/font.c: Caching PangoLayout for better rendering speed.
3466 2003-12-30 Lars Clausen <lars@raeder.dk>
3468 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
3469 get absolute file name from relative.
3470 * app/recent_files.c (recent_file_history_add): Use absolute
3471 filenames for recent files menu so that files can be found when
3472 Dia is invoked from other places.
3474 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
3475 Actually load different diagrams if such are requested on command
3478 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
3479 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
3481 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
3482 remove text rendering. May be turned into greeking at some later
3486 * app/Makefile.am (dia_core_files):
3487 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
3488 Adds navigation window a la Gimp, though without text being
3491 2003-12-27 Luc Pionchon <luc@handhelds.org>
3493 * app/navigation.h: (new file)
3494 * app/navigation.c: (new file) creates a navigation window with a
3495 thumbnail view of the whole diagram.
3496 * app/Makefile.am (dia_core_files): added new files.
3498 * app/interface.c (create_display_shell): added a button between
3499 the scrollbars to popup a navigation window.
3501 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
3503 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
3504 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
3505 not want text rendering.
3507 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
3509 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
3511 * objects/custom/shape_info.[ch]: Cleanup.
3513 * objects/custom/custom_object.[ch]: Changed to use new props
3518 * lib/prop_inttypes.c:
3519 * lib/prop_geomtypes.c: Added *prop_get_data_size.
3521 * lib/libdia.def: Added object_load_props.
3523 * configure.in: Better FT2 version test, from bug #129225.
3525 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
3527 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
3528 Lehmann <holger.lehmann@catworkx.de>.
3530 * plug-ins/xslt/Makefile.am:
3531 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
3532 and OWL XSLT sheets.
3534 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
3536 * lib/diagdkrenderer.c: Add implementation so text is still
3537 rendered. May be improved later.
3543 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
3544 Allow running without a $DISPLAY!
3546 * lib/color.c: Remove warnings for non-interactive run.
3551 * app/app_procs.[ch]:
3552 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
3553 to specify size for PNG output.
3555 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
3556 render a little smaller, so as to fit the big ones.
3558 * lib/arrows.[ch]: New arrow type from W. Borgert
3559 <debacle@debian.org>: Filled Dot and Triangle.
3561 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
3563 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
3566 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
3568 * acinclude.m4: Better Python configure code patch (can't find
3569 author, author please speak up!)
3571 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
3573 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
3576 2003-11-30 Hans Breuer <hans@breuer.org>
3578 * plug-ins/python/diasvg.py : initialize self.dash_length
3579 in constructor to avoid crashing if the renderer user
3580 does not set it before first usage.
3582 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
3584 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
3588 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
3589 development and stable versions.
3591 * lib/text.c (text_draw): Use new renderer function to draw the
3594 * lib/diarenderer.h:
3595 * lib/diarenderer.c: New renderer function "draw_text" with
3596 default implementation. This function should eventually be the
3597 main interface, as it will be able to handle width and caching of
3598 rendering internally. All users of draw_string should convert to
3599 use Text objects and call either renderer->draw_text or text_draw,
3600 the latter if the text can be edited in-place (as should be the
3603 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
3605 * shapes/Circuit/hresistor.shape: First example of extra
3608 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
3610 * plug-ins/shape/shape-export.c:
3611 * lib/diasvgrenderer.h:
3612 * lib/diasvgrenderer.c:
3613 * plug-ins/svg/render_svg.c (new_svg_renderer):
3614 Actually store the font size, using DiaRenderer's font fields.
3616 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
3618 * objects/custom/shape_info.[ch]:
3619 * objects/custom/custom_object.[ch]:
3620 Support for extra attributes in custom objects.
3622 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
3624 * app/diagram.c (diagram_update_menu_sensitivity): More
3625 intelligent checks for menu sensitivity. Might be slow on huge
3626 diagrams, but I think other things outweigh it by a lot.
3628 * app/menus.[ch]: Make "Bring Forwards"
3629 and "Send Backwards" updateable.
3631 2003-11-22 Steffen Macke <sdteffen@web.de>
3633 * shapes/Assorted/arrow-turn-up.shape:
3634 * shapes/Assorted/arrow-turn-up.png:
3635 * sheets/Assorted/Makefile.am:
3636 * sheets/Assorted.sheet.in: Added new arrow
3638 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
3646 * app/diagram_tree.c
3647 * app/diagram_tree_menu.c
3648 * app/diagram_tree_window.c
3649 * app/diapagelayout.c
3650 * app/diaunitspinner.c
3654 * app/layer_dialog.c
3655 * app/lineprops_area.c
3656 * app/linewidth_area.c
3659 * app/paginate_psprint.c
3661 * app/plugin-manager.c
3664 * app/recent_files.c
3666 * app/sheets_dialog.c
3667 * app/sheets_dialog_callbacks.c
3668 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
3669 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
3671 * TODO: Updated, note on EPS transparency.
3673 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
3675 * objects/UML/class.c (umlclass_draw): Allow classes with no name
3678 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
3681 * doc/en/dia-manual.xml:
3684 * NEWS: Another Brown Bag release for parenting problems,
3685 including a crash bug fix.
3687 * app/connectionpoint_ops.c (diagram_update_connections_object):
3688 Also update connections when moving children. This can cause
3689 move_handle to be called twice, so it must be idempotent.
3691 * app/load_save.c: Loading and saving of children totally redone.
3692 Now doesn't violate assumption that all objects in a layer are
3693 placed in order in XML file.
3695 * objects/UML/branch.c (branch_create): Don't lie about being
3698 * objects/UML/node.c (node_create):
3699 * objects/UML/large_package.c (largepackage_create): Drag with
3700 lower right-hand handle at creation like all other objects.
3702 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
3704 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
3705 parenting drop to behave like a move inside, i.e. constrain place
3706 instead of trying to resize. 'Cause, resizing cannot be done for
3707 all objects (e.g. UML Class). Also simplified the algorithm a lot
3710 * app/load_save.c: Saving and loading of connection points for
3711 children added. Prototypes for static functions added.
3713 * lib/dynamic_obj.c: Removed debugging output.
3715 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
3717 * doc/en/dia-manual.xml:
3718 * doc/pl/dia-manual.sgml:
3722 * NEWS: Brown Bag release 0.92.1
3724 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
3726 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
3728 * app/app_procs.c (app_init): Rearrangement for translators.
3730 2003-10-24 Steffen Macke <sdteffen@web.de>
3732 * lib/text.c(text_key_event): enforcing the inserted text length now,
3735 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
3737 * MAINTAINERS: Change Debian maintainer to be the default address.
3739 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
3740 args to match prototype, thus removing crashbug #125159.
3742 * RELEASE-PROCESS: Note to self.
3744 2003-10-22 Steffen Macke <sdteffen@web.de>
3746 * doc/en/dia-manual.xml: removed superfluous external references
3748 2003-10-21 Steffen Macke <sdteffen@web.de>
3750 * lib/libdia.def: added filter_get_by_name
3751 * app/render_eps.c: moved extensions definition outside #ifdef
3753 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
3757 Removed old Dia manual, put new one in doc/en/. Translations
3758 should go in doc/??/.
3760 * doc/en/dia-manual.xml:
3761 * doc/pl/dia-manual.sgml:
3762 * dia.spec (Release):
3765 * NEWS: 0.92 is here!
3769 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
3770 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
3773 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
3775 * doc/en/usage-objects-selecting.xml: Commented out empty note.
3777 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
3779 * doc/pl/dia-manual.sgml:
3780 * doc/en/dia-manual.xml:
3784 * dia.spec (Release): Pre7.
3786 * app/diapsrenderer.c (draw_string): Convert string to print based
3787 on current locale. If conversion fails, fall back to UTF-8 (which
3788 is almost certain to be messy).
3790 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
3792 * doc/pl/dia-manual.sgml:
3793 * dia.spec (Release):
3797 * doc/en/dia-manual.xml: Pre6.
3799 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
3800 TeX chars in strings -- must be possible to use TeX text in there.
3801 Also avoids infinite loop bug (#124464) Will get option for this
3804 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
3806 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
3808 * doc/en/dia-manual.xml:
3809 * doc/pl/dia-manual.sgml:
3810 * dia.spec (Release):
3815 * app/authors.h: Removed duplicate of M. C. Nelson.
3817 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
3819 * app/export_png.c: Unique name for libart PNG export: png-libart.
3821 * app/render_eps.c: Unique names for the two eps export methods:
3822 eps-builtin, eps-pango.
3824 * lib/filter.h: Binary compatibility change:
3825 Added unique name to export filters. Can be NULL.
3826 * lib/filter.c (filter_get_by_name): Finding a filter by
3829 * app/app_procs.h: Changed prototype for do_convert.
3830 * app/app_procs.c (app_init): Support for non-extension file
3831 format selection for export. Also allow extension to differ from
3832 that specified by the filters. A bit of refactoring, too.
3834 2003-09-28 Steffen Macke <sdteffen@web.de>
3836 * makefile.msc: added target po to update the translations
3838 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
3841 * dia.spec (Release):
3843 * doc/pl/dia-manual.sgml:
3844 * doc/en/dia-manual.xml:
3845 Pre4 is given a short try.
3847 * configure.in: Give all necessary libs to PNG test.
3849 * lib/font.c: Added legacy entries for sans, serif and monospace.
3851 * app/app_procs.c (internal_plugin_init):
3854 Added PS fonts output for Unix.
3856 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
3857 factor to make PS fonts stay in boxes.
3859 2003-08-03 Hans Breuer <hans@breuer.org>
3861 * config.h.win32 : close the version string
3863 * lib/libdia.def : with color_white, color_black being static
3864 on win32 they can not be exported anymore either
3866 * lib/dialibartrenderer.c : text rendering is back on win32,
3867 only by Gdk though; almost a year seems to be enough to
3868 wait for my patch at bug #94791 to be accepted ...
3870 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
3872 * shapes/network/{digitizing_board.png,plotter.png,
3873 laptop.png,telephone.png}: 22x22 icons.
3875 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
3877 * doc/pl/dia-manual.sgml:
3878 * doc/en/dia-manual.xml:
3879 * dia.spec (Release):
3883 pre3 improves font rendering speed.
3885 * app/app_procs.c (app_init): Don't do pango init here, it's done
3886 on demand in font.c now.
3888 * lib/font.c: Load pango context on demand rather than during
3889 init/all the time strikes a better balance between working font
3890 size and speed. Still need to cache width calculations.
3892 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
3894 * lib/dia_xml.c: Enable pretty printing. Should have been added
3897 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
3899 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
3900 adjustment a bit for half diamond and open round.
3902 * RELEASE-PROCESS: Added note about notifying translators and
3905 * doc/pl/dia-manual.sgml:
3906 * doc/en/dia-manual.xml:
3907 * dia.spec (Release):
3911 Update to 0.92-pre2.
3913 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
3915 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
3916 calculation for half diamond and open round.
3919 * objects/UML/component_feature.c:
3920 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
3921 arrows instead of specific little hacks. Much nicer, but damn
3922 there's a lot of arrows.
3924 * lib/dialibartrenderer.c (begin_render):
3925 * app/render_libart.c (begin_render): Use correct DPI for screen
3926 (well, actually the default DPI of 75 for now).
3928 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
3930 * lib/diagdkrenderer.c (draw_string): Some reformatting.
3932 * app/app_procs.c (app_init): Note on what should be done for the
3933 pango context now, only it doesn't work:(
3935 * lib/font.c (dia_font_new): Make sure to load fonts that are
3936 used, using a reasonable pango_context. Also a comment on the
3939 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
3941 * doc/pl/graphics/*.png:
3942 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
3943 loop (bug #121817). PL translator may want to change the
3944 home_network png to be in Polish. If the docs get translated into
3945 more languages, we'll want to find out how to share these things.
3947 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
3949 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
3950 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
3953 * app/filedlg.c (file_save_as_callback): Put filename setting
3954 together. (Preparation for allowing default save dir.)
3956 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
3957 correctly this time:)
3959 * app/dia-props.c (diagram_properties_show):
3960 * app/properties.c (properties_show): Make sure the
3961 dialogs are transient for the correct diagram.
3963 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
3965 * configure.in: Make sure -lz -lm is passed into second png test
3966 as well (stupid AC_LINK_IFELSE can't take it as an argument).
3968 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
3969 comment-filled files readable. Once we have a 'generic data'
3970 system, we can put comments in there.
3972 2003-09-06 Steffen Macke <sdteffen@web.de>
3974 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
3975 g_string_sized_new() instead of g_string_new() to make it compile
3976 * app/Makefile.am: including dia.ico and dia.rc in the tarball
3977 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
3978 for non-solid linestyles - otherwise custom linestyles have to be used.
3980 2003-09-02 Steffen Macke <sdteffen@web.de>
3982 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
3985 2003-09-02 Christian Neumair <chris@gnome-de.org>
3987 * sheets/Pneumatic.sheet.in: Slight unification fix.
3989 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
3993 * dia.spec (Release):
3994 * doc/en/dia-manual.xml:
3995 * doc/pl/dia-manual.sgml:
3996 * NEWS: Update to 0.92-pre1.
3998 * app/properties.c (properties_key_event): Removing Esc/Enter
3999 handling for now, interferes to much with regular dialog usage.
4001 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
4002 Function to escape special TeX characters. Not in use yet, as
4003 PSTricks output by default is TeX strings. Should get a save-time
4006 2008-09-01 Steffen Macke <sdteffen@web.de>
4008 * lib/paper.h: explanatory comment on width and height
4010 2003-08-30 Steffen Macke <sdteffen@web.de>
4013 * lib/color.h: made color_white, color_black static on win32
4015 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
4017 * configure.in (PNG_LIBS): Something in the png tests added an
4018 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
4020 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
4022 * configure.in: Quote correctly for temporarily adding freetype
4025 * app/preferences.c (prefs_save): Remove debugging g_print.
4027 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
4029 * objects/flowchart/parallelogram.c (pgram_update_data):
4030 Directions for connections, better system for placing
4033 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
4035 * lib/diagramdata.c (layer_find_closest_object_except): Look all
4036 the way through the object list, so the foremost object is selected.
4038 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
4039 included for diagramdata.c.
4041 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
4042 newline in multistringprop not close the dialog. Failed so far.
4044 2003-08-25 Steffen Macke <sdteffen@web.de>
4046 * app/commands.c: using CHM instead of HTML on win32 if available
4047 * lib/diagramdata.h: including dynamic_obj.h
4049 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
4051 * app/properties.c (properties_key_event): Make Enter = Ok for
4052 properties dialogs. Still some problems with this and Esc for
4053 Cancel, for instances escaping out of a menu closes the dialog.
4055 * objects/UML/association.c (association_get_properties):
4056 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
4059 * app/diapsft2renderer.c (draw_string): Use
4060 dia_font_scaled_build_layout to ensure similarity of text.
4062 * lib/diagramdata.c: Remove obj from dynobj list when removing
4063 from layer to avoid nasty race conditions.
4065 * app/undo.c (group_objects_revert): Make sure to unparent and
4066 remove from dynobj list when changing layers objects.
4068 2003-08-23 Steffen Macke <sdteffen@web.de>
4070 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
4071 StretchBlt(); fixes #92249
4073 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
4075 * app/filedlg.c (file_save_as_callback):
4076 * app/preferences.h:
4077 * app/preferences.c (prefs_data):
4078 * lib/diagramdata.h:
4079 * lib/diagramdata.c (new_diagram_data):
4080 * app/load_save.c (diagram_data_load):
4081 Let the document remember whether it was compressed. The user can
4082 still override this in the Save As... dialog, and that will still
4083 be remembered as the default for new diagrams.
4085 2003-08-23 Steffen Macke <sdteffen@web.de>
4087 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
4089 2003-08-22 Steffen Macke <sdteffen@web.de>
4091 * plug-ins/xslt/dia-uml.xsl:
4092 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
4093 table containing a list of components grouped by stereotype
4095 2003-08-21 Steffen Macke <sdteffen@web.de>
4097 * lib/makefile.msc: added connectionpoint.obj
4098 * lib/libdia.def: added connpoint_update, find_slope_directions
4099 * app/disp_callbacks.c: including scroll_tool.h
4100 * obj/makefile.msc: added component_feature.obj
4101 * app/paginate_gdiprint.c: fixed loop initialization in
4102 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
4105 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
4107 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
4110 * lib/diagramdata.h: Colors added to prefs.
4111 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
4112 New field for pagebreak color, which should
4113 behave the same as grid color and be settable for a diagram.
4115 * app/diagram.c (diagram_init): Update diagram pagebreak color
4118 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
4121 * app/preferences.[ch]: Default diagram colors now #defines, so
4122 loading can use it. Also, colors are now in NewDiagramData, so
4123 are passed nicely into new diagrams directly from prefs. Yum.
4125 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
4126 Support for loading and saving grid and pagebreak colors with the
4127 diagram. I'm inclined to make all the three Colors in diagram
4128 Color*s instead, so we can tell if they're specified for the
4129 diagram or merely the default setting. There'd be no way for the
4130 user to tell if the color of a diagram is default, though, unless
4131 we add a 'reset to default' button to prefs.
4133 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
4134 pagebreak color. Unsensitizing grid size when dynamic.
4136 * objects/UML/component.c: Patch from Krzysztof Foltman
4137 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
4138 third. Makes the left side connections actually be on the line
4141 2003-08-20 Steffen Macke <sdteffen@web.de>
4143 * lib/libdia.def: added layer_find_closest_object_except
4144 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
4146 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
4150 * app/scroll_tool.c:
4152 * app/disp_callbacks.c:
4153 * app/create_object.h:
4154 * app/create_object.c: Patch from Krzysztof Foltman
4155 <kfoltman@onet.pl>: Middle button can scroll transiently when
4156 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
4160 * sheets/UML.sheet.in:
4161 * sheets/UML/receptacle.xpm:
4162 * sheets/UML/Makefile.am:
4163 * sheets/UML/eventsource.xpm:
4164 * sheets/UML/eventsink.xpm:
4165 * objects/UML/pixmaps/facet.xpm:
4166 * objects/UML/uml.c (dia_plugin_init):
4167 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
4168 * objects/UML/component_feature.c:
4169 Patch from W. Borgert <debacle@debian.org>: Add event sources and
4172 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
4174 * lib/object.h: Turning some comments into doxygen style.
4176 * lib/object_defaults.c (dia_object_defaults_load)
4177 (dia_object_default_get, dia_object_default_create):
4178 Fixing up existing documentation.
4180 * lib/object.h: Doxygen style documentation begun.
4182 * app/create_object.c:
4184 * app/connectionpoint_ops.c:
4185 * app/disp_callbacks.c:
4186 * app/modify_tool.c:
4188 * objects/network/wanlink.c (wanlink_move_handle):
4189 * objects/network/bus.c (bus_move_handle):
4191 * objects/flowchart/parallelogram.c (pgram_move_handle):
4192 * objects/flowchart/ellipse.c (ellipse_move_handle):
4193 * objects/flowchart/diamond.c (diamond_move_handle):
4194 * objects/flowchart/box.c (box_move_handle):
4196 * objects/custom/custom_object.c (custom_move_handle):
4198 * objects/chronogram/chronoref.c (chronoref_move_handle):
4199 * objects/chronogram/chronoline.c (chronoline_move_handle):
4201 * objects/SADT/box.c (sadtbox_move_handle):
4202 * objects/SADT/arrow.c (sadtarrow_move_handle):
4203 * objects/SADT/annotation.c (annotation_move_handle):
4205 * objects/Misc/analog_clock.c (analog_clock_move_handle):
4207 * objects/GRAFCET/vergent.c (vergent_move_handle):
4208 * objects/GRAFCET/vector.c (arc_move_handle):
4209 * objects/GRAFCET/transition.c (transition_move_handle):
4210 * objects/GRAFCET/step.c (step_move_handle):
4211 * objects/GRAFCET/condition.c (condition_move_handle):
4212 * objects/GRAFCET/action.c (action_move_handle):
4214 * objects/FS/function.c:
4215 * objects/FS/flow.c:
4216 * objects/FS/flow-ortho.c (orthflow_move_handle):
4217 * objects/FS/flow-poly.c (flow_move_handle):
4219 * objects/UML/usecase.c (usecase_move_handle):
4220 * objects/UML/state_term.c (state_move_handle):
4221 * objects/UML/state.c (state_move_handle):
4222 * objects/UML/small_package.c (smallpackage_move_handle):
4223 * objects/UML/realizes.c (realizes_move_handle):
4224 * objects/UML/object.c (objet_move_handle):
4225 * objects/UML/note.c (note_move_handle):
4226 * objects/UML/node.c (node_move_handle):
4227 * objects/UML/message.c (message_move_handle):
4228 * objects/UML/lifeline.c (lifeline_move_handle):
4229 * objects/UML/large_package.c (largepackage_move_handle):
4230 * objects/UML/implements.c (implements_move_handle):
4231 * objects/UML/generalization.c (generalization_move_handle):
4232 * objects/UML/fork.c (fork_move_handle):
4233 * objects/UML/dependency.c (dependency_move_handle):
4234 * objects/UML/constraint.c (constraint_move_handle):
4235 * objects/UML/compprop.c (compprop_move_handle):
4236 * objects/UML/component.c (component_move_handle):
4237 * objects/UML/branch.c (branch_move_handle):
4238 * objects/UML/association.c (association_move_handle):
4239 * objects/UML/actor.c (actor_move_handle):
4240 * objects/UML/activity.c (state_move_handle):
4241 * objects/UML/class.c (umlclass_move_handle):
4243 * objects/standard/ellipse.c (ellipse_move_handle):
4244 * objects/standard/zigzagline.c (zigzagline_move_handle):
4245 * objects/standard/textobj.c (textobj_move_handle):
4246 * objects/standard/polyline.c (polyline_move_handle):
4247 * objects/standard/polygon.c (polygon_move_handle):
4248 * objects/standard/line.c (line_move_handle):
4249 * objects/standard/image.c (image_move_handle):
4250 * objects/standard/bezier.c (bezierline_move_handle):
4251 * objects/standard/arc.c (arc_move_handle):
4252 * objects/standard/beziergon.c (beziergon_move_handle):
4253 * objects/standard/box.c (box_move_handle):
4255 * objects/ER/relationship.c (relationship_move_handle):
4256 * objects/ER/participation.c (participation_move_handle):
4257 * objects/ER/entity.c (entity_move_handle):
4258 * objects/ER/attribute.c (attribute_move_handle):
4260 * lib/polyshape.c (polyshape_move_handle):
4262 * lib/orth_conn.c (orthconn_move_handle):
4264 * lib/neworth_conn.c (neworthconn_move_handle):
4265 * lib/neworth_conn.h:
4266 * lib/element.c (element_move_handle):
4268 * lib/connection.c (connection_move_handle):
4270 * lib/beziershape.c (beziershape_move_handle):
4271 * lib/beziershape.h:
4272 * lib/bezier_conn.c (bezierconn_move_handle):
4273 * lib/bezier_conn.h:
4274 *BINARY COMPATIBILITY CHANGE*
4275 Update prototype for *_move_handle() to include connectionpoint,
4276 and also pass on modifiers. Pass in connectionpoint where
4279 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
4280 file connectionpoint.c.
4282 2003-08-17 Danilo Šegan <dsegan@gmx.net>
4284 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
4286 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
4288 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
4290 * lib/beziershape.c (beziershape_update_data): Autoroute
4291 directions for beziershapes!
4293 * lib/connectionpoint.c (find_slope_directions):
4294 * lib/connectionpoint.h: Function for finding the available
4295 directions on a slope.
4297 * lib/polyshape.c: Reasonable directions for
4300 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
4302 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
4303 * objects/GRAFCET/vergent.c (vergent_update_data):
4304 * objects/GRAFCET/transition.c (transition_update_data):
4305 * objects/GRAFCET/action.c (action_update_data):
4306 * objects/GRAFCET/step.c (step_update_data):
4307 * objects/FS/function.c (function_update_data):
4308 * lib/connpoint_line.c (connpointline_putonaline):
4309 * objects/ER/attribute.c (attribute_update_data):
4310 * objects/ER/entity.c (entity_update_data):
4311 * objects/ER/relationship.c (relationship_update_data):
4312 * objects/chronogram/chronoline.c (chronoline_update_data): Set
4313 directions for connection points.
4315 * objects/UML/component.c (component_create): Set to allow
4318 * app/create_object.c (create_object_button_press):
4319 * app/diagram.[ch] (diagram_find_clicked_object_except):
4320 * lib/diagramdata.[ch] (layer_find_closest_object_except):
4321 Avoid parenting to objects you're connecting to (otherwise you
4322 couldn't make a connection out of a parenting object). To do
4323 this, added functions to find the nearest object except a given
4326 * app/render_libart.c: Rearrange libart include to avoid multiple
4327 include program (and put libart includes inside #ifdef!)
4329 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
4331 * lib/dialibartrenderer.c: Don't include art_config.h if others
4332 also do, as it isn't #ifdef'd.
4334 * objects/flowchart/ellipse.c (ellipse_update_data): Add
4335 directions for connection points.
4337 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
4339 * objects/flowchart/box.c (box_update_data): Add directions, use
4341 (box_load): Use g_malloc0.
4343 * lib/Makefile.am (libdia_la_SOURCES):
4344 * lib/connectionpoint.c (connpoint_update):
4345 Function to call to update a connection point info in _update_data().
4347 * lib/connectionpoint.h: Convenience DIR_ macros.
4349 * app/preferences.c (prefs_data): Make pretty formatted XML the
4352 * lib/dialibartrenderer.c:
4353 * app/render_libart.c: Make sure art_config.h is included, cause
4354 some libart headers are broken.
4356 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
4357 after test. Add freetype-config cflags to cflags variable.
4359 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
4361 * app/authors.h: Credits for Krzysztof.
4363 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
4364 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
4365 than the description) is visible in the title of the properties
4366 dialog. That ought to be a short description (translatable),
4367 though we still want long descriptions for the tooltips. Hmmm...
4369 * configure.in: Updated to use AC_LINK_IFELSE instead of
4370 AC_TRY_COMPILE, also force to link to check libs on Solaris.
4372 * objects/ER/entity.c (entity_load):
4373 * objects/ER/attribute.c (attribute_load):
4374 * lib/attributes.c (attributes_set_default_font):
4375 Check if font is non-null before unreffing.
4377 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
4379 * app/diagram.c (diagram_ungroup_selected)
4380 (diagram_group_selected): Use the undo apply to make sure grouping
4381 and ungrouping is done in consistent manners. This removes a fair
4382 amount of duplicated code from diagram.c.
4384 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
4385 (group_objects_revert, group_objects_apply): Working undo/redo for
4386 diagram tree updates. The initial actions still don't quite work.
4388 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
4390 * app/create_object.c (create_object_button_press):
4392 * app/diagram.c: Undo support for parenting. Uses apply/revert in
4393 undo only for manipulating the parent/child relationships. Things
4394 like removing an object doesn't use the undo functions for
4395 parenting, so any updates to come (like to diagramtree) should be
4398 2003-08-03 Hans Breuer <hans@breuer.org>
4400 * app/create_object.c : minor formating and g_new0 for
4403 * lib/bezier_conn.[hc] lib/beziershape.[hc]
4404 lib/prop_geomtypes.c (prop_geomtypes_register)
4405 objects/standard/bezier.c objects/standard/beziergon.c :
4406 ability to set bezpoints via StdProp api
4408 * plug-ins/python/pydia-property.c : convert list of tuples
4411 * plug-ins/python/diasvg_import.py : use it to
4412 implement part of path parsing. Also minor improvements
4413 like inheritance of group attributes to members,
4414 whitespace, title and style:text/css ignoring ;-)
4416 2003-08-02 Hans Breuer <hans@breuer.org>
4418 * lib/connections.c (connection_move_handle): return
4419 something to make it compile
4420 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
4421 must return a value -> dito
4422 [Is there a warnings-as-errors switch we could use with gcc
4423 to avoid such in future ?]
4425 * plug-ins/python/pydia-object.h : define *_Check macros
4426 * plug-ins/python/diamodule.c : provide dia.group_create()
4427 * plug-ins/python/pydia-diagramdata.c : add
4428 DiaDiagramData.add_layer()
4429 * plug-ins/python/pydia-property.c : allow to set color by
4432 * plug-ins/python/diasvg_import.py : based on the above
4433 implement a) group support, b) rgb(1,2,3) color handling,
4434 and somewhat fishy data:image/png;base64 support (create
4435 temporary files from inline image data)
4436 d) dump the import errors as text into an 'Error' layer
4438 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
4439 stray " in draw_rect and corrected error message formating
4441 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
4442 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
4445 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
4447 * app/magnify.c (create_magnify_tool): allocate with g_new0()
4449 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
4450 preferences values (see bug 118570). Also group items into a GtkFrame.
4452 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
4457 * app/commands.c (objects_unparent_children_callback):
4459 * app/diagram.c (diagram_unparent_selected,
4460 (diagram_update_menu_sensitivity):
4461 Added unparenting of single children.
4463 * lib/bezier_conn.c:
4464 * lib/bezier_conn.h:
4465 * lib/beziershape.c:
4466 * lib/beziershape.h:
4472 * lib/neworth_conn.c:
4473 * lib/neworth_conn.h:
4480 * objects/EML/instantiation.c:
4481 * objects/EML/interaction-ortho.c:
4482 * objects/EML/interaction.c:
4483 * objects/EML/process.c:
4484 * objects/ER/attribute.c:
4485 * objects/ER/entity.c:
4486 * objects/ER/participation.c:
4487 * objects/ER/relationship.c:
4488 * objects/FS/flow-ortho.c:
4489 * objects/FS/flow-poly.c:
4490 * objects/FS/flow.c:
4491 * objects/FS/function.c:
4492 * objects/GRAFCET/action.c:
4493 * objects/GRAFCET/condition.c:
4494 * objects/GRAFCET/step.c:
4495 * objects/GRAFCET/transition.c:
4496 * objects/GRAFCET/vector.c:
4497 * objects/GRAFCET/vergent.c:
4498 * objects/Misc/analog_clock.c:
4499 * objects/SADT/annotation.c:
4500 * objects/SADT/arrow.c:
4501 * objects/SADT/box.c:
4502 * objects/UML/activity.c:
4503 * objects/UML/actor.c:
4504 * objects/UML/association.c:
4505 * objects/UML/branch.c:
4506 * objects/UML/class.c:
4507 * objects/UML/classicon.c:
4508 * objects/UML/component.c:
4509 * objects/UML/constraint.c:
4510 * objects/UML/dependency.c:
4511 * objects/UML/fork.c:
4512 * objects/UML/generalization.c:
4513 * objects/UML/implements.c:
4514 * objects/UML/large_package.c:
4515 * objects/UML/lifeline.c:
4516 * objects/UML/message.c:
4517 * objects/UML/node.c:
4518 * objects/UML/note.c:
4519 * objects/UML/object.c:
4520 * objects/UML/realizes.c:
4521 * objects/UML/small_package.c:
4522 * objects/UML/state.c:
4523 * objects/UML/state_term.c:
4524 * objects/UML/usecase.c:
4525 * objects/chronogram/chronoline.c:
4526 * objects/chronogram/chronoref.c:
4527 * objects/custom/custom_object.c:
4528 * objects/flowchart/box.c:
4529 * objects/flowchart/diamond.c:
4530 * objects/flowchart/ellipse.c:
4531 * objects/flowchart/parallelogram.c:
4532 * objects/network/bus.c:
4533 * objects/network/wanlink.c:
4534 * objects/standard/arc.c:
4535 * objects/standard/bezier.c:
4536 * objects/standard/beziergon.c:
4537 * objects/standard/box.c:
4538 * objects/standard/ellipse.c:
4539 * objects/standard/image.c:
4540 * objects/standard/line.c:
4541 * objects/standard/polygon.c:
4542 * objects/standard/polyline.c:
4543 * objects/standard/textobj.c:
4544 * objects/standard/zigzagline.c:
4545 Binary compatibility update: Added return value for foo_move() and
4546 foo_move_handle(). Orthconn derivatives also returns change from
4547 orthconn_move_handle().
4549 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
4550 doesn't support it yet.
4552 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
4553 Add returning ObjectChange from object moves. Needs to handle
4554 multiple object moves.
4556 * app/modify_tool.c (modify_motion, modify_release): Add
4557 ObjectChange from move & move_handle to undo stack.
4559 * objects/EML/instantiation.c (instantiation_move): Removing
4560 duplicate move & update.
4562 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
4564 * plug-ins/xfig/xfig-export.c: Added support for arrow head
4565 export. Many arrow types not supported by XFig, replacing those
4566 with standard arrows. Not sure whether it'd be better to render
4567 them as a group of lines instead. You'd lose the arrow-ness for
4568 further editing, but preserve the actual shape of it. Also added
4569 support for dash length.
4571 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
4573 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
4574 description for version 3.2, for reference.
4576 * plug-ins/xfig/xfig-import.c: Added import of arrows.
4578 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
4579 Align Vertical Adjacent call _v rather than _h.
4581 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
4583 * app/scroll_tool.c (create_scroll_tool):
4584 * app/modify_tool.c (create_modify_tool): use g_new0() to
4587 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
4589 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
4591 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
4593 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
4595 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
4597 * configure.in: Added Belarusian to ALL_LINGUAS.
4599 2003-07-19 Hans Breuer <hans@breuer.org>
4602 Make the xslt plug-in work on win32, too. It appears
4603 to require a quite recent version of libxml and libxslt,
4604 otherwise windoze pathes aren't translated correctly
4605 during file processing
4608 * plug-ins/xslt/xslt.h : #include <glib.h> before
4611 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
4612 the 'script' file finding similar to how it is done
4613 with the python scripts (no need for hardcoded pathes,
4614 removed the 'plugin' part from the path)
4616 * plug-ins/xslt/stylesheets.xml : added again. It does
4617 not have any path but only the pure filename again
4619 * plug-ins/xslt/stylesheets.xml.in : removed
4621 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
4622 rule to process stylesheets.xml.in
4624 * plug-ins/makefile.msc : added xslt
4626 2003-07-19 Hans Breuer <hans@breuer.org>
4628 Finally Dia learned to remember the recent selected sheet
4630 * app/preferences.[hc] : added prefs.recent_sheet
4631 * app/interface.c : restore and remember the sheet-option-menu
4632 history, but only if the respective number is stiil available.
4633 This additional adds robustness against running Dia without
4634 any sheet (e.g. installation problems)
4635 * app/app_procs.c : call prefs_safe() in app_exit() to remember
4636 changes which are not done by the prefernces dialog
4638 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
4639 removed every call (especially the conditional ones) to prefs_safe().
4640 Before prefs_safe() was called _many_ times during Dia startup
4642 2003-07-18 Hans Breuer <hans@breuer.org>
4644 * app/makefile.msc lib/makefile.msc lib/libdia.def :
4647 * lib/color.c : use gtk_widget_get_default_visual();
4648 as suggested in #114536
4650 * app/interface.c app/disp_callbacks.c :
4651 moved round_up () to the latter file where it is used
4653 * app/linewidth_area.c : #include "interface.h" for
4654 interface_get_toolbox_shell()
4656 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
4658 * plug-ins/pixbuf/.cvsignore
4659 * shapes/Cisco/.cvsignore:
4662 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
4664 * app/dia-props.c (diagram_properties_retrieve): Use
4665 diagram_get_name() to add the diagram name to the diagram
4669 * app/diagram.c (diagram_get_name): New function to get a
4670 reasonable diagram name.
4672 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
4673 info. Still need to be able to set dynamic grid. Also ought to
4674 follow Gnome style and have instant apply.
4676 * app/preferences.h:
4677 * app/preferences.c (prefs_data): Remove option to use stippled
4678 grid, add option for major line offset. Default to 5 minor lines
4680 Add option for dynamically sized grid.
4682 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
4684 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
4685 stippled/solid to display minor/major grid lines. Line drawing in
4686 separate functions away from calculating line distance.
4688 * app/grid.h: Split page break drawing out of grid_draw.
4690 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
4691 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
4692 when menu item is selected.
4694 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
4696 * configure.in: Removed -Winline flag to make way for important
4699 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
4700 non-compressed. Should fix bug #117381, also look prettier.
4703 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
4704 Set up desktop info more properly.
4706 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
4723 Autorouting directions patch from Krzysztof Foltman
4726 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
4727 GNOME parent menu items.
4729 * app/authors.h: Added Vadim to contributors list.
4731 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
4733 * app/commands.[ch]:
4734 * app/create_object.c:
4735 * app/disp_callbacks.[ch]:
4746 * objects/UML/large_package.c: Patch from Vadim Berezniker
4747 <vadim@berezniker.com>:
4748 Objects may "parent" other objects, i.e. contain them within
4749 themselves, restrain them and move them along. Some more stuff is
4750 needed, such as selection and individual unparenting. This adds
4751 parenting to UML - Large Package rather than Box.
4753 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
4755 * app/linewidth_area.c: Patch from Krzysztof Foltman
4756 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
4757 conform more, at least:).
4759 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
4760 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
4761 arcs. Implemented images (though there is some pixelization and
4762 banding in the output). Changed output file format to be a little
4765 * app/app_procs.c (app_exit): Added message for double exit, which
4766 shouldn't happen any more. Also preventing strange g_object_unref
4767 messages by having a printf after gtk_main_quit. This is really
4770 * app/interface.c (toolbox_delete): Avoid double app_exit call by
4771 removing handler for destroy when delete is called.
4773 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
4776 * app/display.c (ddisplay_scroll_to_object,
4777 ddisplay_scroll_center_point): New function for easy scrolling to
4780 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
4782 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
4783 $(srcdir) on stylesheets.xml.
4785 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
4786 diagram menus (since they're at the top by default now). Also
4787 move the Properties... menu item from Dialogs to Objects. Dialogs
4788 menu should disappear at some point.
4790 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
4791 ./configure from ./autogen.sh, as configure may need to be run
4792 from a different directory. (Also more standard this way.)
4794 * app/app_procs.c (app_init):
4795 * app/Makefile.am (INCLUDES): Gnome standardization patch from
4798 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
4800 * objects/flowchart/parallelogram.c (pgram_update_data):
4801 Left/right alignment for parallelograms. Doesn't use all
4802 available space, but then pgrams also ignore their shear value.
4803 This thing needs a loving hand.
4805 2003-07-01 Hans Breuer <hans@breuer.org>
4807 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
4808 * lib/proplist.c : don't complain if optional attr is missing
4809 * lib/orth_conn.h : make "orth_autoroute" optional to
4810 stop complaining with older files.
4812 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
4814 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
4816 2003-06-05 Andrew Halper <ashalper@cox.net>
4818 * app/diagram_tree.c : add scrolling of drawing area
4819 to desired object on "Locate". Patch modified to use new ddisplay
4820 function ddisplay_scroll_to_object().
4822 2003-06-11 Lars Clausen <lars@raeder.dk>
4824 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
4825 info. Before next version, the grid dialog (view dialog, really)
4826 must be redone to allow a) instant apply, b) apply to all
4827 diagrams, and c) setting colour, dynamic, major lines.
4829 * app/preferences.h:
4830 * app/preferences.c (prefs_data): Remove option to use stippled
4831 grid, add option for major line offset. Default to 5 minor lines
4833 Add option for dynamically sized grid.
4835 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
4837 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
4838 stippled/solid to display minor/major grid lines. Line drawing in
4839 separate function away from calculating line distance.
4841 * app/grid.h: Split page break drawing out of grid_draw.
4843 2003-05-15 Hans Breuer <hans@breuer.org>
4845 * plug-ins/python/diasvg.py : add xlink definition,
4846 also avoid to put spaces into attribute values. At least
4847 Sodipodi doesn't like them in width/height attributes
4849 * plug-ins/python/diasvg_import.py : add simple scaling.
4850 Some (more) handling for <svg>, <desc>, <circle>
4852 * plug-ins/python/scascale.py : (new file) which does
4853 some experimental scaling via StdProp api
4855 * plug-ins/python/pydia-cpoint.c
4856 plug-ins/python/pydia-handle.c : return PyDiaPoint for
4857 obj.pos not simple tuples. PyDiaPoint has a tuple interface
4858 so this may even be api compatible ...
4860 2003-05-11 Hans Breuer <hans@breuer.org>
4862 * app/line_area.c : add window position persitence
4864 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
4865 'poly_points' via StdProp api
4866 * lib/neworth_conn.h : don't rely on OrthConn and
4867 NewOrtConn having the same struct offsets
4869 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
4870 to help separating 'useful' properies - in terms of
4873 * objects/custom/custom_object.c
4875 add the missing prop_desc_list_calculate_quarks to
4876 all the *_describe_props()
4878 * objects/standard/beziergon.c objects/standard/bezier.c :
4879 explicit initializtion of default_user_data
4880 * objects/standard/polygon.c objects/standard/polyline.c :
4881 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
4883 * plug-ins/python/diamodule.c : implement dia.register_import
4885 * plug-ins/python/makefile.msc : need to link with Pango
4886 for pango_color_parse()
4888 * plug-ins/python/pydia-property.c : add a bunch of type
4889 conversions to PyDiaProperty_ApllyToObject()
4891 * plug-ins/python/diasvg_import.py : (new file) which currently
4892 is mainly a stress test for PyDia but for some files already
4893 produces better results than svg-import.c
4895 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
4897 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
4898 type-less operations.
4900 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
4902 * configure.in(ALL_LINGUAS): Added "ms".
4904 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
4906 * plug-ins/xslt/xslt.c (xslt_ok):
4907 * plug-ins/shape/shape-export.c (new_shape_renderer):
4908 * plug-ins/svg/render_svg.c (new_svg_renderer):
4909 * plug-ins/hpgl/hpgl.c (export_data):
4910 * plug-ins/dxf/dxf-export.c (export_dxf):
4911 * plug-ins/metapost/render_metapost.c (export_metapost):
4912 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
4913 * plug-ins/xfig/xfig-export.c (export_fig):
4914 * plug-ins/wpg/wpg.c (export_data):
4915 * plug-ins/cgm/cgm.c (export_cgm):
4916 * app/render_eps.c (export_eps):
4917 * app/export_png.c (export_png_ok):
4918 * app/load_save.c (diagram_data_save): Adding and standardizing
4919 output file error messages to include fopen error message.
4921 2003-05-01 Steffen Macke <sdteffen@web.de>
4923 * app/persistence.c: do not use unistd.h for MSVC build
4925 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
4927 * sheets/Assorted.sheet.in
4928 * sheets/Circuit.sheet.in
4929 * sheets/Contact.sheet.in
4930 * sheets/EML.sheet.in
4931 * sheets/ER.sheet.in
4932 * sheets/Electric.sheet.in
4933 * sheets/FS.sheet.in
4934 * sheets/Flowchart.sheet.in
4935 * sheets/GRAFCET.sheet.in
4936 * sheets/Logic.sheet.in
4937 * sheets/MSE.sheet.in
4938 * sheets/Misc.sheet.in
4939 * sheets/Pneumatic.sheet.in
4940 * sheets/SADT.sheet.in
4941 * sheets/SDL.sheet.in
4942 * sheets/UML.sheet.in
4943 * sheets/chronogram.sheet.in
4944 * sheets/ciscohub.sheet.in
4945 * sheets/ciscomisc.sheet.in
4946 * sheets/cisconetwork.sheet.in
4947 * sheets/ciscorouter.sheet.in
4948 * sheets/civil.sheet.in
4949 * sheets/network.sheet.in
4950 * sheets/sybase.sheet.in:
4951 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
4952 standardizes shape descriptions to use no articles, no 'create
4955 * app/interface.c (tool_data): Standard objects follow same
4958 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
4960 * app/color_area.c (color_area_edit): More informative title on
4961 color selection dialog.
4963 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
4964 sensitivity when dropping object in. Also reset tool to pointer.
4966 * objects/flowchart/diamond.c (diamond_update_data):
4967 * objects/flowchart/parallelogram.c (pgram_update_data): Added
4968 left and right alignment options.
4970 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
4972 * objects/flowchart/box.c: Added left and right alignment options.
4974 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
4976 * app/persistence.c (persistence_load): Test existence of
4977 persistence file before trying to open it.
4979 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
4981 * app/properties.c: Escape now closes properties dialogs.
4983 2003-04-25 Hans Breuer <hans@breuer.org>
4985 * app/config.h.win32 : bump version to 0.91+cvs
4987 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
4989 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
4991 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
4994 * app/presistence.c : need to #include "dia_xml_libxml.h"
4997 * app/layer_dialog.c : make delayed creation work by protecting
4998 all non static layer_dialog_*() with :
4999 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
5000 create_layer_dialog();
5001 * app/app_procs.c : removed /* create_layer_dialog(); */
5003 * objects/uml/association.c : give it a minimal StdProp
5004 implementation to fix bug #108896
5005 * lib/object_defaults.c : don't try to copy props if there
5006 is no obj->ops->describe_props
5008 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
5010 * objects/standard/image.c (image_create):
5011 * objects/standard/ellipse.c (ellipse_create):
5012 * objects/standard/box.c (box_create):
5013 * objects/flowchart/ellipse.c (ellipse_create):
5014 * objects/flowchart/diamond.c (diamond_create):
5015 * objects/flowchart/box.c (box_create):
5016 * objects/custom/custom_object.c (custom_create):
5017 * objects/ER/relationship.c (relationship_create):
5018 * objects/ER/entity.c (entity_create):
5019 * objects/ER/attribute.c (attribute_create): Initialize
5020 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
5022 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
5026 * plug-ins/Makefile.am:
5027 * plug-ins/xslt/Makefile.am:
5028 * plug-ins/xslt/xslt.c (dia_plugin_init):
5029 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
5030 automake-style if to only include xslt dir when needed. Works
5031 with automake 1.4 and up, at least.
5033 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
5035 * lib/diasvgrenderer.c (draw_string):
5036 * lib/dia_svg.c (dia_svg_parse_style): Use
5037 text-anchor:(start|middle|end).
5039 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
5040 polygon rather than polyline & avoid missing line pieces.
5041 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
5042 black-filled things.
5044 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
5046 * app/persistence.c (persistence_load): Check that persistence
5047 file exists before trying to read it.
5048 (persistence_update_window): Removed printf.
5050 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
5052 * lib/autoroute.c: Take badness into the layouters again, as some
5053 of them know they can do things that are pretty but would be
5054 counted as ugly by the default calculation.
5056 * objects/UML/large_package.c: Shrink package name box when no
5057 stereotype is present.
5059 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
5060 * lib/orth_conn.c: Added object menu item for autorouting.
5062 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
5063 Autorouting, plus set initial dragging handle to be the end, not
5065 (orthflow_draw): Flipped arrow place to be at the end, as
5066 originally intended (got lost in arrow update).
5068 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
5069 * objects/UML/dependency.c (dependency_get_object_menu):
5070 * objects/UML/association.c (association_get_object_menu):
5071 * objects/UML/realizes.c (realizes_get_object_menu):
5072 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
5073 * objects/GRAFCET/vector.c (arc_get_object_menu):
5074 * objects/ER/participation.c (participation_get_object_menu):
5075 * objects/EML/instantiation.c (instantiation_get_object_menu):
5076 * objects/UML/generalization.c (generalization_get_object_menu):
5077 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
5078 Autorouting setup (currently disabled for SADT/arrow).
5080 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
5082 * lib/autoroute.c: Removed printfs.
5085 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
5086 non-connected orthconns too.
5088 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
5091 * lib/orth_conn.c: Function to set autorouting on/off, use
5092 autorouting in move_handle (turns off when a middle handle is
5093 moved), added to standard orthconn props.
5095 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
5096 Stopped signal emission for check menu items being set to on/off.
5098 * objects/standard/zigzagline.c: Added autorouting object menu item.
5100 * lib/autoroute.c: Added last cases of autoroute layout, fixed
5101 floating point comparison bug, cleaned up layouters, tweaked
5102 badness to allow kinks.
5104 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
5106 * lib/connectionpoint.h: Changed DIR_* macros to go around the
5109 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
5111 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
5112 old cruft, added call to autoroute (currently cannot be turned
5113 off). Need to check what undo thinks about this.
5114 * lib/autoroute.[ch]: Fairly working simple layout.
5116 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
5117 * lib/autoroute.[ch]: Start of proper autorouting functionality.
5119 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5121 * lib/prop_widgets.c: Show labels on ListProp.
5123 2003-04-11 Steffen Macke <sdteffen@web.de>
5125 * doc/en/dia-manual.xml: removed reference of non-existing authors
5127 * doc/en/usage-objects-selecting: commented out misleading section
5130 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5132 * app/app_procs.c (app_init): Layer window now opened at startup
5135 * lib/prop_widgets.c: Show labels on ListProp.
5137 2003-04-09 Steffen Macke <sdteffen@web.de>
5139 * doc/en/*.sgml: removed files
5140 * doc/en/*.xml: added files
5141 * doc/en/Makefile.am: switched to XML DocBook
5143 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
5145 * plug-ins/xslt/xslt.c (dia_plugin_init):
5146 * configure.in: Added --with-xslt-prefix to allow other XSLT
5147 placements than /usr/lib.
5149 2003-04-09 Steffen Macke <sdteffen@web.de>
5151 * lib/makefile.mingw: updated to include latest files, including
5153 * lib/geometry.h: don't define isinf and finite for mingw gcc build
5155 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
5157 * app/persistence.h:
5158 * app/persistence.c (persistence_register_window_create):
5159 * app/app_procs.c (app_init):
5160 Register window function that doesn't create the window unless it
5161 should be open. Other windows should move to this, so startup
5162 speed can be reduced.
5164 * app/persistence.h: Removed call prototype for update_window, now
5166 * app/persistence.c (persistence_register_window): A number of
5167 fixes. Doesn't forget position when window is closed. Now
5168 actually loads prefs.
5170 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
5173 * app/preferences.c (prefs_data):
5174 * app/diagram_tree_window.h:
5175 * app/diagram_tree_window.c: Added persistence registering.
5176 Removed prefs items storing size and openness.
5178 * app/sheets_dialog.c (create_sheets_main_dialog): Added
5179 persistence registering.
5181 * app/Makefile.am (dia_core_files): Added persistence files.
5184 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
5185 that dirs are present.
5187 * app/app_procs.c (app_init): Loads persistent values on startup.
5188 (app_exit): Saves persistent values on exit.
5190 * app/layer_dialog.c (create_layer_dialog): Registers the layer
5191 window for persistence.
5193 * app/persistence.[ch]: New files handling various kinds of
5196 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
5198 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
5199 head spacing calculations. Added half-circle arrow from Matthieu
5200 Sozeau <mattam@netcourrier.com>
5202 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
5204 * app/app_procs.c (app_init): Moved layer dialog init to allow
5205 tooltips to be initialized.
5207 * app/interface.c (create_display_shell): More tooltips.
5209 * app/linewidth_area.c (linewidth_area_create)
5210 (linewidth_area_events):
5211 * app/color_area.c (color_area_events, color_area_create):
5212 Made tooltips work by embedding drawing_area in event_box.
5214 * app/interface.c (create_display_shell,
5215 (create_lineprops_area, create_color_area): Added a few tooltips.
5217 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
5219 * app/pixmaps/off-grid.xpm:
5220 * app/pixmaps/on-grid.xpm:
5221 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
5224 * app/commands.c (view_snap_to_grid_callback):
5225 * app/display.c (ddisplay_set_snap_to_grid)
5226 (update_snap_grid_status):
5227 * app/interface.c (create_display_shell, grid_toggle_snap):
5228 Added snap-to-grid status button.
5230 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
5232 * app/app_procs.c (app_init): Create a new diagram if a file on
5233 the command line isn't found.
5235 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
5237 * lib/dialibartrenderer.c (draw_string): Correct color handling
5240 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
5243 * doc/en/dia-manual.sgml:
5244 * doc/pl/dia-manual.sgml:
5246 * dia.spec (Release):
5247 Version 0.91 is here!
5249 2003-02-10 Steffen Macke <sdteffen@web.de>
5251 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
5252 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
5253 non-ANSI characters, closes #107980
5255 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
5259 * dia.spec (Release):
5260 * doc/en/dia-manual.sgml: Upping to pre6.
5262 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
5264 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
5265 #107511: Make arrow selector for correct arrow type.
5267 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
5269 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
5272 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
5274 * doc/en/dia-manual.sgml:
5277 * dia.spec (Release): Upping to pre5.
5279 * configure.in: Add freetype-config derived libs to the
5280 AC_CHECK_LIB statement for freetype.
5282 2003-02-28 Hans Breuer <hans@breuer.org>
5284 [fix for bug #107203]
5286 * lib/diarenderer.c : add warning 'implementation'
5287 for fill_rect to avoid crashing with a renderer
5288 which does not implement this required function.
5290 * plug-ins/dxf/dxf-export.c : provide - still empty -
5291 'implementations' for fill_rect and fill_polygon
5292 to suppress the above warnings. Now it works like
5295 2003-02-28 Steffen Macke <sdteffen@web.de>
5297 * samples/all_objects.dia: New sheet containing all dia shapes
5298 and objects; one layer per sheet
5300 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
5302 * lib/prop_text.c (multistringprop_get_widget,
5303 multistringprop_reset_widget, multistringprop_set_from_widget):
5304 Now uses GtkTextView instead of deprecated stuff, and also works:)
5306 * configure.in: Slightly more informative error message for isinf.
5308 * dia.spec (Requires): Require libxml2 rather than libxml.
5310 2003-02-28 Steffen Macke <sdteffen@web.de>
5312 * shapes/Circuit/hjumper.png:
5313 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
5316 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
5318 * doc/en/dia-manual.sgml:
5320 * dia.spec (Release):
5321 * NEWS: New prerelease 0.91pre4, two important fixes.
5323 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
5325 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
5328 * app/commands.c (help_manual_callback): More correct URL for help
5329 page (include file://, was broken on Dillo without it).
5331 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
5333 * app/disp_callbacks.c: Set modifed when text is changed.
5335 * app/modify_tool.c (modify_button_release): Allow undo for moving
5338 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
5341 * doc/en/dia-manual.sgml:
5343 * configure.in: New prerelease with important bugfix.
5344 * shapes/network/digitizing_board.png:
5345 * shapes/network/plotter.png: Re-adding with -kb.
5347 2003-02-17 Abel Cheung <maddog@linux.org.hk>
5349 * app/app_procs.c (app_init): Add comment for translators.
5351 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
5353 * lib/filter.c (filter_register_import, filter_register_export):
5354 Don't accept filters with NULL description.
5356 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
5357 (as we assume the description is available in other places).
5359 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
5361 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
5362 * app/display.c (ddisplay_resize_canvas): Use
5363 ddisplay_add_update_all().
5364 (ddisplay_add_update_all): Free display and update lists when
5365 doing update_all, as they'll be regenerated immediately to cover
5366 all visible area. Fixes bug #106165, crash when resizing. This
5367 appears to be the original AA crash bug, believed long extinct.
5369 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
5371 * app/commands.c (help_manual_callback): Use file: protocol for
5374 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
5376 * plug-ins/xslt/stylesheets: Removed old-style config file.
5378 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
5380 * plug-ins/xslt/Makefile.am:
5381 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
5382 handling (no more DIA_PLUGIN_PATH).
5384 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
5386 * plug-ins/svg/render_svg.c:
5387 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
5389 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
5391 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
5392 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
5393 side of the triangle is longer than the hypotenuse. Rounding
5396 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
5400 * doc/en/dia-manual.sgml: Update for pre2.
5402 * app/menus.c (display_menu_items): Fixed wrongly place separators.
5404 * objects/flowchart/box.c (box_update_data): Applied patch from
5405 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
5408 * app/paginate_psprint.c (print_page): Set paper name, so it
5409 convinces ps printers to use to right size.
5411 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
5413 * app/properties.c (properties_show): Hide the dialog if the
5414 object is NULL (get rid of 'no properties' randomly popping up).
5416 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
5418 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
5419 for diagrams not starting at origo.
5421 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
5423 * dia.spec (BuildRequires): Use libxml2-devel.
5425 * plug-ins/pixbuf/Makefile.am: Added to CVS.
5427 * RELEASE-PROCESS: Note on RPM version numbers.
5429 * app/interface.c (create_display_shell): Don't set as toolbar
5430 under Unix, either. Especially not the diagram shell. It removes
5431 it from the taskbar and makes it unresizable, always-on-top with
5432 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
5433 appropriate thing, UTILITY, is not good either, you lose resizing
5434 and minimizing/maximizing under OpenBox.
5436 * app/menus.c (display_menu_items): Set delete item to use Delete.
5438 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
5440 * dia.spec (BuildRequires, Requires): Updated for Gtk2
5443 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
5444 display flush when getting focus in, or we may get an update after
5445 the diagram has been destroyed in some cases. Fixes bug #105221.
5447 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
5449 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
5451 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
5452 - gnome-compiled Dia will now read files specified on the command line.
5454 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
5456 * INSTALL (REQUIREMENTS): Updated requirements section.
5458 * configure.in: Better finite() check from Mårten Svantesson
5459 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
5462 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
5464 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
5466 * app/app_procs.c (debug_break): Added some code to avoid
5467 over-eager optimizations removing the call. Surely there's a
5468 nicer way, but I'm not sure how.
5470 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
5471 that set text to black.
5473 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
5475 * NEWS: Mention of Twiki as doc source for Python.
5477 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
5478 libart/libpng is not available. Later when we have a way of
5479 letting the user pick options in the file select dialog we shall
5480 allow the choice when applicable.
5482 2003-02-02 Steffen Macke <sdteffen@web.de>
5484 * doc/en/usage-loadsave.sgml:
5485 * doc/en/usage-objects.sgml: patch from
5486 James K. Lowden <jklowden@schemamania.org> to fix
5489 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
5491 * plug-ins/Makefile.am (SUBDIRS):
5492 * plug-ins/pixbuf/pixbuf.c:
5493 * plug-ins/pixbuf/Makefile.am:
5495 Added pixbuf plugin to Makefile.am, but for import only. PNG
5496 export handled by libart, which is better. JPG export is
5497 discouraged. BMP is not much used on Unix. Next release will
5498 integrate libart to allow all outputs.
5500 2003-02-01 Hans Breuer <hans@breuer.org>
5502 * app/preferences.c :
5504 the last two dialogs with 'old' button order finally
5505 are converted to gtk2, no GnomeDialog in all of Dia
5508 2003-02-01 Hans Breuer <hans@breuer.org>
5510 * app/filedlg.c : don't try to use a button as
5511 'overwrite-file-dialog'-parent, use the FileSelDialog
5514 * plug-ins/pixbuf/pixbuf.c : make it work with
5515 system-visual-depth < 24. Remove 'bmp' from output
5516 format extensions, it just was wishful thinking.
5518 * plug-ins/python/Makefile.am : added the four new python
5519 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
5521 2003-02-01 Hans Breuer <hans@breuer.org>
5523 * NEWS : updated content beside dependencies
5525 2003-02-01 Hans Breuer <hans@breuer.org>
5527 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
5528 to make it useable across DLL boundaries
5529 * app/lineprops_area.c : same code to access arrow_types
5532 * objects/UML/class.c : the non empty string is e.g.
5533 comment != NULL && comment[0] != '\0'
5534 * objects/UML/uml.c : same here, don't bother with
5535 empty operation stereotypes
5537 2003-02-01 Steffen Macke <sdteffen@web.de>
5539 * app/lineprops_area.c: latest changes do not work on
5540 windows, using old code without tooltips
5541 * makefile.msc: fixed copying of wmf.dll
5542 * plug-ins/makefile.msc:
5544 * lib/makefile.msc: now linking libintl
5545 * config.h.win32: enabling native language support
5547 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
5549 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
5550 -ldl and -lglib. May or may not work on windows...awaiting verdict.
5552 2003-01-31 Daniel Yacob <locales@geez.org>
5554 * configure.in: Added am (Amharic) to ALL_LINGUAS.
5556 2003-01-31 Steffen Macke <sdteffen@web.de>
5558 * objects/UML/class.c (umlclass_calculate_data): fixed crash
5559 when comments were visible, no class comment available and
5562 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
5564 * RELEASE-PROCESS: Updated to fit new install-module syntax.
5565 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
5568 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
5574 Prerelease version changes, version 0.91-pre1.
5576 * app/sheets_dialog_callbacks.h:
5577 * app/sheets_dialog_callbacks.c:
5578 * app/sheets_dialog.c (create_sheets_main_dialog):
5579 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
5580 to handle destruction of main dialog cleanly, but it's a mess.
5582 * configure.in: Downgraded ieeefp test to make it not produce
5585 * lib/widgets.c (dia_arrow_selector_set_arrow):
5586 (dia_line_style_selector_set_linestyle): Select menu dot
5589 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
5590 adjustment for diamondheads.
5592 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
5594 * app/properties.c (create_dialog): Destroy properties dialog and
5597 * app/sheets_dialog_callbacks.c
5598 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
5599 if the old one is destroyed.
5601 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
5603 * app/export_png.c (export_png_ok): Added info on resolution.
5604 Should (next release) improve export dialog to allow setting
5605 resolution instead of pixels.
5607 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
5608 to generate arrowheads as well as tooltips.
5610 * lib/arrows.c: Added hollow diamond to menudesc list.
5613 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
5614 unify with rendered menu.
5616 * lib/diarenderer.c (draw_line_with_arrows)
5617 (draw_polyline_with_arrows, draw_arc_with_arrows)
5618 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
5619 without changing renderer API. Thanks to David Scherba for
5620 providing inspiration.
5622 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
5624 * app/interface.c (create_display_shell):
5625 * app/display.h: Patching from Hubert Figuiere
5626 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
5629 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
5631 * app/defaults.c (defaults_show): Fixed defaults closing bug.
5632 Thanks to Hans for pointing it out.
5634 2003-01-25 Hans Breuer <hans@breuer.org>
5636 * app/commands.c : don't warn about crashing libart renderer
5637 on win32. It simply doesn't render text anymore :-(
5639 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
5641 * objects/UML/class.c : don't access umlclass->properties_dialog
5642 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
5643 which sets the former to NULL by destroy_properties_dialog() callback.
5645 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
5647 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
5649 * plug-ins/python/pydia-image.c : add image.uri member
5650 not only useful for SVG rendering
5652 * plug-ins/python/diasvg.py : (new file) a more advanced
5653 example. A full blown SVG Renderer, currently only
5654 registered for .svgz
5656 * plug-ins/python/export-object.py : write text props
5658 * plug-ins/python/debug_objects.py : write prop.type and
5661 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
5663 * objects/UML/association.c (association_update_data): Better
5664 bounding box for assoc with arrows.
5666 * lib/properties.h: New flag for properties with multiple values
5669 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
5670 arrow updating in dialog. Was broken due to changes from destroy
5673 * app/commands.c (view_aa_callback): AA warning only for Windows
5674 -- I trust the Unix side well enough.
5676 * app/render_libart.c (get_text_width):
5677 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
5678 font height can be taken from parent instance.
5680 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
5681 (get_text_width): Proper cursor positioning for libart renderer.
5682 Ought to have a DiaInteractiveRenderer that these two can inherit
5683 from, that knows about transform.
5685 2003-01-25 Steffen Macke <sdteffen@web.de>
5687 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
5688 plug-in still not working on win32
5690 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
5692 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
5693 gdk_window_get_pointer to avoid destroy crash. Simpler than I
5696 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
5698 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
5699 bail out on gtk options.
5701 * lib/message.c (gtk_message_internal): Better handling of destroy
5704 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
5706 * app/color_area.c (color_area_edit):
5707 * lib/widgets.c (dia_file_selector_browse_pressed)
5708 (dia_color_selector_pressed):
5709 * app/plugin-manager.c (get_plugin_manager):
5710 * app/filedlg.c (file_open_callback, file_save_as_callback)
5711 (file_export_callback):
5712 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
5713 handling of destroy event.
5715 2003-01-22 Alan Horkan <horkana@tcd.ie>
5717 * app/commands.c (file_new_callback): Changed Untitled to Diagram
5720 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
5722 * app/preferences.c (prefs_create_dialog):
5723 * app/linewidth_area.c (linewidth_create_dialog):
5724 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
5725 * app/layer_dialog.c (create_layer_dialog)
5726 (layer_dialog_edit_layer): Correct handling of destroy signal.
5728 * app/diapsft2renderer.c (set_font): Adjust silly random factor
5729 for change in font.c
5731 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
5733 * lib/font.c (dia_font_build_layout): Let's all use the same weird
5736 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
5737 * app/layer_dialog.c (create_layer_dialog)
5738 (layer_dialog_edit_layer):
5739 * app/filedlg.c (file_open_callback, file_save_as_callback)
5740 (file_export_callback):
5741 * app/dia-props.c (create_diagram_properties_dialog):
5742 * app/defaults.c (defaults_dialog_destroyed):
5743 * app/color_area.c (color_area_edit): Dialog destroy event handling.
5745 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
5747 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
5748 defaults dialog destroyed.
5750 2003-01-19 Steffen Macke <sdteffen@web.de>
5752 * objects/makefile.msc: added bondgraph
5753 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
5754 to compile pixbuf.dll
5755 * makefile.msc: copying all objects and dlls now
5757 2003-01-19 Hans Breuer <hans@breuer.org>
5759 * app/diagram.[hc] : provide dia_open_diagrams(), make
5760 open_diagrams variable static
5761 * app/dia.def : export it (to be used by PyDia)
5762 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
5763 app/display.c app/dynamic_refresh.c app/layer_dialog.c
5764 app/load_save.c : make use of dia_open_diagrams()
5766 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
5767 on win32. It removes the diagram window from the taskbar and
5768 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
5770 * app/menus.c : add '...' to menu entries where a dialog
5772 * app/recent_files.c app/dia_embedd.c : reflect the above in
5773 menus_get_item_from_path() calls
5775 * lib/libdia.def : add dia_image_rgba_data
5777 * lib/properties.h lib/prop_text.[hc] : add new property
5779 * objects/UML/class.[hc] object/UML/class_dialog.c : use
5780 StringList for attributes_strings and operations_strings to
5781 make this calculated data accessible via the Property API
5783 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
5784 provide dia.new() to create a new diagram, dia.registered_types()
5785 to get on Dia's type registry, dia.message() for simple dialogs
5787 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
5788 to create a new display from a diagram. Let diagram.extents and
5789 diagram.bg_color return the same types as in diagramdata.*
5791 * plug-ins/python/pydia-geometry.c : add a read-only
5792 'sequence interface' to DiaPoint and DiaRectangle
5794 * plug-ins/python/pydia-property.c : allow to get on StringList
5797 * plug-ins/python/pydia-render.c : fix typo to make it compile
5799 * plug-ins/python/python-startup.py : removed 'import pygtk'
5800 again. This file does not need any gtk UI, and some python
5801 plug-ins don't do either
5803 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
5804 it should actually work as intended again
5806 * plug-ins/python/group_props.py : (new file) a prototype for
5807 one the most requested features: Change properties of selected
5808 objects in one step. Requires pygtk.
5810 * plug-ins/python/select_by.py : (new file) select objects by
5811 common properties. Requires pygtk.
5813 [Start of 'PyDia Self Documentation Series']
5815 * plug-ins/python/pydiadoc.py : (new file) generates a new
5816 diagram which contains all objects of dir(dia)
5818 * plug-ins/python/otypes.py : (new file) generates a new diagram
5819 which contains all the currently registered object types sorted
5820 by their containing package
5822 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
5824 * configure.in: Added check for Pango >= 1.1.5, which appears to
5825 be enough to have text work.
5826 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
5827 do it. AC_SUBST should be idempotent, though.
5829 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
5831 * configure.in (HAVE_FREETYPE): Better test for freetype version
5833 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
5835 * lib/font.c: Renamed global_size_one to global_zoom_factor to
5836 avoid confusion, and added comment. Set scale factor in
5837 dia_font_build_layout to 1.0 for Unix side. This fixes at least
5838 my weird scaling problems. Fonts are now of the expectable size,
5839 i.e. the space between lines at size 1.0 is 1.0. If we want a
5840 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
5841 diagrams, though there will always be differences.
5843 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
5845 * plug-ins/python/python-startup.py:
5846 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
5848 * plug-ins/python/python.c (dia_plugin_init): Added warning
5849 message for missing startup file.
5851 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
5853 * lib/dia_image.c (dia_image_rgb_data):
5854 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
5855 involving EPS. Can't do transparency in EPS yet.
5858 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
5859 data as one chunk. Documentation for the RGB data getting funcs.
5860 (dia_image_rgb_data): Added comment.
5862 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
5865 2003-01-13 Steffen Macke <sdteffen@web.de>
5867 * lib/dia_image.c: dia_image_rgb_data() is working for
5868 non-alpha images now. Fixes #93762
5869 * Makefile.am: added makefile.msc to EXTRA_DIST
5871 2003-01-10 Steffen Macke <sdteffen@web.de>
5873 * app/paginate_psprint.c: Closing print dialog when file
5874 could not be written. Fixes #84746
5876 2003-01-04 Steffen Macke <sdteffen@web.de>
5878 * doc/custom-shapes: incomplete description of <svg:text>
5880 2003-01-03 Steffen Macke <sdteffen@web.de>
5882 * makefile.msc(new): new makefile to create file
5883 structure suitable for running dia win32 under
5884 $(TOP)/dia/build/win32
5886 2003-01-02 Steffen Macke <sdteffen@web.de>
5888 * lib/dia_svg.c: including stdlib.h
5889 * lib/makefile.msc: added gdk_pixbuf libs to linker
5890 * app/makefile.msc: added gdk_pixbuf libs, made libart
5891 libs compatible with gnuwin32 package
5893 2003-01-01 Hans Breuer <hans@breuer.org>
5895 * lib/font.c : more comment about global_size_one
5897 * app/menus.c : <control>[<shift>]A for plain gtk build too.
5899 * plug-ins/wmf/wmf.cpp : some type juggling to make
5902 2002-12-31 Steffen Macke <sdteffen@web.de>
5904 * app/makefile.msc: added hint on how to enable console output
5906 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
5908 * objects/standard/textobj.c (textobj_load): Get the handle type
5909 right, at least to be the same as when created.
5911 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
5913 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
5915 2002-12-08 Hans Breuer <hans@breuer.org>
5917 * app/commands.c : fixed bug #85315 'give diagram properties,
5918 instead of no object selected error' almost a one-liner
5920 * app/splash.c : don't make having the logo pixmap
5921 mandatory. Fixes bug #96068.
5923 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
5924 sequence by connecting to the "delete_event"
5925 * app/objects/uml/class_dialog.c : handle "destroy" for
5928 * lib/libdia.def : remove diaXmlNewChild again
5930 * app/paginate_gdiprint.cpp : reflect Dia's page setting
5931 portrait/landscape in the windoze print dialog
5933 * objects/makefile.msc : only UML needs to link against
5934 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
5936 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
5938 * objects/standard/ellipse.c (ellipse_distance_from):
5939 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
5940 correct distance function. Could be faster, but it's not really
5943 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
5945 * lib/font.c: Changed global_size_one to more correct 28.35.
5950 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
5953 2002-12-07 Hans Breuer <hans@breuer.org>
5955 * lib/widgets.c : g_file_get_contents() silently assumes
5956 a binary file. Reflect when creating the font_menu file
5957 to get rid of junk in font menus
5959 2002-12-06 Hans Breuer <hans@breuer.org>
5961 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
5962 removed 0xD 0xD 0xA line ends which get created by
5963 cvs if windoze line ends 0xD 0xA are checked in from
5964 *nix and checked out on win32.
5966 * app/preferences.c : changed toolbox_on_top default to
5967 false. It is currently not possible to change the behaviour
5968 at runtime, at least not on win32.
5970 * lib/dialibartrenderer.c : bug #94791 'rendering to
5971 bitmap without PangoFt2' got delayed to milestone future
5972 so wrap libart text rendering into PANGO_WIN32_FUTURE.
5973 It is not available without my Pango patch in bugzilla.
5975 * lib/font.c : added comment to global_size_one and adapt
5976 the arbitrary size scaling in dia_font_build_layout() for
5977 win32, too. This is needed to get an acceptable font size
5978 approximation for Dia 0.90 and earlier files.
5979 Also #include "message.h".
5981 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
5982 reflect movement of group.[hc]
5983 * lib/group.h : export group_type which gets used by app/*
5985 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
5986 to get the GtkTypeInfo definition
5988 * plug-ins/makefile.msc : dxf and xfig don't need to link
5989 against app/ anymore now that group is moved to lib/
5991 * plug-ins/python/pydia-render.c : remove massive leaking
5992 of self, i.e. PyDiaRenderer
5994 * plug-ins/python/makefile.msc : remove linking against
5997 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
5999 * objects/standard/line.c: Removed properties options for gaps,
6000 until release is done.
6002 * configure.in: Check for freetype version.
6004 * lib/text.c (text_insert_char): Fixed small buffer overflow for
6007 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
6009 * app/diapsft2renderer.h:
6010 * app/diapsft2renderer.c:
6011 * app/diapsrenderer.h:
6012 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
6014 * app/render_eps.c (export_eps, new_psprint_renderer): Using
6015 PS_FT2 renderer when available. Old render stuff killed. Yay!
6017 * lib/properties.h: Fixed bad frame end def.
6019 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
6021 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
6023 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
6025 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
6027 * lib/font.c: Now checking for the proper dia-style standard fonts.
6030 * app/Makefile.am: Moving group.[ch]
6032 * plug-ins/dxf/dxf-import.c:
6033 * plug-ins/xfig/xfig-import.c:
6034 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
6038 * lib/object.c (object_list_move_delta, object_copy_list):
6039 * lib/object.h: Moved some object-related functions from
6040 object_ops to object to assist moving group.c.
6042 * lib/diatypes.h: Added Group typedef.
6045 * lib/group.c: Moved from app to lib to a) resolve plug-ins
6046 references, and b) make groups more "real" objects.
6048 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
6050 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
6052 * lib/font.c (dia_font_init): Added check that the three standard
6055 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6058 * app/load_save.c: Linebreaks in dia files, no indentation.
6059 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
6062 * objects/standard/line.c: Small but important fixes to the line
6066 * lib/dia_xml.c (diaXmlNewChild):
6067 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
6068 XML prettyprinting wrapper.
6070 2002-12-03 Steffen Macke <sdteffen@web.de>
6072 * shapes/Cisco/Makefile.am:
6073 * shapes/Cisco/*.shape: finished conversion of Cisco icons
6076 2002-12-02 Steffen Macke <sdteffen@web.de>
6078 * doc/en/Makefile.am:
6079 * doc/en/usage-objects.sgml:
6080 * doc/en/graphics/line_icon.png: (new) added line icon
6082 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6084 * objects/standard/line.c: Binary search object edge line gap.
6086 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
6088 * configure.in: Added Cisco makefile, sorted Makefiles list.
6090 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
6092 * configure.in: Now checks for availability of PangoFT2 and
6093 FreeType, raising an error if not found.
6095 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
6098 2002-12-01 Steffen Macke <sdteffen@web.de>
6100 * doc/en/usage-loadsave.sgml: updated information on import
6103 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
6105 * app/commands.c (edit_copy_callback): Freeing copy_list.
6107 2002-11-28 Steffen Macke <sdteffen@web.de>
6109 * app/render_libart.c: art_config.h was included twice
6111 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
6113 * sheets/.cvsignore: More ignorance.
6115 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
6117 * lib/prop_widgets.h: Two (currently unused) settings for frame
6120 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
6121 (by default) foldable.
6123 * lib/propinternals.h:
6124 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
6125 widgets in a more controlled manner.
6127 * objects/standard/line.c (line_update_data): Line gap things
6128 inserted. Can do xeyes now:)
6130 2002-11-26 Christian Neumair <chris@gnome-de.org>
6132 * .cvsignore: Changed.
6133 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
6134 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
6137 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6139 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
6141 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
6142 passing to font hash.
6144 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
6145 utf-8 or locale-convertible before adding to dialog text. This
6146 probably needs done in a number of places where we get text from
6147 the environment and send it to GTK to display.
6149 * lib/widgets.c: Fixed case problems for font menu entries.
6151 * objects/SADT/annotation.c: Don't run the event test (but leave
6152 it here for inspiration).
6155 * lib/widgets.h: Allowing setting preview text for fonts.
6157 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6159 * objects/bondgraph/Makefile.am:
6160 * objects/bondgraph/bondgraph.c:
6162 * objects/Makefile.am: Added bond graph dir.
6164 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6166 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
6168 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
6170 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
6173 * app/diapsrenderer.c: Freetype rendering is back in force.
6175 * app/disp_callbacks.c: Added missing updates for pre-text-change.
6177 2002-11-25 David Hoover <jazzdaq@yahoo.com>
6179 * app/render_libart.c: Added missing #include line for libart.
6182 * lib/geometry.c: Added point_convex function. This computes
6183 points inside a line segment (0 <= alpha <= 1) or outside the
6184 line segment (alpha < 0 | alpha > 1).
6186 * objects/standard/line.c: Line now has additional code/attributes
6187 which permit the line to extend past the line anchors (gap < 0) or
6188 leave a gap without reaching the anchor (gap > 0). If no gap is
6189 specified, the default gap of 0 will result in identical line
6190 behavior as before. If the 'fractional' attributes are TRUE, the
6191 gap length is not fixed, but a percentage of the line length. I
6192 did not know how create the GTK widgets so the gap code currently
6193 cannot be used without adding XML attributes by hand.
6195 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
6197 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
6199 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
6201 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
6203 * lib/font.c: Debugging functionality in separate functions.
6205 * lib/widgets.c: Using fontsel with context.
6207 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
6209 * objects/custom/custom_object.c: Orientation handling for shapes,
6210 patch thanks to Martin Hans <opfinder@gmx.net>.
6212 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
6213 work on even better orientation handling.
6215 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
6216 casting NULL pointers. Should be unnecessary in an upcoming GTK
6219 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
6223 * lib/widgets.c: Now uses correct context to get font families.
6225 * lib/diagdkrenderer.c (get_text_width, draw_string):
6226 * lib/dialibartrenderer.c (draw_string):
6228 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
6229 (dia_font_build_layout): Unified the twiddle factors into a use of
6230 global_size_one. But I deeply distrust Pango for seeming to
6231 change size of fonts every time I turn my back.
6236 * app/menus.h: Updated some more methods to also be more specific
6240 * app/recent_files.c:
6241 Changed to return most specific type, to avoid run-time type errors.
6243 * app/menus.c (menus_get_item_from_path): Non-gnome version now
6244 gets menu_item rather than widget, which works better.
6246 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
6248 * app/display.c: (new_display):
6249 * app/menus.c: (menus_get_item_from_path):
6250 Relying on the tearoff to locate the input methods menu wasn't a
6251 good idea: tearoffs seem to be an endangered species nowadays.
6252 Anyway, the IM menu seems to be working now.
6254 * app/interface.c: hinted the window manager that the toolbox window
6255 is a toolbox window. Not that my (fairly default configuration)
6256 sawfish cares, but other NETWM compliant WMs may.
6263 * app/layer_dialog.c:
6264 * app/linewidth_area.c:
6266 * app/sheets_dialog.c:
6269 The GTK doc says to avoir gtk_window_set_wmclass() and
6270 gtk_window_set_policy(), and use gtk_window_set_role() and
6271 gtk_window_set_resizable(), respectively.
6273 * app/preferences.c: (prefs_create_dialog):
6274 * app/preferences.h:
6275 * app/display.c: (display_set_active):
6276 Added a preference to have the toolbox hover over diagram windows.
6278 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
6280 * lib/diagdkrenderer.c (get_text_width, draw_string):
6281 Freetype-based string drawing now works. Not very fast, though.
6282 I wish I could use the graphics card for this:( I'm doing three
6283 bitmap loops where I should be doing one. The size is not correct
6284 either, despite having get_text_width give the right thing.
6286 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
6288 * app/connectionpoint_ops.c (diagram_update_connections_object):
6289 Allows more than one connectionpoint on an object to be moved at a
6292 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
6294 * configure.in: Added cs to ALL_LINGUAS.
6296 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
6298 * app/paginate_psprint.c: Removed unnecessary decl of autosave
6301 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
6303 * app/export_png.c (export_png_ok): Saving more variables from the
6306 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
6308 * lib/dialibartrenderer.c (begin_render):
6309 (end_render): Correct pushing and popping of font contexts.
6310 (draw_string): Double zooming eliminated, strange twiddle factor
6311 introduced (grumble). Close to working now, but there are still
6312 strange differences from font to font. In particular, some fonts
6313 really mess with the cursor and extents.
6315 * app/render_eps.c (export_eps):
6316 * app/diapsrenderer.c (dia_ps_renderer_finalize):
6317 Fixed file closing confusion, no longer dependent on PS/EPS.
6319 * app/diagram.c (diagram_place_down_selected)
6320 (diagram_place_up_selected): Now implemented.
6322 * lib/font.c (dia_font_init):
6324 Redesigned the font init/context pushing code. Start of fix for
6325 font name differences.
6327 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
6329 * app/sheets_dialog_callbacks.c: Fix a typo.
6331 2002-10-15 Hans Breuer <hans@breuer.org>
6333 * app/diapsrenderer.[hc] : (new files, old content :-)
6334 simple base class for post script rendering. Does neither
6335 use Pango/FT2 nor does it handle non latin1 characters.
6336 The fancy stuff which nowadays appears to be needed should
6337 probably be done in derived class(es)
6339 * app/makefile.msc app/Makefile.am : added new files
6341 * app/paginate_psrint.c : re-enabled and used as test
6342 for the simple ps renderer above.
6344 * app/render_eps.[hc] : ripped out common ps code and
6345 moved to DiaPsRenderer. The rest of the file is mostly
6346 disabled. And I don't understand enough of it to
6349 * app/diaepsrenderer.h : short lived, removed.
6351 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
6353 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
6354 as a plugin (thanks to Torben Nielsen).
6356 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
6358 * app/diaepsrenderer.h:
6360 * app/paginate_psprint.c:
6361 #ifdef'd out enough ps stuff to allow compile. Now we just need
6364 2002-10-12 Hans Breuer <hans@breuer.org>
6366 [last plug-in ported]
6368 * plug-ins/xfig/xfig-export.c : ported to new renderer api
6370 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
6371 scale color values to [0..1.0] to properly reconstruct
6374 * plug-ins/xfig/xfig-common.c : some cleaning
6376 2002-10-12 Hans Breuer <hans@breuer.org>
6378 [decrease inter-plug-in-dependencies]
6380 * objects/custom/shape_info.[hc] : move parse_style()
6381 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
6382 the related structs and constants.
6383 * objects/custom/custom_object.c : reflect namespace
6386 * lib/dia_svg.[hc] : new files
6387 * lib/makefile.msc lib/Makefile.am : add new files
6388 * lib/libdia.def : updated externals
6390 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
6392 * plug-ins/svg/svg.c : enable svg import for win32 (and
6393 probably for other non ELF builds)
6395 * plug-ins/makefile.msc : enable svg import
6397 2002-10-11 Hans Breuer <hans@breuer.org>
6399 * plug-ins/metapost/render_metapost.[hc] : ported
6401 * plug-ins/pstricks/render_pstricks.[hc] : dito
6403 2002-10-11 Hans Breuer <hans@breuer.org>
6405 * plug-ins/cgm/cgm.c : ported, appears to work as before,
6406 but graphic apps available to me can't import the generated
6407 files (the could not with Dia-0.90 cgm as well) ...
6409 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
6410 Removed all those function which did emulate 'complex'
6411 drawing ops with basic ones (e.g. rect by line) cause this
6412 stuff is already provided by the base class
6413 * plug-ins/dxf/dxf-import.c : removed render.h include
6415 * plug-ins/python/pydia-font.[hc]
6416 plug-ins/python/pydia-text.c : finally ported to new font api
6418 * plug-ins/python/pydia-layer.c : add extra parameter
6419 to layer_find_closest_connectionpoint()
6421 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
6423 * plug-ins/python/python.c : added missing copyright notice
6425 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
6426 actually use the renderers set_font implementation
6428 * plug-ins/renderer.inc : unused now, removed
6429 * plug-ins/Makefile.am : reflect it
6431 2002-10-08 Hans Breuer <hans@breuer.org>
6433 * app/render_gdk.c : don't add the InteractiveRenderer
6434 interface multiple times (it's added to the type, not
6436 * app/render_libart.c : dito. It's currently added
6437 unconditional cause eport_png uses it, but claims
6438 to be non-interactive. Probably set_size should be moved
6439 to the DiaRenderer interface.
6441 * lib/dialibartrenderer.c : add implementations for
6442 get_<width|height>_pixels. Libart rendering works again.
6443 DiaLibartRenderer::draw_image : use dia_image_rowstride()
6446 * lib/diatransform.c(dia_transform_coords_double) :
6447 don't ROUND() the returned values
6449 * plug-ins/pixbuf/pixbuf.c : added import function. It
6450 simply creates a wrapping "Standard - Image" object.
6452 * plug-ins/shape/shape-export.c : use the more direct
6453 method to call base class methods
6455 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
6457 * lib/font.c (dia_font_init): Changed dia_font_init to return old
6458 pango context, to allow stacked contexts (for printing while
6467 * lib/connectionpoint.h
6470 * lib/diagdkrenderer.h
6472 * lib/dialibartrenderer.h
6475 * lib/diasvgrenderer.h
6476 * lib/diatransform.h
6483 * lib/neworth_conn.h
6498 Moved all externally visible struct typedefs into diatypes.h, as
6499 per Hans' suggestions.
6501 2002-10-07 Steffen Macke <sdteffen@web.de>
6503 * lib/Makefile.am: removed a '\' causing problems
6505 2002-10-07 Hans Breuer <hans@breuer.org>
6507 [Libart Renderer resurrected; almost it's compiling but
6508 almost instantly crashing :-]
6510 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
6511 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
6512 * lib/diatransform.[hc] : added dia_transform_coords_double()
6514 * app/display.c : the right parameters for new_renderer_libart()
6515 * app/export_png.c : ported, removed the blind Display hack
6517 * app/makefile.msc lib/makefile.msc
6518 lib/Makefile.am : updated
6520 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
6522 2002-10-06 Hans Breuer <hans@breuer.org>
6524 * plug-ins/pixbuf/pixbuf.c : (new file)
6525 there is a new export plug-in called 'Pixbuf' which uses
6526 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
6527 formats (currently only PNG and JPEG).
6529 2002-10-06 Hans Breuer <hans@breuer.org>
6532 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
6534 * lib/dia-enums.h lib/diatransform.[hc]
6535 lib/diarenderer.[hc] lib/diainteractiverenderer.c
6536 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
6539 * lib/makefile.msc lib/makefile.am : added new files
6541 * lib/plug-ins.c : g_module_error() returns a locale
6542 string, convert to utf8 before further usage
6544 * lib/render.h : #error out. Everything including this
6546 * lib/*.[hc] : ported to new renderer api
6548 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
6549 just to make the rest compile
6550 * app/render_eps.c : temporary disabled all of this
6551 * app/render_eps.h : removed RendererEPS
6553 * app/render_gdk.[hc] : a small wrapper around the new
6554 DiaGdkRenderer form lib/*
6556 * app/render_libart.h : removed RenderLibart definition
6557 * app/render_libart.c : not yet ported to new DiaRenderer
6558 but having an implementation to untie form FT2 dependency
6559 at least on win32. It is using new Pango api form bug #94791
6561 * app/render_pixmap.[hc] : a small wrapper around the new
6562 DiaGdkRenderer form lib/*
6564 * app/display.h : removed render_*.h includes
6565 * app/display.c : the only place where specific
6566 renderers need to be known
6568 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
6569 use new DiaInteractiveRenderer interface
6571 * app/*.c : ported to new renderer api
6572 * object/*/*.c : ported to new renderer api
6573 s/render.h/diarenderer.h/
6574 s/Renderer/DiaRenderer/
6575 s/renderer->ops/renderer_ops/
6576 add in every draw method:
6577 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
6579 * plug-ins/hpgl/hpgl.c :
6580 plug-ins/wmf/wmf.cpp
6581 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
6582 * plug-ins/shape/shape-export.c
6583 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
6584 (nice how small these files became :-)
6586 2002-09-28 Hans Breuer <hans@breuer.org>
6588 * */makefile.msc : updated
6590 * app/defaults.c : don't gdk_invalidate_rect(NULL)
6591 * app/disp_callbacks.c :
6592 can't cast GtkWindow to GdkWindow, use shell->window
6593 (ddisplay_unrealize) don't use already unrefed im_context
6595 can't cast from GtkMenu to GtkMenuItem
6596 (ddisp_destroy) : mark im_context as unrefed
6598 * lib/dia_xml (data_font) : prefer new font format over old one
6599 (data_add_font) : write the legacy name to allow file exchange
6600 with pre Pango versions of Dia, which would otherwise crash
6601 on missing font 'name' attribute.
6602 * lib/font.c (dia_font_get_legacy_name) : improved implementation
6603 to get a better match.
6605 * lib/libdia.def : updated
6607 * lib/messages.c : don't gdk_widget_show(NULL)
6609 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
6611 [make Dia compile, link _and_ work with mingw/gcc3.2]
6613 * config.h.win32 : #define LIBXML, this gets defined from libxml
6614 header but only for _MSC_VER. The mingw build did access an
6615 unitialized function pointer for xmlFree.
6617 * */makefile.mingw : updated (some plug-ins have build issues)
6619 * lib/handle.h lib/object.h : there appears to be no
6620 forward declaration of the form
6621 typedef enum _HandleId HandleId
6622 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
6623 use of enum `_HandleId' without previous declaration
6625 * app/paginate_gdiprint.cpp : added a hack to avoid g++
6626 naming conflict on 'export'
6628 * app/paginate_gdiprint.h : forward declare Diagram
6630 * objects/SADT/annotaion.c : use g_random_double()
6632 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
6634 * app/modify_tool.c: Made motion not happen until sufficiently
6635 large or past double-click interval, to avoid accidental moving
6636 when doubleclicking. Got the double-click time right, and fixed
6637 some issues with release. There are some corner cases that may
6638 exhibit strange behaviour, will look at those later. Nah, let's
6639 not care about those, they are rare and not dangerous.
6641 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
6643 * app/layer_dialog.c:
6645 * plug-ins/dxf/dxf-import.c:
6646 * plug-ins/python/pydia-diagram.c:
6647 * lib/diagramdata.c:
6648 * lib/diagramdata.h:
6649 Improved the consistency of the obj->parent_layer backlinks (esp.
6654 * lib/dynamic_obj.[ch] (NEW):
6657 * app/dynamic_refresh.[ch] (NEW):
6658 * objects/Misc/analog_clock.c:
6659 Added support for dynamic refresh (animated objects).
6661 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
6663 Patch from Owen Taylor <otaylor@redhat.com>:
6664 * doc/en/Makefile.am:
6665 * doc/en/dia-manual.sgml:
6666 * doc/en/usage-objects.sgml:
6667 * doc/en/usage-quickstart.sgml:
6668 * doc/pl/Makefile.am:
6669 * doc/pl/dia-manual.sgml:
6670 * doc/pl/usage-objects.sgml:
6671 * doc/pl/usage-quickstart.sgml:
6673 - Change the DTD declration from an outdated GNOME one to a
6676 - Remove close tags for <graphics> which aren't allowed for
6679 - A hacky fix for a problem where some versions of db2html don't
6680 create *.css files. (If *.css doesn't match anything, then you get
6681 the global explicitely.)
6685 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
6687 * objects/custom/custom_object.c:
6688 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
6689 were never properly prepared for use when reloading a shape with
6690 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
6691 reporting the problem and coming up with a fix! (Closes: #93974)
6693 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
6694 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
6697 * app/display.c: updated menu item paths Alan's patch had moved.
6699 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
6700 load the sheet-provided icon (libpng versions mismatch, grrr.).
6703 * objects/Makefile.am:
6704 * objects/Misc/Makefile.am (NEW):
6705 * objects/Misc/libmisc.c (NEW):
6706 * objects/Misc/analog_clock.c (NEW):
6707 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
6708 * sheets/Misc.sheet.in: just a little experiment...
6710 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
6712 * plug-ins/xlst/Makefile.am: found a way to silence automake while
6713 not forcing everyone to build using libxslt.
6717 * lib/object_defaults.c:
6720 * lib/properties.[ch]:
6722 * objects/standard/box.c:
6723 * objects/UML/state_term.c:
6725 * objects/FS/flow-ortho.c:
6729 * app/diagram_tree.c:
6731 * app/disp_callbacks.c:
6734 * app/lineprops_area.c:
6736 * app/preferences.c:
6739 * app/sheets_dialog_callbacks.c:
6740 * plug-ins/xslt/xslt.c:
6741 * plug-ins/metapost/render_metapost.c:
6742 * plug-ins/xfig/xfig-export.c:
6743 * plug-ins/shape/shape-export.c:
6745 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
6746 unused variables, mostly)
6749 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
6751 * app/Makefile.am: modified run_dia.sh so that we recover the
6752 ability to run a debugger despite libtool's hacks.
6754 * plug-ins/dxf/Makefile.am:
6756 "make distcheck" fixes.
6758 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
6760 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
6761 <mfranzoni@madd.it>: Check for the type being NULL.
6763 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
6765 * app/render_eps.c (set_font): Re-tweaked font size for printing.
6767 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
6769 Patch from Angus Ainslie <angusa@deltatee.com>:
6770 * plug-ins/dxf/dxf-import.c:
6771 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
6773 (plus a couple extra fixes by me, such as the removal of printf's,
6774 adapting for recent changes, and killed a couple warnings)
6776 * app/authors.h: a 60K patch isn't insignificant, is it?
6778 2002-09-09 Tor Lillqvist <tml@iki.fi>
6780 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
6781 as before) and -lfreetype (using AC_CHECK_LIB). At least on
6782 Solaris with Sun's compiler (Forte C), you need to link also the
6783 dia application with -lfreetype, even if it is implicitly linked
6784 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
6785 which is what they actually mean. Use FREETYPE_LIBS for
6788 Don't look for libsunmath if isinf() is not found in math.h (as on
6789 Solaris). The sunmath library is part of Forte C and not present
6790 on all machines. Besides, even if isinf was found in libsunmath,
6791 we didn't use it in the Makefile.am.
6793 Fix a couple of bashisms.
6795 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
6796 too, on Solaris with Forte C.
6798 Don't try to use the gcc flags with other compilers.
6799 DIA_CHECK_CFLAG gives a false indication that Forte C understands
6800 the gcc -f switches, but in fact they get interpreted meaning
6801 something completely different.
6803 Define the automake conditional HAVE_CGC.
6805 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
6807 Use -export-dynamic only with gcc.
6810 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
6811 PANGOFT2_CFLAGS rename.
6813 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
6815 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
6818 * lib/paper.c: Workaround for gccism: Can't use inline this way with
6821 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
6823 * lib/text.c(set_string): fixed a memory leak (char* ain't no
6824 std::auto_ptr<char> !).
6827 * app/interface.[ch]:
6828 * app/ddisp_callbacks.[ch]: Added some basic support for input
6829 methods (GtkIMContext-based)
6832 * app/Makefile.am: made libdia a shared object (per Tor
6833 Lillqvist's suggestion/request), to cope for platforms with a less
6834 than par dynamic library loader.
6836 * app/display.c: disabled the input method menu (I really don't
6837 see where and how to put them. Blame Frozen Bubble )
6839 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
6841 * objects/flowchart/box.c (box_update_data): Made resizing
6842 possible again (only set width & height when resized too small).
6844 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
6846 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
6849 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
6851 * app/authors.h: now showing Akira TAGOH's name in the native script.
6853 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
6855 * plug-ins/xslt/xslt.c: Removed glib warning for unset
6858 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
6860 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
6861 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
6864 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
6866 * objects/UML/class.c: Fixed showing of empty stereotypes and got
6867 the string placed correctly.
6869 2002-08-30 Hans Breuer <hans@breuer.org>
6871 * lib/font.c (dia_font_get_style) : don't shift already
6872 shifted DIA_FONT values.
6874 * lib/libdia.def : updated externals
6876 * app/disp_callbacks.c : on win32 GdkEventKey::string already
6877 is in UTF-8. (Longterm this probably should be handled on the
6880 * app/command.[hc] app/display.[hc] app/menus.c : add code to
6881 switch display renderers again. The libart renderer is very
6882 useful for win9x with it's limited GDI.
6884 * app/render_gdk.c : use g_warning instead of printf which gets
6885 nowhere on win32 (non console apps)
6887 * app/render_libart.c : make it compile without FREETYPE
6889 * objects/makefile.msc plug-ins/makefile.msc : added clean target
6891 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
6893 * app/render_eps.c (postscript_draw_contour): Debugging statement
6894 that allowed me to figure out font problems.
6896 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
6897 items for font styles.
6899 * objects/FS/flow-poly.c:
6900 * objects/FS/flow-ortho.c:
6901 * objects/FS/flow.c: Further conversion away from GTK dialogs.
6902 Can't set a default label right now:(
6904 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
6906 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
6907 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
6909 * Makefile.am: rules relating to AUTHORS and THANKS
6911 * AUTHORS: file content changed to more accurately
6912 reflect guideline requirements.
6913 * TODO: warning added about Gnome BTS.
6914 * KNOWN_BUGS: warning added about Gnome BTS.
6918 * AUTHORS: added full copyright info.
6919 * mkauthors-placeholder: (removed)
6921 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
6923 * app/paginate_psprint.c (print_page): Fixed text printing after
6924 tip from Dov Grobgeld.
6926 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
6928 * app/paginate_psprint.c (print_page): Fixed color of clip
6931 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
6933 * sheets/Makefile.am: enabled intltool-merge translation cache for
6937 * mkauthors-placeholder:
6938 * AUTHORS: revived that file (in a placeholder form) so that
6939 automake stops yelling.
6940 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
6943 Heh, by the way, thanks Christophe. I feel better now.
6945 2002-08-25 Christophe Merlet <christophe@merlet.net>
6947 * app/command.c: Removed invalid multibyte sequence in Chepelov.
6949 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
6951 * lib/dia_image.c (dia_image_rgb_data):
6952 Bugfixes in image data retrieval.
6954 * app/render_eps.c: Refactoring of new_*_renderer.
6956 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
6960 * lib/dia_image.c: Support for rowstride != width (odd width images)
6962 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
6964 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
6965 * plug-ins/xfig/xfig-import.c: Removed assertion.
6967 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
6969 * lib/paper.c: Removed app/preferences.h reference.
6971 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
6973 * plug-ins/svg/svg-import.c:
6974 * plug-ins/xfig/xfig-import.c:
6975 * lib/Makefile.am (libdia_a_SOURCES):
6976 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
6978 * objects/standard/create.h:
6979 * objects/standard/polygon.c (polygon_create):
6980 * objects/standard/polyline.c (polyline_create):
6981 * objects/standard/beziergon.c (beziergon_create):
6982 * objects/standard/bezier.c (bezierline_create):
6983 Moving create.h into lib.
6985 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
6987 * app/render_libart.[ch]: Work on PNG font export. Something's
6988 still fishy with the scaling, I don't get it.
6991 * app/interface.c: Replaced broken zoom combo with entry+menu.
6992 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
6994 * app/render_gdk.c (get_text_width): Checks for validity of text.
6995 Temporary help while debugging input -- should only activate on
6998 * objects/SADT/annotation.c:
6999 * objects/GRAFCET/transition.c:
7000 * objects/FS/function.c: Removal of gtk.h include.
7002 * objects/UML/state.c (state_load): Warnings about using State
7003 object for initial/final states.
7005 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
7007 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
7009 * app/render_eps.c: Text rendering that scales correctly. Too bad
7010 the standard fonts don't get selected right.
7012 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
7014 * lib/diagramdata.h:
7015 * lib/paper.c (get_paper_info):
7017 * plug-ins/xfig/xfig-import.c:
7018 Committed before testing. I am so embarrased. This compiles, now
7019 that the includes are in the right order.
7021 * app/diagram.c (diagram_init):
7022 * app/app_procs.c (do_convert):
7023 * app/preferences.h:
7024 * lib/diagramdata.h:
7025 * lib/diagramdata.c (new_diagram_data):
7027 * lib/paper.c (get_paper_info):
7028 Moved new_diagram part of prefs into lib/diagramdata.h. More
7029 could be done in new_diagram_data() now.
7031 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
7033 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
7035 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
7037 * configure.in: removed silly user-visible comment
7039 (actually, this is a dummy entry before I manually run nemo; for
7040 some dist-upgrade related reason, this morning's run aborted before
7041 the snapshots were created)
7043 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
7045 * objects/network/wanlink.c:
7046 * objects/network/bus.c:
7049 * objects/custom/custom_object.c:
7050 * objects/network/wanlink.c:
7051 * objects/flowchart/parallelogram.c:
7052 * objects/flowchart/ellipse.c:
7053 * objects/flowchart/diamond.c:
7054 * objects/flowchart/box.c:
7055 Removed GTK defaults stuff.
7057 * objects/UML/fork.c:
7058 * objects/UML/object.c:
7059 * objects/UML/lifeline.c:
7060 * objects/UML/branch.c:
7061 * objects/GRAFCET/transition.c:
7062 * objects/FS/function.c: Removed GTK include.
7064 * objects/FS/flow-ortho.c:
7065 * objects/FS/flow.c: Made the label behave again.
7066 Also removed GTK defaults stuff.
7068 2002-08-06 Hans Breuer <hans@breuer.org>
7070 * app/autosave.c : ported to GDir which is the improved
7071 cross platform replacement for <dirent.h>
7073 * app/makefile.msc : build autosave.obj
7075 * app/font.c : some (bad?) code calls
7076 dia_font_scaled_decent() not only with empty string but
7077 with NULL. Handle it gracefully.
7079 * lib/paper.c : don't depend on ../app. Although IMO
7080 this shouldn't be allowed on any platform it is only
7081 disabled for win32, where it simply doesn't work
7084 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
7086 * objects/fs/flow.c : conditionalize debug spew, disabled
7087 and 'ported' to use g_print. Simple printf won't work with
7088 standard win32 gui apps, may even crash them.
7090 * plug-ins/makefile.msc : DISABLED svg-import cause it
7091 depends on ../objects/custom. This not only break the
7092 build for all non ELF systems but IMO also isn't acceptable
7093 from a design point of view. See dia-list mail on subject.
7095 * plug-ins/python/makefile.msc :
7096 plug-ins/python/python.c : remove all references to dirent
7098 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
7100 * configure.in: added ro to ALL_LINGUAS
7104 * ../translation-graphs/transgraph.py: added support for fuzzy
7105 translations. Enlarged the graphs.
7107 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
7109 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
7110 key events according to locale. No clue if this works for
7113 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
7115 * lib/text.c: Various UTF8 related fixes, in particular in
7116 deleting. Text_insert_char is fine, far as I can tell.
7118 * app/interface.c (create_display_shell):
7119 * app/commands.c: Now uses gtk_clipboard functions, for they are
7120 much simpler. Also handles Win32 clipboard. Non-ascii chars
7121 don't seem to get handled correctly by text_insert_char in
7124 * app/commands.c (received_selection_handler): Got utf8 handling
7125 on paste, and individual char handling out of commands.c. Pasting
7126 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
7128 * lib/message.c (gtk_message_internal): Message dialog re-shown
7129 when new message appears. Maybe it should even move to top?
7133 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
7134 (again) and case-insensitive.
7136 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
7139 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
7141 * app/commands.c (edit_cut_text_callback):
7142 * lib/text.c (text_delete_all): Now functioning undo for text cut.
7144 * app/commands.c (edit_cut_text_callback): Now removes text.
7145 Undo is broken, though.
7147 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7149 * app/diagram.c (diagram_update_menu_sensitivity):
7150 Making cut_text active.
7153 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
7154 clipboard. Also removed AA callback.
7156 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7158 * objects/chronogram/chronoref.c:
7159 * objects/chronogram/chronoline.c:
7160 * objects/SADT/annotation.c:
7161 * objects/SADT/arrow.c:
7162 * objects/SADT/box.c:
7163 * objects/GRAFCET/vergent.c:
7164 * objects/GRAFCET/vector.c:
7165 * objects/GRAFCET/step.c:
7166 * objects/GRAFCET/condition.c:
7167 * objects/GRAFCET/action.c:
7168 * objects/ER/participation.c:
7169 * objects/ER/relationship.c:
7170 * objects/ER/entity.c:
7171 * objects/ER/attribute.c:
7172 Removing unnecessary GTK references.
7174 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
7176 * objects/standard/image.c:
7177 * objects/standard/textobj.c:
7178 * objects/standard/ellipse.c:
7179 * objects/standard/polygon.c:
7180 * objects/standard/beziergon.c:
7181 * objects/standard/box.c:
7182 Making default default properties.
7184 * objects/standard/image.c:
7185 * objects/standard/arc.c:
7186 * objects/standard/box.c:
7187 * objects/standard/zigzagline.c:
7188 * objects/standard/polyline.c:
7189 * objects/standard/line.c:
7190 * objects/standard/ellipse.c:
7191 * objects/standard/polygon.c:
7192 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
7194 * lib/object_defaults.c (dia_object_default_create):
7197 * lib/object.c (object_copy_using_properties):
7198 * lib/propdialogs.c:
7199 * lib/propinternals.h:
7200 * lib/propobject.c (object_create_props_dialog)
7201 (object_copy_props):
7202 Removing the standard (toolbox) properties from defaults dialogs.
7204 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
7206 * lib/font.c (dia_font_scaled_string_width)
7207 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
7209 * lib/text.c (text_calc_boundingbox): Take descent into account.
7211 * objects/standard/bezier.c (bezierline_draw):
7212 * lib/render.c (draw_bezier_with_arrows):
7213 Better arrow drawing for beziers. Doesn't change the mouse-click
7216 * lib/arrows.h: Some const-ness.
7218 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
7220 * lib/render.c (draw_arc_with_arrows):
7221 * objects/standard/arc.c (arc_draw): Better arrow drawing for
7222 arcs. Doesn't change the mouse-click area yet.
7224 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
7230 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
7232 * app/group.c (group_draw): Forgotten commit: Groups to draw as
7233 objects (using default routines).
7237 * lib/diagramdata.h:
7238 * lib/diagramdata.c (layer_find_closest_connectionpoint):
7239 * objects/standard/zigzagline.c (zigzagline_move_handle):
7240 * app/diagram.c (diagram_find_closest_connectionpoint):
7241 * plug-ins/python/pydia-diagram.c
7242 (PyDiaDiagram_FindClosestConnectionPoint):
7243 * app/object_ops.c (object_connect_display)
7244 (object_find_connectpoint_display)
7245 * app/create_object.c (create_object_button_press)
7246 (create_object_motion):
7247 * app/modify_tool.c (modify_motion):
7248 Adding object param to allow connectionpoint and handle coinciding.
7250 * objects/standard/zigzagline.c (zigzagline_check_orientation):
7251 Fixing minor problems.
7253 * objects/standard/ellipse.c (ellipse_update_data):
7254 Added direction hints.
7256 * lib/diagramdata.c:
7259 * lib/diagramdata.h:
7260 * objects/standard/zigzagline.c:
7261 First working example of zigzagline hints, currently only between
7264 2002-07-27 Steffen Macke <sdteffen@web.de>
7266 * plug-ins/svg/render_svg.c: added support for rounded
7267 rectangles (fixes #69053 if compile with
7269 * object/custom/shape_info.[c|h]: made parse_style and
7270 parse_path accessible for svg plug-in
7271 * plug-ins/svg/Makefile.am:
7272 * plug-ins/svg/svg.c:
7273 * plug-ins/svg/svg-import.c(new): added SVG import filter
7275 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
7277 * objects/standard/box.c:
7278 * objects/standard/zigzagline.c (zigzagline_move):
7279 More work on zigzagline hints.
7281 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
7282 * lib/connectionpoint.h:
7283 Hints for zigzaglines.
7285 * app/properties.c (properties_show):
7286 * app/defaults.c (defaults_show):
7288 * lib/propobject.c (object_create_props_dialog):
7290 * objects/FS/flow-poly.c:
7291 * objects/network/wanlink.c:
7292 * objects/network/bus.c:
7293 * objects/UML/class.h:
7294 * objects/UML/class_dialog.c:
7295 * objects/UML/association.c:
7296 Start of removing toolbox props from props dialogs.
7300 * app/lineprops_area.c (dia_arrow_chooser_new):
7301 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
7303 * app/create_object.c:
7304 * app/modify_tool.c:
7309 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
7311 * app/preferences.c:
7313 * app/diapagelayout.c:
7314 New prefs selector kind PREF_CHOICE chooses between a list of
7315 strings. Used for picking default paper.
7317 * app/preferences.c (prefs_data):
7318 * lib/paper.c (get_paper_info): Added prefs setting for
7321 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
7322 line segments at the ends (bug #86603).
7324 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
7326 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
7327 #60324: Now calls update_data after copy.
7329 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
7330 Now doesn't steal selection from non-object tools.
7332 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
7334 * app/commands.c (help_manual_callback): Uses BROWSER environment
7335 variable when available.
7337 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
7339 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
7340 object from the new sheet when changing.
7342 * app/app_procs.c (app_init): Uses more standard size icon, from
7343 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
7345 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
7347 * objects/UML/implements.c (implements_update_data):
7348 * objects/UML/realizes.c (realizes_update_data):
7349 * objects/UML/dependency.c (dependency_update_data):
7350 Test for null strings before calling on ascent.
7352 * objects/UML/realizes.c (realizes_draw):
7353 * objects/UML/message.c (message_draw):
7354 * objects/UML/generalization.c (generalization_draw):
7355 * objects/UML/dependency.c (dependency_draw)
7356 * objects/UML/constraint.c (constraint_draw):
7357 * objects/GRAFCET/condition.c (condition_draw):
7358 * objects/UML/association.c (association_draw):
7359 * objects/FS/flow-ortho.c (orthflow_draw):
7360 * objects/FS/flow.c (flow_draw): Change to use
7361 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
7364 * lib/arrows.c (calculate_arrow_point):
7367 * objects/standard/zigzagline.c:
7368 * objects/standard/polyline.c:
7369 * objects/standard/line.c: Work towards better arrow drawing.
7371 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
7373 * objects/UML/state.c: Starting phase-out of State object as
7374 initial/final state (which never worked right).
7376 * app/app_procs.c (app_init): --version command line option for
7379 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
7381 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
7383 * app/render_eps.c: Removed debugging info.
7385 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
7386 Kludge to make ascent and descent work for empty strings. Won't
7387 work when using non-ASCII fonts. Better would be to get a
7388 PangoFont and ask directly.
7390 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
7393 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
7396 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
7398 * plug-ins/xfig/xfig-export.c: First use of draw_object render
7399 function: All shapes are now groups in XFig export.
7401 * lib/diagramdata.c (normal_render):
7404 * app/display.c (ddisplay_obj_render):
7405 New render function for drawing objects, allows renderers to group
7406 or otherwise specially handle objects. We may want to reconsider
7407 calling it in app/display.c, as we 'know' the object draw function
7408 is the default one there.
7410 * lib/Makefile.am: Removed extra \ that broke stuff.
7412 * plug-ins/xfig/xfig-import.c:
7413 Spline import for xfig. Not perfect.
7415 * objects/standard/create.h:
7416 * objects/standard/bezier.c (bezierline_create):
7417 * lib/bezier_conn.c:
7418 * lib/beziershape.c (beziershape_set_points):
7419 * lib/bezier_conn.h:
7420 * lib/beziershape.h:
7421 Support for creating beziers non-interactively.
7423 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
7425 * plug-ins/xfig/xfig-import.c: Support for polygons and
7426 polylines. Special warning handling system removed.
7428 * lib/message.c (gtk_message_internal): Fixed bug involving
7429 closing message window and then getting repeated message.
7433 * configure.in (GETTEXT_PACKAGE):
7434 Update based on bug #88199. Hopefully this doesn't break too much
7437 * dia.desktop.in (_Comment): Changed after suggestion from
7438 calum.benson@ireland.sun.com (bug 88345)
7440 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
7441 <loli@unsa.edu.ar> that makes user/system distinction better.
7443 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
7445 * app/render_libart.c: Got the context right, removed crashes.
7455 Remove libart #defines from most places (still around for png export).
7457 * app/render_libart.h:
7458 * app/render_libart.c:
7459 * configure.in (HAVE_LIBART):
7460 Starting on update of libart stuff for png export (without X).
7462 * app/autosave.h (autosave_check_autosave):
7465 * app/Makefile.am (dia_core_files):
7467 * app/diagram.c (diagram_set_modified):
7469 * app/app_procs.c (app_init):
7470 Autosave support. No automatic restore yet.
7472 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
7474 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
7477 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
7479 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
7481 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
7483 * Fix for 'make dist' etc. --- problem caused by
7484 previous AUTHORS patch.
7486 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
7488 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
7490 (set_font): NULL check.
7492 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
7494 * app/disp_callbacks.c:
7496 Addition to the object menus allows check menu items.
7498 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
7500 * HACKING: completely changed to bring up-to-date.
7501 * AUTHORS: file needs REMOVING from CVS as now
7502 dynamically generated.
7503 * app/authors.h: split into subcategories for original
7504 authors, maintainers, etc.
7505 * app/app_procs.c: --credits rewritten to support new
7507 * app/commands.c: no changes to about box code, comment
7509 * Makefile.am: added rule for AUTHORS. I'm still
7510 inexperienced with automake, it seems to work, but
7511 for AUTHORS-related bugs, look at this change first.
7513 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
7515 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
7516 work. Back to including xslt dir always.
7518 * objects/UML/uml.c:
7519 * objects/UML/class.h:
7520 * objects/UML/class_dialog.c:
7521 * objects/UML/class.c: Patch from
7522 <mattam@netcourrier.com>: Adds comment visibility switch, also
7525 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
7526 for state/fork/activity stuff.
7527 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
7528 * objects/UML/Makefile.am:
7529 * objects/UML/uml.c:
7530 * sheets/UML.sheet.in: Added new objects activity, fork,
7532 * objects/UML/pixmaps/state_term.xpm:
7533 * objects/UML/state_term.c: New, only initial/final states.
7534 * objects/UML/pixmaps/activity.xpm:
7535 * objects/UML/activity.c: New, activity state.
7536 * objects/UML/pixmaps/fork.xpm:
7537 * objects/UML/fork.c: New, fork/join bar.
7538 * objects/UML/pixmaps/state.xpm: state icon.
7542 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
7543 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
7546 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
7548 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
7551 * app/Makefile.am: Commented out the diaconv parts while it's not
7552 used anyway. To come back later.
7554 * configure.in (HAVE_FREETYPE):
7557 * app/render_eps.c: Support for printing with freetype, better
7558 encapsulated now. Renders the text nicely, but ignores font
7559 setting. Requires pangoft2 to get the font outline, but non-text
7560 objects can still be rendered without it.
7563 * app/commands.c (objects_place_up_callback)
7564 (objects_place_down_callback):
7566 * app/diagram.c (diagram_place_down_selected)
7567 (diagram_place_up_selected): Starting support for moving objects
7570 * app/menus.c: Removed character/numeral shortcuts.
7572 2002-07-06 Hans Breuer <hans@breuer.org>
7574 * makefile.am app/makefile.am lib/makefile.am
7575 objects/makefile.am plug-ins/makefile.am
7576 plug-ins/python/makefile.am :
7577 added required files for win32 build to EXTRA_DIST
7579 * app/paginate_psprint.c app/render_eps.c
7581 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
7582 on Pango as currently is on win32 => no PostScript
7585 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
7586 use '/* noop */;' for empty case labels; replace
7587 debug spew printf with g_print which is guaranteed
7588 to work on win32, too.
7590 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
7591 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
7592 in the pango_font_description_set_weight() api documentation
7593 Take care for them in dia_font_get_style() too.
7595 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
7596 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
7597 rename Obliquity to Slant which appears to be the usual name,
7598 also rename dia_font_get_style_string -> dia_font_get_slant_string
7600 * plug-ins/wmf/wmf.cpp : finally ported to new font api
7602 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
7604 * objects/uml/association.c class.c large_package.c message.c
7605 if g_free() is used g_strdup needs to be used.
7606 * objects/custom/shape_info.c
7607 objects/ER/attribute.c entity.c
7608 objects/standard/image.c
7609 app/sheets_dialog_callbacks.c : more strdup cleaning
7611 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
7613 * app/render_eps.c: Non-crashing printing (made the right
7614 context). Font output still fscked up.
7616 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
7618 * app/authors.h: Added file --- now master
7619 location for contributors data.
7620 * app/app_procs.c: Added --credits option.
7621 * app/commands.c: Modified about box to use
7624 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
7626 * app/render_eps.c: First stab at EPS rendering using the contour
7627 code from PAPS. Crashes.
7629 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
7631 * app/recent_files.c (recent_file_history_remove):
7632 Fixed call to g_list_delete_link discarding return value.
7634 * lib/widgets.c (dia_font_selector_set_styles):
7635 * lib/font.h (DiaFontWeight):
7636 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
7638 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
7640 Contribution from Alan Horkan <horkana@tcd.ie>:
7643 * sheets/Assorted.sheet:
7644 A set of 40 assorted geometric shapes.
7646 * sheets/Assorted.sheet.in:
7647 * sheets/Makefile.am
7648 * shapes/Assorted/Makefile.am:
7649 * shapes/Makefile.am:
7652 Done the integration job of Alan's shapes. (Translators: have fun!)
7654 * po/dia.pot: refreshed the main potfile.
7656 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
7658 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
7660 * objects/UML/class.[ch]:
7661 * objects/UML/class_dialog.c:
7662 changed the number of connection points from a hardcoded value of
7663 8 to a #defined constant
7665 (I changed the constant back from 20 to 8, until we better know
7666 how we'll handle more connection points on the UML class in the
7667 future -- but Tim's patch is a welcome clean-up).
7669 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
7671 * shapes/MSE/demultiplexer.xpm:
7672 * shapes/MSE/node_center.xpm:
7673 * shapes/MSE/multiplexer.xpm:
7674 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
7675 Horkan <horkana@tcd.ie>
7677 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
7679 * lib/widgets.c: Total rehash of font selector, with font dialog
7680 option, expanding list (not LRU yet), and stuff.
7682 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
7686 Added a set of new setter/getters, some of them more specially for
7689 * plug-ins/shape/shape-export.c: (new_shape_renderer),
7690 (destroy_shape_renderer), (set_font), (draw_string):
7691 * plug-ins/svg/render_svg.c: (new_svg_renderer),
7692 (destroy_svg_renderer), (set_font), (draw_string):
7694 Actually exported the font face, style, weight and size (sodipodi
7695 agrees with dia on how a small sample should look like (a sample
7696 0.90 would not even display anyways). Yay !)
7698 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
7700 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
7702 (end of ChangeLog-less patch)
7704 * objects/custom/shape_info.c (parse_style): now understands the
7705 font-style and font-weight attributes as well. Does not use
7706 anymore dia_font_new_from_legacy_name().
7708 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
7710 * objects/standard/textobj.c: Now uses stdprops for defaults.
7712 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
7713 * lib/font.c (dia_font_get_style): Style now linear and conversion
7716 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
7719 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
7721 * plug-ins/dxf/dxf-import.c:
7722 using dia_font_new_from_style()
7724 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
7726 * objects/UML/class.[ch]: Added a comment field to class
7727 * objects/UML/uml.[ch]: Added a comment field to attributes,
7728 operations and parameters.
7729 * objects/UML/class_dialog.c: Added code for the new comment
7731 * plug-ins/xslt/*.xsl: Added some code to handle comments.
7732 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
7733 Added a $directory parameter for stylesheets so the output is
7734 in the good place (not in the $PWD).
7738 * AUTHORS: added contributors, updated maintainers. Removed the
7739 specific areas of action.
7741 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
7742 from a patch by Xing Wang <quixon@gnuchina.org>:
7744 * app/commands.c: help_about_callback now supports
7745 new-style GNOME about box as well as old GTK style.
7746 code also tidied (Closes: #85726)
7750 * app/commands.c: fixed the copyright (it's not all FSF), and
7751 maintainers. Synced contributors list with AUTHORS.
7753 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
7755 * lib/message.c: More work on repeating messages, now with
7758 2002-06-24 Hans Breuer <hans@breuer.org>
7760 * lib/widget.c : some more bits in place, at least
7761 it does something useful instead of crashing. Much
7762 better - but not all ok :-)
7764 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
7766 * lib/message.c (gtk_message_internal): First stab at repeating
7769 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7772 * objects/GRAFCET/*.c:
7774 * objects/UML/association.c: (one instance forgotten)
7775 * objects/UML/large_package.c:
7776 * objects/standard/textobj.c:
7779 using dia_font_new_from_style()
7781 2002-06-23 Hans Breuer <hans@breuer.org>
7783 * lib/font.c : giving some love to
7784 dia_font_new_from_legacy_name() that is making
7785 import of old files as painless as possible and
7786 provide an almost exact match where possible.
7787 It does not yet fully work because it interfers
7788 with the Style to DiaStyle conversion which comes
7791 [Changing these files is only allowed with Dia-0.90]
7792 * broken-files/fonts-0.90.dia : including the
7793 common hard-coded fonts from Dia-0.90. It also
7794 has drawn bounding-boxes for win32 as they were calculated
7795 from the former version (they were all too big).
7796 * broken-files/fonts-0.90-full.dia : all hardcoded
7797 fonts including the asian versions. On my machine
7798 this gives _a lot_ complaining about missing fonts
7799 and a finally a broken file display. Anyone having
7802 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7804 * objects/chronogram/*.c:
7805 * objects/custom/custom_object.c:
7807 using dia_font_new_from_style()
7809 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
7811 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
7812 font selector (stability, insensitivity).
7814 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
7815 stretching scheme for tweaking, and made scaling scheme faster
7817 (dia_font_dia_style_to_pango): Oops, % != /.
7819 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7822 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
7824 * plug-ins/xslt : Added an XSLT plugin to export dia files using
7825 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
7826 It includes a small config file to tell it what stylesheets to use.
7830 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
7831 GTK2.0/HIG compliant (the labels could be slightly more verbose,
7832 perhaps). Added back a couple forgotten _(). Removed //-style
7835 2002-06-23 Hans Breuer <hans@breuer.org>
7838 (dia_plugin_get_name) : don't crash plugin_manager
7840 (dia_plugin_load) : reuse the description field to
7841 store the error string if loading fails.
7843 * lib/font.[hc] : starting to beautify the new
7844 font api: proper namespacing, adding convenience
7845 functions like dia_font_new_from_style(), ...
7847 * objects/uml/*.c : use the new convenience functions.
7849 [Next thing I plan to do is changing the other font
7850 functions to take DiaStyle and make Style and
7851 BASIC_*_FONT vanish. As well as giving some love to
7852 dia_font_new_from_legacy_name().
7853 If anyone want's to help on converting the other
7854 objects to the new api during that, I would highly
7857 2002-06-23 Hans Breuer <hans@breuer.org>
7859 * lib/font.c : made it compile and small indent fixes.
7860 Is there a code-has-no-effect-so-needs-not-be-valid
7863 * lib/widgets.c : use g_strcasecmp
7865 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
7869 * lib/widgets.c: Font names sorted, style selector widget
7870 reappeared. Doesn't select the old style yet.
7872 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
7874 * lib/font.c: one who expects a text's font to be changed shall
7875 actually request the attributes to apply to the whole range of the
7878 * lib/font.c: extents computation was wrong.
7880 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
7881 if a last NULL parameter is added...
7883 * lib/font.c: extents computation was completely wrong. This looks
7884 much better this time.
7886 * objects/UML/class.c: fixed the various strings positions.
7888 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
7889 macros to get the hardcoded base fonts.
7891 * objects/ER/relationship.c: wasn't converted to DiaFont*
7893 2002-06-22 Hans Breuer <hans@breuer.org>
7895 * lib/widget.c : dont use backend specific functions
7896 to get on the font_families. Including it would mean
7897 including <windows.h> which breaks due to namespace
7900 * lib/libdia.def : updated externals
7902 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
7904 * lib/font.c : added empty dia_font_init_instance function,
7905 reformatting of dia_fon_unref to allow to set breakpoint,
7906 dia_fon_build_layout() : dont crash on string==NULL
7908 * lib/text.c (text_set_attributes) : don't unref the wrong font
7910 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
7911 stores lowercased font names, but dia_font_get_family()
7914 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
7917 * app/render_gdk.c: Patch from Hans Breuer.
7919 * app/Makefile.am (dia_core_files): diaconv commented out for now.
7921 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
7923 * lib/all files touched yesterday: took into account some of Hans
7925 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
7927 * objects/chronogram/*:
7930 * objects/flowchart/*:
7932 * objects/GRAFCET/*:
7934 * objects/standard/textobj.?:
7936 converted to the new DiaFonts.
7939 * plug-ins/pstricks/*:
7943 Made minimalistic conversions so that they'd at least compile.
7946 * app/render_pixmap.c:
7947 Converted to the new DiaFonts.
7952 made the minimal changes so that it would at least build.
7954 *** At this point, the thing builds on my machine, but segfaults
7957 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
7959 * configure.in: removed the backend-specific pango pkg_modules
7960 (trivial to add back if needed, when actually needed)
7963 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
7964 renderer. The APIs will have completely changed when we get around
7965 to redo a renderer for it, anyways.
7967 * font.[ch]: rewrote everything from scratch, with a Pango
7968 implementation. Normally, only backend-neutral things should go in
7971 **WARNING**: new rules for managing DiaFont* pointers: these are
7972 reference-counted GObjects. One >must< diafont_ref() and
7973 diafont_unref() as appropriate. I wish I could overload operator=()...
7975 lib/plug-ins.h: bumped up the plug-in API.
7980 lib/object_defaults:
7981 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
7982 again tomorrow with GObject.
7984 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
7986 **** The rest of the tree should be updated as well ****
7988 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
7992 * app/render_pixmap.c:
7993 * app/render_pixmap.h:
7994 * app/render_libart.h:
7995 * app/render_libart.c:
7997 * lib/font.c: Removed freetype stuff (still around in
7998 lib/widgets.c 'cause we might want the font selector widget).
8000 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
8002 * shapes/network/laptop.(xml|shape):
8003 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
8004 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
8006 2002-06-17 Hans Breuer <hans@breuer.org>
8008 * lib/object_defaults.c : #include <libxml/tree.h> not
8009 <tree.h> pointed out by Xing Wang
8011 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
8013 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
8015 * app/color_area.c: Update to
8016 gtk_color_selection_*_current_color() fixed bad crash issues, plus
8017 updated color conversions.
8019 * sheets/ER/weakentity.xpm: Accepted patch from
8020 quixon@gnuchina.org to make icon match actual appearance.
8022 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
8023 quixon@gnuchina.org.
8025 2002-06-16 Hans Breuer <hans@breuer.org>
8027 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
8028 good tradition of information hiding. Add new function
8029 dia_plugin_get_symbol()
8030 * app/sheets.c app/sheets_dialog_callbacks.c : use it
8032 * app/sheets.c : stop complaining about object_get_type()
8033 returning NULL. This is a consequence of e.g. disabling
8034 plug-ins at runtime _and_ it was and is gracefully handled.
8035 Spitting out g_warning for it isn't appropriate.
8037 * lib/object.[ch] : removed dead code
8039 * app/plugin-mangager.c : almost complete rewrite for gtk2
8040 using GtkListStore/GtkTreeView
8042 * lib/libdia.def : updated externals
8044 * todo.gtk2 : updated, that is removed already done steps
8046 2002-06-15 Hans Breuer <hans@breuer.org>
8048 * objects/uml/class_dialog.c : clean some left-over
8049 utf8-mess, return 0 from "focus_out_event" handlers
8050 to avoid asserting in gtk (#78305). Reconstruct
8051 stereotype/NULL behaviour to avoid rendering empty
8052 stereotypes on classes and member functions
8054 [#56109 - Provide object defaults for StdProp objects,
8055 some remaining issues are discussed in bugzilla]
8057 * lib/object_defaults.c : (new file) manage default properties
8058 of dia objects. The serialization is done with standard
8059 object methods in a diagram compatible format.
8061 * lib/object.c : add object_registry_foreach() which allows
8062 to iterate over all registered object types
8064 * lib/object.h : added prototypes object_default*() and
8065 object_registry_foreach()
8067 * lib/makefile.am lib/makefile.msc : add new file to build
8069 * lib/libdia.def : export new functions
8071 * app/defaults.c : provide StdProp based defaults if the
8072 ObjectType doesn't implement it's own default functions
8074 * app/create_object.c : through dia_object_default_create()
8075 * app/disp_callbacks.c : same here
8077 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8079 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
8080 sensitivity for deleting segments.
8082 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
8084 * app/color_area.c: (color_area_events):
8085 * app/diagram.c: (diagram_destroy):
8086 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
8088 * app/load_save.c: (diagram_data_load):
8089 * app/menus.c: (menus_get_item_from_path):
8090 * app/preferences.c: (prefs_load):
8091 * app/render_gdk.c: (get_text_width):
8093 * lib/color.c: (color_convert):
8094 * lib/dia_dirs.c: (dia_config_filename):
8095 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
8096 * lib/intl.c: (intl_get_language_list):
8097 * lib/message.c: (message):
8099 * lib/paper.c: (get_default_paper):
8100 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
8101 * lib/widgets.c: (dia_file_selector_get_file):
8103 * objects/standard/image.c: (get_directory):
8107 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8109 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
8111 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
8113 * app/interface.c: sscanf now returns EOF on empty string, so
8114 handle no match for zoom factor better => correct zoom at start.
8116 * app/sheets.c (create_object_pixmap): Tried to display empty error.
8117 (sheets_optionmenu_create): Died when not finding specified
8118 sheet. Don't think it should.
8120 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
8121 (bug #84367) to place the text better.
8123 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
8125 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
8127 * app/commands.c: Removed unnecessary gnome include. Removed
8128 GNOME-Print support.
8130 * app/menus.h: Removed now unnecessary gnome include.
8132 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
8133 GNOME-specific stock buttons
8135 2002-06-09 Hans Breuer <hans@breuer.org>
8137 * app/app_procs.c : convert 'Modified diagrams exits'
8138 dialog to use GtkMessageDialog. That gives us:
8139 - icons without Gnome dependency
8140 - much less code, also cross platform
8141 - improved useability ?
8143 * app/color_area.c : the Color Selection Widget looked
8144 quite wrong (alpha problems). Fix it by merging in required
8145 changes stolen from The Gimp cvs
8146 * app/color_area.h : to get the right appearance the maskes
8147 needed to be taken into account
8148 * app/interface.c : adapt to color_area_create changes.
8149 Also remove some dead code and finally remove cvs autexpansion,
8150 I was bothered enough by irrelevant differences :-)
8152 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
8153 api, i.e stocks and response to make the GnomeDialog usage
8154 obsolete. Also fixed the issue with closing the 'parent'
8155 before closing the dialog
8157 * app/display.[ch] : removed some dead code and conversion
8158 to new GtkDialog api. Also trying to conform to new HIG
8159 standard http://developer.gnome.org/projects/gup/hig/
8161 2002-06-09 Hans Breuer <hans@breuer.org>
8163 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
8166 * lib/dia_image.c : gtk_widget_set_default_visual()
8167 remove. It does nothing with Gtk2.
8169 * lib/libdia.def : added ps_unicoder exports
8171 * lib/message.c : remove #GNOME use GtkMessageDialog.
8172 Yeah, Dia gets dialogs wit icons cross-platform.
8174 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
8175 to gtk_spin_button_get_value()
8177 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
8179 add #undef GTK_DISABLE_DEPRECATED to still use ...
8180 * lib/prop_text.c : ... GtkText
8181 * lib/prop_widgets.c : ... GtkList
8182 * lib/prop_dialogs.c : ... gtk_signal_connect and more
8183 * lib/widgets.c : ... (too much to list here)
8185 * lib/ps-utf8.c : #include <string.h>
8187 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
8190 * Makefile.am: Adapted for gtk2.
8191 Removed dependencies on libunicode, on iconv(), on langinfo().
8193 * acconfig.h: removed (now obsolete)
8195 * lib/charconv.[ch]: removed (superceded by glib)
8196 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
8198 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
8199 libunicode types for their glib counterparts. Fixed the include
8200 paths for libxml2. Removed all traces of libxml1 or non-UTF8
8201 support (there were remains in objects/uml).
8204 2002-06-08 Hans Breuer <hans@breuer.org>
8206 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
8207 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
8208 Also use g_strdup()'s handling of NULL by returning NULL
8209 again at all places I found (remove unnecessary if's)
8211 * todo.gtk2 : new file to keep notes about gtk2 porting,
8212 further issues and thoughts and some status information.
8213 Also sent to dia-list ('Dia goes Gtk2 ...').
8215 [make it compile with GTK+ 2.0]
8217 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
8218 removed definition of S_ISDIR, S_ISREG and getlogin
8220 * */makefile.msc : Use GTK2 and libxml2
8221 BEWARE: makefile.am, configure.in not yet ported !
8223 * app/app_procs.c app/diagram.c : remove
8224 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
8225 but set use gtk_menu_set_accel_path() on menu creation
8227 * app/color_area.c lib/widgets.c :
8228 make use of gtk_color_selection_set_has_palette ()
8230 * app/commands.c : gdk_pixbuf_new_from_file wants an
8231 extra argument. Convert from DIR to GDir usage.
8233 * app/diagram_tree.c(button_press_callback) : need to return
8234 FALSE in the signal handler to let gtk process it further.
8235 (get_object_name) : don't leak 'prop'
8237 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
8238 dia_page_layout_destroy() getting called more than once
8240 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
8243 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
8245 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
8246 IIRC this code will not compile unchanged when USE_XIM is defined ...
8248 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
8250 * app/interface.c : there is no widget->klass anymore in Gtk,
8251 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
8252 parameter. Some tweaking of GtkWrapBox usage to get four tools in
8254 switch off GTK's double buffering on Dia's canvas. Otherwise we would
8255 get triple buffering and flicker.
8256 Replace call to GTK private function _gtk_accel_group_attach()
8257 with public gtk_window_add_accel_group()
8259 * app/layer_dialog.c : adapt to GtkTypeInfo changes
8261 * app/load_save.c lib/plug-ins.c lib/sheet.c
8262 objects/custom/custom.c :
8263 simplified by using g_file_test()
8265 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
8266 to gtk_accel_map_<save|load>. Also added common stock-icons
8269 * app/preferences.c : use gtk_button_set_label() instead
8270 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
8272 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
8273 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
8276 * app/recent_files.c : removed GLIB_CHECK_VERSION
8279 plug-ins/metapost/render_metapost.c
8280 plug-ins/pstricks/render_pstricks.c
8281 plug-ins/svg/render_svg.c :
8282 replace getlogin() with g_get_user_name() which always
8285 * app/render_gdk.c : gdk_region_union_with_rect() modifies
8286 inplace now and returns nothing, also less #hell
8288 * app/render_libart.c : some initial #hell cleaning, SuckFont
8289 still needs to vanish
8291 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
8292 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
8294 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
8295 * app/sheets_dialog_callbacks.c : some #hell and adaptions
8296 needed to GtkWrapBox api changes
8299 * lib/charconv.[hc] : removed from build
8300 [changed appropriate]
8301 * lib/prop_inttypes.c lib/prop_text.c :
8303 * lib/text.c : ported from HEAD but keep original indent
8304 intact. Original was done by Akira TAGOH.
8306 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
8308 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
8310 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
8311 same on all platforms now!
8313 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
8315 * lib/message.c : remove "charconv.h"
8317 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
8320 * lib/sheet.c : convert from DIR to GDir usage
8322 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
8324 * lib/widgets.h : include gtk<label|colorseldialog>.h
8327 * objects/fs/flow.c :
8328 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
8330 * objects/custom/custom.c : convert from DIR to GDir usage
8333 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
8336 2002-05-03 Hans Breuer <hans@breuer.org>
8338 * lib/dia_xml.c : make the well formed utf8 check
8339 actually work for û (non 7-bit ascii encoding)
8340 and fixed the file re-writing if the check fails.
8341 Thanks to Vitaly Lipatov for noticing the misbehaviour.
8343 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
8344 comment on last ressort font. Thanks to Maxim Sobolev.
8346 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
8348 * sheets/network.sheet.in: corrected a typo in plotter invocation.
8350 2002-06-03 Steffen Macke <sdteffen@web.de>
8352 * shapes/network/digitizing_board.png:
8353 * shapes/network/digitizing_board.shape:
8354 * shapes/network/plotter.png:
8355 * shapes/network/plotter.shape:
8356 * shapes/network/Makefile.am
8357 * sheets/network.sheet.in: added new plotter and digitizing
8360 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
8362 * lib/font.c: made a symptomatic fix to a segfault reported by
8363 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
8364 won't prevent dia from terminating, but should give more
8365 user-friendly information about why did it terminate.
8367 Two patches from <robert.young@dsto.defence.gov.au>:
8369 * app/display.c: fix the size of the canvas area which gets
8370 redrawn. There was an off-by one error (Closes #83659)
8372 * app/display.c: make sure we redraw all screen only when we
8373 really have to (some update_areas were mistakenly ignored) (Closes
8376 * NEWS: added a new entry for the future. Put there a reminder to
8377 update the dependencies.
8379 * configure.in: put in notes about what will change shortly.
8380 upped the version to 0.90+cvs (did also in config.h.win32)
8381 upped the minimum version for intltools (now 0.21)
8383 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
8389 bumped up version number to 0.90. Yay!
8391 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
8393 * doc/pl/Makefile.am:
8394 * doc/en/Makefile.am: fixed a "make install" problem when db2html
8395 is not present (Reported by Andrew Ferrier
8396 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
8397 problem which prevented me from ever seeing the problem in doc/en...
8399 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
8401 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
8402 way to read the font path from the XFS configuration files in
8403 order to enable FreeType (fixes #83098).
8405 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
8412 bumped up version number to 0.90.RC3
8414 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
8416 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
8417 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
8418 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
8419 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
8420 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
8421 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
8422 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
8423 Added Polish documentation.
8425 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
8427 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
8428 format for the UML State object. Now there's a hack to reload
8429 older files, and get them converted on the fly.
8430 Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
8434 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
8435 and adapter the proplist predicates. A LOAD_ONLY property is for
8436 when you have legacy to support but can't resist moving your
8437 fields around... (was needed to support the above state.c fix).
8439 If the in-core of your object changes and you need a LOAD_ONLY
8440 property for the old format, you must keep some spare room in your
8441 object's struct to accomodate for the potential old-style
8442 attributes. Then in foo_load(), after having called
8443 object_load_using_properties(), you must inspect the old-style
8444 fields and act accordingly. Don't ever change the on-disk formats...
8446 * objects/UML/object.c:
8447 * objects/UML/small_package.c: added a check against empty
8448 stereotypes still consuming space. Reported by Dolores Alia de
8449 Saravia <loli@unsa.edu.ar>. Thanks!
8451 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
8453 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
8454 using libtool on an AFS partition.
8456 * po/update_potfiles_in.sh: now simply calls the recent intltools
8457 features; they work better than hand-crafted half-ignorant
8458 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
8461 * po/POTFILES.in: added back two files update_potfiles_in.sh
8462 didn't take into account. Now this file is not automatically
8464 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
8465 (the usual suspects, in fact).
8467 * configure.in: improved the isinf() / isfinite() detection on
8468 Solaris (MÃ¥rten Svantesson)
8470 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
8472 * configure.in: one expression was replacing $CFLAGS, removing
8473 whatever was previously in.
8474 Added more checks for isinf() and finite() on Solaris.
8476 * lib/geometry.h: added a macro defintion for isinf() if not
8477 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
8480 * app/commands.c: "cut" did not set the 'modified' bit (paste has
8481 been for a little while). Fixes #82994.
8483 * Makefile.am: added more stuff to distclean-local. This should make
8484 "make distcheck" pass! Thanks to the author of
8485 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
8486 ... I wonder who this Henstridge guy is ... ;-)
8487 Darn. Still doesn't pass. I give up for tonight.
8489 * po/update_potfiles_in.sh: updated to take care of sheet files,
8490 and to filter out the EML plug-in.
8491 * po/POTFILES.in: updated with all .c and all .sheet.in files
8493 * po/dia.pot, po/*.po: again updated all .po files with all
8494 strings (with the updated POTFILES). Now with the up-to-date
8495 POTFILES, just all languages have some fuzzy or untranslated
8496 strings (not that the 100% team was that large beforehand...)
8498 * po-checktrans: removed the comment about .po files not holding
8499 all translatable stuff, since now they do.
8501 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
8507 bumped up version number to 0.90.RC2
8509 2002-05-20 Hans Breuer <hans@breuer.org>
8511 * app/load_save.c : starting to increase
8512 Dias tolerance on incomplete/broken files. The
8513 corresponding bug is #56233. But the patch there does
8514 neither apply anymore nor does it really fix the problem
8515 but only delays it, e.g. even if it would be allowed
8516 to read a file without any layers, the later code can't
8518 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
8519 handle passing in NULL for the node gracefully.
8521 * shapes/network/printer.shape : added two more connection
8522 points - one at each side - to fix bug #60359
8524 * app/commands.c (edit_copy_callback) :
8525 add ddisplay_do_update_menu_sensitivity() to make
8526 sequence select-copy-paste work.
8528 2002-05-20 Hans Breuer <hans@breuer.org>
8530 * app/create_object.c (create_object_button_press) :
8531 added a call to ddisplay_do_update_menu_sensitivity()
8532 to make Ctrl^D etc work after object creation.
8535 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
8537 * objects/ER/entity.c:
8538 * objects/ER/attribute.c:
8539 * objects/ER/relationship.c: Patch to allow text size change from
8540 Celso Tetsuo Nagase Suzuki.
8542 2002-05-18 Steffen Macke <sdteffen@web.de>
8544 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
8546 * doc/en/graphics/greendots.png:
8547 * doc/en/home_network.png:
8548 * doc/en/line_props.png:
8550 * dia_gnome_icon.png:
8551 * dia_gnome_menu_icon.png:
8553 * shapes/network/telephone.png:
8554 * shapes/Logic/and.png:
8555 * shapes/Logic/buffer.png:
8556 * shapes/Logic/connector.png:
8557 * shapes/Logic/inverter.png:
8558 * shapes/Logic/nand.png:
8559 * shapes/Logic/nor.png:
8560 * shapes/Logic/not.png:
8561 * shapes/Logic/or.png:
8562 * shapes/logic/xor.png:
8563 * samples/ER-demo.dia:
8565 * samples/UML-demo.dia:
8566 * samples/chronograms.dia:
8567 * samples/grafcet.dia: re-added as binary files
8569 2002-05-17 Hans Breuer <hans@breuer.org>
8571 * lib/libdia.def : reflect removing of render_store.[ch]
8573 * */makefile.mingw : remove VERSION definition it's
8574 done in config.h.win32. Dia still doesn't work if
8575 build with mingw ...
8577 * RELEASE-PROCESS : removed */makefile.mingw
8579 * app/sheets_dialog_callbacks.c : if we use those
8580 ugly charconv_gtk_* functions lib/charconv.h needs to
8582 * lib/charconv.h : ... and needs to contain the
8583 necesseray prototypes _and_ #defines
8585 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
8586 is deprecated and does nothing but spit a warning. This broke
8587 the shape format writing. Fixed.
8588 Also with libxml2 pretty formatted xml isn't the default
8589 anymore, but needs to be enabled explicit: It is done now
8590 for shape files, which almost always needed to be edited by
8593 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
8594 from stderr - which is invalid on Dia/win32 - to g_print -
8595 which opens up a console window if necessary. This way
8596 a xml-deprecation-error shouldn't stay unnoticed next time
8598 2002-05-17 Steffen Macke <sdteffen@web.de>
8600 * shapes/Misc/folder.png:
8601 * shapes/Misc/file.png: re-added as binary files
8603 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
8605 * lib/font.c: Fixed segfault for fonts without family_name.
8607 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
8609 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
8611 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
8612 Lars' request, minor cosmetic stuff (mostly _() of human-readable
8613 XML comments in .sheet files; one translator booby-trap disarmed).
8615 * lib/charconv.c: moved #hell inside the body of the new
8616 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
8619 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
8621 * plug-ins/wpg/Makefile.am (INCLUDES):
8622 * plug-ins/shape/Makefile.am (INCLUDES):
8623 * plug-ins/svg/Makefile.am (INCLUDES):
8624 * plug-ins/pstricks/Makefile.am (INCLUDES):
8625 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
8626 and DEBUG_CFLAGS in some missing places.
8628 * MAINTAINERS: New file containing list of known package
8632 * lib/charconv.c: Charconv versions of some common gtk calls.
8634 * app/sheets_dialog_callbacks.c
8635 (on_sheets_new_dialog_button_ok_clicked),
8636 (on_sheets_dialog_button_edit_clicked),
8637 (on_sheets_dialog_button_remove_clicked),
8638 (on_sheets_edit_dialog_button_ok_clicked):
8639 * app/sheets.c (sheets_optionmenu_create),
8640 (sheets_optionmenu_create): Added utf8 translations.
8642 * app/sheets_dialog.c:
8644 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
8646 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
8648 * po/POTFILES.in: added app/sheets_dialog.c
8650 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
8652 * lib/charconv.c: (charconv_local8_to_utf8),
8653 (charconv_utf8_to_local8): tweaked the warnings to get more
8655 * lib/font.c: (font_get_suckfont): handled a potential case of
8656 uninitialised data being used (just paranoid)
8658 * objects/GRAFCET/boolequation.c: (opstring),
8659 (opblock_get_boundingbox), (opblock_draw),
8660 (boolequation_calc_boundingbox): some extra hoops needed now dia
8661 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
8662 symbols can't yet be used with their proper Unicode cells, since
8663 gtk will demand them in the Symbol font, expressed in the local
8666 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
8667 the fix just above).
8669 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
8671 * app/diagram_tree.c (get_object_name): Check that name property
8672 doesn't have null string.
8674 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
8676 * autogen.sh (DIE): Added conditional --force to gettextize.
8678 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
8681 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
8683 * RELEASE-PROCESS: added James' notes on how to properly make the
8686 * configure.in: removed macro nesting related to libpng.h, which
8687 was causing some problems on some systems (like mine, which made
8690 Made --enable-unicode, previously an option, the mandatory case.
8692 * app/Makefile.am: updated EXTRA_DIST
8695 * app/makefile.mingw:
8697 * doc/en/dia-manual.sgml:
8698 * plug-ins/makefile.mingw:
8699 * configure.in: bumped up the version number to 0.90.RC1
8701 * lib/render_objects.[ch]:
8702 * po/POTFILES.in: removed render_objects from the build.
8704 * plug-ins/Makefile.am:
8705 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
8706 so we keep its source in the tarball.
8708 * objects/network/*.c, Makefile.am:
8709 * objects/sybase/*.c, Makefile.am:
8710 * po/POTFILES.in: cleaned up the non-existent files from the po
8713 * plug-ins/Makefile.am: re-enabled metapost plug-in.
8715 2002-05-13 Steffen Macke <sdteffen@web.de>
8718 * app/command.c: added M. C. Nelson to the Authors
8719 * sheets/Circuit/Makefile.am: added firewall shape to build
8720 * sheets/network/Makefile.am: added telephone and microphone
8723 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
8725 * RELEASE-PROCESS: Added list of files that contain the release
8726 number or should otherwise be changed at each release.
8728 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
8730 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
8731 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
8733 2002-05-12 Hans Breuer <hans@breuer.org>
8735 * config.h.win32 : changed VERSION to 0.90.RC1
8737 * app/makefile.msc lib/makefile.msc : use renamed
8738 gdk-pixbuf version (same content but renamed because
8739 all the other gtk+ dlls are renamed) to avoid trouble
8740 mixing gtk versions (of which one would not
8743 * app/app_procs.c : removed recently unneeded
8744 inclusion of "sheets.h"
8746 * app/render_gdk.c : removed my own debug spew
8747 which should never made it to cvs
8749 * lib/render_object.[hc] : added
8750 #error "File not used anymore."
8752 * lib/libdia.def : updated externals
8754 * app/interface.c : dropped filenames need to be
8755 converted from uri with Gtk+2.0
8757 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
8759 * RELEASE-PROCESS (new): a draft document about how to release. To
8760 be discussed. (already with some input from Hans Breuer)
8762 2002-05-12 Steffen Macke <sdteffen@web.de>
8764 * sheets/Makefile.am: re-added Misc sheet to make process
8766 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
8768 * objects/FS/function.c: Added comments to humungous list of menu
8769 items, to aid translators.
8771 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8773 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
8775 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
8777 * app/interface.c (create_toolbox): Disallow shrinking beyond
8778 requested size. Fixes bug #59439, and confirms to GTK guidelines
8779 (see gtk_window_set_policy).
8780 (create_sheets): Removed now unnecessary set_usize call.
8782 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8784 * lib/beziershape.c (remove_handles): Fixing removal of last
8785 segment. Undo of removal still hokey.
8787 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
8789 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
8791 * lib/beziershape.c (beziershape_init): Removed early call to
8792 beziershape_update_data where points aren't set yet.
8793 (beziershape_add_segment): Use segment 0 instead of overflowing
8794 points array with segment+1.
8795 (beziershape_remove_segment): Proper offset for fixing
8797 (remove_handles): Proper offset.
8799 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
8801 * objects/GRAFCET/action.c (action_update_data): Init x value of
8802 click point for call to connpointlist_adjust_count.
8804 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
8806 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
8807 setting to where values are inited.
8809 * lib/polyshape.c (polyshape_init): Removed call to
8810 polyshape_update_data that tried to use uninitialized data.
8812 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8814 * app/sheets_dialog.c: Mass removal of //-style comments. The
8815 Irix compiler doesn't like them:( I do...
8817 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
8819 * app/render_libart.c (draw_string): Bail out when no GDK font is
8821 (set_font): Give error when font not found.
8822 (set_fillstyle): Intlized error msg.
8824 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
8825 modified when applied (and ok only does apply if apply is set
8826 sensitive). Fixes bug #75623.
8828 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
8830 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
8832 2002-05-05 Steffen Macke <sdteffen@web.de>
8834 * app/Makefile.am: added $(UNICODE_CFLAGS)
8836 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
8838 * app/commands.c (help_manual_callback): Check return value of
8841 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
8843 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
8846 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
8848 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
8850 * objects/UML/uml.c (uml_operation_read): Fix of UML default
8853 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8855 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
8856 Added button to toggle diagram compression.
8858 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8860 * lib/font.c: Support for loading extra kerning files, plus got
8861 rid of rounding errors. Bounding box mostly perfect for freetype
8863 (font_string_width): Fudge factor to get around nonlinearity of
8866 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
8868 * lib/font.c (font_string_width): YA font calculation scheme, with
8871 * objects/UML/class.c (umlclass_calculate_data): Uses the same
8872 font for drawing and calculating now.
8874 * configure.in: Added utime.h check.
8876 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
8877 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
8879 2002-04-26 Hans Breuer <hans@breuer.org>
8881 [ Instead of fixing about 70 occurances in 20 files
8882 where GTK_TALKS_UTF8_WE_DONT needed to be handled
8883 Dia on win32 from now on uses glib-2.0 and not
8884 only talks utf-8 with gtk-1.3 but also internally.
8885 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
8888 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
8889 #undef GTK_TALKS_UTF8_WE_DONT
8891 * */makefile.msc : changes to use glib-2.0 (still
8892 using gtk+1.3(win32-production)
8894 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
8895 adapt kevent->string handling, add <string.h>
8896 * app/render_gdk.c (get_text_width) : the length given
8897 is in chars, gdk_text_width() needs bytes
8899 * app/render_libart.c :
8900 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
8901 (could simplify the same way as done in render_gdk.c)
8903 * app/diagram_tree.c app/paginate_gdiprint.cpp
8905 * lib/prop_basic.c lib/prop_geomtypes.c
8906 lib/propdialgs.c lib/propobject.c :
8907 added <string.h> which is now removed from charconv.h
8909 * lib/charconv.h : optional use infrastructure from
8910 glib-2.0 -> only five direct function mapping left
8912 * lib/charconv.c : avoid to build this with glib-2.0
8914 * lib/font.c : no string conversion needed anymore
8915 when Dia and Gtk talk utf-8, also code adaptions
8916 for GLIB_CHECK_VERSION(2,0,0)
8918 * lib/libdia.def : removed charconv functions
8920 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
8921 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
8923 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
8924 removed GTK_TALKS_UTF8_WE_DONT
8926 * lib/text.c : finally(?) fixed cursor <place|move>ment
8927 for Umlauts. Also fixed char insertion, still wondering
8928 how this could ever work. Does realloc on Linux
8929 initialize the memory with zeros ?
8931 * objects/chronogram/chronoline_event.c
8932 objects/grafcet/boolequation.c :
8933 there is no uni_get_utf8 when building for glib-2.0.
8934 Replace with g_utf8_get_char() and g_utf8_next_char().
8936 * objects/uml/stereotype.c (bracketted_to_string) :
8937 simplify while adding code for glib-2.0 build
8939 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
8941 * app/diagram.h: Autosave field
8942 * app/diagram.c (diagram_set_modified): Sets autosave field.
8944 * objects/UML/usecase.c (usecase_update_data):
8945 * objects/flowchart/ellipse.c (ellipse_update_data):
8946 * objects/flowchart/parallelogram.c (pgram_update_data):
8947 * objects/flowchart/diamond.c (diamond_update_data):
8948 * objects/custom/custom_object.c (custom_update_data):
8949 * objects/UML/state.c (state_update_data):
8950 * objects/UML/small_package.c (smallpackage_update_data):
8951 * objects/UML/object.c (objet_update_data):
8952 * objects/UML/note.c (note_update_data):
8953 * objects/UML/node.c (node_update_data):
8954 * objects/UML/component.c (component_update_data):
8955 * objects/UML/classicon.c (classicon_update_data):
8956 * objects/UML/actor.c (actor_update_data):
8957 * objects/SADT/box.c (sadtbox_update_data):
8958 * objects/FS/function.c (function_update_data):
8959 All now update text boundaries from update_data.
8961 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
8964 2002-04-26 Hans Breuer <hans@breuer.org>
8966 * config.h.win32 : added VERSION definition here
8967 (and removed from makefile.msc's)
8969 * app/makefile.msc : added new files
8971 * app/app_procs.c (app_init): remove sheets_dialog_create()
8972 from start-up and ...
8974 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
8975 sheet_dialog here when it is really needed.
8976 #include "../lib/message.h", make sheets_dialog_create()
8977 return it's success or failing on (!custom_type_symbol).
8978 Although editing shapes is nice IMHO it isn't crucial enough
8979 to abort() Dia if it isn't possible.
8981 * app/sheet.h : adapt create_sheet_dialog() prototype
8983 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
8985 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
8986 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
8987 name space corrections for utime() and utim_buf #ifdef
8990 * lib/libdia.def : export new sheet functions
8992 * lib/makefile.msc : added new files
8994 * lib/render.c : don't put draw_bezier_with_arrows() in
8995 the DrawLineWithArrowsFunc slot
8997 * objects/custom/custom_object.c : #include <gmodule.h>
8998 and export 'custom_type' via G_MODULE_EXPORT
9000 * objects/uml/class_dialog.c : removed 'incompatible
9001 types' warnings. Some refactoring while making it fit
9002 on screen with 800x600 again.
9004 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
9006 * plug-ins/python/pydia-handle.h : extra parameter to
9007 PyDiaHandle_New to store the owner of the handle
9008 * plug-ins/python/pydia-handle.c : store handle owner
9009 on construction and use it in new method .connect()
9010 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
9011 adapt to changed prototype
9013 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
9015 * lib/text.c (text_calc_boundingbox): Will now return early if box
9018 * objects/flowchart/box.c (box_update_data): Now updates text
9019 width info from update_data.
9021 2002-04-23 Steffen Macke <sdteffen@web.de>
9023 * plug-ins/xfig/xfig-import.c: fixed text import
9025 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
9027 * app/export_png.c: Moved dialog functions to their own file.
9028 * app/dialogs.[ch]: New files with standard functions for creating
9029 small, transient dialogs (e.g. export options).
9030 * app/Makefile.am: Added dialogs.[ch]
9032 2002-04-19 Steffen Macke <sdteffen@web.de>
9034 * shapes/Misc/folder.*:
9035 * shapes/Misc/file.*:
9036 * shapes/Misc/Makefile.am:
9037 * shapes/Makefile.am:
9038 * sheets/Misc.sheet.in:
9039 * sheets/Makefile.am:
9040 * configure.in: added new Misc sheet containing filesystem shapes
9042 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
9044 * app/lineprops_area.c: Arrow selector in toolbox changed to use
9045 standard arrowdraw code. Line is thinner to make some arrowheads
9048 2002-04-18 Steffen Macke <sdteffen@web.de>
9050 * sheets/network.sheet.in:
9051 * shapes/network/telephone.shape:
9052 * shapes/network/Makefile.am: added telephone shape
9054 2002-04-16 Steffen Macke <sdteffen@web.de>
9056 * sheets/EML.sheet.in: commented out unavailable shapes
9058 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
9060 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
9061 variable assignment.
9063 2002-04-15 Steffen Macke <sdteffen@web.de>
9065 * plug-ins/dxf/dxf-import.c: text import works again
9066 * shapes/Pneumatic/Makefile.am: added compush shape
9067 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
9070 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
9072 * All these modifications are for the 'Sheets and Objects' dialog
9075 * app/pixmaps/line_break.xpm: new icon representing a line break.
9077 * app/pixmaps/n_a.xpm: new empty icon representing not available.
9079 * app/Makefile.am: added sheets_*.[ch] files to compile list.
9081 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
9083 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
9085 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
9087 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
9089 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
9091 * app/sheets_dialog_callbacks.h: [new file] support for " " "
9093 * app/interface.c: added 'interface_current_sheet_name' global to
9094 fill_sheet_wbox(); made fill_sheet_menu() non-static
9096 * app/interface.h: added extern declaration for aboves.
9098 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
9100 * app/sheets.h: [new file] declarations for backing store structures
9102 * lib/sheet.c: modification of new_sheet() parameters; introduction
9103 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
9104 changes to load_register_sheet().
9106 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
9107 added 'has_icon_on_sheet' flag to SheetObject structure; added
9108 'filename', 'scope', 'shadowing' fields to Sheet structure.
9110 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
9113 * lib/plug-isn.h: see above.
9115 * lib/object.c: added 'sheet.h' to include list; added several
9117 to detect objects which are not found on any sheet (for future use)
9118 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
9119 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
9121 * lib/object.h: added public declarations for above functions where
9124 * objects/custom/custom.c: made custom_object_load() non-static so we
9125 can load and interpret .shape files from the Sheets & Objects dialog
9127 * objects/custom/custom_object.c: made 'custom_type' non-static so
9128 we can differentiate between SVG shapes and other types.a
9130 2002-04-07 Hans Breuer <hans@breuer.org>
9132 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
9133 from 2002-01-22 to not destroy diagram->data->selected.
9134 Avoids to crash on Objects/Align/Vertical/Top
9136 * app/render_eps.c (draw_string) : un-const buffer
9137 It isn't at all const (g_malloc(), assignment, g_free()).
9138 Doesn't gcc catch such ?
9140 * lib/arrows.h : prototype calculate_arrow_point()
9142 * lib/font.c (font_get_suckfont) : no need to
9143 special case gdk_draw_string() with GTK_TALKS_UTF8,
9144 cause all the parameter differences are handled above
9146 * lib/libdia.def : updated externals
9148 * lib/makefile.msc : removed string_prerenderer, added render
9150 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
9151 is expected. [Sometimes it's good to read compiler warnings.]
9153 * objects/standard/image.c : simplified by use of g_strconcat()
9155 * plug-ins/python/makefile.msc : updated for Python 2.2
9157 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
9159 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
9160 directionality problem for zero-length line segments.
9162 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
9164 * app/diagram.c (diagram_ungroup_selected)
9165 (diagram_update_menu_sensitivity): Now allows ungrouping of
9166 several groups at once.
9168 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
9170 * lib/render.c, all renderers: Binary incompatibility, change to
9171 expandable renderops structure.
9173 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
9175 * objects/standard/Makefile.am:
9176 * objects/network/Makefile.am:
9177 * objects/UML/Makefile.am:
9178 * objects/ER/Makefile.am:
9179 * objects/FS/Makefile.am:
9180 * objects/flowchart/Makefile.am:
9181 * objects/custom/Makefile.am:
9182 * objects/GRAFCET/Makefile.am:
9183 * objects/chronogram/Makefile.am:
9184 * objects/SADT/Makefile.am:
9185 * plug-ins/cgm/Makefile.am:
9186 * plug-ins/pstricks/Makefile.am:
9187 * plug-ins/hpgl/Makefile.am:
9188 * plug-ins/wpg/Makefile.am:
9189 * plug-ins/svg/Makefile.am:
9190 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
9192 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
9194 * app/render_eps.c: Support for dumping TrueType fonts (taken from
9197 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
9199 * lib/render.c: New abstract super class for renderers.
9201 2002-03-07 Akira TAGOH <tagoh@redhat.com>
9203 * objects/ER/attribute.c (attribute_save): save a font property.
9204 (attribute_load): load a font property, and if can't load it, it's
9207 * objects/ER/entity.c (entity_save): save a font property.
9208 (entity_load): load a font property, and if can't load it, it's
9211 * objects/ER/relationship.c (relationship_save): save a font property.
9212 (relationship_load): load a font property, and if can't load it, it's
9215 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
9217 (umlclass_save): save the font and the font size properties.
9218 (umlclass_load): load the font and the font size properties.
9220 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
9222 * lib/string_prerenderer.[ch] (REMOVED):
9224 * lib/diagramdata.c:
9226 * app/render_eps.c: got rid of the string-specific string
9227 prerenderer, transitioned its functionality towards Lars'
9230 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
9232 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
9233 may need to rerun aclocal.
9235 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
9237 * lib/font.c: First attempt at Unicodeness for Freetype.
9239 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9241 * lib/font.c (font_string_width): Fixed font_string_width for
9242 freetype. BB is now almost right.
9244 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
9247 * app/paginate_psprint.c (paginate_psprint):
9249 * app/render_eps.c: Support for dumping postscript fonts into
9250 postscript files with freetype. Fairly primitive, but works.
9251 Unicode version may have problems.
9253 2002-02-28 Akira TAGOH <tagoh@redhat.com>
9255 * objects/UML/class_dialog.c (class_read_from_dialog)
9256 (class_fill_in_dialog), (class_create_page): add the font selector and
9257 the font size selector.
9259 * objects/UML/class.c (umlclass_draw): uses each font_height.
9260 (umlclass_calculate_data): ditto.
9261 (fill_in_fontdata): add initial value of new font_height.
9262 (umlclass_copy): add new font_height.
9264 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
9266 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
9268 * lib/font.c: calculate font metrics properly and stop guessing at
9271 2002-02-28 Akira TAGOH <tagoh@redhat.com>
9273 * configure.in: changed gtk_advancement value to dia_talks_utf8.
9274 right now Dia is working with UTF-8 internally. it means Dia probably
9275 support most languages also including the languages which heretofore
9276 didn't work correctly.
9278 2002-02-26 Akira TAGOH <tagoh@redhat.com>
9280 * objects/FS/function.c: add related text properties.
9281 (function_get_props), (function_set_props): add handling attribute.
9283 * objects/FS/flow.c: add related text properties.
9284 (flow_get_props), (flow_set_props): add handling attribute.
9286 * objects/FS/flow-ortho.c: add related text properties.
9287 (orthflow_set_props), (orthflow_get_props): add handling attribute.
9289 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
9291 * objects/ER/entity.c: ditto.
9293 * objects/ER/attribute.c: ditto.
9295 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
9297 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
9299 * autogen.sh: add a check for missing intltoolize.
9301 2002-02-20 Akira TAGOH <tagoh@redhat.com>
9303 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
9304 charcode, it was registered the duplicate item to HashTable. fix.
9306 * app/render_gnomeprint.c (get_width_string): add new function.
9307 (draw_string): fix non-multibyte specific code.
9309 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
9311 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
9313 * lib/font.c: do not try to search paths that do not begin with
9314 '/', like X Font Server addresses.
9316 * objects/UML/message.c (message_draw): free mname when not
9317 message->text but CREATE or DESTROY.
9319 * objects/UML/uml.h:
9320 * objects/UML/uml.c:
9321 * objects/UML/class_dialog.c: added code to handle a stereotype
9322 attribute for operations.
9324 2002-02-19 Akira TAGOH <tagoh@redhat.com>
9326 * lib/Makefile.am: add LIBART_CFLAGS.
9328 2002-02-15 Hans Breuer <hans@breuer.org>
9330 * lib/font.c (font_get_suck_font): the black and white pixel values
9331 need to be taken from a 1 bit colormap rather than the default colormap.
9332 (fixed again, last time was 2000-05-26)
9334 Also handle the case where GTK_TALKS_UTF8 and expects all strings
9335 passed in to be in this encoding.
9337 * lib/libdia.def : export suck_font_free()
9339 * lib/text.c (text_draw) : avoid circular dependency to ../app
9340 at least for the !USE_XIM case, where it is unnecessary.
9342 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
9344 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
9346 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
9347 * sheets/Circuit.sheet.in: added new shape microphone
9348 * shapes/Circuit/speaker_de.shape: Added a connection point.
9350 2002-02-13 Akira TAGOH <tagoh@redhat.com>
9352 * app/render_libart.c (draw_string): fixed build issue for Win32.
9354 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
9357 * configure.in: fixed testing gtk_advancement.
9359 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
9361 2002-02-12 Akira TAGOH <tagoh@redhat.com>
9363 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
9366 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
9368 * app/group.c (group_copy): Made new object properly initialized
9371 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
9373 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
9375 2002-02-10 Akira TAGOH <tagoh@redhat.com>
9377 * lib/text.c (text_draw): fixed XIM transaction.
9379 * app/interface.c (create_display_shell): add signal for
9382 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
9384 (set_input_dialog): remove.
9385 (ddisplay_canvas_events): remove XIM transaction. it can't transact
9386 correctly on this function.
9388 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9391 * app/export_png.c: Added checks for interactivity (maybe this
9392 should be a hook after all?).
9394 * app/filedlg.c (file_export_callback): Made export dialog add
9395 suffix when reopened.
9397 * app/export_png.c: Added dialog asking for export size.
9399 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9401 * lib/widgets.c: Fixed font reselection problem and first font
9404 * objects/UML/actor.c (actor_update_data): Changed to have
9405 connection points below text.
9407 2002-02-08 Akira TAGOH <tagoh@redhat.com>
9409 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
9412 2002-02-07 Akira TAGOH <tagoh@redhat.com>
9414 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
9415 strings which is given.
9416 (suck_font): remove. it's any longer needed.
9418 * app/render_libart.c (set_font): don't get suckfont.
9419 (draw_string): get suckfont only which is needed for now.
9421 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9423 * lib/text.c: Fixes for misunderstood width functions.
9425 2002-02-05 Hans Breuer <hans@breuer.org>
9427 * lib/dia_xml.c : use g_strconcat() instead of
9428 malloc, strcpy, strcat dance
9429 * app/properties.c : same here and plug memory leak
9430 (gtk functions don't eat strings)
9432 * objects/UML/message.c : there is no g_sprintf()
9433 use g_strdup_printf() instead ...
9435 2002-02-05 Akira TAGOH <tagoh@redhat.com>
9437 * lib/message.c (gtk_message_internal): doesn't need to convert to
9440 * app/render_libart.c (draw_string): fixed transaction for UTF-8
9442 (get_text_width): ditto.
9444 * app/Makefile.am (EXTRA_DIST):
9445 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
9447 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
9448 This function needs ifdef HAVE_FREETYPE because don't use it for
9451 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
9453 * NEWS: updated with the new dependencies.
9455 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9457 * objects/UML/class.h:
9458 * objects/UML/class.c:
9459 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
9460 property using a GtkMenu. Options are Undefined, In, Out, In & Out
9462 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
9464 * app/render_libart.c: Slow but working libart freetype renderer,
9467 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9469 * app/render_gdk.c (draw_string): Fixed gc_function bug.
9471 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
9473 * lib/font.c (freetype_render_string):
9476 * app/render_gdk.h: Changed freetype_render_string to use
9477 callback. Rendering is broken.
9479 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
9481 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9483 * objects/UML/uml.h:
9484 * objects/UML/uml.c: added UMLInheritanceType and isQuery
9485 (constant) UML Operation attributes. UMLInheritanceType is either
9486 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
9488 * objects/UML/class.h:
9489 * objects/UML/class.c:
9490 * objetcs/UML/class_dialog.c: added code to handle new
9491 UMLOperation attributes via a GtkMenu and a checkbox.
9493 2002-02-03 Akira TAGOH <tagoh@redhat.com>
9495 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
9496 several client doesn't work with previous codes.
9498 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
9500 * lib/font.c (freetype_render_string): Kerning. Very few fonts
9503 2002-02-02 Akira TAGOH <tagoh@redhat.com>
9505 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
9506 when doing the operation like invert the objects after active view is
9507 destroyed. when changes focus, it needs to set active_display.
9509 * app/layer_dialog.c (dia_layer_update_from_layer):
9510 (layer_dialog_edit_layer): need to convert to locale encoding
9511 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
9512 (edit_layer_ok_callback):
9513 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
9515 * lib/diagramdata.c (new_diagram_data): ditto.
9517 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
9519 * lib/diagramdata.c (new_layer): use utfchar instead of char for
9522 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
9523 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
9524 it's needed for now. also this function needs prototype declaration.
9526 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
9528 * lib/widgets.c: Style now functional on font selector. Some leak
9529 possible, but doesn't show up under stress test.
9531 2002-01-31 Akira TAGOH <tagoh@redhat.com>
9533 * app/plugin-manager.c (clist_select_row): name and description needs to
9534 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
9535 (get_plugin_manager): ditto.
9537 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
9539 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
9542 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
9543 when prop->string_data is NULL.
9545 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9548 * lib/widgets.h: New font selector separating font and style.
9549 Style not functional yet.
9551 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
9554 * app/render_gdk.c (draw_string): More freetype support, now
9555 renders text. Still broken is font selection and exporting.
9557 2002-01-30 Akira TAGOH <tagoh@redhat.com>
9559 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
9562 * objects/chronogram/chronoline.c (chronoline_create): ditto.
9564 * objects/UML/usecase.c (usecase_create): ditto.
9566 * objects/UML/state.c (state_create): ditto.
9568 * objects/UML/object.c (objet_create): ditto.
9570 * objects/UML/node.c (node_create): ditto.
9572 * objects/UML/message.c (message_create): ditto.
9574 * objects/UML/component.c (component_create): ditto.
9576 * objects/UML/classicon.c (classicon_create): ditto.
9578 * objects/UML/actor.c (actor_create): ditto.
9580 * objects/SADT/box.c (sadtbox_create): ditto.
9582 * objects/SADT/annotation.c (annotation_create): ditto.
9584 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
9586 * objects/GRAFCET/step.c (STEP_FONT):
9587 * (step_create): ditto.
9589 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
9591 * objects/GRAFCET/action.c (ACTION_FONT):
9592 (action_create): ditto.
9594 * objects/FS/function.c (function_create): ditto.
9596 * objects/FS/flow.c (flow_create):
9598 (flow_apply_defaults): ditto.
9600 * objects/FS/flow-poly.c (flow_create):
9602 (flow_apply_defaults): ditto.
9604 * objects/FS/flow-ortho.c (orthflow_create):
9606 (orthflow_apply_defaults): ditto.
9608 * objects/ER/relationship.c: use utfchar instead of char for structure.
9609 (relationship_create): name needs to convert to UTF-8.
9611 * objects/ER/attribute.c: use utfchar instead of char for structure.
9612 (attribute_create): name needs to convert to UTF-8.
9614 * objects/ER/entity.c: use utfchar instead of char for structure.
9615 (entity_create): name needs to convert to UTF-8.
9617 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
9618 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
9619 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
9620 items. if GTK_TALKS_UTF8 isn't defined.
9622 2002-01-29 Akira TAGOH <tagoh@redhat.com>
9624 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
9625 it was my careless mistake...
9627 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
9628 a font name, because there are strings which isn't shown by "Courier".
9629 We need to consider a way to feel free to choose a font at runtime.
9631 * lib/render_object.c (render_object_load): ditto.
9633 * lib/text.c (data_text): ditto.
9635 * objects/EML/instantiation.c (instantiation_create): ditto.
9637 * objects/EML/interaction-ortho.c (interaction_ortho_create):
9638 (interaction_ortho_load): ditto.
9640 * objects/EML/interaction.c (interaction_create):
9641 (interaction_load): ditto.
9643 * objects/EML/process.c (fill_in_fontdata): ditto.
9645 * objects/ER/attribute.c (attribute_create):
9646 (attribute_load): ditto.
9648 * objects/ER/entity.c (entity_create):
9649 (entity_load): ditto.
9651 * objects/ER/relationship.c (relationship_create):
9652 (relationship_load): ditto.
9654 * objects/UML/association.c (association_create):
9655 (association_load): ditto.
9657 * objects/UML/class.c (fill_in_fontdata): ditto.
9659 * objects/UML/constraint.c (constraint_create): ditto.
9661 * objects/UML/dependency.c (dependency_create): ditto.
9663 * objects/UML/generalization.c (generalization_create): ditto.
9665 * objects/UML/implements.c (implements_create): ditto.
9667 * objects/UML/large_package.c (largepackage_create): ditto.
9669 * objects/UML/note.c (note_create): ditto.
9671 * objects/UML/realizes.c (realizes_create): ditto.
9673 * objects/UML/small_package.c (smallpackage_create): ditto.
9675 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
9677 * objects/custom/custom_object.c (custom_create): ditto.
9679 * objects/network/antenna.c (render_to_store): ditto.
9681 * objects/network/computer.c (render_to_store): ditto.
9683 * objects/network/disc.c (render_to_store): ditto.
9685 * objects/network/flash.c (render_to_store): ditto.
9687 * objects/network/hub.c (render_to_store): ditto.
9689 * objects/network/modem.c (render_to_store): ditto.
9691 * objects/network/modularswitch.c (render_to_store): ditto.
9693 * objects/network/monitor.c (render_to_store): ditto.
9695 * objects/network/printer.c (render_to_store): ditto.
9697 * objects/network/rj45plug.c (render_to_store): ditto.
9699 * objects/network/scead-plug.c (render_to_store): ditto.
9701 * objects/standard/textobj.c (textobj_load): ditto.
9703 * objects/sybase/client.c (render_to_store): ditto.
9705 * objects/sybase/dataserver.c (render_to_store): ditto.
9707 * objects/sybase/ltm.c (render_to_store): ditto.
9709 * objects/sybase/repserver.c (render_to_store): ditto.
9711 * objects/sybase/rsm.c (render_to_store): ditto.
9713 * objects/sybase/stableq.c (render_to_store): ditto.
9715 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
9717 * objects/UML/uml.h (UML_STEREOTYPE_START):
9718 (UML_STEREOTYPE_END): changes default strings.
9720 2002-01-28 Akira TAGOH <tagoh@redhat.com>
9722 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
9723 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
9724 which is given to arguments isn't UTF-8. so don't need to convert it.
9725 if GTK+ handle UTF-8, also don't need to convert it.
9727 (bracketted_to_string): fixed transaction for UTF-8 support.
9728 also start/end bracket is not necessarily 1 character. so that when use
9729 strend(), it doesn't work correctly.
9730 (string_to_stereotype): use utfchar instead of char.
9731 (remove_stereotype_from_string): ditto.
9732 (stereotype_to_string): ditto.
9734 * objects/UML/stereotype.h: ditto.
9736 * objects/UML/message.c: use utfchar instead of char for structure.
9737 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
9739 * objects/UML/small_package.c: use utfchar instead of char for structure.
9741 * objects/UML/realizes.c: ditto.
9743 * objects/UML/object.c: ditto.
9745 * objects/UML/large_package.c: ditto.
9747 * objects/UML/implements.c: ditto.
9749 * objects/UML/generalization.c: ditto.
9751 * objects/UML/dependency.c: ditto.
9753 * objects/UML/constraint.c: ditto.
9755 * objects/UML/component.c: ditto.
9757 * objects/UML/class_dialog.c (attributes_get_current_values):
9758 (attributes_list_new_callback, attributes_fill_in_dialog):
9759 (parameters_set_values, parameters_get_values):
9760 (parameters_get_current_values, parameters_list_new_callback):
9761 (operations_set_values, operations_get_values):
9762 (operations_get_current_values, operations_list_new_callback):
9763 (operations_fill_in_dialog, templates_set_values):
9764 (templates_get_values, templates_get_current_values):
9765 (templates_list_new_callback, templates_fill_in_dialog):
9766 fixed transaction for UTF-8 support.
9768 2002-01-27 Akira TAGOH <tagoh@redhat.com>
9770 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
9772 * objects/UML/class_dialog.c (class_read_from_dialog):
9773 (class_fill_in_dialog):
9774 (attributes_get_values): ditto.
9776 * objects/UML/actor.c (actor_create): ditto.
9778 * objects/UML/class.c (umlclass_calculate_data): ditto.
9780 * objects/UML/association.c (association_apply_properties):
9781 (fill_in_dialog): ditto.
9783 * objects/UML/uml.c (uml_get_attribute_string):
9784 (uml_get_operation_string):
9785 (uml_get_parameter_string):
9786 (uml_get_formalparameter_string): use utfchar instead of char.
9788 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
9791 * objects/UML/class.h: use utfchar instead of char.
9793 * lib/dia_xml.c (data_add_string): ditto.
9795 * lib/text.c (text_insert_char): fixed characters# calculation
9796 when includes multibytes character in strings.
9798 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
9800 Patch from Richard Rowell <rwrowell@bellsouth.net>:
9802 * app/lineprops_area.c:
9805 * lib/widgets.c: added crow foot arrow and cross arrow
9807 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
9809 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
9811 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
9813 * po/update.pl (REMOVED):
9814 * po/update.sh (REMOVED):
9815 * xml-i18n-merge.in.kg (REMOVED):
9816 * xml-i18n-update.in.kg (REMOVED):
9817 * sheets/Makefile.am:
9820 * configure.in: converted from xml-i18n-tools to intltools
9822 This looks like it fixes the build bugs of the snapshot tarballs,
9823 and it supersedes #69611.
9825 2002-01-25 Akira TAGOH <tagoh@redhat.com>
9827 * lib/text.c (text_insert_char): fixed characters# calculation.
9828 it's not string length.
9830 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
9831 is defined, needs to convert a description to UTF-8.
9833 * app/render_gdk.c (get_text_width): fixed transaction for
9834 UTF-8 support. also should uses gdk_text_width_wc() instead
9835 of gdk_text_width().
9837 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
9838 is defined, needs to convert to locale encoding for display.
9839 Also use utfchar instead of char for argument.
9841 2002-01-24 Hans Breuer <hans@breuer.org>
9843 * app/commands.c(edit_paste_callback and more) :
9844 call diagram_modified(ddisp->diagram) to fix #68083
9845 (help_menu_callback) : plug a DIR leak
9847 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
9848 GTK_TALKS_UTF8_WE_DONT
9850 * app/render_gdk.c(get_text_with) : it's a bad idea to use
9851 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
9852 gdk_text_width(). The length value is still questionable ...
9854 * lib/charconv.c : use functions already available in early
9855 GLIB-1.3 days whiches API hasn't changed since, to avoid
9856 version problems with the win32 build
9858 * lib/font.c : finally fix #58045 and #68208
9860 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
9862 2002-01-24 Akira TAGOH <tagoh@redhat.com>
9864 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
9865 no strings, fixed transaction.
9867 * lib/charconv.h: fixed typo.
9869 * app/menus.c: fixed typo.
9871 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
9873 * objects/UML/object.c: attrib's type uses utfchar instead of char.
9875 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
9877 * lib/text.c (text_create_change): use unichar instead of char.
9879 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
9880 use utfchar instead of char.
9882 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
9885 * lib/charconv.c (charconv_utf8_get_char): add new function.
9887 2002-01-23 Akira TAGOH <tagoh@redhat.com>
9889 * lib/text.c (text_delete_forward, text_delete_backward,
9890 text_split_line): fixed transaction for UTF-8 support.
9892 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
9893 strlen[] has string length for UTF-8, so has to use alloclen[].
9897 * .cvsignore: add dia.pot.
9899 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
9901 * configure.in: Added "sk" to ALL_LINGUAS.
9903 2002-01-22 Akira TAGOH <tagoh@redhat.com>
9905 * lib/text.c (text_set_string, new_text, text_copy,
9906 text_get_string_copy, text_join_lines): use utfchar instead of gchar
9909 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
9912 * lib/charconv.c (charconv_utf8_strchr): add new function.
9914 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
9916 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
9918 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
9919 strings to the appropriate encoding.
9921 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
9923 * app/object_ops.c (object_list_align_[hv]): Leak fix.
9925 * lib/Makefile.am (INCLUDES): Added debug flags.
9927 * app/object_ops.c: Fixed ordering problem of align equi-distant &
9930 2002-01-21 Akira TAGOH <tagoh@redhat.com>
9932 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
9935 * objects/GRAFCET/boolequation.c: fixed invalid comment.
9937 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
9938 when defined UNICODE_WORK_IN_PROGRESS.
9940 * lib/dia_xml.c (data_add_string): fixed typo.
9942 2002-01-20 Akira TAGOH <tagoh@redhat.com>
9944 * configure.in: fixed test gtk_advancement.
9946 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
9948 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
9951 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
9953 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
9954 tool tips, preferences, and arbitrarily long ~/.dia/history
9956 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
9957 removed 'Open Recent'; added new separators for recent documents on
9960 * app/interface.[ch] (interface_get_toolbox_shell): new function
9962 * app/diagram.c: added new parameter to recent_file_history_add() call
9964 * app/preferences.[ch]: added new 'Recent documents list size'
9967 2002-01-18 Akira TAGOH <tagoh@redhat.com>
9969 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
9970 if it failed, should be used gdk_font_load ().
9972 * lib/font.c (font_data): added the font entries for CJK.
9974 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
9976 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
9978 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
9980 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
9982 Patch from Martin Cracauer <cracauer@cons.org>:
9984 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
9987 2002-01-01 Hans Breuer <hans@breuer.org>
9989 * app/command.c : optional use GDI printing on windoze
9991 * app/preferences.[hc] : add option 'prefer_psprint' to
9992 select the print engine to use (could be used for Dia/Gnome
9995 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
9996 wmf plug-in with the common win32 print api. Now printing
9997 should work almost as expected from a windows program :-)
9999 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
10000 to .edit_delete to avoid clashes with C++
10002 * app/makefile.msc : updated for GDI printing
10004 * plug-ins/wmf/wmf.cpp : some small modifications to support
10005 GDI printing. Also swap R and B channel in draw_image()
10007 * app/makefile.am : added windows only files to EXTRA_DIST
10009 * objects/uml/class.c(umlclass_set_props) : force recalculation
10010 when applying properties
10012 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
10013 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
10014 many incompatible changes (and would force a gtk update)
10016 * objects/makefile.msc : don't build C-Objects which are
10017 already available as 'pure shape'
10019 * plug-ins/makefile.msc : remove diaimport from build. It was
10020 only available via mailing-list and is broken since the
10024 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
10026 * app/preferences.[hc] : tweaked preferences.c to make
10027 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
10028 added some more DiagramTree prefererences and their own
10031 * app/diagram_tree.[hc] : allow to sort by object type or name
10032 and hide by type ...
10033 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
10034 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
10036 * app/diagram_tree_window.c : handle hidden types and window
10039 2001-12-20 Hans Breuer <hans@breuer.org>
10041 * plug-ins/python/Makefile.am : patch from Peter Moulder
10042 <pmoulder@csse.monash.edu.au> to make the python plug-in
10043 compile on *nix too.
10045 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
10047 Patch from Alan <horkana@tcd.ie>:
10049 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
10051 2001-11-20 Hans Breuer <hans@breuer.org>
10053 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
10055 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
10057 * app/diagram_tree.[hc] : Added new functions and types for
10058 sorting diagram and objects, and attaching the popup menus.
10060 * app/preferences.h: Added more diagram tree preferences, using a
10061 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
10062 height and width of the diagram tree window and the default sort
10063 orders for diagrams and objects.
10065 * app/preferences.c (prefs_data): Added new entries for the new
10066 diagram tree preferences.
10068 * app/preferences.c (prefs_tabs): New tab for diagram tree
10071 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
10072 * app/diagram_tree_window.c (diagram_tree_window_new):
10073 * app/interface.c (create_tree_window): The diagram tree window is
10074 initialised using the DiagramTreeConfig part of prefs.
10077 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
10079 * app/diagram_tree_menu.[hc]: New files. Functions to create the
10080 diagram tree popup menus.
10082 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
10083 the diagram tree popup menus.
10085 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
10088 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
10090 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
10091 double-clicking a diagram tree node raises the diagram window
10092 to the foreground (and, if a object node was clicked, selects the
10093 object in the diagram).
10095 * app/diagram_tree.c (select_tree_widget): selecting an object
10096 node with single click simply updates it (no raise).
10098 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
10099 These changes make the diagram tree lazy: it is not created unless
10100 the diagram tree window is requested.
10102 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
10103 function for creating the tree window.
10105 * app/interface.c (create_tree_window): call
10106 create_diagram_tree_window() instead of diagram_window().
10108 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
10109 (diagram_tree_update, diagram_tree_update_name)
10110 (diagram_tree_add_object, diagram_tree_add_objects)
10111 (diagram_tree_remove_object, diagram_tree_remove_objects)
10112 (diagram_tree_update_object): accept a NULL tree as a nominal
10113 argument (and do nothing in this case!), so that the diagram tree
10114 is not initialised if not used.
10116 * app/diagram_tree_window.c (diagram_tree): do not create the
10117 diagram tree until diagram_window() or diagtree_show_callback()
10120 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
10121 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
10123 * app/diagram_tree_window.[hc] : (new files) implementation of
10124 the diagram tree window, a container for a diagram tree. [Removed
10125 the horizontal scroll bar glitch by disableing it]
10127 * app/diagram_tree.[hc] : (new files) implementation of the
10128 diagram tree widget. [Don't rely on the layers GPtrArray to be
10129 NULL terminated, but use its ->len field]
10131 * app/Makefile.am (dia_core_files): added new files
10132 diagram_tree.[hc] and diagram_tree_window.[hc]
10134 * app/interface.[hc] : (create_tree_window): this function
10135 creates the new diagram tree window widget
10137 * app/undo.c (delete_objects_apply) (delete_objects_revert)
10138 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
10139 (ungroup_objects_apply) (ungroup_objects_revert):
10140 every time that an undoable command modifies a diagram
10141 adding/removing/(un)grouping objects, a diagram_tree_something() is
10142 invoked to keep the diagram tree window in sync
10144 * app/properties.c (properties_apply): call to
10145 diagram_object_modified(), which updates the diagram tree window
10146 when the properties of an object are modified
10148 * app/preferences.[hc] : new "show_diagram_tree" configuration option
10149 (whether the diagram tree window should be shown on dia startup)
10151 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
10153 * app/diagram.h (diagram_object_modified): callback notifying of a
10154 diagram object modification
10156 * app/diagram.c (diagram_load_into): added call to
10157 diagram_tree_add() to add newly loaded diagrams to the diagram
10159 (diagram_destroy): call to diagram_tree_remove() to remove a
10160 destroyed diagram from the diagram tree window
10161 (diagram_add_object): call to diagram_tree_add_object() to add an
10162 object to the diagram tree window
10163 (diagram_add_object_list): as above, but with an object list
10164 (diagram_selected_break_external): deletion of objects from the
10165 diagram is detected here, and diagram_tree_remove_object() is
10166 invoked to remove the object from the diagram tree window (it
10167 would be nice to have a diagram_remove_object() in the Diagram
10169 (diagram_set_filename): update the diagram tree window when a
10170 diagram's filename changes
10172 * app/commands.c (file_new_callback): added call to
10173 diagram_tree_add() to add newly created diagrams to the diagram
10176 * app/app_procs.c (app_init): added call to create_tree_window()
10178 * app/makefile.msc : updated
10180 2001-10-28 Hans Breuer <hans@breuer.org>
10182 * app/preferences.h (DiaPreferences):
10183 * app/preferences.c (prefs_data): new "show_diagram_tree"
10184 configuration option (whether the diagram tree window should be
10185 shown on dia startup)
10187 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
10188 entry (both for GNOME and gtk)
10190 * app/diagram.h (diagram_object_modified): callback notifying of a
10191 diagram object modification
10193 * app/diagram.c (diagram_load_into): added call to
10194 diagram_tree_add() to add newly loaded diagrams to the diagram
10196 (diagram_destroy): call to diagram_tree_remove() to remove a
10197 destroyed diagram from the diagram tree window
10198 (diagram_add_object): call to diagram_tree_add_object() to add an
10199 object to the diagram tree window
10200 (diagram_add_object_list): as above, but with an object list
10201 (diagram_selected_break_external): deletion of objects from the
10202 diagram is detected here, and diagram_tree_remove_object() is
10203 invoked to remove the object from the diagram tree window (it
10204 would be nice to have a diagram_remove_object() in the Diagram
10206 (diagram_set_filename): update the diagram tree window when a
10207 diagram's filename changes
10209 * app/commands.c (file_new_callback): added call to
10210 diagram_tree_add() to add newly created diagrams to the diagram
10213 * app/app_procs.c (app_init): added call to create_tree_window()
10215 2001-10-28 Hans Breuer <hans@breuer.org>
10217 * plug-ins/python/pydia-property.c : apparently I missed
10218 to commit this last time. Now it has some more SetAttr
10219 support (apply from property)
10221 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
10223 * plug-ins/python/pydia-text.[ch] : new files
10225 2001-10-14 Hans Breuer <hans@breuer.org>
10227 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
10228 strings. Use g_strdup() for these.
10230 libxml2 does not produce 'any extra indentation when saving a tree'
10231 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
10232 libxml(1). To get human readable XML some extra tweaking is required.
10233 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
10234 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
10235 * app/preferences.[ch] : initialize 'pretty_formated_xml'
10237 * lib/libdia.def : updated externals
10239 * lib/properties.h : add prototype for prop_list_from_single ()
10241 * plug-ins/makefile.msc : build metapost plug-in
10243 * plug-ins/metapost/render_metapost.c : msvc does not like
10244 switch labels without operation 'default: }'. Added a noop.
10246 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
10247 * plug-ins/python/diamodule.c : added PyDiaText
10248 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
10249 Although the python plug-in does not use libxml at all, the
10250 headers are required to use the lib/prop*.h headers
10252 * plug-ins/python/pydia-diagramdata.c : added wrappers for
10253 update_extents and get_sorted_selected (should I duplicate
10254 more functions from PyDiaDiagram or should they be moved?)
10256 * plug-ins/python/pydia-properties.c : allow to set (some) properties
10257 through the dictionary api
10258 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
10259 * plug-ins/python/pydia-property.c : implement it (currently only
10260 string properties can be set)
10262 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
10263 Quoting myself: 'Still not convinced that this is better than an
10264 integral property->type and some casting ...
10265 It is trading a straightforward 40 lines switch statement to
10266 this nice 'type safe' function mapping (about 125 lines)'
10267 (But now it works again, better than changing the News file :)
10269 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
10271 patch from <robert.young@dsto.defence.gov.au>:
10272 * objects/UML/component.c: remember to set font in UML component
10273 object (fixes #62132)
10275 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
10277 * plug-ins/metapost/metapost.c:
10278 * plug-ins/metapost/Makefile.am:
10279 * plug-ins/metapost/render_metapost.c:
10280 * plug-ins/metapost/render_metapost.h:
10281 Metapost renderer from Chris Sperandio
10283 2001-09-14 Hans Breuer <hans@breuer.org>
10285 * app/render_gdk.c : reflect the fact, that GTK already talks
10286 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
10289 * app/render_libart.c : trying to fix #58045 but it appears
10290 to be an Gdk/win32, too.
10292 * lib/charconv.c : handle utf8 conversion with the help of
10293 glib-1.3 even in the !HAVE_UNICODE case.
10295 * lib/dia_xml.c : reduce complaing about missing encoding, by
10296 detecting if the default (utf8) would break the file.
10298 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
10300 * lib/charconv.c: (get_local_charset): at least please try to not
10301 silently change the logic, while avoiding crashes.
10303 * lib/font.c: (suck_font): put a #error, we have a nasty something
10304 to fix there before we switch to Gtk 2.0.
10306 2001-09-09 Hans Breuer <hans@breuer.org>
10308 * **/makefile.mingw : Approach to compile Dia with mingw.
10309 Compiling mostly works but running does not (yet) ...
10312 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
10313 Apparently mingw needs it too.
10314 - enable 'normalization' of a null verctor. Otherwise the beziergon
10315 bounding box calculation would be broken at least with msvc. What's
10316 the mathematical correct result of 0.0/0.0 ?
10318 * lib/dia_xml.c : isinf() for mingw too.
10320 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
10323 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
10324 Please don't do it.
10326 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
10328 * lib/libdia.def : updated externals. Apparently mingw needs
10329 them to produce the right mangling.
10331 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
10334 2001-09-08 Wang Jian <lark@linux.net.cn>
10336 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
10338 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
10340 * lib/dia_xml_libxml.h:
10341 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
10342 libxml1's code, to rework the output file before it gets committed
10343 to disk. This is rubbish, and will be removed when libxml2
10344 switches from discouraged to mandatory.
10345 All in all, this fixes #60152.
10348 * lib/charconv.c: (charconv_unichar_to_utf8):
10349 made the type of the input parameter explicitly an unsigned long.
10351 * configure.in: Added a check for libz (we must now include it
10352 explicitly, for xmlDiaSaveFile).
10354 * app/load_save.c: (diagram_data_save):
10355 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
10356 (dia_pluginrc_write):
10357 * plug-ins/shape/shape-export.c: (new_shape_renderer),
10358 (end_render), (draw_string):
10359 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
10362 Made sure we always write UTF-8 XML files, and through
10365 * NEWS: documented that fact.
10367 2001-09-07 James Henstridge <james@daa.com.au>
10369 * configure.in (found_libxml): refactor the check for libxml a
10370 little so that it handles finding both libxml1 and 2 better.
10372 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
10374 * app/app_procs.c: removed a spurious } which caused a compilation
10375 error in the (!HAVE_GNOME && HAVE_POPT_H) case
10377 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
10378 don't know what ANSI X3.4-1968 is. I didn't know until this day,
10379 but it's just plain old ASCII. Added a check to shield the poor
10382 Patches from <robert.young@dsto.defence.gov.au>:
10384 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
10385 width and height of text before calculating bounds. Fixes #59928
10387 * app/preferences.c: Moved grid related items into Grid Tab.
10389 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
10391 * app/interface.c: (create_zoom_widget): connected one more signal
10392 to the Zoom selector combo's list. Fixes #59879.
10394 * app/app_procs.[ch]: (app_init) (do_convert)
10395 (build_output_file_name): brought back into the main executable
10396 the rare useful bits of the ill-fated diaconv. This means we have
10397 one new feature : --export-to-format (-t), which should make
10398 writing conversion scripts easier, and a crude implementation of
10399 -t and -e for the poptless argument parsing, which means the Win32
10400 port should be able to take advantage of it (that should make
10401 resolving #58197 possible).
10403 * app/diaconv.c: kept the poor duck compiling (but that's about
10406 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
10407 I've got it right).
10409 * NEWS: updated about the new feature above, and documented the
10410 "missing encoding specification" complaint.
10412 2001-09-01 Abel Cheung <maddog@linux.org.hk>
10414 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
10416 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
10418 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
10421 2001-09-01 James Henstridge <james@daa.com.au>
10423 * */Makefile.am: various changes to include missing files, and fix
10424 sheets dir to handle building with builddir != srcdir.
10426 * autogen.sh: unconditionally pass the --enable-maintainer-mode
10427 and --enable-db2html flags so that builds from CVS work correctly.
10429 * configure.in: increment version number. Also add an
10430 --enable-db2html flag. Without the flag, db2html won't be run (if
10431 the flag is passed and db2html is not present, do nothing).
10433 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
10435 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
10436 even compiled. It's really too bad there is no lint tool easily
10437 available (or a more cautious, pedandic, paranoid and verbose
10438 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
10440 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
10443 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
10444 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
10446 * app/menu.c: added ellipsis(...) to diagram properties menu item.
10447 * app/dia-props.c: diagram properties dialog contents did not
10448 represent current diagram settings.
10449 * app/dia-props.[ch]:
10450 * app/display.c: diagram properties contents now follows currently
10452 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
10454 * AUTHORS: added Robert Young.
10456 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
10458 * app/modify_tool.c: (modify_button_release): Patch from
10459 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
10460 #59090: if selection dragging was released outside of the window,
10461 artifacts of the selection box remained.
10463 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
10465 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
10467 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
10470 * sheets/Makefile.am: prepared the terrain for the Version of
10471 xml-i18n-tools Which Comes After 0.9 (and which will feature at
10472 last a sane behaviour with XML files). Some reasonible delay
10473 before enforcing that version *will* be given.
10475 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
10477 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
10478 becomes a nonexistent symbol.
10480 2001-08-18 Hans Breuer <hans@breuer.org>
10482 * app/app_procs.c : made it compile without ENABLE_NLS
10484 * app/diap_callbacks.c : strcmp isn't guaranteed to work
10487 * app/load_save.c :
10489 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
10491 xmlGetProp, ... -> xmlFree
10492 malloc, strdup -> free
10493 g_new, g_malloc, g_strdup - > g_free
10495 * app/win32print.c : some more error checking, still not
10498 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
10500 * lib/dia_xml.c : msvc still has no unistd.h
10503 * lib/sheets.c : temporary resolved libxml include brokeness
10505 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
10506 changes. Compiles again, but doesn't do anything useful anymore.
10507 (see THE_PROP_TYPE_IS_INTEGRAL)
10509 * **/makefile.msc : updated to use LIBXML2
10511 * lib/libdia.def : reflect api changes
10513 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
10515 * config.h.win32: added defines telling that gtk speaks UTF8.
10516 Hans, I believe this reflects what GTK on Win32 does.
10518 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
10520 * lib/prop_inttypes.c:
10522 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
10525 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
10526 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
10527 search for plug-ins is done.
10528 * app/Makefile.am: made app/run_dia.sh use the // capability. No
10529 need to update this anymore if we get a new plug-in library (or
10532 * lib/dia_xml.c: #include <unistd.h> was missing.
10534 * lib/properties.h:
10535 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
10536 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
10539 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
10541 * sheets/civil.sheet: removed duplicate "Danish" entries.
10546 * sheets/Makefile.am:
10548 * Makefile.am: applied the xml-i18n-tools README's instructions.
10550 * po/(da de fr hu nl nn no sl).po: merged the translations from
10551 the sheet files into the .po files. I hope I haven't mixed
10553 * sheets/*.sheet (REMOVED):
10554 * sheets/*.sheet.in (NEW): moved the sheet files sans
10555 translations into .sheet.in files.
10557 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
10558 because we don't yet want to force all translators to work using
10559 UTF-8 editors. We'll want to do that sometime (sooner rather than
10560 later). Okay, I sing a slightly different tune in po/ChangeLog...
10562 * dia.desktop (REMOVED):
10563 * dia.desktop.in (NEW): used also the x18t infrastructure for
10566 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
10567 "official" version of x18t with support for .sheet files is available.
10568 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
10569 "official" version of x18t which doesn't corrupt UTF-8 data in XML
10572 ** yes, we are now using xml-i18n-tools to manage the sheet
10573 translations. For the Win32 build, Nemo stores snapshots of
10574 translated strings next to the CVS snapshots. **
10576 * sheets/checktrans.py: suddenly, some sheets have lots of
10577 translations (objects which existed before sheets, mostly).
10578 Adapted the formatting.
10580 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
10582 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
10583 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
10584 <robert.young@dsto.defence.gov.au>, to fix #59090.
10586 * app/display.c: (ddisplay_scroll): While at it, added some
10587 margin, so that autoscrolling can happen within a margin outside
10588 the diagram's extents.
10592 * app/disp_callbacks.c: Robert "forced" me to go when I usually
10593 don't, namely the app/ directory. So while I was there, I
10594 scratched a long-time itch. If no object has focus, pressing the
10595 space bar will select back the tool which was selected before the
10596 current one (I find this especially useful with "reset after create" !)
10598 * lib/proplist.c: (prop_list_from_single): Renamed
10599 prop_list_singleton() to avoid confusion with the Singleton
10600 pattern (which it definitely is not).
10602 * lib/propobject.c: (object_prop_by_name_type),
10603 (object_prop_by_name): The "flags" parameter was not necessary.
10604 These don't return synthetic properties, but properties built from
10605 a real property description list; therefore, we don't call
10606 make_new_prop() but use the existing property descriptor, which
10607 has perfectly valid (and meaningful) flags.
10609 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
10610 new predicates better reflect the reason why properties exist when
10611 they're created by make_new_prop() or object_prop_by_name().
10613 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
10614 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
10617 * lib/properties.h: reflects all the above changes.
10619 * objects/SADT/arrow.c:
10620 * objects/SADT/annotation.c:
10621 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
10624 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10626 * lib/properties.h:
10627 * lib/proplist.c: (prop_list_singleton):
10628 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
10629 Added these, to simplify interactions of plug-ins with the StdProp
10634 * lib/dia_xml_libxml.h (NEW):
10639 * objects/custom/shape_info.c: A few prototypes were causing
10640 #include hell, because we generally attempt to not pull the whole
10641 libxml header set when we include dia_xml.h. Moved those
10642 prototypes away for the rare cases they're necessary.
10644 2001-08-15 Hans Breuer <hans@breuer.org>
10646 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
10649 * lib/makefile.msc : updated
10651 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
10652 use G_GNUC_FUNCTION instead.
10654 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
10656 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
10657 msvc instead of cleaning missing includes
10659 * plug-ins/wmf/wmf.cpp :
10660 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
10662 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10669 * objects/custom/shape_info.c:
10670 * plug-ins/shape/shape-export.c:
10671 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
10672 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
10673 removed xmlKeepBlanksDefault(0) in favour for proper
10674 xmlIsBlankNode() testing. Lots of other fixups to use the
10675 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
10676 make libxml1 output correct files.
10678 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
10679 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
10680 packages). If both devel packages are found, the build will stop
10681 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
10683 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
10684 allocate the first handle :-)
10686 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
10687 a cast and a sizeof.</gratuitous>
10689 * objects/custom/custom_object.c: (custom_copy): don't call
10690 text_get_attrbutes if the shape has no text...
10691 (custom_update_data): The info->resize_with_text code was a bit
10692 directive; basically, the shape's bounding box was forced to be
10693 proportional to the text's bounding box.... This fixes #57187.
10695 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
10696 default for info->aspect_ratio; unobfuscated a line about
10697 info->resize_with_text;
10699 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10701 * lib/properties.h: added comments next to the PROP_TYPEs to tell
10702 which C Property subclass to use.
10704 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
10705 cast-ridden form of setting properties in a list, in favour for
10706 the "local pointers" form. I'll take any better offer...
10708 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
10710 * lib/font.c: fprintf(...) --> fprintf(format...)
10712 * configure.in: added a disabled versioned test for glib.
10713 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
10714 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
10715 g_critical() with a simple g_error(). Proper fix is to implement
10718 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
10721 * lib/properties.h:
10722 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
10723 * lib/proplist.c: (find_prop_by_name_and_type):
10724 * lib/prop_basic.c: (make_new_prop), (initialize_property):
10725 * lib/propoffsets.c: (do_set_props_from_offsets),
10726 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
10727 Added a type_quark member to PropDescription, Property and
10728 PropOffset. Used it to implement a safety in
10729 do_[sg]et_props_from_offsets().
10731 * objects/flowchart/diamond.c: the diamond's text was not saved,
10732 and thus not even copied (c&p).
10733 * objects/standard/textobj.c: ditto.
10735 Most of the above changes thanks to Robert Young's testing. Thanks !
10737 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
10739 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
10742 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
10744 * lib/proplist.c (prop_list_from_descs): added a call to
10745 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
10746 too embarrassing to tell.
10748 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
10749 while loop to a for loop, for symmetry with
10750 prop_offset_list_calculate_quarks().
10752 * lib/geometry.h: new inline function, rectangle_equals.
10754 * lib/diagramdata.[ch]: refactored a bit the diagram extents
10755 computation logic, and changed it to always be the union of the
10756 visible layers' extents. This should close #58882 (Debian
10757 #107167), and fixes #55498.
10759 * app/display.c: made the initial visible box more coherent with
10760 the diagram being loaded's extents.
10762 * app/prop_attr.c: don't set the font (from offset) if font_data
10763 is NULL. Two brainos in colorprop_load() and fontprop_load().
10765 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
10767 * lib/properties.[ch]: split in a lot of pieces:
10769 * lib/prop_*.[ch] (NEW): all property types are now first-class
10770 objects, inheriting from the original abstract Property type.
10771 * lib/propdesc.c (NEW): property description handling routines
10772 * lib/propoffsets.c (NEW): property offset handling routines
10773 * lib/proplist.c (NEW): property list handling routines
10774 * lib/propobject.c (NEW): property list <-> object routines
10775 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
10777 * lib/propinternals.h: prototypes for stuff not usually needed by
10778 the outside of StdProps.
10779 * lib/Makefile.am: a lot of new files have been added...
10781 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
10782 BOTH INTERFACES AND RUN-TIME STABILITY.
10784 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
10786 * lib/object.h: removed the incestuous relationship with
10787 properties.h' contents. Now a Property list is a GPtrArray -->
10788 object interface change !
10790 * app/app_procs.c/app_init(): removed a disabled call to a
10791 non-existent routine. Added a call to stdprops_init().
10793 * objects/Makefile.am: disabled the construction of EML. I'm not
10794 touching these until a certain issue is solved (or this module
10797 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
10798 objects to the interface changes.
10800 * app/disp_callbacks.c: killed a warning.
10801 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
10804 The macros PROP_VALUE_* have disappeared. Adapted to using the new
10807 * plug-ins/dxf/dxf-import.c:
10808 * plug-ins/xfig/xfig-import.c:
10809 PROP_VALUE_* macros have been removed. Converted to the new API.
10811 * plug-ins/python/**/*: I gave up converting this; I can't
10812 compile --with-python (problems with object.h defined both by us
10813 and by Python). I'll gladly help whomever cares to fix it !
10814 (or, fix it myself if someone tells me how to compile it).
10816 * configure.in: added the UNICODE-related progress defines.
10819 * lib/geometry.h: On Solaris and perhaps other systems, finite()
10820 is defined in ieeefp.h rather than in math.h. Patch from Andrew
10821 Halper <ashalper@acm.org> with further modifications, isinf() is
10822 provided by -lsunmath (sunmath.h).
10824 * lib/font.c: conditionally disabled Lars' debugging messages.
10825 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
10827 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
10829 * lib/bezier_conn.h:
10830 * objects/standard/bezier.c (bezierline_create):
10831 * lib/bezier_conn.c (bezierconn_init):
10832 Preparations for use of userdata for bezier lines.
10834 * objects/standard/polygon.c:
10835 * objects/standard/create.h:
10838 * plug-ins/xfig/xfig-import.c:
10839 Use of user_data for polygon as well, including adding
10840 polyshape_set_points. Include file for non-interactive
10841 creation of standard objects, objects/standard/create.h
10843 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
10845 * app/render_gdk.c:
10846 * app/render_gdk.h:
10850 More preliminary freetype support. Not at all functional, crashes
10855 * objects/standard/polyline.c:
10856 Support for creating polyline objects with more than two points.
10857 This includes an extra function and a prototype change in the
10858 poly_conn lib object.
10860 * lib/object.c (object_copy): Fixed memory leak of handles and
10863 2001-08-08 Abel Cheung <maddog@linux.org.hk>
10865 * dia.desktop: added traditional Chinese strings
10867 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
10869 * NEWS: updated to reflect build-time dependencies.
10871 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
10872 around obj->ops->describe_props(obj). Quarks are none of an
10873 object's business in the general case...
10874 * lib/text.c: Added an apply_textattr_properties() function to
10875 factor out some common code related to applying a dialog's text
10876 attribute properties to a (Text *) which wasn't edited there.
10877 Ditto for textstr, for the string part of an objet.
10879 * objects/GRAFCET/action.c:
10880 * objects/SADT/annotation.c:
10881 * objects/SADT/box.c: used apply_textattr_properties().
10883 * objects/UML/actor.c:
10884 * objects/UML/branch.c:
10885 * objects/UML/component.c:
10886 * objects/UML/constraint.c:
10887 * objects/UML/small_package.c:
10888 * objects/UML/state.c:
10889 * objects/UML/usecase.c:
10890 * objects/UML/large_package.c:
10891 * objects/UML/note.c:
10892 * objects/UML/node.c:
10893 * objects/UML/message.c:
10894 * objects/UML/classicon.c:
10895 * objects/UML/object.c:
10896 * objects/UML/realizes.c:
10897 * objects/UML/dependency.c:
10898 * objects/UML/implements.c:
10899 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
10900 (most objects were already using StdProps to some extent ; this
10901 systematises usage and removes some dead wood).
10903 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
10904 * objects/UML/uml.[ch]: audited for UTF-8.
10906 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
10907 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
10908 private (ISO-8859-1) definition.
10910 * lib/charconv.c: Added a warning if we didn't run
10911 nl_langinfo(CODESET) but rely instead on a hardcoded default.
10913 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
10916 * app/disp_callbacks.c: added a way for an object to cause an
10917 already realised menu to be destroyed (for instance if it changes
10920 * objects/custom/custom_object.c: used the above to fix #55073.
10922 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
10924 * configure.in: Remove 2.50 prereq.
10926 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
10928 * po-checktrans.py: under some circumstances, there was one column
10929 more than what was supposed to be, thus breaking the formatting.
10931 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
10933 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
10935 * NEWS: updated with new stuff since 0.88
10937 * shapes/network/antenna.shape: the text was misplaced ; fixed.
10939 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
10940 firewall router (upon request from Cyril Lacoux
10941 <clacoux@easter-eggs.com>)
10943 * configure.in (didn't rename to configure.ac): autoconf 2.50
10944 constructs were used ; added an AC_PREREQ call to guard against
10947 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
10949 * lib/properties.c: minor clean-ups with the event delivery code.
10951 * EML/instantiation.c: brought this object back from stone and ice
10954 * app/diaconv.c(NEW): added a command-line conversion tool. Still
10955 lacks a man page and correctness. In fact, it doesn't work. Please
10956 see #58196 if you want to finish it.
10958 * lib/message.[ch]: redefined things a little so that a different
10959 message_internal routine could be passed.
10960 applications can use that to fit themselves to the display model.
10962 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
10964 * objects/SADT/box.c:
10965 * objects/GRAFCET/action.c: spelling in property descriptors (name
10967 * objects/SADT/annotation.c: ditto, plus a temporary test of the
10968 event delivery code (try to click on the "click me !" button !).
10971 * lib/properties.[ch]: improved (fixed) support for group event
10972 handlers. Fixed various things from yesterday's code to make it
10973 not too obviously crash.
10975 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
10977 * app/group.c: added delivery of events to the first member of the
10978 group which is able to process it.
10980 * lib/properties.c(prop_desc_lists_intersection): properties
10981 don't match if they don't have identical event handler.
10982 * lib/properties.h: simplified the PropEventHandler signature.
10984 Event delivery code is still untested so far, but should be
10987 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
10989 * lib/properties.[ch]: Added (untested !) property event handler
10990 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
10991 generating such events. This stuff compiles, and should lurk
10992 around silently as long as you don't declare property descriptors
10993 with events (AFAICT).
10994 In object_create_props_dialog() and friends:
10995 attached a single structure with lots of data instead of lots of
10996 little attachments of data to the dialog widget.
10998 * lib/object.h: fixed mild typedef breakage introduced by the above.
11000 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
11002 * lots of files: Changed Font to DiaFont
11003 * */Makefile.am: Added FREETYPE_LIBS
11004 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
11006 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
11008 * configure.in: Added "nn" to ALL_LINGUAS.
11010 2001-07-09 Alex Larsson <alexl@redhat.com>
11012 * app/disp_callbacks.c:
11013 Add gdk_im_ready() calls to XIM code.
11015 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
11017 * lib/properties.[ch]: splitted prop_get_widget() into
11018 prop_get_widget() (gives a widget but doesn't fill it) and
11019 prop_reset_widget() (fills an existing widget with a property's value).
11021 * lib/widgets.[ch]: const enforcement police work.
11023 * shapes/network/antenna.shape: added a connection point at top,
11024 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
11026 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
11028 * intl/*: tested with gettext-0.10.38
11029 * configure.in: moved a macro call around (AM_PROG_CC) to keep
11030 some of autogen.sh from complaining.
11031 * INSTALL: added a warning against gettext older than at least 0.10.36
11033 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
11035 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
11036 AM_ICONV (both provided by gettext)
11038 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
11040 * lib/charconv.c: corrected the degraded mode for when
11041 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
11043 * objects/chronoline/chronoline_events.c: UTF8 compliance.
11045 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
11047 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
11048 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
11049 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
11052 * objects/chronogram/chronoline.c:
11053 * objects/chronogram/chronoref.c: took advantage of the above to
11054 make nicer looking dialogs.
11056 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
11057 from libunicode's internals).
11058 * lib/message.c: convert strings to local encoding prior to
11059 display (UNICODE_WORK_IN_PROGRESS)
11060 * lib/properties.[ch]: convert strings to local encoding prior to
11061 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
11062 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
11063 * lib/stringprerenderer.[ch]: ditto
11065 (lib/text.c has been audited for UTF8, but the size of the changes
11066 make them inappropriate for commit before 0.89)
11068 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11070 * objects/boolequation.h (<save|load>_boolequation): made the
11071 prototypes for match the .c file.
11073 * samples/grafcet.dia: minor non-conformance with IEC-848
11074 fixed (in the transition from step 100 to step 101).
11076 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
11077 disallow editing of properties if the object is part of a group.
11079 * objects/chronogram/chronoline.c:
11080 * objects/SADT/annotation.c:
11081 * objects/SADT/box.c:
11082 * objects/GRAFCET/step.c:
11083 * objects/GRAFCET/transition.c:
11084 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
11086 2001-06-12 Hans Breuer <hans@breuer.org>
11088 * lib/libdia.def : removed lazyprop exports
11089 * lib/makefile.msc : removed lazyprop.obj
11091 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
11092 and avoid crashes by always creating a custom->text,
11093 when (custom->info->has_text)
11095 * objects/makefile.msc : removed sybase from build
11097 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
11098 ObjectNode is a pointer already, which is what we want
11099 instead of a pointer pointer.
11101 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
11102 and implemented working export for images
11104 * shapes/network/zip-disk.shape : added connection points
11106 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11108 * objects/SADT/box.c: removed lazyprops for standard props.
11109 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
11110 * objects/chronograms/chronoref.c: ditto
11114 * lib/connpoint_line.c:
11115 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
11116 * lib/properties.[ch]: new property types:
11117 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
11118 - PROP_TYPE_MULTISTRING: same as string, but renders as a
11119 multi-line entry box.
11120 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
11121 in a tabbed-notebook style (this is a bit complicated to use;
11122 see objects/chronograms/chronoline.c for an example).
11124 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
11126 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
11127 * objects/GRAFCET/step.c: ditto.
11128 * objects/GRAFCET/vector.c: ditto.
11129 * objects/SADT/annotation.c: ditto.
11130 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
11132 * lib/properties.[ch]: two more non-visible types
11133 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
11135 * lib/neworthconn.[ch]:
11136 * lib/orthconn.[ch]: added support for manipulation through
11137 standard properties.
11139 * configure.in: removed -fomit-frame-pointer, this seems to
11140 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
11143 * charconv.[ch]: more functions from unicode.h.
11144 get_local_charset() wasn't working properly, fixed now.
11145 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
11148 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
11149 * lib/lazyprops.[ch]: put a big fat warning in.
11151 * app/render_eps.c: one line mysteriously went away, causing a
11152 variable to be used uninitialised....
11154 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
11156 * app/app_procs.c: commented out the call to
11157 bind_textdomain_codeset(): it's premature.
11159 * lib/connpoint_line.c: a NULL point can be given to
11160 connpointline_adjust_count(), in case there's not really a clicked
11163 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
11164 #include order troubles. #included by lib/text.h, so there is no
11165 impact outside lib/.
11166 * lib/properties.[ch]: added support for CONNPOINT_LINE and
11167 (nonvisible) TEXT properties.
11169 * objects/GRAFCET/action.c:
11170 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
11173 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
11174 standard properties code). Grafted a dynamic number of connection
11175 points (heavily inspired from what Vergent does). This is the real
11178 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
11180 * lib/fonts.c: some hardening (mostly g_assert())
11181 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
11183 * app/app_procs.c (app_init): added a call to
11184 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
11185 (UNICODE_WORK_IN_PROGRESS).
11187 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
11189 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
11191 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
11192 (fixes #55863) : some clean-ups in the handling of connection
11193 points. Now the total number of connection points is just a
11194 #define (the proper solution is to retrofit the GRAFCET Vergent's
11195 dynamic behaviour wrt connection points).
11197 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
11199 * app/app_procs.c (app_init): added a call to unicode_init() (only
11200 if HAVE_UNICODE, of course).
11202 * lib/charconv.c: simplified the code which detects the local
11203 charset. No need to use <langinfo.h>, libunicode already takes the
11204 burden of figuring that out. Also, if local charset is utf8, no
11205 conversion will take place.
11206 Exposed a way to get the current charset (similar to
11207 unicode_get_charset() but actually working, hopefully).
11209 * lib/charconv.h: Added a partial non-UTF8 implementation of
11210 unicode.h if !HAVE_UNICODE (actually, all the time for the
11211 moment). The UTF8 implementation is just macros on libunicode (use
11212 the functions prefixed by uni_, as defined by charconv.h, not
11213 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
11214 From now on, all strings which don't *need* to be ASCII should be
11215 utfchar *, not gchar *. Just include charconv.h, let it sort out
11216 the details (such as: "is libunicode available and enabled?")
11218 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
11219 "API" instead of directly libunicode. Removed the now unnecessary
11220 speculative clustering of characters in encoding pages.
11222 * app/render_eps.c: made the local8->utf8 conversions dependent of
11223 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
11224 boundary will be when this WIP is done).
11226 * lib/dia_xml.c (data_point): fixed a format string typo.
11228 * po/POTFILES.in: added all C files from lib/
11230 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
11232 * app/disp_callbacks.c: make sure the objects' connected objects
11233 are updated when the objects' size changes after a keypress event
11236 * configure.in: added a big warning about the possible future
11237 non-optionality of --enable-unicode.
11239 * TODO: removed entries which look like done ; added a few ones
11240 (Bugzilla "enhancement" bugs may be a better way to keep track of
11243 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
11245 * objects/UML/message.c: got rid of #55564 and of message_copy()
11246 by using more standard properties (are the message_state_*()
11247 functions still necessary ?)
11249 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
11252 * objecs/custom/shape_info.c:
11253 * plug-ins/shape/shape-export.c:
11254 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
11255 use xmlChar instead of obsolete CHAR.
11257 2001-06-03 Hans Breuer <hans@breuer.org>
11259 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
11260 * app/commands.c : give the right number of parameters
11261 to diagram_update_menu_sensitivity ()
11263 * app/preferences.c : do proper initialization for DiaPrefsData:
11264 render_bounding_boxes. It would be a real surprise if 'hidden'
11265 properties would have ever worked before.
11266 Don't try to access the widgets of hidden property, it does not
11269 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
11270 it is defined in libdia, but initialized from dia app, which
11271 otherwise gave nice start-up crashes.
11273 * lib/diagramdata.c : initialize the color for rendering bounding
11274 boxes in the Dia range (0 .. 1.0)
11276 * lib/libdia.def : added *_bbox functions for export
11278 * lib/makefile.msc : added new sources
11280 * objects/custom/custom_object.c : use HAVE_UNISTD_H
11282 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
11285 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
11286 removes a translation of menus (in a place where there shouldn't
11287 have been), which gets rid of a waterfall of warnings if LANG!=C,
11288 and a fix to #55047.
11290 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
11292 * lib/charconv.c : added #include <errno.h>
11294 * app/dia_embedd.c : updated menus_get_item_from_path usage
11296 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
11298 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
11299 Added a special case for Symbol strings, so that they're not
11300 re-encoded using the LN encoding (we use the bare Adobe encoding
11303 * objects/custom/custom_object.c: Now that #52912 is fixed,
11304 I could remove the ugly hack I wrote to squash the shape bounding box
11305 problem shown by Ben A. Hetland a few months ago, and fix it
11306 properly this time.
11308 * lib/text.c: enlarged a little the bounding box to account for
11309 the cursor in rightmost position.
11311 * lib/diagramdata.c: draw bounding boxes only if the relevant
11312 variable is set (as before), but also only if the rendere is
11313 interactive (ie, don't bother rendering bounding boxes on
11315 Made the bounding box's line width a fixed value, 0.01
11317 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
11318 and assymmetric control beziers. Implemented ellipse_bbox().
11320 * Makefile.am: incantations to get po/dia.pot build, as suggested
11321 by Hubert in #55075.
11323 * shapes/network/computer.shape: typo fixed.
11324 * shapes/network/antenna.shape: fixed #55074 (antenna is now
11325 properly translucent, except for its base where it makes sense. It
11326 doesn't look that ugly anymore if transparent mode is on).
11328 * configure.in: --enable-unicode is now the default. This
11329 still currently affects only printing.
11331 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
11333 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
11334 The overshoot code is buggy, and the bounding boxes for polyshapes
11335 looks a bit cheezy. To be done ASAP.
11337 2001-05-26 James Henstridge <james@daa.com.au>
11339 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
11340 This should clear up some of the build problems people have been
11343 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
11345 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
11348 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
11349 box code (beginning with lines, polylines and polybeziers), into a
11350 more generic facility. While at it, a better shot at correctly
11351 computing the bounding box of a Bezieroid (should take care of
11352 #53424, #51233 and of course is part 1 of #52912).
11354 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
11355 into a hidden preference (set render_bounding_boxes in diarc).
11356 * app/preferences.[ch]: Added support for hidden preferences.
11358 * lib/geometry.[ch]: sprinkled with "const" modifiers.
11360 * lib/bezier_conn.[ch]:
11361 * lib/beziershape.[ch]:
11362 * lib/connection.[ch]:
11363 * lib/element.[ch]:
11364 * lib/poly_conn.[ch]:
11365 * lib/orth_conn.[ch]:
11366 * lib/neworth_conn.[ch]:
11367 * lib/polyshape.[ch]: adapted to take advantage of
11368 boundingbox.[ch] instead of relying on private (duplicate) code.
11370 * object/FS/flow.c:
11371 * object/GRAFCET/action.c:
11372 * objects/GRAFCET/condition.c:
11373 * objects/GRAFCET/vergent.c:
11374 * objects/GRAFCET/vector.c:
11375 * objects/SADT/annotation.c:
11376 * objects/SADT/arrow.c:
11377 * objects/ER/participation.c:
11378 * objects/UML/constraint.c:
11379 * objects/UML/implements.c:
11380 * objects/UML/lifeline.c:
11381 * objects/UML/message.c:
11382 * objects/UML/realizes.c:
11383 * objects/UML/generalization.c:
11384 * objects/UML/association.c:
11385 * objects/UML/dependency.c:
11386 * objects/FS/flow-ortho.c:
11387 * objects/network/bus.c:
11388 * objects/standard/arc.c:
11389 * objects/standard/bezier.c:
11390 * objects/standard/beziergon.c:
11391 * objects/standard/line.c:
11392 * objects/standard/polygon.c:
11393 * objects/standard/zigzagline.c:
11395 * objects/standard/polyline.c: Some *BBExtras structures changed
11396 names while moving to boundingbox.[ch]. A trivial mass-renaming.
11398 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
11400 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
11401 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
11403 * app/display.c (ddisplay_update_scrollbars): from Patrick's
11404 suggestion, remove the extra scrollable area (it was only visible
11405 to the scrollbars). This is experimental.
11407 * objects/custom/custom_object.c: If a shape's icon file doesn't
11408 exist, warn and substitute a default icon, instead of crashing.
11411 * objects/network/network.c:
11412 * shapes/network/modularswitch.(shape|xpm) (NEW):
11413 * shapes/network/printer.(shape|xpm) (NEW):
11414 * shapes/network/genmonitor.(shape|xpm) (NEW):
11415 * shapes/network/computer.(shape|xpm) (NEW):
11416 * shapes/network/Makefile.am: four less objects, four more shapes.
11417 These were the last known RenderObjects. (phew !)
11421 * objects/sybase/Makefile.am:
11422 * objects/network/Makefile.am: Removed the older Renderobjects
11423 from the build, and their infrastructure (not yet deleted,
11426 * shapes/network/sceadplug.shape:
11427 * shapes/network/antenna.shape:
11428 * shapes/network/modem.shape:
11429 * shapes/network/hub.shape:
11430 * shapes/network/rj45plug.shape:
11431 * shapes/sybase/client.shape:
11432 * shapes/sybase/dataserver.shape:
11433 * shapes/sybase/ltm.shape:
11434 * shapes/sybase/repserver.shape:
11435 * shapes/sybase/rsm.shape:
11436 * shapes/sybase/stableq.shape: Minor corrections (line widths were
11437 ten times too narrow).
11439 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
11441 * objects/network/network.c:
11442 * shapes/network/sceadplug.(shape|xpm) (NEW):
11443 * shapes/network/antenna.(shape|xpm) (NEW):
11444 * shapes/network/modem.(shape|xpm) (NEW):
11445 * shapes/network/Makefile.am: four less objects, four more shapes.
11448 * lib/diagramdata.c:
11450 * lib/string_prerenderer.[ch] (NEW):
11451 Add a new renderer primitive, predraw_string() (does nothing, to be
11452 used as a hook to optimise the character encodings if needed).
11453 Added a string pre-renderer, which can be viewed as a filter
11454 renderer (to route draw_string() to predraw_string() and ignore
11455 the rest, in a first rendering pass)
11457 * app/render_eps.c: Took advantage of the above to make wholly
11458 optimised Postscript encoding page(s), even (especially) with
11459 non-latin1 code (HAVE_UNICODE must be true).
11461 (#53512 in fact is wholly resolved).
11463 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
11465 * lib/charconv.c: steps towards resolution of #53512 (inspired by
11466 Alexey Novodvorsky <aen@logic.ru>'s patch).
11468 * app/menus.c (dia_menu_signal_proxy): checked that the signal
11469 handler is not NULL before transferring control to it... (fixes #52836)
11471 * app/app_procs.c (app_init): removed non-constant initialiser
11474 * objects/custom/custom_object.c:
11475 * objects/custom/shape_info.[ch]:
11476 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
11477 <skh@mathstar.com>. This add support for a <svg:text> shape
11478 element, and some related style properties (font, font height,
11481 * doc/custom_shapes: a precision about the meaning of case in a
11482 SVG path (closes #52364)
11484 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
11485 fixed by <drk@sgi.com>)
11487 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
11489 * objects/network/network.c:
11490 * shapes/network/Makefile.am:
11491 * shapes/network/hub.(shape|xpm) (NEW):
11492 * shapes/network/flash.(shape|xpm) (NEW):
11493 * shapes/network/rj45plug.(shape|xpm) (NEW):
11494 More shapes, less renderobjects.
11496 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
11498 * plug-ins/svg/render_svg.c: typo made exported ellipses
11499 corrupted (zero Y pseudo-radius).
11501 * objects/network/network.c:
11502 * objects/network/disc.c:
11503 * shapes/network/disc.(shape|xpm): Converted the first
11504 Renderobject into a shape. Normally, old diagrams should reload
11505 without problems (please check this against your diagrams). More
11506 flexibility should be gained that way. I intend to hunt and
11507 eradicate all renderobjects as I can commit cycles to that.
11509 * objects/Makefile.am:
11512 * objects/sybase/sybase.c:
11513 * shapes/sybase/Makefile.am(NEW):
11514 * shapes/sybase/client.(xpm|shape) (NEW):
11515 * shapes/sybase/dataserver.(xpm|shape) (NEW):
11516 * shapes/sybase/ltm.(xpm|shape) (NEW):
11517 * shapes/sybase/repserver.(xpm|shape) (NEW):
11518 * shapes/sybase/rsm.(xpm|shape) (NEW):
11519 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
11520 renderobjects into shapes. The Sybase objects are now not compiled
11521 anymore, and ready to be nuked if nobody objects in the next few weeks.
11524 * app/diagram.[ch]:
11525 * app/disp_callbacks.c:
11526 * app/display.[ch]:
11527 * app/interface.[ch]:
11529 * app/modify_tool.c:
11530 * app/preferences.[ch]:
11531 * app/recent_files.c:
11532 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
11533 a menu bar reflecting the popup menu, to each display window. This
11534 is optional (changing the preference currently doesn't affect
11535 already opened windows; a few other rough edges to cut).
11537 * plug-ins/wpg/wpg.c:
11538 * plug-ins/xfig/xfig-import.c:
11539 * plug-ins/python/pydia-property.c:
11540 * plug-ins/python/pydia-properties.c:
11541 * plug-ins/python/pydia-geometry.c:
11542 * plug-ins/pstricks/render_pstricks.c:
11544 * objects/EML/dbox.c:
11545 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
11548 * lib/ps-utf8.c: improved the clustering of alphabetic character
11549 definitions in custom encodings pages.
11551 2001-05-02 Hans Breuer <hans@breuer.org>
11553 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
11554 of 'obj_bb' to PROP_TYPE_RECT
11556 * objects/custom/custom_object.c : take all quarks into account,
11557 not only 4 as copy&paste suggests
11559 * objects/uml/objects.c : completed the implementation of the
11560 property api to avoid reading of totally bogus data. Removed
11561 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
11562 there was too much but too less ...
11564 The above changes removed all known crashes (mentioned below)
11565 from the Property API. Property access is still incomplete though.
11567 * objects/flowchart/box.c :
11568 * objects/flowchart/diamond.c :
11569 * objects/flowchart/ellipse.c :
11570 * objects/flowchart/parallelogram.c :
11571 * objects/uml/classicon.c :
11572 * objects/uml/state.c : calculate number of quarks from quark array
11573 size instead of using hardcoded values for consistence and to avoid
11574 future bugs like the above
11576 * objects/eml/nlist.c : include <string.h> for strcmp()
11578 * lib/dia_xml.c : relax g_warning for values, which
11579 appear to be too small. There is nothing which prevents
11582 * plug-ins/python/pydia-geometry.c : changed stringifying of
11583 geometry objects accept BezPoint back to %f, which does not
11584 crash anymore, because all the data is intialized now and it
11585 simply is more readable than %e ...
11587 * plug-ins/python/python-startup.py : removed dependency
11588 to PyGtk, because it isn't required here and probably won't
11589 in i.e.: export filters.
11591 * plug-ins/python/gtkcons.py : create the gtkoutfile even
11592 if sys.stderr.fileno() isn't supported
11594 * app/makefile.msc : make version 0.88
11595 * plug-ins/makefile.msc : make version 0.88 an added new
11596 xfig files to build
11598 2001-05-11 James Henstridge <james@daa.com.au>
11600 * NEWS: remember to add news items this time.
11602 * dia.spec: update spec file for 0.88 release.
11604 * configure.in: up version number to 0.88
11606 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
11607 preventing any of the useful python scripts from being
11610 * sheets/Makefile.am (sheet-translation-report): fix bustage I
11611 introduced in my fixups for the 0.87 release :(
11613 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
11615 * plug-ins/xfig/xfig-import.c: Finally got groups working.
11617 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
11619 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
11620 group manipulation.
11622 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
11624 * lib/ps-utf8.[ch]:
11625 * lib/Makefile.am: fix makefile breakage which led to not
11626 including ps-utf8.[ch] in the released tarballs.
11628 2001-05-09 James Henstridge <james@daa.com.au>
11630 * Makefile.am (core-translation-report): dist scripts needed for
11631 this target, and change to $(srcdir) before running.
11633 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
11634 files aren't automatically included in the tarball by automake
11635 because they could be generated files.
11637 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
11639 * doc/en/Makefile.am (install-data-hook): fix up where graphics
11642 * configure.in: up version number to 0.87
11644 * plug-ins/python/*.py: no longer necessary to explicitly set
11645 sys.argv, as python.c does it for us now (like it should).
11647 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
11650 * plug-ins/python/python-startup.py: startup script that imports
11651 all modules in $(datadir)/dia/python and ~/.dia/python.
11653 * plug-ins/python/python.c (dia_plugin_init): change so that it
11654 only runs the $(datadir)/dia/python-startup.py script. Make sure
11655 that sys.argv and __main__.__file__ are set when calling the
11658 * plug-ins/python/Makefile.am: update makefile. Make it install
11659 gtkcons.py plugin. I haven't set any other plugins to install, as
11660 they look like they are mainly for debugging purposes.
11662 * configure.in: add tests to detect if python is available, so we
11663 can build the python plugin. Only run if --with-python passed to
11666 2001-05-08 James Henstridge <james@daa.com.au>
11668 * acinclude.m4: add macros for detecting python.
11670 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
11671 at GNOME_APP_UI_SUBTREE entries.
11672 (menus_add_path): function to add a menu item to the menubars.
11673 Uses a hash table to keep track of extra menu items it adds. Also
11674 notifies the item factory about the entries so that accels can be
11676 (menus_add_path): implement gtk only version.
11677 (menus_init): use menus_add_path() to add the menu.
11678 (plugin_callback): simplify.
11680 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
11682 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
11684 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
11686 * plug-ins/xfig/xfig-export.c:
11687 * plug-ins/xfig/xfig-common.c:
11688 * plug-ins/xfig/xfig-import.c:
11689 * plug-ins/xfig/xfig.c:
11690 * plug-ins/xfig/xfig.h:
11691 * app/Makefile.am: Added support for exporting to Fig format
11692 (except splits, which are less powerful in Fig). Some refactoring
11695 2001-05-02 Hans Breuer <hans@breuer.org>
11697 * plug-ins/python/debug_objects.py : added another
11698 test to get massive crashes from the Property API due
11699 to unintialized data.
11701 * app/menu.c : the callback_action wasn't incremented
11702 (should have checked my last optimization). Now more
11703 than one plug-in callback is supported again.
11705 * plug-ins/python/pydia-geometry.c : avoid crashes from
11706 glib, when trying to g_strdup_printf unintialized floats.
11708 * plug-ins/python/pydia-property.c : avoid crashes from
11709 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
11711 2001-05-01 Hans Breuer <hans@breuer.org>
11713 * objects/makefile.msc : added eml
11714 * objects/eml/instantiation.c : initialize 'inst' pointer
11715 before using, zero initialization for objects
11716 * objects/eml/interaction-ortho.c :
11717 * objects/eml/interaction.c : zero initialization for objects
11719 * app/menus.c : removed Gimp mru stuff which slipped in at
11720 2000-08-15, was never activated and will never be needed,
11721 because of Steffens recent file list patch added at 2001-01-05.
11723 * objects/eml/*.c : some more zero initialization of objects
11724 to avoid infinite (uninitialized) bounding boxes
11726 Implemented a callback api which allows plug-ins to register
11727 menu call backs. Dia for Gnome should compile, but will need
11728 some extra tweaking to make it work because I can't test it.
11730 * plug-ins/python/pydia-error.h :
11731 * plug-ins/python/pydia-render.c : moved Pxthon function return
11732 value handling from pydia-render.c to pydia-error.h, to make it
11734 * plug-ins/python/diamodule.c : implement callback function
11735 registration from and relaying to Python code
11737 * app/menus.c : register and use plug-in menu callbacks
11739 * lib/filter.[hc] : implement filter_register_callback() and
11740 filter_get_callbacks() for the above
11741 * lib/libdia.def : export them
11743 * plug-ins/python/debug_objects.py (new file):
11744 sample using the above
11746 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
11748 * plug-ins/shape/shape-export.c (new_shape_renderer):
11749 The name of a shape is now taken from the dir, to conform with
11752 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
11754 * app/properties.c (properties_show): Added title containing
11755 object type, plus (hopefully) fix of the ghost properties dialog.
11757 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
11759 * app/display.c: remove the display idle handler in case we
11760 destroy the ddisplay (caused crashes in ddd, probably random
11761 crashes elsewhere).
11765 * Makefile.am: hack around gettext-0.10.36's new "features".
11767 * lib/properties.[ch]: added new function object_copy_props().
11768 Added new property type PROP_TYPE_ENDPOINTS
11770 * lib/connection.h: added support for load/saving through the
11771 properties interface.
11773 * lib/object.[ch]: object_load/save/copy_using_properties()
11774 support functions (code factorisations).
11776 * objects/GRAFCET/boolequation.c: check against null values in
11777 boolequation_set_value() and boolequation_destroy().
11779 * objects/GRAFCET/transition.c: Converted from lazyprops to
11780 standard properties. 31% less (x86) code !
11782 * objects/GRAFCET/condition.c: also converted from lazyprops to
11783 standard properties. Also killed lots of code.
11785 2001-04-13 Hans Breuer <hans@breuer.org>
11787 * plug-ins/wmf/wmf.cpp : changed text conversion from
11788 g_utf8_utf16 to g_convert usage. The latter function is already
11789 available in tml's last "official" Gtk+ version (2000-12-26).
11790 This change allows to use recent Dia with either the official
11791 version or the latest cvs "gtk-1-3-win32-production"-branch.
11793 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
11795 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
11796 * app/disp_callbacks.c:
11797 - Allow submenus in DiaMenus.
11798 - Don't require DiaMenu.title to be non-null (so that
11799 submenus aren't required to have titles)
11801 * objects/FS/function.c:
11802 - object menu now has submenus, an almost complete list of
11803 standard-basis verbs, and a start on nouns.
11804 - box padding, dash length, and other visual attributes are
11805 scaled by the font size... eventually font height will be
11806 a function property.
11807 - draw functions with smaller font to make initial view hold
11808 a reasonable number of functions.
11810 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
11813 * sheets/chronogram.sheet:
11814 * sheets/jigsaw.sheet:
11815 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
11816 Wieers <dag@wieers.com>
11818 2001-04-13 Hans Breuer <hans@breuer.org>
11820 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
11821 to ensure that all the deinitialization is only done once. Fixes
11822 recent app exit crash on win32
11824 * lib/dia_xml.c : provide isinf() replacement for msc which does only
11827 * lib/libdia.def : updated
11829 * objects/makefile.msc : added wanlink.c
11831 * objects/network/wanlink.c : added M_PI_2 definition for poor
11832 platforms which don't have one
11834 * objects/standard/arc.c :
11835 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
11836 initialized which led to rather huge bounding boxes (try Ctrl^A on
11837 diagrams with Arcs or ZigZagLines).
11838 * objects/*/*.c : to avoid further bugs like the above changed all
11839 object initializations to g_malloc0 or g_new0
11842 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
11844 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
11845 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
11847 * objects/UML/class.c:
11848 * objects/UML/usecase.c:
11849 * objects/UML/large_package.c:
11850 * objects/UML/message.c:
11851 * objects/UML/object.c:
11852 * objects/UML/lifeline.c:
11853 * objects/FS/flow.c:
11854 * objects/FS/flow-ortho.c:
11855 * objects/FS/function.c:
11856 * objects/custom/custom_object.c:
11857 * objects/GRAFCET/vergent.c:
11858 * objects/chronogram/chronoref.c:
11859 * objects/SADT/box.c:
11860 * objects/SADT/annotation.c:
11861 * plug-ins/dxf/dxf-import.c:
11862 * plug-ins/xfig/xfig-import.c:
11863 * plug-ins/wpg/wpg.c:
11866 * app/display.c: /* certainly more WIP than dead code there */
11867 Unused variables, unused static function definitions, forgotten or
11868 incomplete prototypes added or fixed, lack of const or unwanted const,
11869 etc. (mostly clean-ups of leftovers of the pre-properties era).
11870 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
11871 please check these.
11873 * app/lineprops_area.c: More of the same. Missing prototypes
11874 added, and functions unused outside made static.
11876 * app/recent_files.c:
11877 * app/properties.c:
11878 * app/defaults.c: some variables are used only when doing a GNOME
11881 * app/magnify.c: missing #include <stdlib.h>.
11883 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
11885 These are a lot of clean-ups (by the way, this compiles and runs
11886 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
11887 for DEAD_CODE, and if it's yours, judge it.
11889 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
11891 * plug-ins/dxf-import.c: some progress with the arcs; still some
11892 clean-ups to do and line width scaling issues to figure out.
11894 * objects/standard/arc.c: start_point and end_point properties
11895 (duplicated from standard/line.c)
11897 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
11900 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
11902 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
11903 preliminary support for arcs (doesn't work). Circles and ellipses are
11904 now transparent. Coordinate and width scaling are now a common
11905 static constant (probably before morphing into a preference).
11907 * sheet/checktrans.py: improved error reporting. Made checktrans
11908 count lack of <name xml:lang="code"> as a lack of translation for
11909 language "code" (no, it's not a plot to bring down other
11910 language's scores !)
11912 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
11913 in the header, and have <name xml:lang="fr"> components.
11915 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
11917 * objects/custom/custom_object.c: temporary hack to fix the shape
11918 bounding box reported by Ben A. Hetland. Proper fix isn't .87
11919 material, see bugzilla #52912.
11921 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
11923 * objects/standard/image.c (get_directory): Now uses
11924 G_SEPARATOR_CHAR_S instead of "/"
11926 * sheets/network.sheet:
11927 * sheets/Logic.sheet:
11928 * sheets/Flowchart.sheet:
11929 * sheets/Electric.sheet:
11930 * sheets/Circuit.sheet:
11932 * sheets/Pneumatic.sheet:
11933 * sheets/SDL.sheet:
11934 * sheets/UML.sheet:
11935 * sheets/GRAFCET.sheet:
11936 * sheets/MSE.sheet:
11937 * sheets/chronogram.sheet:
11938 * sheets/civil.sheet:
11939 * sheets/network.sheet:
11940 Danish translations.
11942 * objects/standard/image.c (get_directory): Changed get_directory
11943 to use g_dirname to find the directory part.
11945 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
11948 * sheets/Electric.sheet:
11949 * sheets/Flowchart.sheet:
11950 * sheets/Logic.sheet:
11951 * sheets/network.sheet: More Dutch translations from Dag Wieers.
11953 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11955 * sheets/checktrans.py: now emits a warning when two descriptions
11956 for a single language code are found.
11959 * sheets/Makefile.am: -translation-reports now also depend on their
11962 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11964 * sheets/Circuit.sheet:
11965 * sheets/Contact.sheet:
11966 * sheets/Logic.sheet:
11967 * sheets/chronogram.sheet:
11968 * sheets/sybase.sheet:
11969 Dutch translations from Dag Wieers <dag@wieers.com>
11971 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11973 * po-checktrans.py: Now shows the detailed counts alongside the
11974 percentage of translations.
11976 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
11979 * po-checktrans (NEW):
11980 * po-checktrans.py (NEW): builds core-translation-report:
11981 percentages of core (gettext) translations done [Not placed into
11982 po/ where that should belong, because of integration fear^Wissues
11985 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
11986 sheets/sheet-translation-report probably ought to be copied on the
11987 user's /usr/share/doc/dia (or equivalent) directory.
11989 * sheets/Makefile.am: sheet-translation-report now a simple
11990 EXTRA_DIST; make install won't install it by default.
11992 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
11994 * app/preferences.c: changed the default grid colour to something
11997 * shapes/SDL/*.shape:
11998 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
11999 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
12000 DIA FILES (well, for files using SDL), see the mailing list
12001 archive "SDL (ab)using the global shape namespace" for a script to
12002 do this conversion.
12004 * sheets/SDL.sheet: translated into French
12005 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
12007 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
12009 * lib/dia_xml.c: made data_point() more paranoid
12011 * sheets/Makefile.am:
12012 * sheets/checktrans (NEW):
12013 * sheets/checktrans.py: Made checktrans handle more gracefully the
12014 absence of python and python-xml packages, and made the error
12015 message more helpful.
12017 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
12019 * lib/render_object.c (new_render_object): Made initial handles
12020 behave like on most other objects.
12022 * app/load_save.c (read_objects): Fixed premature free'ing ofr
12023 typestr causing garbage.
12025 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
12027 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
12028 accouting for handle ordering through copy and save. (#51479)
12030 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
12032 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
12034 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
12036 * sheets/Circuit.sheet
12038 * sheets/network.sheet: Updated German translations
12040 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12043 * app/lineprops_area.c: The return of the revenge of the arrow
12044 heads. Now all types covered by ISO 10303-201 should be covered.
12046 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12048 * sheets/Flowchart.sheet: translations in probably Hungarian were
12049 a victim of cut-n-paste from the German one. Fixed (hopefully).
12050 * sheet/UML.sheet: translation in probably Norwegian was a victim
12051 of cut-n-paste from the French one. Fixed (hopefully).
12052 * sheets/Logic.sheet: French translation not tagged with
12055 * sheets/checktrans.py:
12056 * sheets/Makefile.am: new file, sheet-translation-report, to be
12057 installed along the sheets, show how much of them has been
12058 translated into which language (I wish the result was prettier...)
12060 * po/README: most translators don't read this file, but anyway...
12062 * sheets/.cvsignore:
12063 * objects/network/.cvsignore: the usual negotiation with CVS.
12065 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12067 * sheets/*.sheet: French translations
12069 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
12071 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
12073 ** objects/network/network.c:
12074 ** objects/network/wanlink.c:
12075 ** objects/network/pixmaps/wanlink.c:
12076 ** sheets/network.sheet:
12077 ** objects/network/Makefile.am: a better object to use instead of
12078 the older WAN Connection.
12080 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
12082 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
12085 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
12086 Arc; kept the C file name (because CVS wouldn't like it), and
12087 still registering the older object name (but advertising the newer
12088 one in sheets/GRAFCET.sheet).
12090 2001-03-24 Hans Breuer <hans@breuer.org>
12092 * app/dia.def : some plug-ins (currently only python, xfig) are using
12093 functions from the dia executable. To get them working these functions
12094 need to be explicit exported on win32. IMO the much cleaner way would
12095 be to move these functions to libdia, but that would require some
12096 long term restructuring ...
12098 * lib/libdia.def : updated
12100 * plug-ins/makefile.msc : build xfig plug-in
12102 2001-03-24 Hans Breuer <hans@breuer.org>
12104 * app/diagram.c : g_strdup (dia->filename) because it will be
12107 * app/display.c : set ddisp->renderer to NULL after destruction.
12108 This may solve or help to identify erroneous access to it after
12111 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
12112 get 'umlauts' working
12114 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
12116 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
12117 were reversed... (look for the patch, and drink a beer to my
12120 2001-03-23 Hans Breuer <hans@breuer.org>
12122 * app/app_procs.c : don't g_error () if the config directory
12123 can't be created (at least not on windoze) because it's quite
12124 common that the user don't read or understand the FAQ ...
12126 * app/cursor.c : use ddisplay_active () instead of active_display
12129 * app/display.[hc] : made active_display var static and provide
12130 an accessor funtion ddisplay_active_diagram ()
12132 * app/dia-props.c : don't store the active_diagram, but ask
12133 for it everytime it needed.
12135 * lib/properties.h : #include "intl.h"
12137 * lib/makefile.msc : need to take care of inclusion order to
12138 avoid clashes with gtk+2.0's gdk-pixbuf
12140 * objects/makefile.msc : added uml/stereotype.c to build
12142 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
12144 * **/*.c: Added config.h to the remaining .c files, and changed
12145 all to be <config.h>.
12147 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
12152 * app/lineprops_area.c: added new arrow types with double
12155 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
12157 * shapes/Civil/civil_gas_bottle.xpm
12158 * shapes/Civil/civil_gas_bottle.shape
12159 * sheets/civil.sheet
12160 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
12163 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
12165 * objects/custom/shape_info.c (load_shape_info):
12166 * objects/custom/shape_info.h:
12167 * objects/custom/custom_object.c (custom_update_data):
12168 Better support for text outside the box -- new attributes 'resize'
12169 and 'align' for text entity. Align not fully supported yet.
12171 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
12173 2001-03-20 James Henstridge <james@daa.com.au>
12175 * app/interface.c (display_data_received_callback): comment out
12178 2001-03-19 James Henstridge <james@daa.com.au>
12180 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
12182 * objects/UML/realizes.c: similar here.
12184 * objects/UML/implements.c: similar here.
12186 * objects/UML/component.c: similar here.
12188 * objects/UML/generalization.c: same here.
12190 * objects/UML/dependency.c: allow NULL for ->name and
12191 ->stereotype. This fixes a number of problems in loading saved
12194 * lib/properties.c: various changes so that NULL string properties
12197 * objects/standard/line.c (line_update_data):
12198 line->extra.start_long and line->extra.end_long were not being
12199 initialised. This fixes potential problems with the bounding box
12200 of "Standard - Line" objects.
12202 2001-03-19 Hans Breuer <hans@breuer.org>
12204 * app/commands.c : added win32 specific code to display a html
12205 file. #include "text.h" for text_delete_all prototype.
12208 * app/dia.rc : (new) to give Dia win32 an icon
12210 * app/win32print.[ch] : new files to support direct postscript
12211 file printing on win32. Beware: it *requires* a ps-printer!
12213 * app/paginate_psprint.c : disable the signal code for win32 build
12214 and added small specific changes to support win32print.
12216 * app/makefile.msc : added win32print and linking shell32.lib
12218 * lib/libdia.def : updated
12220 2001-03-18 Kevin Breit <battery841@mediaone.net>
12222 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
12225 2001-03-17 James Henstridge <james@daa.com.au>
12227 * app/paginate_psprint.c (diagram_print_ps): add code that traps
12228 SIGPIPEs during printing. This gets rid of a number of crashes
12229 caused by printing (eg. typing an incorrect print command).
12231 * dia.spec (%install): gzip the manpage.
12233 * lib/beziershape.c (beziershape_save): fix off by one error in
12234 beziershape save code, which was adding an extra segment to the
12237 * app/menus.c: add a separator in the gnome version of the help
12240 * app/app_procs.c (app_init): add a --nosplash argument which
12241 disables the splash screen.
12243 * app/dia_embedd.c (main): don't leave the splash screen open for
12244 embeddable component.
12246 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
12247 didn't seem to be showing the splash screen like expected, so I
12248 have replaced it with some code that calls gtk_main() until the
12249 first exposure of the window.
12251 2001-03-16 James Henstridge <james@daa.com.au>
12253 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
12255 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
12258 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
12260 * app/Makefile.am (dia_core_files): remove splash.h from file
12261 list, as it doesn't exist.
12263 * doc/en/Makefile.am (uninstall-local): remove the docdir on
12266 * doc/Makefile.am (uninstall-local): target to remove the C
12269 * dia.spec (%files): include the documentation in the package.
12271 * app/menus.c (toolbox_menu_items): add menu item for manual,
12272 which calls help_manual_callback.
12274 * app/commands.c (help_manual_callback): find help file and load
12275 netscape to view it.
12277 * app/commands.h: add prototype for help_manual_callback()
12279 * doc/Makefile.am (helpdir): similar here.
12281 * doc/en/Makefile.am (helpdir): make the helpdir
12282 $(pkgdatadir)/help/en in the non gnome case.
12284 * configure.in (HAVE_GNOME): add conditional.
12286 * doc/en/Makefile.am: handle the graphics in a more general way,
12287 so it is easier for Kevin to add them to the build (just add them
12288 to the GRAPHICS var).
12290 * app/Makefile.am (embed_extra_print_files): make the case of
12291 building without gnome-print support but with bonobo support work.
12292 dia-embedd needs to be include the gnome-print
12294 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
12296 * samples/Makefile.am: included all samples in the distribution....
12298 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
12300 * configure.in: removed premature test for DPS. Added -*- m4 -*-
12301 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
12302 vanished, removed it from ALL_LINGUAS.
12304 * lib/charconv.[ch] (NEW): a very small wrapper around
12305 unicode_iconv to convert strings between utf8 and local charset
12306 (actually, ISO-8859-1, though one can do
12307 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
12309 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
12310 library to help build Postscript streams which use as many custom
12311 font encodings as necessary to correctly represent all characters
12312 used (testing from users with non-latin1 and/or more than 256
12313 characters in routine use *very* welcome).
12315 * app/Makefile.am, lib/Makefile.am: integrated these into the
12318 * shapes/Logic/.cvsignore (NEW): .cvsignore
12320 * app/render_eps.h: forwarded some changes Lars forgot to include.
12321 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
12324 2001-03-08 Kevin Breit <battery841@mediaone.net>
12326 * doc/en/home_network.png: Added file.
12327 * doc/en/line_props.png: Added file.
12328 * doc/en/usage-objects.sgml: Added two graphics to file.
12329 * doc/en/usage-quickstart.sgml: Added one graphic to file.
12331 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
12333 * app/grid.h: Place comment around text after #endif.
12334 * lib/bezier_conn.c: #include <string.h>.
12335 * lib/beziershape.c: #include <string.h>.
12336 * lib/connpoint_line.h: Comment after #endif.
12337 * lib/dia_dirs.c: #include <string.h>.
12338 * lib/element.c: Same.
12339 * lib/lazyprops.c: #include <config.h> and "intl.h".
12340 * lib/lazyprops.h: Comment out text after #endif.
12341 * lib/neworth_conn.c: #include <string.h>
12342 * lib/orth_conn.c: Same here.
12343 * lib/poly_conn.c: Here too.
12344 * lib/polyshape.c: And here.
12345 * lib/properties.c: Remove #include "intl.h" from here and add
12346 an array of static strings to work around bug in gettext that
12347 makes it miss strings in a #define body.
12348 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
12349 * objects/GRAFCET/boolequation.h: Same here.
12350 * objects/chronogram/chronoline_event.h: Add prototype for
12353 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12355 * objects/FS/function.c:
12356 * objects/FS/flow.c:
12357 * objects/FS/flow-ortho.c:
12358 Updated to use properties.
12360 2001-03-03 James Henstridge <james@daa.com.au>
12362 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
12363 button labels when creating them.
12365 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12367 * objects/UML/actor.c
12368 * objects/UML/realizes.c
12369 * objects/UML/implements.c
12370 * objects/UML/generalization.c
12371 * objects/UML/dependency.c
12372 * objects/UML/constraint.c
12373 Updated to use properties.
12375 * objects/UML/stereotype.c
12376 * objects/UML/stereotype.h
12377 Generalized to any kind of bracketting.
12379 2001-02-28 James Henstridge <james@daa.com.au>
12381 * app/menus.c: add help entry to the help menu. Need to get this
12382 working for the non GNOME case as well (maybe put help under
12383 $(datadir)/dia/help for non GNOME?)
12385 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
12387 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
12388 this element so that we get a meaningful filename in the html
12391 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
12394 * configure.in (DB2HTML): add a check for the db2html program, and
12395 set an automake conditional if it is found.
12397 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
12398 and descend into doc/ directory while building.
12400 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
12401 we need more complex rules for building the docs.
12403 2001-02-25 Hans Breuer <hans@breuer.org>
12405 * config.h.win32 : some cleanup
12407 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
12408 are deprecated since glib-1.3.2. Sorry needing to use them
12409 contionally, but there is no glib-1.2 for win32
12411 * app/recent_files.c : use g_strescape (params) conditionally
12413 * lib/connection.c : include string.h for memcpy
12415 * lib/geometry.h : added some stuff for compatibility with
12416 msvc, which previously came from included config.h
12418 * lib/libdia.def : updated
12420 * objects/makefile.msc : updated
12422 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
12423 'extra' used without having been initialized
12425 * objects/network/bus.c(658) : initialize 'extra'
12427 * plug-ins/makefile.msc : updated
12429 * plug-ins/cgm/cgm.c :
12430 * plug-ins/pstricks/render_pstricks.c :
12431 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
12434 * plug-ins/python/python.c : use HAVE_DIRENT_H
12436 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12438 * lib/connection.c (connection_update_boundingbox):
12439 Made the BB shrink on right and lower sides, too.
12441 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
12443 * */*.c: #incude <config.h> at the top.
12444 * */*.h: Remove include of "config.h" since it should only
12445 be included in .c files and at the very top for things to
12447 * sheets/*.sheet: Updated Norwegian translations.
12449 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12451 * objects/UML/small_package.c:
12452 * objects/UML/class.c:
12453 * objects/UML/node.c:
12454 * objects/UML/usecase.c:
12455 * objects/UML/lifeline.c:
12456 * objects/UML/message.c:
12457 Various cleanup of properties in particular. Now much more use of
12458 standard properties.
12460 * lib/diagramdata.c (layer_render): Visualization of bounding
12461 boxes, for debugging purpoises.
12463 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
12466 * lib/connection.[ch]:
12467 * lib/poly_conn.[ch]:
12468 * lib/polyshape.[ch]:
12469 * lib/bezier_conn.[ch]:
12470 * lib/beziershape.[ch]:
12471 * lib/orth_conn.[ch]:
12472 * lib/neworth_conn.[ch]:
12473 * lib/element.[ch]: Changed a bit the _update_boundingbox()
12474 interface. Now the parent elements have an extra_spacing
12475 structure, which child objects just need to fill, to take care of
12476 most arrow & line width extra space needs.
12478 * objects/**/*.c: updated all objects to the new interface.
12479 While at it, killed all instances of (Object *) downcasts (phew !)
12481 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
12482 doesn't speak about.
12484 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12486 * sheets/Logic.sheet: New sheet for Logic symbols.
12488 2001-02-21 James Henstridge <james@daa.com.au>
12490 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
12491 widget by its path name. Walks the GnomeUIInfo heirachy rather
12492 than widget tree, compares untranslated label names and ignores
12493 underscores in the labels.
12494 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
12495 lookups are not dependent on the current locale, as with
12496 gnome_app_find_menu_pos.
12498 * acconfig.h: guard against multiple inclusion of config.h.
12500 * app/select.c (select_style_callback): simply set the selection
12501 style to the value of action.
12503 * app/menus.c (menus_init): simplify the item factory based menu
12504 code a bit. It looks like it was using some code cut and pasted
12505 from the gimp, which looked a bit unnecessary. Things work fine
12507 (selectmenu): set the action to the type of selection mode
12509 (display_menu_items): use the symbolic enumeration values for the
12512 * app/plugin-manager.c:
12513 * app/plugin-manager.h:
12517 * app/select.h: change prototypes.
12519 * app/commands.c: update all callback prototypes, and get rid of
12520 some #ifdef GNOME's.
12522 * app/commands.h: change function prototypes.
12524 * app/dia_embedd.c (save_fn):
12525 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
12527 * app/menus.c (menus_init): for gnome menus, use
12528 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
12529 structure that proxies the callbacks to have the same signature as
12530 GtkItemFactory type 1 callbacks.
12531 (menus_init): for GTK menus, change from callback type 2 to type
12533 (display_menu_items): add back tearoffs. I don't know who removed
12534 these for the gtk menu case.
12536 2001-02-20 Kevin Breit <battery841@mediaone.net>
12538 * doc/en/usage-objects-special.sgml: Fixed a few of the special
12539 object descriptions. More to come in the next few days.
12541 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
12543 * app/render_eps.c: Fixed for internationalized floating point
12546 * objects/UML/note.c: Fixed properties -- was missing
12547 Get/ApplyPropertiesFunc. Also improved update to recalculate text
12550 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
12552 * plug-ins/xfig/xfig-import.c:
12553 File added importing xfig files. Still very rough, but good
12554 enough to let others hack on it.
12556 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
12559 * app/linewidth_area.c:
12561 * lib/properties.c:
12563 * objects/ER/attribute.c:
12564 * objects/ER/entity.c:
12565 * objects/ER/relationship.c:
12566 * objects/custom/custom_object.c:
12567 * objects/flowchart/box.c:
12568 * objects/flowchart/diamond.c:
12569 * objects/flowchart/ellipse.c:
12570 * objects/flowchart/parallelogram.c:
12571 * objects/standard/box.c:
12572 * objects/standard/textobj.c: per Vlad Harchev's request, made
12573 page sizes of gtk_adjustments different than their step sizes.
12574 When sensible values of page size weren't found (overwhelming
12575 majority of cases), page sizes were set to 10.0 * respective step
12578 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
12580 * objects/network/hub.c:
12581 Patch from Hubert Figuiere applied, adding connection points.
12583 2001-02-02 James Henstridge <james@daa.com.au>
12585 * app/display.c (new_display): set update id to 0 here.
12586 (ddisplay_update_handler): rename from ddisplay_flush, and set
12587 update_id to 0 at end of processing.
12588 (ddisplay_flush): new implementation that simply sets an idle
12589 handler to perform the actual drawing.
12591 * app/display.h: add structure member to hold the redraw idle
12594 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
12596 * objects/standard/ellipse.c (ellipse_copy):
12597 * objects/standard/zigzagline.c (zigzagline_copy):
12598 Fix of copying provided by Martin Hawlisch.
12600 2001-01-23 Kevin Breit <battery841@mediaone.net>
12602 * doc/en/graphics/: added directory
12604 * doc/en/graphics/greendots.png: added file
12606 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
12609 2001-01-23 Kevin Breit <battery841@mediaone.net>
12611 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
12612 thanks to John Fleck!
12614 2001-01-21 Kevin Breit <battery841@mediaone.net>
12616 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
12618 2001-01-12 Michael Meeks <michael@helixcode.com>
12620 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
12621 so our POA gets setup properly.
12623 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
12624 things we g_malloc.
12626 * configure.in: Use bonobox_print.
12628 * app/dia_embedd.c (embeddable_factory): add print interface.
12629 (object_print): impl.
12631 2001-01-11 Michael Meeks <michael@helixcode.com>
12633 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
12634 (load_fn, save_fn): impl.
12635 (view_factory): hide modified status bar, & use activate fn.
12636 (refresh_view): force redraws of the views.
12637 (view_show_hide): split from
12638 (dia_view_activate): here.
12640 * app/diagram.c (diagram_load_into): split from diagram_load.
12641 (new_diagram): simplify bu splittin stuff into
12642 (diagram_init): here.
12644 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
12646 * shapes/jigsaw/*.shape: replaced #000000 with foreground
12647 and #ffffff with background
12649 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
12651 *configure.in: GTK+-build was broken due to missing
12654 2001-01-06 Michael Meeks <michael@helixcode.com>
12656 * app/dia_embedd.c (main): add running context support.
12657 (dia_embeddable_destroy): remove old running object counting.
12658 (embeddable_factory): ditto.
12659 (view_factory): comment out menu path hiding.
12661 * lib/sheet.c (load_register_sheet): use free to free
12662 stuff from libxml not g_free.
12664 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
12666 * configure.in: remove USE_OAF checks, check for a precice
12667 Bonobo version >= 0.31, revamp bits.
12669 * app/dia_embedd.c (init_server_factory): upd.
12670 (init_dia_factory): remove OAF conditionals, everything uses
12673 * app/GNOME_Dia.oafinfo: rename OAFIIDs
12675 * app/Makefile.am: remove ancient gnorba code.
12676 rename dia.oafinfo to GNOME_Dia.oafinfo
12678 2001-01-07 Hans Breuer <Hans@Breuer.Org>
12682 * readme.win32 : some more files required or useful to build
12685 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
12686 fill_bezier implementation, boundary drawing in fill mode, etc.
12687 Next one complaining gets the source, uncommented ...
12689 * shapes/network/router-symbol.xpm
12690 * shapes/network/switch-atm-symbol.xpm
12691 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
12692 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
12693 the files as XPMs. Maybe the X versions of these functions are more
12696 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
12698 * plug-ins/python/Makefile.am: added libart path
12700 * plug-ins/python/python.c: added dirent.h
12702 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
12704 2001-01-06 Hans Breuer <Hans@Breuer.Org>
12706 * objects/uml/actor.c
12707 * objects/uml/branch.c
12708 * objects/uml/class.c
12709 * objects/uml/classicon.c
12710 * objects/uml/component.c
12711 * objects/uml/large_package.c
12712 * objects/uml/node.c
12713 * objects/uml/note.c
12714 * objects/uml/object.c
12715 * objects/uml/small_package.c
12716 * objects/uml/state.c
12717 * objects/uml/usecase.c : started to implement the generic property
12718 interface for the uml objects. Would appreciate some help on how
12719 to implement properties which are list of properties themselves,
12720 e.g. member functions and their parameters of UMLClass.
12722 2001-01-06 Hans Breuer <Hans@Breuer.Org>
12724 * plug-ins/python/diamodule.c : finally ported to win32.
12725 Added new objects and implemented register_export function.
12727 * plug-ins/python/pydia-object.h
12728 * plug-ins/python/pydia-display.c
12729 * plug-ins/python/pydia-handle.c
12730 PyObject_HEAD_INIT needs some tweakink on win32. Done in
12731 pydia-object.h; others files simply using it.
12733 * plug-ins/python/pydia-layer.c : reflect
12734 layer_find_closest_connection(_)point renaming
12736 * plug-ins/python/pydia-object.c : add property properties.
12737 Also change bounding_box to DiaRectangle.
12739 * plug-ins/python/python.c : extended error reporting; use
12740 all *.py files from Dia's plug-in dir instead of hardcoded
12741 test.py. This sollution should be fine with Win32, but on
12742 Unix it may need some tweaking (dunno) ...
12744 * plug-ins/python/export-object.py
12745 * plug-ins/python/export-render.py : test and documentation
12746 implementations for export filter implementations in Python
12748 * plug-ins/python/pydia-color.[hc]
12749 * plug-ins/python/pydia-diagramdata.[hc]
12750 * plug-ins/python/pydia-error.[hc]
12751 * plug-ins/python/pydia-export.[hc]
12752 * plug-ins/python/pydia-font.[hc]
12753 * plug-ins/python/pydia-geometry.[hc]
12754 * plug-ins/python/pydia-image.[hc]
12755 * plug-ins/python/pydia-properties.[hc]
12756 * plug-ins/python/pydia-property.c
12757 * plug-ins/python/pydia-render.c : new objects in new files
12759 * plug-ins/python/makefile.am : added new files but can't test it
12761 * plug-ins/python/pydia.def
12762 * plug-ins/python/makefile.msc : for win32 build
12764 * plug-ins/cgm/cgm.c
12765 * plug-ins/dxf/dxf-import.c
12766 * plug-ins/dxf/dxf-export.c
12767 * plug-ins/hpgl/hpgl.c : reflect export API change
12769 * plug-ins/shape/shape-export.c : reflect export API change
12770 and check for libart (better the availibility of a png exporter)
12771 at run-time instead of compile-time.
12773 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
12775 * app/recent_files.h was missing from Hans's commit
12777 * plug-ins/shape/shape_export.c: shape export was broken
12778 due to interface changes
12780 2001-01-05 Hans Breuer <Hans@Breuer.Org>
12782 Applied Steffen's recent file list patch :
12783 * app/Makefile.am : added recent_files.[hc]
12784 * app/diagram.c : add files to recent file list
12785 * app/menus.c : add recent file menu
12786 * app/app_procs.c : changed initialization order to
12787 make recent file list work with command line processing.
12789 The Filter export()/import() functions have got an additional
12790 parameter to allow multiple filters via one C callback (required
12791 for Python bindings)
12793 * app/commands.[hc] : corrected the signature for gtk menu callback
12794 functions, which actually use the second or third parameter. This
12795 is the absolute minimum change to make these functions/menu entries
12796 work again. Using the other possible gtk menu callback signature
12797 would have required one more function to change. (see mailing list
12798 thread "Objects/Align/Equal Distance" for more information.
12800 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
12801 zoom-combo focus patch
12804 * app/interface.c : wrapped the Zoom Combo code into
12805 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
12806 improvement but cluttering the user interface. Also it wasn't
12807 compiling on Win32 anyway. The win32 version does define
12808 WITHOUT_ZOOM_COMBO to keep the old look.
12809 There are plans to use the statusbar to display size and placement
12810 of selected objects, whereas the Zoom Combo would need to get out
12811 of the way as well.
12813 Added "Save Changes?" to diagram close dialog. Hopefuly the
12814 Yes/No/Cancel option isn't too much windoze like. IHMO this is
12815 an useability improvement.
12820 * app/layer_dialog.c
12821 * app/paginate_psprint.c
12823 - reflect signature changing of filter->export function
12824 - replaced '/' with G_DIR_SEPARARTOR where appropriate
12826 * app/diaunitspinner.c
12827 * app/render_libart.c
12828 added misssing headers like <string.h>
12830 * app/object_ops.c : fixed copy&paste bug in dialog string
12832 * app/splash.c : gdk_widget_show_now () does not ensure actual
12833 drawing of the splash screen, at least not on win32. Reuse the
12834 previous implementation with gtk_main_iteration() again.
12836 * */makefile.msc : make use of the build module (available in
12837 gnome-cvs/build. Updated for other source changes
12839 * lib/filter.h : added an user_data pointer to <ex/im>port()
12840 function signature and Dia<Im/Ex>portFilter to allow different
12841 filters to reuse the same callback function
12843 * lib/font.c : #include <string.h>
12848 * lib/neworth_conn.c
12849 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
12851 * */*.def : export function definition files required by win32 build
12853 * objects/custom/custom.c : #include <string.h>
12855 * plug-ins/pstricks/render_pstricks.c
12856 * plug-ins/shape/shape_export.c
12857 * plug-ins/svg/render_svg.c
12858 reflect changes to filter export function signature
12860 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
12861 mostly work as expected
12862 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
12863 to build the wmf plug-in because on the one hand the GDI emulation
12864 isn't finished and on the other hand it isn't required when building
12865 for win32. Is there anybody out there, who wants to save WMF on non
12866 windoze platforms ?
12868 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
12869 offset into account.
12871 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
12873 * app/Makefile.am: added missing plug-ins to run_dia.sh
12875 * lib/paper.c: added paper sizes A0, A1, A2
12877 * objects/UML/class.c
12878 objects/UML/class.h
12879 objects/UML/class_dialog.c: added support for colored UML
12882 2000-12-30 Kevin Breit <battery841@mediaone.net>
12884 * doc/en/usage-customization.sgml: added more content
12886 2000-12-24 Kevin Breit <battery841@mediaone.net>
12888 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
12889 <remy.viard@laposte.net>
12891 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
12893 * added limiting lines to Civil Engineering sheet,
12894 fixed vertical pump icon
12896 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
12898 * updated/additional Civil Engineering shapes: better icons,
12899 shapes use foreground/background colors now and are filled
12901 2000-12-03 Kevin Breit <battery841@mediaone.net>
12903 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
12904 the selection <sect1>
12906 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
12908 * app/load_save.c (diagram_data_save): avoid using obsoleted
12909 libxml calls (only matters when compiling with libxml2)
12911 2000-11-25 James Henstridge <james@daa.com.au>
12913 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
12914 handle the tool drops on the canvas.
12916 * app/interface.c (display_data_received_callback): do the check
12917 to make sure that the drag is from a local toolbox here as well.
12919 * app/interface.c (create_tools): unref the pixmap/mask after
12920 creating the GtkPixmap.
12921 (tool_setup_drag_source): function to set up a drag source for
12922 create object tool buttons.
12923 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
12924 (fill_sheet_wbox): same here.
12925 (create_display_shell): set up the display canvas as a drag
12927 (display_drop_callback, display_data_received_callback): functions
12928 to handle drops of tool buttons.
12930 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
12931 does weird shit to the user_data pointer for a menu item. Object
12932 alignment should work again now.
12934 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
12935 NULL, and mark this function static.
12936 (app_splash_init): use gtk_widget_show_now() instead of the
12937 gtk_main_iteration loop.
12938 (app_splash_init): connecting gtk_widget_destroy to the destroy
12939 signal of a widget seems pretty useless.
12941 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
12943 * doc/en/dia-manual.sgml:
12944 Added sect1 for advanced object types. Starting development
12947 2000-11-18 Kevin Breit <battery841@mediaone.net>
12949 * doc/en/dia-manual.sgml:
12950 Stupid spelling fixes.
12952 2000-11-18 Kevin Breit <battery841@mediaone.net>
12954 * doc/en/dia-manual.sgml:
12955 Just some small changes I made. Props to Greg LeBlanc on the
12958 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
12961 (ddisplay_add_display_area): Clip input rectangle to
12962 the visible part of the display.
12963 (ddisplay_scroll): Optimization, don't scroll and
12964 redraw if moving to the same position as before.
12966 * app/render_libart.c (renderer_libart_copy_to_window):
12967 Removed sanity check. Now moved to ddisplay_add_display_area().
12970 Added return at end of file.
12972 2000-11-13 Kevin Breit <battery841@mypad.com>
12973 * doc/en/dia-manual.sgml
12974 Commited manual changes from Henry House <hajhouse@houseag.com>
12976 2000-10-21 Hans Breuer <Hans@Breuer.Org>
12977 * lib/beziershape.c :
12978 The previous code was accessing unowned memory due to IHMO
12979 wrong index calculation. Now it appears to be fixed.
12983 * plug-ins/makefile.msc
12984 * objects/makefile.msc
12985 * app/makefile.msc: (new files)
12986 Makefiles for Dia on Win32, Micro$oft VC only.
12988 * plug-ins/pstricks/render_pstricks.c
12989 * plug-ins/dxf/dxf-import.c
12990 * plug-ins/shape/shape-export.c
12991 * plug-ins/svg/render_svg.c
12994 * app/preferences.c
12998 * objects/custom/custom.c
12999 * objects/standard/image.c
13000 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
13001 where appropriate, add missing prototypes like <string.h>
13003 * plug-ins/wmf/wmf_gdi.cpp
13004 * plug-ins/wmf/wmf_gdi.h:
13005 start of wmf write functions for non Win32 platform. Not
13006 finished yet. The other way to get it working maybe to
13007 link the plug-in against wine libs.
13009 * plug-ins/wpg/wpg.c : add missing brace
13011 * app/load_save.c :
13012 Handling for unknown objects at load time. Previously Dia
13013 was crashing, if you try to load a file referencing objects
13014 whiches plug-ins aren't installed/available. Now it spits out
13015 a warning and ignores the unknown objects.
13018 toolbox DND support for files like The Gimp does it.
13022 Simple splash screen support and usage.
13025 Splash screen, portability fixes, dont' g_error if there is
13026 g_get_homedir return NULL. This may remove the one and only
13030 Make it compile without ENABLE_NLS
13032 * app/render_libart.c :
13033 Sanity check to avoid calling libart with wrong window coordinates.
13034 They come from the update handler. Direct Gdk is dealing nicely
13035 with coordinates out of range, libart does access un-owned memory
13036 in this case, mostly causing crashes.
13038 * app/winmain.c: (new file) Export the Win32 Gui version of the
13039 main function. This file is only required for Windoze.
13041 * app/splash.c: (new file) splash screen implementation
13045 * lib/diavar.h: (new file)
13046 moved special variable export code to diavar.h, because it is
13047 needed in color.h and font.h
13050 M$VC cann't export inlined functions. Quick hack to let it
13051 link again. Probably the glib mechanics should be used here?
13053 * objects/UML/lifeline.c : initialize var before usage
13055 * objects/GRAFCET/step.c : removed unused var
13057 2000-10-14 James Henstridge <james@daa.com.au>
13059 * app/render_gnomeprint.c (draw_image): change code so images
13060 don't get flipped when printing.
13062 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
13063 sure that the return value of
13064 gnome_print_context_new_with_paper_size is not NULL.
13066 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
13067 into a series of bezier segments.
13068 (fill_arc): similar code to handle filled arc segments.
13070 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
13077 * app/disp_callbacks.c
13079 * app/linewidth_area.c
13080 * app/paginate_psprint.c
13081 * app/preferences.c
13085 * app/neworth_conn.c
13087 * objects/standard/box.c: various small changes to get rid of
13088 annoying warnings (eg faulty prototypes and unused variables)
13090 * app/disp_callbacks.c
13093 * app/magnify.h: update magnify tool icon when pressing/releasing
13094 shift. I will try to make something more general so that similar
13095 things can be used by other tools.
13097 * shapes/SDL/inout.shape
13098 * shapes/SDL/return.shape: fixed some typos
13100 2000-10-09 James Henstridge <james@daa.com.au>
13102 * objects/custom/shape_info.c (parse_path): apply patch from
13103 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
13106 2000-10-08 James Henstridge <james@daa.com.au>
13108 * objects/standard/image.c (image_set_props): if the file could not
13109 be loaded, show the broken image icon.
13111 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
13113 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
13115 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
13116 object icon when loading from a file. This allows you to have PNG
13117 icon files for shapes.
13119 2000-10-07 James Henstridge <james@daa.com.au>
13121 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
13123 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
13124 GDK_IMLIB_CFLAGS reference.
13126 * app/commands.c (help_about_callback): remove imlib code.
13128 * lib/dia_image.c: only include the pixbuf version of the image
13131 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
13133 * configure.in (CPPFLAGS): remove the check for imlib, as we now
13134 require gdk-pixbuf.
13136 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
13137 conditionally define \setfont as well.
13139 2000-10-05 James Henstridge <james@daa.com.au>
13141 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
13142 preamble so that we define \setlinejoinmode and \setlinecaps
13143 commands conditionally on them being undefined. This way, the
13144 pstricks output files should work without modification, and will
13145 support the commands when they are implemented in pstricks.
13147 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
13149 * dia.desktop: added hungarian translations to dia.desktop
13151 2000-10-04 James Henstridge <james@daa.com.au>
13153 * sheets/UML.sheet: fix typo.
13155 * objects/custom/shape_info.c: use strtod instead of g_strtod.
13156 (parse_path): actually call setlocale around strtod calls.
13158 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
13159 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
13160 the g_strtod wrapper.
13162 * shapes/SDL/: add SDL shapes from Rubens Ramos
13163 <rubens_ramos@yahoo.com>
13165 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
13167 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
13169 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
13170 W. Michael Petullo <mike@flyn.org>.
13172 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
13173 from the 0.86 tarball) and jigsaw.sheet.
13175 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
13177 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
13179 * shapes/network/: add network-additional shapes here.
13181 * sheets/network.sheet: add the network-additional shapes from
13182 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
13185 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
13187 * configure.in: Updated ALL_LINGUAS
13189 * po/nl.po: Removed newline from translation
13191 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
13193 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
13194 logo filename generation.
13196 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
13197 Avoiding "//dia_logo.png".
13199 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
13201 * app/filedlg.c: add include <sys/types.h> to
13202 remove warning. (OS/2)
13204 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
13206 * objects/chronogram/chronoline_event.c (reparse_clevent):
13207 the __checksum routine was simply bogus. Redone it in a slightly
13208 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
13210 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
13212 * app/create_object.c (create_object_button_press):
13213 * app/modify_tool.c (click_select_object):
13214 * lib/object.h: select renamed to selectf to prevent
13215 compiler problems with function select(). OS/2 version.
13217 2000-09-08 Karsten Weiss <knweiss@gmx.de>
13219 * po/de.po: Updated.
13221 2000-09-07 Karsten Weiss <knweiss@gmx.de>
13223 * dia.desktop: Added German translation
13224 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
13226 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
13228 * configure.in (ALL_LINGUAS): added "es"
13230 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13235 * app/scroll_tool.c:
13236 Standardized cursor function get_cursor(). Magnify now has
13237 looking-glass cursor with + and -.
13239 * app/create_object.c (create_object_button_press):
13240 Newly created connections now snap to connection points even when
13243 2000-08-17 Daniel Egger <egger@suse.de>
13245 * app/menus.c: #ifdef'ed some code for the none GNOME
13247 * app/dia_embedd.c: Changed obvious hackery. Can anyone
13248 please have a look at the GNOME UI menu creation? The
13249 gnome-app-helper code is ages old and plainly broken!
13251 2000-08-15 Daniel Egger <egger@suse.de>
13258 * app/select.c: First big patch to get the menus
13259 working again in the international version. Copied
13260 some code written by Sven and me from GIMP and
13261 thus implemented automatic tearoffmenu creation and
13262 proper translation. I also removed that pseudo
13263 radiomenu hack and cleaned up several translation
13264 hacks which have never really worked. All in all
13265 this is part I of the big menu patch. Enjoy and tell
13266 me if you detect any problems.
13268 2000-08-14 Daniel Egger <egger@suse.de>
13270 * sheets/UML.sheet: Changed one German translation as
13271 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
13273 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
13275 * app/diapagelayout.c:
13276 * lib/diagramdata.c:
13277 * lib/diagramdata.h:
13280 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
13281 selecting paper size for a new diagram. TODO: Use libpaper if
13282 available and use gnome_paper-stuff if using GNOME.
13284 * sheets/Electric.sheet: fixed typo.
13286 2000-08-08 James Henstridge <james@daa.com.au>
13288 * po/README: added a readme file to tell translators to translate
13289 the .sheet files as well.
13291 * app/commands.c (help_about_callback): fix small bug where we tried
13292 to gdk_bitmap_unref() the mask for the about box image, even though
13293 it was NULL. Now check for a NULL mask.
13295 2000-08-07 Daniel Egger <egger@suse.de>
13297 * sheets/*.sheet: Added translations for the name
13298 in the toolbar tab. Brushed up some descriptions
13299 and some translations a bit.
13301 2000-08-06 James Henstridge <james@daa.com.au>
13303 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
13304 identifier and dtd url for SVG output.
13305 (new_svg_renderer): fix the output of the viewBox output. The
13306 second two numbers are the width and height -- not the right
13307 and bottom sides of the box.
13309 * shapes/*/*.shape: update svg namespace URI.
13311 * objects/custom/shape_info.c (load_shape_info): change the
13312 namespace URI for custom shapes yet again to match the Candidate
13313 Recommedation. It looks like this one will probably be the final
13316 * app/display.c (new_display): remove the code that sets ic and
13317 ic_attr members to NULL, as one of the previous function calls
13318 causes the display to be realised. This means that the ic gets
13319 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
13322 2000-08-06 James Henstridge <james@daa.com.au>
13324 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
13326 * NEWS: fixed date in NEWS file, as I will release today.
13328 * README: updated the README a little. Added note that Dia is now
13331 * dia.spec: fix up spec file.
13333 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
13335 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
13336 get heaps of warnings when you turn off debugging.
13337 Also made a few other warning fixes.
13339 2000-08-02 James Henstridge <james@daa.com.au>
13341 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
13343 * configure.in: update version number.
13345 2000-08-01 James Henstridge <james@daa.com.au>
13347 * app/commands.c (help_about_callback): add Hans to about dialog.
13349 * doc/shape.dtd: dtd for shape file format.
13351 * doc/custom-shapes: update doc file about creating custom shapes.
13353 * shapes/*/*.shape: change namespace URI for the SVG portion to the
13354 one for the latest draft.
13356 * shapes/*/*.shape: fix up rect definitions.
13358 * objects/custom/shape_info.c (load_shape_info): recognise newer
13359 namespace tag for SVG.
13360 (parse_svg_node): the rect element should take attributes x, y, width
13361 and height -- not x1,y1,x2,y2.
13363 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
13364 output to use the newest draft DTD.
13366 * plug-ins/svg/svg.c: initialisation code for plugin.
13368 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
13370 * plug-ins/svg/Makefile.am: makefile for svg plugin.
13372 * app/app_procs.c (internal_plugin_init): don't register the svg
13373 export filter here.
13375 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
13377 2000-07-31 James Henstridge <james@daa.com.au>
13379 * objects/standard/textobj.c (textobj_get_defaults):
13380 * objects/standard/polygon.c (polygon_get_defaults):
13381 * objects/standard/image.c (image_get_defaults):
13382 * objects/standard/ellipse.c (ellipse_get_defaults):
13383 * objects/standard/box.c (box_get_defaults):
13384 * objects/standard/beziergon.c (beziergon_get_defaults):
13385 * objects/flowchart/parallelogram.c (pgram_get_defaults):
13386 * objects/flowchart/ellipse.c (ellipse_get_defaults):
13387 * objects/flowchart/diamond.c (diamond_get_defaults):
13388 * objects/flowchart/box.c (box_get_defaults):
13389 * objects/custom/custom_object.c (custom_get_defaults):
13390 * objects/FS/flow.c (flow_get_defaults):
13391 * objects/FS/flow-poly.c (flow_get_defaults):
13392 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
13395 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
13396 widgets for various object types.
13397 (create_dialog): ref and sink the no_defaults_dialog.
13399 * app/preferences.c (prefs_create_dialog): change
13400 gtk_container_border_width call to gtk_container_set_border_width.
13402 2000-07-29 James Henstridge <james@daa.com.au>
13404 * app/commands.c (view_aa_callback): show a warning dialog if
13407 * app/interface.c (fill_sheet_menu): don't add a menu item for
13410 2000-07-26 James Henstridge <james@daa.com.au>
13412 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
13414 * app/menus.c: remove edit grid menu item.
13416 * app/commands.[ch] (view_edit_grid_callback): removed.
13418 * app/display.c (new_display): don't initialise removed Grid members.
13420 * app/grid.c: remove unused functions.
13422 * app/grid.h: remove dialog related stuff from Grid structure.
13423 Remove prototypes for dialog functions.
13425 * app/menus.c: add to menus
13427 * app/commands.[ch] (view_diagram_properties_callback): new command
13428 for showing the diagram properties dialog.
13430 * app/dia-props.[ch]: a new diagram properties dialog. To replace
13431 the edit grid dialog.
13433 2000-07-25 James Henstridge <james@daa.com.au>
13435 * app/grid.c (grid_x_update):
13436 (grid_y_update): as the grid setting is stored with the diagram,
13437 update all displays when a change is made.
13439 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
13441 * app/create_object.c (create_object_button_press):
13442 (create_object_motion): use new snap_to_grid signature.
13444 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
13445 and handle invisible grid lines.
13446 (snap_to_grid): use new grid settings. Also changed signature to
13447 take a DDisplay rather than Grid pointer.
13448 (grid_show_dialog): get the defaults from the correct place.
13450 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
13452 * app/diagram.c (new_diagram): set the grid size defaults from the
13455 * app/load_save.c (diagram_data_save): save grid and guide info to
13457 (diagram_data_load): add guide and grid load support.
13459 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
13462 * lib/diagramdata.h: add members to DiagramData for grid and guide
13465 * configure.in (BONOBO_LIBS): update configure scripts
13467 * app/dia.oafinfo: oafinfo file for dia embeddables.
13469 * app/dia_embedd.c: add OAF support.
13471 2000-07-24 James Henstridge <james@daa.com.au>
13473 * plug-ins/wpg/Makefile.am:
13474 * plug-ins/pstricks/Makefile.am:
13475 * plug-ins/hpgl/Makefile.am:
13476 * plug-ins/dxf/Makefile.am: same here.
13478 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
13479 the required libraries, and the link line was causing libtool not
13480 to build a shared library on some systems :(
13482 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
13483 be checking x, not n.
13485 2000-07-23 James Henstridge <james@daa.com.au>
13487 * app/preferences.c (prefs_data): set the "reset tools after
13488 create" preference to true by default. That seems to be what most
13491 * app/interface.c (create_sheets): instead of a notebook, use an
13492 option menu that updates the sheet tools. The notebook tabs were
13493 getting a bit unwieldly, so the option menu should fix that. This
13494 also reduces the number of widgets in the tools radio button
13495 group, which should make the UI a little more responsive.
13497 2000-07-19 Fatih Demir <kabalak@gmx.net>
13499 * configure.in: Added tr to ALL_LINGUAS.
13500 [ Yeah, we're now having a Turkish translation,
13503 * dia.desktop: Added the Turkish entries.
13505 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
13507 * doc/diagram.dtd: changed string-element so it conforms to the
13510 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
13512 * configure.in: added chinese.
13513 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
13521 objects/custom/shape_info.c:
13522 shapes/Circuit/npn.shape:
13523 shapes/Circuit/pnp.shape:
13524 sheets/*.sheet: dia now works with libxml2.
13525 Libxml2 is a bit more picky when parsing xml and reported errors on all
13526 sheet files because they use non ascii characters (added
13527 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
13528 I commented out these.
13530 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
13532 * configure.in (ALL_LINGUAS): added Italian
13534 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
13536 * configure.in (ALL_LINGUAS): added Korean
13538 2000-06-25 James Henstridge <james@daa.com.au>
13540 * objects/flowchart/parallelogram.c (pgram_create): use default font
13541 and add properties interface support.
13543 * objects/flowchart/ellipse.c (ellipse_create): use default font and
13544 add properties interface support.
13546 * objects/flowchart/diamond.c (diamond_create): use default font and
13547 add properties interface code.
13549 * objects/flowchart/box.c (box_create): use default font.
13551 * objects/custom/custom_object.c (custom_create): use default font
13554 * objects/standard/textobj.c (textobj_create): update to use default
13557 * lib/attributes.c: add implementations.
13559 * lib/attributes.h (attributes_[gs]et_default_font): add function
13560 prototypes for setting/getting a default font.
13562 2000-06-24 James Henstridge <james@daa.com.au>
13564 * app/paginate_gnomeprint.h: updated prototype.
13566 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
13567 diagram page settings.
13569 * objects/standard/beziergon.c (beziergon_copy): same here.
13571 * objects/standard/polygon.c (polygon_copy): copy the fill colour
13575 * app/tool.h (tool_options_dialog_show):
13576 * app/scroll_tool.h (free_scroll_tool):
13577 * app/render_svg.h:
13578 * app/render_libart.h (renderer_libart_copy_to_window):
13579 * app/render_gdk.h (renderer_gdk_copy_to_window):
13580 * app/properties.h (properties_hide_if_shown):
13581 * app/preferences.h (prefs_load):
13582 * app/object_ops.h:
13583 * app/modify_tool.h (free_modify_tool):
13584 * app/magnify.h (free_magnify_tool):
13585 * app/linewidth_area.h (linewidth_area_create):
13586 * app/layer_dialog.h:
13587 * app/handle_ops.h (handle_is_clicked):
13589 * app/grid.h (grid_destroy_dialog):
13590 * app/defaults.h (defaults_show):
13591 * app/cut_n_paste.h (cnp_exist_stored_objects):
13592 * app/create_object.h (free_create_object_tool):
13593 * app/connectionpoint_ops.h (diagram_unconnect_selected):
13595 * app/color_area.h (color_area_create):
13596 * app/app_procs.h (app_is_embedded): remove extern keyword from
13597 function prototypes.
13600 * lib/sheet.h (load_all_sheets):
13601 * lib/render_store.h:
13602 * lib/render_object.h (render_object_load):
13603 * lib/polyshape.h (polyshape_closest_segment):
13604 * lib/poly_conn.h (polyconn_closest_segment):
13607 * lib/objchange.h (new_object_state_change):
13608 * lib/neworth_conn.h (neworthconn_add_segment):
13609 * lib/message.h (message_error):
13612 * lib/font.h (font_descent):
13613 * lib/focus.h (remove_focus):
13615 * lib/diagramdata.h:
13616 * lib/dia_xml.h (data_add_composite):
13618 * lib/connpoint_line.h:
13619 * lib/connection.h (connection_move_handle):
13621 * lib/attributes.h (attributes_set_default_line_style):
13622 * lib/arrows.h (arrow_draw): remove extern keyword from function
13623 definitions. It is not required for functions.
13625 * plug-ins/dxf/Makefile.am (INCLUDES):
13626 * plug-ins/pstricks/Makefile.am (INCLUDES):
13627 * plug-ins/cgm/Makefile.am (INCLUDES):
13628 * objects/SADT/Makefile.am (INCLUDES):
13629 * objects/chronogram/Makefile.am (INCLUDES):
13630 * objects/GRAFCET/Makefile.am (INCLUDES):
13631 * objects/flowchart/Makefile.am (INCLUDES):
13632 * objects/sybase/Makefile.am (INCLUDES):
13633 * objects/FS/Makefile.am (INCLUDES):
13634 * objects/standard/Makefile.am (INCLUDES):
13635 * objects/network/Makefile.am (INCLUDES):
13636 * objects/UML/Makefile.am (INCLUDES): same here.
13638 * objects/ER/Makefile.am: changed inclusion of some macros to
13641 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
13642 handle the plug in extension, rather than have all the #ifdef's in
13645 * plug-ins/Makefile.am: add renderer.inc to dist.
13647 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
13649 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
13651 * lib/plug-ins.c: Handle OS/2 dll's too.
13653 2000-06-07 James Henstridge <james@daa.com.au>
13655 * app/plugin-manager.c (get_plugin_manager): set some table
13656 packing options to make it look a little nicer.
13658 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
13659 makefiles for these plug-ins.
13661 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
13663 * configure.in: added hpgl and wpg directories to build. Added
13664 note about whether gnome-print support was enabled, and noted that
13665 it is not recommended.
13667 2000-06-06 James Henstridge <james@daa.com.au>
13669 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
13670 a little work, but I am checking them in so I don't lose them.
13672 2000-06-01 James Henstridge <james@daa.com.au>
13674 * objects/standard/arc.c: added extra properties.
13676 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
13677 was using the wrong index into the handles array. This gets corner
13678 type changing working correctly.
13680 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
13681 to properties code (no editing or loading yet though). Also added
13682 support for point array manipulation through the offsets interfaces.
13684 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
13686 * app/interface.c (origin_button_press): changes so the origin
13687 button doesn't grab the pointer when we pop up the menu.
13689 * app/commands.c (help_about_callback): fix small memory leak in
13692 * app/menus.c (menus_init): fixed breakage I introduced in the non
13693 gnome menus when I was doing the menu changes. The tearoffs work
13694 really nicely in plain gtk mode as well.
13696 * objects/standard/beziergon.c (beziergon_create): changed the
13697 returned handles to match the handle numbering changes. Now
13698 segment addition and removal works correctly with undo!
13700 * lib/beziershape.c: various changes to the code. Changed the
13701 numbering of handles, and fixed the segment removal code.
13703 2000-05-31 James Henstridge <james@daa.com.au>
13705 * objects/standard/beziergon.c: remove connection point handling.
13706 There is still a bit of work to be done to get adding and removing
13707 of segments working correctly.
13709 * lib/beziershape.c: add connection point handling to beziershape.
13710 I set it for two connection points per segment.
13712 2000-05-30 James Henstridge <james@daa.com.au>
13714 * objects/standard/polygon.c: don't do connectionpoint handling.
13716 * lib/polyshape.c: changed to handle connection points internally.
13717 Also, don't worry about connections to handles on polyshape, as
13718 all handles are non connectable.
13720 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
13722 * configure.in: Added finnish
13724 2000-05-30 James Henstridge <james@daa.com.au>
13726 * sheets/*.sheet: translation updates to the .sheet files.
13728 * po/fr.po: updated po file from Christophe Merlet.
13730 * menus.h: removed prototypes for functions which have been removed.
13732 2000-05-29 James Henstridge <james@daa.com.au>
13734 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
13735 item in the option menu when changing selected diagram.
13737 * app/dia_embedd.c (view_factory): fix up function to work with new
13740 * app/disp_callbacks.c (ddisplay_realize): remove call to
13741 display_set_active from here.
13742 (ddisplay_canvas_events): move call here. This gets rid of all the
13743 warnings, as the renderer has been fully set up correctly at this
13746 * app/menus.c (menus_init): add the tearoff item to the start of the
13749 * app/app_procs.c (create_user_dirs): we don't need to create the
13750 menus directory anymore.
13752 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
13753 necessary to update the menu state here, as it was done when the
13754 active display was set.
13756 * app/display.c (display_set_active): update the menu state when
13757 changing active displays.
13759 * app/interface.c (origin_button_press): set the display as active
13760 when a click is made on the menu button.
13762 * app/menus.c (menus_init): set up a quit function to save the accels
13764 Add tearoff items for the non GNOME menus, add accelerators for
13765 several GNOME menus.
13767 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
13768 menus_get_image_menu().
13770 * app/menus.c (menus_get_item_from_path): use display_menus here
13771 rather than ddisp->popup.
13773 * app/display.h: remove the popup member in the DDisplay structure.
13775 * app/interface.c: remove option of not using wrap box.
13776 (create_toolbox): change to always use menus_get_toolbox_menubar
13777 even when using gnome menus.
13778 (create_display_shell): use menus_get_image_menu to load accelerators
13779 only -- not the actual popup menu.
13781 * app/menus.c (menus_init): new function to create the menus.
13782 (menus_get_toolbox_menubar): use this function whether gnome is
13783 in use or not. Changed to use menus_init.
13784 (menus_get_image_menu): same here. Also, now this function always
13785 returns the same menu, rather than a new one each time.
13786 (menus_init): read a menurc file to load accelerators here.
13788 2000-05-28 James Henstridge <james@daa.com.au>
13790 * app/display.c (ddisplay_really_destroy): unset active display if
13791 active display is destroyed.
13792 (ddisplay_active): simplify function to return active_display as set
13793 by display_set_active. This allows using a pinned menu with any
13794 display -- not just the one it was popped up from.
13795 (display_set_active): notify the layer dialog of change of diagrams
13796 when active diagram changes.
13798 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
13799 on button and key presses.
13800 (ddisplay_realize): set active display on realize.
13802 * app/display.c (display_set_active): simple implementation of this
13805 * app/display.h (display_set_active): add prototype for setting
13806 the active display.
13808 * app/interface.c (create_display_shell): don't give focus to the
13811 * app/menus.c: fix up menus for Beziergon.
13813 * app/interface.c (create_display_shell): make the widget in the
13814 top left corner a button that can be used to pop up the right click
13815 menu, like in gimp and sketch.
13817 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
13820 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
13821 add code to set corner types for beziergon.
13823 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
13825 (beziershape_move_handle): use the previous corner type for right
13828 * app/interface.c (tool_data): add beziergon to toolbox.
13830 * objects/standard/standard.c (dia_plugin_init): initialise the new
13831 Beziergon object type.
13833 * objects/standard/beziergon.c: an object based on BezierShape.
13835 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
13837 * lib/beziershape.[ch]: new files implementing a bezier shape.
13839 2000-05-26 James Henstridge <james@daa.com.au>
13841 * lib/text.c (text_key_event): handle multibyte inserts.
13842 (text_key_event): also add home and end keybindings.
13844 * app/interface.c (create_display_shell): connect handlers for
13845 focus_in_event, focus_out_event, realize and unrealize signals.
13847 * app/display.[ch] (new_display): initialise input context members.
13849 * app/disp_callbacks.[ch]: added XIM support here.
13851 * lib/font.c (suck_font): the black and white pixel values should be
13852 taken from a 1 bit colormap rather than the default colormap.
13854 Hans Breuer's Windows patches ...
13856 * lib/font.c: use Courier New for fixed width font on windows
13859 * lib/dia_image.h: change to "struct _DiaImage".
13861 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
13863 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
13864 mouse button for object menu. This will make two button mouse owners
13867 2000-05-25 James Henstridge <james@daa.com.au>
13869 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
13871 * app/app_procs.c (app_init): add extra NULL argument to call of
13874 * app/load_save.h: remove prototype.
13876 * app/load_save.c: remove diagram_data function here.
13878 * app/diagram.h: added prototype.
13880 * app/diagram.c (diagram_load): new function here, which uses import
13883 * plug-ins/dxf/dxf.c: register the import filter as well.
13885 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
13886 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
13888 * objects/standard/line.c: add start_point and end_point properties
13889 to standard line object.
13891 2000-05-21 James Henstridge <james@daa.com.au>
13893 * app/paginate_psprint.c: added missing include of locale.h.
13895 * objects/custom/custom_object.c (custom_draw): use fabs rather than
13896 abs for scaling factors.
13897 (custom_distance_from): same here.
13899 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
13901 2000-05-18 James Henstridge <james@daa.com.au>
13903 * po/POTFILES.in: updated POTFILES.in.
13905 * dia.spec: incremented version number in spec file.
13907 * NEWS: added (lots of) news items for the 0.85 release.
13909 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
13912 * configure.in: updated version number here.
13914 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
13916 2000-05-17 James Henstridge <james@daa.com.au>
13918 * app/app_procs.c (internal_plugin_init): register the native import
13921 * app/load_save.c (diagram_data_load, diagram_load): split this
13922 function into two -- one that does all the work on the DiagramData
13923 structure, and the other that provides compatibility with the old
13925 (dia_import_filter): use diagram_data_load to define an import
13928 * app/diagram.h (new_diagram): added const to prototype.
13930 * app/filedlg.c (file_open_callback): change to use new import filter
13933 * lib/filter.c: added import filter management functions.
13935 * lib/filter.h: added prototypes for import filter interface.
13937 * app/commands.c (help_about_callback): updated about dialog to
13938 contain a few more names.
13940 2000-05-16 James Henstridge <james@daa.com.au>
13942 * configure.in (Configuration): added a status message to the end of
13943 the configure script to give the user some idea of what was
13946 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
13948 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
13951 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
13954 * configure.in (AM_PATH_LIBART): use the check function provided
13955 with libart rather than our own code. It is more reliable, and
13956 it only requires that people who build out of CVS have libart.m4
13957 installed (not necessarily all of libart).
13958 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
13960 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
13962 * dia.desktop: Added Swedish translation.
13964 2000-05-09 James Henstridge <james@daa.com.au>
13966 * lib/dia_xml.c: you can't free a const pointer, so remove const
13967 from variable definitions.
13969 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
13970 initialised correctly.
13972 * app/render_svg.c (export_svg): set locale to C.
13974 * app/paginate_psprint.c (paginate_psprint): set locale to C.
13976 * app/render_eps.c (export_eps): set locale to C for EPS export.
13978 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
13979 (data_add_point): same here.
13980 (data_add_rectangle): same here.
13981 (data_real): use g_strtod to convert strings to real numbers, so that
13982 locales are taken into account.
13983 (data_point): same here.
13984 (data_rectangle): same here.
13986 * AUTHORS: added Henk and Jacek to authors file.
13988 Daniel Egger's code cleanups.
13990 * app/select.c (select_invert_callback): remove unused variable.
13992 * app/plugin-manager.c (get_plugin_manager): fix typo.
13994 * app/load_save.c (read_connections, write_objects):
13995 (write_connections): made some functions static.
13997 * app/interface.c (toolbox_delete, toolbox_destroy): made some
14000 * app/filedlg.c (file_export_callback): remove unused variable.
14002 * app/app_procs.c: various warning fixes.
14004 Integrating Jacek Pliszka's pstricks export filter.
14006 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
14008 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
14009 renderer (with a few small modifications by me).
14011 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
14013 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
14015 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
14018 * sheets/Makefile.am:
14019 * shapes/Makefile.am:
14020 * shapes/Civil/Makefile.am:
14021 * sheets/civil.sheet:
14023 Added civil/hydraulic/structural engineering objects from
14024 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
14026 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
14028 * objects/FS/flow-poly.c:
14029 * objects/FS/flow.c:
14030 Fix division by zero in point_normalize().
14031 Patch by David Thompson <dcthomp@mail.utexas.edu>
14033 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
14036 * lib/bezier_conn.c:
14037 * lib/connpoint_line.c:
14038 Added checks for zero-length lines before calls to point_normalize.
14040 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14042 * app/preferences.c (prefs_data): Changed
14043 reversed_dragging_intersects to not make the dialog ridiculously
14046 2000-04-22 James Henstridge <james@daa.com.au>
14048 Hans's win32 patches:
14050 * app/export_png.c: include message.h
14051 * app/interface.c: include dia_dirs.h
14052 * app/linewidth_area.c: check for rint
14053 * app/main.c: include interface.h
14054 * app/paginate_psprint.c: remove unused variable.
14055 * app/preferences.c: include message.h
14056 * app/render_svg.c: include stdlib.h
14057 * app/select.c: include object_ops.h
14058 * lib/dia_dirs.c: miscelaneous fixes for win32.
14059 * lib/dia_image.c: include string.h
14060 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
14061 * lib/properties.c: include stdlib.h
14062 * lib/properties.h: define extra data for standard properties as
14063 static variables on win32 (to get around dynamic linker problems).
14064 * objects/standard/polygon.c: polygon_create_change missing return
14067 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
14069 * configure.in (ALL_LINGUAS): added Catalan
14071 2000-04-18 James Henstridge <james@daa.com.au>
14073 * objects/standard/bezier.c (bezierline_get_object_menu): add a
14074 separator to the object menu between the add/remove segment items
14075 and the corner type items.
14076 (bezierline_get_object_menu): add code to disable the menu item for
14077 the current corner type. Really just a cosmetic change.
14079 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
14080 a NULL for the label or with no associated callback.
14082 * objects/standard/bezier.c (bezierline_menu_items): use the
14083 enumeration values rather than numeric values for the corner types.
14085 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
14086 structure, and add code to handle it. Also, don't save the corner
14087 types inline in the bez_points node. The way it is conditionally
14088 including the element just feels like it will break.
14090 * lib/geometry.h (BezPoint): removed the corner_type stuff from
14091 BezPoint. The corner type stuff is a user interface level idea rather
14092 than something required by the renderer, so should be taken care of
14093 at the object level.
14095 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14097 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
14098 checks. Weren't able to reproduce original bug, tough.
14100 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
14102 * sheets/Electric.sheet:
14103 * sheets/Contact.sheet:
14104 * sheets/Pneumatic.sheet:
14105 * sheets/Circuit.sheet: sprayed some <br/>'s around.
14106 (added a few French translations in the last file)
14108 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14111 * lib/bezier_conn.h:
14112 * objects/standard/bezier.c:
14113 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
14114 bezier points. Only one minor problem known: Menus are active
14115 for endpoints minor handles.
14116 11:28: Save and load now works, too.
14117 (bezierconn_closest_major_handle): 12:03: New function to get the
14118 non-control point handle associated with the nearest control
14120 Also fixed the menu activation problem, and made remove_segment
14121 not remove the endpoint.
14123 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14125 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
14128 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
14130 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
14131 <sys/stat.h>. OS/2 patch.
14133 2000-04-15 James Henstridge <james@daa.com.au>
14135 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
14136 Thompson's patch that adds undo support to the function structure
14139 2000-04-14 James Henstridge <james@daa.com.au>
14141 * objects/custom/custom_object.c (custom_distance_from): new
14142 implementation of distance algorithm that actually takes the
14143 display list into account when calculating the distance. Much nicer
14144 than a simple bounding box.
14146 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
14148 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
14150 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14152 * objects/standard/polygon.c: Start of polygons own changes (for
14153 connectionpoints). Need to do seperate changes in polyshape, too,
14154 rather than reuse the bezier changes.
14156 2000-04-13 James Henstridge <james@daa.com.au>
14158 * lib/dia_image.c (dia_image_draw): use the new enumeration values
14159 from after the gdk-pixbuf cleanup.
14161 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
14162 on for loop. Last set of coefficients were not beeing calculated,
14163 which caused a bit of breakage.
14165 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
14166 functions in geometry.c for calculating the closest segment.
14167 (bezierconn_distance_from): use distance_bez_line_point to calculate
14170 * lib/geometry.c (distance_bez_line_point): new function to calculate
14171 the distance from an open bezier line to a point.
14172 (distance_bez_shape_point): new function to calculate the distance
14173 from a closed bezier shape.
14174 (distance_ellipse_point): new function to calculate the distance from
14175 a filled ellipse to a point.
14177 * lib/geometry.h (BezPoint): moved this structure here from render.h
14179 2000-04-12 James Henstridge <james@daa.com.au>
14181 * lib/geometry.c (distance_bez_seg_point): new function to calculate
14182 the distance from a bezier segment.
14184 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
14185 to calculate the distance from the object.
14187 * lib/geometry.c (distance_polygon_point): function for calculating
14188 the distance from a polygon to a point.
14190 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
14193 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
14194 breaks can be inserted in the tool box.
14196 * doc/sheet.dtd: updated the DTD
14197 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
14199 2000-04-12 James Henstridge <james@daa.com.au>
14201 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
14202 macro if the dialog is a GtkDialog :(
14204 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14206 * objects/standard/polygon.c: Connectionpoints now properly
14207 managed in a GList. As far as I can tell, this will not dieturb
14208 the order (but I have the nagging doubt...)
14210 * lib/polyshape.c: No longer knows about connectionpoints.
14212 2000-04-11 James Henstridge <james@daa.com.au>
14214 * app/Makefile.am: fix makefile for bonobo build.
14216 * configure.in: fix checks for bonobo.
14218 * app/menus.c: added entries for the plugin manager.
14220 * app/Makefile.am (dia_core_files): added plugin manager to files
14223 * app/plugin-manager.[ch]: the plugin manager dialog.
14225 * app/display.c (display_update_menu_state): set the antialiased
14226 menu entry to the correct value.
14228 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
14230 * objects/custom/custom_object.c: not all renderers like ellipses with
14231 negative dimensions. This could cause ellipses to disappear when using
14232 the flip_h and flip_v functions.
14234 * samples/grafcet.dia: fixed speling and correctness.
14236 2000-04-11 James Henstridge <james@daa.com.au>
14238 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
14239 exposed the dia_plugin_load and dia_plugin_unload functions.
14241 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
14242 already created PluginInfo structure.
14244 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
14247 * lib/sheet.c: fix up call to dia_config_filename.
14249 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
14250 file. This would save information such as which plugins not to
14251 load during startup.
14253 2000-04-09 James Henstridge <james@daa.com.au>
14255 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
14257 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
14259 * lib/plug-ins.c (dia_register_plugins):
14260 Don't free the value returned from g_getenv.
14262 2000-04-09 Anders Carlsson <andersca@gnu.org>
14264 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
14266 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
14268 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
14269 right to left, select objects that intersect the rubberbanding rectangle
14270 instead of selecting objects that are in the rectangle.
14272 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
14274 * lib/diagramdata.h: Likewise.
14277 2000-04-09 James Henstridge <james@daa.com.au>
14279 * lib/plug-ins.[ch]: add copyright messages to files.
14281 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
14284 * objects/sybase/sybase.c (dia_plugin_init):
14285 * objects/network/network.c (dia_plugin_init):
14286 * objects/flowchart/flowchart.c (dia_plugin_init):
14287 * objects/custom/custom.c (dia_plugin_init):
14288 * objects/chronogram/chronogram.c (dia_plugin_init):
14289 * objects/UML/uml.c (dia_plugin_init):
14290 * objects/SADT/sadt.c (dia_plugin_init):
14291 * objects/GRAFCET/grafcet.c (dia_plugin_init):
14292 * objects/FS/fs.c (dia_plugin_init):
14293 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
14296 * objects/standard/standard.c (dia_plugin_init): change over to new
14299 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
14300 the version checker for plugins.
14302 * app/app_procs.c: remove plugin loading code from here, and use
14303 code from plug-ins.[ch]. Also move registration of internal
14304 objects/filters to a `builtin' plugin.
14306 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
14308 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
14310 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
14311 defined variable in EXTRA_DIST.
14313 * app/preferences.h: removed dia_config_filename from header.
14315 * app/preferences.c: removed dia_config_filename function.
14317 * lib/dia_dirs.c (dia_config_filename): moved function over to this
14318 file. Also changed implementation slightly so that it should work
14319 on the win32 port correctly (and use NT home directories).
14321 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
14322 it should have been.
14324 * lib/plug-ins.[ch]: new plugin loading code.
14326 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14328 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
14330 * lib/polyshape.c: Fix closest segment finding, exposes deeper
14331 bugs in adding corners to 'wraparound' segment.
14333 * objects/standard/polygon.c: Added connection points (fixed so
14334 far), set menu sensitivity.
14336 * lib/polyshape.c: Changed to box-style handles, fixed for start
14337 and ends not being special, added initial connections,
14339 * lib/dummy_dep.h: Added polyshape (gotcha!)
14341 * objects/standard/pixmaps/ellipse.xpm:
14342 * objects/standard/pixmaps/box.xpm:
14343 Filled element pixmaps with white.
14346 * objects/standard/polygon.c:
14348 * objects/standard/standard.c:
14349 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
14350 * lib/Makefile.am (libdia_a_SOURCES):
14352 * app/interface.c (tool_data):
14353 Added Standard/Polygon object and PolyShape lib object. Still
14354 needs inside grab and connection points.
14356 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
14359 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
14362 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
14363 if (argv) outside ifdefs.
14365 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14367 * objects/standard/image.c (image_set_props):
14368 Aspect ratio is back in town.
14370 * app/Makefile.am (dia_LDADD):
14373 Check for gdk_pixbuf (by default disabled, for now)
14375 * app/render_eps.c (draw_image):
14376 * app/render_libart.c (draw_image):
14377 * app/render_gnomeprint.c (draw_image):
14378 Support for alpha mask in rendering. Color postscript, too.
14382 Support for gdk_pixbuf and proper masking for exports.
14384 2000-04-01 Kjartan Maraas <kmaraas@online.no>
14386 * sheets/*.sheets: Updated Norwegian translations.
14388 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14390 * lib/text.c (text_insert_char):
14391 * lib/render_store.c (add_data):
14392 Made realloc double the alloced space rather than add
14393 a fixed amount, to reduce memory stress.
14395 * app/select.c: Added new select method 'Transitive'
14396 that select every reachable (by connections) object.
14398 2000-03-27 Kjartan Maraas <kmaraas@online.no>
14400 * dia.desktop: Added Norwegian translation.
14402 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
14404 * app/render_eps.c:
14405 * app/render_svg.c:
14406 Don't dereference NULL pointer if the renderer
14407 couldn't open the file. Fix by Lars Clausen.
14408 Bug reported by Martin Chisholm <b1mt@unb.ca>
14410 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
14414 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
14416 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
14418 * app/dia.gnorba (location_info):
14419 Changed to correct executable name.
14421 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
14424 Don't do any argument parsing or initialization
14427 * app/dia_embedd.c:
14428 Call init_server_factroy before app_init.
14429 Call app_init with argv==NULL
14430 Now we don't get any critical error on startup.
14433 Add Electric and Pneumatic to makefile list.
14435 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
14437 * shapes/Electric/*:
14438 * sheets/Electric.sheet:
14439 Add some Electric circuit shapes.
14441 * shapes/Pneumatic/*:
14442 * sheets/Pneumatic.sheet:
14443 Add some Pneumatic & Hydraulic circuit shapes
14444 (both sheets are still incomplete, though feature enough
14445 things for basic circuits).
14447 * shapes/Contact/l_*.(xpm|shape):
14448 * sheets/Contact.sheet
14449 * shapes/Contact/Makefile.am
14450 made the older electric circuit shapes in Contact obsolete (disabled
14451 them in the sheet, made that sheet Ladder only). Fixed the makefile
14452 for forgotten items.
14454 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
14457 Add support for Dia bonobo component.
14458 Currently a bit raw, so it's commented out.
14460 * app/dia_embedd.c:
14462 New files for embedding dia.
14463 The menu disabling hack is a bit gross. Esp. for GNOME.
14466 Add new function app_is_embedded();
14469 Don't destroy diagram when last display is destroyed if embedded.
14472 Change initialization of display so it works with embedding.
14475 Clarify comment about display destruction.
14477 * app/interface.[ch]:
14478 Added top_level_window argument to create_display_shell.
14479 Don't open a top-level window if embedding.
14480 Don't quit app if trying to close toolbox window when embedding.
14481 Add toolbox_show() and toolbox_hide().
14484 Added app_is_embedded() function (just returns false).
14485 Added toolbox_show() call in main().
14488 Added code for getting toolbox menus. This is used to
14489 hide some menu items when running embedded.
14492 Include sheet.h to remove warning.
14494 * objects/UML/association.c:
14495 Clarify association direction text.
14497 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
14500 Fixed man page so whatis parsing works.
14502 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
14504 * app/render_libart.c (new_libart_renderer):
14505 Fix from segg <segg@infonet.ca> to compile without libart.
14506 I forgot to change the stub for new_libart_renderer when doing
14507 the interactive renderer stuff for libart.
14509 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
14511 * dia.desktop: Added Irish translation.
14513 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
14515 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
14517 * app/load_save.c (fchmod): OS/2 defines only.
14519 2000-03-07 James Henstridge <james@daa.com.au>
14521 * lib/properties.c (prop_get_widget): set the position in the option
14524 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
14527 * app/export_png.c:
14528 * app/render_libart.[ch]:
14529 Don't export png:s with an interactive libart renderer.
14531 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
14533 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
14535 2000-03-02 James Henstridge <james@daa.com.au>
14537 * dia.spec (%build): unset LINGUAS before running configure. This
14538 ensures that all translations get included in the RPM.
14540 * lib/properties.c (object_create_props_dialog): put in a check for
14541 a NULL return from the describe_props() object method.
14542 (prop_desc_lists_union): make sure that the returned array is not
14544 (prop_desc_lists_intersection): same here.
14546 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
14548 * objects/ER/Makefile.am:
14549 * objects/FS/Makefile.am:
14550 * objects/UML/Makefile.am:
14551 Don't link object libs with gtk.
14553 2000-02-29 James Henstridge <james@daa.com.au>
14555 * app/preferences.c (prefs_save): check to see if the file could
14556 be opened before writing the prefs.
14558 * app/disp_callbacks.c (popup_object_menu): pass the button event
14559 to gtk_menu_popup. This allows you to click and release to open
14561 (ddisplay_canvas_events): same here.
14562 (create_object_menu): set the object type menu item in the object
14563 menu to be insensitive.
14565 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
14566 as we are now requiring a new version of libxml.
14568 * dia.spec: updated version number. Added requirement for
14571 * configure.in: incremented version number to 0.84.
14572 Added check for libxml >= 1.8.5. This will prevent some of the
14573 problems people have had with broken libxml versions.
14575 * NEWS: added news items.
14577 * app/interface.c (create_color_area): removed call to realize parent
14578 widget. Segg <segg@infonet.ca> reported that it caused a warning,
14579 but I haven't seen it on my copy of dia.
14581 2000-02-28 James Henstridge <james@daa.com.au>
14583 * app/export_png.c: added copyright notice, and made the band height
14586 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
14588 * lib/font.c (suck_font):
14589 Fixed off-by one bug in font pixmap height.
14590 Fixes the problem with garbage at the bottom of some text in aa mode
14591 and in png exported files.
14593 2000-02-27 James Henstridge <james@daa.com.au>
14595 * app/app_procs.c: add the png export filter if it was compiled in.
14597 * app/export_png.c (export_png): new PNG export filter. This requires
14598 the libart renderer to work as it needs a renderer that renders to a
14601 * configure.in: add check for libpng.
14603 * lib/message.c (message_internal): use a GNOME dialog here as well.
14605 * app/display.c (ddisplay_close): use a GNOME dialog here.
14607 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
14608 when exporting to EPS. This is because some people said the EPS
14609 output was too large
14611 2000-02-26 James Henstridge <james@daa.com.au>
14613 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
14616 * app/app_procs.c (app_exit): use a GNOME dialog here.
14618 * app/preferences.c (prefs_create_dialog): if GNOME support is
14619 enabled, show a GNOME dialog.
14621 * app/grid.c (grid_draw): use preferences when drawing page break
14624 * app/preferences.c: add page break preferences to dialog.
14626 * app/preferences.h: added page break preferences.
14628 2000-02-25 James Henstridge <james@daa.com.au>
14630 * sheets/UML.sheet: added new objects.
14632 * objects/UML/uml.c: link in the two new objects.
14634 * objects/UML/node.c:
14635 * objects/UML/branch.c: new UML objects from Stfan Seefeld
14636 <seefelds@magellan.umontreal.ca>.
14638 2000-02-24 James Henstridge <james@daa.com.au>
14640 * objects/custom/custom_object.c: converted to use the properties
14641 interface. In the future, it would be nice to add support for
14642 defining custom properties for custom objects, but that can wait.
14644 2000-02-22 James Henstridge <james@daa.com.au>
14646 * sheets/Circuit.sheet: added new circuit shapes to sheet.
14648 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
14649 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
14650 and adds a few new features.
14652 2000-02-21 Daniel Egger <egger@suse.de>
14654 * sheets/*.sheets: Added German translations and made some
14655 corrections to the others.
14657 2000-02-21 James Henstridge <james@daa.com.au>
14659 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
14661 * shapes/Circuit/...: added new shapes from Erik Janssens.
14663 2000-02-20 James Henstridge <james@daa.com.au>
14665 * app/interface.c (create_color_area): realize the parent window
14668 * objects/standard/image.c: properties patch for standard image
14669 object, from Lars Clausen.
14671 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
14673 * lib/properties.h (PropType): added file property type.
14675 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
14678 * app/interface.c: use wrap box for toolbox.
14680 * app/Makefile.am: added new files.
14682 * app/gtk*wrapbox.[ch]: added wrap box widget.
14684 2000-02-19 James Henstridge <james@daa.com.au>
14686 * sheets/network.sheet: added extra shapes to networks sheet.
14688 * configure.in (AC_OUTPUT): added shapes/network/Makefile
14690 * shapes/network/*: added shapes that were posted to the list a while
14693 * shapes/Makefile.am (SUBDIRS): added network subdirectory
14695 * app/menus.c (toolbox_menu_items): don't right justify help menu for
14696 gtk+ version of menus.
14698 * app/properties.c (create_dialog): use a GnomeDialog if we happen
14701 2000-02-18 James Henstridge <james@daa.com.au>
14703 * objects/flowchart/box.c: set extra data for corner radius and text
14704 padding properties.
14706 * objects/standard/box.c: set extra data for corner radius property.
14708 * lib/properties.h: set extra data in some standard properties.
14710 * lib/properties.c (prop_get_widget): look at the extra data for
14711 int, real and enum property types. They now use GtkSpinButton and
14712 GtkOptionMenu respectively.
14714 * lib/properties.h: extra data members for creating property setting
14717 2000-02-17 James Henstridge <james@daa.com.au>
14719 * objects/flowchart/box.c: reverted load/save functions back to
14720 previous implementations. Made box use standard property names.
14722 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
14724 * app/grid.c: add more digits to the grid edit dialog. This patch
14725 was also from Lars Clausen.
14727 * objects/standard/zigzagline.c:
14728 * objects/standard/textobj.c:
14729 * objects/standard/polyline.c:
14730 * objects/standard/line.c:
14731 * objects/standard/ellipse.c:
14732 * objects/standard/box.c:
14733 * objects/standard/bezier.c:
14734 * objects/standard/arc.c: patches to add properties code to standard
14735 objects. Based on patches from Lars Clausen. I have also removed
14736 some dead code from the files.
14738 * lib/properties.h (PROP_STD_*): define a number of standard
14739 properties. Where appropriate, objects should include these
14740 properties in their PropDescription list. This way, the intersection
14741 of properties of two different shapes will be greater.
14743 2000-02-14 James Henstridge <james@daa.com.au>
14745 * objects/flowchart/box.c (box_load, box_save): use property save
14746 routines. Make sure that any props not handled by object_load_props
14747 are loaded before calling object_load_props, or we get errors because
14748 update_data is called.
14750 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
14751 error that could cause properties to be loaded incorrectly.
14752 (object_set_props_from_offsets): similar here.
14754 * lib/properties.[ch] (prop_{load,save}): functions for loading
14755 or saving a property in Dia's XML file format.
14756 (object_{load,save}_props): load or save some properties of an
14757 object. These functions should help simplify the load/save methods
14758 of objects that implement the properties interface.
14760 2000-02-13 James Henstridge <james@daa.com.au>
14762 * objects/flowchart/box.c: use offset code to simplify property
14765 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
14767 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
14769 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
14771 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
14773 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
14776 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
14779 Add the custom object to DIA_LIB_PATH in run_dia.sh
14781 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
14783 * sheets/Circuit.sheet:
14784 * shapes/l_sout* (NEW):
14785 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
14786 variants of simple, inverted, set and reset outputs.
14787 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
14788 probably a split of Contact and Ladder sheets. And then a major
14789 revamping of the Contact sheet.
14791 2000-02-10 James Henstridge <james@daa.com.au>
14793 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
14795 * app/app_procs.c (register_all_objects): don't explicitely
14796 register the custom objects library -- let it be loaded by the
14797 normal plugin loading methods.
14799 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
14801 * objects/custom/Makefile.am: build libcustom_objects as a shared
14804 * objects/custom/shape_info.[ch]: don't read the description field
14805 of custom shapes. It makes more sense to have these in the sheet
14806 file to localise the parts of dia that translators have to deal
14809 * objects/custom/custom_object.c (custom_object_new): do not
14810 create the sheet object for the new custom shape -- this is
14811 handled by the custom sheet code.
14813 * objects/custom/custom.c: change over to being a normal plug-in
14814 rather than being linked with the main dia executable.
14816 2000-02-09 James Henstridge <james@daa.com.au>
14818 * sheets/Circuit.sheet:
14819 * sheets/Flowchart.sheet:
14820 * sheets/Contact.sheet: fixed up sheets.
14822 * objects/custom/custom_object.c (custom_object_new): set the
14823 extra ObjectType fields.
14825 * lib/sheet.c: use extra ObjectType fields when creating sheet
14826 objects. Give a warning if <shape> tags are found in a sheet
14827 file. Now the custom sheet code does not know about custom
14828 shapes -- they look like any other object type.
14830 * lib/object.h (ObjectType): added extra members
14832 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
14834 * app/linewidth_area.c:
14835 Added code to set arbitrary line width.
14836 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
14838 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
14840 * app/linewidth_area.c:
14842 Add support for font-sucking.
14843 Implementation borrowed from gnome-canvas.
14845 * app/render_libart.[ch]:
14846 Implement text rendering.
14848 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
14850 * app/properties.c (create_dialog):
14851 ref and sink no_properties_dialog.
14853 2000-02-07 James Henstridge <james@daa.com.au>
14855 * app/group.c (group_describe_props): new function. Return the
14856 intersection of the properties of the contained objects that
14857 implement the describe_props interface.
14858 (group_get_props): implement by iterating through contained objects
14859 and calling their get_props method until all properties have been
14860 set. Maybe this should go through all objects all the time??
14861 (group_set_props): implement by calling set_props method on all
14863 (group_ops): use standard props dialog creation routines.
14865 * lib/properties.c (prop_desc_lists_intersection): fix implementation
14866 of intersection -- I was using i++ instead of i-- in a for loop :(
14868 * objects/custom/custom.c (custom_register_objects): fix usage
14869 of dia_get_data_directory again.
14871 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
14872 actually read the sheets.
14874 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
14876 Win32 port by Hans Breuer <Hans@Breuer.org>
14879 Remove DATADIR and LIBDIR defines.
14882 Add dia_dirs.c and dia_dirs.h
14883 Added DATADIR and LIBDIR defines.
14885 * lib/dia_dirs.[ch]:
14886 New files for handling special directories.
14891 * objects/custom/custom.c:
14892 Fix warnings. Use directory functions.
14895 Add prototype for diagram_redraw_all.
14897 * app/diaunitspinner.c:
14900 * app/preferences.c:
14904 Win32 doesn't have mkstemp and fchmod.
14906 * app/paginate_psprint.c:
14907 Win32 calls popen _popen and pclose _pclose.
14910 Win32 calls finite _finite.
14913 Win32 needs to dllexport the color vars.
14915 * objects/GRAFCET/step.c:
14916 * objects/chronogram/chronoref.c:
14917 snprintf -> g_snprintf
14919 2000-02-05 James Henstridge <james@daa.com.au>
14921 * lib/properties.c: more fixes so that it doesn't crash when using
14922 properties. The undo/redo stuff also works!!
14924 * objects/flowchart/box.c (box_{describe, get, set}_props): test
14925 object where I have implemented the new properties interface
14926 complete with automatic properties dialog generation.
14928 * lib/properties.c (object_apply_props): fixed stupid error when
14929 creating the old_props array. Also, it no longer frees the props
14930 array -- you will have to do that yourself.
14932 2000-02-04 James Henstridge <james@daa.com.au>
14934 * app/properties.c (properties_apply): pass object_part to
14937 * lib/object.h (ApplyPropertiesFunc): added widget argument.
14939 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
14940 created this way as well.
14942 * objects/*/*.c: ref and sink the properties dialog window for each
14943 widget. It can't rely on ref count being incremented by
14944 properties_show anymore.
14946 * app/properties.c (properties_show): don't ref the widget before
14947 removing it, or its ref count will increase each time you open the
14948 properties dialog. Don't unparent the widget, as container_remove
14951 * lib/object.h: fixed up prototypes for new object methods.
14953 * lib/properties.[ch]: added functions for automatically creating
14954 a properties dialog from the output of describe_props, get_props and
14956 (object_apply_props): apply properties and return an ObjectChange
14957 structure that can be used for undo.
14959 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
14961 * objects/GRAFCET/transition.c: minor leak plugged.
14963 * sheets/GRAFCET.sheet:
14964 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
14965 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
14967 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
14968 new ones (for condition.c).
14969 * objects/GRAFCET/action.c: added connection points for the conditions.
14970 * samples/grafcet.dia: updated the sample to improve conformance to
14971 IEC 848 and take advantage of dia's new features.
14973 * lib/geometry.h: (point_get_normed) fixed a typo.
14975 2000-02-02 James Henstridge <james@daa.com.au>
14977 * lib/object.h: added object functions describe_props, get_props and
14978 set_props. Do type definitions so that object.h doesn't need to
14979 include properties.h, since properties.h includes object.h.
14981 * lib/properties.[ch]: more hacking.
14983 * po/de.po: updated po file.
14985 2000-01-30 James Henstridge <james@daa.com.au>
14987 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
14988 check to see if the C compiler accepts the flag beforehand.
14990 * lib/properties.[ch]: start of properties code.
14992 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
14994 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
14996 * sheets/GRAFCET.sheet:
14997 * sheets/GRAFCET/etapemc.xpm: (NEW)
14998 * sheets/GRAFCET/etapesp.xpm: (NEW)
14999 * objects/GRAFCET/step.c: Added the macro and
15000 sub-program call step types.
15002 * objects/GRAFCET/receptivity.[ch]: renamed to
15003 objects/GRAFCET/boolequation.[ch].
15004 * objects/GRAFCET/transition.c: changed (Receptivity *) to
15007 * lib/connpoint_line.[ch]:
15008 * objects/chronogram/chronoline.c:
15009 * objects/chronogram/chronoref.c:
15010 * objects/GRAFCET/vergent.c:
15011 * objects/standard/line.c:
15012 * objects/SADT/box.c: Minor CPL interface changes, factored out the
15013 point count adjustment code into the CPL object.
15015 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
15017 * app/render_libart.c:
15018 Added support for images and bezier curves.
15019 Only text/fonts missing now.
15021 * app/render_gdk.c:
15022 Removed old erronous comment.
15024 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
15026 * objects/chronogram/chronoline_event.c: removed references to
15027 lround(). Please don't insist, I'm already red of shame.
15029 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
15031 * app/render_libart.[ch]:
15033 Non-finished libart renderer.
15036 Added HAVE_LIBART flag
15042 Call gdk_rbg_init().
15044 * app/connectionpoint_ops.c:
15045 * app/disp_callbacks.c:
15047 * app/handle_ops.c:
15049 * app/modify_tool.c:
15050 Change ddisp->renderer type from RendererGdk * to Renderer *
15051 Draw zoom and select rects in ddisp->canvas->window instead
15052 of ddisp->renderer->renderer->pixmap.
15054 * app/display.[ch]:
15055 Add aa_renderer to DDisplay, and support for it.
15056 New function ddisplay_set_renderer() for changing renderer.
15057 Add ddisplay_transform_coords_double() function, used by aa renderer.
15058 Change ddisp->renderer type from RendererGdk * to Renderer *
15061 Add antialias to menu.
15063 * app/commands.[ch]:
15064 add view_aa_callback function
15065 Change ddisp->renderer type from RendererGdk * to Renderer *
15067 * lib/geometry.[ch]:
15068 Added IntRectangle and int_rectangle_union.
15070 2000-01-28 James Henstridge <james@daa.com.au>
15072 * app/commands.h: removed prototypes.
15074 * app/commands.c: removed the functions that have been moved to
15077 * app/filedlg.h: added new prototypes.
15079 * app/filedlg.c (file_open_callback): move open dialog to this
15080 file. This implementation should remember the current directory
15081 between file loads.
15082 (file_save_as_callback): moved this dialog as well.
15083 (file_save_callback): moved this function here.
15085 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
15086 align page boundaries to the origin.
15088 * app/diagram.c (diagram_update_extents): redraw the diagram if the
15089 scaling factor changes while updating the extents. This is so the
15090 page breaks get redrawn correctly.
15092 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
15095 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
15096 For normal mode, use (0,0) as the origin. For `fit to' mode, use
15097 the corner of the bounding box.
15099 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
15100 into page setup dialog.
15101 (pagesetup_apply): apply new `fit to' attributes to the diagram.
15103 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
15104 (diagram_data_save): save `fit to' data.
15106 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
15107 (data_update_extents): when in `fit to' mode, update scale factor
15108 when we update the extents.
15110 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
15113 * .../.cvsignore: added some cvsignore files to quieten cvs.
15115 * app/pagesetup.c (pagesetup_changed): added code to change the
15116 scaling/fit to values as you change the options in the page setup
15117 dialog. I haven't added code so that the fit to options are saved
15120 * app/diapagelayout.[ch]: changed the scaling portion of the widget
15121 to make it easier to set a `fit to' style scaling factor.
15123 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
15124 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
15125 but connpoint_line-based, so that there's a connection point at the
15126 middle of each segment. Currently only the SADT arrow uses this.
15128 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
15130 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
15131 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
15132 saving and editing of properties (and default properties).
15133 See the new objects (GRAFCET, SADT, chonograms) for examples.
15134 For already too hairy stuff, see objects/chronogram/chronoline.c.
15136 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
15137 evenly spaced connection points, which the user can add or remove at
15138 will. An object can own several connection point lines. See the SADT
15139 Box, or the GRAFCET vergents for examples.
15141 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
15142 quiet about unused stuff.
15144 * objects/GRAFCET (NEW):
15145 * samples/grafcet.dia (NEW):
15146 Added support for GRAFCET charts.
15148 * objects/chronogram (NEW):
15149 * samples/chronograms.dia (NEW):
15150 Added support for chronograms (feature requested by Ronald L. Chichest;
15151 I found I'd use it often, too).
15153 * objects/standard/line.c: Replace the middle connectionpoint by
15154 a whole connection point line, which defaults to one point (hint,
15155 hint). New Line object menu to take advantage of this.
15156 "Bothwards" compatibility is preserved (although you may loose
15157 connections if you load a newer file in a older dia).
15159 * app/lineprops_area.c:
15161 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
15162 (feature requested by Benjamin Kahn).
15163 Merged in Steffen Macke's slashed arrow head type.
15165 * app/Makefile.am (app/run_dia.sh actually):
15166 Added $DEBUGGER in front of dia's invocation, so that
15167 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
15168 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
15169 "EFENCE=-lefence" to link with Electric Fence.
15171 * configure.in: Made gcc do more aggressive optimisations on i386, and
15174 2000-01-24 James Henstridge <james@daa.com.au>
15176 * lib/geometry.[ch]: added inline versions of functions. Used
15177 glib's G_INLINE_FUNC stuff, so it should still work on systems
15178 without inline funcs.
15180 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
15181 it outputs the correct element id for the ellipse objects.
15183 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
15185 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
15186 object_add_handle_at. Message typo fixed.
15188 * lib/sheet.c (load_register_sheet):
15189 potential bug fixed (warning hunt).
15191 * objects/custom/custom.c (custom_object_load): disabled an assertion
15192 which made dia abort upon failure to load a shape file. Fixed a
15195 * objects/custom/shape_info.c (load_shape_info): Made the custom
15196 shape load code ignore XML comments between <?xml ...?> and the
15197 root object (mostly useful to put the emacs magic comments).
15199 * app/load_save.c: Made dia do backup copies of files when saving,
15200 and complain in case of failure.
15202 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
15204 * AUTHORS: fixed my address (ISP thought it was a great idea to change
15209 * shapes/Contact/*:
15210 * sheets/Contact.sheet:
15211 * sheets/Makefile.am:
15212 Added support for Contact and LADDER charts.
15214 * dia.desktop: Added a French translation.
15216 2000-01-23 James Henstridge <james@daa.com.au>
15218 * app/commands.c (help_about_callback): don't die if can't load
15221 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
15222 out NaN's when performing bezier curve subdivision.
15224 * objects/custom/custom_object.c: initialise memory of Custom structs
15227 * app/render_svg.c (draw_image): added image support to the XML
15228 output filter. The image is just referenced, rather than being
15229 included inline, so if you copy the SVG file somewhere else, you
15230 may need to move the images or fix up the links.
15232 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
15233 so the text is not just displayed in black all the time.
15235 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
15237 * configure.in: fixed libpopt test so we wont try to build with
15240 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
15242 * configure.in: Added "uk" to ALL_LINGUAS.
15244 1999-12-24 James Henstridge <james@daa.com.au>
15246 * po/ru.po: updated russian translation from Valek Filippov.
15248 * app/render_svg.c (new_svg_renderer): make output use 19991203
15249 version of SVG DTD. Use viewBox to set the extents of the view.
15251 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
15252 ftp.gnome.org as the download.
15254 * TODO (TODO): weeded out completed todo items and added a few extra.
15256 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
15258 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
15259 be good to get rid of the object/shape distinction and separate
15260 the custom shape code out from the main application.
15262 * objects/custom/README, diagram.dtd: moved to new doc directory.
15263 Renamed the custom shapes README to custom-shapes. Also updated
15264 custom shape docs a bit and removed the section on sheet files, as
15265 that has changed a bit.
15267 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
15268 of the image data is larger than the maximum cell array. I should
15269 add code to break scan lines down further in this case, but for now
15270 an error message is better than an infinite loop.
15272 * app/filedlg.c (file_export_ok_callback): show a dialog if we
15273 couldn't determine the export filter to use.
15275 * app/commands.c (help_about_callback): fixed up about box logo
15276 expose bug. Now just use a GtkPixmap widget rather than a
15277 GtkDrawingArea and calling gdk_imlib_paste_image.
15279 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
15280 because automake does not always get things right.
15282 * configure.in: updated version number to 0.83.
15284 * app/preferences.c (prefs_save):
15285 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
15286 for fopen. Text is the default file mode anyway.
15288 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
15289 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
15290 * app/load_save.c (write_objects, write_connections):
15291 * app/filedlg.c (file_export_ok_callback):
15292 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
15293 * lib/dia_xml.c (data_add_point, data_add_rectangle):
15294 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
15295 snprintf to calls to g_snprintf.
15297 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
15298 as the picture name.
15300 1999-12-23 James Henstridge <james@daa.com.au>
15302 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
15303 negative numbers. This fixes the upside down text problem I was
15305 (draw_image): implemented the image code. It will try to split the
15306 image data up into bands if it is too big to fit into a single
15307 cgm cell array element. It will have problems if you try to insert
15308 an image wider than about 10,000 pixels though.
15310 * Makefile.am: use gnomedatadir for the files that need to be
15311 installed in gnome's datadir. This is mainly to help people doing
15312 packages for weird setups.
15314 1999-12-22 James Henstridge <james@daa.com.au>
15316 * plug-ins/cgm/cgm.c: added support for text. Now only images and
15317 beziers are left to do. The text seems to be the wrong way up
15318 still. This is probably a problem with character orientation
15319 element, but I have used what the settings given in the standard.
15320 Other than this, the CGMs dia produces are readable (and displayable)
15321 by ralcgm and corel draw.
15322 (draw_string): subtract from the X coord rather than the Y coord for
15323 center and right aligned text.
15325 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
15326 the size of a real number, and changed name of write_double to
15327 write_real. Consider changing to fixed real encoding. Also, now
15328 all element headers are correct. Once the real number encoding is
15329 fixed, only text, beziers and images are left to do.
15331 1999-12-21 James Henstridge <james@daa.com.au>
15333 * Makefile.am (SUBDIRS): recurse into plug-ins.
15335 * configure.in: add plug-ins directory makefiles to list.
15337 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
15338 not done yet. Also, the output files are not quite correct.
15340 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
15341 font. It doesn't work if you do.
15343 1999-12-20 James Henstridge <james@daa.com.au>
15345 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
15346 export the files. Instead, use filter_guess_export_filter to
15347 guess the correct format to save in and use the appropriate filter.
15348 It defaults to postscript for compatibility.
15350 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
15353 * app/commands.[ch]: removed export to eps functions.
15355 * app/menus.c: removed export to eps menu items.
15357 * app/app_procs.c: register new export filters.
15359 * app/load_save.[ch]: define dia native export filter.
15361 * app/render_eps.[ch]: define eps export filter.
15363 * lib/filter.h: added diafilename argument to the DiaExportFunc
15364 prototype. This is useful for putting the source of the diagram
15365 into the output file for instance.
15367 * app/app_procs.c (app_init): register the SVG export filter. Have
15368 to get EPS code converted to this API, and maybe also allow saving in
15369 DIA's native format from the export dialog. In fact, it is now
15370 possible to load an export filter from a shared library and it will
15371 integrate into the interface correctly.
15373 * app/menus.c: removed references to the SVG renderer.
15375 * app/commands.[ch]: removed svg stuff.
15377 * app/diagram.[ch]: removed diagram_export_to_svg function.
15379 * app/render_svg.[ch]: added a DiaExportFilter structure for this
15382 * app/filedlg.[ch]: code for the new export diagram dialog. Will
15383 probably move the open/save dialogs to this file as well.
15385 1999-12-19 James Henstridge <james@daa.com.au>
15387 * lib/filter.[ch]: start of interface for generalised handling of
15388 filters. I have only done code for export filters so far. I still
15389 need to do the gui for this, and convert the current SVG and EPS
15390 filters to the new API.
15392 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
15393 weren't setting the last handle correctly. It was actually assigning
15394 to the wrong position in the handles array, so the last handle was
15395 left as NULL, which caused the segfault.
15397 * objects/standard/image.c (image_copy): modified routine so that
15398 it just adds a reference to the DiaImage structure in the new image
15399 object. This seems to have cleared up the problems with copying
15402 * dia.spec: spec file additions from John Gotts.
15404 1999-12-12 James Henstridge <james@daa.com.au>
15406 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
15407 has not been released yet though.
15409 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
15412 The following based on a patch from Lars Clausen:
15414 * objects/standard/bezier.c (bezierline_move_handle): when performing
15415 the initial drag of the bezierline, move the control points to keep
15418 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
15419 make the new control points a bit closer to the major point.
15421 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
15422 as the reason for the move.
15423 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
15426 * lib/handle.h: new handle move reasons.
15428 1999-12-09 James Henstridge <james@daa.com.au>
15430 * dia.spec: include the new files in RPMs.
15432 * Makefile.am: install these new files.
15434 * dia.keys.in: file describing actions and icon for dia diagrams for
15435 use in the gnome file manager.
15437 * dia.mime: a file defining the application/x-dia-diagram mime type.
15439 * dia-diagram.png: an icon for dia diagrams.
15441 1999-12-08 James Henstridge <james@daa.com.au>
15443 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
15445 * plug-ins/python/pydia-display.[ch]: wrapper for display.
15447 * objects/standard/ellipse.c: applied Lars's patch to optionally not
15448 draw the background of the ellipse.
15450 * app/load_save.c (read_connections): do some sanity checking on the
15451 handle and connection point numbers before performing the object
15454 * lib/bezier_conn.c (bezierconn_load): give the correct number of
15455 handles when loading a BezierConn.
15457 1999-12-07 Kjartan Maraas <kmaraas@online.no>
15459 * sheets/*.sheet: Finished Norwegian translations.
15461 1999-12-07 James Henstridge <james@daa.com.au>
15463 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
15464 (PyDia_GetObjectType): find object type function.
15466 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
15467 method for diagrams.
15469 * plug-ins/python/pydia-object.c: added methods for DiaObject and
15472 * AUTHORS: added Lars and Cyrille to the authors file.
15474 * objects/standard/bezier.c (bezierline_add_segment_callback): place
15475 new point correctly.
15477 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
15479 * lib/bezier_conn.c: applied Lars's patch for placement of the new
15480 point when adding a segment to a BezierConn.
15482 1999-12-06 James Henstridge <james@daa.com.au>
15484 * plug-ins/python/test.py: test script for the python plug-in.
15486 * plug-ins/python/python.c: this file contains the plug-in startup
15487 code for the python plugin. Right now, it just initialises the
15488 dia module and executes a script.
15490 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
15492 * objects/standard/bezier.c (bezierline_draw): draw control lines for
15493 bezier curve if we are using an interactive renderer (ie. only if
15494 displaying to the screen).
15496 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
15497 to draw control lines on to a bezier curve. Based on implementation
15500 * objects/standard/bezier.c (bezierline_delete_segment_callback):
15501 calculate segment number using closest_segment rather than
15502 closest_handle. Sometimes the closest handle is part of a different
15504 (bezierline_draw): use correct size for start arrow.
15506 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
15507 * lib/geometry.c (distance_line_point): added notes to documentation
15509 * app/object_ops.c (object_list_align_v):
15510 (object_list_align_h): fix of by one error when calculating free space
15511 for equal distance alignment.
15512 * app/menus.c (objects_align_h, objects_align_v): include align
15513 adjacent menu items in the gnome version of the menus.
15514 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
15515 align adjacent menu items correctly.
15518 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
15521 * objects/standard/bezier.c: converted bezierline to use BezierConn.
15522 Still a few bugs. It crashes on deleting line segments.
15524 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
15526 1999-12-05 James Henstridge <james@daa.com.au>
15528 * lib/bezier_conn.[ch]: start of BezierConn object
15530 * app/interface.c: add bezierline to toolbox.
15532 * objects/standard/standard.c: initialise bezierline.
15534 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
15535 made a few modifications to get it working nicely. It still needs
15536 a bit of work though. Maybe create a BezierConn object in lib.
15538 1999-12-02 James Henstridge <james@daa.com.au>
15540 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
15542 * plug-ins/python/Makefile.am: tried building everything. It is
15543 building as a library at the moment. I will have to convert it
15544 to a libtool library and add some initialisation code.
15546 * plug-ins/python/diamodule.c: start of the dia module, using the
15547 other object wrappers. Not complete.
15549 1999-12-01 James Henstridge <james@daa.com.au>
15551 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
15552 the handles and connections attributes.
15554 * plug-ins/python/pydia-layer.c: added functions that use
15557 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
15559 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
15561 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
15562 I am currently wrapping the basic elements in the diagram in python
15563 objects -- nothing to see or play with yet.
15565 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
15569 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
15571 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
15575 Added russian translation from Valek Filippov <frob@df.ru>
15577 1999-11-24 James Henstridge <james@daa.com.au>
15580 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
15581 discussed with Alex. Also added extra makefiles so that make install
15584 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
15586 * app/preferences.[ch]:
15588 Added snap to grid preference.
15589 Patch from Michael Leslie <mles@springboardwireless.com>
15591 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15597 * objects/custom/shape_info.c:
15598 All strings returned by libxml must be freed with free, not
15599 g_free, or there will be problems if you use memory debugging
15602 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15604 * app/create_object.[ch]:
15607 * app/commands.[ch]:
15609 * app/interface.[ch]:
15610 Reverted the tool menu patch. It has some 'issues'.
15611 I liked it though, so it'll probably return.
15613 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15615 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
15616 <bruce@cybersight.com> for some purify runs and analysis.
15617 Also a great thank you to Owen Taylor for creating MemProf, a
15618 free memory leak detector that was used to find and verify a
15619 lot of these fixes.
15622 * app/paginate_psprint.c:
15623 * app/render_eps.[ch]:
15624 * app/render_svg.[ch]:
15628 Don't add a reference to ddisp->shell. Why was this done in
15635 Free all strings returned from xmlGetProp
15637 * app/modify_tool.c:
15640 * objects/custom/custom.c:
15641 Use closedir() after opendir().
15643 * objects/custom/shape_info.c:
15644 User g_free() instead of "if (tmp) free(tmp)".
15647 Add newline at end of file.
15650 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
15652 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
15653 Adds tool menu and keyboard shortcuts.
15655 * app/create_object.[ch]:
15656 Use tool_set() instead of tool_reset().
15657 create_create_object_tool() takes extra type argument
15663 Moved tool_data here, export it.
15664 Add separate tool type for all create objects tools.
15665 new functions tool_set().
15668 New callback tool_set_callback.
15671 Moved some pixmaps to interface.c.
15674 Remove tool_data array (moved to tool.c).
15675 Use the tool_data from tool.c.
15676 Remove modify_tool_button global var.
15678 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
15680 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
15683 Interprets command-line arguments as files to open even when
15684 HAVE_POPT is not defined.
15687 Shift-clicking when zooming zooms out, like the Gimp.
15690 Has hotkeys for zoom-100% and snap-to-grid.
15692 1999-11-17 James Henstridge <james@daa.com.au>
15694 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
15695 that it is not jumpy.
15697 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
15699 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
15700 scrolling by pressing the shift key when using the scroll tool.
15702 * sheets/Makefile.am: fixed makefile so that install actually works
15703 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
15705 (SHEETS): install Circuit.sheet
15707 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
15708 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
15710 * sheets/Circuit.sheet:
15713 * sheets/Flowchart.sheet:
15714 * sheets/UML.sheet:
15715 * sheets/network.sheet:
15716 * sheets/sybase.sheet:
15719 * sheets/Circuit.sheet:
15720 added some missing French translations
15723 killed the temporary sheet namespace
15725 * objects/custom/custom.c:
15726 obsolete comment cleaned up
15728 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
15732 Added portugese translation from Pedro Morais
15733 <pmmm@rnl.ist.utl.pt>
15735 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
15737 Changed all sheets to be specified in xml.
15738 All sheet objects removed from the C code.
15739 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
15744 Updated version to 0.81cvs.
15747 Update run_dia.sh with sheet-dir.
15750 Load all sheets on startup.
15751 Create sheet directory first time.
15752 Don't call custom_register_sheets().
15755 Add sheetdir define
15758 Remove custom_register_sheets().
15761 Add sheet loading code.
15763 * sheet/Circuit.sheet:
15766 * sheet/Flowchart.sheet:
15768 * sheet/network.sheet:
15769 * sheet/sybase.sheet:
15772 * sheet/ER/weakentity.xpm:
15773 * sheet/UML/aggregation.xpm
15774 * sheet/UML/umlclass_template.xpm
15775 Added sheet pixmaps.
15776 These are moved from their old places.
15778 * sheet/.cvsignore:
15782 Removed sheet objects and sheet registration.
15784 * objects/ER/Makefile.am:
15785 * objects/ER/pixmaps/weakentity.xpm:
15786 * objects/UML/Makefile.am:
15787 * objects/UML/pixmaps/aggregation.xpm:
15788 * objects/UML/pixmaps/umlclass_template.xpm:
15789 Removed alternative pixmaps. (Moved to sheet).
15791 * objects/custom/Makefile.am:
15792 * objects/custom/load_sheet.[ch]:
15793 Removed old sheet loading code.
15795 * objects/custom/custom.c:
15796 Load all shapes instead of sheets.
15797 Removed custom_register_sheets().
15799 * objects/custom/custom_object.c:
15802 * objects/custom/shape_info.[ch]:
15803 Added shape_info_getbyname().
15805 * objects/flowchart/Makefile.am:
15806 * objects/flowchart/collate.shape
15807 * objects/flowchart/delay.shape
15808 * objects/flowchart/display.shape
15809 * objects/flowchart/document.shape
15810 * objects/flowchart/extract.shape
15811 * objects/flowchart/flowchart.c
15812 * objects/flowchart/intstorage.shape
15813 * objects/flowchart/magdisk.shape
15814 * objects/flowchart/magdrum.shape
15815 * objects/flowchart/magtape.shape
15816 * objects/flowchart/manualinput.shape
15817 * objects/flowchart/manualop.shape
15818 * objects/flowchart/merge.shape
15819 * objects/flowchart/offlinestore.shape
15820 * objects/flowchart/offpageconn.shape
15821 * objects/flowchart/or.shape
15822 * objects/flowchart/predefdproc.shape
15823 * objects/flowchart/preparation.shape
15824 * objects/flowchart/punchedcard.shape
15825 * objects/flowchart/punchedtape.shape
15826 * objects/flowchart/sort.shape
15827 * objects/flowchart/sumjunction.shape
15828 * objects/flowchart/terminal.shape
15829 * objects/flowchart/transaction.shape
15830 * objects/flowchart/transmittape.shape
15831 * objects/flowchart/pixmaps/collate.xpm
15832 * objects/flowchart/pixmaps/delay.xpm
15833 * objects/flowchart/pixmaps/display.xpm
15834 * objects/flowchart/pixmaps/document.xpm
15835 * objects/flowchart/pixmaps/extract.xpm
15836 * objects/flowchart/pixmaps/intstorage.xpm
15837 * objects/flowchart/pixmaps/magdisk.xpm
15838 * objects/flowchart/pixmaps/magdrum.xpm
15839 * objects/flowchart/pixmaps/magtape.xpm
15840 * objects/flowchart/pixmaps/manualinput.xpm
15841 * objects/flowchart/pixmaps/manualop.xpm
15842 * objects/flowchart/pixmaps/merge.xpm
15843 * objects/flowchart/pixmaps/offlinestore.xpm
15844 * objects/flowchart/pixmaps/offpageconn.xpm
15845 * objects/flowchart/pixmaps/or.xpm
15846 * objects/flowchart/pixmaps/predefdproc.xpm
15847 * objects/flowchart/pixmaps/preparation.xpm
15848 * objects/flowchart/pixmaps/punchedcard.xpm
15849 * objects/flowchart/pixmaps/punchedtape.xpm
15850 * objects/flowchart/pixmaps/sort.xpm
15851 * objects/flowchart/pixmaps/sumjunction.xpm
15852 * objects/flowchart/pixmaps/terminal.xpm
15853 * objects/flowchart/pixmaps/transaction.xpm
15854 * objects/flowchart/pixmaps/transmittape.xpm
15855 Moved shapes and their pixmaps to shapes/flowchart
15857 * shapes/Circuit/Makefile.am:
15858 * shapes/Circuit/index.sheet:
15859 Removed index.sheet.
15861 * shapes/Makefile.am:
15862 * shapes/flowchart/Makefile.am:
15863 * shapes/flowchart/*.shape:
15864 * shapes/flowchart/*.xpm:
15865 Added flowchart shapes. (Moved from objects/flowchart)
15868 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
15870 * app/app_procs.c: Fixed popt stuff.
15872 1999-11-01 James Henstridge <james@daa.com.au>
15874 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
15877 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
15881 Update version to 0.81.
15884 Update with news for 0.81.
15886 * shapes/Circuit/*:
15887 * shapes/Circuit_eu/*:
15888 Moved european circuit objects to Circuit sheet.
15890 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
15892 * lib/diagramdata.[ch]:
15893 Added layer_set_object_list() function.
15896 Added support for undo of reordered objects.
15897 Fix the undo of delete to keep the right order on undo.
15900 changed loop to object_add_updates_list() calls.
15901 Added undo support to bring to front/back.
15903 * app/disp_callbacks.c:
15904 * app/paginate_psprint.c:
15907 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
15909 This plugs some leaks. Thanks to
15910 Bruce Mitchener <bruce@cybersight.com> for running
15911 Dia through purify for me.
15914 Free displays and diagrams on exit.
15916 * app/modify_tool.c:
15917 Free gc when freeing tool.
15919 * lib/diagramdata.c:
15923 Free update and display lists when destroying display.
15925 * lib/diagramdata.c:
15926 Don't leak layer name.
15928 * objects/custom/load_sheet.c:
15929 * objects/custom/shape_info.c:
15930 Free loaded xml documents.
15932 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
15935 * app/object_ops.[ch]:
15936 Add undo handling to alignment ops.
15937 Based partially on patch by Dan Cohn <dan@internap.com>.
15939 * objects/standard/image.c (image_move_handle):
15940 Don't divide by zero for small images.
15941 Patch by Dan Cohn <dan@internap.com>.
15943 * objects/UML/class.c (umlclass_destroy):
15944 * objects/custom/custom_object.c (custom_destroy):
15945 Don't free connectionpoints before calling element_destroy
15946 which unconnects them.
15948 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
15950 * objects/custom/custom_object.c:
15951 Load and save padding too. Fixes strange load crashes.
15953 * app/group.c (group_destroy):
15954 Don't unconnect already freed connectionpoints when
15955 destroying group. Probably fixes bug reported by
15956 Elliot Lee <sopwith@redhat.com>.
15958 * app/render_gdk.c:
15959 Don't crash on zero-size (broken) bezier curves.
15960 Different sort of fix. This should work on closed bezier curves
15963 * objects/standard/textobj.c:
15964 Activate default properties dialog for Text objects.
15966 * app/render_eps.c:
15968 * app/preferences.c:
15969 * app/render_svg.c:
15970 fopen files in binary or text mode.
15972 1999-10-26 Alexander Larsson <alex@cendio.se>
15974 * app/render_gdk.c (bezier_add_lines):
15975 Don't crash on zero-size (broken) bezier curves.
15976 Fixes a crashing bug.
15978 1999-10-25 James Henstridge <james@daa.com.au>
15980 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
15981 before it is installed.
15983 * objects/flowchart/flowchart.c: use relative paths to find shapes.
15985 * objects/custom/custom.c (custom_object_load): take file names
15986 relative to $(pkgdatadir)/shape-internal, and check an environment
15987 variable for an alternative directory.
15989 * app/...: added copyright messages to the top of my new code.
15991 * app/paginate_psprint.c: some general clean ups. Also, give an error
15992 dialog if we can't open the command or output file for writing.
15994 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
15995 function so it would set orientation to landscape correctly.
15997 * app/paginate_psprint.c: use the paper settings that come with
15998 the diagram. Also implemented landscape printing.
16000 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
16003 * app/commands.[ch] (file_pagesetup_callback): added callback for
16004 the page setup dialog.
16006 * app/menus.c: added page setup menu item.
16008 * app/pagesetup.[ch]: implementation of the page setup dialog.
16010 * app/diapagelayout.[ch]: added accessors for the scaling factor.
16012 * app/load_save.c (diagram_load): load paper information from save
16014 (diagram_save): save the paper info.
16016 * lib/diagramdata.c (new_diagram_data): initialise paper info section
16017 of DiagramData structure.
16018 (diagram_data_destroy): free the paper name.
16020 * lib/diagramdata.h: added a paper member to the DiagramData structure
16021 that holds the page layout info for a diagram.
16023 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
16025 * objects/flowchart/box.c:
16026 * objects/flowchart/ellipse.c:
16027 * objects/flowchart/diamond.c:
16028 * objects/flowchart/parallelogram.c:
16029 Load and save padding too. Fixes strange load crashes.
16031 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
16033 * app/app_procs.c (name_is_lib):
16034 .dll, .sl and .so.0.0.0 are also libraries.
16036 1999-10-20 James Henstridge <james@daa.com.au>
16038 * configure.in: added extra makefile.
16040 * shapes/Circuit_eu/*: a new set of european circuit shapes from
16041 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
16042 (added fuses to makefile, fill the area of some of the components).
16044 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
16048 Add GDK_IMLIB_CFLAGS to includes.
16049 Changed --export-dynamic to -export-dynamic
16052 * objects/UML/message.c:
16053 Removed c++ comment.
16055 * lib/render_store.[ch]:
16056 Don't use empty structure. That is not Ansi C.
16058 1999-10-19 James Henstridge <james@daa.com.au>
16060 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
16061 the margin entries, as they allow interpretation of units.
16062 (paper_size_change): display the current page dimensions.
16064 * app/diaunitspinner.[ch]: a widget derived from the standard
16065 GtkSpinButton that tries to take units into account. So if you enter
16066 "1in" into the entry, it will convert it to 2.54cm.
16068 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
16071 Removed include of dlfcn.h
16073 1999-10-18 James Henstridge <james@daa.com.au>
16075 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
16076 bound on margin widths. It is set to the paper width/height.
16078 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
16079 routine for the diamond. This bug was found and fixed by Daniel Wang
16080 <danwang@CS.Princeton.EDU>
16082 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
16084 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
16085 remove warning (OS/2 version).
16087 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
16090 Put a pointer to objects/custom/README.
16092 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
16095 Updated version to 0.80
16098 Updated version to 0.80cvs
16100 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
16102 * Released Dia 0.80
16103 Tag called DIA_0_80
16105 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
16109 * objects/UML/Makefile.am
16110 * objects/ER/Makefile.am
16111 * objects/network/Makefile.am
16112 * objects/standard/Makefile.am
16113 * objects/FS/Makefile.am
16114 * objects/sybase/Makefile.am
16115 * objects/flowchart/Makefile.am
16116 * objects/custom/Makefile.am
16117 Added -I$(top_srcdir)/intl which is needed for
16118 --with-included-gettext.
16124 Updated swedish translation.
16126 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16129 Updated version number to 0.80.
16135 Updated. Moved bugs to KNOWN_BUGS.
16138 Updated with 0.80 release notes.
16140 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16143 For backwards compatibility, make sure handle 0 and 1 are the
16144 first and last handle. Fixes compatibility with 0.41, breaks
16145 compatibility with cvs version.
16146 Fixed bug in undo/redo of adding deleting endpoint segments
16147 when the endpoint was connected.
16148 Start OrthConn objects with three segments.
16150 1999-10-16 James Henstridge <james@daa.com.au>
16152 * objects/custom/custom_object.c (custom_update_data): changed
16153 resizing behaviour a bit so that shapes don't grow huge when you try
16154 to resize them to smaller than the size required by the text box.
16155 Also, now shapes will not grow with fixed aspect ratio when you enter
16156 text into them unless the shape has the fixed aspect ratio flag set.
16158 1999-10-15 James Henstridge <james@daa.com.au>
16160 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16162 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16164 * objects/flowchart/magdrum.shape:
16165 * objects/flowchart/offlinestore.shape:
16166 * objects/flowchart/punchedtape.shape:
16167 * objects/flowchart/transmittape.shape:
16168 * objects/flowchart/punchedcard.shape: new shapes.
16170 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16172 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16174 * objects/flowchart/collate.shape:
16175 * objects/flowchart/delay.shape:
16176 * objects/flowchart/extract.shape:
16177 * objects/flowchart/intstorage.shape:
16178 * objects/flowchart/magdisk.shape:
16179 * objects/flowchart/magtape.shape:
16180 * objects/flowchart/merge.shape:
16181 * objects/flowchart/or.shape:
16182 * objects/flowchart/sort.shape:
16183 * objects/flowchart/sumjunction.shape: new shapes.
16185 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
16189 Entering an erronous command as print command
16192 * app/paginate_psprint.c:
16193 Save all print dialog values for next time.
16196 Remove custom lib from DIA_LIB_PATH.
16198 1999-10-14 James Henstridge <james@daa.com.au>
16200 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16202 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16204 * objects/flowchart/offpageconn.shape:
16205 * objects/flowchart/manualop.shape:
16206 * objects/flowchart/preparation.shape:
16207 * objects/flowchart/manualinput.shape:
16208 * objects/flowchart/predefdproc.shape:
16209 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
16211 1999-10-13 James Henstridge <james@daa.com.au>
16213 * app/diapagelayout.[ch]: added accessors to paper information. The
16214 widget should be just about complete now.
16216 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
16217 It actually does something now.
16219 1999-10-12 James Henstridge <james@daa.com.au>
16221 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
16222 for the page layout widget.
16224 * app/diapagelayout.[ch]: start of page layout widget. Not actually
16225 built yet as it is not complete.
16227 * objects/flowchart/flowchart.c: added new shapes to sheet.
16229 * objects/flowchart/display.shape:
16230 * objects/flowchart/transaction.shape: new shapes.
16232 * AUTHORS: added my name to the spec file.
16234 * dia.spec: include the dia desktop entry to the spec file.
16236 * Makefile.am: install the dia.desktop file.
16238 * dia.desktop: added a gnome desktop entry so you can start dia
16239 from the gnome panel menu.
16241 1999-10-11 James Henstridge <james@daa.com.au>
16243 * objects/custom/custom_object.c:
16244 * objects/custom/shape_info.c: warning fixes.
16246 * objects/flowchart/document.shape: a shape file for the `document'
16249 * lib/custom.h: new header with the custom shape prototypes.
16251 * app/app_procs.c: register custom objects as well.
16252 (register_objects_in): close shared libraries if they don't load
16253 correctly, and call g_module_make_resident on libraries that load
16256 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
16258 * objects/custom/custom.c: removed get_version, added custom_ prefix
16259 to register_objects and register_sheets.
16261 * objects/custom/Makefile.am: converted to a normal library.
16263 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
16265 * app/lineprops_area.c:
16266 * app/render_svg.c:
16268 * objects/custom/shape_info.c:
16269 * objects/flowchart/box.c:
16270 * objects/flowchart/diamond.c:
16271 * objects/flowchart/ellipse.c:
16272 * objects/flowchart/parallelogram.c:
16273 * objects/network/flash.c:
16274 * objects/network/scead-plug.c:
16275 * objects/sybase/client.c:
16276 Removed -Wall warnings.
16278 * objects/network/bus.c:
16279 Removed unused functions.
16281 * objects/FS/flow-ortho.c:
16282 * objects/FS/flow-poly.c:
16283 * objects/FS/flow.c:
16284 * objects/FS/function.c:
16286 Implemented "non-implemented" undo for FS objects.
16287 Now at least it won't crash.
16289 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
16291 * objects/network/bus.c:
16293 Handles are now added and removed using the object menu.
16294 Default to 6 handles instead of 10.
16295 Changed name from "Standard - Bus" to "Network - Bus". Kept old
16296 name for backwards compatibility.
16298 * objects/network/network.c:
16299 Changed name from "Standard - Bus" to "Network - Bus". Kept old
16300 name for backwards compatibility.
16302 * app/properties.[ch]:
16304 Update properties in properties dialog if the shown object
16305 is part of and ObjectChange (undo or redo).
16308 Remove old known bugs list.
16310 * objects/UML/class_dialog.c:
16311 Removed debug printf's.
16313 1999-10-10 James Henstridge <james@daa.com.au>
16315 * objects/custom/custom.c (custom_object_load): new function that
16316 provides a nice entry point to the custom shape code for when it
16317 gets used by other libraries.
16319 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
16320 speeds builds up a bit.
16322 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
16323 (SUBDIRS): do not descend into pixmaps subdirs.
16325 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
16326 This speeds up build process.
16328 * objects/custom/custom.c (sheets): made variable static.
16330 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
16333 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
16335 * objects/custom/custom.c: look in ~/.shapes instead of
16336 ~/.dia_shapes as the per-user shapes directory.
16338 * app/preferences.c (prefs_save): save config to ~/.diarc.
16339 (prefs_load): load configuration from ~/.diarc. If the file
16340 does not exist, fallback on the old ~/.diarc location.
16342 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
16344 (register_all_objects): look for user specific objects in
16345 ~/.objects rather than ~/.dia_libs.
16347 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
16351 * objects/flowchart/box.c
16352 * objects/flowchart/ellipse.c
16353 * objects/flowchart/flowchart.c
16354 Use gmodule for dynamic linking. As gmodule is using
16355 RTLD_GLOBAL i had to change flowchart box and ellipse
16356 so the typenames doesn't conflict with the standard
16361 Use button box to make dialogs look better.
16363 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
16365 * objects/UML/class_dialog.c:
16366 * objects/UML/class.h:
16367 Implemented undo for "UML - Class" objects.
16368 Not 100% tested yet.
16370 * objects/UML/classicon.c:
16371 * objects/UML/constraint.c:
16372 * objects/UML/dependency.c:
16373 * objects/UML/generalization.c:
16374 * objects/UML/implements.c:
16375 * objects/UML/large_package.c:
16376 * objects/UML/lifeline.c:
16377 * objects/UML/message.c:
16378 * objects/UML/object.c:
16379 * objects/UML/realizes.c:
16380 * objects/UML/state.c:
16381 * objects/UML/usecase.c:
16384 * lib/connectionpoint.h:
16387 1999-10-09 James Henstridge <james@daa.com.au>
16389 * objects/custom/*.[ch]: added copyright notices to custom object
16392 * shapes/Circuit/hdiode.shape:
16393 * shapes/Circuit/hzener.shape:
16394 * shapes/Circuit/opamp.shape:
16395 * shapes/Circuit/vdiode.shape:
16396 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
16397 shapes look nice after the custom shape code changes.
16399 * objects/custom/README: updated docs to cover changes to drawing
16402 * objects/custom/custom_object.c (custom_draw): honour the line
16403 properties when drawing the shape.
16405 * objects/custom/shape_info.[ch]: added support for setting line
16406 properties for individual drawing elements in a custom shape. You
16407 can set the dash style, dash length, cap style and join style.
16409 1999-10-07 James Henstridge <james@daa.com.au>
16411 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
16412 for foreground and background.
16414 * objects/custom/custom_object.c (custom_draw): use the new style
16415 information when drawing the object.
16417 * objects/custom/shape_info.[ch]: store all shape style info in the
16418 GraphicStyle structure. This makes adding support for extra CSS
16419 attributes easier -- we don't have to keep adding extra arguments to
16420 a lot of functions.
16422 1999-10-05 James Henstridge <james@daa.com.au>
16424 * lib/intl.c (unalias_lang): merged in changes from the i18n code
16425 swiped from gnome-libs.
16427 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
16429 * objects/standard/image.c (get_directory):
16430 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
16432 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
16434 * lib/poly_conn.c (polyconn_destroy):
16435 Fix bug. Access of freed memory.
16436 Rememeber, you can't free the handles of an object
16437 before calling object_destroy(), as it unconnects the handles
16438 therefore referencing them.
16440 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
16443 undo_clear() didn't set stack->depth to zero.
16444 This made other undo functions crash after this had been called
16448 Slightly modified by Chris Love <clove@exactis.com>
16450 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
16452 * objects/UML/class.h:
16453 * objects/UML/class_dialog.c:
16454 Retrun NULL ObjectChange on class property change.
16455 This means no crashes, but "UML - Class" doesn't support undo yet.
16457 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
16462 * objects/UML/classicon.c:
16463 * objects/UML/dependency.c:
16464 * objects/UML/generalization.c:
16465 * objects/UML/implements.c:
16466 * objects/UML/large_package.c:
16467 * objects/UML/lifeline.c:
16468 * objects/UML/message.c:
16469 * objects/UML/object.c:
16470 * objects/UML/realizes.c:
16471 * objects/UML/state.c:
16472 * objects/UML/usecase.c:
16473 Update to new undo (w. get/set_state).
16474 Add object menu to add/delete segments.
16476 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
16479 Add equal distance alignment.
16481 * app/object_ops.c:
16482 Add equal distance alignment.
16483 Fix bug in adjacent alignment.
16485 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
16487 * objects/UML/constraint.c:
16488 Update to new undo (w. get/set_state).
16490 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
16492 * app/paginate_psprint.c:
16493 Save (parts, more todo) of the info in the print dialog to the
16494 next time it's opened.
16495 Patch from Yo Ric Dude <ricdude@toad.net>
16497 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
16500 Updated version string to 0.41cvs.
16502 * objects/UML/assocition.c:
16503 Update to new undo (w. get/set_state).
16504 Add object menu to add/delete segments.
16507 Added function debug_break() and called it after all
16508 objects and sheets are loaded. Place a breakpoint here if you
16509 want to debug objects. All symbols should be loaded.
16511 1999-09-12 James Henstridge <james@daa.com.au>
16513 * app/menus.c (display_menu_items): added print menu item.
16514 (filemenu): always add print menu item -- even if gnome-print is
16517 * app/commands.h, app/commands.c (file_print_callback): the print
16518 menu item is now available for both gnome-print and non gnome-print
16521 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
16522 print with the non gnome-print driver.
16524 1999-09-11 James Henstridge <james@daa.com.au>
16526 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
16527 printer dialog code out of commands.c.
16529 * app/paginate_psprint.c: new file containing the pagination code for
16532 * app/render_eps.c: made a few modifications so as well as producing
16533 EPS files, this renderer can be set up to do postscript printing.
16534 This basically entailed adding an extra function to create a RenderEPS
16535 renderer which did not bother setting the viewport for the document.
16536 That was left for the pagination code.
16538 1999-09-10 James Henstridge <james@daa.com.au>
16540 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
16541 gnome-print does not support elliptic arcs at the moment, approximate
16542 the ellipse with eight bezier curves. This gives a pretty good
16543 match to a true ellipse.
16545 1999-09-09 James Henstridge <james@daa.com.au>
16547 * app/commands.c (file_gnome_print_callback): added support for
16548 scaling the diagram. Also fixed a few other bugs.
16550 * app/paginate_gnomeprint.c (print_page): added ability to scale
16551 document. Fixed up test to see if the page has no objects on it.
16552 This should prevent some blank pages being printed. Non square
16553 objects such as lines could still cause problems.
16555 1999-09-08 James Henstridge <james@daa.com.au>
16557 * app/commands.c (file_gnome_print_callback): changed from using the
16558 standard printer selection dialog to one that also has a paper size
16561 * commands.[ch]: added callbacks for the print menu item. Currently
16562 it only does A4 output. I will make it configurable soon.
16564 * app/menus.c: add a print diagram menu item if gnome-print support
16567 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
16568 bit higher level than the gnome-print renderer. It splits the
16569 diagram into page size chunks and then renders them. For each
16570 page, it only renders the objects whose bounding box intersects
16571 the page, and it sets the clip mask so that the diagram does not
16572 overlap the margins.
16574 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
16575 that uses gnome-print as its back end.
16577 * configure.in: added a check for gnome-print. It is disabled by
16578 default because the code is not really working correctly yet.
16580 * app/menus.c: the delete object menu item was missing from the
16581 GnomeUIInfo style menus.
16583 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
16586 Added japanese to ALL_LINGUAS.
16587 Fix for Linux on Alpha.
16589 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
16591 * app/create_object.c (create_object_button_press):
16592 Always initialize tool->obj. Otherwise we store a null
16593 in the undo Change.
16596 Set linestyle before drawing cursor.
16597 Fix undo of backwards delete.
16599 1999-09-05 James Henstridge <james@daa.com.au>
16601 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
16603 * app/render_svg.c (draw_image): some fixes so that the appropriate
16604 style attributes are set. Before it was setting line styles on
16605 fill_* functions. Now it only does this for the draw_* variants.
16607 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
16608 variable so that custom shapes can be loaded.
16610 * shapes/: new directory for custom shapes. The Circuit sheet has
16613 1999-09-02 James Henstridge <james@daa.com.au>
16615 * TODO: removed a few todo items that have been implemented.
16617 * app/interface.c (create_sheets): enabled the popup page menu to the
16618 notebook. This can make it easier to select different sheets.
16620 * object/custom/Circuit/: added diode, zener diode, ground point and
16621 operational amplifier shapes.
16623 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
16624 if you want the output.
16626 * objects/custom/shape_info.c (parse_path): same here.
16628 * objects/custom/load_sheet.c (load_with_readdir): don't print so
16629 much debugging output. To get the previous level of output, define
16632 * objects/custom/shape_info.c (parse_svg_node): polygons were being
16633 recorded as polylines in the ShapeInfo structure.
16635 * objects/custom/README: some notes on writing new custom shapes.
16637 1999-09-01 James Henstridge <james@daa.com.au>
16639 * objects/custom/Circuit/hinductor.*:
16640 * objects/custom/Circuit/vinductor.*: added inductor shapes that
16641 also test out the bezier curve and SVG path support.
16643 * objects/custom/custom_object.c (custom_draw): added support for
16644 drawing bezier paths and filled shapes.
16646 * objects/custom/shape_info.c (parse_path): new function to parse
16647 SVG path elements. It does not do quadratic beziers or elliptic
16648 arcs though. Only moves, lines and cubic beziers.
16649 (*): added support for paths.
16651 1999-08-31 James Henstridge <james@daa.com.au>
16653 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
16655 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
16658 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
16661 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
16664 * lib/render_store.[ch]: use newer bezier functions.
16666 * lib/render.h: changed the bezier drawing functions to use an array
16667 of BezPoint structures instead of normal Point structures to allow
16668 lineto's mixed in with the curveto's.
16670 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
16672 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
16673 xpm images for different shapes to Makefile.
16675 * objects/custom/custom_object.c (custom_object_new): set the icon
16676 for the sheet button if there is one. Otherwise fall back on the
16677 default custom object icon.
16679 * objects/custom/shape_info.c (load_shape_info): read the sheet
16680 icon name from the shape file.
16682 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
16683 check the pixmap_file field for the name of a pixmap file to load
16686 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
16687 at the end of the structure, and it isn't used if the pixmap field
16688 is non NULL, so it should not break binary compatibility.
16690 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
16691 added support for the use of an index.sheet file so you can specify
16692 the ordering of the shapes in the sheet, and also internationalise
16693 the sheet name and actually be able to give a description. The old
16694 readdir based sheet loading code acts as a fallback if an index.sheet
16695 file can not be found.
16697 * objects/custom/custom_util.[ch]: new file containing useful routines
16698 needed by the custom object code. Currently only contains a simple
16699 routine for resolving relative paths.
16701 * objects/custom/custom_object.c (custom_draw): fixed problem with
16702 drawing rectangles if the shape has been flipped.
16704 1999-08-30 James Henstridge <james@daa.com.au>
16706 * objects/custom/custom_object.c (custom_get_object_menu): allow
16707 flipping of custom shapes. This uses the miggle click object
16710 * objects/custom/Circuit/npn.shape: fix aspect ratio.
16712 * objects/custom/custom_object.c (custom_update_data): honour the
16713 aspect ratio constraints.
16715 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
16716 tag parsing, so you can specify a free, fixed or a range for aspect
16717 ratios for the shape.
16719 1999-08-29 James Henstridge <james@daa.com.au>
16721 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
16722 up shape namespace tag.
16724 * objects/custom/shape_info.c (load_shape_info): check xml:lang
16725 attribute on <description> elements to support i18n for custom
16726 shape descriptions.
16727 Also changed the shape namespace for custom shapes to something
16728 a little more sensible.
16730 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
16732 * lib/intl.c: new file containing some functions for i18n stuff.
16734 * app/layer_dialog.c (create_button_box): fixed a warning.
16736 * objects/custom/custom_object.c: use current line style. Save dash
16739 * objects/flowchart/diamond.c: use current line style. Save dash
16742 * objects/flowchart/parallelogram.c: use current line style. Save
16745 * objects/flowchart/ellipse.c: use current line style. Save dash
16748 * objects/flowchart/box.c: use current line style. Save dash length.
16750 * objects/standard/ellipse.c: make ellipse use current line style.
16752 * objects/standard/box.c: use the line style set in the toolbox for
16753 new boxes, and remember the dash length.
16755 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
16758 1999-08-24 James Henstridge <james@daa.com.au>
16760 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
16761 to try to stop ellipse to get infinite width/height when we resize,
16762 while trying to keep the text inside the ellipse.
16764 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
16765 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
16766 resizing behaviour, so that you can't push objects round the screen
16767 with the resize handles.
16769 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
16770 get the OK buttons in the dialogs to take default clicks.
16772 * objects/custom/custom_object.c: added code so that resizing the
16773 shape does not end up pushing it round the screen.
16775 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
16777 * app/display.[ch]:
16778 Generate rectangle with the union of the damaged regions.
16779 This is used to optimize the grid paint and the object rendering.
16780 display_render_pixmap passes this info to grid_draw() and data_render().
16783 grid_draw doesn't draw grid lines outside of damaged rectangle.
16784 Sets dashlength when drawing non-solid grid.
16786 * lib/diagramdata.[ch]:
16787 data_render() and layer_render() takes an optional damaged rectangle
16788 argument. No objects not intersecting this are drawn.
16792 Call data_render with NULL update rectangle.
16794 1999-08-23 James Henstridge <james@daa.com.au>
16796 * objects/custom/custom_object.c (custom_update_data): if the aspect
16797 ratio is fixed, make sure the shape is not distorted.
16799 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
16800 a <fixaspectratio/> tag is given in the shape file.
16802 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
16803 added support for stroke-width, stroke and fill CSS attributes
16804 specified in style attributes of the SVG elements. The line width
16805 is relative to the user specified line width. The stroke and fill
16806 attributes can only be used to swap the foreground/background
16809 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
16810 sensitivity on the dash length selector when this function is called.
16812 * objects/standard/arc.c: same. Also handle dash length.
16813 * objects/standard/zigzagline.c: same.
16814 * objects/standard/polyline.c: same. Also handle dash length.
16815 * objects/standard/line.c: use default arrow/line styles.
16817 * app/interface.c: added callbacks to set the default attributes.
16819 * lib/attributes.c: added implementations of these functions.
16821 * lib/attributes.h: added extra prototypes for the new line properties
16822 area in the toolbox.
16824 * app/interface.c (create_lineprops_area): added line properties
16825 area to bottom of toolbox.
16827 * app/lineprops_area.h: a header exporting a few routines of the
16828 line properties area widgets.
16830 * app/lineprops_area.c: new file containing a selector for arrows
16831 and line styles to go in the main toolbox.
16833 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
16836 Update Gtk+ 1.0.5 comment to 1.2.0.
16845 Make sure we don't propagate -ldl and -lpopt to all LIBS
16846 by adding new var APP_LIBS that only app/dia links with.
16849 Update run_dia.sh to load custom and flowchart objects.
16851 * objects/ER/Makefile.am:
16852 * objects/FS/Makefile.am:
16853 * objects/UML/Makefile.am:
16854 * objects/network/Makefile.am:
16855 * objects/standard/Makefile.am:
16856 * objects/sybase/Makefile.am:
16857 Don't build versioned libs.
16859 1999-08-22 James Henstridge <james@daa.com.au>
16861 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
16864 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
16865 should actually work a bit now.
16867 * objects/custom/Circuit/*: a test sheet for the custom shape code.
16868 It is a small collection of circuit elements.
16870 * objects/custom/shape_info.c: fixed up loading of polylines and
16871 polygons. Before it was removing negative signs :(
16873 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
16874 placeholder was here before. I still need to work out how to set
16875 icons for individual custom shapes.
16877 * objects/custom/custom.c: added code to load the shapes into sheets
16878 properly. The shape files should be arranged into directories, and
16879 each directory represents a different sheet in the toolbox. This
16880 will make it very easy to distribute a collection of dia shapes as
16881 a tarball. I still need to work out internationalisation, and maybe
16882 also shape ordering in the sheet.
16884 * objects/custom/custom_object.c: fixed up dialogs for these objects.
16885 (custom_create): fix for objects without text areas.
16887 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
16888 and saving of custom object works correctly now.
16890 1999-08-21 James Henstridge <james@daa.com.au>
16892 * objects/flowchart/ellipse.c:
16893 * objects/flowchart/diamond.c:
16894 * objects/flowchart/parallelogram.c:
16895 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
16896 copying or loading these object types. Not all the connection
16897 points would be initialised correctly.
16899 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
16902 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
16903 build a versioned library. It will only ever be dlopen'd, so this
16906 * objects/custom/custom_object.c (custom_distance_from): allow
16907 selecting the object by clicking on the text. This fixes problems
16908 where the text box is outside the graphic.
16910 * objects/custom/shape_info.c (load_shape_info): fixed up reading
16911 of connections points. It should be possible to add connections
16912 to custom objects now.
16914 * objects/custom/custom_object.c (custom_update_data): fixed resizing
16915 due to changes to text.
16917 * configure.in: added extra makefiles.
16919 * objects/custom/shape_info.[ch]:
16920 * objects/custom/custom_object.c:
16921 * objects/custom/custom.c: the starts of custom shape support in dia.
16922 This is not built by default at the moment, since it is not quite
16923 complete. When it is, it will let you create more shapes for dia
16924 without writing a line of C. Its implementation includes buzzwords
16925 such as XML and SVG, so it must be good :)
16927 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
16929 * app/app_procs.c (app_exit): Use button labels "Quit" and
16930 "Cancel" instead of "Yes" and "No".
16931 Set default action to "Cancel" instead of "Quit".
16933 1999-08-19 James Henstridge <james@daa.com.au>
16935 * objects/flowchart/flowchart.c: added ellipse object.
16937 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
16939 1999-08-18 James Henstridge <james@daa.com.au>d
16941 * app/color_area.c (color_area_edit): small fix to prevent dia from
16942 segfaulting when you try to change the default foreground/background.
16944 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
16946 * app/diagram.[ch] (diagram_redraw_all):
16947 Added function that redraws all diagrams.
16949 * app/preferences.c (prefs_apply):
16950 Call diagram_redraw_all when prefs are changed.
16952 * app/render_svg.c:
16953 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
16954 older libxml's, and the old version works good enought here.
16956 1999-08-17 James Henstridge <james@daa.com.au>
16958 * lib/widgets.c: changed handlers that were connected to the GtkButton
16959 "pressed" signal to connect to the "clicked" signal. This removes the
16960 problem where dialogs are inactive until you click a mouse button
16961 after using a colour selector.
16963 * configure.in: added extra makefiles to AC_OUTPUT list.
16965 * objects/Makefile.am (SUBDIRS): added flowchart module
16967 * objects/flowchart/*: a collection of shapes for use in flowcharts.
16969 * app/color_area.c (color_area_events): similar here.
16971 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
16972 event is recieved with event->width == 0, which causes a warning if we
16973 try to create a pixmap of that width.
16975 * app/preferences.c, app/preferences.h, app/grid.c: added code to
16976 allow you to configure the colour of the grid, and also lets you
16977 set the grid to use dotted lines instead of solid ones.
16979 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
16980 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
16982 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
16983 export filter. It is not quite complete, but for most shapes it
16984 works as expected. Fonts still need a bit of work.
16986 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
16988 * configure.in: Added "en_GB" to ALL_LINGUAS.
16990 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
16993 Added Undo and Redo to GNOME menus.
16995 * objects/ER/attribute.c:
16996 * objects/ER/entity.c:
16997 * objects/ER/participation.c:
16998 * objects/ER/relationship.c:
16999 Added get/set_state functions.
17001 * objects/ER/participation.c:
17002 Added add/delete segment.
17005 Updated Swedish translation.
17007 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17009 * app/preferences.[hc]:
17010 Added undo_depth pref.
17013 Never grow stack larger than pref.undo_depth.
17014 undo_depth == 0 means unlimited.
17015 Converted printfs to conditionally compiled DEBUG_PRINTFs.
17017 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17022 * lib/render_object.c:
17023 * objects/ER/attribute.c:
17024 * objects/ER/entity.c:
17025 * objects/ER/participation.c:
17026 * objects/ER/relationship.c:
17027 * objects/FS/flow-ortho.c:
17028 * objects/FS/flow-poly.c:
17029 * objects/FS/flow.c:
17030 * objects/FS/function.c:
17031 * objects/UML/actor.c:
17032 * objects/UML/association.c:
17033 * objects/UML/class.c:
17034 * objects/UML/classicon.c:
17035 * objects/UML/component.c:
17036 * objects/UML/constraint.c:
17037 * objects/UML/dependency.c:
17038 * objects/UML/generalization.c:
17039 * objects/UML/implements.c:
17040 * objects/UML/large_package.c:
17041 * objects/UML/lifeline.c:
17042 * objects/UML/message.c:
17043 * objects/UML/note.c:
17044 * objects/UML/object.c:
17045 * objects/UML/realizes.c:
17046 * objects/UML/small_package.c:
17047 * objects/UML/state.c:
17048 * objects/UML/usecase.c:
17049 * objects/network/bus.c:
17050 * objects/standard/arc.c:
17051 * objects/standard/box.c:
17052 * objects/standard/ellipse.c:
17053 * objects/standard/image.c:
17054 * objects/standard/line.c:
17055 * objects/standard/polyline.c:
17056 * objects/standard/textobj.c:
17057 * objects/standard/zigzagline.c:
17058 Removed all traces of is_empty(). It doesn't work in an
17061 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17066 Undoable grouping and ungrouping.
17068 * app/layer_dialog.c:
17069 * lib/diagramdata.[ch]:
17070 Undoable layer ops.
17072 * app/modify_tool.c:
17073 Undoable unconnect on handle move.
17075 * lib/orth_conn.[ch]:
17076 Working undoable add/remove segment.
17077 Removed endpoint_handles from OrthConn, renamed
17078 midpoint_handles to handles and put the endpoint
17081 * objects/standard/zigzagline.c:
17082 * objects/ER/participation.c:
17083 * objects/UML/association.c:
17084 * objects/UML/dependency.c:
17085 * objects/UML/generalization.c:
17086 * objects/UML/realizes.c:
17087 Update for the changes in OrthConn
17089 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
17091 * configure.in: Added "de" to ALL_LINGUAS.
17093 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
17105 Don't have the <Display> etc part of the menu strings
17106 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17109 Don't have the <Display> etc part of the menu strings
17110 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17111 Don't remove is_empty() objects, that don't work with undo.
17113 * lib/objchange.[ch]:
17115 Definition of ObjectChange. This is essentially an Change
17116 exported to the object libs. It encapsulates a change made
17117 to an objects internals. It can be applied, reverted and freed.
17118 There are also utility functions for doing ObjectChanges that
17119 only get/set the whole state of an object to store the change.
17120 This cannot be used when the object change deletes or adds a
17121 object which has references from other objects, eg. Handles which
17122 might be connected.
17125 Added objchange.c and objchange.h.
17128 Return NULL when loading fails.
17131 Menu callbacks return an ObjectChange.
17134 Reference objchange.o
17137 Key events return ObjectChange if they modify the object.
17141 Added object_add_handle_at() function.
17142 Apply properties returns an ObjectChange.
17143 Remove ObjectState and the get/set state functions, these
17144 don't always work. Use the new ObjectChange instead.
17147 Added object_add_handle_at() function implementation.
17149 * lib/orth_conn.[ch]:
17150 Use ObjectChange. Not finished yet.
17151 Removed get/set/free state functions
17153 * lib/poly_conn.[ch]:
17155 Don't remove segments that are small.
17156 Removed get/set/free state functions
17160 Added functions to get/set all text attributes.
17162 * objects/standard/arc.c:
17163 * objects/standard/box.c:
17164 * objects/standard/ellipse.c:
17165 * objects/standard/image.c:
17166 * objects/standard/line.c:
17167 * objects/standard/polyline.c:
17168 * objects/standard/textobj.c:
17169 * objects/standard/zigzagline.c:
17171 fixed bug in image_set_state.
17172 zigzagline.c not finished yet.
17174 * app/disp_callbacks.c:
17175 Use ObjectChange that are returned from menu callbacks and
17176 key_events for undo.
17178 * app/properties.c:
17179 Use ObjectChange that are returned from properties apply
17184 New undo type: ObjectChangeChange. This wraps a change to the
17185 internals of an object (and ObjectChange) in code that does
17186 app specific stuff (object_add_updates etc.)
17188 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
17190 * lib/orth_conn.[ch]:
17191 Added code for add/delete segment.
17193 * objects/standard/zigzagline.c:
17194 Use the new orth_conn code.
17197 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
17199 * objects/FS/Makefile.am
17200 Removed fs.h from sources.
17206 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
17208 * app/disp_callbacks.c (ddisplay_canvas_events):
17209 Fix for bug. Every other arrow-key press got lost.
17210 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
17213 change automake.sh to autogen.sh
17215 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
17218 Don't remove 'empty' objects.
17219 This violent destruction of objects won't work
17220 with the new undo framework.
17222 * app/disp_callbacks.c:
17223 Save undo info for object menu calls and key_events.
17225 * app/properties.c:
17226 Save undo info on properties apply.
17228 * lib/dia_image.[ch]:
17229 Add refcounting for images.
17231 * app/render_eps.c:
17232 * app/render_gdk.c:
17234 DiaImage * -> DiaImage
17237 Add undo functions for object state changes.
17241 change of semntics for focus->key_event.
17242 Now returns TRUE if the object recieving the event
17248 * lib/orth_conn.[ch]:
17249 Don't automatically create and delete segments when
17250 handles are moved. This is incompatible with undo.
17251 Added state get, set and free functions.
17253 * lib/orth_conn.[ch]:
17254 Added state get, set and free functions.
17256 * objects/UML/object.c:
17257 * objects/UML/uml.c:
17258 Fixed typo "UML - Objet" -> "UML - Object".
17259 Saved old for backwards compatibility.
17261 * objects/standard/arc.c:
17262 * objects/standard/box.c:
17263 * objects/standard/ellipse.c:
17264 * objects/standard/image.c:
17265 * objects/standard/line.c:
17266 * objects/standard/polyline.c:
17267 * objects/standard/textobj.c:
17268 * objects/standard/zigzagline.c:
17269 Added get/set state functions.
17270 Textobj has a redo crash-bug.
17271 Zigzagline needs object menus to add segments.
17274 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
17276 * app/render_eps.c (set_dashlength):
17277 Don't generate eps files with zero dash-length.
17279 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
17282 * app/create_object.c:
17284 Finished undo for create and paste.
17287 Started properties undo.
17289 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
17292 Added resizeable groups.
17295 Removed unused variable.
17299 Undo/redo for cut/delete done.
17301 * app/create_object.c:
17302 * app/modify_tool.c:
17303 * lib/diagramdata.[ch]:
17304 * app/diagram.[ch]:
17305 renamed diagram_add_selected -> diagram_select
17306 renamed diagram_remove_selected -> diagram_unselect
17308 * app/properties.[ch]:
17309 Added properties_hide_if_shown() function.
17311 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
17317 * app/commands.[ch]
17318 * app/modify_tool.[ch]
17319 * app/object_ops.[ch]
17320 * app/connectionpoint_ops.c
17322 Use undo functions.
17323 WARNING: Not finished. Will break.
17324 Finished: move object, move handle.
17327 Added diagram_selected_break_external() function.
17328 It removes all connections between selected objects
17330 Add undo stack to Diagram.
17332 * lib/diagramdata.[ch]
17333 Added layer_remove_objects() function
17335 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
17337 * objects/FS/Makefile.am
17338 * objects/sybase/Makefile.am
17339 Now uses GNOME_CFLAGS.
17342 Now compiles with GNOME even if popt.h isn't available.
17344 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
17347 * objects/Makefile.am
17349 First version of sybase objects from
17350 Brian Bruns <camber@umcc.ais.org>
17352 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
17355 Added fr to ALL_LINGUAS
17357 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
17361 Popt-code is activated if popt is available.
17363 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
17365 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
17367 * lib/orth_conn.[ch]:
17368 Added orthconn_get_middle_handle()
17371 Added text_set_cursor_at_end()
17374 Added first version of functions structure diagrams.
17376 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
17378 * app/modify_tool.c:
17379 Include math.h to remove warning.
17381 * app/commands.c (dialogs_properties_callback):
17382 Bring up correct properties dialog when selected
17384 From Dan Cohn <dan@internap.com>
17386 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
17388 Patch from Lars R. Clausen
17390 * app/modify_tool.c:
17391 Changed abs to fabs.
17393 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
17399 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
17401 Patches from Dan Cohn <dan@internap.com>
17403 * app/commands.[ch]:
17404 * app/display.[ch]:
17406 * app/preferences.[ch]:
17407 Implements ability to turn on/off connection points in
17408 current drawing and in global prefs.
17410 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
17412 * lib/widgets.c (dia_line_style_selector_init):
17415 * lib/diagramdata.c (layer_update_extents):
17416 Fixed uninitialized variable error.
17418 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
17421 Made some changes to the gdk_imlib visual+colormap setup.
17423 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17425 * objects/UML/usecase.c:
17426 * objects/UML/lifeline.c
17429 * objects/UML/object.c:
17430 * objects/UML/message.c:
17431 Changed font from Courier to Helvetica.
17435 Added dash lenth to the LineStyle widget.
17437 * objects/standard/ellipse.c :
17438 * objects/standard/zigzagline.c:
17439 * objects/standard/line.c:
17440 Added dash lenght property.
17442 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
17444 * app/render_eps.c:
17445 First shot at latin1 encoded eps files.
17446 Works, but the eps files get a bit large.
17448 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
17450 * objects/UML/class.[ch]:
17451 * objects/UML/uml.[ch]:
17452 Reverted the line wrap changes.
17453 Some day this might return, but it has to be selectable and
17454 default to off for loaded objects, otherwise it breaks file
17455 format compatibility.
17456 There was also some complains about how it looked, so a making it
17457 selectable is good for this too.
17459 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
17461 * objects/UML/class.[ch]:
17462 Some indentation cleanup.
17463 Added wrap_lines variable to class.
17464 I'll fix the line break stuff tomorrow.
17466 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
17469 Added ref to poly_conn.o.
17471 * objects/standard/polyline.c (polyline_draw):
17472 * objects/standard/zigzagline.c (zigzagline_draw):
17473 * objects/standard/arc.c (arc_draw):
17474 * objects/standard/line.c (line_draw):
17475 Draw lines before arrows. This makes hollow arrows not
17478 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
17480 Changes from Kim Peasley <kpeasley@ior.com>
17482 * objects/UML/class.c:
17483 Break lines with long operations so classes won't be
17486 * objects/UML/uml.[ch]:
17487 Helperfunctions for the above.
17489 * objects/UML/objects.c:
17490 Fix bug that duplicated the text in the attributes
17491 textwidget each time the object was selected.
17493 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
17495 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
17497 * app/modify_tool.c:
17498 * app/modify_tool.h:
17499 Control-drag is restricted to vertical/horizontal movement
17502 ModifierKeys argument added to object_move_handle
17504 * app/connectionpoint_ops.c:
17505 * app/create_object.c:
17506 * app/object_ops.c:
17507 * objects/ER/attribute.c:
17508 * objects/ER/entity.c:
17509 * objects/ER/participation.c:
17510 * objects/ER/relationship.c:
17511 * objects/UML/actor.c:
17512 * objects/UML/association.c:
17513 * objects/UML/class.c:
17514 * objects/UML/classicon.c:
17515 * objects/UML/component.c:
17516 * objects/UML/constraint.c:
17517 * objects/UML/dependency.c:
17518 * objects/UML/generalization.c:
17519 * objects/UML/implements.c:
17520 * objects/UML/large_package.c:
17521 * objects/UML/lifeline.c:
17522 * objects/UML/message.c:
17523 * objects/UML/note.c:
17524 * objects/UML/object.c:
17525 * objects/UML/realizes.c:
17526 * objects/UML/small_package.c:
17527 * objects/UML/state.c:
17528 * objects/UML/usecase.c:
17529 * objects/network/bus.c:
17530 * objects/standard/arc.c:
17531 * objects/standard/box.c:
17532 * objects/standard/ellipse.c:
17533 * objects/standard/image.c:
17534 * objects/standard/line.c:
17535 * objects/standard/polyline.c:
17536 * objects/standard/textobj.c:
17537 * objects/standard/zigzagline.c:
17538 Changed calls to move_handle to pass the new argument.
17542 Default line width, color etc #define'd
17545 Updates of danish menus
17547 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
17550 * dia_gnome_icon.png
17551 * dia_gnome_menu_icon.png
17553 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
17556 About dialog shows dia_logo.png. Removed the GNOME about dialog.
17559 Distribute the icons and install logo in pkgdatadir.
17562 Added DATADIR-define.
17564 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
17565 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
17568 Updated version number, made setup quiet, can build from cvs,
17569 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
17572 * objects/ER/Makefile.am
17573 * objects/UML/Makefile.am
17574 * objects/network/Makefile.am
17575 * objects/standard/Makefile.am
17576 now builds better with gnome
17578 * objects/UML/class_dialog.c
17579 Fixed typo -> po files must be updated too!!
17581 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
17584 Added reference so that widgets.o gets linked to the app.
17586 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17588 * objects/UML/classicon.c:
17591 * objects/UML/actor.c:
17592 Changed position of 'snap-to-grid' so connection points are
17595 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
17597 * objects/UML/classicon.c:
17598 Changed position of 'snap-to-grid'.
17599 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17601 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
17603 * objects/network/antenna.c
17604 * objects/network/flash.c
17605 * objects/network/hub.c
17606 * objects/network/modem.c
17607 * objects/network/modularswitch.c
17608 * objects/network/rj45plug.c
17609 * objects/network/scead-plug.c
17610 * objects/network/network.c
17611 * objects/network/Makefile.am
17612 * objects/network/pixmaps/antenna.xpm
17613 * objects/network/pixmaps/flash.xpm
17614 * objects/network/pixmaps/hub.xpm
17615 * objects/network/pixmaps/modem.xpm
17616 * objects/network/pixmaps/modularswitch.xpm
17617 * objects/network/pixmaps/rj45plug.xpm
17618 * objects/network/pixmaps/sceadplug.xpm
17619 * objects/network/pixmaps/Makefile.am
17620 Lots of new network objects from
17621 Roland Steinbach <roland@support-system.com>.
17623 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17625 * objects/UML/classicon.c:
17626 Fixed connection positions, saved type as int (it has 3 states),
17627 and other small fixes.
17629 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
17631 * app/preferences.c:
17633 Added preference compress_save. It lets dia save uncompressed
17636 * objects/UML/class.c:
17637 Fixed bug with size calculation on methods that had class scope.
17639 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17641 * objects/UML/usecase.c:
17642 Added collaboration mode
17643 Fixed connection points with text > ellipse bug and other
17646 * objects/UML/state.c:
17647 Fixed bug of bad position of text after being either end
17648 or begin, moved and returned to text
17650 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
17652 * app/preferences.c: Add prototype declaration for prefs_apply.
17654 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
17656 * app/preferences.c:
17658 Apply don't hide window.
17660 * app/properties.c:
17663 * objects/UML/object.c:
17664 * objdcts/UML/state.c:
17665 Some data was not copied on copy.
17668 Ben Hochstedler <benh@eeyore.moneng.mei.com>
17670 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
17673 Changed link order between X and libxml.
17674 Some people had problems with an old libz in their
17677 1999-04-09 Kjartan Maraas <kmaraas@online.no>
17679 * po/no.po: updated translation.
17681 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
17683 * lib/message.c (message_error):
17686 * app/commands.[ch]:
17687 * app/diagram.[ch]:
17688 Added begining of xfig importing
17690 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17692 * objects/UML/pixmaps/state.xpm:
17693 * objects/UML/state.c:
17694 New UML object state machine.
17696 * objects/UML/uml.c:
17697 * objects/UML/Makefile.am:
17698 * objects/UML/pixmaps/Makefile.am:
17699 Added the state object.
17701 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
17703 * objects/UML/usecase.c:
17704 Added dialog to allow move text outside the ellipse.
17706 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
17708 * Released Dia 0.41
17709 Tag called DIA_0_41
17714 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
17717 Updated version number to 0.41
17722 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
17725 Changed errormessage for --export-to-ps. Removed call to
17726 g_log_set_always_fatal().
17729 * app/disp_callbacks.c
17731 (i18n) Removed gettext from some debugmessages.
17734 Small fix in GNOME-menus. Added warning that will help track
17735 problems with translations.
17738 (i18n) Updated swedish translation.
17740 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
17745 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
17751 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
17754 (i18n) Updated the danish translation.
17755 From Lars R. Clausen.
17757 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
17760 (i18n) The popup menu is translated now.
17763 (i18n) Updated swedish translation.
17765 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17767 * Released Dia 0.40
17768 Tag called DIA_0_40
17771 Updated for new release
17773 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17775 * objects/network/bus.c:
17776 Added initialization of properties dialog to NULL.
17778 * app/commands.c (edit_cut_callback):
17779 Update menu sensitivity when cut object.
17781 * app/modify_tool.c (click_select_object):
17782 * app/modify_tool.c (modify_button_release):
17783 Call diagram_update_menu_sensitivity() when
17784 selecting objects to update stuff that depends
17785 on selected/not selected.
17787 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17790 Change order of subdir so that libintl.a builds.
17791 Now passed make distcheck.
17793 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17795 * lib/font.c (init_x11_font):
17798 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17800 * objects/UML/pixmaps/classicon.xpm:
17801 * objects/UML/classicon.c:
17802 * objects/UML/uml.c:
17803 Added the class stereotype icon objects.
17806 Changed default ps extension from .ps to .eps.
17808 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17811 Added diamenu.h and intl.h
17816 * objects/UML/pixmaps/Makefile.am:
17819 * objects/standard/pixmaps/Makefile.am:
17822 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17825 Use a scalable font before fixed when real font not found.
17830 * objects/standard/image.c:
17831 Better handling of loading/saving of images.
17834 Added some text about cvs, fonts and rewrote some parts.
17837 Updated with new stuff.
17840 Bump up version number to 0.40.
17842 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17845 Moved diagram_add_ddisplay() call into new_display().
17846 Fixed new_display to not use uninitialized variables
17847 causing loaded files to show up as black (or garbage).
17851 Removed unneeded calls to diagram_add_ddisplay().
17853 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17855 * objects/UML/lifeline.c:
17857 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
17859 * objects/UML/message.c:
17860 Fixed bug loading messages with null-text.
17861 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
17863 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
17866 Updated swedish translation.
17869 (GNOME) Removed help-browser from help menu. Fixed typo.
17872 (GNOME) Accelerators in diagrams should work now.
17874 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
17879 * app/disp_callbacks.c
17883 * app/preferences.c
17885 * lib/diagramdata.c
17891 * objects/network/*.c
17892 * objects/standard/*.c
17893 * po/update_pofiles_in.sh
17895 More i18n. All strings (expect rare debug messages) can be
17896 translated now. Moved intl.h from app to lib. Updated
17897 update_pofiles_in.sh to check all .c-files.
17899 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
17901 * app/disp_callbacks.c (ddisplay_canvas_events):
17902 Don't drop keys while num-lock, scroll-lock etc is on.
17904 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17906 * app/render_eps.c (draw_image):
17907 Fixed exporting of images.
17908 Still not perfect, but not outright buggy.
17910 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17914 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
17917 Added $* to the dia call in run_dia.sh
17919 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
17922 Added color_equals() call.
17924 * objects/standard/arc.c:
17925 * objects/standard/line.c:
17926 Don't save unneccesary data.
17928 * objects/standard/box.c:
17929 * objects/standard/ellipse.c:
17930 * objects/standard/image.c:
17931 * objects/standard/polyline.c:
17932 * objects/standard/zigzagline.c:
17933 Share properties dialog.
17934 Don't save unneccesary data.
17936 1999-03-22 Seth Alves <alves@hungry.com>
17941 small changes so that gnome menus aren't broken
17943 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17946 Added danish translation from lrclause@cs.uiuc.edu.
17951 * po/update_pofiles_in.sh:
17952 Added script that updates POFILES.in.
17953 This should probably be run automatically from somewhere.
17955 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
17957 * app/diagram.[ch]:
17958 Added function diagram_update_menu_sensitivity() which
17959 sets the sensitivity of some menu items. This function
17960 is called at each diagram state change (from diagram_modified()).
17961 This is needed because otherwise the keyboard accelerators
17962 don't work correctly.
17964 * app/display.[ch]:
17965 Changed display_set_menu_sensitivity() to display_update_menu_state().
17966 Moved lots of code to diagram_update_menu_sensitivity() in
17967 diagram.c. Optimized to only look up menu-items from path:s once.
17969 * app/disp_callbacks.c:
17971 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
17972 Need to set GDK_FOCUS_CHANGE_MASK.
17974 * app/create_object.c:
17975 Call diagram_modified when an object has been created and
17976 selected so that the menu sensitivity is updated.
17979 removed menus_set_sensitive() and menus_set_state(). Exported
17980 renamed function menus_get_item_from_path().
17982 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
17984 * app/disp_callbacks.c:
17985 Show (empty) object menus on object that has none.
17986 Show title on object menus.
17989 Set zoom factor correctly when opening new displays.
17990 Better setting of scrollbars.
17994 Some reformating cleanup.
17997 Added title to object menus.
18000 Added object menu method (NULL-valued) to all objects.
18002 * objects/standard/polyline.c:
18003 Added title to object menu.
18005 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
18007 * app/preferences.[ch]:
18008 New files. Implements the preferences dialog and
18009 loading/saving of ~/.diarc.
18012 Added preferences.[ch].
18015 Load preferences on startup.
18017 * app/commands.[ch]:
18018 Added file_preferences_callback to show the preferences dialog.
18020 * app/create_object.c:
18021 Update extents when creating object.
18022 Use the reset_tools_after_create preferences setting.
18025 Use preferences when creating new display.
18028 Add preferences to menu.
18031 * app/layer_dialog.c:
18032 * app/properties.c:
18033 Don't allow shrinking of dialog.
18034 Add i18n of some strings.
18036 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
18038 Norwegian translation added.
18040 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
18042 * objects/standard/line.c:
18043 * objects/standard/arc.c:
18044 * objects/standard/polyline.c:
18045 * objects/standard/zigzagline.c:
18046 Loading of arrow data fixed.
18048 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
18051 Update extents when saving and exporting to postscript.
18052 Fixes a bug with postscript bounding-box being wrong.
18055 Changed border width from 5 to 2.
18058 Move grouped objects by the move-point of the first object.
18059 Fixes bug that made all objects in the group be off-grid
18060 when moving the group, even though all objects was on-grid.
18062 * app/layer_dialog.c:
18063 Update extents when changing layer.
18065 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18067 * objects/UML/uml.c:
18068 * objects/UML/component.c:
18069 * objects/UML/pixmaps/component.xpm:
18070 Added the UML component object
18072 1999-03-04 Seth Alves <alves@hungry.com>
18074 * objects/UML/generalization.c (generalization_create): avoid
18075 math on uninitialized genlz->text_width (NaN causes sigfpe)
18077 * objects/UML/realizes.c (realizes_create): same
18079 * objects/UML/dependency.c (dependency_create): same
18081 1999-03-01 Seth Alves <alves@hungry.com>
18083 * app/display.c (ddisplay_active): don't fly a warning panel
18084 if ddisplay_active is called when no views are open.
18086 * app/commands.c (set_default_file_selection_directory): set
18087 file selector's default directory if there is already
18090 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18093 New info about imlib requirements.
18096 Added lib/pixmaps/Makefile to created makefiles.
18100 Change from obsoleted to newer gtk calls.
18103 Pass filename of the diagram when loading and saving.
18104 This creates better oportunities to handle filename saving.
18107 Pass filenames to load and save methods.
18109 * lib/dia_image.[ch]:
18110 Added dia_image_get_broken() call that returns a image which
18111 is used for 'broken' images.
18113 * lib/pixmaps/.cvsignore:
18114 * lib/pixmaps/Makefile.am:
18115 * lib/pixmaps/broken.xpm:
18116 New files for the broken image bitmap.
18119 Fixed bug with double destroyed filedialog.
18122 Updated load and save prototypes to use the new filename argument.
18125 Render broken image instead of line when got no image.
18126 Use the new filename in load and save to save (if possible)
18127 relative pathnames and to better try to find loaded images.
18129 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18132 Some updates to the todo file.
18136 Place over/place over => sent to back/bring to front.
18137 Added some keyboard shortcuts to menus.
18139 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18142 Changed string saving/loading to a new method. This should
18143 be much better att handling &,<,> and whitespaces.
18144 Loading strings of the old kind is still supported for backwards
18147 * samples/ER-demo.dia:
18148 * samples/UML-demo.dia:
18149 Updated to use the new strings.
18152 statusbar modified update fix.
18154 1999-02-27 Seth Alves <alves@hungry.com>
18156 * app/app_procs.c (app_init): added a --export-to-ps option
18157 which will cause dia to load a dia file and save it as ps
18158 and then exit. this is a little bogus, because it still
18159 pops up a window. this option only shows up if --enable-gnome
18162 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
18163 menu when built with --enable-gnome
18165 * app/interface.c (create_display_shell): build status bar
18166 even if --enable-gnome is used
18168 * app/menus.c: menu fixes for --enable-gnome
18170 * app/commands.c (file_open_dialog_ok_callback): fixed up
18171 menus when --enable-gnome is used
18172 (file_export_to_eps_callback): set a default file name
18173 when dialog is created
18175 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
18177 * objects/UML/association.c (association_create):
18178 Fixed usage of not initialized variable.
18179 Pointed out by Seth Alves <alves@hungry.com>.
18181 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
18184 Fixed detection of gnome-xml.
18185 From Valtteri Vuorikoski <vuori@k.notcom.org>.
18188 Fixed error detection on dlsym calls.
18189 From Valtteri Vuorikoski <vuori@k.notcom.org>.
18191 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
18193 * objects/UML/message.c (fill_in_dialog):
18196 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18198 * objects/standard/zigzagline.c:
18199 * objects/standard/polyline.c:
18200 * objects/standard/line.c:
18201 * objects/standard/arc.c:
18205 Support for sizeable arrows.
18207 * objects/standard/box.c:
18208 * objects/standard/ellipse.c:
18209 * objects/standard/image.c:
18210 Changed creation handle to lower-right.
18211 Transparent box/ellipse.
18213 * objects/standard/image.c:
18214 Better layout of properties boxes.
18216 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18218 * objects/UML/message.c (fill_in_dialog):
18219 Fixed dialog fill in. Common dialog for all messages.
18221 * objects/UML/object.c:
18222 Added multiple instance. Dialog related bugs fixed.
18223 Common dialog for all instances. Completed copy and destroy.
18225 * objects/UML/lifeline.c (lifeline_load):
18226 Conn initialization bug fixed and few bad loading prevention flags.
18227 Common dialog for all lifeline objects.
18229 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18231 * lib/dia_image.[ch]:
18232 More work on the DiaImage abstraction.
18235 * app/render_eps.c:
18236 * app/render_gdk.c:
18237 * objects/standard/image.c:
18238 Use the new DiaImage calls.
18240 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18244 Reversed the meaning of align horizontal/vertical.
18246 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18248 * app/load_save.c (diagram_load):
18249 Statusbar update fix.
18251 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18253 * app/interface.c (create_display_shell):
18254 Fixed status bar size.
18256 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18258 * lib/dia_image.[ch]:
18259 Added extern declaration for dia_image_release.
18260 Removed dia_image_draw, as it's not neseccary.
18262 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18264 * app/object_ops.c:
18266 Added equal distance alignment both vertical and horizontal.
18268 * objects/UML/object.c:
18269 Added a couple of attributes to load/read that were missing.
18271 * objects/UML/lifeline.c:
18272 Better handling of handles. Fixed another bug I forgot to add
18275 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
18277 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18279 * lib/dia_image.[ch]:
18281 New files. DiaImage wraps the GdkImlibImage.
18284 * app/render_eps.c:
18285 * app/render_gdk.c:
18286 * lib/render_store.[ch]:
18287 * objects/standard/image.c:
18288 Use the new DiaImagetype.
18291 Removed unused variable to eliminate warning.
18293 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
18295 * objects/standard/box.c:
18296 Added rounded corners on the box object.
18298 * lib/widgets.[ch]:
18299 Updated the DiaFileSelector widget.
18301 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18303 * objects/UML/object.c (objet_draw):
18304 Completed underlining of all object name lines.
18306 * objects/UML/message.c (fill_in_dialog):
18307 Fixed a bug that filled incorrectly the message's dialog.
18309 * objects/UML/lifeline.c (lifeline_load):
18310 Some cleanning and fixed a couple of bugs that caused
18311 crashes after reading diagrams with lifelines.
18314 Added flags to prevent crash with void strings
18316 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
18317 * app/display.[ch]:
18318 Added statusbar to the display widget. Currently shows the zoom
18319 factor and modified flag of the viewed diagram. The statusbar is
18320 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
18321 This caused the following additions:
18323 * app/diagram.[ch]:
18324 Added function diagram_set_modified. Calls
18325 ddisplay_update_statusbar for all displays showing the modified diagram.
18326 Changed diagram_modified to call diagram_set_modified.
18329 Added the creation of the statusbar.
18332 diagram_save now calls diagram_set_modified instead of setting
18333 dia->modified. Needed to force call to display_update_statusbar
18336 Changed the way view_show_all works. Now calls ddisplay_zoom
18337 instead of directly setting the zoom_factor, so the zoom factor is
18338 correctly shown in the statusbar.
18341 Fixed rubberband zoom to use ddisplay_zoom().
18343 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18346 Rudimentary GNOME session management.
18348 * app/disp_callbacks.c
18352 GNOME menus. Problems:
18353 Callbacks doesn't get user_data.
18354 Weird warnings when creating popup menus.
18355 menus_set_sensitive(), menus_set_state() doesn't work.
18357 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18360 Add AM_PATH_GDK_IMLIB() call.
18363 Add gdk_imlib to linking flags.
18367 Print library-loading error messages on stdout too.
18370 Add standard image to toolbox.
18372 * app/render_eps.c:
18373 Set a more reasonable dot length. Fixed
18374 missing initialization of dot length.
18375 Added draw_image methods.
18377 * app/render_gdk.c (new_gdk_renderer):
18378 Dot a bit wider. Looks good in normal mode now.
18380 * objects/standard/image.c:
18381 * objects/standard/pixmaps/image.xpm:
18382 New files. Standard object for images.
18384 * app/render_eps.c (set_linestyle):
18385 * app/render_gdk.c (set_linestyle):
18386 * lib/widgets.c (dia_line_style_selector_init):
18388 New line style DOTTED.
18391 * lib/render_store.c:
18392 Change DrawImage call to use gdk_imlib.
18394 * lib/widgets.[ch]:
18395 Added widgets for selecting files.
18396 Added dotted to the linestyle selector.
18398 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
18400 * objects/network/printer.c:
18401 * objects/network/network.c:
18402 * objects/network/pixmaps/printer.xpm:
18403 * objects/network/.cvsignore:
18404 * objects/network/Makefile.am:
18405 * objects/network/pixmaps/Makefile.am:
18406 New printer object in network.
18407 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
18410 Added known XML bug.
18412 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
18416 Reverted back from #include <gnome-xml/tree.h> to
18417 #include <tree.h> as this is fixed by the xml-config program.
18418 The former way broke for some people.
18419 Reported by blizzard@redhat.com.
18421 * objects/UML/lifeline.c:
18422 * objects/UML/message.c:
18423 * objects/UML/object.c:
18424 Removed some warnings.
18426 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18428 * objects/UML/lifeline.c:
18429 Fixed connection points over the life line when the focus of
18430 control is not drawn.
18432 * objects/UML/message.c:
18433 Now a recursive message can be freely resized using the handles.
18435 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18437 * objects/UML/lifeline.c:
18438 Added connection points.
18439 Added properties dialog with the option to draw/hide focus of control
18440 box and destruction mark.
18442 * objects/UML/object.c:
18443 Added properties dialog and stereotype, explicit state and attributes.
18444 It's also possible to mark the object as active.
18446 * objects/UML/pixmaps/object.xpm:
18449 * objects/UML/message.c:
18450 Added "recursive" message type (was not necessary to use OrthConn).
18452 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
18454 * objects/standard/arc.c:
18455 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
18457 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
18459 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
18463 Update xml includes to gnome-xml/*.h.
18465 * objects/standard/arc.c:
18466 Only one property dialog per type.
18467 Fix arrows directions.
18469 * objects/standard/box.c:
18470 * objects/standard/ellipse.c:
18471 * objects/standard/textobj.c
18472 Added default properties dialog.
18475 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18477 * objects/UML/Makefile.am:
18478 * objects/UML/uml.c:
18479 * objects/UML/lifeline.c:
18480 * objects/UML/object.c:
18481 * objects/UML/message.c:
18482 * objects/UML/pixmaps/lifeline.xpm:
18483 * objects/UML/pixmaps/object.xpm:
18484 * objects/UML/pixmaps/message.xpm:
18485 Added 3 new UML objects for dynamic modeling. To avoid internal
18486 conflicts, the name "objet" is used for object "object".
18489 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
18492 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
18494 * app/display.[ch]:
18495 * app/modify_tool.c:
18496 Added autoscrolling while doing rubber-band select.
18497 This patch from Matthias Köster
18498 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
18501 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
18503 * app/defaults.[ch]:
18504 New files, deals with default properties dialog.
18507 New file. Contains definitions for the new object menu.
18509 * lib/poly_conn.[ch]:
18510 New file. Base class for poly-line like objects.
18512 * objects/standard/polyline.c:
18513 * objects/standard/pixmaps/polyline.xpm:
18514 New files. Polyline object.
18517 Fixed bug with infinite loop when registering sheets.
18520 Removed unneccesary stuff.
18522 * app/disp_callbacks.c:
18523 Support for object menus.
18526 Added polyline to toolbox.
18527 Added call to tool_options_dialog_show() when double clicking on
18531 New function tool_options_dialog_show() for tool properties.
18537 Added ObjectType methods for handling object default dialogs.
18538 Added Object method for handling object_menu.
18539 Added unused methods to ObjectTypeOps for future binary
18542 * lib/widgets.[ch]:
18543 Added DiaArrowTypeSelector widget.
18545 * objects/standard/arc.c:
18546 * objects/standard/zigzagline.c:
18547 Added support for default properties.
18549 * objects/standard/line.c:
18550 Added support for default properties.
18551 Just use one properties dialog for all line objects. NOTE: This
18552 seems to have a bug. We're working on it.
18554 * standard/standard.c:
18555 Add the polyline object.
18557 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
18559 * app/modify_tool.c:
18560 Commented out buggy transitive select function. It wasn't really
18561 meant to go into cvs.
18564 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
18576 Swedish translation. Not completed.
18580 Added possibility to enable GNOME specific code with configure.
18583 Added possibility to set debug level with configure.
18586 Added about dialog.
18592 Added some GNOME specific code. Not ready for use.
18594 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
18597 Added text about needing gtk 1.1.13 and gnome-xml.
18600 Described changes since last version (0.20).
18602 Released version 0.30, tagged DIA_0_30.
18604 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
18606 * app/magnify.c (magnify_button_release):
18607 Fixed a problem when zooming in on a very small box would
18608 not release the grabbed pointer-focus.
18610 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
18612 * app/load_save.c (diagram_load):
18613 Be somewhat more robust when loading files that
18616 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
18620 * objects/UML/uml.c:
18621 * objects/network/network.c:
18622 * objects/standard/standard.c:
18623 Added versioning of object libraries.
18625 * app/create_object.c:
18626 Don't change tool when an object is created.
18628 * objects/network/network.c:
18633 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
18636 Updated gtk requirement to Gtk+ 1.1.13.
18639 Always add one screenful of scrolling space on
18640 each side of a diagram window.
18642 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
18645 Tell automake to auto-install missing files.
18648 Renamed deprecated Gtk+ function.
18650 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
18654 * samples/Makefile.am:
18655 * samples/ER-demo.dia:
18656 * samples/UML-demo.dia:
18657 Added samples directory.
18658 Added samples for ER and UML.
18661 * app/disp_callbacks.c:
18663 Zoom is done by sqrt(2) instead of 2.
18664 Lots of more zoom options in the menu.
18666 * objects/ER/relationship.c:
18667 Relationships have 8 connectionpoints instead of 4.
18669 * objects/UML/class.c:
18670 UML class name font a bit smaller.
18671 Fixed stupid bug in the copy operation.
18674 Displays are opened at 500x400 instead of 256x256.
18677 Fixup of internal error message.
18679 * app/color_area.c:
18681 * app/modify_tool.c:
18683 Removed debug printf's.
18686 Added new known bug.
18688 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
18692 Fixed so accelerator groups work in all windows.
18693 Updated to new gtk function names.
18699 Updated to new gtk function names.
18700 Set sensitivity of the align menu items.
18702 * objects/ER/pixmaps/Makefile.am:
18703 * objects/UML/pixmaps/Makefile.am:
18704 * objects/network/pixmaps/Makefile.am:
18705 Fix so that make dist works.
18708 * app/color_area.c:
18712 * app/layer_dialog.c:
18714 * app/object_ops.c:
18715 * app/properties.c:
18716 * lib/diagramdata.[ch]:
18718 * lib/objects/ER/attribute.c:
18719 * lib/objects/ER/entity.c:
18720 * lib/objects/ER/participation.c:
18721 * lib/objects/ER/relationship.c:
18722 * lib/objects/ER/.c:
18723 * objects/UML/actor.c:
18724 * objects/UML/association.c:
18725 * objects/UML/class_dialog.c:
18726 * objects/UML/dependency.c:
18727 * objects/UML/generalization.c:
18728 * objects/UML/large_package.c:
18729 * objects/UML/realizes.c:
18732 Updated to new gtk function names.
18735 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
18741 Fixed loading of diagrams specified as arguments.
18743 * objects/ER/attribute.c:
18744 * objects/ER/entity.c:
18746 * objects/ER/participation.c:
18747 * objects/ER/relationship.c:
18748 Updated the ER objects.
18751 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
18755 * objects/Makefile.am:
18756 * objects/ER/attribute.c:
18757 * objects/ER/entity.c:
18759 * objects/ER/participation.c:
18760 * objects/ER/relationship.c:
18761 * objects/ER/pixmaps/Makefile.am:
18762 * objects/ER/pixmaps/attribute.xpm:
18763 * objects/ER/pixmaps/entity.xpm:
18764 * objects/ER/pixmaps/participation.xpm:
18765 * objects/ER/pixmaps/relationship.xpm:
18766 * objects/ER/pixmaps/weakentity.xpm:
18767 First commit of entity relationship objects.
18768 These were done by hallon@lysator.liu.se.
18769 There are still stuff to do on these.
18771 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
18776 * app/diagram.[ch]:
18777 Change diagram_remove_all_selected to take new argument
18778 delete_empty. Empty objects are deleted only if it is TRUE.
18779 Removed call to close_eps_renderer. This is now done in end_render
18780 in the eps renderer.
18782 * app/create_object.c:
18783 * app/layer_dialog.c:
18784 Update calls to diagram_remove_all_selected.
18787 Update calls to diagram_remove_all_selected.
18788 Some code reformating.
18789 Changed order of adding updates i align_h and align_v.
18791 * app/modify_tool.c:
18792 Update calls to diagram_remove_all_selected.
18793 Added pointer grab when doing rubber-band selection, this fixes
18794 the bug when draging the box over to another window.
18796 * app/connectionpoint_ops.[ch]:
18797 diagram_update_connections_object changed to take an argument
18798 update_nonmoved. This lets connections that has not moved, but
18799 the stuff they're connected to has been moved work.
18800 Update calls to the new diagram_update_connections_object.
18802 * app/properties.c:
18803 Update calls to the new diagram_update_connections_object.
18804 Update extents when properties are applied.
18806 * app/disp_callbacks.c:
18807 Added support for zooming with the '+' and '-' keys.
18810 Removed old keyboard shortcuts for zoom.
18813 Added calls begin_render and end_render to renderer.
18814 These can be used for setup and cleanup.
18816 * lib/diagramdata.c:
18817 Added calls to begin_render and end_render in data_render.
18819 * app/render_gdk.c:
18820 Added begin_render and end_render.
18822 * app/render_eps.[ch]:
18823 Added begin_render and end_render.
18824 Moved close_eps_renderer code to end_render.
18825 Various fixes to the generated eps code. This fixes importing
18826 generated eps into LYX.
18828 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
18834 Menus for alignment updated.
18836 * app/object_ops.[ch]:
18837 Functions for object alignment updated.
18839 * app/commands.[ch]:
18840 Object alignment callbacks updated.
18841 New diagrams are called Untitled-<nr>.
18843 * app/layer_dialog.c:
18844 Active layer selected when showing layers from new
18848 Compress xml files when saving.
18849 Use xml namespace 'dia'.
18852 Minor comment update.
18854 * objects/UML/class_dialog.c:
18855 Cleanup of the gkt_list_item moving code.
18856 Fixed bug with update of operation when moving parameters.
18858 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
18860 * app/layer_dialog.[ch]:
18861 Fixed the rest of the layers dialog.
18864 Added call to redo layer dialogs diagram list when changing
18867 * lib/diagramdata.[ch]:
18868 Added data_raise_layer and data_lower_layer functions for
18869 raising/lowering layers. Added data_add_layer_at for adding a
18870 layer at a specified index.
18872 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
18874 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
18877 Added support for reading diagrams from the command line.
18879 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
18881 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
18883 * app/commands.[ch]:
18884 Added objects_align_callback().
18887 Added align objects to menu.
18889 * app/object_ops.[ch]:
18890 Add object_list_align().
18892 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
18893 * app/layer_dialog.[ch]:
18894 New files. Handles the layers dialog. Needs a bugfix for glib to
18895 work. Sent patch to gtk-list.
18897 * app/pixmaps/new.xpm:
18898 * app/pixmaps/eye.xbm:
18899 * app/pixmaps/lower.xpm:
18900 * app/pixmaps/raise.xpm:
18901 * app/pixmaps/delete.xpm:
18902 New files. Images for the layer dialog buttons.
18904 * lib/diagramdata.h
18905 * lib/diagramdata.c
18906 New files for the DiagramData and Layer structures and functions.
18909 Added call to create_layer_dialog() on startup.
18911 * app/commands.[ch]:
18912 New callbacks for showing the properties and layout dialog.
18913 Changes for the new DiagramData structure.
18915 * app/connectionpoint_ops.c:
18916 * app/cut_n_paste.c:
18917 * app/diagram.[ch]:
18918 * app/display.[ch]:
18920 * app/modify_tool.c:
18921 * app/object_ops.[ch]:
18922 * app/render_eps.c:
18924 Changes for the new DiagramData structure.
18927 * app/properties.c:
18928 Set correct wmclasses.
18931 Fix load and save of layers.
18934 Update DTD for layers.
18937 New menus for dialogs.
18943 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
18946 Removed the gtk 1.1.5 stuff.
18949 Updated gtk check to version 1.1.5.
18950 Updated version from 0.20 to 0.30
18952 * app/commands.[ch]:
18953 Updated some callbacks to be of type GtkItemFactoryCallback1.
18954 Not all are done yet, but it works anyway.
18957 Removed Gtk 1.0.0 GtkAcceleratorTable references.
18961 Update to Gtk 1.1.x functions.
18962 Use ItemFactory instead of MenuFactory.
18964 * app/render_gdk.c:
18965 Removed Gtk 1.0.0 references.
18967 * objects/UML/class_dialog.c:
18968 Scrolled window updates for Gtk 1.1.5.
18971 Removed ugly fix for gnome-xml bug. Make sure you get the
18972 newest version of gnome-xml from CVS.
18974 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
18977 Removed the xml load/save line.
18983 Removed building of files.c
18986 * lib/connection.c:
18990 * lib/render_object.c:
18991 * objects/UML/actor.c:
18992 * objects/UML/association.c:
18993 * objects/UML/class.c:
18994 * objects/UML/constraint.c:
18995 * objects/UML/dependency.c:
18996 * objects/UML/generalization.c:
18997 * objects/UML/implements.c:
18998 * objects/UML/large_package.c:
18999 * objects/UML/note.c:
19000 * objects/UML/realizes.c:
19001 * objects/UML/small_package.c:
19002 * objects/UML/uml.c:
19003 * objects/UML/usecase.c:
19004 * objects/network/bus.c:
19005 * objects/standard/arc.c:
19006 * objects/standard/box.c:
19007 * objects/standard/ellipse.c:
19008 * objects/standard/line.c:
19009 * objects/standard/textobj.c:
19010 * objects/standard/zigzagline.c:
19011 Removed all includes of files.h
19014 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
19017 Made the val property of string be implied.
19018 This makes it possible to save strings that
19019 are NULL. Just leave out val.
19021 * objects/lib/dia_xml.c:
19022 Fixed string so that it is possible to save strings
19023 that are NULL. Also made an ugly workaround of a
19024 bug in gnome-xml which removes empty properties.
19026 * objects/lib/orth_conn.c:
19027 Fixed a bug in saving. Forgot to step through the
19030 * objects/UML/association.c:
19031 * objects/UML/class.c:
19032 * objects/UML/constraint.c:
19033 * objects/UML/dependency.c:
19034 * objects/UML/generalization.c:
19035 * objects/UML/implements.c:
19036 * objects/UML/large_package.c:
19037 * objects/UML/note.c:
19038 * objects/UML/small_package.c:
19039 * objects/UML/realizes.c:
19040 * objects/UML/usecase.c:
19041 * objects/UML/actor.c:
19042 Fixed UML objects to save as xml.
19043 The last two were done by asierra@servidor.unam.mx (asierra-981204)
19045 * objects/UML/uml.[ch]:
19046 Updated *_write() and *_read() functions to use xml.
19048 * objects/network/bus.c:
19049 * objects/network/computer.c:
19050 * objects/network/disc.c:
19051 * objects/network/monitor.c:
19052 Updated network diagrams to use xml.
19054 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
19057 New file. DTD that describes the xml file format
19060 * lib/dia_xml.[ch]:
19061 New files. Support for saving object to xml files.
19066 Added check for and usage of gnome-xml library.
19069 Major chages. Now saves/loads diagrams as xml.
19072 * lib/element.[ch]:
19073 * lib/connection.[ch]:
19074 * lib/orth_conn.[ch]:
19075 * lib/render_object.[ch]:
19077 Updated object support load/save functions for xml:
19079 * object/standard/arc.c:
19080 * object/standard/box.c:
19081 * object/standard/ellipse.c:
19082 * object/standard/line.c:
19083 * object/standard/textobj.c:
19084 * object/standard/zigzagline.c:
19085 Updated all standard objects to use xml.
19088 Only the standard objects are converted right now, don't
19089 save or load uml or network diagrams yet. Also, since this
19090 is new code it is deemed a bit unstable.
19095 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
19097 * objects/UML/class.c:
19098 Changed classname font to Helvetica.
19099 Added more space above the classname
19101 * objects/UML/usecase.c:
19102 Correct placements of connectionpoints on ellipse.
19103 Better algorithm for deciding aspect ration on
19106 These changes were made by Alejandro Aguilar Sierra
19107 <asierra@servidor.unam.mx>. (asierra-981201)
19109 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19111 * objects/UML/actor.c:
19112 Changed the extents and alignment of the element
19115 * objects/UML/.cvsignore:
19116 Added usecase.lo and actor.lo.
19118 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19120 * objects/UML/actor.c:
19121 * objects/UML/usecase.c:
19122 * objects/UML/pixmaps/actor.xpm:
19123 * objects/UML/pixmaps/case.xpm:
19124 New files. Implements usecase and actor UML objects.
19125 These objects are done by Alejandro Aguilar Sierra
19126 <asierra@servidor.unam.mx>.
19128 * objects/UML/Makefile.am:
19129 * objects/UML/pixmaps/Makefile.am:
19130 Added usecase and actor to makefile.
19133 Added Alejandro and Jerome to autors list.
19135 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
19137 * objects/UML/class.c (umlclass_load):
19138 Fixed typo. Reported by Jerome.Abela@solsoft.fr
19140 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
19142 * app/properties.c:
19143 Update connections when doing apply in the properties window.
19145 * objects/UML/uml.[ch]:
19146 * objects/UML/class.[ch]:
19147 * objects/UML/class_dialog.c:
19148 Added connection points on both sides of attributes and
19149 operations in UML classes.
19150 Based on idea from Jerome.Abela@solsoft.fr
19152 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
19155 Some new documentation about handles and connectionpoints.
19158 Added functions object_add_connectionpoint and
19159 object_remove_connectionpoint for handling a dynamic
19160 number of connectionpoints.
19162 * objects/UML/class.c:
19163 Only reserve space for stereotype when it is shown.
19165 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
19167 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
19169 * app/connectionpoint_ops.c:
19171 * app/disp_callbacks.c:
19172 * app/display.[ch]:
19174 * app/handle_ops.c:
19176 * app/modify_tool.c:
19177 * app/render_gdk.[ch]:
19179 Huge cleanup of internal rendering system.
19180 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
19181 This gives a few new methods for Interactive Renderers for setting
19182 clipping regions and drawing pixel based lines and rects.
19183 Updated the rest of the code to use the new stuff.
19185 * app/render_eps.c:
19189 * objects/standard/zigzagline.c
19190 Fixed unused variable warnings.
19193 Fixedbug with stringwidth where width==0.
19198 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
19200 * lib/widgets.[ch]:
19201 Added suppot for setting the font of a
19202 DiaFontSelector widget.
19203 Also fixed some typos in the header.
19206 Added a comment about the GetPRoperties method call.
19207 You have to make sure to update widget state when
19208 this method is called. (Not all objects do this yet,
19214 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
19217 Fixed problem with height of ascent and descent for fonts.
19218 It didn't use the whole height (==ascent+descent) when calculatine
19219 ascent_ratio and descent_ratio.
19221 * objects/standard/textobj.c:
19222 * objects/standard/box.c:
19223 * objects/standard/ellipse.c:
19224 * objects/standard/line.c:
19225 * objects/standard/arc.c:
19226 Updated and added property dialogs for these objects.
19227 Also added line width/color/style to those objects
19228 that didn't have it.
19229 This change breaks fileformat compatibility for these objects.
19231 * objects/standard/zigzagline.c:
19232 Changed zigzagline to be based on OrthConn, much nicer.
19233 Also added line style and color to properties.
19234 This change breaks fileformat compatibility for zigzagline.
19237 Fixed bug in message(). Forgot a pair of '&'.
19239 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
19241 * lib/widgets.[ch]:
19242 Added DiaColorSelector widget.
19243 This is a colored button that pops up a color selection
19244 dialog when pressed.
19246 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
19248 * lib/widgets.[ch]:
19250 New files, added widgets for selecting fonts, alignment
19251 and line-style. Will be used later.
19253 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
19257 * objects/UML/Makefile.am:
19258 * objects/network/Makefile.am:
19259 * objects/standard/Makefile.am:
19260 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
19261 in all Makefile.am.
19263 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
19265 * app/handle_ops.c (handle_draw):
19266 connected HANDLE_MINOR_CONTROL also becomes red.
19268 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
19271 removed -ldl from linking. This is added if needed by configure.
19274 Open dlls with RTLD_LAZY if it is defined.
19275 Some cleanups: char *error -> const char *error
19276 Added fprintf()'s to where we exited because of errors.
19279 Include <sys/types.h>
19281 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
19286 Detect dlopen better.
19287 Detect wether dlopen needs an underscore in the identifier.
19288 This code was mostly borrowed from guile.
19292 * objects/standard/standard.c:
19293 * objects/network/network.c:
19294 * objects/UML/uml.c:
19296 Changed the way sheets reference objects to use just the
19297 name. Changed module loading to a two stage model:
19298 First register_objects() is called for all modules.
19299 Then register_sheets() is called. This means that
19300 sheets can safely include objects from other modules.
19303 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
19305 * objects/network/bus.c:
19306 * objects/network/network.c:
19307 * objects/network/Makefile.am:
19308 New file bus.c. Added new object: Ethernet bus.
19310 * objects/standard/box.c:
19311 Added call to gtk_spin_button_set_numeric for linewidth spinner
19312 in property dialog.
19314 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
19316 * app/connectionpoint_ops.c:
19317 * app/create_object.c:
19319 * app/handle_ops.c:
19320 * app/modify_tool.c:
19321 * lib/connection.c:
19326 * loads of objects:
19327 Changed handle->connectable to handle->connect_type.
19328 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
19329 that their connections don't break when moving objects.
19332 Always select the last handle in an object that has
19333 the closest distance.
19335 * lib/geometry.[ch]:
19336 Added rectangle_add_point function.
19339 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
19341 * app/properties.[ch]: New files. Handles the new properties
19344 * app/modify_tool.c: Changed to use new properties dialog.
19346 * app/object_ops.[ch]: Removed object_changed_callback, as it's
19347 not needed anymore. This is now handled differently in
19351 Changed the properties ops for objects. Removed typedefs
19352 ChangedObjectTime and ObjectChangedFunc needed for the old way.
19353 Added object_return_null function.
19356 * lib/render_object.c:
19358 Changed objects to use the new properties dialog.
19361 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
19363 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
19366 * autogen.sh: New file. Copied from gtk and added a call to
19367 libtoolize. Anyone knows why this isn't done in gtk?
19369 * Removed autogenerated files.
19371 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
19373 * Added call setlocale(LC_NUMERIC, "C") so that formating of
19374 floating-point numbers in postscript output will be correct.
19375 * Did some cleanup of generated postscript files.