1 2005-04-23 Hans Breuer <hans@breuer.org>
3 * objects/UML/class.c : fix another crash with the line
4 wrapping code (Gabor Simon, bug #160865)
6 * plug-ins/cairo/diacairo.c : image rendering had an endianess
7 issue (or is this working around a libpixman bug?;)
9 2005-04-21 Lars Clausen <lars@raeder.dk>
11 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
13 * shapes/**/*.shape: All shapes now have midpoints.
15 2005-04-20 Lars Clausen <lars@raeder.dk>
17 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
18 (Radek Krahl): Make sure there's enough handles for the line.
21 * objects/UML/node.c (node_draw): Better drawing method avoids
22 garbage after moving. Fixes bug #301032.
24 2005-04-17 Hans Breuer <hans@breuer.org>
26 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
27 changes (whould compile with current cvs and 0.(3|4).0
29 2005-04-11 Lars Clausen <lars@raeder.dk>
31 * xmldocs.make (all): Fix to put installed docs in right place
34 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
37 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
38 (Leonardo Boshell): Use standard gnome help if called with Gnome.
40 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
41 locale issues for eps output. Fixes bug #173135.
43 2005-04-10 Hans Breuer <hans@breuer.org>
45 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
46 changes (somewhat broken)
48 * plug-ins/pstricks/render_pstricks.c : still C89 ...
49 * objects/custom/shape_info.c : ... but with prototypes
51 2005-04-07 Lars Clausen <lars@raeder.dk>
54 * plug-ins/svg/render_svg.c:
55 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
56 Make decimal separators be correct in save file formats
57 (non-localized). Fixes bugs #172529 and 172531.
59 2005-04-06 Lars Clausen <lars@raeder.dk>
61 * app/create_object.c (create_object_button_release):
62 * app/modify_tool.c (modify_button_release): Correct activations
65 2005-04-05 Simon Kågström <ska@bth.se>
67 * app/app_procs.c: the --show-layers option can now handle numeric
70 2005-04-05 Lars Clausen <lars@raeder.dk>
72 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
73 (Tom Kast): Avoid blockiness caused by bad updates.
75 2005-04-03 Lars Clausen <lars@raeder.dk>
78 * lib/beziershape.c: Main points. A crude solution, having the
79 center in the middle of the bb. Shows a bug in the distance_from
80 code for polyshape when a side is horizontal.
82 2005-04-02 Lars Clausen <lars@raeder.dk>
84 * plug-ins/pstricks/render_pstricks.c:
85 * plug-ins/xfig/xfig-export.c: Patch from Radek
86 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
88 2005-04-02 Hans Breuer <hans@breuer.org>
90 * lib/dia_image.c(dia_image_filename) : return the path
91 again. (bug #172416, Radek Krahl)
93 2005-04-01 Steve Murphy <murf@e-tools.com>
95 * configure.in: Added "rw" to ALL_LINGUAS.
97 2005-03-31 Lars Clausen <lars@raeder.dk>
99 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
101 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
104 * objects/network/basestation.c: Main points.
106 2005-03-27 Hans Breuer <hans@breuer.org>
108 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
109 * app/pixmaps.h : removed arrow.xpm
110 * lib/Makefile.am : added diamarshal
111 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
112 => makes 'make dist' pass and produce a useable package
114 * po/*.po : 'noise' profuced by make dist
116 2005-03-24 Lars Clausen <lars@raeder.dk>
118 * objects/flowchart/parallelogram.c (pgram_update_data):
119 * objects/flowchart/ellipse.c (ellipse_update_data):
120 * objects/flowchart/diamond.c (diamond_update_data):
121 * objects/flowchart/box.c (box_update_data): Main points.
123 * objects/custom/custom_object.c (custom_create):
124 * objects/custom/shape_info.h:
125 * shapes/Assorted/square.shape:
126 * objects/custom/shape_info.c (load_shape_info):
127 * doc/shape.dtd: Added main point support to shapes, and an
128 example of how to use it.
130 2005-03-21 Lars Clausen <lars@raeder.dk>
132 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
133 unnormalize from same point as you normalize, or else!
135 2005-03-20 Lars Clausen <lars@raeder.dk>
137 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
138 Remember to ref g_object_new'd object.
140 2005-03-19 Hans Breuer <hans@breuer.org>
142 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
143 have configurations, fixes bug #170962
145 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
146 or better not used any longer. Fixes bug #169142.
148 * lib/element.c(element_update_connections_rectangle): don't initialize
149 the eighth point twice but instead the nineth once
151 * objects/standard/bezier.c : no C++ comments *please*
153 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
155 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
156 * plug-ins/python/pydia-image.c : ... so, don't do it!
158 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
159 also named colors via pango_color_parse()
161 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
163 * lib/libdia.def : updated externals
165 * app/object_ops.c : still not C99 everywhere
167 2005-03-19 Hans Breuer <hans@breuer.org>
169 * lib/autoroute.c : at least it should compile ;)
171 2005-03-19 Lars Clausen <lars@raeder.dk>
173 * lib/autoroute.c: Orthconns now do autogap.
175 2005-03-17 Lars Clausen <lars@raeder.dk>
177 * app/authors.h: Added Gregoire Dooms for gap stuff.
179 * objects/standard/polyline.c: Patch from Grégoire Dooms
180 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
182 * objects/standard/bezier.c: Patch from Grégoire Dooms
183 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
187 * objects/UML/state_term.c:
188 * objects/UML/large_package.c:
189 * objects/UML/node.c:
190 * objects/UML/object.c:
191 * objects/UML/small_package.c:
192 * objects/UML/state.c:
193 * objects/UML/usecase.c:
194 * objects/UML/note.c:
195 * objects/UML/actor.c:
196 * objects/UML/classicon.c:
197 * objects/UML/component.c:
198 * objects/Misc/analog_clock.c:
199 * objects/Jackson/requirement.c:
200 * objects/Istar/goal.c:
201 * objects/Istar/actor.c:
202 * objects/FS/function.c:
203 * object/standard/box.c:
204 * objects/ER/entity.c:
205 * objects/ER/relationship.c:
206 * objects/ER/attribute.c: Main points added. Distance_from fixed
207 in attribute, broken in relationship, I* goal, Jackson
208 requirement, analog_clock, all non-rectangular UML elements,
211 * lib/element.[ch]: New method to help update connection points.
213 * app/menus.c: Change Help/Manual to Help/Contents to follow
216 * objects/standard/line.c:
218 * objects/standard/bezier.c: Patch from Grégoire Dooms
219 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
220 bezier objects. Autogap nowchanged to be a function of the
224 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
227 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
228 CP_FLAG_ANYPLACE connpoints.
230 2005-03-16 Lars Clausen <lars@LittlePooter.local.>
232 * app/interface.c (create_tools): Removed debug printf.
234 2005-03-15 Lars Clausen <lars@raeder.dk>
236 * lib/widgets.[ch]: Constification.
238 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
241 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
243 * lib/connectionpoint.h: Flags for connection points.
245 * app/create_object.c (create_object_motion):
246 * app/modify_tool.c (modify_motion): Minor refactoring.
248 * app/object_ops.c (object_find_connectpoint_display): Extend with
249 finding connpoints that cover entire objects.
251 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
253 * objects/custom/custom_object.c (custom_setup_properties): Avoid
256 2005-03-13 Hans Breuer <hans@breuer.org>
258 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
260 2005-03-13 Hans Breuer <hans@breuer.org>
262 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
263 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
264 dia_svg_style_copy(), dia_svg_style_init()
266 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
269 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
270 not wrapped in the style attribute
272 * plug-ins/svg/svg-import.c : implement nested group handling and style
273 'style inheritance'. Still no transformations, no <image/>, no <style/>
276 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
277 the latter is for programmers.
278 Also be more tolerant if the document root namespace is not 'svg'. If the svg
279 namespace is defined in the file search for the top node including svg. This
280 allows us to re-read the svg part of our own shape format.
282 * lib/libdia.def : there is no give_focus_to_object
283 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
284 type as an expression
286 * lib/geometry. c : use G_IMPLEMENT_INLINES
287 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
289 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
290 gone when trying to remove the focus
292 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
293 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
294 case of this plug-in, i.e. producing output files]
296 2005-03-13 Lars Clausen <lars@raeder.dk>
298 * lib/Makefile.am (BUILT_SOURCES):
299 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
300 the building of the icons header files.
301 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
303 2005-03-13 Hans Breuer <hans@breuer.org>
305 * configure.in : require Cairo 0.3.0
306 plug-ins/cairo/diacairo.c : changed to match ;-)
308 * app/app_procs.c() : new function dump_dependencies()
309 which gets called by: dia --version --verbose
310 and may help to track version dependent problems in
313 * lib/font.c : reverted to previous version cause using
314 not implemented Pango API did not improve the issue.
315 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
316 for more information.
318 * lib/dialinechooser.c : a little shrinking of the
319 initial size (to work around line wrappjing the right
322 2005-03-11 Lars Clausen <lars@raeder.dk>
324 * app/textedit.c: Concentrate start/end editing in single functions.
326 2005-03-10 Lars Clausen <lars@raeder.dk>
329 * lib/object.h: Added new object function to allow the object to
330 be notified when its text is being edited.
336 * lib/focus.c: Remove sideeffects from focus objects, add getter
339 2005-03-09 Lars Clausen <lars@raeder.dk>
341 * lib/Makefile.am (dia-lib-icons.h):
342 * app/Makefile.am: Minor cleanup.
344 2005-03-06 Hans Breuer <hans@breuer.org>
346 * app/app_procs.c : avoid "assignment within conditional expression"
347 and handle -L for the GOption case as well.
349 * lib/widget.c : strchr() does not return -1 on not found but NULL;
350 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
351 indirection from 'const int '
353 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
354 large_arc, thus produce correct arc output (like diasvg.py does;),
357 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
358 from objects/custom/shape_info.c to be shared with object/custom and
359 plug-in/svg -> finally the C based svg-import reads pathes again.
360 Added arc parsing while I was there, which fixes bug #169191
361 * objects/custom/shape_info.c(parse_path) :
362 * plug-ins/svg/svg-import : reuse above function
363 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
364 But in general this does only support a small subset of what is
367 2005-03-06 Lars Clausen <lars@raeder.dk>
369 * objects/UML/association.c: Patch from Dave Klotzbach applied:
370 Add visibility to association arrow. Fixes bug #157012.
372 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
375 * app/layer_dialog.c (create_button_box): Use stock icons instead
376 of homemade onces. Gets us rid of four more XPMs.
378 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
380 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
381 This option permits command line control of which layers are visible.
382 Useful when automatically exporting multiple versions of the same
383 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
384 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
385 and made it static since its only used in that file.
386 * app/authors.h: added myself
387 * doc/en/dia.1: documented the switch
388 * doc/en/usage-layers.xml: ditto
390 2005-03-05 Alan Horkan <horkana@tcd.ie>
392 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
393 this restores how Dia behaved before the GTK2 port and seems to help
394 allow the toolbox to be more easily resized. Bug #108891.
396 2005-03-05 Lars Clausen <lars@raeder.dk>
398 * Civil/civil_motor.shape:
399 * Civil/civil_rotor.shape:
401 * Logic/buffer.shape:
402 * Logic/connector.shape:
403 * Logic/inverter.shape:
409 * shapes/Assorted/arrow-left-up.shape:
410 * shapes/Assorted/heptagon.shape:
411 * shapes/Assorted/star5.shape:
412 * shapes/Assorted/trapezoid.shape:
413 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
414 defaults, see bug #169143.
416 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
419 * doc/en/Makefile.am: Finally figured out the right way to ask for
420 the manpage xslt. Closes bug #144539.
422 2005-03-01 Lars Clausen <lars@raeder.dk>
424 * lib/Makefile.am (nodist_include_HEADERS):
425 * app/Makefile.am: Correctly generate these files from PNGs with
430 * lib/widgets.c: Refactor toggle button factory to allow inline
433 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
435 * app/makefile.msc (ICON_PNG_PAIRS):
436 * app/dia-app-icons.h: Updated with more icons.
439 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
442 * app/interface.c (create_display_shell):
443 * app/layer_dialog.c (dia_layer_widget_init):
444 * lib/dia_image.c (dia_image_get_broken): Use inlined data
447 * app/display.c (ddisplay_close): Removed unused includes.
449 2005-03-01 Lars Clausen <lars@raeder.dk>
451 * app/sheets.c (create_object_pixmap): Create a placeholder image
452 for when the real image is missing. Better than crashing:)
455 2005-02-25 Hans Breuer <hans@breuer.org>
457 * app/app_procs.c : don't requets to open a default display with
458 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
460 2005-02-22 Lars Clausen <lars@raeder.dk>
462 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
465 2005-02-19 Lars Clausen <lars@raeder.dk>
467 * app/menus.c (display_menu_items): Applied patch from bug #94019:
468 Menu cleanup and addition of icons. Also a few additional stock
471 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
474 2005-02-14 Lars Clausen <lars@raeder.dk>
476 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
478 2005-02-13 Lars Clausen <lars@raeder.dk>
480 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
481 width. Seems to work. Once tested some more, needs old code
484 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
485 warning by escaping & properly.
487 2005-02-06 Lars Clausen <lars@raeder.dk>
489 * app/filedlg.c (file_export_callback): Set correct extension as
490 soon every time the dialog is shown. Fixes bug #162535.
492 * app/display.c (ddisplay_set_origo): Use more standard
495 * app/modify_tool.c (modify_motion):
496 * app/create_object.c (create_object_motion): Put coordinates of
497 handle/object in status bar while moving. Fixes bug #163164.
499 2005-02-03 Lars Clausen <lars@raeder.dk>
501 * lib/.cvsignore: Added generated files diamarshal.[ch]
503 2005-02-02 Lars Clausen <lars@raeder.dk>
505 * configure.in: Add GLIB_GENMARSHAL def as suggested in
506 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
507 Now compiles on Linux.
509 2005-02-01 Lars Clausen <lars@raeder.dk>
511 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
512 need to translate the empty string. Especially not after
513 g_assert_not_reached(). Fixes bug #165966.
515 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
517 * objects/UML/activity.c : add fill- and line-colour properties
518 [applied by Hans Breuer, fixes bug #163260]
520 2004-01-28 Hans Breuer <hans@breuer.org>
522 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
523 update provided by Alan Horkan (fixes bug #159592)
525 2004-01-28 Hans Breuer <hans@breuer.org>
527 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
528 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
529 generalization, dependancies, parameterized classes ...
530 * plug-ins/xslt/styleshetts.xml : refernce it
531 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
533 2004-01-28 Hans Breuer <hans@breuer.org>
535 * objects/UML/transition.c : fill out the extra_spacing struct
536 in the OrtConn member, in order to avoid artifacts when draggin
537 the transition. (patch by Peter Allin, bug #144956)
539 2004-01-15 Hans Breuer <hans@breuer.org>
541 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
542 to something differnt than 0. Apparently there are case where Dia misses
543 to appropriately set it before requesting a dashed line (simple line with
544 arrow as described in bug #151716)
546 * lib/dia_dirs.c : special casing for drive letters which I broke with
549 2005-01-13 Hans Breuer <hans@breuer.org>
551 * app/interface.c(create_sheet_page) : remved dead long time code
553 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
554 it is availbale via header - which is the better style anyway
556 2004-12-31 Hans Breuer <hans@breuer.org>
558 * lib/dia_dirs.c(dia_get_canonical_path) : complete
559 rewrite to handle something like /mnt/some/where/../else
560 too. Workaround for bug #162637.
561 * app/filedlg.c : call gtk_file_chooser_set_current_name()
562 to workaround gtk_file_chooser_set_filename() not setting
563 it if the file does not exist
565 * sheets/Jackson.sheet.in app/menus.c : fixed typos
566 (Frank Arnold, bug #161676)
568 2004-12-31 Steffen Macke <sdteffen@gmail.com>
570 * doc/pl/*.xml: Added XML prolog
571 * makefile.msc: Added libxslt, fixed libxml, libart
573 2004-10-29 Alexander Shopov <ash@contact.bg>
575 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
577 2004-12-29 Lars Clausen <lars@raeder.dk>
579 * configure.in: Make gnomeprint be truly off by default (typo) and
580 show optional compilation correctly.
581 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
583 2004-12-22 Hans Breuer <hans@breuer.org>
585 * lib/widgets.c : destroy handlers can be called more than once,
586 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
588 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
590 * app/display.c : temporary debug code showing the
593 * app/dialibartrenderer.c(draw_string) : removed dead
594 code loading and leaking font and face
596 2004-12-15 Hans Breuer <hans@breuer.org>
598 * app/display.c : actually use the selction-changed signal for something
599 useful. Show selections representation on statusbar.
600 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
601 * app/diagram_tree.c : use new function (as in app/display.c) and only
602 poke into property internals at one place
603 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
606 2004-12-12 Hans Breuer <hans@breuer.org>
608 * lib/libdia.def app/dia.def : updated externals
610 * objects/custom/custom_object.c : custom_destroy is called per object.
611 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
612 reference to it. Fixes e.g. bug #158288, #160550, ...
614 * objects/UML/association.c(association_draw) : completed porting to
615 draw_polyline_with_arrows()
616 (association_update_data_end) : fixed typo in point compare
617 (association_update_data) : for name placement take degenerated
618 segements into account. Together this fixes bug #143891
620 2004-12-11 Hans Breuer <hans@breuer.org>
622 * lib/widgets.c(set_size_sensitivity) : revert inverted
623 logic for arrorw size selections, fixes bug #160527
625 2004-12-11 Hans Breuer <hans@breuer.org>
627 * lib/widgets.c(dia_font_selector_set_font) : initialize
628 the font style widget, too. Gets rid of empty font
629 style and thus default broken font style, e.g. UML::class_name
631 * lib/widgets.c(dia_color_selector_more_callback) : fill
632 the color palette from dynamic menu entries and also
633 preselect the current color to the last select entry
635 * plug-ins/python/pydia-diagramdata.c : hold a reference
636 to the underlying GObject
638 * app/Makefile.am app/diagrid.h : new file containing the
639 grid 'class' moved from DiagramData to Diagram.
640 Also moved pagebreak_color and guides cause they are only
641 used for visual appearance not 'data'.
642 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
643 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
646 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
647 lib/libdia.def : get rid of new_diagram_data()
648 Diagram _is_ DiagramData (and does not have one any longer,
649 just a compatibility pointer)
651 * lib/diarenderer.h : a small doc improvement
653 2004-12-11 Hans Breuer <hans@breuer.org>
655 * objects/UML/class.c : line wrapping code buffer
656 overrun fixed by Gabor Simon, bug #160865
658 2004-12-11 Hans Breuer <hans@breuer.org>
660 * plug-ins/python/pydia-diagram.c : hold a reference
661 to the diagram in PyDiaDiagram, avoids bug #159080
662 [another way to avoid is to detroy the dialog by
663 clsoing it. But now there is still a diagram to
664 apply the changes to, even if it's thrwon away just
667 2004-12-10 Hans Breuer <hans@breuer.org>
669 * **/*.c : fixed a bunch of warnings, not only for -ansi
670 (still too many of them, but -ansi works)
672 prop_geomtypes.h prop_geomtypes.c:306: warning: static
673 declaration for `fontsizeprop_reset_widget' follows non-static
674 dia_dirs.c:196: warning: return discards qualifiers from
678 shape_info.c:121: warning: static declaration for `parse_path'
682 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
683 arrow.c:244: warning: unused variable `i'
684 arrow.c:245: warning: unused variable `p'
685 arrow.c:246: warning: unused variable `zzr'
687 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
688 finally removed c++ comments
690 objects/Istar/goal.c : initialize connections::directions
691 while I was there - helps autorouting
693 * objects/KAOS/metaandorrel.c objects/Istar/link.c
694 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
695 (it would be quite simple to add image-from-memory support
698 * pydia-*.h : warning: no newline at end of file
700 * plug-ins/gprint/diagnomeprint.c : allow to unregister
701 and follow new unique name naming convention
702 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
705 2004-12-07 Hans Breuer <hans@breuer.org>
707 * objects/UML/message.c : better default for initial text placement
708 a suggested in bug #154306, Henning Mersch
709 * objects/UML/constraint.c : doing the same
711 * app/filedlg.c : include persistence.h for persistence_get_integer
712 * lib/libdia.def export it
714 2004-12-05 Hans Breuer <hans@breuer.org>
716 * app/grid.c : respect dynamic grid during snap-to, fixes
717 bug #135124, Dmitriy Morozov. Added some additional magic
718 to make the grid size more useable.
720 2004-12-05 Hans Breuer <hans@breuer.org>
722 * app/app_procs.c : make it compile for the HAVE_POPT and
723 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
725 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
726 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
727 when interactive. Fixes bug #119329
729 * plug-ins/cairo/diacairo.c : adapt to new type naming
730 scheme (introduced by accident;-) for pixbuf-*
731 * app/app_procs.c : reflect both type name changes
733 2004-12-04 Hans Breuer <hans@breuer.org>
735 * objects/standard/image.c : fix the correct warning
736 `image_file_name' might be used uninitialized
738 * app/filedlg.c : near complete rewrite
739 - removed 'related dialog', GtkOptionMenu, most global vars,
740 also don't hide the dialog but let it go.
741 - added: filter view by extension, hopefully working diagram
742 referencing, GtkComboBox usage
744 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
745 of im/export filter entries. So the user interface reflects
746 the dynamic nature of pixbuf loaders
748 * lib/filter.[ch] : implement filter_unregister_*port
749 lib/libdia.def : added new functions
750 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
751 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
752 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
753 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
754 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
755 use them in _plugin_unload () thus all these plug-ins
756 can be loaded used and unloaded during Dia's runtime
758 2004-12-04 Lars Clausen <lars@raeder.dk>
760 * lib/diagramdata.h: Access methods for units defined per diagram.
762 * lib/font.c (dia_font_new_from_style): More proper object creation.
764 * lib/properties.h: Refactored the PROP_STD_* macros to allow
767 * app/diagram.c (diagram_init): Force filename to be absolute
768 path, easing the job for load/save.
770 2004-12-03 Hans Breuer <hans@breuer.org>
772 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
773 added dia_font_set_height, dia_font_copy (note to self: don't try to
774 maintain these from the *NIX side ;)
776 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
777 the new color selection anymore
778 * objects/UML/class_dialog.c : with the above change it would have been more
779 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
780 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
782 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
783 (used in object vtable) and make its prototype match
785 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
786 correlate any of these strange crashing bug with it, but assume bad things to
787 happen when one passes stack allocated stuff to gtk_type_unique()
789 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
790 not there. Fixes most of the warnings from bug #156996
792 * lib/makefile.msc : rules to generate diamarshal.[ch]
794 2004-11-29 Hans Breuer <hans@breuer.org>
796 * app/disp_callbacks.c : reenable so-called preedit
797 as described in bug #158859, Etsushi Kato
798 Also fixed some compiler warnings while there.
800 * objects/standard/image.c(get_directory) : make
801 the documentation match the implementation.
802 (image_save) : don't write a leading slash on
805 * plug-ins/gprint/diagnomeprintrenderer.c :
806 switched to gnome-print-pango usage
808 * app/app_procs.c configure.in : although Dia
809 is not threaded it appears as if we have to
810 g_thread_init() to avoid crashing in some
811 libraries which are thread enabled
813 * lib/diamarshal.list lib/Makefile.am : start of
814 using GSignal to clean up some object relations
815 * lib/libdia.def : export marshallers
816 * app/diagram.[ch] : emit signals when REMOVED,
818 * app/display.c : added a connection to
819 SELECTION_CHANGED to test the new signal stuff
821 * app/diagram.c : fixed diagram_finalize while I
824 2004-11-28 Hans Breuer <hans@breuer.org>
826 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
827 the text if conversion to current locale fails. [This is actually
828 using code written four years ago;]
829 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
831 * objects/standard/image.c(image_load) : be more robust against
832 filenames which seem to be absolute
834 2004-11-27 Hans Breuer <hans@breuer.org>
836 * app/filedlg.c(file_save_callback) : convert to
837 filename encoding before passing to diagram_save()
838 Fixes bug #158381, thanks to Robert Ögren
840 2004-11-27 Hans Breuer <hans@breuer.org>
842 * lib/dialibartrenderer.c : sometimes its good to read
843 compiler warnings. Not only define renderer_finalize
844 but actually *use* it. Should plug a potential huge
847 * configure.in plug-ins/Makefile.am
848 plug-ins/gprint/Makefile.am : build the experimental
849 gnomeprint plug-in on *NIX, too.
850 * plug-ins/gprint/diagnomeprint.c : don't include
851 specific (private) backend headers but instead select
852 the desired backend via config key setting
854 * lib/diagdkrenderer.c : add 1 to size of filled arc
855 to be rendered by gdk. Fixes bug #150896.
857 * plug-ins/gprint/diagnomeprint.c
858 plug-ins/gprint/diagnomeprintrenderer.c : added magic
859 to better match page and dash sizes
861 2004-11-27 Hans Breuer <hans@breuer.org>
863 * plug-ins/shape/shape-export.c : it's g_strdup_printf
865 2004-11-27 Hans Breuer <hans@breuer.org>
867 * app/app_procs.c : mention eps-builtin aka. "using
868 latin1", does not fix the eps-pango issues but #150571
870 2004-11-27 Hans Breuer <hans@breuer.org>
872 * sheets/Cybernetics.sheet.in : changed encoding to
873 utf-8, patch from Takeshi AIHANA, fixes #149580
875 2004-11-27 Hans Breuer <hans@breuer.org>
877 * objects/custom/custom_object.c : many existing shapes
878 rely on a square default size, revert to it although
879 it originally was by a typo. Fixes bug #148527.
881 2004-11-27 Hans Breuer <hans@breuer.org>
883 * app/load_save.c(dia_cleanup_autosave)
884 app/diagram.c : don't use dia->filename if already
885 freed and dont use printf at all.
887 * app/paginate_psprint.c : not only set the renderer::paper
888 but also renderer::is_portrait. Should fix bug #142524
890 2004-11-26 Hans Breuer <hans@breuer.org>
892 * dia.desktop.in : added Bug Buddy headers (as seen
893 in planner). Hopefully the automatically filling of
894 bugs is more meaningful by this.
896 * objects/custom/custom_util.c objects/standard/image.c
897 lib/plug-ins.c : getting rid of deprecated g_dirname,
898 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
899 bytes inside a block of size 44 free'd
901 * lib/persistence.c(persistence_load_list) : don't
904 * lib/diaerror.[ch] : (new file) start of better error handling
905 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
906 added new files/funcs
907 * lib/proplist.c lib/propinternals.h (prop_list_load) :
908 allow to propagate error to caller. Also set PXP_NOTSET
909 to avoid applying unset properties, fixes bug #155255
910 * lib/propobject.c lib/prop_sdarray.c : still spewing
911 g_warnings but now with context information
913 * app/filedlg.c : more absolute filenames where required
914 and strip them where we need the filename only
915 Also explicit DONT choose gnome-vfs backend cause its
916 threading appears to crash Dia - at least in GNOME build,
919 2004-11-26 Hans Breuer <hans@breuer.org>
921 * app/filedlg.c : don't use relative filenames for
922 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
924 (export_set_extension) : if we don't have a filename don't
925 use it in strrchr() to avoid crashing
927 2004-11-23 Hans Breuer <hans@breuer.org>
929 * app/app_procs.c : fixed build for the GNOME case
930 (let's rip out POPT and depend on glib-2.6, please ;-)
932 2004-11-23 Hans Breuer <hans@breuer.org>
934 * app/app_procs.c : fixed typo which broke the
935 build for HAVE_POPT case
937 2004-11-21 Hans Breuer <hans@breuer.org>
939 * app/app_procs.c : some more #if-mess, but one day
940 we should rely on GLib's 2.6 Option Parser alone
942 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
943 and height for RoundRect() - otherwise size depends on offset,
944 shorten the unique name
946 * plug-ins/python/diamodule.c : provide a unique name
947 for python filters as well
949 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
950 by using the right colors (need black background cause we
951 are tinitng it with the real color later)
953 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
954 instead of hardcoded slahes, improved portability
956 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
957 plug-in. Also added some more error reporting (e.g. no printer driver)
959 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
960 plug-ins/makefile.msc : resurrection of the gnome print renderer.
961 Kinda works (alpha quality) for export but does not print yet.
962 With bug #158972 resolved this does even work on win32 :-)
964 2004-11-07 Hans Breuer <hans@breuer.org>
966 * doc/diagram.dtd : <composite> can have <composite/>,
967 <font/> has two 'optional' atributes 'style' and 'family',
968 these are used to store new (since 0.91) font info.
969 With this changes non of the issues in bug #147431 remains.
971 * plug-ins/python/otypes.py : starting to implement an
972 'create all known object' file as ne stress test source
973 for the dtd and Dia in general.
975 2004-11-06 Hans Breuer <hans@breuer.org>
977 * app/diapsrenderer.c : don't convert to locale but to
978 "LATIN1", fixes bug #146641
980 2004-11-06 Hans Breuer <hans@breuer.org>
982 * app/diagram_tree.c : still no C99 everwhere ...
983 * lib/libdia.def : update externals
984 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
986 * app/app_procs.[hc] : declare, use ...
987 app/winmain.c : ... and implement dia_redirect_console().
988 Even though newer Gtk version don't popup a console window
989 anymore redirecting the error messages to a file in $TEMP appears
990 to be much more reasonable than just ignoring it. Fixes bug #150777
991 based on a patch from Steffen Macke
993 2004-11-06 Hans Breuer <hans@breuer.org>
995 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
996 RoundRect() for high level renderer api implementation thus
997 fixing bug #138744 reported by Lars Clausen
999 2004-11-06 Hans Breuer <hans@breuer.org>
1001 * app/prefernces.c : applied patch to make showing the diagram
1002 menubar the default (advanced users know how to switch it off)
1003 Fixes bug #150706, Steffen Macke
1005 2004-11-06 Hans Breuer <hans@breuer.org>
1007 * app/commands.c app/commands.h : added view_fullscreen_callback()
1009 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
1010 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
1011 ALso modified to allow handling of unmodified keys again (aren't
1012 there plenty of bug reports for this?
1014 2004-11-06 Hans Breuer <hans@breuer.org>
1016 * objects/UML/class_dialog.c : fixed casts for usage
1017 of dia_color_selector_set_color()
1019 * app/filedlg.c : pass a valid filenames to
1020 gtk_file_chooser_set_filename(), if we don't have a name
1021 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
1022 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
1023 assertion `local_full_path[0] == '/'' failed"
1025 2004-11-06 Lars Clausen <lars@raeder.dk>
1027 * app/properties.c (create_dialog):
1028 * app/diagram_tree_window.h:
1029 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
1030 * app/diagram_tree_menu_callbacks.c:
1031 * app/diagram_tree_window.c:
1032 * app/diagram_tree_menu.c:
1033 * app/diagram_tree.c: Changed to use persistence instead of
1034 strange hacks in preferences.
1036 * lib/persistence.h:
1037 * lib/persistence.c (persistent_list_get_glist): Don't deref null
1038 pointer. New function persistent_list_remove_all, and
1039 fixed persistent_list_remove to ... work!
1041 2004-11-05 Lars Clausen <lars@raeder.dk>
1043 * app/paginate_psprint.c (diagram_print_ps): Call
1044 diagram_print_destroy on destroy rather than delete_event. That
1045 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
1048 2004-11-02 Lars Clausen <lars@raeder.dk>
1050 * objects/UML/class.c (umlclass_load): Actually load the saved
1051 fonts and font sizes. Fixes bug #157016
1053 * configure.in: Require at least GTK+ 2.4.
1055 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
1056 finally, finally. Not quite bulletproof yet, and I need to figure
1057 out a minimum version of Gtk that doesn't spew warnings all over.
1059 * app/diagram.[ch]: diagram_set_filename with const filename.
1061 * app/sheets_dialog_callbacks.c
1062 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
1063 correctly recreated. Still something fishy with the sheet menu in
1064 the dialog after adding a new sheet. Probably the sheet name
1067 2004-11-01 Lars Clausen <lars@raeder.dk>
1069 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
1070 stmping. Now requires g_free here and there.
1072 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
1073 for remembering last sheet, better off as persistent string. Must
1074 hunt down other things like that.
1076 * app/interface.c (create_sheets): Now remembers last sheet
1077 selected again. Fixes bug #157036.
1079 2004-11-01 Hans Breuer <hans@breuer.org>
1081 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
1082 will never become NULL but only point to the next char
1083 which might indeed be \0]
1084 Use tex_escape_string() to avoid writing invalid tex,
1087 * **/* : a bunch of changes caused by trying 'make distcheck'
1088 which still fails, see Bug #144527
1090 2004-10-31 Lars Clausen <lars@raeder.dk>
1092 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
1093 floating point numbers being printed with commas. Fixes bug
1096 * app/interface.c (create_sheet_dropdown_menu): New function to
1097 create the sheet menu, and also allow recreation. Still buggy and
1098 slightly prone to magic.
1100 * objects/UML/class_dialog.c
1101 (attributes_list_selection_changed_callback): Don't try to update
1102 the widgets after they're destroyed. Fixes bug #156706 (I think).
1104 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
1105 adjustement. Fixes bug #154637
1107 * sheets/ER/Makefile.am (PIX):
1108 * sheets/GRAFCET/Makefile.am (PIX):
1109 * sheets/Jackson/Makefile.am (PIX):
1110 * sheets/Istar/Makefile.am (PIX):
1111 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
1112 XPM. Why these have their pictures in sheets rather than shapes I
1113 don't know. Fixes bug #152142.
1115 2004-10-31 Hans Breuer <hans@breuer.org>
1117 * plug-ins/pixbuf/pixbuf.c : when running non interactive
1118 Dia won't call color_init() as it assumes no display. If
1119 we have one as tested ourselve we can as well color_init()
1120 to avoid g_warnings() and produce the right collors.
1123 * app/app-procs.c : try to be a little more helpful
1124 and correct with regard to the command line options.
1125 Renamed --export-to-format to --export-filter and some
1126 other string changes
1128 2004-10-31 Hans Breuer <hans@breuer.org>
1130 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
1131 added GetDeviceCaps() dummy implementation to make
1132 'wmf' compile on Linux, too.
1134 2004-10-31 Hans Breuer <hans@breuer.org>
1136 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
1137 to finally fix the long lasting clipping issue, bug #85831
1138 Also fixed the line style issue for printing on XP and don't
1141 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
1143 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
1144 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
1146 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
1147 some info from the console (soon gone on windoze) to message_error()
1148 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
1149 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
1151 plug-ins/python/diasvg_import.py : re.compile() only once per expression
1152 and some more playing with scaling
1154 * plug-ins/python/makefile.msc : updated
1156 2004-10-30 Hans Breuer <hans@breuer.org>
1158 * shapes/Civil/civil_arrow_right.shape : removed
1159 <aspectratio type="fixed" /> thus allowing to change
1160 width and height independently, fixes #154897
1161 (Serge Robinson) by making it consistent with the
1164 2004-10-30 Hans Breuer <hans@breuer.org>
1166 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
1167 on arrow being NULL, fixes bug #143063
1169 2004-10-30 Hans Breuer <hans@breuer.org>
1171 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
1172 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
1173 removed use of chached variable DiagramData::selected_count
1174 * lib/diagramdata.h : renamed to selected_count_private
1175 (kept for binary compatibility and sanity checks)
1176 * lib/diagramdata.c : more checks on a screwed up selection list
1178 * app/diagram.c(diagram_group_selected) : don't screw up the
1179 DiagramData::selected list, was assignment of parent_list_affected(),
1180 * lib/diagramdata.c (data_select, data_unselect) : protect against
1181 multiple selections of the same object and removement of a not selected
1182 object (apparently caused by the recently added group undo stuff)
1183 together with the above this finally fixes bug #153525
1185 * app/Makefile.am : fix ./autogen.sh ->
1186 app/Makefile.am:171: blank line following trailing backslash
1188 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
1189 ddisplay_do_update_menu_sensitivity() here as well
1191 * configure.in : make the experimental state of the cairo plug-in
1194 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
1195 try to update anything if we can't find an active diagram
1196 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
1198 * configure.in : another attempt to fix bug #156116. If there is
1199 anyone with autotools knowledge reading this - help appreciated ;-)
1201 2004-10-30 Hans Breuer <hans@breuer.org>
1203 * objects/makefile.msc objects/UML/Makefile.am
1204 objects/UML/uml.c objects/UML/transition.c
1205 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
1206 Patch from Peter Allin adds statechart transitions to the UML sheet -
1207 bug #144956 - modified to not print("%s", NULL) which crashes on
1208 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
1210 2004-10-30 Hans Breuer <hans@breuer.org>
1212 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
1213 match the website anymore, i.e. sould remain unchanged.
1214 See below and lib/dia_xml.h for the reasoning
1216 * lib/libdia.def : removed dia_color_selector_get_type
1218 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
1219 (like broken PNG) and g_warning if appropriate
1221 * app/interface.c : #include "message.h"
1223 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
1224 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
1225 better to just move diaunitspinner to lib/ instead of polluting
1226 widgets.[hc] even more ;)
1227 * app/makefile.msc lib/libdia.def : updated
1229 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
1230 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
1232 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
1233 do something useful when compiled
1235 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
1236 Also some more #ifdefed backends usage.
1238 2004-10-10 Lars Clausen <lars@raeder.dk>
1240 * lib/widgets.c: Better labels for color selector menu.
1242 * app/dia-props.c (diagram_properties_respond):
1243 * app/preferences.c (prefs_get_value_from_widget): Don't assume
1244 that a dia color selector is of type DiaColorSelector:)
1246 * lib/widgets.[ch]: Color selector changed to dynamic menu.
1248 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
1251 2004-10-09 Lars Clausen <lars@raeder.dk>
1253 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
1254 arrow preview to avoid long arrow heads flipping.
1256 * lib/arrows.[ch]: Support for getting from name to arrow type,
1257 and for listing all arrow names.
1259 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
1261 * lib/libdia.def: Added new global functions.
1263 * lib/persistence.[ch]: Two of the persistent_list functions to
1264 return whether the item was found in the list.
1266 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
1267 the growing number of sheets.
1269 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
1272 2004-10-05 Lars Clausen <lars@raeder.dk>
1274 * objects/UML/association.c: Patch from Harvey Thompson
1275 <harveyandsu@yahoo.com>: Better placement of association texts.
1277 2004-10-03 Lars Clausen <lars@raeder.dk>
1279 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
1280 use the fonts in question. Can't set tooltips with the name since
1281 lib objects don't know the tool_tips thing, which is rather
1284 2004-09-19 Hans Breuer <hans@breuer.org>
1286 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
1287 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
1289 2004-09-19 Hans Breuer <hans@breuer.org>
1291 * dia.desktop.in : string changes as proposed in bug #151822
1293 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
1294 appearts not to be needed on Linux and breaks the build
1295 on OSX. Fixes bug #152970
1297 2004-09-18 Lars Clausen <lars@raeder.dk>
1299 * app/commands.c (view_show_all_callback): Add a bit of border
1300 around Ctrl-E'd diagram, for easier select and better view of edges.
1302 2004-09-19 Hans Breuer <hans@breuer.org>
1304 * app/Makefile.am : trying to fix the fix from 2004-02-15
1305 Overwriting AM_LDFLAGS still gave a automake warning and it
1306 also appeard to break linking against gtklibs in a differnt
1307 prefix. Use dia_LDFLAGS instead.
1309 * plug-ins/svg/svg-import.c : initialize 'end' before usage
1310 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
1312 * lib/diarenderer.c : don't try to draw lines which are so much
1313 degenerated that their point count became negative, fixes bug #148139
1315 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
1316 strings (NULL from g_strdup())
1318 2004-09-10 Steffen Macke <sdteffen@web.de>
1320 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
1321 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
1322 * app/create_object.c:
1323 * app/diaunitspinner.c:
1324 * app/disp_callbacks.c:
1326 * app/modify_tool.c:
1327 * lib/prop_geomtypes.c:
1328 * lib/prop_geomtypes.h: made compile with msvc
1330 2004-09-10 Lars Clausen <lars@raeder.dk>
1332 * lib/widgets.c: Insulate conversion from outside API by adding
1333 internal function to set value. Adjustment not appropriate for
1336 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
1338 2004-09-07 Lars Clausen <lars@raeder.dk>
1340 * app/diapagelayout.c: Include from widgets.c rather than
1343 2004-09-03 Lars Clausen <lars@raeder.dk>
1345 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
1346 as unit-based property testbed.
1348 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
1349 and fontsize widgets.
1351 * app/Makefile.am (dia_core_files):
1352 * app/diaunitspinner.h:
1353 * app/diaunitspinner.c:
1355 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
1356 lib/widgets.[ch], as it's used in the properties code now.
1358 2004-08-31 Steffen Macke <sdteffen@web.de>
1360 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
1362 2004-08-30 Lars Clausen <lars@raeder.dk>
1365 * app/diagram.c (diagram_remove_all_selected): Remove debugging
1370 * app/disp_callbacks.c:
1372 * app/create_object.c:
1373 * app/textedit.[ch]:
1374 * app/modify_tool.c:
1377 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
1378 current input object, multiple inputs per object, and tabbing
1381 2004-08-28 Steffen Macke <sdteffen@web.de>
1383 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
1384 allow separate installer component "Translations"
1386 2004-08-27 Akagic Amila <bono@linux.org.ba>
1388 * configure.in: Added 'bs' to ALL_LINGUAS.
1390 2004-08-26 Steffen Macke <sdteffen@web.de>
1392 * app/makefile.msc: using /subsystem:windows again
1393 * makefile.msc: updated ALL_LINGUAS
1395 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
1397 * configure.in: Add «nb» to ALL_LINGUAS.
1399 2004-08-21 Steffen Macke <sdteffen@web.de>
1401 * plug-ins/dxf/dxf-export.c: Patch from
1402 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
1404 2004-08-17 Lars Clausen <lars@raeder.dk>
1407 * dia.spec (Release):
1413 2004-08-13 Ankit Patel <ankit@redhat.com>
1415 * configure.in: Added "gu" in ALL_LINGUAS.
1417 2004-08-07 Lars Clausen <lars@raeder.dk>
1423 * dia.spec (Release):
1424 * NEWS: New release 0.94-pre6
1426 2004-08-07 Lars Clausen <lars@raeder.dk>
1428 * app/highlight.c (highlight_reset_objects): Unhighlight inside
1432 * plug-ins/shape/shape-export.c: String capitalization fix from
1433 Alan Horkan <horkana@tcd.ie>
1435 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
1436 Class object menu kinda work, rather than blow up. Doesn't do a
1437 proper undoable change yet.
1439 2004-08-06 Lars Clausen <lars@raeder.dk>
1441 * app/filedlg.c (file_save_as_callback): Don't remove related
1442 dialogs from the NULL diagram.
1444 2004-08-02 Lars Clausen <lars@raeder.dk>
1449 * dia.spec (Release):
1450 * NEWS: Pre5 with leak fix.
1452 * lib/font.c (dia_font_build_layout): Don't try to save an
1453 allocation of LayoutCacheItem if it breaks layout cache hash.
1454 Also make hash function correct, remove explicit height entry
1455 (it's in pfd), and make sure things are correctly unreffed.
1456 Finally fixes #148141.
1458 * lib/text.c (text_set_attributes, text_set_font): Safely unref
1459 when changing font, and actually set the new font in
1461 (text_get_attributes): Ref copied font.
1463 2004-08-01 Lars Clausen <lars@raeder.dk>
1467 * dia.spec (Release):
1470 * doc/en/dia.xml: Prerelease 4.
1472 * lib/font.c (dia_font_build_layout): Better comparision and
1473 freeing of font cache.
1475 2004-07-31 Lars Clausen <lars@raeder.dk>
1477 * lib/font.c (dia_font_build_layout): Faster update to avoid
1480 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
1481 Correctly initialize export filter variable.
1483 2004-07-25 Lars Clausen <lars@raeder.dk>
1485 * dia.spec (Release):
1490 * doc/pl/dia.xml: Pre3 coming out.
1492 * lib/diarenderer.c (draw_polygon):
1493 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
1494 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
1495 rather than O (letter), and assert num_points > 1 rather than the
1498 * app/recent_files.c:
1501 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
1502 Make filenames conform to filesystem encoding.
1504 * RDP/.cvsignore: Added standard ignore.
1506 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
1507 last entry patch-panel, too.
1510 * shapes/Circuit/*.png:
1511 * shapes/Civil/*.png:
1512 * shapes/Contact/*.png:
1513 * shapes/Electric/*.png:
1515 * shapes/Pneumatic/*.png:
1517 * shapes/flowchart/*.png:
1518 * shapes/jigsaw/*.png:
1519 * shapes/network/*.png:
1520 * shapes/sybase/*.png:
1522 * dia_gnome_icon_large.png:
1523 * doc/pl/graphics/*.png: Set -kb for PNGs.
1525 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
1527 2004-07-22 Lars Clausen <lars@raeder.dk>
1533 * dia.spec (Release):
1534 * configure.in: Update to version 0.94-pre2.
1536 * app/load_save.c (diagram_data_write_doc): Use new namespace
1539 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
1540 hidden objects properties.
1542 * objects/standard/line.c: Remove halffinished line gap box from
1545 * app/paginate_psprint.c:
1546 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
1547 Immidi): Close export and print dialog with diagram as well.
1550 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
1551 borelli): Remove deprecated stuff (#137693)
1553 * app/dia-props.c (create_diagram_properties_dialog): Patch from
1554 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
1557 2004-07-21 Ray Strode <rstrode@redhat.com>
1559 * dia/dia.desktop.in: Add MimeType line to desktop file
1562 2004-07-18 Hans Breuer <hans@breuer.org>
1564 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
1565 sheets/UML/*.png : icons in png format
1566 Partial fixup of stuff broken with the following comment:
1567 "7 days : xpm->png, namespace fix, first rotation bits."
1569 * app/load_save.c(read_objects) : don't add objects to the layer.
1570 This function is called recursively and only the topmost objects
1571 belong in the layers object list. Fixes bug #145417 and is the
1572 the real fix for bug #142480
1574 * app/app_procs.c : make the --size hack even uglier, but work again
1576 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
1577 but g_free() what is returned by g_build_filename()
1579 * objects/custom/custom_object.c(custom_destroy) : handle all enum
1580 values in switch to get rid of the warning
1582 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
1583 of setlocale()/strtod()
1584 * lib/dia_svg.c : dito
1585 * lib/dia_xml.c : almost
1587 * plug-ins/python/group_props.py : use the string representation of
1588 value to ensure "unique values". If the strings would not be different
1589 the user cann't see the difference either
1591 2004-07-17 Lars Clausen <lars@raeder.dk>
1593 * lib/persistence.h: Have "void" in prototypes (#142663)
1595 * lib/widgets.c (dia_font_selector_init): Better string handling
1598 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
1600 * objects/standard/image.c (image_load): Use path of diagram
1601 rather than running directory as base for image file place.
1603 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
1606 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
1607 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
1609 * Re-added new sample diagrams binarily.
1611 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
1613 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
1614 Disabled keyboard accels when dragging an object.
1616 2004-07-14 Lars Clausen <lars@raeder.dk>
1618 * app/grid.c (snap_to_grid): Use diagrams grid setting to
1619 determine hex grid snap.
1621 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
1623 * app/interface.h: Avoid multiply defined symbols (#147396)
1625 2004-07-10 Lars Clausen <lars@raeder.dk>
1627 * app/sheets_dialog_callbacks.c (write_user_sheet):
1628 * lib/sheet.c (load_register_sheet): Don't introduce double
1629 slashes in namespace.
1631 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
1632 old diagrams, or XSLT will barf all over.
1634 * shapes/RDP/place.shape:
1635 * shapes/RDP/transition.shape:
1636 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
1637 shapes to use those.
1639 2004-07-07 Lars Clausen <lars@raeder.dk>
1642 * doc/{en,pl}/dia.xml:
1645 * NEWS: First prerelease of version 0.94. Now with release
1646 versions in a branch and main devel in the trunk.
1648 2004-07-05 Hans Breuer <hans@breuer.org>
1650 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
1651 -std=c89. Mostly //-comments and M_PI -> G_PI
1652 [Istar, Jackson, KAOS were removed from build cause they
1653 simply have *too* much C++ comments ;]
1654 * object/UML/association.c : use g_strdup() not plain strdup()
1655 * app/paginate_psprint.c : avoid storage size of `pipe_action'
1656 isn't known with more portable signal code
1658 * app/app_procs.c : don't call gtk_init() if just --version
1659 is requested (bug #144321, Vladimir Kondratiev)
1661 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
1662 DiaFont* if not NULL
1663 * objects/UML/class.c : moved fill_in_fontdata() to
1664 umlclass_load() to avoid such trouble, though unsure if
1665 this really is an improvement...
1667 * shapes/network/makefile.am : patch-panel added here too
1669 2004-07-04 Hans Breuer <hans@breuer.org>
1671 * sheets/network.sheet.in shapes/network/patch-panel.xpm
1672 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
1673 fixes bug #136629, James McDonald
1675 2004-07-04 Hans Breuer <hans@breuer.org>
1677 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
1678 lib/object_defaults.c : revert changing of Dia's XML namespace
1679 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
1680 about its purpose and relation to real world urls.
1682 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
1683 added comment about when to do so
1684 [Should have been long time ago and probably multiple times
1685 to avoid crashing on older plug-ins]
1686 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
1687 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
1689 * lib/object.c objects/UML/class.c : there are still compilers not
1690 supporting C99 and other GCCISMs like allocating dynamic sized arrays
1692 * objects/UML/class.h : there is a differnce between a list pointer
1693 and a list pointer pointer. We and GLib want the former.
1695 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
1696 if Gtk is initialized. Using gdk_display_get_default () avoids the
1697 app/* dependency and is also closer to the requirements of the
1700 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
1701 some #ifdefed support for Cairo backends not public available yet.
1703 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
1704 windoze platform supports them. This should fix bug #109818, at
1705 least for the majority running NT or above ...
1706 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
1708 * objects/makefile.msc : build Istar, Jackson and Kaos
1710 * objects/UML/class.c(umlclass_load) : don't wrap by default to
1711 keep old diagrams as they were - instead of this nice new effect ;-)
1712 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
1714 * objects/UML/class.c : mark for translation _("Wrap ...
1716 * objects/UML/class.c : more correct types, also some default properties
1717 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
1719 * objects/UML/activity.c : removed a leftover from the
1720 use-localization-for-font-substitution-hack
1722 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
1723 'cvs admin -kb *.png' PNG files should already be *added* as binary,
1724 otherwise they are not readable on line-end-converting-platforms
1726 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
1727 filter_get_by_name()
1729 * plug-ins/python/pydia-property.c : some more g_warnings for
1730 not implemented conversions
1732 * plug-ins/python/group_props.py : ensure unique property values
1733 at the right place. Now something like :
1734 - load an old UML class diagram
1735 - change one of the classes to wrap operations
1736 - select all classes (/Select/Same Type)
1737 - /Dialogs/Group Properties : check wrap_operations, select '1'
1738 - Ok, works like a charm :-)
1740 2004-07-04 Lars Clausen <lars@raeder.dk>
1742 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
1745 2004-07-03 Lars Clausen <lars@raeder.dk>
1747 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
1748 <LAV@VL3143.spb.edu>: Fixes console output problems and some
1749 interactiveness problems.
1751 2004-07-02 Lars Clausen <lars@reader.dk>
1753 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
1754 app isn't interactive.
1756 2004-07-01 Lars Clausen <lars@raeder.dk>
1758 * plug-ins/cairo/diacairo.c: Add init of last field of filter
1759 struct to remove crash.
1761 * sheets/Makefile.am (sheet_in_files):
1762 * shapes/Makefile.am:
1763 * sheets/ChemEng.sheet.in:
1764 * shapes/ChemEng/Makefile.am:
1766 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
1767 Chemical engineering shapes.
1769 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
1770 multiple arguments when using devel script.
1772 * app/display.c (new_display):
1774 * lib/diagramdata.c (new_diagram_data):
1775 * lib/diagramdata.h:
1776 * app/preferences.h:
1777 * app/preferences.c:
1780 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
1781 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
1784 * doc/pl/authors.xml:
1785 * doc/en/authors.xml:
1786 * lib/object_defaults.c (dia_object_defaults_save):
1787 * readme.win32 (BTW):
1788 * lib/persistence.c (persistence_save):
1789 * app/load_save.c (diagram_data_write_doc):
1790 * app/commands.c (help_about_callback):
1791 * README: Fix links to home page.
1794 * app/load_save.c (diagram_data_load):
1795 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
1796 loading, and guard against them when fonting.
1798 * lib/diarenderer.c (draw_rounded_polyline): Patch from
1799 anthonym@overture.com: Make limited rounding a corner-specific
1800 rendering-only thing.
1802 2004-06-30 Lars Clausen <lars@raeder.dk>
1804 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
1805 adjustment: If you can't fix it, at least don't change it.
1807 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
1808 code instead of individual code in here.
1810 2004-06-29 Lars Clausen <lars@raeder.dk>
1812 * objects/UML/association.c: Patch from Kiran
1813 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
1818 * lib/diarenderer.c (draw_rounded_polyline):
1819 * objects/standard/polyline.c (polyline_draw):
1820 * objects/standard/zigzagline.c (zigzagline_draw):
1821 Patch from anthonym@overture.com: Add rounded polylines.
1823 2004-06-27 Lars Clausen <lars@raeder.dk>
1825 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
1827 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
1828 free family list before taking out the pointer we need. Also set
1829 the entry_nr correctly so we get the menu set up right.
1831 2004-06-23 Lars Clausen <lars@raeder.dk>
1833 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
1834 images at the right place.
1836 * objects/Istar/actor.c
1837 * objects/Istar/goal.c
1838 * objects/Istar/istar.c
1839 * objects/Istar/istar.h
1840 * objects/Istar/link.c
1841 * objects/Istar/other.c
1842 * objects/Jackson/domain.c
1843 * objects/Jackson/jackson.c
1844 * objects/Jackson/jackson.h
1845 * objects/Jackson/phenomenon.c
1846 * objects/Jackson/requirement.c
1847 * objects/KAOS/goal.c
1848 * objects/KAOS/kaos.c
1849 * objects/KAOS/kaos.h
1850 * objects/KAOS/metaandorrel.c
1851 * objects/KAOS/metabinrel.c
1852 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
1853 <cp@cetic.be>: Fix instability issues caused by not returning NULL
1854 in *_move_handle and *_move. Also improved the headers with
1855 correct (c) information.
1857 2004-06-22 Lars Clausen <lars@raeder.dk>
1859 * objects/KAOS/goal.c:
1860 * objects/KAOS/other.c:
1861 * objects/Istar/actor.c:
1862 * objects/Istar/goal.c:
1863 * objects/Istar/other.c:
1864 * objects/Jackson/domain.c:
1865 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
1866 <cp@cetic.be>: Fix resize issues.
1868 * app/filedlg.c (file_dialog_hide): Patch from Kiran
1869 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
1870 related dialog. #129520.
1872 * app/dia-props.c (diagram_properties_show): Patch from Kiran
1873 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
1874 a child of its diagram. #129520.
1876 * objects/UML/association.c (association_load): Patch from Kiran
1877 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
1878 text placement. #118313.
1880 2004-06-17 Lars Clausen <lars@raeder.dk>
1882 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
1884 * Makefile.am: Make THANKS only be generated by maintainers.
1886 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
1889 * configure.in: Added three missing Makefiles.
1893 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
1894 diagram-related (save) dialog when closing diagram. To be
1895 extended to other dialogs.
1897 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
1899 * samples/Istar.dia:
1900 * samples/Jackson.dia:
1902 * sheets/Istar.sheet.in:
1903 * sheets/Jackson.sheet.in:
1904 * sheets/KAOS.sheet.in:
1909 * objects/Jackson/*:
1912 * objects/Makefile.am (SUBDIRS):
1913 * sheets/Makefile.am (SUBDIRS):
1914 * samples/Makefile.am: Additions from Christophe Ponsard
1915 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
1918 2004-06-12 Lars Clausen <lars@raeder.dk>
1921 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
1923 * lib/font.h: Toning down comments a bit:)
1925 * lib/font.c (dia_font_build_layout): Playing around with DPI
1927 * objects/UML/association.c (association_load): Avoid crashes on
1930 * objects/UML/association.c: Patch from kimmidi@novell.com:
1931 Improve placement of labels when vertical. Part fix of #118313
1933 * lib/object.c (dia_object_is_selected): Grouped objects are not
1934 selected, only the group itself. Thus, don't crash when grouping
1937 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
1938 on how to represent empty strings. Fixes #143639.
1940 * lib/object.c (dia_object_is_selected): Added comment answer.
1942 2004-06-12 Hans Breuer <hans@breuer.org>
1944 * lib/diagramdata.c lib/object.c : deal with grouped objects
1945 not knowing their parent_layer, i.e. avoid crashing in
1946 dia_object_is_selected() via group_draw() [ Triggered by
1947 playing with the Visio generated svg from bug #143455 ]
1949 * plug-ins/python/diasvg_import.py : started to implement
1950 transformation="translate(...)" and <style/> handling. Also
1951 use some other completely bogus values for em/ex scaling
1953 2004-06-08 Lars Clausen <lars@raeder.dk>
1955 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
1957 2004-06-07 Lars Clausen <lars@raeder.dk>
1959 * app/layer_dialog.c (layer_dialog_set_diagram):
1960 * app/display.c: Layer widget crash more properly dealt with in
1963 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
1964 widget deselect was called during destroy, but called
1965 ddisplay_flush, leading to a new display timeout after renderer
1968 * lib/widgets.c (dia_toggle_button_destroy):
1969 * app/recent_files.c (recent_file_menuitem_create):
1970 * lib/persistence.c (persistence_save_list):
1971 * app/commands.c (edit_delete_callback):
1972 * lib/object_defaults.c (dia_object_defaults_save):
1973 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
1976 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
1979 * lib/diagramdata.c (new_layer): Initialize connectibility.
1981 * app/display.c (ddisplay_obj_render):
1982 * app/diagram.c (diagram_find_closest_connectionpoint): Take
1983 connectibility into account.
1985 * app/layer_dialog.h (struct _DiaLayerWidget):
1986 * app/layer_dialog.c:
1987 Connectible toggle updates, now works fairly well.
1989 * app/select.c (select_transitive_callback): Make sure we're only
1990 selecting in the same layer.
1992 2004-06-04 Lars Clausen <lars@raeder.dk>
1994 * app/pixmaps/Makefile.am: Also install connectable images.
1996 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
1997 layer toggles from layer itself. Also update diagram correctly
1998 for visibility. Still need updates for connectivity behaviour.
2000 2004-06-03 Hans Breuer <hans@breuer.org>
2002 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
2004 * lib/diagdkrenderer.c(set_linejoin) : actually set
2005 join_style not cap_style
2006 (set_dashes): with the correct number of dashes
2008 2004-06-03 Lars Clausen <lars@raeder.dk>
2010 * app/modify_tool.c (click_select_object):
2011 * lib/text.c (text_set_cursor):
2012 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
2014 2004-05-31 Hans Breuer <hans@breuer.org>
2016 * lib/object_defaults.c : don't 'failed to load external
2017 entity "NULL"' when the defaults file does not exist,
2018 bug #108764 [again: somehow this got lost]
2020 * app/paginate_gdiprint.cpp : don guess the WMF export
2021 filter used for printing but find it by unique name.
2022 Also update for export_func renaming
2023 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
2024 provide some unique names
2026 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
2027 app/select.c : fix bug #140789 by always checking if there
2028 still is an active diagram before accessing it
2030 * app/defaults.c app/properties.c : user visible string should
2031 not read DiaObject but stay as "Object defaults/properties"
2033 * app/app_procs.c : reduce the hack to pass --size to the
2034 export via user_data to the only filter supporting it. Other
2035 filters would crash on it or do worse ;(
2037 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
2039 2004-05-31 Lars Clausen <lars@raeder.dk>
2042 * lib/widgets.c: Use GtkType rather than guint for
2043 dia_size_selector_get_type.
2045 2004-05-29 Lars Clausen <lars@raeder.dk>
2047 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
2048 that it matches the screen output for selfoverlapping polygons and
2051 2004-05-28 Hans Breuer <hans@breuer.org>
2053 * app/load_save.c : ignore empty groups on load and don't
2054 write empty groups while saving
2055 * lib/group.h (group_update_data): there is no first object
2056 in empty groups and they probably don't need an update at
2057 all. Maybe the shold just not exist ?
2059 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
2060 text positioning as well as drawing of images with alpha
2062 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
2063 HAVE_WINDOWS_H or G_OS_WIN32 is defined
2065 2004-05-28 Lars Clausen <lars@raeder.dk>
2067 * app/pixmaps/Makefile.am (imagedir):
2068 * app/pixmaps/visible.png:
2069 * app/pixmaps/visible-empty.png: New images for the visibility
2070 button in the layer dialog.
2072 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
2073 more border around the button. Still some left when hovering the
2074 mouse or selecting, and the grey background is annoying.
2076 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
2077 visibility connector.
2079 2004-05-26 Lars Clausen <lars@raeder.dk>
2081 * configure.in (DB2MAN): Better check for db2man docbook place.
2082 Need something even better.
2084 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
2086 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2087 extraeneous borders.
2090 * dia_gnome_icon.png:
2091 * samples/render-test.dia: Rendering test from Hans.
2093 2004-05-24 Hans Breuer <hans@breuer.org>
2095 * lib/filter.h : renamed DiaExportFilter::export to
2096 _DiaExportFilter::export_func (should not use c++
2097 keywords (g++ specifc ?) in headers. Same for import
2098 out of pure symmetry reasons
2099 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
2100 app/diagram.c app/filedlg.c : reflect functions renaming
2102 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
2103 under *NIX, too. [If you want something done, do it yourself ;-]
2104 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
2105 with wmf.cpp's GDI usage
2106 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
2107 [For the moment it does not much more than compiling, i.e.
2108 the produced WMF files are invalid, if not created on windoze.]
2110 * configure.in : check for C++ to compile plug-in/wmf
2112 * objects/GRAFCET/boolequation.c : looks like fixing
2113 another leak (untested)
2115 2004-05-23 Hans Breuer <hans@breuer.org>
2117 * acinclude.m4 : another attempt to fix
2118 bug #142032 (still not sure it's the right one,
2119 but works for me(tm), which the other does not ;)
2121 * plug-ins/cairo/Makefile.am
2122 plug-ins/Makefile.am
2123 configure.in : support building the new cairo
2124 plug-in, if given --with-cairo and the cairo
2125 packages are found, see http://cairographics.org
2126 and also http://hans.breuer.org/dia/dia-cairo.htm
2128 * plug-ins/cairo/diacairo.c : make it compile
2129 with DEBUG_CAIRO defined, too.
2131 2004-05-23 Hans Breuer <hans@breuer.org>
2133 * plug-ins/cairo/Makefile.am : initial attempt
2135 * plug-ins/cairo/diacairo.c : a new exporter based on
2136 Cairo http://cairographics.org rendering api. Currently
2137 it just can export PNG and PS but one day it might get
2138 PDF and more almost for free. [It is not yet included
2139 in the *NIX build system due to lack of auto* magic.]
2141 * plug-ins/pixbuf/pixbuf.c : always register the export
2142 filter part. If the user does not want it it can be
2143 disabled by File/Plugins or explicit selected the other
2144 one in the Export Formats List
2146 2004-05-23 Hans Breuer <hans@breuer.org>
2148 * lib/dia_dirs.c : #include "message.h"
2149 lib/widgets.c : #include "persistence.h"
2150 lib/widgets.c(dia_font_selector_init) : still not C99
2151 lib/persitence.h : removed unimplemented prototype
2152 lib/persitence.c(persistence_load_list) : still not C99
2153 app/create_object.c : #include "highlight.h"
2154 app/layer_dialog.c : #include "widgets.h"
2155 app/modify_tool.c : prototype functions before usage
2156 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
2157 [otherwise one will have a hard time to make C++ compile ;]
2158 lib/dia_dirs.c : #include "message.h"
2159 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
2162 * plug-ins/xfig/xfig-import.c : dont initialize an int with
2165 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
2166 as documented, i.e. _not_ copying. Plugs a memory leak in
2167 lib/dialibartrenderer.c
2169 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
2170 to radius to more of a clue what it is representing
2172 * */makefile.msc lib/libdia.def : updated
2174 ChangeLog : fixed some date copy&paste bug
2176 2004-05-21 Lars Clausen <lars@raeder.dk>
2178 * NEWS: Release tag.
2180 * config.h.win32: Now 0.93+cvs
2182 * RELEASE-PROCESS: Update with new info about release branches.
2184 * Many files: Moved devel branch back into main trunk. Should
2185 have been done in the opposite way, with release in a branch.
2187 2004-05-20 Hans Breuer <hans@breuer.org>
2189 * acinclude.m4 : disable setting of PYTHON_PREFIX
2190 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
2191 as workaround for bug #142032 (the real fix would
2192 involve some auto* knowledge which I don't have
2195 * plug-ins/python/Makefile.am : more python
2196 plug-ins to be installed (especially svg import,
2197 but also 'simple scale' should be useable
2200 * plug-ins/python/scascale.py : update display
2201 after modifying selected objects
2203 * plug-ins/python/diasvg_import.py : initialize
2206 2004-05-18 Lars Clausen <lars@raeder.dk>
2208 * app/diagram_tree.c (select_node): Use
2209 diagram_remove_all_selected to kill selected list.
2211 * lib/font.c: Set language when using a different context.
2213 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
2214 and removed ctype include (#142661).
2216 * lib/paper.c (get_default_paper): Changed isalnum to
2217 g_ascii_isalnum and removed ctype include. (#142661)
2219 * objects/custom/shape_info.c:
2221 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
2223 2004-05-17 Hans Breuer <hans@breuer.org>
2225 * lib/object_defaults.c : don't 'failed to load external
2226 entity "NULL"' when the defaults file does not exist,
2229 * lib/widgets.c : fixed possible menu leak
2230 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
2231 avoid finalization of floating references, bug #142307
2233 2004-05-15 Lars Clausen <lars@raeder.dk>
2235 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
2236 fonts better (#138655)
2238 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
2240 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
2241 dist, xml, dbk and man. Also the sub-xml files. (#142098)
2243 * Makefile.am (CLEANFILES):
2244 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
2245 translation-reports, they are generated automagically. THANKS
2246 file not considered locally generated, so is not locally
2249 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
2251 * lib/diaarrowchooser.c:
2252 * lib/prop_attr.c: Fixing naming for arrowselector.
2254 * objects/UML/object.c (objet_type): Oops, little too aggressive
2255 with the DiaObject thing here:)
2257 * objects/custom/shape_info.c (parse_svg_node): Use
2258 g_ascii_isdigit instead of isdigit.
2260 * app/diaunitspinner.c (dia_unit_spinner_update):
2261 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
2262 instead of isspace avoids char subscript issues (#142467).
2264 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
2265 return value conflict.
2267 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
2268 value conflict. Also improved signature. (#142466)
2270 * app/load_save.c (diagram_data_load): Don't overwrite the list in
2271 the layer, but instead free the returned list (#142480)
2273 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
2274 for the grid widget.
2276 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
2278 * configure.in (DB2MAN): Currently just check for two known
2279 positions for the docbook xsl. Don't know a generic way to find
2280 this info. Ought to add an option for it, but then it's really
2281 only required for maintainers, I think. Maybe.
2283 * app/display.c (update_snap_grid_status): Remove nasty image
2284 toggling code not require for grid toggle button anymore. (#142475)
2286 * app/interface.c (create_display_shell): Use
2287 dia_toggle_button_new_with_images to create grid toggle button.
2288 Much nicer. (#142475)
2290 * app/menus.c (menus_initialize_updatable_items): Free the string
2291 along with the GString. (#142475)
2293 * lib/intl.c (free_alias_table): Free hash table entries in a
2294 proper way, avoiding duplicate frees. (#142475)
2296 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
2297 not put in the hash (avoid reading freed memory). (#142476)
2299 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
2301 (dia_font_selector_get_family_from_name): Stop leaking
2304 2004-05-14 Lars Clausen <lars@raeder.dk>
2306 * Transfer of fixes from release branch. Not the prettiest way to
2307 do it, this should be done during release, not afterwards.
2309 Tomasz Kłoczko <kloczek@pld.org.pl>:
2311 * acinclude.m4: minor fixes (added missing [] quotation).
2313 Lars Clausen <lars@raeder.dk>:
2315 * app/interface.c (toolbox_delete):
2316 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
2317 cancels quit due to modified diagrams.
2319 Samúel Jón Gunnarsson <sammi@techattack.nu>:
2321 * is.po: Added "is" to ALL_LINGUAS.
2323 Lars Clausen <lars@raeder.dk>:
2325 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
2327 Hans Breuer <hans@breuer.org>:
2329 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
2330 burden should be shared and not be win32 only ;) [this time
2331 build was broken by adding GtkType to widget.h]
2333 * objects/standard/box.c objects/standard/ellipse.c :
2334 for code clarification compare (obj->aspect != FREE_ASPECT)
2335 and not (obj->aspect); no binary effect.
2337 * app/paginate_psprint.c : don't leak printcmd
2339 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
2340 standard C requires variables to be declared at the beginning of
2341 a block, also there is no fabsf() with msvc
2343 * app/win32print.[ch] : make win32_printer_close() return an
2344 error code, it's used as pclose replacement
2346 Lars Clausen <lars@raeder.dk>:
2348 * RELEASE-PROCESS: Mention PATCH keyword in release process.
2350 2004-05-06 Lars Clausen <lars@raeder.dk>
2352 * lib/widgets.[ch]: Utility function to make a widget with two
2353 images (selected and non-selected).
2355 * lib/diagramdata.h: Renamed selectable to connectable.
2356 Selectable will come later.
2359 * app/pixmaps/Makefile.am (imagedir):
2360 * app/pixmaps/connectable.png:
2361 * app/pixmaps/connectable-empty.png: New images for the
2362 selectability widget. Proper installation, too.
2364 * app/layer_dialog.[ch]: Adding new button showing connectability
2365 status. Much cleaner way of doing the button, but some problems
2366 with the item getting selected
2368 * lib/widgets.h: Reminder of how to install images for use by
2369 dia_get_image_from_file.
2371 2004-05-05 Lars Clausen <lars@raeder.dk>
2373 * objects/network/Makefile.am:
2374 * objects/network/pixmaps/radiocell.xpm:
2375 * objects/network/pixmaps/basestation.xpm:
2376 * objects/network/network.c:
2377 * objects/network/basestation.c:
2378 * objects/network/radiocell.c:
2379 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
2382 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
2383 Backslash arrow head.
2385 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
2386 Notify takes care. Should maybe use that more.
2388 * lib/diagramdata.[ch]:
2389 * app/filedlg.c (file_export_ok_callback):
2390 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
2392 * app/dia-props.c (diagram_properties_respond):
2393 * app/diagram.c (diagram_set_modified):
2395 * app/disp_callbacks.c:
2397 * app/load_save.c (diagram_save):
2398 Better handling of undo and modified status -- only diagram
2399 properties and page setup explicitly set modified status, all
2400 other important changes should be done through the undo stack
2403 2004-05-04 Lars Clausen <lars@raeder.dk>
2405 * app/app_procs.c (app_init): Consistently open a new diagram if
2406 none specified, with standard name Diagram1.dia.
2408 * app/layer_dialog.c:
2409 * app/diagram.c (diagram_finalize):
2410 * app/commands.c (dialogs_layers_callback):
2411 * app/filedlg.c (file_export_ok_callback):
2412 * app/app_procs.c (app_exit):
2413 * app/display.c (display_set_active):
2414 * app/interface.c (dia_dnd_file_drag_data_received):
2415 * app/recent_files.c:
2416 Undone attempt at unifying the multi-diagram windows (like
2417 layers). It broke the layers and didn't make much sense for the
2418 diagram properties dialog anyway.
2422 * lib/diagramdata.c:
2424 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
2425 many subclasses have to be fixed. Fixed remaining
2426 Object/ObjectType renaming issues.
2428 2004-05-02 Lars Clausen <lars@raeder.dk>
2430 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
2431 having to make all the children objects conform to
2432 GObject style at once? Warning! Does not compile right now.
2434 * many, many files: Rename Object to DiaObject in preparation for
2435 making it a GObject.
2437 * app/diagram.[ch]: Turn diagram into a real GObject.
2440 * app/filedlg.c: Correctly ref and unref diagram.
2442 * lib/diagramdata.h: Starting to turn it into a GObject as well.
2444 2004-05-02 Lars Clausen <lars@raeder.dk>
2446 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
2449 * app/dia-props.c: Undo the attempt at making it really
2450 multi-diagram, now going for a one-diagram dialog.
2452 2004-04-30 Lars Clausen <lars@raeder.dk>
2454 * app/undo.c: Undoing broken undo stuff for diagram properties and
2455 page setup. Shouldn't be mixed into undo at all.
2457 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
2458 function to avoid in particular the grid crawling.
2460 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
2461 to allow aligning dashes, so they don't crawl.
2463 2004-04-28 Lars Clausen <lars@raeder.dk>
2465 * app/Makefile.am: New files diacanvas.[ch]
2467 * app/interface.c (create_display_shell): Use new diacanvas that
2468 allows placing widgets on canvas, for text edit.
2471 Early work towards rotation. No implementation yet.
2473 * app/layer_dialog.c (undo_layer):
2474 * objects/network/bus.c (bus_create_change):
2475 * objects/standard/box.c (aspect_create_change):
2476 * objects/standard/ellipse.c (aspect_create_change):
2477 Use g_new0 for change struct.
2479 * app/undo.c (diagram_change_apply_or_revert):
2480 Support for undo of diagram properties and page setup.
2482 * app/disp_callbacks.c (ddisplay_canvas_events):
2484 * lib/diagramdata.h:
2485 * app/modify_tool.c (click_select_object):
2486 * lib/text.c (text_register_editable):
2487 Starting work on new text editing model. Guarded by #ifdef so
2490 2004-04-07 Lars Clausen <lars@raeder.dk>
2492 * app/recent_files.c (open_recent_file_callback):
2493 * app/interface.c (origin_button_press):
2494 * app/filedlg.c (file_open_ok_callback):
2497 * app/commands.c (dialogs_layers_callback): Using new
2498 diagram_set_current() function to ensure auxilliary windows are
2501 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
2502 menu now borken. *sniff*
2504 * app/dia-props.c: Diagram properties window attempted
2505 persistentified. Trying to make more like layer dialog (since it
2506 already changes when the diagram changes), but some things still
2509 2004-04-06 Lars Clausen <lars@raeder.dk>
2511 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
2512 * lib/attributes.c (attributes_set_default_line_style):
2513 * app/interface.c (create_lineprops_area):
2514 Make line style persistent as well. Added function to directly
2515 set the style and dashlength of a dialinechooser.
2517 2004-04-03 Lars Clausen <lars@raeder.dk>
2519 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
2520 Copy the ellipse extra handle correctly.
2522 * objects/standard/box.c (box_move_handle): Move definitions
2523 according to bug #138925.
2525 2004-04-02 Lars Clausen <lars@raeder.dk>
2527 * app/recent_files.c: Use absolute name for recent files list.
2529 * lib/attributes.c: Set start and end arrow types, correctly.
2531 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
2534 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
2536 * app/interface.c (create_lineprops_area): Set persistently stored
2539 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
2542 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
2543 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
2545 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
2546 with what xfig does. Text now converted from latin-1 to utf-8
2547 (latin-1, since that's what xfig seems to use. Would like to see
2548 examples of non-latin-1 figs). String case problems fixed.
2550 2004-04-01 Lars Clausen <lars@raeder.dk>
2553 * app/interface.c: Default arrows now stored persistently, too.
2555 * lib/arrows.[ch]: New function to get arrow type from name.
2557 * app/color_area.c (color_area_create):
2559 * app/linewidth_area.c: Also persistent colors and line width.
2560 That was easy. Arrows and line style will take a bit more work,
2563 2004-04-01 Lars Clausen <lars@raeder.dk>
2565 * app/preferences.c: All preferences are now
2566 handled by persistence, old prefs load and store code is gone.
2568 * lib/persistence.[ch]: Added string and color persistents. This is
2569 a different string from the one used in the printer dialog, that
2570 one has a GtkEntry attached -- may want to make that one an
2571 encapsulation of this one or something.
2573 2004-03-31 Lars Clausen <lars@raeder.dk>
2575 * app/app_procs.c: Do persistence before prefs. Prefs are to be
2578 * lib/persistence.[ch]:
2579 * app/preferences.c: Adding persistence for integers, reals,
2580 booleans. Fixed stupid list bug. Test persistence for prefs.
2582 2004-03-30 Lars Clausen <lars@raeder.dk>
2584 * app/recent_files.c:
2585 Debugging of deallocation.
2588 Font menu now uses persistence. Ordering needs fixing, or it must
2592 * lib/Makefile.am (libdia_la_SOURCES):
2593 * app/Makefile.am (dia_core_files):
2594 * app/persistence.[ch]:
2595 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
2596 number of fixes, including multiple entries now being read
2597 properly. Still some oddity about the persistent list having the
2598 role as first entry (which makes the font menu crash after a few
2601 2004-03-26 Lars Clausen <lars@raeder.dk>
2603 * app/persistence.c:
2604 * app/recent_files.[ch]: Redoing the recent-files list using
2605 persistence, reducing code by about 50%. Still a problem when
2606 selecting an item from the menu -- possibly it doesn't like the
2607 menu being destroyed while in the callback?
2609 2004-03-25 Lars Clausen <lars@raeder.dk>
2611 * app/persistence.c (persistence_load_string): Missing semicolon?!?
2613 2004-03-24 Lars Clausen <lars@raeder.dk>
2617 * app/persistence.[ch]:
2618 * app/paginate_psprint.c (diagram_print_ps): New type of data can
2619 be stored persistently: Strings. Only the printer command/file
2620 go in here now, but things like creator, organization, diagram
2621 comments etc could also be handled this way.
2623 * objects/standard/beziergon.c (beziergon_draw): Avoid control
2624 lines when the object is not selected.
2626 2004-03-23 Lars Clausen <lars@raeder.dk>
2628 * lib/connectionpoint.h:
2629 * app/load_save.c: Allow connection points to have names, and
2630 handle that in load/store.
2632 * lib/dialibartrenderer.c: Better highlighting for text.
2634 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
2635 * lib/diagdkrenderer.c: Better highlighting for all, using same
2636 principles as libart highlighter.
2638 2004-03-22 Lars Clausen <lars@raeder.dk>
2640 * lib/dialibartrenderer.[ch]:
2641 * lib/diagdkrenderer.c:
2647 * app/modify_tool.c:
2648 * app/create_object.c:
2649 * app/highlight.[ch]:
2650 Added simple object highlighting. In GDK rendering, highlights
2651 the bbox, in libart highlights the outline of the object (except
2654 2004-03-22 Lars Clausen <lars@raeder.dk>
2656 * RELEASE-PROCESS: Added info on how to do a branch for
2657 development during release process.
2659 2004-03-20 Lars Clausen <lars@raeder.dk>
2661 * RELEASE-PROCESS: Mention PATCH keyword in release process.
2663 2004-03-19 Lars Clausen <lars@raeder.dk>
2665 * xmldocs.make: Fixed apparent uninstall error.
2668 * doc/en/dia-manual.xml:
2669 * doc/pl/dia-manual.xml:
2672 * NEWS: Version 0.93-pre1.
2674 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
2675 borelli): Remove some deprecated stuff.
2677 2004-03-18 Lars Clausen <lars@raeder.dk>
2679 * Makefile.am: Try better uninstall thing for scrollkeeper.
2681 * objects/ER/entity.c:
2682 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
2683 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
2684 1, 1 exactly, as well as associative ER entities.
2686 2004-03-17 Lars Clausen <lars@raeder.dk>
2688 * Makefile.am: Make distcheck not complain about scrollkeeper
2689 problems (as per advice from James Henstridge).
2691 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
2692 standard installation.
2694 * objects/standard/ellipse.c: Better strings for object menu.
2696 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
2697 of dialogs (shame on you, glade!)
2699 * objects/custom/custom_object.c (custom_setup_properties):
2700 Removed debugging output
2702 * app/paginate_psprint.c (diagram_print_ps): Slightly more
2703 readable printer error messages.
2707 * doc/en/Makefile.am:
2708 * doc/pl/Makefile.am:
2709 New more standard way to install the XML-based manuals.
2711 2004-03-15 Lars Clausen <lars@raeder.dk>
2713 * objects/standard/box.c (box_move_handle): More intuitive fixed
2716 * objects/standard/ellipse.c:
2717 * objects/standard/box.c:
2720 * app/layer_dialog.[ch]:
2721 Patch from Steve Langasek <vorlon@debian.org>:
2722 Fixes startup crash on Alpha (bug #137169)
2724 * objects/standard/box.c: Aspect fixing like ellipses.
2726 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
2728 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
2729 pixmaps, now can uninstall properly.
2731 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
2732 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
2734 Added object menu access.
2736 2004-03-07 Hans Breuer <hans@breuer.org>
2738 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
2739 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
2740 would not use deprecated apis, but it's much simpler this way)
2742 * lib/makefile.msc : build the above new widgets and render_pixmap
2743 * lib/libdia.def app/dia.def app/makefile.msc : updated
2745 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
2746 what I saw, i.e. how big is an empty array supposed to be ? ;-).
2747 Previously it gave :
2748 disp_callbacks.c(188) : error C2059: syntax error : '}'
2749 disp_callbacks.c(191) : warning C4034: sizeof returns 0
2751 * app/interface.c : #include "dialinechooser.h"
2753 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
2754 [one more reason not to use it here : it's quite slow compared to
2755 the native win32 font renderer ;]
2757 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
2758 a GtkDialog*, removed unneeded cast
2760 * app/render_eps.c : avoid assignment warning for void* user_data
2763 2004-03-06 Steffen Macke sdteffen@web.de>
2765 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
2768 2004-03-06 Lars Clausen <lars@raeder.dk>
2770 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
2773 * lib/font.c: Simple cleanup system for layout cache removes any
2774 layout that hasn't been used for 10 minutes, but only during idle
2777 2004-03-05 Lars Clausen <lars@raeder.dk>
2779 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
2780 (lluis padro) (#130887): Extended Electric shapes with vertical
2783 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
2784 start with "Create a" or "A", always capitalize first word).
2786 * objects/standard/ellipse.c: Patch from Grégoire Dooms
2787 <dooms@info.ucl.ac.be>: Add extra connection point in center of
2788 ellipse. Additionally added a handle in the center, and resize is
2789 now around the center.
2792 * sheets/Makefile.am (SUBDIRS):
2793 * sheets/IsometricMap.sheet.in:
2794 * shapes/Map/Isometric/*
2795 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
2797 2004-03-04 Lars Clausen <lars@raeder.dk>
2800 * lib/pixmaps/Makefile.am:
2802 Better installation handling of pixmaps.
2804 * lib/diagdkrenderer.c:
2805 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
2806 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
2809 2004-03-03 Lars Clausen <lars@raeder.dk>
2811 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
2812 * lib/diagdkrenderer.c:
2813 * lib/diasvgrenderer.c:
2814 * lib/dialibartrenderer.c:
2815 * lib/diainteractiverenderer.c:
2816 * lib/prop_text.c (multistringprop_handle_key):
2818 * lib/dia_image.c (dia_image_rgba_data):
2820 * lib/diagramdata.c (layer_set_object_list):
2823 Getting rid of compile warnings.
2825 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
2826 images. Also remove unused decls.
2828 2004-03-02 Lars Clausen <lars@raeder.dk>
2831 * lib/widgets.c (dia_size_selector_init): Add images to the size
2832 selector chain widget. Also new function to load installed images
2833 from files (better than from included XPM, IMHO).
2835 2004-03-02 Lars Clausen <lars@raeder.dk>
2838 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
2842 * lib/widgets.c (dia_size_selector_init): Work
2843 on getting proper icon onto the size selector. Need simple image
2844 load mechanism in utils.
2848 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
2849 strings, handle utf8 strlen properly. Bug #135930.
2851 2004-03-01 Lars Clausen <lars@raeder.dk>
2853 * shapes/Cybernetics/*:
2854 * sheets/Cybernetics.sheet.in:
2855 * sheets/Makefile.am:
2856 * shapes/Makefile.am:
2857 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
2858 Roggendorf): Cybernetic shapes (#95553).
2860 2004-03-01 Lars Clausen <lars@raeder.dk>
2862 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
2864 * lib/diatypes.h: New type DiaSizeSelector.
2866 * lib/widgets.[ch]: New size selector widgets that selects two
2867 values (width and height, nominally) optionally linked to keep
2870 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
2872 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
2873 in front of file. Bug #128600.
2877 * app/lineprops_area.[ch]:
2879 * lib/dialinechooser.[ch]:
2880 * lib/widgets.c (dia_line_style_selector_init): use line preview
2881 instead of text labels. This involve moving away line_chooser to lib
2884 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
2887 * app/Makefile.am (dia_core_files):
2888 * app/interface.c (create_lineprops_area):
2889 * app/render_pixmap.[ch]:
2891 * lib/diaarrowchooser.[ch]:
2894 * lib/propdialogs.c:
2895 * lib/render_pixmap.[ch]:
2896 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
2897 of text labels. This involve moving away arrow_chooser to lib from
2900 2004-02-29 Lars Clausen <lars@raeder.dk>
2902 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
2903 being updated half-way through destruction. To be removed when
2904 the lists are replaced by something better.
2906 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
2907 Accelerators for class dialog. Bug #130995.
2908 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
2911 * app/preferences.c:
2913 * objects/GRAFCET/step.c:
2914 * objects/Misc/analog_clock.c:
2915 * objects/chronogram/chronoline.c:
2916 * objects/chronogram/chronoref.c:
2917 Change to american spelling (color, not colour) to ease
2918 translators job. Note that a number of translations may need an
2919 update now. Bug #120466.
2921 2004-02-29 Lars Clausen <lars@raeder.dk>
2923 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
2924 Better arrow handling for missing arrows.
2926 * plug-ins/metapost/render_metapost.[ch]: Patch from
2927 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
2928 size. See bug #135363.
2930 * app/app_procs.c (app_init): If non-interactive, or if
2931 --log-to-stderr used, send all messages to stderr. This should
2932 mean that old diaconv == dia --export-to-format=FOO BAR
2934 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
2936 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
2938 2004-02-28 Lars Clausen <lars@raeder.dk>
2940 * lib/text.c (text_key_event): Patch from Kouhei Sutou
2941 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
2943 2004-02-27 Lars Clausen <lars@raeder.dk>
2945 * KNOWN_BUGS: Added info on most commonly reported bugs, with
2948 * app/disp_callbacks.c (popup_object_menu): Unified properties
2949 entry, fixes bug #105080.
2951 * app/diagram.c (diagram_update_menu_sensitivity):
2952 * app/menus.h (struct _UpdatableMenuItems):
2953 * app/menus.c (menus_initialize_updatable_items): Menu items
2954 changed around, align menus flattened, properties entry ghosted,
2955 dialogs menu removed, more shortcuts added. Closing bugs #94018,
2957 Also taking out Gnome menus for now. They don't allow shortcuts,
2958 so what are they good for?
2960 2004-02-27 Lars Clausen <lars@raeder.dk>
2962 * app/menus.c (display_menu_items):
2963 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
2966 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
2968 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
2970 2004-02-23 Lars Clausen <lars@raeder.dk>
2972 * app/app_procs.c (app_init): Comments for translators.
2974 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
2976 * app/preferences.c (prefs_create_dialog): Change packing policy
2977 for widget to expand.
2979 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
2980 running with a debugger.
2982 2004-02-19 Lars Clausen <lars@raeder.dk>
2984 * app/undo.[ch]: Adding last-saved information to undo to allow a
2985 diagram with all changes since last save undo to be marked as
2986 nonmodified. Still needs integration with actual undo
2990 * app/diagram_tree.c (diagram_tree_update):
2992 * app/display.c (update_modified_status):
2993 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
2994 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
2997 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
2998 vs. EPSI, comment out EPSI until preview is in there.
3001 * lib/diarenderer.c: Removing debugging printfs.
3003 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
3006 * objects/standard/arc.c (arc_update_handles): Check to avoid
3007 crash when start and end points are the same.
3009 2004-02-19 Lars Clausen <lars@raeder.dk>
3011 * objects/standard/bezier.c:
3012 * objects/standard/line.c (line_load):
3013 * objects/standard/polyline.c (polyline_load):
3014 * objects/standard/zigzagline.c (zigzagline_load):
3015 * objects/standard/arc.c (arc_load):
3016 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
3017 instead of hardcoding.
3019 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
3021 * app/disp_callbacks.c (popup_object_menu): append a menu item to
3024 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
3026 * app/app_procs.c: declare rc properly with the proper #ifdef
3028 2004-02-17 Lars Clausen <lars@raeder.dk>
3030 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
3031 objects (which seemingly FIG itself breaks, or else there is no
3034 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
3036 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
3037 width renderable in xfig. Helps on bug #133637, but does not
3038 quite fix it -- something about depth is wrong.
3040 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
3041 Extern definitions for Mac compilation.
3043 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
3044 (jdassen@debian.org): Include fix.
3046 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
3047 sure the initial diagram size is correct.
3049 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
3051 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
3052 CPPFLAGS, as per automake warning.
3053 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
3054 LDFLAGS, as per automake warning.
3055 (run_dia.sh): More robust creation, and more easily moved.
3057 * app/undo.c (group_objects_revert): Don't double-free the objects
3058 list. (#129221) Call object_add_updates on grouped objects.
3059 (ungroup_objects_revert): Call object_add_updates on grouped objects.
3061 * lib/diagramdata.c: Internal
3064 * lib/polyshape.c (polyshape_update_data): Correctly calculate
3065 directions for polyshape corners (thanks, Valgrind!)
3068 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
3070 * lib/arrows.h: Default arrow size defined. After all are using
3071 this, may lower to 0.4 or so.
3073 * app/lineprops_area.[ch]: New function to set the arrow type for an
3076 * app/interface.c (create_lineprops_area): Set default line to
3077 have an arrow (fairly likely to be what's wanted, plus it shows
3078 the user where arrows are set).
3080 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
3082 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
3084 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
3085 Dotted lines should use dot_length, not dash_length.
3087 2004-02-06 Hans Breuer <hans@breuer.org>
3089 * app/interface.c : don't use gtk_drawing_area_size() to avoid
3090 the defaut size being also the minimum size. Instead use
3091 gtk_window_set_default_size() on the display shell. Fixes #130982.
3093 [fixing #131210, but umlauts in the 'main' filename still not really
3094 supported on systems where filesystem encoding != utf8
3095 (Problems with recent file menu and window title)]
3096 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
3097 to deal with possible differnces in filename encodings, see
3098 g_filename_<to|from>_utf8()
3099 * objects/standard/image.c : use them.
3101 * lib/widgets.c : handle possible encoding difference here, too.
3102 Also get rid of most warnings by using const and GTK casts where
3103 appropriate; one wrong cast (probably causing a crash) was found/fixed
3104 by this - the remaining give a hint on finally leaking FontSelectorEntry.
3106 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
3107 dia_file_selector_<get|set>_file to behave like the respective Gtk
3108 functions do : encoding- and const-wise ;-)
3110 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
3112 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
3114 2004-01-19 Hans Breuer <hans@breuer.org>
3116 * app/app_procs.c app/diaconv :
3117 only call bind_textdomain_codeset when available, what's good
3118 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
3119 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
3121 2004-01-19 Steffen Macke <sdteffen@web.de>
3123 * makefile.msc: updated for new GAIM-like installer build; sync'ed
3124 ALL_LINGUAS with configure.in
3126 2004-01-18 Hans Breuer <hans@breuer.org>
3128 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
3129 by not passing NULL to g_print()
3131 * app/interface.c (create_toolbox) : actually use
3132 persitence_register_window() to restore toolbox window size
3134 * app/makefile.msc lib/makefile.msc : allow to deselect
3135 building with Freetype by command line to nmake like :
3136 nmake -f makefile.msc "NOFT2=1"
3138 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
3139 far as possible with Dia's limited line style
3140 * plug-ins/python/pydia-property.c : allow to get and set
3141 Linestyle, style and dash(length)
3143 * lib/object.h : removed typedef for ObjectId not use anywhere
3145 2004-01-17 Hans Breuer <hans@breuer.org>
3147 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
3148 doc/shape.dtd doc/custom-shapes :
3149 support for images in custom shapes, also removed some long-time
3152 * doc/en/*.xml : fixed crippled line ends which get created
3153 when windoze line ends are checkin from the unix side
3155 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
3157 * configure.in: Added "sq" to ALL_LINGUAS.
3159 2004-01-11 Hans Breuer <hans@breuer.org>
3161 [more less leaks ;-]
3163 * objects/SADT/annotation.c : use text_destroy() not g_free()
3165 * objects/chronogram/chronoline.c : neither leak chronoline::events
3166 nor chronoline::name
3168 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
3170 2004-01-11 Hans Breuer <hans@breuer.org>
3172 * lib/properties.h :
3173 * objects/custom/custom_object.c : more properties optional
3174 to be backward compatible for older diagrams not having them
3175 set. (Try to load samples/all_objects.dia)
3177 [less memory leaks thanks valgrind ;-]
3179 * app/recent_files.c (recent_file_history_write) :
3180 g_free(history_filename);
3181 (recent_file_menu_item) : use g_path_get_basename()
3182 which already strdups, free result of g_strescape()
3184 * app/filedlg.c (create_export_menu) : return of
3185 filter_get_export_filter_label() must be g_free()'d
3186 (create_open_menu) : same for import
3188 * app/export_png.c (export_png_ok) : destroy info ptr
3189 with png_destroy_write_struct()
3191 * app/app_procs.c (app_init) : g_free(export_format_string);
3193 * lib/font.c (dia_font_finalize) : finalize parent_class, too
3194 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
3195 refing it a second time, g_type_create_from_instance() is enough
3197 * lib/object_defaults.c (_obj_store) : don't mess with names
3198 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
3200 2004-01-11 Steffen Macke <sdteffen@web.de>
3202 * app/diapsftrenderer.c: including ftoutln.h
3203 * app/makefile.msc: updated for freetype build
3204 * lib/libdia.def: added dia_font_get_context()
3205 * lib/dialibartrenderer.c (draw_string): added cast
3207 2004-01-10 Hans Breuer <hans@breuer.org>
3209 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
3210 transformed coordinates, fixes bug 130804
3212 2004-01-10 Hans Breuer <hans@breuer.org>
3214 * app/filedlg.c app/app_procs.c : don't try to destroy
3215 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
3216 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
3217 returns. Fixes 'has no handler' bugs like #121019
3219 2004-01-10 Hans Breuer <hans@breuer.org>
3221 * objects/UML/class.c objects/UML/class_dialog.c :
3222 handle umlclass->name being empty to avoid, i.e. fix #127968
3224 [plugging memleaks, thanks valgrind :-]
3226 * lib/dia_xml.c (data_string) : don't leak return value
3227 of xmlNodeListGetString()
3229 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
3230 before returning, maybe alloca() would be the better
3231 choice but anyway ;)
3233 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
3235 * lib/font.c (dia_font_build_layout) : don't leak result
3238 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
3239 (this is the one which got me started using valgrind, see #130816)
3241 2004-01-07 Sanlig Badral <badral@openmn.org>
3243 * configure.in: Added "mn" to ALL_LINGUAS.
3245 2004-01-04 Hans Breuer <hans@breuer.org>
3247 * lib/diagdkrenderer.c : replace rendering of really small (height
3248 less than 2 pixels) with a simple dashed line, you wont notice the
3249 differnce beside it being much faster. This allows ...
3250 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
3251 * app/navigation.c : ... and lets you see an read rendered text even
3252 in the nice navigation popup.
3254 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
3255 (draw_string) : don't leak temporary image
3257 2004-01-04 Hans Breuer <hans@breuer.org>
3259 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
3260 * app/interface.c : use dia-app-icons.h to give Dia window icons
3262 * lib/dia_image.c lib/color.c : _never_ call functions implemented
3263 in app/ from lib/. It is not portable and broken from design
3264 * app/app_procs.c : call color_init() and dia_image_init() conditional,
3265 i.e. only if running interactive.
3267 * lib/font.h : #include <time.h>
3269 * lib/libdia.def : updated externals
3271 * objects/UML/actor.c
3272 objects/UML/association.c (todo)
3273 objects/UML/branch.c
3274 objects/UML/class.[hc] objects/UML/class_dialog.c
3275 objects/UML/classicon.c
3276 objects/UML/component.c
3277 objects/UML/constraint.c
3278 objects/UML/dependency.c
3279 objects/UML/generalization.c
3280 objects/UML/implements.c
3281 objects/UML/large_package.c
3282 objects/UML/lifeline.c
3283 objects/UML/message.c
3285 objects/UML/object.c
3286 objects/UML/realizes.c
3287 objects/UML/small_package.c
3289 objects/UML/usecase.c
3291 : ported coloring of most UML objects (bug #97517, orginal
3292 work Mathias Hasselmann)
3294 * lib/properties.h : add _OPTIONAL variants for
3295 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
3296 i.e. default colored - UML diagrams without complaining
3297 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
3298 not set properties with the help of PXP_NOTSET. Otherwise
3299 optional attributes would lead to wrong initialization.
3301 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
3302 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
3303 Same for most other selectors which probably should be rewritten
3304 to the combo box with tree model from Gtk+ 2.4
3306 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
3308 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
3309 being the Right Thing(tm) to use on Solaris.
3311 * objects/standard/bezier.c (bezierline_draw): Don't draw
3312 guidelines if not selected.
3314 * lib/object.[ch] (dia_object_is_selected): Function to check whether
3315 a given object is selected. O(n), where n is # selected objects.
3318 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
3320 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
3321 Fonts dialog is closed without pressing Ok (bug #128646).
3323 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
3325 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
3328 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
3330 * INSTALL: Updated list of requirements (bug #129653)
3332 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
3333 Pionchon <luc@handhelds.org>.
3335 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
3337 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
3338 empty or NULL strings (bug #130097).
3340 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
3342 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
3343 Added checks against color_black.
3345 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
3347 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
3348 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
3351 * objects/UML/component_feature.c: Patch from W. Borgert
3352 <debacle@debian.org>: Add handle to component feature text.
3354 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
3356 * lib/font.c: Caching PangoLayout for better rendering speed.
3358 2003-12-30 Lars Clausen <lars@raeder.dk>
3360 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
3361 get absolute file name from relative.
3362 * app/recent_files.c (recent_file_history_add): Use absolute
3363 filenames for recent files menu so that files can be found when
3364 Dia is invoked from other places.
3366 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
3367 Actually load different diagrams if such are requested on command
3370 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
3371 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
3373 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
3374 remove text rendering. May be turned into greeking at some later
3378 * app/Makefile.am (dia_core_files):
3379 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
3380 Adds navigation window a la Gimp, though without text being
3383 2003-12-27 Luc Pionchon <luc@handhelds.org>
3385 * app/navigation.h: (new file)
3386 * app/navigation.c: (new file) creates a navigation window with a
3387 thumbnail view of the whole diagram.
3388 * app/Makefile.am (dia_core_files): added new files.
3390 * app/interface.c (create_display_shell): added a button between
3391 the scrollbars to popup a navigation window.
3393 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
3395 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
3396 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
3397 not want text rendering.
3399 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
3401 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
3403 * objects/custom/shape_info.[ch]: Cleanup.
3405 * objects/custom/custom_object.[ch]: Changed to use new props
3410 * lib/prop_inttypes.c:
3411 * lib/prop_geomtypes.c: Added *prop_get_data_size.
3413 * lib/libdia.def: Added object_load_props.
3415 * configure.in: Better FT2 version test, from bug #129225.
3417 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
3419 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
3420 Lehmann <holger.lehmann@catworkx.de>.
3422 * plug-ins/xslt/Makefile.am:
3423 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
3424 and OWL XSLT sheets.
3426 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
3428 * lib/diagdkrenderer.c: Add implementation so text is still
3429 rendered. May be improved later.
3435 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
3436 Allow running without a $DISPLAY!
3438 * lib/color.c: Remove warnings for non-interactive run.
3443 * app/app_procs.[ch]:
3444 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
3445 to specify size for PNG output.
3447 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
3448 render a little smaller, so as to fit the big ones.
3450 * lib/arrows.[ch]: New arrow type from W. Borgert
3451 <debacle@debian.org>: Filled Dot and Triangle.
3453 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
3455 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
3458 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
3460 * acinclude.m4: Better Python configure code patch (can't find
3461 author, author please speak up!)
3463 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
3465 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
3468 2003-11-30 Hans Breuer <hans@breuer.org>
3470 * plug-ins/python/diasvg.py : initialize self.dash_length
3471 in constructor to avoid crashing if the renderer user
3472 does not set it before first usage.
3474 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
3476 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
3480 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
3481 development and stable versions.
3483 * lib/text.c (text_draw): Use new renderer function to draw the
3486 * lib/diarenderer.h:
3487 * lib/diarenderer.c: New renderer function "draw_text" with
3488 default implementation. This function should eventually be the
3489 main interface, as it will be able to handle width and caching of
3490 rendering internally. All users of draw_string should convert to
3491 use Text objects and call either renderer->draw_text or text_draw,
3492 the latter if the text can be edited in-place (as should be the
3495 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
3497 * shapes/Circuit/hresistor.shape: First example of extra
3500 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
3502 * plug-ins/shape/shape-export.c:
3503 * lib/diasvgrenderer.h:
3504 * lib/diasvgrenderer.c:
3505 * plug-ins/svg/render_svg.c (new_svg_renderer):
3506 Actually store the font size, using DiaRenderer's font fields.
3508 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
3510 * objects/custom/shape_info.[ch]:
3511 * objects/custom/custom_object.[ch]:
3512 Support for extra attributes in custom objects.
3514 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
3516 * app/diagram.c (diagram_update_menu_sensitivity): More
3517 intelligent checks for menu sensitivity. Might be slow on huge
3518 diagrams, but I think other things outweigh it by a lot.
3520 * app/menus.[ch]: Make "Bring Forwards"
3521 and "Send Backwards" updateable.
3523 2003-11-22 Steffen Macke <sdteffen@web.de>
3525 * shapes/Assorted/arrow-turn-up.shape:
3526 * shapes/Assorted/arrow-turn-up.png:
3527 * sheets/Assorted/Makefile.am:
3528 * sheets/Assorted.sheet.in: Added new arrow
3530 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
3538 * app/diagram_tree.c
3539 * app/diagram_tree_menu.c
3540 * app/diagram_tree_window.c
3541 * app/diapagelayout.c
3542 * app/diaunitspinner.c
3546 * app/layer_dialog.c
3547 * app/lineprops_area.c
3548 * app/linewidth_area.c
3551 * app/paginate_psprint.c
3553 * app/plugin-manager.c
3556 * app/recent_files.c
3558 * app/sheets_dialog.c
3559 * app/sheets_dialog_callbacks.c
3560 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
3561 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
3563 * TODO: Updated, note on EPS transparency.
3565 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
3567 * objects/UML/class.c (umlclass_draw): Allow classes with no name
3570 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
3573 * doc/en/dia-manual.xml:
3576 * NEWS: Another Brown Bag release for parenting problems,
3577 including a crash bug fix.
3579 * app/connectionpoint_ops.c (diagram_update_connections_object):
3580 Also update connections when moving children. This can cause
3581 move_handle to be called twice, so it must be idempotent.
3583 * app/load_save.c: Loading and saving of children totally redone.
3584 Now doesn't violate assumption that all objects in a layer are
3585 placed in order in XML file.
3587 * objects/UML/branch.c (branch_create): Don't lie about being
3590 * objects/UML/node.c (node_create):
3591 * objects/UML/large_package.c (largepackage_create): Drag with
3592 lower right-hand handle at creation like all other objects.
3594 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
3596 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
3597 parenting drop to behave like a move inside, i.e. constrain place
3598 instead of trying to resize. 'Cause, resizing cannot be done for
3599 all objects (e.g. UML Class). Also simplified the algorithm a lot
3602 * app/load_save.c: Saving and loading of connection points for
3603 children added. Prototypes for static functions added.
3605 * lib/dynamic_obj.c: Removed debugging output.
3607 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
3609 * doc/en/dia-manual.xml:
3610 * doc/pl/dia-manual.sgml:
3614 * NEWS: Brown Bag release 0.92.1
3616 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
3618 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
3620 * app/app_procs.c (app_init): Rearrangement for translators.
3622 2003-10-24 Steffen Macke <sdteffen@web.de>
3624 * lib/text.c(text_key_event): enforcing the inserted text length now,
3627 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
3629 * MAINTAINERS: Change Debian maintainer to be the default address.
3631 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
3632 args to match prototype, thus removing crashbug #125159.
3634 * RELEASE-PROCESS: Note to self.
3636 2003-10-22 Steffen Macke <sdteffen@web.de>
3638 * doc/en/dia-manual.xml: removed superfluous external references
3640 2003-10-21 Steffen Macke <sdteffen@web.de>
3642 * lib/libdia.def: added filter_get_by_name
3643 * app/render_eps.c: moved extensions definition outside #ifdef
3645 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
3649 Removed old Dia manual, put new one in doc/en/. Translations
3650 should go in doc/??/.
3652 * doc/en/dia-manual.xml:
3653 * doc/pl/dia-manual.sgml:
3654 * dia.spec (Release):
3657 * NEWS: 0.92 is here!
3661 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
3662 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
3665 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
3667 * doc/en/usage-objects-selecting.xml: Commented out empty note.
3669 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
3671 * doc/pl/dia-manual.sgml:
3672 * doc/en/dia-manual.xml:
3676 * dia.spec (Release): Pre7.
3678 * app/diapsrenderer.c (draw_string): Convert string to print based
3679 on current locale. If conversion fails, fall back to UTF-8 (which
3680 is almost certain to be messy).
3682 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
3684 * doc/pl/dia-manual.sgml:
3685 * dia.spec (Release):
3689 * doc/en/dia-manual.xml: Pre6.
3691 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
3692 TeX chars in strings -- must be possible to use TeX text in there.
3693 Also avoids infinite loop bug (#124464) Will get option for this
3696 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
3698 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
3700 * doc/en/dia-manual.xml:
3701 * doc/pl/dia-manual.sgml:
3702 * dia.spec (Release):
3707 * app/authors.h: Removed duplicate of M. C. Nelson.
3709 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
3711 * app/export_png.c: Unique name for libart PNG export: png-libart.
3713 * app/render_eps.c: Unique names for the two eps export methods:
3714 eps-builtin, eps-pango.
3716 * lib/filter.h: Binary compatibility change:
3717 Added unique name to export filters. Can be NULL.
3718 * lib/filter.c (filter_get_by_name): Finding a filter by
3721 * app/app_procs.h: Changed prototype for do_convert.
3722 * app/app_procs.c (app_init): Support for non-extension file
3723 format selection for export. Also allow extension to differ from
3724 that specified by the filters. A bit of refactoring, too.
3726 2003-09-28 Steffen Macke <sdteffen@web.de>
3728 * makefile.msc: added target po to update the translations
3730 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
3733 * dia.spec (Release):
3735 * doc/pl/dia-manual.sgml:
3736 * doc/en/dia-manual.xml:
3737 Pre4 is given a short try.
3739 * configure.in: Give all necessary libs to PNG test.
3741 * lib/font.c: Added legacy entries for sans, serif and monospace.
3743 * app/app_procs.c (internal_plugin_init):
3746 Added PS fonts output for Unix.
3748 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
3749 factor to make PS fonts stay in boxes.
3751 2003-08-03 Hans Breuer <hans@breuer.org>
3753 * config.h.win32 : close the version string
3755 * lib/libdia.def : with color_white, color_black being static
3756 on win32 they can not be exported anymore either
3758 * lib/dialibartrenderer.c : text rendering is back on win32,
3759 only by Gdk though; almost a year seems to be enough to
3760 wait for my patch at bug #94791 to be accepted ...
3762 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
3764 * shapes/network/{digitizing_board.png,plotter.png,
3765 laptop.png,telephone.png}: 22x22 icons.
3767 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
3769 * doc/pl/dia-manual.sgml:
3770 * doc/en/dia-manual.xml:
3771 * dia.spec (Release):
3775 pre3 improves font rendering speed.
3777 * app/app_procs.c (app_init): Don't do pango init here, it's done
3778 on demand in font.c now.
3780 * lib/font.c: Load pango context on demand rather than during
3781 init/all the time strikes a better balance between working font
3782 size and speed. Still need to cache width calculations.
3784 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
3786 * lib/dia_xml.c: Enable pretty printing. Should have been added
3789 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
3791 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
3792 adjustment a bit for half diamond and open round.
3794 * RELEASE-PROCESS: Added note about notifying translators and
3797 * doc/pl/dia-manual.sgml:
3798 * doc/en/dia-manual.xml:
3799 * dia.spec (Release):
3803 Update to 0.92-pre2.
3805 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
3807 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
3808 calculation for half diamond and open round.
3811 * objects/UML/component_feature.c:
3812 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
3813 arrows instead of specific little hacks. Much nicer, but damn
3814 there's a lot of arrows.
3816 * lib/dialibartrenderer.c (begin_render):
3817 * app/render_libart.c (begin_render): Use correct DPI for screen
3818 (well, actually the default DPI of 75 for now).
3820 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
3822 * lib/diagdkrenderer.c (draw_string): Some reformatting.
3824 * app/app_procs.c (app_init): Note on what should be done for the
3825 pango context now, only it doesn't work:(
3827 * lib/font.c (dia_font_new): Make sure to load fonts that are
3828 used, using a reasonable pango_context. Also a comment on the
3831 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
3833 * doc/pl/graphics/*.png:
3834 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
3835 loop (bug #121817). PL translator may want to change the
3836 home_network png to be in Polish. If the docs get translated into
3837 more languages, we'll want to find out how to share these things.
3839 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
3841 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
3842 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
3845 * app/filedlg.c (file_save_as_callback): Put filename setting
3846 together. (Preparation for allowing default save dir.)
3848 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
3849 correctly this time:)
3851 * app/dia-props.c (diagram_properties_show):
3852 * app/properties.c (properties_show): Make sure the
3853 dialogs are transient for the correct diagram.
3855 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
3857 * configure.in: Make sure -lz -lm is passed into second png test
3858 as well (stupid AC_LINK_IFELSE can't take it as an argument).
3860 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
3861 comment-filled files readable. Once we have a 'generic data'
3862 system, we can put comments in there.
3864 2003-09-06 Steffen Macke <sdteffen@web.de>
3866 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
3867 g_string_sized_new() instead of g_string_new() to make it compile
3868 * app/Makefile.am: including dia.ico and dia.rc in the tarball
3869 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
3870 for non-solid linestyles - otherwise custom linestyles have to be used.
3872 2003-09-02 Steffen Macke <sdteffen@web.de>
3874 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
3877 2003-09-02 Christian Neumair <chris@gnome-de.org>
3879 * sheets/Pneumatic.sheet.in: Slight unification fix.
3881 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
3885 * dia.spec (Release):
3886 * doc/en/dia-manual.xml:
3887 * doc/pl/dia-manual.sgml:
3888 * NEWS: Update to 0.92-pre1.
3890 * app/properties.c (properties_key_event): Removing Esc/Enter
3891 handling for now, interferes to much with regular dialog usage.
3893 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
3894 Function to escape special TeX characters. Not in use yet, as
3895 PSTricks output by default is TeX strings. Should get a save-time
3898 2008-09-01 Steffen Macke <sdteffen@web.de>
3900 * lib/paper.h: explanatory comment on width and height
3902 2003-08-30 Steffen Macke <sdteffen@web.de>
3905 * lib/color.h: made color_white, color_black static on win32
3907 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
3909 * configure.in (PNG_LIBS): Something in the png tests added an
3910 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
3912 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
3914 * configure.in: Quote correctly for temporarily adding freetype
3917 * app/preferences.c (prefs_save): Remove debugging g_print.
3919 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
3921 * objects/flowchart/parallelogram.c (pgram_update_data):
3922 Directions for connections, better system for placing
3925 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
3927 * lib/diagramdata.c (layer_find_closest_object_except): Look all
3928 the way through the object list, so the foremost object is selected.
3930 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
3931 included for diagramdata.c.
3933 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
3934 newline in multistringprop not close the dialog. Failed so far.
3936 2003-08-25 Steffen Macke <sdteffen@web.de>
3938 * app/commands.c: using CHM instead of HTML on win32 if available
3939 * lib/diagramdata.h: including dynamic_obj.h
3941 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
3943 * app/properties.c (properties_key_event): Make Enter = Ok for
3944 properties dialogs. Still some problems with this and Esc for
3945 Cancel, for instances escaping out of a menu closes the dialog.
3947 * objects/UML/association.c (association_get_properties):
3948 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
3951 * app/diapsft2renderer.c (draw_string): Use
3952 dia_font_scaled_build_layout to ensure similarity of text.
3954 * lib/diagramdata.c: Remove obj from dynobj list when removing
3955 from layer to avoid nasty race conditions.
3957 * app/undo.c (group_objects_revert): Make sure to unparent and
3958 remove from dynobj list when changing layers objects.
3960 2003-08-23 Steffen Macke <sdteffen@web.de>
3962 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
3963 StretchBlt(); fixes #92249
3965 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
3967 * app/filedlg.c (file_save_as_callback):
3968 * app/preferences.h:
3969 * app/preferences.c (prefs_data):
3970 * lib/diagramdata.h:
3971 * lib/diagramdata.c (new_diagram_data):
3972 * app/load_save.c (diagram_data_load):
3973 Let the document remember whether it was compressed. The user can
3974 still override this in the Save As... dialog, and that will still
3975 be remembered as the default for new diagrams.
3977 2003-08-23 Steffen Macke <sdteffen@web.de>
3979 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
3981 2003-08-22 Steffen Macke <sdteffen@web.de>
3983 * plug-ins/xslt/dia-uml.xsl:
3984 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
3985 table containing a list of components grouped by stereotype
3987 2003-08-21 Steffen Macke <sdteffen@web.de>
3989 * lib/makefile.msc: added connectionpoint.obj
3990 * lib/libdia.def: added connpoint_update, find_slope_directions
3991 * app/disp_callbacks.c: including scroll_tool.h
3992 * obj/makefile.msc: added component_feature.obj
3993 * app/paginate_gdiprint.c: fixed loop initialization in
3994 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
3997 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
3999 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
4002 * lib/diagramdata.h: Colors added to prefs.
4003 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
4004 New field for pagebreak color, which should
4005 behave the same as grid color and be settable for a diagram.
4007 * app/diagram.c (diagram_init): Update diagram pagebreak color
4010 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
4013 * app/preferences.[ch]: Default diagram colors now #defines, so
4014 loading can use it. Also, colors are now in NewDiagramData, so
4015 are passed nicely into new diagrams directly from prefs. Yum.
4017 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
4018 Support for loading and saving grid and pagebreak colors with the
4019 diagram. I'm inclined to make all the three Colors in diagram
4020 Color*s instead, so we can tell if they're specified for the
4021 diagram or merely the default setting. There'd be no way for the
4022 user to tell if the color of a diagram is default, though, unless
4023 we add a 'reset to default' button to prefs.
4025 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
4026 pagebreak color. Unsensitizing grid size when dynamic.
4028 * objects/UML/component.c: Patch from Krzysztof Foltman
4029 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
4030 third. Makes the left side connections actually be on the line
4033 2003-08-20 Steffen Macke <sdteffen@web.de>
4035 * lib/libdia.def: added layer_find_closest_object_except
4036 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
4038 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
4042 * app/scroll_tool.c:
4044 * app/disp_callbacks.c:
4045 * app/create_object.h:
4046 * app/create_object.c: Patch from Krzysztof Foltman
4047 <kfoltman@onet.pl>: Middle button can scroll transiently when
4048 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
4052 * sheets/UML.sheet.in:
4053 * sheets/UML/receptacle.xpm:
4054 * sheets/UML/Makefile.am:
4055 * sheets/UML/eventsource.xpm:
4056 * sheets/UML/eventsink.xpm:
4057 * objects/UML/pixmaps/facet.xpm:
4058 * objects/UML/uml.c (dia_plugin_init):
4059 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
4060 * objects/UML/component_feature.c:
4061 Patch from W. Borgert <debacle@debian.org>: Add event sources and
4064 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
4066 * lib/object.h: Turning some comments into doxygen style.
4068 * lib/object_defaults.c (dia_object_defaults_load)
4069 (dia_object_default_get, dia_object_default_create):
4070 Fixing up existing documentation.
4072 * lib/object.h: Doxygen style documentation begun.
4074 * app/create_object.c:
4076 * app/connectionpoint_ops.c:
4077 * app/disp_callbacks.c:
4078 * app/modify_tool.c:
4080 * objects/network/wanlink.c (wanlink_move_handle):
4081 * objects/network/bus.c (bus_move_handle):
4083 * objects/flowchart/parallelogram.c (pgram_move_handle):
4084 * objects/flowchart/ellipse.c (ellipse_move_handle):
4085 * objects/flowchart/diamond.c (diamond_move_handle):
4086 * objects/flowchart/box.c (box_move_handle):
4088 * objects/custom/custom_object.c (custom_move_handle):
4090 * objects/chronogram/chronoref.c (chronoref_move_handle):
4091 * objects/chronogram/chronoline.c (chronoline_move_handle):
4093 * objects/SADT/box.c (sadtbox_move_handle):
4094 * objects/SADT/arrow.c (sadtarrow_move_handle):
4095 * objects/SADT/annotation.c (annotation_move_handle):
4097 * objects/Misc/analog_clock.c (analog_clock_move_handle):
4099 * objects/GRAFCET/vergent.c (vergent_move_handle):
4100 * objects/GRAFCET/vector.c (arc_move_handle):
4101 * objects/GRAFCET/transition.c (transition_move_handle):
4102 * objects/GRAFCET/step.c (step_move_handle):
4103 * objects/GRAFCET/condition.c (condition_move_handle):
4104 * objects/GRAFCET/action.c (action_move_handle):
4106 * objects/FS/function.c:
4107 * objects/FS/flow.c:
4108 * objects/FS/flow-ortho.c (orthflow_move_handle):
4109 * objects/FS/flow-poly.c (flow_move_handle):
4111 * objects/UML/usecase.c (usecase_move_handle):
4112 * objects/UML/state_term.c (state_move_handle):
4113 * objects/UML/state.c (state_move_handle):
4114 * objects/UML/small_package.c (smallpackage_move_handle):
4115 * objects/UML/realizes.c (realizes_move_handle):
4116 * objects/UML/object.c (objet_move_handle):
4117 * objects/UML/note.c (note_move_handle):
4118 * objects/UML/node.c (node_move_handle):
4119 * objects/UML/message.c (message_move_handle):
4120 * objects/UML/lifeline.c (lifeline_move_handle):
4121 * objects/UML/large_package.c (largepackage_move_handle):
4122 * objects/UML/implements.c (implements_move_handle):
4123 * objects/UML/generalization.c (generalization_move_handle):
4124 * objects/UML/fork.c (fork_move_handle):
4125 * objects/UML/dependency.c (dependency_move_handle):
4126 * objects/UML/constraint.c (constraint_move_handle):
4127 * objects/UML/compprop.c (compprop_move_handle):
4128 * objects/UML/component.c (component_move_handle):
4129 * objects/UML/branch.c (branch_move_handle):
4130 * objects/UML/association.c (association_move_handle):
4131 * objects/UML/actor.c (actor_move_handle):
4132 * objects/UML/activity.c (state_move_handle):
4133 * objects/UML/class.c (umlclass_move_handle):
4135 * objects/standard/ellipse.c (ellipse_move_handle):
4136 * objects/standard/zigzagline.c (zigzagline_move_handle):
4137 * objects/standard/textobj.c (textobj_move_handle):
4138 * objects/standard/polyline.c (polyline_move_handle):
4139 * objects/standard/polygon.c (polygon_move_handle):
4140 * objects/standard/line.c (line_move_handle):
4141 * objects/standard/image.c (image_move_handle):
4142 * objects/standard/bezier.c (bezierline_move_handle):
4143 * objects/standard/arc.c (arc_move_handle):
4144 * objects/standard/beziergon.c (beziergon_move_handle):
4145 * objects/standard/box.c (box_move_handle):
4147 * objects/ER/relationship.c (relationship_move_handle):
4148 * objects/ER/participation.c (participation_move_handle):
4149 * objects/ER/entity.c (entity_move_handle):
4150 * objects/ER/attribute.c (attribute_move_handle):
4152 * lib/polyshape.c (polyshape_move_handle):
4154 * lib/orth_conn.c (orthconn_move_handle):
4156 * lib/neworth_conn.c (neworthconn_move_handle):
4157 * lib/neworth_conn.h:
4158 * lib/element.c (element_move_handle):
4160 * lib/connection.c (connection_move_handle):
4162 * lib/beziershape.c (beziershape_move_handle):
4163 * lib/beziershape.h:
4164 * lib/bezier_conn.c (bezierconn_move_handle):
4165 * lib/bezier_conn.h:
4166 *BINARY COMPATIBILITY CHANGE*
4167 Update prototype for *_move_handle() to include connectionpoint,
4168 and also pass on modifiers. Pass in connectionpoint where
4171 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
4172 file connectionpoint.c.
4174 2003-08-17 Danilo Šegan <dsegan@gmx.net>
4176 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
4178 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
4180 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
4182 * lib/beziershape.c (beziershape_update_data): Autoroute
4183 directions for beziershapes!
4185 * lib/connectionpoint.c (find_slope_directions):
4186 * lib/connectionpoint.h: Function for finding the available
4187 directions on a slope.
4189 * lib/polyshape.c: Reasonable directions for
4192 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
4194 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
4195 * objects/GRAFCET/vergent.c (vergent_update_data):
4196 * objects/GRAFCET/transition.c (transition_update_data):
4197 * objects/GRAFCET/action.c (action_update_data):
4198 * objects/GRAFCET/step.c (step_update_data):
4199 * objects/FS/function.c (function_update_data):
4200 * lib/connpoint_line.c (connpointline_putonaline):
4201 * objects/ER/attribute.c (attribute_update_data):
4202 * objects/ER/entity.c (entity_update_data):
4203 * objects/ER/relationship.c (relationship_update_data):
4204 * objects/chronogram/chronoline.c (chronoline_update_data): Set
4205 directions for connection points.
4207 * objects/UML/component.c (component_create): Set to allow
4210 * app/create_object.c (create_object_button_press):
4211 * app/diagram.[ch] (diagram_find_clicked_object_except):
4212 * lib/diagramdata.[ch] (layer_find_closest_object_except):
4213 Avoid parenting to objects you're connecting to (otherwise you
4214 couldn't make a connection out of a parenting object). To do
4215 this, added functions to find the nearest object except a given
4218 * app/render_libart.c: Rearrange libart include to avoid multiple
4219 include program (and put libart includes inside #ifdef!)
4221 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
4223 * lib/dialibartrenderer.c: Don't include art_config.h if others
4224 also do, as it isn't #ifdef'd.
4226 * objects/flowchart/ellipse.c (ellipse_update_data): Add
4227 directions for connection points.
4229 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
4231 * objects/flowchart/box.c (box_update_data): Add directions, use
4233 (box_load): Use g_malloc0.
4235 * lib/Makefile.am (libdia_la_SOURCES):
4236 * lib/connectionpoint.c (connpoint_update):
4237 Function to call to update a connection point info in _update_data().
4239 * lib/connectionpoint.h: Convenience DIR_ macros.
4241 * app/preferences.c (prefs_data): Make pretty formatted XML the
4244 * lib/dialibartrenderer.c:
4245 * app/render_libart.c: Make sure art_config.h is included, cause
4246 some libart headers are broken.
4248 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
4249 after test. Add freetype-config cflags to cflags variable.
4251 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
4253 * app/authors.h: Credits for Krzysztof.
4255 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
4256 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
4257 than the description) is visible in the title of the properties
4258 dialog. That ought to be a short description (translatable),
4259 though we still want long descriptions for the tooltips. Hmmm...
4261 * configure.in: Updated to use AC_LINK_IFELSE instead of
4262 AC_TRY_COMPILE, also force to link to check libs on Solaris.
4264 * objects/ER/entity.c (entity_load):
4265 * objects/ER/attribute.c (attribute_load):
4266 * lib/attributes.c (attributes_set_default_font):
4267 Check if font is non-null before unreffing.
4269 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
4271 * app/diagram.c (diagram_ungroup_selected)
4272 (diagram_group_selected): Use the undo apply to make sure grouping
4273 and ungrouping is done in consistent manners. This removes a fair
4274 amount of duplicated code from diagram.c.
4276 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
4277 (group_objects_revert, group_objects_apply): Working undo/redo for
4278 diagram tree updates. The initial actions still don't quite work.
4280 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
4282 * app/create_object.c (create_object_button_press):
4284 * app/diagram.c: Undo support for parenting. Uses apply/revert in
4285 undo only for manipulating the parent/child relationships. Things
4286 like removing an object doesn't use the undo functions for
4287 parenting, so any updates to come (like to diagramtree) should be
4290 2003-08-03 Hans Breuer <hans@breuer.org>
4292 * app/create_object.c : minor formating and g_new0 for
4295 * lib/bezier_conn.[hc] lib/beziershape.[hc]
4296 lib/prop_geomtypes.c (prop_geomtypes_register)
4297 objects/standard/bezier.c objects/standard/beziergon.c :
4298 ability to set bezpoints via StdProp api
4300 * plug-ins/python/pydia-property.c : convert list of tuples
4303 * plug-ins/python/diasvg_import.py : use it to
4304 implement part of path parsing. Also minor improvements
4305 like inheritance of group attributes to members,
4306 whitespace, title and style:text/css ignoring ;-)
4308 2003-08-02 Hans Breuer <hans@breuer.org>
4310 * lib/connections.c (connection_move_handle): return
4311 something to make it compile
4312 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
4313 must return a value -> dito
4314 [Is there a warnings-as-errors switch we could use with gcc
4315 to avoid such in future ?]
4317 * plug-ins/python/pydia-object.h : define *_Check macros
4318 * plug-ins/python/diamodule.c : provide dia.group_create()
4319 * plug-ins/python/pydia-diagramdata.c : add
4320 DiaDiagramData.add_layer()
4321 * plug-ins/python/pydia-property.c : allow to set color by
4324 * plug-ins/python/diasvg_import.py : based on the above
4325 implement a) group support, b) rgb(1,2,3) color handling,
4326 and somewhat fishy data:image/png;base64 support (create
4327 temporary files from inline image data)
4328 d) dump the import errors as text into an 'Error' layer
4330 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
4331 stray " in draw_rect and corrected error message formating
4333 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
4334 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
4337 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
4339 * app/magnify.c (create_magnify_tool): allocate with g_new0()
4341 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
4342 preferences values (see bug 118570). Also group items into a GtkFrame.
4344 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
4349 * app/commands.c (objects_unparent_children_callback):
4351 * app/diagram.c (diagram_unparent_selected,
4352 (diagram_update_menu_sensitivity):
4353 Added unparenting of single children.
4355 * lib/bezier_conn.c:
4356 * lib/bezier_conn.h:
4357 * lib/beziershape.c:
4358 * lib/beziershape.h:
4364 * lib/neworth_conn.c:
4365 * lib/neworth_conn.h:
4372 * objects/EML/instantiation.c:
4373 * objects/EML/interaction-ortho.c:
4374 * objects/EML/interaction.c:
4375 * objects/EML/process.c:
4376 * objects/ER/attribute.c:
4377 * objects/ER/entity.c:
4378 * objects/ER/participation.c:
4379 * objects/ER/relationship.c:
4380 * objects/FS/flow-ortho.c:
4381 * objects/FS/flow-poly.c:
4382 * objects/FS/flow.c:
4383 * objects/FS/function.c:
4384 * objects/GRAFCET/action.c:
4385 * objects/GRAFCET/condition.c:
4386 * objects/GRAFCET/step.c:
4387 * objects/GRAFCET/transition.c:
4388 * objects/GRAFCET/vector.c:
4389 * objects/GRAFCET/vergent.c:
4390 * objects/Misc/analog_clock.c:
4391 * objects/SADT/annotation.c:
4392 * objects/SADT/arrow.c:
4393 * objects/SADT/box.c:
4394 * objects/UML/activity.c:
4395 * objects/UML/actor.c:
4396 * objects/UML/association.c:
4397 * objects/UML/branch.c:
4398 * objects/UML/class.c:
4399 * objects/UML/classicon.c:
4400 * objects/UML/component.c:
4401 * objects/UML/constraint.c:
4402 * objects/UML/dependency.c:
4403 * objects/UML/fork.c:
4404 * objects/UML/generalization.c:
4405 * objects/UML/implements.c:
4406 * objects/UML/large_package.c:
4407 * objects/UML/lifeline.c:
4408 * objects/UML/message.c:
4409 * objects/UML/node.c:
4410 * objects/UML/note.c:
4411 * objects/UML/object.c:
4412 * objects/UML/realizes.c:
4413 * objects/UML/small_package.c:
4414 * objects/UML/state.c:
4415 * objects/UML/state_term.c:
4416 * objects/UML/usecase.c:
4417 * objects/chronogram/chronoline.c:
4418 * objects/chronogram/chronoref.c:
4419 * objects/custom/custom_object.c:
4420 * objects/flowchart/box.c:
4421 * objects/flowchart/diamond.c:
4422 * objects/flowchart/ellipse.c:
4423 * objects/flowchart/parallelogram.c:
4424 * objects/network/bus.c:
4425 * objects/network/wanlink.c:
4426 * objects/standard/arc.c:
4427 * objects/standard/bezier.c:
4428 * objects/standard/beziergon.c:
4429 * objects/standard/box.c:
4430 * objects/standard/ellipse.c:
4431 * objects/standard/image.c:
4432 * objects/standard/line.c:
4433 * objects/standard/polygon.c:
4434 * objects/standard/polyline.c:
4435 * objects/standard/textobj.c:
4436 * objects/standard/zigzagline.c:
4437 Binary compatibility update: Added return value for foo_move() and
4438 foo_move_handle(). Orthconn derivatives also returns change from
4439 orthconn_move_handle().
4441 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
4442 doesn't support it yet.
4444 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
4445 Add returning ObjectChange from object moves. Needs to handle
4446 multiple object moves.
4448 * app/modify_tool.c (modify_motion, modify_release): Add
4449 ObjectChange from move & move_handle to undo stack.
4451 * objects/EML/instantiation.c (instantiation_move): Removing
4452 duplicate move & update.
4454 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
4456 * plug-ins/xfig/xfig-export.c: Added support for arrow head
4457 export. Many arrow types not supported by XFig, replacing those
4458 with standard arrows. Not sure whether it'd be better to render
4459 them as a group of lines instead. You'd lose the arrow-ness for
4460 further editing, but preserve the actual shape of it. Also added
4461 support for dash length.
4463 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
4465 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
4466 description for version 3.2, for reference.
4468 * plug-ins/xfig/xfig-import.c: Added import of arrows.
4470 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
4471 Align Vertical Adjacent call _v rather than _h.
4473 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
4475 * app/scroll_tool.c (create_scroll_tool):
4476 * app/modify_tool.c (create_modify_tool): use g_new0() to
4479 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
4481 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
4483 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
4485 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
4487 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
4489 * configure.in: Added Belarusian to ALL_LINGUAS.
4491 2003-07-19 Hans Breuer <hans@breuer.org>
4494 Make the xslt plug-in work on win32, too. It appears
4495 to require a quite recent version of libxml and libxslt,
4496 otherwise windoze pathes aren't translated correctly
4497 during file processing
4500 * plug-ins/xslt/xslt.h : #include <glib.h> before
4503 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
4504 the 'script' file finding similar to how it is done
4505 with the python scripts (no need for hardcoded pathes,
4506 removed the 'plugin' part from the path)
4508 * plug-ins/xslt/stylesheets.xml : added again. It does
4509 not have any path but only the pure filename again
4511 * plug-ins/xslt/stylesheets.xml.in : removed
4513 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
4514 rule to process stylesheets.xml.in
4516 * plug-ins/makefile.msc : added xslt
4518 2003-07-19 Hans Breuer <hans@breuer.org>
4520 Finally Dia learned to remember the recent selected sheet
4522 * app/preferences.[hc] : added prefs.recent_sheet
4523 * app/interface.c : restore and remember the sheet-option-menu
4524 history, but only if the respective number is stiil available.
4525 This additional adds robustness against running Dia without
4526 any sheet (e.g. installation problems)
4527 * app/app_procs.c : call prefs_safe() in app_exit() to remember
4528 changes which are not done by the prefernces dialog
4530 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
4531 removed every call (especially the conditional ones) to prefs_safe().
4532 Before prefs_safe() was called _many_ times during Dia startup
4534 2003-07-18 Hans Breuer <hans@breuer.org>
4536 * app/makefile.msc lib/makefile.msc lib/libdia.def :
4539 * lib/color.c : use gtk_widget_get_default_visual();
4540 as suggested in #114536
4542 * app/interface.c app/disp_callbacks.c :
4543 moved round_up () to the latter file where it is used
4545 * app/linewidth_area.c : #include "interface.h" for
4546 interface_get_toolbox_shell()
4548 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
4550 * plug-ins/pixbuf/.cvsignore
4551 * shapes/Cisco/.cvsignore:
4554 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
4556 * app/dia-props.c (diagram_properties_retrieve): Use
4557 diagram_get_name() to add the diagram name to the diagram
4561 * app/diagram.c (diagram_get_name): New function to get a
4562 reasonable diagram name.
4564 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
4565 info. Still need to be able to set dynamic grid. Also ought to
4566 follow Gnome style and have instant apply.
4568 * app/preferences.h:
4569 * app/preferences.c (prefs_data): Remove option to use stippled
4570 grid, add option for major line offset. Default to 5 minor lines
4572 Add option for dynamically sized grid.
4574 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
4576 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
4577 stippled/solid to display minor/major grid lines. Line drawing in
4578 separate functions away from calculating line distance.
4580 * app/grid.h: Split page break drawing out of grid_draw.
4582 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
4583 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
4584 when menu item is selected.
4586 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
4588 * configure.in: Removed -Winline flag to make way for important
4591 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
4592 non-compressed. Should fix bug #117381, also look prettier.
4595 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
4596 Set up desktop info more properly.
4598 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
4615 Autorouting directions patch from Krzysztof Foltman
4618 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
4619 GNOME parent menu items.
4621 * app/authors.h: Added Vadim to contributors list.
4623 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
4625 * app/commands.[ch]:
4626 * app/create_object.c:
4627 * app/disp_callbacks.[ch]:
4638 * objects/UML/large_package.c: Patch from Vadim Berezniker
4639 <vadim@berezniker.com>:
4640 Objects may "parent" other objects, i.e. contain them within
4641 themselves, restrain them and move them along. Some more stuff is
4642 needed, such as selection and individual unparenting. This adds
4643 parenting to UML - Large Package rather than Box.
4645 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
4647 * app/linewidth_area.c: Patch from Krzysztof Foltman
4648 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
4649 conform more, at least:).
4651 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
4652 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
4653 arcs. Implemented images (though there is some pixelization and
4654 banding in the output). Changed output file format to be a little
4657 * app/app_procs.c (app_exit): Added message for double exit, which
4658 shouldn't happen any more. Also preventing strange g_object_unref
4659 messages by having a printf after gtk_main_quit. This is really
4662 * app/interface.c (toolbox_delete): Avoid double app_exit call by
4663 removing handler for destroy when delete is called.
4665 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
4668 * app/display.c (ddisplay_scroll_to_object,
4669 ddisplay_scroll_center_point): New function for easy scrolling to
4672 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
4674 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
4675 $(srcdir) on stylesheets.xml.
4677 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
4678 diagram menus (since they're at the top by default now). Also
4679 move the Properties... menu item from Dialogs to Objects. Dialogs
4680 menu should disappear at some point.
4682 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
4683 ./configure from ./autogen.sh, as configure may need to be run
4684 from a different directory. (Also more standard this way.)
4686 * app/app_procs.c (app_init):
4687 * app/Makefile.am (INCLUDES): Gnome standardization patch from
4690 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
4692 * objects/flowchart/parallelogram.c (pgram_update_data):
4693 Left/right alignment for parallelograms. Doesn't use all
4694 available space, but then pgrams also ignore their shear value.
4695 This thing needs a loving hand.
4697 2003-07-01 Hans Breuer <hans@breuer.org>
4699 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
4700 * lib/proplist.c : don't complain if optional attr is missing
4701 * lib/orth_conn.h : make "orth_autoroute" optional to
4702 stop complaining with older files.
4704 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
4706 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
4708 2003-06-05 Andrew Halper <ashalper@cox.net>
4710 * app/diagram_tree.c : add scrolling of drawing area
4711 to desired object on "Locate". Patch modified to use new ddisplay
4712 function ddisplay_scroll_to_object().
4714 2003-06-11 Lars Clausen <lars@raeder.dk>
4716 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
4717 info. Before next version, the grid dialog (view dialog, really)
4718 must be redone to allow a) instant apply, b) apply to all
4719 diagrams, and c) setting colour, dynamic, major lines.
4721 * app/preferences.h:
4722 * app/preferences.c (prefs_data): Remove option to use stippled
4723 grid, add option for major line offset. Default to 5 minor lines
4725 Add option for dynamically sized grid.
4727 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
4729 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
4730 stippled/solid to display minor/major grid lines. Line drawing in
4731 separate function away from calculating line distance.
4733 * app/grid.h: Split page break drawing out of grid_draw.
4735 2003-05-15 Hans Breuer <hans@breuer.org>
4737 * plug-ins/python/diasvg.py : add xlink definition,
4738 also avoid to put spaces into attribute values. At least
4739 Sodipodi doesn't like them in width/height attributes
4741 * plug-ins/python/diasvg_import.py : add simple scaling.
4742 Some (more) handling for <svg>, <desc>, <circle>
4744 * plug-ins/python/scascale.py : (new file) which does
4745 some experimental scaling via StdProp api
4747 * plug-ins/python/pydia-cpoint.c
4748 plug-ins/python/pydia-handle.c : return PyDiaPoint for
4749 obj.pos not simple tuples. PyDiaPoint has a tuple interface
4750 so this may even be api compatible ...
4752 2003-05-11 Hans Breuer <hans@breuer.org>
4754 * app/line_area.c : add window position persitence
4756 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
4757 'poly_points' via StdProp api
4758 * lib/neworth_conn.h : don't rely on OrthConn and
4759 NewOrtConn having the same struct offsets
4761 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
4762 to help separating 'useful' properies - in terms of
4765 * objects/custom/custom_object.c
4767 add the missing prop_desc_list_calculate_quarks to
4768 all the *_describe_props()
4770 * objects/standard/beziergon.c objects/standard/bezier.c :
4771 explicit initializtion of default_user_data
4772 * objects/standard/polygon.c objects/standard/polyline.c :
4773 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
4775 * plug-ins/python/diamodule.c : implement dia.register_import
4777 * plug-ins/python/makefile.msc : need to link with Pango
4778 for pango_color_parse()
4780 * plug-ins/python/pydia-property.c : add a bunch of type
4781 conversions to PyDiaProperty_ApllyToObject()
4783 * plug-ins/python/diasvg_import.py : (new file) which currently
4784 is mainly a stress test for PyDia but for some files already
4785 produces better results than svg-import.c
4787 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
4789 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
4790 type-less operations.
4792 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
4794 * configure.in(ALL_LINGUAS): Added "ms".
4796 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
4798 * plug-ins/xslt/xslt.c (xslt_ok):
4799 * plug-ins/shape/shape-export.c (new_shape_renderer):
4800 * plug-ins/svg/render_svg.c (new_svg_renderer):
4801 * plug-ins/hpgl/hpgl.c (export_data):
4802 * plug-ins/dxf/dxf-export.c (export_dxf):
4803 * plug-ins/metapost/render_metapost.c (export_metapost):
4804 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
4805 * plug-ins/xfig/xfig-export.c (export_fig):
4806 * plug-ins/wpg/wpg.c (export_data):
4807 * plug-ins/cgm/cgm.c (export_cgm):
4808 * app/render_eps.c (export_eps):
4809 * app/export_png.c (export_png_ok):
4810 * app/load_save.c (diagram_data_save): Adding and standardizing
4811 output file error messages to include fopen error message.
4813 2003-05-01 Steffen Macke <sdteffen@web.de>
4815 * app/persistence.c: do not use unistd.h for MSVC build
4817 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
4819 * sheets/Assorted.sheet.in
4820 * sheets/Circuit.sheet.in
4821 * sheets/Contact.sheet.in
4822 * sheets/EML.sheet.in
4823 * sheets/ER.sheet.in
4824 * sheets/Electric.sheet.in
4825 * sheets/FS.sheet.in
4826 * sheets/Flowchart.sheet.in
4827 * sheets/GRAFCET.sheet.in
4828 * sheets/Logic.sheet.in
4829 * sheets/MSE.sheet.in
4830 * sheets/Misc.sheet.in
4831 * sheets/Pneumatic.sheet.in
4832 * sheets/SADT.sheet.in
4833 * sheets/SDL.sheet.in
4834 * sheets/UML.sheet.in
4835 * sheets/chronogram.sheet.in
4836 * sheets/ciscohub.sheet.in
4837 * sheets/ciscomisc.sheet.in
4838 * sheets/cisconetwork.sheet.in
4839 * sheets/ciscorouter.sheet.in
4840 * sheets/civil.sheet.in
4841 * sheets/network.sheet.in
4842 * sheets/sybase.sheet.in:
4843 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
4844 standardizes shape descriptions to use no articles, no 'create
4847 * app/interface.c (tool_data): Standard objects follow same
4850 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
4852 * app/color_area.c (color_area_edit): More informative title on
4853 color selection dialog.
4855 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
4856 sensitivity when dropping object in. Also reset tool to pointer.
4858 * objects/flowchart/diamond.c (diamond_update_data):
4859 * objects/flowchart/parallelogram.c (pgram_update_data): Added
4860 left and right alignment options.
4862 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
4864 * objects/flowchart/box.c: Added left and right alignment options.
4866 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
4868 * app/persistence.c (persistence_load): Test existence of
4869 persistence file before trying to open it.
4871 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
4873 * app/properties.c: Escape now closes properties dialogs.
4875 2003-04-25 Hans Breuer <hans@breuer.org>
4877 * app/config.h.win32 : bump version to 0.91+cvs
4879 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
4881 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
4883 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
4886 * app/presistence.c : need to #include "dia_xml_libxml.h"
4889 * app/layer_dialog.c : make delayed creation work by protecting
4890 all non static layer_dialog_*() with :
4891 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
4892 create_layer_dialog();
4893 * app/app_procs.c : removed /* create_layer_dialog(); */
4895 * objects/uml/association.c : give it a minimal StdProp
4896 implementation to fix bug #108896
4897 * lib/object_defaults.c : don't try to copy props if there
4898 is no obj->ops->describe_props
4900 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
4902 * objects/standard/image.c (image_create):
4903 * objects/standard/ellipse.c (ellipse_create):
4904 * objects/standard/box.c (box_create):
4905 * objects/flowchart/ellipse.c (ellipse_create):
4906 * objects/flowchart/diamond.c (diamond_create):
4907 * objects/flowchart/box.c (box_create):
4908 * objects/custom/custom_object.c (custom_create):
4909 * objects/ER/relationship.c (relationship_create):
4910 * objects/ER/entity.c (entity_create):
4911 * objects/ER/attribute.c (attribute_create): Initialize
4912 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
4914 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
4918 * plug-ins/Makefile.am:
4919 * plug-ins/xslt/Makefile.am:
4920 * plug-ins/xslt/xslt.c (dia_plugin_init):
4921 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
4922 automake-style if to only include xslt dir when needed. Works
4923 with automake 1.4 and up, at least.
4925 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
4927 * lib/diasvgrenderer.c (draw_string):
4928 * lib/dia_svg.c (dia_svg_parse_style): Use
4929 text-anchor:(start|middle|end).
4931 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
4932 polygon rather than polyline & avoid missing line pieces.
4933 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
4934 black-filled things.
4936 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
4938 * app/persistence.c (persistence_load): Check that persistence
4939 file exists before trying to read it.
4940 (persistence_update_window): Removed printf.
4942 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
4944 * lib/autoroute.c: Take badness into the layouters again, as some
4945 of them know they can do things that are pretty but would be
4946 counted as ugly by the default calculation.
4948 * objects/UML/large_package.c: Shrink package name box when no
4949 stereotype is present.
4951 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
4952 * lib/orth_conn.c: Added object menu item for autorouting.
4954 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
4955 Autorouting, plus set initial dragging handle to be the end, not
4957 (orthflow_draw): Flipped arrow place to be at the end, as
4958 originally intended (got lost in arrow update).
4960 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
4961 * objects/UML/dependency.c (dependency_get_object_menu):
4962 * objects/UML/association.c (association_get_object_menu):
4963 * objects/UML/realizes.c (realizes_get_object_menu):
4964 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
4965 * objects/GRAFCET/vector.c (arc_get_object_menu):
4966 * objects/ER/participation.c (participation_get_object_menu):
4967 * objects/EML/instantiation.c (instantiation_get_object_menu):
4968 * objects/UML/generalization.c (generalization_get_object_menu):
4969 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
4970 Autorouting setup (currently disabled for SADT/arrow).
4972 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
4974 * lib/autoroute.c: Removed printfs.
4977 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
4978 non-connected orthconns too.
4980 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
4983 * lib/orth_conn.c: Function to set autorouting on/off, use
4984 autorouting in move_handle (turns off when a middle handle is
4985 moved), added to standard orthconn props.
4987 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
4988 Stopped signal emission for check menu items being set to on/off.
4990 * objects/standard/zigzagline.c: Added autorouting object menu item.
4992 * lib/autoroute.c: Added last cases of autoroute layout, fixed
4993 floating point comparison bug, cleaned up layouters, tweaked
4994 badness to allow kinks.
4996 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
4998 * lib/connectionpoint.h: Changed DIR_* macros to go around the
5001 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
5003 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
5004 old cruft, added call to autoroute (currently cannot be turned
5005 off). Need to check what undo thinks about this.
5006 * lib/autoroute.[ch]: Fairly working simple layout.
5008 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
5009 * lib/autoroute.[ch]: Start of proper autorouting functionality.
5011 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5013 * lib/prop_widgets.c: Show labels on ListProp.
5015 2003-04-11 Steffen Macke <sdteffen@web.de>
5017 * doc/en/dia-manual.xml: removed reference of non-existing authors
5019 * doc/en/usage-objects-selecting: commented out misleading section
5022 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5024 * app/app_procs.c (app_init): Layer window now opened at startup
5027 * lib/prop_widgets.c: Show labels on ListProp.
5029 2003-04-09 Steffen Macke <sdteffen@web.de>
5031 * doc/en/*.sgml: removed files
5032 * doc/en/*.xml: added files
5033 * doc/en/Makefile.am: switched to XML DocBook
5035 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
5037 * plug-ins/xslt/xslt.c (dia_plugin_init):
5038 * configure.in: Added --with-xslt-prefix to allow other XSLT
5039 placements than /usr/lib.
5041 2003-04-09 Steffen Macke <sdteffen@web.de>
5043 * lib/makefile.mingw: updated to include latest files, including
5045 * lib/geometry.h: don't define isinf and finite for mingw gcc build
5047 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
5049 * app/persistence.h:
5050 * app/persistence.c (persistence_register_window_create):
5051 * app/app_procs.c (app_init):
5052 Register window function that doesn't create the window unless it
5053 should be open. Other windows should move to this, so startup
5054 speed can be reduced.
5056 * app/persistence.h: Removed call prototype for update_window, now
5058 * app/persistence.c (persistence_register_window): A number of
5059 fixes. Doesn't forget position when window is closed. Now
5060 actually loads prefs.
5062 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
5065 * app/preferences.c (prefs_data):
5066 * app/diagram_tree_window.h:
5067 * app/diagram_tree_window.c: Added persistence registering.
5068 Removed prefs items storing size and openness.
5070 * app/sheets_dialog.c (create_sheets_main_dialog): Added
5071 persistence registering.
5073 * app/Makefile.am (dia_core_files): Added persistence files.
5076 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
5077 that dirs are present.
5079 * app/app_procs.c (app_init): Loads persistent values on startup.
5080 (app_exit): Saves persistent values on exit.
5082 * app/layer_dialog.c (create_layer_dialog): Registers the layer
5083 window for persistence.
5085 * app/persistence.[ch]: New files handling various kinds of
5088 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
5090 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
5091 head spacing calculations. Added half-circle arrow from Matthieu
5092 Sozeau <mattam@netcourrier.com>
5094 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
5096 * app/app_procs.c (app_init): Moved layer dialog init to allow
5097 tooltips to be initialized.
5099 * app/interface.c (create_display_shell): More tooltips.
5101 * app/linewidth_area.c (linewidth_area_create)
5102 (linewidth_area_events):
5103 * app/color_area.c (color_area_events, color_area_create):
5104 Made tooltips work by embedding drawing_area in event_box.
5106 * app/interface.c (create_display_shell,
5107 (create_lineprops_area, create_color_area): Added a few tooltips.
5109 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
5111 * app/pixmaps/off-grid.xpm:
5112 * app/pixmaps/on-grid.xpm:
5113 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
5116 * app/commands.c (view_snap_to_grid_callback):
5117 * app/display.c (ddisplay_set_snap_to_grid)
5118 (update_snap_grid_status):
5119 * app/interface.c (create_display_shell, grid_toggle_snap):
5120 Added snap-to-grid status button.
5122 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
5124 * app/app_procs.c (app_init): Create a new diagram if a file on
5125 the command line isn't found.
5127 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
5129 * lib/dialibartrenderer.c (draw_string): Correct color handling
5132 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
5135 * doc/en/dia-manual.sgml:
5136 * doc/pl/dia-manual.sgml:
5138 * dia.spec (Release):
5139 Version 0.91 is here!
5141 2003-02-10 Steffen Macke <sdteffen@web.de>
5143 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
5144 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
5145 non-ANSI characters, closes #107980
5147 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
5151 * dia.spec (Release):
5152 * doc/en/dia-manual.sgml: Upping to pre6.
5154 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
5156 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
5157 #107511: Make arrow selector for correct arrow type.
5159 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
5161 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
5164 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
5166 * doc/en/dia-manual.sgml:
5169 * dia.spec (Release): Upping to pre5.
5171 * configure.in: Add freetype-config derived libs to the
5172 AC_CHECK_LIB statement for freetype.
5174 2003-02-28 Hans Breuer <hans@breuer.org>
5176 [fix for bug #107203]
5178 * lib/diarenderer.c : add warning 'implementation'
5179 for fill_rect to avoid crashing with a renderer
5180 which does not implement this required function.
5182 * plug-ins/dxf/dxf-export.c : provide - still empty -
5183 'implementations' for fill_rect and fill_polygon
5184 to suppress the above warnings. Now it works like
5187 2003-02-28 Steffen Macke <sdteffen@web.de>
5189 * samples/all_objects.dia: New sheet containing all dia shapes
5190 and objects; one layer per sheet
5192 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
5194 * lib/prop_text.c (multistringprop_get_widget,
5195 multistringprop_reset_widget, multistringprop_set_from_widget):
5196 Now uses GtkTextView instead of deprecated stuff, and also works:)
5198 * configure.in: Slightly more informative error message for isinf.
5200 * dia.spec (Requires): Require libxml2 rather than libxml.
5202 2003-02-28 Steffen Macke <sdteffen@web.de>
5204 * shapes/Circuit/hjumper.png:
5205 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
5208 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
5210 * doc/en/dia-manual.sgml:
5212 * dia.spec (Release):
5213 * NEWS: New prerelease 0.91pre4, two important fixes.
5215 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
5217 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
5220 * app/commands.c (help_manual_callback): More correct URL for help
5221 page (include file://, was broken on Dillo without it).
5223 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
5225 * app/disp_callbacks.c: Set modifed when text is changed.
5227 * app/modify_tool.c (modify_button_release): Allow undo for moving
5230 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
5233 * doc/en/dia-manual.sgml:
5235 * configure.in: New prerelease with important bugfix.
5236 * shapes/network/digitizing_board.png:
5237 * shapes/network/plotter.png: Re-adding with -kb.
5239 2003-02-17 Abel Cheung <maddog@linux.org.hk>
5241 * app/app_procs.c (app_init): Add comment for translators.
5243 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
5245 * lib/filter.c (filter_register_import, filter_register_export):
5246 Don't accept filters with NULL description.
5248 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
5249 (as we assume the description is available in other places).
5251 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
5253 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
5254 * app/display.c (ddisplay_resize_canvas): Use
5255 ddisplay_add_update_all().
5256 (ddisplay_add_update_all): Free display and update lists when
5257 doing update_all, as they'll be regenerated immediately to cover
5258 all visible area. Fixes bug #106165, crash when resizing. This
5259 appears to be the original AA crash bug, believed long extinct.
5261 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
5263 * app/commands.c (help_manual_callback): Use file: protocol for
5266 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
5268 * plug-ins/xslt/stylesheets: Removed old-style config file.
5270 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
5272 * plug-ins/xslt/Makefile.am:
5273 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
5274 handling (no more DIA_PLUGIN_PATH).
5276 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
5278 * plug-ins/svg/render_svg.c:
5279 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
5281 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
5283 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
5284 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
5285 side of the triangle is longer than the hypotenuse. Rounding
5288 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
5292 * doc/en/dia-manual.sgml: Update for pre2.
5294 * app/menus.c (display_menu_items): Fixed wrongly place separators.
5296 * objects/flowchart/box.c (box_update_data): Applied patch from
5297 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
5300 * app/paginate_psprint.c (print_page): Set paper name, so it
5301 convinces ps printers to use to right size.
5303 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
5305 * app/properties.c (properties_show): Hide the dialog if the
5306 object is NULL (get rid of 'no properties' randomly popping up).
5308 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
5310 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
5311 for diagrams not starting at origo.
5313 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
5315 * dia.spec (BuildRequires): Use libxml2-devel.
5317 * plug-ins/pixbuf/Makefile.am: Added to CVS.
5319 * RELEASE-PROCESS: Note on RPM version numbers.
5321 * app/interface.c (create_display_shell): Don't set as toolbar
5322 under Unix, either. Especially not the diagram shell. It removes
5323 it from the taskbar and makes it unresizable, always-on-top with
5324 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
5325 appropriate thing, UTILITY, is not good either, you lose resizing
5326 and minimizing/maximizing under OpenBox.
5328 * app/menus.c (display_menu_items): Set delete item to use Delete.
5330 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
5332 * dia.spec (BuildRequires, Requires): Updated for Gtk2
5335 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
5336 display flush when getting focus in, or we may get an update after
5337 the diagram has been destroyed in some cases. Fixes bug #105221.
5339 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
5341 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
5343 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
5344 - gnome-compiled Dia will now read files specified on the command line.
5346 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
5348 * INSTALL (REQUIREMENTS): Updated requirements section.
5350 * configure.in: Better finite() check from Mårten Svantesson
5351 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
5354 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
5356 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
5358 * app/app_procs.c (debug_break): Added some code to avoid
5359 over-eager optimizations removing the call. Surely there's a
5360 nicer way, but I'm not sure how.
5362 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
5363 that set text to black.
5365 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
5367 * NEWS: Mention of Twiki as doc source for Python.
5369 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
5370 libart/libpng is not available. Later when we have a way of
5371 letting the user pick options in the file select dialog we shall
5372 allow the choice when applicable.
5374 2003-02-02 Steffen Macke <sdteffen@web.de>
5376 * doc/en/usage-loadsave.sgml:
5377 * doc/en/usage-objects.sgml: patch from
5378 James K. Lowden <jklowden@schemamania.org> to fix
5381 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
5383 * plug-ins/Makefile.am (SUBDIRS):
5384 * plug-ins/pixbuf/pixbuf.c:
5385 * plug-ins/pixbuf/Makefile.am:
5387 Added pixbuf plugin to Makefile.am, but for import only. PNG
5388 export handled by libart, which is better. JPG export is
5389 discouraged. BMP is not much used on Unix. Next release will
5390 integrate libart to allow all outputs.
5392 2003-02-01 Hans Breuer <hans@breuer.org>
5394 * app/preferences.c :
5396 the last two dialogs with 'old' button order finally
5397 are converted to gtk2, no GnomeDialog in all of Dia
5400 2003-02-01 Hans Breuer <hans@breuer.org>
5402 * app/filedlg.c : don't try to use a button as
5403 'overwrite-file-dialog'-parent, use the FileSelDialog
5406 * plug-ins/pixbuf/pixbuf.c : make it work with
5407 system-visual-depth < 24. Remove 'bmp' from output
5408 format extensions, it just was wishful thinking.
5410 * plug-ins/python/Makefile.am : added the four new python
5411 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
5413 2003-02-01 Hans Breuer <hans@breuer.org>
5415 * NEWS : updated content beside dependencies
5417 2003-02-01 Hans Breuer <hans@breuer.org>
5419 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
5420 to make it useable across DLL boundaries
5421 * app/lineprops_area.c : same code to access arrow_types
5424 * objects/UML/class.c : the non empty string is e.g.
5425 comment != NULL && comment[0] != '\0'
5426 * objects/UML/uml.c : same here, don't bother with
5427 empty operation stereotypes
5429 2003-02-01 Steffen Macke <sdteffen@web.de>
5431 * app/lineprops_area.c: latest changes do not work on
5432 windows, using old code without tooltips
5433 * makefile.msc: fixed copying of wmf.dll
5434 * plug-ins/makefile.msc:
5436 * lib/makefile.msc: now linking libintl
5437 * config.h.win32: enabling native language support
5439 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
5441 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
5442 -ldl and -lglib. May or may not work on windows...awaiting verdict.
5444 2003-01-31 Daniel Yacob <locales@geez.org>
5446 * configure.in: Added am (Amharic) to ALL_LINGUAS.
5448 2003-01-31 Steffen Macke <sdteffen@web.de>
5450 * objects/UML/class.c (umlclass_calculate_data): fixed crash
5451 when comments were visible, no class comment available and
5454 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
5456 * RELEASE-PROCESS: Updated to fit new install-module syntax.
5457 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
5460 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
5466 Prerelease version changes, version 0.91-pre1.
5468 * app/sheets_dialog_callbacks.h:
5469 * app/sheets_dialog_callbacks.c:
5470 * app/sheets_dialog.c (create_sheets_main_dialog):
5471 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
5472 to handle destruction of main dialog cleanly, but it's a mess.
5474 * configure.in: Downgraded ieeefp test to make it not produce
5477 * lib/widgets.c (dia_arrow_selector_set_arrow):
5478 (dia_line_style_selector_set_linestyle): Select menu dot
5481 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
5482 adjustment for diamondheads.
5484 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
5486 * app/properties.c (create_dialog): Destroy properties dialog and
5489 * app/sheets_dialog_callbacks.c
5490 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
5491 if the old one is destroyed.
5493 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
5495 * app/export_png.c (export_png_ok): Added info on resolution.
5496 Should (next release) improve export dialog to allow setting
5497 resolution instead of pixels.
5499 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
5500 to generate arrowheads as well as tooltips.
5502 * lib/arrows.c: Added hollow diamond to menudesc list.
5505 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
5506 unify with rendered menu.
5508 * lib/diarenderer.c (draw_line_with_arrows)
5509 (draw_polyline_with_arrows, draw_arc_with_arrows)
5510 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
5511 without changing renderer API. Thanks to David Scherba for
5512 providing inspiration.
5514 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
5516 * app/interface.c (create_display_shell):
5517 * app/display.h: Patching from Hubert Figuiere
5518 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
5521 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
5523 * app/defaults.c (defaults_show): Fixed defaults closing bug.
5524 Thanks to Hans for pointing it out.
5526 2003-01-25 Hans Breuer <hans@breuer.org>
5528 * app/commands.c : don't warn about crashing libart renderer
5529 on win32. It simply doesn't render text anymore :-(
5531 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
5533 * objects/UML/class.c : don't access umlclass->properties_dialog
5534 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
5535 which sets the former to NULL by destroy_properties_dialog() callback.
5537 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
5539 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
5541 * plug-ins/python/pydia-image.c : add image.uri member
5542 not only useful for SVG rendering
5544 * plug-ins/python/diasvg.py : (new file) a more advanced
5545 example. A full blown SVG Renderer, currently only
5546 registered for .svgz
5548 * plug-ins/python/export-object.py : write text props
5550 * plug-ins/python/debug_objects.py : write prop.type and
5553 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
5555 * objects/UML/association.c (association_update_data): Better
5556 bounding box for assoc with arrows.
5558 * lib/properties.h: New flag for properties with multiple values
5561 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
5562 arrow updating in dialog. Was broken due to changes from destroy
5565 * app/commands.c (view_aa_callback): AA warning only for Windows
5566 -- I trust the Unix side well enough.
5568 * app/render_libart.c (get_text_width):
5569 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
5570 font height can be taken from parent instance.
5572 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
5573 (get_text_width): Proper cursor positioning for libart renderer.
5574 Ought to have a DiaInteractiveRenderer that these two can inherit
5575 from, that knows about transform.
5577 2003-01-25 Steffen Macke <sdteffen@web.de>
5579 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
5580 plug-in still not working on win32
5582 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
5584 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
5585 gdk_window_get_pointer to avoid destroy crash. Simpler than I
5588 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
5590 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
5591 bail out on gtk options.
5593 * lib/message.c (gtk_message_internal): Better handling of destroy
5596 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
5598 * app/color_area.c (color_area_edit):
5599 * lib/widgets.c (dia_file_selector_browse_pressed)
5600 (dia_color_selector_pressed):
5601 * app/plugin-manager.c (get_plugin_manager):
5602 * app/filedlg.c (file_open_callback, file_save_as_callback)
5603 (file_export_callback):
5604 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
5605 handling of destroy event.
5607 2003-01-22 Alan Horkan <horkana@tcd.ie>
5609 * app/commands.c (file_new_callback): Changed Untitled to Diagram
5612 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
5614 * app/preferences.c (prefs_create_dialog):
5615 * app/linewidth_area.c (linewidth_create_dialog):
5616 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
5617 * app/layer_dialog.c (create_layer_dialog)
5618 (layer_dialog_edit_layer): Correct handling of destroy signal.
5620 * app/diapsft2renderer.c (set_font): Adjust silly random factor
5621 for change in font.c
5623 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
5625 * lib/font.c (dia_font_build_layout): Let's all use the same weird
5628 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
5629 * app/layer_dialog.c (create_layer_dialog)
5630 (layer_dialog_edit_layer):
5631 * app/filedlg.c (file_open_callback, file_save_as_callback)
5632 (file_export_callback):
5633 * app/dia-props.c (create_diagram_properties_dialog):
5634 * app/defaults.c (defaults_dialog_destroyed):
5635 * app/color_area.c (color_area_edit): Dialog destroy event handling.
5637 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
5639 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
5640 defaults dialog destroyed.
5642 2003-01-19 Steffen Macke <sdteffen@web.de>
5644 * objects/makefile.msc: added bondgraph
5645 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
5646 to compile pixbuf.dll
5647 * makefile.msc: copying all objects and dlls now
5649 2003-01-19 Hans Breuer <hans@breuer.org>
5651 * app/diagram.[hc] : provide dia_open_diagrams(), make
5652 open_diagrams variable static
5653 * app/dia.def : export it (to be used by PyDia)
5654 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
5655 app/display.c app/dynamic_refresh.c app/layer_dialog.c
5656 app/load_save.c : make use of dia_open_diagrams()
5658 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
5659 on win32. It removes the diagram window from the taskbar and
5660 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
5662 * app/menus.c : add '...' to menu entries where a dialog
5664 * app/recent_files.c app/dia_embedd.c : reflect the above in
5665 menus_get_item_from_path() calls
5667 * lib/libdia.def : add dia_image_rgba_data
5669 * lib/properties.h lib/prop_text.[hc] : add new property
5671 * objects/UML/class.[hc] object/UML/class_dialog.c : use
5672 StringList for attributes_strings and operations_strings to
5673 make this calculated data accessible via the Property API
5675 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
5676 provide dia.new() to create a new diagram, dia.registered_types()
5677 to get on Dia's type registry, dia.message() for simple dialogs
5679 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
5680 to create a new display from a diagram. Let diagram.extents and
5681 diagram.bg_color return the same types as in diagramdata.*
5683 * plug-ins/python/pydia-geometry.c : add a read-only
5684 'sequence interface' to DiaPoint and DiaRectangle
5686 * plug-ins/python/pydia-property.c : allow to get on StringList
5689 * plug-ins/python/pydia-render.c : fix typo to make it compile
5691 * plug-ins/python/python-startup.py : removed 'import pygtk'
5692 again. This file does not need any gtk UI, and some python
5693 plug-ins don't do either
5695 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
5696 it should actually work as intended again
5698 * plug-ins/python/group_props.py : (new file) a prototype for
5699 one the most requested features: Change properties of selected
5700 objects in one step. Requires pygtk.
5702 * plug-ins/python/select_by.py : (new file) select objects by
5703 common properties. Requires pygtk.
5705 [Start of 'PyDia Self Documentation Series']
5707 * plug-ins/python/pydiadoc.py : (new file) generates a new
5708 diagram which contains all objects of dir(dia)
5710 * plug-ins/python/otypes.py : (new file) generates a new diagram
5711 which contains all the currently registered object types sorted
5712 by their containing package
5714 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
5716 * configure.in: Added check for Pango >= 1.1.5, which appears to
5717 be enough to have text work.
5718 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
5719 do it. AC_SUBST should be idempotent, though.
5721 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
5723 * configure.in (HAVE_FREETYPE): Better test for freetype version
5725 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
5727 * lib/font.c: Renamed global_size_one to global_zoom_factor to
5728 avoid confusion, and added comment. Set scale factor in
5729 dia_font_build_layout to 1.0 for Unix side. This fixes at least
5730 my weird scaling problems. Fonts are now of the expectable size,
5731 i.e. the space between lines at size 1.0 is 1.0. If we want a
5732 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
5733 diagrams, though there will always be differences.
5735 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
5737 * plug-ins/python/python-startup.py:
5738 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
5740 * plug-ins/python/python.c (dia_plugin_init): Added warning
5741 message for missing startup file.
5743 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
5745 * lib/dia_image.c (dia_image_rgb_data):
5746 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
5747 involving EPS. Can't do transparency in EPS yet.
5750 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
5751 data as one chunk. Documentation for the RGB data getting funcs.
5752 (dia_image_rgb_data): Added comment.
5754 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
5757 2003-01-13 Steffen Macke <sdteffen@web.de>
5759 * lib/dia_image.c: dia_image_rgb_data() is working for
5760 non-alpha images now. Fixes #93762
5761 * Makefile.am: added makefile.msc to EXTRA_DIST
5763 2003-01-10 Steffen Macke <sdteffen@web.de>
5765 * app/paginate_psprint.c: Closing print dialog when file
5766 could not be written. Fixes #84746
5768 2003-01-04 Steffen Macke <sdteffen@web.de>
5770 * doc/custom-shapes: incomplete description of <svg:text>
5772 2003-01-03 Steffen Macke <sdteffen@web.de>
5774 * makefile.msc(new): new makefile to create file
5775 structure suitable for running dia win32 under
5776 $(TOP)/dia/build/win32
5778 2003-01-02 Steffen Macke <sdteffen@web.de>
5780 * lib/dia_svg.c: including stdlib.h
5781 * lib/makefile.msc: added gdk_pixbuf libs to linker
5782 * app/makefile.msc: added gdk_pixbuf libs, made libart
5783 libs compatible with gnuwin32 package
5785 2003-01-01 Hans Breuer <hans@breuer.org>
5787 * lib/font.c : more comment about global_size_one
5789 * app/menus.c : <control>[<shift>]A for plain gtk build too.
5791 * plug-ins/wmf/wmf.cpp : some type juggling to make
5794 2002-12-31 Steffen Macke <sdteffen@web.de>
5796 * app/makefile.msc: added hint on how to enable console output
5798 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
5800 * objects/standard/textobj.c (textobj_load): Get the handle type
5801 right, at least to be the same as when created.
5803 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
5805 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
5807 2002-12-08 Hans Breuer <hans@breuer.org>
5809 * app/commands.c : fixed bug #85315 'give diagram properties,
5810 instead of no object selected error' almost a one-liner
5812 * app/splash.c : don't make having the logo pixmap
5813 mandatory. Fixes bug #96068.
5815 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
5816 sequence by connecting to the "delete_event"
5817 * app/objects/uml/class_dialog.c : handle "destroy" for
5820 * lib/libdia.def : remove diaXmlNewChild again
5822 * app/paginate_gdiprint.cpp : reflect Dia's page setting
5823 portrait/landscape in the windoze print dialog
5825 * objects/makefile.msc : only UML needs to link against
5826 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
5828 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
5830 * objects/standard/ellipse.c (ellipse_distance_from):
5831 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
5832 correct distance function. Could be faster, but it's not really
5835 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
5837 * lib/font.c: Changed global_size_one to more correct 28.35.
5842 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
5845 2002-12-07 Hans Breuer <hans@breuer.org>
5847 * lib/widgets.c : g_file_get_contents() silently assumes
5848 a binary file. Reflect when creating the font_menu file
5849 to get rid of junk in font menus
5851 2002-12-06 Hans Breuer <hans@breuer.org>
5853 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
5854 removed 0xD 0xD 0xA line ends which get created by
5855 cvs if windoze line ends 0xD 0xA are checked in from
5856 *nix and checked out on win32.
5858 * app/preferences.c : changed toolbox_on_top default to
5859 false. It is currently not possible to change the behaviour
5860 at runtime, at least not on win32.
5862 * lib/dialibartrenderer.c : bug #94791 'rendering to
5863 bitmap without PangoFt2' got delayed to milestone future
5864 so wrap libart text rendering into PANGO_WIN32_FUTURE.
5865 It is not available without my Pango patch in bugzilla.
5867 * lib/font.c : added comment to global_size_one and adapt
5868 the arbitrary size scaling in dia_font_build_layout() for
5869 win32, too. This is needed to get an acceptable font size
5870 approximation for Dia 0.90 and earlier files.
5871 Also #include "message.h".
5873 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
5874 reflect movement of group.[hc]
5875 * lib/group.h : export group_type which gets used by app/*
5877 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
5878 to get the GtkTypeInfo definition
5880 * plug-ins/makefile.msc : dxf and xfig don't need to link
5881 against app/ anymore now that group is moved to lib/
5883 * plug-ins/python/pydia-render.c : remove massive leaking
5884 of self, i.e. PyDiaRenderer
5886 * plug-ins/python/makefile.msc : remove linking against
5889 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
5891 * objects/standard/line.c: Removed properties options for gaps,
5892 until release is done.
5894 * configure.in: Check for freetype version.
5896 * lib/text.c (text_insert_char): Fixed small buffer overflow for
5899 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
5901 * app/diapsft2renderer.h:
5902 * app/diapsft2renderer.c:
5903 * app/diapsrenderer.h:
5904 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
5906 * app/render_eps.c (export_eps, new_psprint_renderer): Using
5907 PS_FT2 renderer when available. Old render stuff killed. Yay!
5909 * lib/properties.h: Fixed bad frame end def.
5911 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
5913 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
5915 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
5917 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
5919 * lib/font.c: Now checking for the proper dia-style standard fonts.
5922 * app/Makefile.am: Moving group.[ch]
5924 * plug-ins/dxf/dxf-import.c:
5925 * plug-ins/xfig/xfig-import.c:
5926 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
5930 * lib/object.c (object_list_move_delta, object_copy_list):
5931 * lib/object.h: Moved some object-related functions from
5932 object_ops to object to assist moving group.c.
5934 * lib/diatypes.h: Added Group typedef.
5937 * lib/group.c: Moved from app to lib to a) resolve plug-ins
5938 references, and b) make groups more "real" objects.
5940 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
5942 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
5944 * lib/font.c (dia_font_init): Added check that the three standard
5947 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
5950 * app/load_save.c: Linebreaks in dia files, no indentation.
5951 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
5954 * objects/standard/line.c: Small but important fixes to the line
5958 * lib/dia_xml.c (diaXmlNewChild):
5959 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
5960 XML prettyprinting wrapper.
5962 2002-12-03 Steffen Macke <sdteffen@web.de>
5964 * shapes/Cisco/Makefile.am:
5965 * shapes/Cisco/*.shape: finished conversion of Cisco icons
5968 2002-12-02 Steffen Macke <sdteffen@web.de>
5970 * doc/en/Makefile.am:
5971 * doc/en/usage-objects.sgml:
5972 * doc/en/graphics/line_icon.png: (new) added line icon
5974 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
5976 * objects/standard/line.c: Binary search object edge line gap.
5978 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
5980 * configure.in: Added Cisco makefile, sorted Makefiles list.
5982 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
5984 * configure.in: Now checks for availability of PangoFT2 and
5985 FreeType, raising an error if not found.
5987 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
5990 2002-12-01 Steffen Macke <sdteffen@web.de>
5992 * doc/en/usage-loadsave.sgml: updated information on import
5995 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
5997 * app/commands.c (edit_copy_callback): Freeing copy_list.
5999 2002-11-28 Steffen Macke <sdteffen@web.de>
6001 * app/render_libart.c: art_config.h was included twice
6003 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
6005 * sheets/.cvsignore: More ignorance.
6007 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
6009 * lib/prop_widgets.h: Two (currently unused) settings for frame
6012 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
6013 (by default) foldable.
6015 * lib/propinternals.h:
6016 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
6017 widgets in a more controlled manner.
6019 * objects/standard/line.c (line_update_data): Line gap things
6020 inserted. Can do xeyes now:)
6022 2002-11-26 Christian Neumair <chris@gnome-de.org>
6024 * .cvsignore: Changed.
6025 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
6026 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
6029 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6031 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
6033 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
6034 passing to font hash.
6036 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
6037 utf-8 or locale-convertible before adding to dialog text. This
6038 probably needs done in a number of places where we get text from
6039 the environment and send it to GTK to display.
6041 * lib/widgets.c: Fixed case problems for font menu entries.
6043 * objects/SADT/annotation.c: Don't run the event test (but leave
6044 it here for inspiration).
6047 * lib/widgets.h: Allowing setting preview text for fonts.
6049 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6051 * objects/bondgraph/Makefile.am:
6052 * objects/bondgraph/bondgraph.c:
6054 * objects/Makefile.am: Added bond graph dir.
6056 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6058 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
6060 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
6062 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
6065 * app/diapsrenderer.c: Freetype rendering is back in force.
6067 * app/disp_callbacks.c: Added missing updates for pre-text-change.
6069 2002-11-25 David Hoover <jazzdaq@yahoo.com>
6071 * app/render_libart.c: Added missing #include line for libart.
6074 * lib/geometry.c: Added point_convex function. This computes
6075 points inside a line segment (0 <= alpha <= 1) or outside the
6076 line segment (alpha < 0 | alpha > 1).
6078 * objects/standard/line.c: Line now has additional code/attributes
6079 which permit the line to extend past the line anchors (gap < 0) or
6080 leave a gap without reaching the anchor (gap > 0). If no gap is
6081 specified, the default gap of 0 will result in identical line
6082 behavior as before. If the 'fractional' attributes are TRUE, the
6083 gap length is not fixed, but a percentage of the line length. I
6084 did not know how create the GTK widgets so the gap code currently
6085 cannot be used without adding XML attributes by hand.
6087 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
6089 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
6091 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
6093 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
6095 * lib/font.c: Debugging functionality in separate functions.
6097 * lib/widgets.c: Using fontsel with context.
6099 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
6101 * objects/custom/custom_object.c: Orientation handling for shapes,
6102 patch thanks to Martin Hans <opfinder@gmx.net>.
6104 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
6105 work on even better orientation handling.
6107 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
6108 casting NULL pointers. Should be unnecessary in an upcoming GTK
6111 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
6115 * lib/widgets.c: Now uses correct context to get font families.
6117 * lib/diagdkrenderer.c (get_text_width, draw_string):
6118 * lib/dialibartrenderer.c (draw_string):
6120 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
6121 (dia_font_build_layout): Unified the twiddle factors into a use of
6122 global_size_one. But I deeply distrust Pango for seeming to
6123 change size of fonts every time I turn my back.
6128 * app/menus.h: Updated some more methods to also be more specific
6132 * app/recent_files.c:
6133 Changed to return most specific type, to avoid run-time type errors.
6135 * app/menus.c (menus_get_item_from_path): Non-gnome version now
6136 gets menu_item rather than widget, which works better.
6138 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
6140 * app/display.c: (new_display):
6141 * app/menus.c: (menus_get_item_from_path):
6142 Relying on the tearoff to locate the input methods menu wasn't a
6143 good idea: tearoffs seem to be an endangered species nowadays.
6144 Anyway, the IM menu seems to be working now.
6146 * app/interface.c: hinted the window manager that the toolbox window
6147 is a toolbox window. Not that my (fairly default configuration)
6148 sawfish cares, but other NETWM compliant WMs may.
6155 * app/layer_dialog.c:
6156 * app/linewidth_area.c:
6158 * app/sheets_dialog.c:
6161 The GTK doc says to avoir gtk_window_set_wmclass() and
6162 gtk_window_set_policy(), and use gtk_window_set_role() and
6163 gtk_window_set_resizable(), respectively.
6165 * app/preferences.c: (prefs_create_dialog):
6166 * app/preferences.h:
6167 * app/display.c: (display_set_active):
6168 Added a preference to have the toolbox hover over diagram windows.
6170 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
6172 * lib/diagdkrenderer.c (get_text_width, draw_string):
6173 Freetype-based string drawing now works. Not very fast, though.
6174 I wish I could use the graphics card for this:( I'm doing three
6175 bitmap loops where I should be doing one. The size is not correct
6176 either, despite having get_text_width give the right thing.
6178 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
6180 * app/connectionpoint_ops.c (diagram_update_connections_object):
6181 Allows more than one connectionpoint on an object to be moved at a
6184 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
6186 * configure.in: Added cs to ALL_LINGUAS.
6188 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
6190 * app/paginate_psprint.c: Removed unnecessary decl of autosave
6193 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
6195 * app/export_png.c (export_png_ok): Saving more variables from the
6198 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
6200 * lib/dialibartrenderer.c (begin_render):
6201 (end_render): Correct pushing and popping of font contexts.
6202 (draw_string): Double zooming eliminated, strange twiddle factor
6203 introduced (grumble). Close to working now, but there are still
6204 strange differences from font to font. In particular, some fonts
6205 really mess with the cursor and extents.
6207 * app/render_eps.c (export_eps):
6208 * app/diapsrenderer.c (dia_ps_renderer_finalize):
6209 Fixed file closing confusion, no longer dependent on PS/EPS.
6211 * app/diagram.c (diagram_place_down_selected)
6212 (diagram_place_up_selected): Now implemented.
6214 * lib/font.c (dia_font_init):
6216 Redesigned the font init/context pushing code. Start of fix for
6217 font name differences.
6219 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
6221 * app/sheets_dialog_callbacks.c: Fix a typo.
6223 2002-10-15 Hans Breuer <hans@breuer.org>
6225 * app/diapsrenderer.[hc] : (new files, old content :-)
6226 simple base class for post script rendering. Does neither
6227 use Pango/FT2 nor does it handle non latin1 characters.
6228 The fancy stuff which nowadays appears to be needed should
6229 probably be done in derived class(es)
6231 * app/makefile.msc app/Makefile.am : added new files
6233 * app/paginate_psrint.c : re-enabled and used as test
6234 for the simple ps renderer above.
6236 * app/render_eps.[hc] : ripped out common ps code and
6237 moved to DiaPsRenderer. The rest of the file is mostly
6238 disabled. And I don't understand enough of it to
6241 * app/diaepsrenderer.h : short lived, removed.
6243 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
6245 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
6246 as a plugin (thanks to Torben Nielsen).
6248 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
6250 * app/diaepsrenderer.h:
6252 * app/paginate_psprint.c:
6253 #ifdef'd out enough ps stuff to allow compile. Now we just need
6256 2002-10-12 Hans Breuer <hans@breuer.org>
6258 [last plug-in ported]
6260 * plug-ins/xfig/xfig-export.c : ported to new renderer api
6262 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
6263 scale color values to [0..1.0] to properly reconstruct
6266 * plug-ins/xfig/xfig-common.c : some cleaning
6268 2002-10-12 Hans Breuer <hans@breuer.org>
6270 [decrease inter-plug-in-dependencies]
6272 * objects/custom/shape_info.[hc] : move parse_style()
6273 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
6274 the related structs and constants.
6275 * objects/custom/custom_object.c : reflect namespace
6278 * lib/dia_svg.[hc] : new files
6279 * lib/makefile.msc lib/Makefile.am : add new files
6280 * lib/libdia.def : updated externals
6282 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
6284 * plug-ins/svg/svg.c : enable svg import for win32 (and
6285 probably for other non ELF builds)
6287 * plug-ins/makefile.msc : enable svg import
6289 2002-10-11 Hans Breuer <hans@breuer.org>
6291 * plug-ins/metapost/render_metapost.[hc] : ported
6293 * plug-ins/pstricks/render_pstricks.[hc] : dito
6295 2002-10-11 Hans Breuer <hans@breuer.org>
6297 * plug-ins/cgm/cgm.c : ported, appears to work as before,
6298 but graphic apps available to me can't import the generated
6299 files (the could not with Dia-0.90 cgm as well) ...
6301 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
6302 Removed all those function which did emulate 'complex'
6303 drawing ops with basic ones (e.g. rect by line) cause this
6304 stuff is already provided by the base class
6305 * plug-ins/dxf/dxf-import.c : removed render.h include
6307 * plug-ins/python/pydia-font.[hc]
6308 plug-ins/python/pydia-text.c : finally ported to new font api
6310 * plug-ins/python/pydia-layer.c : add extra parameter
6311 to layer_find_closest_connectionpoint()
6313 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
6315 * plug-ins/python/python.c : added missing copyright notice
6317 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
6318 actually use the renderers set_font implementation
6320 * plug-ins/renderer.inc : unused now, removed
6321 * plug-ins/Makefile.am : reflect it
6323 2002-10-08 Hans Breuer <hans@breuer.org>
6325 * app/render_gdk.c : don't add the InteractiveRenderer
6326 interface multiple times (it's added to the type, not
6328 * app/render_libart.c : dito. It's currently added
6329 unconditional cause eport_png uses it, but claims
6330 to be non-interactive. Probably set_size should be moved
6331 to the DiaRenderer interface.
6333 * lib/dialibartrenderer.c : add implementations for
6334 get_<width|height>_pixels. Libart rendering works again.
6335 DiaLibartRenderer::draw_image : use dia_image_rowstride()
6338 * lib/diatransform.c(dia_transform_coords_double) :
6339 don't ROUND() the returned values
6341 * plug-ins/pixbuf/pixbuf.c : added import function. It
6342 simply creates a wrapping "Standard - Image" object.
6344 * plug-ins/shape/shape-export.c : use the more direct
6345 method to call base class methods
6347 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
6349 * lib/font.c (dia_font_init): Changed dia_font_init to return old
6350 pango context, to allow stacked contexts (for printing while
6359 * lib/connectionpoint.h
6362 * lib/diagdkrenderer.h
6364 * lib/dialibartrenderer.h
6367 * lib/diasvgrenderer.h
6368 * lib/diatransform.h
6375 * lib/neworth_conn.h
6390 Moved all externally visible struct typedefs into diatypes.h, as
6391 per Hans' suggestions.
6393 2002-10-07 Steffen Macke <sdteffen@web.de>
6395 * lib/Makefile.am: removed a '\' causing problems
6397 2002-10-07 Hans Breuer <hans@breuer.org>
6399 [Libart Renderer resurrected; almost it's compiling but
6400 almost instantly crashing :-]
6402 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
6403 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
6404 * lib/diatransform.[hc] : added dia_transform_coords_double()
6406 * app/display.c : the right parameters for new_renderer_libart()
6407 * app/export_png.c : ported, removed the blind Display hack
6409 * app/makefile.msc lib/makefile.msc
6410 lib/Makefile.am : updated
6412 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
6414 2002-10-06 Hans Breuer <hans@breuer.org>
6416 * plug-ins/pixbuf/pixbuf.c : (new file)
6417 there is a new export plug-in called 'Pixbuf' which uses
6418 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
6419 formats (currently only PNG and JPEG).
6421 2002-10-06 Hans Breuer <hans@breuer.org>
6424 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
6426 * lib/dia-enums.h lib/diatransform.[hc]
6427 lib/diarenderer.[hc] lib/diainteractiverenderer.c
6428 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
6431 * lib/makefile.msc lib/makefile.am : added new files
6433 * lib/plug-ins.c : g_module_error() returns a locale
6434 string, convert to utf8 before further usage
6436 * lib/render.h : #error out. Everything including this
6438 * lib/*.[hc] : ported to new renderer api
6440 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
6441 just to make the rest compile
6442 * app/render_eps.c : temporary disabled all of this
6443 * app/render_eps.h : removed RendererEPS
6445 * app/render_gdk.[hc] : a small wrapper around the new
6446 DiaGdkRenderer form lib/*
6448 * app/render_libart.h : removed RenderLibart definition
6449 * app/render_libart.c : not yet ported to new DiaRenderer
6450 but having an implementation to untie form FT2 dependency
6451 at least on win32. It is using new Pango api form bug #94791
6453 * app/render_pixmap.[hc] : a small wrapper around the new
6454 DiaGdkRenderer form lib/*
6456 * app/display.h : removed render_*.h includes
6457 * app/display.c : the only place where specific
6458 renderers need to be known
6460 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
6461 use new DiaInteractiveRenderer interface
6463 * app/*.c : ported to new renderer api
6464 * object/*/*.c : ported to new renderer api
6465 s/render.h/diarenderer.h/
6466 s/Renderer/DiaRenderer/
6467 s/renderer->ops/renderer_ops/
6468 add in every draw method:
6469 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
6471 * plug-ins/hpgl/hpgl.c :
6472 plug-ins/wmf/wmf.cpp
6473 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
6474 * plug-ins/shape/shape-export.c
6475 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
6476 (nice how small these files became :-)
6478 2002-09-28 Hans Breuer <hans@breuer.org>
6480 * */makefile.msc : updated
6482 * app/defaults.c : don't gdk_invalidate_rect(NULL)
6483 * app/disp_callbacks.c :
6484 can't cast GtkWindow to GdkWindow, use shell->window
6485 (ddisplay_unrealize) don't use already unrefed im_context
6487 can't cast from GtkMenu to GtkMenuItem
6488 (ddisp_destroy) : mark im_context as unrefed
6490 * lib/dia_xml (data_font) : prefer new font format over old one
6491 (data_add_font) : write the legacy name to allow file exchange
6492 with pre Pango versions of Dia, which would otherwise crash
6493 on missing font 'name' attribute.
6494 * lib/font.c (dia_font_get_legacy_name) : improved implementation
6495 to get a better match.
6497 * lib/libdia.def : updated
6499 * lib/messages.c : don't gdk_widget_show(NULL)
6501 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
6503 [make Dia compile, link _and_ work with mingw/gcc3.2]
6505 * config.h.win32 : #define LIBXML, this gets defined from libxml
6506 header but only for _MSC_VER. The mingw build did access an
6507 unitialized function pointer for xmlFree.
6509 * */makefile.mingw : updated (some plug-ins have build issues)
6511 * lib/handle.h lib/object.h : there appears to be no
6512 forward declaration of the form
6513 typedef enum _HandleId HandleId
6514 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
6515 use of enum `_HandleId' without previous declaration
6517 * app/paginate_gdiprint.cpp : added a hack to avoid g++
6518 naming conflict on 'export'
6520 * app/paginate_gdiprint.h : forward declare Diagram
6522 * objects/SADT/annotaion.c : use g_random_double()
6524 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
6526 * app/modify_tool.c: Made motion not happen until sufficiently
6527 large or past double-click interval, to avoid accidental moving
6528 when doubleclicking. Got the double-click time right, and fixed
6529 some issues with release. There are some corner cases that may
6530 exhibit strange behaviour, will look at those later. Nah, let's
6531 not care about those, they are rare and not dangerous.
6533 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
6535 * app/layer_dialog.c:
6537 * plug-ins/dxf/dxf-import.c:
6538 * plug-ins/python/pydia-diagram.c:
6539 * lib/diagramdata.c:
6540 * lib/diagramdata.h:
6541 Improved the consistency of the obj->parent_layer backlinks (esp.
6546 * lib/dynamic_obj.[ch] (NEW):
6549 * app/dynamic_refresh.[ch] (NEW):
6550 * objects/Misc/analog_clock.c:
6551 Added support for dynamic refresh (animated objects).
6553 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
6555 Patch from Owen Taylor <otaylor@redhat.com>:
6556 * doc/en/Makefile.am:
6557 * doc/en/dia-manual.sgml:
6558 * doc/en/usage-objects.sgml:
6559 * doc/en/usage-quickstart.sgml:
6560 * doc/pl/Makefile.am:
6561 * doc/pl/dia-manual.sgml:
6562 * doc/pl/usage-objects.sgml:
6563 * doc/pl/usage-quickstart.sgml:
6565 - Change the DTD declration from an outdated GNOME one to a
6568 - Remove close tags for <graphics> which aren't allowed for
6571 - A hacky fix for a problem where some versions of db2html don't
6572 create *.css files. (If *.css doesn't match anything, then you get
6573 the global explicitely.)
6577 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
6579 * objects/custom/custom_object.c:
6580 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
6581 were never properly prepared for use when reloading a shape with
6582 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
6583 reporting the problem and coming up with a fix! (Closes: #93974)
6585 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
6586 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
6589 * app/display.c: updated menu item paths Alan's patch had moved.
6591 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
6592 load the sheet-provided icon (libpng versions mismatch, grrr.).
6595 * objects/Makefile.am:
6596 * objects/Misc/Makefile.am (NEW):
6597 * objects/Misc/libmisc.c (NEW):
6598 * objects/Misc/analog_clock.c (NEW):
6599 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
6600 * sheets/Misc.sheet.in: just a little experiment...
6602 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
6604 * plug-ins/xlst/Makefile.am: found a way to silence automake while
6605 not forcing everyone to build using libxslt.
6609 * lib/object_defaults.c:
6612 * lib/properties.[ch]:
6614 * objects/standard/box.c:
6615 * objects/UML/state_term.c:
6617 * objects/FS/flow-ortho.c:
6621 * app/diagram_tree.c:
6623 * app/disp_callbacks.c:
6626 * app/lineprops_area.c:
6628 * app/preferences.c:
6631 * app/sheets_dialog_callbacks.c:
6632 * plug-ins/xslt/xslt.c:
6633 * plug-ins/metapost/render_metapost.c:
6634 * plug-ins/xfig/xfig-export.c:
6635 * plug-ins/shape/shape-export.c:
6637 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
6638 unused variables, mostly)
6641 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
6643 * app/Makefile.am: modified run_dia.sh so that we recover the
6644 ability to run a debugger despite libtool's hacks.
6646 * plug-ins/dxf/Makefile.am:
6648 "make distcheck" fixes.
6650 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
6652 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
6653 <mfranzoni@madd.it>: Check for the type being NULL.
6655 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
6657 * app/render_eps.c (set_font): Re-tweaked font size for printing.
6659 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
6661 Patch from Angus Ainslie <angusa@deltatee.com>:
6662 * plug-ins/dxf/dxf-import.c:
6663 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
6665 (plus a couple extra fixes by me, such as the removal of printf's,
6666 adapting for recent changes, and killed a couple warnings)
6668 * app/authors.h: a 60K patch isn't insignificant, is it?
6670 2002-09-09 Tor Lillqvist <tml@iki.fi>
6672 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
6673 as before) and -lfreetype (using AC_CHECK_LIB). At least on
6674 Solaris with Sun's compiler (Forte C), you need to link also the
6675 dia application with -lfreetype, even if it is implicitly linked
6676 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
6677 which is what they actually mean. Use FREETYPE_LIBS for
6680 Don't look for libsunmath if isinf() is not found in math.h (as on
6681 Solaris). The sunmath library is part of Forte C and not present
6682 on all machines. Besides, even if isinf was found in libsunmath,
6683 we didn't use it in the Makefile.am.
6685 Fix a couple of bashisms.
6687 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
6688 too, on Solaris with Forte C.
6690 Don't try to use the gcc flags with other compilers.
6691 DIA_CHECK_CFLAG gives a false indication that Forte C understands
6692 the gcc -f switches, but in fact they get interpreted meaning
6693 something completely different.
6695 Define the automake conditional HAVE_CGC.
6697 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
6699 Use -export-dynamic only with gcc.
6702 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
6703 PANGOFT2_CFLAGS rename.
6705 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
6707 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
6710 * lib/paper.c: Workaround for gccism: Can't use inline this way with
6713 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
6715 * lib/text.c(set_string): fixed a memory leak (char* ain't no
6716 std::auto_ptr<char> !).
6719 * app/interface.[ch]:
6720 * app/ddisp_callbacks.[ch]: Added some basic support for input
6721 methods (GtkIMContext-based)
6724 * app/Makefile.am: made libdia a shared object (per Tor
6725 Lillqvist's suggestion/request), to cope for platforms with a less
6726 than par dynamic library loader.
6728 * app/display.c: disabled the input method menu (I really don't
6729 see where and how to put them. Blame Frozen Bubble )
6731 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
6733 * objects/flowchart/box.c (box_update_data): Made resizing
6734 possible again (only set width & height when resized too small).
6736 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
6738 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
6741 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
6743 * app/authors.h: now showing Akira TAGOH's name in the native script.
6745 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
6747 * plug-ins/xslt/xslt.c: Removed glib warning for unset
6750 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
6752 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
6753 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
6756 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
6758 * objects/UML/class.c: Fixed showing of empty stereotypes and got
6759 the string placed correctly.
6761 2002-08-30 Hans Breuer <hans@breuer.org>
6763 * lib/font.c (dia_font_get_style) : don't shift already
6764 shifted DIA_FONT values.
6766 * lib/libdia.def : updated externals
6768 * app/disp_callbacks.c : on win32 GdkEventKey::string already
6769 is in UTF-8. (Longterm this probably should be handled on the
6772 * app/command.[hc] app/display.[hc] app/menus.c : add code to
6773 switch display renderers again. The libart renderer is very
6774 useful for win9x with it's limited GDI.
6776 * app/render_gdk.c : use g_warning instead of printf which gets
6777 nowhere on win32 (non console apps)
6779 * app/render_libart.c : make it compile without FREETYPE
6781 * objects/makefile.msc plug-ins/makefile.msc : added clean target
6783 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
6785 * app/render_eps.c (postscript_draw_contour): Debugging statement
6786 that allowed me to figure out font problems.
6788 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
6789 items for font styles.
6791 * objects/FS/flow-poly.c:
6792 * objects/FS/flow-ortho.c:
6793 * objects/FS/flow.c: Further conversion away from GTK dialogs.
6794 Can't set a default label right now:(
6796 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
6798 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
6799 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
6801 * Makefile.am: rules relating to AUTHORS and THANKS
6803 * AUTHORS: file content changed to more accurately
6804 reflect guideline requirements.
6805 * TODO: warning added about Gnome BTS.
6806 * KNOWN_BUGS: warning added about Gnome BTS.
6810 * AUTHORS: added full copyright info.
6811 * mkauthors-placeholder: (removed)
6813 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
6815 * app/paginate_psprint.c (print_page): Fixed text printing after
6816 tip from Dov Grobgeld.
6818 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
6820 * app/paginate_psprint.c (print_page): Fixed color of clip
6823 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
6825 * sheets/Makefile.am: enabled intltool-merge translation cache for
6829 * mkauthors-placeholder:
6830 * AUTHORS: revived that file (in a placeholder form) so that
6831 automake stops yelling.
6832 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
6835 Heh, by the way, thanks Christophe. I feel better now.
6837 2002-08-25 Christophe Merlet <christophe@merlet.net>
6839 * app/command.c: Removed invalid multibyte sequence in Chepelov.
6841 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
6843 * lib/dia_image.c (dia_image_rgb_data):
6844 Bugfixes in image data retrieval.
6846 * app/render_eps.c: Refactoring of new_*_renderer.
6848 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
6852 * lib/dia_image.c: Support for rowstride != width (odd width images)
6854 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
6856 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
6857 * plug-ins/xfig/xfig-import.c: Removed assertion.
6859 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
6861 * lib/paper.c: Removed app/preferences.h reference.
6863 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
6865 * plug-ins/svg/svg-import.c:
6866 * plug-ins/xfig/xfig-import.c:
6867 * lib/Makefile.am (libdia_a_SOURCES):
6868 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
6870 * objects/standard/create.h:
6871 * objects/standard/polygon.c (polygon_create):
6872 * objects/standard/polyline.c (polyline_create):
6873 * objects/standard/beziergon.c (beziergon_create):
6874 * objects/standard/bezier.c (bezierline_create):
6875 Moving create.h into lib.
6877 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
6879 * app/render_libart.[ch]: Work on PNG font export. Something's
6880 still fishy with the scaling, I don't get it.
6883 * app/interface.c: Replaced broken zoom combo with entry+menu.
6884 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
6886 * app/render_gdk.c (get_text_width): Checks for validity of text.
6887 Temporary help while debugging input -- should only activate on
6890 * objects/SADT/annotation.c:
6891 * objects/GRAFCET/transition.c:
6892 * objects/FS/function.c: Removal of gtk.h include.
6894 * objects/UML/state.c (state_load): Warnings about using State
6895 object for initial/final states.
6897 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
6899 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
6901 * app/render_eps.c: Text rendering that scales correctly. Too bad
6902 the standard fonts don't get selected right.
6904 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
6906 * lib/diagramdata.h:
6907 * lib/paper.c (get_paper_info):
6909 * plug-ins/xfig/xfig-import.c:
6910 Committed before testing. I am so embarrased. This compiles, now
6911 that the includes are in the right order.
6913 * app/diagram.c (diagram_init):
6914 * app/app_procs.c (do_convert):
6915 * app/preferences.h:
6916 * lib/diagramdata.h:
6917 * lib/diagramdata.c (new_diagram_data):
6919 * lib/paper.c (get_paper_info):
6920 Moved new_diagram part of prefs into lib/diagramdata.h. More
6921 could be done in new_diagram_data() now.
6923 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
6925 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
6927 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
6929 * configure.in: removed silly user-visible comment
6931 (actually, this is a dummy entry before I manually run nemo; for
6932 some dist-upgrade related reason, this morning's run aborted before
6933 the snapshots were created)
6935 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
6937 * objects/network/wanlink.c:
6938 * objects/network/bus.c:
6941 * objects/custom/custom_object.c:
6942 * objects/network/wanlink.c:
6943 * objects/flowchart/parallelogram.c:
6944 * objects/flowchart/ellipse.c:
6945 * objects/flowchart/diamond.c:
6946 * objects/flowchart/box.c:
6947 Removed GTK defaults stuff.
6949 * objects/UML/fork.c:
6950 * objects/UML/object.c:
6951 * objects/UML/lifeline.c:
6952 * objects/UML/branch.c:
6953 * objects/GRAFCET/transition.c:
6954 * objects/FS/function.c: Removed GTK include.
6956 * objects/FS/flow-ortho.c:
6957 * objects/FS/flow.c: Made the label behave again.
6958 Also removed GTK defaults stuff.
6960 2002-08-06 Hans Breuer <hans@breuer.org>
6962 * app/autosave.c : ported to GDir which is the improved
6963 cross platform replacement for <dirent.h>
6965 * app/makefile.msc : build autosave.obj
6967 * app/font.c : some (bad?) code calls
6968 dia_font_scaled_decent() not only with empty string but
6969 with NULL. Handle it gracefully.
6971 * lib/paper.c : don't depend on ../app. Although IMO
6972 this shouldn't be allowed on any platform it is only
6973 disabled for win32, where it simply doesn't work
6976 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
6978 * objects/fs/flow.c : conditionalize debug spew, disabled
6979 and 'ported' to use g_print. Simple printf won't work with
6980 standard win32 gui apps, may even crash them.
6982 * plug-ins/makefile.msc : DISABLED svg-import cause it
6983 depends on ../objects/custom. This not only break the
6984 build for all non ELF systems but IMO also isn't acceptable
6985 from a design point of view. See dia-list mail on subject.
6987 * plug-ins/python/makefile.msc :
6988 plug-ins/python/python.c : remove all references to dirent
6990 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
6992 * configure.in: added ro to ALL_LINGUAS
6996 * ../translation-graphs/transgraph.py: added support for fuzzy
6997 translations. Enlarged the graphs.
6999 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
7001 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
7002 key events according to locale. No clue if this works for
7005 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
7007 * lib/text.c: Various UTF8 related fixes, in particular in
7008 deleting. Text_insert_char is fine, far as I can tell.
7010 * app/interface.c (create_display_shell):
7011 * app/commands.c: Now uses gtk_clipboard functions, for they are
7012 much simpler. Also handles Win32 clipboard. Non-ascii chars
7013 don't seem to get handled correctly by text_insert_char in
7016 * app/commands.c (received_selection_handler): Got utf8 handling
7017 on paste, and individual char handling out of commands.c. Pasting
7018 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
7020 * lib/message.c (gtk_message_internal): Message dialog re-shown
7021 when new message appears. Maybe it should even move to top?
7025 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
7026 (again) and case-insensitive.
7028 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
7031 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
7033 * app/commands.c (edit_cut_text_callback):
7034 * lib/text.c (text_delete_all): Now functioning undo for text cut.
7036 * app/commands.c (edit_cut_text_callback): Now removes text.
7037 Undo is broken, though.
7039 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7041 * app/diagram.c (diagram_update_menu_sensitivity):
7042 Making cut_text active.
7045 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
7046 clipboard. Also removed AA callback.
7048 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7050 * objects/chronogram/chronoref.c:
7051 * objects/chronogram/chronoline.c:
7052 * objects/SADT/annotation.c:
7053 * objects/SADT/arrow.c:
7054 * objects/SADT/box.c:
7055 * objects/GRAFCET/vergent.c:
7056 * objects/GRAFCET/vector.c:
7057 * objects/GRAFCET/step.c:
7058 * objects/GRAFCET/condition.c:
7059 * objects/GRAFCET/action.c:
7060 * objects/ER/participation.c:
7061 * objects/ER/relationship.c:
7062 * objects/ER/entity.c:
7063 * objects/ER/attribute.c:
7064 Removing unnecessary GTK references.
7066 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
7068 * objects/standard/image.c:
7069 * objects/standard/textobj.c:
7070 * objects/standard/ellipse.c:
7071 * objects/standard/polygon.c:
7072 * objects/standard/beziergon.c:
7073 * objects/standard/box.c:
7074 Making default default properties.
7076 * objects/standard/image.c:
7077 * objects/standard/arc.c:
7078 * objects/standard/box.c:
7079 * objects/standard/zigzagline.c:
7080 * objects/standard/polyline.c:
7081 * objects/standard/line.c:
7082 * objects/standard/ellipse.c:
7083 * objects/standard/polygon.c:
7084 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
7086 * lib/object_defaults.c (dia_object_default_create):
7089 * lib/object.c (object_copy_using_properties):
7090 * lib/propdialogs.c:
7091 * lib/propinternals.h:
7092 * lib/propobject.c (object_create_props_dialog)
7093 (object_copy_props):
7094 Removing the standard (toolbox) properties from defaults dialogs.
7096 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
7098 * lib/font.c (dia_font_scaled_string_width)
7099 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
7101 * lib/text.c (text_calc_boundingbox): Take descent into account.
7103 * objects/standard/bezier.c (bezierline_draw):
7104 * lib/render.c (draw_bezier_with_arrows):
7105 Better arrow drawing for beziers. Doesn't change the mouse-click
7108 * lib/arrows.h: Some const-ness.
7110 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
7112 * lib/render.c (draw_arc_with_arrows):
7113 * objects/standard/arc.c (arc_draw): Better arrow drawing for
7114 arcs. Doesn't change the mouse-click area yet.
7116 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
7122 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
7124 * app/group.c (group_draw): Forgotten commit: Groups to draw as
7125 objects (using default routines).
7129 * lib/diagramdata.h:
7130 * lib/diagramdata.c (layer_find_closest_connectionpoint):
7131 * objects/standard/zigzagline.c (zigzagline_move_handle):
7132 * app/diagram.c (diagram_find_closest_connectionpoint):
7133 * plug-ins/python/pydia-diagram.c
7134 (PyDiaDiagram_FindClosestConnectionPoint):
7135 * app/object_ops.c (object_connect_display)
7136 (object_find_connectpoint_display)
7137 * app/create_object.c (create_object_button_press)
7138 (create_object_motion):
7139 * app/modify_tool.c (modify_motion):
7140 Adding object param to allow connectionpoint and handle coinciding.
7142 * objects/standard/zigzagline.c (zigzagline_check_orientation):
7143 Fixing minor problems.
7145 * objects/standard/ellipse.c (ellipse_update_data):
7146 Added direction hints.
7148 * lib/diagramdata.c:
7151 * lib/diagramdata.h:
7152 * objects/standard/zigzagline.c:
7153 First working example of zigzagline hints, currently only between
7156 2002-07-27 Steffen Macke <sdteffen@web.de>
7158 * plug-ins/svg/render_svg.c: added support for rounded
7159 rectangles (fixes #69053 if compile with
7161 * object/custom/shape_info.[c|h]: made parse_style and
7162 parse_path accessible for svg plug-in
7163 * plug-ins/svg/Makefile.am:
7164 * plug-ins/svg/svg.c:
7165 * plug-ins/svg/svg-import.c(new): added SVG import filter
7167 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
7169 * objects/standard/box.c:
7170 * objects/standard/zigzagline.c (zigzagline_move):
7171 More work on zigzagline hints.
7173 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
7174 * lib/connectionpoint.h:
7175 Hints for zigzaglines.
7177 * app/properties.c (properties_show):
7178 * app/defaults.c (defaults_show):
7180 * lib/propobject.c (object_create_props_dialog):
7182 * objects/FS/flow-poly.c:
7183 * objects/network/wanlink.c:
7184 * objects/network/bus.c:
7185 * objects/UML/class.h:
7186 * objects/UML/class_dialog.c:
7187 * objects/UML/association.c:
7188 Start of removing toolbox props from props dialogs.
7192 * app/lineprops_area.c (dia_arrow_chooser_new):
7193 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
7195 * app/create_object.c:
7196 * app/modify_tool.c:
7201 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
7203 * app/preferences.c:
7205 * app/diapagelayout.c:
7206 New prefs selector kind PREF_CHOICE chooses between a list of
7207 strings. Used for picking default paper.
7209 * app/preferences.c (prefs_data):
7210 * lib/paper.c (get_paper_info): Added prefs setting for
7213 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
7214 line segments at the ends (bug #86603).
7216 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
7218 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
7219 #60324: Now calls update_data after copy.
7221 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
7222 Now doesn't steal selection from non-object tools.
7224 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
7226 * app/commands.c (help_manual_callback): Uses BROWSER environment
7227 variable when available.
7229 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
7231 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
7232 object from the new sheet when changing.
7234 * app/app_procs.c (app_init): Uses more standard size icon, from
7235 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
7237 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
7239 * objects/UML/implements.c (implements_update_data):
7240 * objects/UML/realizes.c (realizes_update_data):
7241 * objects/UML/dependency.c (dependency_update_data):
7242 Test for null strings before calling on ascent.
7244 * objects/UML/realizes.c (realizes_draw):
7245 * objects/UML/message.c (message_draw):
7246 * objects/UML/generalization.c (generalization_draw):
7247 * objects/UML/dependency.c (dependency_draw)
7248 * objects/UML/constraint.c (constraint_draw):
7249 * objects/GRAFCET/condition.c (condition_draw):
7250 * objects/UML/association.c (association_draw):
7251 * objects/FS/flow-ortho.c (orthflow_draw):
7252 * objects/FS/flow.c (flow_draw): Change to use
7253 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
7256 * lib/arrows.c (calculate_arrow_point):
7259 * objects/standard/zigzagline.c:
7260 * objects/standard/polyline.c:
7261 * objects/standard/line.c: Work towards better arrow drawing.
7263 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
7265 * objects/UML/state.c: Starting phase-out of State object as
7266 initial/final state (which never worked right).
7268 * app/app_procs.c (app_init): --version command line option for
7271 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
7273 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
7275 * app/render_eps.c: Removed debugging info.
7277 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
7278 Kludge to make ascent and descent work for empty strings. Won't
7279 work when using non-ASCII fonts. Better would be to get a
7280 PangoFont and ask directly.
7282 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
7285 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
7288 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
7290 * plug-ins/xfig/xfig-export.c: First use of draw_object render
7291 function: All shapes are now groups in XFig export.
7293 * lib/diagramdata.c (normal_render):
7296 * app/display.c (ddisplay_obj_render):
7297 New render function for drawing objects, allows renderers to group
7298 or otherwise specially handle objects. We may want to reconsider
7299 calling it in app/display.c, as we 'know' the object draw function
7300 is the default one there.
7302 * lib/Makefile.am: Removed extra \ that broke stuff.
7304 * plug-ins/xfig/xfig-import.c:
7305 Spline import for xfig. Not perfect.
7307 * objects/standard/create.h:
7308 * objects/standard/bezier.c (bezierline_create):
7309 * lib/bezier_conn.c:
7310 * lib/beziershape.c (beziershape_set_points):
7311 * lib/bezier_conn.h:
7312 * lib/beziershape.h:
7313 Support for creating beziers non-interactively.
7315 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
7317 * plug-ins/xfig/xfig-import.c: Support for polygons and
7318 polylines. Special warning handling system removed.
7320 * lib/message.c (gtk_message_internal): Fixed bug involving
7321 closing message window and then getting repeated message.
7325 * configure.in (GETTEXT_PACKAGE):
7326 Update based on bug #88199. Hopefully this doesn't break too much
7329 * dia.desktop.in (_Comment): Changed after suggestion from
7330 calum.benson@ireland.sun.com (bug 88345)
7332 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
7333 <loli@unsa.edu.ar> that makes user/system distinction better.
7335 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
7337 * app/render_libart.c: Got the context right, removed crashes.
7347 Remove libart #defines from most places (still around for png export).
7349 * app/render_libart.h:
7350 * app/render_libart.c:
7351 * configure.in (HAVE_LIBART):
7352 Starting on update of libart stuff for png export (without X).
7354 * app/autosave.h (autosave_check_autosave):
7357 * app/Makefile.am (dia_core_files):
7359 * app/diagram.c (diagram_set_modified):
7361 * app/app_procs.c (app_init):
7362 Autosave support. No automatic restore yet.
7364 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
7366 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
7369 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
7371 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
7373 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
7375 * Fix for 'make dist' etc. --- problem caused by
7376 previous AUTHORS patch.
7378 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
7380 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
7382 (set_font): NULL check.
7384 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
7386 * app/disp_callbacks.c:
7388 Addition to the object menus allows check menu items.
7390 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
7392 * HACKING: completely changed to bring up-to-date.
7393 * AUTHORS: file needs REMOVING from CVS as now
7394 dynamically generated.
7395 * app/authors.h: split into subcategories for original
7396 authors, maintainers, etc.
7397 * app/app_procs.c: --credits rewritten to support new
7399 * app/commands.c: no changes to about box code, comment
7401 * Makefile.am: added rule for AUTHORS. I'm still
7402 inexperienced with automake, it seems to work, but
7403 for AUTHORS-related bugs, look at this change first.
7405 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
7407 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
7408 work. Back to including xslt dir always.
7410 * objects/UML/uml.c:
7411 * objects/UML/class.h:
7412 * objects/UML/class_dialog.c:
7413 * objects/UML/class.c: Patch from
7414 <mattam@netcourrier.com>: Adds comment visibility switch, also
7417 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
7418 for state/fork/activity stuff.
7419 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
7420 * objects/UML/Makefile.am:
7421 * objects/UML/uml.c:
7422 * sheets/UML.sheet.in: Added new objects activity, fork,
7424 * objects/UML/pixmaps/state_term.xpm:
7425 * objects/UML/state_term.c: New, only initial/final states.
7426 * objects/UML/pixmaps/activity.xpm:
7427 * objects/UML/activity.c: New, activity state.
7428 * objects/UML/pixmaps/fork.xpm:
7429 * objects/UML/fork.c: New, fork/join bar.
7430 * objects/UML/pixmaps/state.xpm: state icon.
7434 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
7435 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
7438 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
7440 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
7443 * app/Makefile.am: Commented out the diaconv parts while it's not
7444 used anyway. To come back later.
7446 * configure.in (HAVE_FREETYPE):
7449 * app/render_eps.c: Support for printing with freetype, better
7450 encapsulated now. Renders the text nicely, but ignores font
7451 setting. Requires pangoft2 to get the font outline, but non-text
7452 objects can still be rendered without it.
7455 * app/commands.c (objects_place_up_callback)
7456 (objects_place_down_callback):
7458 * app/diagram.c (diagram_place_down_selected)
7459 (diagram_place_up_selected): Starting support for moving objects
7462 * app/menus.c: Removed character/numeral shortcuts.
7464 2002-07-06 Hans Breuer <hans@breuer.org>
7466 * makefile.am app/makefile.am lib/makefile.am
7467 objects/makefile.am plug-ins/makefile.am
7468 plug-ins/python/makefile.am :
7469 added required files for win32 build to EXTRA_DIST
7471 * app/paginate_psprint.c app/render_eps.c
7473 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
7474 on Pango as currently is on win32 => no PostScript
7477 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
7478 use '/* noop */;' for empty case labels; replace
7479 debug spew printf with g_print which is guaranteed
7480 to work on win32, too.
7482 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
7483 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
7484 in the pango_font_description_set_weight() api documentation
7485 Take care for them in dia_font_get_style() too.
7487 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
7488 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
7489 rename Obliquity to Slant which appears to be the usual name,
7490 also rename dia_font_get_style_string -> dia_font_get_slant_string
7492 * plug-ins/wmf/wmf.cpp : finally ported to new font api
7494 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
7496 * objects/uml/association.c class.c large_package.c message.c
7497 if g_free() is used g_strdup needs to be used.
7498 * objects/custom/shape_info.c
7499 objects/ER/attribute.c entity.c
7500 objects/standard/image.c
7501 app/sheets_dialog_callbacks.c : more strdup cleaning
7503 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
7505 * app/render_eps.c: Non-crashing printing (made the right
7506 context). Font output still fscked up.
7508 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
7510 * app/authors.h: Added file --- now master
7511 location for contributors data.
7512 * app/app_procs.c: Added --credits option.
7513 * app/commands.c: Modified about box to use
7516 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
7518 * app/render_eps.c: First stab at EPS rendering using the contour
7519 code from PAPS. Crashes.
7521 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
7523 * app/recent_files.c (recent_file_history_remove):
7524 Fixed call to g_list_delete_link discarding return value.
7526 * lib/widgets.c (dia_font_selector_set_styles):
7527 * lib/font.h (DiaFontWeight):
7528 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
7530 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
7532 Contribution from Alan Horkan <horkana@tcd.ie>:
7535 * sheets/Assorted.sheet:
7536 A set of 40 assorted geometric shapes.
7538 * sheets/Assorted.sheet.in:
7539 * sheets/Makefile.am
7540 * shapes/Assorted/Makefile.am:
7541 * shapes/Makefile.am:
7544 Done the integration job of Alan's shapes. (Translators: have fun!)
7546 * po/dia.pot: refreshed the main potfile.
7548 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
7550 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
7552 * objects/UML/class.[ch]:
7553 * objects/UML/class_dialog.c:
7554 changed the number of connection points from a hardcoded value of
7555 8 to a #defined constant
7557 (I changed the constant back from 20 to 8, until we better know
7558 how we'll handle more connection points on the UML class in the
7559 future -- but Tim's patch is a welcome clean-up).
7561 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
7563 * shapes/MSE/demultiplexer.xpm:
7564 * shapes/MSE/node_center.xpm:
7565 * shapes/MSE/multiplexer.xpm:
7566 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
7567 Horkan <horkana@tcd.ie>
7569 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
7571 * lib/widgets.c: Total rehash of font selector, with font dialog
7572 option, expanding list (not LRU yet), and stuff.
7574 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
7578 Added a set of new setter/getters, some of them more specially for
7581 * plug-ins/shape/shape-export.c: (new_shape_renderer),
7582 (destroy_shape_renderer), (set_font), (draw_string):
7583 * plug-ins/svg/render_svg.c: (new_svg_renderer),
7584 (destroy_svg_renderer), (set_font), (draw_string):
7586 Actually exported the font face, style, weight and size (sodipodi
7587 agrees with dia on how a small sample should look like (a sample
7588 0.90 would not even display anyways). Yay !)
7590 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
7592 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
7594 (end of ChangeLog-less patch)
7596 * objects/custom/shape_info.c (parse_style): now understands the
7597 font-style and font-weight attributes as well. Does not use
7598 anymore dia_font_new_from_legacy_name().
7600 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
7602 * objects/standard/textobj.c: Now uses stdprops for defaults.
7604 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
7605 * lib/font.c (dia_font_get_style): Style now linear and conversion
7608 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
7611 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
7613 * plug-ins/dxf/dxf-import.c:
7614 using dia_font_new_from_style()
7616 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
7618 * objects/UML/class.[ch]: Added a comment field to class
7619 * objects/UML/uml.[ch]: Added a comment field to attributes,
7620 operations and parameters.
7621 * objects/UML/class_dialog.c: Added code for the new comment
7623 * plug-ins/xslt/*.xsl: Added some code to handle comments.
7624 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
7625 Added a $directory parameter for stylesheets so the output is
7626 in the good place (not in the $PWD).
7630 * AUTHORS: added contributors, updated maintainers. Removed the
7631 specific areas of action.
7633 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
7634 from a patch by Xing Wang <quixon@gnuchina.org>:
7636 * app/commands.c: help_about_callback now supports
7637 new-style GNOME about box as well as old GTK style.
7638 code also tidied (Closes: #85726)
7642 * app/commands.c: fixed the copyright (it's not all FSF), and
7643 maintainers. Synced contributors list with AUTHORS.
7645 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
7647 * lib/message.c: More work on repeating messages, now with
7650 2002-06-24 Hans Breuer <hans@breuer.org>
7652 * lib/widget.c : some more bits in place, at least
7653 it does something useful instead of crashing. Much
7654 better - but not all ok :-)
7656 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
7658 * lib/message.c (gtk_message_internal): First stab at repeating
7661 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7664 * objects/GRAFCET/*.c:
7666 * objects/UML/association.c: (one instance forgotten)
7667 * objects/UML/large_package.c:
7668 * objects/standard/textobj.c:
7671 using dia_font_new_from_style()
7673 2002-06-23 Hans Breuer <hans@breuer.org>
7675 * lib/font.c : giving some love to
7676 dia_font_new_from_legacy_name() that is making
7677 import of old files as painless as possible and
7678 provide an almost exact match where possible.
7679 It does not yet fully work because it interfers
7680 with the Style to DiaStyle conversion which comes
7683 [Changing these files is only allowed with Dia-0.90]
7684 * broken-files/fonts-0.90.dia : including the
7685 common hard-coded fonts from Dia-0.90. It also
7686 has drawn bounding-boxes for win32 as they were calculated
7687 from the former version (they were all too big).
7688 * broken-files/fonts-0.90-full.dia : all hardcoded
7689 fonts including the asian versions. On my machine
7690 this gives _a lot_ complaining about missing fonts
7691 and a finally a broken file display. Anyone having
7694 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7696 * objects/chronogram/*.c:
7697 * objects/custom/custom_object.c:
7699 using dia_font_new_from_style()
7701 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
7703 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
7704 font selector (stability, insensitivity).
7706 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
7707 stretching scheme for tweaking, and made scaling scheme faster
7709 (dia_font_dia_style_to_pango): Oops, % != /.
7711 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
7714 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
7716 * plug-ins/xslt : Added an XSLT plugin to export dia files using
7717 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
7718 It includes a small config file to tell it what stylesheets to use.
7722 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
7723 GTK2.0/HIG compliant (the labels could be slightly more verbose,
7724 perhaps). Added back a couple forgotten _(). Removed //-style
7727 2002-06-23 Hans Breuer <hans@breuer.org>
7730 (dia_plugin_get_name) : don't crash plugin_manager
7732 (dia_plugin_load) : reuse the description field to
7733 store the error string if loading fails.
7735 * lib/font.[hc] : starting to beautify the new
7736 font api: proper namespacing, adding convenience
7737 functions like dia_font_new_from_style(), ...
7739 * objects/uml/*.c : use the new convenience functions.
7741 [Next thing I plan to do is changing the other font
7742 functions to take DiaStyle and make Style and
7743 BASIC_*_FONT vanish. As well as giving some love to
7744 dia_font_new_from_legacy_name().
7745 If anyone want's to help on converting the other
7746 objects to the new api during that, I would highly
7749 2002-06-23 Hans Breuer <hans@breuer.org>
7751 * lib/font.c : made it compile and small indent fixes.
7752 Is there a code-has-no-effect-so-needs-not-be-valid
7755 * lib/widgets.c : use g_strcasecmp
7757 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
7761 * lib/widgets.c: Font names sorted, style selector widget
7762 reappeared. Doesn't select the old style yet.
7764 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
7766 * lib/font.c: one who expects a text's font to be changed shall
7767 actually request the attributes to apply to the whole range of the
7770 * lib/font.c: extents computation was wrong.
7772 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
7773 if a last NULL parameter is added...
7775 * lib/font.c: extents computation was completely wrong. This looks
7776 much better this time.
7778 * objects/UML/class.c: fixed the various strings positions.
7780 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
7781 macros to get the hardcoded base fonts.
7783 * objects/ER/relationship.c: wasn't converted to DiaFont*
7785 2002-06-22 Hans Breuer <hans@breuer.org>
7787 * lib/widget.c : dont use backend specific functions
7788 to get on the font_families. Including it would mean
7789 including <windows.h> which breaks due to namespace
7792 * lib/libdia.def : updated externals
7794 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
7796 * lib/font.c : added empty dia_font_init_instance function,
7797 reformatting of dia_fon_unref to allow to set breakpoint,
7798 dia_fon_build_layout() : dont crash on string==NULL
7800 * lib/text.c (text_set_attributes) : don't unref the wrong font
7802 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
7803 stores lowercased font names, but dia_font_get_family()
7806 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
7809 * app/render_gdk.c: Patch from Hans Breuer.
7811 * app/Makefile.am (dia_core_files): diaconv commented out for now.
7813 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
7815 * lib/all files touched yesterday: took into account some of Hans
7817 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
7819 * objects/chronogram/*:
7822 * objects/flowchart/*:
7824 * objects/GRAFCET/*:
7826 * objects/standard/textobj.?:
7828 converted to the new DiaFonts.
7831 * plug-ins/pstricks/*:
7835 Made minimalistic conversions so that they'd at least compile.
7838 * app/render_pixmap.c:
7839 Converted to the new DiaFonts.
7844 made the minimal changes so that it would at least build.
7846 *** At this point, the thing builds on my machine, but segfaults
7849 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
7851 * configure.in: removed the backend-specific pango pkg_modules
7852 (trivial to add back if needed, when actually needed)
7855 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
7856 renderer. The APIs will have completely changed when we get around
7857 to redo a renderer for it, anyways.
7859 * font.[ch]: rewrote everything from scratch, with a Pango
7860 implementation. Normally, only backend-neutral things should go in
7863 **WARNING**: new rules for managing DiaFont* pointers: these are
7864 reference-counted GObjects. One >must< diafont_ref() and
7865 diafont_unref() as appropriate. I wish I could overload operator=()...
7867 lib/plug-ins.h: bumped up the plug-in API.
7872 lib/object_defaults:
7873 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
7874 again tomorrow with GObject.
7876 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
7878 **** The rest of the tree should be updated as well ****
7880 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
7884 * app/render_pixmap.c:
7885 * app/render_pixmap.h:
7886 * app/render_libart.h:
7887 * app/render_libart.c:
7889 * lib/font.c: Removed freetype stuff (still around in
7890 lib/widgets.c 'cause we might want the font selector widget).
7892 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
7894 * shapes/network/laptop.(xml|shape):
7895 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
7896 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
7898 2002-06-17 Hans Breuer <hans@breuer.org>
7900 * lib/object_defaults.c : #include <libxml/tree.h> not
7901 <tree.h> pointed out by Xing Wang
7903 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
7905 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
7907 * app/color_area.c: Update to
7908 gtk_color_selection_*_current_color() fixed bad crash issues, plus
7909 updated color conversions.
7911 * sheets/ER/weakentity.xpm: Accepted patch from
7912 quixon@gnuchina.org to make icon match actual appearance.
7914 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
7915 quixon@gnuchina.org.
7917 2002-06-16 Hans Breuer <hans@breuer.org>
7919 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
7920 good tradition of information hiding. Add new function
7921 dia_plugin_get_symbol()
7922 * app/sheets.c app/sheets_dialog_callbacks.c : use it
7924 * app/sheets.c : stop complaining about object_get_type()
7925 returning NULL. This is a consequence of e.g. disabling
7926 plug-ins at runtime _and_ it was and is gracefully handled.
7927 Spitting out g_warning for it isn't appropriate.
7929 * lib/object.[ch] : removed dead code
7931 * app/plugin-mangager.c : almost complete rewrite for gtk2
7932 using GtkListStore/GtkTreeView
7934 * lib/libdia.def : updated externals
7936 * todo.gtk2 : updated, that is removed already done steps
7938 2002-06-15 Hans Breuer <hans@breuer.org>
7940 * objects/uml/class_dialog.c : clean some left-over
7941 utf8-mess, return 0 from "focus_out_event" handlers
7942 to avoid asserting in gtk (#78305). Reconstruct
7943 stereotype/NULL behaviour to avoid rendering empty
7944 stereotypes on classes and member functions
7946 [#56109 - Provide object defaults for StdProp objects,
7947 some remaining issues are discussed in bugzilla]
7949 * lib/object_defaults.c : (new file) manage default properties
7950 of dia objects. The serialization is done with standard
7951 object methods in a diagram compatible format.
7953 * lib/object.c : add object_registry_foreach() which allows
7954 to iterate over all registered object types
7956 * lib/object.h : added prototypes object_default*() and
7957 object_registry_foreach()
7959 * lib/makefile.am lib/makefile.msc : add new file to build
7961 * lib/libdia.def : export new functions
7963 * app/defaults.c : provide StdProp based defaults if the
7964 ObjectType doesn't implement it's own default functions
7966 * app/create_object.c : through dia_object_default_create()
7967 * app/disp_callbacks.c : same here
7969 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
7971 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
7972 sensitivity for deleting segments.
7974 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
7976 * app/color_area.c: (color_area_events):
7977 * app/diagram.c: (diagram_destroy):
7978 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
7980 * app/load_save.c: (diagram_data_load):
7981 * app/menus.c: (menus_get_item_from_path):
7982 * app/preferences.c: (prefs_load):
7983 * app/render_gdk.c: (get_text_width):
7985 * lib/color.c: (color_convert):
7986 * lib/dia_dirs.c: (dia_config_filename):
7987 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
7988 * lib/intl.c: (intl_get_language_list):
7989 * lib/message.c: (message):
7991 * lib/paper.c: (get_default_paper):
7992 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
7993 * lib/widgets.c: (dia_file_selector_get_file):
7995 * objects/standard/image.c: (get_directory):
7999 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8001 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
8003 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
8005 * app/interface.c: sscanf now returns EOF on empty string, so
8006 handle no match for zoom factor better => correct zoom at start.
8008 * app/sheets.c (create_object_pixmap): Tried to display empty error.
8009 (sheets_optionmenu_create): Died when not finding specified
8010 sheet. Don't think it should.
8012 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
8013 (bug #84367) to place the text better.
8015 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
8017 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
8019 * app/commands.c: Removed unnecessary gnome include. Removed
8020 GNOME-Print support.
8022 * app/menus.h: Removed now unnecessary gnome include.
8024 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
8025 GNOME-specific stock buttons
8027 2002-06-09 Hans Breuer <hans@breuer.org>
8029 * app/app_procs.c : convert 'Modified diagrams exits'
8030 dialog to use GtkMessageDialog. That gives us:
8031 - icons without Gnome dependency
8032 - much less code, also cross platform
8033 - improved useability ?
8035 * app/color_area.c : the Color Selection Widget looked
8036 quite wrong (alpha problems). Fix it by merging in required
8037 changes stolen from The Gimp cvs
8038 * app/color_area.h : to get the right appearance the maskes
8039 needed to be taken into account
8040 * app/interface.c : adapt to color_area_create changes.
8041 Also remove some dead code and finally remove cvs autexpansion,
8042 I was bothered enough by irrelevant differences :-)
8044 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
8045 api, i.e stocks and response to make the GnomeDialog usage
8046 obsolete. Also fixed the issue with closing the 'parent'
8047 before closing the dialog
8049 * app/display.[ch] : removed some dead code and conversion
8050 to new GtkDialog api. Also trying to conform to new HIG
8051 standard http://developer.gnome.org/projects/gup/hig/
8053 2002-06-09 Hans Breuer <hans@breuer.org>
8055 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
8058 * lib/dia_image.c : gtk_widget_set_default_visual()
8059 remove. It does nothing with Gtk2.
8061 * lib/libdia.def : added ps_unicoder exports
8063 * lib/message.c : remove #GNOME use GtkMessageDialog.
8064 Yeah, Dia gets dialogs wit icons cross-platform.
8066 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
8067 to gtk_spin_button_get_value()
8069 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
8071 add #undef GTK_DISABLE_DEPRECATED to still use ...
8072 * lib/prop_text.c : ... GtkText
8073 * lib/prop_widgets.c : ... GtkList
8074 * lib/prop_dialogs.c : ... gtk_signal_connect and more
8075 * lib/widgets.c : ... (too much to list here)
8077 * lib/ps-utf8.c : #include <string.h>
8079 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
8082 * Makefile.am: Adapted for gtk2.
8083 Removed dependencies on libunicode, on iconv(), on langinfo().
8085 * acconfig.h: removed (now obsolete)
8087 * lib/charconv.[ch]: removed (superceded by glib)
8088 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
8090 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
8091 libunicode types for their glib counterparts. Fixed the include
8092 paths for libxml2. Removed all traces of libxml1 or non-UTF8
8093 support (there were remains in objects/uml).
8096 2002-06-08 Hans Breuer <hans@breuer.org>
8098 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
8099 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
8100 Also use g_strdup()'s handling of NULL by returning NULL
8101 again at all places I found (remove unnecessary if's)
8103 * todo.gtk2 : new file to keep notes about gtk2 porting,
8104 further issues and thoughts and some status information.
8105 Also sent to dia-list ('Dia goes Gtk2 ...').
8107 [make it compile with GTK+ 2.0]
8109 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
8110 removed definition of S_ISDIR, S_ISREG and getlogin
8112 * */makefile.msc : Use GTK2 and libxml2
8113 BEWARE: makefile.am, configure.in not yet ported !
8115 * app/app_procs.c app/diagram.c : remove
8116 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
8117 but set use gtk_menu_set_accel_path() on menu creation
8119 * app/color_area.c lib/widgets.c :
8120 make use of gtk_color_selection_set_has_palette ()
8122 * app/commands.c : gdk_pixbuf_new_from_file wants an
8123 extra argument. Convert from DIR to GDir usage.
8125 * app/diagram_tree.c(button_press_callback) : need to return
8126 FALSE in the signal handler to let gtk process it further.
8127 (get_object_name) : don't leak 'prop'
8129 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
8130 dia_page_layout_destroy() getting called more than once
8132 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
8135 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
8137 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
8138 IIRC this code will not compile unchanged when USE_XIM is defined ...
8140 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
8142 * app/interface.c : there is no widget->klass anymore in Gtk,
8143 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
8144 parameter. Some tweaking of GtkWrapBox usage to get four tools in
8146 switch off GTK's double buffering on Dia's canvas. Otherwise we would
8147 get triple buffering and flicker.
8148 Replace call to GTK private function _gtk_accel_group_attach()
8149 with public gtk_window_add_accel_group()
8151 * app/layer_dialog.c : adapt to GtkTypeInfo changes
8153 * app/load_save.c lib/plug-ins.c lib/sheet.c
8154 objects/custom/custom.c :
8155 simplified by using g_file_test()
8157 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
8158 to gtk_accel_map_<save|load>. Also added common stock-icons
8161 * app/preferences.c : use gtk_button_set_label() instead
8162 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
8164 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
8165 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
8168 * app/recent_files.c : removed GLIB_CHECK_VERSION
8171 plug-ins/metapost/render_metapost.c
8172 plug-ins/pstricks/render_pstricks.c
8173 plug-ins/svg/render_svg.c :
8174 replace getlogin() with g_get_user_name() which always
8177 * app/render_gdk.c : gdk_region_union_with_rect() modifies
8178 inplace now and returns nothing, also less #hell
8180 * app/render_libart.c : some initial #hell cleaning, SuckFont
8181 still needs to vanish
8183 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
8184 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
8186 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
8187 * app/sheets_dialog_callbacks.c : some #hell and adaptions
8188 needed to GtkWrapBox api changes
8191 * lib/charconv.[hc] : removed from build
8192 [changed appropriate]
8193 * lib/prop_inttypes.c lib/prop_text.c :
8195 * lib/text.c : ported from HEAD but keep original indent
8196 intact. Original was done by Akira TAGOH.
8198 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
8200 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
8202 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
8203 same on all platforms now!
8205 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
8207 * lib/message.c : remove "charconv.h"
8209 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
8212 * lib/sheet.c : convert from DIR to GDir usage
8214 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
8216 * lib/widgets.h : include gtk<label|colorseldialog>.h
8219 * objects/fs/flow.c :
8220 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
8222 * objects/custom/custom.c : convert from DIR to GDir usage
8225 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
8228 2002-05-03 Hans Breuer <hans@breuer.org>
8230 * lib/dia_xml.c : make the well formed utf8 check
8231 actually work for û (non 7-bit ascii encoding)
8232 and fixed the file re-writing if the check fails.
8233 Thanks to Vitaly Lipatov for noticing the misbehaviour.
8235 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
8236 comment on last ressort font. Thanks to Maxim Sobolev.
8238 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
8240 * sheets/network.sheet.in: corrected a typo in plotter invocation.
8242 2002-06-03 Steffen Macke <sdteffen@web.de>
8244 * shapes/network/digitizing_board.png:
8245 * shapes/network/digitizing_board.shape:
8246 * shapes/network/plotter.png:
8247 * shapes/network/plotter.shape:
8248 * shapes/network/Makefile.am
8249 * sheets/network.sheet.in: added new plotter and digitizing
8252 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
8254 * lib/font.c: made a symptomatic fix to a segfault reported by
8255 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
8256 won't prevent dia from terminating, but should give more
8257 user-friendly information about why did it terminate.
8259 Two patches from <robert.young@dsto.defence.gov.au>:
8261 * app/display.c: fix the size of the canvas area which gets
8262 redrawn. There was an off-by one error (Closes #83659)
8264 * app/display.c: make sure we redraw all screen only when we
8265 really have to (some update_areas were mistakenly ignored) (Closes
8268 * NEWS: added a new entry for the future. Put there a reminder to
8269 update the dependencies.
8271 * configure.in: put in notes about what will change shortly.
8272 upped the version to 0.90+cvs (did also in config.h.win32)
8273 upped the minimum version for intltools (now 0.21)
8275 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
8281 bumped up version number to 0.90. Yay!
8283 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
8285 * doc/pl/Makefile.am:
8286 * doc/en/Makefile.am: fixed a "make install" problem when db2html
8287 is not present (Reported by Andrew Ferrier
8288 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
8289 problem which prevented me from ever seeing the problem in doc/en...
8291 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
8293 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
8294 way to read the font path from the XFS configuration files in
8295 order to enable FreeType (fixes #83098).
8297 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
8304 bumped up version number to 0.90.RC3
8306 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
8308 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
8309 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
8310 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
8311 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
8312 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
8313 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
8314 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
8315 Added Polish documentation.
8317 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
8319 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
8320 format for the UML State object. Now there's a hack to reload
8321 older files, and get them converted on the fly.
8322 Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
8326 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
8327 and adapter the proplist predicates. A LOAD_ONLY property is for
8328 when you have legacy to support but can't resist moving your
8329 fields around... (was needed to support the above state.c fix).
8331 If the in-core of your object changes and you need a LOAD_ONLY
8332 property for the old format, you must keep some spare room in your
8333 object's struct to accomodate for the potential old-style
8334 attributes. Then in foo_load(), after having called
8335 object_load_using_properties(), you must inspect the old-style
8336 fields and act accordingly. Don't ever change the on-disk formats...
8338 * objects/UML/object.c:
8339 * objects/UML/small_package.c: added a check against empty
8340 stereotypes still consuming space. Reported by Dolores Alia de
8341 Saravia <loli@unsa.edu.ar>. Thanks!
8343 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
8345 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
8346 using libtool on an AFS partition.
8348 * po/update_potfiles_in.sh: now simply calls the recent intltools
8349 features; they work better than hand-crafted half-ignorant
8350 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
8353 * po/POTFILES.in: added back two files update_potfiles_in.sh
8354 didn't take into account. Now this file is not automatically
8356 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
8357 (the usual suspects, in fact).
8359 * configure.in: improved the isinf() / isfinite() detection on
8360 Solaris (MÃ¥rten Svantesson)
8362 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
8364 * configure.in: one expression was replacing $CFLAGS, removing
8365 whatever was previously in.
8366 Added more checks for isinf() and finite() on Solaris.
8368 * lib/geometry.h: added a macro defintion for isinf() if not
8369 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
8372 * app/commands.c: "cut" did not set the 'modified' bit (paste has
8373 been for a little while). Fixes #82994.
8375 * Makefile.am: added more stuff to distclean-local. This should make
8376 "make distcheck" pass! Thanks to the author of
8377 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
8378 ... I wonder who this Henstridge guy is ... ;-)
8379 Darn. Still doesn't pass. I give up for tonight.
8381 * po/update_potfiles_in.sh: updated to take care of sheet files,
8382 and to filter out the EML plug-in.
8383 * po/POTFILES.in: updated with all .c and all .sheet.in files
8385 * po/dia.pot, po/*.po: again updated all .po files with all
8386 strings (with the updated POTFILES). Now with the up-to-date
8387 POTFILES, just all languages have some fuzzy or untranslated
8388 strings (not that the 100% team was that large beforehand...)
8390 * po-checktrans: removed the comment about .po files not holding
8391 all translatable stuff, since now they do.
8393 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
8399 bumped up version number to 0.90.RC2
8401 2002-05-20 Hans Breuer <hans@breuer.org>
8403 * app/load_save.c : starting to increase
8404 Dias tolerance on incomplete/broken files. The
8405 corresponding bug is #56233. But the patch there does
8406 neither apply anymore nor does it really fix the problem
8407 but only delays it, e.g. even if it would be allowed
8408 to read a file without any layers, the later code can't
8410 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
8411 handle passing in NULL for the node gracefully.
8413 * shapes/network/printer.shape : added two more connection
8414 points - one at each side - to fix bug #60359
8416 * app/commands.c (edit_copy_callback) :
8417 add ddisplay_do_update_menu_sensitivity() to make
8418 sequence select-copy-paste work.
8420 2002-05-20 Hans Breuer <hans@breuer.org>
8422 * app/create_object.c (create_object_button_press) :
8423 added a call to ddisplay_do_update_menu_sensitivity()
8424 to make Ctrl^D etc work after object creation.
8427 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
8429 * objects/ER/entity.c:
8430 * objects/ER/attribute.c:
8431 * objects/ER/relationship.c: Patch to allow text size change from
8432 Celso Tetsuo Nagase Suzuki.
8434 2002-05-18 Steffen Macke <sdteffen@web.de>
8436 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
8438 * doc/en/graphics/greendots.png:
8439 * doc/en/home_network.png:
8440 * doc/en/line_props.png:
8442 * dia_gnome_icon.png:
8443 * dia_gnome_menu_icon.png:
8445 * shapes/network/telephone.png:
8446 * shapes/Logic/and.png:
8447 * shapes/Logic/buffer.png:
8448 * shapes/Logic/connector.png:
8449 * shapes/Logic/inverter.png:
8450 * shapes/Logic/nand.png:
8451 * shapes/Logic/nor.png:
8452 * shapes/Logic/not.png:
8453 * shapes/Logic/or.png:
8454 * shapes/logic/xor.png:
8455 * samples/ER-demo.dia:
8457 * samples/UML-demo.dia:
8458 * samples/chronograms.dia:
8459 * samples/grafcet.dia: re-added as binary files
8461 2002-05-17 Hans Breuer <hans@breuer.org>
8463 * lib/libdia.def : reflect removing of render_store.[ch]
8465 * */makefile.mingw : remove VERSION definition it's
8466 done in config.h.win32. Dia still doesn't work if
8467 build with mingw ...
8469 * RELEASE-PROCESS : removed */makefile.mingw
8471 * app/sheets_dialog_callbacks.c : if we use those
8472 ugly charconv_gtk_* functions lib/charconv.h needs to
8474 * lib/charconv.h : ... and needs to contain the
8475 necesseray prototypes _and_ #defines
8477 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
8478 is deprecated and does nothing but spit a warning. This broke
8479 the shape format writing. Fixed.
8480 Also with libxml2 pretty formatted xml isn't the default
8481 anymore, but needs to be enabled explicit: It is done now
8482 for shape files, which almost always needed to be edited by
8485 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
8486 from stderr - which is invalid on Dia/win32 - to g_print -
8487 which opens up a console window if necessary. This way
8488 a xml-deprecation-error shouldn't stay unnoticed next time
8490 2002-05-17 Steffen Macke <sdteffen@web.de>
8492 * shapes/Misc/folder.png:
8493 * shapes/Misc/file.png: re-added as binary files
8495 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
8497 * lib/font.c: Fixed segfault for fonts without family_name.
8499 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
8501 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
8503 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
8504 Lars' request, minor cosmetic stuff (mostly _() of human-readable
8505 XML comments in .sheet files; one translator booby-trap disarmed).
8507 * lib/charconv.c: moved #hell inside the body of the new
8508 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
8511 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
8513 * plug-ins/wpg/Makefile.am (INCLUDES):
8514 * plug-ins/shape/Makefile.am (INCLUDES):
8515 * plug-ins/svg/Makefile.am (INCLUDES):
8516 * plug-ins/pstricks/Makefile.am (INCLUDES):
8517 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
8518 and DEBUG_CFLAGS in some missing places.
8520 * MAINTAINERS: New file containing list of known package
8524 * lib/charconv.c: Charconv versions of some common gtk calls.
8526 * app/sheets_dialog_callbacks.c
8527 (on_sheets_new_dialog_button_ok_clicked),
8528 (on_sheets_dialog_button_edit_clicked),
8529 (on_sheets_dialog_button_remove_clicked),
8530 (on_sheets_edit_dialog_button_ok_clicked):
8531 * app/sheets.c (sheets_optionmenu_create),
8532 (sheets_optionmenu_create): Added utf8 translations.
8534 * app/sheets_dialog.c:
8536 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
8538 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
8540 * po/POTFILES.in: added app/sheets_dialog.c
8542 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
8544 * lib/charconv.c: (charconv_local8_to_utf8),
8545 (charconv_utf8_to_local8): tweaked the warnings to get more
8547 * lib/font.c: (font_get_suckfont): handled a potential case of
8548 uninitialised data being used (just paranoid)
8550 * objects/GRAFCET/boolequation.c: (opstring),
8551 (opblock_get_boundingbox), (opblock_draw),
8552 (boolequation_calc_boundingbox): some extra hoops needed now dia
8553 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
8554 symbols can't yet be used with their proper Unicode cells, since
8555 gtk will demand them in the Symbol font, expressed in the local
8558 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
8559 the fix just above).
8561 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
8563 * app/diagram_tree.c (get_object_name): Check that name property
8564 doesn't have null string.
8566 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
8568 * autogen.sh (DIE): Added conditional --force to gettextize.
8570 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
8573 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
8575 * RELEASE-PROCESS: added James' notes on how to properly make the
8578 * configure.in: removed macro nesting related to libpng.h, which
8579 was causing some problems on some systems (like mine, which made
8582 Made --enable-unicode, previously an option, the mandatory case.
8584 * app/Makefile.am: updated EXTRA_DIST
8587 * app/makefile.mingw:
8589 * doc/en/dia-manual.sgml:
8590 * plug-ins/makefile.mingw:
8591 * configure.in: bumped up the version number to 0.90.RC1
8593 * lib/render_objects.[ch]:
8594 * po/POTFILES.in: removed render_objects from the build.
8596 * plug-ins/Makefile.am:
8597 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
8598 so we keep its source in the tarball.
8600 * objects/network/*.c, Makefile.am:
8601 * objects/sybase/*.c, Makefile.am:
8602 * po/POTFILES.in: cleaned up the non-existent files from the po
8605 * plug-ins/Makefile.am: re-enabled metapost plug-in.
8607 2002-05-13 Steffen Macke <sdteffen@web.de>
8610 * app/command.c: added M. C. Nelson to the Authors
8611 * sheets/Circuit/Makefile.am: added firewall shape to build
8612 * sheets/network/Makefile.am: added telephone and microphone
8615 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
8617 * RELEASE-PROCESS: Added list of files that contain the release
8618 number or should otherwise be changed at each release.
8620 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
8622 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
8623 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
8625 2002-05-12 Hans Breuer <hans@breuer.org>
8627 * config.h.win32 : changed VERSION to 0.90.RC1
8629 * app/makefile.msc lib/makefile.msc : use renamed
8630 gdk-pixbuf version (same content but renamed because
8631 all the other gtk+ dlls are renamed) to avoid trouble
8632 mixing gtk versions (of which one would not
8635 * app/app_procs.c : removed recently unneeded
8636 inclusion of "sheets.h"
8638 * app/render_gdk.c : removed my own debug spew
8639 which should never made it to cvs
8641 * lib/render_object.[hc] : added
8642 #error "File not used anymore."
8644 * lib/libdia.def : updated externals
8646 * app/interface.c : dropped filenames need to be
8647 converted from uri with Gtk+2.0
8649 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
8651 * RELEASE-PROCESS (new): a draft document about how to release. To
8652 be discussed. (already with some input from Hans Breuer)
8654 2002-05-12 Steffen Macke <sdteffen@web.de>
8656 * sheets/Makefile.am: re-added Misc sheet to make process
8658 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
8660 * objects/FS/function.c: Added comments to humungous list of menu
8661 items, to aid translators.
8663 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8665 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
8667 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
8669 * app/interface.c (create_toolbox): Disallow shrinking beyond
8670 requested size. Fixes bug #59439, and confirms to GTK guidelines
8671 (see gtk_window_set_policy).
8672 (create_sheets): Removed now unnecessary set_usize call.
8674 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8676 * lib/beziershape.c (remove_handles): Fixing removal of last
8677 segment. Undo of removal still hokey.
8679 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
8681 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
8683 * lib/beziershape.c (beziershape_init): Removed early call to
8684 beziershape_update_data where points aren't set yet.
8685 (beziershape_add_segment): Use segment 0 instead of overflowing
8686 points array with segment+1.
8687 (beziershape_remove_segment): Proper offset for fixing
8689 (remove_handles): Proper offset.
8691 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
8693 * objects/GRAFCET/action.c (action_update_data): Init x value of
8694 click point for call to connpointlist_adjust_count.
8696 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
8698 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
8699 setting to where values are inited.
8701 * lib/polyshape.c (polyshape_init): Removed call to
8702 polyshape_update_data that tried to use uninitialized data.
8704 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8706 * app/sheets_dialog.c: Mass removal of //-style comments. The
8707 Irix compiler doesn't like them:( I do...
8709 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
8711 * app/render_libart.c (draw_string): Bail out when no GDK font is
8713 (set_font): Give error when font not found.
8714 (set_fillstyle): Intlized error msg.
8716 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
8717 modified when applied (and ok only does apply if apply is set
8718 sensitive). Fixes bug #75623.
8720 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
8722 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
8724 2002-05-05 Steffen Macke <sdteffen@web.de>
8726 * app/Makefile.am: added $(UNICODE_CFLAGS)
8728 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
8730 * app/commands.c (help_manual_callback): Check return value of
8733 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
8735 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
8738 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
8740 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
8742 * objects/UML/uml.c (uml_operation_read): Fix of UML default
8745 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8747 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
8748 Added button to toggle diagram compression.
8750 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
8752 * lib/font.c: Support for loading extra kerning files, plus got
8753 rid of rounding errors. Bounding box mostly perfect for freetype
8755 (font_string_width): Fudge factor to get around nonlinearity of
8758 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
8760 * lib/font.c (font_string_width): YA font calculation scheme, with
8763 * objects/UML/class.c (umlclass_calculate_data): Uses the same
8764 font for drawing and calculating now.
8766 * configure.in: Added utime.h check.
8768 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
8769 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
8771 2002-04-26 Hans Breuer <hans@breuer.org>
8773 [ Instead of fixing about 70 occurances in 20 files
8774 where GTK_TALKS_UTF8_WE_DONT needed to be handled
8775 Dia on win32 from now on uses glib-2.0 and not
8776 only talks utf-8 with gtk-1.3 but also internally.
8777 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
8780 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
8781 #undef GTK_TALKS_UTF8_WE_DONT
8783 * */makefile.msc : changes to use glib-2.0 (still
8784 using gtk+1.3(win32-production)
8786 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
8787 adapt kevent->string handling, add <string.h>
8788 * app/render_gdk.c (get_text_width) : the length given
8789 is in chars, gdk_text_width() needs bytes
8791 * app/render_libart.c :
8792 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
8793 (could simplify the same way as done in render_gdk.c)
8795 * app/diagram_tree.c app/paginate_gdiprint.cpp
8797 * lib/prop_basic.c lib/prop_geomtypes.c
8798 lib/propdialgs.c lib/propobject.c :
8799 added <string.h> which is now removed from charconv.h
8801 * lib/charconv.h : optional use infrastructure from
8802 glib-2.0 -> only five direct function mapping left
8804 * lib/charconv.c : avoid to build this with glib-2.0
8806 * lib/font.c : no string conversion needed anymore
8807 when Dia and Gtk talk utf-8, also code adaptions
8808 for GLIB_CHECK_VERSION(2,0,0)
8810 * lib/libdia.def : removed charconv functions
8812 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
8813 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
8815 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
8816 removed GTK_TALKS_UTF8_WE_DONT
8818 * lib/text.c : finally(?) fixed cursor <place|move>ment
8819 for Umlauts. Also fixed char insertion, still wondering
8820 how this could ever work. Does realloc on Linux
8821 initialize the memory with zeros ?
8823 * objects/chronogram/chronoline_event.c
8824 objects/grafcet/boolequation.c :
8825 there is no uni_get_utf8 when building for glib-2.0.
8826 Replace with g_utf8_get_char() and g_utf8_next_char().
8828 * objects/uml/stereotype.c (bracketted_to_string) :
8829 simplify while adding code for glib-2.0 build
8831 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
8833 * app/diagram.h: Autosave field
8834 * app/diagram.c (diagram_set_modified): Sets autosave field.
8836 * objects/UML/usecase.c (usecase_update_data):
8837 * objects/flowchart/ellipse.c (ellipse_update_data):
8838 * objects/flowchart/parallelogram.c (pgram_update_data):
8839 * objects/flowchart/diamond.c (diamond_update_data):
8840 * objects/custom/custom_object.c (custom_update_data):
8841 * objects/UML/state.c (state_update_data):
8842 * objects/UML/small_package.c (smallpackage_update_data):
8843 * objects/UML/object.c (objet_update_data):
8844 * objects/UML/note.c (note_update_data):
8845 * objects/UML/node.c (node_update_data):
8846 * objects/UML/component.c (component_update_data):
8847 * objects/UML/classicon.c (classicon_update_data):
8848 * objects/UML/actor.c (actor_update_data):
8849 * objects/SADT/box.c (sadtbox_update_data):
8850 * objects/FS/function.c (function_update_data):
8851 All now update text boundaries from update_data.
8853 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
8856 2002-04-26 Hans Breuer <hans@breuer.org>
8858 * config.h.win32 : added VERSION definition here
8859 (and removed from makefile.msc's)
8861 * app/makefile.msc : added new files
8863 * app/app_procs.c (app_init): remove sheets_dialog_create()
8864 from start-up and ...
8866 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
8867 sheet_dialog here when it is really needed.
8868 #include "../lib/message.h", make sheets_dialog_create()
8869 return it's success or failing on (!custom_type_symbol).
8870 Although editing shapes is nice IMHO it isn't crucial enough
8871 to abort() Dia if it isn't possible.
8873 * app/sheet.h : adapt create_sheet_dialog() prototype
8875 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
8877 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
8878 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
8879 name space corrections for utime() and utim_buf #ifdef
8882 * lib/libdia.def : export new sheet functions
8884 * lib/makefile.msc : added new files
8886 * lib/render.c : don't put draw_bezier_with_arrows() in
8887 the DrawLineWithArrowsFunc slot
8889 * objects/custom/custom_object.c : #include <gmodule.h>
8890 and export 'custom_type' via G_MODULE_EXPORT
8892 * objects/uml/class_dialog.c : removed 'incompatible
8893 types' warnings. Some refactoring while making it fit
8894 on screen with 800x600 again.
8896 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
8898 * plug-ins/python/pydia-handle.h : extra parameter to
8899 PyDiaHandle_New to store the owner of the handle
8900 * plug-ins/python/pydia-handle.c : store handle owner
8901 on construction and use it in new method .connect()
8902 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
8903 adapt to changed prototype
8905 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
8907 * lib/text.c (text_calc_boundingbox): Will now return early if box
8910 * objects/flowchart/box.c (box_update_data): Now updates text
8911 width info from update_data.
8913 2002-04-23 Steffen Macke <sdteffen@web.de>
8915 * plug-ins/xfig/xfig-import.c: fixed text import
8917 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
8919 * app/export_png.c: Moved dialog functions to their own file.
8920 * app/dialogs.[ch]: New files with standard functions for creating
8921 small, transient dialogs (e.g. export options).
8922 * app/Makefile.am: Added dialogs.[ch]
8924 2002-04-19 Steffen Macke <sdteffen@web.de>
8926 * shapes/Misc/folder.*:
8927 * shapes/Misc/file.*:
8928 * shapes/Misc/Makefile.am:
8929 * shapes/Makefile.am:
8930 * sheets/Misc.sheet.in:
8931 * sheets/Makefile.am:
8932 * configure.in: added new Misc sheet containing filesystem shapes
8934 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
8936 * app/lineprops_area.c: Arrow selector in toolbox changed to use
8937 standard arrowdraw code. Line is thinner to make some arrowheads
8940 2002-04-18 Steffen Macke <sdteffen@web.de>
8942 * sheets/network.sheet.in:
8943 * shapes/network/telephone.shape:
8944 * shapes/network/Makefile.am: added telephone shape
8946 2002-04-16 Steffen Macke <sdteffen@web.de>
8948 * sheets/EML.sheet.in: commented out unavailable shapes
8950 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
8952 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
8953 variable assignment.
8955 2002-04-15 Steffen Macke <sdteffen@web.de>
8957 * plug-ins/dxf/dxf-import.c: text import works again
8958 * shapes/Pneumatic/Makefile.am: added compush shape
8959 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
8962 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
8964 * All these modifications are for the 'Sheets and Objects' dialog
8967 * app/pixmaps/line_break.xpm: new icon representing a line break.
8969 * app/pixmaps/n_a.xpm: new empty icon representing not available.
8971 * app/Makefile.am: added sheets_*.[ch] files to compile list.
8973 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
8975 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
8977 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
8979 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
8981 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
8983 * app/sheets_dialog_callbacks.h: [new file] support for " " "
8985 * app/interface.c: added 'interface_current_sheet_name' global to
8986 fill_sheet_wbox(); made fill_sheet_menu() non-static
8988 * app/interface.h: added extern declaration for aboves.
8990 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
8992 * app/sheets.h: [new file] declarations for backing store structures
8994 * lib/sheet.c: modification of new_sheet() parameters; introduction
8995 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
8996 changes to load_register_sheet().
8998 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
8999 added 'has_icon_on_sheet' flag to SheetObject structure; added
9000 'filename', 'scope', 'shadowing' fields to Sheet structure.
9002 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
9005 * lib/plug-isn.h: see above.
9007 * lib/object.c: added 'sheet.h' to include list; added several
9009 to detect objects which are not found on any sheet (for future use)
9010 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
9011 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
9013 * lib/object.h: added public declarations for above functions where
9016 * objects/custom/custom.c: made custom_object_load() non-static so we
9017 can load and interpret .shape files from the Sheets & Objects dialog
9019 * objects/custom/custom_object.c: made 'custom_type' non-static so
9020 we can differentiate between SVG shapes and other types.a
9022 2002-04-07 Hans Breuer <hans@breuer.org>
9024 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
9025 from 2002-01-22 to not destroy diagram->data->selected.
9026 Avoids to crash on Objects/Align/Vertical/Top
9028 * app/render_eps.c (draw_string) : un-const buffer
9029 It isn't at all const (g_malloc(), assignment, g_free()).
9030 Doesn't gcc catch such ?
9032 * lib/arrows.h : prototype calculate_arrow_point()
9034 * lib/font.c (font_get_suckfont) : no need to
9035 special case gdk_draw_string() with GTK_TALKS_UTF8,
9036 cause all the parameter differences are handled above
9038 * lib/libdia.def : updated externals
9040 * lib/makefile.msc : removed string_prerenderer, added render
9042 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
9043 is expected. [Sometimes it's good to read compiler warnings.]
9045 * objects/standard/image.c : simplified by use of g_strconcat()
9047 * plug-ins/python/makefile.msc : updated for Python 2.2
9049 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
9051 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
9052 directionality problem for zero-length line segments.
9054 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
9056 * app/diagram.c (diagram_ungroup_selected)
9057 (diagram_update_menu_sensitivity): Now allows ungrouping of
9058 several groups at once.
9060 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
9062 * lib/render.c, all renderers: Binary incompatibility, change to
9063 expandable renderops structure.
9065 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
9067 * objects/standard/Makefile.am:
9068 * objects/network/Makefile.am:
9069 * objects/UML/Makefile.am:
9070 * objects/ER/Makefile.am:
9071 * objects/FS/Makefile.am:
9072 * objects/flowchart/Makefile.am:
9073 * objects/custom/Makefile.am:
9074 * objects/GRAFCET/Makefile.am:
9075 * objects/chronogram/Makefile.am:
9076 * objects/SADT/Makefile.am:
9077 * plug-ins/cgm/Makefile.am:
9078 * plug-ins/pstricks/Makefile.am:
9079 * plug-ins/hpgl/Makefile.am:
9080 * plug-ins/wpg/Makefile.am:
9081 * plug-ins/svg/Makefile.am:
9082 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
9084 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
9086 * app/render_eps.c: Support for dumping TrueType fonts (taken from
9089 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
9091 * lib/render.c: New abstract super class for renderers.
9093 2002-03-07 Akira TAGOH <tagoh@redhat.com>
9095 * objects/ER/attribute.c (attribute_save): save a font property.
9096 (attribute_load): load a font property, and if can't load it, it's
9099 * objects/ER/entity.c (entity_save): save a font property.
9100 (entity_load): load a font property, and if can't load it, it's
9103 * objects/ER/relationship.c (relationship_save): save a font property.
9104 (relationship_load): load a font property, and if can't load it, it's
9107 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
9109 (umlclass_save): save the font and the font size properties.
9110 (umlclass_load): load the font and the font size properties.
9112 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
9114 * lib/string_prerenderer.[ch] (REMOVED):
9116 * lib/diagramdata.c:
9118 * app/render_eps.c: got rid of the string-specific string
9119 prerenderer, transitioned its functionality towards Lars'
9122 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
9124 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
9125 may need to rerun aclocal.
9127 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
9129 * lib/font.c: First attempt at Unicodeness for Freetype.
9131 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9133 * lib/font.c (font_string_width): Fixed font_string_width for
9134 freetype. BB is now almost right.
9136 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
9139 * app/paginate_psprint.c (paginate_psprint):
9141 * app/render_eps.c: Support for dumping postscript fonts into
9142 postscript files with freetype. Fairly primitive, but works.
9143 Unicode version may have problems.
9145 2002-02-28 Akira TAGOH <tagoh@redhat.com>
9147 * objects/UML/class_dialog.c (class_read_from_dialog)
9148 (class_fill_in_dialog), (class_create_page): add the font selector and
9149 the font size selector.
9151 * objects/UML/class.c (umlclass_draw): uses each font_height.
9152 (umlclass_calculate_data): ditto.
9153 (fill_in_fontdata): add initial value of new font_height.
9154 (umlclass_copy): add new font_height.
9156 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
9158 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
9160 * lib/font.c: calculate font metrics properly and stop guessing at
9163 2002-02-28 Akira TAGOH <tagoh@redhat.com>
9165 * configure.in: changed gtk_advancement value to dia_talks_utf8.
9166 right now Dia is working with UTF-8 internally. it means Dia probably
9167 support most languages also including the languages which heretofore
9168 didn't work correctly.
9170 2002-02-26 Akira TAGOH <tagoh@redhat.com>
9172 * objects/FS/function.c: add related text properties.
9173 (function_get_props), (function_set_props): add handling attribute.
9175 * objects/FS/flow.c: add related text properties.
9176 (flow_get_props), (flow_set_props): add handling attribute.
9178 * objects/FS/flow-ortho.c: add related text properties.
9179 (orthflow_set_props), (orthflow_get_props): add handling attribute.
9181 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
9183 * objects/ER/entity.c: ditto.
9185 * objects/ER/attribute.c: ditto.
9187 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
9189 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
9191 * autogen.sh: add a check for missing intltoolize.
9193 2002-02-20 Akira TAGOH <tagoh@redhat.com>
9195 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
9196 charcode, it was registered the duplicate item to HashTable. fix.
9198 * app/render_gnomeprint.c (get_width_string): add new function.
9199 (draw_string): fix non-multibyte specific code.
9201 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
9203 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
9205 * lib/font.c: do not try to search paths that do not begin with
9206 '/', like X Font Server addresses.
9208 * objects/UML/message.c (message_draw): free mname when not
9209 message->text but CREATE or DESTROY.
9211 * objects/UML/uml.h:
9212 * objects/UML/uml.c:
9213 * objects/UML/class_dialog.c: added code to handle a stereotype
9214 attribute for operations.
9216 2002-02-19 Akira TAGOH <tagoh@redhat.com>
9218 * lib/Makefile.am: add LIBART_CFLAGS.
9220 2002-02-15 Hans Breuer <hans@breuer.org>
9222 * lib/font.c (font_get_suck_font): the black and white pixel values
9223 need to be taken from a 1 bit colormap rather than the default colormap.
9224 (fixed again, last time was 2000-05-26)
9226 Also handle the case where GTK_TALKS_UTF8 and expects all strings
9227 passed in to be in this encoding.
9229 * lib/libdia.def : export suck_font_free()
9231 * lib/text.c (text_draw) : avoid circular dependency to ../app
9232 at least for the !USE_XIM case, where it is unnecessary.
9234 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
9236 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
9238 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
9239 * sheets/Circuit.sheet.in: added new shape microphone
9240 * shapes/Circuit/speaker_de.shape: Added a connection point.
9242 2002-02-13 Akira TAGOH <tagoh@redhat.com>
9244 * app/render_libart.c (draw_string): fixed build issue for Win32.
9246 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
9249 * configure.in: fixed testing gtk_advancement.
9251 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
9253 2002-02-12 Akira TAGOH <tagoh@redhat.com>
9255 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
9258 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
9260 * app/group.c (group_copy): Made new object properly initialized
9263 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
9265 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
9267 2002-02-10 Akira TAGOH <tagoh@redhat.com>
9269 * lib/text.c (text_draw): fixed XIM transaction.
9271 * app/interface.c (create_display_shell): add signal for
9274 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
9276 (set_input_dialog): remove.
9277 (ddisplay_canvas_events): remove XIM transaction. it can't transact
9278 correctly on this function.
9280 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9283 * app/export_png.c: Added checks for interactivity (maybe this
9284 should be a hook after all?).
9286 * app/filedlg.c (file_export_callback): Made export dialog add
9287 suffix when reopened.
9289 * app/export_png.c: Added dialog asking for export size.
9291 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9293 * lib/widgets.c: Fixed font reselection problem and first font
9296 * objects/UML/actor.c (actor_update_data): Changed to have
9297 connection points below text.
9299 2002-02-08 Akira TAGOH <tagoh@redhat.com>
9301 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
9304 2002-02-07 Akira TAGOH <tagoh@redhat.com>
9306 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
9307 strings which is given.
9308 (suck_font): remove. it's any longer needed.
9310 * app/render_libart.c (set_font): don't get suckfont.
9311 (draw_string): get suckfont only which is needed for now.
9313 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9315 * lib/text.c: Fixes for misunderstood width functions.
9317 2002-02-05 Hans Breuer <hans@breuer.org>
9319 * lib/dia_xml.c : use g_strconcat() instead of
9320 malloc, strcpy, strcat dance
9321 * app/properties.c : same here and plug memory leak
9322 (gtk functions don't eat strings)
9324 * objects/UML/message.c : there is no g_sprintf()
9325 use g_strdup_printf() instead ...
9327 2002-02-05 Akira TAGOH <tagoh@redhat.com>
9329 * lib/message.c (gtk_message_internal): doesn't need to convert to
9332 * app/render_libart.c (draw_string): fixed transaction for UTF-8
9334 (get_text_width): ditto.
9336 * app/Makefile.am (EXTRA_DIST):
9337 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
9339 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
9340 This function needs ifdef HAVE_FREETYPE because don't use it for
9343 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
9345 * NEWS: updated with the new dependencies.
9347 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9349 * objects/UML/class.h:
9350 * objects/UML/class.c:
9351 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
9352 property using a GtkMenu. Options are Undefined, In, Out, In & Out
9354 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
9356 * app/render_libart.c: Slow but working libart freetype renderer,
9359 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9361 * app/render_gdk.c (draw_string): Fixed gc_function bug.
9363 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
9365 * lib/font.c (freetype_render_string):
9368 * app/render_gdk.h: Changed freetype_render_string to use
9369 callback. Rendering is broken.
9371 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
9373 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9375 * objects/UML/uml.h:
9376 * objects/UML/uml.c: added UMLInheritanceType and isQuery
9377 (constant) UML Operation attributes. UMLInheritanceType is either
9378 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
9380 * objects/UML/class.h:
9381 * objects/UML/class.c:
9382 * objetcs/UML/class_dialog.c: added code to handle new
9383 UMLOperation attributes via a GtkMenu and a checkbox.
9385 2002-02-03 Akira TAGOH <tagoh@redhat.com>
9387 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
9388 several client doesn't work with previous codes.
9390 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
9392 * lib/font.c (freetype_render_string): Kerning. Very few fonts
9395 2002-02-02 Akira TAGOH <tagoh@redhat.com>
9397 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
9398 when doing the operation like invert the objects after active view is
9399 destroyed. when changes focus, it needs to set active_display.
9401 * app/layer_dialog.c (dia_layer_update_from_layer):
9402 (layer_dialog_edit_layer): need to convert to locale encoding
9403 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
9404 (edit_layer_ok_callback):
9405 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
9407 * lib/diagramdata.c (new_diagram_data): ditto.
9409 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
9411 * lib/diagramdata.c (new_layer): use utfchar instead of char for
9414 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
9415 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
9416 it's needed for now. also this function needs prototype declaration.
9418 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
9420 * lib/widgets.c: Style now functional on font selector. Some leak
9421 possible, but doesn't show up under stress test.
9423 2002-01-31 Akira TAGOH <tagoh@redhat.com>
9425 * app/plugin-manager.c (clist_select_row): name and description needs to
9426 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
9427 (get_plugin_manager): ditto.
9429 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
9431 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
9434 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
9435 when prop->string_data is NULL.
9437 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9440 * lib/widgets.h: New font selector separating font and style.
9441 Style not functional yet.
9443 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
9446 * app/render_gdk.c (draw_string): More freetype support, now
9447 renders text. Still broken is font selection and exporting.
9449 2002-01-30 Akira TAGOH <tagoh@redhat.com>
9451 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
9454 * objects/chronogram/chronoline.c (chronoline_create): ditto.
9456 * objects/UML/usecase.c (usecase_create): ditto.
9458 * objects/UML/state.c (state_create): ditto.
9460 * objects/UML/object.c (objet_create): ditto.
9462 * objects/UML/node.c (node_create): ditto.
9464 * objects/UML/message.c (message_create): ditto.
9466 * objects/UML/component.c (component_create): ditto.
9468 * objects/UML/classicon.c (classicon_create): ditto.
9470 * objects/UML/actor.c (actor_create): ditto.
9472 * objects/SADT/box.c (sadtbox_create): ditto.
9474 * objects/SADT/annotation.c (annotation_create): ditto.
9476 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
9478 * objects/GRAFCET/step.c (STEP_FONT):
9479 * (step_create): ditto.
9481 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
9483 * objects/GRAFCET/action.c (ACTION_FONT):
9484 (action_create): ditto.
9486 * objects/FS/function.c (function_create): ditto.
9488 * objects/FS/flow.c (flow_create):
9490 (flow_apply_defaults): ditto.
9492 * objects/FS/flow-poly.c (flow_create):
9494 (flow_apply_defaults): ditto.
9496 * objects/FS/flow-ortho.c (orthflow_create):
9498 (orthflow_apply_defaults): ditto.
9500 * objects/ER/relationship.c: use utfchar instead of char for structure.
9501 (relationship_create): name needs to convert to UTF-8.
9503 * objects/ER/attribute.c: use utfchar instead of char for structure.
9504 (attribute_create): name needs to convert to UTF-8.
9506 * objects/ER/entity.c: use utfchar instead of char for structure.
9507 (entity_create): name needs to convert to UTF-8.
9509 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
9510 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
9511 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
9512 items. if GTK_TALKS_UTF8 isn't defined.
9514 2002-01-29 Akira TAGOH <tagoh@redhat.com>
9516 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
9517 it was my careless mistake...
9519 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
9520 a font name, because there are strings which isn't shown by "Courier".
9521 We need to consider a way to feel free to choose a font at runtime.
9523 * lib/render_object.c (render_object_load): ditto.
9525 * lib/text.c (data_text): ditto.
9527 * objects/EML/instantiation.c (instantiation_create): ditto.
9529 * objects/EML/interaction-ortho.c (interaction_ortho_create):
9530 (interaction_ortho_load): ditto.
9532 * objects/EML/interaction.c (interaction_create):
9533 (interaction_load): ditto.
9535 * objects/EML/process.c (fill_in_fontdata): ditto.
9537 * objects/ER/attribute.c (attribute_create):
9538 (attribute_load): ditto.
9540 * objects/ER/entity.c (entity_create):
9541 (entity_load): ditto.
9543 * objects/ER/relationship.c (relationship_create):
9544 (relationship_load): ditto.
9546 * objects/UML/association.c (association_create):
9547 (association_load): ditto.
9549 * objects/UML/class.c (fill_in_fontdata): ditto.
9551 * objects/UML/constraint.c (constraint_create): ditto.
9553 * objects/UML/dependency.c (dependency_create): ditto.
9555 * objects/UML/generalization.c (generalization_create): ditto.
9557 * objects/UML/implements.c (implements_create): ditto.
9559 * objects/UML/large_package.c (largepackage_create): ditto.
9561 * objects/UML/note.c (note_create): ditto.
9563 * objects/UML/realizes.c (realizes_create): ditto.
9565 * objects/UML/small_package.c (smallpackage_create): ditto.
9567 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
9569 * objects/custom/custom_object.c (custom_create): ditto.
9571 * objects/network/antenna.c (render_to_store): ditto.
9573 * objects/network/computer.c (render_to_store): ditto.
9575 * objects/network/disc.c (render_to_store): ditto.
9577 * objects/network/flash.c (render_to_store): ditto.
9579 * objects/network/hub.c (render_to_store): ditto.
9581 * objects/network/modem.c (render_to_store): ditto.
9583 * objects/network/modularswitch.c (render_to_store): ditto.
9585 * objects/network/monitor.c (render_to_store): ditto.
9587 * objects/network/printer.c (render_to_store): ditto.
9589 * objects/network/rj45plug.c (render_to_store): ditto.
9591 * objects/network/scead-plug.c (render_to_store): ditto.
9593 * objects/standard/textobj.c (textobj_load): ditto.
9595 * objects/sybase/client.c (render_to_store): ditto.
9597 * objects/sybase/dataserver.c (render_to_store): ditto.
9599 * objects/sybase/ltm.c (render_to_store): ditto.
9601 * objects/sybase/repserver.c (render_to_store): ditto.
9603 * objects/sybase/rsm.c (render_to_store): ditto.
9605 * objects/sybase/stableq.c (render_to_store): ditto.
9607 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
9609 * objects/UML/uml.h (UML_STEREOTYPE_START):
9610 (UML_STEREOTYPE_END): changes default strings.
9612 2002-01-28 Akira TAGOH <tagoh@redhat.com>
9614 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
9615 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
9616 which is given to arguments isn't UTF-8. so don't need to convert it.
9617 if GTK+ handle UTF-8, also don't need to convert it.
9619 (bracketted_to_string): fixed transaction for UTF-8 support.
9620 also start/end bracket is not necessarily 1 character. so that when use
9621 strend(), it doesn't work correctly.
9622 (string_to_stereotype): use utfchar instead of char.
9623 (remove_stereotype_from_string): ditto.
9624 (stereotype_to_string): ditto.
9626 * objects/UML/stereotype.h: ditto.
9628 * objects/UML/message.c: use utfchar instead of char for structure.
9629 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
9631 * objects/UML/small_package.c: use utfchar instead of char for structure.
9633 * objects/UML/realizes.c: ditto.
9635 * objects/UML/object.c: ditto.
9637 * objects/UML/large_package.c: ditto.
9639 * objects/UML/implements.c: ditto.
9641 * objects/UML/generalization.c: ditto.
9643 * objects/UML/dependency.c: ditto.
9645 * objects/UML/constraint.c: ditto.
9647 * objects/UML/component.c: ditto.
9649 * objects/UML/class_dialog.c (attributes_get_current_values):
9650 (attributes_list_new_callback, attributes_fill_in_dialog):
9651 (parameters_set_values, parameters_get_values):
9652 (parameters_get_current_values, parameters_list_new_callback):
9653 (operations_set_values, operations_get_values):
9654 (operations_get_current_values, operations_list_new_callback):
9655 (operations_fill_in_dialog, templates_set_values):
9656 (templates_get_values, templates_get_current_values):
9657 (templates_list_new_callback, templates_fill_in_dialog):
9658 fixed transaction for UTF-8 support.
9660 2002-01-27 Akira TAGOH <tagoh@redhat.com>
9662 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
9664 * objects/UML/class_dialog.c (class_read_from_dialog):
9665 (class_fill_in_dialog):
9666 (attributes_get_values): ditto.
9668 * objects/UML/actor.c (actor_create): ditto.
9670 * objects/UML/class.c (umlclass_calculate_data): ditto.
9672 * objects/UML/association.c (association_apply_properties):
9673 (fill_in_dialog): ditto.
9675 * objects/UML/uml.c (uml_get_attribute_string):
9676 (uml_get_operation_string):
9677 (uml_get_parameter_string):
9678 (uml_get_formalparameter_string): use utfchar instead of char.
9680 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
9683 * objects/UML/class.h: use utfchar instead of char.
9685 * lib/dia_xml.c (data_add_string): ditto.
9687 * lib/text.c (text_insert_char): fixed characters# calculation
9688 when includes multibytes character in strings.
9690 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
9692 Patch from Richard Rowell <rwrowell@bellsouth.net>:
9694 * app/lineprops_area.c:
9697 * lib/widgets.c: added crow foot arrow and cross arrow
9699 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
9701 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
9703 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
9705 * po/update.pl (REMOVED):
9706 * po/update.sh (REMOVED):
9707 * xml-i18n-merge.in.kg (REMOVED):
9708 * xml-i18n-update.in.kg (REMOVED):
9709 * sheets/Makefile.am:
9712 * configure.in: converted from xml-i18n-tools to intltools
9714 This looks like it fixes the build bugs of the snapshot tarballs,
9715 and it supersedes #69611.
9717 2002-01-25 Akira TAGOH <tagoh@redhat.com>
9719 * lib/text.c (text_insert_char): fixed characters# calculation.
9720 it's not string length.
9722 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
9723 is defined, needs to convert a description to UTF-8.
9725 * app/render_gdk.c (get_text_width): fixed transaction for
9726 UTF-8 support. also should uses gdk_text_width_wc() instead
9727 of gdk_text_width().
9729 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
9730 is defined, needs to convert to locale encoding for display.
9731 Also use utfchar instead of char for argument.
9733 2002-01-24 Hans Breuer <hans@breuer.org>
9735 * app/commands.c(edit_paste_callback and more) :
9736 call diagram_modified(ddisp->diagram) to fix #68083
9737 (help_menu_callback) : plug a DIR leak
9739 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
9740 GTK_TALKS_UTF8_WE_DONT
9742 * app/render_gdk.c(get_text_with) : it's a bad idea to use
9743 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
9744 gdk_text_width(). The length value is still questionable ...
9746 * lib/charconv.c : use functions already available in early
9747 GLIB-1.3 days whiches API hasn't changed since, to avoid
9748 version problems with the win32 build
9750 * lib/font.c : finally fix #58045 and #68208
9752 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
9754 2002-01-24 Akira TAGOH <tagoh@redhat.com>
9756 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
9757 no strings, fixed transaction.
9759 * lib/charconv.h: fixed typo.
9761 * app/menus.c: fixed typo.
9763 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
9765 * objects/UML/object.c: attrib's type uses utfchar instead of char.
9767 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
9769 * lib/text.c (text_create_change): use unichar instead of char.
9771 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
9772 use utfchar instead of char.
9774 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
9777 * lib/charconv.c (charconv_utf8_get_char): add new function.
9779 2002-01-23 Akira TAGOH <tagoh@redhat.com>
9781 * lib/text.c (text_delete_forward, text_delete_backward,
9782 text_split_line): fixed transaction for UTF-8 support.
9784 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
9785 strlen[] has string length for UTF-8, so has to use alloclen[].
9789 * .cvsignore: add dia.pot.
9791 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
9793 * configure.in: Added "sk" to ALL_LINGUAS.
9795 2002-01-22 Akira TAGOH <tagoh@redhat.com>
9797 * lib/text.c (text_set_string, new_text, text_copy,
9798 text_get_string_copy, text_join_lines): use utfchar instead of gchar
9801 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
9804 * lib/charconv.c (charconv_utf8_strchr): add new function.
9806 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
9808 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
9810 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
9811 strings to the appropriate encoding.
9813 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
9815 * app/object_ops.c (object_list_align_[hv]): Leak fix.
9817 * lib/Makefile.am (INCLUDES): Added debug flags.
9819 * app/object_ops.c: Fixed ordering problem of align equi-distant &
9822 2002-01-21 Akira TAGOH <tagoh@redhat.com>
9824 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
9827 * objects/GRAFCET/boolequation.c: fixed invalid comment.
9829 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
9830 when defined UNICODE_WORK_IN_PROGRESS.
9832 * lib/dia_xml.c (data_add_string): fixed typo.
9834 2002-01-20 Akira TAGOH <tagoh@redhat.com>
9836 * configure.in: fixed test gtk_advancement.
9838 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
9840 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
9843 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
9845 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
9846 tool tips, preferences, and arbitrarily long ~/.dia/history
9848 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
9849 removed 'Open Recent'; added new separators for recent documents on
9852 * app/interface.[ch] (interface_get_toolbox_shell): new function
9854 * app/diagram.c: added new parameter to recent_file_history_add() call
9856 * app/preferences.[ch]: added new 'Recent documents list size'
9859 2002-01-18 Akira TAGOH <tagoh@redhat.com>
9861 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
9862 if it failed, should be used gdk_font_load ().
9864 * lib/font.c (font_data): added the font entries for CJK.
9866 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
9868 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
9870 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
9872 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
9874 Patch from Martin Cracauer <cracauer@cons.org>:
9876 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
9879 2002-01-01 Hans Breuer <hans@breuer.org>
9881 * app/command.c : optional use GDI printing on windoze
9883 * app/preferences.[hc] : add option 'prefer_psprint' to
9884 select the print engine to use (could be used for Dia/Gnome
9887 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
9888 wmf plug-in with the common win32 print api. Now printing
9889 should work almost as expected from a windows program :-)
9891 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
9892 to .edit_delete to avoid clashes with C++
9894 * app/makefile.msc : updated for GDI printing
9896 * plug-ins/wmf/wmf.cpp : some small modifications to support
9897 GDI printing. Also swap R and B channel in draw_image()
9899 * app/makefile.am : added windows only files to EXTRA_DIST
9901 * objects/uml/class.c(umlclass_set_props) : force recalculation
9902 when applying properties
9904 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
9905 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
9906 many incompatible changes (and would force a gtk update)
9908 * objects/makefile.msc : don't build C-Objects which are
9909 already available as 'pure shape'
9911 * plug-ins/makefile.msc : remove diaimport from build. It was
9912 only available via mailing-list and is broken since the
9916 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
9918 * app/preferences.[hc] : tweaked preferences.c to make
9919 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
9920 added some more DiagramTree prefererences and their own
9923 * app/diagram_tree.[hc] : allow to sort by object type or name
9924 and hide by type ...
9925 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
9926 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
9928 * app/diagram_tree_window.c : handle hidden types and window
9931 2001-12-20 Hans Breuer <hans@breuer.org>
9933 * plug-ins/python/Makefile.am : patch from Peter Moulder
9934 <pmoulder@csse.monash.edu.au> to make the python plug-in
9935 compile on *nix too.
9937 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
9939 Patch from Alan <horkana@tcd.ie>:
9941 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
9943 2001-11-20 Hans Breuer <hans@breuer.org>
9945 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
9947 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
9949 * app/diagram_tree.[hc] : Added new functions and types for
9950 sorting diagram and objects, and attaching the popup menus.
9952 * app/preferences.h: Added more diagram tree preferences, using a
9953 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
9954 height and width of the diagram tree window and the default sort
9955 orders for diagrams and objects.
9957 * app/preferences.c (prefs_data): Added new entries for the new
9958 diagram tree preferences.
9960 * app/preferences.c (prefs_tabs): New tab for diagram tree
9963 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
9964 * app/diagram_tree_window.c (diagram_tree_window_new):
9965 * app/interface.c (create_tree_window): The diagram tree window is
9966 initialised using the DiagramTreeConfig part of prefs.
9969 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
9971 * app/diagram_tree_menu.[hc]: New files. Functions to create the
9972 diagram tree popup menus.
9974 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
9975 the diagram tree popup menus.
9977 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
9980 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
9982 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
9983 double-clicking a diagram tree node raises the diagram window
9984 to the foreground (and, if a object node was clicked, selects the
9985 object in the diagram).
9987 * app/diagram_tree.c (select_tree_widget): selecting an object
9988 node with single click simply updates it (no raise).
9990 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
9991 These changes make the diagram tree lazy: it is not created unless
9992 the diagram tree window is requested.
9994 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
9995 function for creating the tree window.
9997 * app/interface.c (create_tree_window): call
9998 create_diagram_tree_window() instead of diagram_window().
10000 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
10001 (diagram_tree_update, diagram_tree_update_name)
10002 (diagram_tree_add_object, diagram_tree_add_objects)
10003 (diagram_tree_remove_object, diagram_tree_remove_objects)
10004 (diagram_tree_update_object): accept a NULL tree as a nominal
10005 argument (and do nothing in this case!), so that the diagram tree
10006 is not initialised if not used.
10008 * app/diagram_tree_window.c (diagram_tree): do not create the
10009 diagram tree until diagram_window() or diagtree_show_callback()
10012 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
10013 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
10015 * app/diagram_tree_window.[hc] : (new files) implementation of
10016 the diagram tree window, a container for a diagram tree. [Removed
10017 the horizontal scroll bar glitch by disableing it]
10019 * app/diagram_tree.[hc] : (new files) implementation of the
10020 diagram tree widget. [Don't rely on the layers GPtrArray to be
10021 NULL terminated, but use its ->len field]
10023 * app/Makefile.am (dia_core_files): added new files
10024 diagram_tree.[hc] and diagram_tree_window.[hc]
10026 * app/interface.[hc] : (create_tree_window): this function
10027 creates the new diagram tree window widget
10029 * app/undo.c (delete_objects_apply) (delete_objects_revert)
10030 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
10031 (ungroup_objects_apply) (ungroup_objects_revert):
10032 every time that an undoable command modifies a diagram
10033 adding/removing/(un)grouping objects, a diagram_tree_something() is
10034 invoked to keep the diagram tree window in sync
10036 * app/properties.c (properties_apply): call to
10037 diagram_object_modified(), which updates the diagram tree window
10038 when the properties of an object are modified
10040 * app/preferences.[hc] : new "show_diagram_tree" configuration option
10041 (whether the diagram tree window should be shown on dia startup)
10043 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
10045 * app/diagram.h (diagram_object_modified): callback notifying of a
10046 diagram object modification
10048 * app/diagram.c (diagram_load_into): added call to
10049 diagram_tree_add() to add newly loaded diagrams to the diagram
10051 (diagram_destroy): call to diagram_tree_remove() to remove a
10052 destroyed diagram from the diagram tree window
10053 (diagram_add_object): call to diagram_tree_add_object() to add an
10054 object to the diagram tree window
10055 (diagram_add_object_list): as above, but with an object list
10056 (diagram_selected_break_external): deletion of objects from the
10057 diagram is detected here, and diagram_tree_remove_object() is
10058 invoked to remove the object from the diagram tree window (it
10059 would be nice to have a diagram_remove_object() in the Diagram
10061 (diagram_set_filename): update the diagram tree window when a
10062 diagram's filename changes
10064 * app/commands.c (file_new_callback): added call to
10065 diagram_tree_add() to add newly created diagrams to the diagram
10068 * app/app_procs.c (app_init): added call to create_tree_window()
10070 * app/makefile.msc : updated
10072 2001-10-28 Hans Breuer <hans@breuer.org>
10074 * app/preferences.h (DiaPreferences):
10075 * app/preferences.c (prefs_data): new "show_diagram_tree"
10076 configuration option (whether the diagram tree window should be
10077 shown on dia startup)
10079 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
10080 entry (both for GNOME and gtk)
10082 * app/diagram.h (diagram_object_modified): callback notifying of a
10083 diagram object modification
10085 * app/diagram.c (diagram_load_into): added call to
10086 diagram_tree_add() to add newly loaded diagrams to the diagram
10088 (diagram_destroy): call to diagram_tree_remove() to remove a
10089 destroyed diagram from the diagram tree window
10090 (diagram_add_object): call to diagram_tree_add_object() to add an
10091 object to the diagram tree window
10092 (diagram_add_object_list): as above, but with an object list
10093 (diagram_selected_break_external): deletion of objects from the
10094 diagram is detected here, and diagram_tree_remove_object() is
10095 invoked to remove the object from the diagram tree window (it
10096 would be nice to have a diagram_remove_object() in the Diagram
10098 (diagram_set_filename): update the diagram tree window when a
10099 diagram's filename changes
10101 * app/commands.c (file_new_callback): added call to
10102 diagram_tree_add() to add newly created diagrams to the diagram
10105 * app/app_procs.c (app_init): added call to create_tree_window()
10107 2001-10-28 Hans Breuer <hans@breuer.org>
10109 * plug-ins/python/pydia-property.c : apparently I missed
10110 to commit this last time. Now it has some more SetAttr
10111 support (apply from property)
10113 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
10115 * plug-ins/python/pydia-text.[ch] : new files
10117 2001-10-14 Hans Breuer <hans@breuer.org>
10119 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
10120 strings. Use g_strdup() for these.
10122 libxml2 does not produce 'any extra indentation when saving a tree'
10123 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
10124 libxml(1). To get human readable XML some extra tweaking is required.
10125 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
10126 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
10127 * app/preferences.[ch] : initialize 'pretty_formated_xml'
10129 * lib/libdia.def : updated externals
10131 * lib/properties.h : add prototype for prop_list_from_single ()
10133 * plug-ins/makefile.msc : build metapost plug-in
10135 * plug-ins/metapost/render_metapost.c : msvc does not like
10136 switch labels without operation 'default: }'. Added a noop.
10138 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
10139 * plug-ins/python/diamodule.c : added PyDiaText
10140 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
10141 Although the python plug-in does not use libxml at all, the
10142 headers are required to use the lib/prop*.h headers
10144 * plug-ins/python/pydia-diagramdata.c : added wrappers for
10145 update_extents and get_sorted_selected (should I duplicate
10146 more functions from PyDiaDiagram or should they be moved?)
10148 * plug-ins/python/pydia-properties.c : allow to set (some) properties
10149 through the dictionary api
10150 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
10151 * plug-ins/python/pydia-property.c : implement it (currently only
10152 string properties can be set)
10154 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
10155 Quoting myself: 'Still not convinced that this is better than an
10156 integral property->type and some casting ...
10157 It is trading a straightforward 40 lines switch statement to
10158 this nice 'type safe' function mapping (about 125 lines)'
10159 (But now it works again, better than changing the News file :)
10161 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
10163 patch from <robert.young@dsto.defence.gov.au>:
10164 * objects/UML/component.c: remember to set font in UML component
10165 object (fixes #62132)
10167 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
10169 * plug-ins/metapost/metapost.c:
10170 * plug-ins/metapost/Makefile.am:
10171 * plug-ins/metapost/render_metapost.c:
10172 * plug-ins/metapost/render_metapost.h:
10173 Metapost renderer from Chris Sperandio
10175 2001-09-14 Hans Breuer <hans@breuer.org>
10177 * app/render_gdk.c : reflect the fact, that GTK already talks
10178 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
10181 * app/render_libart.c : trying to fix #58045 but it appears
10182 to be an Gdk/win32, too.
10184 * lib/charconv.c : handle utf8 conversion with the help of
10185 glib-1.3 even in the !HAVE_UNICODE case.
10187 * lib/dia_xml.c : reduce complaing about missing encoding, by
10188 detecting if the default (utf8) would break the file.
10190 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
10192 * lib/charconv.c: (get_local_charset): at least please try to not
10193 silently change the logic, while avoiding crashes.
10195 * lib/font.c: (suck_font): put a #error, we have a nasty something
10196 to fix there before we switch to Gtk 2.0.
10198 2001-09-09 Hans Breuer <hans@breuer.org>
10200 * **/makefile.mingw : Approach to compile Dia with mingw.
10201 Compiling mostly works but running does not (yet) ...
10204 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
10205 Apparently mingw needs it too.
10206 - enable 'normalization' of a null verctor. Otherwise the beziergon
10207 bounding box calculation would be broken at least with msvc. What's
10208 the mathematical correct result of 0.0/0.0 ?
10210 * lib/dia_xml.c : isinf() for mingw too.
10212 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
10215 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
10216 Please don't do it.
10218 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
10220 * lib/libdia.def : updated externals. Apparently mingw needs
10221 them to produce the right mangling.
10223 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
10226 2001-09-08 Wang Jian <lark@linux.net.cn>
10228 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
10230 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
10232 * lib/dia_xml_libxml.h:
10233 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
10234 libxml1's code, to rework the output file before it gets committed
10235 to disk. This is rubbish, and will be removed when libxml2
10236 switches from discouraged to mandatory.
10237 All in all, this fixes #60152.
10240 * lib/charconv.c: (charconv_unichar_to_utf8):
10241 made the type of the input parameter explicitly an unsigned long.
10243 * configure.in: Added a check for libz (we must now include it
10244 explicitly, for xmlDiaSaveFile).
10246 * app/load_save.c: (diagram_data_save):
10247 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
10248 (dia_pluginrc_write):
10249 * plug-ins/shape/shape-export.c: (new_shape_renderer),
10250 (end_render), (draw_string):
10251 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
10254 Made sure we always write UTF-8 XML files, and through
10257 * NEWS: documented that fact.
10259 2001-09-07 James Henstridge <james@daa.com.au>
10261 * configure.in (found_libxml): refactor the check for libxml a
10262 little so that it handles finding both libxml1 and 2 better.
10264 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
10266 * app/app_procs.c: removed a spurious } which caused a compilation
10267 error in the (!HAVE_GNOME && HAVE_POPT_H) case
10269 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
10270 don't know what ANSI X3.4-1968 is. I didn't know until this day,
10271 but it's just plain old ASCII. Added a check to shield the poor
10274 Patches from <robert.young@dsto.defence.gov.au>:
10276 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
10277 width and height of text before calculating bounds. Fixes #59928
10279 * app/preferences.c: Moved grid related items into Grid Tab.
10281 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
10283 * app/interface.c: (create_zoom_widget): connected one more signal
10284 to the Zoom selector combo's list. Fixes #59879.
10286 * app/app_procs.[ch]: (app_init) (do_convert)
10287 (build_output_file_name): brought back into the main executable
10288 the rare useful bits of the ill-fated diaconv. This means we have
10289 one new feature : --export-to-format (-t), which should make
10290 writing conversion scripts easier, and a crude implementation of
10291 -t and -e for the poptless argument parsing, which means the Win32
10292 port should be able to take advantage of it (that should make
10293 resolving #58197 possible).
10295 * app/diaconv.c: kept the poor duck compiling (but that's about
10298 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
10299 I've got it right).
10301 * NEWS: updated about the new feature above, and documented the
10302 "missing encoding specification" complaint.
10304 2001-09-01 Abel Cheung <maddog@linux.org.hk>
10306 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
10308 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
10310 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
10313 2001-09-01 James Henstridge <james@daa.com.au>
10315 * */Makefile.am: various changes to include missing files, and fix
10316 sheets dir to handle building with builddir != srcdir.
10318 * autogen.sh: unconditionally pass the --enable-maintainer-mode
10319 and --enable-db2html flags so that builds from CVS work correctly.
10321 * configure.in: increment version number. Also add an
10322 --enable-db2html flag. Without the flag, db2html won't be run (if
10323 the flag is passed and db2html is not present, do nothing).
10325 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
10327 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
10328 even compiled. It's really too bad there is no lint tool easily
10329 available (or a more cautious, pedandic, paranoid and verbose
10330 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
10332 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
10335 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
10336 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
10338 * app/menu.c: added ellipsis(...) to diagram properties menu item.
10339 * app/dia-props.c: diagram properties dialog contents did not
10340 represent current diagram settings.
10341 * app/dia-props.[ch]:
10342 * app/display.c: diagram properties contents now follows currently
10344 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
10346 * AUTHORS: added Robert Young.
10348 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
10350 * app/modify_tool.c: (modify_button_release): Patch from
10351 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
10352 #59090: if selection dragging was released outside of the window,
10353 artifacts of the selection box remained.
10355 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
10357 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
10359 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
10362 * sheets/Makefile.am: prepared the terrain for the Version of
10363 xml-i18n-tools Which Comes After 0.9 (and which will feature at
10364 last a sane behaviour with XML files). Some reasonible delay
10365 before enforcing that version *will* be given.
10367 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
10369 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
10370 becomes a nonexistent symbol.
10372 2001-08-18 Hans Breuer <hans@breuer.org>
10374 * app/app_procs.c : made it compile without ENABLE_NLS
10376 * app/diap_callbacks.c : strcmp isn't guaranteed to work
10379 * app/load_save.c :
10381 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
10383 xmlGetProp, ... -> xmlFree
10384 malloc, strdup -> free
10385 g_new, g_malloc, g_strdup - > g_free
10387 * app/win32print.c : some more error checking, still not
10390 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
10392 * lib/dia_xml.c : msvc still has no unistd.h
10395 * lib/sheets.c : temporary resolved libxml include brokeness
10397 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
10398 changes. Compiles again, but doesn't do anything useful anymore.
10399 (see THE_PROP_TYPE_IS_INTEGRAL)
10401 * **/makefile.msc : updated to use LIBXML2
10403 * lib/libdia.def : reflect api changes
10405 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
10407 * config.h.win32: added defines telling that gtk speaks UTF8.
10408 Hans, I believe this reflects what GTK on Win32 does.
10410 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
10412 * lib/prop_inttypes.c:
10414 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
10417 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
10418 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
10419 search for plug-ins is done.
10420 * app/Makefile.am: made app/run_dia.sh use the // capability. No
10421 need to update this anymore if we get a new plug-in library (or
10424 * lib/dia_xml.c: #include <unistd.h> was missing.
10426 * lib/properties.h:
10427 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
10428 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
10431 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
10433 * sheets/civil.sheet: removed duplicate "Danish" entries.
10438 * sheets/Makefile.am:
10440 * Makefile.am: applied the xml-i18n-tools README's instructions.
10442 * po/(da de fr hu nl nn no sl).po: merged the translations from
10443 the sheet files into the .po files. I hope I haven't mixed
10445 * sheets/*.sheet (REMOVED):
10446 * sheets/*.sheet.in (NEW): moved the sheet files sans
10447 translations into .sheet.in files.
10449 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
10450 because we don't yet want to force all translators to work using
10451 UTF-8 editors. We'll want to do that sometime (sooner rather than
10452 later). Okay, I sing a slightly different tune in po/ChangeLog...
10454 * dia.desktop (REMOVED):
10455 * dia.desktop.in (NEW): used also the x18t infrastructure for
10458 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
10459 "official" version of x18t with support for .sheet files is available.
10460 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
10461 "official" version of x18t which doesn't corrupt UTF-8 data in XML
10464 ** yes, we are now using xml-i18n-tools to manage the sheet
10465 translations. For the Win32 build, Nemo stores snapshots of
10466 translated strings next to the CVS snapshots. **
10468 * sheets/checktrans.py: suddenly, some sheets have lots of
10469 translations (objects which existed before sheets, mostly).
10470 Adapted the formatting.
10472 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
10474 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
10475 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
10476 <robert.young@dsto.defence.gov.au>, to fix #59090.
10478 * app/display.c: (ddisplay_scroll): While at it, added some
10479 margin, so that autoscrolling can happen within a margin outside
10480 the diagram's extents.
10484 * app/disp_callbacks.c: Robert "forced" me to go when I usually
10485 don't, namely the app/ directory. So while I was there, I
10486 scratched a long-time itch. If no object has focus, pressing the
10487 space bar will select back the tool which was selected before the
10488 current one (I find this especially useful with "reset after create" !)
10490 * lib/proplist.c: (prop_list_from_single): Renamed
10491 prop_list_singleton() to avoid confusion with the Singleton
10492 pattern (which it definitely is not).
10494 * lib/propobject.c: (object_prop_by_name_type),
10495 (object_prop_by_name): The "flags" parameter was not necessary.
10496 These don't return synthetic properties, but properties built from
10497 a real property description list; therefore, we don't call
10498 make_new_prop() but use the existing property descriptor, which
10499 has perfectly valid (and meaningful) flags.
10501 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
10502 new predicates better reflect the reason why properties exist when
10503 they're created by make_new_prop() or object_prop_by_name().
10505 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
10506 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
10509 * lib/properties.h: reflects all the above changes.
10511 * objects/SADT/arrow.c:
10512 * objects/SADT/annotation.c:
10513 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
10516 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10518 * lib/properties.h:
10519 * lib/proplist.c: (prop_list_singleton):
10520 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
10521 Added these, to simplify interactions of plug-ins with the StdProp
10526 * lib/dia_xml_libxml.h (NEW):
10531 * objects/custom/shape_info.c: A few prototypes were causing
10532 #include hell, because we generally attempt to not pull the whole
10533 libxml header set when we include dia_xml.h. Moved those
10534 prototypes away for the rare cases they're necessary.
10536 2001-08-15 Hans Breuer <hans@breuer.org>
10538 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
10541 * lib/makefile.msc : updated
10543 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
10544 use G_GNUC_FUNCTION instead.
10546 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
10548 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
10549 msvc instead of cleaning missing includes
10551 * plug-ins/wmf/wmf.cpp :
10552 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
10554 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10561 * objects/custom/shape_info.c:
10562 * plug-ins/shape/shape-export.c:
10563 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
10564 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
10565 removed xmlKeepBlanksDefault(0) in favour for proper
10566 xmlIsBlankNode() testing. Lots of other fixups to use the
10567 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
10568 make libxml1 output correct files.
10570 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
10571 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
10572 packages). If both devel packages are found, the build will stop
10573 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
10575 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
10576 allocate the first handle :-)
10578 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
10579 a cast and a sizeof.</gratuitous>
10581 * objects/custom/custom_object.c: (custom_copy): don't call
10582 text_get_attrbutes if the shape has no text...
10583 (custom_update_data): The info->resize_with_text code was a bit
10584 directive; basically, the shape's bounding box was forced to be
10585 proportional to the text's bounding box.... This fixes #57187.
10587 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
10588 default for info->aspect_ratio; unobfuscated a line about
10589 info->resize_with_text;
10591 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
10593 * lib/properties.h: added comments next to the PROP_TYPEs to tell
10594 which C Property subclass to use.
10596 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
10597 cast-ridden form of setting properties in a list, in favour for
10598 the "local pointers" form. I'll take any better offer...
10600 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
10602 * lib/font.c: fprintf(...) --> fprintf(format...)
10604 * configure.in: added a disabled versioned test for glib.
10605 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
10606 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
10607 g_critical() with a simple g_error(). Proper fix is to implement
10610 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
10613 * lib/properties.h:
10614 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
10615 * lib/proplist.c: (find_prop_by_name_and_type):
10616 * lib/prop_basic.c: (make_new_prop), (initialize_property):
10617 * lib/propoffsets.c: (do_set_props_from_offsets),
10618 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
10619 Added a type_quark member to PropDescription, Property and
10620 PropOffset. Used it to implement a safety in
10621 do_[sg]et_props_from_offsets().
10623 * objects/flowchart/diamond.c: the diamond's text was not saved,
10624 and thus not even copied (c&p).
10625 * objects/standard/textobj.c: ditto.
10627 Most of the above changes thanks to Robert Young's testing. Thanks !
10629 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
10631 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
10634 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
10636 * lib/proplist.c (prop_list_from_descs): added a call to
10637 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
10638 too embarrassing to tell.
10640 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
10641 while loop to a for loop, for symmetry with
10642 prop_offset_list_calculate_quarks().
10644 * lib/geometry.h: new inline function, rectangle_equals.
10646 * lib/diagramdata.[ch]: refactored a bit the diagram extents
10647 computation logic, and changed it to always be the union of the
10648 visible layers' extents. This should close #58882 (Debian
10649 #107167), and fixes #55498.
10651 * app/display.c: made the initial visible box more coherent with
10652 the diagram being loaded's extents.
10654 * app/prop_attr.c: don't set the font (from offset) if font_data
10655 is NULL. Two brainos in colorprop_load() and fontprop_load().
10657 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
10659 * lib/properties.[ch]: split in a lot of pieces:
10661 * lib/prop_*.[ch] (NEW): all property types are now first-class
10662 objects, inheriting from the original abstract Property type.
10663 * lib/propdesc.c (NEW): property description handling routines
10664 * lib/propoffsets.c (NEW): property offset handling routines
10665 * lib/proplist.c (NEW): property list handling routines
10666 * lib/propobject.c (NEW): property list <-> object routines
10667 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
10669 * lib/propinternals.h: prototypes for stuff not usually needed by
10670 the outside of StdProps.
10671 * lib/Makefile.am: a lot of new files have been added...
10673 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
10674 BOTH INTERFACES AND RUN-TIME STABILITY.
10676 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
10678 * lib/object.h: removed the incestuous relationship with
10679 properties.h' contents. Now a Property list is a GPtrArray -->
10680 object interface change !
10682 * app/app_procs.c/app_init(): removed a disabled call to a
10683 non-existent routine. Added a call to stdprops_init().
10685 * objects/Makefile.am: disabled the construction of EML. I'm not
10686 touching these until a certain issue is solved (or this module
10689 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
10690 objects to the interface changes.
10692 * app/disp_callbacks.c: killed a warning.
10693 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
10696 The macros PROP_VALUE_* have disappeared. Adapted to using the new
10699 * plug-ins/dxf/dxf-import.c:
10700 * plug-ins/xfig/xfig-import.c:
10701 PROP_VALUE_* macros have been removed. Converted to the new API.
10703 * plug-ins/python/**/*: I gave up converting this; I can't
10704 compile --with-python (problems with object.h defined both by us
10705 and by Python). I'll gladly help whomever cares to fix it !
10706 (or, fix it myself if someone tells me how to compile it).
10708 * configure.in: added the UNICODE-related progress defines.
10711 * lib/geometry.h: On Solaris and perhaps other systems, finite()
10712 is defined in ieeefp.h rather than in math.h. Patch from Andrew
10713 Halper <ashalper@acm.org> with further modifications, isinf() is
10714 provided by -lsunmath (sunmath.h).
10716 * lib/font.c: conditionally disabled Lars' debugging messages.
10717 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
10719 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
10721 * lib/bezier_conn.h:
10722 * objects/standard/bezier.c (bezierline_create):
10723 * lib/bezier_conn.c (bezierconn_init):
10724 Preparations for use of userdata for bezier lines.
10726 * objects/standard/polygon.c:
10727 * objects/standard/create.h:
10730 * plug-ins/xfig/xfig-import.c:
10731 Use of user_data for polygon as well, including adding
10732 polyshape_set_points. Include file for non-interactive
10733 creation of standard objects, objects/standard/create.h
10735 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
10737 * app/render_gdk.c:
10738 * app/render_gdk.h:
10742 More preliminary freetype support. Not at all functional, crashes
10747 * objects/standard/polyline.c:
10748 Support for creating polyline objects with more than two points.
10749 This includes an extra function and a prototype change in the
10750 poly_conn lib object.
10752 * lib/object.c (object_copy): Fixed memory leak of handles and
10755 2001-08-08 Abel Cheung <maddog@linux.org.hk>
10757 * dia.desktop: added traditional Chinese strings
10759 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
10761 * NEWS: updated to reflect build-time dependencies.
10763 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
10764 around obj->ops->describe_props(obj). Quarks are none of an
10765 object's business in the general case...
10766 * lib/text.c: Added an apply_textattr_properties() function to
10767 factor out some common code related to applying a dialog's text
10768 attribute properties to a (Text *) which wasn't edited there.
10769 Ditto for textstr, for the string part of an objet.
10771 * objects/GRAFCET/action.c:
10772 * objects/SADT/annotation.c:
10773 * objects/SADT/box.c: used apply_textattr_properties().
10775 * objects/UML/actor.c:
10776 * objects/UML/branch.c:
10777 * objects/UML/component.c:
10778 * objects/UML/constraint.c:
10779 * objects/UML/small_package.c:
10780 * objects/UML/state.c:
10781 * objects/UML/usecase.c:
10782 * objects/UML/large_package.c:
10783 * objects/UML/note.c:
10784 * objects/UML/node.c:
10785 * objects/UML/message.c:
10786 * objects/UML/classicon.c:
10787 * objects/UML/object.c:
10788 * objects/UML/realizes.c:
10789 * objects/UML/dependency.c:
10790 * objects/UML/implements.c:
10791 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
10792 (most objects were already using StdProps to some extent ; this
10793 systematises usage and removes some dead wood).
10795 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
10796 * objects/UML/uml.[ch]: audited for UTF-8.
10798 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
10799 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
10800 private (ISO-8859-1) definition.
10802 * lib/charconv.c: Added a warning if we didn't run
10803 nl_langinfo(CODESET) but rely instead on a hardcoded default.
10805 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
10808 * app/disp_callbacks.c: added a way for an object to cause an
10809 already realised menu to be destroyed (for instance if it changes
10812 * objects/custom/custom_object.c: used the above to fix #55073.
10814 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
10816 * configure.in: Remove 2.50 prereq.
10818 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
10820 * po-checktrans.py: under some circumstances, there was one column
10821 more than what was supposed to be, thus breaking the formatting.
10823 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
10825 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
10827 * NEWS: updated with new stuff since 0.88
10829 * shapes/network/antenna.shape: the text was misplaced ; fixed.
10831 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
10832 firewall router (upon request from Cyril Lacoux
10833 <clacoux@easter-eggs.com>)
10835 * configure.in (didn't rename to configure.ac): autoconf 2.50
10836 constructs were used ; added an AC_PREREQ call to guard against
10839 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
10841 * lib/properties.c: minor clean-ups with the event delivery code.
10843 * EML/instantiation.c: brought this object back from stone and ice
10846 * app/diaconv.c(NEW): added a command-line conversion tool. Still
10847 lacks a man page and correctness. In fact, it doesn't work. Please
10848 see #58196 if you want to finish it.
10850 * lib/message.[ch]: redefined things a little so that a different
10851 message_internal routine could be passed.
10852 applications can use that to fit themselves to the display model.
10854 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
10856 * objects/SADT/box.c:
10857 * objects/GRAFCET/action.c: spelling in property descriptors (name
10859 * objects/SADT/annotation.c: ditto, plus a temporary test of the
10860 event delivery code (try to click on the "click me !" button !).
10863 * lib/properties.[ch]: improved (fixed) support for group event
10864 handlers. Fixed various things from yesterday's code to make it
10865 not too obviously crash.
10867 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
10869 * app/group.c: added delivery of events to the first member of the
10870 group which is able to process it.
10872 * lib/properties.c(prop_desc_lists_intersection): properties
10873 don't match if they don't have identical event handler.
10874 * lib/properties.h: simplified the PropEventHandler signature.
10876 Event delivery code is still untested so far, but should be
10879 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
10881 * lib/properties.[ch]: Added (untested !) property event handler
10882 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
10883 generating such events. This stuff compiles, and should lurk
10884 around silently as long as you don't declare property descriptors
10885 with events (AFAICT).
10886 In object_create_props_dialog() and friends:
10887 attached a single structure with lots of data instead of lots of
10888 little attachments of data to the dialog widget.
10890 * lib/object.h: fixed mild typedef breakage introduced by the above.
10892 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
10894 * lots of files: Changed Font to DiaFont
10895 * */Makefile.am: Added FREETYPE_LIBS
10896 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
10898 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
10900 * configure.in: Added "nn" to ALL_LINGUAS.
10902 2001-07-09 Alex Larsson <alexl@redhat.com>
10904 * app/disp_callbacks.c:
10905 Add gdk_im_ready() calls to XIM code.
10907 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
10909 * lib/properties.[ch]: splitted prop_get_widget() into
10910 prop_get_widget() (gives a widget but doesn't fill it) and
10911 prop_reset_widget() (fills an existing widget with a property's value).
10913 * lib/widgets.[ch]: const enforcement police work.
10915 * shapes/network/antenna.shape: added a connection point at top,
10916 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
10918 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
10920 * intl/*: tested with gettext-0.10.38
10921 * configure.in: moved a macro call around (AM_PROG_CC) to keep
10922 some of autogen.sh from complaining.
10923 * INSTALL: added a warning against gettext older than at least 0.10.36
10925 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
10927 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
10928 AM_ICONV (both provided by gettext)
10930 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
10932 * lib/charconv.c: corrected the degraded mode for when
10933 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
10935 * objects/chronoline/chronoline_events.c: UTF8 compliance.
10937 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
10939 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
10940 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
10941 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
10944 * objects/chronogram/chronoline.c:
10945 * objects/chronogram/chronoref.c: took advantage of the above to
10946 make nicer looking dialogs.
10948 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
10949 from libunicode's internals).
10950 * lib/message.c: convert strings to local encoding prior to
10951 display (UNICODE_WORK_IN_PROGRESS)
10952 * lib/properties.[ch]: convert strings to local encoding prior to
10953 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
10954 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
10955 * lib/stringprerenderer.[ch]: ditto
10957 (lib/text.c has been audited for UTF8, but the size of the changes
10958 make them inappropriate for commit before 0.89)
10960 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
10962 * objects/boolequation.h (<save|load>_boolequation): made the
10963 prototypes for match the .c file.
10965 * samples/grafcet.dia: minor non-conformance with IEC-848
10966 fixed (in the transition from step 100 to step 101).
10968 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
10969 disallow editing of properties if the object is part of a group.
10971 * objects/chronogram/chronoline.c:
10972 * objects/SADT/annotation.c:
10973 * objects/SADT/box.c:
10974 * objects/GRAFCET/step.c:
10975 * objects/GRAFCET/transition.c:
10976 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
10978 2001-06-12 Hans Breuer <hans@breuer.org>
10980 * lib/libdia.def : removed lazyprop exports
10981 * lib/makefile.msc : removed lazyprop.obj
10983 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
10984 and avoid crashes by always creating a custom->text,
10985 when (custom->info->has_text)
10987 * objects/makefile.msc : removed sybase from build
10989 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
10990 ObjectNode is a pointer already, which is what we want
10991 instead of a pointer pointer.
10993 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
10994 and implemented working export for images
10996 * shapes/network/zip-disk.shape : added connection points
10998 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11000 * objects/SADT/box.c: removed lazyprops for standard props.
11001 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
11002 * objects/chronograms/chronoref.c: ditto
11006 * lib/connpoint_line.c:
11007 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
11008 * lib/properties.[ch]: new property types:
11009 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
11010 - PROP_TYPE_MULTISTRING: same as string, but renders as a
11011 multi-line entry box.
11012 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
11013 in a tabbed-notebook style (this is a bit complicated to use;
11014 see objects/chronograms/chronoline.c for an example).
11016 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
11018 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
11019 * objects/GRAFCET/step.c: ditto.
11020 * objects/GRAFCET/vector.c: ditto.
11021 * objects/SADT/annotation.c: ditto.
11022 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
11024 * lib/properties.[ch]: two more non-visible types
11025 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
11027 * lib/neworthconn.[ch]:
11028 * lib/orthconn.[ch]: added support for manipulation through
11029 standard properties.
11031 * configure.in: removed -fomit-frame-pointer, this seems to
11032 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
11035 * charconv.[ch]: more functions from unicode.h.
11036 get_local_charset() wasn't working properly, fixed now.
11037 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
11040 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
11041 * lib/lazyprops.[ch]: put a big fat warning in.
11043 * app/render_eps.c: one line mysteriously went away, causing a
11044 variable to be used uninitialised....
11046 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
11048 * app/app_procs.c: commented out the call to
11049 bind_textdomain_codeset(): it's premature.
11051 * lib/connpoint_line.c: a NULL point can be given to
11052 connpointline_adjust_count(), in case there's not really a clicked
11055 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
11056 #include order troubles. #included by lib/text.h, so there is no
11057 impact outside lib/.
11058 * lib/properties.[ch]: added support for CONNPOINT_LINE and
11059 (nonvisible) TEXT properties.
11061 * objects/GRAFCET/action.c:
11062 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
11065 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
11066 standard properties code). Grafted a dynamic number of connection
11067 points (heavily inspired from what Vergent does). This is the real
11070 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
11072 * lib/fonts.c: some hardening (mostly g_assert())
11073 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
11075 * app/app_procs.c (app_init): added a call to
11076 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
11077 (UNICODE_WORK_IN_PROGRESS).
11079 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
11081 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
11083 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
11084 (fixes #55863) : some clean-ups in the handling of connection
11085 points. Now the total number of connection points is just a
11086 #define (the proper solution is to retrofit the GRAFCET Vergent's
11087 dynamic behaviour wrt connection points).
11089 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
11091 * app/app_procs.c (app_init): added a call to unicode_init() (only
11092 if HAVE_UNICODE, of course).
11094 * lib/charconv.c: simplified the code which detects the local
11095 charset. No need to use <langinfo.h>, libunicode already takes the
11096 burden of figuring that out. Also, if local charset is utf8, no
11097 conversion will take place.
11098 Exposed a way to get the current charset (similar to
11099 unicode_get_charset() but actually working, hopefully).
11101 * lib/charconv.h: Added a partial non-UTF8 implementation of
11102 unicode.h if !HAVE_UNICODE (actually, all the time for the
11103 moment). The UTF8 implementation is just macros on libunicode (use
11104 the functions prefixed by uni_, as defined by charconv.h, not
11105 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
11106 From now on, all strings which don't *need* to be ASCII should be
11107 utfchar *, not gchar *. Just include charconv.h, let it sort out
11108 the details (such as: "is libunicode available and enabled?")
11110 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
11111 "API" instead of directly libunicode. Removed the now unnecessary
11112 speculative clustering of characters in encoding pages.
11114 * app/render_eps.c: made the local8->utf8 conversions dependent of
11115 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
11116 boundary will be when this WIP is done).
11118 * lib/dia_xml.c (data_point): fixed a format string typo.
11120 * po/POTFILES.in: added all C files from lib/
11122 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
11124 * app/disp_callbacks.c: make sure the objects' connected objects
11125 are updated when the objects' size changes after a keypress event
11128 * configure.in: added a big warning about the possible future
11129 non-optionality of --enable-unicode.
11131 * TODO: removed entries which look like done ; added a few ones
11132 (Bugzilla "enhancement" bugs may be a better way to keep track of
11135 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
11137 * objects/UML/message.c: got rid of #55564 and of message_copy()
11138 by using more standard properties (are the message_state_*()
11139 functions still necessary ?)
11141 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
11144 * objecs/custom/shape_info.c:
11145 * plug-ins/shape/shape-export.c:
11146 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
11147 use xmlChar instead of obsolete CHAR.
11149 2001-06-03 Hans Breuer <hans@breuer.org>
11151 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
11152 * app/commands.c : give the right number of parameters
11153 to diagram_update_menu_sensitivity ()
11155 * app/preferences.c : do proper initialization for DiaPrefsData:
11156 render_bounding_boxes. It would be a real surprise if 'hidden'
11157 properties would have ever worked before.
11158 Don't try to access the widgets of hidden property, it does not
11161 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
11162 it is defined in libdia, but initialized from dia app, which
11163 otherwise gave nice start-up crashes.
11165 * lib/diagramdata.c : initialize the color for rendering bounding
11166 boxes in the Dia range (0 .. 1.0)
11168 * lib/libdia.def : added *_bbox functions for export
11170 * lib/makefile.msc : added new sources
11172 * objects/custom/custom_object.c : use HAVE_UNISTD_H
11174 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
11177 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
11178 removes a translation of menus (in a place where there shouldn't
11179 have been), which gets rid of a waterfall of warnings if LANG!=C,
11180 and a fix to #55047.
11182 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
11184 * lib/charconv.c : added #include <errno.h>
11186 * app/dia_embedd.c : updated menus_get_item_from_path usage
11188 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
11190 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
11191 Added a special case for Symbol strings, so that they're not
11192 re-encoded using the LN encoding (we use the bare Adobe encoding
11195 * objects/custom/custom_object.c: Now that #52912 is fixed,
11196 I could remove the ugly hack I wrote to squash the shape bounding box
11197 problem shown by Ben A. Hetland a few months ago, and fix it
11198 properly this time.
11200 * lib/text.c: enlarged a little the bounding box to account for
11201 the cursor in rightmost position.
11203 * lib/diagramdata.c: draw bounding boxes only if the relevant
11204 variable is set (as before), but also only if the rendere is
11205 interactive (ie, don't bother rendering bounding boxes on
11207 Made the bounding box's line width a fixed value, 0.01
11209 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
11210 and assymmetric control beziers. Implemented ellipse_bbox().
11212 * Makefile.am: incantations to get po/dia.pot build, as suggested
11213 by Hubert in #55075.
11215 * shapes/network/computer.shape: typo fixed.
11216 * shapes/network/antenna.shape: fixed #55074 (antenna is now
11217 properly translucent, except for its base where it makes sense. It
11218 doesn't look that ugly anymore if transparent mode is on).
11220 * configure.in: --enable-unicode is now the default. This
11221 still currently affects only printing.
11223 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
11225 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
11226 The overshoot code is buggy, and the bounding boxes for polyshapes
11227 looks a bit cheezy. To be done ASAP.
11229 2001-05-26 James Henstridge <james@daa.com.au>
11231 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
11232 This should clear up some of the build problems people have been
11235 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
11237 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
11240 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
11241 box code (beginning with lines, polylines and polybeziers), into a
11242 more generic facility. While at it, a better shot at correctly
11243 computing the bounding box of a Bezieroid (should take care of
11244 #53424, #51233 and of course is part 1 of #52912).
11246 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
11247 into a hidden preference (set render_bounding_boxes in diarc).
11248 * app/preferences.[ch]: Added support for hidden preferences.
11250 * lib/geometry.[ch]: sprinkled with "const" modifiers.
11252 * lib/bezier_conn.[ch]:
11253 * lib/beziershape.[ch]:
11254 * lib/connection.[ch]:
11255 * lib/element.[ch]:
11256 * lib/poly_conn.[ch]:
11257 * lib/orth_conn.[ch]:
11258 * lib/neworth_conn.[ch]:
11259 * lib/polyshape.[ch]: adapted to take advantage of
11260 boundingbox.[ch] instead of relying on private (duplicate) code.
11262 * object/FS/flow.c:
11263 * object/GRAFCET/action.c:
11264 * objects/GRAFCET/condition.c:
11265 * objects/GRAFCET/vergent.c:
11266 * objects/GRAFCET/vector.c:
11267 * objects/SADT/annotation.c:
11268 * objects/SADT/arrow.c:
11269 * objects/ER/participation.c:
11270 * objects/UML/constraint.c:
11271 * objects/UML/implements.c:
11272 * objects/UML/lifeline.c:
11273 * objects/UML/message.c:
11274 * objects/UML/realizes.c:
11275 * objects/UML/generalization.c:
11276 * objects/UML/association.c:
11277 * objects/UML/dependency.c:
11278 * objects/FS/flow-ortho.c:
11279 * objects/network/bus.c:
11280 * objects/standard/arc.c:
11281 * objects/standard/bezier.c:
11282 * objects/standard/beziergon.c:
11283 * objects/standard/line.c:
11284 * objects/standard/polygon.c:
11285 * objects/standard/zigzagline.c:
11287 * objects/standard/polyline.c: Some *BBExtras structures changed
11288 names while moving to boundingbox.[ch]. A trivial mass-renaming.
11290 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
11292 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
11293 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
11295 * app/display.c (ddisplay_update_scrollbars): from Patrick's
11296 suggestion, remove the extra scrollable area (it was only visible
11297 to the scrollbars). This is experimental.
11299 * objects/custom/custom_object.c: If a shape's icon file doesn't
11300 exist, warn and substitute a default icon, instead of crashing.
11303 * objects/network/network.c:
11304 * shapes/network/modularswitch.(shape|xpm) (NEW):
11305 * shapes/network/printer.(shape|xpm) (NEW):
11306 * shapes/network/genmonitor.(shape|xpm) (NEW):
11307 * shapes/network/computer.(shape|xpm) (NEW):
11308 * shapes/network/Makefile.am: four less objects, four more shapes.
11309 These were the last known RenderObjects. (phew !)
11313 * objects/sybase/Makefile.am:
11314 * objects/network/Makefile.am: Removed the older Renderobjects
11315 from the build, and their infrastructure (not yet deleted,
11318 * shapes/network/sceadplug.shape:
11319 * shapes/network/antenna.shape:
11320 * shapes/network/modem.shape:
11321 * shapes/network/hub.shape:
11322 * shapes/network/rj45plug.shape:
11323 * shapes/sybase/client.shape:
11324 * shapes/sybase/dataserver.shape:
11325 * shapes/sybase/ltm.shape:
11326 * shapes/sybase/repserver.shape:
11327 * shapes/sybase/rsm.shape:
11328 * shapes/sybase/stableq.shape: Minor corrections (line widths were
11329 ten times too narrow).
11331 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
11333 * objects/network/network.c:
11334 * shapes/network/sceadplug.(shape|xpm) (NEW):
11335 * shapes/network/antenna.(shape|xpm) (NEW):
11336 * shapes/network/modem.(shape|xpm) (NEW):
11337 * shapes/network/Makefile.am: four less objects, four more shapes.
11340 * lib/diagramdata.c:
11342 * lib/string_prerenderer.[ch] (NEW):
11343 Add a new renderer primitive, predraw_string() (does nothing, to be
11344 used as a hook to optimise the character encodings if needed).
11345 Added a string pre-renderer, which can be viewed as a filter
11346 renderer (to route draw_string() to predraw_string() and ignore
11347 the rest, in a first rendering pass)
11349 * app/render_eps.c: Took advantage of the above to make wholly
11350 optimised Postscript encoding page(s), even (especially) with
11351 non-latin1 code (HAVE_UNICODE must be true).
11353 (#53512 in fact is wholly resolved).
11355 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
11357 * lib/charconv.c: steps towards resolution of #53512 (inspired by
11358 Alexey Novodvorsky <aen@logic.ru>'s patch).
11360 * app/menus.c (dia_menu_signal_proxy): checked that the signal
11361 handler is not NULL before transferring control to it... (fixes #52836)
11363 * app/app_procs.c (app_init): removed non-constant initialiser
11366 * objects/custom/custom_object.c:
11367 * objects/custom/shape_info.[ch]:
11368 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
11369 <skh@mathstar.com>. This add support for a <svg:text> shape
11370 element, and some related style properties (font, font height,
11373 * doc/custom_shapes: a precision about the meaning of case in a
11374 SVG path (closes #52364)
11376 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
11377 fixed by <drk@sgi.com>)
11379 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
11381 * objects/network/network.c:
11382 * shapes/network/Makefile.am:
11383 * shapes/network/hub.(shape|xpm) (NEW):
11384 * shapes/network/flash.(shape|xpm) (NEW):
11385 * shapes/network/rj45plug.(shape|xpm) (NEW):
11386 More shapes, less renderobjects.
11388 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
11390 * plug-ins/svg/render_svg.c: typo made exported ellipses
11391 corrupted (zero Y pseudo-radius).
11393 * objects/network/network.c:
11394 * objects/network/disc.c:
11395 * shapes/network/disc.(shape|xpm): Converted the first
11396 Renderobject into a shape. Normally, old diagrams should reload
11397 without problems (please check this against your diagrams). More
11398 flexibility should be gained that way. I intend to hunt and
11399 eradicate all renderobjects as I can commit cycles to that.
11401 * objects/Makefile.am:
11404 * objects/sybase/sybase.c:
11405 * shapes/sybase/Makefile.am(NEW):
11406 * shapes/sybase/client.(xpm|shape) (NEW):
11407 * shapes/sybase/dataserver.(xpm|shape) (NEW):
11408 * shapes/sybase/ltm.(xpm|shape) (NEW):
11409 * shapes/sybase/repserver.(xpm|shape) (NEW):
11410 * shapes/sybase/rsm.(xpm|shape) (NEW):
11411 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
11412 renderobjects into shapes. The Sybase objects are now not compiled
11413 anymore, and ready to be nuked if nobody objects in the next few weeks.
11416 * app/diagram.[ch]:
11417 * app/disp_callbacks.c:
11418 * app/display.[ch]:
11419 * app/interface.[ch]:
11421 * app/modify_tool.c:
11422 * app/preferences.[ch]:
11423 * app/recent_files.c:
11424 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
11425 a menu bar reflecting the popup menu, to each display window. This
11426 is optional (changing the preference currently doesn't affect
11427 already opened windows; a few other rough edges to cut).
11429 * plug-ins/wpg/wpg.c:
11430 * plug-ins/xfig/xfig-import.c:
11431 * plug-ins/python/pydia-property.c:
11432 * plug-ins/python/pydia-properties.c:
11433 * plug-ins/python/pydia-geometry.c:
11434 * plug-ins/pstricks/render_pstricks.c:
11436 * objects/EML/dbox.c:
11437 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
11440 * lib/ps-utf8.c: improved the clustering of alphabetic character
11441 definitions in custom encodings pages.
11443 2001-05-02 Hans Breuer <hans@breuer.org>
11445 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
11446 of 'obj_bb' to PROP_TYPE_RECT
11448 * objects/custom/custom_object.c : take all quarks into account,
11449 not only 4 as copy&paste suggests
11451 * objects/uml/objects.c : completed the implementation of the
11452 property api to avoid reading of totally bogus data. Removed
11453 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
11454 there was too much but too less ...
11456 The above changes removed all known crashes (mentioned below)
11457 from the Property API. Property access is still incomplete though.
11459 * objects/flowchart/box.c :
11460 * objects/flowchart/diamond.c :
11461 * objects/flowchart/ellipse.c :
11462 * objects/flowchart/parallelogram.c :
11463 * objects/uml/classicon.c :
11464 * objects/uml/state.c : calculate number of quarks from quark array
11465 size instead of using hardcoded values for consistence and to avoid
11466 future bugs like the above
11468 * objects/eml/nlist.c : include <string.h> for strcmp()
11470 * lib/dia_xml.c : relax g_warning for values, which
11471 appear to be too small. There is nothing which prevents
11474 * plug-ins/python/pydia-geometry.c : changed stringifying of
11475 geometry objects accept BezPoint back to %f, which does not
11476 crash anymore, because all the data is intialized now and it
11477 simply is more readable than %e ...
11479 * plug-ins/python/python-startup.py : removed dependency
11480 to PyGtk, because it isn't required here and probably won't
11481 in i.e.: export filters.
11483 * plug-ins/python/gtkcons.py : create the gtkoutfile even
11484 if sys.stderr.fileno() isn't supported
11486 * app/makefile.msc : make version 0.88
11487 * plug-ins/makefile.msc : make version 0.88 an added new
11488 xfig files to build
11490 2001-05-11 James Henstridge <james@daa.com.au>
11492 * NEWS: remember to add news items this time.
11494 * dia.spec: update spec file for 0.88 release.
11496 * configure.in: up version number to 0.88
11498 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
11499 preventing any of the useful python scripts from being
11502 * sheets/Makefile.am (sheet-translation-report): fix bustage I
11503 introduced in my fixups for the 0.87 release :(
11505 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
11507 * plug-ins/xfig/xfig-import.c: Finally got groups working.
11509 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
11511 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
11512 group manipulation.
11514 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
11516 * lib/ps-utf8.[ch]:
11517 * lib/Makefile.am: fix makefile breakage which led to not
11518 including ps-utf8.[ch] in the released tarballs.
11520 2001-05-09 James Henstridge <james@daa.com.au>
11522 * Makefile.am (core-translation-report): dist scripts needed for
11523 this target, and change to $(srcdir) before running.
11525 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
11526 files aren't automatically included in the tarball by automake
11527 because they could be generated files.
11529 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
11531 * doc/en/Makefile.am (install-data-hook): fix up where graphics
11534 * configure.in: up version number to 0.87
11536 * plug-ins/python/*.py: no longer necessary to explicitly set
11537 sys.argv, as python.c does it for us now (like it should).
11539 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
11542 * plug-ins/python/python-startup.py: startup script that imports
11543 all modules in $(datadir)/dia/python and ~/.dia/python.
11545 * plug-ins/python/python.c (dia_plugin_init): change so that it
11546 only runs the $(datadir)/dia/python-startup.py script. Make sure
11547 that sys.argv and __main__.__file__ are set when calling the
11550 * plug-ins/python/Makefile.am: update makefile. Make it install
11551 gtkcons.py plugin. I haven't set any other plugins to install, as
11552 they look like they are mainly for debugging purposes.
11554 * configure.in: add tests to detect if python is available, so we
11555 can build the python plugin. Only run if --with-python passed to
11558 2001-05-08 James Henstridge <james@daa.com.au>
11560 * acinclude.m4: add macros for detecting python.
11562 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
11563 at GNOME_APP_UI_SUBTREE entries.
11564 (menus_add_path): function to add a menu item to the menubars.
11565 Uses a hash table to keep track of extra menu items it adds. Also
11566 notifies the item factory about the entries so that accels can be
11568 (menus_add_path): implement gtk only version.
11569 (menus_init): use menus_add_path() to add the menu.
11570 (plugin_callback): simplify.
11572 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
11574 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
11576 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
11578 * plug-ins/xfig/xfig-export.c:
11579 * plug-ins/xfig/xfig-common.c:
11580 * plug-ins/xfig/xfig-import.c:
11581 * plug-ins/xfig/xfig.c:
11582 * plug-ins/xfig/xfig.h:
11583 * app/Makefile.am: Added support for exporting to Fig format
11584 (except splits, which are less powerful in Fig). Some refactoring
11587 2001-05-02 Hans Breuer <hans@breuer.org>
11589 * plug-ins/python/debug_objects.py : added another
11590 test to get massive crashes from the Property API due
11591 to unintialized data.
11593 * app/menu.c : the callback_action wasn't incremented
11594 (should have checked my last optimization). Now more
11595 than one plug-in callback is supported again.
11597 * plug-ins/python/pydia-geometry.c : avoid crashes from
11598 glib, when trying to g_strdup_printf unintialized floats.
11600 * plug-ins/python/pydia-property.c : avoid crashes from
11601 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
11603 2001-05-01 Hans Breuer <hans@breuer.org>
11605 * objects/makefile.msc : added eml
11606 * objects/eml/instantiation.c : initialize 'inst' pointer
11607 before using, zero initialization for objects
11608 * objects/eml/interaction-ortho.c :
11609 * objects/eml/interaction.c : zero initialization for objects
11611 * app/menus.c : removed Gimp mru stuff which slipped in at
11612 2000-08-15, was never activated and will never be needed,
11613 because of Steffens recent file list patch added at 2001-01-05.
11615 * objects/eml/*.c : some more zero initialization of objects
11616 to avoid infinite (uninitialized) bounding boxes
11618 Implemented a callback api which allows plug-ins to register
11619 menu call backs. Dia for Gnome should compile, but will need
11620 some extra tweaking to make it work because I can't test it.
11622 * plug-ins/python/pydia-error.h :
11623 * plug-ins/python/pydia-render.c : moved Pxthon function return
11624 value handling from pydia-render.c to pydia-error.h, to make it
11626 * plug-ins/python/diamodule.c : implement callback function
11627 registration from and relaying to Python code
11629 * app/menus.c : register and use plug-in menu callbacks
11631 * lib/filter.[hc] : implement filter_register_callback() and
11632 filter_get_callbacks() for the above
11633 * lib/libdia.def : export them
11635 * plug-ins/python/debug_objects.py (new file):
11636 sample using the above
11638 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
11640 * plug-ins/shape/shape-export.c (new_shape_renderer):
11641 The name of a shape is now taken from the dir, to conform with
11644 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
11646 * app/properties.c (properties_show): Added title containing
11647 object type, plus (hopefully) fix of the ghost properties dialog.
11649 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
11651 * app/display.c: remove the display idle handler in case we
11652 destroy the ddisplay (caused crashes in ddd, probably random
11653 crashes elsewhere).
11657 * Makefile.am: hack around gettext-0.10.36's new "features".
11659 * lib/properties.[ch]: added new function object_copy_props().
11660 Added new property type PROP_TYPE_ENDPOINTS
11662 * lib/connection.h: added support for load/saving through the
11663 properties interface.
11665 * lib/object.[ch]: object_load/save/copy_using_properties()
11666 support functions (code factorisations).
11668 * objects/GRAFCET/boolequation.c: check against null values in
11669 boolequation_set_value() and boolequation_destroy().
11671 * objects/GRAFCET/transition.c: Converted from lazyprops to
11672 standard properties. 31% less (x86) code !
11674 * objects/GRAFCET/condition.c: also converted from lazyprops to
11675 standard properties. Also killed lots of code.
11677 2001-04-13 Hans Breuer <hans@breuer.org>
11679 * plug-ins/wmf/wmf.cpp : changed text conversion from
11680 g_utf8_utf16 to g_convert usage. The latter function is already
11681 available in tml's last "official" Gtk+ version (2000-12-26).
11682 This change allows to use recent Dia with either the official
11683 version or the latest cvs "gtk-1-3-win32-production"-branch.
11685 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
11687 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
11688 * app/disp_callbacks.c:
11689 - Allow submenus in DiaMenus.
11690 - Don't require DiaMenu.title to be non-null (so that
11691 submenus aren't required to have titles)
11693 * objects/FS/function.c:
11694 - object menu now has submenus, an almost complete list of
11695 standard-basis verbs, and a start on nouns.
11696 - box padding, dash length, and other visual attributes are
11697 scaled by the font size... eventually font height will be
11698 a function property.
11699 - draw functions with smaller font to make initial view hold
11700 a reasonable number of functions.
11702 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
11705 * sheets/chronogram.sheet:
11706 * sheets/jigsaw.sheet:
11707 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
11708 Wieers <dag@wieers.com>
11710 2001-04-13 Hans Breuer <hans@breuer.org>
11712 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
11713 to ensure that all the deinitialization is only done once. Fixes
11714 recent app exit crash on win32
11716 * lib/dia_xml.c : provide isinf() replacement for msc which does only
11719 * lib/libdia.def : updated
11721 * objects/makefile.msc : added wanlink.c
11723 * objects/network/wanlink.c : added M_PI_2 definition for poor
11724 platforms which don't have one
11726 * objects/standard/arc.c :
11727 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
11728 initialized which led to rather huge bounding boxes (try Ctrl^A on
11729 diagrams with Arcs or ZigZagLines).
11730 * objects/*/*.c : to avoid further bugs like the above changed all
11731 object initializations to g_malloc0 or g_new0
11734 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
11736 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
11737 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
11739 * objects/UML/class.c:
11740 * objects/UML/usecase.c:
11741 * objects/UML/large_package.c:
11742 * objects/UML/message.c:
11743 * objects/UML/object.c:
11744 * objects/UML/lifeline.c:
11745 * objects/FS/flow.c:
11746 * objects/FS/flow-ortho.c:
11747 * objects/FS/function.c:
11748 * objects/custom/custom_object.c:
11749 * objects/GRAFCET/vergent.c:
11750 * objects/chronogram/chronoref.c:
11751 * objects/SADT/box.c:
11752 * objects/SADT/annotation.c:
11753 * plug-ins/dxf/dxf-import.c:
11754 * plug-ins/xfig/xfig-import.c:
11755 * plug-ins/wpg/wpg.c:
11758 * app/display.c: /* certainly more WIP than dead code there */
11759 Unused variables, unused static function definitions, forgotten or
11760 incomplete prototypes added or fixed, lack of const or unwanted const,
11761 etc. (mostly clean-ups of leftovers of the pre-properties era).
11762 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
11763 please check these.
11765 * app/lineprops_area.c: More of the same. Missing prototypes
11766 added, and functions unused outside made static.
11768 * app/recent_files.c:
11769 * app/properties.c:
11770 * app/defaults.c: some variables are used only when doing a GNOME
11773 * app/magnify.c: missing #include <stdlib.h>.
11775 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
11777 These are a lot of clean-ups (by the way, this compiles and runs
11778 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
11779 for DEAD_CODE, and if it's yours, judge it.
11781 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
11783 * plug-ins/dxf-import.c: some progress with the arcs; still some
11784 clean-ups to do and line width scaling issues to figure out.
11786 * objects/standard/arc.c: start_point and end_point properties
11787 (duplicated from standard/line.c)
11789 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
11792 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
11794 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
11795 preliminary support for arcs (doesn't work). Circles and ellipses are
11796 now transparent. Coordinate and width scaling are now a common
11797 static constant (probably before morphing into a preference).
11799 * sheet/checktrans.py: improved error reporting. Made checktrans
11800 count lack of <name xml:lang="code"> as a lack of translation for
11801 language "code" (no, it's not a plot to bring down other
11802 language's scores !)
11804 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
11805 in the header, and have <name xml:lang="fr"> components.
11807 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
11809 * objects/custom/custom_object.c: temporary hack to fix the shape
11810 bounding box reported by Ben A. Hetland. Proper fix isn't .87
11811 material, see bugzilla #52912.
11813 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
11815 * objects/standard/image.c (get_directory): Now uses
11816 G_SEPARATOR_CHAR_S instead of "/"
11818 * sheets/network.sheet:
11819 * sheets/Logic.sheet:
11820 * sheets/Flowchart.sheet:
11821 * sheets/Electric.sheet:
11822 * sheets/Circuit.sheet:
11824 * sheets/Pneumatic.sheet:
11825 * sheets/SDL.sheet:
11826 * sheets/UML.sheet:
11827 * sheets/GRAFCET.sheet:
11828 * sheets/MSE.sheet:
11829 * sheets/chronogram.sheet:
11830 * sheets/civil.sheet:
11831 * sheets/network.sheet:
11832 Danish translations.
11834 * objects/standard/image.c (get_directory): Changed get_directory
11835 to use g_dirname to find the directory part.
11837 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
11840 * sheets/Electric.sheet:
11841 * sheets/Flowchart.sheet:
11842 * sheets/Logic.sheet:
11843 * sheets/network.sheet: More Dutch translations from Dag Wieers.
11845 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11847 * sheets/checktrans.py: now emits a warning when two descriptions
11848 for a single language code are found.
11851 * sheets/Makefile.am: -translation-reports now also depend on their
11854 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11856 * sheets/Circuit.sheet:
11857 * sheets/Contact.sheet:
11858 * sheets/Logic.sheet:
11859 * sheets/chronogram.sheet:
11860 * sheets/sybase.sheet:
11861 Dutch translations from Dag Wieers <dag@wieers.com>
11863 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
11865 * po-checktrans.py: Now shows the detailed counts alongside the
11866 percentage of translations.
11868 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
11871 * po-checktrans (NEW):
11872 * po-checktrans.py (NEW): builds core-translation-report:
11873 percentages of core (gettext) translations done [Not placed into
11874 po/ where that should belong, because of integration fear^Wissues
11877 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
11878 sheets/sheet-translation-report probably ought to be copied on the
11879 user's /usr/share/doc/dia (or equivalent) directory.
11881 * sheets/Makefile.am: sheet-translation-report now a simple
11882 EXTRA_DIST; make install won't install it by default.
11884 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
11886 * app/preferences.c: changed the default grid colour to something
11889 * shapes/SDL/*.shape:
11890 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
11891 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
11892 DIA FILES (well, for files using SDL), see the mailing list
11893 archive "SDL (ab)using the global shape namespace" for a script to
11894 do this conversion.
11896 * sheets/SDL.sheet: translated into French
11897 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
11899 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
11901 * lib/dia_xml.c: made data_point() more paranoid
11903 * sheets/Makefile.am:
11904 * sheets/checktrans (NEW):
11905 * sheets/checktrans.py: Made checktrans handle more gracefully the
11906 absence of python and python-xml packages, and made the error
11907 message more helpful.
11909 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
11911 * lib/render_object.c (new_render_object): Made initial handles
11912 behave like on most other objects.
11914 * app/load_save.c (read_objects): Fixed premature free'ing ofr
11915 typestr causing garbage.
11917 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11919 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
11920 accouting for handle ordering through copy and save. (#51479)
11922 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
11924 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
11926 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
11928 * sheets/Circuit.sheet
11930 * sheets/network.sheet: Updated German translations
11932 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
11935 * app/lineprops_area.c: The return of the revenge of the arrow
11936 heads. Now all types covered by ISO 10303-201 should be covered.
11938 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
11940 * sheets/Flowchart.sheet: translations in probably Hungarian were
11941 a victim of cut-n-paste from the German one. Fixed (hopefully).
11942 * sheet/UML.sheet: translation in probably Norwegian was a victim
11943 of cut-n-paste from the French one. Fixed (hopefully).
11944 * sheets/Logic.sheet: French translation not tagged with
11947 * sheets/checktrans.py:
11948 * sheets/Makefile.am: new file, sheet-translation-report, to be
11949 installed along the sheets, show how much of them has been
11950 translated into which language (I wish the result was prettier...)
11952 * po/README: most translators don't read this file, but anyway...
11954 * sheets/.cvsignore:
11955 * objects/network/.cvsignore: the usual negotiation with CVS.
11957 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
11959 * sheets/*.sheet: French translations
11961 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
11963 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
11965 ** objects/network/network.c:
11966 ** objects/network/wanlink.c:
11967 ** objects/network/pixmaps/wanlink.c:
11968 ** sheets/network.sheet:
11969 ** objects/network/Makefile.am: a better object to use instead of
11970 the older WAN Connection.
11972 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
11974 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
11977 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
11978 Arc; kept the C file name (because CVS wouldn't like it), and
11979 still registering the older object name (but advertising the newer
11980 one in sheets/GRAFCET.sheet).
11982 2001-03-24 Hans Breuer <hans@breuer.org>
11984 * app/dia.def : some plug-ins (currently only python, xfig) are using
11985 functions from the dia executable. To get them working these functions
11986 need to be explicit exported on win32. IMO the much cleaner way would
11987 be to move these functions to libdia, but that would require some
11988 long term restructuring ...
11990 * lib/libdia.def : updated
11992 * plug-ins/makefile.msc : build xfig plug-in
11994 2001-03-24 Hans Breuer <hans@breuer.org>
11996 * app/diagram.c : g_strdup (dia->filename) because it will be
11999 * app/display.c : set ddisp->renderer to NULL after destruction.
12000 This may solve or help to identify erroneous access to it after
12003 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
12004 get 'umlauts' working
12006 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
12008 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
12009 were reversed... (look for the patch, and drink a beer to my
12012 2001-03-23 Hans Breuer <hans@breuer.org>
12014 * app/app_procs.c : don't g_error () if the config directory
12015 can't be created (at least not on windoze) because it's quite
12016 common that the user don't read or understand the FAQ ...
12018 * app/cursor.c : use ddisplay_active () instead of active_display
12021 * app/display.[hc] : made active_display var static and provide
12022 an accessor funtion ddisplay_active_diagram ()
12024 * app/dia-props.c : don't store the active_diagram, but ask
12025 for it everytime it needed.
12027 * lib/properties.h : #include "intl.h"
12029 * lib/makefile.msc : need to take care of inclusion order to
12030 avoid clashes with gtk+2.0's gdk-pixbuf
12032 * objects/makefile.msc : added uml/stereotype.c to build
12034 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
12036 * **/*.c: Added config.h to the remaining .c files, and changed
12037 all to be <config.h>.
12039 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
12044 * app/lineprops_area.c: added new arrow types with double
12047 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
12049 * shapes/Civil/civil_gas_bottle.xpm
12050 * shapes/Civil/civil_gas_bottle.shape
12051 * sheets/civil.sheet
12052 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
12055 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
12057 * objects/custom/shape_info.c (load_shape_info):
12058 * objects/custom/shape_info.h:
12059 * objects/custom/custom_object.c (custom_update_data):
12060 Better support for text outside the box -- new attributes 'resize'
12061 and 'align' for text entity. Align not fully supported yet.
12063 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
12065 2001-03-20 James Henstridge <james@daa.com.au>
12067 * app/interface.c (display_data_received_callback): comment out
12070 2001-03-19 James Henstridge <james@daa.com.au>
12072 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
12074 * objects/UML/realizes.c: similar here.
12076 * objects/UML/implements.c: similar here.
12078 * objects/UML/component.c: similar here.
12080 * objects/UML/generalization.c: same here.
12082 * objects/UML/dependency.c: allow NULL for ->name and
12083 ->stereotype. This fixes a number of problems in loading saved
12086 * lib/properties.c: various changes so that NULL string properties
12089 * objects/standard/line.c (line_update_data):
12090 line->extra.start_long and line->extra.end_long were not being
12091 initialised. This fixes potential problems with the bounding box
12092 of "Standard - Line" objects.
12094 2001-03-19 Hans Breuer <hans@breuer.org>
12096 * app/commands.c : added win32 specific code to display a html
12097 file. #include "text.h" for text_delete_all prototype.
12100 * app/dia.rc : (new) to give Dia win32 an icon
12102 * app/win32print.[ch] : new files to support direct postscript
12103 file printing on win32. Beware: it *requires* a ps-printer!
12105 * app/paginate_psprint.c : disable the signal code for win32 build
12106 and added small specific changes to support win32print.
12108 * app/makefile.msc : added win32print and linking shell32.lib
12110 * lib/libdia.def : updated
12112 2001-03-18 Kevin Breit <battery841@mediaone.net>
12114 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
12117 2001-03-17 James Henstridge <james@daa.com.au>
12119 * app/paginate_psprint.c (diagram_print_ps): add code that traps
12120 SIGPIPEs during printing. This gets rid of a number of crashes
12121 caused by printing (eg. typing an incorrect print command).
12123 * dia.spec (%install): gzip the manpage.
12125 * lib/beziershape.c (beziershape_save): fix off by one error in
12126 beziershape save code, which was adding an extra segment to the
12129 * app/menus.c: add a separator in the gnome version of the help
12132 * app/app_procs.c (app_init): add a --nosplash argument which
12133 disables the splash screen.
12135 * app/dia_embedd.c (main): don't leave the splash screen open for
12136 embeddable component.
12138 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
12139 didn't seem to be showing the splash screen like expected, so I
12140 have replaced it with some code that calls gtk_main() until the
12141 first exposure of the window.
12143 2001-03-16 James Henstridge <james@daa.com.au>
12145 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
12147 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
12150 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
12152 * app/Makefile.am (dia_core_files): remove splash.h from file
12153 list, as it doesn't exist.
12155 * doc/en/Makefile.am (uninstall-local): remove the docdir on
12158 * doc/Makefile.am (uninstall-local): target to remove the C
12161 * dia.spec (%files): include the documentation in the package.
12163 * app/menus.c (toolbox_menu_items): add menu item for manual,
12164 which calls help_manual_callback.
12166 * app/commands.c (help_manual_callback): find help file and load
12167 netscape to view it.
12169 * app/commands.h: add prototype for help_manual_callback()
12171 * doc/Makefile.am (helpdir): similar here.
12173 * doc/en/Makefile.am (helpdir): make the helpdir
12174 $(pkgdatadir)/help/en in the non gnome case.
12176 * configure.in (HAVE_GNOME): add conditional.
12178 * doc/en/Makefile.am: handle the graphics in a more general way,
12179 so it is easier for Kevin to add them to the build (just add them
12180 to the GRAPHICS var).
12182 * app/Makefile.am (embed_extra_print_files): make the case of
12183 building without gnome-print support but with bonobo support work.
12184 dia-embedd needs to be include the gnome-print
12186 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
12188 * samples/Makefile.am: included all samples in the distribution....
12190 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
12192 * configure.in: removed premature test for DPS. Added -*- m4 -*-
12193 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
12194 vanished, removed it from ALL_LINGUAS.
12196 * lib/charconv.[ch] (NEW): a very small wrapper around
12197 unicode_iconv to convert strings between utf8 and local charset
12198 (actually, ISO-8859-1, though one can do
12199 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
12201 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
12202 library to help build Postscript streams which use as many custom
12203 font encodings as necessary to correctly represent all characters
12204 used (testing from users with non-latin1 and/or more than 256
12205 characters in routine use *very* welcome).
12207 * app/Makefile.am, lib/Makefile.am: integrated these into the
12210 * shapes/Logic/.cvsignore (NEW): .cvsignore
12212 * app/render_eps.h: forwarded some changes Lars forgot to include.
12213 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
12216 2001-03-08 Kevin Breit <battery841@mediaone.net>
12218 * doc/en/home_network.png: Added file.
12219 * doc/en/line_props.png: Added file.
12220 * doc/en/usage-objects.sgml: Added two graphics to file.
12221 * doc/en/usage-quickstart.sgml: Added one graphic to file.
12223 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
12225 * app/grid.h: Place comment around text after #endif.
12226 * lib/bezier_conn.c: #include <string.h>.
12227 * lib/beziershape.c: #include <string.h>.
12228 * lib/connpoint_line.h: Comment after #endif.
12229 * lib/dia_dirs.c: #include <string.h>.
12230 * lib/element.c: Same.
12231 * lib/lazyprops.c: #include <config.h> and "intl.h".
12232 * lib/lazyprops.h: Comment out text after #endif.
12233 * lib/neworth_conn.c: #include <string.h>
12234 * lib/orth_conn.c: Same here.
12235 * lib/poly_conn.c: Here too.
12236 * lib/polyshape.c: And here.
12237 * lib/properties.c: Remove #include "intl.h" from here and add
12238 an array of static strings to work around bug in gettext that
12239 makes it miss strings in a #define body.
12240 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
12241 * objects/GRAFCET/boolequation.h: Same here.
12242 * objects/chronogram/chronoline_event.h: Add prototype for
12245 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12247 * objects/FS/function.c:
12248 * objects/FS/flow.c:
12249 * objects/FS/flow-ortho.c:
12250 Updated to use properties.
12252 2001-03-03 James Henstridge <james@daa.com.au>
12254 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
12255 button labels when creating them.
12257 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12259 * objects/UML/actor.c
12260 * objects/UML/realizes.c
12261 * objects/UML/implements.c
12262 * objects/UML/generalization.c
12263 * objects/UML/dependency.c
12264 * objects/UML/constraint.c
12265 Updated to use properties.
12267 * objects/UML/stereotype.c
12268 * objects/UML/stereotype.h
12269 Generalized to any kind of bracketting.
12271 2001-02-28 James Henstridge <james@daa.com.au>
12273 * app/menus.c: add help entry to the help menu. Need to get this
12274 working for the non GNOME case as well (maybe put help under
12275 $(datadir)/dia/help for non GNOME?)
12277 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
12279 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
12280 this element so that we get a meaningful filename in the html
12283 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
12286 * configure.in (DB2HTML): add a check for the db2html program, and
12287 set an automake conditional if it is found.
12289 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
12290 and descend into doc/ directory while building.
12292 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
12293 we need more complex rules for building the docs.
12295 2001-02-25 Hans Breuer <hans@breuer.org>
12297 * config.h.win32 : some cleanup
12299 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
12300 are deprecated since glib-1.3.2. Sorry needing to use them
12301 contionally, but there is no glib-1.2 for win32
12303 * app/recent_files.c : use g_strescape (params) conditionally
12305 * lib/connection.c : include string.h for memcpy
12307 * lib/geometry.h : added some stuff for compatibility with
12308 msvc, which previously came from included config.h
12310 * lib/libdia.def : updated
12312 * objects/makefile.msc : updated
12314 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
12315 'extra' used without having been initialized
12317 * objects/network/bus.c(658) : initialize 'extra'
12319 * plug-ins/makefile.msc : updated
12321 * plug-ins/cgm/cgm.c :
12322 * plug-ins/pstricks/render_pstricks.c :
12323 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
12326 * plug-ins/python/python.c : use HAVE_DIRENT_H
12328 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12330 * lib/connection.c (connection_update_boundingbox):
12331 Made the BB shrink on right and lower sides, too.
12333 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
12335 * */*.c: #incude <config.h> at the top.
12336 * */*.h: Remove include of "config.h" since it should only
12337 be included in .c files and at the very top for things to
12339 * sheets/*.sheet: Updated Norwegian translations.
12341 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12343 * objects/UML/small_package.c:
12344 * objects/UML/class.c:
12345 * objects/UML/node.c:
12346 * objects/UML/usecase.c:
12347 * objects/UML/lifeline.c:
12348 * objects/UML/message.c:
12349 Various cleanup of properties in particular. Now much more use of
12350 standard properties.
12352 * lib/diagramdata.c (layer_render): Visualization of bounding
12353 boxes, for debugging purpoises.
12355 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
12358 * lib/connection.[ch]:
12359 * lib/poly_conn.[ch]:
12360 * lib/polyshape.[ch]:
12361 * lib/bezier_conn.[ch]:
12362 * lib/beziershape.[ch]:
12363 * lib/orth_conn.[ch]:
12364 * lib/neworth_conn.[ch]:
12365 * lib/element.[ch]: Changed a bit the _update_boundingbox()
12366 interface. Now the parent elements have an extra_spacing
12367 structure, which child objects just need to fill, to take care of
12368 most arrow & line width extra space needs.
12370 * objects/**/*.c: updated all objects to the new interface.
12371 While at it, killed all instances of (Object *) downcasts (phew !)
12373 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
12374 doesn't speak about.
12376 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
12378 * sheets/Logic.sheet: New sheet for Logic symbols.
12380 2001-02-21 James Henstridge <james@daa.com.au>
12382 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
12383 widget by its path name. Walks the GnomeUIInfo heirachy rather
12384 than widget tree, compares untranslated label names and ignores
12385 underscores in the labels.
12386 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
12387 lookups are not dependent on the current locale, as with
12388 gnome_app_find_menu_pos.
12390 * acconfig.h: guard against multiple inclusion of config.h.
12392 * app/select.c (select_style_callback): simply set the selection
12393 style to the value of action.
12395 * app/menus.c (menus_init): simplify the item factory based menu
12396 code a bit. It looks like it was using some code cut and pasted
12397 from the gimp, which looked a bit unnecessary. Things work fine
12399 (selectmenu): set the action to the type of selection mode
12401 (display_menu_items): use the symbolic enumeration values for the
12404 * app/plugin-manager.c:
12405 * app/plugin-manager.h:
12409 * app/select.h: change prototypes.
12411 * app/commands.c: update all callback prototypes, and get rid of
12412 some #ifdef GNOME's.
12414 * app/commands.h: change function prototypes.
12416 * app/dia_embedd.c (save_fn):
12417 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
12419 * app/menus.c (menus_init): for gnome menus, use
12420 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
12421 structure that proxies the callbacks to have the same signature as
12422 GtkItemFactory type 1 callbacks.
12423 (menus_init): for GTK menus, change from callback type 2 to type
12425 (display_menu_items): add back tearoffs. I don't know who removed
12426 these for the gtk menu case.
12428 2001-02-20 Kevin Breit <battery841@mediaone.net>
12430 * doc/en/usage-objects-special.sgml: Fixed a few of the special
12431 object descriptions. More to come in the next few days.
12433 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
12435 * app/render_eps.c: Fixed for internationalized floating point
12438 * objects/UML/note.c: Fixed properties -- was missing
12439 Get/ApplyPropertiesFunc. Also improved update to recalculate text
12442 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
12444 * plug-ins/xfig/xfig-import.c:
12445 File added importing xfig files. Still very rough, but good
12446 enough to let others hack on it.
12448 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
12451 * app/linewidth_area.c:
12453 * lib/properties.c:
12455 * objects/ER/attribute.c:
12456 * objects/ER/entity.c:
12457 * objects/ER/relationship.c:
12458 * objects/custom/custom_object.c:
12459 * objects/flowchart/box.c:
12460 * objects/flowchart/diamond.c:
12461 * objects/flowchart/ellipse.c:
12462 * objects/flowchart/parallelogram.c:
12463 * objects/standard/box.c:
12464 * objects/standard/textobj.c: per Vlad Harchev's request, made
12465 page sizes of gtk_adjustments different than their step sizes.
12466 When sensible values of page size weren't found (overwhelming
12467 majority of cases), page sizes were set to 10.0 * respective step
12470 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
12472 * objects/network/hub.c:
12473 Patch from Hubert Figuiere applied, adding connection points.
12475 2001-02-02 James Henstridge <james@daa.com.au>
12477 * app/display.c (new_display): set update id to 0 here.
12478 (ddisplay_update_handler): rename from ddisplay_flush, and set
12479 update_id to 0 at end of processing.
12480 (ddisplay_flush): new implementation that simply sets an idle
12481 handler to perform the actual drawing.
12483 * app/display.h: add structure member to hold the redraw idle
12486 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
12488 * objects/standard/ellipse.c (ellipse_copy):
12489 * objects/standard/zigzagline.c (zigzagline_copy):
12490 Fix of copying provided by Martin Hawlisch.
12492 2001-01-23 Kevin Breit <battery841@mediaone.net>
12494 * doc/en/graphics/: added directory
12496 * doc/en/graphics/greendots.png: added file
12498 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
12501 2001-01-23 Kevin Breit <battery841@mediaone.net>
12503 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
12504 thanks to John Fleck!
12506 2001-01-21 Kevin Breit <battery841@mediaone.net>
12508 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
12510 2001-01-12 Michael Meeks <michael@helixcode.com>
12512 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
12513 so our POA gets setup properly.
12515 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
12516 things we g_malloc.
12518 * configure.in: Use bonobox_print.
12520 * app/dia_embedd.c (embeddable_factory): add print interface.
12521 (object_print): impl.
12523 2001-01-11 Michael Meeks <michael@helixcode.com>
12525 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
12526 (load_fn, save_fn): impl.
12527 (view_factory): hide modified status bar, & use activate fn.
12528 (refresh_view): force redraws of the views.
12529 (view_show_hide): split from
12530 (dia_view_activate): here.
12532 * app/diagram.c (diagram_load_into): split from diagram_load.
12533 (new_diagram): simplify bu splittin stuff into
12534 (diagram_init): here.
12536 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
12538 * shapes/jigsaw/*.shape: replaced #000000 with foreground
12539 and #ffffff with background
12541 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
12543 *configure.in: GTK+-build was broken due to missing
12546 2001-01-06 Michael Meeks <michael@helixcode.com>
12548 * app/dia_embedd.c (main): add running context support.
12549 (dia_embeddable_destroy): remove old running object counting.
12550 (embeddable_factory): ditto.
12551 (view_factory): comment out menu path hiding.
12553 * lib/sheet.c (load_register_sheet): use free to free
12554 stuff from libxml not g_free.
12556 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
12558 * configure.in: remove USE_OAF checks, check for a precice
12559 Bonobo version >= 0.31, revamp bits.
12561 * app/dia_embedd.c (init_server_factory): upd.
12562 (init_dia_factory): remove OAF conditionals, everything uses
12565 * app/GNOME_Dia.oafinfo: rename OAFIIDs
12567 * app/Makefile.am: remove ancient gnorba code.
12568 rename dia.oafinfo to GNOME_Dia.oafinfo
12570 2001-01-07 Hans Breuer <Hans@Breuer.Org>
12574 * readme.win32 : some more files required or useful to build
12577 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
12578 fill_bezier implementation, boundary drawing in fill mode, etc.
12579 Next one complaining gets the source, uncommented ...
12581 * shapes/network/router-symbol.xpm
12582 * shapes/network/switch-atm-symbol.xpm
12583 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
12584 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
12585 the files as XPMs. Maybe the X versions of these functions are more
12588 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
12590 * plug-ins/python/Makefile.am: added libart path
12592 * plug-ins/python/python.c: added dirent.h
12594 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
12596 2001-01-06 Hans Breuer <Hans@Breuer.Org>
12598 * objects/uml/actor.c
12599 * objects/uml/branch.c
12600 * objects/uml/class.c
12601 * objects/uml/classicon.c
12602 * objects/uml/component.c
12603 * objects/uml/large_package.c
12604 * objects/uml/node.c
12605 * objects/uml/note.c
12606 * objects/uml/object.c
12607 * objects/uml/small_package.c
12608 * objects/uml/state.c
12609 * objects/uml/usecase.c : started to implement the generic property
12610 interface for the uml objects. Would appreciate some help on how
12611 to implement properties which are list of properties themselves,
12612 e.g. member functions and their parameters of UMLClass.
12614 2001-01-06 Hans Breuer <Hans@Breuer.Org>
12616 * plug-ins/python/diamodule.c : finally ported to win32.
12617 Added new objects and implemented register_export function.
12619 * plug-ins/python/pydia-object.h
12620 * plug-ins/python/pydia-display.c
12621 * plug-ins/python/pydia-handle.c
12622 PyObject_HEAD_INIT needs some tweakink on win32. Done in
12623 pydia-object.h; others files simply using it.
12625 * plug-ins/python/pydia-layer.c : reflect
12626 layer_find_closest_connection(_)point renaming
12628 * plug-ins/python/pydia-object.c : add property properties.
12629 Also change bounding_box to DiaRectangle.
12631 * plug-ins/python/python.c : extended error reporting; use
12632 all *.py files from Dia's plug-in dir instead of hardcoded
12633 test.py. This sollution should be fine with Win32, but on
12634 Unix it may need some tweaking (dunno) ...
12636 * plug-ins/python/export-object.py
12637 * plug-ins/python/export-render.py : test and documentation
12638 implementations for export filter implementations in Python
12640 * plug-ins/python/pydia-color.[hc]
12641 * plug-ins/python/pydia-diagramdata.[hc]
12642 * plug-ins/python/pydia-error.[hc]
12643 * plug-ins/python/pydia-export.[hc]
12644 * plug-ins/python/pydia-font.[hc]
12645 * plug-ins/python/pydia-geometry.[hc]
12646 * plug-ins/python/pydia-image.[hc]
12647 * plug-ins/python/pydia-properties.[hc]
12648 * plug-ins/python/pydia-property.c
12649 * plug-ins/python/pydia-render.c : new objects in new files
12651 * plug-ins/python/makefile.am : added new files but can't test it
12653 * plug-ins/python/pydia.def
12654 * plug-ins/python/makefile.msc : for win32 build
12656 * plug-ins/cgm/cgm.c
12657 * plug-ins/dxf/dxf-import.c
12658 * plug-ins/dxf/dxf-export.c
12659 * plug-ins/hpgl/hpgl.c : reflect export API change
12661 * plug-ins/shape/shape-export.c : reflect export API change
12662 and check for libart (better the availibility of a png exporter)
12663 at run-time instead of compile-time.
12665 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
12667 * app/recent_files.h was missing from Hans's commit
12669 * plug-ins/shape/shape_export.c: shape export was broken
12670 due to interface changes
12672 2001-01-05 Hans Breuer <Hans@Breuer.Org>
12674 Applied Steffen's recent file list patch :
12675 * app/Makefile.am : added recent_files.[hc]
12676 * app/diagram.c : add files to recent file list
12677 * app/menus.c : add recent file menu
12678 * app/app_procs.c : changed initialization order to
12679 make recent file list work with command line processing.
12681 The Filter export()/import() functions have got an additional
12682 parameter to allow multiple filters via one C callback (required
12683 for Python bindings)
12685 * app/commands.[hc] : corrected the signature for gtk menu callback
12686 functions, which actually use the second or third parameter. This
12687 is the absolute minimum change to make these functions/menu entries
12688 work again. Using the other possible gtk menu callback signature
12689 would have required one more function to change. (see mailing list
12690 thread "Objects/Align/Equal Distance" for more information.
12692 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
12693 zoom-combo focus patch
12696 * app/interface.c : wrapped the Zoom Combo code into
12697 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
12698 improvement but cluttering the user interface. Also it wasn't
12699 compiling on Win32 anyway. The win32 version does define
12700 WITHOUT_ZOOM_COMBO to keep the old look.
12701 There are plans to use the statusbar to display size and placement
12702 of selected objects, whereas the Zoom Combo would need to get out
12703 of the way as well.
12705 Added "Save Changes?" to diagram close dialog. Hopefuly the
12706 Yes/No/Cancel option isn't too much windoze like. IHMO this is
12707 an useability improvement.
12712 * app/layer_dialog.c
12713 * app/paginate_psprint.c
12715 - reflect signature changing of filter->export function
12716 - replaced '/' with G_DIR_SEPARARTOR where appropriate
12718 * app/diaunitspinner.c
12719 * app/render_libart.c
12720 added misssing headers like <string.h>
12722 * app/object_ops.c : fixed copy&paste bug in dialog string
12724 * app/splash.c : gdk_widget_show_now () does not ensure actual
12725 drawing of the splash screen, at least not on win32. Reuse the
12726 previous implementation with gtk_main_iteration() again.
12728 * */makefile.msc : make use of the build module (available in
12729 gnome-cvs/build. Updated for other source changes
12731 * lib/filter.h : added an user_data pointer to <ex/im>port()
12732 function signature and Dia<Im/Ex>portFilter to allow different
12733 filters to reuse the same callback function
12735 * lib/font.c : #include <string.h>
12740 * lib/neworth_conn.c
12741 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
12743 * */*.def : export function definition files required by win32 build
12745 * objects/custom/custom.c : #include <string.h>
12747 * plug-ins/pstricks/render_pstricks.c
12748 * plug-ins/shape/shape_export.c
12749 * plug-ins/svg/render_svg.c
12750 reflect changes to filter export function signature
12752 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
12753 mostly work as expected
12754 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
12755 to build the wmf plug-in because on the one hand the GDI emulation
12756 isn't finished and on the other hand it isn't required when building
12757 for win32. Is there anybody out there, who wants to save WMF on non
12758 windoze platforms ?
12760 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
12761 offset into account.
12763 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
12765 * app/Makefile.am: added missing plug-ins to run_dia.sh
12767 * lib/paper.c: added paper sizes A0, A1, A2
12769 * objects/UML/class.c
12770 objects/UML/class.h
12771 objects/UML/class_dialog.c: added support for colored UML
12774 2000-12-30 Kevin Breit <battery841@mediaone.net>
12776 * doc/en/usage-customization.sgml: added more content
12778 2000-12-24 Kevin Breit <battery841@mediaone.net>
12780 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
12781 <remy.viard@laposte.net>
12783 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
12785 * added limiting lines to Civil Engineering sheet,
12786 fixed vertical pump icon
12788 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
12790 * updated/additional Civil Engineering shapes: better icons,
12791 shapes use foreground/background colors now and are filled
12793 2000-12-03 Kevin Breit <battery841@mediaone.net>
12795 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
12796 the selection <sect1>
12798 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
12800 * app/load_save.c (diagram_data_save): avoid using obsoleted
12801 libxml calls (only matters when compiling with libxml2)
12803 2000-11-25 James Henstridge <james@daa.com.au>
12805 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
12806 handle the tool drops on the canvas.
12808 * app/interface.c (display_data_received_callback): do the check
12809 to make sure that the drag is from a local toolbox here as well.
12811 * app/interface.c (create_tools): unref the pixmap/mask after
12812 creating the GtkPixmap.
12813 (tool_setup_drag_source): function to set up a drag source for
12814 create object tool buttons.
12815 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
12816 (fill_sheet_wbox): same here.
12817 (create_display_shell): set up the display canvas as a drag
12819 (display_drop_callback, display_data_received_callback): functions
12820 to handle drops of tool buttons.
12822 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
12823 does weird shit to the user_data pointer for a menu item. Object
12824 alignment should work again now.
12826 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
12827 NULL, and mark this function static.
12828 (app_splash_init): use gtk_widget_show_now() instead of the
12829 gtk_main_iteration loop.
12830 (app_splash_init): connecting gtk_widget_destroy to the destroy
12831 signal of a widget seems pretty useless.
12833 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
12835 * doc/en/dia-manual.sgml:
12836 Added sect1 for advanced object types. Starting development
12839 2000-11-18 Kevin Breit <battery841@mediaone.net>
12841 * doc/en/dia-manual.sgml:
12842 Stupid spelling fixes.
12844 2000-11-18 Kevin Breit <battery841@mediaone.net>
12846 * doc/en/dia-manual.sgml:
12847 Just some small changes I made. Props to Greg LeBlanc on the
12850 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
12853 (ddisplay_add_display_area): Clip input rectangle to
12854 the visible part of the display.
12855 (ddisplay_scroll): Optimization, don't scroll and
12856 redraw if moving to the same position as before.
12858 * app/render_libart.c (renderer_libart_copy_to_window):
12859 Removed sanity check. Now moved to ddisplay_add_display_area().
12862 Added return at end of file.
12864 2000-11-13 Kevin Breit <battery841@mypad.com>
12865 * doc/en/dia-manual.sgml
12866 Commited manual changes from Henry House <hajhouse@houseag.com>
12868 2000-10-21 Hans Breuer <Hans@Breuer.Org>
12869 * lib/beziershape.c :
12870 The previous code was accessing unowned memory due to IHMO
12871 wrong index calculation. Now it appears to be fixed.
12875 * plug-ins/makefile.msc
12876 * objects/makefile.msc
12877 * app/makefile.msc: (new files)
12878 Makefiles for Dia on Win32, Micro$oft VC only.
12880 * plug-ins/pstricks/render_pstricks.c
12881 * plug-ins/dxf/dxf-import.c
12882 * plug-ins/shape/shape-export.c
12883 * plug-ins/svg/render_svg.c
12886 * app/preferences.c
12890 * objects/custom/custom.c
12891 * objects/standard/image.c
12892 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
12893 where appropriate, add missing prototypes like <string.h>
12895 * plug-ins/wmf/wmf_gdi.cpp
12896 * plug-ins/wmf/wmf_gdi.h:
12897 start of wmf write functions for non Win32 platform. Not
12898 finished yet. The other way to get it working maybe to
12899 link the plug-in against wine libs.
12901 * plug-ins/wpg/wpg.c : add missing brace
12903 * app/load_save.c :
12904 Handling for unknown objects at load time. Previously Dia
12905 was crashing, if you try to load a file referencing objects
12906 whiches plug-ins aren't installed/available. Now it spits out
12907 a warning and ignores the unknown objects.
12910 toolbox DND support for files like The Gimp does it.
12914 Simple splash screen support and usage.
12917 Splash screen, portability fixes, dont' g_error if there is
12918 g_get_homedir return NULL. This may remove the one and only
12922 Make it compile without ENABLE_NLS
12924 * app/render_libart.c :
12925 Sanity check to avoid calling libart with wrong window coordinates.
12926 They come from the update handler. Direct Gdk is dealing nicely
12927 with coordinates out of range, libart does access un-owned memory
12928 in this case, mostly causing crashes.
12930 * app/winmain.c: (new file) Export the Win32 Gui version of the
12931 main function. This file is only required for Windoze.
12933 * app/splash.c: (new file) splash screen implementation
12937 * lib/diavar.h: (new file)
12938 moved special variable export code to diavar.h, because it is
12939 needed in color.h and font.h
12942 M$VC cann't export inlined functions. Quick hack to let it
12943 link again. Probably the glib mechanics should be used here?
12945 * objects/UML/lifeline.c : initialize var before usage
12947 * objects/GRAFCET/step.c : removed unused var
12949 2000-10-14 James Henstridge <james@daa.com.au>
12951 * app/render_gnomeprint.c (draw_image): change code so images
12952 don't get flipped when printing.
12954 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
12955 sure that the return value of
12956 gnome_print_context_new_with_paper_size is not NULL.
12958 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
12959 into a series of bezier segments.
12960 (fill_arc): similar code to handle filled arc segments.
12962 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
12969 * app/disp_callbacks.c
12971 * app/linewidth_area.c
12972 * app/paginate_psprint.c
12973 * app/preferences.c
12977 * app/neworth_conn.c
12979 * objects/standard/box.c: various small changes to get rid of
12980 annoying warnings (eg faulty prototypes and unused variables)
12982 * app/disp_callbacks.c
12985 * app/magnify.h: update magnify tool icon when pressing/releasing
12986 shift. I will try to make something more general so that similar
12987 things can be used by other tools.
12989 * shapes/SDL/inout.shape
12990 * shapes/SDL/return.shape: fixed some typos
12992 2000-10-09 James Henstridge <james@daa.com.au>
12994 * objects/custom/shape_info.c (parse_path): apply patch from
12995 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
12998 2000-10-08 James Henstridge <james@daa.com.au>
13000 * objects/standard/image.c (image_set_props): if the file could not
13001 be loaded, show the broken image icon.
13003 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
13005 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
13007 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
13008 object icon when loading from a file. This allows you to have PNG
13009 icon files for shapes.
13011 2000-10-07 James Henstridge <james@daa.com.au>
13013 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
13015 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
13016 GDK_IMLIB_CFLAGS reference.
13018 * app/commands.c (help_about_callback): remove imlib code.
13020 * lib/dia_image.c: only include the pixbuf version of the image
13023 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
13025 * configure.in (CPPFLAGS): remove the check for imlib, as we now
13026 require gdk-pixbuf.
13028 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
13029 conditionally define \setfont as well.
13031 2000-10-05 James Henstridge <james@daa.com.au>
13033 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
13034 preamble so that we define \setlinejoinmode and \setlinecaps
13035 commands conditionally on them being undefined. This way, the
13036 pstricks output files should work without modification, and will
13037 support the commands when they are implemented in pstricks.
13039 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
13041 * dia.desktop: added hungarian translations to dia.desktop
13043 2000-10-04 James Henstridge <james@daa.com.au>
13045 * sheets/UML.sheet: fix typo.
13047 * objects/custom/shape_info.c: use strtod instead of g_strtod.
13048 (parse_path): actually call setlocale around strtod calls.
13050 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
13051 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
13052 the g_strtod wrapper.
13054 * shapes/SDL/: add SDL shapes from Rubens Ramos
13055 <rubens_ramos@yahoo.com>
13057 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
13059 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
13061 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
13062 W. Michael Petullo <mike@flyn.org>.
13064 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
13065 from the 0.86 tarball) and jigsaw.sheet.
13067 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
13069 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
13071 * shapes/network/: add network-additional shapes here.
13073 * sheets/network.sheet: add the network-additional shapes from
13074 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
13077 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
13079 * configure.in: Updated ALL_LINGUAS
13081 * po/nl.po: Removed newline from translation
13083 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
13085 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
13086 logo filename generation.
13088 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
13089 Avoiding "//dia_logo.png".
13091 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
13093 * app/filedlg.c: add include <sys/types.h> to
13094 remove warning. (OS/2)
13096 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
13098 * objects/chronogram/chronoline_event.c (reparse_clevent):
13099 the __checksum routine was simply bogus. Redone it in a slightly
13100 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
13102 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
13104 * app/create_object.c (create_object_button_press):
13105 * app/modify_tool.c (click_select_object):
13106 * lib/object.h: select renamed to selectf to prevent
13107 compiler problems with function select(). OS/2 version.
13109 2000-09-08 Karsten Weiss <knweiss@gmx.de>
13111 * po/de.po: Updated.
13113 2000-09-07 Karsten Weiss <knweiss@gmx.de>
13115 * dia.desktop: Added German translation
13116 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
13118 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
13120 * configure.in (ALL_LINGUAS): added "es"
13122 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13127 * app/scroll_tool.c:
13128 Standardized cursor function get_cursor(). Magnify now has
13129 looking-glass cursor with + and -.
13131 * app/create_object.c (create_object_button_press):
13132 Newly created connections now snap to connection points even when
13135 2000-08-17 Daniel Egger <egger@suse.de>
13137 * app/menus.c: #ifdef'ed some code for the none GNOME
13139 * app/dia_embedd.c: Changed obvious hackery. Can anyone
13140 please have a look at the GNOME UI menu creation? The
13141 gnome-app-helper code is ages old and plainly broken!
13143 2000-08-15 Daniel Egger <egger@suse.de>
13150 * app/select.c: First big patch to get the menus
13151 working again in the international version. Copied
13152 some code written by Sven and me from GIMP and
13153 thus implemented automatic tearoffmenu creation and
13154 proper translation. I also removed that pseudo
13155 radiomenu hack and cleaned up several translation
13156 hacks which have never really worked. All in all
13157 this is part I of the big menu patch. Enjoy and tell
13158 me if you detect any problems.
13160 2000-08-14 Daniel Egger <egger@suse.de>
13162 * sheets/UML.sheet: Changed one German translation as
13163 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
13165 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
13167 * app/diapagelayout.c:
13168 * lib/diagramdata.c:
13169 * lib/diagramdata.h:
13172 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
13173 selecting paper size for a new diagram. TODO: Use libpaper if
13174 available and use gnome_paper-stuff if using GNOME.
13176 * sheets/Electric.sheet: fixed typo.
13178 2000-08-08 James Henstridge <james@daa.com.au>
13180 * po/README: added a readme file to tell translators to translate
13181 the .sheet files as well.
13183 * app/commands.c (help_about_callback): fix small bug where we tried
13184 to gdk_bitmap_unref() the mask for the about box image, even though
13185 it was NULL. Now check for a NULL mask.
13187 2000-08-07 Daniel Egger <egger@suse.de>
13189 * sheets/*.sheet: Added translations for the name
13190 in the toolbar tab. Brushed up some descriptions
13191 and some translations a bit.
13193 2000-08-06 James Henstridge <james@daa.com.au>
13195 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
13196 identifier and dtd url for SVG output.
13197 (new_svg_renderer): fix the output of the viewBox output. The
13198 second two numbers are the width and height -- not the right
13199 and bottom sides of the box.
13201 * shapes/*/*.shape: update svg namespace URI.
13203 * objects/custom/shape_info.c (load_shape_info): change the
13204 namespace URI for custom shapes yet again to match the Candidate
13205 Recommedation. It looks like this one will probably be the final
13208 * app/display.c (new_display): remove the code that sets ic and
13209 ic_attr members to NULL, as one of the previous function calls
13210 causes the display to be realised. This means that the ic gets
13211 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
13214 2000-08-06 James Henstridge <james@daa.com.au>
13216 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
13218 * NEWS: fixed date in NEWS file, as I will release today.
13220 * README: updated the README a little. Added note that Dia is now
13223 * dia.spec: fix up spec file.
13225 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
13227 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
13228 get heaps of warnings when you turn off debugging.
13229 Also made a few other warning fixes.
13231 2000-08-02 James Henstridge <james@daa.com.au>
13233 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
13235 * configure.in: update version number.
13237 2000-08-01 James Henstridge <james@daa.com.au>
13239 * app/commands.c (help_about_callback): add Hans to about dialog.
13241 * doc/shape.dtd: dtd for shape file format.
13243 * doc/custom-shapes: update doc file about creating custom shapes.
13245 * shapes/*/*.shape: change namespace URI for the SVG portion to the
13246 one for the latest draft.
13248 * shapes/*/*.shape: fix up rect definitions.
13250 * objects/custom/shape_info.c (load_shape_info): recognise newer
13251 namespace tag for SVG.
13252 (parse_svg_node): the rect element should take attributes x, y, width
13253 and height -- not x1,y1,x2,y2.
13255 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
13256 output to use the newest draft DTD.
13258 * plug-ins/svg/svg.c: initialisation code for plugin.
13260 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
13262 * plug-ins/svg/Makefile.am: makefile for svg plugin.
13264 * app/app_procs.c (internal_plugin_init): don't register the svg
13265 export filter here.
13267 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
13269 2000-07-31 James Henstridge <james@daa.com.au>
13271 * objects/standard/textobj.c (textobj_get_defaults):
13272 * objects/standard/polygon.c (polygon_get_defaults):
13273 * objects/standard/image.c (image_get_defaults):
13274 * objects/standard/ellipse.c (ellipse_get_defaults):
13275 * objects/standard/box.c (box_get_defaults):
13276 * objects/standard/beziergon.c (beziergon_get_defaults):
13277 * objects/flowchart/parallelogram.c (pgram_get_defaults):
13278 * objects/flowchart/ellipse.c (ellipse_get_defaults):
13279 * objects/flowchart/diamond.c (diamond_get_defaults):
13280 * objects/flowchart/box.c (box_get_defaults):
13281 * objects/custom/custom_object.c (custom_get_defaults):
13282 * objects/FS/flow.c (flow_get_defaults):
13283 * objects/FS/flow-poly.c (flow_get_defaults):
13284 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
13287 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
13288 widgets for various object types.
13289 (create_dialog): ref and sink the no_defaults_dialog.
13291 * app/preferences.c (prefs_create_dialog): change
13292 gtk_container_border_width call to gtk_container_set_border_width.
13294 2000-07-29 James Henstridge <james@daa.com.au>
13296 * app/commands.c (view_aa_callback): show a warning dialog if
13299 * app/interface.c (fill_sheet_menu): don't add a menu item for
13302 2000-07-26 James Henstridge <james@daa.com.au>
13304 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
13306 * app/menus.c: remove edit grid menu item.
13308 * app/commands.[ch] (view_edit_grid_callback): removed.
13310 * app/display.c (new_display): don't initialise removed Grid members.
13312 * app/grid.c: remove unused functions.
13314 * app/grid.h: remove dialog related stuff from Grid structure.
13315 Remove prototypes for dialog functions.
13317 * app/menus.c: add to menus
13319 * app/commands.[ch] (view_diagram_properties_callback): new command
13320 for showing the diagram properties dialog.
13322 * app/dia-props.[ch]: a new diagram properties dialog. To replace
13323 the edit grid dialog.
13325 2000-07-25 James Henstridge <james@daa.com.au>
13327 * app/grid.c (grid_x_update):
13328 (grid_y_update): as the grid setting is stored with the diagram,
13329 update all displays when a change is made.
13331 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
13333 * app/create_object.c (create_object_button_press):
13334 (create_object_motion): use new snap_to_grid signature.
13336 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
13337 and handle invisible grid lines.
13338 (snap_to_grid): use new grid settings. Also changed signature to
13339 take a DDisplay rather than Grid pointer.
13340 (grid_show_dialog): get the defaults from the correct place.
13342 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
13344 * app/diagram.c (new_diagram): set the grid size defaults from the
13347 * app/load_save.c (diagram_data_save): save grid and guide info to
13349 (diagram_data_load): add guide and grid load support.
13351 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
13354 * lib/diagramdata.h: add members to DiagramData for grid and guide
13357 * configure.in (BONOBO_LIBS): update configure scripts
13359 * app/dia.oafinfo: oafinfo file for dia embeddables.
13361 * app/dia_embedd.c: add OAF support.
13363 2000-07-24 James Henstridge <james@daa.com.au>
13365 * plug-ins/wpg/Makefile.am:
13366 * plug-ins/pstricks/Makefile.am:
13367 * plug-ins/hpgl/Makefile.am:
13368 * plug-ins/dxf/Makefile.am: same here.
13370 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
13371 the required libraries, and the link line was causing libtool not
13372 to build a shared library on some systems :(
13374 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
13375 be checking x, not n.
13377 2000-07-23 James Henstridge <james@daa.com.au>
13379 * app/preferences.c (prefs_data): set the "reset tools after
13380 create" preference to true by default. That seems to be what most
13383 * app/interface.c (create_sheets): instead of a notebook, use an
13384 option menu that updates the sheet tools. The notebook tabs were
13385 getting a bit unwieldly, so the option menu should fix that. This
13386 also reduces the number of widgets in the tools radio button
13387 group, which should make the UI a little more responsive.
13389 2000-07-19 Fatih Demir <kabalak@gmx.net>
13391 * configure.in: Added tr to ALL_LINGUAS.
13392 [ Yeah, we're now having a Turkish translation,
13395 * dia.desktop: Added the Turkish entries.
13397 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
13399 * doc/diagram.dtd: changed string-element so it conforms to the
13402 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
13404 * configure.in: added chinese.
13405 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
13413 objects/custom/shape_info.c:
13414 shapes/Circuit/npn.shape:
13415 shapes/Circuit/pnp.shape:
13416 sheets/*.sheet: dia now works with libxml2.
13417 Libxml2 is a bit more picky when parsing xml and reported errors on all
13418 sheet files because they use non ascii characters (added
13419 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
13420 I commented out these.
13422 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
13424 * configure.in (ALL_LINGUAS): added Italian
13426 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
13428 * configure.in (ALL_LINGUAS): added Korean
13430 2000-06-25 James Henstridge <james@daa.com.au>
13432 * objects/flowchart/parallelogram.c (pgram_create): use default font
13433 and add properties interface support.
13435 * objects/flowchart/ellipse.c (ellipse_create): use default font and
13436 add properties interface support.
13438 * objects/flowchart/diamond.c (diamond_create): use default font and
13439 add properties interface code.
13441 * objects/flowchart/box.c (box_create): use default font.
13443 * objects/custom/custom_object.c (custom_create): use default font
13446 * objects/standard/textobj.c (textobj_create): update to use default
13449 * lib/attributes.c: add implementations.
13451 * lib/attributes.h (attributes_[gs]et_default_font): add function
13452 prototypes for setting/getting a default font.
13454 2000-06-24 James Henstridge <james@daa.com.au>
13456 * app/paginate_gnomeprint.h: updated prototype.
13458 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
13459 diagram page settings.
13461 * objects/standard/beziergon.c (beziergon_copy): same here.
13463 * objects/standard/polygon.c (polygon_copy): copy the fill colour
13467 * app/tool.h (tool_options_dialog_show):
13468 * app/scroll_tool.h (free_scroll_tool):
13469 * app/render_svg.h:
13470 * app/render_libart.h (renderer_libart_copy_to_window):
13471 * app/render_gdk.h (renderer_gdk_copy_to_window):
13472 * app/properties.h (properties_hide_if_shown):
13473 * app/preferences.h (prefs_load):
13474 * app/object_ops.h:
13475 * app/modify_tool.h (free_modify_tool):
13476 * app/magnify.h (free_magnify_tool):
13477 * app/linewidth_area.h (linewidth_area_create):
13478 * app/layer_dialog.h:
13479 * app/handle_ops.h (handle_is_clicked):
13481 * app/grid.h (grid_destroy_dialog):
13482 * app/defaults.h (defaults_show):
13483 * app/cut_n_paste.h (cnp_exist_stored_objects):
13484 * app/create_object.h (free_create_object_tool):
13485 * app/connectionpoint_ops.h (diagram_unconnect_selected):
13487 * app/color_area.h (color_area_create):
13488 * app/app_procs.h (app_is_embedded): remove extern keyword from
13489 function prototypes.
13492 * lib/sheet.h (load_all_sheets):
13493 * lib/render_store.h:
13494 * lib/render_object.h (render_object_load):
13495 * lib/polyshape.h (polyshape_closest_segment):
13496 * lib/poly_conn.h (polyconn_closest_segment):
13499 * lib/objchange.h (new_object_state_change):
13500 * lib/neworth_conn.h (neworthconn_add_segment):
13501 * lib/message.h (message_error):
13504 * lib/font.h (font_descent):
13505 * lib/focus.h (remove_focus):
13507 * lib/diagramdata.h:
13508 * lib/dia_xml.h (data_add_composite):
13510 * lib/connpoint_line.h:
13511 * lib/connection.h (connection_move_handle):
13513 * lib/attributes.h (attributes_set_default_line_style):
13514 * lib/arrows.h (arrow_draw): remove extern keyword from function
13515 definitions. It is not required for functions.
13517 * plug-ins/dxf/Makefile.am (INCLUDES):
13518 * plug-ins/pstricks/Makefile.am (INCLUDES):
13519 * plug-ins/cgm/Makefile.am (INCLUDES):
13520 * objects/SADT/Makefile.am (INCLUDES):
13521 * objects/chronogram/Makefile.am (INCLUDES):
13522 * objects/GRAFCET/Makefile.am (INCLUDES):
13523 * objects/flowchart/Makefile.am (INCLUDES):
13524 * objects/sybase/Makefile.am (INCLUDES):
13525 * objects/FS/Makefile.am (INCLUDES):
13526 * objects/standard/Makefile.am (INCLUDES):
13527 * objects/network/Makefile.am (INCLUDES):
13528 * objects/UML/Makefile.am (INCLUDES): same here.
13530 * objects/ER/Makefile.am: changed inclusion of some macros to
13533 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
13534 handle the plug in extension, rather than have all the #ifdef's in
13537 * plug-ins/Makefile.am: add renderer.inc to dist.
13539 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
13541 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
13543 * lib/plug-ins.c: Handle OS/2 dll's too.
13545 2000-06-07 James Henstridge <james@daa.com.au>
13547 * app/plugin-manager.c (get_plugin_manager): set some table
13548 packing options to make it look a little nicer.
13550 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
13551 makefiles for these plug-ins.
13553 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
13555 * configure.in: added hpgl and wpg directories to build. Added
13556 note about whether gnome-print support was enabled, and noted that
13557 it is not recommended.
13559 2000-06-06 James Henstridge <james@daa.com.au>
13561 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
13562 a little work, but I am checking them in so I don't lose them.
13564 2000-06-01 James Henstridge <james@daa.com.au>
13566 * objects/standard/arc.c: added extra properties.
13568 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
13569 was using the wrong index into the handles array. This gets corner
13570 type changing working correctly.
13572 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
13573 to properties code (no editing or loading yet though). Also added
13574 support for point array manipulation through the offsets interfaces.
13576 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
13578 * app/interface.c (origin_button_press): changes so the origin
13579 button doesn't grab the pointer when we pop up the menu.
13581 * app/commands.c (help_about_callback): fix small memory leak in
13584 * app/menus.c (menus_init): fixed breakage I introduced in the non
13585 gnome menus when I was doing the menu changes. The tearoffs work
13586 really nicely in plain gtk mode as well.
13588 * objects/standard/beziergon.c (beziergon_create): changed the
13589 returned handles to match the handle numbering changes. Now
13590 segment addition and removal works correctly with undo!
13592 * lib/beziershape.c: various changes to the code. Changed the
13593 numbering of handles, and fixed the segment removal code.
13595 2000-05-31 James Henstridge <james@daa.com.au>
13597 * objects/standard/beziergon.c: remove connection point handling.
13598 There is still a bit of work to be done to get adding and removing
13599 of segments working correctly.
13601 * lib/beziershape.c: add connection point handling to beziershape.
13602 I set it for two connection points per segment.
13604 2000-05-30 James Henstridge <james@daa.com.au>
13606 * objects/standard/polygon.c: don't do connectionpoint handling.
13608 * lib/polyshape.c: changed to handle connection points internally.
13609 Also, don't worry about connections to handles on polyshape, as
13610 all handles are non connectable.
13612 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
13614 * configure.in: Added finnish
13616 2000-05-30 James Henstridge <james@daa.com.au>
13618 * sheets/*.sheet: translation updates to the .sheet files.
13620 * po/fr.po: updated po file from Christophe Merlet.
13622 * menus.h: removed prototypes for functions which have been removed.
13624 2000-05-29 James Henstridge <james@daa.com.au>
13626 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
13627 item in the option menu when changing selected diagram.
13629 * app/dia_embedd.c (view_factory): fix up function to work with new
13632 * app/disp_callbacks.c (ddisplay_realize): remove call to
13633 display_set_active from here.
13634 (ddisplay_canvas_events): move call here. This gets rid of all the
13635 warnings, as the renderer has been fully set up correctly at this
13638 * app/menus.c (menus_init): add the tearoff item to the start of the
13641 * app/app_procs.c (create_user_dirs): we don't need to create the
13642 menus directory anymore.
13644 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
13645 necessary to update the menu state here, as it was done when the
13646 active display was set.
13648 * app/display.c (display_set_active): update the menu state when
13649 changing active displays.
13651 * app/interface.c (origin_button_press): set the display as active
13652 when a click is made on the menu button.
13654 * app/menus.c (menus_init): set up a quit function to save the accels
13656 Add tearoff items for the non GNOME menus, add accelerators for
13657 several GNOME menus.
13659 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
13660 menus_get_image_menu().
13662 * app/menus.c (menus_get_item_from_path): use display_menus here
13663 rather than ddisp->popup.
13665 * app/display.h: remove the popup member in the DDisplay structure.
13667 * app/interface.c: remove option of not using wrap box.
13668 (create_toolbox): change to always use menus_get_toolbox_menubar
13669 even when using gnome menus.
13670 (create_display_shell): use menus_get_image_menu to load accelerators
13671 only -- not the actual popup menu.
13673 * app/menus.c (menus_init): new function to create the menus.
13674 (menus_get_toolbox_menubar): use this function whether gnome is
13675 in use or not. Changed to use menus_init.
13676 (menus_get_image_menu): same here. Also, now this function always
13677 returns the same menu, rather than a new one each time.
13678 (menus_init): read a menurc file to load accelerators here.
13680 2000-05-28 James Henstridge <james@daa.com.au>
13682 * app/display.c (ddisplay_really_destroy): unset active display if
13683 active display is destroyed.
13684 (ddisplay_active): simplify function to return active_display as set
13685 by display_set_active. This allows using a pinned menu with any
13686 display -- not just the one it was popped up from.
13687 (display_set_active): notify the layer dialog of change of diagrams
13688 when active diagram changes.
13690 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
13691 on button and key presses.
13692 (ddisplay_realize): set active display on realize.
13694 * app/display.c (display_set_active): simple implementation of this
13697 * app/display.h (display_set_active): add prototype for setting
13698 the active display.
13700 * app/interface.c (create_display_shell): don't give focus to the
13703 * app/menus.c: fix up menus for Beziergon.
13705 * app/interface.c (create_display_shell): make the widget in the
13706 top left corner a button that can be used to pop up the right click
13707 menu, like in gimp and sketch.
13709 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
13712 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
13713 add code to set corner types for beziergon.
13715 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
13717 (beziershape_move_handle): use the previous corner type for right
13720 * app/interface.c (tool_data): add beziergon to toolbox.
13722 * objects/standard/standard.c (dia_plugin_init): initialise the new
13723 Beziergon object type.
13725 * objects/standard/beziergon.c: an object based on BezierShape.
13727 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
13729 * lib/beziershape.[ch]: new files implementing a bezier shape.
13731 2000-05-26 James Henstridge <james@daa.com.au>
13733 * lib/text.c (text_key_event): handle multibyte inserts.
13734 (text_key_event): also add home and end keybindings.
13736 * app/interface.c (create_display_shell): connect handlers for
13737 focus_in_event, focus_out_event, realize and unrealize signals.
13739 * app/display.[ch] (new_display): initialise input context members.
13741 * app/disp_callbacks.[ch]: added XIM support here.
13743 * lib/font.c (suck_font): the black and white pixel values should be
13744 taken from a 1 bit colormap rather than the default colormap.
13746 Hans Breuer's Windows patches ...
13748 * lib/font.c: use Courier New for fixed width font on windows
13751 * lib/dia_image.h: change to "struct _DiaImage".
13753 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
13755 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
13756 mouse button for object menu. This will make two button mouse owners
13759 2000-05-25 James Henstridge <james@daa.com.au>
13761 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
13763 * app/app_procs.c (app_init): add extra NULL argument to call of
13766 * app/load_save.h: remove prototype.
13768 * app/load_save.c: remove diagram_data function here.
13770 * app/diagram.h: added prototype.
13772 * app/diagram.c (diagram_load): new function here, which uses import
13775 * plug-ins/dxf/dxf.c: register the import filter as well.
13777 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
13778 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
13780 * objects/standard/line.c: add start_point and end_point properties
13781 to standard line object.
13783 2000-05-21 James Henstridge <james@daa.com.au>
13785 * app/paginate_psprint.c: added missing include of locale.h.
13787 * objects/custom/custom_object.c (custom_draw): use fabs rather than
13788 abs for scaling factors.
13789 (custom_distance_from): same here.
13791 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
13793 2000-05-18 James Henstridge <james@daa.com.au>
13795 * po/POTFILES.in: updated POTFILES.in.
13797 * dia.spec: incremented version number in spec file.
13799 * NEWS: added (lots of) news items for the 0.85 release.
13801 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
13804 * configure.in: updated version number here.
13806 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
13808 2000-05-17 James Henstridge <james@daa.com.au>
13810 * app/app_procs.c (internal_plugin_init): register the native import
13813 * app/load_save.c (diagram_data_load, diagram_load): split this
13814 function into two -- one that does all the work on the DiagramData
13815 structure, and the other that provides compatibility with the old
13817 (dia_import_filter): use diagram_data_load to define an import
13820 * app/diagram.h (new_diagram): added const to prototype.
13822 * app/filedlg.c (file_open_callback): change to use new import filter
13825 * lib/filter.c: added import filter management functions.
13827 * lib/filter.h: added prototypes for import filter interface.
13829 * app/commands.c (help_about_callback): updated about dialog to
13830 contain a few more names.
13832 2000-05-16 James Henstridge <james@daa.com.au>
13834 * configure.in (Configuration): added a status message to the end of
13835 the configure script to give the user some idea of what was
13838 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
13840 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
13843 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
13846 * configure.in (AM_PATH_LIBART): use the check function provided
13847 with libart rather than our own code. It is more reliable, and
13848 it only requires that people who build out of CVS have libart.m4
13849 installed (not necessarily all of libart).
13850 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
13852 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
13854 * dia.desktop: Added Swedish translation.
13856 2000-05-09 James Henstridge <james@daa.com.au>
13858 * lib/dia_xml.c: you can't free a const pointer, so remove const
13859 from variable definitions.
13861 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
13862 initialised correctly.
13864 * app/render_svg.c (export_svg): set locale to C.
13866 * app/paginate_psprint.c (paginate_psprint): set locale to C.
13868 * app/render_eps.c (export_eps): set locale to C for EPS export.
13870 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
13871 (data_add_point): same here.
13872 (data_add_rectangle): same here.
13873 (data_real): use g_strtod to convert strings to real numbers, so that
13874 locales are taken into account.
13875 (data_point): same here.
13876 (data_rectangle): same here.
13878 * AUTHORS: added Henk and Jacek to authors file.
13880 Daniel Egger's code cleanups.
13882 * app/select.c (select_invert_callback): remove unused variable.
13884 * app/plugin-manager.c (get_plugin_manager): fix typo.
13886 * app/load_save.c (read_connections, write_objects):
13887 (write_connections): made some functions static.
13889 * app/interface.c (toolbox_delete, toolbox_destroy): made some
13892 * app/filedlg.c (file_export_callback): remove unused variable.
13894 * app/app_procs.c: various warning fixes.
13896 Integrating Jacek Pliszka's pstricks export filter.
13898 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
13900 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
13901 renderer (with a few small modifications by me).
13903 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
13905 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
13907 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
13910 * sheets/Makefile.am:
13911 * shapes/Makefile.am:
13912 * shapes/Civil/Makefile.am:
13913 * sheets/civil.sheet:
13915 Added civil/hydraulic/structural engineering objects from
13916 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
13918 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
13920 * objects/FS/flow-poly.c:
13921 * objects/FS/flow.c:
13922 Fix division by zero in point_normalize().
13923 Patch by David Thompson <dcthomp@mail.utexas.edu>
13925 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
13928 * lib/bezier_conn.c:
13929 * lib/connpoint_line.c:
13930 Added checks for zero-length lines before calls to point_normalize.
13932 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13934 * app/preferences.c (prefs_data): Changed
13935 reversed_dragging_intersects to not make the dialog ridiculously
13938 2000-04-22 James Henstridge <james@daa.com.au>
13940 Hans's win32 patches:
13942 * app/export_png.c: include message.h
13943 * app/interface.c: include dia_dirs.h
13944 * app/linewidth_area.c: check for rint
13945 * app/main.c: include interface.h
13946 * app/paginate_psprint.c: remove unused variable.
13947 * app/preferences.c: include message.h
13948 * app/render_svg.c: include stdlib.h
13949 * app/select.c: include object_ops.h
13950 * lib/dia_dirs.c: miscelaneous fixes for win32.
13951 * lib/dia_image.c: include string.h
13952 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
13953 * lib/properties.c: include stdlib.h
13954 * lib/properties.h: define extra data for standard properties as
13955 static variables on win32 (to get around dynamic linker problems).
13956 * objects/standard/polygon.c: polygon_create_change missing return
13959 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
13961 * configure.in (ALL_LINGUAS): added Catalan
13963 2000-04-18 James Henstridge <james@daa.com.au>
13965 * objects/standard/bezier.c (bezierline_get_object_menu): add a
13966 separator to the object menu between the add/remove segment items
13967 and the corner type items.
13968 (bezierline_get_object_menu): add code to disable the menu item for
13969 the current corner type. Really just a cosmetic change.
13971 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
13972 a NULL for the label or with no associated callback.
13974 * objects/standard/bezier.c (bezierline_menu_items): use the
13975 enumeration values rather than numeric values for the corner types.
13977 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
13978 structure, and add code to handle it. Also, don't save the corner
13979 types inline in the bez_points node. The way it is conditionally
13980 including the element just feels like it will break.
13982 * lib/geometry.h (BezPoint): removed the corner_type stuff from
13983 BezPoint. The corner type stuff is a user interface level idea rather
13984 than something required by the renderer, so should be taken care of
13985 at the object level.
13987 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13989 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
13990 checks. Weren't able to reproduce original bug, tough.
13992 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
13994 * sheets/Electric.sheet:
13995 * sheets/Contact.sheet:
13996 * sheets/Pneumatic.sheet:
13997 * sheets/Circuit.sheet: sprayed some <br/>'s around.
13998 (added a few French translations in the last file)
14000 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14003 * lib/bezier_conn.h:
14004 * objects/standard/bezier.c:
14005 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
14006 bezier points. Only one minor problem known: Menus are active
14007 for endpoints minor handles.
14008 11:28: Save and load now works, too.
14009 (bezierconn_closest_major_handle): 12:03: New function to get the
14010 non-control point handle associated with the nearest control
14012 Also fixed the menu activation problem, and made remove_segment
14013 not remove the endpoint.
14015 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14017 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
14020 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
14022 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
14023 <sys/stat.h>. OS/2 patch.
14025 2000-04-15 James Henstridge <james@daa.com.au>
14027 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
14028 Thompson's patch that adds undo support to the function structure
14031 2000-04-14 James Henstridge <james@daa.com.au>
14033 * objects/custom/custom_object.c (custom_distance_from): new
14034 implementation of distance algorithm that actually takes the
14035 display list into account when calculating the distance. Much nicer
14036 than a simple bounding box.
14038 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
14040 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
14042 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14044 * objects/standard/polygon.c: Start of polygons own changes (for
14045 connectionpoints). Need to do seperate changes in polyshape, too,
14046 rather than reuse the bezier changes.
14048 2000-04-13 James Henstridge <james@daa.com.au>
14050 * lib/dia_image.c (dia_image_draw): use the new enumeration values
14051 from after the gdk-pixbuf cleanup.
14053 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
14054 on for loop. Last set of coefficients were not beeing calculated,
14055 which caused a bit of breakage.
14057 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
14058 functions in geometry.c for calculating the closest segment.
14059 (bezierconn_distance_from): use distance_bez_line_point to calculate
14062 * lib/geometry.c (distance_bez_line_point): new function to calculate
14063 the distance from an open bezier line to a point.
14064 (distance_bez_shape_point): new function to calculate the distance
14065 from a closed bezier shape.
14066 (distance_ellipse_point): new function to calculate the distance from
14067 a filled ellipse to a point.
14069 * lib/geometry.h (BezPoint): moved this structure here from render.h
14071 2000-04-12 James Henstridge <james@daa.com.au>
14073 * lib/geometry.c (distance_bez_seg_point): new function to calculate
14074 the distance from a bezier segment.
14076 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
14077 to calculate the distance from the object.
14079 * lib/geometry.c (distance_polygon_point): function for calculating
14080 the distance from a polygon to a point.
14082 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
14085 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
14086 breaks can be inserted in the tool box.
14088 * doc/sheet.dtd: updated the DTD
14089 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
14091 2000-04-12 James Henstridge <james@daa.com.au>
14093 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
14094 macro if the dialog is a GtkDialog :(
14096 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14098 * objects/standard/polygon.c: Connectionpoints now properly
14099 managed in a GList. As far as I can tell, this will not dieturb
14100 the order (but I have the nagging doubt...)
14102 * lib/polyshape.c: No longer knows about connectionpoints.
14104 2000-04-11 James Henstridge <james@daa.com.au>
14106 * app/Makefile.am: fix makefile for bonobo build.
14108 * configure.in: fix checks for bonobo.
14110 * app/menus.c: added entries for the plugin manager.
14112 * app/Makefile.am (dia_core_files): added plugin manager to files
14115 * app/plugin-manager.[ch]: the plugin manager dialog.
14117 * app/display.c (display_update_menu_state): set the antialiased
14118 menu entry to the correct value.
14120 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
14122 * objects/custom/custom_object.c: not all renderers like ellipses with
14123 negative dimensions. This could cause ellipses to disappear when using
14124 the flip_h and flip_v functions.
14126 * samples/grafcet.dia: fixed speling and correctness.
14128 2000-04-11 James Henstridge <james@daa.com.au>
14130 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
14131 exposed the dia_plugin_load and dia_plugin_unload functions.
14133 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
14134 already created PluginInfo structure.
14136 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
14139 * lib/sheet.c: fix up call to dia_config_filename.
14141 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
14142 file. This would save information such as which plugins not to
14143 load during startup.
14145 2000-04-09 James Henstridge <james@daa.com.au>
14147 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
14149 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
14151 * lib/plug-ins.c (dia_register_plugins):
14152 Don't free the value returned from g_getenv.
14154 2000-04-09 Anders Carlsson <andersca@gnu.org>
14156 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
14158 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
14160 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
14161 right to left, select objects that intersect the rubberbanding rectangle
14162 instead of selecting objects that are in the rectangle.
14164 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
14166 * lib/diagramdata.h: Likewise.
14169 2000-04-09 James Henstridge <james@daa.com.au>
14171 * lib/plug-ins.[ch]: add copyright messages to files.
14173 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
14176 * objects/sybase/sybase.c (dia_plugin_init):
14177 * objects/network/network.c (dia_plugin_init):
14178 * objects/flowchart/flowchart.c (dia_plugin_init):
14179 * objects/custom/custom.c (dia_plugin_init):
14180 * objects/chronogram/chronogram.c (dia_plugin_init):
14181 * objects/UML/uml.c (dia_plugin_init):
14182 * objects/SADT/sadt.c (dia_plugin_init):
14183 * objects/GRAFCET/grafcet.c (dia_plugin_init):
14184 * objects/FS/fs.c (dia_plugin_init):
14185 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
14188 * objects/standard/standard.c (dia_plugin_init): change over to new
14191 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
14192 the version checker for plugins.
14194 * app/app_procs.c: remove plugin loading code from here, and use
14195 code from plug-ins.[ch]. Also move registration of internal
14196 objects/filters to a `builtin' plugin.
14198 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
14200 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
14202 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
14203 defined variable in EXTRA_DIST.
14205 * app/preferences.h: removed dia_config_filename from header.
14207 * app/preferences.c: removed dia_config_filename function.
14209 * lib/dia_dirs.c (dia_config_filename): moved function over to this
14210 file. Also changed implementation slightly so that it should work
14211 on the win32 port correctly (and use NT home directories).
14213 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
14214 it should have been.
14216 * lib/plug-ins.[ch]: new plugin loading code.
14218 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14220 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
14222 * lib/polyshape.c: Fix closest segment finding, exposes deeper
14223 bugs in adding corners to 'wraparound' segment.
14225 * objects/standard/polygon.c: Added connection points (fixed so
14226 far), set menu sensitivity.
14228 * lib/polyshape.c: Changed to box-style handles, fixed for start
14229 and ends not being special, added initial connections,
14231 * lib/dummy_dep.h: Added polyshape (gotcha!)
14233 * objects/standard/pixmaps/ellipse.xpm:
14234 * objects/standard/pixmaps/box.xpm:
14235 Filled element pixmaps with white.
14238 * objects/standard/polygon.c:
14240 * objects/standard/standard.c:
14241 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
14242 * lib/Makefile.am (libdia_a_SOURCES):
14244 * app/interface.c (tool_data):
14245 Added Standard/Polygon object and PolyShape lib object. Still
14246 needs inside grab and connection points.
14248 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
14251 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
14254 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
14255 if (argv) outside ifdefs.
14257 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14259 * objects/standard/image.c (image_set_props):
14260 Aspect ratio is back in town.
14262 * app/Makefile.am (dia_LDADD):
14265 Check for gdk_pixbuf (by default disabled, for now)
14267 * app/render_eps.c (draw_image):
14268 * app/render_libart.c (draw_image):
14269 * app/render_gnomeprint.c (draw_image):
14270 Support for alpha mask in rendering. Color postscript, too.
14274 Support for gdk_pixbuf and proper masking for exports.
14276 2000-04-01 Kjartan Maraas <kmaraas@online.no>
14278 * sheets/*.sheets: Updated Norwegian translations.
14280 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14282 * lib/text.c (text_insert_char):
14283 * lib/render_store.c (add_data):
14284 Made realloc double the alloced space rather than add
14285 a fixed amount, to reduce memory stress.
14287 * app/select.c: Added new select method 'Transitive'
14288 that select every reachable (by connections) object.
14290 2000-03-27 Kjartan Maraas <kmaraas@online.no>
14292 * dia.desktop: Added Norwegian translation.
14294 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
14296 * app/render_eps.c:
14297 * app/render_svg.c:
14298 Don't dereference NULL pointer if the renderer
14299 couldn't open the file. Fix by Lars Clausen.
14300 Bug reported by Martin Chisholm <b1mt@unb.ca>
14302 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
14306 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
14308 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
14310 * app/dia.gnorba (location_info):
14311 Changed to correct executable name.
14313 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
14316 Don't do any argument parsing or initialization
14319 * app/dia_embedd.c:
14320 Call init_server_factroy before app_init.
14321 Call app_init with argv==NULL
14322 Now we don't get any critical error on startup.
14325 Add Electric and Pneumatic to makefile list.
14327 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
14329 * shapes/Electric/*:
14330 * sheets/Electric.sheet:
14331 Add some Electric circuit shapes.
14333 * shapes/Pneumatic/*:
14334 * sheets/Pneumatic.sheet:
14335 Add some Pneumatic & Hydraulic circuit shapes
14336 (both sheets are still incomplete, though feature enough
14337 things for basic circuits).
14339 * shapes/Contact/l_*.(xpm|shape):
14340 * sheets/Contact.sheet
14341 * shapes/Contact/Makefile.am
14342 made the older electric circuit shapes in Contact obsolete (disabled
14343 them in the sheet, made that sheet Ladder only). Fixed the makefile
14344 for forgotten items.
14346 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
14349 Add support for Dia bonobo component.
14350 Currently a bit raw, so it's commented out.
14352 * app/dia_embedd.c:
14354 New files for embedding dia.
14355 The menu disabling hack is a bit gross. Esp. for GNOME.
14358 Add new function app_is_embedded();
14361 Don't destroy diagram when last display is destroyed if embedded.
14364 Change initialization of display so it works with embedding.
14367 Clarify comment about display destruction.
14369 * app/interface.[ch]:
14370 Added top_level_window argument to create_display_shell.
14371 Don't open a top-level window if embedding.
14372 Don't quit app if trying to close toolbox window when embedding.
14373 Add toolbox_show() and toolbox_hide().
14376 Added app_is_embedded() function (just returns false).
14377 Added toolbox_show() call in main().
14380 Added code for getting toolbox menus. This is used to
14381 hide some menu items when running embedded.
14384 Include sheet.h to remove warning.
14386 * objects/UML/association.c:
14387 Clarify association direction text.
14389 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
14392 Fixed man page so whatis parsing works.
14394 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
14396 * app/render_libart.c (new_libart_renderer):
14397 Fix from segg <segg@infonet.ca> to compile without libart.
14398 I forgot to change the stub for new_libart_renderer when doing
14399 the interactive renderer stuff for libart.
14401 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
14403 * dia.desktop: Added Irish translation.
14405 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
14407 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
14409 * app/load_save.c (fchmod): OS/2 defines only.
14411 2000-03-07 James Henstridge <james@daa.com.au>
14413 * lib/properties.c (prop_get_widget): set the position in the option
14416 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
14419 * app/export_png.c:
14420 * app/render_libart.[ch]:
14421 Don't export png:s with an interactive libart renderer.
14423 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
14425 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
14427 2000-03-02 James Henstridge <james@daa.com.au>
14429 * dia.spec (%build): unset LINGUAS before running configure. This
14430 ensures that all translations get included in the RPM.
14432 * lib/properties.c (object_create_props_dialog): put in a check for
14433 a NULL return from the describe_props() object method.
14434 (prop_desc_lists_union): make sure that the returned array is not
14436 (prop_desc_lists_intersection): same here.
14438 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
14440 * objects/ER/Makefile.am:
14441 * objects/FS/Makefile.am:
14442 * objects/UML/Makefile.am:
14443 Don't link object libs with gtk.
14445 2000-02-29 James Henstridge <james@daa.com.au>
14447 * app/preferences.c (prefs_save): check to see if the file could
14448 be opened before writing the prefs.
14450 * app/disp_callbacks.c (popup_object_menu): pass the button event
14451 to gtk_menu_popup. This allows you to click and release to open
14453 (ddisplay_canvas_events): same here.
14454 (create_object_menu): set the object type menu item in the object
14455 menu to be insensitive.
14457 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
14458 as we are now requiring a new version of libxml.
14460 * dia.spec: updated version number. Added requirement for
14463 * configure.in: incremented version number to 0.84.
14464 Added check for libxml >= 1.8.5. This will prevent some of the
14465 problems people have had with broken libxml versions.
14467 * NEWS: added news items.
14469 * app/interface.c (create_color_area): removed call to realize parent
14470 widget. Segg <segg@infonet.ca> reported that it caused a warning,
14471 but I haven't seen it on my copy of dia.
14473 2000-02-28 James Henstridge <james@daa.com.au>
14475 * app/export_png.c: added copyright notice, and made the band height
14478 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
14480 * lib/font.c (suck_font):
14481 Fixed off-by one bug in font pixmap height.
14482 Fixes the problem with garbage at the bottom of some text in aa mode
14483 and in png exported files.
14485 2000-02-27 James Henstridge <james@daa.com.au>
14487 * app/app_procs.c: add the png export filter if it was compiled in.
14489 * app/export_png.c (export_png): new PNG export filter. This requires
14490 the libart renderer to work as it needs a renderer that renders to a
14493 * configure.in: add check for libpng.
14495 * lib/message.c (message_internal): use a GNOME dialog here as well.
14497 * app/display.c (ddisplay_close): use a GNOME dialog here.
14499 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
14500 when exporting to EPS. This is because some people said the EPS
14501 output was too large
14503 2000-02-26 James Henstridge <james@daa.com.au>
14505 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
14508 * app/app_procs.c (app_exit): use a GNOME dialog here.
14510 * app/preferences.c (prefs_create_dialog): if GNOME support is
14511 enabled, show a GNOME dialog.
14513 * app/grid.c (grid_draw): use preferences when drawing page break
14516 * app/preferences.c: add page break preferences to dialog.
14518 * app/preferences.h: added page break preferences.
14520 2000-02-25 James Henstridge <james@daa.com.au>
14522 * sheets/UML.sheet: added new objects.
14524 * objects/UML/uml.c: link in the two new objects.
14526 * objects/UML/node.c:
14527 * objects/UML/branch.c: new UML objects from Stfan Seefeld
14528 <seefelds@magellan.umontreal.ca>.
14530 2000-02-24 James Henstridge <james@daa.com.au>
14532 * objects/custom/custom_object.c: converted to use the properties
14533 interface. In the future, it would be nice to add support for
14534 defining custom properties for custom objects, but that can wait.
14536 2000-02-22 James Henstridge <james@daa.com.au>
14538 * sheets/Circuit.sheet: added new circuit shapes to sheet.
14540 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
14541 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
14542 and adds a few new features.
14544 2000-02-21 Daniel Egger <egger@suse.de>
14546 * sheets/*.sheets: Added German translations and made some
14547 corrections to the others.
14549 2000-02-21 James Henstridge <james@daa.com.au>
14551 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
14553 * shapes/Circuit/...: added new shapes from Erik Janssens.
14555 2000-02-20 James Henstridge <james@daa.com.au>
14557 * app/interface.c (create_color_area): realize the parent window
14560 * objects/standard/image.c: properties patch for standard image
14561 object, from Lars Clausen.
14563 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
14565 * lib/properties.h (PropType): added file property type.
14567 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
14570 * app/interface.c: use wrap box for toolbox.
14572 * app/Makefile.am: added new files.
14574 * app/gtk*wrapbox.[ch]: added wrap box widget.
14576 2000-02-19 James Henstridge <james@daa.com.au>
14578 * sheets/network.sheet: added extra shapes to networks sheet.
14580 * configure.in (AC_OUTPUT): added shapes/network/Makefile
14582 * shapes/network/*: added shapes that were posted to the list a while
14585 * shapes/Makefile.am (SUBDIRS): added network subdirectory
14587 * app/menus.c (toolbox_menu_items): don't right justify help menu for
14588 gtk+ version of menus.
14590 * app/properties.c (create_dialog): use a GnomeDialog if we happen
14593 2000-02-18 James Henstridge <james@daa.com.au>
14595 * objects/flowchart/box.c: set extra data for corner radius and text
14596 padding properties.
14598 * objects/standard/box.c: set extra data for corner radius property.
14600 * lib/properties.h: set extra data in some standard properties.
14602 * lib/properties.c (prop_get_widget): look at the extra data for
14603 int, real and enum property types. They now use GtkSpinButton and
14604 GtkOptionMenu respectively.
14606 * lib/properties.h: extra data members for creating property setting
14609 2000-02-17 James Henstridge <james@daa.com.au>
14611 * objects/flowchart/box.c: reverted load/save functions back to
14612 previous implementations. Made box use standard property names.
14614 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
14616 * app/grid.c: add more digits to the grid edit dialog. This patch
14617 was also from Lars Clausen.
14619 * objects/standard/zigzagline.c:
14620 * objects/standard/textobj.c:
14621 * objects/standard/polyline.c:
14622 * objects/standard/line.c:
14623 * objects/standard/ellipse.c:
14624 * objects/standard/box.c:
14625 * objects/standard/bezier.c:
14626 * objects/standard/arc.c: patches to add properties code to standard
14627 objects. Based on patches from Lars Clausen. I have also removed
14628 some dead code from the files.
14630 * lib/properties.h (PROP_STD_*): define a number of standard
14631 properties. Where appropriate, objects should include these
14632 properties in their PropDescription list. This way, the intersection
14633 of properties of two different shapes will be greater.
14635 2000-02-14 James Henstridge <james@daa.com.au>
14637 * objects/flowchart/box.c (box_load, box_save): use property save
14638 routines. Make sure that any props not handled by object_load_props
14639 are loaded before calling object_load_props, or we get errors because
14640 update_data is called.
14642 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
14643 error that could cause properties to be loaded incorrectly.
14644 (object_set_props_from_offsets): similar here.
14646 * lib/properties.[ch] (prop_{load,save}): functions for loading
14647 or saving a property in Dia's XML file format.
14648 (object_{load,save}_props): load or save some properties of an
14649 object. These functions should help simplify the load/save methods
14650 of objects that implement the properties interface.
14652 2000-02-13 James Henstridge <james@daa.com.au>
14654 * objects/flowchart/box.c: use offset code to simplify property
14657 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
14659 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
14661 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
14663 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
14665 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
14668 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
14671 Add the custom object to DIA_LIB_PATH in run_dia.sh
14673 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
14675 * sheets/Circuit.sheet:
14676 * shapes/l_sout* (NEW):
14677 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
14678 variants of simple, inverted, set and reset outputs.
14679 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
14680 probably a split of Contact and Ladder sheets. And then a major
14681 revamping of the Contact sheet.
14683 2000-02-10 James Henstridge <james@daa.com.au>
14685 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
14687 * app/app_procs.c (register_all_objects): don't explicitely
14688 register the custom objects library -- let it be loaded by the
14689 normal plugin loading methods.
14691 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
14693 * objects/custom/Makefile.am: build libcustom_objects as a shared
14696 * objects/custom/shape_info.[ch]: don't read the description field
14697 of custom shapes. It makes more sense to have these in the sheet
14698 file to localise the parts of dia that translators have to deal
14701 * objects/custom/custom_object.c (custom_object_new): do not
14702 create the sheet object for the new custom shape -- this is
14703 handled by the custom sheet code.
14705 * objects/custom/custom.c: change over to being a normal plug-in
14706 rather than being linked with the main dia executable.
14708 2000-02-09 James Henstridge <james@daa.com.au>
14710 * sheets/Circuit.sheet:
14711 * sheets/Flowchart.sheet:
14712 * sheets/Contact.sheet: fixed up sheets.
14714 * objects/custom/custom_object.c (custom_object_new): set the
14715 extra ObjectType fields.
14717 * lib/sheet.c: use extra ObjectType fields when creating sheet
14718 objects. Give a warning if <shape> tags are found in a sheet
14719 file. Now the custom sheet code does not know about custom
14720 shapes -- they look like any other object type.
14722 * lib/object.h (ObjectType): added extra members
14724 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
14726 * app/linewidth_area.c:
14727 Added code to set arbitrary line width.
14728 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
14730 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
14732 * app/linewidth_area.c:
14734 Add support for font-sucking.
14735 Implementation borrowed from gnome-canvas.
14737 * app/render_libart.[ch]:
14738 Implement text rendering.
14740 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
14742 * app/properties.c (create_dialog):
14743 ref and sink no_properties_dialog.
14745 2000-02-07 James Henstridge <james@daa.com.au>
14747 * app/group.c (group_describe_props): new function. Return the
14748 intersection of the properties of the contained objects that
14749 implement the describe_props interface.
14750 (group_get_props): implement by iterating through contained objects
14751 and calling their get_props method until all properties have been
14752 set. Maybe this should go through all objects all the time??
14753 (group_set_props): implement by calling set_props method on all
14755 (group_ops): use standard props dialog creation routines.
14757 * lib/properties.c (prop_desc_lists_intersection): fix implementation
14758 of intersection -- I was using i++ instead of i-- in a for loop :(
14760 * objects/custom/custom.c (custom_register_objects): fix usage
14761 of dia_get_data_directory again.
14763 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
14764 actually read the sheets.
14766 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
14768 Win32 port by Hans Breuer <Hans@Breuer.org>
14771 Remove DATADIR and LIBDIR defines.
14774 Add dia_dirs.c and dia_dirs.h
14775 Added DATADIR and LIBDIR defines.
14777 * lib/dia_dirs.[ch]:
14778 New files for handling special directories.
14783 * objects/custom/custom.c:
14784 Fix warnings. Use directory functions.
14787 Add prototype for diagram_redraw_all.
14789 * app/diaunitspinner.c:
14792 * app/preferences.c:
14796 Win32 doesn't have mkstemp and fchmod.
14798 * app/paginate_psprint.c:
14799 Win32 calls popen _popen and pclose _pclose.
14802 Win32 calls finite _finite.
14805 Win32 needs to dllexport the color vars.
14807 * objects/GRAFCET/step.c:
14808 * objects/chronogram/chronoref.c:
14809 snprintf -> g_snprintf
14811 2000-02-05 James Henstridge <james@daa.com.au>
14813 * lib/properties.c: more fixes so that it doesn't crash when using
14814 properties. The undo/redo stuff also works!!
14816 * objects/flowchart/box.c (box_{describe, get, set}_props): test
14817 object where I have implemented the new properties interface
14818 complete with automatic properties dialog generation.
14820 * lib/properties.c (object_apply_props): fixed stupid error when
14821 creating the old_props array. Also, it no longer frees the props
14822 array -- you will have to do that yourself.
14824 2000-02-04 James Henstridge <james@daa.com.au>
14826 * app/properties.c (properties_apply): pass object_part to
14829 * lib/object.h (ApplyPropertiesFunc): added widget argument.
14831 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
14832 created this way as well.
14834 * objects/*/*.c: ref and sink the properties dialog window for each
14835 widget. It can't rely on ref count being incremented by
14836 properties_show anymore.
14838 * app/properties.c (properties_show): don't ref the widget before
14839 removing it, or its ref count will increase each time you open the
14840 properties dialog. Don't unparent the widget, as container_remove
14843 * lib/object.h: fixed up prototypes for new object methods.
14845 * lib/properties.[ch]: added functions for automatically creating
14846 a properties dialog from the output of describe_props, get_props and
14848 (object_apply_props): apply properties and return an ObjectChange
14849 structure that can be used for undo.
14851 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
14853 * objects/GRAFCET/transition.c: minor leak plugged.
14855 * sheets/GRAFCET.sheet:
14856 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
14857 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
14859 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
14860 new ones (for condition.c).
14861 * objects/GRAFCET/action.c: added connection points for the conditions.
14862 * samples/grafcet.dia: updated the sample to improve conformance to
14863 IEC 848 and take advantage of dia's new features.
14865 * lib/geometry.h: (point_get_normed) fixed a typo.
14867 2000-02-02 James Henstridge <james@daa.com.au>
14869 * lib/object.h: added object functions describe_props, get_props and
14870 set_props. Do type definitions so that object.h doesn't need to
14871 include properties.h, since properties.h includes object.h.
14873 * lib/properties.[ch]: more hacking.
14875 * po/de.po: updated po file.
14877 2000-01-30 James Henstridge <james@daa.com.au>
14879 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
14880 check to see if the C compiler accepts the flag beforehand.
14882 * lib/properties.[ch]: start of properties code.
14884 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
14886 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
14888 * sheets/GRAFCET.sheet:
14889 * sheets/GRAFCET/etapemc.xpm: (NEW)
14890 * sheets/GRAFCET/etapesp.xpm: (NEW)
14891 * objects/GRAFCET/step.c: Added the macro and
14892 sub-program call step types.
14894 * objects/GRAFCET/receptivity.[ch]: renamed to
14895 objects/GRAFCET/boolequation.[ch].
14896 * objects/GRAFCET/transition.c: changed (Receptivity *) to
14899 * lib/connpoint_line.[ch]:
14900 * objects/chronogram/chronoline.c:
14901 * objects/chronogram/chronoref.c:
14902 * objects/GRAFCET/vergent.c:
14903 * objects/standard/line.c:
14904 * objects/SADT/box.c: Minor CPL interface changes, factored out the
14905 point count adjustment code into the CPL object.
14907 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
14909 * app/render_libart.c:
14910 Added support for images and bezier curves.
14911 Only text/fonts missing now.
14913 * app/render_gdk.c:
14914 Removed old erronous comment.
14916 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
14918 * objects/chronogram/chronoline_event.c: removed references to
14919 lround(). Please don't insist, I'm already red of shame.
14921 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
14923 * app/render_libart.[ch]:
14925 Non-finished libart renderer.
14928 Added HAVE_LIBART flag
14934 Call gdk_rbg_init().
14936 * app/connectionpoint_ops.c:
14937 * app/disp_callbacks.c:
14939 * app/handle_ops.c:
14941 * app/modify_tool.c:
14942 Change ddisp->renderer type from RendererGdk * to Renderer *
14943 Draw zoom and select rects in ddisp->canvas->window instead
14944 of ddisp->renderer->renderer->pixmap.
14946 * app/display.[ch]:
14947 Add aa_renderer to DDisplay, and support for it.
14948 New function ddisplay_set_renderer() for changing renderer.
14949 Add ddisplay_transform_coords_double() function, used by aa renderer.
14950 Change ddisp->renderer type from RendererGdk * to Renderer *
14953 Add antialias to menu.
14955 * app/commands.[ch]:
14956 add view_aa_callback function
14957 Change ddisp->renderer type from RendererGdk * to Renderer *
14959 * lib/geometry.[ch]:
14960 Added IntRectangle and int_rectangle_union.
14962 2000-01-28 James Henstridge <james@daa.com.au>
14964 * app/commands.h: removed prototypes.
14966 * app/commands.c: removed the functions that have been moved to
14969 * app/filedlg.h: added new prototypes.
14971 * app/filedlg.c (file_open_callback): move open dialog to this
14972 file. This implementation should remember the current directory
14973 between file loads.
14974 (file_save_as_callback): moved this dialog as well.
14975 (file_save_callback): moved this function here.
14977 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
14978 align page boundaries to the origin.
14980 * app/diagram.c (diagram_update_extents): redraw the diagram if the
14981 scaling factor changes while updating the extents. This is so the
14982 page breaks get redrawn correctly.
14984 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
14987 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
14988 For normal mode, use (0,0) as the origin. For `fit to' mode, use
14989 the corner of the bounding box.
14991 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
14992 into page setup dialog.
14993 (pagesetup_apply): apply new `fit to' attributes to the diagram.
14995 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
14996 (diagram_data_save): save `fit to' data.
14998 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
14999 (data_update_extents): when in `fit to' mode, update scale factor
15000 when we update the extents.
15002 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
15005 * .../.cvsignore: added some cvsignore files to quieten cvs.
15007 * app/pagesetup.c (pagesetup_changed): added code to change the
15008 scaling/fit to values as you change the options in the page setup
15009 dialog. I haven't added code so that the fit to options are saved
15012 * app/diapagelayout.[ch]: changed the scaling portion of the widget
15013 to make it easier to set a `fit to' style scaling factor.
15015 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
15016 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
15017 but connpoint_line-based, so that there's a connection point at the
15018 middle of each segment. Currently only the SADT arrow uses this.
15020 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
15022 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
15023 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
15024 saving and editing of properties (and default properties).
15025 See the new objects (GRAFCET, SADT, chonograms) for examples.
15026 For already too hairy stuff, see objects/chronogram/chronoline.c.
15028 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
15029 evenly spaced connection points, which the user can add or remove at
15030 will. An object can own several connection point lines. See the SADT
15031 Box, or the GRAFCET vergents for examples.
15033 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
15034 quiet about unused stuff.
15036 * objects/GRAFCET (NEW):
15037 * samples/grafcet.dia (NEW):
15038 Added support for GRAFCET charts.
15040 * objects/chronogram (NEW):
15041 * samples/chronograms.dia (NEW):
15042 Added support for chronograms (feature requested by Ronald L. Chichest;
15043 I found I'd use it often, too).
15045 * objects/standard/line.c: Replace the middle connectionpoint by
15046 a whole connection point line, which defaults to one point (hint,
15047 hint). New Line object menu to take advantage of this.
15048 "Bothwards" compatibility is preserved (although you may loose
15049 connections if you load a newer file in a older dia).
15051 * app/lineprops_area.c:
15053 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
15054 (feature requested by Benjamin Kahn).
15055 Merged in Steffen Macke's slashed arrow head type.
15057 * app/Makefile.am (app/run_dia.sh actually):
15058 Added $DEBUGGER in front of dia's invocation, so that
15059 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
15060 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
15061 "EFENCE=-lefence" to link with Electric Fence.
15063 * configure.in: Made gcc do more aggressive optimisations on i386, and
15066 2000-01-24 James Henstridge <james@daa.com.au>
15068 * lib/geometry.[ch]: added inline versions of functions. Used
15069 glib's G_INLINE_FUNC stuff, so it should still work on systems
15070 without inline funcs.
15072 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
15073 it outputs the correct element id for the ellipse objects.
15075 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
15077 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
15078 object_add_handle_at. Message typo fixed.
15080 * lib/sheet.c (load_register_sheet):
15081 potential bug fixed (warning hunt).
15083 * objects/custom/custom.c (custom_object_load): disabled an assertion
15084 which made dia abort upon failure to load a shape file. Fixed a
15087 * objects/custom/shape_info.c (load_shape_info): Made the custom
15088 shape load code ignore XML comments between <?xml ...?> and the
15089 root object (mostly useful to put the emacs magic comments).
15091 * app/load_save.c: Made dia do backup copies of files when saving,
15092 and complain in case of failure.
15094 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
15096 * AUTHORS: fixed my address (ISP thought it was a great idea to change
15101 * shapes/Contact/*:
15102 * sheets/Contact.sheet:
15103 * sheets/Makefile.am:
15104 Added support for Contact and LADDER charts.
15106 * dia.desktop: Added a French translation.
15108 2000-01-23 James Henstridge <james@daa.com.au>
15110 * app/commands.c (help_about_callback): don't die if can't load
15113 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
15114 out NaN's when performing bezier curve subdivision.
15116 * objects/custom/custom_object.c: initialise memory of Custom structs
15119 * app/render_svg.c (draw_image): added image support to the XML
15120 output filter. The image is just referenced, rather than being
15121 included inline, so if you copy the SVG file somewhere else, you
15122 may need to move the images or fix up the links.
15124 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
15125 so the text is not just displayed in black all the time.
15127 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
15129 * configure.in: fixed libpopt test so we wont try to build with
15132 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
15134 * configure.in: Added "uk" to ALL_LINGUAS.
15136 1999-12-24 James Henstridge <james@daa.com.au>
15138 * po/ru.po: updated russian translation from Valek Filippov.
15140 * app/render_svg.c (new_svg_renderer): make output use 19991203
15141 version of SVG DTD. Use viewBox to set the extents of the view.
15143 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
15144 ftp.gnome.org as the download.
15146 * TODO (TODO): weeded out completed todo items and added a few extra.
15148 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
15150 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
15151 be good to get rid of the object/shape distinction and separate
15152 the custom shape code out from the main application.
15154 * objects/custom/README, diagram.dtd: moved to new doc directory.
15155 Renamed the custom shapes README to custom-shapes. Also updated
15156 custom shape docs a bit and removed the section on sheet files, as
15157 that has changed a bit.
15159 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
15160 of the image data is larger than the maximum cell array. I should
15161 add code to break scan lines down further in this case, but for now
15162 an error message is better than an infinite loop.
15164 * app/filedlg.c (file_export_ok_callback): show a dialog if we
15165 couldn't determine the export filter to use.
15167 * app/commands.c (help_about_callback): fixed up about box logo
15168 expose bug. Now just use a GtkPixmap widget rather than a
15169 GtkDrawingArea and calling gdk_imlib_paste_image.
15171 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
15172 because automake does not always get things right.
15174 * configure.in: updated version number to 0.83.
15176 * app/preferences.c (prefs_save):
15177 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
15178 for fopen. Text is the default file mode anyway.
15180 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
15181 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
15182 * app/load_save.c (write_objects, write_connections):
15183 * app/filedlg.c (file_export_ok_callback):
15184 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
15185 * lib/dia_xml.c (data_add_point, data_add_rectangle):
15186 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
15187 snprintf to calls to g_snprintf.
15189 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
15190 as the picture name.
15192 1999-12-23 James Henstridge <james@daa.com.au>
15194 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
15195 negative numbers. This fixes the upside down text problem I was
15197 (draw_image): implemented the image code. It will try to split the
15198 image data up into bands if it is too big to fit into a single
15199 cgm cell array element. It will have problems if you try to insert
15200 an image wider than about 10,000 pixels though.
15202 * Makefile.am: use gnomedatadir for the files that need to be
15203 installed in gnome's datadir. This is mainly to help people doing
15204 packages for weird setups.
15206 1999-12-22 James Henstridge <james@daa.com.au>
15208 * plug-ins/cgm/cgm.c: added support for text. Now only images and
15209 beziers are left to do. The text seems to be the wrong way up
15210 still. This is probably a problem with character orientation
15211 element, but I have used what the settings given in the standard.
15212 Other than this, the CGMs dia produces are readable (and displayable)
15213 by ralcgm and corel draw.
15214 (draw_string): subtract from the X coord rather than the Y coord for
15215 center and right aligned text.
15217 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
15218 the size of a real number, and changed name of write_double to
15219 write_real. Consider changing to fixed real encoding. Also, now
15220 all element headers are correct. Once the real number encoding is
15221 fixed, only text, beziers and images are left to do.
15223 1999-12-21 James Henstridge <james@daa.com.au>
15225 * Makefile.am (SUBDIRS): recurse into plug-ins.
15227 * configure.in: add plug-ins directory makefiles to list.
15229 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
15230 not done yet. Also, the output files are not quite correct.
15232 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
15233 font. It doesn't work if you do.
15235 1999-12-20 James Henstridge <james@daa.com.au>
15237 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
15238 export the files. Instead, use filter_guess_export_filter to
15239 guess the correct format to save in and use the appropriate filter.
15240 It defaults to postscript for compatibility.
15242 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
15245 * app/commands.[ch]: removed export to eps functions.
15247 * app/menus.c: removed export to eps menu items.
15249 * app/app_procs.c: register new export filters.
15251 * app/load_save.[ch]: define dia native export filter.
15253 * app/render_eps.[ch]: define eps export filter.
15255 * lib/filter.h: added diafilename argument to the DiaExportFunc
15256 prototype. This is useful for putting the source of the diagram
15257 into the output file for instance.
15259 * app/app_procs.c (app_init): register the SVG export filter. Have
15260 to get EPS code converted to this API, and maybe also allow saving in
15261 DIA's native format from the export dialog. In fact, it is now
15262 possible to load an export filter from a shared library and it will
15263 integrate into the interface correctly.
15265 * app/menus.c: removed references to the SVG renderer.
15267 * app/commands.[ch]: removed svg stuff.
15269 * app/diagram.[ch]: removed diagram_export_to_svg function.
15271 * app/render_svg.[ch]: added a DiaExportFilter structure for this
15274 * app/filedlg.[ch]: code for the new export diagram dialog. Will
15275 probably move the open/save dialogs to this file as well.
15277 1999-12-19 James Henstridge <james@daa.com.au>
15279 * lib/filter.[ch]: start of interface for generalised handling of
15280 filters. I have only done code for export filters so far. I still
15281 need to do the gui for this, and convert the current SVG and EPS
15282 filters to the new API.
15284 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
15285 weren't setting the last handle correctly. It was actually assigning
15286 to the wrong position in the handles array, so the last handle was
15287 left as NULL, which caused the segfault.
15289 * objects/standard/image.c (image_copy): modified routine so that
15290 it just adds a reference to the DiaImage structure in the new image
15291 object. This seems to have cleared up the problems with copying
15294 * dia.spec: spec file additions from John Gotts.
15296 1999-12-12 James Henstridge <james@daa.com.au>
15298 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
15299 has not been released yet though.
15301 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
15304 The following based on a patch from Lars Clausen:
15306 * objects/standard/bezier.c (bezierline_move_handle): when performing
15307 the initial drag of the bezierline, move the control points to keep
15310 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
15311 make the new control points a bit closer to the major point.
15313 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
15314 as the reason for the move.
15315 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
15318 * lib/handle.h: new handle move reasons.
15320 1999-12-09 James Henstridge <james@daa.com.au>
15322 * dia.spec: include the new files in RPMs.
15324 * Makefile.am: install these new files.
15326 * dia.keys.in: file describing actions and icon for dia diagrams for
15327 use in the gnome file manager.
15329 * dia.mime: a file defining the application/x-dia-diagram mime type.
15331 * dia-diagram.png: an icon for dia diagrams.
15333 1999-12-08 James Henstridge <james@daa.com.au>
15335 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
15337 * plug-ins/python/pydia-display.[ch]: wrapper for display.
15339 * objects/standard/ellipse.c: applied Lars's patch to optionally not
15340 draw the background of the ellipse.
15342 * app/load_save.c (read_connections): do some sanity checking on the
15343 handle and connection point numbers before performing the object
15346 * lib/bezier_conn.c (bezierconn_load): give the correct number of
15347 handles when loading a BezierConn.
15349 1999-12-07 Kjartan Maraas <kmaraas@online.no>
15351 * sheets/*.sheet: Finished Norwegian translations.
15353 1999-12-07 James Henstridge <james@daa.com.au>
15355 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
15356 (PyDia_GetObjectType): find object type function.
15358 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
15359 method for diagrams.
15361 * plug-ins/python/pydia-object.c: added methods for DiaObject and
15364 * AUTHORS: added Lars and Cyrille to the authors file.
15366 * objects/standard/bezier.c (bezierline_add_segment_callback): place
15367 new point correctly.
15369 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
15371 * lib/bezier_conn.c: applied Lars's patch for placement of the new
15372 point when adding a segment to a BezierConn.
15374 1999-12-06 James Henstridge <james@daa.com.au>
15376 * plug-ins/python/test.py: test script for the python plug-in.
15378 * plug-ins/python/python.c: this file contains the plug-in startup
15379 code for the python plugin. Right now, it just initialises the
15380 dia module and executes a script.
15382 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
15384 * objects/standard/bezier.c (bezierline_draw): draw control lines for
15385 bezier curve if we are using an interactive renderer (ie. only if
15386 displaying to the screen).
15388 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
15389 to draw control lines on to a bezier curve. Based on implementation
15392 * objects/standard/bezier.c (bezierline_delete_segment_callback):
15393 calculate segment number using closest_segment rather than
15394 closest_handle. Sometimes the closest handle is part of a different
15396 (bezierline_draw): use correct size for start arrow.
15398 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
15399 * lib/geometry.c (distance_line_point): added notes to documentation
15401 * app/object_ops.c (object_list_align_v):
15402 (object_list_align_h): fix of by one error when calculating free space
15403 for equal distance alignment.
15404 * app/menus.c (objects_align_h, objects_align_v): include align
15405 adjacent menu items in the gnome version of the menus.
15406 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
15407 align adjacent menu items correctly.
15410 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
15413 * objects/standard/bezier.c: converted bezierline to use BezierConn.
15414 Still a few bugs. It crashes on deleting line segments.
15416 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
15418 1999-12-05 James Henstridge <james@daa.com.au>
15420 * lib/bezier_conn.[ch]: start of BezierConn object
15422 * app/interface.c: add bezierline to toolbox.
15424 * objects/standard/standard.c: initialise bezierline.
15426 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
15427 made a few modifications to get it working nicely. It still needs
15428 a bit of work though. Maybe create a BezierConn object in lib.
15430 1999-12-02 James Henstridge <james@daa.com.au>
15432 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
15434 * plug-ins/python/Makefile.am: tried building everything. It is
15435 building as a library at the moment. I will have to convert it
15436 to a libtool library and add some initialisation code.
15438 * plug-ins/python/diamodule.c: start of the dia module, using the
15439 other object wrappers. Not complete.
15441 1999-12-01 James Henstridge <james@daa.com.au>
15443 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
15444 the handles and connections attributes.
15446 * plug-ins/python/pydia-layer.c: added functions that use
15449 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
15451 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
15453 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
15454 I am currently wrapping the basic elements in the diagram in python
15455 objects -- nothing to see or play with yet.
15457 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
15461 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
15463 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
15467 Added russian translation from Valek Filippov <frob@df.ru>
15469 1999-11-24 James Henstridge <james@daa.com.au>
15472 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
15473 discussed with Alex. Also added extra makefiles so that make install
15476 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
15478 * app/preferences.[ch]:
15480 Added snap to grid preference.
15481 Patch from Michael Leslie <mles@springboardwireless.com>
15483 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15489 * objects/custom/shape_info.c:
15490 All strings returned by libxml must be freed with free, not
15491 g_free, or there will be problems if you use memory debugging
15494 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15496 * app/create_object.[ch]:
15499 * app/commands.[ch]:
15501 * app/interface.[ch]:
15502 Reverted the tool menu patch. It has some 'issues'.
15503 I liked it though, so it'll probably return.
15505 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
15507 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
15508 <bruce@cybersight.com> for some purify runs and analysis.
15509 Also a great thank you to Owen Taylor for creating MemProf, a
15510 free memory leak detector that was used to find and verify a
15511 lot of these fixes.
15514 * app/paginate_psprint.c:
15515 * app/render_eps.[ch]:
15516 * app/render_svg.[ch]:
15520 Don't add a reference to ddisp->shell. Why was this done in
15527 Free all strings returned from xmlGetProp
15529 * app/modify_tool.c:
15532 * objects/custom/custom.c:
15533 Use closedir() after opendir().
15535 * objects/custom/shape_info.c:
15536 User g_free() instead of "if (tmp) free(tmp)".
15539 Add newline at end of file.
15542 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
15544 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
15545 Adds tool menu and keyboard shortcuts.
15547 * app/create_object.[ch]:
15548 Use tool_set() instead of tool_reset().
15549 create_create_object_tool() takes extra type argument
15555 Moved tool_data here, export it.
15556 Add separate tool type for all create objects tools.
15557 new functions tool_set().
15560 New callback tool_set_callback.
15563 Moved some pixmaps to interface.c.
15566 Remove tool_data array (moved to tool.c).
15567 Use the tool_data from tool.c.
15568 Remove modify_tool_button global var.
15570 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
15572 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
15575 Interprets command-line arguments as files to open even when
15576 HAVE_POPT is not defined.
15579 Shift-clicking when zooming zooms out, like the Gimp.
15582 Has hotkeys for zoom-100% and snap-to-grid.
15584 1999-11-17 James Henstridge <james@daa.com.au>
15586 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
15587 that it is not jumpy.
15589 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
15591 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
15592 scrolling by pressing the shift key when using the scroll tool.
15594 * sheets/Makefile.am: fixed makefile so that install actually works
15595 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
15597 (SHEETS): install Circuit.sheet
15599 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
15600 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
15602 * sheets/Circuit.sheet:
15605 * sheets/Flowchart.sheet:
15606 * sheets/UML.sheet:
15607 * sheets/network.sheet:
15608 * sheets/sybase.sheet:
15611 * sheets/Circuit.sheet:
15612 added some missing French translations
15615 killed the temporary sheet namespace
15617 * objects/custom/custom.c:
15618 obsolete comment cleaned up
15620 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
15624 Added portugese translation from Pedro Morais
15625 <pmmm@rnl.ist.utl.pt>
15627 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
15629 Changed all sheets to be specified in xml.
15630 All sheet objects removed from the C code.
15631 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
15636 Updated version to 0.81cvs.
15639 Update run_dia.sh with sheet-dir.
15642 Load all sheets on startup.
15643 Create sheet directory first time.
15644 Don't call custom_register_sheets().
15647 Add sheetdir define
15650 Remove custom_register_sheets().
15653 Add sheet loading code.
15655 * sheet/Circuit.sheet:
15658 * sheet/Flowchart.sheet:
15660 * sheet/network.sheet:
15661 * sheet/sybase.sheet:
15664 * sheet/ER/weakentity.xpm:
15665 * sheet/UML/aggregation.xpm
15666 * sheet/UML/umlclass_template.xpm
15667 Added sheet pixmaps.
15668 These are moved from their old places.
15670 * sheet/.cvsignore:
15674 Removed sheet objects and sheet registration.
15676 * objects/ER/Makefile.am:
15677 * objects/ER/pixmaps/weakentity.xpm:
15678 * objects/UML/Makefile.am:
15679 * objects/UML/pixmaps/aggregation.xpm:
15680 * objects/UML/pixmaps/umlclass_template.xpm:
15681 Removed alternative pixmaps. (Moved to sheet).
15683 * objects/custom/Makefile.am:
15684 * objects/custom/load_sheet.[ch]:
15685 Removed old sheet loading code.
15687 * objects/custom/custom.c:
15688 Load all shapes instead of sheets.
15689 Removed custom_register_sheets().
15691 * objects/custom/custom_object.c:
15694 * objects/custom/shape_info.[ch]:
15695 Added shape_info_getbyname().
15697 * objects/flowchart/Makefile.am:
15698 * objects/flowchart/collate.shape
15699 * objects/flowchart/delay.shape
15700 * objects/flowchart/display.shape
15701 * objects/flowchart/document.shape
15702 * objects/flowchart/extract.shape
15703 * objects/flowchart/flowchart.c
15704 * objects/flowchart/intstorage.shape
15705 * objects/flowchart/magdisk.shape
15706 * objects/flowchart/magdrum.shape
15707 * objects/flowchart/magtape.shape
15708 * objects/flowchart/manualinput.shape
15709 * objects/flowchart/manualop.shape
15710 * objects/flowchart/merge.shape
15711 * objects/flowchart/offlinestore.shape
15712 * objects/flowchart/offpageconn.shape
15713 * objects/flowchart/or.shape
15714 * objects/flowchart/predefdproc.shape
15715 * objects/flowchart/preparation.shape
15716 * objects/flowchart/punchedcard.shape
15717 * objects/flowchart/punchedtape.shape
15718 * objects/flowchart/sort.shape
15719 * objects/flowchart/sumjunction.shape
15720 * objects/flowchart/terminal.shape
15721 * objects/flowchart/transaction.shape
15722 * objects/flowchart/transmittape.shape
15723 * objects/flowchart/pixmaps/collate.xpm
15724 * objects/flowchart/pixmaps/delay.xpm
15725 * objects/flowchart/pixmaps/display.xpm
15726 * objects/flowchart/pixmaps/document.xpm
15727 * objects/flowchart/pixmaps/extract.xpm
15728 * objects/flowchart/pixmaps/intstorage.xpm
15729 * objects/flowchart/pixmaps/magdisk.xpm
15730 * objects/flowchart/pixmaps/magdrum.xpm
15731 * objects/flowchart/pixmaps/magtape.xpm
15732 * objects/flowchart/pixmaps/manualinput.xpm
15733 * objects/flowchart/pixmaps/manualop.xpm
15734 * objects/flowchart/pixmaps/merge.xpm
15735 * objects/flowchart/pixmaps/offlinestore.xpm
15736 * objects/flowchart/pixmaps/offpageconn.xpm
15737 * objects/flowchart/pixmaps/or.xpm
15738 * objects/flowchart/pixmaps/predefdproc.xpm
15739 * objects/flowchart/pixmaps/preparation.xpm
15740 * objects/flowchart/pixmaps/punchedcard.xpm
15741 * objects/flowchart/pixmaps/punchedtape.xpm
15742 * objects/flowchart/pixmaps/sort.xpm
15743 * objects/flowchart/pixmaps/sumjunction.xpm
15744 * objects/flowchart/pixmaps/terminal.xpm
15745 * objects/flowchart/pixmaps/transaction.xpm
15746 * objects/flowchart/pixmaps/transmittape.xpm
15747 Moved shapes and their pixmaps to shapes/flowchart
15749 * shapes/Circuit/Makefile.am:
15750 * shapes/Circuit/index.sheet:
15751 Removed index.sheet.
15753 * shapes/Makefile.am:
15754 * shapes/flowchart/Makefile.am:
15755 * shapes/flowchart/*.shape:
15756 * shapes/flowchart/*.xpm:
15757 Added flowchart shapes. (Moved from objects/flowchart)
15760 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
15762 * app/app_procs.c: Fixed popt stuff.
15764 1999-11-01 James Henstridge <james@daa.com.au>
15766 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
15769 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
15773 Update version to 0.81.
15776 Update with news for 0.81.
15778 * shapes/Circuit/*:
15779 * shapes/Circuit_eu/*:
15780 Moved european circuit objects to Circuit sheet.
15782 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
15784 * lib/diagramdata.[ch]:
15785 Added layer_set_object_list() function.
15788 Added support for undo of reordered objects.
15789 Fix the undo of delete to keep the right order on undo.
15792 changed loop to object_add_updates_list() calls.
15793 Added undo support to bring to front/back.
15795 * app/disp_callbacks.c:
15796 * app/paginate_psprint.c:
15799 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
15801 This plugs some leaks. Thanks to
15802 Bruce Mitchener <bruce@cybersight.com> for running
15803 Dia through purify for me.
15806 Free displays and diagrams on exit.
15808 * app/modify_tool.c:
15809 Free gc when freeing tool.
15811 * lib/diagramdata.c:
15815 Free update and display lists when destroying display.
15817 * lib/diagramdata.c:
15818 Don't leak layer name.
15820 * objects/custom/load_sheet.c:
15821 * objects/custom/shape_info.c:
15822 Free loaded xml documents.
15824 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
15827 * app/object_ops.[ch]:
15828 Add undo handling to alignment ops.
15829 Based partially on patch by Dan Cohn <dan@internap.com>.
15831 * objects/standard/image.c (image_move_handle):
15832 Don't divide by zero for small images.
15833 Patch by Dan Cohn <dan@internap.com>.
15835 * objects/UML/class.c (umlclass_destroy):
15836 * objects/custom/custom_object.c (custom_destroy):
15837 Don't free connectionpoints before calling element_destroy
15838 which unconnects them.
15840 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
15842 * objects/custom/custom_object.c:
15843 Load and save padding too. Fixes strange load crashes.
15845 * app/group.c (group_destroy):
15846 Don't unconnect already freed connectionpoints when
15847 destroying group. Probably fixes bug reported by
15848 Elliot Lee <sopwith@redhat.com>.
15850 * app/render_gdk.c:
15851 Don't crash on zero-size (broken) bezier curves.
15852 Different sort of fix. This should work on closed bezier curves
15855 * objects/standard/textobj.c:
15856 Activate default properties dialog for Text objects.
15858 * app/render_eps.c:
15860 * app/preferences.c:
15861 * app/render_svg.c:
15862 fopen files in binary or text mode.
15864 1999-10-26 Alexander Larsson <alex@cendio.se>
15866 * app/render_gdk.c (bezier_add_lines):
15867 Don't crash on zero-size (broken) bezier curves.
15868 Fixes a crashing bug.
15870 1999-10-25 James Henstridge <james@daa.com.au>
15872 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
15873 before it is installed.
15875 * objects/flowchart/flowchart.c: use relative paths to find shapes.
15877 * objects/custom/custom.c (custom_object_load): take file names
15878 relative to $(pkgdatadir)/shape-internal, and check an environment
15879 variable for an alternative directory.
15881 * app/...: added copyright messages to the top of my new code.
15883 * app/paginate_psprint.c: some general clean ups. Also, give an error
15884 dialog if we can't open the command or output file for writing.
15886 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
15887 function so it would set orientation to landscape correctly.
15889 * app/paginate_psprint.c: use the paper settings that come with
15890 the diagram. Also implemented landscape printing.
15892 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
15895 * app/commands.[ch] (file_pagesetup_callback): added callback for
15896 the page setup dialog.
15898 * app/menus.c: added page setup menu item.
15900 * app/pagesetup.[ch]: implementation of the page setup dialog.
15902 * app/diapagelayout.[ch]: added accessors for the scaling factor.
15904 * app/load_save.c (diagram_load): load paper information from save
15906 (diagram_save): save the paper info.
15908 * lib/diagramdata.c (new_diagram_data): initialise paper info section
15909 of DiagramData structure.
15910 (diagram_data_destroy): free the paper name.
15912 * lib/diagramdata.h: added a paper member to the DiagramData structure
15913 that holds the page layout info for a diagram.
15915 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
15917 * objects/flowchart/box.c:
15918 * objects/flowchart/ellipse.c:
15919 * objects/flowchart/diamond.c:
15920 * objects/flowchart/parallelogram.c:
15921 Load and save padding too. Fixes strange load crashes.
15923 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
15925 * app/app_procs.c (name_is_lib):
15926 .dll, .sl and .so.0.0.0 are also libraries.
15928 1999-10-20 James Henstridge <james@daa.com.au>
15930 * configure.in: added extra makefile.
15932 * shapes/Circuit_eu/*: a new set of european circuit shapes from
15933 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
15934 (added fuses to makefile, fill the area of some of the components).
15936 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
15940 Add GDK_IMLIB_CFLAGS to includes.
15941 Changed --export-dynamic to -export-dynamic
15944 * objects/UML/message.c:
15945 Removed c++ comment.
15947 * lib/render_store.[ch]:
15948 Don't use empty structure. That is not Ansi C.
15950 1999-10-19 James Henstridge <james@daa.com.au>
15952 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
15953 the margin entries, as they allow interpretation of units.
15954 (paper_size_change): display the current page dimensions.
15956 * app/diaunitspinner.[ch]: a widget derived from the standard
15957 GtkSpinButton that tries to take units into account. So if you enter
15958 "1in" into the entry, it will convert it to 2.54cm.
15960 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
15963 Removed include of dlfcn.h
15965 1999-10-18 James Henstridge <james@daa.com.au>
15967 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
15968 bound on margin widths. It is set to the paper width/height.
15970 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
15971 routine for the diamond. This bug was found and fixed by Daniel Wang
15972 <danwang@CS.Princeton.EDU>
15974 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
15976 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
15977 remove warning (OS/2 version).
15979 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
15982 Put a pointer to objects/custom/README.
15984 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
15987 Updated version to 0.80
15990 Updated version to 0.80cvs
15992 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
15994 * Released Dia 0.80
15995 Tag called DIA_0_80
15997 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
16001 * objects/UML/Makefile.am
16002 * objects/ER/Makefile.am
16003 * objects/network/Makefile.am
16004 * objects/standard/Makefile.am
16005 * objects/FS/Makefile.am
16006 * objects/sybase/Makefile.am
16007 * objects/flowchart/Makefile.am
16008 * objects/custom/Makefile.am
16009 Added -I$(top_srcdir)/intl which is needed for
16010 --with-included-gettext.
16016 Updated swedish translation.
16018 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16021 Updated version number to 0.80.
16027 Updated. Moved bugs to KNOWN_BUGS.
16030 Updated with 0.80 release notes.
16032 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16035 For backwards compatibility, make sure handle 0 and 1 are the
16036 first and last handle. Fixes compatibility with 0.41, breaks
16037 compatibility with cvs version.
16038 Fixed bug in undo/redo of adding deleting endpoint segments
16039 when the endpoint was connected.
16040 Start OrthConn objects with three segments.
16042 1999-10-16 James Henstridge <james@daa.com.au>
16044 * objects/custom/custom_object.c (custom_update_data): changed
16045 resizing behaviour a bit so that shapes don't grow huge when you try
16046 to resize them to smaller than the size required by the text box.
16047 Also, now shapes will not grow with fixed aspect ratio when you enter
16048 text into them unless the shape has the fixed aspect ratio flag set.
16050 1999-10-15 James Henstridge <james@daa.com.au>
16052 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16054 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16056 * objects/flowchart/magdrum.shape:
16057 * objects/flowchart/offlinestore.shape:
16058 * objects/flowchart/punchedtape.shape:
16059 * objects/flowchart/transmittape.shape:
16060 * objects/flowchart/punchedcard.shape: new shapes.
16062 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16064 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16066 * objects/flowchart/collate.shape:
16067 * objects/flowchart/delay.shape:
16068 * objects/flowchart/extract.shape:
16069 * objects/flowchart/intstorage.shape:
16070 * objects/flowchart/magdisk.shape:
16071 * objects/flowchart/magtape.shape:
16072 * objects/flowchart/merge.shape:
16073 * objects/flowchart/or.shape:
16074 * objects/flowchart/sort.shape:
16075 * objects/flowchart/sumjunction.shape: new shapes.
16077 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
16081 Entering an erronous command as print command
16084 * app/paginate_psprint.c:
16085 Save all print dialog values for next time.
16088 Remove custom lib from DIA_LIB_PATH.
16090 1999-10-14 James Henstridge <james@daa.com.au>
16092 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16094 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16096 * objects/flowchart/offpageconn.shape:
16097 * objects/flowchart/manualop.shape:
16098 * objects/flowchart/preparation.shape:
16099 * objects/flowchart/manualinput.shape:
16100 * objects/flowchart/predefdproc.shape:
16101 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
16103 1999-10-13 James Henstridge <james@daa.com.au>
16105 * app/diapagelayout.[ch]: added accessors to paper information. The
16106 widget should be just about complete now.
16108 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
16109 It actually does something now.
16111 1999-10-12 James Henstridge <james@daa.com.au>
16113 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
16114 for the page layout widget.
16116 * app/diapagelayout.[ch]: start of page layout widget. Not actually
16117 built yet as it is not complete.
16119 * objects/flowchart/flowchart.c: added new shapes to sheet.
16121 * objects/flowchart/display.shape:
16122 * objects/flowchart/transaction.shape: new shapes.
16124 * AUTHORS: added my name to the spec file.
16126 * dia.spec: include the dia desktop entry to the spec file.
16128 * Makefile.am: install the dia.desktop file.
16130 * dia.desktop: added a gnome desktop entry so you can start dia
16131 from the gnome panel menu.
16133 1999-10-11 James Henstridge <james@daa.com.au>
16135 * objects/custom/custom_object.c:
16136 * objects/custom/shape_info.c: warning fixes.
16138 * objects/flowchart/document.shape: a shape file for the `document'
16141 * lib/custom.h: new header with the custom shape prototypes.
16143 * app/app_procs.c: register custom objects as well.
16144 (register_objects_in): close shared libraries if they don't load
16145 correctly, and call g_module_make_resident on libraries that load
16148 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
16150 * objects/custom/custom.c: removed get_version, added custom_ prefix
16151 to register_objects and register_sheets.
16153 * objects/custom/Makefile.am: converted to a normal library.
16155 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
16157 * app/lineprops_area.c:
16158 * app/render_svg.c:
16160 * objects/custom/shape_info.c:
16161 * objects/flowchart/box.c:
16162 * objects/flowchart/diamond.c:
16163 * objects/flowchart/ellipse.c:
16164 * objects/flowchart/parallelogram.c:
16165 * objects/network/flash.c:
16166 * objects/network/scead-plug.c:
16167 * objects/sybase/client.c:
16168 Removed -Wall warnings.
16170 * objects/network/bus.c:
16171 Removed unused functions.
16173 * objects/FS/flow-ortho.c:
16174 * objects/FS/flow-poly.c:
16175 * objects/FS/flow.c:
16176 * objects/FS/function.c:
16178 Implemented "non-implemented" undo for FS objects.
16179 Now at least it won't crash.
16181 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
16183 * objects/network/bus.c:
16185 Handles are now added and removed using the object menu.
16186 Default to 6 handles instead of 10.
16187 Changed name from "Standard - Bus" to "Network - Bus". Kept old
16188 name for backwards compatibility.
16190 * objects/network/network.c:
16191 Changed name from "Standard - Bus" to "Network - Bus". Kept old
16192 name for backwards compatibility.
16194 * app/properties.[ch]:
16196 Update properties in properties dialog if the shown object
16197 is part of and ObjectChange (undo or redo).
16200 Remove old known bugs list.
16202 * objects/UML/class_dialog.c:
16203 Removed debug printf's.
16205 1999-10-10 James Henstridge <james@daa.com.au>
16207 * objects/custom/custom.c (custom_object_load): new function that
16208 provides a nice entry point to the custom shape code for when it
16209 gets used by other libraries.
16211 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
16212 speeds builds up a bit.
16214 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
16215 (SUBDIRS): do not descend into pixmaps subdirs.
16217 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
16218 This speeds up build process.
16220 * objects/custom/custom.c (sheets): made variable static.
16222 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
16225 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
16227 * objects/custom/custom.c: look in ~/.shapes instead of
16228 ~/.dia_shapes as the per-user shapes directory.
16230 * app/preferences.c (prefs_save): save config to ~/.diarc.
16231 (prefs_load): load configuration from ~/.diarc. If the file
16232 does not exist, fallback on the old ~/.diarc location.
16234 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
16236 (register_all_objects): look for user specific objects in
16237 ~/.objects rather than ~/.dia_libs.
16239 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
16243 * objects/flowchart/box.c
16244 * objects/flowchart/ellipse.c
16245 * objects/flowchart/flowchart.c
16246 Use gmodule for dynamic linking. As gmodule is using
16247 RTLD_GLOBAL i had to change flowchart box and ellipse
16248 so the typenames doesn't conflict with the standard
16253 Use button box to make dialogs look better.
16255 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
16257 * objects/UML/class_dialog.c:
16258 * objects/UML/class.h:
16259 Implemented undo for "UML - Class" objects.
16260 Not 100% tested yet.
16262 * objects/UML/classicon.c:
16263 * objects/UML/constraint.c:
16264 * objects/UML/dependency.c:
16265 * objects/UML/generalization.c:
16266 * objects/UML/implements.c:
16267 * objects/UML/large_package.c:
16268 * objects/UML/lifeline.c:
16269 * objects/UML/message.c:
16270 * objects/UML/object.c:
16271 * objects/UML/realizes.c:
16272 * objects/UML/state.c:
16273 * objects/UML/usecase.c:
16276 * lib/connectionpoint.h:
16279 1999-10-09 James Henstridge <james@daa.com.au>
16281 * objects/custom/*.[ch]: added copyright notices to custom object
16284 * shapes/Circuit/hdiode.shape:
16285 * shapes/Circuit/hzener.shape:
16286 * shapes/Circuit/opamp.shape:
16287 * shapes/Circuit/vdiode.shape:
16288 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
16289 shapes look nice after the custom shape code changes.
16291 * objects/custom/README: updated docs to cover changes to drawing
16294 * objects/custom/custom_object.c (custom_draw): honour the line
16295 properties when drawing the shape.
16297 * objects/custom/shape_info.[ch]: added support for setting line
16298 properties for individual drawing elements in a custom shape. You
16299 can set the dash style, dash length, cap style and join style.
16301 1999-10-07 James Henstridge <james@daa.com.au>
16303 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
16304 for foreground and background.
16306 * objects/custom/custom_object.c (custom_draw): use the new style
16307 information when drawing the object.
16309 * objects/custom/shape_info.[ch]: store all shape style info in the
16310 GraphicStyle structure. This makes adding support for extra CSS
16311 attributes easier -- we don't have to keep adding extra arguments to
16312 a lot of functions.
16314 1999-10-05 James Henstridge <james@daa.com.au>
16316 * lib/intl.c (unalias_lang): merged in changes from the i18n code
16317 swiped from gnome-libs.
16319 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
16321 * objects/standard/image.c (get_directory):
16322 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
16324 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
16326 * lib/poly_conn.c (polyconn_destroy):
16327 Fix bug. Access of freed memory.
16328 Rememeber, you can't free the handles of an object
16329 before calling object_destroy(), as it unconnects the handles
16330 therefore referencing them.
16332 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
16335 undo_clear() didn't set stack->depth to zero.
16336 This made other undo functions crash after this had been called
16340 Slightly modified by Chris Love <clove@exactis.com>
16342 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
16344 * objects/UML/class.h:
16345 * objects/UML/class_dialog.c:
16346 Retrun NULL ObjectChange on class property change.
16347 This means no crashes, but "UML - Class" doesn't support undo yet.
16349 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
16354 * objects/UML/classicon.c:
16355 * objects/UML/dependency.c:
16356 * objects/UML/generalization.c:
16357 * objects/UML/implements.c:
16358 * objects/UML/large_package.c:
16359 * objects/UML/lifeline.c:
16360 * objects/UML/message.c:
16361 * objects/UML/object.c:
16362 * objects/UML/realizes.c:
16363 * objects/UML/state.c:
16364 * objects/UML/usecase.c:
16365 Update to new undo (w. get/set_state).
16366 Add object menu to add/delete segments.
16368 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
16371 Add equal distance alignment.
16373 * app/object_ops.c:
16374 Add equal distance alignment.
16375 Fix bug in adjacent alignment.
16377 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
16379 * objects/UML/constraint.c:
16380 Update to new undo (w. get/set_state).
16382 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
16384 * app/paginate_psprint.c:
16385 Save (parts, more todo) of the info in the print dialog to the
16386 next time it's opened.
16387 Patch from Yo Ric Dude <ricdude@toad.net>
16389 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
16392 Updated version string to 0.41cvs.
16394 * objects/UML/assocition.c:
16395 Update to new undo (w. get/set_state).
16396 Add object menu to add/delete segments.
16399 Added function debug_break() and called it after all
16400 objects and sheets are loaded. Place a breakpoint here if you
16401 want to debug objects. All symbols should be loaded.
16403 1999-09-12 James Henstridge <james@daa.com.au>
16405 * app/menus.c (display_menu_items): added print menu item.
16406 (filemenu): always add print menu item -- even if gnome-print is
16409 * app/commands.h, app/commands.c (file_print_callback): the print
16410 menu item is now available for both gnome-print and non gnome-print
16413 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
16414 print with the non gnome-print driver.
16416 1999-09-11 James Henstridge <james@daa.com.au>
16418 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
16419 printer dialog code out of commands.c.
16421 * app/paginate_psprint.c: new file containing the pagination code for
16424 * app/render_eps.c: made a few modifications so as well as producing
16425 EPS files, this renderer can be set up to do postscript printing.
16426 This basically entailed adding an extra function to create a RenderEPS
16427 renderer which did not bother setting the viewport for the document.
16428 That was left for the pagination code.
16430 1999-09-10 James Henstridge <james@daa.com.au>
16432 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
16433 gnome-print does not support elliptic arcs at the moment, approximate
16434 the ellipse with eight bezier curves. This gives a pretty good
16435 match to a true ellipse.
16437 1999-09-09 James Henstridge <james@daa.com.au>
16439 * app/commands.c (file_gnome_print_callback): added support for
16440 scaling the diagram. Also fixed a few other bugs.
16442 * app/paginate_gnomeprint.c (print_page): added ability to scale
16443 document. Fixed up test to see if the page has no objects on it.
16444 This should prevent some blank pages being printed. Non square
16445 objects such as lines could still cause problems.
16447 1999-09-08 James Henstridge <james@daa.com.au>
16449 * app/commands.c (file_gnome_print_callback): changed from using the
16450 standard printer selection dialog to one that also has a paper size
16453 * commands.[ch]: added callbacks for the print menu item. Currently
16454 it only does A4 output. I will make it configurable soon.
16456 * app/menus.c: add a print diagram menu item if gnome-print support
16459 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
16460 bit higher level than the gnome-print renderer. It splits the
16461 diagram into page size chunks and then renders them. For each
16462 page, it only renders the objects whose bounding box intersects
16463 the page, and it sets the clip mask so that the diagram does not
16464 overlap the margins.
16466 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
16467 that uses gnome-print as its back end.
16469 * configure.in: added a check for gnome-print. It is disabled by
16470 default because the code is not really working correctly yet.
16472 * app/menus.c: the delete object menu item was missing from the
16473 GnomeUIInfo style menus.
16475 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
16478 Added japanese to ALL_LINGUAS.
16479 Fix for Linux on Alpha.
16481 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
16483 * app/create_object.c (create_object_button_press):
16484 Always initialize tool->obj. Otherwise we store a null
16485 in the undo Change.
16488 Set linestyle before drawing cursor.
16489 Fix undo of backwards delete.
16491 1999-09-05 James Henstridge <james@daa.com.au>
16493 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
16495 * app/render_svg.c (draw_image): some fixes so that the appropriate
16496 style attributes are set. Before it was setting line styles on
16497 fill_* functions. Now it only does this for the draw_* variants.
16499 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
16500 variable so that custom shapes can be loaded.
16502 * shapes/: new directory for custom shapes. The Circuit sheet has
16505 1999-09-02 James Henstridge <james@daa.com.au>
16507 * TODO: removed a few todo items that have been implemented.
16509 * app/interface.c (create_sheets): enabled the popup page menu to the
16510 notebook. This can make it easier to select different sheets.
16512 * object/custom/Circuit/: added diode, zener diode, ground point and
16513 operational amplifier shapes.
16515 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
16516 if you want the output.
16518 * objects/custom/shape_info.c (parse_path): same here.
16520 * objects/custom/load_sheet.c (load_with_readdir): don't print so
16521 much debugging output. To get the previous level of output, define
16524 * objects/custom/shape_info.c (parse_svg_node): polygons were being
16525 recorded as polylines in the ShapeInfo structure.
16527 * objects/custom/README: some notes on writing new custom shapes.
16529 1999-09-01 James Henstridge <james@daa.com.au>
16531 * objects/custom/Circuit/hinductor.*:
16532 * objects/custom/Circuit/vinductor.*: added inductor shapes that
16533 also test out the bezier curve and SVG path support.
16535 * objects/custom/custom_object.c (custom_draw): added support for
16536 drawing bezier paths and filled shapes.
16538 * objects/custom/shape_info.c (parse_path): new function to parse
16539 SVG path elements. It does not do quadratic beziers or elliptic
16540 arcs though. Only moves, lines and cubic beziers.
16541 (*): added support for paths.
16543 1999-08-31 James Henstridge <james@daa.com.au>
16545 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
16547 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
16550 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
16553 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
16556 * lib/render_store.[ch]: use newer bezier functions.
16558 * lib/render.h: changed the bezier drawing functions to use an array
16559 of BezPoint structures instead of normal Point structures to allow
16560 lineto's mixed in with the curveto's.
16562 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
16564 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
16565 xpm images for different shapes to Makefile.
16567 * objects/custom/custom_object.c (custom_object_new): set the icon
16568 for the sheet button if there is one. Otherwise fall back on the
16569 default custom object icon.
16571 * objects/custom/shape_info.c (load_shape_info): read the sheet
16572 icon name from the shape file.
16574 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
16575 check the pixmap_file field for the name of a pixmap file to load
16578 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
16579 at the end of the structure, and it isn't used if the pixmap field
16580 is non NULL, so it should not break binary compatibility.
16582 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
16583 added support for the use of an index.sheet file so you can specify
16584 the ordering of the shapes in the sheet, and also internationalise
16585 the sheet name and actually be able to give a description. The old
16586 readdir based sheet loading code acts as a fallback if an index.sheet
16587 file can not be found.
16589 * objects/custom/custom_util.[ch]: new file containing useful routines
16590 needed by the custom object code. Currently only contains a simple
16591 routine for resolving relative paths.
16593 * objects/custom/custom_object.c (custom_draw): fixed problem with
16594 drawing rectangles if the shape has been flipped.
16596 1999-08-30 James Henstridge <james@daa.com.au>
16598 * objects/custom/custom_object.c (custom_get_object_menu): allow
16599 flipping of custom shapes. This uses the miggle click object
16602 * objects/custom/Circuit/npn.shape: fix aspect ratio.
16604 * objects/custom/custom_object.c (custom_update_data): honour the
16605 aspect ratio constraints.
16607 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
16608 tag parsing, so you can specify a free, fixed or a range for aspect
16609 ratios for the shape.
16611 1999-08-29 James Henstridge <james@daa.com.au>
16613 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
16614 up shape namespace tag.
16616 * objects/custom/shape_info.c (load_shape_info): check xml:lang
16617 attribute on <description> elements to support i18n for custom
16618 shape descriptions.
16619 Also changed the shape namespace for custom shapes to something
16620 a little more sensible.
16622 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
16624 * lib/intl.c: new file containing some functions for i18n stuff.
16626 * app/layer_dialog.c (create_button_box): fixed a warning.
16628 * objects/custom/custom_object.c: use current line style. Save dash
16631 * objects/flowchart/diamond.c: use current line style. Save dash
16634 * objects/flowchart/parallelogram.c: use current line style. Save
16637 * objects/flowchart/ellipse.c: use current line style. Save dash
16640 * objects/flowchart/box.c: use current line style. Save dash length.
16642 * objects/standard/ellipse.c: make ellipse use current line style.
16644 * objects/standard/box.c: use the line style set in the toolbox for
16645 new boxes, and remember the dash length.
16647 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
16650 1999-08-24 James Henstridge <james@daa.com.au>
16652 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
16653 to try to stop ellipse to get infinite width/height when we resize,
16654 while trying to keep the text inside the ellipse.
16656 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
16657 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
16658 resizing behaviour, so that you can't push objects round the screen
16659 with the resize handles.
16661 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
16662 get the OK buttons in the dialogs to take default clicks.
16664 * objects/custom/custom_object.c: added code so that resizing the
16665 shape does not end up pushing it round the screen.
16667 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
16669 * app/display.[ch]:
16670 Generate rectangle with the union of the damaged regions.
16671 This is used to optimize the grid paint and the object rendering.
16672 display_render_pixmap passes this info to grid_draw() and data_render().
16675 grid_draw doesn't draw grid lines outside of damaged rectangle.
16676 Sets dashlength when drawing non-solid grid.
16678 * lib/diagramdata.[ch]:
16679 data_render() and layer_render() takes an optional damaged rectangle
16680 argument. No objects not intersecting this are drawn.
16684 Call data_render with NULL update rectangle.
16686 1999-08-23 James Henstridge <james@daa.com.au>
16688 * objects/custom/custom_object.c (custom_update_data): if the aspect
16689 ratio is fixed, make sure the shape is not distorted.
16691 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
16692 a <fixaspectratio/> tag is given in the shape file.
16694 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
16695 added support for stroke-width, stroke and fill CSS attributes
16696 specified in style attributes of the SVG elements. The line width
16697 is relative to the user specified line width. The stroke and fill
16698 attributes can only be used to swap the foreground/background
16701 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
16702 sensitivity on the dash length selector when this function is called.
16704 * objects/standard/arc.c: same. Also handle dash length.
16705 * objects/standard/zigzagline.c: same.
16706 * objects/standard/polyline.c: same. Also handle dash length.
16707 * objects/standard/line.c: use default arrow/line styles.
16709 * app/interface.c: added callbacks to set the default attributes.
16711 * lib/attributes.c: added implementations of these functions.
16713 * lib/attributes.h: added extra prototypes for the new line properties
16714 area in the toolbox.
16716 * app/interface.c (create_lineprops_area): added line properties
16717 area to bottom of toolbox.
16719 * app/lineprops_area.h: a header exporting a few routines of the
16720 line properties area widgets.
16722 * app/lineprops_area.c: new file containing a selector for arrows
16723 and line styles to go in the main toolbox.
16725 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
16728 Update Gtk+ 1.0.5 comment to 1.2.0.
16737 Make sure we don't propagate -ldl and -lpopt to all LIBS
16738 by adding new var APP_LIBS that only app/dia links with.
16741 Update run_dia.sh to load custom and flowchart objects.
16743 * objects/ER/Makefile.am:
16744 * objects/FS/Makefile.am:
16745 * objects/UML/Makefile.am:
16746 * objects/network/Makefile.am:
16747 * objects/standard/Makefile.am:
16748 * objects/sybase/Makefile.am:
16749 Don't build versioned libs.
16751 1999-08-22 James Henstridge <james@daa.com.au>
16753 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
16756 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
16757 should actually work a bit now.
16759 * objects/custom/Circuit/*: a test sheet for the custom shape code.
16760 It is a small collection of circuit elements.
16762 * objects/custom/shape_info.c: fixed up loading of polylines and
16763 polygons. Before it was removing negative signs :(
16765 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
16766 placeholder was here before. I still need to work out how to set
16767 icons for individual custom shapes.
16769 * objects/custom/custom.c: added code to load the shapes into sheets
16770 properly. The shape files should be arranged into directories, and
16771 each directory represents a different sheet in the toolbox. This
16772 will make it very easy to distribute a collection of dia shapes as
16773 a tarball. I still need to work out internationalisation, and maybe
16774 also shape ordering in the sheet.
16776 * objects/custom/custom_object.c: fixed up dialogs for these objects.
16777 (custom_create): fix for objects without text areas.
16779 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
16780 and saving of custom object works correctly now.
16782 1999-08-21 James Henstridge <james@daa.com.au>
16784 * objects/flowchart/ellipse.c:
16785 * objects/flowchart/diamond.c:
16786 * objects/flowchart/parallelogram.c:
16787 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
16788 copying or loading these object types. Not all the connection
16789 points would be initialised correctly.
16791 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
16794 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
16795 build a versioned library. It will only ever be dlopen'd, so this
16798 * objects/custom/custom_object.c (custom_distance_from): allow
16799 selecting the object by clicking on the text. This fixes problems
16800 where the text box is outside the graphic.
16802 * objects/custom/shape_info.c (load_shape_info): fixed up reading
16803 of connections points. It should be possible to add connections
16804 to custom objects now.
16806 * objects/custom/custom_object.c (custom_update_data): fixed resizing
16807 due to changes to text.
16809 * configure.in: added extra makefiles.
16811 * objects/custom/shape_info.[ch]:
16812 * objects/custom/custom_object.c:
16813 * objects/custom/custom.c: the starts of custom shape support in dia.
16814 This is not built by default at the moment, since it is not quite
16815 complete. When it is, it will let you create more shapes for dia
16816 without writing a line of C. Its implementation includes buzzwords
16817 such as XML and SVG, so it must be good :)
16819 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
16821 * app/app_procs.c (app_exit): Use button labels "Quit" and
16822 "Cancel" instead of "Yes" and "No".
16823 Set default action to "Cancel" instead of "Quit".
16825 1999-08-19 James Henstridge <james@daa.com.au>
16827 * objects/flowchart/flowchart.c: added ellipse object.
16829 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
16831 1999-08-18 James Henstridge <james@daa.com.au>d
16833 * app/color_area.c (color_area_edit): small fix to prevent dia from
16834 segfaulting when you try to change the default foreground/background.
16836 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
16838 * app/diagram.[ch] (diagram_redraw_all):
16839 Added function that redraws all diagrams.
16841 * app/preferences.c (prefs_apply):
16842 Call diagram_redraw_all when prefs are changed.
16844 * app/render_svg.c:
16845 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
16846 older libxml's, and the old version works good enought here.
16848 1999-08-17 James Henstridge <james@daa.com.au>
16850 * lib/widgets.c: changed handlers that were connected to the GtkButton
16851 "pressed" signal to connect to the "clicked" signal. This removes the
16852 problem where dialogs are inactive until you click a mouse button
16853 after using a colour selector.
16855 * configure.in: added extra makefiles to AC_OUTPUT list.
16857 * objects/Makefile.am (SUBDIRS): added flowchart module
16859 * objects/flowchart/*: a collection of shapes for use in flowcharts.
16861 * app/color_area.c (color_area_events): similar here.
16863 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
16864 event is recieved with event->width == 0, which causes a warning if we
16865 try to create a pixmap of that width.
16867 * app/preferences.c, app/preferences.h, app/grid.c: added code to
16868 allow you to configure the colour of the grid, and also lets you
16869 set the grid to use dotted lines instead of solid ones.
16871 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
16872 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
16874 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
16875 export filter. It is not quite complete, but for most shapes it
16876 works as expected. Fonts still need a bit of work.
16878 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
16880 * configure.in: Added "en_GB" to ALL_LINGUAS.
16882 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
16885 Added Undo and Redo to GNOME menus.
16887 * objects/ER/attribute.c:
16888 * objects/ER/entity.c:
16889 * objects/ER/participation.c:
16890 * objects/ER/relationship.c:
16891 Added get/set_state functions.
16893 * objects/ER/participation.c:
16894 Added add/delete segment.
16897 Updated Swedish translation.
16899 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
16901 * app/preferences.[hc]:
16902 Added undo_depth pref.
16905 Never grow stack larger than pref.undo_depth.
16906 undo_depth == 0 means unlimited.
16907 Converted printfs to conditionally compiled DEBUG_PRINTFs.
16909 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
16914 * lib/render_object.c:
16915 * objects/ER/attribute.c:
16916 * objects/ER/entity.c:
16917 * objects/ER/participation.c:
16918 * objects/ER/relationship.c:
16919 * objects/FS/flow-ortho.c:
16920 * objects/FS/flow-poly.c:
16921 * objects/FS/flow.c:
16922 * objects/FS/function.c:
16923 * objects/UML/actor.c:
16924 * objects/UML/association.c:
16925 * objects/UML/class.c:
16926 * objects/UML/classicon.c:
16927 * objects/UML/component.c:
16928 * objects/UML/constraint.c:
16929 * objects/UML/dependency.c:
16930 * objects/UML/generalization.c:
16931 * objects/UML/implements.c:
16932 * objects/UML/large_package.c:
16933 * objects/UML/lifeline.c:
16934 * objects/UML/message.c:
16935 * objects/UML/note.c:
16936 * objects/UML/object.c:
16937 * objects/UML/realizes.c:
16938 * objects/UML/small_package.c:
16939 * objects/UML/state.c:
16940 * objects/UML/usecase.c:
16941 * objects/network/bus.c:
16942 * objects/standard/arc.c:
16943 * objects/standard/box.c:
16944 * objects/standard/ellipse.c:
16945 * objects/standard/image.c:
16946 * objects/standard/line.c:
16947 * objects/standard/polyline.c:
16948 * objects/standard/textobj.c:
16949 * objects/standard/zigzagline.c:
16950 Removed all traces of is_empty(). It doesn't work in an
16953 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
16958 Undoable grouping and ungrouping.
16960 * app/layer_dialog.c:
16961 * lib/diagramdata.[ch]:
16962 Undoable layer ops.
16964 * app/modify_tool.c:
16965 Undoable unconnect on handle move.
16967 * lib/orth_conn.[ch]:
16968 Working undoable add/remove segment.
16969 Removed endpoint_handles from OrthConn, renamed
16970 midpoint_handles to handles and put the endpoint
16973 * objects/standard/zigzagline.c:
16974 * objects/ER/participation.c:
16975 * objects/UML/association.c:
16976 * objects/UML/dependency.c:
16977 * objects/UML/generalization.c:
16978 * objects/UML/realizes.c:
16979 Update for the changes in OrthConn
16981 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
16983 * configure.in: Added "de" to ALL_LINGUAS.
16985 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
16997 Don't have the <Display> etc part of the menu strings
16998 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17001 Don't have the <Display> etc part of the menu strings
17002 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17003 Don't remove is_empty() objects, that don't work with undo.
17005 * lib/objchange.[ch]:
17007 Definition of ObjectChange. This is essentially an Change
17008 exported to the object libs. It encapsulates a change made
17009 to an objects internals. It can be applied, reverted and freed.
17010 There are also utility functions for doing ObjectChanges that
17011 only get/set the whole state of an object to store the change.
17012 This cannot be used when the object change deletes or adds a
17013 object which has references from other objects, eg. Handles which
17014 might be connected.
17017 Added objchange.c and objchange.h.
17020 Return NULL when loading fails.
17023 Menu callbacks return an ObjectChange.
17026 Reference objchange.o
17029 Key events return ObjectChange if they modify the object.
17033 Added object_add_handle_at() function.
17034 Apply properties returns an ObjectChange.
17035 Remove ObjectState and the get/set state functions, these
17036 don't always work. Use the new ObjectChange instead.
17039 Added object_add_handle_at() function implementation.
17041 * lib/orth_conn.[ch]:
17042 Use ObjectChange. Not finished yet.
17043 Removed get/set/free state functions
17045 * lib/poly_conn.[ch]:
17047 Don't remove segments that are small.
17048 Removed get/set/free state functions
17052 Added functions to get/set all text attributes.
17054 * objects/standard/arc.c:
17055 * objects/standard/box.c:
17056 * objects/standard/ellipse.c:
17057 * objects/standard/image.c:
17058 * objects/standard/line.c:
17059 * objects/standard/polyline.c:
17060 * objects/standard/textobj.c:
17061 * objects/standard/zigzagline.c:
17063 fixed bug in image_set_state.
17064 zigzagline.c not finished yet.
17066 * app/disp_callbacks.c:
17067 Use ObjectChange that are returned from menu callbacks and
17068 key_events for undo.
17070 * app/properties.c:
17071 Use ObjectChange that are returned from properties apply
17076 New undo type: ObjectChangeChange. This wraps a change to the
17077 internals of an object (and ObjectChange) in code that does
17078 app specific stuff (object_add_updates etc.)
17080 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
17082 * lib/orth_conn.[ch]:
17083 Added code for add/delete segment.
17085 * objects/standard/zigzagline.c:
17086 Use the new orth_conn code.
17089 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
17091 * objects/FS/Makefile.am
17092 Removed fs.h from sources.
17098 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
17100 * app/disp_callbacks.c (ddisplay_canvas_events):
17101 Fix for bug. Every other arrow-key press got lost.
17102 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
17105 change automake.sh to autogen.sh
17107 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
17110 Don't remove 'empty' objects.
17111 This violent destruction of objects won't work
17112 with the new undo framework.
17114 * app/disp_callbacks.c:
17115 Save undo info for object menu calls and key_events.
17117 * app/properties.c:
17118 Save undo info on properties apply.
17120 * lib/dia_image.[ch]:
17121 Add refcounting for images.
17123 * app/render_eps.c:
17124 * app/render_gdk.c:
17126 DiaImage * -> DiaImage
17129 Add undo functions for object state changes.
17133 change of semntics for focus->key_event.
17134 Now returns TRUE if the object recieving the event
17140 * lib/orth_conn.[ch]:
17141 Don't automatically create and delete segments when
17142 handles are moved. This is incompatible with undo.
17143 Added state get, set and free functions.
17145 * lib/orth_conn.[ch]:
17146 Added state get, set and free functions.
17148 * objects/UML/object.c:
17149 * objects/UML/uml.c:
17150 Fixed typo "UML - Objet" -> "UML - Object".
17151 Saved old for backwards compatibility.
17153 * objects/standard/arc.c:
17154 * objects/standard/box.c:
17155 * objects/standard/ellipse.c:
17156 * objects/standard/image.c:
17157 * objects/standard/line.c:
17158 * objects/standard/polyline.c:
17159 * objects/standard/textobj.c:
17160 * objects/standard/zigzagline.c:
17161 Added get/set state functions.
17162 Textobj has a redo crash-bug.
17163 Zigzagline needs object menus to add segments.
17166 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
17168 * app/render_eps.c (set_dashlength):
17169 Don't generate eps files with zero dash-length.
17171 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
17174 * app/create_object.c:
17176 Finished undo for create and paste.
17179 Started properties undo.
17181 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
17184 Added resizeable groups.
17187 Removed unused variable.
17191 Undo/redo for cut/delete done.
17193 * app/create_object.c:
17194 * app/modify_tool.c:
17195 * lib/diagramdata.[ch]:
17196 * app/diagram.[ch]:
17197 renamed diagram_add_selected -> diagram_select
17198 renamed diagram_remove_selected -> diagram_unselect
17200 * app/properties.[ch]:
17201 Added properties_hide_if_shown() function.
17203 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
17209 * app/commands.[ch]
17210 * app/modify_tool.[ch]
17211 * app/object_ops.[ch]
17212 * app/connectionpoint_ops.c
17214 Use undo functions.
17215 WARNING: Not finished. Will break.
17216 Finished: move object, move handle.
17219 Added diagram_selected_break_external() function.
17220 It removes all connections between selected objects
17222 Add undo stack to Diagram.
17224 * lib/diagramdata.[ch]
17225 Added layer_remove_objects() function
17227 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
17229 * objects/FS/Makefile.am
17230 * objects/sybase/Makefile.am
17231 Now uses GNOME_CFLAGS.
17234 Now compiles with GNOME even if popt.h isn't available.
17236 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
17239 * objects/Makefile.am
17241 First version of sybase objects from
17242 Brian Bruns <camber@umcc.ais.org>
17244 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
17247 Added fr to ALL_LINGUAS
17249 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
17253 Popt-code is activated if popt is available.
17255 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
17257 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
17259 * lib/orth_conn.[ch]:
17260 Added orthconn_get_middle_handle()
17263 Added text_set_cursor_at_end()
17266 Added first version of functions structure diagrams.
17268 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
17270 * app/modify_tool.c:
17271 Include math.h to remove warning.
17273 * app/commands.c (dialogs_properties_callback):
17274 Bring up correct properties dialog when selected
17276 From Dan Cohn <dan@internap.com>
17278 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
17280 Patch from Lars R. Clausen
17282 * app/modify_tool.c:
17283 Changed abs to fabs.
17285 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
17291 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
17293 Patches from Dan Cohn <dan@internap.com>
17295 * app/commands.[ch]:
17296 * app/display.[ch]:
17298 * app/preferences.[ch]:
17299 Implements ability to turn on/off connection points in
17300 current drawing and in global prefs.
17302 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
17304 * lib/widgets.c (dia_line_style_selector_init):
17307 * lib/diagramdata.c (layer_update_extents):
17308 Fixed uninitialized variable error.
17310 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
17313 Made some changes to the gdk_imlib visual+colormap setup.
17315 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17317 * objects/UML/usecase.c:
17318 * objects/UML/lifeline.c
17321 * objects/UML/object.c:
17322 * objects/UML/message.c:
17323 Changed font from Courier to Helvetica.
17327 Added dash lenth to the LineStyle widget.
17329 * objects/standard/ellipse.c :
17330 * objects/standard/zigzagline.c:
17331 * objects/standard/line.c:
17332 Added dash lenght property.
17334 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
17336 * app/render_eps.c:
17337 First shot at latin1 encoded eps files.
17338 Works, but the eps files get a bit large.
17340 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
17342 * objects/UML/class.[ch]:
17343 * objects/UML/uml.[ch]:
17344 Reverted the line wrap changes.
17345 Some day this might return, but it has to be selectable and
17346 default to off for loaded objects, otherwise it breaks file
17347 format compatibility.
17348 There was also some complains about how it looked, so a making it
17349 selectable is good for this too.
17351 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
17353 * objects/UML/class.[ch]:
17354 Some indentation cleanup.
17355 Added wrap_lines variable to class.
17356 I'll fix the line break stuff tomorrow.
17358 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
17361 Added ref to poly_conn.o.
17363 * objects/standard/polyline.c (polyline_draw):
17364 * objects/standard/zigzagline.c (zigzagline_draw):
17365 * objects/standard/arc.c (arc_draw):
17366 * objects/standard/line.c (line_draw):
17367 Draw lines before arrows. This makes hollow arrows not
17370 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
17372 Changes from Kim Peasley <kpeasley@ior.com>
17374 * objects/UML/class.c:
17375 Break lines with long operations so classes won't be
17378 * objects/UML/uml.[ch]:
17379 Helperfunctions for the above.
17381 * objects/UML/objects.c:
17382 Fix bug that duplicated the text in the attributes
17383 textwidget each time the object was selected.
17385 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
17387 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
17389 * app/modify_tool.c:
17390 * app/modify_tool.h:
17391 Control-drag is restricted to vertical/horizontal movement
17394 ModifierKeys argument added to object_move_handle
17396 * app/connectionpoint_ops.c:
17397 * app/create_object.c:
17398 * app/object_ops.c:
17399 * objects/ER/attribute.c:
17400 * objects/ER/entity.c:
17401 * objects/ER/participation.c:
17402 * objects/ER/relationship.c:
17403 * objects/UML/actor.c:
17404 * objects/UML/association.c:
17405 * objects/UML/class.c:
17406 * objects/UML/classicon.c:
17407 * objects/UML/component.c:
17408 * objects/UML/constraint.c:
17409 * objects/UML/dependency.c:
17410 * objects/UML/generalization.c:
17411 * objects/UML/implements.c:
17412 * objects/UML/large_package.c:
17413 * objects/UML/lifeline.c:
17414 * objects/UML/message.c:
17415 * objects/UML/note.c:
17416 * objects/UML/object.c:
17417 * objects/UML/realizes.c:
17418 * objects/UML/small_package.c:
17419 * objects/UML/state.c:
17420 * objects/UML/usecase.c:
17421 * objects/network/bus.c:
17422 * objects/standard/arc.c:
17423 * objects/standard/box.c:
17424 * objects/standard/ellipse.c:
17425 * objects/standard/image.c:
17426 * objects/standard/line.c:
17427 * objects/standard/polyline.c:
17428 * objects/standard/textobj.c:
17429 * objects/standard/zigzagline.c:
17430 Changed calls to move_handle to pass the new argument.
17434 Default line width, color etc #define'd
17437 Updates of danish menus
17439 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
17442 * dia_gnome_icon.png
17443 * dia_gnome_menu_icon.png
17445 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
17448 About dialog shows dia_logo.png. Removed the GNOME about dialog.
17451 Distribute the icons and install logo in pkgdatadir.
17454 Added DATADIR-define.
17456 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
17457 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
17460 Updated version number, made setup quiet, can build from cvs,
17461 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
17464 * objects/ER/Makefile.am
17465 * objects/UML/Makefile.am
17466 * objects/network/Makefile.am
17467 * objects/standard/Makefile.am
17468 now builds better with gnome
17470 * objects/UML/class_dialog.c
17471 Fixed typo -> po files must be updated too!!
17473 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
17476 Added reference so that widgets.o gets linked to the app.
17478 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17480 * objects/UML/classicon.c:
17483 * objects/UML/actor.c:
17484 Changed position of 'snap-to-grid' so connection points are
17487 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
17489 * objects/UML/classicon.c:
17490 Changed position of 'snap-to-grid'.
17491 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17493 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
17495 * objects/network/antenna.c
17496 * objects/network/flash.c
17497 * objects/network/hub.c
17498 * objects/network/modem.c
17499 * objects/network/modularswitch.c
17500 * objects/network/rj45plug.c
17501 * objects/network/scead-plug.c
17502 * objects/network/network.c
17503 * objects/network/Makefile.am
17504 * objects/network/pixmaps/antenna.xpm
17505 * objects/network/pixmaps/flash.xpm
17506 * objects/network/pixmaps/hub.xpm
17507 * objects/network/pixmaps/modem.xpm
17508 * objects/network/pixmaps/modularswitch.xpm
17509 * objects/network/pixmaps/rj45plug.xpm
17510 * objects/network/pixmaps/sceadplug.xpm
17511 * objects/network/pixmaps/Makefile.am
17512 Lots of new network objects from
17513 Roland Steinbach <roland@support-system.com>.
17515 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17517 * objects/UML/classicon.c:
17518 Fixed connection positions, saved type as int (it has 3 states),
17519 and other small fixes.
17521 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
17523 * app/preferences.c:
17525 Added preference compress_save. It lets dia save uncompressed
17528 * objects/UML/class.c:
17529 Fixed bug with size calculation on methods that had class scope.
17531 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17533 * objects/UML/usecase.c:
17534 Added collaboration mode
17535 Fixed connection points with text > ellipse bug and other
17538 * objects/UML/state.c:
17539 Fixed bug of bad position of text after being either end
17540 or begin, moved and returned to text
17542 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
17544 * app/preferences.c: Add prototype declaration for prefs_apply.
17546 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
17548 * app/preferences.c:
17550 Apply don't hide window.
17552 * app/properties.c:
17555 * objects/UML/object.c:
17556 * objdcts/UML/state.c:
17557 Some data was not copied on copy.
17560 Ben Hochstedler <benh@eeyore.moneng.mei.com>
17562 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
17565 Changed link order between X and libxml.
17566 Some people had problems with an old libz in their
17569 1999-04-09 Kjartan Maraas <kmaraas@online.no>
17571 * po/no.po: updated translation.
17573 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
17575 * lib/message.c (message_error):
17578 * app/commands.[ch]:
17579 * app/diagram.[ch]:
17580 Added begining of xfig importing
17582 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17584 * objects/UML/pixmaps/state.xpm:
17585 * objects/UML/state.c:
17586 New UML object state machine.
17588 * objects/UML/uml.c:
17589 * objects/UML/Makefile.am:
17590 * objects/UML/pixmaps/Makefile.am:
17591 Added the state object.
17593 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
17595 * objects/UML/usecase.c:
17596 Added dialog to allow move text outside the ellipse.
17598 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
17600 * Released Dia 0.41
17601 Tag called DIA_0_41
17606 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
17609 Updated version number to 0.41
17614 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
17617 Changed errormessage for --export-to-ps. Removed call to
17618 g_log_set_always_fatal().
17621 * app/disp_callbacks.c
17623 (i18n) Removed gettext from some debugmessages.
17626 Small fix in GNOME-menus. Added warning that will help track
17627 problems with translations.
17630 (i18n) Updated swedish translation.
17632 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
17637 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
17643 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
17646 (i18n) Updated the danish translation.
17647 From Lars R. Clausen.
17649 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
17652 (i18n) The popup menu is translated now.
17655 (i18n) Updated swedish translation.
17657 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17659 * Released Dia 0.40
17660 Tag called DIA_0_40
17663 Updated for new release
17665 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17667 * objects/network/bus.c:
17668 Added initialization of properties dialog to NULL.
17670 * app/commands.c (edit_cut_callback):
17671 Update menu sensitivity when cut object.
17673 * app/modify_tool.c (click_select_object):
17674 * app/modify_tool.c (modify_button_release):
17675 Call diagram_update_menu_sensitivity() when
17676 selecting objects to update stuff that depends
17677 on selected/not selected.
17679 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
17682 Change order of subdir so that libintl.a builds.
17683 Now passed make distcheck.
17685 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17687 * lib/font.c (init_x11_font):
17690 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17692 * objects/UML/pixmaps/classicon.xpm:
17693 * objects/UML/classicon.c:
17694 * objects/UML/uml.c:
17695 Added the class stereotype icon objects.
17698 Changed default ps extension from .ps to .eps.
17700 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17703 Added diamenu.h and intl.h
17708 * objects/UML/pixmaps/Makefile.am:
17711 * objects/standard/pixmaps/Makefile.am:
17714 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17717 Use a scalable font before fixed when real font not found.
17722 * objects/standard/image.c:
17723 Better handling of loading/saving of images.
17726 Added some text about cvs, fonts and rewrote some parts.
17729 Updated with new stuff.
17732 Bump up version number to 0.40.
17734 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17737 Moved diagram_add_ddisplay() call into new_display().
17738 Fixed new_display to not use uninitialized variables
17739 causing loaded files to show up as black (or garbage).
17743 Removed unneeded calls to diagram_add_ddisplay().
17745 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
17747 * objects/UML/lifeline.c:
17749 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
17751 * objects/UML/message.c:
17752 Fixed bug loading messages with null-text.
17753 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
17755 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
17758 Updated swedish translation.
17761 (GNOME) Removed help-browser from help menu. Fixed typo.
17764 (GNOME) Accelerators in diagrams should work now.
17766 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
17771 * app/disp_callbacks.c
17775 * app/preferences.c
17777 * lib/diagramdata.c
17783 * objects/network/*.c
17784 * objects/standard/*.c
17785 * po/update_pofiles_in.sh
17787 More i18n. All strings (expect rare debug messages) can be
17788 translated now. Moved intl.h from app to lib. Updated
17789 update_pofiles_in.sh to check all .c-files.
17791 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
17793 * app/disp_callbacks.c (ddisplay_canvas_events):
17794 Don't drop keys while num-lock, scroll-lock etc is on.
17796 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17798 * app/render_eps.c (draw_image):
17799 Fixed exporting of images.
17800 Still not perfect, but not outright buggy.
17802 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17806 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
17809 Added $* to the dia call in run_dia.sh
17811 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
17814 Added color_equals() call.
17816 * objects/standard/arc.c:
17817 * objects/standard/line.c:
17818 Don't save unneccesary data.
17820 * objects/standard/box.c:
17821 * objects/standard/ellipse.c:
17822 * objects/standard/image.c:
17823 * objects/standard/polyline.c:
17824 * objects/standard/zigzagline.c:
17825 Share properties dialog.
17826 Don't save unneccesary data.
17828 1999-03-22 Seth Alves <alves@hungry.com>
17833 small changes so that gnome menus aren't broken
17835 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
17838 Added danish translation from lrclause@cs.uiuc.edu.
17843 * po/update_pofiles_in.sh:
17844 Added script that updates POFILES.in.
17845 This should probably be run automatically from somewhere.
17847 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
17849 * app/diagram.[ch]:
17850 Added function diagram_update_menu_sensitivity() which
17851 sets the sensitivity of some menu items. This function
17852 is called at each diagram state change (from diagram_modified()).
17853 This is needed because otherwise the keyboard accelerators
17854 don't work correctly.
17856 * app/display.[ch]:
17857 Changed display_set_menu_sensitivity() to display_update_menu_state().
17858 Moved lots of code to diagram_update_menu_sensitivity() in
17859 diagram.c. Optimized to only look up menu-items from path:s once.
17861 * app/disp_callbacks.c:
17863 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
17864 Need to set GDK_FOCUS_CHANGE_MASK.
17866 * app/create_object.c:
17867 Call diagram_modified when an object has been created and
17868 selected so that the menu sensitivity is updated.
17871 removed menus_set_sensitive() and menus_set_state(). Exported
17872 renamed function menus_get_item_from_path().
17874 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
17876 * app/disp_callbacks.c:
17877 Show (empty) object menus on object that has none.
17878 Show title on object menus.
17881 Set zoom factor correctly when opening new displays.
17882 Better setting of scrollbars.
17886 Some reformating cleanup.
17889 Added title to object menus.
17892 Added object menu method (NULL-valued) to all objects.
17894 * objects/standard/polyline.c:
17895 Added title to object menu.
17897 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
17899 * app/preferences.[ch]:
17900 New files. Implements the preferences dialog and
17901 loading/saving of ~/.diarc.
17904 Added preferences.[ch].
17907 Load preferences on startup.
17909 * app/commands.[ch]:
17910 Added file_preferences_callback to show the preferences dialog.
17912 * app/create_object.c:
17913 Update extents when creating object.
17914 Use the reset_tools_after_create preferences setting.
17917 Use preferences when creating new display.
17920 Add preferences to menu.
17923 * app/layer_dialog.c:
17924 * app/properties.c:
17925 Don't allow shrinking of dialog.
17926 Add i18n of some strings.
17928 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
17930 Norwegian translation added.
17932 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
17934 * objects/standard/line.c:
17935 * objects/standard/arc.c:
17936 * objects/standard/polyline.c:
17937 * objects/standard/zigzagline.c:
17938 Loading of arrow data fixed.
17940 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
17943 Update extents when saving and exporting to postscript.
17944 Fixes a bug with postscript bounding-box being wrong.
17947 Changed border width from 5 to 2.
17950 Move grouped objects by the move-point of the first object.
17951 Fixes bug that made all objects in the group be off-grid
17952 when moving the group, even though all objects was on-grid.
17954 * app/layer_dialog.c:
17955 Update extents when changing layer.
17957 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
17959 * objects/UML/uml.c:
17960 * objects/UML/component.c:
17961 * objects/UML/pixmaps/component.xpm:
17962 Added the UML component object
17964 1999-03-04 Seth Alves <alves@hungry.com>
17966 * objects/UML/generalization.c (generalization_create): avoid
17967 math on uninitialized genlz->text_width (NaN causes sigfpe)
17969 * objects/UML/realizes.c (realizes_create): same
17971 * objects/UML/dependency.c (dependency_create): same
17973 1999-03-01 Seth Alves <alves@hungry.com>
17975 * app/display.c (ddisplay_active): don't fly a warning panel
17976 if ddisplay_active is called when no views are open.
17978 * app/commands.c (set_default_file_selection_directory): set
17979 file selector's default directory if there is already
17982 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
17985 New info about imlib requirements.
17988 Added lib/pixmaps/Makefile to created makefiles.
17992 Change from obsoleted to newer gtk calls.
17995 Pass filename of the diagram when loading and saving.
17996 This creates better oportunities to handle filename saving.
17999 Pass filenames to load and save methods.
18001 * lib/dia_image.[ch]:
18002 Added dia_image_get_broken() call that returns a image which
18003 is used for 'broken' images.
18005 * lib/pixmaps/.cvsignore:
18006 * lib/pixmaps/Makefile.am:
18007 * lib/pixmaps/broken.xpm:
18008 New files for the broken image bitmap.
18011 Fixed bug with double destroyed filedialog.
18014 Updated load and save prototypes to use the new filename argument.
18017 Render broken image instead of line when got no image.
18018 Use the new filename in load and save to save (if possible)
18019 relative pathnames and to better try to find loaded images.
18021 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18024 Some updates to the todo file.
18028 Place over/place over => sent to back/bring to front.
18029 Added some keyboard shortcuts to menus.
18031 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18034 Changed string saving/loading to a new method. This should
18035 be much better att handling &,<,> and whitespaces.
18036 Loading strings of the old kind is still supported for backwards
18039 * samples/ER-demo.dia:
18040 * samples/UML-demo.dia:
18041 Updated to use the new strings.
18044 statusbar modified update fix.
18046 1999-02-27 Seth Alves <alves@hungry.com>
18048 * app/app_procs.c (app_init): added a --export-to-ps option
18049 which will cause dia to load a dia file and save it as ps
18050 and then exit. this is a little bogus, because it still
18051 pops up a window. this option only shows up if --enable-gnome
18054 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
18055 menu when built with --enable-gnome
18057 * app/interface.c (create_display_shell): build status bar
18058 even if --enable-gnome is used
18060 * app/menus.c: menu fixes for --enable-gnome
18062 * app/commands.c (file_open_dialog_ok_callback): fixed up
18063 menus when --enable-gnome is used
18064 (file_export_to_eps_callback): set a default file name
18065 when dialog is created
18067 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
18069 * objects/UML/association.c (association_create):
18070 Fixed usage of not initialized variable.
18071 Pointed out by Seth Alves <alves@hungry.com>.
18073 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
18076 Fixed detection of gnome-xml.
18077 From Valtteri Vuorikoski <vuori@k.notcom.org>.
18080 Fixed error detection on dlsym calls.
18081 From Valtteri Vuorikoski <vuori@k.notcom.org>.
18083 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
18085 * objects/UML/message.c (fill_in_dialog):
18088 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18090 * objects/standard/zigzagline.c:
18091 * objects/standard/polyline.c:
18092 * objects/standard/line.c:
18093 * objects/standard/arc.c:
18097 Support for sizeable arrows.
18099 * objects/standard/box.c:
18100 * objects/standard/ellipse.c:
18101 * objects/standard/image.c:
18102 Changed creation handle to lower-right.
18103 Transparent box/ellipse.
18105 * objects/standard/image.c:
18106 Better layout of properties boxes.
18108 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18110 * objects/UML/message.c (fill_in_dialog):
18111 Fixed dialog fill in. Common dialog for all messages.
18113 * objects/UML/object.c:
18114 Added multiple instance. Dialog related bugs fixed.
18115 Common dialog for all instances. Completed copy and destroy.
18117 * objects/UML/lifeline.c (lifeline_load):
18118 Conn initialization bug fixed and few bad loading prevention flags.
18119 Common dialog for all lifeline objects.
18121 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18123 * lib/dia_image.[ch]:
18124 More work on the DiaImage abstraction.
18127 * app/render_eps.c:
18128 * app/render_gdk.c:
18129 * objects/standard/image.c:
18130 Use the new DiaImage calls.
18132 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18136 Reversed the meaning of align horizontal/vertical.
18138 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18140 * app/load_save.c (diagram_load):
18141 Statusbar update fix.
18143 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18145 * app/interface.c (create_display_shell):
18146 Fixed status bar size.
18148 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18150 * lib/dia_image.[ch]:
18151 Added extern declaration for dia_image_release.
18152 Removed dia_image_draw, as it's not neseccary.
18154 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18156 * app/object_ops.c:
18158 Added equal distance alignment both vertical and horizontal.
18160 * objects/UML/object.c:
18161 Added a couple of attributes to load/read that were missing.
18163 * objects/UML/lifeline.c:
18164 Better handling of handles. Fixed another bug I forgot to add
18167 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
18169 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18171 * lib/dia_image.[ch]:
18173 New files. DiaImage wraps the GdkImlibImage.
18176 * app/render_eps.c:
18177 * app/render_gdk.c:
18178 * lib/render_store.[ch]:
18179 * objects/standard/image.c:
18180 Use the new DiaImagetype.
18183 Removed unused variable to eliminate warning.
18185 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
18187 * objects/standard/box.c:
18188 Added rounded corners on the box object.
18190 * lib/widgets.[ch]:
18191 Updated the DiaFileSelector widget.
18193 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18195 * objects/UML/object.c (objet_draw):
18196 Completed underlining of all object name lines.
18198 * objects/UML/message.c (fill_in_dialog):
18199 Fixed a bug that filled incorrectly the message's dialog.
18201 * objects/UML/lifeline.c (lifeline_load):
18202 Some cleanning and fixed a couple of bugs that caused
18203 crashes after reading diagrams with lifelines.
18206 Added flags to prevent crash with void strings
18208 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
18209 * app/display.[ch]:
18210 Added statusbar to the display widget. Currently shows the zoom
18211 factor and modified flag of the viewed diagram. The statusbar is
18212 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
18213 This caused the following additions:
18215 * app/diagram.[ch]:
18216 Added function diagram_set_modified. Calls
18217 ddisplay_update_statusbar for all displays showing the modified diagram.
18218 Changed diagram_modified to call diagram_set_modified.
18221 Added the creation of the statusbar.
18224 diagram_save now calls diagram_set_modified instead of setting
18225 dia->modified. Needed to force call to display_update_statusbar
18228 Changed the way view_show_all works. Now calls ddisplay_zoom
18229 instead of directly setting the zoom_factor, so the zoom factor is
18230 correctly shown in the statusbar.
18233 Fixed rubberband zoom to use ddisplay_zoom().
18235 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18238 Rudimentary GNOME session management.
18240 * app/disp_callbacks.c
18244 GNOME menus. Problems:
18245 Callbacks doesn't get user_data.
18246 Weird warnings when creating popup menus.
18247 menus_set_sensitive(), menus_set_state() doesn't work.
18249 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18252 Add AM_PATH_GDK_IMLIB() call.
18255 Add gdk_imlib to linking flags.
18259 Print library-loading error messages on stdout too.
18262 Add standard image to toolbox.
18264 * app/render_eps.c:
18265 Set a more reasonable dot length. Fixed
18266 missing initialization of dot length.
18267 Added draw_image methods.
18269 * app/render_gdk.c (new_gdk_renderer):
18270 Dot a bit wider. Looks good in normal mode now.
18272 * objects/standard/image.c:
18273 * objects/standard/pixmaps/image.xpm:
18274 New files. Standard object for images.
18276 * app/render_eps.c (set_linestyle):
18277 * app/render_gdk.c (set_linestyle):
18278 * lib/widgets.c (dia_line_style_selector_init):
18280 New line style DOTTED.
18283 * lib/render_store.c:
18284 Change DrawImage call to use gdk_imlib.
18286 * lib/widgets.[ch]:
18287 Added widgets for selecting files.
18288 Added dotted to the linestyle selector.
18290 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
18292 * objects/network/printer.c:
18293 * objects/network/network.c:
18294 * objects/network/pixmaps/printer.xpm:
18295 * objects/network/.cvsignore:
18296 * objects/network/Makefile.am:
18297 * objects/network/pixmaps/Makefile.am:
18298 New printer object in network.
18299 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
18302 Added known XML bug.
18304 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
18308 Reverted back from #include <gnome-xml/tree.h> to
18309 #include <tree.h> as this is fixed by the xml-config program.
18310 The former way broke for some people.
18311 Reported by blizzard@redhat.com.
18313 * objects/UML/lifeline.c:
18314 * objects/UML/message.c:
18315 * objects/UML/object.c:
18316 Removed some warnings.
18318 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18320 * objects/UML/lifeline.c:
18321 Fixed connection points over the life line when the focus of
18322 control is not drawn.
18324 * objects/UML/message.c:
18325 Now a recursive message can be freely resized using the handles.
18327 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18329 * objects/UML/lifeline.c:
18330 Added connection points.
18331 Added properties dialog with the option to draw/hide focus of control
18332 box and destruction mark.
18334 * objects/UML/object.c:
18335 Added properties dialog and stereotype, explicit state and attributes.
18336 It's also possible to mark the object as active.
18338 * objects/UML/pixmaps/object.xpm:
18341 * objects/UML/message.c:
18342 Added "recursive" message type (was not necessary to use OrthConn).
18344 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
18346 * objects/standard/arc.c:
18347 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
18349 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
18351 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
18355 Update xml includes to gnome-xml/*.h.
18357 * objects/standard/arc.c:
18358 Only one property dialog per type.
18359 Fix arrows directions.
18361 * objects/standard/box.c:
18362 * objects/standard/ellipse.c:
18363 * objects/standard/textobj.c
18364 Added default properties dialog.
18367 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18369 * objects/UML/Makefile.am:
18370 * objects/UML/uml.c:
18371 * objects/UML/lifeline.c:
18372 * objects/UML/object.c:
18373 * objects/UML/message.c:
18374 * objects/UML/pixmaps/lifeline.xpm:
18375 * objects/UML/pixmaps/object.xpm:
18376 * objects/UML/pixmaps/message.xpm:
18377 Added 3 new UML objects for dynamic modeling. To avoid internal
18378 conflicts, the name "objet" is used for object "object".
18381 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
18384 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
18386 * app/display.[ch]:
18387 * app/modify_tool.c:
18388 Added autoscrolling while doing rubber-band select.
18389 This patch from Matthias Köster
18390 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
18393 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
18395 * app/defaults.[ch]:
18396 New files, deals with default properties dialog.
18399 New file. Contains definitions for the new object menu.
18401 * lib/poly_conn.[ch]:
18402 New file. Base class for poly-line like objects.
18404 * objects/standard/polyline.c:
18405 * objects/standard/pixmaps/polyline.xpm:
18406 New files. Polyline object.
18409 Fixed bug with infinite loop when registering sheets.
18412 Removed unneccesary stuff.
18414 * app/disp_callbacks.c:
18415 Support for object menus.
18418 Added polyline to toolbox.
18419 Added call to tool_options_dialog_show() when double clicking on
18423 New function tool_options_dialog_show() for tool properties.
18429 Added ObjectType methods for handling object default dialogs.
18430 Added Object method for handling object_menu.
18431 Added unused methods to ObjectTypeOps for future binary
18434 * lib/widgets.[ch]:
18435 Added DiaArrowTypeSelector widget.
18437 * objects/standard/arc.c:
18438 * objects/standard/zigzagline.c:
18439 Added support for default properties.
18441 * objects/standard/line.c:
18442 Added support for default properties.
18443 Just use one properties dialog for all line objects. NOTE: This
18444 seems to have a bug. We're working on it.
18446 * standard/standard.c:
18447 Add the polyline object.
18449 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
18451 * app/modify_tool.c:
18452 Commented out buggy transitive select function. It wasn't really
18453 meant to go into cvs.
18456 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
18468 Swedish translation. Not completed.
18472 Added possibility to enable GNOME specific code with configure.
18475 Added possibility to set debug level with configure.
18478 Added about dialog.
18484 Added some GNOME specific code. Not ready for use.
18486 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
18489 Added text about needing gtk 1.1.13 and gnome-xml.
18492 Described changes since last version (0.20).
18494 Released version 0.30, tagged DIA_0_30.
18496 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
18498 * app/magnify.c (magnify_button_release):
18499 Fixed a problem when zooming in on a very small box would
18500 not release the grabbed pointer-focus.
18502 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
18504 * app/load_save.c (diagram_load):
18505 Be somewhat more robust when loading files that
18508 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
18512 * objects/UML/uml.c:
18513 * objects/network/network.c:
18514 * objects/standard/standard.c:
18515 Added versioning of object libraries.
18517 * app/create_object.c:
18518 Don't change tool when an object is created.
18520 * objects/network/network.c:
18525 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
18528 Updated gtk requirement to Gtk+ 1.1.13.
18531 Always add one screenful of scrolling space on
18532 each side of a diagram window.
18534 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
18537 Tell automake to auto-install missing files.
18540 Renamed deprecated Gtk+ function.
18542 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
18546 * samples/Makefile.am:
18547 * samples/ER-demo.dia:
18548 * samples/UML-demo.dia:
18549 Added samples directory.
18550 Added samples for ER and UML.
18553 * app/disp_callbacks.c:
18555 Zoom is done by sqrt(2) instead of 2.
18556 Lots of more zoom options in the menu.
18558 * objects/ER/relationship.c:
18559 Relationships have 8 connectionpoints instead of 4.
18561 * objects/UML/class.c:
18562 UML class name font a bit smaller.
18563 Fixed stupid bug in the copy operation.
18566 Displays are opened at 500x400 instead of 256x256.
18569 Fixup of internal error message.
18571 * app/color_area.c:
18573 * app/modify_tool.c:
18575 Removed debug printf's.
18578 Added new known bug.
18580 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
18584 Fixed so accelerator groups work in all windows.
18585 Updated to new gtk function names.
18591 Updated to new gtk function names.
18592 Set sensitivity of the align menu items.
18594 * objects/ER/pixmaps/Makefile.am:
18595 * objects/UML/pixmaps/Makefile.am:
18596 * objects/network/pixmaps/Makefile.am:
18597 Fix so that make dist works.
18600 * app/color_area.c:
18604 * app/layer_dialog.c:
18606 * app/object_ops.c:
18607 * app/properties.c:
18608 * lib/diagramdata.[ch]:
18610 * lib/objects/ER/attribute.c:
18611 * lib/objects/ER/entity.c:
18612 * lib/objects/ER/participation.c:
18613 * lib/objects/ER/relationship.c:
18614 * lib/objects/ER/.c:
18615 * objects/UML/actor.c:
18616 * objects/UML/association.c:
18617 * objects/UML/class_dialog.c:
18618 * objects/UML/dependency.c:
18619 * objects/UML/generalization.c:
18620 * objects/UML/large_package.c:
18621 * objects/UML/realizes.c:
18624 Updated to new gtk function names.
18627 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
18633 Fixed loading of diagrams specified as arguments.
18635 * objects/ER/attribute.c:
18636 * objects/ER/entity.c:
18638 * objects/ER/participation.c:
18639 * objects/ER/relationship.c:
18640 Updated the ER objects.
18643 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
18647 * objects/Makefile.am:
18648 * objects/ER/attribute.c:
18649 * objects/ER/entity.c:
18651 * objects/ER/participation.c:
18652 * objects/ER/relationship.c:
18653 * objects/ER/pixmaps/Makefile.am:
18654 * objects/ER/pixmaps/attribute.xpm:
18655 * objects/ER/pixmaps/entity.xpm:
18656 * objects/ER/pixmaps/participation.xpm:
18657 * objects/ER/pixmaps/relationship.xpm:
18658 * objects/ER/pixmaps/weakentity.xpm:
18659 First commit of entity relationship objects.
18660 These were done by hallon@lysator.liu.se.
18661 There are still stuff to do on these.
18663 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
18668 * app/diagram.[ch]:
18669 Change diagram_remove_all_selected to take new argument
18670 delete_empty. Empty objects are deleted only if it is TRUE.
18671 Removed call to close_eps_renderer. This is now done in end_render
18672 in the eps renderer.
18674 * app/create_object.c:
18675 * app/layer_dialog.c:
18676 Update calls to diagram_remove_all_selected.
18679 Update calls to diagram_remove_all_selected.
18680 Some code reformating.
18681 Changed order of adding updates i align_h and align_v.
18683 * app/modify_tool.c:
18684 Update calls to diagram_remove_all_selected.
18685 Added pointer grab when doing rubber-band selection, this fixes
18686 the bug when draging the box over to another window.
18688 * app/connectionpoint_ops.[ch]:
18689 diagram_update_connections_object changed to take an argument
18690 update_nonmoved. This lets connections that has not moved, but
18691 the stuff they're connected to has been moved work.
18692 Update calls to the new diagram_update_connections_object.
18694 * app/properties.c:
18695 Update calls to the new diagram_update_connections_object.
18696 Update extents when properties are applied.
18698 * app/disp_callbacks.c:
18699 Added support for zooming with the '+' and '-' keys.
18702 Removed old keyboard shortcuts for zoom.
18705 Added calls begin_render and end_render to renderer.
18706 These can be used for setup and cleanup.
18708 * lib/diagramdata.c:
18709 Added calls to begin_render and end_render in data_render.
18711 * app/render_gdk.c:
18712 Added begin_render and end_render.
18714 * app/render_eps.[ch]:
18715 Added begin_render and end_render.
18716 Moved close_eps_renderer code to end_render.
18717 Various fixes to the generated eps code. This fixes importing
18718 generated eps into LYX.
18720 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
18726 Menus for alignment updated.
18728 * app/object_ops.[ch]:
18729 Functions for object alignment updated.
18731 * app/commands.[ch]:
18732 Object alignment callbacks updated.
18733 New diagrams are called Untitled-<nr>.
18735 * app/layer_dialog.c:
18736 Active layer selected when showing layers from new
18740 Compress xml files when saving.
18741 Use xml namespace 'dia'.
18744 Minor comment update.
18746 * objects/UML/class_dialog.c:
18747 Cleanup of the gkt_list_item moving code.
18748 Fixed bug with update of operation when moving parameters.
18750 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
18752 * app/layer_dialog.[ch]:
18753 Fixed the rest of the layers dialog.
18756 Added call to redo layer dialogs diagram list when changing
18759 * lib/diagramdata.[ch]:
18760 Added data_raise_layer and data_lower_layer functions for
18761 raising/lowering layers. Added data_add_layer_at for adding a
18762 layer at a specified index.
18764 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
18766 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
18769 Added support for reading diagrams from the command line.
18771 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
18773 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
18775 * app/commands.[ch]:
18776 Added objects_align_callback().
18779 Added align objects to menu.
18781 * app/object_ops.[ch]:
18782 Add object_list_align().
18784 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
18785 * app/layer_dialog.[ch]:
18786 New files. Handles the layers dialog. Needs a bugfix for glib to
18787 work. Sent patch to gtk-list.
18789 * app/pixmaps/new.xpm:
18790 * app/pixmaps/eye.xbm:
18791 * app/pixmaps/lower.xpm:
18792 * app/pixmaps/raise.xpm:
18793 * app/pixmaps/delete.xpm:
18794 New files. Images for the layer dialog buttons.
18796 * lib/diagramdata.h
18797 * lib/diagramdata.c
18798 New files for the DiagramData and Layer structures and functions.
18801 Added call to create_layer_dialog() on startup.
18803 * app/commands.[ch]:
18804 New callbacks for showing the properties and layout dialog.
18805 Changes for the new DiagramData structure.
18807 * app/connectionpoint_ops.c:
18808 * app/cut_n_paste.c:
18809 * app/diagram.[ch]:
18810 * app/display.[ch]:
18812 * app/modify_tool.c:
18813 * app/object_ops.[ch]:
18814 * app/render_eps.c:
18816 Changes for the new DiagramData structure.
18819 * app/properties.c:
18820 Set correct wmclasses.
18823 Fix load and save of layers.
18826 Update DTD for layers.
18829 New menus for dialogs.
18835 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
18838 Removed the gtk 1.1.5 stuff.
18841 Updated gtk check to version 1.1.5.
18842 Updated version from 0.20 to 0.30
18844 * app/commands.[ch]:
18845 Updated some callbacks to be of type GtkItemFactoryCallback1.
18846 Not all are done yet, but it works anyway.
18849 Removed Gtk 1.0.0 GtkAcceleratorTable references.
18853 Update to Gtk 1.1.x functions.
18854 Use ItemFactory instead of MenuFactory.
18856 * app/render_gdk.c:
18857 Removed Gtk 1.0.0 references.
18859 * objects/UML/class_dialog.c:
18860 Scrolled window updates for Gtk 1.1.5.
18863 Removed ugly fix for gnome-xml bug. Make sure you get the
18864 newest version of gnome-xml from CVS.
18866 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
18869 Removed the xml load/save line.
18875 Removed building of files.c
18878 * lib/connection.c:
18882 * lib/render_object.c:
18883 * objects/UML/actor.c:
18884 * objects/UML/association.c:
18885 * objects/UML/class.c:
18886 * objects/UML/constraint.c:
18887 * objects/UML/dependency.c:
18888 * objects/UML/generalization.c:
18889 * objects/UML/implements.c:
18890 * objects/UML/large_package.c:
18891 * objects/UML/note.c:
18892 * objects/UML/realizes.c:
18893 * objects/UML/small_package.c:
18894 * objects/UML/uml.c:
18895 * objects/UML/usecase.c:
18896 * objects/network/bus.c:
18897 * objects/standard/arc.c:
18898 * objects/standard/box.c:
18899 * objects/standard/ellipse.c:
18900 * objects/standard/line.c:
18901 * objects/standard/textobj.c:
18902 * objects/standard/zigzagline.c:
18903 Removed all includes of files.h
18906 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
18909 Made the val property of string be implied.
18910 This makes it possible to save strings that
18911 are NULL. Just leave out val.
18913 * objects/lib/dia_xml.c:
18914 Fixed string so that it is possible to save strings
18915 that are NULL. Also made an ugly workaround of a
18916 bug in gnome-xml which removes empty properties.
18918 * objects/lib/orth_conn.c:
18919 Fixed a bug in saving. Forgot to step through the
18922 * objects/UML/association.c:
18923 * objects/UML/class.c:
18924 * objects/UML/constraint.c:
18925 * objects/UML/dependency.c:
18926 * objects/UML/generalization.c:
18927 * objects/UML/implements.c:
18928 * objects/UML/large_package.c:
18929 * objects/UML/note.c:
18930 * objects/UML/small_package.c:
18931 * objects/UML/realizes.c:
18932 * objects/UML/usecase.c:
18933 * objects/UML/actor.c:
18934 Fixed UML objects to save as xml.
18935 The last two were done by asierra@servidor.unam.mx (asierra-981204)
18937 * objects/UML/uml.[ch]:
18938 Updated *_write() and *_read() functions to use xml.
18940 * objects/network/bus.c:
18941 * objects/network/computer.c:
18942 * objects/network/disc.c:
18943 * objects/network/monitor.c:
18944 Updated network diagrams to use xml.
18946 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
18949 New file. DTD that describes the xml file format
18952 * lib/dia_xml.[ch]:
18953 New files. Support for saving object to xml files.
18958 Added check for and usage of gnome-xml library.
18961 Major chages. Now saves/loads diagrams as xml.
18964 * lib/element.[ch]:
18965 * lib/connection.[ch]:
18966 * lib/orth_conn.[ch]:
18967 * lib/render_object.[ch]:
18969 Updated object support load/save functions for xml:
18971 * object/standard/arc.c:
18972 * object/standard/box.c:
18973 * object/standard/ellipse.c:
18974 * object/standard/line.c:
18975 * object/standard/textobj.c:
18976 * object/standard/zigzagline.c:
18977 Updated all standard objects to use xml.
18980 Only the standard objects are converted right now, don't
18981 save or load uml or network diagrams yet. Also, since this
18982 is new code it is deemed a bit unstable.
18987 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
18989 * objects/UML/class.c:
18990 Changed classname font to Helvetica.
18991 Added more space above the classname
18993 * objects/UML/usecase.c:
18994 Correct placements of connectionpoints on ellipse.
18995 Better algorithm for deciding aspect ration on
18998 These changes were made by Alejandro Aguilar Sierra
18999 <asierra@servidor.unam.mx>. (asierra-981201)
19001 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19003 * objects/UML/actor.c:
19004 Changed the extents and alignment of the element
19007 * objects/UML/.cvsignore:
19008 Added usecase.lo and actor.lo.
19010 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19012 * objects/UML/actor.c:
19013 * objects/UML/usecase.c:
19014 * objects/UML/pixmaps/actor.xpm:
19015 * objects/UML/pixmaps/case.xpm:
19016 New files. Implements usecase and actor UML objects.
19017 These objects are done by Alejandro Aguilar Sierra
19018 <asierra@servidor.unam.mx>.
19020 * objects/UML/Makefile.am:
19021 * objects/UML/pixmaps/Makefile.am:
19022 Added usecase and actor to makefile.
19025 Added Alejandro and Jerome to autors list.
19027 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
19029 * objects/UML/class.c (umlclass_load):
19030 Fixed typo. Reported by Jerome.Abela@solsoft.fr
19032 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
19034 * app/properties.c:
19035 Update connections when doing apply in the properties window.
19037 * objects/UML/uml.[ch]:
19038 * objects/UML/class.[ch]:
19039 * objects/UML/class_dialog.c:
19040 Added connection points on both sides of attributes and
19041 operations in UML classes.
19042 Based on idea from Jerome.Abela@solsoft.fr
19044 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
19047 Some new documentation about handles and connectionpoints.
19050 Added functions object_add_connectionpoint and
19051 object_remove_connectionpoint for handling a dynamic
19052 number of connectionpoints.
19054 * objects/UML/class.c:
19055 Only reserve space for stereotype when it is shown.
19057 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
19059 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
19061 * app/connectionpoint_ops.c:
19063 * app/disp_callbacks.c:
19064 * app/display.[ch]:
19066 * app/handle_ops.c:
19068 * app/modify_tool.c:
19069 * app/render_gdk.[ch]:
19071 Huge cleanup of internal rendering system.
19072 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
19073 This gives a few new methods for Interactive Renderers for setting
19074 clipping regions and drawing pixel based lines and rects.
19075 Updated the rest of the code to use the new stuff.
19077 * app/render_eps.c:
19081 * objects/standard/zigzagline.c
19082 Fixed unused variable warnings.
19085 Fixedbug with stringwidth where width==0.
19090 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
19092 * lib/widgets.[ch]:
19093 Added suppot for setting the font of a
19094 DiaFontSelector widget.
19095 Also fixed some typos in the header.
19098 Added a comment about the GetPRoperties method call.
19099 You have to make sure to update widget state when
19100 this method is called. (Not all objects do this yet,
19106 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
19109 Fixed problem with height of ascent and descent for fonts.
19110 It didn't use the whole height (==ascent+descent) when calculatine
19111 ascent_ratio and descent_ratio.
19113 * objects/standard/textobj.c:
19114 * objects/standard/box.c:
19115 * objects/standard/ellipse.c:
19116 * objects/standard/line.c:
19117 * objects/standard/arc.c:
19118 Updated and added property dialogs for these objects.
19119 Also added line width/color/style to those objects
19120 that didn't have it.
19121 This change breaks fileformat compatibility for these objects.
19123 * objects/standard/zigzagline.c:
19124 Changed zigzagline to be based on OrthConn, much nicer.
19125 Also added line style and color to properties.
19126 This change breaks fileformat compatibility for zigzagline.
19129 Fixed bug in message(). Forgot a pair of '&'.
19131 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
19133 * lib/widgets.[ch]:
19134 Added DiaColorSelector widget.
19135 This is a colored button that pops up a color selection
19136 dialog when pressed.
19138 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
19140 * lib/widgets.[ch]:
19142 New files, added widgets for selecting fonts, alignment
19143 and line-style. Will be used later.
19145 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
19149 * objects/UML/Makefile.am:
19150 * objects/network/Makefile.am:
19151 * objects/standard/Makefile.am:
19152 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
19153 in all Makefile.am.
19155 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
19157 * app/handle_ops.c (handle_draw):
19158 connected HANDLE_MINOR_CONTROL also becomes red.
19160 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
19163 removed -ldl from linking. This is added if needed by configure.
19166 Open dlls with RTLD_LAZY if it is defined.
19167 Some cleanups: char *error -> const char *error
19168 Added fprintf()'s to where we exited because of errors.
19171 Include <sys/types.h>
19173 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
19178 Detect dlopen better.
19179 Detect wether dlopen needs an underscore in the identifier.
19180 This code was mostly borrowed from guile.
19184 * objects/standard/standard.c:
19185 * objects/network/network.c:
19186 * objects/UML/uml.c:
19188 Changed the way sheets reference objects to use just the
19189 name. Changed module loading to a two stage model:
19190 First register_objects() is called for all modules.
19191 Then register_sheets() is called. This means that
19192 sheets can safely include objects from other modules.
19195 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
19197 * objects/network/bus.c:
19198 * objects/network/network.c:
19199 * objects/network/Makefile.am:
19200 New file bus.c. Added new object: Ethernet bus.
19202 * objects/standard/box.c:
19203 Added call to gtk_spin_button_set_numeric for linewidth spinner
19204 in property dialog.
19206 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
19208 * app/connectionpoint_ops.c:
19209 * app/create_object.c:
19211 * app/handle_ops.c:
19212 * app/modify_tool.c:
19213 * lib/connection.c:
19218 * loads of objects:
19219 Changed handle->connectable to handle->connect_type.
19220 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
19221 that their connections don't break when moving objects.
19224 Always select the last handle in an object that has
19225 the closest distance.
19227 * lib/geometry.[ch]:
19228 Added rectangle_add_point function.
19231 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
19233 * app/properties.[ch]: New files. Handles the new properties
19236 * app/modify_tool.c: Changed to use new properties dialog.
19238 * app/object_ops.[ch]: Removed object_changed_callback, as it's
19239 not needed anymore. This is now handled differently in
19243 Changed the properties ops for objects. Removed typedefs
19244 ChangedObjectTime and ObjectChangedFunc needed for the old way.
19245 Added object_return_null function.
19248 * lib/render_object.c:
19250 Changed objects to use the new properties dialog.
19253 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
19255 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
19258 * autogen.sh: New file. Copied from gtk and added a call to
19259 libtoolize. Anyone knows why this isn't done in gtk?
19261 * Removed autogenerated files.
19263 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
19265 * Added call setlocale(LC_NUMERIC, "C") so that formating of
19266 floating-point numbers in postscript output will be correct.
19267 * Did some cleanup of generated postscript files.