1 2005-11-09 Lars Clausen <lars@raeder.dk>
4 * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
5 Klotzbach): Fixes template rendering and converts home-brew inline
6 doc format to javadoc. Doesn't yet fix bug #320934, but turns it
9 2005-11-07 Lars Clausen <lars@raeder.dk>
11 * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
12 box' since several objects have problems of using bounding box in
13 different ways (see bug #300055). For now, enclosing box ==
14 bounding box, but over time objects will learn to expand the
15 bounding box to include things only rendered interactively.
17 * app/modify_tool.c (modify_motion): Make sure highlight is reset
18 when moving between overlapping objects.
20 * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
21 diagram after toggling to make red X's come and go.
23 * lib/font.c: #ifdef'd out layout cache for bug #307320. Define
24 it if you need faster rendering and aren't afraid of crashbugs:)
26 * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
27 (dave Klotzbach): Fixes null pointer problems in free function.
31 * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
32 (dave Klotzbach): Make UML comments conform to UML 1.0 standard
33 and allow multi-line comments. Ugly as hell, but standard. Time
34 for a 'Strict UML' option? Fixes bug #303744.
36 * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
37 entry, exit and do descriptions to a state object. Fixes bug #65434.
39 2005-11-03 Lars Clausen <lars@raeder.dk>
48 * lib/connectionpoint.c:
53 * lib/diaarrowchooser.c:
55 * lib/diagdkrenderer.c:
61 Added documentation java-doc style. Also a few trivial cleanups.
63 2005-10-13 Lars Clausen <lars@raeder.dk>
65 * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
68 * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
73 * objects/UML/class.[ch]:
75 * objects/UML/umlattribute.c:
76 * objects/UML/umloperation.c:
77 * objects/UML/class_dialog.c:
78 Rework of the UML class attribute/operation handling. Now doesn't
79 copy connection points into the dialog data, but only the "flat"
80 data. As part of debugging made sanity check functionality.
81 Currently still dies when deleting an attribute/operation that has
84 2005-10-09 Hans Breuer <hans@breuer.org>
86 * lib/properties.h : prefer american spelling of colo(u)r for
87 user visible strings - i.e. to be translated ones.
88 * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
90 * po/*.po : updated (by 'make distcheck')
92 2005-10-09 Hans Breuer <hans@breuer.org>
94 * app/display.c : allow !"toolbox on top" without restart.
95 (Chris Hellberg, bug #310702)
97 2005-10-09 Hans Breuer <hans@breuer.org>
99 * lib/arrows.c : patch from Radek Krahl fixing the blanking
100 of two arrowheads, bug #310157
102 2005-10-08 Hans Breuer <hans@breuer.org>
104 * plug-ins/python/group_props.py : show a descriptive text instead of an
105 empty table if there are no common properties to change. Fixes bug #314432
107 2005-10-08 Hans Breuer <hans@breuer.org>
109 * objects/UML/transition.c : inverted default direction of
110 the direction. Patch from Peter Allin, fixes bug #318049
111 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
113 2005-10-08 Hans Breuer <hans@breuer.org>
115 * app/Makefile.am objects/standard/Makefile.am : match the
116 referenced icons to the needed. Make 'make distcheck' pass
117 and thus fixes bug #312152
119 * objects/standard/textobj.c : no C++ comments please!
121 2005-10-08 Hans Breuer <hans@breuer.org>
123 * objects/standard/textobj.c : preserve the position set on create
124 [makes e.g. text positioning of diasvg_import.py work]
126 * plug-ins/python/diasvg_import.py : restrict what eval() can do
127 with strings from svg files. Fixes the arbitrary code execution from
130 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
131 magnetism. At least they are distinguishable from grid snapping.
132 * app/makefile.msc app/Makefile.am : use them
134 * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
135 I also can't reproduce bug #309044 anymore (on win32).
137 2005-10-01 Lars Clausen <lars@raeder.dk>
139 * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
141 * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
142 pass FILE * as gchar *.
144 * lib/debug.[ch] (dia_assert_true): Debugging aids.
146 2005-09-29 Lars Clausen <lars@raeder.dk>
148 * objects/UML/class.h: Enabling mainpoints for UML.
150 * objects/UML/class.c (umlclass_set_props): Make sure to always
151 realloc connection point list.
153 2005-09-26 Ahmad Riza H Nst <rizahnst@id.gnome.org>
155 * configure.in: Added "id" in ALL_LINGUAS line.
157 2005-09-14 Lars Clausen <lars@raeder.dk>
159 * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
160 loading. Fixes bug #315427.
162 2005-09-11 Hans Breuer <hans@breuer.org>
164 * objects/standard/arc.c objects/standard/textobj.c : fix
165 C99isms, Dia is supposed to compile with C89 like msvc
167 * app/makefile.msc : use the wrong center-point-magnetism
168 icons for the win32 build, too.
170 * plug-ins/python/pydia-error.c : dont crash on C escape
171 sequences in the error string
172 * plug-ins/python/pydia-render.c : dont free filename twice
174 * plug-ins/python/dot.py : start of an exporter to DOT language
175 which can be processed by www.graphviz.org tools
177 2005-09-05 Iñaki Larrañaga <dooteo@euskalgnu.org>
179 * configure.in: Added "doc/eu/Makefile" for Basque documentation.
181 2005-09-04 Iñaki Larrañaga <dooteo@euskalgnu.org>
183 * configure.in: Added "eu" to ALL_LINGUAS.
185 2005-09-04 Lars Clausen <lars@raeder.dk>
187 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
188 dimensions frame to make ext_attributes work again.
190 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
191 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
194 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
195 <dooms info ucl ac be>: Add vertical alignment for standard text
196 object. This should really be moved into lib/text.c and apply to
199 2005-09-03 Lars Clausen <lars@raeder.dk>
201 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
202 mainpoint when snap-to-objects is not on.
204 * app/Makefile.am (ICON_PNG_PAIRS):
205 Fake icons for snap-to-objects.
208 * app/menus.c (menus_get_image_menubar):
210 * app/interface.c (create_display_shell):
211 * app/create_object.c (create_object_button_release):
212 * app/disp_callbacks.c (ddisplay_drop_object):
213 * app/object_ops.[ch]:
214 * app/connectionpoint_ops.c (ddisplay_connect_selected):
215 * app/modify_tool.c (modify_button_release):
217 Togglable snap-to-objects, also doesn't snap when moving entire
218 object. This should be more reasonable in practical use, and can
219 be turned off when you want to place your arrows more precisely.
221 2005-08-06 Hans Breuer <hans@breuer.org>
223 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
224 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
225 becomes even more ugly when the user has choosen *not* to build
226 the diacairo plug-in. If noone can come up with a very convincing
227 reason why it has to be done this way I'll probably go back to
228 my original dont-build-at-all approach when this breaks the
231 2005-08-02 Lars Clausen <lars@raeder.dk>
233 * objects/standard/arc.c: Patch from Grégoire Dooms
234 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
235 implementation. "There is still a small bug when the non
236 connected end of the arc is very close to the border of the
237 connected object. I think this is due to rounding errors in the
238 code for SHIFT-move handle which is reused to trim the arc in
239 autogap. Also it is not yet possible to have a startgap and an
240 endgap from/to the same central CP."
242 2005-07-31 Hans Breuer <hans@breuer.org>
244 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
245 longer for distributions official packages - depend
246 on cairo 0.6.0 - fixes bug #307144
248 2005-07-20 Hans Breuer <hans@breuer.org>
250 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
251 which must match PropDescription, that is make it at least compile.
253 2005-07-19 Hans Breuer <hans@breuer.org>
255 * app/diagram.c(new_diagram) : what comes from g_object_new()
256 MUST NOT be g_free()'d
258 * lib/message.h : added dia_message_filename() here as well.
259 Mainly to not touch all files using. They *all* where using
260 lib/message.h already! Maybe the implemantation should be moved
261 to message.c as well cause the function has *nothing* to do
262 with dynamic filename resolving. It is a wrapper around
263 g_display_filename() mostly (only?) used for messages ...
264 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
266 2005-07-18 Lars Clausen <larsrc@raeder.dk>
268 * objects/EML/instantiation.c (instantiation_load):
269 * objects/EML/interaction-ortho.c (interaction_ortho_type)
270 * objects/ER/participation.c (participation_type):
271 * objects/FS/flow-ortho.c (orthflow_type):
272 * objects/GRAFCET/vector.c (arc_load):
273 * objects/standard/zigzagline.c (zigzagline_type):
274 * objects/UML/transition.c (transition_load):
275 * objects/UML/realizes.c (realizes_load):
276 * objects/UML/dependency.c (dependency_load):
277 * objects/UML/generalization.c (generalization_type):
278 * objects/UML/association.c (association_type):
279 * objects/UML/component_feature.c (compfeat_load):
280 Make autorouting deafult on except for old diagrams.
282 * plug-ins/cairo/diacairo.c (export_data):
283 * plug-ins/cgm/cgm.c (export_cgm):
284 * plug-ins/dxf/dxf-export.c (export_dxf):
285 * plug-ins/dxf/dxf-import.c:
286 * plug-ins/hpgl/hpgl.c (export_data):
287 * plug-ins/metapost/render_metapost.c:
288 * plug-ins/pixbuf/pixbuf.c:
289 * plug-ins/pstricks/render_pstricks.c:
290 * plug-ins/python/pydia-render.c:
291 * plug-ins/shape/shape-export.c:
292 * plug-ins/svg/render_svg.c:
293 * plug-ins/svg/svg-import.c:
295 * plug-ins/xfig/xfig-export.c:
296 * plug-ins/xfig/xfig-import.c:
297 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
298 UTF-8 in message boxes.
300 2005-07-18 Lars Clausen <lars@raeder.dk>
302 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
303 to have their dimensions specified in properties. Still needs to
304 have proper update when setting properties cause constraint changes.
306 * app/preferences.c (update_floating_toolbox): Allow
307 toolbox_on_top setting to happen at once.
313 * app/sheets_dialog_callbacks.c
319 * lib/object_defaults.c:
320 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
321 for displaying in messages - better than crashing! Mostly fixes
324 * objects/UML/class.c: Save normal_font_height under the same
325 name it gets loaded as. Fixes bug #310515.
328 * doc/en/usage-customization.xml
329 * doc/en/usage-objects-special.xml
330 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
333 2005-07-17 Lars Clausen <lars@raeder.dk>
335 * doc/en/usage-customization.xml:
336 * doc/en/usage-objects.xml:
337 * doc/en/authors.xml:
338 * doc/en/usage-objects-special.xml: Applied patch from
339 stigge@antcom.de (Roland Stigge): Diverse typos and
340 misencodings. Fixes bug #308315.
342 * objects/UML/class.c (umlclass_save): Patch from
343 i.pilcher@comcast.net: Save normal font height under correct name
344 to reload it. Fixes bug #310515.
346 2005-07-10 Hans Breuer <hans@breuer.org>
348 * app/connectionpoint_ops.c app/object_ops.c : make the
349 'whole object' connection point only center point again.
350 That is: it is visible and far less magnetic. Only the
351 line gap handling make it special. For me this probably
354 * lib/neworth_conn.c : apply the same as for bug #173031.
355 This OrthConn fork got broken as well. Fixes bug #309381
357 * app/makefile.msc objects/makefile.msc : adapt to icon changes
359 * app/interface.c app/diagram_tree.c : a char** is still not
360 a char* and the win32 build is configured to error on
363 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
365 2005-07-10 Hans Breuer <hans@breuer.org>
368 Take part in the toolbox icon redesign context! If you want to
369 make them really prettier, please keep the following in mind :
370 - the size *must* be 22x22 otherwise button reflow will get broken.
371 Or you need to change about 800 icons at once.
372 - one important part of Dia are control points, so maybe the icons
373 should reflect that. (IMO gathering random icons form other
375 - the icons should at least look consistent in their group
378 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
379 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
381 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
382 * objects/standard/pixmap/* : added arc.png beziergon.png
383 bezierline.png box.png ellipse.png image.png line.png polygon.png
384 polyline.png text.png zigzagline.png
385 * objects/standard/Makefile.am : use the new icon set including
388 * app/interface.c : remove the "will probably crash" debug spew
390 2005-07-09 Lars Clausen <lars@raeder.dk>
392 * objects/standard/pixmaps/*.png:
393 * objects/standard/Makefile.am:
394 * objects/standard/*.c:
396 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
397 new icons. [Slightly belated entry]
399 2005-07-03 Hans Breuer <hans@breuer.org>
401 * app/diagram_tree.c : dont leak display name
402 * app/app_procs.c : dont leak GOptionContext
403 * app/prop_widgets.c(frame_beginprop_get_widget) :
404 Gtk api still not eating strings ...
406 * objects/UML/class.c() : don't load properties once more
407 which are already loaded by StdProps. In case of strings
408 (data_string) it has even produced leaks.
410 * app/paginate_psprint.c app/diagram.[hc] : the last
411 of the related dialogs is gone and with it the
412 misconception of destroying widgets from
414 * app/display.c : ensure the diagram is still threre
415 when we remove the display from it's list
417 2005-07-01 Hans Breuer <hans@breuer.org>
419 * lib/widgets.c(dia_color_selector_more_callback): dont
422 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
423 option. Thus linestyles can be preserved on export - at
424 least on NT based systems.
426 * NEWS : clarify the wmf outside of windows issue
428 * app/modify_too.c : fix C99ism
430 * objects/standard/arc.c : debug spew optional at compile time
432 2005-06-26 Hans Breuer <hans@breuer.org>
434 [ Cyrille would call it: warningectomy :-]
436 * lib/font.c app/create_object.c : `...' might be used uninitialized
437 in this function. Yes they were.
438 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
439 uninitialized in this function. Yes it was with textedit_activate_object()
440 Also some static correctness.
441 * lib/diarenderer.c:678: warning: no previous prototype for
442 `calculate_min_radius'. Made static.
443 * lib/dia_svg.c : ptr is a gchar *
444 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
445 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
446 * app/app_procs.c : confirm warning and make dump_dependencies() static
447 * app/autosave.c : #if 0'd old stuff
448 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
450 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
451 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
452 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
453 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
454 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
455 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
456 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
457 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
458 removed unused variables and functions
459 * objects/UML/umlattribute.c objects/UML/umloperation.c
460 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
461 neither 'missing braces around initializer' nor 'initialization from
462 incompatible pointer type'
463 * objects/UML/class_dialog.c : more static
464 * app/interface.c : static and almost const correctness and some
465 less unitialized variables.
466 * app/diapsft2renderer.c : use (int) casts like the original
467 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
468 * app/render_gdk.c: stop assignment from incompatible pointer type,
469 make member functions match the prototype.
470 * app/render_libart.c : Dito. Also stop caching the copy_gc in
471 a static variable. Otherwise it finally leaks and also may cause
472 BadMatch with changing windows
473 => warning count down from about 250 to about 60, one or two hand full
476 2005-06-26 Hans Breuer <hans@breuer.org>
478 * lib/libdia.def : added dia_font_get_description, missing
481 * app/app_procs.c : use png_get_header_ver(NULL), that is:
482 prefer function call over exported variable to get the
483 runtime version of libpng
485 2005-06-19 Hans Breuer <hans@breuer.org>
487 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
488 as suggested by Roland Stigge, bug #308310
490 2005-06-19 Hans Breuer <hans@breuer.org>
492 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
495 2005-06-18 Hans Breuer <hans@breuer.org>
497 * NEWS : mention new file dialog
499 [plugged remaining leaks from bug #142669]
500 * lib/prop_attr.c(fontprop_free) : not only unref the font
501 but free the property itself, too.
502 * app/diagram_tree.c(create_diagram_children): remember the
503 original list start to not only free the last element
505 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
506 but not used. Here it meant a potentially huge leak.
508 2005-06-18 Hans Breuer <hans@breuer.org>
510 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
511 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
512 for others, too. ( Roland Stigge, bug #144527 )
514 2005-06-18 Hans Breuer <hans@breuer.org>
516 * plug-ins/wmf/Makefile.am : prevent installation. It
517 doesn't do anything useful on *NIX and even seems to be
518 linked wrong by gcc (or me;). Fixes bug #172830
520 2005-06-18 Hans Breuer <hans@breuer.org>
522 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
523 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
524 in function declarations. 'f();' for a function without parameters is
525 a C++ism. Though I can't get any of my compilers to warn about it.
526 Finally fixes bug #142663.
528 2005-06-18 Hans Breuer <hans@breuer.org>
530 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
531 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
532 in function declarations. 'f();' for a function without parameters is
533 a C++ism. Though I can't get any of my compilers to warn about it.
534 Finally fixes the rest of bug #142663.
536 2005-06-18 Hans Breuer <hans@breuer.org>
538 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
539 changes but doesn't hurt anyway. See bug #162034
540 * app/diapsft2renderer.c app/modify_tool.c
541 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
542 instead of messing with internals
543 * app/display.c : give interactive renderers more begin/end render.
544 It is guaranteed that the scale wont change between these.
546 2005-06-18 Hans Breuer <hans@breuer.org>
548 * app/app_procs.c : const correctness for stderr_message_internal
549 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
550 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
551 * app/disp_callbacks.c : don't dereference the to the function call
552 when the function pointer in meant to be checked against 0
553 * app/interface.c : warning fixes by using correct types
554 * app/modify_tool.c : describe_props() members returns const pointer
555 * app/render_libart.c : removed most of the render function again.
556 They happily live in lib/dialibartrenderer.c since almost 3 years
557 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
558 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
559 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
560 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
561 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
562 Both mentioned in bug #159814 and not warned by most other compilers.
563 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
564 trailing colon in the GtkTypeInfo initialization
565 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
566 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
567 between char and gint8
568 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
569 * plug-ins/wpg/wpg.c : consitently use guint8
570 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
571 redefinition warnings for python and xslt plug-ins
573 2005-06-18 Hans Breuer <hans@breuer.org>
575 * lib/diagramdata.c : really get rid of diagram_data_destroy
576 and new_diagram_data [ no previous prototype for `...' is either
577 a sign of missing static or of a function to vanish :-]
579 * lib/geometry.c : apparently the G_INLINE stuff was working only
580 with particular GLib version(s), glib-2.6.4 does not. Conditionally
581 reverting to the old mecanics.
583 2005-06-17 Hans Breuer <hans@breuer.org>
585 * plug-ins/python/pydia-*.c : include order tweaking to
586 get rid of redefinition warnings. Ensure to include <Python.h>
587 before any 'system' header, some dragged in by glib.h
588 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
589 pydia-properties.c(PyDiaProperties_Str)
590 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
591 use %p to format pointers
592 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
593 dont cast to float for %d
594 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
595 use correct pointer type
596 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
597 dont discard qualifier aka dont free const strings
598 * plug-ins/python/pydia-properties.c : casts to PyCFunction
599 * plug-ins/python/pydia-property.c : removed unused function,
600 make ensure_quarks() static
601 * plug-ins/python/pydia-render.c : removed unused vars, use
602 the correct signature for begin_render
603 (dia_py_renderer_finalize): pluged a leak
604 => except -fno-strict-aliasing there is no warning left in
607 2005-06-12 Hans Breuer <hans@breuer.org>
609 * app/filedlg.c : really fix the file extension mismatch on export dialog
610 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
612 2005-06-11 Hans Breuer <hans@breuer.org>
614 * configure.in config.h.win32.h : mark as +cvs (should have been
615 done directly after the 0.94 release)
616 * NEWS : attempt to summarize 2/3 year of development
619 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
622 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
623 app/run_dia.sh --credits > THANKS => Segmentation fault
624 * app/pixmaps/Makefile.am : added group.png and ungroup.png
625 * Makefile.am : work around scrollkeeper bug
626 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
628 * po/*.po : 'noise' produced by make dist
630 2005-06-10 Hans Breuer <hans@breuer.org>
632 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
633 * objects/custom/custom_object.c : ... and use it to avoid
634 complains about missing attribute "show_background". It is
635 safe to leave this uninitialized. Same for flip_* and "text",
636 the latter with comment cause it usually is *not* safe to do
637 it for the general case. Fixes remaining issues with bug #169006
638 which where caused by an incompatible change in the shape file.
640 * app/commands.c : use "gnome-open" instead of "netscape" as
641 fallback for $BROWSER not set. Still not optimal but better
642 to try some common desktop tool than an obsolete browser;)
643 Fixes bug #307142. Also some whitespace changes.
645 * app/interface.c(toolbox_delete): avoid random return value.
646 Patch from Stanislav Brabec, fixes bug #307143
648 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
649 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
650 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
652 2005-06-06 Lars Clausen <lars@raeder.dk>
657 Better support for text edit highlight.
659 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
660 the mainpoint extra visible.
662 2005-06-02 Lars Clausen <lars@raeder.dk>
664 * objects/UML/class_dialog.c:
665 * objects/UML/class.[ch]:
666 The final fixes for mainpoint on UML Class.
668 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
669 Ian Redfern, now in color and with mainpoints! Very pretty!
671 2005-06-02 Hans Breuer <hans@breuer.org>
673 * objects/UML/class_dialog.c : the memory managment with respect to
674 attribute/operation connections was/is a mess. But it should work again ;)
676 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
677 directly from the UML Specification - to show the power of Dia and
678 some weakness. Watch the bug reports following ;)
680 2005-06-01 Hans Breuer <hans@breuer.org>
682 * app/dia.def : export diagram_update_connections_object
683 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
684 Patch from Paolo Bernardi, together with the property setting closes bug #300572
686 2005-06-01 Hans Breuer <hans@breuer.org>
688 * plug-ins/python/pydia-property.c : complete refactoring of property
689 setting, now also supports setting of property arrays
690 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
691 Python namespacing conventions
692 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
693 complete UML Classes with attributes and operations
694 * plug-ins/python/otypes.py : now also show the properties of the objects
696 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
697 (pointers), they might be changed with attributes and opertions changing
699 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
700 were broken. Apparently noone used them before.
702 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
703 which only operate on the DiagramData to the latter file. To get on the DiagramData
704 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
705 but I don't know how to reflect that in the bindings. And for backward compatibility
706 there also is the 'data' member.]
708 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
709 objects/UML/umlparameter.c : describe enums with PropEnumData
711 * app/commands.c(view_show_all_callback) : if there is something selected show
712 that instead of all exisiting objects. If there is noting or all selcted it
713 "Show all" shows the old behaviour.
715 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
716 leaks and use less allocations caused by misguided API. Also some adaption to common
719 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
721 * app/makefile.msc : added new icons and build as console app while
722 not releaseing to the general public
724 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
725 and keep a refernce when storing the a font from style="" in s.font. This should
726 finally allow to have shapes with fully predefined text (and no 'random' crashes)
728 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
729 capable to interpret it's output
731 2005-05-31 Lars Clausen <lars@raeder.dk>
733 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
735 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
737 * configure.in: Added ne in ALL_LINGUAS
739 2005-05-24 Lars Clausen <lars@raeder.dk>
741 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
742 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
745 2005-05-23 Lars Clausen <lars@raeder.dk>
747 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
749 2005-05-21 Lars Clausen <lars@raeder.dk>
751 * lib/diaarrowchooser.c:
752 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
753 'infinite' line (three dots) arrowhead. Fix line length in arrow
754 preview. And fix typo. Fixes bug #303904.
756 2005-05-20 Hans Breuer <hans@breuer.org>
758 * lib/text.c : advice from valgrind and data_string() review:
759 neither g_free() memory on the stack
760 * objects/GRAFCET/boolequation.c : ... nor const strings
761 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
764 * app/diagram.c : a g_object_ref() following g_object_new() is almost
765 always wrong. Why would we need two refernces?
766 * app/app_procs.c : same here.If it crashes later on someone is dropping
767 refernces he does not own, and *that* needs to be fixed. This is reverting
768 "Remember to ref g_object_new'd object" (bug #170972) below, which
769 causes more harm (leaking, hiding bugs elsewhere) than good.
771 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
772 diagramdata_destroy() which was only a wrapper to g_object_unref()
774 * app/display.c(selection_changed) : don't g_strdup_printf() without
775 g_free() later /or/ a C++ comment of me mostly denotes an error
777 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
779 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
780 const gchar* entry it must not eat memory, added a lot of g_free() and
781 some const. Fixed a bunch - i.e. *all* - warnings.
782 * lib/widget.h : removed unused/deleted functions
784 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
785 avoid 'Invalid write of size 4', no luck yet
787 2005-05-19 Lars Clausen <lars@raeder.dk>
789 * objects/UML/class.c:
790 * objects/UML/class.h:
791 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
792 for uml class object. #ifdef'd out right now.
794 2005-05-18 Lars Clausen <lars@raeder.dk>
796 * objects/standard/line.c: Make line adjust its actual endpoints
797 for autogap -- looks and feels better.
799 * objects/standard/arc.c:
801 * app/modify_tool.c: Patch from Grégoire Dooms
802 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
803 shifted arc angle movement.
805 2005-05-16 Hans Breuer <hans@breuer.org>
807 * lib/widget.c : variable declarations need to be at the start of a block,
808 at least as we are not using C++ or C99
810 * plug-ins/python/pydia-property.c : implment the read part for Property
811 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
812 They are working quite well as can be seen with export-object.py
814 * plug-ins/python/codegen.py : prove it once more with the generation of C++
815 or Python code from an UML Diagram. Simply save as .py or .cxx ...
816 * plug-ins/python/Makefile.am : install it
818 2005-05-16 Lars Clausen <lars@raeder.dk>
820 * app/pixmaps/{un}group.png:
821 * app/Makefile.am (ICON_PNG_PAIRS):
822 * app/menus.c (display_menu_items):
823 New icons for grou/ungroup finally added, closing bug #105519.
825 * app/Makefile.am: Dependencies for pixmaps.
827 * app/pixmaps/connectable.png: An icon that actually makes sense
828 for switching connectability.
830 2005-05-15 Hans Breuer <hans@breuer.org>
832 * lib/group.c object/UML/classicon.c : fixed leftovers of
833 'Adding connectionpoint to _move_handle
835 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
836 is *ALWAYS* a memory leak. Plug some more.
839 In preparation to make UML operations/attributes/parameters setable by Python
840 UML class became more StdProp conformant. A nice experience to be the first
841 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
843 * objects/UML/umlattribute.c objects/UML/umloperation.c
844 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
845 split from objects/UML/uml.c and made StdProp aware
846 * objects/UML/class.c : finally make "attributes", "operations", "templates"
847 <template parameters> first class StdProps citizens.
848 (umlclass_load) : removed hand-written parsing for the above, it is all done
849 by object_load_props() now. The old write code is still in place, so be very
850 careful when changing something - at the moment load/save it is 100% compatible
852 * objects/UML/uml.c : now just type registration here, as it is supposed to be
853 * objects/UML/Makefile.am objects/makefile.msc : build the new files
855 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
857 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
858 (darray_prop_adjust_object_records) : don't loop forever
859 (whole file) : use the new (working) way to get on the second level offsets.
860 Also resolved some abbreviations, it is complicated enough without them ;)
861 * lib/proplist.c : even complete list contents may be optional
863 2005-05-15 Hans Breuer <hans@breuer.org>
865 * lib/bezier_conn.c(remove_handles) : don't try to remove
866 non-exisitng handles (patch from Radek Krahl, bug #302273)
868 2005-05-15 Hans Breuer <hans@breuer.org>
870 * plug-ins/metapost/render_metapost.c : locale independent output
871 (Radek Krahl, bug #301866)
873 2005-05-12 Lars Clausen <lars@raeder.dk>
875 * shapes/Cisco/*.{shape,png}:
876 * sheets/cisco*.sheet.in:
877 Updated with color icons from Ian Redfern, closing bug #303889.
878 Added automatic midpoints, not attempt at adjusting them.
880 2005-05-11 Lars Clausen <lars@raeder.dk>
882 * many shapes: Use mid of bounding box for midpoint, better than
883 mid of connection points generally.
885 2005-05-10 Lars Clausen <lars@raeder.dk>
887 * lib/widgets.c: Decided on one way for the ratio thing in arrow
888 size selector: Fixed ratio is on by default and keeps the sizes
889 at the given ratio, but doesn't clamp them to be the same. Fixes
892 * lib/font.c: Fix for bug #303695: Allow more than one entry of
893 each legacy name, thereby correctly encoding bold and italic of
894 the three main fonts. Also use | rather than || to combine slant
895 and weight, so matching works. Had to remove binary search for
896 new font name, but the list is short enough it's not a problem.
898 2005-05-09 Lars Clausen <lars@raeder.dk>
900 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
902 2005-05-08 Hans Breuer <hans@breuer.org>
904 * objects/UML/class.c : Reverted to have no center point.
905 At first it looked as if there was only the bug to not increase
906 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
907 potentially much more dynamic connection points (to the left
908 and right of every attribute/operation). Now simply adding one
909 between see static and dynamic will screw up any existing diagram
910 which makes use of the dynamic connection points. The would all
911 be connected with an off-by-one error. I have no idea how to
912 code around that. But breaking backward compatibility is no
913 option here. Does not completely fix bug #303301 ...
915 * lib/widget.c(dia_font_selector_set_font): actually set the options
916 menu state. So we are not any longer resetting the font style on Apply.
917 Use "UML - Class" dialog as stress text example.
919 * app/command.c : some people insist to close diagrams already
920 closed using tear-off menus. Maybe we should add a dialog
921 "Do you want to call Dr. Watson now?". If there is no diagram
922 to close anymore just do nothing, fixes bug #303221
923 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
924 Calling this with no display to close is a pathological case.
926 * app/diagram.[hc] : moved object.h and other DiaObject stuff
927 to the implementation in preparation of Big Things(tm)
929 * app/interface.c : less warnings and make it compile. strncmp()
930 does not take a char**, neither does gdk_pixbuf_new_from_inline().
932 * objects/makefile.msc plug-ins/makefile.msc : less output
934 2005-05-08 Lars Clausen <lars@raeder.dk>
936 * lib/orth_conn.c (orthconn_init): The right place to set the
937 default autorouting value. Fixes bug #303291.
939 * app/display.c (ddisplay_close): Patch from Radek Krahl
940 (ptasz3k@o2.pl): Fix crash when using from detached menu
943 2005-05-07 Lars Clausen <lars@raeder.dk>
945 * lib/orth_conn.c (orthconn_load): Autorouting should default to
946 off in diagrams that don't have it explicitly. All diagrams
947 should be explicit about it.
949 2005-05-06 Hans Breuer <hans@breuer.org>
951 * app/samples/Self/*.dia : some UML diagrams describing Dia's
952 inner working (or it's future;)
954 2005-04-26 Lars Clausen <lars@raeder.dk>
956 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
957 change to display of mainpoint to be easier to debug autogenerated
960 2005-04-23 Hans Breuer <hans@breuer.org>
962 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
963 plug-ins/python/pydia-properties.h : use lib/ prefix for
964 Dia internal headers with too common names (fixes bug #173061)
966 * app/display.c : stop special casing the first display of
967 a diagram. Every display now has it's own refernce. The initial
968 reference gets dropped when there is no display anymore. See
969 diagram_remove_ddisplay(). Fixes bug #300744.
971 * app/diapsft2renderer.c : locale independent output
972 (Radek Krahl, bug #300847)
973 * app/paginate_psprint.c : fixing use of setlocale() calls
974 (Radek Krahl, bug #300886)
975 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
976 (Radek Krahl, bug #300889)
978 * objects/UML/class.c : fix another crash with the line
979 wrapping code (Gabor Simon, bug #160865)
981 * plug-ins/cairo/diacairo.c : image rendering had an endianess
982 issue (or is this working around a libpixman bug?;)
984 2005-04-21 Lars Clausen <lars@raeder.dk>
986 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
988 * shapes/**/*.shape: All shapes now have midpoints.
990 2005-04-20 Lars Clausen <lars@raeder.dk>
992 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
993 (Radek Krahl): Make sure there's enough handles for the line.
996 * objects/UML/node.c (node_draw): Better drawing method avoids
997 garbage after moving. Fixes bug #301032.
999 2005-04-17 Hans Breuer <hans@breuer.org>
1001 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
1002 changes (whould compile with current cvs and 0.(3|4).0
1004 2005-04-11 Lars Clausen <lars@raeder.dk>
1006 * xmldocs.make (all): Fix to put installed docs in right place
1007 under disable-gnome.
1009 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
1012 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
1013 (Leonardo Boshell): Use standard gnome help if called with Gnome.
1015 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
1016 locale issues for eps output. Fixes bug #173135.
1018 2005-04-10 Hans Breuer <hans@breuer.org>
1020 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
1021 changes (somewhat broken)
1023 * plug-ins/pstricks/render_pstricks.c : still C89 ...
1024 * objects/custom/shape_info.c : ... but with prototypes
1026 2005-04-07 Lars Clausen <lars@raeder.dk>
1029 * plug-ins/svg/render_svg.c:
1030 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
1031 Make decimal separators be correct in save file formats
1032 (non-localized). Fixes bugs #172529 and 172531.
1034 2005-04-06 Lars Clausen <lars@raeder.dk>
1036 * app/create_object.c (create_object_button_release):
1037 * app/modify_tool.c (modify_button_release): Correct activations
1040 2005-04-05 Simon Kågström <ska@bth.se>
1042 * app/app_procs.c: the --show-layers option can now handle numeric
1045 2005-04-05 Lars Clausen <lars@raeder.dk>
1047 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
1048 (Tom Kast): Avoid blockiness caused by bad updates.
1050 2005-04-03 Lars Clausen <lars@raeder.dk>
1053 * lib/beziershape.c: Main points. A crude solution, having the
1054 center in the middle of the bb. Shows a bug in the distance_from
1055 code for polyshape when a side is horizontal.
1057 2005-04-02 Lars Clausen <lars@raeder.dk>
1059 * plug-ins/pstricks/render_pstricks.c:
1060 * plug-ins/xfig/xfig-export.c: Patch from Radek
1061 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
1063 2005-04-02 Hans Breuer <hans@breuer.org>
1065 * lib/dia_image.c(dia_image_filename) : return the path
1066 again. (bug #172416, Radek Krahl)
1068 2005-04-01 Steve Murphy <murf@e-tools.com>
1070 * configure.in: Added "rw" to ALL_LINGUAS.
1072 2005-03-31 Lars Clausen <lars@raeder.dk>
1074 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
1076 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
1079 * objects/network/basestation.c: Main points.
1081 2005-03-27 Hans Breuer <hans@breuer.org>
1083 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
1084 * app/pixmaps.h : removed arrow.xpm
1085 * lib/Makefile.am : added diamarshal
1086 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
1087 => makes 'make dist' pass and produce a useable package
1089 * po/*.po : 'noise' profuced by make dist
1091 2005-03-24 Lars Clausen <lars@raeder.dk>
1093 * objects/flowchart/parallelogram.c (pgram_update_data):
1094 * objects/flowchart/ellipse.c (ellipse_update_data):
1095 * objects/flowchart/diamond.c (diamond_update_data):
1096 * objects/flowchart/box.c (box_update_data): Main points.
1098 * objects/custom/custom_object.c (custom_create):
1099 * objects/custom/shape_info.h:
1100 * shapes/Assorted/square.shape:
1101 * objects/custom/shape_info.c (load_shape_info):
1102 * doc/shape.dtd: Added main point support to shapes, and an
1103 example of how to use it.
1105 2005-03-21 Lars Clausen <lars@raeder.dk>
1107 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
1108 unnormalize from same point as you normalize, or else!
1110 2005-03-20 Lars Clausen <lars@raeder.dk>
1112 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
1113 Remember to ref g_object_new'd object.
1115 2005-03-19 Hans Breuer <hans@breuer.org>
1117 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
1118 have configurations, fixes bug #170962
1120 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
1121 or better not used any longer. Fixes bug #169142.
1123 * lib/element.c(element_update_connections_rectangle): don't initialize
1124 the eighth point twice but instead the nineth once
1126 * objects/standard/bezier.c : no C++ comments *please*
1128 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
1130 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
1131 * plug-ins/python/pydia-image.c : ... so, don't do it!
1133 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
1134 also named colors via pango_color_parse()
1136 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
1138 * lib/libdia.def : updated externals
1140 * app/object_ops.c : still not C99 everywhere
1142 2005-03-19 Hans Breuer <hans@breuer.org>
1144 * lib/autoroute.c : at least it should compile ;)
1146 2005-03-19 Lars Clausen <lars@raeder.dk>
1148 * lib/autoroute.c: Orthconns now do autogap.
1150 2005-03-17 Lars Clausen <lars@raeder.dk>
1152 * app/authors.h: Added Gregoire Dooms for gap stuff.
1154 * objects/standard/polyline.c: Patch from Grégoire Dooms
1155 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
1157 * objects/standard/bezier.c: Patch from Grégoire Dooms
1158 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
1162 * objects/UML/state_term.c:
1163 * objects/UML/large_package.c:
1164 * objects/UML/node.c:
1165 * objects/UML/object.c:
1166 * objects/UML/small_package.c:
1167 * objects/UML/state.c:
1168 * objects/UML/usecase.c:
1169 * objects/UML/note.c:
1170 * objects/UML/actor.c:
1171 * objects/UML/classicon.c:
1172 * objects/UML/component.c:
1173 * objects/Misc/analog_clock.c:
1174 * objects/Jackson/requirement.c:
1175 * objects/Istar/goal.c:
1176 * objects/Istar/actor.c:
1177 * objects/FS/function.c:
1178 * object/standard/box.c:
1179 * objects/ER/entity.c:
1180 * objects/ER/relationship.c:
1181 * objects/ER/attribute.c: Main points added. Distance_from fixed
1182 in attribute, broken in relationship, I* goal, Jackson
1183 requirement, analog_clock, all non-rectangular UML elements,
1186 * lib/element.[ch]: New method to help update connection points.
1188 * app/menus.c: Change Help/Manual to Help/Contents to follow
1191 * objects/standard/line.c:
1192 * lib/geometry.[ch]:
1193 * objects/standard/bezier.c: Patch from Grégoire Dooms
1194 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1195 bezier objects. Autogap nowchanged to be a function of the
1199 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1202 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1203 CP_FLAG_ANYPLACE connpoints.
1205 2005-03-16 Lars Clausen <lars@raeder.dk>
1207 * app/interface.c (create_tools): Removed debug printf.
1209 2005-03-15 Lars Clausen <lars@raeder.dk>
1211 * lib/widgets.[ch]: Constification.
1213 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1216 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1218 * lib/connectionpoint.h: Flags for connection points.
1220 * app/create_object.c (create_object_motion):
1221 * app/modify_tool.c (modify_motion): Minor refactoring.
1223 * app/object_ops.c (object_find_connectpoint_display): Extend with
1224 finding connpoints that cover entire objects.
1226 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1228 * objects/custom/custom_object.c (custom_setup_properties): Avoid
1231 2005-03-13 Hans Breuer <hans@breuer.org>
1233 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1235 2005-03-13 Hans Breuer <hans@breuer.org>
1237 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1238 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
1239 dia_svg_style_copy(), dia_svg_style_init()
1241 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1244 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1245 not wrapped in the style attribute
1247 * plug-ins/svg/svg-import.c : implement nested group handling and style
1248 'style inheritance'. Still no transformations, no <image/>, no <style/>
1251 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1252 the latter is for programmers.
1253 Also be more tolerant if the document root namespace is not 'svg'. If the svg
1254 namespace is defined in the file search for the top node including svg. This
1255 allows us to re-read the svg part of our own shape format.
1257 * lib/libdia.def : there is no give_focus_to_object
1258 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
1259 type as an expression
1261 * lib/geometry. c : use G_IMPLEMENT_INLINES
1262 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1264 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1265 gone when trying to remove the focus
1267 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1268 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1269 case of this plug-in, i.e. producing output files]
1271 2005-03-13 Lars Clausen <lars@raeder.dk>
1273 * lib/Makefile.am (BUILT_SOURCES):
1274 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1275 the building of the icons header files.
1276 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1278 2005-03-13 Hans Breuer <hans@breuer.org>
1280 * configure.in : require Cairo 0.3.0
1281 plug-ins/cairo/diacairo.c : changed to match ;-)
1283 * app/app_procs.c() : new function dump_dependencies()
1284 which gets called by: dia --version --verbose
1285 and may help to track version dependent problems in
1288 * lib/font.c : reverted to previous version cause using
1289 not implemented Pango API did not improve the issue.
1290 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1291 for more information.
1293 * lib/dialinechooser.c : a little shrinking of the
1294 initial size (to work around line wrappjing the right
1297 2005-03-11 Lars Clausen <lars@raeder.dk>
1299 * app/textedit.c: Concentrate start/end editing in single functions.
1301 2005-03-10 Lars Clausen <lars@raeder.dk>
1304 * lib/object.h: Added new object function to allow the object to
1305 be notified when its text is being edited.
1308 * app/modify_tool.c:
1311 * lib/focus.c: Remove sideeffects from focus objects, add getter
1314 2005-03-09 Lars Clausen <lars@raeder.dk>
1316 * lib/Makefile.am (dia-lib-icons.h):
1317 * app/Makefile.am: Minor cleanup.
1319 2005-03-06 Hans Breuer <hans@breuer.org>
1321 * app/app_procs.c : avoid "assignment within conditional expression"
1322 and handle -L for the GOption case as well.
1324 * lib/widget.c : strchr() does not return -1 on not found but NULL;
1325 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
1326 indirection from 'const int '
1328 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
1329 large_arc, thus produce correct arc output (like diasvg.py does;),
1332 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
1333 from objects/custom/shape_info.c to be shared with object/custom and
1334 plug-in/svg -> finally the C based svg-import reads pathes again.
1335 Added arc parsing while I was there, which fixes bug #169191
1336 * objects/custom/shape_info.c(parse_path) :
1337 * plug-ins/svg/svg-import : reuse above function
1338 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1339 But in general this does only support a small subset of what is
1342 2005-03-06 Lars Clausen <lars@raeder.dk>
1344 * objects/UML/association.c: Patch from Dave Klotzbach applied:
1345 Add visibility to association arrow. Fixes bug #157012.
1347 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1348 closing bug #161040.
1350 * app/layer_dialog.c (create_button_box): Use stock icons instead
1351 of homemade onces. Gets us rid of four more XPMs.
1353 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
1355 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
1356 This option permits command line control of which layers are visible.
1357 Useful when automatically exporting multiple versions of the same
1358 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
1359 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
1360 and made it static since its only used in that file.
1361 * app/authors.h: added myself
1362 * doc/en/dia.1: documented the switch
1363 * doc/en/usage-layers.xml: ditto
1365 2005-03-05 Alan Horkan <horkana@tcd.ie>
1367 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
1368 this restores how Dia behaved before the GTK2 port and seems to help
1369 allow the toolbox to be more easily resized. Bug #108891.
1371 2005-03-05 Lars Clausen <lars@raeder.dk>
1373 * Civil/civil_motor.shape:
1374 * Civil/civil_rotor.shape:
1376 * Logic/buffer.shape:
1377 * Logic/connector.shape:
1378 * Logic/inverter.shape:
1384 * shapes/Assorted/arrow-left-up.shape:
1385 * shapes/Assorted/heptagon.shape:
1386 * shapes/Assorted/star5.shape:
1387 * shapes/Assorted/trapezoid.shape:
1388 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
1389 defaults, see bug #169143.
1391 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
1394 * doc/en/Makefile.am: Finally figured out the right way to ask for
1395 the manpage xslt. Closes bug #144539.
1397 2005-03-01 Lars Clausen <lars@raeder.dk>
1399 * lib/Makefile.am (nodist_include_HEADERS):
1400 * app/Makefile.am: Correctly generate these files from PNGs with
1405 * lib/widgets.c: Refactor toggle button factory to allow inline
1408 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
1410 * app/makefile.msc (ICON_PNG_PAIRS):
1411 * app/dia-app-icons.h: Updated with more icons.
1414 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
1417 * app/interface.c (create_display_shell):
1418 * app/layer_dialog.c (dia_layer_widget_init):
1419 * lib/dia_image.c (dia_image_get_broken): Use inlined data
1422 * app/display.c (ddisplay_close): Removed unused includes.
1424 2005-03-01 Lars Clausen <lars@raeder.dk>
1426 * app/sheets.c (create_object_pixmap): Create a placeholder image
1427 for when the real image is missing. Better than crashing:)
1430 2005-02-25 Hans Breuer <hans@breuer.org>
1432 * app/app_procs.c : don't requets to open a default display with
1433 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
1435 2005-02-22 Lars Clausen <lars@raeder.dk>
1437 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
1440 2005-02-19 Lars Clausen <lars@raeder.dk>
1442 * app/menus.c (display_menu_items): Applied patch from bug #94019:
1443 Menu cleanup and addition of icons. Also a few additional stock
1446 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
1449 2005-02-14 Lars Clausen <lars@raeder.dk>
1451 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
1453 2005-02-13 Lars Clausen <lars@raeder.dk>
1455 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
1456 width. Seems to work. Once tested some more, needs old code
1459 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
1460 warning by escaping & properly.
1462 2005-02-06 Lars Clausen <lars@raeder.dk>
1464 * app/filedlg.c (file_export_callback): Set correct extension as
1465 soon every time the dialog is shown. Fixes bug #162535.
1467 * app/display.c (ddisplay_set_origo): Use more standard
1470 * app/modify_tool.c (modify_motion):
1471 * app/create_object.c (create_object_motion): Put coordinates of
1472 handle/object in status bar while moving. Fixes bug #163164.
1474 2005-02-03 Lars Clausen <lars@raeder.dk>
1476 * lib/.cvsignore: Added generated files diamarshal.[ch]
1478 2005-02-02 Lars Clausen <lars@raeder.dk>
1480 * configure.in: Add GLIB_GENMARSHAL def as suggested in
1481 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
1482 Now compiles on Linux.
1484 2005-02-01 Lars Clausen <lars@raeder.dk>
1486 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
1487 need to translate the empty string. Especially not after
1488 g_assert_not_reached(). Fixes bug #165966.
1490 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
1492 * objects/UML/activity.c : add fill- and line-colour properties
1493 [applied by Hans Breuer, fixes bug #163260]
1495 2004-01-28 Hans Breuer <hans@breuer.org>
1497 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
1498 update provided by Alan Horkan (fixes bug #159592)
1500 2004-01-28 Hans Breuer <hans@breuer.org>
1502 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
1503 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
1504 generalization, dependancies, parameterized classes ...
1505 * plug-ins/xslt/styleshetts.xml : refernce it
1506 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
1508 2004-01-28 Hans Breuer <hans@breuer.org>
1510 * objects/UML/transition.c : fill out the extra_spacing struct
1511 in the OrtConn member, in order to avoid artifacts when draggin
1512 the transition. (patch by Peter Allin, bug #144956)
1514 2004-01-15 Hans Breuer <hans@breuer.org>
1516 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
1517 to something differnt than 0. Apparently there are case where Dia misses
1518 to appropriately set it before requesting a dashed line (simple line with
1519 arrow as described in bug #151716)
1521 * lib/dia_dirs.c : special casing for drive letters which I broke with
1524 2005-01-13 Hans Breuer <hans@breuer.org>
1526 * app/interface.c(create_sheet_page) : remved dead long time code
1528 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
1529 it is availbale via header - which is the better style anyway
1531 2004-12-31 Hans Breuer <hans@breuer.org>
1533 * lib/dia_dirs.c(dia_get_canonical_path) : complete
1534 rewrite to handle something like /mnt/some/where/../else
1535 too. Workaround for bug #162637.
1536 * app/filedlg.c : call gtk_file_chooser_set_current_name()
1537 to workaround gtk_file_chooser_set_filename() not setting
1538 it if the file does not exist
1540 * sheets/Jackson.sheet.in app/menus.c : fixed typos
1541 (Frank Arnold, bug #161676)
1543 2004-12-31 Steffen Macke <sdteffen@gmail.com>
1545 * doc/pl/*.xml: Added XML prolog
1546 * makefile.msc: Added libxslt, fixed libxml, libart
1548 2004-10-29 Alexander Shopov <ash@contact.bg>
1550 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
1552 2004-12-29 Lars Clausen <lars@raeder.dk>
1554 * configure.in: Make gnomeprint be truly off by default (typo) and
1555 show optional compilation correctly.
1556 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
1558 2004-12-22 Hans Breuer <hans@breuer.org>
1560 * lib/widgets.c : destroy handlers can be called more than once,
1561 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
1563 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
1565 * app/display.c : temporary debug code showing the
1566 timing the rendering
1568 * app/dialibartrenderer.c(draw_string) : removed dead
1569 code loading and leaking font and face
1571 2004-12-15 Hans Breuer <hans@breuer.org>
1573 * app/display.c : actually use the selction-changed signal for something
1574 useful. Show selections representation on statusbar.
1575 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
1576 * app/diagram_tree.c : use new function (as in app/display.c) and only
1577 poke into property internals at one place
1578 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
1581 2004-12-12 Hans Breuer <hans@breuer.org>
1583 * lib/libdia.def app/dia.def : updated externals
1585 * objects/custom/custom_object.c : custom_destroy is called per object.
1586 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
1587 reference to it. Fixes e.g. bug #158288, #160550, ...
1589 * objects/UML/association.c(association_draw) : completed porting to
1590 draw_polyline_with_arrows()
1591 (association_update_data_end) : fixed typo in point compare
1592 (association_update_data) : for name placement take degenerated
1593 segements into account. Together this fixes bug #143891
1595 2004-12-11 Hans Breuer <hans@breuer.org>
1597 * lib/widgets.c(set_size_sensitivity) : revert inverted
1598 logic for arrorw size selections, fixes bug #160527
1600 2004-12-11 Hans Breuer <hans@breuer.org>
1602 * lib/widgets.c(dia_font_selector_set_font) : initialize
1603 the font style widget, too. Gets rid of empty font
1604 style and thus default broken font style, e.g. UML::class_name
1606 * lib/widgets.c(dia_color_selector_more_callback) : fill
1607 the color palette from dynamic menu entries and also
1608 preselect the current color to the last select entry
1610 * plug-ins/python/pydia-diagramdata.c : hold a reference
1611 to the underlying GObject
1613 * app/Makefile.am app/diagrid.h : new file containing the
1614 grid 'class' moved from DiagramData to Diagram.
1615 Also moved pagebreak_color and guides cause they are only
1616 used for visual appearance not 'data'.
1617 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
1618 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
1621 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
1622 lib/libdia.def : get rid of new_diagram_data()
1623 Diagram _is_ DiagramData (and does not have one any longer,
1624 just a compatibility pointer)
1626 * lib/diarenderer.h : a small doc improvement
1628 2004-12-11 Hans Breuer <hans@breuer.org>
1630 * objects/UML/class.c : line wrapping code buffer
1631 overrun fixed by Gabor Simon, bug #160865
1633 2004-12-11 Hans Breuer <hans@breuer.org>
1635 * plug-ins/python/pydia-diagram.c : hold a reference
1636 to the diagram in PyDiaDiagram, avoids bug #159080
1637 [another way to avoid is to detroy the dialog by
1638 clsoing it. But now there is still a diagram to
1639 apply the changes to, even if it's thrwon away just
1642 2004-12-10 Hans Breuer <hans@breuer.org>
1644 * **/*.c : fixed a bunch of warnings, not only for -ansi
1645 (still too many of them, but -ansi works)
1647 prop_geomtypes.h prop_geomtypes.c:306: warning: static
1648 declaration for `fontsizeprop_reset_widget' follows non-static
1649 dia_dirs.c:196: warning: return discards qualifiers from
1653 shape_info.c:121: warning: static declaration for `parse_path'
1657 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
1658 arrow.c:244: warning: unused variable `i'
1659 arrow.c:245: warning: unused variable `p'
1660 arrow.c:246: warning: unused variable `zzr'
1662 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
1663 finally removed c++ comments
1665 objects/Istar/goal.c : initialize connections::directions
1666 while I was there - helps autorouting
1668 * objects/KAOS/metaandorrel.c objects/Istar/link.c
1669 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
1670 (it would be quite simple to add image-from-memory support
1673 * pydia-*.h : warning: no newline at end of file
1675 * plug-ins/gprint/diagnomeprint.c : allow to unregister
1676 and follow new unique name naming convention
1677 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
1680 2004-12-07 Hans Breuer <hans@breuer.org>
1682 * objects/UML/message.c : better default for initial text placement
1683 a suggested in bug #154306, Henning Mersch
1684 * objects/UML/constraint.c : doing the same
1686 * app/filedlg.c : include persistence.h for persistence_get_integer
1687 * lib/libdia.def export it
1689 2004-12-05 Hans Breuer <hans@breuer.org>
1691 * app/grid.c : respect dynamic grid during snap-to, fixes
1692 bug #135124, Dmitriy Morozov. Added some additional magic
1693 to make the grid size more useable.
1695 2004-12-05 Hans Breuer <hans@breuer.org>
1697 * app/app_procs.c : make it compile for the HAVE_POPT and
1698 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
1700 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
1701 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
1702 when interactive. Fixes bug #119329
1704 * plug-ins/cairo/diacairo.c : adapt to new type naming
1705 scheme (introduced by accident;-) for pixbuf-*
1706 * app/app_procs.c : reflect both type name changes
1708 2004-12-04 Hans Breuer <hans@breuer.org>
1710 * objects/standard/image.c : fix the correct warning
1711 `image_file_name' might be used uninitialized
1713 * app/filedlg.c : near complete rewrite
1714 - removed 'related dialog', GtkOptionMenu, most global vars,
1715 also don't hide the dialog but let it go.
1716 - added: filter view by extension, hopefully working diagram
1717 referencing, GtkComboBox usage
1719 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
1720 of im/export filter entries. So the user interface reflects
1721 the dynamic nature of pixbuf loaders
1723 * lib/filter.[ch] : implement filter_unregister_*port
1724 lib/libdia.def : added new functions
1725 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
1726 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
1727 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
1728 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
1729 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
1730 use them in _plugin_unload () thus all these plug-ins
1731 can be loaded used and unloaded during Dia's runtime
1733 2004-12-04 Lars Clausen <lars@raeder.dk>
1735 * lib/diagramdata.h: Access methods for units defined per diagram.
1737 * lib/font.c (dia_font_new_from_style): More proper object creation.
1739 * lib/properties.h: Refactored the PROP_STD_* macros to allow
1742 * app/diagram.c (diagram_init): Force filename to be absolute
1743 path, easing the job for load/save.
1745 2004-12-03 Hans Breuer <hans@breuer.org>
1747 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
1748 added dia_font_set_height, dia_font_copy (note to self: don't try to
1749 maintain these from the *NIX side ;)
1751 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
1752 the new color selection anymore
1753 * objects/UML/class_dialog.c : with the above change it would have been more
1754 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
1755 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
1757 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
1758 (used in object vtable) and make its prototype match
1760 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
1761 correlate any of these strange crashing bug with it, but assume bad things to
1762 happen when one passes stack allocated stuff to gtk_type_unique()
1764 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
1765 not there. Fixes most of the warnings from bug #156996
1767 * lib/makefile.msc : rules to generate diamarshal.[ch]
1769 2004-11-29 Hans Breuer <hans@breuer.org>
1771 * app/disp_callbacks.c : reenable so-called preedit
1772 as described in bug #158859, Etsushi Kato
1773 Also fixed some compiler warnings while there.
1775 * objects/standard/image.c(get_directory) : make
1776 the documentation match the implementation.
1777 (image_save) : don't write a leading slash on
1780 * plug-ins/gprint/diagnomeprintrenderer.c :
1781 switched to gnome-print-pango usage
1783 * app/app_procs.c configure.in : although Dia
1784 is not threaded it appears as if we have to
1785 g_thread_init() to avoid crashing in some
1786 libraries which are thread enabled
1788 * lib/diamarshal.list lib/Makefile.am : start of
1789 using GSignal to clean up some object relations
1790 * lib/libdia.def : export marshallers
1791 * app/diagram.[ch] : emit signals when REMOVED,
1793 * app/display.c : added a connection to
1794 SELECTION_CHANGED to test the new signal stuff
1796 * app/diagram.c : fixed diagram_finalize while I
1799 2004-11-28 Hans Breuer <hans@breuer.org>
1801 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
1802 the text if conversion to current locale fails. [This is actually
1803 using code written four years ago;]
1804 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
1806 * objects/standard/image.c(image_load) : be more robust against
1807 filenames which seem to be absolute
1809 2004-11-27 Hans Breuer <hans@breuer.org>
1811 * app/filedlg.c(file_save_callback) : convert to
1812 filename encoding before passing to diagram_save()
1813 Fixes bug #158381, thanks to Robert Ögren
1815 2004-11-27 Hans Breuer <hans@breuer.org>
1817 * lib/dialibartrenderer.c : sometimes its good to read
1818 compiler warnings. Not only define renderer_finalize
1819 but actually *use* it. Should plug a potential huge
1822 * configure.in plug-ins/Makefile.am
1823 plug-ins/gprint/Makefile.am : build the experimental
1824 gnomeprint plug-in on *NIX, too.
1825 * plug-ins/gprint/diagnomeprint.c : don't include
1826 specific (private) backend headers but instead select
1827 the desired backend via config key setting
1829 * lib/diagdkrenderer.c : add 1 to size of filled arc
1830 to be rendered by gdk. Fixes bug #150896.
1832 * plug-ins/gprint/diagnomeprint.c
1833 plug-ins/gprint/diagnomeprintrenderer.c : added magic
1834 to better match page and dash sizes
1836 2004-11-27 Hans Breuer <hans@breuer.org>
1838 * plug-ins/shape/shape-export.c : it's g_strdup_printf
1840 2004-11-27 Hans Breuer <hans@breuer.org>
1842 * app/app_procs.c : mention eps-builtin aka. "using
1843 latin1", does not fix the eps-pango issues but #150571
1845 2004-11-27 Hans Breuer <hans@breuer.org>
1847 * sheets/Cybernetics.sheet.in : changed encoding to
1848 utf-8, patch from Takeshi AIHANA, fixes #149580
1850 2004-11-27 Hans Breuer <hans@breuer.org>
1852 * objects/custom/custom_object.c : many existing shapes
1853 rely on a square default size, revert to it although
1854 it originally was by a typo. Fixes bug #148527.
1856 2004-11-27 Hans Breuer <hans@breuer.org>
1858 * app/load_save.c(dia_cleanup_autosave)
1859 app/diagram.c : don't use dia->filename if already
1860 freed and dont use printf at all.
1862 * app/paginate_psprint.c : not only set the renderer::paper
1863 but also renderer::is_portrait. Should fix bug #142524
1865 2004-11-26 Hans Breuer <hans@breuer.org>
1867 * dia.desktop.in : added Bug Buddy headers (as seen
1868 in planner). Hopefully the automatically filling of
1869 bugs is more meaningful by this.
1871 * objects/custom/custom_util.c objects/standard/image.c
1872 lib/plug-ins.c : getting rid of deprecated g_dirname,
1873 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
1874 bytes inside a block of size 44 free'd
1876 * lib/persistence.c(persistence_load_list) : don't
1879 * lib/diaerror.[ch] : (new file) start of better error handling
1880 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
1881 added new files/funcs
1882 * lib/proplist.c lib/propinternals.h (prop_list_load) :
1883 allow to propagate error to caller. Also set PXP_NOTSET
1884 to avoid applying unset properties, fixes bug #155255
1885 * lib/propobject.c lib/prop_sdarray.c : still spewing
1886 g_warnings but now with context information
1888 * app/filedlg.c : more absolute filenames where required
1889 and strip them where we need the filename only
1890 Also explicit DONT choose gnome-vfs backend cause its
1891 threading appears to crash Dia - at least in GNOME build,
1894 2004-11-26 Hans Breuer <hans@breuer.org>
1896 * app/filedlg.c : don't use relative filenames for
1897 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
1899 (export_set_extension) : if we don't have a filename don't
1900 use it in strrchr() to avoid crashing
1902 2004-11-23 Hans Breuer <hans@breuer.org>
1904 * app/app_procs.c : fixed build for the GNOME case
1905 (let's rip out POPT and depend on glib-2.6, please ;-)
1907 2004-11-23 Hans Breuer <hans@breuer.org>
1909 * app/app_procs.c : fixed typo which broke the
1910 build for HAVE_POPT case
1912 2004-11-21 Hans Breuer <hans@breuer.org>
1914 * app/app_procs.c : some more #if-mess, but one day
1915 we should rely on GLib's 2.6 Option Parser alone
1917 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
1918 and height for RoundRect() - otherwise size depends on offset,
1919 shorten the unique name
1921 * plug-ins/python/diamodule.c : provide a unique name
1922 for python filters as well
1924 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
1925 by using the right colors (need black background cause we
1926 are tinitng it with the real color later)
1928 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
1929 instead of hardcoded slahes, improved portability
1931 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
1932 plug-in. Also added some more error reporting (e.g. no printer driver)
1934 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
1935 plug-ins/makefile.msc : resurrection of the gnome print renderer.
1936 Kinda works (alpha quality) for export but does not print yet.
1937 With bug #158972 resolved this does even work on win32 :-)
1939 2004-11-07 Hans Breuer <hans@breuer.org>
1941 * doc/diagram.dtd : <composite> can have <composite/>,
1942 <font/> has two 'optional' atributes 'style' and 'family',
1943 these are used to store new (since 0.91) font info.
1944 With this changes non of the issues in bug #147431 remains.
1946 * plug-ins/python/otypes.py : starting to implement an
1947 'create all known object' file as ne stress test source
1948 for the dtd and Dia in general.
1950 2004-11-06 Hans Breuer <hans@breuer.org>
1952 * app/diapsrenderer.c : don't convert to locale but to
1953 "LATIN1", fixes bug #146641
1955 2004-11-06 Hans Breuer <hans@breuer.org>
1957 * app/diagram_tree.c : still no C99 everwhere ...
1958 * lib/libdia.def : update externals
1959 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
1961 * app/app_procs.[hc] : declare, use ...
1962 app/winmain.c : ... and implement dia_redirect_console().
1963 Even though newer Gtk version don't popup a console window
1964 anymore redirecting the error messages to a file in $TEMP appears
1965 to be much more reasonable than just ignoring it. Fixes bug #150777
1966 based on a patch from Steffen Macke
1968 2004-11-06 Hans Breuer <hans@breuer.org>
1970 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
1971 RoundRect() for high level renderer api implementation thus
1972 fixing bug #138744 reported by Lars Clausen
1974 2004-11-06 Hans Breuer <hans@breuer.org>
1976 * app/prefernces.c : applied patch to make showing the diagram
1977 menubar the default (advanced users know how to switch it off)
1978 Fixes bug #150706, Steffen Macke
1980 2004-11-06 Hans Breuer <hans@breuer.org>
1982 * app/commands.c app/commands.h : added view_fullscreen_callback()
1984 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
1985 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
1986 ALso modified to allow handling of unmodified keys again (aren't
1987 there plenty of bug reports for this?
1989 2004-11-06 Hans Breuer <hans@breuer.org>
1991 * objects/UML/class_dialog.c : fixed casts for usage
1992 of dia_color_selector_set_color()
1994 * app/filedlg.c : pass a valid filenames to
1995 gtk_file_chooser_set_filename(), if we don't have a name
1996 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
1997 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
1998 assertion `local_full_path[0] == '/'' failed"
2000 2004-11-06 Lars Clausen <lars@raeder.dk>
2002 * app/properties.c (create_dialog):
2003 * app/diagram_tree_window.h:
2004 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
2005 * app/diagram_tree_menu_callbacks.c:
2006 * app/diagram_tree_window.c:
2007 * app/diagram_tree_menu.c:
2008 * app/diagram_tree.c: Changed to use persistence instead of
2009 strange hacks in preferences.
2011 * lib/persistence.h:
2012 * lib/persistence.c (persistent_list_get_glist): Don't deref null
2013 pointer. New function persistent_list_remove_all, and
2014 fixed persistent_list_remove to ... work!
2016 2004-11-05 Lars Clausen <lars@raeder.dk>
2018 * app/paginate_psprint.c (diagram_print_ps): Call
2019 diagram_print_destroy on destroy rather than delete_event. That
2020 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
2023 2004-11-02 Lars Clausen <lars@raeder.dk>
2025 * objects/UML/class.c (umlclass_load): Actually load the saved
2026 fonts and font sizes. Fixes bug #157016
2028 * configure.in: Require at least GTK+ 2.4.
2030 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
2031 finally, finally. Not quite bulletproof yet, and I need to figure
2032 out a minimum version of Gtk that doesn't spew warnings all over.
2034 * app/diagram.[ch]: diagram_set_filename with const filename.
2036 * app/sheets_dialog_callbacks.c
2037 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
2038 correctly recreated. Still something fishy with the sheet menu in
2039 the dialog after adding a new sheet. Probably the sheet name
2042 2004-11-01 Lars Clausen <lars@raeder.dk>
2044 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
2045 stmping. Now requires g_free here and there.
2047 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
2048 for remembering last sheet, better off as persistent string. Must
2049 hunt down other things like that.
2051 * app/interface.c (create_sheets): Now remembers last sheet
2052 selected again. Fixes bug #157036.
2054 2004-11-01 Hans Breuer <hans@breuer.org>
2056 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
2057 will never become NULL but only point to the next char
2058 which might indeed be \0]
2059 Use tex_escape_string() to avoid writing invalid tex,
2062 * **/* : a bunch of changes caused by trying 'make distcheck'
2063 which still fails, see Bug #144527
2065 2004-10-31 Lars Clausen <lars@raeder.dk>
2067 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
2068 floating point numbers being printed with commas. Fixes bug
2071 * app/interface.c (create_sheet_dropdown_menu): New function to
2072 create the sheet menu, and also allow recreation. Still buggy and
2073 slightly prone to magic.
2075 * objects/UML/class_dialog.c
2076 (attributes_list_selection_changed_callback): Don't try to update
2077 the widgets after they're destroyed. Fixes bug #156706 (I think).
2079 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
2080 adjustement. Fixes bug #154637
2082 * sheets/ER/Makefile.am (PIX):
2083 * sheets/GRAFCET/Makefile.am (PIX):
2084 * sheets/Jackson/Makefile.am (PIX):
2085 * sheets/Istar/Makefile.am (PIX):
2086 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
2087 XPM. Why these have their pictures in sheets rather than shapes I
2088 don't know. Fixes bug #152142.
2090 2004-10-31 Hans Breuer <hans@breuer.org>
2092 * plug-ins/pixbuf/pixbuf.c : when running non interactive
2093 Dia won't call color_init() as it assumes no display. If
2094 we have one as tested ourselve we can as well color_init()
2095 to avoid g_warnings() and produce the right collors.
2098 * app/app-procs.c : try to be a little more helpful
2099 and correct with regard to the command line options.
2100 Renamed --export-to-format to --export-filter and some
2101 other string changes
2103 2004-10-31 Hans Breuer <hans@breuer.org>
2105 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
2106 added GetDeviceCaps() dummy implementation to make
2107 'wmf' compile on Linux, too.
2109 2004-10-31 Hans Breuer <hans@breuer.org>
2111 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
2112 to finally fix the long lasting clipping issue, bug #85831
2113 Also fixed the line style issue for printing on XP and don't
2116 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
2118 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
2119 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
2121 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
2122 some info from the console (soon gone on windoze) to message_error()
2123 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
2124 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
2126 plug-ins/python/diasvg_import.py : re.compile() only once per expression
2127 and some more playing with scaling
2129 * plug-ins/python/makefile.msc : updated
2131 2004-10-30 Hans Breuer <hans@breuer.org>
2133 * shapes/Civil/civil_arrow_right.shape : removed
2134 <aspectratio type="fixed" /> thus allowing to change
2135 width and height independently, fixes #154897
2136 (Serge Robinson) by making it consistent with the
2139 2004-10-30 Hans Breuer <hans@breuer.org>
2141 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
2142 on arrow being NULL, fixes bug #143063
2144 2004-10-30 Hans Breuer <hans@breuer.org>
2146 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
2147 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
2148 removed use of chached variable DiagramData::selected_count
2149 * lib/diagramdata.h : renamed to selected_count_private
2150 (kept for binary compatibility and sanity checks)
2151 * lib/diagramdata.c : more checks on a screwed up selection list
2153 * app/diagram.c(diagram_group_selected) : don't screw up the
2154 DiagramData::selected list, was assignment of parent_list_affected(),
2155 * lib/diagramdata.c (data_select, data_unselect) : protect against
2156 multiple selections of the same object and removement of a not selected
2157 object (apparently caused by the recently added group undo stuff)
2158 together with the above this finally fixes bug #153525
2160 * app/Makefile.am : fix ./autogen.sh ->
2161 app/Makefile.am:171: blank line following trailing backslash
2163 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
2164 ddisplay_do_update_menu_sensitivity() here as well
2166 * configure.in : make the experimental state of the cairo plug-in
2169 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
2170 try to update anything if we can't find an active diagram
2171 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
2173 * configure.in : another attempt to fix bug #156116. If there is
2174 anyone with autotools knowledge reading this - help appreciated ;-)
2176 2004-10-30 Hans Breuer <hans@breuer.org>
2178 * objects/makefile.msc objects/UML/Makefile.am
2179 objects/UML/uml.c objects/UML/transition.c
2180 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
2181 Patch from Peter Allin adds statechart transitions to the UML sheet -
2182 bug #144956 - modified to not print("%s", NULL) which crashes on
2183 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2185 2004-10-30 Hans Breuer <hans@breuer.org>
2187 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
2188 match the website anymore, i.e. sould remain unchanged.
2189 See below and lib/dia_xml.h for the reasoning
2191 * lib/libdia.def : removed dia_color_selector_get_type
2193 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2194 (like broken PNG) and g_warning if appropriate
2196 * app/interface.c : #include "message.h"
2198 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2199 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2200 better to just move diaunitspinner to lib/ instead of polluting
2201 widgets.[hc] even more ;)
2202 * app/makefile.msc lib/libdia.def : updated
2204 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2205 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2207 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2208 do something useful when compiled
2210 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2211 Also some more #ifdefed backends usage.
2213 2004-10-10 Lars Clausen <lars@raeder.dk>
2215 * lib/widgets.c: Better labels for color selector menu.
2217 * app/dia-props.c (diagram_properties_respond):
2218 * app/preferences.c (prefs_get_value_from_widget): Don't assume
2219 that a dia color selector is of type DiaColorSelector:)
2221 * lib/widgets.[ch]: Color selector changed to dynamic menu.
2223 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2226 2004-10-09 Lars Clausen <lars@raeder.dk>
2228 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2229 arrow preview to avoid long arrow heads flipping.
2231 * lib/arrows.[ch]: Support for getting from name to arrow type,
2232 and for listing all arrow names.
2234 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2236 * lib/libdia.def: Added new global functions.
2238 * lib/persistence.[ch]: Two of the persistent_list functions to
2239 return whether the item was found in the list.
2241 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2242 the growing number of sheets.
2244 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2247 2004-10-05 Lars Clausen <lars@raeder.dk>
2249 * objects/UML/association.c: Patch from Harvey Thompson
2250 <harveyandsu@yahoo.com>: Better placement of association texts.
2252 2004-10-03 Lars Clausen <lars@raeder.dk>
2254 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2255 use the fonts in question. Can't set tooltips with the name since
2256 lib objects don't know the tool_tips thing, which is rather
2259 2004-09-19 Hans Breuer <hans@breuer.org>
2261 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2262 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2264 2004-09-19 Hans Breuer <hans@breuer.org>
2266 * dia.desktop.in : string changes as proposed in bug #151822
2268 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2269 appearts not to be needed on Linux and breaks the build
2270 on OSX. Fixes bug #152970
2272 2004-09-18 Lars Clausen <lars@raeder.dk>
2274 * app/commands.c (view_show_all_callback): Add a bit of border
2275 around Ctrl-E'd diagram, for easier select and better view of edges.
2277 2004-09-19 Hans Breuer <hans@breuer.org>
2279 * app/Makefile.am : trying to fix the fix from 2004-02-15
2280 Overwriting AM_LDFLAGS still gave a automake warning and it
2281 also appeard to break linking against gtklibs in a differnt
2282 prefix. Use dia_LDFLAGS instead.
2284 * plug-ins/svg/svg-import.c : initialize 'end' before usage
2285 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2287 * lib/diarenderer.c : don't try to draw lines which are so much
2288 degenerated that their point count became negative, fixes bug #148139
2290 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
2291 strings (NULL from g_strdup())
2293 2004-09-10 Steffen Macke <sdteffen@web.de>
2295 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2296 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2297 * app/create_object.c:
2298 * app/diaunitspinner.c:
2299 * app/disp_callbacks.c:
2301 * app/modify_tool.c:
2302 * lib/prop_geomtypes.c:
2303 * lib/prop_geomtypes.h: made compile with msvc
2305 2004-09-10 Lars Clausen <lars@raeder.dk>
2307 * lib/widgets.c: Insulate conversion from outside API by adding
2308 internal function to set value. Adjustment not appropriate for
2311 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2313 2004-09-07 Lars Clausen <lars@raeder.dk>
2315 * app/diapagelayout.c: Include from widgets.c rather than
2318 2004-09-03 Lars Clausen <lars@raeder.dk>
2320 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2321 as unit-based property testbed.
2323 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2324 and fontsize widgets.
2326 * app/Makefile.am (dia_core_files):
2327 * app/diaunitspinner.h:
2328 * app/diaunitspinner.c:
2330 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2331 lib/widgets.[ch], as it's used in the properties code now.
2333 2004-08-31 Steffen Macke <sdteffen@web.de>
2335 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2337 2004-08-30 Lars Clausen <lars@raeder.dk>
2340 * app/diagram.c (diagram_remove_all_selected): Remove debugging
2345 * app/disp_callbacks.c:
2347 * app/create_object.c:
2348 * app/textedit.[ch]:
2349 * app/modify_tool.c:
2352 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
2353 current input object, multiple inputs per object, and tabbing
2356 2004-08-28 Steffen Macke <sdteffen@web.de>
2358 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
2359 allow separate installer component "Translations"
2361 2004-08-27 Akagic Amila <bono@linux.org.ba>
2363 * configure.in: Added 'bs' to ALL_LINGUAS.
2365 2004-08-26 Steffen Macke <sdteffen@web.de>
2367 * app/makefile.msc: using /subsystem:windows again
2368 * makefile.msc: updated ALL_LINGUAS
2370 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
2372 * configure.in: Add «nb» to ALL_LINGUAS.
2374 2004-08-21 Steffen Macke <sdteffen@web.de>
2376 * plug-ins/dxf/dxf-export.c: Patch from
2377 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
2379 2004-08-17 Lars Clausen <lars@raeder.dk>
2382 * dia.spec (Release):
2388 2004-08-13 Ankit Patel <ankit@redhat.com>
2390 * configure.in: Added "gu" in ALL_LINGUAS.
2392 2004-08-07 Lars Clausen <lars@raeder.dk>
2398 * dia.spec (Release):
2399 * NEWS: New release 0.94-pre6
2401 2004-08-07 Lars Clausen <lars@raeder.dk>
2403 * app/highlight.c (highlight_reset_objects): Unhighlight inside
2407 * plug-ins/shape/shape-export.c: String capitalization fix from
2408 Alan Horkan <horkana@tcd.ie>
2410 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
2411 Class object menu kinda work, rather than blow up. Doesn't do a
2412 proper undoable change yet.
2414 2004-08-06 Lars Clausen <lars@raeder.dk>
2416 * app/filedlg.c (file_save_as_callback): Don't remove related
2417 dialogs from the NULL diagram.
2419 2004-08-02 Lars Clausen <lars@raeder.dk>
2424 * dia.spec (Release):
2425 * NEWS: Pre5 with leak fix.
2427 * lib/font.c (dia_font_build_layout): Don't try to save an
2428 allocation of LayoutCacheItem if it breaks layout cache hash.
2429 Also make hash function correct, remove explicit height entry
2430 (it's in pfd), and make sure things are correctly unreffed.
2431 Finally fixes #148141.
2433 * lib/text.c (text_set_attributes, text_set_font): Safely unref
2434 when changing font, and actually set the new font in
2436 (text_get_attributes): Ref copied font.
2438 2004-08-01 Lars Clausen <lars@raeder.dk>
2442 * dia.spec (Release):
2445 * doc/en/dia.xml: Prerelease 4.
2447 * lib/font.c (dia_font_build_layout): Better comparision and
2448 freeing of font cache.
2450 2004-07-31 Lars Clausen <lars@raeder.dk>
2452 * lib/font.c (dia_font_build_layout): Faster update to avoid
2455 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
2456 Correctly initialize export filter variable.
2458 2004-07-25 Lars Clausen <lars@raeder.dk>
2460 * dia.spec (Release):
2465 * doc/pl/dia.xml: Pre3 coming out.
2467 * lib/diarenderer.c (draw_polygon):
2468 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
2469 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
2470 rather than O (letter), and assert num_points > 1 rather than the
2473 * app/recent_files.c:
2476 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
2477 Make filenames conform to filesystem encoding.
2479 * RDP/.cvsignore: Added standard ignore.
2481 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
2482 last entry patch-panel, too.
2485 * shapes/Circuit/*.png:
2486 * shapes/Civil/*.png:
2487 * shapes/Contact/*.png:
2488 * shapes/Electric/*.png:
2490 * shapes/Pneumatic/*.png:
2492 * shapes/flowchart/*.png:
2493 * shapes/jigsaw/*.png:
2494 * shapes/network/*.png:
2495 * shapes/sybase/*.png:
2497 * dia_gnome_icon_large.png:
2498 * doc/pl/graphics/*.png: Set -kb for PNGs.
2500 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
2502 2004-07-22 Lars Clausen <lars@raeder.dk>
2508 * dia.spec (Release):
2509 * configure.in: Update to version 0.94-pre2.
2511 * app/load_save.c (diagram_data_write_doc): Use new namespace
2514 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
2515 hidden objects properties.
2517 * objects/standard/line.c: Remove halffinished line gap box from
2520 * app/paginate_psprint.c:
2521 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
2522 Immidi): Close export and print dialog with diagram as well.
2525 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
2526 borelli): Remove deprecated stuff (#137693)
2528 * app/dia-props.c (create_diagram_properties_dialog): Patch from
2529 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
2532 2004-07-21 Ray Strode <rstrode@redhat.com>
2534 * dia/dia.desktop.in: Add MimeType line to desktop file
2537 2004-07-18 Hans Breuer <hans@breuer.org>
2539 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
2540 sheets/UML/*.png : icons in png format
2541 Partial fixup of stuff broken with the following comment:
2542 "7 days : xpm->png, namespace fix, first rotation bits."
2544 * app/load_save.c(read_objects) : don't add objects to the layer.
2545 This function is called recursively and only the topmost objects
2546 belong in the layers object list. Fixes bug #145417 and is the
2547 the real fix for bug #142480
2549 * app/app_procs.c : make the --size hack even uglier, but work again
2551 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
2552 but g_free() what is returned by g_build_filename()
2554 * objects/custom/custom_object.c(custom_destroy) : handle all enum
2555 values in switch to get rid of the warning
2557 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
2558 of setlocale()/strtod()
2559 * lib/dia_svg.c : dito
2560 * lib/dia_xml.c : almost
2562 * plug-ins/python/group_props.py : use the string representation of
2563 value to ensure "unique values". If the strings would not be different
2564 the user cann't see the difference either
2566 2004-07-17 Lars Clausen <lars@raeder.dk>
2568 * lib/persistence.h: Have "void" in prototypes (#142663)
2570 * lib/widgets.c (dia_font_selector_init): Better string handling
2573 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
2575 * objects/standard/image.c (image_load): Use path of diagram
2576 rather than running directory as base for image file place.
2578 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
2581 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
2582 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
2584 * Re-added new sample diagrams binarily.
2586 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
2588 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
2589 Disabled keyboard accels when dragging an object.
2591 2004-07-14 Lars Clausen <lars@raeder.dk>
2593 * app/grid.c (snap_to_grid): Use diagrams grid setting to
2594 determine hex grid snap.
2596 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
2598 * app/interface.h: Avoid multiply defined symbols (#147396)
2600 2004-07-10 Lars Clausen <lars@raeder.dk>
2602 * app/sheets_dialog_callbacks.c (write_user_sheet):
2603 * lib/sheet.c (load_register_sheet): Don't introduce double
2604 slashes in namespace.
2606 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
2607 old diagrams, or XSLT will barf all over.
2609 * shapes/RDP/place.shape:
2610 * shapes/RDP/transition.shape:
2611 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
2612 shapes to use those.
2614 2004-07-07 Lars Clausen <lars@raeder.dk>
2617 * doc/{en,pl}/dia.xml:
2620 * NEWS: First prerelease of version 0.94. Now with release
2621 versions in a branch and main devel in the trunk.
2623 2004-07-05 Hans Breuer <hans@breuer.org>
2625 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
2626 -std=c89. Mostly //-comments and M_PI -> G_PI
2627 [Istar, Jackson, KAOS were removed from build cause they
2628 simply have *too* much C++ comments ;]
2629 * object/UML/association.c : use g_strdup() not plain strdup()
2630 * app/paginate_psprint.c : avoid storage size of `pipe_action'
2631 isn't known with more portable signal code
2633 * app/app_procs.c : don't call gtk_init() if just --version
2634 is requested (bug #144321, Vladimir Kondratiev)
2636 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
2637 DiaFont* if not NULL
2638 * objects/UML/class.c : moved fill_in_fontdata() to
2639 umlclass_load() to avoid such trouble, though unsure if
2640 this really is an improvement...
2642 * shapes/network/makefile.am : patch-panel added here too
2644 2004-07-04 Hans Breuer <hans@breuer.org>
2646 * sheets/network.sheet.in shapes/network/patch-panel.xpm
2647 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
2648 fixes bug #136629, James McDonald
2650 2004-07-04 Hans Breuer <hans@breuer.org>
2652 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
2653 lib/object_defaults.c : revert changing of Dia's XML namespace
2654 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
2655 about its purpose and relation to real world urls.
2657 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
2658 added comment about when to do so
2659 [Should have been long time ago and probably multiple times
2660 to avoid crashing on older plug-ins]
2661 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
2662 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
2664 * lib/object.c objects/UML/class.c : there are still compilers not
2665 supporting C99 and other GCCISMs like allocating dynamic sized arrays
2667 * objects/UML/class.h : there is a differnce between a list pointer
2668 and a list pointer pointer. We and GLib want the former.
2670 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
2671 if Gtk is initialized. Using gdk_display_get_default () avoids the
2672 app/* dependency and is also closer to the requirements of the
2675 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
2676 some #ifdefed support for Cairo backends not public available yet.
2678 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
2679 windoze platform supports them. This should fix bug #109818, at
2680 least for the majority running NT or above ...
2681 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
2683 * objects/makefile.msc : build Istar, Jackson and Kaos
2685 * objects/UML/class.c(umlclass_load) : don't wrap by default to
2686 keep old diagrams as they were - instead of this nice new effect ;-)
2687 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
2689 * objects/UML/class.c : mark for translation _("Wrap ...
2691 * objects/UML/class.c : more correct types, also some default properties
2692 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
2694 * objects/UML/activity.c : removed a leftover from the
2695 use-localization-for-font-substitution-hack
2697 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
2698 'cvs admin -kb *.png' PNG files should already be *added* as binary,
2699 otherwise they are not readable on line-end-converting-platforms
2701 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
2702 filter_get_by_name()
2704 * plug-ins/python/pydia-property.c : some more g_warnings for
2705 not implemented conversions
2707 * plug-ins/python/group_props.py : ensure unique property values
2708 at the right place. Now something like :
2709 - load an old UML class diagram
2710 - change one of the classes to wrap operations
2711 - select all classes (/Select/Same Type)
2712 - /Dialogs/Group Properties : check wrap_operations, select '1'
2713 - Ok, works like a charm :-)
2715 2004-07-04 Lars Clausen <lars@raeder.dk>
2717 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
2720 2004-07-03 Lars Clausen <lars@raeder.dk>
2722 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
2723 <LAV@VL3143.spb.edu>: Fixes console output problems and some
2724 interactiveness problems.
2726 2004-07-02 Lars Clausen <lars@reader.dk>
2728 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
2729 app isn't interactive.
2731 2004-07-01 Lars Clausen <lars@raeder.dk>
2733 * plug-ins/cairo/diacairo.c: Add init of last field of filter
2734 struct to remove crash.
2736 * sheets/Makefile.am (sheet_in_files):
2737 * shapes/Makefile.am:
2738 * sheets/ChemEng.sheet.in:
2739 * shapes/ChemEng/Makefile.am:
2741 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
2742 Chemical engineering shapes.
2744 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
2745 multiple arguments when using devel script.
2747 * app/display.c (new_display):
2749 * lib/diagramdata.c (new_diagram_data):
2750 * lib/diagramdata.h:
2751 * app/preferences.h:
2752 * app/preferences.c:
2755 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
2756 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
2759 * doc/pl/authors.xml:
2760 * doc/en/authors.xml:
2761 * lib/object_defaults.c (dia_object_defaults_save):
2762 * readme.win32 (BTW):
2763 * lib/persistence.c (persistence_save):
2764 * app/load_save.c (diagram_data_write_doc):
2765 * app/commands.c (help_about_callback):
2766 * README: Fix links to home page.
2769 * app/load_save.c (diagram_data_load):
2770 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
2771 loading, and guard against them when fonting.
2773 * lib/diarenderer.c (draw_rounded_polyline): Patch from
2774 anthonym@overture.com: Make limited rounding a corner-specific
2775 rendering-only thing.
2777 2004-06-30 Lars Clausen <lars@raeder.dk>
2779 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
2780 adjustment: If you can't fix it, at least don't change it.
2782 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
2783 code instead of individual code in here.
2785 2004-06-29 Lars Clausen <lars@raeder.dk>
2787 * objects/UML/association.c: Patch from Kiran
2788 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
2793 * lib/diarenderer.c (draw_rounded_polyline):
2794 * objects/standard/polyline.c (polyline_draw):
2795 * objects/standard/zigzagline.c (zigzagline_draw):
2796 Patch from anthonym@overture.com: Add rounded polylines.
2798 2004-06-27 Lars Clausen <lars@raeder.dk>
2800 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
2802 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
2803 free family list before taking out the pointer we need. Also set
2804 the entry_nr correctly so we get the menu set up right.
2806 2004-06-23 Lars Clausen <lars@raeder.dk>
2808 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
2809 images at the right place.
2811 * objects/Istar/actor.c
2812 * objects/Istar/goal.c
2813 * objects/Istar/istar.c
2814 * objects/Istar/istar.h
2815 * objects/Istar/link.c
2816 * objects/Istar/other.c
2817 * objects/Jackson/domain.c
2818 * objects/Jackson/jackson.c
2819 * objects/Jackson/jackson.h
2820 * objects/Jackson/phenomenon.c
2821 * objects/Jackson/requirement.c
2822 * objects/KAOS/goal.c
2823 * objects/KAOS/kaos.c
2824 * objects/KAOS/kaos.h
2825 * objects/KAOS/metaandorrel.c
2826 * objects/KAOS/metabinrel.c
2827 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
2828 <cp@cetic.be>: Fix instability issues caused by not returning NULL
2829 in *_move_handle and *_move. Also improved the headers with
2830 correct (c) information.
2832 2004-06-22 Lars Clausen <lars@raeder.dk>
2834 * objects/KAOS/goal.c:
2835 * objects/KAOS/other.c:
2836 * objects/Istar/actor.c:
2837 * objects/Istar/goal.c:
2838 * objects/Istar/other.c:
2839 * objects/Jackson/domain.c:
2840 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
2841 <cp@cetic.be>: Fix resize issues.
2843 * app/filedlg.c (file_dialog_hide): Patch from Kiran
2844 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
2845 related dialog. #129520.
2847 * app/dia-props.c (diagram_properties_show): Patch from Kiran
2848 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
2849 a child of its diagram. #129520.
2851 * objects/UML/association.c (association_load): Patch from Kiran
2852 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
2853 text placement. #118313.
2855 2004-06-17 Lars Clausen <lars@raeder.dk>
2857 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
2859 * Makefile.am: Make THANKS only be generated by maintainers.
2861 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
2864 * configure.in: Added three missing Makefiles.
2868 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
2869 diagram-related (save) dialog when closing diagram. To be
2870 extended to other dialogs.
2872 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
2874 * samples/Istar.dia:
2875 * samples/Jackson.dia:
2877 * sheets/Istar.sheet.in:
2878 * sheets/Jackson.sheet.in:
2879 * sheets/KAOS.sheet.in:
2884 * objects/Jackson/*:
2887 * objects/Makefile.am (SUBDIRS):
2888 * sheets/Makefile.am (SUBDIRS):
2889 * samples/Makefile.am: Additions from Christophe Ponsard
2890 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
2893 2004-06-12 Lars Clausen <lars@raeder.dk>
2896 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
2898 * lib/font.h: Toning down comments a bit:)
2900 * lib/font.c (dia_font_build_layout): Playing around with DPI
2902 * objects/UML/association.c (association_load): Avoid crashes on
2905 * objects/UML/association.c: Patch from kimmidi@novell.com:
2906 Improve placement of labels when vertical. Part fix of #118313
2908 * lib/object.c (dia_object_is_selected): Grouped objects are not
2909 selected, only the group itself. Thus, don't crash when grouping
2912 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
2913 on how to represent empty strings. Fixes #143639.
2915 * lib/object.c (dia_object_is_selected): Added comment answer.
2917 2004-06-12 Hans Breuer <hans@breuer.org>
2919 * lib/diagramdata.c lib/object.c : deal with grouped objects
2920 not knowing their parent_layer, i.e. avoid crashing in
2921 dia_object_is_selected() via group_draw() [ Triggered by
2922 playing with the Visio generated svg from bug #143455 ]
2924 * plug-ins/python/diasvg_import.py : started to implement
2925 transformation="translate(...)" and <style/> handling. Also
2926 use some other completely bogus values for em/ex scaling
2928 2004-06-08 Lars Clausen <lars@raeder.dk>
2930 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
2932 2004-06-07 Lars Clausen <lars@raeder.dk>
2934 * app/layer_dialog.c (layer_dialog_set_diagram):
2935 * app/display.c: Layer widget crash more properly dealt with in
2938 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
2939 widget deselect was called during destroy, but called
2940 ddisplay_flush, leading to a new display timeout after renderer
2943 * lib/widgets.c (dia_toggle_button_destroy):
2944 * app/recent_files.c (recent_file_menuitem_create):
2945 * lib/persistence.c (persistence_save_list):
2946 * app/commands.c (edit_delete_callback):
2947 * lib/object_defaults.c (dia_object_defaults_save):
2948 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
2951 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2954 * lib/diagramdata.c (new_layer): Initialize connectibility.
2956 * app/display.c (ddisplay_obj_render):
2957 * app/diagram.c (diagram_find_closest_connectionpoint): Take
2958 connectibility into account.
2960 * app/layer_dialog.h (struct _DiaLayerWidget):
2961 * app/layer_dialog.c:
2962 Connectible toggle updates, now works fairly well.
2964 * app/select.c (select_transitive_callback): Make sure we're only
2965 selecting in the same layer.
2967 2004-06-04 Lars Clausen <lars@raeder.dk>
2969 * app/pixmaps/Makefile.am: Also install connectable images.
2971 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
2972 layer toggles from layer itself. Also update diagram correctly
2973 for visibility. Still need updates for connectivity behaviour.
2975 2004-06-03 Hans Breuer <hans@breuer.org>
2977 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
2979 * lib/diagdkrenderer.c(set_linejoin) : actually set
2980 join_style not cap_style
2981 (set_dashes): with the correct number of dashes
2983 2004-06-03 Lars Clausen <lars@raeder.dk>
2985 * app/modify_tool.c (click_select_object):
2986 * lib/text.c (text_set_cursor):
2987 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
2989 2004-05-31 Hans Breuer <hans@breuer.org>
2991 * lib/object_defaults.c : don't 'failed to load external
2992 entity "NULL"' when the defaults file does not exist,
2993 bug #108764 [again: somehow this got lost]
2995 * app/paginate_gdiprint.cpp : don guess the WMF export
2996 filter used for printing but find it by unique name.
2997 Also update for export_func renaming
2998 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
2999 provide some unique names
3001 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
3002 app/select.c : fix bug #140789 by always checking if there
3003 still is an active diagram before accessing it
3005 * app/defaults.c app/properties.c : user visible string should
3006 not read DiaObject but stay as "Object defaults/properties"
3008 * app/app_procs.c : reduce the hack to pass --size to the
3009 export via user_data to the only filter supporting it. Other
3010 filters would crash on it or do worse ;(
3012 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
3014 2004-05-31 Lars Clausen <lars@raeder.dk>
3017 * lib/widgets.c: Use GtkType rather than guint for
3018 dia_size_selector_get_type.
3020 2004-05-29 Lars Clausen <lars@raeder.dk>
3022 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
3023 that it matches the screen output for selfoverlapping polygons and
3026 2004-05-28 Hans Breuer <hans@breuer.org>
3028 * app/load_save.c : ignore empty groups on load and don't
3029 write empty groups while saving
3030 * lib/group.h (group_update_data): there is no first object
3031 in empty groups and they probably don't need an update at
3032 all. Maybe the shold just not exist ?
3034 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
3035 text positioning as well as drawing of images with alpha
3037 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
3038 HAVE_WINDOWS_H or G_OS_WIN32 is defined
3040 2004-05-28 Lars Clausen <lars@raeder.dk>
3042 * app/pixmaps/Makefile.am (imagedir):
3043 * app/pixmaps/visible.png:
3044 * app/pixmaps/visible-empty.png: New images for the visibility
3045 button in the layer dialog.
3047 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
3048 more border around the button. Still some left when hovering the
3049 mouse or selecting, and the grey background is annoying.
3051 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
3052 visibility connector.
3054 2004-05-26 Lars Clausen <lars@raeder.dk>
3056 * configure.in (DB2MAN): Better check for db2man docbook place.
3057 Need something even better.
3059 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
3061 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3062 extraeneous borders.
3065 * dia_gnome_icon.png:
3066 * samples/render-test.dia: Rendering test from Hans.
3068 2004-05-24 Hans Breuer <hans@breuer.org>
3070 * lib/filter.h : renamed DiaExportFilter::export to
3071 _DiaExportFilter::export_func (should not use c++
3072 keywords (g++ specifc ?) in headers. Same for import
3073 out of pure symmetry reasons
3074 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
3075 app/diagram.c app/filedlg.c : reflect functions renaming
3077 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
3078 under *NIX, too. [If you want something done, do it yourself ;-]
3079 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
3080 with wmf.cpp's GDI usage
3081 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
3082 [For the moment it does not much more than compiling, i.e.
3083 the produced WMF files are invalid, if not created on windoze.]
3085 * configure.in : check for C++ to compile plug-in/wmf
3087 * objects/GRAFCET/boolequation.c : looks like fixing
3088 another leak (untested)
3090 2004-05-23 Hans Breuer <hans@breuer.org>
3092 * acinclude.m4 : another attempt to fix
3093 bug #142032 (still not sure it's the right one,
3094 but works for me(tm), which the other does not ;)
3096 * plug-ins/cairo/Makefile.am
3097 plug-ins/Makefile.am
3098 configure.in : support building the new cairo
3099 plug-in, if given --with-cairo and the cairo
3100 packages are found, see http://cairographics.org
3101 and also http://hans.breuer.org/dia/dia-cairo.htm
3103 * plug-ins/cairo/diacairo.c : make it compile
3104 with DEBUG_CAIRO defined, too.
3106 2004-05-23 Hans Breuer <hans@breuer.org>
3108 * plug-ins/cairo/Makefile.am : initial attempt
3110 * plug-ins/cairo/diacairo.c : a new exporter based on
3111 Cairo http://cairographics.org rendering api. Currently
3112 it just can export PNG and PS but one day it might get
3113 PDF and more almost for free. [It is not yet included
3114 in the *NIX build system due to lack of auto* magic.]
3116 * plug-ins/pixbuf/pixbuf.c : always register the export
3117 filter part. If the user does not want it it can be
3118 disabled by File/Plugins or explicit selected the other
3119 one in the Export Formats List
3121 2004-05-23 Hans Breuer <hans@breuer.org>
3123 * lib/dia_dirs.c : #include "message.h"
3124 lib/widgets.c : #include "persistence.h"
3125 lib/widgets.c(dia_font_selector_init) : still not C99
3126 lib/persitence.h : removed unimplemented prototype
3127 lib/persitence.c(persistence_load_list) : still not C99
3128 app/create_object.c : #include "highlight.h"
3129 app/layer_dialog.c : #include "widgets.h"
3130 app/modify_tool.c : prototype functions before usage
3131 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
3132 [otherwise one will have a hard time to make C++ compile ;]
3133 lib/dia_dirs.c : #include "message.h"
3134 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
3137 * plug-ins/xfig/xfig-import.c : dont initialize an int with
3140 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
3141 as documented, i.e. _not_ copying. Plugs a memory leak in
3142 lib/dialibartrenderer.c
3144 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
3145 to radius to more of a clue what it is representing
3147 * */makefile.msc lib/libdia.def : updated
3149 ChangeLog : fixed some date copy&paste bug
3151 2004-05-21 Lars Clausen <lars@raeder.dk>
3153 * NEWS: Release tag.
3155 * config.h.win32: Now 0.93+cvs
3157 * RELEASE-PROCESS: Update with new info about release branches.
3159 * Many files: Moved devel branch back into main trunk. Should
3160 have been done in the opposite way, with release in a branch.
3162 2004-05-20 Hans Breuer <hans@breuer.org>
3164 * acinclude.m4 : disable setting of PYTHON_PREFIX
3165 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
3166 as workaround for bug #142032 (the real fix would
3167 involve some auto* knowledge which I don't have
3170 * plug-ins/python/Makefile.am : more python
3171 plug-ins to be installed (especially svg import,
3172 but also 'simple scale' should be useable
3175 * plug-ins/python/scascale.py : update display
3176 after modifying selected objects
3178 * plug-ins/python/diasvg_import.py : initialize
3181 2004-05-18 Lars Clausen <lars@raeder.dk>
3183 * app/diagram_tree.c (select_node): Use
3184 diagram_remove_all_selected to kill selected list.
3186 * lib/font.c: Set language when using a different context.
3188 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3189 and removed ctype include (#142661).
3191 * lib/paper.c (get_default_paper): Changed isalnum to
3192 g_ascii_isalnum and removed ctype include. (#142661)
3194 * objects/custom/shape_info.c:
3196 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3198 2004-05-17 Hans Breuer <hans@breuer.org>
3200 * lib/object_defaults.c : don't 'failed to load external
3201 entity "NULL"' when the defaults file does not exist,
3204 * lib/widgets.c : fixed possible menu leak
3205 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3206 avoid finalization of floating references, bug #142307
3208 2004-05-15 Lars Clausen <lars@raeder.dk>
3210 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3211 fonts better (#138655)
3213 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3215 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3216 dist, xml, dbk and man. Also the sub-xml files. (#142098)
3218 * Makefile.am (CLEANFILES):
3219 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3220 translation-reports, they are generated automagically. THANKS
3221 file not considered locally generated, so is not locally
3224 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3226 * lib/diaarrowchooser.c:
3227 * lib/prop_attr.c: Fixing naming for arrowselector.
3229 * objects/UML/object.c (objet_type): Oops, little too aggressive
3230 with the DiaObject thing here:)
3232 * objects/custom/shape_info.c (parse_svg_node): Use
3233 g_ascii_isdigit instead of isdigit.
3235 * app/diaunitspinner.c (dia_unit_spinner_update):
3236 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3237 instead of isspace avoids char subscript issues (#142467).
3239 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3240 return value conflict.
3242 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3243 value conflict. Also improved signature. (#142466)
3245 * app/load_save.c (diagram_data_load): Don't overwrite the list in
3246 the layer, but instead free the returned list (#142480)
3248 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3249 for the grid widget.
3251 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3253 * configure.in (DB2MAN): Currently just check for two known
3254 positions for the docbook xsl. Don't know a generic way to find
3255 this info. Ought to add an option for it, but then it's really
3256 only required for maintainers, I think. Maybe.
3258 * app/display.c (update_snap_grid_status): Remove nasty image
3259 toggling code not require for grid toggle button anymore. (#142475)
3261 * app/interface.c (create_display_shell): Use
3262 dia_toggle_button_new_with_images to create grid toggle button.
3263 Much nicer. (#142475)
3265 * app/menus.c (menus_initialize_updatable_items): Free the string
3266 along with the GString. (#142475)
3268 * lib/intl.c (free_alias_table): Free hash table entries in a
3269 proper way, avoiding duplicate frees. (#142475)
3271 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3272 not put in the hash (avoid reading freed memory). (#142476)
3274 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3276 (dia_font_selector_get_family_from_name): Stop leaking
3279 2004-05-14 Lars Clausen <lars@raeder.dk>
3281 * Transfer of fixes from release branch. Not the prettiest way to
3282 do it, this should be done during release, not afterwards.
3284 Tomasz Kłoczko <kloczek@pld.org.pl>:
3286 * acinclude.m4: minor fixes (added missing [] quotation).
3288 Lars Clausen <lars@raeder.dk>:
3290 * app/interface.c (toolbox_delete):
3291 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3292 cancels quit due to modified diagrams.
3294 Samúel Jón Gunnarsson <sammi@techattack.nu>:
3296 * is.po: Added "is" to ALL_LINGUAS.
3298 Lars Clausen <lars@raeder.dk>:
3300 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3302 Hans Breuer <hans@breuer.org>:
3304 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
3305 burden should be shared and not be win32 only ;) [this time
3306 build was broken by adding GtkType to widget.h]
3308 * objects/standard/box.c objects/standard/ellipse.c :
3309 for code clarification compare (obj->aspect != FREE_ASPECT)
3310 and not (obj->aspect); no binary effect.
3312 * app/paginate_psprint.c : don't leak printcmd
3314 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3315 standard C requires variables to be declared at the beginning of
3316 a block, also there is no fabsf() with msvc
3318 * app/win32print.[ch] : make win32_printer_close() return an
3319 error code, it's used as pclose replacement
3321 Lars Clausen <lars@raeder.dk>:
3323 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3325 2004-05-06 Lars Clausen <lars@raeder.dk>
3327 * lib/widgets.[ch]: Utility function to make a widget with two
3328 images (selected and non-selected).
3330 * lib/diagramdata.h: Renamed selectable to connectable.
3331 Selectable will come later.
3334 * app/pixmaps/Makefile.am (imagedir):
3335 * app/pixmaps/connectable.png:
3336 * app/pixmaps/connectable-empty.png: New images for the
3337 selectability widget. Proper installation, too.
3339 * app/layer_dialog.[ch]: Adding new button showing connectability
3340 status. Much cleaner way of doing the button, but some problems
3341 with the item getting selected
3343 * lib/widgets.h: Reminder of how to install images for use by
3344 dia_get_image_from_file.
3346 2004-05-05 Lars Clausen <lars@raeder.dk>
3348 * objects/network/Makefile.am:
3349 * objects/network/pixmaps/radiocell.xpm:
3350 * objects/network/pixmaps/basestation.xpm:
3351 * objects/network/network.c:
3352 * objects/network/basestation.c:
3353 * objects/network/radiocell.c:
3354 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
3357 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
3358 Backslash arrow head.
3360 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
3361 Notify takes care. Should maybe use that more.
3363 * lib/diagramdata.[ch]:
3364 * app/filedlg.c (file_export_ok_callback):
3365 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
3367 * app/dia-props.c (diagram_properties_respond):
3368 * app/diagram.c (diagram_set_modified):
3370 * app/disp_callbacks.c:
3372 * app/load_save.c (diagram_save):
3373 Better handling of undo and modified status -- only diagram
3374 properties and page setup explicitly set modified status, all
3375 other important changes should be done through the undo stack
3378 2004-05-04 Lars Clausen <lars@raeder.dk>
3380 * app/app_procs.c (app_init): Consistently open a new diagram if
3381 none specified, with standard name Diagram1.dia.
3383 * app/layer_dialog.c:
3384 * app/diagram.c (diagram_finalize):
3385 * app/commands.c (dialogs_layers_callback):
3386 * app/filedlg.c (file_export_ok_callback):
3387 * app/app_procs.c (app_exit):
3388 * app/display.c (display_set_active):
3389 * app/interface.c (dia_dnd_file_drag_data_received):
3390 * app/recent_files.c:
3391 Undone attempt at unifying the multi-diagram windows (like
3392 layers). It broke the layers and didn't make much sense for the
3393 diagram properties dialog anyway.
3397 * lib/diagramdata.c:
3399 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
3400 many subclasses have to be fixed. Fixed remaining
3401 Object/ObjectType renaming issues.
3403 2004-05-02 Lars Clausen <lars@raeder.dk>
3405 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
3406 having to make all the children objects conform to
3407 GObject style at once? Warning! Does not compile right now.
3409 * many, many files: Rename Object to DiaObject in preparation for
3410 making it a GObject.
3412 * app/diagram.[ch]: Turn diagram into a real GObject.
3415 * app/filedlg.c: Correctly ref and unref diagram.
3417 * lib/diagramdata.h: Starting to turn it into a GObject as well.
3419 2004-05-02 Lars Clausen <lars@raeder.dk>
3421 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
3424 * app/dia-props.c: Undo the attempt at making it really
3425 multi-diagram, now going for a one-diagram dialog.
3427 2004-04-30 Lars Clausen <lars@raeder.dk>
3429 * app/undo.c: Undoing broken undo stuff for diagram properties and
3430 page setup. Shouldn't be mixed into undo at all.
3432 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
3433 function to avoid in particular the grid crawling.
3435 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
3436 to allow aligning dashes, so they don't crawl.
3438 2004-04-28 Lars Clausen <lars@raeder.dk>
3440 * app/Makefile.am: New files diacanvas.[ch]
3442 * app/interface.c (create_display_shell): Use new diacanvas that
3443 allows placing widgets on canvas, for text edit.
3446 Early work towards rotation. No implementation yet.
3448 * app/layer_dialog.c (undo_layer):
3449 * objects/network/bus.c (bus_create_change):
3450 * objects/standard/box.c (aspect_create_change):
3451 * objects/standard/ellipse.c (aspect_create_change):
3452 Use g_new0 for change struct.
3454 * app/undo.c (diagram_change_apply_or_revert):
3455 Support for undo of diagram properties and page setup.
3457 * app/disp_callbacks.c (ddisplay_canvas_events):
3459 * lib/diagramdata.h:
3460 * app/modify_tool.c (click_select_object):
3461 * lib/text.c (text_register_editable):
3462 Starting work on new text editing model. Guarded by #ifdef so
3465 2004-04-07 Lars Clausen <lars@raeder.dk>
3467 * app/recent_files.c (open_recent_file_callback):
3468 * app/interface.c (origin_button_press):
3469 * app/filedlg.c (file_open_ok_callback):
3472 * app/commands.c (dialogs_layers_callback): Using new
3473 diagram_set_current() function to ensure auxilliary windows are
3476 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
3477 menu now borken. *sniff*
3479 * app/dia-props.c: Diagram properties window attempted
3480 persistentified. Trying to make more like layer dialog (since it
3481 already changes when the diagram changes), but some things still
3484 2004-04-06 Lars Clausen <lars@raeder.dk>
3486 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
3487 * lib/attributes.c (attributes_set_default_line_style):
3488 * app/interface.c (create_lineprops_area):
3489 Make line style persistent as well. Added function to directly
3490 set the style and dashlength of a dialinechooser.
3492 2004-04-03 Lars Clausen <lars@raeder.dk>
3494 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
3495 Copy the ellipse extra handle correctly.
3497 * objects/standard/box.c (box_move_handle): Move definitions
3498 according to bug #138925.
3500 2004-04-02 Lars Clausen <lars@raeder.dk>
3502 * app/recent_files.c: Use absolute name for recent files list.
3504 * lib/attributes.c: Set start and end arrow types, correctly.
3506 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
3509 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
3511 * app/interface.c (create_lineprops_area): Set persistently stored
3514 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
3517 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
3518 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
3520 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
3521 with what xfig does. Text now converted from latin-1 to utf-8
3522 (latin-1, since that's what xfig seems to use. Would like to see
3523 examples of non-latin-1 figs). String case problems fixed.
3525 2004-04-01 Lars Clausen <lars@raeder.dk>
3528 * app/interface.c: Default arrows now stored persistently, too.
3530 * lib/arrows.[ch]: New function to get arrow type from name.
3532 * app/color_area.c (color_area_create):
3534 * app/linewidth_area.c: Also persistent colors and line width.
3535 That was easy. Arrows and line style will take a bit more work,
3538 2004-04-01 Lars Clausen <lars@raeder.dk>
3540 * app/preferences.c: All preferences are now
3541 handled by persistence, old prefs load and store code is gone.
3543 * lib/persistence.[ch]: Added string and color persistents. This is
3544 a different string from the one used in the printer dialog, that
3545 one has a GtkEntry attached -- may want to make that one an
3546 encapsulation of this one or something.
3548 2004-03-31 Lars Clausen <lars@raeder.dk>
3550 * app/app_procs.c: Do persistence before prefs. Prefs are to be
3553 * lib/persistence.[ch]:
3554 * app/preferences.c: Adding persistence for integers, reals,
3555 booleans. Fixed stupid list bug. Test persistence for prefs.
3557 2004-03-30 Lars Clausen <lars@raeder.dk>
3559 * app/recent_files.c:
3560 Debugging of deallocation.
3563 Font menu now uses persistence. Ordering needs fixing, or it must
3567 * lib/Makefile.am (libdia_la_SOURCES):
3568 * app/Makefile.am (dia_core_files):
3569 * app/persistence.[ch]:
3570 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
3571 number of fixes, including multiple entries now being read
3572 properly. Still some oddity about the persistent list having the
3573 role as first entry (which makes the font menu crash after a few
3576 2004-03-26 Lars Clausen <lars@raeder.dk>
3578 * app/persistence.c:
3579 * app/recent_files.[ch]: Redoing the recent-files list using
3580 persistence, reducing code by about 50%. Still a problem when
3581 selecting an item from the menu -- possibly it doesn't like the
3582 menu being destroyed while in the callback?
3584 2004-03-25 Lars Clausen <lars@raeder.dk>
3586 * app/persistence.c (persistence_load_string): Missing semicolon?!?
3588 2004-03-24 Lars Clausen <lars@raeder.dk>
3592 * app/persistence.[ch]:
3593 * app/paginate_psprint.c (diagram_print_ps): New type of data can
3594 be stored persistently: Strings. Only the printer command/file
3595 go in here now, but things like creator, organization, diagram
3596 comments etc could also be handled this way.
3598 * objects/standard/beziergon.c (beziergon_draw): Avoid control
3599 lines when the object is not selected.
3601 2004-03-23 Lars Clausen <lars@raeder.dk>
3603 * lib/connectionpoint.h:
3604 * app/load_save.c: Allow connection points to have names, and
3605 handle that in load/store.
3607 * lib/dialibartrenderer.c: Better highlighting for text.
3609 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
3610 * lib/diagdkrenderer.c: Better highlighting for all, using same
3611 principles as libart highlighter.
3613 2004-03-22 Lars Clausen <lars@raeder.dk>
3615 * lib/dialibartrenderer.[ch]:
3616 * lib/diagdkrenderer.c:
3622 * app/modify_tool.c:
3623 * app/create_object.c:
3624 * app/highlight.[ch]:
3625 Added simple object highlighting. In GDK rendering, highlights
3626 the bbox, in libart highlights the outline of the object (except
3629 2004-03-22 Lars Clausen <lars@raeder.dk>
3631 * RELEASE-PROCESS: Added info on how to do a branch for
3632 development during release process.
3634 2004-03-20 Lars Clausen <lars@raeder.dk>
3636 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3638 2004-03-19 Lars Clausen <lars@raeder.dk>
3640 * xmldocs.make: Fixed apparent uninstall error.
3643 * doc/en/dia-manual.xml:
3644 * doc/pl/dia-manual.xml:
3647 * NEWS: Version 0.93-pre1.
3649 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
3650 borelli): Remove some deprecated stuff.
3652 2004-03-18 Lars Clausen <lars@raeder.dk>
3654 * Makefile.am: Try better uninstall thing for scrollkeeper.
3656 * objects/ER/entity.c:
3657 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
3658 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
3659 1, 1 exactly, as well as associative ER entities.
3661 2004-03-17 Lars Clausen <lars@raeder.dk>
3663 * Makefile.am: Make distcheck not complain about scrollkeeper
3664 problems (as per advice from James Henstridge).
3666 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
3667 standard installation.
3669 * objects/standard/ellipse.c: Better strings for object menu.
3671 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
3672 of dialogs (shame on you, glade!)
3674 * objects/custom/custom_object.c (custom_setup_properties):
3675 Removed debugging output
3677 * app/paginate_psprint.c (diagram_print_ps): Slightly more
3678 readable printer error messages.
3682 * doc/en/Makefile.am:
3683 * doc/pl/Makefile.am:
3684 New more standard way to install the XML-based manuals.
3686 2004-03-15 Lars Clausen <lars@raeder.dk>
3688 * objects/standard/box.c (box_move_handle): More intuitive fixed
3691 * objects/standard/ellipse.c:
3692 * objects/standard/box.c:
3695 * app/layer_dialog.[ch]:
3696 Patch from Steve Langasek <vorlon@debian.org>:
3697 Fixes startup crash on Alpha (bug #137169)
3699 * objects/standard/box.c: Aspect fixing like ellipses.
3701 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
3703 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
3704 pixmaps, now can uninstall properly.
3706 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
3707 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
3709 Added object menu access.
3711 2004-03-07 Hans Breuer <hans@breuer.org>
3713 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
3714 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
3715 would not use deprecated apis, but it's much simpler this way)
3717 * lib/makefile.msc : build the above new widgets and render_pixmap
3718 * lib/libdia.def app/dia.def app/makefile.msc : updated
3720 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
3721 what I saw, i.e. how big is an empty array supposed to be ? ;-).
3722 Previously it gave :
3723 disp_callbacks.c(188) : error C2059: syntax error : '}'
3724 disp_callbacks.c(191) : warning C4034: sizeof returns 0
3726 * app/interface.c : #include "dialinechooser.h"
3728 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
3729 [one more reason not to use it here : it's quite slow compared to
3730 the native win32 font renderer ;]
3732 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
3733 a GtkDialog*, removed unneeded cast
3735 * app/render_eps.c : avoid assignment warning for void* user_data
3738 2004-03-06 Steffen Macke sdteffen@web.de>
3740 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
3743 2004-03-06 Lars Clausen <lars@raeder.dk>
3745 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
3748 * lib/font.c: Simple cleanup system for layout cache removes any
3749 layout that hasn't been used for 10 minutes, but only during idle
3752 2004-03-05 Lars Clausen <lars@raeder.dk>
3754 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
3755 (lluis padro) (#130887): Extended Electric shapes with vertical
3758 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
3759 start with "Create a" or "A", always capitalize first word).
3761 * objects/standard/ellipse.c: Patch from Grégoire Dooms
3762 <dooms@info.ucl.ac.be>: Add extra connection point in center of
3763 ellipse. Additionally added a handle in the center, and resize is
3764 now around the center.
3767 * sheets/Makefile.am (SUBDIRS):
3768 * sheets/IsometricMap.sheet.in:
3769 * shapes/Map/Isometric/*
3770 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
3772 2004-03-04 Lars Clausen <lars@raeder.dk>
3775 * lib/pixmaps/Makefile.am:
3777 Better installation handling of pixmaps.
3779 * lib/diagdkrenderer.c:
3780 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
3781 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
3784 2004-03-03 Lars Clausen <lars@raeder.dk>
3786 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
3787 * lib/diagdkrenderer.c:
3788 * lib/diasvgrenderer.c:
3789 * lib/dialibartrenderer.c:
3790 * lib/diainteractiverenderer.c:
3791 * lib/prop_text.c (multistringprop_handle_key):
3793 * lib/dia_image.c (dia_image_rgba_data):
3795 * lib/diagramdata.c (layer_set_object_list):
3798 Getting rid of compile warnings.
3800 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
3801 images. Also remove unused decls.
3803 2004-03-02 Lars Clausen <lars@raeder.dk>
3806 * lib/widgets.c (dia_size_selector_init): Add images to the size
3807 selector chain widget. Also new function to load installed images
3808 from files (better than from included XPM, IMHO).
3810 2004-03-02 Lars Clausen <lars@raeder.dk>
3813 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
3817 * lib/widgets.c (dia_size_selector_init): Work
3818 on getting proper icon onto the size selector. Need simple image
3819 load mechanism in utils.
3823 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
3824 strings, handle utf8 strlen properly. Bug #135930.
3826 2004-03-01 Lars Clausen <lars@raeder.dk>
3828 * shapes/Cybernetics/*:
3829 * sheets/Cybernetics.sheet.in:
3830 * sheets/Makefile.am:
3831 * shapes/Makefile.am:
3832 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
3833 Roggendorf): Cybernetic shapes (#95553).
3835 2004-03-01 Lars Clausen <lars@raeder.dk>
3837 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
3839 * lib/diatypes.h: New type DiaSizeSelector.
3841 * lib/widgets.[ch]: New size selector widgets that selects two
3842 values (width and height, nominally) optionally linked to keep
3845 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
3847 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
3848 in front of file. Bug #128600.
3852 * app/lineprops_area.[ch]:
3854 * lib/dialinechooser.[ch]:
3855 * lib/widgets.c (dia_line_style_selector_init): use line preview
3856 instead of text labels. This involve moving away line_chooser to lib
3859 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
3862 * app/Makefile.am (dia_core_files):
3863 * app/interface.c (create_lineprops_area):
3864 * app/render_pixmap.[ch]:
3866 * lib/diaarrowchooser.[ch]:
3869 * lib/propdialogs.c:
3870 * lib/render_pixmap.[ch]:
3871 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
3872 of text labels. This involve moving away arrow_chooser to lib from
3875 2004-02-29 Lars Clausen <lars@raeder.dk>
3877 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
3878 being updated half-way through destruction. To be removed when
3879 the lists are replaced by something better.
3881 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
3882 Accelerators for class dialog. Bug #130995.
3883 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
3886 * app/preferences.c:
3888 * objects/GRAFCET/step.c:
3889 * objects/Misc/analog_clock.c:
3890 * objects/chronogram/chronoline.c:
3891 * objects/chronogram/chronoref.c:
3892 Change to american spelling (color, not colour) to ease
3893 translators job. Note that a number of translations may need an
3894 update now. Bug #120466.
3896 2004-02-29 Lars Clausen <lars@raeder.dk>
3898 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
3899 Better arrow handling for missing arrows.
3901 * plug-ins/metapost/render_metapost.[ch]: Patch from
3902 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
3903 size. See bug #135363.
3905 * app/app_procs.c (app_init): If non-interactive, or if
3906 --log-to-stderr used, send all messages to stderr. This should
3907 mean that old diaconv == dia --export-to-format=FOO BAR
3909 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
3911 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
3913 2004-02-28 Lars Clausen <lars@raeder.dk>
3915 * lib/text.c (text_key_event): Patch from Kouhei Sutou
3916 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
3918 2004-02-27 Lars Clausen <lars@raeder.dk>
3920 * KNOWN_BUGS: Added info on most commonly reported bugs, with
3923 * app/disp_callbacks.c (popup_object_menu): Unified properties
3924 entry, fixes bug #105080.
3926 * app/diagram.c (diagram_update_menu_sensitivity):
3927 * app/menus.h (struct _UpdatableMenuItems):
3928 * app/menus.c (menus_initialize_updatable_items): Menu items
3929 changed around, align menus flattened, properties entry ghosted,
3930 dialogs menu removed, more shortcuts added. Closing bugs #94018,
3932 Also taking out Gnome menus for now. They don't allow shortcuts,
3933 so what are they good for?
3935 2004-02-27 Lars Clausen <lars@raeder.dk>
3937 * app/menus.c (display_menu_items):
3938 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
3941 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
3943 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
3945 2004-02-23 Lars Clausen <lars@raeder.dk>
3947 * app/app_procs.c (app_init): Comments for translators.
3949 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
3951 * app/preferences.c (prefs_create_dialog): Change packing policy
3952 for widget to expand.
3954 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
3955 running with a debugger.
3957 2004-02-19 Lars Clausen <lars@raeder.dk>
3959 * app/undo.[ch]: Adding last-saved information to undo to allow a
3960 diagram with all changes since last save undo to be marked as
3961 nonmodified. Still needs integration with actual undo
3965 * app/diagram_tree.c (diagram_tree_update):
3967 * app/display.c (update_modified_status):
3968 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
3969 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
3972 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
3973 vs. EPSI, comment out EPSI until preview is in there.
3976 * lib/diarenderer.c: Removing debugging printfs.
3978 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
3981 * objects/standard/arc.c (arc_update_handles): Check to avoid
3982 crash when start and end points are the same.
3984 2004-02-19 Lars Clausen <lars@raeder.dk>
3986 * objects/standard/bezier.c:
3987 * objects/standard/line.c (line_load):
3988 * objects/standard/polyline.c (polyline_load):
3989 * objects/standard/zigzagline.c (zigzagline_load):
3990 * objects/standard/arc.c (arc_load):
3991 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
3992 instead of hardcoding.
3994 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
3996 * app/disp_callbacks.c (popup_object_menu): append a menu item to
3999 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
4001 * app/app_procs.c: declare rc properly with the proper #ifdef
4003 2004-02-17 Lars Clausen <lars@raeder.dk>
4005 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
4006 objects (which seemingly FIG itself breaks, or else there is no
4009 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
4011 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
4012 width renderable in xfig. Helps on bug #133637, but does not
4013 quite fix it -- something about depth is wrong.
4015 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
4016 Extern definitions for Mac compilation.
4018 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
4019 (jdassen@debian.org): Include fix.
4021 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
4022 sure the initial diagram size is correct.
4024 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
4026 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
4027 CPPFLAGS, as per automake warning.
4028 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
4029 LDFLAGS, as per automake warning.
4030 (run_dia.sh): More robust creation, and more easily moved.
4032 * app/undo.c (group_objects_revert): Don't double-free the objects
4033 list. (#129221) Call object_add_updates on grouped objects.
4034 (ungroup_objects_revert): Call object_add_updates on grouped objects.
4036 * lib/diagramdata.c: Internal
4039 * lib/polyshape.c (polyshape_update_data): Correctly calculate
4040 directions for polyshape corners (thanks, Valgrind!)
4043 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
4045 * lib/arrows.h: Default arrow size defined. After all are using
4046 this, may lower to 0.4 or so.
4048 * app/lineprops_area.[ch]: New function to set the arrow type for an
4051 * app/interface.c (create_lineprops_area): Set default line to
4052 have an arrow (fairly likely to be what's wanted, plus it shows
4053 the user where arrows are set).
4055 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
4057 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
4059 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
4060 Dotted lines should use dot_length, not dash_length.
4062 2004-02-06 Hans Breuer <hans@breuer.org>
4064 * app/interface.c : don't use gtk_drawing_area_size() to avoid
4065 the defaut size being also the minimum size. Instead use
4066 gtk_window_set_default_size() on the display shell. Fixes #130982.
4068 [fixing #131210, but umlauts in the 'main' filename still not really
4069 supported on systems where filesystem encoding != utf8
4070 (Problems with recent file menu and window title)]
4071 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
4072 to deal with possible differnces in filename encodings, see
4073 g_filename_<to|from>_utf8()
4074 * objects/standard/image.c : use them.
4076 * lib/widgets.c : handle possible encoding difference here, too.
4077 Also get rid of most warnings by using const and GTK casts where
4078 appropriate; one wrong cast (probably causing a crash) was found/fixed
4079 by this - the remaining give a hint on finally leaking FontSelectorEntry.
4081 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
4082 dia_file_selector_<get|set>_file to behave like the respective Gtk
4083 functions do : encoding- and const-wise ;-)
4085 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
4087 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
4089 2004-01-19 Hans Breuer <hans@breuer.org>
4091 * app/app_procs.c app/diaconv :
4092 only call bind_textdomain_codeset when available, what's good
4093 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
4094 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
4096 2004-01-19 Steffen Macke <sdteffen@web.de>
4098 * makefile.msc: updated for new GAIM-like installer build; sync'ed
4099 ALL_LINGUAS with configure.in
4101 2004-01-18 Hans Breuer <hans@breuer.org>
4103 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
4104 by not passing NULL to g_print()
4106 * app/interface.c (create_toolbox) : actually use
4107 persitence_register_window() to restore toolbox window size
4109 * app/makefile.msc lib/makefile.msc : allow to deselect
4110 building with Freetype by command line to nmake like :
4111 nmake -f makefile.msc "NOFT2=1"
4113 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
4114 far as possible with Dia's limited line style
4115 * plug-ins/python/pydia-property.c : allow to get and set
4116 Linestyle, style and dash(length)
4118 * lib/object.h : removed typedef for ObjectId not use anywhere
4120 2004-01-17 Hans Breuer <hans@breuer.org>
4122 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
4123 doc/shape.dtd doc/custom-shapes :
4124 support for images in custom shapes, also removed some long-time
4127 * doc/en/*.xml : fixed crippled line ends which get created
4128 when windoze line ends are checkin from the unix side
4130 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
4132 * configure.in: Added "sq" to ALL_LINGUAS.
4134 2004-01-11 Hans Breuer <hans@breuer.org>
4136 [more less leaks ;-]
4138 * objects/SADT/annotation.c : use text_destroy() not g_free()
4140 * objects/chronogram/chronoline.c : neither leak chronoline::events
4141 nor chronoline::name
4143 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
4145 2004-01-11 Hans Breuer <hans@breuer.org>
4147 * lib/properties.h :
4148 * objects/custom/custom_object.c : more properties optional
4149 to be backward compatible for older diagrams not having them
4150 set. (Try to load samples/all_objects.dia)
4152 [less memory leaks thanks valgrind ;-]
4154 * app/recent_files.c (recent_file_history_write) :
4155 g_free(history_filename);
4156 (recent_file_menu_item) : use g_path_get_basename()
4157 which already strdups, free result of g_strescape()
4159 * app/filedlg.c (create_export_menu) : return of
4160 filter_get_export_filter_label() must be g_free()'d
4161 (create_open_menu) : same for import
4163 * app/export_png.c (export_png_ok) : destroy info ptr
4164 with png_destroy_write_struct()
4166 * app/app_procs.c (app_init) : g_free(export_format_string);
4168 * lib/font.c (dia_font_finalize) : finalize parent_class, too
4169 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
4170 refing it a second time, g_type_create_from_instance() is enough
4172 * lib/object_defaults.c (_obj_store) : don't mess with names
4173 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
4175 2004-01-11 Steffen Macke <sdteffen@web.de>
4177 * app/diapsftrenderer.c: including ftoutln.h
4178 * app/makefile.msc: updated for freetype build
4179 * lib/libdia.def: added dia_font_get_context()
4180 * lib/dialibartrenderer.c (draw_string): added cast
4182 2004-01-10 Hans Breuer <hans@breuer.org>
4184 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4185 transformed coordinates, fixes bug 130804
4187 2004-01-10 Hans Breuer <hans@breuer.org>
4189 * app/filedlg.c app/app_procs.c : don't try to destroy
4190 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4191 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4192 returns. Fixes 'has no handler' bugs like #121019
4194 2004-01-10 Hans Breuer <hans@breuer.org>
4196 * objects/UML/class.c objects/UML/class_dialog.c :
4197 handle umlclass->name being empty to avoid, i.e. fix #127968
4199 [plugging memleaks, thanks valgrind :-]
4201 * lib/dia_xml.c (data_string) : don't leak return value
4202 of xmlNodeListGetString()
4204 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4205 before returning, maybe alloca() would be the better
4206 choice but anyway ;)
4208 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4210 * lib/font.c (dia_font_build_layout) : don't leak result
4213 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4214 (this is the one which got me started using valgrind, see #130816)
4216 2004-01-07 Sanlig Badral <badral@openmn.org>
4218 * configure.in: Added "mn" to ALL_LINGUAS.
4220 2004-01-04 Hans Breuer <hans@breuer.org>
4222 * lib/diagdkrenderer.c : replace rendering of really small (height
4223 less than 2 pixels) with a simple dashed line, you wont notice the
4224 differnce beside it being much faster. This allows ...
4225 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4226 * app/navigation.c : ... and lets you see an read rendered text even
4227 in the nice navigation popup.
4229 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
4230 (draw_string) : don't leak temporary image
4232 2004-01-04 Hans Breuer <hans@breuer.org>
4234 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4235 * app/interface.c : use dia-app-icons.h to give Dia window icons
4237 * lib/dia_image.c lib/color.c : _never_ call functions implemented
4238 in app/ from lib/. It is not portable and broken from design
4239 * app/app_procs.c : call color_init() and dia_image_init() conditional,
4240 i.e. only if running interactive.
4242 * lib/font.h : #include <time.h>
4244 * lib/libdia.def : updated externals
4246 * objects/UML/actor.c
4247 objects/UML/association.c (todo)
4248 objects/UML/branch.c
4249 objects/UML/class.[hc] objects/UML/class_dialog.c
4250 objects/UML/classicon.c
4251 objects/UML/component.c
4252 objects/UML/constraint.c
4253 objects/UML/dependency.c
4254 objects/UML/generalization.c
4255 objects/UML/implements.c
4256 objects/UML/large_package.c
4257 objects/UML/lifeline.c
4258 objects/UML/message.c
4260 objects/UML/object.c
4261 objects/UML/realizes.c
4262 objects/UML/small_package.c
4264 objects/UML/usecase.c
4266 : ported coloring of most UML objects (bug #97517, orginal
4267 work Mathias Hasselmann)
4269 * lib/properties.h : add _OPTIONAL variants for
4270 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4271 i.e. default colored - UML diagrams without complaining
4272 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4273 not set properties with the help of PXP_NOTSET. Otherwise
4274 optional attributes would lead to wrong initialization.
4276 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4277 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4278 Same for most other selectors which probably should be rewritten
4279 to the combo box with tree model from Gtk+ 2.4
4281 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
4283 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4284 being the Right Thing(tm) to use on Solaris.
4286 * objects/standard/bezier.c (bezierline_draw): Don't draw
4287 guidelines if not selected.
4289 * lib/object.[ch] (dia_object_is_selected): Function to check whether
4290 a given object is selected. O(n), where n is # selected objects.
4293 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
4295 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4296 Fonts dialog is closed without pressing Ok (bug #128646).
4298 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
4300 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4303 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
4305 * INSTALL: Updated list of requirements (bug #129653)
4307 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4308 Pionchon <luc@handhelds.org>.
4310 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4312 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4313 empty or NULL strings (bug #130097).
4315 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
4317 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4318 Added checks against color_black.
4320 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4322 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4323 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
4326 * objects/UML/component_feature.c: Patch from W. Borgert
4327 <debacle@debian.org>: Add handle to component feature text.
4329 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4331 * lib/font.c: Caching PangoLayout for better rendering speed.
4333 2003-12-30 Lars Clausen <lars@raeder.dk>
4335 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4336 get absolute file name from relative.
4337 * app/recent_files.c (recent_file_history_add): Use absolute
4338 filenames for recent files menu so that files can be found when
4339 Dia is invoked from other places.
4341 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4342 Actually load different diagrams if such are requested on command
4345 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4346 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4348 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
4349 remove text rendering. May be turned into greeking at some later
4353 * app/Makefile.am (dia_core_files):
4354 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
4355 Adds navigation window a la Gimp, though without text being
4358 2003-12-27 Luc Pionchon <luc@handhelds.org>
4360 * app/navigation.h: (new file)
4361 * app/navigation.c: (new file) creates a navigation window with a
4362 thumbnail view of the whole diagram.
4363 * app/Makefile.am (dia_core_files): added new files.
4365 * app/interface.c (create_display_shell): added a button between
4366 the scrollbars to popup a navigation window.
4368 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
4370 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
4371 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
4372 not want text rendering.
4374 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
4376 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
4378 * objects/custom/shape_info.[ch]: Cleanup.
4380 * objects/custom/custom_object.[ch]: Changed to use new props
4385 * lib/prop_inttypes.c:
4386 * lib/prop_geomtypes.c: Added *prop_get_data_size.
4388 * lib/libdia.def: Added object_load_props.
4390 * configure.in: Better FT2 version test, from bug #129225.
4392 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
4394 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
4395 Lehmann <holger.lehmann@catworkx.de>.
4397 * plug-ins/xslt/Makefile.am:
4398 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
4399 and OWL XSLT sheets.
4401 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
4403 * lib/diagdkrenderer.c: Add implementation so text is still
4404 rendered. May be improved later.
4410 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
4411 Allow running without a $DISPLAY!
4413 * lib/color.c: Remove warnings for non-interactive run.
4418 * app/app_procs.[ch]:
4419 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
4420 to specify size for PNG output.
4422 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
4423 render a little smaller, so as to fit the big ones.
4425 * lib/arrows.[ch]: New arrow type from W. Borgert
4426 <debacle@debian.org>: Filled Dot and Triangle.
4428 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
4430 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
4433 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
4435 * acinclude.m4: Better Python configure code patch (can't find
4436 author, author please speak up!)
4438 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
4440 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
4443 2003-11-30 Hans Breuer <hans@breuer.org>
4445 * plug-ins/python/diasvg.py : initialize self.dash_length
4446 in constructor to avoid crashing if the renderer user
4447 does not set it before first usage.
4449 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
4451 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
4455 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
4456 development and stable versions.
4458 * lib/text.c (text_draw): Use new renderer function to draw the
4461 * lib/diarenderer.h:
4462 * lib/diarenderer.c: New renderer function "draw_text" with
4463 default implementation. This function should eventually be the
4464 main interface, as it will be able to handle width and caching of
4465 rendering internally. All users of draw_string should convert to
4466 use Text objects and call either renderer->draw_text or text_draw,
4467 the latter if the text can be edited in-place (as should be the
4470 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
4472 * shapes/Circuit/hresistor.shape: First example of extra
4475 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
4477 * plug-ins/shape/shape-export.c:
4478 * lib/diasvgrenderer.h:
4479 * lib/diasvgrenderer.c:
4480 * plug-ins/svg/render_svg.c (new_svg_renderer):
4481 Actually store the font size, using DiaRenderer's font fields.
4483 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
4485 * objects/custom/shape_info.[ch]:
4486 * objects/custom/custom_object.[ch]:
4487 Support for extra attributes in custom objects.
4489 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
4491 * app/diagram.c (diagram_update_menu_sensitivity): More
4492 intelligent checks for menu sensitivity. Might be slow on huge
4493 diagrams, but I think other things outweigh it by a lot.
4495 * app/menus.[ch]: Make "Bring Forwards"
4496 and "Send Backwards" updateable.
4498 2003-11-22 Steffen Macke <sdteffen@web.de>
4500 * shapes/Assorted/arrow-turn-up.shape:
4501 * shapes/Assorted/arrow-turn-up.png:
4502 * sheets/Assorted/Makefile.am:
4503 * sheets/Assorted.sheet.in: Added new arrow
4505 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
4513 * app/diagram_tree.c
4514 * app/diagram_tree_menu.c
4515 * app/diagram_tree_window.c
4516 * app/diapagelayout.c
4517 * app/diaunitspinner.c
4521 * app/layer_dialog.c
4522 * app/lineprops_area.c
4523 * app/linewidth_area.c
4526 * app/paginate_psprint.c
4528 * app/plugin-manager.c
4531 * app/recent_files.c
4533 * app/sheets_dialog.c
4534 * app/sheets_dialog_callbacks.c
4535 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
4536 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
4538 * TODO: Updated, note on EPS transparency.
4540 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
4542 * objects/UML/class.c (umlclass_draw): Allow classes with no name
4545 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
4548 * doc/en/dia-manual.xml:
4551 * NEWS: Another Brown Bag release for parenting problems,
4552 including a crash bug fix.
4554 * app/connectionpoint_ops.c (diagram_update_connections_object):
4555 Also update connections when moving children. This can cause
4556 move_handle to be called twice, so it must be idempotent.
4558 * app/load_save.c: Loading and saving of children totally redone.
4559 Now doesn't violate assumption that all objects in a layer are
4560 placed in order in XML file.
4562 * objects/UML/branch.c (branch_create): Don't lie about being
4565 * objects/UML/node.c (node_create):
4566 * objects/UML/large_package.c (largepackage_create): Drag with
4567 lower right-hand handle at creation like all other objects.
4569 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
4571 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
4572 parenting drop to behave like a move inside, i.e. constrain place
4573 instead of trying to resize. 'Cause, resizing cannot be done for
4574 all objects (e.g. UML Class). Also simplified the algorithm a lot
4577 * app/load_save.c: Saving and loading of connection points for
4578 children added. Prototypes for static functions added.
4580 * lib/dynamic_obj.c: Removed debugging output.
4582 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
4584 * doc/en/dia-manual.xml:
4585 * doc/pl/dia-manual.sgml:
4589 * NEWS: Brown Bag release 0.92.1
4591 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
4593 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
4595 * app/app_procs.c (app_init): Rearrangement for translators.
4597 2003-10-24 Steffen Macke <sdteffen@web.de>
4599 * lib/text.c(text_key_event): enforcing the inserted text length now,
4602 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
4604 * MAINTAINERS: Change Debian maintainer to be the default address.
4606 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
4607 args to match prototype, thus removing crashbug #125159.
4609 * RELEASE-PROCESS: Note to self.
4611 2003-10-22 Steffen Macke <sdteffen@web.de>
4613 * doc/en/dia-manual.xml: removed superfluous external references
4615 2003-10-21 Steffen Macke <sdteffen@web.de>
4617 * lib/libdia.def: added filter_get_by_name
4618 * app/render_eps.c: moved extensions definition outside #ifdef
4620 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
4624 Removed old Dia manual, put new one in doc/en/. Translations
4625 should go in doc/??/.
4627 * doc/en/dia-manual.xml:
4628 * doc/pl/dia-manual.sgml:
4629 * dia.spec (Release):
4632 * NEWS: 0.92 is here!
4636 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
4637 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
4640 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
4642 * doc/en/usage-objects-selecting.xml: Commented out empty note.
4644 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
4646 * doc/pl/dia-manual.sgml:
4647 * doc/en/dia-manual.xml:
4651 * dia.spec (Release): Pre7.
4653 * app/diapsrenderer.c (draw_string): Convert string to print based
4654 on current locale. If conversion fails, fall back to UTF-8 (which
4655 is almost certain to be messy).
4657 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
4659 * doc/pl/dia-manual.sgml:
4660 * dia.spec (Release):
4664 * doc/en/dia-manual.xml: Pre6.
4666 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
4667 TeX chars in strings -- must be possible to use TeX text in there.
4668 Also avoids infinite loop bug (#124464) Will get option for this
4671 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
4673 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
4675 * doc/en/dia-manual.xml:
4676 * doc/pl/dia-manual.sgml:
4677 * dia.spec (Release):
4682 * app/authors.h: Removed duplicate of M. C. Nelson.
4684 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
4686 * app/export_png.c: Unique name for libart PNG export: png-libart.
4688 * app/render_eps.c: Unique names for the two eps export methods:
4689 eps-builtin, eps-pango.
4691 * lib/filter.h: Binary compatibility change:
4692 Added unique name to export filters. Can be NULL.
4693 * lib/filter.c (filter_get_by_name): Finding a filter by
4696 * app/app_procs.h: Changed prototype for do_convert.
4697 * app/app_procs.c (app_init): Support for non-extension file
4698 format selection for export. Also allow extension to differ from
4699 that specified by the filters. A bit of refactoring, too.
4701 2003-09-28 Steffen Macke <sdteffen@web.de>
4703 * makefile.msc: added target po to update the translations
4705 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
4708 * dia.spec (Release):
4710 * doc/pl/dia-manual.sgml:
4711 * doc/en/dia-manual.xml:
4712 Pre4 is given a short try.
4714 * configure.in: Give all necessary libs to PNG test.
4716 * lib/font.c: Added legacy entries for sans, serif and monospace.
4718 * app/app_procs.c (internal_plugin_init):
4721 Added PS fonts output for Unix.
4723 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
4724 factor to make PS fonts stay in boxes.
4726 2003-08-03 Hans Breuer <hans@breuer.org>
4728 * config.h.win32 : close the version string
4730 * lib/libdia.def : with color_white, color_black being static
4731 on win32 they can not be exported anymore either
4733 * lib/dialibartrenderer.c : text rendering is back on win32,
4734 only by Gdk though; almost a year seems to be enough to
4735 wait for my patch at bug #94791 to be accepted ...
4737 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
4739 * shapes/network/{digitizing_board.png,plotter.png,
4740 laptop.png,telephone.png}: 22x22 icons.
4742 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
4744 * doc/pl/dia-manual.sgml:
4745 * doc/en/dia-manual.xml:
4746 * dia.spec (Release):
4750 pre3 improves font rendering speed.
4752 * app/app_procs.c (app_init): Don't do pango init here, it's done
4753 on demand in font.c now.
4755 * lib/font.c: Load pango context on demand rather than during
4756 init/all the time strikes a better balance between working font
4757 size and speed. Still need to cache width calculations.
4759 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
4761 * lib/dia_xml.c: Enable pretty printing. Should have been added
4764 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
4766 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
4767 adjustment a bit for half diamond and open round.
4769 * RELEASE-PROCESS: Added note about notifying translators and
4772 * doc/pl/dia-manual.sgml:
4773 * doc/en/dia-manual.xml:
4774 * dia.spec (Release):
4778 Update to 0.92-pre2.
4780 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
4782 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
4783 calculation for half diamond and open round.
4786 * objects/UML/component_feature.c:
4787 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
4788 arrows instead of specific little hacks. Much nicer, but damn
4789 there's a lot of arrows.
4791 * lib/dialibartrenderer.c (begin_render):
4792 * app/render_libart.c (begin_render): Use correct DPI for screen
4793 (well, actually the default DPI of 75 for now).
4795 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
4797 * lib/diagdkrenderer.c (draw_string): Some reformatting.
4799 * app/app_procs.c (app_init): Note on what should be done for the
4800 pango context now, only it doesn't work:(
4802 * lib/font.c (dia_font_new): Make sure to load fonts that are
4803 used, using a reasonable pango_context. Also a comment on the
4806 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
4808 * doc/pl/graphics/*.png:
4809 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
4810 loop (bug #121817). PL translator may want to change the
4811 home_network png to be in Polish. If the docs get translated into
4812 more languages, we'll want to find out how to share these things.
4814 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
4816 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
4817 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
4820 * app/filedlg.c (file_save_as_callback): Put filename setting
4821 together. (Preparation for allowing default save dir.)
4823 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
4824 correctly this time:)
4826 * app/dia-props.c (diagram_properties_show):
4827 * app/properties.c (properties_show): Make sure the
4828 dialogs are transient for the correct diagram.
4830 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
4832 * configure.in: Make sure -lz -lm is passed into second png test
4833 as well (stupid AC_LINK_IFELSE can't take it as an argument).
4835 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
4836 comment-filled files readable. Once we have a 'generic data'
4837 system, we can put comments in there.
4839 2003-09-06 Steffen Macke <sdteffen@web.de>
4841 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
4842 g_string_sized_new() instead of g_string_new() to make it compile
4843 * app/Makefile.am: including dia.ico and dia.rc in the tarball
4844 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
4845 for non-solid linestyles - otherwise custom linestyles have to be used.
4847 2003-09-02 Steffen Macke <sdteffen@web.de>
4849 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
4852 2003-09-02 Christian Neumair <chris@gnome-de.org>
4854 * sheets/Pneumatic.sheet.in: Slight unification fix.
4856 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
4860 * dia.spec (Release):
4861 * doc/en/dia-manual.xml:
4862 * doc/pl/dia-manual.sgml:
4863 * NEWS: Update to 0.92-pre1.
4865 * app/properties.c (properties_key_event): Removing Esc/Enter
4866 handling for now, interferes to much with regular dialog usage.
4868 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
4869 Function to escape special TeX characters. Not in use yet, as
4870 PSTricks output by default is TeX strings. Should get a save-time
4873 2008-09-01 Steffen Macke <sdteffen@web.de>
4875 * lib/paper.h: explanatory comment on width and height
4877 2003-08-30 Steffen Macke <sdteffen@web.de>
4880 * lib/color.h: made color_white, color_black static on win32
4882 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
4884 * configure.in (PNG_LIBS): Something in the png tests added an
4885 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
4887 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
4889 * configure.in: Quote correctly for temporarily adding freetype
4892 * app/preferences.c (prefs_save): Remove debugging g_print.
4894 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
4896 * objects/flowchart/parallelogram.c (pgram_update_data):
4897 Directions for connections, better system for placing
4900 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
4902 * lib/diagramdata.c (layer_find_closest_object_except): Look all
4903 the way through the object list, so the foremost object is selected.
4905 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
4906 included for diagramdata.c.
4908 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
4909 newline in multistringprop not close the dialog. Failed so far.
4911 2003-08-25 Steffen Macke <sdteffen@web.de>
4913 * app/commands.c: using CHM instead of HTML on win32 if available
4914 * lib/diagramdata.h: including dynamic_obj.h
4916 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
4918 * app/properties.c (properties_key_event): Make Enter = Ok for
4919 properties dialogs. Still some problems with this and Esc for
4920 Cancel, for instances escaping out of a menu closes the dialog.
4922 * objects/UML/association.c (association_get_properties):
4923 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
4926 * app/diapsft2renderer.c (draw_string): Use
4927 dia_font_scaled_build_layout to ensure similarity of text.
4929 * lib/diagramdata.c: Remove obj from dynobj list when removing
4930 from layer to avoid nasty race conditions.
4932 * app/undo.c (group_objects_revert): Make sure to unparent and
4933 remove from dynobj list when changing layers objects.
4935 2003-08-23 Steffen Macke <sdteffen@web.de>
4937 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
4938 StretchBlt(); fixes #92249
4940 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
4942 * app/filedlg.c (file_save_as_callback):
4943 * app/preferences.h:
4944 * app/preferences.c (prefs_data):
4945 * lib/diagramdata.h:
4946 * lib/diagramdata.c (new_diagram_data):
4947 * app/load_save.c (diagram_data_load):
4948 Let the document remember whether it was compressed. The user can
4949 still override this in the Save As... dialog, and that will still
4950 be remembered as the default for new diagrams.
4952 2003-08-23 Steffen Macke <sdteffen@web.de>
4954 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
4956 2003-08-22 Steffen Macke <sdteffen@web.de>
4958 * plug-ins/xslt/dia-uml.xsl:
4959 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
4960 table containing a list of components grouped by stereotype
4962 2003-08-21 Steffen Macke <sdteffen@web.de>
4964 * lib/makefile.msc: added connectionpoint.obj
4965 * lib/libdia.def: added connpoint_update, find_slope_directions
4966 * app/disp_callbacks.c: including scroll_tool.h
4967 * obj/makefile.msc: added component_feature.obj
4968 * app/paginate_gdiprint.c: fixed loop initialization in
4969 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
4972 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
4974 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
4977 * lib/diagramdata.h: Colors added to prefs.
4978 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
4979 New field for pagebreak color, which should
4980 behave the same as grid color and be settable for a diagram.
4982 * app/diagram.c (diagram_init): Update diagram pagebreak color
4985 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
4988 * app/preferences.[ch]: Default diagram colors now #defines, so
4989 loading can use it. Also, colors are now in NewDiagramData, so
4990 are passed nicely into new diagrams directly from prefs. Yum.
4992 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
4993 Support for loading and saving grid and pagebreak colors with the
4994 diagram. I'm inclined to make all the three Colors in diagram
4995 Color*s instead, so we can tell if they're specified for the
4996 diagram or merely the default setting. There'd be no way for the
4997 user to tell if the color of a diagram is default, though, unless
4998 we add a 'reset to default' button to prefs.
5000 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
5001 pagebreak color. Unsensitizing grid size when dynamic.
5003 * objects/UML/component.c: Patch from Krzysztof Foltman
5004 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
5005 third. Makes the left side connections actually be on the line
5008 2003-08-20 Steffen Macke <sdteffen@web.de>
5010 * lib/libdia.def: added layer_find_closest_object_except
5011 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
5013 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
5017 * app/scroll_tool.c:
5019 * app/disp_callbacks.c:
5020 * app/create_object.h:
5021 * app/create_object.c: Patch from Krzysztof Foltman
5022 <kfoltman@onet.pl>: Middle button can scroll transiently when
5023 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
5027 * sheets/UML.sheet.in:
5028 * sheets/UML/receptacle.xpm:
5029 * sheets/UML/Makefile.am:
5030 * sheets/UML/eventsource.xpm:
5031 * sheets/UML/eventsink.xpm:
5032 * objects/UML/pixmaps/facet.xpm:
5033 * objects/UML/uml.c (dia_plugin_init):
5034 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
5035 * objects/UML/component_feature.c:
5036 Patch from W. Borgert <debacle@debian.org>: Add event sources and
5039 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
5041 * lib/object.h: Turning some comments into doxygen style.
5043 * lib/object_defaults.c (dia_object_defaults_load)
5044 (dia_object_default_get, dia_object_default_create):
5045 Fixing up existing documentation.
5047 * lib/object.h: Doxygen style documentation begun.
5049 * app/create_object.c:
5051 * app/connectionpoint_ops.c:
5052 * app/disp_callbacks.c:
5053 * app/modify_tool.c:
5055 * objects/network/wanlink.c (wanlink_move_handle):
5056 * objects/network/bus.c (bus_move_handle):
5058 * objects/flowchart/parallelogram.c (pgram_move_handle):
5059 * objects/flowchart/ellipse.c (ellipse_move_handle):
5060 * objects/flowchart/diamond.c (diamond_move_handle):
5061 * objects/flowchart/box.c (box_move_handle):
5063 * objects/custom/custom_object.c (custom_move_handle):
5065 * objects/chronogram/chronoref.c (chronoref_move_handle):
5066 * objects/chronogram/chronoline.c (chronoline_move_handle):
5068 * objects/SADT/box.c (sadtbox_move_handle):
5069 * objects/SADT/arrow.c (sadtarrow_move_handle):
5070 * objects/SADT/annotation.c (annotation_move_handle):
5072 * objects/Misc/analog_clock.c (analog_clock_move_handle):
5074 * objects/GRAFCET/vergent.c (vergent_move_handle):
5075 * objects/GRAFCET/vector.c (arc_move_handle):
5076 * objects/GRAFCET/transition.c (transition_move_handle):
5077 * objects/GRAFCET/step.c (step_move_handle):
5078 * objects/GRAFCET/condition.c (condition_move_handle):
5079 * objects/GRAFCET/action.c (action_move_handle):
5081 * objects/FS/function.c:
5082 * objects/FS/flow.c:
5083 * objects/FS/flow-ortho.c (orthflow_move_handle):
5084 * objects/FS/flow-poly.c (flow_move_handle):
5086 * objects/UML/usecase.c (usecase_move_handle):
5087 * objects/UML/state_term.c (state_move_handle):
5088 * objects/UML/state.c (state_move_handle):
5089 * objects/UML/small_package.c (smallpackage_move_handle):
5090 * objects/UML/realizes.c (realizes_move_handle):
5091 * objects/UML/object.c (objet_move_handle):
5092 * objects/UML/note.c (note_move_handle):
5093 * objects/UML/node.c (node_move_handle):
5094 * objects/UML/message.c (message_move_handle):
5095 * objects/UML/lifeline.c (lifeline_move_handle):
5096 * objects/UML/large_package.c (largepackage_move_handle):
5097 * objects/UML/implements.c (implements_move_handle):
5098 * objects/UML/generalization.c (generalization_move_handle):
5099 * objects/UML/fork.c (fork_move_handle):
5100 * objects/UML/dependency.c (dependency_move_handle):
5101 * objects/UML/constraint.c (constraint_move_handle):
5102 * objects/UML/compprop.c (compprop_move_handle):
5103 * objects/UML/component.c (component_move_handle):
5104 * objects/UML/branch.c (branch_move_handle):
5105 * objects/UML/association.c (association_move_handle):
5106 * objects/UML/actor.c (actor_move_handle):
5107 * objects/UML/activity.c (state_move_handle):
5108 * objects/UML/class.c (umlclass_move_handle):
5110 * objects/standard/ellipse.c (ellipse_move_handle):
5111 * objects/standard/zigzagline.c (zigzagline_move_handle):
5112 * objects/standard/textobj.c (textobj_move_handle):
5113 * objects/standard/polyline.c (polyline_move_handle):
5114 * objects/standard/polygon.c (polygon_move_handle):
5115 * objects/standard/line.c (line_move_handle):
5116 * objects/standard/image.c (image_move_handle):
5117 * objects/standard/bezier.c (bezierline_move_handle):
5118 * objects/standard/arc.c (arc_move_handle):
5119 * objects/standard/beziergon.c (beziergon_move_handle):
5120 * objects/standard/box.c (box_move_handle):
5122 * objects/ER/relationship.c (relationship_move_handle):
5123 * objects/ER/participation.c (participation_move_handle):
5124 * objects/ER/entity.c (entity_move_handle):
5125 * objects/ER/attribute.c (attribute_move_handle):
5127 * lib/polyshape.c (polyshape_move_handle):
5129 * lib/orth_conn.c (orthconn_move_handle):
5131 * lib/neworth_conn.c (neworthconn_move_handle):
5132 * lib/neworth_conn.h:
5133 * lib/element.c (element_move_handle):
5135 * lib/connection.c (connection_move_handle):
5137 * lib/beziershape.c (beziershape_move_handle):
5138 * lib/beziershape.h:
5139 * lib/bezier_conn.c (bezierconn_move_handle):
5140 * lib/bezier_conn.h:
5141 *BINARY COMPATIBILITY CHANGE*
5142 Update prototype for *_move_handle() to include connectionpoint,
5143 and also pass on modifiers. Pass in connectionpoint where
5146 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
5147 file connectionpoint.c.
5149 2003-08-17 Danilo Šegan <dsegan@gmx.net>
5151 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
5153 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
5155 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
5157 * lib/beziershape.c (beziershape_update_data): Autoroute
5158 directions for beziershapes!
5160 * lib/connectionpoint.c (find_slope_directions):
5161 * lib/connectionpoint.h: Function for finding the available
5162 directions on a slope.
5164 * lib/polyshape.c: Reasonable directions for
5167 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
5169 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
5170 * objects/GRAFCET/vergent.c (vergent_update_data):
5171 * objects/GRAFCET/transition.c (transition_update_data):
5172 * objects/GRAFCET/action.c (action_update_data):
5173 * objects/GRAFCET/step.c (step_update_data):
5174 * objects/FS/function.c (function_update_data):
5175 * lib/connpoint_line.c (connpointline_putonaline):
5176 * objects/ER/attribute.c (attribute_update_data):
5177 * objects/ER/entity.c (entity_update_data):
5178 * objects/ER/relationship.c (relationship_update_data):
5179 * objects/chronogram/chronoline.c (chronoline_update_data): Set
5180 directions for connection points.
5182 * objects/UML/component.c (component_create): Set to allow
5185 * app/create_object.c (create_object_button_press):
5186 * app/diagram.[ch] (diagram_find_clicked_object_except):
5187 * lib/diagramdata.[ch] (layer_find_closest_object_except):
5188 Avoid parenting to objects you're connecting to (otherwise you
5189 couldn't make a connection out of a parenting object). To do
5190 this, added functions to find the nearest object except a given
5193 * app/render_libart.c: Rearrange libart include to avoid multiple
5194 include program (and put libart includes inside #ifdef!)
5196 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
5198 * lib/dialibartrenderer.c: Don't include art_config.h if others
5199 also do, as it isn't #ifdef'd.
5201 * objects/flowchart/ellipse.c (ellipse_update_data): Add
5202 directions for connection points.
5204 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
5206 * objects/flowchart/box.c (box_update_data): Add directions, use
5208 (box_load): Use g_malloc0.
5210 * lib/Makefile.am (libdia_la_SOURCES):
5211 * lib/connectionpoint.c (connpoint_update):
5212 Function to call to update a connection point info in _update_data().
5214 * lib/connectionpoint.h: Convenience DIR_ macros.
5216 * app/preferences.c (prefs_data): Make pretty formatted XML the
5219 * lib/dialibartrenderer.c:
5220 * app/render_libart.c: Make sure art_config.h is included, cause
5221 some libart headers are broken.
5223 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5224 after test. Add freetype-config cflags to cflags variable.
5226 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
5228 * app/authors.h: Credits for Krzysztof.
5230 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5231 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
5232 than the description) is visible in the title of the properties
5233 dialog. That ought to be a short description (translatable),
5234 though we still want long descriptions for the tooltips. Hmmm...
5236 * configure.in: Updated to use AC_LINK_IFELSE instead of
5237 AC_TRY_COMPILE, also force to link to check libs on Solaris.
5239 * objects/ER/entity.c (entity_load):
5240 * objects/ER/attribute.c (attribute_load):
5241 * lib/attributes.c (attributes_set_default_font):
5242 Check if font is non-null before unreffing.
5244 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
5246 * app/diagram.c (diagram_ungroup_selected)
5247 (diagram_group_selected): Use the undo apply to make sure grouping
5248 and ungrouping is done in consistent manners. This removes a fair
5249 amount of duplicated code from diagram.c.
5251 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
5252 (group_objects_revert, group_objects_apply): Working undo/redo for
5253 diagram tree updates. The initial actions still don't quite work.
5255 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
5257 * app/create_object.c (create_object_button_press):
5259 * app/diagram.c: Undo support for parenting. Uses apply/revert in
5260 undo only for manipulating the parent/child relationships. Things
5261 like removing an object doesn't use the undo functions for
5262 parenting, so any updates to come (like to diagramtree) should be
5265 2003-08-03 Hans Breuer <hans@breuer.org>
5267 * app/create_object.c : minor formating and g_new0 for
5270 * lib/bezier_conn.[hc] lib/beziershape.[hc]
5271 lib/prop_geomtypes.c (prop_geomtypes_register)
5272 objects/standard/bezier.c objects/standard/beziergon.c :
5273 ability to set bezpoints via StdProp api
5275 * plug-ins/python/pydia-property.c : convert list of tuples
5278 * plug-ins/python/diasvg_import.py : use it to
5279 implement part of path parsing. Also minor improvements
5280 like inheritance of group attributes to members,
5281 whitespace, title and style:text/css ignoring ;-)
5283 2003-08-02 Hans Breuer <hans@breuer.org>
5285 * lib/connections.c (connection_move_handle): return
5286 something to make it compile
5287 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
5288 must return a value -> dito
5289 [Is there a warnings-as-errors switch we could use with gcc
5290 to avoid such in future ?]
5292 * plug-ins/python/pydia-object.h : define *_Check macros
5293 * plug-ins/python/diamodule.c : provide dia.group_create()
5294 * plug-ins/python/pydia-diagramdata.c : add
5295 DiaDiagramData.add_layer()
5296 * plug-ins/python/pydia-property.c : allow to set color by
5299 * plug-ins/python/diasvg_import.py : based on the above
5300 implement a) group support, b) rgb(1,2,3) color handling,
5301 and somewhat fishy data:image/png;base64 support (create
5302 temporary files from inline image data)
5303 d) dump the import errors as text into an 'Error' layer
5305 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5306 stray " in draw_rect and corrected error message formating
5308 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5309 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
5312 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
5314 * app/magnify.c (create_magnify_tool): allocate with g_new0()
5316 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
5317 preferences values (see bug 118570). Also group items into a GtkFrame.
5319 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
5324 * app/commands.c (objects_unparent_children_callback):
5326 * app/diagram.c (diagram_unparent_selected,
5327 (diagram_update_menu_sensitivity):
5328 Added unparenting of single children.
5330 * lib/bezier_conn.c:
5331 * lib/bezier_conn.h:
5332 * lib/beziershape.c:
5333 * lib/beziershape.h:
5339 * lib/neworth_conn.c:
5340 * lib/neworth_conn.h:
5347 * objects/EML/instantiation.c:
5348 * objects/EML/interaction-ortho.c:
5349 * objects/EML/interaction.c:
5350 * objects/EML/process.c:
5351 * objects/ER/attribute.c:
5352 * objects/ER/entity.c:
5353 * objects/ER/participation.c:
5354 * objects/ER/relationship.c:
5355 * objects/FS/flow-ortho.c:
5356 * objects/FS/flow-poly.c:
5357 * objects/FS/flow.c:
5358 * objects/FS/function.c:
5359 * objects/GRAFCET/action.c:
5360 * objects/GRAFCET/condition.c:
5361 * objects/GRAFCET/step.c:
5362 * objects/GRAFCET/transition.c:
5363 * objects/GRAFCET/vector.c:
5364 * objects/GRAFCET/vergent.c:
5365 * objects/Misc/analog_clock.c:
5366 * objects/SADT/annotation.c:
5367 * objects/SADT/arrow.c:
5368 * objects/SADT/box.c:
5369 * objects/UML/activity.c:
5370 * objects/UML/actor.c:
5371 * objects/UML/association.c:
5372 * objects/UML/branch.c:
5373 * objects/UML/class.c:
5374 * objects/UML/classicon.c:
5375 * objects/UML/component.c:
5376 * objects/UML/constraint.c:
5377 * objects/UML/dependency.c:
5378 * objects/UML/fork.c:
5379 * objects/UML/generalization.c:
5380 * objects/UML/implements.c:
5381 * objects/UML/large_package.c:
5382 * objects/UML/lifeline.c:
5383 * objects/UML/message.c:
5384 * objects/UML/node.c:
5385 * objects/UML/note.c:
5386 * objects/UML/object.c:
5387 * objects/UML/realizes.c:
5388 * objects/UML/small_package.c:
5389 * objects/UML/state.c:
5390 * objects/UML/state_term.c:
5391 * objects/UML/usecase.c:
5392 * objects/chronogram/chronoline.c:
5393 * objects/chronogram/chronoref.c:
5394 * objects/custom/custom_object.c:
5395 * objects/flowchart/box.c:
5396 * objects/flowchart/diamond.c:
5397 * objects/flowchart/ellipse.c:
5398 * objects/flowchart/parallelogram.c:
5399 * objects/network/bus.c:
5400 * objects/network/wanlink.c:
5401 * objects/standard/arc.c:
5402 * objects/standard/bezier.c:
5403 * objects/standard/beziergon.c:
5404 * objects/standard/box.c:
5405 * objects/standard/ellipse.c:
5406 * objects/standard/image.c:
5407 * objects/standard/line.c:
5408 * objects/standard/polygon.c:
5409 * objects/standard/polyline.c:
5410 * objects/standard/textobj.c:
5411 * objects/standard/zigzagline.c:
5412 Binary compatibility update: Added return value for foo_move() and
5413 foo_move_handle(). Orthconn derivatives also returns change from
5414 orthconn_move_handle().
5416 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
5417 doesn't support it yet.
5419 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
5420 Add returning ObjectChange from object moves. Needs to handle
5421 multiple object moves.
5423 * app/modify_tool.c (modify_motion, modify_release): Add
5424 ObjectChange from move & move_handle to undo stack.
5426 * objects/EML/instantiation.c (instantiation_move): Removing
5427 duplicate move & update.
5429 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
5431 * plug-ins/xfig/xfig-export.c: Added support for arrow head
5432 export. Many arrow types not supported by XFig, replacing those
5433 with standard arrows. Not sure whether it'd be better to render
5434 them as a group of lines instead. You'd lose the arrow-ness for
5435 further editing, but preserve the actual shape of it. Also added
5436 support for dash length.
5438 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
5440 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
5441 description for version 3.2, for reference.
5443 * plug-ins/xfig/xfig-import.c: Added import of arrows.
5445 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
5446 Align Vertical Adjacent call _v rather than _h.
5448 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
5450 * app/scroll_tool.c (create_scroll_tool):
5451 * app/modify_tool.c (create_modify_tool): use g_new0() to
5454 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
5456 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
5458 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
5460 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
5462 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
5464 * configure.in: Added Belarusian to ALL_LINGUAS.
5466 2003-07-19 Hans Breuer <hans@breuer.org>
5469 Make the xslt plug-in work on win32, too. It appears
5470 to require a quite recent version of libxml and libxslt,
5471 otherwise windoze pathes aren't translated correctly
5472 during file processing
5475 * plug-ins/xslt/xslt.h : #include <glib.h> before
5478 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
5479 the 'script' file finding similar to how it is done
5480 with the python scripts (no need for hardcoded pathes,
5481 removed the 'plugin' part from the path)
5483 * plug-ins/xslt/stylesheets.xml : added again. It does
5484 not have any path but only the pure filename again
5486 * plug-ins/xslt/stylesheets.xml.in : removed
5488 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
5489 rule to process stylesheets.xml.in
5491 * plug-ins/makefile.msc : added xslt
5493 2003-07-19 Hans Breuer <hans@breuer.org>
5495 Finally Dia learned to remember the recent selected sheet
5497 * app/preferences.[hc] : added prefs.recent_sheet
5498 * app/interface.c : restore and remember the sheet-option-menu
5499 history, but only if the respective number is stiil available.
5500 This additional adds robustness against running Dia without
5501 any sheet (e.g. installation problems)
5502 * app/app_procs.c : call prefs_safe() in app_exit() to remember
5503 changes which are not done by the prefernces dialog
5505 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
5506 removed every call (especially the conditional ones) to prefs_safe().
5507 Before prefs_safe() was called _many_ times during Dia startup
5509 2003-07-18 Hans Breuer <hans@breuer.org>
5511 * app/makefile.msc lib/makefile.msc lib/libdia.def :
5514 * lib/color.c : use gtk_widget_get_default_visual();
5515 as suggested in #114536
5517 * app/interface.c app/disp_callbacks.c :
5518 moved round_up () to the latter file where it is used
5520 * app/linewidth_area.c : #include "interface.h" for
5521 interface_get_toolbox_shell()
5523 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
5525 * plug-ins/pixbuf/.cvsignore
5526 * shapes/Cisco/.cvsignore:
5529 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
5531 * app/dia-props.c (diagram_properties_retrieve): Use
5532 diagram_get_name() to add the diagram name to the diagram
5536 * app/diagram.c (diagram_get_name): New function to get a
5537 reasonable diagram name.
5539 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5540 info. Still need to be able to set dynamic grid. Also ought to
5541 follow Gnome style and have instant apply.
5543 * app/preferences.h:
5544 * app/preferences.c (prefs_data): Remove option to use stippled
5545 grid, add option for major line offset. Default to 5 minor lines
5547 Add option for dynamically sized grid.
5549 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5551 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
5552 stippled/solid to display minor/major grid lines. Line drawing in
5553 separate functions away from calculating line distance.
5555 * app/grid.h: Split page break drawing out of grid_draw.
5557 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
5558 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
5559 when menu item is selected.
5561 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
5563 * configure.in: Removed -Winline flag to make way for important
5566 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
5567 non-compressed. Should fix bug #117381, also look prettier.
5570 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
5571 Set up desktop info more properly.
5573 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
5590 Autorouting directions patch from Krzysztof Foltman
5593 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
5594 GNOME parent menu items.
5596 * app/authors.h: Added Vadim to contributors list.
5598 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
5600 * app/commands.[ch]:
5601 * app/create_object.c:
5602 * app/disp_callbacks.[ch]:
5613 * objects/UML/large_package.c: Patch from Vadim Berezniker
5614 <vadim@berezniker.com>:
5615 Objects may "parent" other objects, i.e. contain them within
5616 themselves, restrain them and move them along. Some more stuff is
5617 needed, such as selection and individual unparenting. This adds
5618 parenting to UML - Large Package rather than Box.
5620 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
5622 * app/linewidth_area.c: Patch from Krzysztof Foltman
5623 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
5624 conform more, at least:).
5626 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
5627 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
5628 arcs. Implemented images (though there is some pixelization and
5629 banding in the output). Changed output file format to be a little
5632 * app/app_procs.c (app_exit): Added message for double exit, which
5633 shouldn't happen any more. Also preventing strange g_object_unref
5634 messages by having a printf after gtk_main_quit. This is really
5637 * app/interface.c (toolbox_delete): Avoid double app_exit call by
5638 removing handler for destroy when delete is called.
5640 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
5643 * app/display.c (ddisplay_scroll_to_object,
5644 ddisplay_scroll_center_point): New function for easy scrolling to
5647 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
5649 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
5650 $(srcdir) on stylesheets.xml.
5652 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
5653 diagram menus (since they're at the top by default now). Also
5654 move the Properties... menu item from Dialogs to Objects. Dialogs
5655 menu should disappear at some point.
5657 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
5658 ./configure from ./autogen.sh, as configure may need to be run
5659 from a different directory. (Also more standard this way.)
5661 * app/app_procs.c (app_init):
5662 * app/Makefile.am (INCLUDES): Gnome standardization patch from
5665 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
5667 * objects/flowchart/parallelogram.c (pgram_update_data):
5668 Left/right alignment for parallelograms. Doesn't use all
5669 available space, but then pgrams also ignore their shear value.
5670 This thing needs a loving hand.
5672 2003-07-01 Hans Breuer <hans@breuer.org>
5674 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
5675 * lib/proplist.c : don't complain if optional attr is missing
5676 * lib/orth_conn.h : make "orth_autoroute" optional to
5677 stop complaining with older files.
5679 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
5681 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
5683 2003-06-05 Andrew Halper <ashalper@cox.net>
5685 * app/diagram_tree.c : add scrolling of drawing area
5686 to desired object on "Locate". Patch modified to use new ddisplay
5687 function ddisplay_scroll_to_object().
5689 2003-06-11 Lars Clausen <lars@raeder.dk>
5691 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5692 info. Before next version, the grid dialog (view dialog, really)
5693 must be redone to allow a) instant apply, b) apply to all
5694 diagrams, and c) setting colour, dynamic, major lines.
5696 * app/preferences.h:
5697 * app/preferences.c (prefs_data): Remove option to use stippled
5698 grid, add option for major line offset. Default to 5 minor lines
5700 Add option for dynamically sized grid.
5702 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5704 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
5705 stippled/solid to display minor/major grid lines. Line drawing in
5706 separate function away from calculating line distance.
5708 * app/grid.h: Split page break drawing out of grid_draw.
5710 2003-05-15 Hans Breuer <hans@breuer.org>
5712 * plug-ins/python/diasvg.py : add xlink definition,
5713 also avoid to put spaces into attribute values. At least
5714 Sodipodi doesn't like them in width/height attributes
5716 * plug-ins/python/diasvg_import.py : add simple scaling.
5717 Some (more) handling for <svg>, <desc>, <circle>
5719 * plug-ins/python/scascale.py : (new file) which does
5720 some experimental scaling via StdProp api
5722 * plug-ins/python/pydia-cpoint.c
5723 plug-ins/python/pydia-handle.c : return PyDiaPoint for
5724 obj.pos not simple tuples. PyDiaPoint has a tuple interface
5725 so this may even be api compatible ...
5727 2003-05-11 Hans Breuer <hans@breuer.org>
5729 * app/line_area.c : add window position persitence
5731 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
5732 'poly_points' via StdProp api
5733 * lib/neworth_conn.h : don't rely on OrthConn and
5734 NewOrtConn having the same struct offsets
5736 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
5737 to help separating 'useful' properies - in terms of
5740 * objects/custom/custom_object.c
5742 add the missing prop_desc_list_calculate_quarks to
5743 all the *_describe_props()
5745 * objects/standard/beziergon.c objects/standard/bezier.c :
5746 explicit initializtion of default_user_data
5747 * objects/standard/polygon.c objects/standard/polyline.c :
5748 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
5750 * plug-ins/python/diamodule.c : implement dia.register_import
5752 * plug-ins/python/makefile.msc : need to link with Pango
5753 for pango_color_parse()
5755 * plug-ins/python/pydia-property.c : add a bunch of type
5756 conversions to PyDiaProperty_ApllyToObject()
5758 * plug-ins/python/diasvg_import.py : (new file) which currently
5759 is mainly a stress test for PyDia but for some files already
5760 produces better results than svg-import.c
5762 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
5764 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
5765 type-less operations.
5767 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
5769 * configure.in(ALL_LINGUAS): Added "ms".
5771 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
5773 * plug-ins/xslt/xslt.c (xslt_ok):
5774 * plug-ins/shape/shape-export.c (new_shape_renderer):
5775 * plug-ins/svg/render_svg.c (new_svg_renderer):
5776 * plug-ins/hpgl/hpgl.c (export_data):
5777 * plug-ins/dxf/dxf-export.c (export_dxf):
5778 * plug-ins/metapost/render_metapost.c (export_metapost):
5779 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
5780 * plug-ins/xfig/xfig-export.c (export_fig):
5781 * plug-ins/wpg/wpg.c (export_data):
5782 * plug-ins/cgm/cgm.c (export_cgm):
5783 * app/render_eps.c (export_eps):
5784 * app/export_png.c (export_png_ok):
5785 * app/load_save.c (diagram_data_save): Adding and standardizing
5786 output file error messages to include fopen error message.
5788 2003-05-01 Steffen Macke <sdteffen@web.de>
5790 * app/persistence.c: do not use unistd.h for MSVC build
5792 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
5794 * sheets/Assorted.sheet.in
5795 * sheets/Circuit.sheet.in
5796 * sheets/Contact.sheet.in
5797 * sheets/EML.sheet.in
5798 * sheets/ER.sheet.in
5799 * sheets/Electric.sheet.in
5800 * sheets/FS.sheet.in
5801 * sheets/Flowchart.sheet.in
5802 * sheets/GRAFCET.sheet.in
5803 * sheets/Logic.sheet.in
5804 * sheets/MSE.sheet.in
5805 * sheets/Misc.sheet.in
5806 * sheets/Pneumatic.sheet.in
5807 * sheets/SADT.sheet.in
5808 * sheets/SDL.sheet.in
5809 * sheets/UML.sheet.in
5810 * sheets/chronogram.sheet.in
5811 * sheets/ciscohub.sheet.in
5812 * sheets/ciscomisc.sheet.in
5813 * sheets/cisconetwork.sheet.in
5814 * sheets/ciscorouter.sheet.in
5815 * sheets/civil.sheet.in
5816 * sheets/network.sheet.in
5817 * sheets/sybase.sheet.in:
5818 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
5819 standardizes shape descriptions to use no articles, no 'create
5822 * app/interface.c (tool_data): Standard objects follow same
5825 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
5827 * app/color_area.c (color_area_edit): More informative title on
5828 color selection dialog.
5830 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
5831 sensitivity when dropping object in. Also reset tool to pointer.
5833 * objects/flowchart/diamond.c (diamond_update_data):
5834 * objects/flowchart/parallelogram.c (pgram_update_data): Added
5835 left and right alignment options.
5837 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
5839 * objects/flowchart/box.c: Added left and right alignment options.
5841 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
5843 * app/persistence.c (persistence_load): Test existence of
5844 persistence file before trying to open it.
5846 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
5848 * app/properties.c: Escape now closes properties dialogs.
5850 2003-04-25 Hans Breuer <hans@breuer.org>
5852 * app/config.h.win32 : bump version to 0.91+cvs
5854 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
5856 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
5858 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
5861 * app/presistence.c : need to #include "dia_xml_libxml.h"
5864 * app/layer_dialog.c : make delayed creation work by protecting
5865 all non static layer_dialog_*() with :
5866 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
5867 create_layer_dialog();
5868 * app/app_procs.c : removed /* create_layer_dialog(); */
5870 * objects/uml/association.c : give it a minimal StdProp
5871 implementation to fix bug #108896
5872 * lib/object_defaults.c : don't try to copy props if there
5873 is no obj->ops->describe_props
5875 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
5877 * objects/standard/image.c (image_create):
5878 * objects/standard/ellipse.c (ellipse_create):
5879 * objects/standard/box.c (box_create):
5880 * objects/flowchart/ellipse.c (ellipse_create):
5881 * objects/flowchart/diamond.c (diamond_create):
5882 * objects/flowchart/box.c (box_create):
5883 * objects/custom/custom_object.c (custom_create):
5884 * objects/ER/relationship.c (relationship_create):
5885 * objects/ER/entity.c (entity_create):
5886 * objects/ER/attribute.c (attribute_create): Initialize
5887 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
5889 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
5893 * plug-ins/Makefile.am:
5894 * plug-ins/xslt/Makefile.am:
5895 * plug-ins/xslt/xslt.c (dia_plugin_init):
5896 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
5897 automake-style if to only include xslt dir when needed. Works
5898 with automake 1.4 and up, at least.
5900 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
5902 * lib/diasvgrenderer.c (draw_string):
5903 * lib/dia_svg.c (dia_svg_parse_style): Use
5904 text-anchor:(start|middle|end).
5906 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
5907 polygon rather than polyline & avoid missing line pieces.
5908 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
5909 black-filled things.
5911 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
5913 * app/persistence.c (persistence_load): Check that persistence
5914 file exists before trying to read it.
5915 (persistence_update_window): Removed printf.
5917 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
5919 * lib/autoroute.c: Take badness into the layouters again, as some
5920 of them know they can do things that are pretty but would be
5921 counted as ugly by the default calculation.
5923 * objects/UML/large_package.c: Shrink package name box when no
5924 stereotype is present.
5926 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
5927 * lib/orth_conn.c: Added object menu item for autorouting.
5929 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
5930 Autorouting, plus set initial dragging handle to be the end, not
5932 (orthflow_draw): Flipped arrow place to be at the end, as
5933 originally intended (got lost in arrow update).
5935 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
5936 * objects/UML/dependency.c (dependency_get_object_menu):
5937 * objects/UML/association.c (association_get_object_menu):
5938 * objects/UML/realizes.c (realizes_get_object_menu):
5939 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
5940 * objects/GRAFCET/vector.c (arc_get_object_menu):
5941 * objects/ER/participation.c (participation_get_object_menu):
5942 * objects/EML/instantiation.c (instantiation_get_object_menu):
5943 * objects/UML/generalization.c (generalization_get_object_menu):
5944 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
5945 Autorouting setup (currently disabled for SADT/arrow).
5947 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
5949 * lib/autoroute.c: Removed printfs.
5952 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
5953 non-connected orthconns too.
5955 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
5958 * lib/orth_conn.c: Function to set autorouting on/off, use
5959 autorouting in move_handle (turns off when a middle handle is
5960 moved), added to standard orthconn props.
5962 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
5963 Stopped signal emission for check menu items being set to on/off.
5965 * objects/standard/zigzagline.c: Added autorouting object menu item.
5967 * lib/autoroute.c: Added last cases of autoroute layout, fixed
5968 floating point comparison bug, cleaned up layouters, tweaked
5969 badness to allow kinks.
5971 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
5973 * lib/connectionpoint.h: Changed DIR_* macros to go around the
5976 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
5978 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
5979 old cruft, added call to autoroute (currently cannot be turned
5980 off). Need to check what undo thinks about this.
5981 * lib/autoroute.[ch]: Fairly working simple layout.
5983 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
5984 * lib/autoroute.[ch]: Start of proper autorouting functionality.
5986 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5988 * lib/prop_widgets.c: Show labels on ListProp.
5990 2003-04-11 Steffen Macke <sdteffen@web.de>
5992 * doc/en/dia-manual.xml: removed reference of non-existing authors
5994 * doc/en/usage-objects-selecting: commented out misleading section
5997 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5999 * app/app_procs.c (app_init): Layer window now opened at startup
6002 * lib/prop_widgets.c: Show labels on ListProp.
6004 2003-04-09 Steffen Macke <sdteffen@web.de>
6006 * doc/en/*.sgml: removed files
6007 * doc/en/*.xml: added files
6008 * doc/en/Makefile.am: switched to XML DocBook
6010 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
6012 * plug-ins/xslt/xslt.c (dia_plugin_init):
6013 * configure.in: Added --with-xslt-prefix to allow other XSLT
6014 placements than /usr/lib.
6016 2003-04-09 Steffen Macke <sdteffen@web.de>
6018 * lib/makefile.mingw: updated to include latest files, including
6020 * lib/geometry.h: don't define isinf and finite for mingw gcc build
6022 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
6024 * app/persistence.h:
6025 * app/persistence.c (persistence_register_window_create):
6026 * app/app_procs.c (app_init):
6027 Register window function that doesn't create the window unless it
6028 should be open. Other windows should move to this, so startup
6029 speed can be reduced.
6031 * app/persistence.h: Removed call prototype for update_window, now
6033 * app/persistence.c (persistence_register_window): A number of
6034 fixes. Doesn't forget position when window is closed. Now
6035 actually loads prefs.
6037 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
6040 * app/preferences.c (prefs_data):
6041 * app/diagram_tree_window.h:
6042 * app/diagram_tree_window.c: Added persistence registering.
6043 Removed prefs items storing size and openness.
6045 * app/sheets_dialog.c (create_sheets_main_dialog): Added
6046 persistence registering.
6048 * app/Makefile.am (dia_core_files): Added persistence files.
6051 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
6052 that dirs are present.
6054 * app/app_procs.c (app_init): Loads persistent values on startup.
6055 (app_exit): Saves persistent values on exit.
6057 * app/layer_dialog.c (create_layer_dialog): Registers the layer
6058 window for persistence.
6060 * app/persistence.[ch]: New files handling various kinds of
6063 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
6065 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
6066 head spacing calculations. Added half-circle arrow from Matthieu
6067 Sozeau <mattam@netcourrier.com>
6069 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
6071 * app/app_procs.c (app_init): Moved layer dialog init to allow
6072 tooltips to be initialized.
6074 * app/interface.c (create_display_shell): More tooltips.
6076 * app/linewidth_area.c (linewidth_area_create)
6077 (linewidth_area_events):
6078 * app/color_area.c (color_area_events, color_area_create):
6079 Made tooltips work by embedding drawing_area in event_box.
6081 * app/interface.c (create_display_shell,
6082 (create_lineprops_area, create_color_area): Added a few tooltips.
6084 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
6086 * app/pixmaps/off-grid.xpm:
6087 * app/pixmaps/on-grid.xpm:
6088 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
6091 * app/commands.c (view_snap_to_grid_callback):
6092 * app/display.c (ddisplay_set_snap_to_grid)
6093 (update_snap_grid_status):
6094 * app/interface.c (create_display_shell, grid_toggle_snap):
6095 Added snap-to-grid status button.
6097 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
6099 * app/app_procs.c (app_init): Create a new diagram if a file on
6100 the command line isn't found.
6102 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
6104 * lib/dialibartrenderer.c (draw_string): Correct color handling
6107 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
6110 * doc/en/dia-manual.sgml:
6111 * doc/pl/dia-manual.sgml:
6113 * dia.spec (Release):
6114 Version 0.91 is here!
6116 2003-02-10 Steffen Macke <sdteffen@web.de>
6118 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
6119 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
6120 non-ANSI characters, closes #107980
6122 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
6126 * dia.spec (Release):
6127 * doc/en/dia-manual.sgml: Upping to pre6.
6129 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
6131 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
6132 #107511: Make arrow selector for correct arrow type.
6134 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
6136 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
6139 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
6141 * doc/en/dia-manual.sgml:
6144 * dia.spec (Release): Upping to pre5.
6146 * configure.in: Add freetype-config derived libs to the
6147 AC_CHECK_LIB statement for freetype.
6149 2003-02-28 Hans Breuer <hans@breuer.org>
6151 [fix for bug #107203]
6153 * lib/diarenderer.c : add warning 'implementation'
6154 for fill_rect to avoid crashing with a renderer
6155 which does not implement this required function.
6157 * plug-ins/dxf/dxf-export.c : provide - still empty -
6158 'implementations' for fill_rect and fill_polygon
6159 to suppress the above warnings. Now it works like
6162 2003-02-28 Steffen Macke <sdteffen@web.de>
6164 * samples/all_objects.dia: New sheet containing all dia shapes
6165 and objects; one layer per sheet
6167 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
6169 * lib/prop_text.c (multistringprop_get_widget,
6170 multistringprop_reset_widget, multistringprop_set_from_widget):
6171 Now uses GtkTextView instead of deprecated stuff, and also works:)
6173 * configure.in: Slightly more informative error message for isinf.
6175 * dia.spec (Requires): Require libxml2 rather than libxml.
6177 2003-02-28 Steffen Macke <sdteffen@web.de>
6179 * shapes/Circuit/hjumper.png:
6180 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
6183 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
6185 * doc/en/dia-manual.sgml:
6187 * dia.spec (Release):
6188 * NEWS: New prerelease 0.91pre4, two important fixes.
6190 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
6192 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6195 * app/commands.c (help_manual_callback): More correct URL for help
6196 page (include file://, was broken on Dillo without it).
6198 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
6200 * app/disp_callbacks.c: Set modifed when text is changed.
6202 * app/modify_tool.c (modify_button_release): Allow undo for moving
6205 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6208 * doc/en/dia-manual.sgml:
6210 * configure.in: New prerelease with important bugfix.
6211 * shapes/network/digitizing_board.png:
6212 * shapes/network/plotter.png: Re-adding with -kb.
6214 2003-02-17 Abel Cheung <maddog@linux.org.hk>
6216 * app/app_procs.c (app_init): Add comment for translators.
6218 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6220 * lib/filter.c (filter_register_import, filter_register_export):
6221 Don't accept filters with NULL description.
6223 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6224 (as we assume the description is available in other places).
6226 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
6228 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
6229 * app/display.c (ddisplay_resize_canvas): Use
6230 ddisplay_add_update_all().
6231 (ddisplay_add_update_all): Free display and update lists when
6232 doing update_all, as they'll be regenerated immediately to cover
6233 all visible area. Fixes bug #106165, crash when resizing. This
6234 appears to be the original AA crash bug, believed long extinct.
6236 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
6238 * app/commands.c (help_manual_callback): Use file: protocol for
6241 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6243 * plug-ins/xslt/stylesheets: Removed old-style config file.
6245 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6247 * plug-ins/xslt/Makefile.am:
6248 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6249 handling (no more DIA_PLUGIN_PATH).
6251 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
6253 * plug-ins/svg/render_svg.c:
6254 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6256 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
6258 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
6259 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
6260 side of the triangle is longer than the hypotenuse. Rounding
6263 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
6267 * doc/en/dia-manual.sgml: Update for pre2.
6269 * app/menus.c (display_menu_items): Fixed wrongly place separators.
6271 * objects/flowchart/box.c (box_update_data): Applied patch from
6272 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6275 * app/paginate_psprint.c (print_page): Set paper name, so it
6276 convinces ps printers to use to right size.
6278 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
6280 * app/properties.c (properties_show): Hide the dialog if the
6281 object is NULL (get rid of 'no properties' randomly popping up).
6283 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
6285 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6286 for diagrams not starting at origo.
6288 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
6290 * dia.spec (BuildRequires): Use libxml2-devel.
6292 * plug-ins/pixbuf/Makefile.am: Added to CVS.
6294 * RELEASE-PROCESS: Note on RPM version numbers.
6296 * app/interface.c (create_display_shell): Don't set as toolbar
6297 under Unix, either. Especially not the diagram shell. It removes
6298 it from the taskbar and makes it unresizable, always-on-top with
6299 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
6300 appropriate thing, UTILITY, is not good either, you lose resizing
6301 and minimizing/maximizing under OpenBox.
6303 * app/menus.c (display_menu_items): Set delete item to use Delete.
6305 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
6307 * dia.spec (BuildRequires, Requires): Updated for Gtk2
6310 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6311 display flush when getting focus in, or we may get an update after
6312 the diagram has been destroyed in some cases. Fixes bug #105221.
6314 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6316 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6318 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6319 - gnome-compiled Dia will now read files specified on the command line.
6321 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6323 * INSTALL (REQUIREMENTS): Updated requirements section.
6325 * configure.in: Better finite() check from Mårten Svantesson
6326 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
6329 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6331 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6333 * app/app_procs.c (debug_break): Added some code to avoid
6334 over-eager optimizations removing the call. Surely there's a
6335 nicer way, but I'm not sure how.
6337 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6338 that set text to black.
6340 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
6342 * NEWS: Mention of Twiki as doc source for Python.
6344 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6345 libart/libpng is not available. Later when we have a way of
6346 letting the user pick options in the file select dialog we shall
6347 allow the choice when applicable.
6349 2003-02-02 Steffen Macke <sdteffen@web.de>
6351 * doc/en/usage-loadsave.sgml:
6352 * doc/en/usage-objects.sgml: patch from
6353 James K. Lowden <jklowden@schemamania.org> to fix
6356 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
6358 * plug-ins/Makefile.am (SUBDIRS):
6359 * plug-ins/pixbuf/pixbuf.c:
6360 * plug-ins/pixbuf/Makefile.am:
6362 Added pixbuf plugin to Makefile.am, but for import only. PNG
6363 export handled by libart, which is better. JPG export is
6364 discouraged. BMP is not much used on Unix. Next release will
6365 integrate libart to allow all outputs.
6367 2003-02-01 Hans Breuer <hans@breuer.org>
6369 * app/preferences.c :
6371 the last two dialogs with 'old' button order finally
6372 are converted to gtk2, no GnomeDialog in all of Dia
6375 2003-02-01 Hans Breuer <hans@breuer.org>
6377 * app/filedlg.c : don't try to use a button as
6378 'overwrite-file-dialog'-parent, use the FileSelDialog
6381 * plug-ins/pixbuf/pixbuf.c : make it work with
6382 system-visual-depth < 24. Remove 'bmp' from output
6383 format extensions, it just was wishful thinking.
6385 * plug-ins/python/Makefile.am : added the four new python
6386 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
6388 2003-02-01 Hans Breuer <hans@breuer.org>
6390 * NEWS : updated content beside dependencies
6392 2003-02-01 Hans Breuer <hans@breuer.org>
6394 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
6395 to make it useable across DLL boundaries
6396 * app/lineprops_area.c : same code to access arrow_types
6399 * objects/UML/class.c : the non empty string is e.g.
6400 comment != NULL && comment[0] != '\0'
6401 * objects/UML/uml.c : same here, don't bother with
6402 empty operation stereotypes
6404 2003-02-01 Steffen Macke <sdteffen@web.de>
6406 * app/lineprops_area.c: latest changes do not work on
6407 windows, using old code without tooltips
6408 * makefile.msc: fixed copying of wmf.dll
6409 * plug-ins/makefile.msc:
6411 * lib/makefile.msc: now linking libintl
6412 * config.h.win32: enabling native language support
6414 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6416 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
6417 -ldl and -lglib. May or may not work on windows...awaiting verdict.
6419 2003-01-31 Daniel Yacob <locales@geez.org>
6421 * configure.in: Added am (Amharic) to ALL_LINGUAS.
6423 2003-01-31 Steffen Macke <sdteffen@web.de>
6425 * objects/UML/class.c (umlclass_calculate_data): fixed crash
6426 when comments were visible, no class comment available and
6429 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6431 * RELEASE-PROCESS: Updated to fit new install-module syntax.
6432 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
6435 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
6441 Prerelease version changes, version 0.91-pre1.
6443 * app/sheets_dialog_callbacks.h:
6444 * app/sheets_dialog_callbacks.c:
6445 * app/sheets_dialog.c (create_sheets_main_dialog):
6446 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
6447 to handle destruction of main dialog cleanly, but it's a mess.
6449 * configure.in: Downgraded ieeefp test to make it not produce
6452 * lib/widgets.c (dia_arrow_selector_set_arrow):
6453 (dia_line_style_selector_set_linestyle): Select menu dot
6456 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
6457 adjustment for diamondheads.
6459 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
6461 * app/properties.c (create_dialog): Destroy properties dialog and
6464 * app/sheets_dialog_callbacks.c
6465 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
6466 if the old one is destroyed.
6468 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
6470 * app/export_png.c (export_png_ok): Added info on resolution.
6471 Should (next release) improve export dialog to allow setting
6472 resolution instead of pixels.
6474 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
6475 to generate arrowheads as well as tooltips.
6477 * lib/arrows.c: Added hollow diamond to menudesc list.
6480 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
6481 unify with rendered menu.
6483 * lib/diarenderer.c (draw_line_with_arrows)
6484 (draw_polyline_with_arrows, draw_arc_with_arrows)
6485 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
6486 without changing renderer API. Thanks to David Scherba for
6487 providing inspiration.
6489 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
6491 * app/interface.c (create_display_shell):
6492 * app/display.h: Patching from Hubert Figuiere
6493 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
6496 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
6498 * app/defaults.c (defaults_show): Fixed defaults closing bug.
6499 Thanks to Hans for pointing it out.
6501 2003-01-25 Hans Breuer <hans@breuer.org>
6503 * app/commands.c : don't warn about crashing libart renderer
6504 on win32. It simply doesn't render text anymore :-(
6506 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
6508 * objects/UML/class.c : don't access umlclass->properties_dialog
6509 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
6510 which sets the former to NULL by destroy_properties_dialog() callback.
6512 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
6514 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
6516 * plug-ins/python/pydia-image.c : add image.uri member
6517 not only useful for SVG rendering
6519 * plug-ins/python/diasvg.py : (new file) a more advanced
6520 example. A full blown SVG Renderer, currently only
6521 registered for .svgz
6523 * plug-ins/python/export-object.py : write text props
6525 * plug-ins/python/debug_objects.py : write prop.type and
6528 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
6530 * objects/UML/association.c (association_update_data): Better
6531 bounding box for assoc with arrows.
6533 * lib/properties.h: New flag for properties with multiple values
6536 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
6537 arrow updating in dialog. Was broken due to changes from destroy
6540 * app/commands.c (view_aa_callback): AA warning only for Windows
6541 -- I trust the Unix side well enough.
6543 * app/render_libart.c (get_text_width):
6544 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
6545 font height can be taken from parent instance.
6547 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
6548 (get_text_width): Proper cursor positioning for libart renderer.
6549 Ought to have a DiaInteractiveRenderer that these two can inherit
6550 from, that knows about transform.
6552 2003-01-25 Steffen Macke <sdteffen@web.de>
6554 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
6555 plug-in still not working on win32
6557 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
6559 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
6560 gdk_window_get_pointer to avoid destroy crash. Simpler than I
6563 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
6565 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
6566 bail out on gtk options.
6568 * lib/message.c (gtk_message_internal): Better handling of destroy
6571 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
6573 * app/color_area.c (color_area_edit):
6574 * lib/widgets.c (dia_file_selector_browse_pressed)
6575 (dia_color_selector_pressed):
6576 * app/plugin-manager.c (get_plugin_manager):
6577 * app/filedlg.c (file_open_callback, file_save_as_callback)
6578 (file_export_callback):
6579 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
6580 handling of destroy event.
6582 2003-01-22 Alan Horkan <horkana@tcd.ie>
6584 * app/commands.c (file_new_callback): Changed Untitled to Diagram
6587 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
6589 * app/preferences.c (prefs_create_dialog):
6590 * app/linewidth_area.c (linewidth_create_dialog):
6591 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
6592 * app/layer_dialog.c (create_layer_dialog)
6593 (layer_dialog_edit_layer): Correct handling of destroy signal.
6595 * app/diapsft2renderer.c (set_font): Adjust silly random factor
6596 for change in font.c
6598 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
6600 * lib/font.c (dia_font_build_layout): Let's all use the same weird
6603 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
6604 * app/layer_dialog.c (create_layer_dialog)
6605 (layer_dialog_edit_layer):
6606 * app/filedlg.c (file_open_callback, file_save_as_callback)
6607 (file_export_callback):
6608 * app/dia-props.c (create_diagram_properties_dialog):
6609 * app/defaults.c (defaults_dialog_destroyed):
6610 * app/color_area.c (color_area_edit): Dialog destroy event handling.
6612 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
6614 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
6615 defaults dialog destroyed.
6617 2003-01-19 Steffen Macke <sdteffen@web.de>
6619 * objects/makefile.msc: added bondgraph
6620 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
6621 to compile pixbuf.dll
6622 * makefile.msc: copying all objects and dlls now
6624 2003-01-19 Hans Breuer <hans@breuer.org>
6626 * app/diagram.[hc] : provide dia_open_diagrams(), make
6627 open_diagrams variable static
6628 * app/dia.def : export it (to be used by PyDia)
6629 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
6630 app/display.c app/dynamic_refresh.c app/layer_dialog.c
6631 app/load_save.c : make use of dia_open_diagrams()
6633 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
6634 on win32. It removes the diagram window from the taskbar and
6635 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
6637 * app/menus.c : add '...' to menu entries where a dialog
6639 * app/recent_files.c app/dia_embedd.c : reflect the above in
6640 menus_get_item_from_path() calls
6642 * lib/libdia.def : add dia_image_rgba_data
6644 * lib/properties.h lib/prop_text.[hc] : add new property
6646 * objects/UML/class.[hc] object/UML/class_dialog.c : use
6647 StringList for attributes_strings and operations_strings to
6648 make this calculated data accessible via the Property API
6650 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
6651 provide dia.new() to create a new diagram, dia.registered_types()
6652 to get on Dia's type registry, dia.message() for simple dialogs
6654 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
6655 to create a new display from a diagram. Let diagram.extents and
6656 diagram.bg_color return the same types as in diagramdata.*
6658 * plug-ins/python/pydia-geometry.c : add a read-only
6659 'sequence interface' to DiaPoint and DiaRectangle
6661 * plug-ins/python/pydia-property.c : allow to get on StringList
6664 * plug-ins/python/pydia-render.c : fix typo to make it compile
6666 * plug-ins/python/python-startup.py : removed 'import pygtk'
6667 again. This file does not need any gtk UI, and some python
6668 plug-ins don't do either
6670 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
6671 it should actually work as intended again
6673 * plug-ins/python/group_props.py : (new file) a prototype for
6674 one the most requested features: Change properties of selected
6675 objects in one step. Requires pygtk.
6677 * plug-ins/python/select_by.py : (new file) select objects by
6678 common properties. Requires pygtk.
6680 [Start of 'PyDia Self Documentation Series']
6682 * plug-ins/python/pydiadoc.py : (new file) generates a new
6683 diagram which contains all objects of dir(dia)
6685 * plug-ins/python/otypes.py : (new file) generates a new diagram
6686 which contains all the currently registered object types sorted
6687 by their containing package
6689 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
6691 * configure.in: Added check for Pango >= 1.1.5, which appears to
6692 be enough to have text work.
6693 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
6694 do it. AC_SUBST should be idempotent, though.
6696 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
6698 * configure.in (HAVE_FREETYPE): Better test for freetype version
6700 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
6702 * lib/font.c: Renamed global_size_one to global_zoom_factor to
6703 avoid confusion, and added comment. Set scale factor in
6704 dia_font_build_layout to 1.0 for Unix side. This fixes at least
6705 my weird scaling problems. Fonts are now of the expectable size,
6706 i.e. the space between lines at size 1.0 is 1.0. If we want a
6707 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
6708 diagrams, though there will always be differences.
6710 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
6712 * plug-ins/python/python-startup.py:
6713 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
6715 * plug-ins/python/python.c (dia_plugin_init): Added warning
6716 message for missing startup file.
6718 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
6720 * lib/dia_image.c (dia_image_rgb_data):
6721 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
6722 involving EPS. Can't do transparency in EPS yet.
6725 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
6726 data as one chunk. Documentation for the RGB data getting funcs.
6727 (dia_image_rgb_data): Added comment.
6729 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
6732 2003-01-13 Steffen Macke <sdteffen@web.de>
6734 * lib/dia_image.c: dia_image_rgb_data() is working for
6735 non-alpha images now. Fixes #93762
6736 * Makefile.am: added makefile.msc to EXTRA_DIST
6738 2003-01-10 Steffen Macke <sdteffen@web.de>
6740 * app/paginate_psprint.c: Closing print dialog when file
6741 could not be written. Fixes #84746
6743 2003-01-04 Steffen Macke <sdteffen@web.de>
6745 * doc/custom-shapes: incomplete description of <svg:text>
6747 2003-01-03 Steffen Macke <sdteffen@web.de>
6749 * makefile.msc(new): new makefile to create file
6750 structure suitable for running dia win32 under
6751 $(TOP)/dia/build/win32
6753 2003-01-02 Steffen Macke <sdteffen@web.de>
6755 * lib/dia_svg.c: including stdlib.h
6756 * lib/makefile.msc: added gdk_pixbuf libs to linker
6757 * app/makefile.msc: added gdk_pixbuf libs, made libart
6758 libs compatible with gnuwin32 package
6760 2003-01-01 Hans Breuer <hans@breuer.org>
6762 * lib/font.c : more comment about global_size_one
6764 * app/menus.c : <control>[<shift>]A for plain gtk build too.
6766 * plug-ins/wmf/wmf.cpp : some type juggling to make
6769 2002-12-31 Steffen Macke <sdteffen@web.de>
6771 * app/makefile.msc: added hint on how to enable console output
6773 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
6775 * objects/standard/textobj.c (textobj_load): Get the handle type
6776 right, at least to be the same as when created.
6778 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
6780 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
6782 2002-12-08 Hans Breuer <hans@breuer.org>
6784 * app/commands.c : fixed bug #85315 'give diagram properties,
6785 instead of no object selected error' almost a one-liner
6787 * app/splash.c : don't make having the logo pixmap
6788 mandatory. Fixes bug #96068.
6790 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
6791 sequence by connecting to the "delete_event"
6792 * app/objects/uml/class_dialog.c : handle "destroy" for
6795 * lib/libdia.def : remove diaXmlNewChild again
6797 * app/paginate_gdiprint.cpp : reflect Dia's page setting
6798 portrait/landscape in the windoze print dialog
6800 * objects/makefile.msc : only UML needs to link against
6801 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
6803 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
6805 * objects/standard/ellipse.c (ellipse_distance_from):
6806 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
6807 correct distance function. Could be faster, but it's not really
6810 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
6812 * lib/font.c: Changed global_size_one to more correct 28.35.
6817 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
6820 2002-12-07 Hans Breuer <hans@breuer.org>
6822 * lib/widgets.c : g_file_get_contents() silently assumes
6823 a binary file. Reflect when creating the font_menu file
6824 to get rid of junk in font menus
6826 2002-12-06 Hans Breuer <hans@breuer.org>
6828 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
6829 removed 0xD 0xD 0xA line ends which get created by
6830 cvs if windoze line ends 0xD 0xA are checked in from
6831 *nix and checked out on win32.
6833 * app/preferences.c : changed toolbox_on_top default to
6834 false. It is currently not possible to change the behaviour
6835 at runtime, at least not on win32.
6837 * lib/dialibartrenderer.c : bug #94791 'rendering to
6838 bitmap without PangoFt2' got delayed to milestone future
6839 so wrap libart text rendering into PANGO_WIN32_FUTURE.
6840 It is not available without my Pango patch in bugzilla.
6842 * lib/font.c : added comment to global_size_one and adapt
6843 the arbitrary size scaling in dia_font_build_layout() for
6844 win32, too. This is needed to get an acceptable font size
6845 approximation for Dia 0.90 and earlier files.
6846 Also #include "message.h".
6848 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
6849 reflect movement of group.[hc]
6850 * lib/group.h : export group_type which gets used by app/*
6852 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
6853 to get the GtkTypeInfo definition
6855 * plug-ins/makefile.msc : dxf and xfig don't need to link
6856 against app/ anymore now that group is moved to lib/
6858 * plug-ins/python/pydia-render.c : remove massive leaking
6859 of self, i.e. PyDiaRenderer
6861 * plug-ins/python/makefile.msc : remove linking against
6864 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
6866 * objects/standard/line.c: Removed properties options for gaps,
6867 until release is done.
6869 * configure.in: Check for freetype version.
6871 * lib/text.c (text_insert_char): Fixed small buffer overflow for
6874 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
6876 * app/diapsft2renderer.h:
6877 * app/diapsft2renderer.c:
6878 * app/diapsrenderer.h:
6879 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
6881 * app/render_eps.c (export_eps, new_psprint_renderer): Using
6882 PS_FT2 renderer when available. Old render stuff killed. Yay!
6884 * lib/properties.h: Fixed bad frame end def.
6886 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
6888 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
6890 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
6892 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
6894 * lib/font.c: Now checking for the proper dia-style standard fonts.
6897 * app/Makefile.am: Moving group.[ch]
6899 * plug-ins/dxf/dxf-import.c:
6900 * plug-ins/xfig/xfig-import.c:
6901 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
6905 * lib/object.c (object_list_move_delta, object_copy_list):
6906 * lib/object.h: Moved some object-related functions from
6907 object_ops to object to assist moving group.c.
6909 * lib/diatypes.h: Added Group typedef.
6912 * lib/group.c: Moved from app to lib to a) resolve plug-ins
6913 references, and b) make groups more "real" objects.
6915 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
6917 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
6919 * lib/font.c (dia_font_init): Added check that the three standard
6922 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6925 * app/load_save.c: Linebreaks in dia files, no indentation.
6926 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
6929 * objects/standard/line.c: Small but important fixes to the line
6933 * lib/dia_xml.c (diaXmlNewChild):
6934 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
6935 XML prettyprinting wrapper.
6937 2002-12-03 Steffen Macke <sdteffen@web.de>
6939 * shapes/Cisco/Makefile.am:
6940 * shapes/Cisco/*.shape: finished conversion of Cisco icons
6943 2002-12-02 Steffen Macke <sdteffen@web.de>
6945 * doc/en/Makefile.am:
6946 * doc/en/usage-objects.sgml:
6947 * doc/en/graphics/line_icon.png: (new) added line icon
6949 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6951 * objects/standard/line.c: Binary search object edge line gap.
6953 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
6955 * configure.in: Added Cisco makefile, sorted Makefiles list.
6957 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
6959 * configure.in: Now checks for availability of PangoFT2 and
6960 FreeType, raising an error if not found.
6962 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
6965 2002-12-01 Steffen Macke <sdteffen@web.de>
6967 * doc/en/usage-loadsave.sgml: updated information on import
6970 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
6972 * app/commands.c (edit_copy_callback): Freeing copy_list.
6974 2002-11-28 Steffen Macke <sdteffen@web.de>
6976 * app/render_libart.c: art_config.h was included twice
6978 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
6980 * sheets/.cvsignore: More ignorance.
6982 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
6984 * lib/prop_widgets.h: Two (currently unused) settings for frame
6987 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
6988 (by default) foldable.
6990 * lib/propinternals.h:
6991 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
6992 widgets in a more controlled manner.
6994 * objects/standard/line.c (line_update_data): Line gap things
6995 inserted. Can do xeyes now:)
6997 2002-11-26 Christian Neumair <chris@gnome-de.org>
6999 * .cvsignore: Changed.
7000 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
7001 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
7004 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7006 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
7008 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
7009 passing to font hash.
7011 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
7012 utf-8 or locale-convertible before adding to dialog text. This
7013 probably needs done in a number of places where we get text from
7014 the environment and send it to GTK to display.
7016 * lib/widgets.c: Fixed case problems for font menu entries.
7018 * objects/SADT/annotation.c: Don't run the event test (but leave
7019 it here for inspiration).
7022 * lib/widgets.h: Allowing setting preview text for fonts.
7024 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7026 * objects/bondgraph/Makefile.am:
7027 * objects/bondgraph/bondgraph.c:
7029 * objects/Makefile.am: Added bond graph dir.
7031 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7033 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
7035 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
7037 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
7040 * app/diapsrenderer.c: Freetype rendering is back in force.
7042 * app/disp_callbacks.c: Added missing updates for pre-text-change.
7044 2002-11-25 David Hoover <jazzdaq@yahoo.com>
7046 * app/render_libart.c: Added missing #include line for libart.
7049 * lib/geometry.c: Added point_convex function. This computes
7050 points inside a line segment (0 <= alpha <= 1) or outside the
7051 line segment (alpha < 0 | alpha > 1).
7053 * objects/standard/line.c: Line now has additional code/attributes
7054 which permit the line to extend past the line anchors (gap < 0) or
7055 leave a gap without reaching the anchor (gap > 0). If no gap is
7056 specified, the default gap of 0 will result in identical line
7057 behavior as before. If the 'fractional' attributes are TRUE, the
7058 gap length is not fixed, but a percentage of the line length. I
7059 did not know how create the GTK widgets so the gap code currently
7060 cannot be used without adding XML attributes by hand.
7062 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
7064 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
7066 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
7068 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
7070 * lib/font.c: Debugging functionality in separate functions.
7072 * lib/widgets.c: Using fontsel with context.
7074 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
7076 * objects/custom/custom_object.c: Orientation handling for shapes,
7077 patch thanks to Martin Hans <opfinder@gmx.net>.
7079 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
7080 work on even better orientation handling.
7082 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
7083 casting NULL pointers. Should be unnecessary in an upcoming GTK
7086 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
7090 * lib/widgets.c: Now uses correct context to get font families.
7092 * lib/diagdkrenderer.c (get_text_width, draw_string):
7093 * lib/dialibartrenderer.c (draw_string):
7095 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
7096 (dia_font_build_layout): Unified the twiddle factors into a use of
7097 global_size_one. But I deeply distrust Pango for seeming to
7098 change size of fonts every time I turn my back.
7103 * app/menus.h: Updated some more methods to also be more specific
7107 * app/recent_files.c:
7108 Changed to return most specific type, to avoid run-time type errors.
7110 * app/menus.c (menus_get_item_from_path): Non-gnome version now
7111 gets menu_item rather than widget, which works better.
7113 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
7115 * app/display.c: (new_display):
7116 * app/menus.c: (menus_get_item_from_path):
7117 Relying on the tearoff to locate the input methods menu wasn't a
7118 good idea: tearoffs seem to be an endangered species nowadays.
7119 Anyway, the IM menu seems to be working now.
7121 * app/interface.c: hinted the window manager that the toolbox window
7122 is a toolbox window. Not that my (fairly default configuration)
7123 sawfish cares, but other NETWM compliant WMs may.
7130 * app/layer_dialog.c:
7131 * app/linewidth_area.c:
7133 * app/sheets_dialog.c:
7136 The GTK doc says to avoir gtk_window_set_wmclass() and
7137 gtk_window_set_policy(), and use gtk_window_set_role() and
7138 gtk_window_set_resizable(), respectively.
7140 * app/preferences.c: (prefs_create_dialog):
7141 * app/preferences.h:
7142 * app/display.c: (display_set_active):
7143 Added a preference to have the toolbox hover over diagram windows.
7145 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
7147 * lib/diagdkrenderer.c (get_text_width, draw_string):
7148 Freetype-based string drawing now works. Not very fast, though.
7149 I wish I could use the graphics card for this:( I'm doing three
7150 bitmap loops where I should be doing one. The size is not correct
7151 either, despite having get_text_width give the right thing.
7153 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
7155 * app/connectionpoint_ops.c (diagram_update_connections_object):
7156 Allows more than one connectionpoint on an object to be moved at a
7159 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
7161 * configure.in: Added cs to ALL_LINGUAS.
7163 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
7165 * app/paginate_psprint.c: Removed unnecessary decl of autosave
7168 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
7170 * app/export_png.c (export_png_ok): Saving more variables from the
7173 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
7175 * lib/dialibartrenderer.c (begin_render):
7176 (end_render): Correct pushing and popping of font contexts.
7177 (draw_string): Double zooming eliminated, strange twiddle factor
7178 introduced (grumble). Close to working now, but there are still
7179 strange differences from font to font. In particular, some fonts
7180 really mess with the cursor and extents.
7182 * app/render_eps.c (export_eps):
7183 * app/diapsrenderer.c (dia_ps_renderer_finalize):
7184 Fixed file closing confusion, no longer dependent on PS/EPS.
7186 * app/diagram.c (diagram_place_down_selected)
7187 (diagram_place_up_selected): Now implemented.
7189 * lib/font.c (dia_font_init):
7191 Redesigned the font init/context pushing code. Start of fix for
7192 font name differences.
7194 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
7196 * app/sheets_dialog_callbacks.c: Fix a typo.
7198 2002-10-15 Hans Breuer <hans@breuer.org>
7200 * app/diapsrenderer.[hc] : (new files, old content :-)
7201 simple base class for post script rendering. Does neither
7202 use Pango/FT2 nor does it handle non latin1 characters.
7203 The fancy stuff which nowadays appears to be needed should
7204 probably be done in derived class(es)
7206 * app/makefile.msc app/Makefile.am : added new files
7208 * app/paginate_psrint.c : re-enabled and used as test
7209 for the simple ps renderer above.
7211 * app/render_eps.[hc] : ripped out common ps code and
7212 moved to DiaPsRenderer. The rest of the file is mostly
7213 disabled. And I don't understand enough of it to
7216 * app/diaepsrenderer.h : short lived, removed.
7218 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
7220 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7221 as a plugin (thanks to Torben Nielsen).
7223 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
7225 * app/diaepsrenderer.h:
7227 * app/paginate_psprint.c:
7228 #ifdef'd out enough ps stuff to allow compile. Now we just need
7231 2002-10-12 Hans Breuer <hans@breuer.org>
7233 [last plug-in ported]
7235 * plug-ins/xfig/xfig-export.c : ported to new renderer api
7237 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7238 scale color values to [0..1.0] to properly reconstruct
7241 * plug-ins/xfig/xfig-common.c : some cleaning
7243 2002-10-12 Hans Breuer <hans@breuer.org>
7245 [decrease inter-plug-in-dependencies]
7247 * objects/custom/shape_info.[hc] : move parse_style()
7248 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7249 the related structs and constants.
7250 * objects/custom/custom_object.c : reflect namespace
7253 * lib/dia_svg.[hc] : new files
7254 * lib/makefile.msc lib/Makefile.am : add new files
7255 * lib/libdia.def : updated externals
7257 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7259 * plug-ins/svg/svg.c : enable svg import for win32 (and
7260 probably for other non ELF builds)
7262 * plug-ins/makefile.msc : enable svg import
7264 2002-10-11 Hans Breuer <hans@breuer.org>
7266 * plug-ins/metapost/render_metapost.[hc] : ported
7268 * plug-ins/pstricks/render_pstricks.[hc] : dito
7270 2002-10-11 Hans Breuer <hans@breuer.org>
7272 * plug-ins/cgm/cgm.c : ported, appears to work as before,
7273 but graphic apps available to me can't import the generated
7274 files (the could not with Dia-0.90 cgm as well) ...
7276 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7277 Removed all those function which did emulate 'complex'
7278 drawing ops with basic ones (e.g. rect by line) cause this
7279 stuff is already provided by the base class
7280 * plug-ins/dxf/dxf-import.c : removed render.h include
7282 * plug-ins/python/pydia-font.[hc]
7283 plug-ins/python/pydia-text.c : finally ported to new font api
7285 * plug-ins/python/pydia-layer.c : add extra parameter
7286 to layer_find_closest_connectionpoint()
7288 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7290 * plug-ins/python/python.c : added missing copyright notice
7292 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
7293 actually use the renderers set_font implementation
7295 * plug-ins/renderer.inc : unused now, removed
7296 * plug-ins/Makefile.am : reflect it
7298 2002-10-08 Hans Breuer <hans@breuer.org>
7300 * app/render_gdk.c : don't add the InteractiveRenderer
7301 interface multiple times (it's added to the type, not
7303 * app/render_libart.c : dito. It's currently added
7304 unconditional cause eport_png uses it, but claims
7305 to be non-interactive. Probably set_size should be moved
7306 to the DiaRenderer interface.
7308 * lib/dialibartrenderer.c : add implementations for
7309 get_<width|height>_pixels. Libart rendering works again.
7310 DiaLibartRenderer::draw_image : use dia_image_rowstride()
7313 * lib/diatransform.c(dia_transform_coords_double) :
7314 don't ROUND() the returned values
7316 * plug-ins/pixbuf/pixbuf.c : added import function. It
7317 simply creates a wrapping "Standard - Image" object.
7319 * plug-ins/shape/shape-export.c : use the more direct
7320 method to call base class methods
7322 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
7324 * lib/font.c (dia_font_init): Changed dia_font_init to return old
7325 pango context, to allow stacked contexts (for printing while
7334 * lib/connectionpoint.h
7337 * lib/diagdkrenderer.h
7339 * lib/dialibartrenderer.h
7342 * lib/diasvgrenderer.h
7343 * lib/diatransform.h
7350 * lib/neworth_conn.h
7365 Moved all externally visible struct typedefs into diatypes.h, as
7366 per Hans' suggestions.
7368 2002-10-07 Steffen Macke <sdteffen@web.de>
7370 * lib/Makefile.am: removed a '\' causing problems
7372 2002-10-07 Hans Breuer <hans@breuer.org>
7374 [Libart Renderer resurrected; almost it's compiling but
7375 almost instantly crashing :-]
7377 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
7378 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
7379 * lib/diatransform.[hc] : added dia_transform_coords_double()
7381 * app/display.c : the right parameters for new_renderer_libart()
7382 * app/export_png.c : ported, removed the blind Display hack
7384 * app/makefile.msc lib/makefile.msc
7385 lib/Makefile.am : updated
7387 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
7389 2002-10-06 Hans Breuer <hans@breuer.org>
7391 * plug-ins/pixbuf/pixbuf.c : (new file)
7392 there is a new export plug-in called 'Pixbuf' which uses
7393 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
7394 formats (currently only PNG and JPEG).
7396 2002-10-06 Hans Breuer <hans@breuer.org>
7399 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
7401 * lib/dia-enums.h lib/diatransform.[hc]
7402 lib/diarenderer.[hc] lib/diainteractiverenderer.c
7403 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
7406 * lib/makefile.msc lib/makefile.am : added new files
7408 * lib/plug-ins.c : g_module_error() returns a locale
7409 string, convert to utf8 before further usage
7411 * lib/render.h : #error out. Everything including this
7413 * lib/*.[hc] : ported to new renderer api
7415 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
7416 just to make the rest compile
7417 * app/render_eps.c : temporary disabled all of this
7418 * app/render_eps.h : removed RendererEPS
7420 * app/render_gdk.[hc] : a small wrapper around the new
7421 DiaGdkRenderer form lib/*
7423 * app/render_libart.h : removed RenderLibart definition
7424 * app/render_libart.c : not yet ported to new DiaRenderer
7425 but having an implementation to untie form FT2 dependency
7426 at least on win32. It is using new Pango api form bug #94791
7428 * app/render_pixmap.[hc] : a small wrapper around the new
7429 DiaGdkRenderer form lib/*
7431 * app/display.h : removed render_*.h includes
7432 * app/display.c : the only place where specific
7433 renderers need to be known
7435 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
7436 use new DiaInteractiveRenderer interface
7438 * app/*.c : ported to new renderer api
7439 * object/*/*.c : ported to new renderer api
7440 s/render.h/diarenderer.h/
7441 s/Renderer/DiaRenderer/
7442 s/renderer->ops/renderer_ops/
7443 add in every draw method:
7444 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
7446 * plug-ins/hpgl/hpgl.c :
7447 plug-ins/wmf/wmf.cpp
7448 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
7449 * plug-ins/shape/shape-export.c
7450 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
7451 (nice how small these files became :-)
7453 2002-09-28 Hans Breuer <hans@breuer.org>
7455 * */makefile.msc : updated
7457 * app/defaults.c : don't gdk_invalidate_rect(NULL)
7458 * app/disp_callbacks.c :
7459 can't cast GtkWindow to GdkWindow, use shell->window
7460 (ddisplay_unrealize) don't use already unrefed im_context
7462 can't cast from GtkMenu to GtkMenuItem
7463 (ddisp_destroy) : mark im_context as unrefed
7465 * lib/dia_xml (data_font) : prefer new font format over old one
7466 (data_add_font) : write the legacy name to allow file exchange
7467 with pre Pango versions of Dia, which would otherwise crash
7468 on missing font 'name' attribute.
7469 * lib/font.c (dia_font_get_legacy_name) : improved implementation
7470 to get a better match.
7472 * lib/libdia.def : updated
7474 * lib/messages.c : don't gdk_widget_show(NULL)
7476 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
7478 [make Dia compile, link _and_ work with mingw/gcc3.2]
7480 * config.h.win32 : #define LIBXML, this gets defined from libxml
7481 header but only for _MSC_VER. The mingw build did access an
7482 unitialized function pointer for xmlFree.
7484 * */makefile.mingw : updated (some plug-ins have build issues)
7486 * lib/handle.h lib/object.h : there appears to be no
7487 forward declaration of the form
7488 typedef enum _HandleId HandleId
7489 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
7490 use of enum `_HandleId' without previous declaration
7492 * app/paginate_gdiprint.cpp : added a hack to avoid g++
7493 naming conflict on 'export'
7495 * app/paginate_gdiprint.h : forward declare Diagram
7497 * objects/SADT/annotaion.c : use g_random_double()
7499 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
7501 * app/modify_tool.c: Made motion not happen until sufficiently
7502 large or past double-click interval, to avoid accidental moving
7503 when doubleclicking. Got the double-click time right, and fixed
7504 some issues with release. There are some corner cases that may
7505 exhibit strange behaviour, will look at those later. Nah, let's
7506 not care about those, they are rare and not dangerous.
7508 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
7510 * app/layer_dialog.c:
7512 * plug-ins/dxf/dxf-import.c:
7513 * plug-ins/python/pydia-diagram.c:
7514 * lib/diagramdata.c:
7515 * lib/diagramdata.h:
7516 Improved the consistency of the obj->parent_layer backlinks (esp.
7521 * lib/dynamic_obj.[ch] (NEW):
7524 * app/dynamic_refresh.[ch] (NEW):
7525 * objects/Misc/analog_clock.c:
7526 Added support for dynamic refresh (animated objects).
7528 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
7530 Patch from Owen Taylor <otaylor@redhat.com>:
7531 * doc/en/Makefile.am:
7532 * doc/en/dia-manual.sgml:
7533 * doc/en/usage-objects.sgml:
7534 * doc/en/usage-quickstart.sgml:
7535 * doc/pl/Makefile.am:
7536 * doc/pl/dia-manual.sgml:
7537 * doc/pl/usage-objects.sgml:
7538 * doc/pl/usage-quickstart.sgml:
7540 - Change the DTD declration from an outdated GNOME one to a
7543 - Remove close tags for <graphics> which aren't allowed for
7546 - A hacky fix for a problem where some versions of db2html don't
7547 create *.css files. (If *.css doesn't match anything, then you get
7548 the global explicitely.)
7552 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
7554 * objects/custom/custom_object.c:
7555 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
7556 were never properly prepared for use when reloading a shape with
7557 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
7558 reporting the problem and coming up with a fix! (Closes: #93974)
7560 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
7561 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
7564 * app/display.c: updated menu item paths Alan's patch had moved.
7566 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
7567 load the sheet-provided icon (libpng versions mismatch, grrr.).
7570 * objects/Makefile.am:
7571 * objects/Misc/Makefile.am (NEW):
7572 * objects/Misc/libmisc.c (NEW):
7573 * objects/Misc/analog_clock.c (NEW):
7574 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
7575 * sheets/Misc.sheet.in: just a little experiment...
7577 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
7579 * plug-ins/xlst/Makefile.am: found a way to silence automake while
7580 not forcing everyone to build using libxslt.
7584 * lib/object_defaults.c:
7587 * lib/properties.[ch]:
7589 * objects/standard/box.c:
7590 * objects/UML/state_term.c:
7592 * objects/FS/flow-ortho.c:
7596 * app/diagram_tree.c:
7598 * app/disp_callbacks.c:
7601 * app/lineprops_area.c:
7603 * app/preferences.c:
7606 * app/sheets_dialog_callbacks.c:
7607 * plug-ins/xslt/xslt.c:
7608 * plug-ins/metapost/render_metapost.c:
7609 * plug-ins/xfig/xfig-export.c:
7610 * plug-ins/shape/shape-export.c:
7612 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
7613 unused variables, mostly)
7616 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
7618 * app/Makefile.am: modified run_dia.sh so that we recover the
7619 ability to run a debugger despite libtool's hacks.
7621 * plug-ins/dxf/Makefile.am:
7623 "make distcheck" fixes.
7625 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
7627 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
7628 <mfranzoni@madd.it>: Check for the type being NULL.
7630 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
7632 * app/render_eps.c (set_font): Re-tweaked font size for printing.
7634 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
7636 Patch from Angus Ainslie <angusa@deltatee.com>:
7637 * plug-ins/dxf/dxf-import.c:
7638 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
7640 (plus a couple extra fixes by me, such as the removal of printf's,
7641 adapting for recent changes, and killed a couple warnings)
7643 * app/authors.h: a 60K patch isn't insignificant, is it?
7645 2002-09-09 Tor Lillqvist <tml@iki.fi>
7647 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
7648 as before) and -lfreetype (using AC_CHECK_LIB). At least on
7649 Solaris with Sun's compiler (Forte C), you need to link also the
7650 dia application with -lfreetype, even if it is implicitly linked
7651 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
7652 which is what they actually mean. Use FREETYPE_LIBS for
7655 Don't look for libsunmath if isinf() is not found in math.h (as on
7656 Solaris). The sunmath library is part of Forte C and not present
7657 on all machines. Besides, even if isinf was found in libsunmath,
7658 we didn't use it in the Makefile.am.
7660 Fix a couple of bashisms.
7662 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
7663 too, on Solaris with Forte C.
7665 Don't try to use the gcc flags with other compilers.
7666 DIA_CHECK_CFLAG gives a false indication that Forte C understands
7667 the gcc -f switches, but in fact they get interpreted meaning
7668 something completely different.
7670 Define the automake conditional HAVE_CGC.
7672 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
7674 Use -export-dynamic only with gcc.
7677 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
7678 PANGOFT2_CFLAGS rename.
7680 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
7682 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
7685 * lib/paper.c: Workaround for gccism: Can't use inline this way with
7688 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
7690 * lib/text.c(set_string): fixed a memory leak (char* ain't no
7691 std::auto_ptr<char> !).
7694 * app/interface.[ch]:
7695 * app/ddisp_callbacks.[ch]: Added some basic support for input
7696 methods (GtkIMContext-based)
7699 * app/Makefile.am: made libdia a shared object (per Tor
7700 Lillqvist's suggestion/request), to cope for platforms with a less
7701 than par dynamic library loader.
7703 * app/display.c: disabled the input method menu (I really don't
7704 see where and how to put them. Blame Frozen Bubble )
7706 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
7708 * objects/flowchart/box.c (box_update_data): Made resizing
7709 possible again (only set width & height when resized too small).
7711 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
7713 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
7716 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
7718 * app/authors.h: now showing Akira TAGOH's name in the native script.
7720 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
7722 * plug-ins/xslt/xslt.c: Removed glib warning for unset
7725 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
7727 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
7728 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
7731 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
7733 * objects/UML/class.c: Fixed showing of empty stereotypes and got
7734 the string placed correctly.
7736 2002-08-30 Hans Breuer <hans@breuer.org>
7738 * lib/font.c (dia_font_get_style) : don't shift already
7739 shifted DIA_FONT values.
7741 * lib/libdia.def : updated externals
7743 * app/disp_callbacks.c : on win32 GdkEventKey::string already
7744 is in UTF-8. (Longterm this probably should be handled on the
7747 * app/command.[hc] app/display.[hc] app/menus.c : add code to
7748 switch display renderers again. The libart renderer is very
7749 useful for win9x with it's limited GDI.
7751 * app/render_gdk.c : use g_warning instead of printf which gets
7752 nowhere on win32 (non console apps)
7754 * app/render_libart.c : make it compile without FREETYPE
7756 * objects/makefile.msc plug-ins/makefile.msc : added clean target
7758 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
7760 * app/render_eps.c (postscript_draw_contour): Debugging statement
7761 that allowed me to figure out font problems.
7763 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
7764 items for font styles.
7766 * objects/FS/flow-poly.c:
7767 * objects/FS/flow-ortho.c:
7768 * objects/FS/flow.c: Further conversion away from GTK dialogs.
7769 Can't set a default label right now:(
7771 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
7773 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
7774 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
7776 * Makefile.am: rules relating to AUTHORS and THANKS
7778 * AUTHORS: file content changed to more accurately
7779 reflect guideline requirements.
7780 * TODO: warning added about Gnome BTS.
7781 * KNOWN_BUGS: warning added about Gnome BTS.
7785 * AUTHORS: added full copyright info.
7786 * mkauthors-placeholder: (removed)
7788 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
7790 * app/paginate_psprint.c (print_page): Fixed text printing after
7791 tip from Dov Grobgeld.
7793 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
7795 * app/paginate_psprint.c (print_page): Fixed color of clip
7798 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
7800 * sheets/Makefile.am: enabled intltool-merge translation cache for
7804 * mkauthors-placeholder:
7805 * AUTHORS: revived that file (in a placeholder form) so that
7806 automake stops yelling.
7807 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
7810 Heh, by the way, thanks Christophe. I feel better now.
7812 2002-08-25 Christophe Merlet <christophe@merlet.net>
7814 * app/command.c: Removed invalid multibyte sequence in Chepelov.
7816 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
7818 * lib/dia_image.c (dia_image_rgb_data):
7819 Bugfixes in image data retrieval.
7821 * app/render_eps.c: Refactoring of new_*_renderer.
7823 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
7827 * lib/dia_image.c: Support for rowstride != width (odd width images)
7829 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
7831 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
7832 * plug-ins/xfig/xfig-import.c: Removed assertion.
7834 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
7836 * lib/paper.c: Removed app/preferences.h reference.
7838 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
7840 * plug-ins/svg/svg-import.c:
7841 * plug-ins/xfig/xfig-import.c:
7842 * lib/Makefile.am (libdia_a_SOURCES):
7843 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
7845 * objects/standard/create.h:
7846 * objects/standard/polygon.c (polygon_create):
7847 * objects/standard/polyline.c (polyline_create):
7848 * objects/standard/beziergon.c (beziergon_create):
7849 * objects/standard/bezier.c (bezierline_create):
7850 Moving create.h into lib.
7852 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
7854 * app/render_libart.[ch]: Work on PNG font export. Something's
7855 still fishy with the scaling, I don't get it.
7858 * app/interface.c: Replaced broken zoom combo with entry+menu.
7859 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
7861 * app/render_gdk.c (get_text_width): Checks for validity of text.
7862 Temporary help while debugging input -- should only activate on
7865 * objects/SADT/annotation.c:
7866 * objects/GRAFCET/transition.c:
7867 * objects/FS/function.c: Removal of gtk.h include.
7869 * objects/UML/state.c (state_load): Warnings about using State
7870 object for initial/final states.
7872 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
7874 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
7876 * app/render_eps.c: Text rendering that scales correctly. Too bad
7877 the standard fonts don't get selected right.
7879 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
7881 * lib/diagramdata.h:
7882 * lib/paper.c (get_paper_info):
7884 * plug-ins/xfig/xfig-import.c:
7885 Committed before testing. I am so embarrased. This compiles, now
7886 that the includes are in the right order.
7888 * app/diagram.c (diagram_init):
7889 * app/app_procs.c (do_convert):
7890 * app/preferences.h:
7891 * lib/diagramdata.h:
7892 * lib/diagramdata.c (new_diagram_data):
7894 * lib/paper.c (get_paper_info):
7895 Moved new_diagram part of prefs into lib/diagramdata.h. More
7896 could be done in new_diagram_data() now.
7898 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
7900 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
7902 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
7904 * configure.in: removed silly user-visible comment
7906 (actually, this is a dummy entry before I manually run nemo; for
7907 some dist-upgrade related reason, this morning's run aborted before
7908 the snapshots were created)
7910 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
7912 * objects/network/wanlink.c:
7913 * objects/network/bus.c:
7916 * objects/custom/custom_object.c:
7917 * objects/network/wanlink.c:
7918 * objects/flowchart/parallelogram.c:
7919 * objects/flowchart/ellipse.c:
7920 * objects/flowchart/diamond.c:
7921 * objects/flowchart/box.c:
7922 Removed GTK defaults stuff.
7924 * objects/UML/fork.c:
7925 * objects/UML/object.c:
7926 * objects/UML/lifeline.c:
7927 * objects/UML/branch.c:
7928 * objects/GRAFCET/transition.c:
7929 * objects/FS/function.c: Removed GTK include.
7931 * objects/FS/flow-ortho.c:
7932 * objects/FS/flow.c: Made the label behave again.
7933 Also removed GTK defaults stuff.
7935 2002-08-06 Hans Breuer <hans@breuer.org>
7937 * app/autosave.c : ported to GDir which is the improved
7938 cross platform replacement for <dirent.h>
7940 * app/makefile.msc : build autosave.obj
7942 * app/font.c : some (bad?) code calls
7943 dia_font_scaled_decent() not only with empty string but
7944 with NULL. Handle it gracefully.
7946 * lib/paper.c : don't depend on ../app. Although IMO
7947 this shouldn't be allowed on any platform it is only
7948 disabled for win32, where it simply doesn't work
7951 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
7953 * objects/fs/flow.c : conditionalize debug spew, disabled
7954 and 'ported' to use g_print. Simple printf won't work with
7955 standard win32 gui apps, may even crash them.
7957 * plug-ins/makefile.msc : DISABLED svg-import cause it
7958 depends on ../objects/custom. This not only break the
7959 build for all non ELF systems but IMO also isn't acceptable
7960 from a design point of view. See dia-list mail on subject.
7962 * plug-ins/python/makefile.msc :
7963 plug-ins/python/python.c : remove all references to dirent
7965 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
7967 * configure.in: added ro to ALL_LINGUAS
7971 * ../translation-graphs/transgraph.py: added support for fuzzy
7972 translations. Enlarged the graphs.
7974 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
7976 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
7977 key events according to locale. No clue if this works for
7980 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
7982 * lib/text.c: Various UTF8 related fixes, in particular in
7983 deleting. Text_insert_char is fine, far as I can tell.
7985 * app/interface.c (create_display_shell):
7986 * app/commands.c: Now uses gtk_clipboard functions, for they are
7987 much simpler. Also handles Win32 clipboard. Non-ascii chars
7988 don't seem to get handled correctly by text_insert_char in
7991 * app/commands.c (received_selection_handler): Got utf8 handling
7992 on paste, and individual char handling out of commands.c. Pasting
7993 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
7995 * lib/message.c (gtk_message_internal): Message dialog re-shown
7996 when new message appears. Maybe it should even move to top?
8000 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
8001 (again) and case-insensitive.
8003 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
8006 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
8008 * app/commands.c (edit_cut_text_callback):
8009 * lib/text.c (text_delete_all): Now functioning undo for text cut.
8011 * app/commands.c (edit_cut_text_callback): Now removes text.
8012 Undo is broken, though.
8014 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
8016 * app/diagram.c (diagram_update_menu_sensitivity):
8017 Making cut_text active.
8020 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
8021 clipboard. Also removed AA callback.
8023 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
8025 * objects/chronogram/chronoref.c:
8026 * objects/chronogram/chronoline.c:
8027 * objects/SADT/annotation.c:
8028 * objects/SADT/arrow.c:
8029 * objects/SADT/box.c:
8030 * objects/GRAFCET/vergent.c:
8031 * objects/GRAFCET/vector.c:
8032 * objects/GRAFCET/step.c:
8033 * objects/GRAFCET/condition.c:
8034 * objects/GRAFCET/action.c:
8035 * objects/ER/participation.c:
8036 * objects/ER/relationship.c:
8037 * objects/ER/entity.c:
8038 * objects/ER/attribute.c:
8039 Removing unnecessary GTK references.
8041 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
8043 * objects/standard/image.c:
8044 * objects/standard/textobj.c:
8045 * objects/standard/ellipse.c:
8046 * objects/standard/polygon.c:
8047 * objects/standard/beziergon.c:
8048 * objects/standard/box.c:
8049 Making default default properties.
8051 * objects/standard/image.c:
8052 * objects/standard/arc.c:
8053 * objects/standard/box.c:
8054 * objects/standard/zigzagline.c:
8055 * objects/standard/polyline.c:
8056 * objects/standard/line.c:
8057 * objects/standard/ellipse.c:
8058 * objects/standard/polygon.c:
8059 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
8061 * lib/object_defaults.c (dia_object_default_create):
8064 * lib/object.c (object_copy_using_properties):
8065 * lib/propdialogs.c:
8066 * lib/propinternals.h:
8067 * lib/propobject.c (object_create_props_dialog)
8068 (object_copy_props):
8069 Removing the standard (toolbox) properties from defaults dialogs.
8071 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
8073 * lib/font.c (dia_font_scaled_string_width)
8074 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
8076 * lib/text.c (text_calc_boundingbox): Take descent into account.
8078 * objects/standard/bezier.c (bezierline_draw):
8079 * lib/render.c (draw_bezier_with_arrows):
8080 Better arrow drawing for beziers. Doesn't change the mouse-click
8083 * lib/arrows.h: Some const-ness.
8085 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
8087 * lib/render.c (draw_arc_with_arrows):
8088 * objects/standard/arc.c (arc_draw): Better arrow drawing for
8089 arcs. Doesn't change the mouse-click area yet.
8091 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
8097 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
8099 * app/group.c (group_draw): Forgotten commit: Groups to draw as
8100 objects (using default routines).
8104 * lib/diagramdata.h:
8105 * lib/diagramdata.c (layer_find_closest_connectionpoint):
8106 * objects/standard/zigzagline.c (zigzagline_move_handle):
8107 * app/diagram.c (diagram_find_closest_connectionpoint):
8108 * plug-ins/python/pydia-diagram.c
8109 (PyDiaDiagram_FindClosestConnectionPoint):
8110 * app/object_ops.c (object_connect_display)
8111 (object_find_connectpoint_display)
8112 * app/create_object.c (create_object_button_press)
8113 (create_object_motion):
8114 * app/modify_tool.c (modify_motion):
8115 Adding object param to allow connectionpoint and handle coinciding.
8117 * objects/standard/zigzagline.c (zigzagline_check_orientation):
8118 Fixing minor problems.
8120 * objects/standard/ellipse.c (ellipse_update_data):
8121 Added direction hints.
8123 * lib/diagramdata.c:
8126 * lib/diagramdata.h:
8127 * objects/standard/zigzagline.c:
8128 First working example of zigzagline hints, currently only between
8131 2002-07-27 Steffen Macke <sdteffen@web.de>
8133 * plug-ins/svg/render_svg.c: added support for rounded
8134 rectangles (fixes #69053 if compile with
8136 * object/custom/shape_info.[c|h]: made parse_style and
8137 parse_path accessible for svg plug-in
8138 * plug-ins/svg/Makefile.am:
8139 * plug-ins/svg/svg.c:
8140 * plug-ins/svg/svg-import.c(new): added SVG import filter
8142 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
8144 * objects/standard/box.c:
8145 * objects/standard/zigzagline.c (zigzagline_move):
8146 More work on zigzagline hints.
8148 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
8149 * lib/connectionpoint.h:
8150 Hints for zigzaglines.
8152 * app/properties.c (properties_show):
8153 * app/defaults.c (defaults_show):
8155 * lib/propobject.c (object_create_props_dialog):
8157 * objects/FS/flow-poly.c:
8158 * objects/network/wanlink.c:
8159 * objects/network/bus.c:
8160 * objects/UML/class.h:
8161 * objects/UML/class_dialog.c:
8162 * objects/UML/association.c:
8163 Start of removing toolbox props from props dialogs.
8167 * app/lineprops_area.c (dia_arrow_chooser_new):
8168 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
8170 * app/create_object.c:
8171 * app/modify_tool.c:
8176 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8178 * app/preferences.c:
8180 * app/diapagelayout.c:
8181 New prefs selector kind PREF_CHOICE chooses between a list of
8182 strings. Used for picking default paper.
8184 * app/preferences.c (prefs_data):
8185 * lib/paper.c (get_paper_info): Added prefs setting for
8188 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8189 line segments at the ends (bug #86603).
8191 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8193 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8194 #60324: Now calls update_data after copy.
8196 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8197 Now doesn't steal selection from non-object tools.
8199 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
8201 * app/commands.c (help_manual_callback): Uses BROWSER environment
8202 variable when available.
8204 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
8206 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8207 object from the new sheet when changing.
8209 * app/app_procs.c (app_init): Uses more standard size icon, from
8210 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
8212 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
8214 * objects/UML/implements.c (implements_update_data):
8215 * objects/UML/realizes.c (realizes_update_data):
8216 * objects/UML/dependency.c (dependency_update_data):
8217 Test for null strings before calling on ascent.
8219 * objects/UML/realizes.c (realizes_draw):
8220 * objects/UML/message.c (message_draw):
8221 * objects/UML/generalization.c (generalization_draw):
8222 * objects/UML/dependency.c (dependency_draw)
8223 * objects/UML/constraint.c (constraint_draw):
8224 * objects/GRAFCET/condition.c (condition_draw):
8225 * objects/UML/association.c (association_draw):
8226 * objects/FS/flow-ortho.c (orthflow_draw):
8227 * objects/FS/flow.c (flow_draw): Change to use
8228 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
8231 * lib/arrows.c (calculate_arrow_point):
8234 * objects/standard/zigzagline.c:
8235 * objects/standard/polyline.c:
8236 * objects/standard/line.c: Work towards better arrow drawing.
8238 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
8240 * objects/UML/state.c: Starting phase-out of State object as
8241 initial/final state (which never worked right).
8243 * app/app_procs.c (app_init): --version command line option for
8246 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8248 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
8250 * app/render_eps.c: Removed debugging info.
8252 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8253 Kludge to make ascent and descent work for empty strings. Won't
8254 work when using non-ASCII fonts. Better would be to get a
8255 PangoFont and ask directly.
8257 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8260 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8263 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
8265 * plug-ins/xfig/xfig-export.c: First use of draw_object render
8266 function: All shapes are now groups in XFig export.
8268 * lib/diagramdata.c (normal_render):
8271 * app/display.c (ddisplay_obj_render):
8272 New render function for drawing objects, allows renderers to group
8273 or otherwise specially handle objects. We may want to reconsider
8274 calling it in app/display.c, as we 'know' the object draw function
8275 is the default one there.
8277 * lib/Makefile.am: Removed extra \ that broke stuff.
8279 * plug-ins/xfig/xfig-import.c:
8280 Spline import for xfig. Not perfect.
8282 * objects/standard/create.h:
8283 * objects/standard/bezier.c (bezierline_create):
8284 * lib/bezier_conn.c:
8285 * lib/beziershape.c (beziershape_set_points):
8286 * lib/bezier_conn.h:
8287 * lib/beziershape.h:
8288 Support for creating beziers non-interactively.
8290 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
8292 * plug-ins/xfig/xfig-import.c: Support for polygons and
8293 polylines. Special warning handling system removed.
8295 * lib/message.c (gtk_message_internal): Fixed bug involving
8296 closing message window and then getting repeated message.
8300 * configure.in (GETTEXT_PACKAGE):
8301 Update based on bug #88199. Hopefully this doesn't break too much
8304 * dia.desktop.in (_Comment): Changed after suggestion from
8305 calum.benson@ireland.sun.com (bug 88345)
8307 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8308 <loli@unsa.edu.ar> that makes user/system distinction better.
8310 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8312 * app/render_libart.c: Got the context right, removed crashes.
8322 Remove libart #defines from most places (still around for png export).
8324 * app/render_libart.h:
8325 * app/render_libart.c:
8326 * configure.in (HAVE_LIBART):
8327 Starting on update of libart stuff for png export (without X).
8329 * app/autosave.h (autosave_check_autosave):
8332 * app/Makefile.am (dia_core_files):
8334 * app/diagram.c (diagram_set_modified):
8336 * app/app_procs.c (app_init):
8337 Autosave support. No automatic restore yet.
8339 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8341 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8344 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
8346 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8348 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
8350 * Fix for 'make dist' etc. --- problem caused by
8351 previous AUTHORS patch.
8353 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
8355 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
8357 (set_font): NULL check.
8359 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
8361 * app/disp_callbacks.c:
8363 Addition to the object menus allows check menu items.
8365 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
8367 * HACKING: completely changed to bring up-to-date.
8368 * AUTHORS: file needs REMOVING from CVS as now
8369 dynamically generated.
8370 * app/authors.h: split into subcategories for original
8371 authors, maintainers, etc.
8372 * app/app_procs.c: --credits rewritten to support new
8374 * app/commands.c: no changes to about box code, comment
8376 * Makefile.am: added rule for AUTHORS. I'm still
8377 inexperienced with automake, it seems to work, but
8378 for AUTHORS-related bugs, look at this change first.
8380 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
8382 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
8383 work. Back to including xslt dir always.
8385 * objects/UML/uml.c:
8386 * objects/UML/class.h:
8387 * objects/UML/class_dialog.c:
8388 * objects/UML/class.c: Patch from
8389 <mattam@netcourrier.com>: Adds comment visibility switch, also
8392 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
8393 for state/fork/activity stuff.
8394 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
8395 * objects/UML/Makefile.am:
8396 * objects/UML/uml.c:
8397 * sheets/UML.sheet.in: Added new objects activity, fork,
8399 * objects/UML/pixmaps/state_term.xpm:
8400 * objects/UML/state_term.c: New, only initial/final states.
8401 * objects/UML/pixmaps/activity.xpm:
8402 * objects/UML/activity.c: New, activity state.
8403 * objects/UML/pixmaps/fork.xpm:
8404 * objects/UML/fork.c: New, fork/join bar.
8405 * objects/UML/pixmaps/state.xpm: state icon.
8409 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
8410 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
8413 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
8415 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
8418 * app/Makefile.am: Commented out the diaconv parts while it's not
8419 used anyway. To come back later.
8421 * configure.in (HAVE_FREETYPE):
8424 * app/render_eps.c: Support for printing with freetype, better
8425 encapsulated now. Renders the text nicely, but ignores font
8426 setting. Requires pangoft2 to get the font outline, but non-text
8427 objects can still be rendered without it.
8430 * app/commands.c (objects_place_up_callback)
8431 (objects_place_down_callback):
8433 * app/diagram.c (diagram_place_down_selected)
8434 (diagram_place_up_selected): Starting support for moving objects
8437 * app/menus.c: Removed character/numeral shortcuts.
8439 2002-07-06 Hans Breuer <hans@breuer.org>
8441 * makefile.am app/makefile.am lib/makefile.am
8442 objects/makefile.am plug-ins/makefile.am
8443 plug-ins/python/makefile.am :
8444 added required files for win32 build to EXTRA_DIST
8446 * app/paginate_psprint.c app/render_eps.c
8448 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
8449 on Pango as currently is on win32 => no PostScript
8452 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
8453 use '/* noop */;' for empty case labels; replace
8454 debug spew printf with g_print which is guaranteed
8455 to work on win32, too.
8457 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
8458 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
8459 in the pango_font_description_set_weight() api documentation
8460 Take care for them in dia_font_get_style() too.
8462 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
8463 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
8464 rename Obliquity to Slant which appears to be the usual name,
8465 also rename dia_font_get_style_string -> dia_font_get_slant_string
8467 * plug-ins/wmf/wmf.cpp : finally ported to new font api
8469 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
8471 * objects/uml/association.c class.c large_package.c message.c
8472 if g_free() is used g_strdup needs to be used.
8473 * objects/custom/shape_info.c
8474 objects/ER/attribute.c entity.c
8475 objects/standard/image.c
8476 app/sheets_dialog_callbacks.c : more strdup cleaning
8478 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8480 * app/render_eps.c: Non-crashing printing (made the right
8481 context). Font output still fscked up.
8483 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
8485 * app/authors.h: Added file --- now master
8486 location for contributors data.
8487 * app/app_procs.c: Added --credits option.
8488 * app/commands.c: Modified about box to use
8491 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8493 * app/render_eps.c: First stab at EPS rendering using the contour
8494 code from PAPS. Crashes.
8496 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
8498 * app/recent_files.c (recent_file_history_remove):
8499 Fixed call to g_list_delete_link discarding return value.
8501 * lib/widgets.c (dia_font_selector_set_styles):
8502 * lib/font.h (DiaFontWeight):
8503 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
8505 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
8507 Contribution from Alan Horkan <horkana@tcd.ie>:
8510 * sheets/Assorted.sheet:
8511 A set of 40 assorted geometric shapes.
8513 * sheets/Assorted.sheet.in:
8514 * sheets/Makefile.am
8515 * shapes/Assorted/Makefile.am:
8516 * shapes/Makefile.am:
8519 Done the integration job of Alan's shapes. (Translators: have fun!)
8521 * po/dia.pot: refreshed the main potfile.
8523 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
8525 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
8527 * objects/UML/class.[ch]:
8528 * objects/UML/class_dialog.c:
8529 changed the number of connection points from a hardcoded value of
8530 8 to a #defined constant
8532 (I changed the constant back from 20 to 8, until we better know
8533 how we'll handle more connection points on the UML class in the
8534 future -- but Tim's patch is a welcome clean-up).
8536 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
8538 * shapes/MSE/demultiplexer.xpm:
8539 * shapes/MSE/node_center.xpm:
8540 * shapes/MSE/multiplexer.xpm:
8541 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
8542 Horkan <horkana@tcd.ie>
8544 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
8546 * lib/widgets.c: Total rehash of font selector, with font dialog
8547 option, expanding list (not LRU yet), and stuff.
8549 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
8553 Added a set of new setter/getters, some of them more specially for
8556 * plug-ins/shape/shape-export.c: (new_shape_renderer),
8557 (destroy_shape_renderer), (set_font), (draw_string):
8558 * plug-ins/svg/render_svg.c: (new_svg_renderer),
8559 (destroy_svg_renderer), (set_font), (draw_string):
8561 Actually exported the font face, style, weight and size (sodipodi
8562 agrees with dia on how a small sample should look like (a sample
8563 0.90 would not even display anyways). Yay !)
8565 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8567 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
8569 (end of ChangeLog-less patch)
8571 * objects/custom/shape_info.c (parse_style): now understands the
8572 font-style and font-weight attributes as well. Does not use
8573 anymore dia_font_new_from_legacy_name().
8575 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
8577 * objects/standard/textobj.c: Now uses stdprops for defaults.
8579 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
8580 * lib/font.c (dia_font_get_style): Style now linear and conversion
8583 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
8586 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
8588 * plug-ins/dxf/dxf-import.c:
8589 using dia_font_new_from_style()
8591 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8593 * objects/UML/class.[ch]: Added a comment field to class
8594 * objects/UML/uml.[ch]: Added a comment field to attributes,
8595 operations and parameters.
8596 * objects/UML/class_dialog.c: Added code for the new comment
8598 * plug-ins/xslt/*.xsl: Added some code to handle comments.
8599 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
8600 Added a $directory parameter for stylesheets so the output is
8601 in the good place (not in the $PWD).
8605 * AUTHORS: added contributors, updated maintainers. Removed the
8606 specific areas of action.
8608 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
8609 from a patch by Xing Wang <quixon@gnuchina.org>:
8611 * app/commands.c: help_about_callback now supports
8612 new-style GNOME about box as well as old GTK style.
8613 code also tidied (Closes: #85726)
8617 * app/commands.c: fixed the copyright (it's not all FSF), and
8618 maintainers. Synced contributors list with AUTHORS.
8620 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
8622 * lib/message.c: More work on repeating messages, now with
8625 2002-06-24 Hans Breuer <hans@breuer.org>
8627 * lib/widget.c : some more bits in place, at least
8628 it does something useful instead of crashing. Much
8629 better - but not all ok :-)
8631 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
8633 * lib/message.c (gtk_message_internal): First stab at repeating
8636 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8639 * objects/GRAFCET/*.c:
8641 * objects/UML/association.c: (one instance forgotten)
8642 * objects/UML/large_package.c:
8643 * objects/standard/textobj.c:
8646 using dia_font_new_from_style()
8648 2002-06-23 Hans Breuer <hans@breuer.org>
8650 * lib/font.c : giving some love to
8651 dia_font_new_from_legacy_name() that is making
8652 import of old files as painless as possible and
8653 provide an almost exact match where possible.
8654 It does not yet fully work because it interfers
8655 with the Style to DiaStyle conversion which comes
8658 [Changing these files is only allowed with Dia-0.90]
8659 * broken-files/fonts-0.90.dia : including the
8660 common hard-coded fonts from Dia-0.90. It also
8661 has drawn bounding-boxes for win32 as they were calculated
8662 from the former version (they were all too big).
8663 * broken-files/fonts-0.90-full.dia : all hardcoded
8664 fonts including the asian versions. On my machine
8665 this gives _a lot_ complaining about missing fonts
8666 and a finally a broken file display. Anyone having
8669 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8671 * objects/chronogram/*.c:
8672 * objects/custom/custom_object.c:
8674 using dia_font_new_from_style()
8676 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
8678 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
8679 font selector (stability, insensitivity).
8681 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
8682 stretching scheme for tweaking, and made scaling scheme faster
8684 (dia_font_dia_style_to_pango): Oops, % != /.
8686 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8689 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
8691 * plug-ins/xslt : Added an XSLT plugin to export dia files using
8692 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
8693 It includes a small config file to tell it what stylesheets to use.
8697 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
8698 GTK2.0/HIG compliant (the labels could be slightly more verbose,
8699 perhaps). Added back a couple forgotten _(). Removed //-style
8702 2002-06-23 Hans Breuer <hans@breuer.org>
8705 (dia_plugin_get_name) : don't crash plugin_manager
8707 (dia_plugin_load) : reuse the description field to
8708 store the error string if loading fails.
8710 * lib/font.[hc] : starting to beautify the new
8711 font api: proper namespacing, adding convenience
8712 functions like dia_font_new_from_style(), ...
8714 * objects/uml/*.c : use the new convenience functions.
8716 [Next thing I plan to do is changing the other font
8717 functions to take DiaStyle and make Style and
8718 BASIC_*_FONT vanish. As well as giving some love to
8719 dia_font_new_from_legacy_name().
8720 If anyone want's to help on converting the other
8721 objects to the new api during that, I would highly
8724 2002-06-23 Hans Breuer <hans@breuer.org>
8726 * lib/font.c : made it compile and small indent fixes.
8727 Is there a code-has-no-effect-so-needs-not-be-valid
8730 * lib/widgets.c : use g_strcasecmp
8732 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
8736 * lib/widgets.c: Font names sorted, style selector widget
8737 reappeared. Doesn't select the old style yet.
8739 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
8741 * lib/font.c: one who expects a text's font to be changed shall
8742 actually request the attributes to apply to the whole range of the
8745 * lib/font.c: extents computation was wrong.
8747 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
8748 if a last NULL parameter is added...
8750 * lib/font.c: extents computation was completely wrong. This looks
8751 much better this time.
8753 * objects/UML/class.c: fixed the various strings positions.
8755 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
8756 macros to get the hardcoded base fonts.
8758 * objects/ER/relationship.c: wasn't converted to DiaFont*
8760 2002-06-22 Hans Breuer <hans@breuer.org>
8762 * lib/widget.c : dont use backend specific functions
8763 to get on the font_families. Including it would mean
8764 including <windows.h> which breaks due to namespace
8767 * lib/libdia.def : updated externals
8769 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
8771 * lib/font.c : added empty dia_font_init_instance function,
8772 reformatting of dia_fon_unref to allow to set breakpoint,
8773 dia_fon_build_layout() : dont crash on string==NULL
8775 * lib/text.c (text_set_attributes) : don't unref the wrong font
8777 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
8778 stores lowercased font names, but dia_font_get_family()
8781 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
8784 * app/render_gdk.c: Patch from Hans Breuer.
8786 * app/Makefile.am (dia_core_files): diaconv commented out for now.
8788 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
8790 * lib/all files touched yesterday: took into account some of Hans
8792 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
8794 * objects/chronogram/*:
8797 * objects/flowchart/*:
8799 * objects/GRAFCET/*:
8801 * objects/standard/textobj.?:
8803 converted to the new DiaFonts.
8806 * plug-ins/pstricks/*:
8810 Made minimalistic conversions so that they'd at least compile.
8813 * app/render_pixmap.c:
8814 Converted to the new DiaFonts.
8819 made the minimal changes so that it would at least build.
8821 *** At this point, the thing builds on my machine, but segfaults
8824 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
8826 * configure.in: removed the backend-specific pango pkg_modules
8827 (trivial to add back if needed, when actually needed)
8830 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
8831 renderer. The APIs will have completely changed when we get around
8832 to redo a renderer for it, anyways.
8834 * font.[ch]: rewrote everything from scratch, with a Pango
8835 implementation. Normally, only backend-neutral things should go in
8838 **WARNING**: new rules for managing DiaFont* pointers: these are
8839 reference-counted GObjects. One >must< diafont_ref() and
8840 diafont_unref() as appropriate. I wish I could overload operator=()...
8842 lib/plug-ins.h: bumped up the plug-in API.
8847 lib/object_defaults:
8848 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
8849 again tomorrow with GObject.
8851 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
8853 **** The rest of the tree should be updated as well ****
8855 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
8859 * app/render_pixmap.c:
8860 * app/render_pixmap.h:
8861 * app/render_libart.h:
8862 * app/render_libart.c:
8864 * lib/font.c: Removed freetype stuff (still around in
8865 lib/widgets.c 'cause we might want the font selector widget).
8867 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
8869 * shapes/network/laptop.(xml|shape):
8870 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
8871 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
8873 2002-06-17 Hans Breuer <hans@breuer.org>
8875 * lib/object_defaults.c : #include <libxml/tree.h> not
8876 <tree.h> pointed out by Xing Wang
8878 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
8880 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
8882 * app/color_area.c: Update to
8883 gtk_color_selection_*_current_color() fixed bad crash issues, plus
8884 updated color conversions.
8886 * sheets/ER/weakentity.xpm: Accepted patch from
8887 quixon@gnuchina.org to make icon match actual appearance.
8889 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
8890 quixon@gnuchina.org.
8892 2002-06-16 Hans Breuer <hans@breuer.org>
8894 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
8895 good tradition of information hiding. Add new function
8896 dia_plugin_get_symbol()
8897 * app/sheets.c app/sheets_dialog_callbacks.c : use it
8899 * app/sheets.c : stop complaining about object_get_type()
8900 returning NULL. This is a consequence of e.g. disabling
8901 plug-ins at runtime _and_ it was and is gracefully handled.
8902 Spitting out g_warning for it isn't appropriate.
8904 * lib/object.[ch] : removed dead code
8906 * app/plugin-mangager.c : almost complete rewrite for gtk2
8907 using GtkListStore/GtkTreeView
8909 * lib/libdia.def : updated externals
8911 * todo.gtk2 : updated, that is removed already done steps
8913 2002-06-15 Hans Breuer <hans@breuer.org>
8915 * objects/uml/class_dialog.c : clean some left-over
8916 utf8-mess, return 0 from "focus_out_event" handlers
8917 to avoid asserting in gtk (#78305). Reconstruct
8918 stereotype/NULL behaviour to avoid rendering empty
8919 stereotypes on classes and member functions
8921 [#56109 - Provide object defaults for StdProp objects,
8922 some remaining issues are discussed in bugzilla]
8924 * lib/object_defaults.c : (new file) manage default properties
8925 of dia objects. The serialization is done with standard
8926 object methods in a diagram compatible format.
8928 * lib/object.c : add object_registry_foreach() which allows
8929 to iterate over all registered object types
8931 * lib/object.h : added prototypes object_default*() and
8932 object_registry_foreach()
8934 * lib/makefile.am lib/makefile.msc : add new file to build
8936 * lib/libdia.def : export new functions
8938 * app/defaults.c : provide StdProp based defaults if the
8939 ObjectType doesn't implement it's own default functions
8941 * app/create_object.c : through dia_object_default_create()
8942 * app/disp_callbacks.c : same here
8944 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8946 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
8947 sensitivity for deleting segments.
8949 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
8951 * app/color_area.c: (color_area_events):
8952 * app/diagram.c: (diagram_destroy):
8953 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
8955 * app/load_save.c: (diagram_data_load):
8956 * app/menus.c: (menus_get_item_from_path):
8957 * app/preferences.c: (prefs_load):
8958 * app/render_gdk.c: (get_text_width):
8960 * lib/color.c: (color_convert):
8961 * lib/dia_dirs.c: (dia_config_filename):
8962 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
8963 * lib/intl.c: (intl_get_language_list):
8964 * lib/message.c: (message):
8966 * lib/paper.c: (get_default_paper):
8967 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
8968 * lib/widgets.c: (dia_file_selector_get_file):
8970 * objects/standard/image.c: (get_directory):
8974 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8976 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
8978 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
8980 * app/interface.c: sscanf now returns EOF on empty string, so
8981 handle no match for zoom factor better => correct zoom at start.
8983 * app/sheets.c (create_object_pixmap): Tried to display empty error.
8984 (sheets_optionmenu_create): Died when not finding specified
8985 sheet. Don't think it should.
8987 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
8988 (bug #84367) to place the text better.
8990 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
8992 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
8994 * app/commands.c: Removed unnecessary gnome include. Removed
8995 GNOME-Print support.
8997 * app/menus.h: Removed now unnecessary gnome include.
8999 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
9000 GNOME-specific stock buttons
9002 2002-06-09 Hans Breuer <hans@breuer.org>
9004 * app/app_procs.c : convert 'Modified diagrams exits'
9005 dialog to use GtkMessageDialog. That gives us:
9006 - icons without Gnome dependency
9007 - much less code, also cross platform
9008 - improved useability ?
9010 * app/color_area.c : the Color Selection Widget looked
9011 quite wrong (alpha problems). Fix it by merging in required
9012 changes stolen from The Gimp cvs
9013 * app/color_area.h : to get the right appearance the maskes
9014 needed to be taken into account
9015 * app/interface.c : adapt to color_area_create changes.
9016 Also remove some dead code and finally remove cvs autexpansion,
9017 I was bothered enough by irrelevant differences :-)
9019 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
9020 api, i.e stocks and response to make the GnomeDialog usage
9021 obsolete. Also fixed the issue with closing the 'parent'
9022 before closing the dialog
9024 * app/display.[ch] : removed some dead code and conversion
9025 to new GtkDialog api. Also trying to conform to new HIG
9026 standard http://developer.gnome.org/projects/gup/hig/
9028 2002-06-09 Hans Breuer <hans@breuer.org>
9030 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
9033 * lib/dia_image.c : gtk_widget_set_default_visual()
9034 remove. It does nothing with Gtk2.
9036 * lib/libdia.def : added ps_unicoder exports
9038 * lib/message.c : remove #GNOME use GtkMessageDialog.
9039 Yeah, Dia gets dialogs wit icons cross-platform.
9041 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
9042 to gtk_spin_button_get_value()
9044 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
9046 add #undef GTK_DISABLE_DEPRECATED to still use ...
9047 * lib/prop_text.c : ... GtkText
9048 * lib/prop_widgets.c : ... GtkList
9049 * lib/prop_dialogs.c : ... gtk_signal_connect and more
9050 * lib/widgets.c : ... (too much to list here)
9052 * lib/ps-utf8.c : #include <string.h>
9054 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
9057 * Makefile.am: Adapted for gtk2.
9058 Removed dependencies on libunicode, on iconv(), on langinfo().
9060 * acconfig.h: removed (now obsolete)
9062 * lib/charconv.[ch]: removed (superceded by glib)
9063 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
9065 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
9066 libunicode types for their glib counterparts. Fixed the include
9067 paths for libxml2. Removed all traces of libxml1 or non-UTF8
9068 support (there were remains in objects/uml).
9071 2002-06-08 Hans Breuer <hans@breuer.org>
9073 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
9074 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
9075 Also use g_strdup()'s handling of NULL by returning NULL
9076 again at all places I found (remove unnecessary if's)
9078 * todo.gtk2 : new file to keep notes about gtk2 porting,
9079 further issues and thoughts and some status information.
9080 Also sent to dia-list ('Dia goes Gtk2 ...').
9082 [make it compile with GTK+ 2.0]
9084 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
9085 removed definition of S_ISDIR, S_ISREG and getlogin
9087 * */makefile.msc : Use GTK2 and libxml2
9088 BEWARE: makefile.am, configure.in not yet ported !
9090 * app/app_procs.c app/diagram.c : remove
9091 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
9092 but set use gtk_menu_set_accel_path() on menu creation
9094 * app/color_area.c lib/widgets.c :
9095 make use of gtk_color_selection_set_has_palette ()
9097 * app/commands.c : gdk_pixbuf_new_from_file wants an
9098 extra argument. Convert from DIR to GDir usage.
9100 * app/diagram_tree.c(button_press_callback) : need to return
9101 FALSE in the signal handler to let gtk process it further.
9102 (get_object_name) : don't leak 'prop'
9104 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
9105 dia_page_layout_destroy() getting called more than once
9107 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
9110 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
9112 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
9113 IIRC this code will not compile unchanged when USE_XIM is defined ...
9115 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
9117 * app/interface.c : there is no widget->klass anymore in Gtk,
9118 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
9119 parameter. Some tweaking of GtkWrapBox usage to get four tools in
9121 switch off GTK's double buffering on Dia's canvas. Otherwise we would
9122 get triple buffering and flicker.
9123 Replace call to GTK private function _gtk_accel_group_attach()
9124 with public gtk_window_add_accel_group()
9126 * app/layer_dialog.c : adapt to GtkTypeInfo changes
9128 * app/load_save.c lib/plug-ins.c lib/sheet.c
9129 objects/custom/custom.c :
9130 simplified by using g_file_test()
9132 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
9133 to gtk_accel_map_<save|load>. Also added common stock-icons
9136 * app/preferences.c : use gtk_button_set_label() instead
9137 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
9139 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
9140 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
9143 * app/recent_files.c : removed GLIB_CHECK_VERSION
9146 plug-ins/metapost/render_metapost.c
9147 plug-ins/pstricks/render_pstricks.c
9148 plug-ins/svg/render_svg.c :
9149 replace getlogin() with g_get_user_name() which always
9152 * app/render_gdk.c : gdk_region_union_with_rect() modifies
9153 inplace now and returns nothing, also less #hell
9155 * app/render_libart.c : some initial #hell cleaning, SuckFont
9156 still needs to vanish
9158 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
9159 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
9161 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
9162 * app/sheets_dialog_callbacks.c : some #hell and adaptions
9163 needed to GtkWrapBox api changes
9166 * lib/charconv.[hc] : removed from build
9167 [changed appropriate]
9168 * lib/prop_inttypes.c lib/prop_text.c :
9170 * lib/text.c : ported from HEAD but keep original indent
9171 intact. Original was done by Akira TAGOH.
9173 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
9175 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
9177 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
9178 same on all platforms now!
9180 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
9182 * lib/message.c : remove "charconv.h"
9184 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9187 * lib/sheet.c : convert from DIR to GDir usage
9189 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9191 * lib/widgets.h : include gtk<label|colorseldialog>.h
9194 * objects/fs/flow.c :
9195 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9197 * objects/custom/custom.c : convert from DIR to GDir usage
9200 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9203 2002-05-03 Hans Breuer <hans@breuer.org>
9205 * lib/dia_xml.c : make the well formed utf8 check
9206 actually work for û (non 7-bit ascii encoding)
9207 and fixed the file re-writing if the check fails.
9208 Thanks to Vitaly Lipatov for noticing the misbehaviour.
9210 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9211 comment on last ressort font. Thanks to Maxim Sobolev.
9213 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
9215 * sheets/network.sheet.in: corrected a typo in plotter invocation.
9217 2002-06-03 Steffen Macke <sdteffen@web.de>
9219 * shapes/network/digitizing_board.png:
9220 * shapes/network/digitizing_board.shape:
9221 * shapes/network/plotter.png:
9222 * shapes/network/plotter.shape:
9223 * shapes/network/Makefile.am
9224 * sheets/network.sheet.in: added new plotter and digitizing
9227 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
9229 * lib/font.c: made a symptomatic fix to a segfault reported by
9230 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9231 won't prevent dia from terminating, but should give more
9232 user-friendly information about why did it terminate.
9234 Two patches from <robert.young@dsto.defence.gov.au>:
9236 * app/display.c: fix the size of the canvas area which gets
9237 redrawn. There was an off-by one error (Closes #83659)
9239 * app/display.c: make sure we redraw all screen only when we
9240 really have to (some update_areas were mistakenly ignored) (Closes
9243 * NEWS: added a new entry for the future. Put there a reminder to
9244 update the dependencies.
9246 * configure.in: put in notes about what will change shortly.
9247 upped the version to 0.90+cvs (did also in config.h.win32)
9248 upped the minimum version for intltools (now 0.21)
9250 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
9256 bumped up version number to 0.90. Yay!
9258 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
9260 * doc/pl/Makefile.am:
9261 * doc/en/Makefile.am: fixed a "make install" problem when db2html
9262 is not present (Reported by Andrew Ferrier
9263 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9264 problem which prevented me from ever seeing the problem in doc/en...
9266 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9268 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9269 way to read the font path from the XFS configuration files in
9270 order to enable FreeType (fixes #83098).
9272 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9279 bumped up version number to 0.90.RC3
9281 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
9283 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9284 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9285 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9286 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9287 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9288 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9289 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9290 Added Polish documentation.
9292 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
9294 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9295 format for the UML State object. Now there's a hack to reload
9296 older files, and get them converted on the fly.
9297 Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
9301 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9302 and adapter the proplist predicates. A LOAD_ONLY property is for
9303 when you have legacy to support but can't resist moving your
9304 fields around... (was needed to support the above state.c fix).
9306 If the in-core of your object changes and you need a LOAD_ONLY
9307 property for the old format, you must keep some spare room in your
9308 object's struct to accomodate for the potential old-style
9309 attributes. Then in foo_load(), after having called
9310 object_load_using_properties(), you must inspect the old-style
9311 fields and act accordingly. Don't ever change the on-disk formats...
9313 * objects/UML/object.c:
9314 * objects/UML/small_package.c: added a check against empty
9315 stereotypes still consuming space. Reported by Dolores Alia de
9316 Saravia <loli@unsa.edu.ar>. Thanks!
9318 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
9320 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
9321 using libtool on an AFS partition.
9323 * po/update_potfiles_in.sh: now simply calls the recent intltools
9324 features; they work better than hand-crafted half-ignorant
9325 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9328 * po/POTFILES.in: added back two files update_potfiles_in.sh
9329 didn't take into account. Now this file is not automatically
9331 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9332 (the usual suspects, in fact).
9334 * configure.in: improved the isinf() / isfinite() detection on
9335 Solaris (MÃ¥rten Svantesson)
9337 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
9339 * configure.in: one expression was replacing $CFLAGS, removing
9340 whatever was previously in.
9341 Added more checks for isinf() and finite() on Solaris.
9343 * lib/geometry.h: added a macro defintion for isinf() if not
9344 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9347 * app/commands.c: "cut" did not set the 'modified' bit (paste has
9348 been for a little while). Fixes #82994.
9350 * Makefile.am: added more stuff to distclean-local. This should make
9351 "make distcheck" pass! Thanks to the author of
9352 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
9353 ... I wonder who this Henstridge guy is ... ;-)
9354 Darn. Still doesn't pass. I give up for tonight.
9356 * po/update_potfiles_in.sh: updated to take care of sheet files,
9357 and to filter out the EML plug-in.
9358 * po/POTFILES.in: updated with all .c and all .sheet.in files
9360 * po/dia.pot, po/*.po: again updated all .po files with all
9361 strings (with the updated POTFILES). Now with the up-to-date
9362 POTFILES, just all languages have some fuzzy or untranslated
9363 strings (not that the 100% team was that large beforehand...)
9365 * po-checktrans: removed the comment about .po files not holding
9366 all translatable stuff, since now they do.
9368 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
9374 bumped up version number to 0.90.RC2
9376 2002-05-20 Hans Breuer <hans@breuer.org>
9378 * app/load_save.c : starting to increase
9379 Dias tolerance on incomplete/broken files. The
9380 corresponding bug is #56233. But the patch there does
9381 neither apply anymore nor does it really fix the problem
9382 but only delays it, e.g. even if it would be allowed
9383 to read a file without any layers, the later code can't
9385 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
9386 handle passing in NULL for the node gracefully.
9388 * shapes/network/printer.shape : added two more connection
9389 points - one at each side - to fix bug #60359
9391 * app/commands.c (edit_copy_callback) :
9392 add ddisplay_do_update_menu_sensitivity() to make
9393 sequence select-copy-paste work.
9395 2002-05-20 Hans Breuer <hans@breuer.org>
9397 * app/create_object.c (create_object_button_press) :
9398 added a call to ddisplay_do_update_menu_sensitivity()
9399 to make Ctrl^D etc work after object creation.
9402 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
9404 * objects/ER/entity.c:
9405 * objects/ER/attribute.c:
9406 * objects/ER/relationship.c: Patch to allow text size change from
9407 Celso Tetsuo Nagase Suzuki.
9409 2002-05-18 Steffen Macke <sdteffen@web.de>
9411 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
9413 * doc/en/graphics/greendots.png:
9414 * doc/en/home_network.png:
9415 * doc/en/line_props.png:
9417 * dia_gnome_icon.png:
9418 * dia_gnome_menu_icon.png:
9420 * shapes/network/telephone.png:
9421 * shapes/Logic/and.png:
9422 * shapes/Logic/buffer.png:
9423 * shapes/Logic/connector.png:
9424 * shapes/Logic/inverter.png:
9425 * shapes/Logic/nand.png:
9426 * shapes/Logic/nor.png:
9427 * shapes/Logic/not.png:
9428 * shapes/Logic/or.png:
9429 * shapes/logic/xor.png:
9430 * samples/ER-demo.dia:
9432 * samples/UML-demo.dia:
9433 * samples/chronograms.dia:
9434 * samples/grafcet.dia: re-added as binary files
9436 2002-05-17 Hans Breuer <hans@breuer.org>
9438 * lib/libdia.def : reflect removing of render_store.[ch]
9440 * */makefile.mingw : remove VERSION definition it's
9441 done in config.h.win32. Dia still doesn't work if
9442 build with mingw ...
9444 * RELEASE-PROCESS : removed */makefile.mingw
9446 * app/sheets_dialog_callbacks.c : if we use those
9447 ugly charconv_gtk_* functions lib/charconv.h needs to
9449 * lib/charconv.h : ... and needs to contain the
9450 necesseray prototypes _and_ #defines
9452 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
9453 is deprecated and does nothing but spit a warning. This broke
9454 the shape format writing. Fixed.
9455 Also with libxml2 pretty formatted xml isn't the default
9456 anymore, but needs to be enabled explicit: It is done now
9457 for shape files, which almost always needed to be edited by
9460 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
9461 from stderr - which is invalid on Dia/win32 - to g_print -
9462 which opens up a console window if necessary. This way
9463 a xml-deprecation-error shouldn't stay unnoticed next time
9465 2002-05-17 Steffen Macke <sdteffen@web.de>
9467 * shapes/Misc/folder.png:
9468 * shapes/Misc/file.png: re-added as binary files
9470 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9472 * lib/font.c: Fixed segfault for fonts without family_name.
9474 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
9476 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
9478 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
9479 Lars' request, minor cosmetic stuff (mostly _() of human-readable
9480 XML comments in .sheet files; one translator booby-trap disarmed).
9482 * lib/charconv.c: moved #hell inside the body of the new
9483 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
9486 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9488 * plug-ins/wpg/Makefile.am (INCLUDES):
9489 * plug-ins/shape/Makefile.am (INCLUDES):
9490 * plug-ins/svg/Makefile.am (INCLUDES):
9491 * plug-ins/pstricks/Makefile.am (INCLUDES):
9492 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
9493 and DEBUG_CFLAGS in some missing places.
9495 * MAINTAINERS: New file containing list of known package
9499 * lib/charconv.c: Charconv versions of some common gtk calls.
9501 * app/sheets_dialog_callbacks.c
9502 (on_sheets_new_dialog_button_ok_clicked),
9503 (on_sheets_dialog_button_edit_clicked),
9504 (on_sheets_dialog_button_remove_clicked),
9505 (on_sheets_edit_dialog_button_ok_clicked):
9506 * app/sheets.c (sheets_optionmenu_create),
9507 (sheets_optionmenu_create): Added utf8 translations.
9509 * app/sheets_dialog.c:
9511 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
9513 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
9515 * po/POTFILES.in: added app/sheets_dialog.c
9517 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
9519 * lib/charconv.c: (charconv_local8_to_utf8),
9520 (charconv_utf8_to_local8): tweaked the warnings to get more
9522 * lib/font.c: (font_get_suckfont): handled a potential case of
9523 uninitialised data being used (just paranoid)
9525 * objects/GRAFCET/boolequation.c: (opstring),
9526 (opblock_get_boundingbox), (opblock_draw),
9527 (boolequation_calc_boundingbox): some extra hoops needed now dia
9528 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
9529 symbols can't yet be used with their proper Unicode cells, since
9530 gtk will demand them in the Symbol font, expressed in the local
9533 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
9534 the fix just above).
9536 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
9538 * app/diagram_tree.c (get_object_name): Check that name property
9539 doesn't have null string.
9541 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
9543 * autogen.sh (DIE): Added conditional --force to gettextize.
9545 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
9548 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
9550 * RELEASE-PROCESS: added James' notes on how to properly make the
9553 * configure.in: removed macro nesting related to libpng.h, which
9554 was causing some problems on some systems (like mine, which made
9557 Made --enable-unicode, previously an option, the mandatory case.
9559 * app/Makefile.am: updated EXTRA_DIST
9562 * app/makefile.mingw:
9564 * doc/en/dia-manual.sgml:
9565 * plug-ins/makefile.mingw:
9566 * configure.in: bumped up the version number to 0.90.RC1
9568 * lib/render_objects.[ch]:
9569 * po/POTFILES.in: removed render_objects from the build.
9571 * plug-ins/Makefile.am:
9572 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
9573 so we keep its source in the tarball.
9575 * objects/network/*.c, Makefile.am:
9576 * objects/sybase/*.c, Makefile.am:
9577 * po/POTFILES.in: cleaned up the non-existent files from the po
9580 * plug-ins/Makefile.am: re-enabled metapost plug-in.
9582 2002-05-13 Steffen Macke <sdteffen@web.de>
9585 * app/command.c: added M. C. Nelson to the Authors
9586 * sheets/Circuit/Makefile.am: added firewall shape to build
9587 * sheets/network/Makefile.am: added telephone and microphone
9590 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
9592 * RELEASE-PROCESS: Added list of files that contain the release
9593 number or should otherwise be changed at each release.
9595 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
9597 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
9598 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
9600 2002-05-12 Hans Breuer <hans@breuer.org>
9602 * config.h.win32 : changed VERSION to 0.90.RC1
9604 * app/makefile.msc lib/makefile.msc : use renamed
9605 gdk-pixbuf version (same content but renamed because
9606 all the other gtk+ dlls are renamed) to avoid trouble
9607 mixing gtk versions (of which one would not
9610 * app/app_procs.c : removed recently unneeded
9611 inclusion of "sheets.h"
9613 * app/render_gdk.c : removed my own debug spew
9614 which should never made it to cvs
9616 * lib/render_object.[hc] : added
9617 #error "File not used anymore."
9619 * lib/libdia.def : updated externals
9621 * app/interface.c : dropped filenames need to be
9622 converted from uri with Gtk+2.0
9624 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
9626 * RELEASE-PROCESS (new): a draft document about how to release. To
9627 be discussed. (already with some input from Hans Breuer)
9629 2002-05-12 Steffen Macke <sdteffen@web.de>
9631 * sheets/Makefile.am: re-added Misc sheet to make process
9633 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
9635 * objects/FS/function.c: Added comments to humungous list of menu
9636 items, to aid translators.
9638 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9640 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9642 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9644 * app/interface.c (create_toolbox): Disallow shrinking beyond
9645 requested size. Fixes bug #59439, and confirms to GTK guidelines
9646 (see gtk_window_set_policy).
9647 (create_sheets): Removed now unnecessary set_usize call.
9649 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9651 * lib/beziershape.c (remove_handles): Fixing removal of last
9652 segment. Undo of removal still hokey.
9654 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
9656 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
9658 * lib/beziershape.c (beziershape_init): Removed early call to
9659 beziershape_update_data where points aren't set yet.
9660 (beziershape_add_segment): Use segment 0 instead of overflowing
9661 points array with segment+1.
9662 (beziershape_remove_segment): Proper offset for fixing
9664 (remove_handles): Proper offset.
9666 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
9668 * objects/GRAFCET/action.c (action_update_data): Init x value of
9669 click point for call to connpointlist_adjust_count.
9671 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
9673 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
9674 setting to where values are inited.
9676 * lib/polyshape.c (polyshape_init): Removed call to
9677 polyshape_update_data that tried to use uninitialized data.
9679 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9681 * app/sheets_dialog.c: Mass removal of //-style comments. The
9682 Irix compiler doesn't like them:( I do...
9684 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
9686 * app/render_libart.c (draw_string): Bail out when no GDK font is
9688 (set_font): Give error when font not found.
9689 (set_fillstyle): Intlized error msg.
9691 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
9692 modified when applied (and ok only does apply if apply is set
9693 sensitive). Fixes bug #75623.
9695 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
9697 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
9699 2002-05-05 Steffen Macke <sdteffen@web.de>
9701 * app/Makefile.am: added $(UNICODE_CFLAGS)
9703 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
9705 * app/commands.c (help_manual_callback): Check return value of
9708 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
9710 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
9713 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
9715 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
9717 * objects/UML/uml.c (uml_operation_read): Fix of UML default
9720 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9722 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
9723 Added button to toggle diagram compression.
9725 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9727 * lib/font.c: Support for loading extra kerning files, plus got
9728 rid of rounding errors. Bounding box mostly perfect for freetype
9730 (font_string_width): Fudge factor to get around nonlinearity of
9733 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
9735 * lib/font.c (font_string_width): YA font calculation scheme, with
9738 * objects/UML/class.c (umlclass_calculate_data): Uses the same
9739 font for drawing and calculating now.
9741 * configure.in: Added utime.h check.
9743 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
9744 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
9746 2002-04-26 Hans Breuer <hans@breuer.org>
9748 [ Instead of fixing about 70 occurances in 20 files
9749 where GTK_TALKS_UTF8_WE_DONT needed to be handled
9750 Dia on win32 from now on uses glib-2.0 and not
9751 only talks utf-8 with gtk-1.3 but also internally.
9752 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
9755 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
9756 #undef GTK_TALKS_UTF8_WE_DONT
9758 * */makefile.msc : changes to use glib-2.0 (still
9759 using gtk+1.3(win32-production)
9761 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
9762 adapt kevent->string handling, add <string.h>
9763 * app/render_gdk.c (get_text_width) : the length given
9764 is in chars, gdk_text_width() needs bytes
9766 * app/render_libart.c :
9767 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
9768 (could simplify the same way as done in render_gdk.c)
9770 * app/diagram_tree.c app/paginate_gdiprint.cpp
9772 * lib/prop_basic.c lib/prop_geomtypes.c
9773 lib/propdialgs.c lib/propobject.c :
9774 added <string.h> which is now removed from charconv.h
9776 * lib/charconv.h : optional use infrastructure from
9777 glib-2.0 -> only five direct function mapping left
9779 * lib/charconv.c : avoid to build this with glib-2.0
9781 * lib/font.c : no string conversion needed anymore
9782 when Dia and Gtk talk utf-8, also code adaptions
9783 for GLIB_CHECK_VERSION(2,0,0)
9785 * lib/libdia.def : removed charconv functions
9787 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
9788 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
9790 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
9791 removed GTK_TALKS_UTF8_WE_DONT
9793 * lib/text.c : finally(?) fixed cursor <place|move>ment
9794 for Umlauts. Also fixed char insertion, still wondering
9795 how this could ever work. Does realloc on Linux
9796 initialize the memory with zeros ?
9798 * objects/chronogram/chronoline_event.c
9799 objects/grafcet/boolequation.c :
9800 there is no uni_get_utf8 when building for glib-2.0.
9801 Replace with g_utf8_get_char() and g_utf8_next_char().
9803 * objects/uml/stereotype.c (bracketted_to_string) :
9804 simplify while adding code for glib-2.0 build
9806 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
9808 * app/diagram.h: Autosave field
9809 * app/diagram.c (diagram_set_modified): Sets autosave field.
9811 * objects/UML/usecase.c (usecase_update_data):
9812 * objects/flowchart/ellipse.c (ellipse_update_data):
9813 * objects/flowchart/parallelogram.c (pgram_update_data):
9814 * objects/flowchart/diamond.c (diamond_update_data):
9815 * objects/custom/custom_object.c (custom_update_data):
9816 * objects/UML/state.c (state_update_data):
9817 * objects/UML/small_package.c (smallpackage_update_data):
9818 * objects/UML/object.c (objet_update_data):
9819 * objects/UML/note.c (note_update_data):
9820 * objects/UML/node.c (node_update_data):
9821 * objects/UML/component.c (component_update_data):
9822 * objects/UML/classicon.c (classicon_update_data):
9823 * objects/UML/actor.c (actor_update_data):
9824 * objects/SADT/box.c (sadtbox_update_data):
9825 * objects/FS/function.c (function_update_data):
9826 All now update text boundaries from update_data.
9828 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
9831 2002-04-26 Hans Breuer <hans@breuer.org>
9833 * config.h.win32 : added VERSION definition here
9834 (and removed from makefile.msc's)
9836 * app/makefile.msc : added new files
9838 * app/app_procs.c (app_init): remove sheets_dialog_create()
9839 from start-up and ...
9841 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
9842 sheet_dialog here when it is really needed.
9843 #include "../lib/message.h", make sheets_dialog_create()
9844 return it's success or failing on (!custom_type_symbol).
9845 Although editing shapes is nice IMHO it isn't crucial enough
9846 to abort() Dia if it isn't possible.
9848 * app/sheet.h : adapt create_sheet_dialog() prototype
9850 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
9852 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
9853 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
9854 name space corrections for utime() and utim_buf #ifdef
9857 * lib/libdia.def : export new sheet functions
9859 * lib/makefile.msc : added new files
9861 * lib/render.c : don't put draw_bezier_with_arrows() in
9862 the DrawLineWithArrowsFunc slot
9864 * objects/custom/custom_object.c : #include <gmodule.h>
9865 and export 'custom_type' via G_MODULE_EXPORT
9867 * objects/uml/class_dialog.c : removed 'incompatible
9868 types' warnings. Some refactoring while making it fit
9869 on screen with 800x600 again.
9871 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
9873 * plug-ins/python/pydia-handle.h : extra parameter to
9874 PyDiaHandle_New to store the owner of the handle
9875 * plug-ins/python/pydia-handle.c : store handle owner
9876 on construction and use it in new method .connect()
9877 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
9878 adapt to changed prototype
9880 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
9882 * lib/text.c (text_calc_boundingbox): Will now return early if box
9885 * objects/flowchart/box.c (box_update_data): Now updates text
9886 width info from update_data.
9888 2002-04-23 Steffen Macke <sdteffen@web.de>
9890 * plug-ins/xfig/xfig-import.c: fixed text import
9892 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
9894 * app/export_png.c: Moved dialog functions to their own file.
9895 * app/dialogs.[ch]: New files with standard functions for creating
9896 small, transient dialogs (e.g. export options).
9897 * app/Makefile.am: Added dialogs.[ch]
9899 2002-04-19 Steffen Macke <sdteffen@web.de>
9901 * shapes/Misc/folder.*:
9902 * shapes/Misc/file.*:
9903 * shapes/Misc/Makefile.am:
9904 * shapes/Makefile.am:
9905 * sheets/Misc.sheet.in:
9906 * sheets/Makefile.am:
9907 * configure.in: added new Misc sheet containing filesystem shapes
9909 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
9911 * app/lineprops_area.c: Arrow selector in toolbox changed to use
9912 standard arrowdraw code. Line is thinner to make some arrowheads
9915 2002-04-18 Steffen Macke <sdteffen@web.de>
9917 * sheets/network.sheet.in:
9918 * shapes/network/telephone.shape:
9919 * shapes/network/Makefile.am: added telephone shape
9921 2002-04-16 Steffen Macke <sdteffen@web.de>
9923 * sheets/EML.sheet.in: commented out unavailable shapes
9925 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
9927 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
9928 variable assignment.
9930 2002-04-15 Steffen Macke <sdteffen@web.de>
9932 * plug-ins/dxf/dxf-import.c: text import works again
9933 * shapes/Pneumatic/Makefile.am: added compush shape
9934 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
9937 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
9939 * All these modifications are for the 'Sheets and Objects' dialog
9942 * app/pixmaps/line_break.xpm: new icon representing a line break.
9944 * app/pixmaps/n_a.xpm: new empty icon representing not available.
9946 * app/Makefile.am: added sheets_*.[ch] files to compile list.
9948 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
9950 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
9952 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
9954 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
9956 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
9958 * app/sheets_dialog_callbacks.h: [new file] support for " " "
9960 * app/interface.c: added 'interface_current_sheet_name' global to
9961 fill_sheet_wbox(); made fill_sheet_menu() non-static
9963 * app/interface.h: added extern declaration for aboves.
9965 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
9967 * app/sheets.h: [new file] declarations for backing store structures
9969 * lib/sheet.c: modification of new_sheet() parameters; introduction
9970 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
9971 changes to load_register_sheet().
9973 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
9974 added 'has_icon_on_sheet' flag to SheetObject structure; added
9975 'filename', 'scope', 'shadowing' fields to Sheet structure.
9977 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
9980 * lib/plug-isn.h: see above.
9982 * lib/object.c: added 'sheet.h' to include list; added several
9984 to detect objects which are not found on any sheet (for future use)
9985 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
9986 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
9988 * lib/object.h: added public declarations for above functions where
9991 * objects/custom/custom.c: made custom_object_load() non-static so we
9992 can load and interpret .shape files from the Sheets & Objects dialog
9994 * objects/custom/custom_object.c: made 'custom_type' non-static so
9995 we can differentiate between SVG shapes and other types.a
9997 2002-04-07 Hans Breuer <hans@breuer.org>
9999 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
10000 from 2002-01-22 to not destroy diagram->data->selected.
10001 Avoids to crash on Objects/Align/Vertical/Top
10003 * app/render_eps.c (draw_string) : un-const buffer
10004 It isn't at all const (g_malloc(), assignment, g_free()).
10005 Doesn't gcc catch such ?
10007 * lib/arrows.h : prototype calculate_arrow_point()
10009 * lib/font.c (font_get_suckfont) : no need to
10010 special case gdk_draw_string() with GTK_TALKS_UTF8,
10011 cause all the parameter differences are handled above
10013 * lib/libdia.def : updated externals
10015 * lib/makefile.msc : removed string_prerenderer, added render
10017 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
10018 is expected. [Sometimes it's good to read compiler warnings.]
10020 * objects/standard/image.c : simplified by use of g_strconcat()
10022 * plug-ins/python/makefile.msc : updated for Python 2.2
10024 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
10026 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
10027 directionality problem for zero-length line segments.
10029 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
10031 * app/diagram.c (diagram_ungroup_selected)
10032 (diagram_update_menu_sensitivity): Now allows ungrouping of
10033 several groups at once.
10035 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
10037 * lib/render.c, all renderers: Binary incompatibility, change to
10038 expandable renderops structure.
10040 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
10042 * objects/standard/Makefile.am:
10043 * objects/network/Makefile.am:
10044 * objects/UML/Makefile.am:
10045 * objects/ER/Makefile.am:
10046 * objects/FS/Makefile.am:
10047 * objects/flowchart/Makefile.am:
10048 * objects/custom/Makefile.am:
10049 * objects/GRAFCET/Makefile.am:
10050 * objects/chronogram/Makefile.am:
10051 * objects/SADT/Makefile.am:
10052 * plug-ins/cgm/Makefile.am:
10053 * plug-ins/pstricks/Makefile.am:
10054 * plug-ins/hpgl/Makefile.am:
10055 * plug-ins/wpg/Makefile.am:
10056 * plug-ins/svg/Makefile.am:
10057 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
10059 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
10061 * app/render_eps.c: Support for dumping TrueType fonts (taken from
10064 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
10066 * lib/render.c: New abstract super class for renderers.
10068 2002-03-07 Akira TAGOH <tagoh@redhat.com>
10070 * objects/ER/attribute.c (attribute_save): save a font property.
10071 (attribute_load): load a font property, and if can't load it, it's
10074 * objects/ER/entity.c (entity_save): save a font property.
10075 (entity_load): load a font property, and if can't load it, it's
10078 * objects/ER/relationship.c (relationship_save): save a font property.
10079 (relationship_load): load a font property, and if can't load it, it's
10082 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
10084 (umlclass_save): save the font and the font size properties.
10085 (umlclass_load): load the font and the font size properties.
10087 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
10089 * lib/string_prerenderer.[ch] (REMOVED):
10091 * lib/diagramdata.c:
10093 * app/render_eps.c: got rid of the string-specific string
10094 prerenderer, transitioned its functionality towards Lars'
10095 two-phase rendering
10097 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
10099 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
10100 may need to rerun aclocal.
10102 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
10104 * lib/font.c: First attempt at Unicodeness for Freetype.
10106 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10108 * lib/font.c (font_string_width): Fixed font_string_width for
10109 freetype. BB is now almost right.
10111 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
10113 * app/render_eps.h:
10114 * app/paginate_psprint.c (paginate_psprint):
10116 * app/render_eps.c: Support for dumping postscript fonts into
10117 postscript files with freetype. Fairly primitive, but works.
10118 Unicode version may have problems.
10120 2002-02-28 Akira TAGOH <tagoh@redhat.com>
10122 * objects/UML/class_dialog.c (class_read_from_dialog)
10123 (class_fill_in_dialog), (class_create_page): add the font selector and
10124 the font size selector.
10126 * objects/UML/class.c (umlclass_draw): uses each font_height.
10127 (umlclass_calculate_data): ditto.
10128 (fill_in_fontdata): add initial value of new font_height.
10129 (umlclass_copy): add new font_height.
10131 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
10133 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
10135 * lib/font.c: calculate font metrics properly and stop guessing at
10138 2002-02-28 Akira TAGOH <tagoh@redhat.com>
10140 * configure.in: changed gtk_advancement value to dia_talks_utf8.
10141 right now Dia is working with UTF-8 internally. it means Dia probably
10142 support most languages also including the languages which heretofore
10143 didn't work correctly.
10145 2002-02-26 Akira TAGOH <tagoh@redhat.com>
10147 * objects/FS/function.c: add related text properties.
10148 (function_get_props), (function_set_props): add handling attribute.
10150 * objects/FS/flow.c: add related text properties.
10151 (flow_get_props), (flow_set_props): add handling attribute.
10153 * objects/FS/flow-ortho.c: add related text properties.
10154 (orthflow_set_props), (orthflow_get_props): add handling attribute.
10156 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
10158 * objects/ER/entity.c: ditto.
10160 * objects/ER/attribute.c: ditto.
10162 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
10164 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
10166 * autogen.sh: add a check for missing intltoolize.
10168 2002-02-20 Akira TAGOH <tagoh@redhat.com>
10170 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
10171 charcode, it was registered the duplicate item to HashTable. fix.
10173 * app/render_gnomeprint.c (get_width_string): add new function.
10174 (draw_string): fix non-multibyte specific code.
10176 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
10178 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
10180 * lib/font.c: do not try to search paths that do not begin with
10181 '/', like X Font Server addresses.
10183 * objects/UML/message.c (message_draw): free mname when not
10184 message->text but CREATE or DESTROY.
10186 * objects/UML/uml.h:
10187 * objects/UML/uml.c:
10188 * objects/UML/class_dialog.c: added code to handle a stereotype
10189 attribute for operations.
10191 2002-02-19 Akira TAGOH <tagoh@redhat.com>
10193 * lib/Makefile.am: add LIBART_CFLAGS.
10195 2002-02-15 Hans Breuer <hans@breuer.org>
10197 * lib/font.c (font_get_suck_font): the black and white pixel values
10198 need to be taken from a 1 bit colormap rather than the default colormap.
10199 (fixed again, last time was 2000-05-26)
10201 Also handle the case where GTK_TALKS_UTF8 and expects all strings
10202 passed in to be in this encoding.
10204 * lib/libdia.def : export suck_font_free()
10206 * lib/text.c (text_draw) : avoid circular dependency to ../app
10207 at least for the !USE_XIM case, where it is unnecessary.
10209 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
10211 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10213 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10214 * sheets/Circuit.sheet.in: added new shape microphone
10215 * shapes/Circuit/speaker_de.shape: Added a connection point.
10217 2002-02-13 Akira TAGOH <tagoh@redhat.com>
10219 * app/render_libart.c (draw_string): fixed build issue for Win32.
10221 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10224 * configure.in: fixed testing gtk_advancement.
10226 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10228 2002-02-12 Akira TAGOH <tagoh@redhat.com>
10230 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10233 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
10235 * app/group.c (group_copy): Made new object properly initialized
10238 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
10240 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10242 2002-02-10 Akira TAGOH <tagoh@redhat.com>
10244 * lib/text.c (text_draw): fixed XIM transaction.
10246 * app/interface.c (create_display_shell): add signal for
10249 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10251 (set_input_dialog): remove.
10252 (ddisplay_canvas_events): remove XIM transaction. it can't transact
10253 correctly on this function.
10255 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10258 * app/export_png.c: Added checks for interactivity (maybe this
10259 should be a hook after all?).
10261 * app/filedlg.c (file_export_callback): Made export dialog add
10262 suffix when reopened.
10264 * app/export_png.c: Added dialog asking for export size.
10266 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10268 * lib/widgets.c: Fixed font reselection problem and first font
10271 * objects/UML/actor.c (actor_update_data): Changed to have
10272 connection points below text.
10274 2002-02-08 Akira TAGOH <tagoh@redhat.com>
10276 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10279 2002-02-07 Akira TAGOH <tagoh@redhat.com>
10281 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10282 strings which is given.
10283 (suck_font): remove. it's any longer needed.
10285 * app/render_libart.c (set_font): don't get suckfont.
10286 (draw_string): get suckfont only which is needed for now.
10288 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10290 * lib/text.c: Fixes for misunderstood width functions.
10292 2002-02-05 Hans Breuer <hans@breuer.org>
10294 * lib/dia_xml.c : use g_strconcat() instead of
10295 malloc, strcpy, strcat dance
10296 * app/properties.c : same here and plug memory leak
10297 (gtk functions don't eat strings)
10299 * objects/UML/message.c : there is no g_sprintf()
10300 use g_strdup_printf() instead ...
10302 2002-02-05 Akira TAGOH <tagoh@redhat.com>
10304 * lib/message.c (gtk_message_internal): doesn't need to convert to
10307 * app/render_libart.c (draw_string): fixed transaction for UTF-8
10309 (get_text_width): ditto.
10311 * app/Makefile.am (EXTRA_DIST):
10312 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10314 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10315 This function needs ifdef HAVE_FREETYPE because don't use it for
10318 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
10320 * NEWS: updated with the new dependencies.
10322 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10324 * objects/UML/class.h:
10325 * objects/UML/class.c:
10326 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10327 property using a GtkMenu. Options are Undefined, In, Out, In & Out
10329 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
10331 * app/render_libart.c: Slow but working libart freetype renderer,
10334 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10336 * app/render_gdk.c (draw_string): Fixed gc_function bug.
10338 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10340 * lib/font.c (freetype_render_string):
10342 * app/render_gdk.c:
10343 * app/render_gdk.h: Changed freetype_render_string to use
10344 callback. Rendering is broken.
10346 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
10348 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10350 * objects/UML/uml.h:
10351 * objects/UML/uml.c: added UMLInheritanceType and isQuery
10352 (constant) UML Operation attributes. UMLInheritanceType is either
10353 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
10355 * objects/UML/class.h:
10356 * objects/UML/class.c:
10357 * objetcs/UML/class_dialog.c: added code to handle new
10358 UMLOperation attributes via a GtkMenu and a checkbox.
10360 2002-02-03 Akira TAGOH <tagoh@redhat.com>
10362 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
10363 several client doesn't work with previous codes.
10365 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
10367 * lib/font.c (freetype_render_string): Kerning. Very few fonts
10370 2002-02-02 Akira TAGOH <tagoh@redhat.com>
10372 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
10373 when doing the operation like invert the objects after active view is
10374 destroyed. when changes focus, it needs to set active_display.
10376 * app/layer_dialog.c (dia_layer_update_from_layer):
10377 (layer_dialog_edit_layer): need to convert to locale encoding
10378 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10379 (edit_layer_ok_callback):
10380 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10382 * lib/diagramdata.c (new_diagram_data): ditto.
10384 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
10386 * lib/diagramdata.c (new_layer): use utfchar instead of char for
10389 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
10390 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
10391 it's needed for now. also this function needs prototype declaration.
10393 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
10395 * lib/widgets.c: Style now functional on font selector. Some leak
10396 possible, but doesn't show up under stress test.
10398 2002-01-31 Akira TAGOH <tagoh@redhat.com>
10400 * app/plugin-manager.c (clist_select_row): name and description needs to
10401 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10402 (get_plugin_manager): ditto.
10404 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
10406 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
10409 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
10410 when prop->string_data is NULL.
10412 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10415 * lib/widgets.h: New font selector separating font and style.
10416 Style not functional yet.
10418 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
10421 * app/render_gdk.c (draw_string): More freetype support, now
10422 renders text. Still broken is font selection and exporting.
10424 2002-01-30 Akira TAGOH <tagoh@redhat.com>
10426 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
10429 * objects/chronogram/chronoline.c (chronoline_create): ditto.
10431 * objects/UML/usecase.c (usecase_create): ditto.
10433 * objects/UML/state.c (state_create): ditto.
10435 * objects/UML/object.c (objet_create): ditto.
10437 * objects/UML/node.c (node_create): ditto.
10439 * objects/UML/message.c (message_create): ditto.
10441 * objects/UML/component.c (component_create): ditto.
10443 * objects/UML/classicon.c (classicon_create): ditto.
10445 * objects/UML/actor.c (actor_create): ditto.
10447 * objects/SADT/box.c (sadtbox_create): ditto.
10449 * objects/SADT/annotation.c (annotation_create): ditto.
10451 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
10453 * objects/GRAFCET/step.c (STEP_FONT):
10454 * (step_create): ditto.
10456 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
10458 * objects/GRAFCET/action.c (ACTION_FONT):
10459 (action_create): ditto.
10461 * objects/FS/function.c (function_create): ditto.
10463 * objects/FS/flow.c (flow_create):
10465 (flow_apply_defaults): ditto.
10467 * objects/FS/flow-poly.c (flow_create):
10469 (flow_apply_defaults): ditto.
10471 * objects/FS/flow-ortho.c (orthflow_create):
10473 (orthflow_apply_defaults): ditto.
10475 * objects/ER/relationship.c: use utfchar instead of char for structure.
10476 (relationship_create): name needs to convert to UTF-8.
10478 * objects/ER/attribute.c: use utfchar instead of char for structure.
10479 (attribute_create): name needs to convert to UTF-8.
10481 * objects/ER/entity.c: use utfchar instead of char for structure.
10482 (entity_create): name needs to convert to UTF-8.
10484 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
10485 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
10486 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
10487 items. if GTK_TALKS_UTF8 isn't defined.
10489 2002-01-29 Akira TAGOH <tagoh@redhat.com>
10491 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
10492 it was my careless mistake...
10494 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
10495 a font name, because there are strings which isn't shown by "Courier".
10496 We need to consider a way to feel free to choose a font at runtime.
10498 * lib/render_object.c (render_object_load): ditto.
10500 * lib/text.c (data_text): ditto.
10502 * objects/EML/instantiation.c (instantiation_create): ditto.
10504 * objects/EML/interaction-ortho.c (interaction_ortho_create):
10505 (interaction_ortho_load): ditto.
10507 * objects/EML/interaction.c (interaction_create):
10508 (interaction_load): ditto.
10510 * objects/EML/process.c (fill_in_fontdata): ditto.
10512 * objects/ER/attribute.c (attribute_create):
10513 (attribute_load): ditto.
10515 * objects/ER/entity.c (entity_create):
10516 (entity_load): ditto.
10518 * objects/ER/relationship.c (relationship_create):
10519 (relationship_load): ditto.
10521 * objects/UML/association.c (association_create):
10522 (association_load): ditto.
10524 * objects/UML/class.c (fill_in_fontdata): ditto.
10526 * objects/UML/constraint.c (constraint_create): ditto.
10528 * objects/UML/dependency.c (dependency_create): ditto.
10530 * objects/UML/generalization.c (generalization_create): ditto.
10532 * objects/UML/implements.c (implements_create): ditto.
10534 * objects/UML/large_package.c (largepackage_create): ditto.
10536 * objects/UML/note.c (note_create): ditto.
10538 * objects/UML/realizes.c (realizes_create): ditto.
10540 * objects/UML/small_package.c (smallpackage_create): ditto.
10542 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
10544 * objects/custom/custom_object.c (custom_create): ditto.
10546 * objects/network/antenna.c (render_to_store): ditto.
10548 * objects/network/computer.c (render_to_store): ditto.
10550 * objects/network/disc.c (render_to_store): ditto.
10552 * objects/network/flash.c (render_to_store): ditto.
10554 * objects/network/hub.c (render_to_store): ditto.
10556 * objects/network/modem.c (render_to_store): ditto.
10558 * objects/network/modularswitch.c (render_to_store): ditto.
10560 * objects/network/monitor.c (render_to_store): ditto.
10562 * objects/network/printer.c (render_to_store): ditto.
10564 * objects/network/rj45plug.c (render_to_store): ditto.
10566 * objects/network/scead-plug.c (render_to_store): ditto.
10568 * objects/standard/textobj.c (textobj_load): ditto.
10570 * objects/sybase/client.c (render_to_store): ditto.
10572 * objects/sybase/dataserver.c (render_to_store): ditto.
10574 * objects/sybase/ltm.c (render_to_store): ditto.
10576 * objects/sybase/repserver.c (render_to_store): ditto.
10578 * objects/sybase/rsm.c (render_to_store): ditto.
10580 * objects/sybase/stableq.c (render_to_store): ditto.
10582 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
10584 * objects/UML/uml.h (UML_STEREOTYPE_START):
10585 (UML_STEREOTYPE_END): changes default strings.
10587 2002-01-28 Akira TAGOH <tagoh@redhat.com>
10589 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
10590 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
10591 which is given to arguments isn't UTF-8. so don't need to convert it.
10592 if GTK+ handle UTF-8, also don't need to convert it.
10594 (bracketted_to_string): fixed transaction for UTF-8 support.
10595 also start/end bracket is not necessarily 1 character. so that when use
10596 strend(), it doesn't work correctly.
10597 (string_to_stereotype): use utfchar instead of char.
10598 (remove_stereotype_from_string): ditto.
10599 (stereotype_to_string): ditto.
10601 * objects/UML/stereotype.h: ditto.
10603 * objects/UML/message.c: use utfchar instead of char for structure.
10604 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
10606 * objects/UML/small_package.c: use utfchar instead of char for structure.
10608 * objects/UML/realizes.c: ditto.
10610 * objects/UML/object.c: ditto.
10612 * objects/UML/large_package.c: ditto.
10614 * objects/UML/implements.c: ditto.
10616 * objects/UML/generalization.c: ditto.
10618 * objects/UML/dependency.c: ditto.
10620 * objects/UML/constraint.c: ditto.
10622 * objects/UML/component.c: ditto.
10624 * objects/UML/class_dialog.c (attributes_get_current_values):
10625 (attributes_list_new_callback, attributes_fill_in_dialog):
10626 (parameters_set_values, parameters_get_values):
10627 (parameters_get_current_values, parameters_list_new_callback):
10628 (operations_set_values, operations_get_values):
10629 (operations_get_current_values, operations_list_new_callback):
10630 (operations_fill_in_dialog, templates_set_values):
10631 (templates_get_values, templates_get_current_values):
10632 (templates_list_new_callback, templates_fill_in_dialog):
10633 fixed transaction for UTF-8 support.
10635 2002-01-27 Akira TAGOH <tagoh@redhat.com>
10637 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
10639 * objects/UML/class_dialog.c (class_read_from_dialog):
10640 (class_fill_in_dialog):
10641 (attributes_get_values): ditto.
10643 * objects/UML/actor.c (actor_create): ditto.
10645 * objects/UML/class.c (umlclass_calculate_data): ditto.
10647 * objects/UML/association.c (association_apply_properties):
10648 (fill_in_dialog): ditto.
10650 * objects/UML/uml.c (uml_get_attribute_string):
10651 (uml_get_operation_string):
10652 (uml_get_parameter_string):
10653 (uml_get_formalparameter_string): use utfchar instead of char.
10655 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
10656 UML_STEREOTYPE_END.
10658 * objects/UML/class.h: use utfchar instead of char.
10660 * lib/dia_xml.c (data_add_string): ditto.
10662 * lib/text.c (text_insert_char): fixed characters# calculation
10663 when includes multibytes character in strings.
10665 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
10667 Patch from Richard Rowell <rwrowell@bellsouth.net>:
10669 * app/lineprops_area.c:
10672 * lib/widgets.c: added crow foot arrow and cross arrow
10674 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
10676 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
10678 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
10680 * po/update.pl (REMOVED):
10681 * po/update.sh (REMOVED):
10682 * xml-i18n-merge.in.kg (REMOVED):
10683 * xml-i18n-update.in.kg (REMOVED):
10684 * sheets/Makefile.am:
10687 * configure.in: converted from xml-i18n-tools to intltools
10689 This looks like it fixes the build bugs of the snapshot tarballs,
10690 and it supersedes #69611.
10692 2002-01-25 Akira TAGOH <tagoh@redhat.com>
10694 * lib/text.c (text_insert_char): fixed characters# calculation.
10695 it's not string length.
10697 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
10698 is defined, needs to convert a description to UTF-8.
10700 * app/render_gdk.c (get_text_width): fixed transaction for
10701 UTF-8 support. also should uses gdk_text_width_wc() instead
10702 of gdk_text_width().
10704 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
10705 is defined, needs to convert to locale encoding for display.
10706 Also use utfchar instead of char for argument.
10708 2002-01-24 Hans Breuer <hans@breuer.org>
10710 * app/commands.c(edit_paste_callback and more) :
10711 call diagram_modified(ddisp->diagram) to fix #68083
10712 (help_menu_callback) : plug a DIR leak
10714 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
10715 GTK_TALKS_UTF8_WE_DONT
10717 * app/render_gdk.c(get_text_with) : it's a bad idea to use
10718 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
10719 gdk_text_width(). The length value is still questionable ...
10721 * lib/charconv.c : use functions already available in early
10722 GLIB-1.3 days whiches API hasn't changed since, to avoid
10723 version problems with the win32 build
10725 * lib/font.c : finally fix #58045 and #68208
10727 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
10729 2002-01-24 Akira TAGOH <tagoh@redhat.com>
10731 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
10732 no strings, fixed transaction.
10734 * lib/charconv.h: fixed typo.
10736 * app/menus.c: fixed typo.
10738 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
10740 * objects/UML/object.c: attrib's type uses utfchar instead of char.
10742 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
10744 * lib/text.c (text_create_change): use unichar instead of char.
10746 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
10747 use utfchar instead of char.
10749 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
10752 * lib/charconv.c (charconv_utf8_get_char): add new function.
10754 2002-01-23 Akira TAGOH <tagoh@redhat.com>
10756 * lib/text.c (text_delete_forward, text_delete_backward,
10757 text_split_line): fixed transaction for UTF-8 support.
10759 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
10760 strlen[] has string length for UTF-8, so has to use alloclen[].
10764 * .cvsignore: add dia.pot.
10766 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
10768 * configure.in: Added "sk" to ALL_LINGUAS.
10770 2002-01-22 Akira TAGOH <tagoh@redhat.com>
10772 * lib/text.c (text_set_string, new_text, text_copy,
10773 text_get_string_copy, text_join_lines): use utfchar instead of gchar
10776 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
10779 * lib/charconv.c (charconv_utf8_strchr): add new function.
10781 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
10783 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
10785 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
10786 strings to the appropriate encoding.
10788 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
10790 * app/object_ops.c (object_list_align_[hv]): Leak fix.
10792 * lib/Makefile.am (INCLUDES): Added debug flags.
10794 * app/object_ops.c: Fixed ordering problem of align equi-distant &
10797 2002-01-21 Akira TAGOH <tagoh@redhat.com>
10799 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
10800 gdk_string_width().
10802 * objects/GRAFCET/boolequation.c: fixed invalid comment.
10804 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
10805 when defined UNICODE_WORK_IN_PROGRESS.
10807 * lib/dia_xml.c (data_add_string): fixed typo.
10809 2002-01-20 Akira TAGOH <tagoh@redhat.com>
10811 * configure.in: fixed test gtk_advancement.
10813 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
10815 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
10818 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
10820 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
10821 tool tips, preferences, and arbitrarily long ~/.dia/history
10823 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
10824 removed 'Open Recent'; added new separators for recent documents on
10827 * app/interface.[ch] (interface_get_toolbox_shell): new function
10829 * app/diagram.c: added new parameter to recent_file_history_add() call
10831 * app/preferences.[ch]: added new 'Recent documents list size'
10834 2002-01-18 Akira TAGOH <tagoh@redhat.com>
10836 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
10837 if it failed, should be used gdk_font_load ().
10839 * lib/font.c (font_data): added the font entries for CJK.
10841 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
10843 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
10845 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
10847 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
10849 Patch from Martin Cracauer <cracauer@cons.org>:
10851 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
10854 2002-01-01 Hans Breuer <hans@breuer.org>
10856 * app/command.c : optional use GDI printing on windoze
10858 * app/preferences.[hc] : add option 'prefer_psprint' to
10859 select the print engine to use (could be used for Dia/Gnome
10862 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
10863 wmf plug-in with the common win32 print api. Now printing
10864 should work almost as expected from a windows program :-)
10866 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
10867 to .edit_delete to avoid clashes with C++
10869 * app/makefile.msc : updated for GDI printing
10871 * plug-ins/wmf/wmf.cpp : some small modifications to support
10872 GDI printing. Also swap R and B channel in draw_image()
10874 * app/makefile.am : added windows only files to EXTRA_DIST
10876 * objects/uml/class.c(umlclass_set_props) : force recalculation
10877 when applying properties
10879 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
10880 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
10881 many incompatible changes (and would force a gtk update)
10883 * objects/makefile.msc : don't build C-Objects which are
10884 already available as 'pure shape'
10886 * plug-ins/makefile.msc : remove diaimport from build. It was
10887 only available via mailing-list and is broken since the
10891 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
10893 * app/preferences.[hc] : tweaked preferences.c to make
10894 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
10895 added some more DiagramTree prefererences and their own
10898 * app/diagram_tree.[hc] : allow to sort by object type or name
10899 and hide by type ...
10900 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
10901 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
10903 * app/diagram_tree_window.c : handle hidden types and window
10906 2001-12-20 Hans Breuer <hans@breuer.org>
10908 * plug-ins/python/Makefile.am : patch from Peter Moulder
10909 <pmoulder@csse.monash.edu.au> to make the python plug-in
10910 compile on *nix too.
10912 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
10914 Patch from Alan <horkana@tcd.ie>:
10916 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
10918 2001-11-20 Hans Breuer <hans@breuer.org>
10920 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
10922 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
10924 * app/diagram_tree.[hc] : Added new functions and types for
10925 sorting diagram and objects, and attaching the popup menus.
10927 * app/preferences.h: Added more diagram tree preferences, using a
10928 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
10929 height and width of the diagram tree window and the default sort
10930 orders for diagrams and objects.
10932 * app/preferences.c (prefs_data): Added new entries for the new
10933 diagram tree preferences.
10935 * app/preferences.c (prefs_tabs): New tab for diagram tree
10938 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
10939 * app/diagram_tree_window.c (diagram_tree_window_new):
10940 * app/interface.c (create_tree_window): The diagram tree window is
10941 initialised using the DiagramTreeConfig part of prefs.
10944 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
10946 * app/diagram_tree_menu.[hc]: New files. Functions to create the
10947 diagram tree popup menus.
10949 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
10950 the diagram tree popup menus.
10952 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
10955 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
10957 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
10958 double-clicking a diagram tree node raises the diagram window
10959 to the foreground (and, if a object node was clicked, selects the
10960 object in the diagram).
10962 * app/diagram_tree.c (select_tree_widget): selecting an object
10963 node with single click simply updates it (no raise).
10965 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
10966 These changes make the diagram tree lazy: it is not created unless
10967 the diagram tree window is requested.
10969 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
10970 function for creating the tree window.
10972 * app/interface.c (create_tree_window): call
10973 create_diagram_tree_window() instead of diagram_window().
10975 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
10976 (diagram_tree_update, diagram_tree_update_name)
10977 (diagram_tree_add_object, diagram_tree_add_objects)
10978 (diagram_tree_remove_object, diagram_tree_remove_objects)
10979 (diagram_tree_update_object): accept a NULL tree as a nominal
10980 argument (and do nothing in this case!), so that the diagram tree
10981 is not initialised if not used.
10983 * app/diagram_tree_window.c (diagram_tree): do not create the
10984 diagram tree until diagram_window() or diagtree_show_callback()
10987 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
10988 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
10990 * app/diagram_tree_window.[hc] : (new files) implementation of
10991 the diagram tree window, a container for a diagram tree. [Removed
10992 the horizontal scroll bar glitch by disableing it]
10994 * app/diagram_tree.[hc] : (new files) implementation of the
10995 diagram tree widget. [Don't rely on the layers GPtrArray to be
10996 NULL terminated, but use its ->len field]
10998 * app/Makefile.am (dia_core_files): added new files
10999 diagram_tree.[hc] and diagram_tree_window.[hc]
11001 * app/interface.[hc] : (create_tree_window): this function
11002 creates the new diagram tree window widget
11004 * app/undo.c (delete_objects_apply) (delete_objects_revert)
11005 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
11006 (ungroup_objects_apply) (ungroup_objects_revert):
11007 every time that an undoable command modifies a diagram
11008 adding/removing/(un)grouping objects, a diagram_tree_something() is
11009 invoked to keep the diagram tree window in sync
11011 * app/properties.c (properties_apply): call to
11012 diagram_object_modified(), which updates the diagram tree window
11013 when the properties of an object are modified
11015 * app/preferences.[hc] : new "show_diagram_tree" configuration option
11016 (whether the diagram tree window should be shown on dia startup)
11018 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
11020 * app/diagram.h (diagram_object_modified): callback notifying of a
11021 diagram object modification
11023 * app/diagram.c (diagram_load_into): added call to
11024 diagram_tree_add() to add newly loaded diagrams to the diagram
11026 (diagram_destroy): call to diagram_tree_remove() to remove a
11027 destroyed diagram from the diagram tree window
11028 (diagram_add_object): call to diagram_tree_add_object() to add an
11029 object to the diagram tree window
11030 (diagram_add_object_list): as above, but with an object list
11031 (diagram_selected_break_external): deletion of objects from the
11032 diagram is detected here, and diagram_tree_remove_object() is
11033 invoked to remove the object from the diagram tree window (it
11034 would be nice to have a diagram_remove_object() in the Diagram
11036 (diagram_set_filename): update the diagram tree window when a
11037 diagram's filename changes
11039 * app/commands.c (file_new_callback): added call to
11040 diagram_tree_add() to add newly created diagrams to the diagram
11043 * app/app_procs.c (app_init): added call to create_tree_window()
11045 * app/makefile.msc : updated
11047 2001-10-28 Hans Breuer <hans@breuer.org>
11049 * app/preferences.h (DiaPreferences):
11050 * app/preferences.c (prefs_data): new "show_diagram_tree"
11051 configuration option (whether the diagram tree window should be
11052 shown on dia startup)
11054 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
11055 entry (both for GNOME and gtk)
11057 * app/diagram.h (diagram_object_modified): callback notifying of a
11058 diagram object modification
11060 * app/diagram.c (diagram_load_into): added call to
11061 diagram_tree_add() to add newly loaded diagrams to the diagram
11063 (diagram_destroy): call to diagram_tree_remove() to remove a
11064 destroyed diagram from the diagram tree window
11065 (diagram_add_object): call to diagram_tree_add_object() to add an
11066 object to the diagram tree window
11067 (diagram_add_object_list): as above, but with an object list
11068 (diagram_selected_break_external): deletion of objects from the
11069 diagram is detected here, and diagram_tree_remove_object() is
11070 invoked to remove the object from the diagram tree window (it
11071 would be nice to have a diagram_remove_object() in the Diagram
11073 (diagram_set_filename): update the diagram tree window when a
11074 diagram's filename changes
11076 * app/commands.c (file_new_callback): added call to
11077 diagram_tree_add() to add newly created diagrams to the diagram
11080 * app/app_procs.c (app_init): added call to create_tree_window()
11082 2001-10-28 Hans Breuer <hans@breuer.org>
11084 * plug-ins/python/pydia-property.c : apparently I missed
11085 to commit this last time. Now it has some more SetAttr
11086 support (apply from property)
11088 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
11090 * plug-ins/python/pydia-text.[ch] : new files
11092 2001-10-14 Hans Breuer <hans@breuer.org>
11094 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
11095 strings. Use g_strdup() for these.
11097 libxml2 does not produce 'any extra indentation when saving a tree'
11098 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
11099 libxml(1). To get human readable XML some extra tweaking is required.
11100 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
11101 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
11102 * app/preferences.[ch] : initialize 'pretty_formated_xml'
11104 * lib/libdia.def : updated externals
11106 * lib/properties.h : add prototype for prop_list_from_single ()
11108 * plug-ins/makefile.msc : build metapost plug-in
11110 * plug-ins/metapost/render_metapost.c : msvc does not like
11111 switch labels without operation 'default: }'. Added a noop.
11113 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
11114 * plug-ins/python/diamodule.c : added PyDiaText
11115 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
11116 Although the python plug-in does not use libxml at all, the
11117 headers are required to use the lib/prop*.h headers
11119 * plug-ins/python/pydia-diagramdata.c : added wrappers for
11120 update_extents and get_sorted_selected (should I duplicate
11121 more functions from PyDiaDiagram or should they be moved?)
11123 * plug-ins/python/pydia-properties.c : allow to set (some) properties
11124 through the dictionary api
11125 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
11126 * plug-ins/python/pydia-property.c : implement it (currently only
11127 string properties can be set)
11129 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
11130 Quoting myself: 'Still not convinced that this is better than an
11131 integral property->type and some casting ...
11132 It is trading a straightforward 40 lines switch statement to
11133 this nice 'type safe' function mapping (about 125 lines)'
11134 (But now it works again, better than changing the News file :)
11136 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
11138 patch from <robert.young@dsto.defence.gov.au>:
11139 * objects/UML/component.c: remember to set font in UML component
11140 object (fixes #62132)
11142 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
11144 * plug-ins/metapost/metapost.c:
11145 * plug-ins/metapost/Makefile.am:
11146 * plug-ins/metapost/render_metapost.c:
11147 * plug-ins/metapost/render_metapost.h:
11148 Metapost renderer from Chris Sperandio
11150 2001-09-14 Hans Breuer <hans@breuer.org>
11152 * app/render_gdk.c : reflect the fact, that GTK already talks
11153 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
11156 * app/render_libart.c : trying to fix #58045 but it appears
11157 to be an Gdk/win32, too.
11159 * lib/charconv.c : handle utf8 conversion with the help of
11160 glib-1.3 even in the !HAVE_UNICODE case.
11162 * lib/dia_xml.c : reduce complaing about missing encoding, by
11163 detecting if the default (utf8) would break the file.
11165 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
11167 * lib/charconv.c: (get_local_charset): at least please try to not
11168 silently change the logic, while avoiding crashes.
11170 * lib/font.c: (suck_font): put a #error, we have a nasty something
11171 to fix there before we switch to Gtk 2.0.
11173 2001-09-09 Hans Breuer <hans@breuer.org>
11175 * **/makefile.mingw : Approach to compile Dia with mingw.
11176 Compiling mostly works but running does not (yet) ...
11179 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
11180 Apparently mingw needs it too.
11181 - enable 'normalization' of a null verctor. Otherwise the beziergon
11182 bounding box calculation would be broken at least with msvc. What's
11183 the mathematical correct result of 0.0/0.0 ?
11185 * lib/dia_xml.c : isinf() for mingw too.
11187 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
11190 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
11191 Please don't do it.
11193 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11195 * lib/libdia.def : updated externals. Apparently mingw needs
11196 them to produce the right mangling.
11198 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11201 2001-09-08 Wang Jian <lark@linux.net.cn>
11203 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11205 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
11207 * lib/dia_xml_libxml.h:
11208 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11209 libxml1's code, to rework the output file before it gets committed
11210 to disk. This is rubbish, and will be removed when libxml2
11211 switches from discouraged to mandatory.
11212 All in all, this fixes #60152.
11215 * lib/charconv.c: (charconv_unichar_to_utf8):
11216 made the type of the input parameter explicitly an unsigned long.
11218 * configure.in: Added a check for libz (we must now include it
11219 explicitly, for xmlDiaSaveFile).
11221 * app/load_save.c: (diagram_data_save):
11222 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11223 (dia_pluginrc_write):
11224 * plug-ins/shape/shape-export.c: (new_shape_renderer),
11225 (end_render), (draw_string):
11226 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11229 Made sure we always write UTF-8 XML files, and through
11232 * NEWS: documented that fact.
11234 2001-09-07 James Henstridge <james@daa.com.au>
11236 * configure.in (found_libxml): refactor the check for libxml a
11237 little so that it handles finding both libxml1 and 2 better.
11239 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
11241 * app/app_procs.c: removed a spurious } which caused a compilation
11242 error in the (!HAVE_GNOME && HAVE_POPT_H) case
11244 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11245 don't know what ANSI X3.4-1968 is. I didn't know until this day,
11246 but it's just plain old ASCII. Added a check to shield the poor
11249 Patches from <robert.young@dsto.defence.gov.au>:
11251 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11252 width and height of text before calculating bounds. Fixes #59928
11254 * app/preferences.c: Moved grid related items into Grid Tab.
11256 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
11258 * app/interface.c: (create_zoom_widget): connected one more signal
11259 to the Zoom selector combo's list. Fixes #59879.
11261 * app/app_procs.[ch]: (app_init) (do_convert)
11262 (build_output_file_name): brought back into the main executable
11263 the rare useful bits of the ill-fated diaconv. This means we have
11264 one new feature : --export-to-format (-t), which should make
11265 writing conversion scripts easier, and a crude implementation of
11266 -t and -e for the poptless argument parsing, which means the Win32
11267 port should be able to take advantage of it (that should make
11268 resolving #58197 possible).
11270 * app/diaconv.c: kept the poor duck compiling (but that's about
11273 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11274 I've got it right).
11276 * NEWS: updated about the new feature above, and documented the
11277 "missing encoding specification" complaint.
11279 2001-09-01 Abel Cheung <maddog@linux.org.hk>
11281 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11283 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
11285 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11288 2001-09-01 James Henstridge <james@daa.com.au>
11290 * */Makefile.am: various changes to include missing files, and fix
11291 sheets dir to handle building with builddir != srcdir.
11293 * autogen.sh: unconditionally pass the --enable-maintainer-mode
11294 and --enable-db2html flags so that builds from CVS work correctly.
11296 * configure.in: increment version number. Also add an
11297 --enable-db2html flag. Without the flag, db2html won't be run (if
11298 the flag is passed and db2html is not present, do nothing).
11300 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
11302 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11303 even compiled. It's really too bad there is no lint tool easily
11304 available (or a more cautious, pedandic, paranoid and verbose
11305 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11307 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11310 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11311 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11313 * app/menu.c: added ellipsis(...) to diagram properties menu item.
11314 * app/dia-props.c: diagram properties dialog contents did not
11315 represent current diagram settings.
11316 * app/dia-props.[ch]:
11317 * app/display.c: diagram properties contents now follows currently
11319 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11321 * AUTHORS: added Robert Young.
11323 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11325 * app/modify_tool.c: (modify_button_release): Patch from
11326 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11327 #59090: if selection dragging was released outside of the window,
11328 artifacts of the selection box remained.
11330 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
11332 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11334 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
11337 * sheets/Makefile.am: prepared the terrain for the Version of
11338 xml-i18n-tools Which Comes After 0.9 (and which will feature at
11339 last a sane behaviour with XML files). Some reasonible delay
11340 before enforcing that version *will* be given.
11342 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11344 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11345 becomes a nonexistent symbol.
11347 2001-08-18 Hans Breuer <hans@breuer.org>
11349 * app/app_procs.c : made it compile without ENABLE_NLS
11351 * app/diap_callbacks.c : strcmp isn't guaranteed to work
11354 * app/load_save.c :
11356 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
11358 xmlGetProp, ... -> xmlFree
11359 malloc, strdup -> free
11360 g_new, g_malloc, g_strdup - > g_free
11362 * app/win32print.c : some more error checking, still not
11365 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
11367 * lib/dia_xml.c : msvc still has no unistd.h
11370 * lib/sheets.c : temporary resolved libxml include brokeness
11372 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
11373 changes. Compiles again, but doesn't do anything useful anymore.
11374 (see THE_PROP_TYPE_IS_INTEGRAL)
11376 * **/makefile.msc : updated to use LIBXML2
11378 * lib/libdia.def : reflect api changes
11380 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
11382 * config.h.win32: added defines telling that gtk speaks UTF8.
11383 Hans, I believe this reflects what GTK on Win32 does.
11385 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
11387 * lib/prop_inttypes.c:
11389 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
11392 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
11393 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
11394 search for plug-ins is done.
11395 * app/Makefile.am: made app/run_dia.sh use the // capability. No
11396 need to update this anymore if we get a new plug-in library (or
11399 * lib/dia_xml.c: #include <unistd.h> was missing.
11401 * lib/properties.h:
11402 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
11403 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
11406 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
11408 * sheets/civil.sheet: removed duplicate "Danish" entries.
11413 * sheets/Makefile.am:
11415 * Makefile.am: applied the xml-i18n-tools README's instructions.
11417 * po/(da de fr hu nl nn no sl).po: merged the translations from
11418 the sheet files into the .po files. I hope I haven't mixed
11420 * sheets/*.sheet (REMOVED):
11421 * sheets/*.sheet.in (NEW): moved the sheet files sans
11422 translations into .sheet.in files.
11424 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
11425 because we don't yet want to force all translators to work using
11426 UTF-8 editors. We'll want to do that sometime (sooner rather than
11427 later). Okay, I sing a slightly different tune in po/ChangeLog...
11429 * dia.desktop (REMOVED):
11430 * dia.desktop.in (NEW): used also the x18t infrastructure for
11433 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
11434 "official" version of x18t with support for .sheet files is available.
11435 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
11436 "official" version of x18t which doesn't corrupt UTF-8 data in XML
11439 ** yes, we are now using xml-i18n-tools to manage the sheet
11440 translations. For the Win32 build, Nemo stores snapshots of
11441 translated strings next to the CVS snapshots. **
11443 * sheets/checktrans.py: suddenly, some sheets have lots of
11444 translations (objects which existed before sheets, mostly).
11445 Adapted the formatting.
11447 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
11449 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
11450 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
11451 <robert.young@dsto.defence.gov.au>, to fix #59090.
11453 * app/display.c: (ddisplay_scroll): While at it, added some
11454 margin, so that autoscrolling can happen within a margin outside
11455 the diagram's extents.
11459 * app/disp_callbacks.c: Robert "forced" me to go when I usually
11460 don't, namely the app/ directory. So while I was there, I
11461 scratched a long-time itch. If no object has focus, pressing the
11462 space bar will select back the tool which was selected before the
11463 current one (I find this especially useful with "reset after create" !)
11465 * lib/proplist.c: (prop_list_from_single): Renamed
11466 prop_list_singleton() to avoid confusion with the Singleton
11467 pattern (which it definitely is not).
11469 * lib/propobject.c: (object_prop_by_name_type),
11470 (object_prop_by_name): The "flags" parameter was not necessary.
11471 These don't return synthetic properties, but properties built from
11472 a real property description list; therefore, we don't call
11473 make_new_prop() but use the existing property descriptor, which
11474 has perfectly valid (and meaningful) flags.
11476 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
11477 new predicates better reflect the reason why properties exist when
11478 they're created by make_new_prop() or object_prop_by_name().
11480 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11481 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
11484 * lib/properties.h: reflects all the above changes.
11486 * objects/SADT/arrow.c:
11487 * objects/SADT/annotation.c:
11488 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
11491 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11493 * lib/properties.h:
11494 * lib/proplist.c: (prop_list_singleton):
11495 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11496 Added these, to simplify interactions of plug-ins with the StdProp
11501 * lib/dia_xml_libxml.h (NEW):
11506 * objects/custom/shape_info.c: A few prototypes were causing
11507 #include hell, because we generally attempt to not pull the whole
11508 libxml header set when we include dia_xml.h. Moved those
11509 prototypes away for the rare cases they're necessary.
11511 2001-08-15 Hans Breuer <hans@breuer.org>
11513 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
11516 * lib/makefile.msc : updated
11518 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
11519 use G_GNUC_FUNCTION instead.
11521 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
11523 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
11524 msvc instead of cleaning missing includes
11526 * plug-ins/wmf/wmf.cpp :
11527 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
11529 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11536 * objects/custom/shape_info.c:
11537 * plug-ins/shape/shape-export.c:
11538 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
11539 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
11540 removed xmlKeepBlanksDefault(0) in favour for proper
11541 xmlIsBlankNode() testing. Lots of other fixups to use the
11542 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
11543 make libxml1 output correct files.
11545 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
11546 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
11547 packages). If both devel packages are found, the build will stop
11548 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
11550 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
11551 allocate the first handle :-)
11553 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
11554 a cast and a sizeof.</gratuitous>
11556 * objects/custom/custom_object.c: (custom_copy): don't call
11557 text_get_attrbutes if the shape has no text...
11558 (custom_update_data): The info->resize_with_text code was a bit
11559 directive; basically, the shape's bounding box was forced to be
11560 proportional to the text's bounding box.... This fixes #57187.
11562 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
11563 default for info->aspect_ratio; unobfuscated a line about
11564 info->resize_with_text;
11566 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11568 * lib/properties.h: added comments next to the PROP_TYPEs to tell
11569 which C Property subclass to use.
11571 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
11572 cast-ridden form of setting properties in a list, in favour for
11573 the "local pointers" form. I'll take any better offer...
11575 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
11577 * lib/font.c: fprintf(...) --> fprintf(format...)
11579 * configure.in: added a disabled versioned test for glib.
11580 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
11581 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
11582 g_critical() with a simple g_error(). Proper fix is to implement
11585 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
11588 * lib/properties.h:
11589 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
11590 * lib/proplist.c: (find_prop_by_name_and_type):
11591 * lib/prop_basic.c: (make_new_prop), (initialize_property):
11592 * lib/propoffsets.c: (do_set_props_from_offsets),
11593 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
11594 Added a type_quark member to PropDescription, Property and
11595 PropOffset. Used it to implement a safety in
11596 do_[sg]et_props_from_offsets().
11598 * objects/flowchart/diamond.c: the diamond's text was not saved,
11599 and thus not even copied (c&p).
11600 * objects/standard/textobj.c: ditto.
11602 Most of the above changes thanks to Robert Young's testing. Thanks !
11604 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
11606 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
11609 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
11611 * lib/proplist.c (prop_list_from_descs): added a call to
11612 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
11613 too embarrassing to tell.
11615 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
11616 while loop to a for loop, for symmetry with
11617 prop_offset_list_calculate_quarks().
11619 * lib/geometry.h: new inline function, rectangle_equals.
11621 * lib/diagramdata.[ch]: refactored a bit the diagram extents
11622 computation logic, and changed it to always be the union of the
11623 visible layers' extents. This should close #58882 (Debian
11624 #107167), and fixes #55498.
11626 * app/display.c: made the initial visible box more coherent with
11627 the diagram being loaded's extents.
11629 * app/prop_attr.c: don't set the font (from offset) if font_data
11630 is NULL. Two brainos in colorprop_load() and fontprop_load().
11632 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
11634 * lib/properties.[ch]: split in a lot of pieces:
11636 * lib/prop_*.[ch] (NEW): all property types are now first-class
11637 objects, inheriting from the original abstract Property type.
11638 * lib/propdesc.c (NEW): property description handling routines
11639 * lib/propoffsets.c (NEW): property offset handling routines
11640 * lib/proplist.c (NEW): property list handling routines
11641 * lib/propobject.c (NEW): property list <-> object routines
11642 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
11644 * lib/propinternals.h: prototypes for stuff not usually needed by
11645 the outside of StdProps.
11646 * lib/Makefile.am: a lot of new files have been added...
11648 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
11649 BOTH INTERFACES AND RUN-TIME STABILITY.
11651 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
11653 * lib/object.h: removed the incestuous relationship with
11654 properties.h' contents. Now a Property list is a GPtrArray -->
11655 object interface change !
11657 * app/app_procs.c/app_init(): removed a disabled call to a
11658 non-existent routine. Added a call to stdprops_init().
11660 * objects/Makefile.am: disabled the construction of EML. I'm not
11661 touching these until a certain issue is solved (or this module
11664 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
11665 objects to the interface changes.
11667 * app/disp_callbacks.c: killed a warning.
11668 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
11671 The macros PROP_VALUE_* have disappeared. Adapted to using the new
11674 * plug-ins/dxf/dxf-import.c:
11675 * plug-ins/xfig/xfig-import.c:
11676 PROP_VALUE_* macros have been removed. Converted to the new API.
11678 * plug-ins/python/**/*: I gave up converting this; I can't
11679 compile --with-python (problems with object.h defined both by us
11680 and by Python). I'll gladly help whomever cares to fix it !
11681 (or, fix it myself if someone tells me how to compile it).
11683 * configure.in: added the UNICODE-related progress defines.
11686 * lib/geometry.h: On Solaris and perhaps other systems, finite()
11687 is defined in ieeefp.h rather than in math.h. Patch from Andrew
11688 Halper <ashalper@acm.org> with further modifications, isinf() is
11689 provided by -lsunmath (sunmath.h).
11691 * lib/font.c: conditionally disabled Lars' debugging messages.
11692 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
11694 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
11696 * lib/bezier_conn.h:
11697 * objects/standard/bezier.c (bezierline_create):
11698 * lib/bezier_conn.c (bezierconn_init):
11699 Preparations for use of userdata for bezier lines.
11701 * objects/standard/polygon.c:
11702 * objects/standard/create.h:
11705 * plug-ins/xfig/xfig-import.c:
11706 Use of user_data for polygon as well, including adding
11707 polyshape_set_points. Include file for non-interactive
11708 creation of standard objects, objects/standard/create.h
11710 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
11712 * app/render_gdk.c:
11713 * app/render_gdk.h:
11717 More preliminary freetype support. Not at all functional, crashes
11722 * objects/standard/polyline.c:
11723 Support for creating polyline objects with more than two points.
11724 This includes an extra function and a prototype change in the
11725 poly_conn lib object.
11727 * lib/object.c (object_copy): Fixed memory leak of handles and
11730 2001-08-08 Abel Cheung <maddog@linux.org.hk>
11732 * dia.desktop: added traditional Chinese strings
11734 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
11736 * NEWS: updated to reflect build-time dependencies.
11738 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
11739 around obj->ops->describe_props(obj). Quarks are none of an
11740 object's business in the general case...
11741 * lib/text.c: Added an apply_textattr_properties() function to
11742 factor out some common code related to applying a dialog's text
11743 attribute properties to a (Text *) which wasn't edited there.
11744 Ditto for textstr, for the string part of an objet.
11746 * objects/GRAFCET/action.c:
11747 * objects/SADT/annotation.c:
11748 * objects/SADT/box.c: used apply_textattr_properties().
11750 * objects/UML/actor.c:
11751 * objects/UML/branch.c:
11752 * objects/UML/component.c:
11753 * objects/UML/constraint.c:
11754 * objects/UML/small_package.c:
11755 * objects/UML/state.c:
11756 * objects/UML/usecase.c:
11757 * objects/UML/large_package.c:
11758 * objects/UML/note.c:
11759 * objects/UML/node.c:
11760 * objects/UML/message.c:
11761 * objects/UML/classicon.c:
11762 * objects/UML/object.c:
11763 * objects/UML/realizes.c:
11764 * objects/UML/dependency.c:
11765 * objects/UML/implements.c:
11766 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
11767 (most objects were already using StdProps to some extent ; this
11768 systematises usage and removes some dead wood).
11770 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
11771 * objects/UML/uml.[ch]: audited for UTF-8.
11773 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
11774 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
11775 private (ISO-8859-1) definition.
11777 * lib/charconv.c: Added a warning if we didn't run
11778 nl_langinfo(CODESET) but rely instead on a hardcoded default.
11780 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
11783 * app/disp_callbacks.c: added a way for an object to cause an
11784 already realised menu to be destroyed (for instance if it changes
11787 * objects/custom/custom_object.c: used the above to fix #55073.
11789 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
11791 * configure.in: Remove 2.50 prereq.
11793 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
11795 * po-checktrans.py: under some circumstances, there was one column
11796 more than what was supposed to be, thus breaking the formatting.
11798 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
11800 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
11802 * NEWS: updated with new stuff since 0.88
11804 * shapes/network/antenna.shape: the text was misplaced ; fixed.
11806 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
11807 firewall router (upon request from Cyril Lacoux
11808 <clacoux@easter-eggs.com>)
11810 * configure.in (didn't rename to configure.ac): autoconf 2.50
11811 constructs were used ; added an AC_PREREQ call to guard against
11814 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
11816 * lib/properties.c: minor clean-ups with the event delivery code.
11818 * EML/instantiation.c: brought this object back from stone and ice
11821 * app/diaconv.c(NEW): added a command-line conversion tool. Still
11822 lacks a man page and correctness. In fact, it doesn't work. Please
11823 see #58196 if you want to finish it.
11825 * lib/message.[ch]: redefined things a little so that a different
11826 message_internal routine could be passed.
11827 applications can use that to fit themselves to the display model.
11829 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
11831 * objects/SADT/box.c:
11832 * objects/GRAFCET/action.c: spelling in property descriptors (name
11834 * objects/SADT/annotation.c: ditto, plus a temporary test of the
11835 event delivery code (try to click on the "click me !" button !).
11838 * lib/properties.[ch]: improved (fixed) support for group event
11839 handlers. Fixed various things from yesterday's code to make it
11840 not too obviously crash.
11842 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
11844 * app/group.c: added delivery of events to the first member of the
11845 group which is able to process it.
11847 * lib/properties.c(prop_desc_lists_intersection): properties
11848 don't match if they don't have identical event handler.
11849 * lib/properties.h: simplified the PropEventHandler signature.
11851 Event delivery code is still untested so far, but should be
11854 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
11856 * lib/properties.[ch]: Added (untested !) property event handler
11857 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
11858 generating such events. This stuff compiles, and should lurk
11859 around silently as long as you don't declare property descriptors
11860 with events (AFAICT).
11861 In object_create_props_dialog() and friends:
11862 attached a single structure with lots of data instead of lots of
11863 little attachments of data to the dialog widget.
11865 * lib/object.h: fixed mild typedef breakage introduced by the above.
11867 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
11869 * lots of files: Changed Font to DiaFont
11870 * */Makefile.am: Added FREETYPE_LIBS
11871 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
11873 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
11875 * configure.in: Added "nn" to ALL_LINGUAS.
11877 2001-07-09 Alex Larsson <alexl@redhat.com>
11879 * app/disp_callbacks.c:
11880 Add gdk_im_ready() calls to XIM code.
11882 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
11884 * lib/properties.[ch]: splitted prop_get_widget() into
11885 prop_get_widget() (gives a widget but doesn't fill it) and
11886 prop_reset_widget() (fills an existing widget with a property's value).
11888 * lib/widgets.[ch]: const enforcement police work.
11890 * shapes/network/antenna.shape: added a connection point at top,
11891 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
11893 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
11895 * intl/*: tested with gettext-0.10.38
11896 * configure.in: moved a macro call around (AM_PROG_CC) to keep
11897 some of autogen.sh from complaining.
11898 * INSTALL: added a warning against gettext older than at least 0.10.36
11900 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
11902 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
11903 AM_ICONV (both provided by gettext)
11905 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
11907 * lib/charconv.c: corrected the degraded mode for when
11908 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
11910 * objects/chronoline/chronoline_events.c: UTF8 compliance.
11912 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
11914 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
11915 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
11916 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
11919 * objects/chronogram/chronoline.c:
11920 * objects/chronogram/chronoref.c: took advantage of the above to
11921 make nicer looking dialogs.
11923 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
11924 from libunicode's internals).
11925 * lib/message.c: convert strings to local encoding prior to
11926 display (UNICODE_WORK_IN_PROGRESS)
11927 * lib/properties.[ch]: convert strings to local encoding prior to
11928 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
11929 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
11930 * lib/stringprerenderer.[ch]: ditto
11932 (lib/text.c has been audited for UTF8, but the size of the changes
11933 make them inappropriate for commit before 0.89)
11935 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11937 * objects/boolequation.h (<save|load>_boolequation): made the
11938 prototypes for match the .c file.
11940 * samples/grafcet.dia: minor non-conformance with IEC-848
11941 fixed (in the transition from step 100 to step 101).
11943 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
11944 disallow editing of properties if the object is part of a group.
11946 * objects/chronogram/chronoline.c:
11947 * objects/SADT/annotation.c:
11948 * objects/SADT/box.c:
11949 * objects/GRAFCET/step.c:
11950 * objects/GRAFCET/transition.c:
11951 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
11953 2001-06-12 Hans Breuer <hans@breuer.org>
11955 * lib/libdia.def : removed lazyprop exports
11956 * lib/makefile.msc : removed lazyprop.obj
11958 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
11959 and avoid crashes by always creating a custom->text,
11960 when (custom->info->has_text)
11962 * objects/makefile.msc : removed sybase from build
11964 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
11965 ObjectNode is a pointer already, which is what we want
11966 instead of a pointer pointer.
11968 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
11969 and implemented working export for images
11971 * shapes/network/zip-disk.shape : added connection points
11973 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11975 * objects/SADT/box.c: removed lazyprops for standard props.
11976 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
11977 * objects/chronograms/chronoref.c: ditto
11981 * lib/connpoint_line.c:
11982 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
11983 * lib/properties.[ch]: new property types:
11984 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
11985 - PROP_TYPE_MULTISTRING: same as string, but renders as a
11986 multi-line entry box.
11987 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
11988 in a tabbed-notebook style (this is a bit complicated to use;
11989 see objects/chronograms/chronoline.c for an example).
11991 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
11993 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
11994 * objects/GRAFCET/step.c: ditto.
11995 * objects/GRAFCET/vector.c: ditto.
11996 * objects/SADT/annotation.c: ditto.
11997 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
11999 * lib/properties.[ch]: two more non-visible types
12000 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
12002 * lib/neworthconn.[ch]:
12003 * lib/orthconn.[ch]: added support for manipulation through
12004 standard properties.
12006 * configure.in: removed -fomit-frame-pointer, this seems to
12007 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
12010 * charconv.[ch]: more functions from unicode.h.
12011 get_local_charset() wasn't working properly, fixed now.
12012 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
12015 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
12016 * lib/lazyprops.[ch]: put a big fat warning in.
12018 * app/render_eps.c: one line mysteriously went away, causing a
12019 variable to be used uninitialised....
12021 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
12023 * app/app_procs.c: commented out the call to
12024 bind_textdomain_codeset(): it's premature.
12026 * lib/connpoint_line.c: a NULL point can be given to
12027 connpointline_adjust_count(), in case there's not really a clicked
12030 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
12031 #include order troubles. #included by lib/text.h, so there is no
12032 impact outside lib/.
12033 * lib/properties.[ch]: added support for CONNPOINT_LINE and
12034 (nonvisible) TEXT properties.
12036 * objects/GRAFCET/action.c:
12037 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
12040 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
12041 standard properties code). Grafted a dynamic number of connection
12042 points (heavily inspired from what Vergent does). This is the real
12045 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
12047 * lib/fonts.c: some hardening (mostly g_assert())
12048 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
12050 * app/app_procs.c (app_init): added a call to
12051 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
12052 (UNICODE_WORK_IN_PROGRESS).
12054 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
12056 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
12058 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
12059 (fixes #55863) : some clean-ups in the handling of connection
12060 points. Now the total number of connection points is just a
12061 #define (the proper solution is to retrofit the GRAFCET Vergent's
12062 dynamic behaviour wrt connection points).
12064 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
12066 * app/app_procs.c (app_init): added a call to unicode_init() (only
12067 if HAVE_UNICODE, of course).
12069 * lib/charconv.c: simplified the code which detects the local
12070 charset. No need to use <langinfo.h>, libunicode already takes the
12071 burden of figuring that out. Also, if local charset is utf8, no
12072 conversion will take place.
12073 Exposed a way to get the current charset (similar to
12074 unicode_get_charset() but actually working, hopefully).
12076 * lib/charconv.h: Added a partial non-UTF8 implementation of
12077 unicode.h if !HAVE_UNICODE (actually, all the time for the
12078 moment). The UTF8 implementation is just macros on libunicode (use
12079 the functions prefixed by uni_, as defined by charconv.h, not
12080 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
12081 From now on, all strings which don't *need* to be ASCII should be
12082 utfchar *, not gchar *. Just include charconv.h, let it sort out
12083 the details (such as: "is libunicode available and enabled?")
12085 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
12086 "API" instead of directly libunicode. Removed the now unnecessary
12087 speculative clustering of characters in encoding pages.
12089 * app/render_eps.c: made the local8->utf8 conversions dependent of
12090 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
12091 boundary will be when this WIP is done).
12093 * lib/dia_xml.c (data_point): fixed a format string typo.
12095 * po/POTFILES.in: added all C files from lib/
12097 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
12099 * app/disp_callbacks.c: make sure the objects' connected objects
12100 are updated when the objects' size changes after a keypress event
12103 * configure.in: added a big warning about the possible future
12104 non-optionality of --enable-unicode.
12106 * TODO: removed entries which look like done ; added a few ones
12107 (Bugzilla "enhancement" bugs may be a better way to keep track of
12110 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
12112 * objects/UML/message.c: got rid of #55564 and of message_copy()
12113 by using more standard properties (are the message_state_*()
12114 functions still necessary ?)
12116 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
12119 * objecs/custom/shape_info.c:
12120 * plug-ins/shape/shape-export.c:
12121 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
12122 use xmlChar instead of obsolete CHAR.
12124 2001-06-03 Hans Breuer <hans@breuer.org>
12126 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
12127 * app/commands.c : give the right number of parameters
12128 to diagram_update_menu_sensitivity ()
12130 * app/preferences.c : do proper initialization for DiaPrefsData:
12131 render_bounding_boxes. It would be a real surprise if 'hidden'
12132 properties would have ever worked before.
12133 Don't try to access the widgets of hidden property, it does not
12136 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
12137 it is defined in libdia, but initialized from dia app, which
12138 otherwise gave nice start-up crashes.
12140 * lib/diagramdata.c : initialize the color for rendering bounding
12141 boxes in the Dia range (0 .. 1.0)
12143 * lib/libdia.def : added *_bbox functions for export
12145 * lib/makefile.msc : added new sources
12147 * objects/custom/custom_object.c : use HAVE_UNISTD_H
12149 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
12152 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
12153 removes a translation of menus (in a place where there shouldn't
12154 have been), which gets rid of a waterfall of warnings if LANG!=C,
12155 and a fix to #55047.
12157 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
12159 * lib/charconv.c : added #include <errno.h>
12161 * app/dia_embedd.c : updated menus_get_item_from_path usage
12163 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
12165 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
12166 Added a special case for Symbol strings, so that they're not
12167 re-encoded using the LN encoding (we use the bare Adobe encoding
12170 * objects/custom/custom_object.c: Now that #52912 is fixed,
12171 I could remove the ugly hack I wrote to squash the shape bounding box
12172 problem shown by Ben A. Hetland a few months ago, and fix it
12173 properly this time.
12175 * lib/text.c: enlarged a little the bounding box to account for
12176 the cursor in rightmost position.
12178 * lib/diagramdata.c: draw bounding boxes only if the relevant
12179 variable is set (as before), but also only if the rendere is
12180 interactive (ie, don't bother rendering bounding boxes on
12182 Made the bounding box's line width a fixed value, 0.01
12184 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12185 and assymmetric control beziers. Implemented ellipse_bbox().
12187 * Makefile.am: incantations to get po/dia.pot build, as suggested
12188 by Hubert in #55075.
12190 * shapes/network/computer.shape: typo fixed.
12191 * shapes/network/antenna.shape: fixed #55074 (antenna is now
12192 properly translucent, except for its base where it makes sense. It
12193 doesn't look that ugly anymore if transparent mode is on).
12195 * configure.in: --enable-unicode is now the default. This
12196 still currently affects only printing.
12198 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12200 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
12201 The overshoot code is buggy, and the bounding boxes for polyshapes
12202 looks a bit cheezy. To be done ASAP.
12204 2001-05-26 James Henstridge <james@daa.com.au>
12206 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12207 This should clear up some of the build problems people have been
12210 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12212 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12215 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12216 box code (beginning with lines, polylines and polybeziers), into a
12217 more generic facility. While at it, a better shot at correctly
12218 computing the bounding box of a Bezieroid (should take care of
12219 #53424, #51233 and of course is part 1 of #52912).
12221 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12222 into a hidden preference (set render_bounding_boxes in diarc).
12223 * app/preferences.[ch]: Added support for hidden preferences.
12225 * lib/geometry.[ch]: sprinkled with "const" modifiers.
12227 * lib/bezier_conn.[ch]:
12228 * lib/beziershape.[ch]:
12229 * lib/connection.[ch]:
12230 * lib/element.[ch]:
12231 * lib/poly_conn.[ch]:
12232 * lib/orth_conn.[ch]:
12233 * lib/neworth_conn.[ch]:
12234 * lib/polyshape.[ch]: adapted to take advantage of
12235 boundingbox.[ch] instead of relying on private (duplicate) code.
12237 * object/FS/flow.c:
12238 * object/GRAFCET/action.c:
12239 * objects/GRAFCET/condition.c:
12240 * objects/GRAFCET/vergent.c:
12241 * objects/GRAFCET/vector.c:
12242 * objects/SADT/annotation.c:
12243 * objects/SADT/arrow.c:
12244 * objects/ER/participation.c:
12245 * objects/UML/constraint.c:
12246 * objects/UML/implements.c:
12247 * objects/UML/lifeline.c:
12248 * objects/UML/message.c:
12249 * objects/UML/realizes.c:
12250 * objects/UML/generalization.c:
12251 * objects/UML/association.c:
12252 * objects/UML/dependency.c:
12253 * objects/FS/flow-ortho.c:
12254 * objects/network/bus.c:
12255 * objects/standard/arc.c:
12256 * objects/standard/bezier.c:
12257 * objects/standard/beziergon.c:
12258 * objects/standard/line.c:
12259 * objects/standard/polygon.c:
12260 * objects/standard/zigzagline.c:
12262 * objects/standard/polyline.c: Some *BBExtras structures changed
12263 names while moving to boundingbox.[ch]. A trivial mass-renaming.
12265 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
12267 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12268 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12270 * app/display.c (ddisplay_update_scrollbars): from Patrick's
12271 suggestion, remove the extra scrollable area (it was only visible
12272 to the scrollbars). This is experimental.
12274 * objects/custom/custom_object.c: If a shape's icon file doesn't
12275 exist, warn and substitute a default icon, instead of crashing.
12278 * objects/network/network.c:
12279 * shapes/network/modularswitch.(shape|xpm) (NEW):
12280 * shapes/network/printer.(shape|xpm) (NEW):
12281 * shapes/network/genmonitor.(shape|xpm) (NEW):
12282 * shapes/network/computer.(shape|xpm) (NEW):
12283 * shapes/network/Makefile.am: four less objects, four more shapes.
12284 These were the last known RenderObjects. (phew !)
12288 * objects/sybase/Makefile.am:
12289 * objects/network/Makefile.am: Removed the older Renderobjects
12290 from the build, and their infrastructure (not yet deleted,
12293 * shapes/network/sceadplug.shape:
12294 * shapes/network/antenna.shape:
12295 * shapes/network/modem.shape:
12296 * shapes/network/hub.shape:
12297 * shapes/network/rj45plug.shape:
12298 * shapes/sybase/client.shape:
12299 * shapes/sybase/dataserver.shape:
12300 * shapes/sybase/ltm.shape:
12301 * shapes/sybase/repserver.shape:
12302 * shapes/sybase/rsm.shape:
12303 * shapes/sybase/stableq.shape: Minor corrections (line widths were
12304 ten times too narrow).
12306 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
12308 * objects/network/network.c:
12309 * shapes/network/sceadplug.(shape|xpm) (NEW):
12310 * shapes/network/antenna.(shape|xpm) (NEW):
12311 * shapes/network/modem.(shape|xpm) (NEW):
12312 * shapes/network/Makefile.am: four less objects, four more shapes.
12315 * lib/diagramdata.c:
12317 * lib/string_prerenderer.[ch] (NEW):
12318 Add a new renderer primitive, predraw_string() (does nothing, to be
12319 used as a hook to optimise the character encodings if needed).
12320 Added a string pre-renderer, which can be viewed as a filter
12321 renderer (to route draw_string() to predraw_string() and ignore
12322 the rest, in a first rendering pass)
12324 * app/render_eps.c: Took advantage of the above to make wholly
12325 optimised Postscript encoding page(s), even (especially) with
12326 non-latin1 code (HAVE_UNICODE must be true).
12328 (#53512 in fact is wholly resolved).
12330 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
12332 * lib/charconv.c: steps towards resolution of #53512 (inspired by
12333 Alexey Novodvorsky <aen@logic.ru>'s patch).
12335 * app/menus.c (dia_menu_signal_proxy): checked that the signal
12336 handler is not NULL before transferring control to it... (fixes #52836)
12338 * app/app_procs.c (app_init): removed non-constant initialiser
12341 * objects/custom/custom_object.c:
12342 * objects/custom/shape_info.[ch]:
12343 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
12344 <skh@mathstar.com>. This add support for a <svg:text> shape
12345 element, and some related style properties (font, font height,
12348 * doc/custom_shapes: a precision about the meaning of case in a
12349 SVG path (closes #52364)
12351 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
12352 fixed by <drk@sgi.com>)
12354 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
12356 * objects/network/network.c:
12357 * shapes/network/Makefile.am:
12358 * shapes/network/hub.(shape|xpm) (NEW):
12359 * shapes/network/flash.(shape|xpm) (NEW):
12360 * shapes/network/rj45plug.(shape|xpm) (NEW):
12361 More shapes, less renderobjects.
12363 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
12365 * plug-ins/svg/render_svg.c: typo made exported ellipses
12366 corrupted (zero Y pseudo-radius).
12368 * objects/network/network.c:
12369 * objects/network/disc.c:
12370 * shapes/network/disc.(shape|xpm): Converted the first
12371 Renderobject into a shape. Normally, old diagrams should reload
12372 without problems (please check this against your diagrams). More
12373 flexibility should be gained that way. I intend to hunt and
12374 eradicate all renderobjects as I can commit cycles to that.
12376 * objects/Makefile.am:
12379 * objects/sybase/sybase.c:
12380 * shapes/sybase/Makefile.am(NEW):
12381 * shapes/sybase/client.(xpm|shape) (NEW):
12382 * shapes/sybase/dataserver.(xpm|shape) (NEW):
12383 * shapes/sybase/ltm.(xpm|shape) (NEW):
12384 * shapes/sybase/repserver.(xpm|shape) (NEW):
12385 * shapes/sybase/rsm.(xpm|shape) (NEW):
12386 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
12387 renderobjects into shapes. The Sybase objects are now not compiled
12388 anymore, and ready to be nuked if nobody objects in the next few weeks.
12391 * app/diagram.[ch]:
12392 * app/disp_callbacks.c:
12393 * app/display.[ch]:
12394 * app/interface.[ch]:
12396 * app/modify_tool.c:
12397 * app/preferences.[ch]:
12398 * app/recent_files.c:
12399 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
12400 a menu bar reflecting the popup menu, to each display window. This
12401 is optional (changing the preference currently doesn't affect
12402 already opened windows; a few other rough edges to cut).
12404 * plug-ins/wpg/wpg.c:
12405 * plug-ins/xfig/xfig-import.c:
12406 * plug-ins/python/pydia-property.c:
12407 * plug-ins/python/pydia-properties.c:
12408 * plug-ins/python/pydia-geometry.c:
12409 * plug-ins/pstricks/render_pstricks.c:
12411 * objects/EML/dbox.c:
12412 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
12415 * lib/ps-utf8.c: improved the clustering of alphabetic character
12416 definitions in custom encodings pages.
12418 2001-05-02 Hans Breuer <hans@breuer.org>
12420 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
12421 of 'obj_bb' to PROP_TYPE_RECT
12423 * objects/custom/custom_object.c : take all quarks into account,
12424 not only 4 as copy&paste suggests
12426 * objects/uml/objects.c : completed the implementation of the
12427 property api to avoid reading of totally bogus data. Removed
12428 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
12429 there was too much but too less ...
12431 The above changes removed all known crashes (mentioned below)
12432 from the Property API. Property access is still incomplete though.
12434 * objects/flowchart/box.c :
12435 * objects/flowchart/diamond.c :
12436 * objects/flowchart/ellipse.c :
12437 * objects/flowchart/parallelogram.c :
12438 * objects/uml/classicon.c :
12439 * objects/uml/state.c : calculate number of quarks from quark array
12440 size instead of using hardcoded values for consistence and to avoid
12441 future bugs like the above
12443 * objects/eml/nlist.c : include <string.h> for strcmp()
12445 * lib/dia_xml.c : relax g_warning for values, which
12446 appear to be too small. There is nothing which prevents
12449 * plug-ins/python/pydia-geometry.c : changed stringifying of
12450 geometry objects accept BezPoint back to %f, which does not
12451 crash anymore, because all the data is intialized now and it
12452 simply is more readable than %e ...
12454 * plug-ins/python/python-startup.py : removed dependency
12455 to PyGtk, because it isn't required here and probably won't
12456 in i.e.: export filters.
12458 * plug-ins/python/gtkcons.py : create the gtkoutfile even
12459 if sys.stderr.fileno() isn't supported
12461 * app/makefile.msc : make version 0.88
12462 * plug-ins/makefile.msc : make version 0.88 an added new
12463 xfig files to build
12465 2001-05-11 James Henstridge <james@daa.com.au>
12467 * NEWS: remember to add news items this time.
12469 * dia.spec: update spec file for 0.88 release.
12471 * configure.in: up version number to 0.88
12473 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
12474 preventing any of the useful python scripts from being
12477 * sheets/Makefile.am (sheet-translation-report): fix bustage I
12478 introduced in my fixups for the 0.87 release :(
12480 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
12482 * plug-ins/xfig/xfig-import.c: Finally got groups working.
12484 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
12486 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
12487 group manipulation.
12489 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
12491 * lib/ps-utf8.[ch]:
12492 * lib/Makefile.am: fix makefile breakage which led to not
12493 including ps-utf8.[ch] in the released tarballs.
12495 2001-05-09 James Henstridge <james@daa.com.au>
12497 * Makefile.am (core-translation-report): dist scripts needed for
12498 this target, and change to $(srcdir) before running.
12500 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
12501 files aren't automatically included in the tarball by automake
12502 because they could be generated files.
12504 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
12506 * doc/en/Makefile.am (install-data-hook): fix up where graphics
12509 * configure.in: up version number to 0.87
12511 * plug-ins/python/*.py: no longer necessary to explicitly set
12512 sys.argv, as python.c does it for us now (like it should).
12514 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
12517 * plug-ins/python/python-startup.py: startup script that imports
12518 all modules in $(datadir)/dia/python and ~/.dia/python.
12520 * plug-ins/python/python.c (dia_plugin_init): change so that it
12521 only runs the $(datadir)/dia/python-startup.py script. Make sure
12522 that sys.argv and __main__.__file__ are set when calling the
12525 * plug-ins/python/Makefile.am: update makefile. Make it install
12526 gtkcons.py plugin. I haven't set any other plugins to install, as
12527 they look like they are mainly for debugging purposes.
12529 * configure.in: add tests to detect if python is available, so we
12530 can build the python plugin. Only run if --with-python passed to
12533 2001-05-08 James Henstridge <james@daa.com.au>
12535 * acinclude.m4: add macros for detecting python.
12537 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
12538 at GNOME_APP_UI_SUBTREE entries.
12539 (menus_add_path): function to add a menu item to the menubars.
12540 Uses a hash table to keep track of extra menu items it adds. Also
12541 notifies the item factory about the entries so that accels can be
12543 (menus_add_path): implement gtk only version.
12544 (menus_init): use menus_add_path() to add the menu.
12545 (plugin_callback): simplify.
12547 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
12549 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
12551 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
12553 * plug-ins/xfig/xfig-export.c:
12554 * plug-ins/xfig/xfig-common.c:
12555 * plug-ins/xfig/xfig-import.c:
12556 * plug-ins/xfig/xfig.c:
12557 * plug-ins/xfig/xfig.h:
12558 * app/Makefile.am: Added support for exporting to Fig format
12559 (except splits, which are less powerful in Fig). Some refactoring
12562 2001-05-02 Hans Breuer <hans@breuer.org>
12564 * plug-ins/python/debug_objects.py : added another
12565 test to get massive crashes from the Property API due
12566 to unintialized data.
12568 * app/menu.c : the callback_action wasn't incremented
12569 (should have checked my last optimization). Now more
12570 than one plug-in callback is supported again.
12572 * plug-ins/python/pydia-geometry.c : avoid crashes from
12573 glib, when trying to g_strdup_printf unintialized floats.
12575 * plug-ins/python/pydia-property.c : avoid crashes from
12576 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
12578 2001-05-01 Hans Breuer <hans@breuer.org>
12580 * objects/makefile.msc : added eml
12581 * objects/eml/instantiation.c : initialize 'inst' pointer
12582 before using, zero initialization for objects
12583 * objects/eml/interaction-ortho.c :
12584 * objects/eml/interaction.c : zero initialization for objects
12586 * app/menus.c : removed Gimp mru stuff which slipped in at
12587 2000-08-15, was never activated and will never be needed,
12588 because of Steffens recent file list patch added at 2001-01-05.
12590 * objects/eml/*.c : some more zero initialization of objects
12591 to avoid infinite (uninitialized) bounding boxes
12593 Implemented a callback api which allows plug-ins to register
12594 menu call backs. Dia for Gnome should compile, but will need
12595 some extra tweaking to make it work because I can't test it.
12597 * plug-ins/python/pydia-error.h :
12598 * plug-ins/python/pydia-render.c : moved Pxthon function return
12599 value handling from pydia-render.c to pydia-error.h, to make it
12601 * plug-ins/python/diamodule.c : implement callback function
12602 registration from and relaying to Python code
12604 * app/menus.c : register and use plug-in menu callbacks
12606 * lib/filter.[hc] : implement filter_register_callback() and
12607 filter_get_callbacks() for the above
12608 * lib/libdia.def : export them
12610 * plug-ins/python/debug_objects.py (new file):
12611 sample using the above
12613 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
12615 * plug-ins/shape/shape-export.c (new_shape_renderer):
12616 The name of a shape is now taken from the dir, to conform with
12619 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
12621 * app/properties.c (properties_show): Added title containing
12622 object type, plus (hopefully) fix of the ghost properties dialog.
12624 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
12626 * app/display.c: remove the display idle handler in case we
12627 destroy the ddisplay (caused crashes in ddd, probably random
12628 crashes elsewhere).
12632 * Makefile.am: hack around gettext-0.10.36's new "features".
12634 * lib/properties.[ch]: added new function object_copy_props().
12635 Added new property type PROP_TYPE_ENDPOINTS
12637 * lib/connection.h: added support for load/saving through the
12638 properties interface.
12640 * lib/object.[ch]: object_load/save/copy_using_properties()
12641 support functions (code factorisations).
12643 * objects/GRAFCET/boolequation.c: check against null values in
12644 boolequation_set_value() and boolequation_destroy().
12646 * objects/GRAFCET/transition.c: Converted from lazyprops to
12647 standard properties. 31% less (x86) code !
12649 * objects/GRAFCET/condition.c: also converted from lazyprops to
12650 standard properties. Also killed lots of code.
12652 2001-04-13 Hans Breuer <hans@breuer.org>
12654 * plug-ins/wmf/wmf.cpp : changed text conversion from
12655 g_utf8_utf16 to g_convert usage. The latter function is already
12656 available in tml's last "official" Gtk+ version (2000-12-26).
12657 This change allows to use recent Dia with either the official
12658 version or the latest cvs "gtk-1-3-win32-production"-branch.
12660 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
12662 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
12663 * app/disp_callbacks.c:
12664 - Allow submenus in DiaMenus.
12665 - Don't require DiaMenu.title to be non-null (so that
12666 submenus aren't required to have titles)
12668 * objects/FS/function.c:
12669 - object menu now has submenus, an almost complete list of
12670 standard-basis verbs, and a start on nouns.
12671 - box padding, dash length, and other visual attributes are
12672 scaled by the font size... eventually font height will be
12673 a function property.
12674 - draw functions with smaller font to make initial view hold
12675 a reasonable number of functions.
12677 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
12680 * sheets/chronogram.sheet:
12681 * sheets/jigsaw.sheet:
12682 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
12683 Wieers <dag@wieers.com>
12685 2001-04-13 Hans Breuer <hans@breuer.org>
12687 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
12688 to ensure that all the deinitialization is only done once. Fixes
12689 recent app exit crash on win32
12691 * lib/dia_xml.c : provide isinf() replacement for msc which does only
12694 * lib/libdia.def : updated
12696 * objects/makefile.msc : added wanlink.c
12698 * objects/network/wanlink.c : added M_PI_2 definition for poor
12699 platforms which don't have one
12701 * objects/standard/arc.c :
12702 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
12703 initialized which led to rather huge bounding boxes (try Ctrl^A on
12704 diagrams with Arcs or ZigZagLines).
12705 * objects/*/*.c : to avoid further bugs like the above changed all
12706 object initializations to g_malloc0 or g_new0
12709 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
12711 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
12712 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
12714 * objects/UML/class.c:
12715 * objects/UML/usecase.c:
12716 * objects/UML/large_package.c:
12717 * objects/UML/message.c:
12718 * objects/UML/object.c:
12719 * objects/UML/lifeline.c:
12720 * objects/FS/flow.c:
12721 * objects/FS/flow-ortho.c:
12722 * objects/FS/function.c:
12723 * objects/custom/custom_object.c:
12724 * objects/GRAFCET/vergent.c:
12725 * objects/chronogram/chronoref.c:
12726 * objects/SADT/box.c:
12727 * objects/SADT/annotation.c:
12728 * plug-ins/dxf/dxf-import.c:
12729 * plug-ins/xfig/xfig-import.c:
12730 * plug-ins/wpg/wpg.c:
12733 * app/display.c: /* certainly more WIP than dead code there */
12734 Unused variables, unused static function definitions, forgotten or
12735 incomplete prototypes added or fixed, lack of const or unwanted const,
12736 etc. (mostly clean-ups of leftovers of the pre-properties era).
12737 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
12738 please check these.
12740 * app/lineprops_area.c: More of the same. Missing prototypes
12741 added, and functions unused outside made static.
12743 * app/recent_files.c:
12744 * app/properties.c:
12745 * app/defaults.c: some variables are used only when doing a GNOME
12748 * app/magnify.c: missing #include <stdlib.h>.
12750 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
12752 These are a lot of clean-ups (by the way, this compiles and runs
12753 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
12754 for DEAD_CODE, and if it's yours, judge it.
12756 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
12758 * plug-ins/dxf-import.c: some progress with the arcs; still some
12759 clean-ups to do and line width scaling issues to figure out.
12761 * objects/standard/arc.c: start_point and end_point properties
12762 (duplicated from standard/line.c)
12764 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
12767 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
12769 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
12770 preliminary support for arcs (doesn't work). Circles and ellipses are
12771 now transparent. Coordinate and width scaling are now a common
12772 static constant (probably before morphing into a preference).
12774 * sheet/checktrans.py: improved error reporting. Made checktrans
12775 count lack of <name xml:lang="code"> as a lack of translation for
12776 language "code" (no, it's not a plot to bring down other
12777 language's scores !)
12779 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
12780 in the header, and have <name xml:lang="fr"> components.
12782 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
12784 * objects/custom/custom_object.c: temporary hack to fix the shape
12785 bounding box reported by Ben A. Hetland. Proper fix isn't .87
12786 material, see bugzilla #52912.
12788 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
12790 * objects/standard/image.c (get_directory): Now uses
12791 G_SEPARATOR_CHAR_S instead of "/"
12793 * sheets/network.sheet:
12794 * sheets/Logic.sheet:
12795 * sheets/Flowchart.sheet:
12796 * sheets/Electric.sheet:
12797 * sheets/Circuit.sheet:
12799 * sheets/Pneumatic.sheet:
12800 * sheets/SDL.sheet:
12801 * sheets/UML.sheet:
12802 * sheets/GRAFCET.sheet:
12803 * sheets/MSE.sheet:
12804 * sheets/chronogram.sheet:
12805 * sheets/civil.sheet:
12806 * sheets/network.sheet:
12807 Danish translations.
12809 * objects/standard/image.c (get_directory): Changed get_directory
12810 to use g_dirname to find the directory part.
12812 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
12815 * sheets/Electric.sheet:
12816 * sheets/Flowchart.sheet:
12817 * sheets/Logic.sheet:
12818 * sheets/network.sheet: More Dutch translations from Dag Wieers.
12820 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12822 * sheets/checktrans.py: now emits a warning when two descriptions
12823 for a single language code are found.
12826 * sheets/Makefile.am: -translation-reports now also depend on their
12829 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12831 * sheets/Circuit.sheet:
12832 * sheets/Contact.sheet:
12833 * sheets/Logic.sheet:
12834 * sheets/chronogram.sheet:
12835 * sheets/sybase.sheet:
12836 Dutch translations from Dag Wieers <dag@wieers.com>
12838 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12840 * po-checktrans.py: Now shows the detailed counts alongside the
12841 percentage of translations.
12843 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
12846 * po-checktrans (NEW):
12847 * po-checktrans.py (NEW): builds core-translation-report:
12848 percentages of core (gettext) translations done [Not placed into
12849 po/ where that should belong, because of integration fear^Wissues
12852 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
12853 sheets/sheet-translation-report probably ought to be copied on the
12854 user's /usr/share/doc/dia (or equivalent) directory.
12856 * sheets/Makefile.am: sheet-translation-report now a simple
12857 EXTRA_DIST; make install won't install it by default.
12859 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
12861 * app/preferences.c: changed the default grid colour to something
12864 * shapes/SDL/*.shape:
12865 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
12866 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
12867 DIA FILES (well, for files using SDL), see the mailing list
12868 archive "SDL (ab)using the global shape namespace" for a script to
12869 do this conversion.
12871 * sheets/SDL.sheet: translated into French
12872 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
12874 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
12876 * lib/dia_xml.c: made data_point() more paranoid
12878 * sheets/Makefile.am:
12879 * sheets/checktrans (NEW):
12880 * sheets/checktrans.py: Made checktrans handle more gracefully the
12881 absence of python and python-xml packages, and made the error
12882 message more helpful.
12884 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
12886 * lib/render_object.c (new_render_object): Made initial handles
12887 behave like on most other objects.
12889 * app/load_save.c (read_objects): Fixed premature free'ing ofr
12890 typestr causing garbage.
12892 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
12894 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
12895 accouting for handle ordering through copy and save. (#51479)
12897 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
12899 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
12901 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
12903 * sheets/Circuit.sheet
12905 * sheets/network.sheet: Updated German translations
12907 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12910 * app/lineprops_area.c: The return of the revenge of the arrow
12911 heads. Now all types covered by ISO 10303-201 should be covered.
12913 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12915 * sheets/Flowchart.sheet: translations in probably Hungarian were
12916 a victim of cut-n-paste from the German one. Fixed (hopefully).
12917 * sheet/UML.sheet: translation in probably Norwegian was a victim
12918 of cut-n-paste from the French one. Fixed (hopefully).
12919 * sheets/Logic.sheet: French translation not tagged with
12922 * sheets/checktrans.py:
12923 * sheets/Makefile.am: new file, sheet-translation-report, to be
12924 installed along the sheets, show how much of them has been
12925 translated into which language (I wish the result was prettier...)
12927 * po/README: most translators don't read this file, but anyway...
12929 * sheets/.cvsignore:
12930 * objects/network/.cvsignore: the usual negotiation with CVS.
12932 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12934 * sheets/*.sheet: French translations
12936 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
12938 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
12940 ** objects/network/network.c:
12941 ** objects/network/wanlink.c:
12942 ** objects/network/pixmaps/wanlink.c:
12943 ** sheets/network.sheet:
12944 ** objects/network/Makefile.am: a better object to use instead of
12945 the older WAN Connection.
12947 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
12949 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
12952 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
12953 Arc; kept the C file name (because CVS wouldn't like it), and
12954 still registering the older object name (but advertising the newer
12955 one in sheets/GRAFCET.sheet).
12957 2001-03-24 Hans Breuer <hans@breuer.org>
12959 * app/dia.def : some plug-ins (currently only python, xfig) are using
12960 functions from the dia executable. To get them working these functions
12961 need to be explicit exported on win32. IMO the much cleaner way would
12962 be to move these functions to libdia, but that would require some
12963 long term restructuring ...
12965 * lib/libdia.def : updated
12967 * plug-ins/makefile.msc : build xfig plug-in
12969 2001-03-24 Hans Breuer <hans@breuer.org>
12971 * app/diagram.c : g_strdup (dia->filename) because it will be
12974 * app/display.c : set ddisp->renderer to NULL after destruction.
12975 This may solve or help to identify erroneous access to it after
12978 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
12979 get 'umlauts' working
12981 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
12983 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
12984 were reversed... (look for the patch, and drink a beer to my
12987 2001-03-23 Hans Breuer <hans@breuer.org>
12989 * app/app_procs.c : don't g_error () if the config directory
12990 can't be created (at least not on windoze) because it's quite
12991 common that the user don't read or understand the FAQ ...
12993 * app/cursor.c : use ddisplay_active () instead of active_display
12996 * app/display.[hc] : made active_display var static and provide
12997 an accessor funtion ddisplay_active_diagram ()
12999 * app/dia-props.c : don't store the active_diagram, but ask
13000 for it everytime it needed.
13002 * lib/properties.h : #include "intl.h"
13004 * lib/makefile.msc : need to take care of inclusion order to
13005 avoid clashes with gtk+2.0's gdk-pixbuf
13007 * objects/makefile.msc : added uml/stereotype.c to build
13009 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
13011 * **/*.c: Added config.h to the remaining .c files, and changed
13012 all to be <config.h>.
13014 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
13019 * app/lineprops_area.c: added new arrow types with double
13022 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
13024 * shapes/Civil/civil_gas_bottle.xpm
13025 * shapes/Civil/civil_gas_bottle.shape
13026 * sheets/civil.sheet
13027 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
13030 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
13032 * objects/custom/shape_info.c (load_shape_info):
13033 * objects/custom/shape_info.h:
13034 * objects/custom/custom_object.c (custom_update_data):
13035 Better support for text outside the box -- new attributes 'resize'
13036 and 'align' for text entity. Align not fully supported yet.
13038 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
13040 2001-03-20 James Henstridge <james@daa.com.au>
13042 * app/interface.c (display_data_received_callback): comment out
13045 2001-03-19 James Henstridge <james@daa.com.au>
13047 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
13049 * objects/UML/realizes.c: similar here.
13051 * objects/UML/implements.c: similar here.
13053 * objects/UML/component.c: similar here.
13055 * objects/UML/generalization.c: same here.
13057 * objects/UML/dependency.c: allow NULL for ->name and
13058 ->stereotype. This fixes a number of problems in loading saved
13061 * lib/properties.c: various changes so that NULL string properties
13064 * objects/standard/line.c (line_update_data):
13065 line->extra.start_long and line->extra.end_long were not being
13066 initialised. This fixes potential problems with the bounding box
13067 of "Standard - Line" objects.
13069 2001-03-19 Hans Breuer <hans@breuer.org>
13071 * app/commands.c : added win32 specific code to display a html
13072 file. #include "text.h" for text_delete_all prototype.
13075 * app/dia.rc : (new) to give Dia win32 an icon
13077 * app/win32print.[ch] : new files to support direct postscript
13078 file printing on win32. Beware: it *requires* a ps-printer!
13080 * app/paginate_psprint.c : disable the signal code for win32 build
13081 and added small specific changes to support win32print.
13083 * app/makefile.msc : added win32print and linking shell32.lib
13085 * lib/libdia.def : updated
13087 2001-03-18 Kevin Breit <battery841@mediaone.net>
13089 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
13092 2001-03-17 James Henstridge <james@daa.com.au>
13094 * app/paginate_psprint.c (diagram_print_ps): add code that traps
13095 SIGPIPEs during printing. This gets rid of a number of crashes
13096 caused by printing (eg. typing an incorrect print command).
13098 * dia.spec (%install): gzip the manpage.
13100 * lib/beziershape.c (beziershape_save): fix off by one error in
13101 beziershape save code, which was adding an extra segment to the
13104 * app/menus.c: add a separator in the gnome version of the help
13107 * app/app_procs.c (app_init): add a --nosplash argument which
13108 disables the splash screen.
13110 * app/dia_embedd.c (main): don't leave the splash screen open for
13111 embeddable component.
13113 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
13114 didn't seem to be showing the splash screen like expected, so I
13115 have replaced it with some code that calls gtk_main() until the
13116 first exposure of the window.
13118 2001-03-16 James Henstridge <james@daa.com.au>
13120 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
13122 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
13125 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
13127 * app/Makefile.am (dia_core_files): remove splash.h from file
13128 list, as it doesn't exist.
13130 * doc/en/Makefile.am (uninstall-local): remove the docdir on
13133 * doc/Makefile.am (uninstall-local): target to remove the C
13136 * dia.spec (%files): include the documentation in the package.
13138 * app/menus.c (toolbox_menu_items): add menu item for manual,
13139 which calls help_manual_callback.
13141 * app/commands.c (help_manual_callback): find help file and load
13142 netscape to view it.
13144 * app/commands.h: add prototype for help_manual_callback()
13146 * doc/Makefile.am (helpdir): similar here.
13148 * doc/en/Makefile.am (helpdir): make the helpdir
13149 $(pkgdatadir)/help/en in the non gnome case.
13151 * configure.in (HAVE_GNOME): add conditional.
13153 * doc/en/Makefile.am: handle the graphics in a more general way,
13154 so it is easier for Kevin to add them to the build (just add them
13155 to the GRAPHICS var).
13157 * app/Makefile.am (embed_extra_print_files): make the case of
13158 building without gnome-print support but with bonobo support work.
13159 dia-embedd needs to be include the gnome-print
13161 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
13163 * samples/Makefile.am: included all samples in the distribution....
13165 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
13167 * configure.in: removed premature test for DPS. Added -*- m4 -*-
13168 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
13169 vanished, removed it from ALL_LINGUAS.
13171 * lib/charconv.[ch] (NEW): a very small wrapper around
13172 unicode_iconv to convert strings between utf8 and local charset
13173 (actually, ISO-8859-1, though one can do
13174 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
13176 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
13177 library to help build Postscript streams which use as many custom
13178 font encodings as necessary to correctly represent all characters
13179 used (testing from users with non-latin1 and/or more than 256
13180 characters in routine use *very* welcome).
13182 * app/Makefile.am, lib/Makefile.am: integrated these into the
13185 * shapes/Logic/.cvsignore (NEW): .cvsignore
13187 * app/render_eps.h: forwarded some changes Lars forgot to include.
13188 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13191 2001-03-08 Kevin Breit <battery841@mediaone.net>
13193 * doc/en/home_network.png: Added file.
13194 * doc/en/line_props.png: Added file.
13195 * doc/en/usage-objects.sgml: Added two graphics to file.
13196 * doc/en/usage-quickstart.sgml: Added one graphic to file.
13198 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
13200 * app/grid.h: Place comment around text after #endif.
13201 * lib/bezier_conn.c: #include <string.h>.
13202 * lib/beziershape.c: #include <string.h>.
13203 * lib/connpoint_line.h: Comment after #endif.
13204 * lib/dia_dirs.c: #include <string.h>.
13205 * lib/element.c: Same.
13206 * lib/lazyprops.c: #include <config.h> and "intl.h".
13207 * lib/lazyprops.h: Comment out text after #endif.
13208 * lib/neworth_conn.c: #include <string.h>
13209 * lib/orth_conn.c: Same here.
13210 * lib/poly_conn.c: Here too.
13211 * lib/polyshape.c: And here.
13212 * lib/properties.c: Remove #include "intl.h" from here and add
13213 an array of static strings to work around bug in gettext that
13214 makes it miss strings in a #define body.
13215 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13216 * objects/GRAFCET/boolequation.h: Same here.
13217 * objects/chronogram/chronoline_event.h: Add prototype for
13220 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13222 * objects/FS/function.c:
13223 * objects/FS/flow.c:
13224 * objects/FS/flow-ortho.c:
13225 Updated to use properties.
13227 2001-03-03 James Henstridge <james@daa.com.au>
13229 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13230 button labels when creating them.
13232 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13234 * objects/UML/actor.c
13235 * objects/UML/realizes.c
13236 * objects/UML/implements.c
13237 * objects/UML/generalization.c
13238 * objects/UML/dependency.c
13239 * objects/UML/constraint.c
13240 Updated to use properties.
13242 * objects/UML/stereotype.c
13243 * objects/UML/stereotype.h
13244 Generalized to any kind of bracketting.
13246 2001-02-28 James Henstridge <james@daa.com.au>
13248 * app/menus.c: add help entry to the help menu. Need to get this
13249 working for the non GNOME case as well (maybe put help under
13250 $(datadir)/dia/help for non GNOME?)
13252 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13254 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13255 this element so that we get a meaningful filename in the html
13258 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13261 * configure.in (DB2HTML): add a check for the db2html program, and
13262 set an automake conditional if it is found.
13264 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13265 and descend into doc/ directory while building.
13267 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13268 we need more complex rules for building the docs.
13270 2001-02-25 Hans Breuer <hans@breuer.org>
13272 * config.h.win32 : some cleanup
13274 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13275 are deprecated since glib-1.3.2. Sorry needing to use them
13276 contionally, but there is no glib-1.2 for win32
13278 * app/recent_files.c : use g_strescape (params) conditionally
13280 * lib/connection.c : include string.h for memcpy
13282 * lib/geometry.h : added some stuff for compatibility with
13283 msvc, which previously came from included config.h
13285 * lib/libdia.def : updated
13287 * objects/makefile.msc : updated
13289 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
13290 'extra' used without having been initialized
13292 * objects/network/bus.c(658) : initialize 'extra'
13294 * plug-ins/makefile.msc : updated
13296 * plug-ins/cgm/cgm.c :
13297 * plug-ins/pstricks/render_pstricks.c :
13298 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
13301 * plug-ins/python/python.c : use HAVE_DIRENT_H
13303 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13305 * lib/connection.c (connection_update_boundingbox):
13306 Made the BB shrink on right and lower sides, too.
13308 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
13310 * */*.c: #incude <config.h> at the top.
13311 * */*.h: Remove include of "config.h" since it should only
13312 be included in .c files and at the very top for things to
13314 * sheets/*.sheet: Updated Norwegian translations.
13316 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13318 * objects/UML/small_package.c:
13319 * objects/UML/class.c:
13320 * objects/UML/node.c:
13321 * objects/UML/usecase.c:
13322 * objects/UML/lifeline.c:
13323 * objects/UML/message.c:
13324 Various cleanup of properties in particular. Now much more use of
13325 standard properties.
13327 * lib/diagramdata.c (layer_render): Visualization of bounding
13328 boxes, for debugging purpoises.
13330 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
13333 * lib/connection.[ch]:
13334 * lib/poly_conn.[ch]:
13335 * lib/polyshape.[ch]:
13336 * lib/bezier_conn.[ch]:
13337 * lib/beziershape.[ch]:
13338 * lib/orth_conn.[ch]:
13339 * lib/neworth_conn.[ch]:
13340 * lib/element.[ch]: Changed a bit the _update_boundingbox()
13341 interface. Now the parent elements have an extra_spacing
13342 structure, which child objects just need to fill, to take care of
13343 most arrow & line width extra space needs.
13345 * objects/**/*.c: updated all objects to the new interface.
13346 While at it, killed all instances of (Object *) downcasts (phew !)
13348 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
13349 doesn't speak about.
13351 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13353 * sheets/Logic.sheet: New sheet for Logic symbols.
13355 2001-02-21 James Henstridge <james@daa.com.au>
13357 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
13358 widget by its path name. Walks the GnomeUIInfo heirachy rather
13359 than widget tree, compares untranslated label names and ignores
13360 underscores in the labels.
13361 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
13362 lookups are not dependent on the current locale, as with
13363 gnome_app_find_menu_pos.
13365 * acconfig.h: guard against multiple inclusion of config.h.
13367 * app/select.c (select_style_callback): simply set the selection
13368 style to the value of action.
13370 * app/menus.c (menus_init): simplify the item factory based menu
13371 code a bit. It looks like it was using some code cut and pasted
13372 from the gimp, which looked a bit unnecessary. Things work fine
13374 (selectmenu): set the action to the type of selection mode
13376 (display_menu_items): use the symbolic enumeration values for the
13379 * app/plugin-manager.c:
13380 * app/plugin-manager.h:
13384 * app/select.h: change prototypes.
13386 * app/commands.c: update all callback prototypes, and get rid of
13387 some #ifdef GNOME's.
13389 * app/commands.h: change function prototypes.
13391 * app/dia_embedd.c (save_fn):
13392 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
13394 * app/menus.c (menus_init): for gnome menus, use
13395 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
13396 structure that proxies the callbacks to have the same signature as
13397 GtkItemFactory type 1 callbacks.
13398 (menus_init): for GTK menus, change from callback type 2 to type
13400 (display_menu_items): add back tearoffs. I don't know who removed
13401 these for the gtk menu case.
13403 2001-02-20 Kevin Breit <battery841@mediaone.net>
13405 * doc/en/usage-objects-special.sgml: Fixed a few of the special
13406 object descriptions. More to come in the next few days.
13408 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
13410 * app/render_eps.c: Fixed for internationalized floating point
13413 * objects/UML/note.c: Fixed properties -- was missing
13414 Get/ApplyPropertiesFunc. Also improved update to recalculate text
13417 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
13419 * plug-ins/xfig/xfig-import.c:
13420 File added importing xfig files. Still very rough, but good
13421 enough to let others hack on it.
13423 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
13426 * app/linewidth_area.c:
13428 * lib/properties.c:
13430 * objects/ER/attribute.c:
13431 * objects/ER/entity.c:
13432 * objects/ER/relationship.c:
13433 * objects/custom/custom_object.c:
13434 * objects/flowchart/box.c:
13435 * objects/flowchart/diamond.c:
13436 * objects/flowchart/ellipse.c:
13437 * objects/flowchart/parallelogram.c:
13438 * objects/standard/box.c:
13439 * objects/standard/textobj.c: per Vlad Harchev's request, made
13440 page sizes of gtk_adjustments different than their step sizes.
13441 When sensible values of page size weren't found (overwhelming
13442 majority of cases), page sizes were set to 10.0 * respective step
13445 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
13447 * objects/network/hub.c:
13448 Patch from Hubert Figuiere applied, adding connection points.
13450 2001-02-02 James Henstridge <james@daa.com.au>
13452 * app/display.c (new_display): set update id to 0 here.
13453 (ddisplay_update_handler): rename from ddisplay_flush, and set
13454 update_id to 0 at end of processing.
13455 (ddisplay_flush): new implementation that simply sets an idle
13456 handler to perform the actual drawing.
13458 * app/display.h: add structure member to hold the redraw idle
13461 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
13463 * objects/standard/ellipse.c (ellipse_copy):
13464 * objects/standard/zigzagline.c (zigzagline_copy):
13465 Fix of copying provided by Martin Hawlisch.
13467 2001-01-23 Kevin Breit <battery841@mediaone.net>
13469 * doc/en/graphics/: added directory
13471 * doc/en/graphics/greendots.png: added file
13473 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
13476 2001-01-23 Kevin Breit <battery841@mediaone.net>
13478 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
13479 thanks to John Fleck!
13481 2001-01-21 Kevin Breit <battery841@mediaone.net>
13483 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
13485 2001-01-12 Michael Meeks <michael@helixcode.com>
13487 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
13488 so our POA gets setup properly.
13490 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
13491 things we g_malloc.
13493 * configure.in: Use bonobox_print.
13495 * app/dia_embedd.c (embeddable_factory): add print interface.
13496 (object_print): impl.
13498 2001-01-11 Michael Meeks <michael@helixcode.com>
13500 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
13501 (load_fn, save_fn): impl.
13502 (view_factory): hide modified status bar, & use activate fn.
13503 (refresh_view): force redraws of the views.
13504 (view_show_hide): split from
13505 (dia_view_activate): here.
13507 * app/diagram.c (diagram_load_into): split from diagram_load.
13508 (new_diagram): simplify bu splittin stuff into
13509 (diagram_init): here.
13511 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
13513 * shapes/jigsaw/*.shape: replaced #000000 with foreground
13514 and #ffffff with background
13516 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
13518 *configure.in: GTK+-build was broken due to missing
13521 2001-01-06 Michael Meeks <michael@helixcode.com>
13523 * app/dia_embedd.c (main): add running context support.
13524 (dia_embeddable_destroy): remove old running object counting.
13525 (embeddable_factory): ditto.
13526 (view_factory): comment out menu path hiding.
13528 * lib/sheet.c (load_register_sheet): use free to free
13529 stuff from libxml not g_free.
13531 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
13533 * configure.in: remove USE_OAF checks, check for a precice
13534 Bonobo version >= 0.31, revamp bits.
13536 * app/dia_embedd.c (init_server_factory): upd.
13537 (init_dia_factory): remove OAF conditionals, everything uses
13540 * app/GNOME_Dia.oafinfo: rename OAFIIDs
13542 * app/Makefile.am: remove ancient gnorba code.
13543 rename dia.oafinfo to GNOME_Dia.oafinfo
13545 2001-01-07 Hans Breuer <Hans@Breuer.Org>
13549 * readme.win32 : some more files required or useful to build
13552 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
13553 fill_bezier implementation, boundary drawing in fill mode, etc.
13554 Next one complaining gets the source, uncommented ...
13556 * shapes/network/router-symbol.xpm
13557 * shapes/network/switch-atm-symbol.xpm
13558 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
13559 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
13560 the files as XPMs. Maybe the X versions of these functions are more
13563 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
13565 * plug-ins/python/Makefile.am: added libart path
13567 * plug-ins/python/python.c: added dirent.h
13569 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
13571 2001-01-06 Hans Breuer <Hans@Breuer.Org>
13573 * objects/uml/actor.c
13574 * objects/uml/branch.c
13575 * objects/uml/class.c
13576 * objects/uml/classicon.c
13577 * objects/uml/component.c
13578 * objects/uml/large_package.c
13579 * objects/uml/node.c
13580 * objects/uml/note.c
13581 * objects/uml/object.c
13582 * objects/uml/small_package.c
13583 * objects/uml/state.c
13584 * objects/uml/usecase.c : started to implement the generic property
13585 interface for the uml objects. Would appreciate some help on how
13586 to implement properties which are list of properties themselves,
13587 e.g. member functions and their parameters of UMLClass.
13589 2001-01-06 Hans Breuer <Hans@Breuer.Org>
13591 * plug-ins/python/diamodule.c : finally ported to win32.
13592 Added new objects and implemented register_export function.
13594 * plug-ins/python/pydia-object.h
13595 * plug-ins/python/pydia-display.c
13596 * plug-ins/python/pydia-handle.c
13597 PyObject_HEAD_INIT needs some tweakink on win32. Done in
13598 pydia-object.h; others files simply using it.
13600 * plug-ins/python/pydia-layer.c : reflect
13601 layer_find_closest_connection(_)point renaming
13603 * plug-ins/python/pydia-object.c : add property properties.
13604 Also change bounding_box to DiaRectangle.
13606 * plug-ins/python/python.c : extended error reporting; use
13607 all *.py files from Dia's plug-in dir instead of hardcoded
13608 test.py. This sollution should be fine with Win32, but on
13609 Unix it may need some tweaking (dunno) ...
13611 * plug-ins/python/export-object.py
13612 * plug-ins/python/export-render.py : test and documentation
13613 implementations for export filter implementations in Python
13615 * plug-ins/python/pydia-color.[hc]
13616 * plug-ins/python/pydia-diagramdata.[hc]
13617 * plug-ins/python/pydia-error.[hc]
13618 * plug-ins/python/pydia-export.[hc]
13619 * plug-ins/python/pydia-font.[hc]
13620 * plug-ins/python/pydia-geometry.[hc]
13621 * plug-ins/python/pydia-image.[hc]
13622 * plug-ins/python/pydia-properties.[hc]
13623 * plug-ins/python/pydia-property.c
13624 * plug-ins/python/pydia-render.c : new objects in new files
13626 * plug-ins/python/makefile.am : added new files but can't test it
13628 * plug-ins/python/pydia.def
13629 * plug-ins/python/makefile.msc : for win32 build
13631 * plug-ins/cgm/cgm.c
13632 * plug-ins/dxf/dxf-import.c
13633 * plug-ins/dxf/dxf-export.c
13634 * plug-ins/hpgl/hpgl.c : reflect export API change
13636 * plug-ins/shape/shape-export.c : reflect export API change
13637 and check for libart (better the availibility of a png exporter)
13638 at run-time instead of compile-time.
13640 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
13642 * app/recent_files.h was missing from Hans's commit
13644 * plug-ins/shape/shape_export.c: shape export was broken
13645 due to interface changes
13647 2001-01-05 Hans Breuer <Hans@Breuer.Org>
13649 Applied Steffen's recent file list patch :
13650 * app/Makefile.am : added recent_files.[hc]
13651 * app/diagram.c : add files to recent file list
13652 * app/menus.c : add recent file menu
13653 * app/app_procs.c : changed initialization order to
13654 make recent file list work with command line processing.
13656 The Filter export()/import() functions have got an additional
13657 parameter to allow multiple filters via one C callback (required
13658 for Python bindings)
13660 * app/commands.[hc] : corrected the signature for gtk menu callback
13661 functions, which actually use the second or third parameter. This
13662 is the absolute minimum change to make these functions/menu entries
13663 work again. Using the other possible gtk menu callback signature
13664 would have required one more function to change. (see mailing list
13665 thread "Objects/Align/Equal Distance" for more information.
13667 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
13668 zoom-combo focus patch
13671 * app/interface.c : wrapped the Zoom Combo code into
13672 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
13673 improvement but cluttering the user interface. Also it wasn't
13674 compiling on Win32 anyway. The win32 version does define
13675 WITHOUT_ZOOM_COMBO to keep the old look.
13676 There are plans to use the statusbar to display size and placement
13677 of selected objects, whereas the Zoom Combo would need to get out
13678 of the way as well.
13680 Added "Save Changes?" to diagram close dialog. Hopefuly the
13681 Yes/No/Cancel option isn't too much windoze like. IHMO this is
13682 an useability improvement.
13687 * app/layer_dialog.c
13688 * app/paginate_psprint.c
13690 - reflect signature changing of filter->export function
13691 - replaced '/' with G_DIR_SEPARARTOR where appropriate
13693 * app/diaunitspinner.c
13694 * app/render_libart.c
13695 added misssing headers like <string.h>
13697 * app/object_ops.c : fixed copy&paste bug in dialog string
13699 * app/splash.c : gdk_widget_show_now () does not ensure actual
13700 drawing of the splash screen, at least not on win32. Reuse the
13701 previous implementation with gtk_main_iteration() again.
13703 * */makefile.msc : make use of the build module (available in
13704 gnome-cvs/build. Updated for other source changes
13706 * lib/filter.h : added an user_data pointer to <ex/im>port()
13707 function signature and Dia<Im/Ex>portFilter to allow different
13708 filters to reuse the same callback function
13710 * lib/font.c : #include <string.h>
13715 * lib/neworth_conn.c
13716 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
13718 * */*.def : export function definition files required by win32 build
13720 * objects/custom/custom.c : #include <string.h>
13722 * plug-ins/pstricks/render_pstricks.c
13723 * plug-ins/shape/shape_export.c
13724 * plug-ins/svg/render_svg.c
13725 reflect changes to filter export function signature
13727 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
13728 mostly work as expected
13729 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
13730 to build the wmf plug-in because on the one hand the GDI emulation
13731 isn't finished and on the other hand it isn't required when building
13732 for win32. Is there anybody out there, who wants to save WMF on non
13733 windoze platforms ?
13735 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
13736 offset into account.
13738 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
13740 * app/Makefile.am: added missing plug-ins to run_dia.sh
13742 * lib/paper.c: added paper sizes A0, A1, A2
13744 * objects/UML/class.c
13745 objects/UML/class.h
13746 objects/UML/class_dialog.c: added support for colored UML
13749 2000-12-30 Kevin Breit <battery841@mediaone.net>
13751 * doc/en/usage-customization.sgml: added more content
13753 2000-12-24 Kevin Breit <battery841@mediaone.net>
13755 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
13756 <remy.viard@laposte.net>
13758 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
13760 * added limiting lines to Civil Engineering sheet,
13761 fixed vertical pump icon
13763 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
13765 * updated/additional Civil Engineering shapes: better icons,
13766 shapes use foreground/background colors now and are filled
13768 2000-12-03 Kevin Breit <battery841@mediaone.net>
13770 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
13771 the selection <sect1>
13773 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
13775 * app/load_save.c (diagram_data_save): avoid using obsoleted
13776 libxml calls (only matters when compiling with libxml2)
13778 2000-11-25 James Henstridge <james@daa.com.au>
13780 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
13781 handle the tool drops on the canvas.
13783 * app/interface.c (display_data_received_callback): do the check
13784 to make sure that the drag is from a local toolbox here as well.
13786 * app/interface.c (create_tools): unref the pixmap/mask after
13787 creating the GtkPixmap.
13788 (tool_setup_drag_source): function to set up a drag source for
13789 create object tool buttons.
13790 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
13791 (fill_sheet_wbox): same here.
13792 (create_display_shell): set up the display canvas as a drag
13794 (display_drop_callback, display_data_received_callback): functions
13795 to handle drops of tool buttons.
13797 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
13798 does weird shit to the user_data pointer for a menu item. Object
13799 alignment should work again now.
13801 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
13802 NULL, and mark this function static.
13803 (app_splash_init): use gtk_widget_show_now() instead of the
13804 gtk_main_iteration loop.
13805 (app_splash_init): connecting gtk_widget_destroy to the destroy
13806 signal of a widget seems pretty useless.
13808 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
13810 * doc/en/dia-manual.sgml:
13811 Added sect1 for advanced object types. Starting development
13814 2000-11-18 Kevin Breit <battery841@mediaone.net>
13816 * doc/en/dia-manual.sgml:
13817 Stupid spelling fixes.
13819 2000-11-18 Kevin Breit <battery841@mediaone.net>
13821 * doc/en/dia-manual.sgml:
13822 Just some small changes I made. Props to Greg LeBlanc on the
13825 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
13828 (ddisplay_add_display_area): Clip input rectangle to
13829 the visible part of the display.
13830 (ddisplay_scroll): Optimization, don't scroll and
13831 redraw if moving to the same position as before.
13833 * app/render_libart.c (renderer_libart_copy_to_window):
13834 Removed sanity check. Now moved to ddisplay_add_display_area().
13837 Added return at end of file.
13839 2000-11-13 Kevin Breit <battery841@mypad.com>
13840 * doc/en/dia-manual.sgml
13841 Commited manual changes from Henry House <hajhouse@houseag.com>
13843 2000-10-21 Hans Breuer <Hans@Breuer.Org>
13844 * lib/beziershape.c :
13845 The previous code was accessing unowned memory due to IHMO
13846 wrong index calculation. Now it appears to be fixed.
13850 * plug-ins/makefile.msc
13851 * objects/makefile.msc
13852 * app/makefile.msc: (new files)
13853 Makefiles for Dia on Win32, Micro$oft VC only.
13855 * plug-ins/pstricks/render_pstricks.c
13856 * plug-ins/dxf/dxf-import.c
13857 * plug-ins/shape/shape-export.c
13858 * plug-ins/svg/render_svg.c
13861 * app/preferences.c
13865 * objects/custom/custom.c
13866 * objects/standard/image.c
13867 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
13868 where appropriate, add missing prototypes like <string.h>
13870 * plug-ins/wmf/wmf_gdi.cpp
13871 * plug-ins/wmf/wmf_gdi.h:
13872 start of wmf write functions for non Win32 platform. Not
13873 finished yet. The other way to get it working maybe to
13874 link the plug-in against wine libs.
13876 * plug-ins/wpg/wpg.c : add missing brace
13878 * app/load_save.c :
13879 Handling for unknown objects at load time. Previously Dia
13880 was crashing, if you try to load a file referencing objects
13881 whiches plug-ins aren't installed/available. Now it spits out
13882 a warning and ignores the unknown objects.
13885 toolbox DND support for files like The Gimp does it.
13889 Simple splash screen support and usage.
13892 Splash screen, portability fixes, dont' g_error if there is
13893 g_get_homedir return NULL. This may remove the one and only
13897 Make it compile without ENABLE_NLS
13899 * app/render_libart.c :
13900 Sanity check to avoid calling libart with wrong window coordinates.
13901 They come from the update handler. Direct Gdk is dealing nicely
13902 with coordinates out of range, libart does access un-owned memory
13903 in this case, mostly causing crashes.
13905 * app/winmain.c: (new file) Export the Win32 Gui version of the
13906 main function. This file is only required for Windoze.
13908 * app/splash.c: (new file) splash screen implementation
13912 * lib/diavar.h: (new file)
13913 moved special variable export code to diavar.h, because it is
13914 needed in color.h and font.h
13917 M$VC cann't export inlined functions. Quick hack to let it
13918 link again. Probably the glib mechanics should be used here?
13920 * objects/UML/lifeline.c : initialize var before usage
13922 * objects/GRAFCET/step.c : removed unused var
13924 2000-10-14 James Henstridge <james@daa.com.au>
13926 * app/render_gnomeprint.c (draw_image): change code so images
13927 don't get flipped when printing.
13929 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
13930 sure that the return value of
13931 gnome_print_context_new_with_paper_size is not NULL.
13933 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
13934 into a series of bezier segments.
13935 (fill_arc): similar code to handle filled arc segments.
13937 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
13944 * app/disp_callbacks.c
13946 * app/linewidth_area.c
13947 * app/paginate_psprint.c
13948 * app/preferences.c
13952 * app/neworth_conn.c
13954 * objects/standard/box.c: various small changes to get rid of
13955 annoying warnings (eg faulty prototypes and unused variables)
13957 * app/disp_callbacks.c
13960 * app/magnify.h: update magnify tool icon when pressing/releasing
13961 shift. I will try to make something more general so that similar
13962 things can be used by other tools.
13964 * shapes/SDL/inout.shape
13965 * shapes/SDL/return.shape: fixed some typos
13967 2000-10-09 James Henstridge <james@daa.com.au>
13969 * objects/custom/shape_info.c (parse_path): apply patch from
13970 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
13973 2000-10-08 James Henstridge <james@daa.com.au>
13975 * objects/standard/image.c (image_set_props): if the file could not
13976 be loaded, show the broken image icon.
13978 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
13980 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
13982 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
13983 object icon when loading from a file. This allows you to have PNG
13984 icon files for shapes.
13986 2000-10-07 James Henstridge <james@daa.com.au>
13988 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
13990 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
13991 GDK_IMLIB_CFLAGS reference.
13993 * app/commands.c (help_about_callback): remove imlib code.
13995 * lib/dia_image.c: only include the pixbuf version of the image
13998 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
14000 * configure.in (CPPFLAGS): remove the check for imlib, as we now
14001 require gdk-pixbuf.
14003 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
14004 conditionally define \setfont as well.
14006 2000-10-05 James Henstridge <james@daa.com.au>
14008 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
14009 preamble so that we define \setlinejoinmode and \setlinecaps
14010 commands conditionally on them being undefined. This way, the
14011 pstricks output files should work without modification, and will
14012 support the commands when they are implemented in pstricks.
14014 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
14016 * dia.desktop: added hungarian translations to dia.desktop
14018 2000-10-04 James Henstridge <james@daa.com.au>
14020 * sheets/UML.sheet: fix typo.
14022 * objects/custom/shape_info.c: use strtod instead of g_strtod.
14023 (parse_path): actually call setlocale around strtod calls.
14025 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
14026 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
14027 the g_strtod wrapper.
14029 * shapes/SDL/: add SDL shapes from Rubens Ramos
14030 <rubens_ramos@yahoo.com>
14032 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
14034 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
14036 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
14037 W. Michael Petullo <mike@flyn.org>.
14039 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
14040 from the 0.86 tarball) and jigsaw.sheet.
14042 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
14044 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
14046 * shapes/network/: add network-additional shapes here.
14048 * sheets/network.sheet: add the network-additional shapes from
14049 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
14052 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
14054 * configure.in: Updated ALL_LINGUAS
14056 * po/nl.po: Removed newline from translation
14058 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
14060 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
14061 logo filename generation.
14063 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
14064 Avoiding "//dia_logo.png".
14066 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
14068 * app/filedlg.c: add include <sys/types.h> to
14069 remove warning. (OS/2)
14071 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
14073 * objects/chronogram/chronoline_event.c (reparse_clevent):
14074 the __checksum routine was simply bogus. Redone it in a slightly
14075 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
14077 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
14079 * app/create_object.c (create_object_button_press):
14080 * app/modify_tool.c (click_select_object):
14081 * lib/object.h: select renamed to selectf to prevent
14082 compiler problems with function select(). OS/2 version.
14084 2000-09-08 Karsten Weiss <knweiss@gmx.de>
14086 * po/de.po: Updated.
14088 2000-09-07 Karsten Weiss <knweiss@gmx.de>
14090 * dia.desktop: Added German translation
14091 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
14093 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
14095 * configure.in (ALL_LINGUAS): added "es"
14097 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14102 * app/scroll_tool.c:
14103 Standardized cursor function get_cursor(). Magnify now has
14104 looking-glass cursor with + and -.
14106 * app/create_object.c (create_object_button_press):
14107 Newly created connections now snap to connection points even when
14110 2000-08-17 Daniel Egger <egger@suse.de>
14112 * app/menus.c: #ifdef'ed some code for the none GNOME
14114 * app/dia_embedd.c: Changed obvious hackery. Can anyone
14115 please have a look at the GNOME UI menu creation? The
14116 gnome-app-helper code is ages old and plainly broken!
14118 2000-08-15 Daniel Egger <egger@suse.de>
14125 * app/select.c: First big patch to get the menus
14126 working again in the international version. Copied
14127 some code written by Sven and me from GIMP and
14128 thus implemented automatic tearoffmenu creation and
14129 proper translation. I also removed that pseudo
14130 radiomenu hack and cleaned up several translation
14131 hacks which have never really worked. All in all
14132 this is part I of the big menu patch. Enjoy and tell
14133 me if you detect any problems.
14135 2000-08-14 Daniel Egger <egger@suse.de>
14137 * sheets/UML.sheet: Changed one German translation as
14138 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
14140 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
14142 * app/diapagelayout.c:
14143 * lib/diagramdata.c:
14144 * lib/diagramdata.h:
14147 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
14148 selecting paper size for a new diagram. TODO: Use libpaper if
14149 available and use gnome_paper-stuff if using GNOME.
14151 * sheets/Electric.sheet: fixed typo.
14153 2000-08-08 James Henstridge <james@daa.com.au>
14155 * po/README: added a readme file to tell translators to translate
14156 the .sheet files as well.
14158 * app/commands.c (help_about_callback): fix small bug where we tried
14159 to gdk_bitmap_unref() the mask for the about box image, even though
14160 it was NULL. Now check for a NULL mask.
14162 2000-08-07 Daniel Egger <egger@suse.de>
14164 * sheets/*.sheet: Added translations for the name
14165 in the toolbar tab. Brushed up some descriptions
14166 and some translations a bit.
14168 2000-08-06 James Henstridge <james@daa.com.au>
14170 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
14171 identifier and dtd url for SVG output.
14172 (new_svg_renderer): fix the output of the viewBox output. The
14173 second two numbers are the width and height -- not the right
14174 and bottom sides of the box.
14176 * shapes/*/*.shape: update svg namespace URI.
14178 * objects/custom/shape_info.c (load_shape_info): change the
14179 namespace URI for custom shapes yet again to match the Candidate
14180 Recommedation. It looks like this one will probably be the final
14183 * app/display.c (new_display): remove the code that sets ic and
14184 ic_attr members to NULL, as one of the previous function calls
14185 causes the display to be realised. This means that the ic gets
14186 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14189 2000-08-06 James Henstridge <james@daa.com.au>
14191 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14193 * NEWS: fixed date in NEWS file, as I will release today.
14195 * README: updated the README a little. Added note that Dia is now
14198 * dia.spec: fix up spec file.
14200 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14202 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14203 get heaps of warnings when you turn off debugging.
14204 Also made a few other warning fixes.
14206 2000-08-02 James Henstridge <james@daa.com.au>
14208 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14210 * configure.in: update version number.
14212 2000-08-01 James Henstridge <james@daa.com.au>
14214 * app/commands.c (help_about_callback): add Hans to about dialog.
14216 * doc/shape.dtd: dtd for shape file format.
14218 * doc/custom-shapes: update doc file about creating custom shapes.
14220 * shapes/*/*.shape: change namespace URI for the SVG portion to the
14221 one for the latest draft.
14223 * shapes/*/*.shape: fix up rect definitions.
14225 * objects/custom/shape_info.c (load_shape_info): recognise newer
14226 namespace tag for SVG.
14227 (parse_svg_node): the rect element should take attributes x, y, width
14228 and height -- not x1,y1,x2,y2.
14230 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14231 output to use the newest draft DTD.
14233 * plug-ins/svg/svg.c: initialisation code for plugin.
14235 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14237 * plug-ins/svg/Makefile.am: makefile for svg plugin.
14239 * app/app_procs.c (internal_plugin_init): don't register the svg
14240 export filter here.
14242 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14244 2000-07-31 James Henstridge <james@daa.com.au>
14246 * objects/standard/textobj.c (textobj_get_defaults):
14247 * objects/standard/polygon.c (polygon_get_defaults):
14248 * objects/standard/image.c (image_get_defaults):
14249 * objects/standard/ellipse.c (ellipse_get_defaults):
14250 * objects/standard/box.c (box_get_defaults):
14251 * objects/standard/beziergon.c (beziergon_get_defaults):
14252 * objects/flowchart/parallelogram.c (pgram_get_defaults):
14253 * objects/flowchart/ellipse.c (ellipse_get_defaults):
14254 * objects/flowchart/diamond.c (diamond_get_defaults):
14255 * objects/flowchart/box.c (box_get_defaults):
14256 * objects/custom/custom_object.c (custom_get_defaults):
14257 * objects/FS/flow.c (flow_get_defaults):
14258 * objects/FS/flow-poly.c (flow_get_defaults):
14259 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14262 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14263 widgets for various object types.
14264 (create_dialog): ref and sink the no_defaults_dialog.
14266 * app/preferences.c (prefs_create_dialog): change
14267 gtk_container_border_width call to gtk_container_set_border_width.
14269 2000-07-29 James Henstridge <james@daa.com.au>
14271 * app/commands.c (view_aa_callback): show a warning dialog if
14274 * app/interface.c (fill_sheet_menu): don't add a menu item for
14277 2000-07-26 James Henstridge <james@daa.com.au>
14279 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14281 * app/menus.c: remove edit grid menu item.
14283 * app/commands.[ch] (view_edit_grid_callback): removed.
14285 * app/display.c (new_display): don't initialise removed Grid members.
14287 * app/grid.c: remove unused functions.
14289 * app/grid.h: remove dialog related stuff from Grid structure.
14290 Remove prototypes for dialog functions.
14292 * app/menus.c: add to menus
14294 * app/commands.[ch] (view_diagram_properties_callback): new command
14295 for showing the diagram properties dialog.
14297 * app/dia-props.[ch]: a new diagram properties dialog. To replace
14298 the edit grid dialog.
14300 2000-07-25 James Henstridge <james@daa.com.au>
14302 * app/grid.c (grid_x_update):
14303 (grid_y_update): as the grid setting is stored with the diagram,
14304 update all displays when a change is made.
14306 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14308 * app/create_object.c (create_object_button_press):
14309 (create_object_motion): use new snap_to_grid signature.
14311 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14312 and handle invisible grid lines.
14313 (snap_to_grid): use new grid settings. Also changed signature to
14314 take a DDisplay rather than Grid pointer.
14315 (grid_show_dialog): get the defaults from the correct place.
14317 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14319 * app/diagram.c (new_diagram): set the grid size defaults from the
14322 * app/load_save.c (diagram_data_save): save grid and guide info to
14324 (diagram_data_load): add guide and grid load support.
14326 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14329 * lib/diagramdata.h: add members to DiagramData for grid and guide
14332 * configure.in (BONOBO_LIBS): update configure scripts
14334 * app/dia.oafinfo: oafinfo file for dia embeddables.
14336 * app/dia_embedd.c: add OAF support.
14338 2000-07-24 James Henstridge <james@daa.com.au>
14340 * plug-ins/wpg/Makefile.am:
14341 * plug-ins/pstricks/Makefile.am:
14342 * plug-ins/hpgl/Makefile.am:
14343 * plug-ins/dxf/Makefile.am: same here.
14345 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
14346 the required libraries, and the link line was causing libtool not
14347 to build a shared library on some systems :(
14349 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
14350 be checking x, not n.
14352 2000-07-23 James Henstridge <james@daa.com.au>
14354 * app/preferences.c (prefs_data): set the "reset tools after
14355 create" preference to true by default. That seems to be what most
14358 * app/interface.c (create_sheets): instead of a notebook, use an
14359 option menu that updates the sheet tools. The notebook tabs were
14360 getting a bit unwieldly, so the option menu should fix that. This
14361 also reduces the number of widgets in the tools radio button
14362 group, which should make the UI a little more responsive.
14364 2000-07-19 Fatih Demir <kabalak@gmx.net>
14366 * configure.in: Added tr to ALL_LINGUAS.
14367 [ Yeah, we're now having a Turkish translation,
14370 * dia.desktop: Added the Turkish entries.
14372 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
14374 * doc/diagram.dtd: changed string-element so it conforms to the
14377 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
14379 * configure.in: added chinese.
14380 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
14388 objects/custom/shape_info.c:
14389 shapes/Circuit/npn.shape:
14390 shapes/Circuit/pnp.shape:
14391 sheets/*.sheet: dia now works with libxml2.
14392 Libxml2 is a bit more picky when parsing xml and reported errors on all
14393 sheet files because they use non ascii characters (added
14394 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
14395 I commented out these.
14397 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
14399 * configure.in (ALL_LINGUAS): added Italian
14401 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
14403 * configure.in (ALL_LINGUAS): added Korean
14405 2000-06-25 James Henstridge <james@daa.com.au>
14407 * objects/flowchart/parallelogram.c (pgram_create): use default font
14408 and add properties interface support.
14410 * objects/flowchart/ellipse.c (ellipse_create): use default font and
14411 add properties interface support.
14413 * objects/flowchart/diamond.c (diamond_create): use default font and
14414 add properties interface code.
14416 * objects/flowchart/box.c (box_create): use default font.
14418 * objects/custom/custom_object.c (custom_create): use default font
14421 * objects/standard/textobj.c (textobj_create): update to use default
14424 * lib/attributes.c: add implementations.
14426 * lib/attributes.h (attributes_[gs]et_default_font): add function
14427 prototypes for setting/getting a default font.
14429 2000-06-24 James Henstridge <james@daa.com.au>
14431 * app/paginate_gnomeprint.h: updated prototype.
14433 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
14434 diagram page settings.
14436 * objects/standard/beziergon.c (beziergon_copy): same here.
14438 * objects/standard/polygon.c (polygon_copy): copy the fill colour
14442 * app/tool.h (tool_options_dialog_show):
14443 * app/scroll_tool.h (free_scroll_tool):
14444 * app/render_svg.h:
14445 * app/render_libart.h (renderer_libart_copy_to_window):
14446 * app/render_gdk.h (renderer_gdk_copy_to_window):
14447 * app/properties.h (properties_hide_if_shown):
14448 * app/preferences.h (prefs_load):
14449 * app/object_ops.h:
14450 * app/modify_tool.h (free_modify_tool):
14451 * app/magnify.h (free_magnify_tool):
14452 * app/linewidth_area.h (linewidth_area_create):
14453 * app/layer_dialog.h:
14454 * app/handle_ops.h (handle_is_clicked):
14456 * app/grid.h (grid_destroy_dialog):
14457 * app/defaults.h (defaults_show):
14458 * app/cut_n_paste.h (cnp_exist_stored_objects):
14459 * app/create_object.h (free_create_object_tool):
14460 * app/connectionpoint_ops.h (diagram_unconnect_selected):
14462 * app/color_area.h (color_area_create):
14463 * app/app_procs.h (app_is_embedded): remove extern keyword from
14464 function prototypes.
14467 * lib/sheet.h (load_all_sheets):
14468 * lib/render_store.h:
14469 * lib/render_object.h (render_object_load):
14470 * lib/polyshape.h (polyshape_closest_segment):
14471 * lib/poly_conn.h (polyconn_closest_segment):
14474 * lib/objchange.h (new_object_state_change):
14475 * lib/neworth_conn.h (neworthconn_add_segment):
14476 * lib/message.h (message_error):
14479 * lib/font.h (font_descent):
14480 * lib/focus.h (remove_focus):
14482 * lib/diagramdata.h:
14483 * lib/dia_xml.h (data_add_composite):
14485 * lib/connpoint_line.h:
14486 * lib/connection.h (connection_move_handle):
14488 * lib/attributes.h (attributes_set_default_line_style):
14489 * lib/arrows.h (arrow_draw): remove extern keyword from function
14490 definitions. It is not required for functions.
14492 * plug-ins/dxf/Makefile.am (INCLUDES):
14493 * plug-ins/pstricks/Makefile.am (INCLUDES):
14494 * plug-ins/cgm/Makefile.am (INCLUDES):
14495 * objects/SADT/Makefile.am (INCLUDES):
14496 * objects/chronogram/Makefile.am (INCLUDES):
14497 * objects/GRAFCET/Makefile.am (INCLUDES):
14498 * objects/flowchart/Makefile.am (INCLUDES):
14499 * objects/sybase/Makefile.am (INCLUDES):
14500 * objects/FS/Makefile.am (INCLUDES):
14501 * objects/standard/Makefile.am (INCLUDES):
14502 * objects/network/Makefile.am (INCLUDES):
14503 * objects/UML/Makefile.am (INCLUDES): same here.
14505 * objects/ER/Makefile.am: changed inclusion of some macros to
14508 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
14509 handle the plug in extension, rather than have all the #ifdef's in
14512 * plug-ins/Makefile.am: add renderer.inc to dist.
14514 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
14516 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
14518 * lib/plug-ins.c: Handle OS/2 dll's too.
14520 2000-06-07 James Henstridge <james@daa.com.au>
14522 * app/plugin-manager.c (get_plugin_manager): set some table
14523 packing options to make it look a little nicer.
14525 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
14526 makefiles for these plug-ins.
14528 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
14530 * configure.in: added hpgl and wpg directories to build. Added
14531 note about whether gnome-print support was enabled, and noted that
14532 it is not recommended.
14534 2000-06-06 James Henstridge <james@daa.com.au>
14536 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
14537 a little work, but I am checking them in so I don't lose them.
14539 2000-06-01 James Henstridge <james@daa.com.au>
14541 * objects/standard/arc.c: added extra properties.
14543 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
14544 was using the wrong index into the handles array. This gets corner
14545 type changing working correctly.
14547 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
14548 to properties code (no editing or loading yet though). Also added
14549 support for point array manipulation through the offsets interfaces.
14551 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
14553 * app/interface.c (origin_button_press): changes so the origin
14554 button doesn't grab the pointer when we pop up the menu.
14556 * app/commands.c (help_about_callback): fix small memory leak in
14559 * app/menus.c (menus_init): fixed breakage I introduced in the non
14560 gnome menus when I was doing the menu changes. The tearoffs work
14561 really nicely in plain gtk mode as well.
14563 * objects/standard/beziergon.c (beziergon_create): changed the
14564 returned handles to match the handle numbering changes. Now
14565 segment addition and removal works correctly with undo!
14567 * lib/beziershape.c: various changes to the code. Changed the
14568 numbering of handles, and fixed the segment removal code.
14570 2000-05-31 James Henstridge <james@daa.com.au>
14572 * objects/standard/beziergon.c: remove connection point handling.
14573 There is still a bit of work to be done to get adding and removing
14574 of segments working correctly.
14576 * lib/beziershape.c: add connection point handling to beziershape.
14577 I set it for two connection points per segment.
14579 2000-05-30 James Henstridge <james@daa.com.au>
14581 * objects/standard/polygon.c: don't do connectionpoint handling.
14583 * lib/polyshape.c: changed to handle connection points internally.
14584 Also, don't worry about connections to handles on polyshape, as
14585 all handles are non connectable.
14587 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
14589 * configure.in: Added finnish
14591 2000-05-30 James Henstridge <james@daa.com.au>
14593 * sheets/*.sheet: translation updates to the .sheet files.
14595 * po/fr.po: updated po file from Christophe Merlet.
14597 * menus.h: removed prototypes for functions which have been removed.
14599 2000-05-29 James Henstridge <james@daa.com.au>
14601 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
14602 item in the option menu when changing selected diagram.
14604 * app/dia_embedd.c (view_factory): fix up function to work with new
14607 * app/disp_callbacks.c (ddisplay_realize): remove call to
14608 display_set_active from here.
14609 (ddisplay_canvas_events): move call here. This gets rid of all the
14610 warnings, as the renderer has been fully set up correctly at this
14613 * app/menus.c (menus_init): add the tearoff item to the start of the
14616 * app/app_procs.c (create_user_dirs): we don't need to create the
14617 menus directory anymore.
14619 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
14620 necessary to update the menu state here, as it was done when the
14621 active display was set.
14623 * app/display.c (display_set_active): update the menu state when
14624 changing active displays.
14626 * app/interface.c (origin_button_press): set the display as active
14627 when a click is made on the menu button.
14629 * app/menus.c (menus_init): set up a quit function to save the accels
14631 Add tearoff items for the non GNOME menus, add accelerators for
14632 several GNOME menus.
14634 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
14635 menus_get_image_menu().
14637 * app/menus.c (menus_get_item_from_path): use display_menus here
14638 rather than ddisp->popup.
14640 * app/display.h: remove the popup member in the DDisplay structure.
14642 * app/interface.c: remove option of not using wrap box.
14643 (create_toolbox): change to always use menus_get_toolbox_menubar
14644 even when using gnome menus.
14645 (create_display_shell): use menus_get_image_menu to load accelerators
14646 only -- not the actual popup menu.
14648 * app/menus.c (menus_init): new function to create the menus.
14649 (menus_get_toolbox_menubar): use this function whether gnome is
14650 in use or not. Changed to use menus_init.
14651 (menus_get_image_menu): same here. Also, now this function always
14652 returns the same menu, rather than a new one each time.
14653 (menus_init): read a menurc file to load accelerators here.
14655 2000-05-28 James Henstridge <james@daa.com.au>
14657 * app/display.c (ddisplay_really_destroy): unset active display if
14658 active display is destroyed.
14659 (ddisplay_active): simplify function to return active_display as set
14660 by display_set_active. This allows using a pinned menu with any
14661 display -- not just the one it was popped up from.
14662 (display_set_active): notify the layer dialog of change of diagrams
14663 when active diagram changes.
14665 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
14666 on button and key presses.
14667 (ddisplay_realize): set active display on realize.
14669 * app/display.c (display_set_active): simple implementation of this
14672 * app/display.h (display_set_active): add prototype for setting
14673 the active display.
14675 * app/interface.c (create_display_shell): don't give focus to the
14678 * app/menus.c: fix up menus for Beziergon.
14680 * app/interface.c (create_display_shell): make the widget in the
14681 top left corner a button that can be used to pop up the right click
14682 menu, like in gimp and sketch.
14684 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
14687 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
14688 add code to set corner types for beziergon.
14690 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
14692 (beziershape_move_handle): use the previous corner type for right
14695 * app/interface.c (tool_data): add beziergon to toolbox.
14697 * objects/standard/standard.c (dia_plugin_init): initialise the new
14698 Beziergon object type.
14700 * objects/standard/beziergon.c: an object based on BezierShape.
14702 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
14704 * lib/beziershape.[ch]: new files implementing a bezier shape.
14706 2000-05-26 James Henstridge <james@daa.com.au>
14708 * lib/text.c (text_key_event): handle multibyte inserts.
14709 (text_key_event): also add home and end keybindings.
14711 * app/interface.c (create_display_shell): connect handlers for
14712 focus_in_event, focus_out_event, realize and unrealize signals.
14714 * app/display.[ch] (new_display): initialise input context members.
14716 * app/disp_callbacks.[ch]: added XIM support here.
14718 * lib/font.c (suck_font): the black and white pixel values should be
14719 taken from a 1 bit colormap rather than the default colormap.
14721 Hans Breuer's Windows patches ...
14723 * lib/font.c: use Courier New for fixed width font on windows
14726 * lib/dia_image.h: change to "struct _DiaImage".
14728 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
14730 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
14731 mouse button for object menu. This will make two button mouse owners
14734 2000-05-25 James Henstridge <james@daa.com.au>
14736 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
14738 * app/app_procs.c (app_init): add extra NULL argument to call of
14741 * app/load_save.h: remove prototype.
14743 * app/load_save.c: remove diagram_data function here.
14745 * app/diagram.h: added prototype.
14747 * app/diagram.c (diagram_load): new function here, which uses import
14750 * plug-ins/dxf/dxf.c: register the import filter as well.
14752 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
14753 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
14755 * objects/standard/line.c: add start_point and end_point properties
14756 to standard line object.
14758 2000-05-21 James Henstridge <james@daa.com.au>
14760 * app/paginate_psprint.c: added missing include of locale.h.
14762 * objects/custom/custom_object.c (custom_draw): use fabs rather than
14763 abs for scaling factors.
14764 (custom_distance_from): same here.
14766 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
14768 2000-05-18 James Henstridge <james@daa.com.au>
14770 * po/POTFILES.in: updated POTFILES.in.
14772 * dia.spec: incremented version number in spec file.
14774 * NEWS: added (lots of) news items for the 0.85 release.
14776 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
14779 * configure.in: updated version number here.
14781 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
14783 2000-05-17 James Henstridge <james@daa.com.au>
14785 * app/app_procs.c (internal_plugin_init): register the native import
14788 * app/load_save.c (diagram_data_load, diagram_load): split this
14789 function into two -- one that does all the work on the DiagramData
14790 structure, and the other that provides compatibility with the old
14792 (dia_import_filter): use diagram_data_load to define an import
14795 * app/diagram.h (new_diagram): added const to prototype.
14797 * app/filedlg.c (file_open_callback): change to use new import filter
14800 * lib/filter.c: added import filter management functions.
14802 * lib/filter.h: added prototypes for import filter interface.
14804 * app/commands.c (help_about_callback): updated about dialog to
14805 contain a few more names.
14807 2000-05-16 James Henstridge <james@daa.com.au>
14809 * configure.in (Configuration): added a status message to the end of
14810 the configure script to give the user some idea of what was
14813 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
14815 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
14818 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
14821 * configure.in (AM_PATH_LIBART): use the check function provided
14822 with libart rather than our own code. It is more reliable, and
14823 it only requires that people who build out of CVS have libart.m4
14824 installed (not necessarily all of libart).
14825 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
14827 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
14829 * dia.desktop: Added Swedish translation.
14831 2000-05-09 James Henstridge <james@daa.com.au>
14833 * lib/dia_xml.c: you can't free a const pointer, so remove const
14834 from variable definitions.
14836 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
14837 initialised correctly.
14839 * app/render_svg.c (export_svg): set locale to C.
14841 * app/paginate_psprint.c (paginate_psprint): set locale to C.
14843 * app/render_eps.c (export_eps): set locale to C for EPS export.
14845 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
14846 (data_add_point): same here.
14847 (data_add_rectangle): same here.
14848 (data_real): use g_strtod to convert strings to real numbers, so that
14849 locales are taken into account.
14850 (data_point): same here.
14851 (data_rectangle): same here.
14853 * AUTHORS: added Henk and Jacek to authors file.
14855 Daniel Egger's code cleanups.
14857 * app/select.c (select_invert_callback): remove unused variable.
14859 * app/plugin-manager.c (get_plugin_manager): fix typo.
14861 * app/load_save.c (read_connections, write_objects):
14862 (write_connections): made some functions static.
14864 * app/interface.c (toolbox_delete, toolbox_destroy): made some
14867 * app/filedlg.c (file_export_callback): remove unused variable.
14869 * app/app_procs.c: various warning fixes.
14871 Integrating Jacek Pliszka's pstricks export filter.
14873 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
14875 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
14876 renderer (with a few small modifications by me).
14878 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
14880 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
14882 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
14885 * sheets/Makefile.am:
14886 * shapes/Makefile.am:
14887 * shapes/Civil/Makefile.am:
14888 * sheets/civil.sheet:
14890 Added civil/hydraulic/structural engineering objects from
14891 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
14893 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
14895 * objects/FS/flow-poly.c:
14896 * objects/FS/flow.c:
14897 Fix division by zero in point_normalize().
14898 Patch by David Thompson <dcthomp@mail.utexas.edu>
14900 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
14903 * lib/bezier_conn.c:
14904 * lib/connpoint_line.c:
14905 Added checks for zero-length lines before calls to point_normalize.
14907 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14909 * app/preferences.c (prefs_data): Changed
14910 reversed_dragging_intersects to not make the dialog ridiculously
14913 2000-04-22 James Henstridge <james@daa.com.au>
14915 Hans's win32 patches:
14917 * app/export_png.c: include message.h
14918 * app/interface.c: include dia_dirs.h
14919 * app/linewidth_area.c: check for rint
14920 * app/main.c: include interface.h
14921 * app/paginate_psprint.c: remove unused variable.
14922 * app/preferences.c: include message.h
14923 * app/render_svg.c: include stdlib.h
14924 * app/select.c: include object_ops.h
14925 * lib/dia_dirs.c: miscelaneous fixes for win32.
14926 * lib/dia_image.c: include string.h
14927 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
14928 * lib/properties.c: include stdlib.h
14929 * lib/properties.h: define extra data for standard properties as
14930 static variables on win32 (to get around dynamic linker problems).
14931 * objects/standard/polygon.c: polygon_create_change missing return
14934 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
14936 * configure.in (ALL_LINGUAS): added Catalan
14938 2000-04-18 James Henstridge <james@daa.com.au>
14940 * objects/standard/bezier.c (bezierline_get_object_menu): add a
14941 separator to the object menu between the add/remove segment items
14942 and the corner type items.
14943 (bezierline_get_object_menu): add code to disable the menu item for
14944 the current corner type. Really just a cosmetic change.
14946 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
14947 a NULL for the label or with no associated callback.
14949 * objects/standard/bezier.c (bezierline_menu_items): use the
14950 enumeration values rather than numeric values for the corner types.
14952 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
14953 structure, and add code to handle it. Also, don't save the corner
14954 types inline in the bez_points node. The way it is conditionally
14955 including the element just feels like it will break.
14957 * lib/geometry.h (BezPoint): removed the corner_type stuff from
14958 BezPoint. The corner type stuff is a user interface level idea rather
14959 than something required by the renderer, so should be taken care of
14960 at the object level.
14962 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14964 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
14965 checks. Weren't able to reproduce original bug, tough.
14967 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
14969 * sheets/Electric.sheet:
14970 * sheets/Contact.sheet:
14971 * sheets/Pneumatic.sheet:
14972 * sheets/Circuit.sheet: sprayed some <br/>'s around.
14973 (added a few French translations in the last file)
14975 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14978 * lib/bezier_conn.h:
14979 * objects/standard/bezier.c:
14980 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
14981 bezier points. Only one minor problem known: Menus are active
14982 for endpoints minor handles.
14983 11:28: Save and load now works, too.
14984 (bezierconn_closest_major_handle): 12:03: New function to get the
14985 non-control point handle associated with the nearest control
14987 Also fixed the menu activation problem, and made remove_segment
14988 not remove the endpoint.
14990 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14992 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
14995 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
14997 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
14998 <sys/stat.h>. OS/2 patch.
15000 2000-04-15 James Henstridge <james@daa.com.au>
15002 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
15003 Thompson's patch that adds undo support to the function structure
15006 2000-04-14 James Henstridge <james@daa.com.au>
15008 * objects/custom/custom_object.c (custom_distance_from): new
15009 implementation of distance algorithm that actually takes the
15010 display list into account when calculating the distance. Much nicer
15011 than a simple bounding box.
15013 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
15015 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
15017 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15019 * objects/standard/polygon.c: Start of polygons own changes (for
15020 connectionpoints). Need to do seperate changes in polyshape, too,
15021 rather than reuse the bezier changes.
15023 2000-04-13 James Henstridge <james@daa.com.au>
15025 * lib/dia_image.c (dia_image_draw): use the new enumeration values
15026 from after the gdk-pixbuf cleanup.
15028 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
15029 on for loop. Last set of coefficients were not beeing calculated,
15030 which caused a bit of breakage.
15032 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
15033 functions in geometry.c for calculating the closest segment.
15034 (bezierconn_distance_from): use distance_bez_line_point to calculate
15037 * lib/geometry.c (distance_bez_line_point): new function to calculate
15038 the distance from an open bezier line to a point.
15039 (distance_bez_shape_point): new function to calculate the distance
15040 from a closed bezier shape.
15041 (distance_ellipse_point): new function to calculate the distance from
15042 a filled ellipse to a point.
15044 * lib/geometry.h (BezPoint): moved this structure here from render.h
15046 2000-04-12 James Henstridge <james@daa.com.au>
15048 * lib/geometry.c (distance_bez_seg_point): new function to calculate
15049 the distance from a bezier segment.
15051 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
15052 to calculate the distance from the object.
15054 * lib/geometry.c (distance_polygon_point): function for calculating
15055 the distance from a polygon to a point.
15057 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
15060 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
15061 breaks can be inserted in the tool box.
15063 * doc/sheet.dtd: updated the DTD
15064 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
15066 2000-04-12 James Henstridge <james@daa.com.au>
15068 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
15069 macro if the dialog is a GtkDialog :(
15071 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15073 * objects/standard/polygon.c: Connectionpoints now properly
15074 managed in a GList. As far as I can tell, this will not dieturb
15075 the order (but I have the nagging doubt...)
15077 * lib/polyshape.c: No longer knows about connectionpoints.
15079 2000-04-11 James Henstridge <james@daa.com.au>
15081 * app/Makefile.am: fix makefile for bonobo build.
15083 * configure.in: fix checks for bonobo.
15085 * app/menus.c: added entries for the plugin manager.
15087 * app/Makefile.am (dia_core_files): added plugin manager to files
15090 * app/plugin-manager.[ch]: the plugin manager dialog.
15092 * app/display.c (display_update_menu_state): set the antialiased
15093 menu entry to the correct value.
15095 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
15097 * objects/custom/custom_object.c: not all renderers like ellipses with
15098 negative dimensions. This could cause ellipses to disappear when using
15099 the flip_h and flip_v functions.
15101 * samples/grafcet.dia: fixed speling and correctness.
15103 2000-04-11 James Henstridge <james@daa.com.au>
15105 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
15106 exposed the dia_plugin_load and dia_plugin_unload functions.
15108 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
15109 already created PluginInfo structure.
15111 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
15114 * lib/sheet.c: fix up call to dia_config_filename.
15116 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
15117 file. This would save information such as which plugins not to
15118 load during startup.
15120 2000-04-09 James Henstridge <james@daa.com.au>
15122 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
15124 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
15126 * lib/plug-ins.c (dia_register_plugins):
15127 Don't free the value returned from g_getenv.
15129 2000-04-09 Anders Carlsson <andersca@gnu.org>
15131 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
15133 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
15135 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
15136 right to left, select objects that intersect the rubberbanding rectangle
15137 instead of selecting objects that are in the rectangle.
15139 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
15141 * lib/diagramdata.h: Likewise.
15144 2000-04-09 James Henstridge <james@daa.com.au>
15146 * lib/plug-ins.[ch]: add copyright messages to files.
15148 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
15151 * objects/sybase/sybase.c (dia_plugin_init):
15152 * objects/network/network.c (dia_plugin_init):
15153 * objects/flowchart/flowchart.c (dia_plugin_init):
15154 * objects/custom/custom.c (dia_plugin_init):
15155 * objects/chronogram/chronogram.c (dia_plugin_init):
15156 * objects/UML/uml.c (dia_plugin_init):
15157 * objects/SADT/sadt.c (dia_plugin_init):
15158 * objects/GRAFCET/grafcet.c (dia_plugin_init):
15159 * objects/FS/fs.c (dia_plugin_init):
15160 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
15163 * objects/standard/standard.c (dia_plugin_init): change over to new
15166 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
15167 the version checker for plugins.
15169 * app/app_procs.c: remove plugin loading code from here, and use
15170 code from plug-ins.[ch]. Also move registration of internal
15171 objects/filters to a `builtin' plugin.
15173 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
15175 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
15177 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
15178 defined variable in EXTRA_DIST.
15180 * app/preferences.h: removed dia_config_filename from header.
15182 * app/preferences.c: removed dia_config_filename function.
15184 * lib/dia_dirs.c (dia_config_filename): moved function over to this
15185 file. Also changed implementation slightly so that it should work
15186 on the win32 port correctly (and use NT home directories).
15188 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15189 it should have been.
15191 * lib/plug-ins.[ch]: new plugin loading code.
15193 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15195 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15197 * lib/polyshape.c: Fix closest segment finding, exposes deeper
15198 bugs in adding corners to 'wraparound' segment.
15200 * objects/standard/polygon.c: Added connection points (fixed so
15201 far), set menu sensitivity.
15203 * lib/polyshape.c: Changed to box-style handles, fixed for start
15204 and ends not being special, added initial connections,
15206 * lib/dummy_dep.h: Added polyshape (gotcha!)
15208 * objects/standard/pixmaps/ellipse.xpm:
15209 * objects/standard/pixmaps/box.xpm:
15210 Filled element pixmaps with white.
15213 * objects/standard/polygon.c:
15215 * objects/standard/standard.c:
15216 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
15217 * lib/Makefile.am (libdia_a_SOURCES):
15219 * app/interface.c (tool_data):
15220 Added Standard/Polygon object and PolyShape lib object. Still
15221 needs inside grab and connection points.
15223 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15226 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15229 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15230 if (argv) outside ifdefs.
15232 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15234 * objects/standard/image.c (image_set_props):
15235 Aspect ratio is back in town.
15237 * app/Makefile.am (dia_LDADD):
15240 Check for gdk_pixbuf (by default disabled, for now)
15242 * app/render_eps.c (draw_image):
15243 * app/render_libart.c (draw_image):
15244 * app/render_gnomeprint.c (draw_image):
15245 Support for alpha mask in rendering. Color postscript, too.
15249 Support for gdk_pixbuf and proper masking for exports.
15251 2000-04-01 Kjartan Maraas <kmaraas@online.no>
15253 * sheets/*.sheets: Updated Norwegian translations.
15255 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15257 * lib/text.c (text_insert_char):
15258 * lib/render_store.c (add_data):
15259 Made realloc double the alloced space rather than add
15260 a fixed amount, to reduce memory stress.
15262 * app/select.c: Added new select method 'Transitive'
15263 that select every reachable (by connections) object.
15265 2000-03-27 Kjartan Maraas <kmaraas@online.no>
15267 * dia.desktop: Added Norwegian translation.
15269 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15271 * app/render_eps.c:
15272 * app/render_svg.c:
15273 Don't dereference NULL pointer if the renderer
15274 couldn't open the file. Fix by Lars Clausen.
15275 Bug reported by Martin Chisholm <b1mt@unb.ca>
15277 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15281 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15283 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15285 * app/dia.gnorba (location_info):
15286 Changed to correct executable name.
15288 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15291 Don't do any argument parsing or initialization
15294 * app/dia_embedd.c:
15295 Call init_server_factroy before app_init.
15296 Call app_init with argv==NULL
15297 Now we don't get any critical error on startup.
15300 Add Electric and Pneumatic to makefile list.
15302 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
15304 * shapes/Electric/*:
15305 * sheets/Electric.sheet:
15306 Add some Electric circuit shapes.
15308 * shapes/Pneumatic/*:
15309 * sheets/Pneumatic.sheet:
15310 Add some Pneumatic & Hydraulic circuit shapes
15311 (both sheets are still incomplete, though feature enough
15312 things for basic circuits).
15314 * shapes/Contact/l_*.(xpm|shape):
15315 * sheets/Contact.sheet
15316 * shapes/Contact/Makefile.am
15317 made the older electric circuit shapes in Contact obsolete (disabled
15318 them in the sheet, made that sheet Ladder only). Fixed the makefile
15319 for forgotten items.
15321 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
15324 Add support for Dia bonobo component.
15325 Currently a bit raw, so it's commented out.
15327 * app/dia_embedd.c:
15329 New files for embedding dia.
15330 The menu disabling hack is a bit gross. Esp. for GNOME.
15333 Add new function app_is_embedded();
15336 Don't destroy diagram when last display is destroyed if embedded.
15339 Change initialization of display so it works with embedding.
15342 Clarify comment about display destruction.
15344 * app/interface.[ch]:
15345 Added top_level_window argument to create_display_shell.
15346 Don't open a top-level window if embedding.
15347 Don't quit app if trying to close toolbox window when embedding.
15348 Add toolbox_show() and toolbox_hide().
15351 Added app_is_embedded() function (just returns false).
15352 Added toolbox_show() call in main().
15355 Added code for getting toolbox menus. This is used to
15356 hide some menu items when running embedded.
15359 Include sheet.h to remove warning.
15361 * objects/UML/association.c:
15362 Clarify association direction text.
15364 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
15367 Fixed man page so whatis parsing works.
15369 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
15371 * app/render_libart.c (new_libart_renderer):
15372 Fix from segg <segg@infonet.ca> to compile without libart.
15373 I forgot to change the stub for new_libart_renderer when doing
15374 the interactive renderer stuff for libart.
15376 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
15378 * dia.desktop: Added Irish translation.
15380 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
15382 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
15384 * app/load_save.c (fchmod): OS/2 defines only.
15386 2000-03-07 James Henstridge <james@daa.com.au>
15388 * lib/properties.c (prop_get_widget): set the position in the option
15391 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
15394 * app/export_png.c:
15395 * app/render_libart.[ch]:
15396 Don't export png:s with an interactive libart renderer.
15398 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
15400 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
15402 2000-03-02 James Henstridge <james@daa.com.au>
15404 * dia.spec (%build): unset LINGUAS before running configure. This
15405 ensures that all translations get included in the RPM.
15407 * lib/properties.c (object_create_props_dialog): put in a check for
15408 a NULL return from the describe_props() object method.
15409 (prop_desc_lists_union): make sure that the returned array is not
15411 (prop_desc_lists_intersection): same here.
15413 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
15415 * objects/ER/Makefile.am:
15416 * objects/FS/Makefile.am:
15417 * objects/UML/Makefile.am:
15418 Don't link object libs with gtk.
15420 2000-02-29 James Henstridge <james@daa.com.au>
15422 * app/preferences.c (prefs_save): check to see if the file could
15423 be opened before writing the prefs.
15425 * app/disp_callbacks.c (popup_object_menu): pass the button event
15426 to gtk_menu_popup. This allows you to click and release to open
15428 (ddisplay_canvas_events): same here.
15429 (create_object_menu): set the object type menu item in the object
15430 menu to be insensitive.
15432 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
15433 as we are now requiring a new version of libxml.
15435 * dia.spec: updated version number. Added requirement for
15438 * configure.in: incremented version number to 0.84.
15439 Added check for libxml >= 1.8.5. This will prevent some of the
15440 problems people have had with broken libxml versions.
15442 * NEWS: added news items.
15444 * app/interface.c (create_color_area): removed call to realize parent
15445 widget. Segg <segg@infonet.ca> reported that it caused a warning,
15446 but I haven't seen it on my copy of dia.
15448 2000-02-28 James Henstridge <james@daa.com.au>
15450 * app/export_png.c: added copyright notice, and made the band height
15453 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
15455 * lib/font.c (suck_font):
15456 Fixed off-by one bug in font pixmap height.
15457 Fixes the problem with garbage at the bottom of some text in aa mode
15458 and in png exported files.
15460 2000-02-27 James Henstridge <james@daa.com.au>
15462 * app/app_procs.c: add the png export filter if it was compiled in.
15464 * app/export_png.c (export_png): new PNG export filter. This requires
15465 the libart renderer to work as it needs a renderer that renders to a
15468 * configure.in: add check for libpng.
15470 * lib/message.c (message_internal): use a GNOME dialog here as well.
15472 * app/display.c (ddisplay_close): use a GNOME dialog here.
15474 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
15475 when exporting to EPS. This is because some people said the EPS
15476 output was too large
15478 2000-02-26 James Henstridge <james@daa.com.au>
15480 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
15483 * app/app_procs.c (app_exit): use a GNOME dialog here.
15485 * app/preferences.c (prefs_create_dialog): if GNOME support is
15486 enabled, show a GNOME dialog.
15488 * app/grid.c (grid_draw): use preferences when drawing page break
15491 * app/preferences.c: add page break preferences to dialog.
15493 * app/preferences.h: added page break preferences.
15495 2000-02-25 James Henstridge <james@daa.com.au>
15497 * sheets/UML.sheet: added new objects.
15499 * objects/UML/uml.c: link in the two new objects.
15501 * objects/UML/node.c:
15502 * objects/UML/branch.c: new UML objects from Stfan Seefeld
15503 <seefelds@magellan.umontreal.ca>.
15505 2000-02-24 James Henstridge <james@daa.com.au>
15507 * objects/custom/custom_object.c: converted to use the properties
15508 interface. In the future, it would be nice to add support for
15509 defining custom properties for custom objects, but that can wait.
15511 2000-02-22 James Henstridge <james@daa.com.au>
15513 * sheets/Circuit.sheet: added new circuit shapes to sheet.
15515 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
15516 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
15517 and adds a few new features.
15519 2000-02-21 Daniel Egger <egger@suse.de>
15521 * sheets/*.sheets: Added German translations and made some
15522 corrections to the others.
15524 2000-02-21 James Henstridge <james@daa.com.au>
15526 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
15528 * shapes/Circuit/...: added new shapes from Erik Janssens.
15530 2000-02-20 James Henstridge <james@daa.com.au>
15532 * app/interface.c (create_color_area): realize the parent window
15535 * objects/standard/image.c: properties patch for standard image
15536 object, from Lars Clausen.
15538 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
15540 * lib/properties.h (PropType): added file property type.
15542 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
15545 * app/interface.c: use wrap box for toolbox.
15547 * app/Makefile.am: added new files.
15549 * app/gtk*wrapbox.[ch]: added wrap box widget.
15551 2000-02-19 James Henstridge <james@daa.com.au>
15553 * sheets/network.sheet: added extra shapes to networks sheet.
15555 * configure.in (AC_OUTPUT): added shapes/network/Makefile
15557 * shapes/network/*: added shapes that were posted to the list a while
15560 * shapes/Makefile.am (SUBDIRS): added network subdirectory
15562 * app/menus.c (toolbox_menu_items): don't right justify help menu for
15563 gtk+ version of menus.
15565 * app/properties.c (create_dialog): use a GnomeDialog if we happen
15568 2000-02-18 James Henstridge <james@daa.com.au>
15570 * objects/flowchart/box.c: set extra data for corner radius and text
15571 padding properties.
15573 * objects/standard/box.c: set extra data for corner radius property.
15575 * lib/properties.h: set extra data in some standard properties.
15577 * lib/properties.c (prop_get_widget): look at the extra data for
15578 int, real and enum property types. They now use GtkSpinButton and
15579 GtkOptionMenu respectively.
15581 * lib/properties.h: extra data members for creating property setting
15584 2000-02-17 James Henstridge <james@daa.com.au>
15586 * objects/flowchart/box.c: reverted load/save functions back to
15587 previous implementations. Made box use standard property names.
15589 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
15591 * app/grid.c: add more digits to the grid edit dialog. This patch
15592 was also from Lars Clausen.
15594 * objects/standard/zigzagline.c:
15595 * objects/standard/textobj.c:
15596 * objects/standard/polyline.c:
15597 * objects/standard/line.c:
15598 * objects/standard/ellipse.c:
15599 * objects/standard/box.c:
15600 * objects/standard/bezier.c:
15601 * objects/standard/arc.c: patches to add properties code to standard
15602 objects. Based on patches from Lars Clausen. I have also removed
15603 some dead code from the files.
15605 * lib/properties.h (PROP_STD_*): define a number of standard
15606 properties. Where appropriate, objects should include these
15607 properties in their PropDescription list. This way, the intersection
15608 of properties of two different shapes will be greater.
15610 2000-02-14 James Henstridge <james@daa.com.au>
15612 * objects/flowchart/box.c (box_load, box_save): use property save
15613 routines. Make sure that any props not handled by object_load_props
15614 are loaded before calling object_load_props, or we get errors because
15615 update_data is called.
15617 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
15618 error that could cause properties to be loaded incorrectly.
15619 (object_set_props_from_offsets): similar here.
15621 * lib/properties.[ch] (prop_{load,save}): functions for loading
15622 or saving a property in Dia's XML file format.
15623 (object_{load,save}_props): load or save some properties of an
15624 object. These functions should help simplify the load/save methods
15625 of objects that implement the properties interface.
15627 2000-02-13 James Henstridge <james@daa.com.au>
15629 * objects/flowchart/box.c: use offset code to simplify property
15632 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
15634 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
15636 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
15638 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
15640 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
15643 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
15646 Add the custom object to DIA_LIB_PATH in run_dia.sh
15648 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
15650 * sheets/Circuit.sheet:
15651 * shapes/l_sout* (NEW):
15652 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
15653 variants of simple, inverted, set and reset outputs.
15654 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
15655 probably a split of Contact and Ladder sheets. And then a major
15656 revamping of the Contact sheet.
15658 2000-02-10 James Henstridge <james@daa.com.au>
15660 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
15662 * app/app_procs.c (register_all_objects): don't explicitely
15663 register the custom objects library -- let it be loaded by the
15664 normal plugin loading methods.
15666 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
15668 * objects/custom/Makefile.am: build libcustom_objects as a shared
15671 * objects/custom/shape_info.[ch]: don't read the description field
15672 of custom shapes. It makes more sense to have these in the sheet
15673 file to localise the parts of dia that translators have to deal
15676 * objects/custom/custom_object.c (custom_object_new): do not
15677 create the sheet object for the new custom shape -- this is
15678 handled by the custom sheet code.
15680 * objects/custom/custom.c: change over to being a normal plug-in
15681 rather than being linked with the main dia executable.
15683 2000-02-09 James Henstridge <james@daa.com.au>
15685 * sheets/Circuit.sheet:
15686 * sheets/Flowchart.sheet:
15687 * sheets/Contact.sheet: fixed up sheets.
15689 * objects/custom/custom_object.c (custom_object_new): set the
15690 extra ObjectType fields.
15692 * lib/sheet.c: use extra ObjectType fields when creating sheet
15693 objects. Give a warning if <shape> tags are found in a sheet
15694 file. Now the custom sheet code does not know about custom
15695 shapes -- they look like any other object type.
15697 * lib/object.h (ObjectType): added extra members
15699 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
15701 * app/linewidth_area.c:
15702 Added code to set arbitrary line width.
15703 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
15705 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
15707 * app/linewidth_area.c:
15709 Add support for font-sucking.
15710 Implementation borrowed from gnome-canvas.
15712 * app/render_libart.[ch]:
15713 Implement text rendering.
15715 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
15717 * app/properties.c (create_dialog):
15718 ref and sink no_properties_dialog.
15720 2000-02-07 James Henstridge <james@daa.com.au>
15722 * app/group.c (group_describe_props): new function. Return the
15723 intersection of the properties of the contained objects that
15724 implement the describe_props interface.
15725 (group_get_props): implement by iterating through contained objects
15726 and calling their get_props method until all properties have been
15727 set. Maybe this should go through all objects all the time??
15728 (group_set_props): implement by calling set_props method on all
15730 (group_ops): use standard props dialog creation routines.
15732 * lib/properties.c (prop_desc_lists_intersection): fix implementation
15733 of intersection -- I was using i++ instead of i-- in a for loop :(
15735 * objects/custom/custom.c (custom_register_objects): fix usage
15736 of dia_get_data_directory again.
15738 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
15739 actually read the sheets.
15741 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
15743 Win32 port by Hans Breuer <Hans@Breuer.org>
15746 Remove DATADIR and LIBDIR defines.
15749 Add dia_dirs.c and dia_dirs.h
15750 Added DATADIR and LIBDIR defines.
15752 * lib/dia_dirs.[ch]:
15753 New files for handling special directories.
15758 * objects/custom/custom.c:
15759 Fix warnings. Use directory functions.
15762 Add prototype for diagram_redraw_all.
15764 * app/diaunitspinner.c:
15767 * app/preferences.c:
15771 Win32 doesn't have mkstemp and fchmod.
15773 * app/paginate_psprint.c:
15774 Win32 calls popen _popen and pclose _pclose.
15777 Win32 calls finite _finite.
15780 Win32 needs to dllexport the color vars.
15782 * objects/GRAFCET/step.c:
15783 * objects/chronogram/chronoref.c:
15784 snprintf -> g_snprintf
15786 2000-02-05 James Henstridge <james@daa.com.au>
15788 * lib/properties.c: more fixes so that it doesn't crash when using
15789 properties. The undo/redo stuff also works!!
15791 * objects/flowchart/box.c (box_{describe, get, set}_props): test
15792 object where I have implemented the new properties interface
15793 complete with automatic properties dialog generation.
15795 * lib/properties.c (object_apply_props): fixed stupid error when
15796 creating the old_props array. Also, it no longer frees the props
15797 array -- you will have to do that yourself.
15799 2000-02-04 James Henstridge <james@daa.com.au>
15801 * app/properties.c (properties_apply): pass object_part to
15804 * lib/object.h (ApplyPropertiesFunc): added widget argument.
15806 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
15807 created this way as well.
15809 * objects/*/*.c: ref and sink the properties dialog window for each
15810 widget. It can't rely on ref count being incremented by
15811 properties_show anymore.
15813 * app/properties.c (properties_show): don't ref the widget before
15814 removing it, or its ref count will increase each time you open the
15815 properties dialog. Don't unparent the widget, as container_remove
15818 * lib/object.h: fixed up prototypes for new object methods.
15820 * lib/properties.[ch]: added functions for automatically creating
15821 a properties dialog from the output of describe_props, get_props and
15823 (object_apply_props): apply properties and return an ObjectChange
15824 structure that can be used for undo.
15826 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
15828 * objects/GRAFCET/transition.c: minor leak plugged.
15830 * sheets/GRAFCET.sheet:
15831 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
15832 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
15834 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
15835 new ones (for condition.c).
15836 * objects/GRAFCET/action.c: added connection points for the conditions.
15837 * samples/grafcet.dia: updated the sample to improve conformance to
15838 IEC 848 and take advantage of dia's new features.
15840 * lib/geometry.h: (point_get_normed) fixed a typo.
15842 2000-02-02 James Henstridge <james@daa.com.au>
15844 * lib/object.h: added object functions describe_props, get_props and
15845 set_props. Do type definitions so that object.h doesn't need to
15846 include properties.h, since properties.h includes object.h.
15848 * lib/properties.[ch]: more hacking.
15850 * po/de.po: updated po file.
15852 2000-01-30 James Henstridge <james@daa.com.au>
15854 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
15855 check to see if the C compiler accepts the flag beforehand.
15857 * lib/properties.[ch]: start of properties code.
15859 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
15861 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
15863 * sheets/GRAFCET.sheet:
15864 * sheets/GRAFCET/etapemc.xpm: (NEW)
15865 * sheets/GRAFCET/etapesp.xpm: (NEW)
15866 * objects/GRAFCET/step.c: Added the macro and
15867 sub-program call step types.
15869 * objects/GRAFCET/receptivity.[ch]: renamed to
15870 objects/GRAFCET/boolequation.[ch].
15871 * objects/GRAFCET/transition.c: changed (Receptivity *) to
15874 * lib/connpoint_line.[ch]:
15875 * objects/chronogram/chronoline.c:
15876 * objects/chronogram/chronoref.c:
15877 * objects/GRAFCET/vergent.c:
15878 * objects/standard/line.c:
15879 * objects/SADT/box.c: Minor CPL interface changes, factored out the
15880 point count adjustment code into the CPL object.
15882 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
15884 * app/render_libart.c:
15885 Added support for images and bezier curves.
15886 Only text/fonts missing now.
15888 * app/render_gdk.c:
15889 Removed old erronous comment.
15891 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
15893 * objects/chronogram/chronoline_event.c: removed references to
15894 lround(). Please don't insist, I'm already red of shame.
15896 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
15898 * app/render_libart.[ch]:
15900 Non-finished libart renderer.
15903 Added HAVE_LIBART flag
15909 Call gdk_rbg_init().
15911 * app/connectionpoint_ops.c:
15912 * app/disp_callbacks.c:
15914 * app/handle_ops.c:
15916 * app/modify_tool.c:
15917 Change ddisp->renderer type from RendererGdk * to Renderer *
15918 Draw zoom and select rects in ddisp->canvas->window instead
15919 of ddisp->renderer->renderer->pixmap.
15921 * app/display.[ch]:
15922 Add aa_renderer to DDisplay, and support for it.
15923 New function ddisplay_set_renderer() for changing renderer.
15924 Add ddisplay_transform_coords_double() function, used by aa renderer.
15925 Change ddisp->renderer type from RendererGdk * to Renderer *
15928 Add antialias to menu.
15930 * app/commands.[ch]:
15931 add view_aa_callback function
15932 Change ddisp->renderer type from RendererGdk * to Renderer *
15934 * lib/geometry.[ch]:
15935 Added IntRectangle and int_rectangle_union.
15937 2000-01-28 James Henstridge <james@daa.com.au>
15939 * app/commands.h: removed prototypes.
15941 * app/commands.c: removed the functions that have been moved to
15944 * app/filedlg.h: added new prototypes.
15946 * app/filedlg.c (file_open_callback): move open dialog to this
15947 file. This implementation should remember the current directory
15948 between file loads.
15949 (file_save_as_callback): moved this dialog as well.
15950 (file_save_callback): moved this function here.
15952 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
15953 align page boundaries to the origin.
15955 * app/diagram.c (diagram_update_extents): redraw the diagram if the
15956 scaling factor changes while updating the extents. This is so the
15957 page breaks get redrawn correctly.
15959 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
15962 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
15963 For normal mode, use (0,0) as the origin. For `fit to' mode, use
15964 the corner of the bounding box.
15966 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
15967 into page setup dialog.
15968 (pagesetup_apply): apply new `fit to' attributes to the diagram.
15970 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
15971 (diagram_data_save): save `fit to' data.
15973 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
15974 (data_update_extents): when in `fit to' mode, update scale factor
15975 when we update the extents.
15977 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
15980 * .../.cvsignore: added some cvsignore files to quieten cvs.
15982 * app/pagesetup.c (pagesetup_changed): added code to change the
15983 scaling/fit to values as you change the options in the page setup
15984 dialog. I haven't added code so that the fit to options are saved
15987 * app/diapagelayout.[ch]: changed the scaling portion of the widget
15988 to make it easier to set a `fit to' style scaling factor.
15990 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
15991 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
15992 but connpoint_line-based, so that there's a connection point at the
15993 middle of each segment. Currently only the SADT arrow uses this.
15995 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
15997 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
15998 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
15999 saving and editing of properties (and default properties).
16000 See the new objects (GRAFCET, SADT, chonograms) for examples.
16001 For already too hairy stuff, see objects/chronogram/chronoline.c.
16003 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
16004 evenly spaced connection points, which the user can add or remove at
16005 will. An object can own several connection point lines. See the SADT
16006 Box, or the GRAFCET vergents for examples.
16008 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
16009 quiet about unused stuff.
16011 * objects/GRAFCET (NEW):
16012 * samples/grafcet.dia (NEW):
16013 Added support for GRAFCET charts.
16015 * objects/chronogram (NEW):
16016 * samples/chronograms.dia (NEW):
16017 Added support for chronograms (feature requested by Ronald L. Chichest;
16018 I found I'd use it often, too).
16020 * objects/standard/line.c: Replace the middle connectionpoint by
16021 a whole connection point line, which defaults to one point (hint,
16022 hint). New Line object menu to take advantage of this.
16023 "Bothwards" compatibility is preserved (although you may loose
16024 connections if you load a newer file in a older dia).
16026 * app/lineprops_area.c:
16028 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
16029 (feature requested by Benjamin Kahn).
16030 Merged in Steffen Macke's slashed arrow head type.
16032 * app/Makefile.am (app/run_dia.sh actually):
16033 Added $DEBUGGER in front of dia's invocation, so that
16034 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
16035 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
16036 "EFENCE=-lefence" to link with Electric Fence.
16038 * configure.in: Made gcc do more aggressive optimisations on i386, and
16041 2000-01-24 James Henstridge <james@daa.com.au>
16043 * lib/geometry.[ch]: added inline versions of functions. Used
16044 glib's G_INLINE_FUNC stuff, so it should still work on systems
16045 without inline funcs.
16047 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
16048 it outputs the correct element id for the ellipse objects.
16050 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16052 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
16053 object_add_handle_at. Message typo fixed.
16055 * lib/sheet.c (load_register_sheet):
16056 potential bug fixed (warning hunt).
16058 * objects/custom/custom.c (custom_object_load): disabled an assertion
16059 which made dia abort upon failure to load a shape file. Fixed a
16062 * objects/custom/shape_info.c (load_shape_info): Made the custom
16063 shape load code ignore XML comments between <?xml ...?> and the
16064 root object (mostly useful to put the emacs magic comments).
16066 * app/load_save.c: Made dia do backup copies of files when saving,
16067 and complain in case of failure.
16069 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16071 * AUTHORS: fixed my address (ISP thought it was a great idea to change
16076 * shapes/Contact/*:
16077 * sheets/Contact.sheet:
16078 * sheets/Makefile.am:
16079 Added support for Contact and LADDER charts.
16081 * dia.desktop: Added a French translation.
16083 2000-01-23 James Henstridge <james@daa.com.au>
16085 * app/commands.c (help_about_callback): don't die if can't load
16088 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
16089 out NaN's when performing bezier curve subdivision.
16091 * objects/custom/custom_object.c: initialise memory of Custom structs
16094 * app/render_svg.c (draw_image): added image support to the XML
16095 output filter. The image is just referenced, rather than being
16096 included inline, so if you copy the SVG file somewhere else, you
16097 may need to move the images or fix up the links.
16099 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
16100 so the text is not just displayed in black all the time.
16102 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
16104 * configure.in: fixed libpopt test so we wont try to build with
16107 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
16109 * configure.in: Added "uk" to ALL_LINGUAS.
16111 1999-12-24 James Henstridge <james@daa.com.au>
16113 * po/ru.po: updated russian translation from Valek Filippov.
16115 * app/render_svg.c (new_svg_renderer): make output use 19991203
16116 version of SVG DTD. Use viewBox to set the extents of the view.
16118 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
16119 ftp.gnome.org as the download.
16121 * TODO (TODO): weeded out completed todo items and added a few extra.
16123 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
16125 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
16126 be good to get rid of the object/shape distinction and separate
16127 the custom shape code out from the main application.
16129 * objects/custom/README, diagram.dtd: moved to new doc directory.
16130 Renamed the custom shapes README to custom-shapes. Also updated
16131 custom shape docs a bit and removed the section on sheet files, as
16132 that has changed a bit.
16134 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
16135 of the image data is larger than the maximum cell array. I should
16136 add code to break scan lines down further in this case, but for now
16137 an error message is better than an infinite loop.
16139 * app/filedlg.c (file_export_ok_callback): show a dialog if we
16140 couldn't determine the export filter to use.
16142 * app/commands.c (help_about_callback): fixed up about box logo
16143 expose bug. Now just use a GtkPixmap widget rather than a
16144 GtkDrawingArea and calling gdk_imlib_paste_image.
16146 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
16147 because automake does not always get things right.
16149 * configure.in: updated version number to 0.83.
16151 * app/preferences.c (prefs_save):
16152 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
16153 for fopen. Text is the default file mode anyway.
16155 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
16156 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
16157 * app/load_save.c (write_objects, write_connections):
16158 * app/filedlg.c (file_export_ok_callback):
16159 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
16160 * lib/dia_xml.c (data_add_point, data_add_rectangle):
16161 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
16162 snprintf to calls to g_snprintf.
16164 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
16165 as the picture name.
16167 1999-12-23 James Henstridge <james@daa.com.au>
16169 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
16170 negative numbers. This fixes the upside down text problem I was
16172 (draw_image): implemented the image code. It will try to split the
16173 image data up into bands if it is too big to fit into a single
16174 cgm cell array element. It will have problems if you try to insert
16175 an image wider than about 10,000 pixels though.
16177 * Makefile.am: use gnomedatadir for the files that need to be
16178 installed in gnome's datadir. This is mainly to help people doing
16179 packages for weird setups.
16181 1999-12-22 James Henstridge <james@daa.com.au>
16183 * plug-ins/cgm/cgm.c: added support for text. Now only images and
16184 beziers are left to do. The text seems to be the wrong way up
16185 still. This is probably a problem with character orientation
16186 element, but I have used what the settings given in the standard.
16187 Other than this, the CGMs dia produces are readable (and displayable)
16188 by ralcgm and corel draw.
16189 (draw_string): subtract from the X coord rather than the Y coord for
16190 center and right aligned text.
16192 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
16193 the size of a real number, and changed name of write_double to
16194 write_real. Consider changing to fixed real encoding. Also, now
16195 all element headers are correct. Once the real number encoding is
16196 fixed, only text, beziers and images are left to do.
16198 1999-12-21 James Henstridge <james@daa.com.au>
16200 * Makefile.am (SUBDIRS): recurse into plug-ins.
16202 * configure.in: add plug-ins directory makefiles to list.
16204 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
16205 not done yet. Also, the output files are not quite correct.
16207 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16208 font. It doesn't work if you do.
16210 1999-12-20 James Henstridge <james@daa.com.au>
16212 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16213 export the files. Instead, use filter_guess_export_filter to
16214 guess the correct format to save in and use the appropriate filter.
16215 It defaults to postscript for compatibility.
16217 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16220 * app/commands.[ch]: removed export to eps functions.
16222 * app/menus.c: removed export to eps menu items.
16224 * app/app_procs.c: register new export filters.
16226 * app/load_save.[ch]: define dia native export filter.
16228 * app/render_eps.[ch]: define eps export filter.
16230 * lib/filter.h: added diafilename argument to the DiaExportFunc
16231 prototype. This is useful for putting the source of the diagram
16232 into the output file for instance.
16234 * app/app_procs.c (app_init): register the SVG export filter. Have
16235 to get EPS code converted to this API, and maybe also allow saving in
16236 DIA's native format from the export dialog. In fact, it is now
16237 possible to load an export filter from a shared library and it will
16238 integrate into the interface correctly.
16240 * app/menus.c: removed references to the SVG renderer.
16242 * app/commands.[ch]: removed svg stuff.
16244 * app/diagram.[ch]: removed diagram_export_to_svg function.
16246 * app/render_svg.[ch]: added a DiaExportFilter structure for this
16249 * app/filedlg.[ch]: code for the new export diagram dialog. Will
16250 probably move the open/save dialogs to this file as well.
16252 1999-12-19 James Henstridge <james@daa.com.au>
16254 * lib/filter.[ch]: start of interface for generalised handling of
16255 filters. I have only done code for export filters so far. I still
16256 need to do the gui for this, and convert the current SVG and EPS
16257 filters to the new API.
16259 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
16260 weren't setting the last handle correctly. It was actually assigning
16261 to the wrong position in the handles array, so the last handle was
16262 left as NULL, which caused the segfault.
16264 * objects/standard/image.c (image_copy): modified routine so that
16265 it just adds a reference to the DiaImage structure in the new image
16266 object. This seems to have cleared up the problems with copying
16269 * dia.spec: spec file additions from John Gotts.
16271 1999-12-12 James Henstridge <james@daa.com.au>
16273 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
16274 has not been released yet though.
16276 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16279 The following based on a patch from Lars Clausen:
16281 * objects/standard/bezier.c (bezierline_move_handle): when performing
16282 the initial drag of the bezierline, move the control points to keep
16285 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16286 make the new control points a bit closer to the major point.
16288 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16289 as the reason for the move.
16290 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16293 * lib/handle.h: new handle move reasons.
16295 1999-12-09 James Henstridge <james@daa.com.au>
16297 * dia.spec: include the new files in RPMs.
16299 * Makefile.am: install these new files.
16301 * dia.keys.in: file describing actions and icon for dia diagrams for
16302 use in the gnome file manager.
16304 * dia.mime: a file defining the application/x-dia-diagram mime type.
16306 * dia-diagram.png: an icon for dia diagrams.
16308 1999-12-08 James Henstridge <james@daa.com.au>
16310 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16312 * plug-ins/python/pydia-display.[ch]: wrapper for display.
16314 * objects/standard/ellipse.c: applied Lars's patch to optionally not
16315 draw the background of the ellipse.
16317 * app/load_save.c (read_connections): do some sanity checking on the
16318 handle and connection point numbers before performing the object
16321 * lib/bezier_conn.c (bezierconn_load): give the correct number of
16322 handles when loading a BezierConn.
16324 1999-12-07 Kjartan Maraas <kmaraas@online.no>
16326 * sheets/*.sheet: Finished Norwegian translations.
16328 1999-12-07 James Henstridge <james@daa.com.au>
16330 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16331 (PyDia_GetObjectType): find object type function.
16333 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16334 method for diagrams.
16336 * plug-ins/python/pydia-object.c: added methods for DiaObject and
16339 * AUTHORS: added Lars and Cyrille to the authors file.
16341 * objects/standard/bezier.c (bezierline_add_segment_callback): place
16342 new point correctly.
16344 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16346 * lib/bezier_conn.c: applied Lars's patch for placement of the new
16347 point when adding a segment to a BezierConn.
16349 1999-12-06 James Henstridge <james@daa.com.au>
16351 * plug-ins/python/test.py: test script for the python plug-in.
16353 * plug-ins/python/python.c: this file contains the plug-in startup
16354 code for the python plugin. Right now, it just initialises the
16355 dia module and executes a script.
16357 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
16359 * objects/standard/bezier.c (bezierline_draw): draw control lines for
16360 bezier curve if we are using an interactive renderer (ie. only if
16361 displaying to the screen).
16363 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
16364 to draw control lines on to a bezier curve. Based on implementation
16367 * objects/standard/bezier.c (bezierline_delete_segment_callback):
16368 calculate segment number using closest_segment rather than
16369 closest_handle. Sometimes the closest handle is part of a different
16371 (bezierline_draw): use correct size for start arrow.
16373 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
16374 * lib/geometry.c (distance_line_point): added notes to documentation
16376 * app/object_ops.c (object_list_align_v):
16377 (object_list_align_h): fix of by one error when calculating free space
16378 for equal distance alignment.
16379 * app/menus.c (objects_align_h, objects_align_v): include align
16380 adjacent menu items in the gnome version of the menus.
16381 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
16382 align adjacent menu items correctly.
16385 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
16388 * objects/standard/bezier.c: converted bezierline to use BezierConn.
16389 Still a few bugs. It crashes on deleting line segments.
16391 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
16393 1999-12-05 James Henstridge <james@daa.com.au>
16395 * lib/bezier_conn.[ch]: start of BezierConn object
16397 * app/interface.c: add bezierline to toolbox.
16399 * objects/standard/standard.c: initialise bezierline.
16401 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
16402 made a few modifications to get it working nicely. It still needs
16403 a bit of work though. Maybe create a BezierConn object in lib.
16405 1999-12-02 James Henstridge <james@daa.com.au>
16407 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
16409 * plug-ins/python/Makefile.am: tried building everything. It is
16410 building as a library at the moment. I will have to convert it
16411 to a libtool library and add some initialisation code.
16413 * plug-ins/python/diamodule.c: start of the dia module, using the
16414 other object wrappers. Not complete.
16416 1999-12-01 James Henstridge <james@daa.com.au>
16418 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
16419 the handles and connections attributes.
16421 * plug-ins/python/pydia-layer.c: added functions that use
16424 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
16426 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
16428 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
16429 I am currently wrapping the basic elements in the diagram in python
16430 objects -- nothing to see or play with yet.
16432 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
16436 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
16438 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
16442 Added russian translation from Valek Filippov <frob@df.ru>
16444 1999-11-24 James Henstridge <james@daa.com.au>
16447 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
16448 discussed with Alex. Also added extra makefiles so that make install
16451 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
16453 * app/preferences.[ch]:
16455 Added snap to grid preference.
16456 Patch from Michael Leslie <mles@springboardwireless.com>
16458 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16464 * objects/custom/shape_info.c:
16465 All strings returned by libxml must be freed with free, not
16466 g_free, or there will be problems if you use memory debugging
16469 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16471 * app/create_object.[ch]:
16474 * app/commands.[ch]:
16476 * app/interface.[ch]:
16477 Reverted the tool menu patch. It has some 'issues'.
16478 I liked it though, so it'll probably return.
16480 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16482 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
16483 <bruce@cybersight.com> for some purify runs and analysis.
16484 Also a great thank you to Owen Taylor for creating MemProf, a
16485 free memory leak detector that was used to find and verify a
16486 lot of these fixes.
16489 * app/paginate_psprint.c:
16490 * app/render_eps.[ch]:
16491 * app/render_svg.[ch]:
16495 Don't add a reference to ddisp->shell. Why was this done in
16502 Free all strings returned from xmlGetProp
16504 * app/modify_tool.c:
16507 * objects/custom/custom.c:
16508 Use closedir() after opendir().
16510 * objects/custom/shape_info.c:
16511 User g_free() instead of "if (tmp) free(tmp)".
16514 Add newline at end of file.
16517 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
16519 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
16520 Adds tool menu and keyboard shortcuts.
16522 * app/create_object.[ch]:
16523 Use tool_set() instead of tool_reset().
16524 create_create_object_tool() takes extra type argument
16530 Moved tool_data here, export it.
16531 Add separate tool type for all create objects tools.
16532 new functions tool_set().
16535 New callback tool_set_callback.
16538 Moved some pixmaps to interface.c.
16541 Remove tool_data array (moved to tool.c).
16542 Use the tool_data from tool.c.
16543 Remove modify_tool_button global var.
16545 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
16547 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
16550 Interprets command-line arguments as files to open even when
16551 HAVE_POPT is not defined.
16554 Shift-clicking when zooming zooms out, like the Gimp.
16557 Has hotkeys for zoom-100% and snap-to-grid.
16559 1999-11-17 James Henstridge <james@daa.com.au>
16561 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
16562 that it is not jumpy.
16564 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
16566 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
16567 scrolling by pressing the shift key when using the scroll tool.
16569 * sheets/Makefile.am: fixed makefile so that install actually works
16570 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
16572 (SHEETS): install Circuit.sheet
16574 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
16575 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16577 * sheets/Circuit.sheet:
16580 * sheets/Flowchart.sheet:
16581 * sheets/UML.sheet:
16582 * sheets/network.sheet:
16583 * sheets/sybase.sheet:
16586 * sheets/Circuit.sheet:
16587 added some missing French translations
16590 killed the temporary sheet namespace
16592 * objects/custom/custom.c:
16593 obsolete comment cleaned up
16595 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
16599 Added portugese translation from Pedro Morais
16600 <pmmm@rnl.ist.utl.pt>
16602 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
16604 Changed all sheets to be specified in xml.
16605 All sheet objects removed from the C code.
16606 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16611 Updated version to 0.81cvs.
16614 Update run_dia.sh with sheet-dir.
16617 Load all sheets on startup.
16618 Create sheet directory first time.
16619 Don't call custom_register_sheets().
16622 Add sheetdir define
16625 Remove custom_register_sheets().
16628 Add sheet loading code.
16630 * sheet/Circuit.sheet:
16633 * sheet/Flowchart.sheet:
16635 * sheet/network.sheet:
16636 * sheet/sybase.sheet:
16639 * sheet/ER/weakentity.xpm:
16640 * sheet/UML/aggregation.xpm
16641 * sheet/UML/umlclass_template.xpm
16642 Added sheet pixmaps.
16643 These are moved from their old places.
16645 * sheet/.cvsignore:
16649 Removed sheet objects and sheet registration.
16651 * objects/ER/Makefile.am:
16652 * objects/ER/pixmaps/weakentity.xpm:
16653 * objects/UML/Makefile.am:
16654 * objects/UML/pixmaps/aggregation.xpm:
16655 * objects/UML/pixmaps/umlclass_template.xpm:
16656 Removed alternative pixmaps. (Moved to sheet).
16658 * objects/custom/Makefile.am:
16659 * objects/custom/load_sheet.[ch]:
16660 Removed old sheet loading code.
16662 * objects/custom/custom.c:
16663 Load all shapes instead of sheets.
16664 Removed custom_register_sheets().
16666 * objects/custom/custom_object.c:
16669 * objects/custom/shape_info.[ch]:
16670 Added shape_info_getbyname().
16672 * objects/flowchart/Makefile.am:
16673 * objects/flowchart/collate.shape
16674 * objects/flowchart/delay.shape
16675 * objects/flowchart/display.shape
16676 * objects/flowchart/document.shape
16677 * objects/flowchart/extract.shape
16678 * objects/flowchart/flowchart.c
16679 * objects/flowchart/intstorage.shape
16680 * objects/flowchart/magdisk.shape
16681 * objects/flowchart/magdrum.shape
16682 * objects/flowchart/magtape.shape
16683 * objects/flowchart/manualinput.shape
16684 * objects/flowchart/manualop.shape
16685 * objects/flowchart/merge.shape
16686 * objects/flowchart/offlinestore.shape
16687 * objects/flowchart/offpageconn.shape
16688 * objects/flowchart/or.shape
16689 * objects/flowchart/predefdproc.shape
16690 * objects/flowchart/preparation.shape
16691 * objects/flowchart/punchedcard.shape
16692 * objects/flowchart/punchedtape.shape
16693 * objects/flowchart/sort.shape
16694 * objects/flowchart/sumjunction.shape
16695 * objects/flowchart/terminal.shape
16696 * objects/flowchart/transaction.shape
16697 * objects/flowchart/transmittape.shape
16698 * objects/flowchart/pixmaps/collate.xpm
16699 * objects/flowchart/pixmaps/delay.xpm
16700 * objects/flowchart/pixmaps/display.xpm
16701 * objects/flowchart/pixmaps/document.xpm
16702 * objects/flowchart/pixmaps/extract.xpm
16703 * objects/flowchart/pixmaps/intstorage.xpm
16704 * objects/flowchart/pixmaps/magdisk.xpm
16705 * objects/flowchart/pixmaps/magdrum.xpm
16706 * objects/flowchart/pixmaps/magtape.xpm
16707 * objects/flowchart/pixmaps/manualinput.xpm
16708 * objects/flowchart/pixmaps/manualop.xpm
16709 * objects/flowchart/pixmaps/merge.xpm
16710 * objects/flowchart/pixmaps/offlinestore.xpm
16711 * objects/flowchart/pixmaps/offpageconn.xpm
16712 * objects/flowchart/pixmaps/or.xpm
16713 * objects/flowchart/pixmaps/predefdproc.xpm
16714 * objects/flowchart/pixmaps/preparation.xpm
16715 * objects/flowchart/pixmaps/punchedcard.xpm
16716 * objects/flowchart/pixmaps/punchedtape.xpm
16717 * objects/flowchart/pixmaps/sort.xpm
16718 * objects/flowchart/pixmaps/sumjunction.xpm
16719 * objects/flowchart/pixmaps/terminal.xpm
16720 * objects/flowchart/pixmaps/transaction.xpm
16721 * objects/flowchart/pixmaps/transmittape.xpm
16722 Moved shapes and their pixmaps to shapes/flowchart
16724 * shapes/Circuit/Makefile.am:
16725 * shapes/Circuit/index.sheet:
16726 Removed index.sheet.
16728 * shapes/Makefile.am:
16729 * shapes/flowchart/Makefile.am:
16730 * shapes/flowchart/*.shape:
16731 * shapes/flowchart/*.xpm:
16732 Added flowchart shapes. (Moved from objects/flowchart)
16735 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
16737 * app/app_procs.c: Fixed popt stuff.
16739 1999-11-01 James Henstridge <james@daa.com.au>
16741 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
16744 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
16748 Update version to 0.81.
16751 Update with news for 0.81.
16753 * shapes/Circuit/*:
16754 * shapes/Circuit_eu/*:
16755 Moved european circuit objects to Circuit sheet.
16757 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
16759 * lib/diagramdata.[ch]:
16760 Added layer_set_object_list() function.
16763 Added support for undo of reordered objects.
16764 Fix the undo of delete to keep the right order on undo.
16767 changed loop to object_add_updates_list() calls.
16768 Added undo support to bring to front/back.
16770 * app/disp_callbacks.c:
16771 * app/paginate_psprint.c:
16774 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
16776 This plugs some leaks. Thanks to
16777 Bruce Mitchener <bruce@cybersight.com> for running
16778 Dia through purify for me.
16781 Free displays and diagrams on exit.
16783 * app/modify_tool.c:
16784 Free gc when freeing tool.
16786 * lib/diagramdata.c:
16790 Free update and display lists when destroying display.
16792 * lib/diagramdata.c:
16793 Don't leak layer name.
16795 * objects/custom/load_sheet.c:
16796 * objects/custom/shape_info.c:
16797 Free loaded xml documents.
16799 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
16802 * app/object_ops.[ch]:
16803 Add undo handling to alignment ops.
16804 Based partially on patch by Dan Cohn <dan@internap.com>.
16806 * objects/standard/image.c (image_move_handle):
16807 Don't divide by zero for small images.
16808 Patch by Dan Cohn <dan@internap.com>.
16810 * objects/UML/class.c (umlclass_destroy):
16811 * objects/custom/custom_object.c (custom_destroy):
16812 Don't free connectionpoints before calling element_destroy
16813 which unconnects them.
16815 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
16817 * objects/custom/custom_object.c:
16818 Load and save padding too. Fixes strange load crashes.
16820 * app/group.c (group_destroy):
16821 Don't unconnect already freed connectionpoints when
16822 destroying group. Probably fixes bug reported by
16823 Elliot Lee <sopwith@redhat.com>.
16825 * app/render_gdk.c:
16826 Don't crash on zero-size (broken) bezier curves.
16827 Different sort of fix. This should work on closed bezier curves
16830 * objects/standard/textobj.c:
16831 Activate default properties dialog for Text objects.
16833 * app/render_eps.c:
16835 * app/preferences.c:
16836 * app/render_svg.c:
16837 fopen files in binary or text mode.
16839 1999-10-26 Alexander Larsson <alex@cendio.se>
16841 * app/render_gdk.c (bezier_add_lines):
16842 Don't crash on zero-size (broken) bezier curves.
16843 Fixes a crashing bug.
16845 1999-10-25 James Henstridge <james@daa.com.au>
16847 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
16848 before it is installed.
16850 * objects/flowchart/flowchart.c: use relative paths to find shapes.
16852 * objects/custom/custom.c (custom_object_load): take file names
16853 relative to $(pkgdatadir)/shape-internal, and check an environment
16854 variable for an alternative directory.
16856 * app/...: added copyright messages to the top of my new code.
16858 * app/paginate_psprint.c: some general clean ups. Also, give an error
16859 dialog if we can't open the command or output file for writing.
16861 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
16862 function so it would set orientation to landscape correctly.
16864 * app/paginate_psprint.c: use the paper settings that come with
16865 the diagram. Also implemented landscape printing.
16867 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
16870 * app/commands.[ch] (file_pagesetup_callback): added callback for
16871 the page setup dialog.
16873 * app/menus.c: added page setup menu item.
16875 * app/pagesetup.[ch]: implementation of the page setup dialog.
16877 * app/diapagelayout.[ch]: added accessors for the scaling factor.
16879 * app/load_save.c (diagram_load): load paper information from save
16881 (diagram_save): save the paper info.
16883 * lib/diagramdata.c (new_diagram_data): initialise paper info section
16884 of DiagramData structure.
16885 (diagram_data_destroy): free the paper name.
16887 * lib/diagramdata.h: added a paper member to the DiagramData structure
16888 that holds the page layout info for a diagram.
16890 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
16892 * objects/flowchart/box.c:
16893 * objects/flowchart/ellipse.c:
16894 * objects/flowchart/diamond.c:
16895 * objects/flowchart/parallelogram.c:
16896 Load and save padding too. Fixes strange load crashes.
16898 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
16900 * app/app_procs.c (name_is_lib):
16901 .dll, .sl and .so.0.0.0 are also libraries.
16903 1999-10-20 James Henstridge <james@daa.com.au>
16905 * configure.in: added extra makefile.
16907 * shapes/Circuit_eu/*: a new set of european circuit shapes from
16908 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
16909 (added fuses to makefile, fill the area of some of the components).
16911 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
16915 Add GDK_IMLIB_CFLAGS to includes.
16916 Changed --export-dynamic to -export-dynamic
16919 * objects/UML/message.c:
16920 Removed c++ comment.
16922 * lib/render_store.[ch]:
16923 Don't use empty structure. That is not Ansi C.
16925 1999-10-19 James Henstridge <james@daa.com.au>
16927 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
16928 the margin entries, as they allow interpretation of units.
16929 (paper_size_change): display the current page dimensions.
16931 * app/diaunitspinner.[ch]: a widget derived from the standard
16932 GtkSpinButton that tries to take units into account. So if you enter
16933 "1in" into the entry, it will convert it to 2.54cm.
16935 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
16938 Removed include of dlfcn.h
16940 1999-10-18 James Henstridge <james@daa.com.au>
16942 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
16943 bound on margin widths. It is set to the paper width/height.
16945 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
16946 routine for the diamond. This bug was found and fixed by Daniel Wang
16947 <danwang@CS.Princeton.EDU>
16949 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
16951 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
16952 remove warning (OS/2 version).
16954 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
16957 Put a pointer to objects/custom/README.
16959 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
16962 Updated version to 0.80
16965 Updated version to 0.80cvs
16967 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
16969 * Released Dia 0.80
16970 Tag called DIA_0_80
16972 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
16976 * objects/UML/Makefile.am
16977 * objects/ER/Makefile.am
16978 * objects/network/Makefile.am
16979 * objects/standard/Makefile.am
16980 * objects/FS/Makefile.am
16981 * objects/sybase/Makefile.am
16982 * objects/flowchart/Makefile.am
16983 * objects/custom/Makefile.am
16984 Added -I$(top_srcdir)/intl which is needed for
16985 --with-included-gettext.
16991 Updated swedish translation.
16993 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16996 Updated version number to 0.80.
17002 Updated. Moved bugs to KNOWN_BUGS.
17005 Updated with 0.80 release notes.
17007 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
17010 For backwards compatibility, make sure handle 0 and 1 are the
17011 first and last handle. Fixes compatibility with 0.41, breaks
17012 compatibility with cvs version.
17013 Fixed bug in undo/redo of adding deleting endpoint segments
17014 when the endpoint was connected.
17015 Start OrthConn objects with three segments.
17017 1999-10-16 James Henstridge <james@daa.com.au>
17019 * objects/custom/custom_object.c (custom_update_data): changed
17020 resizing behaviour a bit so that shapes don't grow huge when you try
17021 to resize them to smaller than the size required by the text box.
17022 Also, now shapes will not grow with fixed aspect ratio when you enter
17023 text into them unless the shape has the fixed aspect ratio flag set.
17025 1999-10-15 James Henstridge <james@daa.com.au>
17027 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17029 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17031 * objects/flowchart/magdrum.shape:
17032 * objects/flowchart/offlinestore.shape:
17033 * objects/flowchart/punchedtape.shape:
17034 * objects/flowchart/transmittape.shape:
17035 * objects/flowchart/punchedcard.shape: new shapes.
17037 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17039 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17041 * objects/flowchart/collate.shape:
17042 * objects/flowchart/delay.shape:
17043 * objects/flowchart/extract.shape:
17044 * objects/flowchart/intstorage.shape:
17045 * objects/flowchart/magdisk.shape:
17046 * objects/flowchart/magtape.shape:
17047 * objects/flowchart/merge.shape:
17048 * objects/flowchart/or.shape:
17049 * objects/flowchart/sort.shape:
17050 * objects/flowchart/sumjunction.shape: new shapes.
17052 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
17056 Entering an erronous command as print command
17059 * app/paginate_psprint.c:
17060 Save all print dialog values for next time.
17063 Remove custom lib from DIA_LIB_PATH.
17065 1999-10-14 James Henstridge <james@daa.com.au>
17067 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17069 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17071 * objects/flowchart/offpageconn.shape:
17072 * objects/flowchart/manualop.shape:
17073 * objects/flowchart/preparation.shape:
17074 * objects/flowchart/manualinput.shape:
17075 * objects/flowchart/predefdproc.shape:
17076 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
17078 1999-10-13 James Henstridge <james@daa.com.au>
17080 * app/diapagelayout.[ch]: added accessors to paper information. The
17081 widget should be just about complete now.
17083 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
17084 It actually does something now.
17086 1999-10-12 James Henstridge <james@daa.com.au>
17088 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
17089 for the page layout widget.
17091 * app/diapagelayout.[ch]: start of page layout widget. Not actually
17092 built yet as it is not complete.
17094 * objects/flowchart/flowchart.c: added new shapes to sheet.
17096 * objects/flowchart/display.shape:
17097 * objects/flowchart/transaction.shape: new shapes.
17099 * AUTHORS: added my name to the spec file.
17101 * dia.spec: include the dia desktop entry to the spec file.
17103 * Makefile.am: install the dia.desktop file.
17105 * dia.desktop: added a gnome desktop entry so you can start dia
17106 from the gnome panel menu.
17108 1999-10-11 James Henstridge <james@daa.com.au>
17110 * objects/custom/custom_object.c:
17111 * objects/custom/shape_info.c: warning fixes.
17113 * objects/flowchart/document.shape: a shape file for the `document'
17116 * lib/custom.h: new header with the custom shape prototypes.
17118 * app/app_procs.c: register custom objects as well.
17119 (register_objects_in): close shared libraries if they don't load
17120 correctly, and call g_module_make_resident on libraries that load
17123 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
17125 * objects/custom/custom.c: removed get_version, added custom_ prefix
17126 to register_objects and register_sheets.
17128 * objects/custom/Makefile.am: converted to a normal library.
17130 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
17132 * app/lineprops_area.c:
17133 * app/render_svg.c:
17135 * objects/custom/shape_info.c:
17136 * objects/flowchart/box.c:
17137 * objects/flowchart/diamond.c:
17138 * objects/flowchart/ellipse.c:
17139 * objects/flowchart/parallelogram.c:
17140 * objects/network/flash.c:
17141 * objects/network/scead-plug.c:
17142 * objects/sybase/client.c:
17143 Removed -Wall warnings.
17145 * objects/network/bus.c:
17146 Removed unused functions.
17148 * objects/FS/flow-ortho.c:
17149 * objects/FS/flow-poly.c:
17150 * objects/FS/flow.c:
17151 * objects/FS/function.c:
17153 Implemented "non-implemented" undo for FS objects.
17154 Now at least it won't crash.
17156 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
17158 * objects/network/bus.c:
17160 Handles are now added and removed using the object menu.
17161 Default to 6 handles instead of 10.
17162 Changed name from "Standard - Bus" to "Network - Bus". Kept old
17163 name for backwards compatibility.
17165 * objects/network/network.c:
17166 Changed name from "Standard - Bus" to "Network - Bus". Kept old
17167 name for backwards compatibility.
17169 * app/properties.[ch]:
17171 Update properties in properties dialog if the shown object
17172 is part of and ObjectChange (undo or redo).
17175 Remove old known bugs list.
17177 * objects/UML/class_dialog.c:
17178 Removed debug printf's.
17180 1999-10-10 James Henstridge <james@daa.com.au>
17182 * objects/custom/custom.c (custom_object_load): new function that
17183 provides a nice entry point to the custom shape code for when it
17184 gets used by other libraries.
17186 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
17187 speeds builds up a bit.
17189 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17190 (SUBDIRS): do not descend into pixmaps subdirs.
17192 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17193 This speeds up build process.
17195 * objects/custom/custom.c (sheets): made variable static.
17197 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17200 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17202 * objects/custom/custom.c: look in ~/.shapes instead of
17203 ~/.dia_shapes as the per-user shapes directory.
17205 * app/preferences.c (prefs_save): save config to ~/.diarc.
17206 (prefs_load): load configuration from ~/.diarc. If the file
17207 does not exist, fallback on the old ~/.diarc location.
17209 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17211 (register_all_objects): look for user specific objects in
17212 ~/.objects rather than ~/.dia_libs.
17214 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
17218 * objects/flowchart/box.c
17219 * objects/flowchart/ellipse.c
17220 * objects/flowchart/flowchart.c
17221 Use gmodule for dynamic linking. As gmodule is using
17222 RTLD_GLOBAL i had to change flowchart box and ellipse
17223 so the typenames doesn't conflict with the standard
17228 Use button box to make dialogs look better.
17230 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
17232 * objects/UML/class_dialog.c:
17233 * objects/UML/class.h:
17234 Implemented undo for "UML - Class" objects.
17235 Not 100% tested yet.
17237 * objects/UML/classicon.c:
17238 * objects/UML/constraint.c:
17239 * objects/UML/dependency.c:
17240 * objects/UML/generalization.c:
17241 * objects/UML/implements.c:
17242 * objects/UML/large_package.c:
17243 * objects/UML/lifeline.c:
17244 * objects/UML/message.c:
17245 * objects/UML/object.c:
17246 * objects/UML/realizes.c:
17247 * objects/UML/state.c:
17248 * objects/UML/usecase.c:
17251 * lib/connectionpoint.h:
17254 1999-10-09 James Henstridge <james@daa.com.au>
17256 * objects/custom/*.[ch]: added copyright notices to custom object
17259 * shapes/Circuit/hdiode.shape:
17260 * shapes/Circuit/hzener.shape:
17261 * shapes/Circuit/opamp.shape:
17262 * shapes/Circuit/vdiode.shape:
17263 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17264 shapes look nice after the custom shape code changes.
17266 * objects/custom/README: updated docs to cover changes to drawing
17269 * objects/custom/custom_object.c (custom_draw): honour the line
17270 properties when drawing the shape.
17272 * objects/custom/shape_info.[ch]: added support for setting line
17273 properties for individual drawing elements in a custom shape. You
17274 can set the dash style, dash length, cap style and join style.
17276 1999-10-07 James Henstridge <james@daa.com.au>
17278 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17279 for foreground and background.
17281 * objects/custom/custom_object.c (custom_draw): use the new style
17282 information when drawing the object.
17284 * objects/custom/shape_info.[ch]: store all shape style info in the
17285 GraphicStyle structure. This makes adding support for extra CSS
17286 attributes easier -- we don't have to keep adding extra arguments to
17287 a lot of functions.
17289 1999-10-05 James Henstridge <james@daa.com.au>
17291 * lib/intl.c (unalias_lang): merged in changes from the i18n code
17292 swiped from gnome-libs.
17294 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
17296 * objects/standard/image.c (get_directory):
17297 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17299 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17301 * lib/poly_conn.c (polyconn_destroy):
17302 Fix bug. Access of freed memory.
17303 Rememeber, you can't free the handles of an object
17304 before calling object_destroy(), as it unconnects the handles
17305 therefore referencing them.
17307 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17310 undo_clear() didn't set stack->depth to zero.
17311 This made other undo functions crash after this had been called
17315 Slightly modified by Chris Love <clove@exactis.com>
17317 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17319 * objects/UML/class.h:
17320 * objects/UML/class_dialog.c:
17321 Retrun NULL ObjectChange on class property change.
17322 This means no crashes, but "UML - Class" doesn't support undo yet.
17324 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17329 * objects/UML/classicon.c:
17330 * objects/UML/dependency.c:
17331 * objects/UML/generalization.c:
17332 * objects/UML/implements.c:
17333 * objects/UML/large_package.c:
17334 * objects/UML/lifeline.c:
17335 * objects/UML/message.c:
17336 * objects/UML/object.c:
17337 * objects/UML/realizes.c:
17338 * objects/UML/state.c:
17339 * objects/UML/usecase.c:
17340 Update to new undo (w. get/set_state).
17341 Add object menu to add/delete segments.
17343 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
17346 Add equal distance alignment.
17348 * app/object_ops.c:
17349 Add equal distance alignment.
17350 Fix bug in adjacent alignment.
17352 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
17354 * objects/UML/constraint.c:
17355 Update to new undo (w. get/set_state).
17357 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
17359 * app/paginate_psprint.c:
17360 Save (parts, more todo) of the info in the print dialog to the
17361 next time it's opened.
17362 Patch from Yo Ric Dude <ricdude@toad.net>
17364 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
17367 Updated version string to 0.41cvs.
17369 * objects/UML/assocition.c:
17370 Update to new undo (w. get/set_state).
17371 Add object menu to add/delete segments.
17374 Added function debug_break() and called it after all
17375 objects and sheets are loaded. Place a breakpoint here if you
17376 want to debug objects. All symbols should be loaded.
17378 1999-09-12 James Henstridge <james@daa.com.au>
17380 * app/menus.c (display_menu_items): added print menu item.
17381 (filemenu): always add print menu item -- even if gnome-print is
17384 * app/commands.h, app/commands.c (file_print_callback): the print
17385 menu item is now available for both gnome-print and non gnome-print
17388 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
17389 print with the non gnome-print driver.
17391 1999-09-11 James Henstridge <james@daa.com.au>
17393 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
17394 printer dialog code out of commands.c.
17396 * app/paginate_psprint.c: new file containing the pagination code for
17399 * app/render_eps.c: made a few modifications so as well as producing
17400 EPS files, this renderer can be set up to do postscript printing.
17401 This basically entailed adding an extra function to create a RenderEPS
17402 renderer which did not bother setting the viewport for the document.
17403 That was left for the pagination code.
17405 1999-09-10 James Henstridge <james@daa.com.au>
17407 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
17408 gnome-print does not support elliptic arcs at the moment, approximate
17409 the ellipse with eight bezier curves. This gives a pretty good
17410 match to a true ellipse.
17412 1999-09-09 James Henstridge <james@daa.com.au>
17414 * app/commands.c (file_gnome_print_callback): added support for
17415 scaling the diagram. Also fixed a few other bugs.
17417 * app/paginate_gnomeprint.c (print_page): added ability to scale
17418 document. Fixed up test to see if the page has no objects on it.
17419 This should prevent some blank pages being printed. Non square
17420 objects such as lines could still cause problems.
17422 1999-09-08 James Henstridge <james@daa.com.au>
17424 * app/commands.c (file_gnome_print_callback): changed from using the
17425 standard printer selection dialog to one that also has a paper size
17428 * commands.[ch]: added callbacks for the print menu item. Currently
17429 it only does A4 output. I will make it configurable soon.
17431 * app/menus.c: add a print diagram menu item if gnome-print support
17434 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
17435 bit higher level than the gnome-print renderer. It splits the
17436 diagram into page size chunks and then renders them. For each
17437 page, it only renders the objects whose bounding box intersects
17438 the page, and it sets the clip mask so that the diagram does not
17439 overlap the margins.
17441 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
17442 that uses gnome-print as its back end.
17444 * configure.in: added a check for gnome-print. It is disabled by
17445 default because the code is not really working correctly yet.
17447 * app/menus.c: the delete object menu item was missing from the
17448 GnomeUIInfo style menus.
17450 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
17453 Added japanese to ALL_LINGUAS.
17454 Fix for Linux on Alpha.
17456 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
17458 * app/create_object.c (create_object_button_press):
17459 Always initialize tool->obj. Otherwise we store a null
17460 in the undo Change.
17463 Set linestyle before drawing cursor.
17464 Fix undo of backwards delete.
17466 1999-09-05 James Henstridge <james@daa.com.au>
17468 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
17470 * app/render_svg.c (draw_image): some fixes so that the appropriate
17471 style attributes are set. Before it was setting line styles on
17472 fill_* functions. Now it only does this for the draw_* variants.
17474 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
17475 variable so that custom shapes can be loaded.
17477 * shapes/: new directory for custom shapes. The Circuit sheet has
17480 1999-09-02 James Henstridge <james@daa.com.au>
17482 * TODO: removed a few todo items that have been implemented.
17484 * app/interface.c (create_sheets): enabled the popup page menu to the
17485 notebook. This can make it easier to select different sheets.
17487 * object/custom/Circuit/: added diode, zener diode, ground point and
17488 operational amplifier shapes.
17490 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
17491 if you want the output.
17493 * objects/custom/shape_info.c (parse_path): same here.
17495 * objects/custom/load_sheet.c (load_with_readdir): don't print so
17496 much debugging output. To get the previous level of output, define
17499 * objects/custom/shape_info.c (parse_svg_node): polygons were being
17500 recorded as polylines in the ShapeInfo structure.
17502 * objects/custom/README: some notes on writing new custom shapes.
17504 1999-09-01 James Henstridge <james@daa.com.au>
17506 * objects/custom/Circuit/hinductor.*:
17507 * objects/custom/Circuit/vinductor.*: added inductor shapes that
17508 also test out the bezier curve and SVG path support.
17510 * objects/custom/custom_object.c (custom_draw): added support for
17511 drawing bezier paths and filled shapes.
17513 * objects/custom/shape_info.c (parse_path): new function to parse
17514 SVG path elements. It does not do quadratic beziers or elliptic
17515 arcs though. Only moves, lines and cubic beziers.
17516 (*): added support for paths.
17518 1999-08-31 James Henstridge <james@daa.com.au>
17520 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
17522 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
17525 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
17528 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
17531 * lib/render_store.[ch]: use newer bezier functions.
17533 * lib/render.h: changed the bezier drawing functions to use an array
17534 of BezPoint structures instead of normal Point structures to allow
17535 lineto's mixed in with the curveto's.
17537 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
17539 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
17540 xpm images for different shapes to Makefile.
17542 * objects/custom/custom_object.c (custom_object_new): set the icon
17543 for the sheet button if there is one. Otherwise fall back on the
17544 default custom object icon.
17546 * objects/custom/shape_info.c (load_shape_info): read the sheet
17547 icon name from the shape file.
17549 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
17550 check the pixmap_file field for the name of a pixmap file to load
17553 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
17554 at the end of the structure, and it isn't used if the pixmap field
17555 is non NULL, so it should not break binary compatibility.
17557 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
17558 added support for the use of an index.sheet file so you can specify
17559 the ordering of the shapes in the sheet, and also internationalise
17560 the sheet name and actually be able to give a description. The old
17561 readdir based sheet loading code acts as a fallback if an index.sheet
17562 file can not be found.
17564 * objects/custom/custom_util.[ch]: new file containing useful routines
17565 needed by the custom object code. Currently only contains a simple
17566 routine for resolving relative paths.
17568 * objects/custom/custom_object.c (custom_draw): fixed problem with
17569 drawing rectangles if the shape has been flipped.
17571 1999-08-30 James Henstridge <james@daa.com.au>
17573 * objects/custom/custom_object.c (custom_get_object_menu): allow
17574 flipping of custom shapes. This uses the miggle click object
17577 * objects/custom/Circuit/npn.shape: fix aspect ratio.
17579 * objects/custom/custom_object.c (custom_update_data): honour the
17580 aspect ratio constraints.
17582 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
17583 tag parsing, so you can specify a free, fixed or a range for aspect
17584 ratios for the shape.
17586 1999-08-29 James Henstridge <james@daa.com.au>
17588 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
17589 up shape namespace tag.
17591 * objects/custom/shape_info.c (load_shape_info): check xml:lang
17592 attribute on <description> elements to support i18n for custom
17593 shape descriptions.
17594 Also changed the shape namespace for custom shapes to something
17595 a little more sensible.
17597 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
17599 * lib/intl.c: new file containing some functions for i18n stuff.
17601 * app/layer_dialog.c (create_button_box): fixed a warning.
17603 * objects/custom/custom_object.c: use current line style. Save dash
17606 * objects/flowchart/diamond.c: use current line style. Save dash
17609 * objects/flowchart/parallelogram.c: use current line style. Save
17612 * objects/flowchart/ellipse.c: use current line style. Save dash
17615 * objects/flowchart/box.c: use current line style. Save dash length.
17617 * objects/standard/ellipse.c: make ellipse use current line style.
17619 * objects/standard/box.c: use the line style set in the toolbox for
17620 new boxes, and remember the dash length.
17622 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
17625 1999-08-24 James Henstridge <james@daa.com.au>
17627 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
17628 to try to stop ellipse to get infinite width/height when we resize,
17629 while trying to keep the text inside the ellipse.
17631 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
17632 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
17633 resizing behaviour, so that you can't push objects round the screen
17634 with the resize handles.
17636 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
17637 get the OK buttons in the dialogs to take default clicks.
17639 * objects/custom/custom_object.c: added code so that resizing the
17640 shape does not end up pushing it round the screen.
17642 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
17644 * app/display.[ch]:
17645 Generate rectangle with the union of the damaged regions.
17646 This is used to optimize the grid paint and the object rendering.
17647 display_render_pixmap passes this info to grid_draw() and data_render().
17650 grid_draw doesn't draw grid lines outside of damaged rectangle.
17651 Sets dashlength when drawing non-solid grid.
17653 * lib/diagramdata.[ch]:
17654 data_render() and layer_render() takes an optional damaged rectangle
17655 argument. No objects not intersecting this are drawn.
17659 Call data_render with NULL update rectangle.
17661 1999-08-23 James Henstridge <james@daa.com.au>
17663 * objects/custom/custom_object.c (custom_update_data): if the aspect
17664 ratio is fixed, make sure the shape is not distorted.
17666 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
17667 a <fixaspectratio/> tag is given in the shape file.
17669 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
17670 added support for stroke-width, stroke and fill CSS attributes
17671 specified in style attributes of the SVG elements. The line width
17672 is relative to the user specified line width. The stroke and fill
17673 attributes can only be used to swap the foreground/background
17676 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
17677 sensitivity on the dash length selector when this function is called.
17679 * objects/standard/arc.c: same. Also handle dash length.
17680 * objects/standard/zigzagline.c: same.
17681 * objects/standard/polyline.c: same. Also handle dash length.
17682 * objects/standard/line.c: use default arrow/line styles.
17684 * app/interface.c: added callbacks to set the default attributes.
17686 * lib/attributes.c: added implementations of these functions.
17688 * lib/attributes.h: added extra prototypes for the new line properties
17689 area in the toolbox.
17691 * app/interface.c (create_lineprops_area): added line properties
17692 area to bottom of toolbox.
17694 * app/lineprops_area.h: a header exporting a few routines of the
17695 line properties area widgets.
17697 * app/lineprops_area.c: new file containing a selector for arrows
17698 and line styles to go in the main toolbox.
17700 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
17703 Update Gtk+ 1.0.5 comment to 1.2.0.
17712 Make sure we don't propagate -ldl and -lpopt to all LIBS
17713 by adding new var APP_LIBS that only app/dia links with.
17716 Update run_dia.sh to load custom and flowchart objects.
17718 * objects/ER/Makefile.am:
17719 * objects/FS/Makefile.am:
17720 * objects/UML/Makefile.am:
17721 * objects/network/Makefile.am:
17722 * objects/standard/Makefile.am:
17723 * objects/sybase/Makefile.am:
17724 Don't build versioned libs.
17726 1999-08-22 James Henstridge <james@daa.com.au>
17728 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
17731 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
17732 should actually work a bit now.
17734 * objects/custom/Circuit/*: a test sheet for the custom shape code.
17735 It is a small collection of circuit elements.
17737 * objects/custom/shape_info.c: fixed up loading of polylines and
17738 polygons. Before it was removing negative signs :(
17740 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
17741 placeholder was here before. I still need to work out how to set
17742 icons for individual custom shapes.
17744 * objects/custom/custom.c: added code to load the shapes into sheets
17745 properly. The shape files should be arranged into directories, and
17746 each directory represents a different sheet in the toolbox. This
17747 will make it very easy to distribute a collection of dia shapes as
17748 a tarball. I still need to work out internationalisation, and maybe
17749 also shape ordering in the sheet.
17751 * objects/custom/custom_object.c: fixed up dialogs for these objects.
17752 (custom_create): fix for objects without text areas.
17754 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
17755 and saving of custom object works correctly now.
17757 1999-08-21 James Henstridge <james@daa.com.au>
17759 * objects/flowchart/ellipse.c:
17760 * objects/flowchart/diamond.c:
17761 * objects/flowchart/parallelogram.c:
17762 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
17763 copying or loading these object types. Not all the connection
17764 points would be initialised correctly.
17766 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
17769 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
17770 build a versioned library. It will only ever be dlopen'd, so this
17773 * objects/custom/custom_object.c (custom_distance_from): allow
17774 selecting the object by clicking on the text. This fixes problems
17775 where the text box is outside the graphic.
17777 * objects/custom/shape_info.c (load_shape_info): fixed up reading
17778 of connections points. It should be possible to add connections
17779 to custom objects now.
17781 * objects/custom/custom_object.c (custom_update_data): fixed resizing
17782 due to changes to text.
17784 * configure.in: added extra makefiles.
17786 * objects/custom/shape_info.[ch]:
17787 * objects/custom/custom_object.c:
17788 * objects/custom/custom.c: the starts of custom shape support in dia.
17789 This is not built by default at the moment, since it is not quite
17790 complete. When it is, it will let you create more shapes for dia
17791 without writing a line of C. Its implementation includes buzzwords
17792 such as XML and SVG, so it must be good :)
17794 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
17796 * app/app_procs.c (app_exit): Use button labels "Quit" and
17797 "Cancel" instead of "Yes" and "No".
17798 Set default action to "Cancel" instead of "Quit".
17800 1999-08-19 James Henstridge <james@daa.com.au>
17802 * objects/flowchart/flowchart.c: added ellipse object.
17804 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
17806 1999-08-18 James Henstridge <james@daa.com.au>d
17808 * app/color_area.c (color_area_edit): small fix to prevent dia from
17809 segfaulting when you try to change the default foreground/background.
17811 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
17813 * app/diagram.[ch] (diagram_redraw_all):
17814 Added function that redraws all diagrams.
17816 * app/preferences.c (prefs_apply):
17817 Call diagram_redraw_all when prefs are changed.
17819 * app/render_svg.c:
17820 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
17821 older libxml's, and the old version works good enought here.
17823 1999-08-17 James Henstridge <james@daa.com.au>
17825 * lib/widgets.c: changed handlers that were connected to the GtkButton
17826 "pressed" signal to connect to the "clicked" signal. This removes the
17827 problem where dialogs are inactive until you click a mouse button
17828 after using a colour selector.
17830 * configure.in: added extra makefiles to AC_OUTPUT list.
17832 * objects/Makefile.am (SUBDIRS): added flowchart module
17834 * objects/flowchart/*: a collection of shapes for use in flowcharts.
17836 * app/color_area.c (color_area_events): similar here.
17838 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
17839 event is recieved with event->width == 0, which causes a warning if we
17840 try to create a pixmap of that width.
17842 * app/preferences.c, app/preferences.h, app/grid.c: added code to
17843 allow you to configure the colour of the grid, and also lets you
17844 set the grid to use dotted lines instead of solid ones.
17846 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
17847 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
17849 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
17850 export filter. It is not quite complete, but for most shapes it
17851 works as expected. Fonts still need a bit of work.
17853 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
17855 * configure.in: Added "en_GB" to ALL_LINGUAS.
17857 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
17860 Added Undo and Redo to GNOME menus.
17862 * objects/ER/attribute.c:
17863 * objects/ER/entity.c:
17864 * objects/ER/participation.c:
17865 * objects/ER/relationship.c:
17866 Added get/set_state functions.
17868 * objects/ER/participation.c:
17869 Added add/delete segment.
17872 Updated Swedish translation.
17874 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17876 * app/preferences.[hc]:
17877 Added undo_depth pref.
17880 Never grow stack larger than pref.undo_depth.
17881 undo_depth == 0 means unlimited.
17882 Converted printfs to conditionally compiled DEBUG_PRINTFs.
17884 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17889 * lib/render_object.c:
17890 * objects/ER/attribute.c:
17891 * objects/ER/entity.c:
17892 * objects/ER/participation.c:
17893 * objects/ER/relationship.c:
17894 * objects/FS/flow-ortho.c:
17895 * objects/FS/flow-poly.c:
17896 * objects/FS/flow.c:
17897 * objects/FS/function.c:
17898 * objects/UML/actor.c:
17899 * objects/UML/association.c:
17900 * objects/UML/class.c:
17901 * objects/UML/classicon.c:
17902 * objects/UML/component.c:
17903 * objects/UML/constraint.c:
17904 * objects/UML/dependency.c:
17905 * objects/UML/generalization.c:
17906 * objects/UML/implements.c:
17907 * objects/UML/large_package.c:
17908 * objects/UML/lifeline.c:
17909 * objects/UML/message.c:
17910 * objects/UML/note.c:
17911 * objects/UML/object.c:
17912 * objects/UML/realizes.c:
17913 * objects/UML/small_package.c:
17914 * objects/UML/state.c:
17915 * objects/UML/usecase.c:
17916 * objects/network/bus.c:
17917 * objects/standard/arc.c:
17918 * objects/standard/box.c:
17919 * objects/standard/ellipse.c:
17920 * objects/standard/image.c:
17921 * objects/standard/line.c:
17922 * objects/standard/polyline.c:
17923 * objects/standard/textobj.c:
17924 * objects/standard/zigzagline.c:
17925 Removed all traces of is_empty(). It doesn't work in an
17928 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17933 Undoable grouping and ungrouping.
17935 * app/layer_dialog.c:
17936 * lib/diagramdata.[ch]:
17937 Undoable layer ops.
17939 * app/modify_tool.c:
17940 Undoable unconnect on handle move.
17942 * lib/orth_conn.[ch]:
17943 Working undoable add/remove segment.
17944 Removed endpoint_handles from OrthConn, renamed
17945 midpoint_handles to handles and put the endpoint
17948 * objects/standard/zigzagline.c:
17949 * objects/ER/participation.c:
17950 * objects/UML/association.c:
17951 * objects/UML/dependency.c:
17952 * objects/UML/generalization.c:
17953 * objects/UML/realizes.c:
17954 Update for the changes in OrthConn
17956 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
17958 * configure.in: Added "de" to ALL_LINGUAS.
17960 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
17972 Don't have the <Display> etc part of the menu strings
17973 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17976 Don't have the <Display> etc part of the menu strings
17977 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17978 Don't remove is_empty() objects, that don't work with undo.
17980 * lib/objchange.[ch]:
17982 Definition of ObjectChange. This is essentially an Change
17983 exported to the object libs. It encapsulates a change made
17984 to an objects internals. It can be applied, reverted and freed.
17985 There are also utility functions for doing ObjectChanges that
17986 only get/set the whole state of an object to store the change.
17987 This cannot be used when the object change deletes or adds a
17988 object which has references from other objects, eg. Handles which
17989 might be connected.
17992 Added objchange.c and objchange.h.
17995 Return NULL when loading fails.
17998 Menu callbacks return an ObjectChange.
18001 Reference objchange.o
18004 Key events return ObjectChange if they modify the object.
18008 Added object_add_handle_at() function.
18009 Apply properties returns an ObjectChange.
18010 Remove ObjectState and the get/set state functions, these
18011 don't always work. Use the new ObjectChange instead.
18014 Added object_add_handle_at() function implementation.
18016 * lib/orth_conn.[ch]:
18017 Use ObjectChange. Not finished yet.
18018 Removed get/set/free state functions
18020 * lib/poly_conn.[ch]:
18022 Don't remove segments that are small.
18023 Removed get/set/free state functions
18027 Added functions to get/set all text attributes.
18029 * objects/standard/arc.c:
18030 * objects/standard/box.c:
18031 * objects/standard/ellipse.c:
18032 * objects/standard/image.c:
18033 * objects/standard/line.c:
18034 * objects/standard/polyline.c:
18035 * objects/standard/textobj.c:
18036 * objects/standard/zigzagline.c:
18038 fixed bug in image_set_state.
18039 zigzagline.c not finished yet.
18041 * app/disp_callbacks.c:
18042 Use ObjectChange that are returned from menu callbacks and
18043 key_events for undo.
18045 * app/properties.c:
18046 Use ObjectChange that are returned from properties apply
18051 New undo type: ObjectChangeChange. This wraps a change to the
18052 internals of an object (and ObjectChange) in code that does
18053 app specific stuff (object_add_updates etc.)
18055 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
18057 * lib/orth_conn.[ch]:
18058 Added code for add/delete segment.
18060 * objects/standard/zigzagline.c:
18061 Use the new orth_conn code.
18064 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18066 * objects/FS/Makefile.am
18067 Removed fs.h from sources.
18073 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
18075 * app/disp_callbacks.c (ddisplay_canvas_events):
18076 Fix for bug. Every other arrow-key press got lost.
18077 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
18080 change automake.sh to autogen.sh
18082 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
18085 Don't remove 'empty' objects.
18086 This violent destruction of objects won't work
18087 with the new undo framework.
18089 * app/disp_callbacks.c:
18090 Save undo info for object menu calls and key_events.
18092 * app/properties.c:
18093 Save undo info on properties apply.
18095 * lib/dia_image.[ch]:
18096 Add refcounting for images.
18098 * app/render_eps.c:
18099 * app/render_gdk.c:
18101 DiaImage * -> DiaImage
18104 Add undo functions for object state changes.
18108 change of semntics for focus->key_event.
18109 Now returns TRUE if the object recieving the event
18115 * lib/orth_conn.[ch]:
18116 Don't automatically create and delete segments when
18117 handles are moved. This is incompatible with undo.
18118 Added state get, set and free functions.
18120 * lib/orth_conn.[ch]:
18121 Added state get, set and free functions.
18123 * objects/UML/object.c:
18124 * objects/UML/uml.c:
18125 Fixed typo "UML - Objet" -> "UML - Object".
18126 Saved old for backwards compatibility.
18128 * objects/standard/arc.c:
18129 * objects/standard/box.c:
18130 * objects/standard/ellipse.c:
18131 * objects/standard/image.c:
18132 * objects/standard/line.c:
18133 * objects/standard/polyline.c:
18134 * objects/standard/textobj.c:
18135 * objects/standard/zigzagline.c:
18136 Added get/set state functions.
18137 Textobj has a redo crash-bug.
18138 Zigzagline needs object menus to add segments.
18141 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
18143 * app/render_eps.c (set_dashlength):
18144 Don't generate eps files with zero dash-length.
18146 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
18149 * app/create_object.c:
18151 Finished undo for create and paste.
18154 Started properties undo.
18156 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
18159 Added resizeable groups.
18162 Removed unused variable.
18166 Undo/redo for cut/delete done.
18168 * app/create_object.c:
18169 * app/modify_tool.c:
18170 * lib/diagramdata.[ch]:
18171 * app/diagram.[ch]:
18172 renamed diagram_add_selected -> diagram_select
18173 renamed diagram_remove_selected -> diagram_unselect
18175 * app/properties.[ch]:
18176 Added properties_hide_if_shown() function.
18178 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
18184 * app/commands.[ch]
18185 * app/modify_tool.[ch]
18186 * app/object_ops.[ch]
18187 * app/connectionpoint_ops.c
18189 Use undo functions.
18190 WARNING: Not finished. Will break.
18191 Finished: move object, move handle.
18194 Added diagram_selected_break_external() function.
18195 It removes all connections between selected objects
18197 Add undo stack to Diagram.
18199 * lib/diagramdata.[ch]
18200 Added layer_remove_objects() function
18202 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
18204 * objects/FS/Makefile.am
18205 * objects/sybase/Makefile.am
18206 Now uses GNOME_CFLAGS.
18209 Now compiles with GNOME even if popt.h isn't available.
18211 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
18214 * objects/Makefile.am
18216 First version of sybase objects from
18217 Brian Bruns <camber@umcc.ais.org>
18219 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18222 Added fr to ALL_LINGUAS
18224 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
18228 Popt-code is activated if popt is available.
18230 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
18232 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18234 * lib/orth_conn.[ch]:
18235 Added orthconn_get_middle_handle()
18238 Added text_set_cursor_at_end()
18241 Added first version of functions structure diagrams.
18243 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
18245 * app/modify_tool.c:
18246 Include math.h to remove warning.
18248 * app/commands.c (dialogs_properties_callback):
18249 Bring up correct properties dialog when selected
18251 From Dan Cohn <dan@internap.com>
18253 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
18255 Patch from Lars R. Clausen
18257 * app/modify_tool.c:
18258 Changed abs to fabs.
18260 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
18266 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18268 Patches from Dan Cohn <dan@internap.com>
18270 * app/commands.[ch]:
18271 * app/display.[ch]:
18273 * app/preferences.[ch]:
18274 Implements ability to turn on/off connection points in
18275 current drawing and in global prefs.
18277 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18279 * lib/widgets.c (dia_line_style_selector_init):
18282 * lib/diagramdata.c (layer_update_extents):
18283 Fixed uninitialized variable error.
18285 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
18288 Made some changes to the gdk_imlib visual+colormap setup.
18290 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18292 * objects/UML/usecase.c:
18293 * objects/UML/lifeline.c
18296 * objects/UML/object.c:
18297 * objects/UML/message.c:
18298 Changed font from Courier to Helvetica.
18302 Added dash lenth to the LineStyle widget.
18304 * objects/standard/ellipse.c :
18305 * objects/standard/zigzagline.c:
18306 * objects/standard/line.c:
18307 Added dash lenght property.
18309 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18311 * app/render_eps.c:
18312 First shot at latin1 encoded eps files.
18313 Works, but the eps files get a bit large.
18315 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18317 * objects/UML/class.[ch]:
18318 * objects/UML/uml.[ch]:
18319 Reverted the line wrap changes.
18320 Some day this might return, but it has to be selectable and
18321 default to off for loaded objects, otherwise it breaks file
18322 format compatibility.
18323 There was also some complains about how it looked, so a making it
18324 selectable is good for this too.
18326 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
18328 * objects/UML/class.[ch]:
18329 Some indentation cleanup.
18330 Added wrap_lines variable to class.
18331 I'll fix the line break stuff tomorrow.
18333 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18336 Added ref to poly_conn.o.
18338 * objects/standard/polyline.c (polyline_draw):
18339 * objects/standard/zigzagline.c (zigzagline_draw):
18340 * objects/standard/arc.c (arc_draw):
18341 * objects/standard/line.c (line_draw):
18342 Draw lines before arrows. This makes hollow arrows not
18345 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18347 Changes from Kim Peasley <kpeasley@ior.com>
18349 * objects/UML/class.c:
18350 Break lines with long operations so classes won't be
18353 * objects/UML/uml.[ch]:
18354 Helperfunctions for the above.
18356 * objects/UML/objects.c:
18357 Fix bug that duplicated the text in the attributes
18358 textwidget each time the object was selected.
18360 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
18362 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
18364 * app/modify_tool.c:
18365 * app/modify_tool.h:
18366 Control-drag is restricted to vertical/horizontal movement
18369 ModifierKeys argument added to object_move_handle
18371 * app/connectionpoint_ops.c:
18372 * app/create_object.c:
18373 * app/object_ops.c:
18374 * objects/ER/attribute.c:
18375 * objects/ER/entity.c:
18376 * objects/ER/participation.c:
18377 * objects/ER/relationship.c:
18378 * objects/UML/actor.c:
18379 * objects/UML/association.c:
18380 * objects/UML/class.c:
18381 * objects/UML/classicon.c:
18382 * objects/UML/component.c:
18383 * objects/UML/constraint.c:
18384 * objects/UML/dependency.c:
18385 * objects/UML/generalization.c:
18386 * objects/UML/implements.c:
18387 * objects/UML/large_package.c:
18388 * objects/UML/lifeline.c:
18389 * objects/UML/message.c:
18390 * objects/UML/note.c:
18391 * objects/UML/object.c:
18392 * objects/UML/realizes.c:
18393 * objects/UML/small_package.c:
18394 * objects/UML/state.c:
18395 * objects/UML/usecase.c:
18396 * objects/network/bus.c:
18397 * objects/standard/arc.c:
18398 * objects/standard/box.c:
18399 * objects/standard/ellipse.c:
18400 * objects/standard/image.c:
18401 * objects/standard/line.c:
18402 * objects/standard/polyline.c:
18403 * objects/standard/textobj.c:
18404 * objects/standard/zigzagline.c:
18405 Changed calls to move_handle to pass the new argument.
18409 Default line width, color etc #define'd
18412 Updates of danish menus
18414 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18417 * dia_gnome_icon.png
18418 * dia_gnome_menu_icon.png
18420 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
18423 About dialog shows dia_logo.png. Removed the GNOME about dialog.
18426 Distribute the icons and install logo in pkgdatadir.
18429 Added DATADIR-define.
18431 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18432 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
18435 Updated version number, made setup quiet, can build from cvs,
18436 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
18439 * objects/ER/Makefile.am
18440 * objects/UML/Makefile.am
18441 * objects/network/Makefile.am
18442 * objects/standard/Makefile.am
18443 now builds better with gnome
18445 * objects/UML/class_dialog.c
18446 Fixed typo -> po files must be updated too!!
18448 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18451 Added reference so that widgets.o gets linked to the app.
18453 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18455 * objects/UML/classicon.c:
18458 * objects/UML/actor.c:
18459 Changed position of 'snap-to-grid' so connection points are
18462 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18464 * objects/UML/classicon.c:
18465 Changed position of 'snap-to-grid'.
18466 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18468 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18470 * objects/network/antenna.c
18471 * objects/network/flash.c
18472 * objects/network/hub.c
18473 * objects/network/modem.c
18474 * objects/network/modularswitch.c
18475 * objects/network/rj45plug.c
18476 * objects/network/scead-plug.c
18477 * objects/network/network.c
18478 * objects/network/Makefile.am
18479 * objects/network/pixmaps/antenna.xpm
18480 * objects/network/pixmaps/flash.xpm
18481 * objects/network/pixmaps/hub.xpm
18482 * objects/network/pixmaps/modem.xpm
18483 * objects/network/pixmaps/modularswitch.xpm
18484 * objects/network/pixmaps/rj45plug.xpm
18485 * objects/network/pixmaps/sceadplug.xpm
18486 * objects/network/pixmaps/Makefile.am
18487 Lots of new network objects from
18488 Roland Steinbach <roland@support-system.com>.
18490 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18492 * objects/UML/classicon.c:
18493 Fixed connection positions, saved type as int (it has 3 states),
18494 and other small fixes.
18496 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
18498 * app/preferences.c:
18500 Added preference compress_save. It lets dia save uncompressed
18503 * objects/UML/class.c:
18504 Fixed bug with size calculation on methods that had class scope.
18506 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18508 * objects/UML/usecase.c:
18509 Added collaboration mode
18510 Fixed connection points with text > ellipse bug and other
18513 * objects/UML/state.c:
18514 Fixed bug of bad position of text after being either end
18515 or begin, moved and returned to text
18517 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
18519 * app/preferences.c: Add prototype declaration for prefs_apply.
18521 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
18523 * app/preferences.c:
18525 Apply don't hide window.
18527 * app/properties.c:
18530 * objects/UML/object.c:
18531 * objdcts/UML/state.c:
18532 Some data was not copied on copy.
18535 Ben Hochstedler <benh@eeyore.moneng.mei.com>
18537 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
18540 Changed link order between X and libxml.
18541 Some people had problems with an old libz in their
18544 1999-04-09 Kjartan Maraas <kmaraas@online.no>
18546 * po/no.po: updated translation.
18548 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
18550 * lib/message.c (message_error):
18553 * app/commands.[ch]:
18554 * app/diagram.[ch]:
18555 Added begining of xfig importing
18557 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18559 * objects/UML/pixmaps/state.xpm:
18560 * objects/UML/state.c:
18561 New UML object state machine.
18563 * objects/UML/uml.c:
18564 * objects/UML/Makefile.am:
18565 * objects/UML/pixmaps/Makefile.am:
18566 Added the state object.
18568 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
18570 * objects/UML/usecase.c:
18571 Added dialog to allow move text outside the ellipse.
18573 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18575 * Released Dia 0.41
18576 Tag called DIA_0_41
18581 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18584 Updated version number to 0.41
18589 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
18592 Changed errormessage for --export-to-ps. Removed call to
18593 g_log_set_always_fatal().
18596 * app/disp_callbacks.c
18598 (i18n) Removed gettext from some debugmessages.
18601 Small fix in GNOME-menus. Added warning that will help track
18602 problems with translations.
18605 (i18n) Updated swedish translation.
18607 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
18612 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
18618 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
18621 (i18n) Updated the danish translation.
18622 From Lars R. Clausen.
18624 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
18627 (i18n) The popup menu is translated now.
18630 (i18n) Updated swedish translation.
18632 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18634 * Released Dia 0.40
18635 Tag called DIA_0_40
18638 Updated for new release
18640 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18642 * objects/network/bus.c:
18643 Added initialization of properties dialog to NULL.
18645 * app/commands.c (edit_cut_callback):
18646 Update menu sensitivity when cut object.
18648 * app/modify_tool.c (click_select_object):
18649 * app/modify_tool.c (modify_button_release):
18650 Call diagram_update_menu_sensitivity() when
18651 selecting objects to update stuff that depends
18652 on selected/not selected.
18654 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18657 Change order of subdir so that libintl.a builds.
18658 Now passed make distcheck.
18660 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18662 * lib/font.c (init_x11_font):
18665 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18667 * objects/UML/pixmaps/classicon.xpm:
18668 * objects/UML/classicon.c:
18669 * objects/UML/uml.c:
18670 Added the class stereotype icon objects.
18673 Changed default ps extension from .ps to .eps.
18675 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18678 Added diamenu.h and intl.h
18683 * objects/UML/pixmaps/Makefile.am:
18686 * objects/standard/pixmaps/Makefile.am:
18689 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18692 Use a scalable font before fixed when real font not found.
18697 * objects/standard/image.c:
18698 Better handling of loading/saving of images.
18701 Added some text about cvs, fonts and rewrote some parts.
18704 Updated with new stuff.
18707 Bump up version number to 0.40.
18709 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18712 Moved diagram_add_ddisplay() call into new_display().
18713 Fixed new_display to not use uninitialized variables
18714 causing loaded files to show up as black (or garbage).
18718 Removed unneeded calls to diagram_add_ddisplay().
18720 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18722 * objects/UML/lifeline.c:
18724 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18726 * objects/UML/message.c:
18727 Fixed bug loading messages with null-text.
18728 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18730 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
18733 Updated swedish translation.
18736 (GNOME) Removed help-browser from help menu. Fixed typo.
18739 (GNOME) Accelerators in diagrams should work now.
18741 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
18746 * app/disp_callbacks.c
18750 * app/preferences.c
18752 * lib/diagramdata.c
18758 * objects/network/*.c
18759 * objects/standard/*.c
18760 * po/update_pofiles_in.sh
18762 More i18n. All strings (expect rare debug messages) can be
18763 translated now. Moved intl.h from app to lib. Updated
18764 update_pofiles_in.sh to check all .c-files.
18766 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
18768 * app/disp_callbacks.c (ddisplay_canvas_events):
18769 Don't drop keys while num-lock, scroll-lock etc is on.
18771 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18773 * app/render_eps.c (draw_image):
18774 Fixed exporting of images.
18775 Still not perfect, but not outright buggy.
18777 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18781 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
18784 Added $* to the dia call in run_dia.sh
18786 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18789 Added color_equals() call.
18791 * objects/standard/arc.c:
18792 * objects/standard/line.c:
18793 Don't save unneccesary data.
18795 * objects/standard/box.c:
18796 * objects/standard/ellipse.c:
18797 * objects/standard/image.c:
18798 * objects/standard/polyline.c:
18799 * objects/standard/zigzagline.c:
18800 Share properties dialog.
18801 Don't save unneccesary data.
18803 1999-03-22 Seth Alves <alves@hungry.com>
18808 small changes so that gnome menus aren't broken
18810 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18813 Added danish translation from lrclause@cs.uiuc.edu.
18818 * po/update_pofiles_in.sh:
18819 Added script that updates POFILES.in.
18820 This should probably be run automatically from somewhere.
18822 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
18824 * app/diagram.[ch]:
18825 Added function diagram_update_menu_sensitivity() which
18826 sets the sensitivity of some menu items. This function
18827 is called at each diagram state change (from diagram_modified()).
18828 This is needed because otherwise the keyboard accelerators
18829 don't work correctly.
18831 * app/display.[ch]:
18832 Changed display_set_menu_sensitivity() to display_update_menu_state().
18833 Moved lots of code to diagram_update_menu_sensitivity() in
18834 diagram.c. Optimized to only look up menu-items from path:s once.
18836 * app/disp_callbacks.c:
18838 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
18839 Need to set GDK_FOCUS_CHANGE_MASK.
18841 * app/create_object.c:
18842 Call diagram_modified when an object has been created and
18843 selected so that the menu sensitivity is updated.
18846 removed menus_set_sensitive() and menus_set_state(). Exported
18847 renamed function menus_get_item_from_path().
18849 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
18851 * app/disp_callbacks.c:
18852 Show (empty) object menus on object that has none.
18853 Show title on object menus.
18856 Set zoom factor correctly when opening new displays.
18857 Better setting of scrollbars.
18861 Some reformating cleanup.
18864 Added title to object menus.
18867 Added object menu method (NULL-valued) to all objects.
18869 * objects/standard/polyline.c:
18870 Added title to object menu.
18872 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
18874 * app/preferences.[ch]:
18875 New files. Implements the preferences dialog and
18876 loading/saving of ~/.diarc.
18879 Added preferences.[ch].
18882 Load preferences on startup.
18884 * app/commands.[ch]:
18885 Added file_preferences_callback to show the preferences dialog.
18887 * app/create_object.c:
18888 Update extents when creating object.
18889 Use the reset_tools_after_create preferences setting.
18892 Use preferences when creating new display.
18895 Add preferences to menu.
18898 * app/layer_dialog.c:
18899 * app/properties.c:
18900 Don't allow shrinking of dialog.
18901 Add i18n of some strings.
18903 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
18905 Norwegian translation added.
18907 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
18909 * objects/standard/line.c:
18910 * objects/standard/arc.c:
18911 * objects/standard/polyline.c:
18912 * objects/standard/zigzagline.c:
18913 Loading of arrow data fixed.
18915 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
18918 Update extents when saving and exporting to postscript.
18919 Fixes a bug with postscript bounding-box being wrong.
18922 Changed border width from 5 to 2.
18925 Move grouped objects by the move-point of the first object.
18926 Fixes bug that made all objects in the group be off-grid
18927 when moving the group, even though all objects was on-grid.
18929 * app/layer_dialog.c:
18930 Update extents when changing layer.
18932 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18934 * objects/UML/uml.c:
18935 * objects/UML/component.c:
18936 * objects/UML/pixmaps/component.xpm:
18937 Added the UML component object
18939 1999-03-04 Seth Alves <alves@hungry.com>
18941 * objects/UML/generalization.c (generalization_create): avoid
18942 math on uninitialized genlz->text_width (NaN causes sigfpe)
18944 * objects/UML/realizes.c (realizes_create): same
18946 * objects/UML/dependency.c (dependency_create): same
18948 1999-03-01 Seth Alves <alves@hungry.com>
18950 * app/display.c (ddisplay_active): don't fly a warning panel
18951 if ddisplay_active is called when no views are open.
18953 * app/commands.c (set_default_file_selection_directory): set
18954 file selector's default directory if there is already
18957 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18960 New info about imlib requirements.
18963 Added lib/pixmaps/Makefile to created makefiles.
18967 Change from obsoleted to newer gtk calls.
18970 Pass filename of the diagram when loading and saving.
18971 This creates better oportunities to handle filename saving.
18974 Pass filenames to load and save methods.
18976 * lib/dia_image.[ch]:
18977 Added dia_image_get_broken() call that returns a image which
18978 is used for 'broken' images.
18980 * lib/pixmaps/.cvsignore:
18981 * lib/pixmaps/Makefile.am:
18982 * lib/pixmaps/broken.xpm:
18983 New files for the broken image bitmap.
18986 Fixed bug with double destroyed filedialog.
18989 Updated load and save prototypes to use the new filename argument.
18992 Render broken image instead of line when got no image.
18993 Use the new filename in load and save to save (if possible)
18994 relative pathnames and to better try to find loaded images.
18996 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18999 Some updates to the todo file.
19003 Place over/place over => sent to back/bring to front.
19004 Added some keyboard shortcuts to menus.
19006 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
19009 Changed string saving/loading to a new method. This should
19010 be much better att handling &,<,> and whitespaces.
19011 Loading strings of the old kind is still supported for backwards
19014 * samples/ER-demo.dia:
19015 * samples/UML-demo.dia:
19016 Updated to use the new strings.
19019 statusbar modified update fix.
19021 1999-02-27 Seth Alves <alves@hungry.com>
19023 * app/app_procs.c (app_init): added a --export-to-ps option
19024 which will cause dia to load a dia file and save it as ps
19025 and then exit. this is a little bogus, because it still
19026 pops up a window. this option only shows up if --enable-gnome
19029 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
19030 menu when built with --enable-gnome
19032 * app/interface.c (create_display_shell): build status bar
19033 even if --enable-gnome is used
19035 * app/menus.c: menu fixes for --enable-gnome
19037 * app/commands.c (file_open_dialog_ok_callback): fixed up
19038 menus when --enable-gnome is used
19039 (file_export_to_eps_callback): set a default file name
19040 when dialog is created
19042 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
19044 * objects/UML/association.c (association_create):
19045 Fixed usage of not initialized variable.
19046 Pointed out by Seth Alves <alves@hungry.com>.
19048 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
19051 Fixed detection of gnome-xml.
19052 From Valtteri Vuorikoski <vuori@k.notcom.org>.
19055 Fixed error detection on dlsym calls.
19056 From Valtteri Vuorikoski <vuori@k.notcom.org>.
19058 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
19060 * objects/UML/message.c (fill_in_dialog):
19063 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19065 * objects/standard/zigzagline.c:
19066 * objects/standard/polyline.c:
19067 * objects/standard/line.c:
19068 * objects/standard/arc.c:
19072 Support for sizeable arrows.
19074 * objects/standard/box.c:
19075 * objects/standard/ellipse.c:
19076 * objects/standard/image.c:
19077 Changed creation handle to lower-right.
19078 Transparent box/ellipse.
19080 * objects/standard/image.c:
19081 Better layout of properties boxes.
19083 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19085 * objects/UML/message.c (fill_in_dialog):
19086 Fixed dialog fill in. Common dialog for all messages.
19088 * objects/UML/object.c:
19089 Added multiple instance. Dialog related bugs fixed.
19090 Common dialog for all instances. Completed copy and destroy.
19092 * objects/UML/lifeline.c (lifeline_load):
19093 Conn initialization bug fixed and few bad loading prevention flags.
19094 Common dialog for all lifeline objects.
19096 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19098 * lib/dia_image.[ch]:
19099 More work on the DiaImage abstraction.
19102 * app/render_eps.c:
19103 * app/render_gdk.c:
19104 * objects/standard/image.c:
19105 Use the new DiaImage calls.
19107 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19111 Reversed the meaning of align horizontal/vertical.
19113 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19115 * app/load_save.c (diagram_load):
19116 Statusbar update fix.
19118 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19120 * app/interface.c (create_display_shell):
19121 Fixed status bar size.
19123 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19125 * lib/dia_image.[ch]:
19126 Added extern declaration for dia_image_release.
19127 Removed dia_image_draw, as it's not neseccary.
19129 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19131 * app/object_ops.c:
19133 Added equal distance alignment both vertical and horizontal.
19135 * objects/UML/object.c:
19136 Added a couple of attributes to load/read that were missing.
19138 * objects/UML/lifeline.c:
19139 Better handling of handles. Fixed another bug I forgot to add
19142 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
19144 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19146 * lib/dia_image.[ch]:
19148 New files. DiaImage wraps the GdkImlibImage.
19151 * app/render_eps.c:
19152 * app/render_gdk.c:
19153 * lib/render_store.[ch]:
19154 * objects/standard/image.c:
19155 Use the new DiaImagetype.
19158 Removed unused variable to eliminate warning.
19160 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
19162 * objects/standard/box.c:
19163 Added rounded corners on the box object.
19165 * lib/widgets.[ch]:
19166 Updated the DiaFileSelector widget.
19168 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19170 * objects/UML/object.c (objet_draw):
19171 Completed underlining of all object name lines.
19173 * objects/UML/message.c (fill_in_dialog):
19174 Fixed a bug that filled incorrectly the message's dialog.
19176 * objects/UML/lifeline.c (lifeline_load):
19177 Some cleanning and fixed a couple of bugs that caused
19178 crashes after reading diagrams with lifelines.
19181 Added flags to prevent crash with void strings
19183 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19184 * app/display.[ch]:
19185 Added statusbar to the display widget. Currently shows the zoom
19186 factor and modified flag of the viewed diagram. The statusbar is
19187 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19188 This caused the following additions:
19190 * app/diagram.[ch]:
19191 Added function diagram_set_modified. Calls
19192 ddisplay_update_statusbar for all displays showing the modified diagram.
19193 Changed diagram_modified to call diagram_set_modified.
19196 Added the creation of the statusbar.
19199 diagram_save now calls diagram_set_modified instead of setting
19200 dia->modified. Needed to force call to display_update_statusbar
19203 Changed the way view_show_all works. Now calls ddisplay_zoom
19204 instead of directly setting the zoom_factor, so the zoom factor is
19205 correctly shown in the statusbar.
19208 Fixed rubberband zoom to use ddisplay_zoom().
19210 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
19213 Rudimentary GNOME session management.
19215 * app/disp_callbacks.c
19219 GNOME menus. Problems:
19220 Callbacks doesn't get user_data.
19221 Weird warnings when creating popup menus.
19222 menus_set_sensitive(), menus_set_state() doesn't work.
19224 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19227 Add AM_PATH_GDK_IMLIB() call.
19230 Add gdk_imlib to linking flags.
19234 Print library-loading error messages on stdout too.
19237 Add standard image to toolbox.
19239 * app/render_eps.c:
19240 Set a more reasonable dot length. Fixed
19241 missing initialization of dot length.
19242 Added draw_image methods.
19244 * app/render_gdk.c (new_gdk_renderer):
19245 Dot a bit wider. Looks good in normal mode now.
19247 * objects/standard/image.c:
19248 * objects/standard/pixmaps/image.xpm:
19249 New files. Standard object for images.
19251 * app/render_eps.c (set_linestyle):
19252 * app/render_gdk.c (set_linestyle):
19253 * lib/widgets.c (dia_line_style_selector_init):
19255 New line style DOTTED.
19258 * lib/render_store.c:
19259 Change DrawImage call to use gdk_imlib.
19261 * lib/widgets.[ch]:
19262 Added widgets for selecting files.
19263 Added dotted to the linestyle selector.
19265 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19267 * objects/network/printer.c:
19268 * objects/network/network.c:
19269 * objects/network/pixmaps/printer.xpm:
19270 * objects/network/.cvsignore:
19271 * objects/network/Makefile.am:
19272 * objects/network/pixmaps/Makefile.am:
19273 New printer object in network.
19274 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19277 Added known XML bug.
19279 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19283 Reverted back from #include <gnome-xml/tree.h> to
19284 #include <tree.h> as this is fixed by the xml-config program.
19285 The former way broke for some people.
19286 Reported by blizzard@redhat.com.
19288 * objects/UML/lifeline.c:
19289 * objects/UML/message.c:
19290 * objects/UML/object.c:
19291 Removed some warnings.
19293 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19295 * objects/UML/lifeline.c:
19296 Fixed connection points over the life line when the focus of
19297 control is not drawn.
19299 * objects/UML/message.c:
19300 Now a recursive message can be freely resized using the handles.
19302 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19304 * objects/UML/lifeline.c:
19305 Added connection points.
19306 Added properties dialog with the option to draw/hide focus of control
19307 box and destruction mark.
19309 * objects/UML/object.c:
19310 Added properties dialog and stereotype, explicit state and attributes.
19311 It's also possible to mark the object as active.
19313 * objects/UML/pixmaps/object.xpm:
19316 * objects/UML/message.c:
19317 Added "recursive" message type (was not necessary to use OrthConn).
19319 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
19321 * objects/standard/arc.c:
19322 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19324 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
19326 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19330 Update xml includes to gnome-xml/*.h.
19332 * objects/standard/arc.c:
19333 Only one property dialog per type.
19334 Fix arrows directions.
19336 * objects/standard/box.c:
19337 * objects/standard/ellipse.c:
19338 * objects/standard/textobj.c
19339 Added default properties dialog.
19342 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19344 * objects/UML/Makefile.am:
19345 * objects/UML/uml.c:
19346 * objects/UML/lifeline.c:
19347 * objects/UML/object.c:
19348 * objects/UML/message.c:
19349 * objects/UML/pixmaps/lifeline.xpm:
19350 * objects/UML/pixmaps/object.xpm:
19351 * objects/UML/pixmaps/message.xpm:
19352 Added 3 new UML objects for dynamic modeling. To avoid internal
19353 conflicts, the name "objet" is used for object "object".
19356 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
19359 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
19361 * app/display.[ch]:
19362 * app/modify_tool.c:
19363 Added autoscrolling while doing rubber-band select.
19364 This patch from Matthias Köster
19365 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
19368 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
19370 * app/defaults.[ch]:
19371 New files, deals with default properties dialog.
19374 New file. Contains definitions for the new object menu.
19376 * lib/poly_conn.[ch]:
19377 New file. Base class for poly-line like objects.
19379 * objects/standard/polyline.c:
19380 * objects/standard/pixmaps/polyline.xpm:
19381 New files. Polyline object.
19384 Fixed bug with infinite loop when registering sheets.
19387 Removed unneccesary stuff.
19389 * app/disp_callbacks.c:
19390 Support for object menus.
19393 Added polyline to toolbox.
19394 Added call to tool_options_dialog_show() when double clicking on
19398 New function tool_options_dialog_show() for tool properties.
19404 Added ObjectType methods for handling object default dialogs.
19405 Added Object method for handling object_menu.
19406 Added unused methods to ObjectTypeOps for future binary
19409 * lib/widgets.[ch]:
19410 Added DiaArrowTypeSelector widget.
19412 * objects/standard/arc.c:
19413 * objects/standard/zigzagline.c:
19414 Added support for default properties.
19416 * objects/standard/line.c:
19417 Added support for default properties.
19418 Just use one properties dialog for all line objects. NOTE: This
19419 seems to have a bug. We're working on it.
19421 * standard/standard.c:
19422 Add the polyline object.
19424 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
19426 * app/modify_tool.c:
19427 Commented out buggy transitive select function. It wasn't really
19428 meant to go into cvs.
19431 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
19443 Swedish translation. Not completed.
19447 Added possibility to enable GNOME specific code with configure.
19450 Added possibility to set debug level with configure.
19453 Added about dialog.
19459 Added some GNOME specific code. Not ready for use.
19461 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
19464 Added text about needing gtk 1.1.13 and gnome-xml.
19467 Described changes since last version (0.20).
19469 Released version 0.30, tagged DIA_0_30.
19471 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
19473 * app/magnify.c (magnify_button_release):
19474 Fixed a problem when zooming in on a very small box would
19475 not release the grabbed pointer-focus.
19477 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19479 * app/load_save.c (diagram_load):
19480 Be somewhat more robust when loading files that
19483 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19487 * objects/UML/uml.c:
19488 * objects/network/network.c:
19489 * objects/standard/standard.c:
19490 Added versioning of object libraries.
19492 * app/create_object.c:
19493 Don't change tool when an object is created.
19495 * objects/network/network.c:
19500 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
19503 Updated gtk requirement to Gtk+ 1.1.13.
19506 Always add one screenful of scrolling space on
19507 each side of a diagram window.
19509 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
19512 Tell automake to auto-install missing files.
19515 Renamed deprecated Gtk+ function.
19517 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
19521 * samples/Makefile.am:
19522 * samples/ER-demo.dia:
19523 * samples/UML-demo.dia:
19524 Added samples directory.
19525 Added samples for ER and UML.
19528 * app/disp_callbacks.c:
19530 Zoom is done by sqrt(2) instead of 2.
19531 Lots of more zoom options in the menu.
19533 * objects/ER/relationship.c:
19534 Relationships have 8 connectionpoints instead of 4.
19536 * objects/UML/class.c:
19537 UML class name font a bit smaller.
19538 Fixed stupid bug in the copy operation.
19541 Displays are opened at 500x400 instead of 256x256.
19544 Fixup of internal error message.
19546 * app/color_area.c:
19548 * app/modify_tool.c:
19550 Removed debug printf's.
19553 Added new known bug.
19555 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
19559 Fixed so accelerator groups work in all windows.
19560 Updated to new gtk function names.
19566 Updated to new gtk function names.
19567 Set sensitivity of the align menu items.
19569 * objects/ER/pixmaps/Makefile.am:
19570 * objects/UML/pixmaps/Makefile.am:
19571 * objects/network/pixmaps/Makefile.am:
19572 Fix so that make dist works.
19575 * app/color_area.c:
19579 * app/layer_dialog.c:
19581 * app/object_ops.c:
19582 * app/properties.c:
19583 * lib/diagramdata.[ch]:
19585 * lib/objects/ER/attribute.c:
19586 * lib/objects/ER/entity.c:
19587 * lib/objects/ER/participation.c:
19588 * lib/objects/ER/relationship.c:
19589 * lib/objects/ER/.c:
19590 * objects/UML/actor.c:
19591 * objects/UML/association.c:
19592 * objects/UML/class_dialog.c:
19593 * objects/UML/dependency.c:
19594 * objects/UML/generalization.c:
19595 * objects/UML/large_package.c:
19596 * objects/UML/realizes.c:
19599 Updated to new gtk function names.
19602 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
19608 Fixed loading of diagrams specified as arguments.
19610 * objects/ER/attribute.c:
19611 * objects/ER/entity.c:
19613 * objects/ER/participation.c:
19614 * objects/ER/relationship.c:
19615 Updated the ER objects.
19618 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
19622 * objects/Makefile.am:
19623 * objects/ER/attribute.c:
19624 * objects/ER/entity.c:
19626 * objects/ER/participation.c:
19627 * objects/ER/relationship.c:
19628 * objects/ER/pixmaps/Makefile.am:
19629 * objects/ER/pixmaps/attribute.xpm:
19630 * objects/ER/pixmaps/entity.xpm:
19631 * objects/ER/pixmaps/participation.xpm:
19632 * objects/ER/pixmaps/relationship.xpm:
19633 * objects/ER/pixmaps/weakentity.xpm:
19634 First commit of entity relationship objects.
19635 These were done by hallon@lysator.liu.se.
19636 There are still stuff to do on these.
19638 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
19643 * app/diagram.[ch]:
19644 Change diagram_remove_all_selected to take new argument
19645 delete_empty. Empty objects are deleted only if it is TRUE.
19646 Removed call to close_eps_renderer. This is now done in end_render
19647 in the eps renderer.
19649 * app/create_object.c:
19650 * app/layer_dialog.c:
19651 Update calls to diagram_remove_all_selected.
19654 Update calls to diagram_remove_all_selected.
19655 Some code reformating.
19656 Changed order of adding updates i align_h and align_v.
19658 * app/modify_tool.c:
19659 Update calls to diagram_remove_all_selected.
19660 Added pointer grab when doing rubber-band selection, this fixes
19661 the bug when draging the box over to another window.
19663 * app/connectionpoint_ops.[ch]:
19664 diagram_update_connections_object changed to take an argument
19665 update_nonmoved. This lets connections that has not moved, but
19666 the stuff they're connected to has been moved work.
19667 Update calls to the new diagram_update_connections_object.
19669 * app/properties.c:
19670 Update calls to the new diagram_update_connections_object.
19671 Update extents when properties are applied.
19673 * app/disp_callbacks.c:
19674 Added support for zooming with the '+' and '-' keys.
19677 Removed old keyboard shortcuts for zoom.
19680 Added calls begin_render and end_render to renderer.
19681 These can be used for setup and cleanup.
19683 * lib/diagramdata.c:
19684 Added calls to begin_render and end_render in data_render.
19686 * app/render_gdk.c:
19687 Added begin_render and end_render.
19689 * app/render_eps.[ch]:
19690 Added begin_render and end_render.
19691 Moved close_eps_renderer code to end_render.
19692 Various fixes to the generated eps code. This fixes importing
19693 generated eps into LYX.
19695 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
19701 Menus for alignment updated.
19703 * app/object_ops.[ch]:
19704 Functions for object alignment updated.
19706 * app/commands.[ch]:
19707 Object alignment callbacks updated.
19708 New diagrams are called Untitled-<nr>.
19710 * app/layer_dialog.c:
19711 Active layer selected when showing layers from new
19715 Compress xml files when saving.
19716 Use xml namespace 'dia'.
19719 Minor comment update.
19721 * objects/UML/class_dialog.c:
19722 Cleanup of the gkt_list_item moving code.
19723 Fixed bug with update of operation when moving parameters.
19725 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
19727 * app/layer_dialog.[ch]:
19728 Fixed the rest of the layers dialog.
19731 Added call to redo layer dialogs diagram list when changing
19734 * lib/diagramdata.[ch]:
19735 Added data_raise_layer and data_lower_layer functions for
19736 raising/lowering layers. Added data_add_layer_at for adding a
19737 layer at a specified index.
19739 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
19741 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
19744 Added support for reading diagrams from the command line.
19746 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
19748 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
19750 * app/commands.[ch]:
19751 Added objects_align_callback().
19754 Added align objects to menu.
19756 * app/object_ops.[ch]:
19757 Add object_list_align().
19759 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
19760 * app/layer_dialog.[ch]:
19761 New files. Handles the layers dialog. Needs a bugfix for glib to
19762 work. Sent patch to gtk-list.
19764 * app/pixmaps/new.xpm:
19765 * app/pixmaps/eye.xbm:
19766 * app/pixmaps/lower.xpm:
19767 * app/pixmaps/raise.xpm:
19768 * app/pixmaps/delete.xpm:
19769 New files. Images for the layer dialog buttons.
19771 * lib/diagramdata.h
19772 * lib/diagramdata.c
19773 New files for the DiagramData and Layer structures and functions.
19776 Added call to create_layer_dialog() on startup.
19778 * app/commands.[ch]:
19779 New callbacks for showing the properties and layout dialog.
19780 Changes for the new DiagramData structure.
19782 * app/connectionpoint_ops.c:
19783 * app/cut_n_paste.c:
19784 * app/diagram.[ch]:
19785 * app/display.[ch]:
19787 * app/modify_tool.c:
19788 * app/object_ops.[ch]:
19789 * app/render_eps.c:
19791 Changes for the new DiagramData structure.
19794 * app/properties.c:
19795 Set correct wmclasses.
19798 Fix load and save of layers.
19801 Update DTD for layers.
19804 New menus for dialogs.
19810 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
19813 Removed the gtk 1.1.5 stuff.
19816 Updated gtk check to version 1.1.5.
19817 Updated version from 0.20 to 0.30
19819 * app/commands.[ch]:
19820 Updated some callbacks to be of type GtkItemFactoryCallback1.
19821 Not all are done yet, but it works anyway.
19824 Removed Gtk 1.0.0 GtkAcceleratorTable references.
19828 Update to Gtk 1.1.x functions.
19829 Use ItemFactory instead of MenuFactory.
19831 * app/render_gdk.c:
19832 Removed Gtk 1.0.0 references.
19834 * objects/UML/class_dialog.c:
19835 Scrolled window updates for Gtk 1.1.5.
19838 Removed ugly fix for gnome-xml bug. Make sure you get the
19839 newest version of gnome-xml from CVS.
19841 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
19844 Removed the xml load/save line.
19850 Removed building of files.c
19853 * lib/connection.c:
19857 * lib/render_object.c:
19858 * objects/UML/actor.c:
19859 * objects/UML/association.c:
19860 * objects/UML/class.c:
19861 * objects/UML/constraint.c:
19862 * objects/UML/dependency.c:
19863 * objects/UML/generalization.c:
19864 * objects/UML/implements.c:
19865 * objects/UML/large_package.c:
19866 * objects/UML/note.c:
19867 * objects/UML/realizes.c:
19868 * objects/UML/small_package.c:
19869 * objects/UML/uml.c:
19870 * objects/UML/usecase.c:
19871 * objects/network/bus.c:
19872 * objects/standard/arc.c:
19873 * objects/standard/box.c:
19874 * objects/standard/ellipse.c:
19875 * objects/standard/line.c:
19876 * objects/standard/textobj.c:
19877 * objects/standard/zigzagline.c:
19878 Removed all includes of files.h
19881 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
19884 Made the val property of string be implied.
19885 This makes it possible to save strings that
19886 are NULL. Just leave out val.
19888 * objects/lib/dia_xml.c:
19889 Fixed string so that it is possible to save strings
19890 that are NULL. Also made an ugly workaround of a
19891 bug in gnome-xml which removes empty properties.
19893 * objects/lib/orth_conn.c:
19894 Fixed a bug in saving. Forgot to step through the
19897 * objects/UML/association.c:
19898 * objects/UML/class.c:
19899 * objects/UML/constraint.c:
19900 * objects/UML/dependency.c:
19901 * objects/UML/generalization.c:
19902 * objects/UML/implements.c:
19903 * objects/UML/large_package.c:
19904 * objects/UML/note.c:
19905 * objects/UML/small_package.c:
19906 * objects/UML/realizes.c:
19907 * objects/UML/usecase.c:
19908 * objects/UML/actor.c:
19909 Fixed UML objects to save as xml.
19910 The last two were done by asierra@servidor.unam.mx (asierra-981204)
19912 * objects/UML/uml.[ch]:
19913 Updated *_write() and *_read() functions to use xml.
19915 * objects/network/bus.c:
19916 * objects/network/computer.c:
19917 * objects/network/disc.c:
19918 * objects/network/monitor.c:
19919 Updated network diagrams to use xml.
19921 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
19924 New file. DTD that describes the xml file format
19927 * lib/dia_xml.[ch]:
19928 New files. Support for saving object to xml files.
19933 Added check for and usage of gnome-xml library.
19936 Major chages. Now saves/loads diagrams as xml.
19939 * lib/element.[ch]:
19940 * lib/connection.[ch]:
19941 * lib/orth_conn.[ch]:
19942 * lib/render_object.[ch]:
19944 Updated object support load/save functions for xml:
19946 * object/standard/arc.c:
19947 * object/standard/box.c:
19948 * object/standard/ellipse.c:
19949 * object/standard/line.c:
19950 * object/standard/textobj.c:
19951 * object/standard/zigzagline.c:
19952 Updated all standard objects to use xml.
19955 Only the standard objects are converted right now, don't
19956 save or load uml or network diagrams yet. Also, since this
19957 is new code it is deemed a bit unstable.
19962 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
19964 * objects/UML/class.c:
19965 Changed classname font to Helvetica.
19966 Added more space above the classname
19968 * objects/UML/usecase.c:
19969 Correct placements of connectionpoints on ellipse.
19970 Better algorithm for deciding aspect ration on
19973 These changes were made by Alejandro Aguilar Sierra
19974 <asierra@servidor.unam.mx>. (asierra-981201)
19976 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19978 * objects/UML/actor.c:
19979 Changed the extents and alignment of the element
19982 * objects/UML/.cvsignore:
19983 Added usecase.lo and actor.lo.
19985 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19987 * objects/UML/actor.c:
19988 * objects/UML/usecase.c:
19989 * objects/UML/pixmaps/actor.xpm:
19990 * objects/UML/pixmaps/case.xpm:
19991 New files. Implements usecase and actor UML objects.
19992 These objects are done by Alejandro Aguilar Sierra
19993 <asierra@servidor.unam.mx>.
19995 * objects/UML/Makefile.am:
19996 * objects/UML/pixmaps/Makefile.am:
19997 Added usecase and actor to makefile.
20000 Added Alejandro and Jerome to autors list.
20002 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
20004 * objects/UML/class.c (umlclass_load):
20005 Fixed typo. Reported by Jerome.Abela@solsoft.fr
20007 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
20009 * app/properties.c:
20010 Update connections when doing apply in the properties window.
20012 * objects/UML/uml.[ch]:
20013 * objects/UML/class.[ch]:
20014 * objects/UML/class_dialog.c:
20015 Added connection points on both sides of attributes and
20016 operations in UML classes.
20017 Based on idea from Jerome.Abela@solsoft.fr
20019 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
20022 Some new documentation about handles and connectionpoints.
20025 Added functions object_add_connectionpoint and
20026 object_remove_connectionpoint for handling a dynamic
20027 number of connectionpoints.
20029 * objects/UML/class.c:
20030 Only reserve space for stereotype when it is shown.
20032 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
20034 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
20036 * app/connectionpoint_ops.c:
20038 * app/disp_callbacks.c:
20039 * app/display.[ch]:
20041 * app/handle_ops.c:
20043 * app/modify_tool.c:
20044 * app/render_gdk.[ch]:
20046 Huge cleanup of internal rendering system.
20047 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
20048 This gives a few new methods for Interactive Renderers for setting
20049 clipping regions and drawing pixel based lines and rects.
20050 Updated the rest of the code to use the new stuff.
20052 * app/render_eps.c:
20056 * objects/standard/zigzagline.c
20057 Fixed unused variable warnings.
20060 Fixedbug with stringwidth where width==0.
20065 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
20067 * lib/widgets.[ch]:
20068 Added suppot for setting the font of a
20069 DiaFontSelector widget.
20070 Also fixed some typos in the header.
20073 Added a comment about the GetPRoperties method call.
20074 You have to make sure to update widget state when
20075 this method is called. (Not all objects do this yet,
20081 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
20084 Fixed problem with height of ascent and descent for fonts.
20085 It didn't use the whole height (==ascent+descent) when calculatine
20086 ascent_ratio and descent_ratio.
20088 * objects/standard/textobj.c:
20089 * objects/standard/box.c:
20090 * objects/standard/ellipse.c:
20091 * objects/standard/line.c:
20092 * objects/standard/arc.c:
20093 Updated and added property dialogs for these objects.
20094 Also added line width/color/style to those objects
20095 that didn't have it.
20096 This change breaks fileformat compatibility for these objects.
20098 * objects/standard/zigzagline.c:
20099 Changed zigzagline to be based on OrthConn, much nicer.
20100 Also added line style and color to properties.
20101 This change breaks fileformat compatibility for zigzagline.
20104 Fixed bug in message(). Forgot a pair of '&'.
20106 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
20108 * lib/widgets.[ch]:
20109 Added DiaColorSelector widget.
20110 This is a colored button that pops up a color selection
20111 dialog when pressed.
20113 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
20115 * lib/widgets.[ch]:
20117 New files, added widgets for selecting fonts, alignment
20118 and line-style. Will be used later.
20120 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
20124 * objects/UML/Makefile.am:
20125 * objects/network/Makefile.am:
20126 * objects/standard/Makefile.am:
20127 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
20128 in all Makefile.am.
20130 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
20132 * app/handle_ops.c (handle_draw):
20133 connected HANDLE_MINOR_CONTROL also becomes red.
20135 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
20138 removed -ldl from linking. This is added if needed by configure.
20141 Open dlls with RTLD_LAZY if it is defined.
20142 Some cleanups: char *error -> const char *error
20143 Added fprintf()'s to where we exited because of errors.
20146 Include <sys/types.h>
20148 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
20153 Detect dlopen better.
20154 Detect wether dlopen needs an underscore in the identifier.
20155 This code was mostly borrowed from guile.
20159 * objects/standard/standard.c:
20160 * objects/network/network.c:
20161 * objects/UML/uml.c:
20163 Changed the way sheets reference objects to use just the
20164 name. Changed module loading to a two stage model:
20165 First register_objects() is called for all modules.
20166 Then register_sheets() is called. This means that
20167 sheets can safely include objects from other modules.
20170 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
20172 * objects/network/bus.c:
20173 * objects/network/network.c:
20174 * objects/network/Makefile.am:
20175 New file bus.c. Added new object: Ethernet bus.
20177 * objects/standard/box.c:
20178 Added call to gtk_spin_button_set_numeric for linewidth spinner
20179 in property dialog.
20181 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
20183 * app/connectionpoint_ops.c:
20184 * app/create_object.c:
20186 * app/handle_ops.c:
20187 * app/modify_tool.c:
20188 * lib/connection.c:
20193 * loads of objects:
20194 Changed handle->connectable to handle->connect_type.
20195 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20196 that their connections don't break when moving objects.
20199 Always select the last handle in an object that has
20200 the closest distance.
20202 * lib/geometry.[ch]:
20203 Added rectangle_add_point function.
20206 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
20208 * app/properties.[ch]: New files. Handles the new properties
20211 * app/modify_tool.c: Changed to use new properties dialog.
20213 * app/object_ops.[ch]: Removed object_changed_callback, as it's
20214 not needed anymore. This is now handled differently in
20218 Changed the properties ops for objects. Removed typedefs
20219 ChangedObjectTime and ObjectChangedFunc needed for the old way.
20220 Added object_return_null function.
20223 * lib/render_object.c:
20225 Changed objects to use the new properties dialog.
20228 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
20230 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20233 * autogen.sh: New file. Copied from gtk and added a call to
20234 libtoolize. Anyone knows why this isn't done in gtk?
20236 * Removed autogenerated files.
20238 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
20240 * Added call setlocale(LC_NUMERIC, "C") so that formating of
20241 floating-point numbers in postscript output will be correct.
20242 * Did some cleanup of generated postscript files.