1 2005-09-04 Lars Clausen <lars@raeder.dk>
3 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
4 dimensions frame to make ext_attributes work again.
6 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
7 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
10 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
11 <dooms info ucl ac be>: Add vertical alignment for standard text
12 object. This should really be moved into lib/text.c and apply to
15 2005-09-03 Lars Clausen <lars@raeder.dk>
17 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
18 mainpoint when snap-to-objects is not on.
20 * app/Makefile.am (ICON_PNG_PAIRS):
21 Fake icons for snap-to-objects.
24 * app/menus.c (menus_get_image_menubar):
26 * app/interface.c (create_display_shell):
27 * app/create_object.c (create_object_button_release):
28 * app/disp_callbacks.c (ddisplay_drop_object):
29 * app/object_ops.[ch]:
30 * app/connectionpoint_ops.c (ddisplay_connect_selected):
31 * app/modify_tool.c (modify_button_release):
33 Togglable snap-to-objects, also doesn't snap when moving entire
34 object. This should be more reasonable in practical use, and can
35 be turned off when you want to place your arrows more precisely.
37 2005-08-06 Hans Breuer <hans@breuer.org>
39 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
40 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
41 becomes even more ugly when the user has choosen *not* to build
42 the diacairo plug-in. If noone can come up with a very convincing
43 reason why it has to be done this way I'll probably go back to
44 my original dont-build-at-all approach when this breaks the
47 2005-08-02 Lars Clausen <lars@raeder.dk>
49 * objects/standard/arc.c: Patch from Grégoire Dooms
50 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
51 implementation. "There is still a small bug when the non
52 connected end of the arc is very close to the border of the
53 connected object. I think this is due to rounding errors in the
54 code for SHIFT-move handle which is reused to trim the arc in
55 autogap. Also it is not yet possible to have a startgap and an
56 endgap from/to the same central CP."
58 2005-07-31 Hans Breuer <hans@breuer.org>
60 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
61 longer for distributions official packages - depend
62 on cairo 0.6.0 - fixes bug #307144
64 2005-07-20 Hans Breuer <hans@breuer.org>
66 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
67 which must match PropDescription, that is make it at least compile.
69 2005-07-19 Hans Breuer <hans@breuer.org>
71 * app/diagram.c(new_diagram) : what comes from g_object_new()
72 MUST NOT be g_free()'d
74 * lib/message.h : added dia_message_filename() here as well.
75 Mainly to not touch all files using. They *all* where using
76 lib/message.h already! Maybe the implemantation should be moved
77 to message.c as well cause the function has *nothing* to do
78 with dynamic filename resolving. It is a wrapper around
79 g_display_filename() mostly (only?) used for messages ...
80 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
82 2005-07-18 Lars Clausen <larsrc@raeder.dk>
84 * objects/EML/instantiation.c (instantiation_load):
85 * objects/EML/interaction-ortho.c (interaction_ortho_type)
86 * objects/ER/participation.c (participation_type):
87 * objects/FS/flow-ortho.c (orthflow_type):
88 * objects/GRAFCET/vector.c (arc_load):
89 * objects/standard/zigzagline.c (zigzagline_type):
90 * objects/UML/transition.c (transition_load):
91 * objects/UML/realizes.c (realizes_load):
92 * objects/UML/dependency.c (dependency_load):
93 * objects/UML/generalization.c (generalization_type):
94 * objects/UML/association.c (association_type):
95 * objects/UML/component_feature.c (compfeat_load):
96 Make autorouting deafult on except for old diagrams.
98 * plug-ins/cairo/diacairo.c (export_data):
99 * plug-ins/cgm/cgm.c (export_cgm):
100 * plug-ins/dxf/dxf-export.c (export_dxf):
101 * plug-ins/dxf/dxf-import.c:
102 * plug-ins/hpgl/hpgl.c (export_data):
103 * plug-ins/metapost/render_metapost.c:
104 * plug-ins/pixbuf/pixbuf.c:
105 * plug-ins/pstricks/render_pstricks.c:
106 * plug-ins/python/pydia-render.c:
107 * plug-ins/shape/shape-export.c:
108 * plug-ins/svg/render_svg.c:
109 * plug-ins/svg/svg-import.c:
111 * plug-ins/xfig/xfig-export.c:
112 * plug-ins/xfig/xfig-import.c:
113 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
114 UTF-8 in message boxes.
116 2005-07-18 Lars Clausen <lars@raeder.dk>
118 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
119 to have their dimensions specified in properties. Still needs to
120 have proper update when setting properties cause constraint changes.
122 * app/preferences.c (update_floating_toolbox): Allow
123 toolbox_on_top setting to happen at once.
129 * app/sheets_dialog_callbacks.c
135 * lib/object_defaults.c:
136 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
137 for displaying in messages - better than crashing! Mostly fixes
140 * objects/UML/class.c: Save normal_font_height under the same
141 name it gets loaded as. Fixes bug #310515.
144 * doc/en/usage-customization.xml
145 * doc/en/usage-objects-special.xml
146 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
149 2005-07-17 Lars Clausen <lars@raeder.dk>
151 * doc/en/usage-customization.xml:
152 * doc/en/usage-objects.xml:
153 * doc/en/authors.xml:
154 * doc/en/usage-objects-special.xml: Applied patch from
155 stigge@antcom.de (Roland Stigge): Diverse typos and
156 misencodings. Fixes bug #308315.
158 * objects/UML/class.c (umlclass_save): Patch from
159 i.pilcher@comcast.net: Save normal font height under correct name
160 to reload it. Fixes bug #310515.
162 2005-07-10 Hans Breuer <hans@breuer.org>
164 * app/connectionpoint_ops.c app/object_ops.c : make the
165 'whole object' connection point only center point again.
166 That is: it is visible and far less magnetic. Only the
167 line gap handling make it special. For me this probably
170 * lib/neworth_conn.c : apply the same as for bug #173031.
171 This OrthConn fork got broken as well. Fixes bug #309381
173 * app/makefile.msc objects/makefile.msc : adapt to icon changes
175 * app/interface.c app/diagram_tree.c : a char** is still not
176 a char* and the win32 build is configured to error on
179 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
181 2005-07-10 Hans Breuer <hans@breuer.org>
184 Take part in the toolbox icon redesign context! If you want to
185 make them really prettier, please keep the following in mind :
186 - the size *must* be 22x22 otherwise button reflow will get broken.
187 Or you need to change about 800 icons at once.
188 - one important part of Dia are control points, so maybe the icons
189 should reflect that. (IMO gathering random icons form other
191 - the icons should at least look consistent in their group
194 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
195 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
197 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
198 * objects/standard/pixmap/* : added arc.png beziergon.png
199 bezierline.png box.png ellipse.png image.png line.png polygon.png
200 polyline.png text.png zigzagline.png
201 * objects/standard/Makefile.am : use the new icon set including
204 * app/interface.c : remove the "will probably crash" debug spew
206 2005-07-09 Lars Clausen <lars@raeder.dk>
208 * objects/standard/pixmaps/*.png:
209 * objects/standard/Makefile.am:
210 * objects/standard/*.c:
212 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
213 new icons. [Slightly belated entry]
215 2005-07-03 Hans Breuer <hans@breuer.org>
217 * app/diagram_tree.c : dont leak display name
218 * app/app_procs.c : dont leak GOptionContext
219 * app/prop_widgets.c(frame_beginprop_get_widget) :
220 Gtk api still not eating strings ...
222 * objects/UML/class.c() : don't load properties once more
223 which are already loaded by StdProps. In case of strings
224 (data_string) it has even produced leaks.
226 * app/paginate_psprint.c app/diagram.[hc] : the last
227 of the related dialogs is gone and with it the
228 misconception of destroying widgets from
230 * app/display.c : ensure the diagram is still threre
231 when we remove the display from it's list
233 2005-07-01 Hans Breuer <hans@breuer.org>
235 * lib/widgets.c(dia_color_selector_more_callback): dont
238 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
239 option. Thus linestyles can be preserved on export - at
240 least on NT based systems.
242 * NEWS : clarify the wmf outside of windows issue
244 * app/modify_too.c : fix C99ism
246 * objects/standard/arc.c : debug spew optional at compile time
248 2005-06-26 Hans Breuer <hans@breuer.org>
250 [ Cyrille would call it: warningectomy :-]
252 * lib/font.c app/create_object.c : `...' might be used uninitialized
253 in this function. Yes they were.
254 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
255 uninitialized in this function. Yes it was with textedit_activate_object()
256 Also some static correctness.
257 * lib/diarenderer.c:678: warning: no previous prototype for
258 `calculate_min_radius'. Made static.
259 * lib/dia_svg.c : ptr is a gchar *
260 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
261 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
262 * app/app_procs.c : confirm warning and make dump_dependencies() static
263 * app/autosave.c : #if 0'd old stuff
264 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
266 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
267 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
268 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
269 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
270 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
271 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
272 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
273 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
274 removed unused variables and functions
275 * objects/UML/umlattribute.c objects/UML/umloperation.c
276 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
277 neither 'missing braces around initializer' nor 'initialization from
278 incompatible pointer type'
279 * objects/UML/class_dialog.c : more static
280 * app/interface.c : static and almost const correctness and some
281 less unitialized variables.
282 * app/diapsft2renderer.c : use (int) casts like the original
283 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
284 * app/render_gdk.c: stop assignment from incompatible pointer type,
285 make member functions match the prototype.
286 * app/render_libart.c : Dito. Also stop caching the copy_gc in
287 a static variable. Otherwise it finally leaks and also may cause
288 BadMatch with changing windows
289 => warning count down from about 250 to about 60, one or two hand full
292 2005-06-26 Hans Breuer <hans@breuer.org>
294 * lib/libdia.def : added dia_font_get_description, missing
297 * app/app_procs.c : use png_get_header_ver(NULL), that is:
298 prefer function call over exported variable to get the
299 runtime version of libpng
301 2005-06-19 Hans Breuer <hans@breuer.org>
303 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
304 as suggested by Roland Stigge, bug #308310
306 2005-06-19 Hans Breuer <hans@breuer.org>
308 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
311 2005-06-18 Hans Breuer <hans@breuer.org>
313 * NEWS : mention new file dialog
315 [plugged remaining leaks from bug #142669]
316 * lib/prop_attr.c(fontprop_free) : not only unref the font
317 but free the property itself, too.
318 * app/diagram_tree.c(create_diagram_children): remember the
319 original list start to not only free the last element
321 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
322 but not used. Here it meant a potentially huge leak.
324 2005-06-18 Hans Breuer <hans@breuer.org>
326 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
327 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
328 for others, too. ( Roland Stigge, bug #144527 )
330 2005-06-18 Hans Breuer <hans@breuer.org>
332 * plug-ins/wmf/Makefile.am : prevent installation. It
333 doesn't do anything useful on *NIX and even seems to be
334 linked wrong by gcc (or me;). Fixes bug #172830
336 2005-06-18 Hans Breuer <hans@breuer.org>
338 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
339 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
340 in function declarations. 'f();' for a function without parameters is
341 a C++ism. Though I can't get any of my compilers to warn about it.
342 Finally fixes bug #142663.
344 2005-06-18 Hans Breuer <hans@breuer.org>
346 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
347 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
348 in function declarations. 'f();' for a function without parameters is
349 a C++ism. Though I can't get any of my compilers to warn about it.
350 Finally fixes the rest of bug #142663.
352 2005-06-18 Hans Breuer <hans@breuer.org>
354 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
355 changes but doesn't hurt anyway. See bug #162034
356 * app/diapsft2renderer.c app/modify_tool.c
357 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
358 instead of messing with internals
359 * app/display.c : give interactive renderers more begin/end render.
360 It is guaranteed that the scale wont change between these.
362 2005-06-18 Hans Breuer <hans@breuer.org>
364 * app/app_procs.c : const correctness for stderr_message_internal
365 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
366 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
367 * app/disp_callbacks.c : don't dereference the to the function call
368 when the function pointer in meant to be checked against 0
369 * app/interface.c : warning fixes by using correct types
370 * app/modify_tool.c : describe_props() members returns const pointer
371 * app/render_libart.c : removed most of the render function again.
372 They happily live in lib/dialibartrenderer.c since almost 3 years
373 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
374 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
375 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
376 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
377 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
378 Both mentioned in bug #159814 and not warned by most other compilers.
379 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
380 trailing colon in the GtkTypeInfo initialization
381 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
382 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
383 between char and gint8
384 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
385 * plug-ins/wpg/wpg.c : consitently use guint8
386 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
387 redefinition warnings for python and xslt plug-ins
389 2005-06-18 Hans Breuer <hans@breuer.org>
391 * lib/diagramdata.c : really get rid of diagram_data_destroy
392 and new_diagram_data [ no previous prototype for `...' is either
393 a sign of missing static or of a function to vanish :-]
395 * lib/geometry.c : apparently the G_INLINE stuff was working only
396 with particular GLib version(s), glib-2.6.4 does not. Conditionally
397 reverting to the old mecanics.
399 2005-06-17 Hans Breuer <hans@breuer.org>
401 * plug-ins/python/pydia-*.c : include order tweaking to
402 get rid of redefinition warnings. Ensure to include <Python.h>
403 before any 'system' header, some dragged in by glib.h
404 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
405 pydia-properties.c(PyDiaProperties_Str)
406 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
407 use %p to format pointers
408 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
409 dont cast to float for %d
410 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
411 use correct pointer type
412 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
413 dont discard qualifier aka dont free const strings
414 * plug-ins/python/pydia-properties.c : casts to PyCFunction
415 * plug-ins/python/pydia-property.c : removed unused function,
416 make ensure_quarks() static
417 * plug-ins/python/pydia-render.c : removed unused vars, use
418 the correct signature for begin_render
419 (dia_py_renderer_finalize): pluged a leak
420 => except -fno-strict-aliasing there is no warning left in
423 2005-06-12 Hans Breuer <hans@breuer.org>
425 * app/filedlg.c : really fix the file extension mismatch on export dialog
426 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
428 2005-06-11 Hans Breuer <hans@breuer.org>
430 * configure.in config.h.win32.h : mark as +cvs (should have been
431 done directly after the 0.94 release)
432 * NEWS : attempt to summarize 2/3 year of development
435 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
438 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
439 app/run_dia.sh --credits > THANKS => Segmentation fault
440 * app/pixmaps/Makefile.am : added group.png and ungroup.png
441 * Makefile.am : work around scrollkeeper bug
442 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
444 * po/*.po : 'noise' produced by make dist
446 2005-06-10 Hans Breuer <hans@breuer.org>
448 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
449 * objects/custom/custom_object.c : ... and use it to avoid
450 complains about missing attribute "show_background". It is
451 safe to leave this uninitialized. Same for flip_* and "text",
452 the latter with comment cause it usually is *not* safe to do
453 it for the general case. Fixes remaining issues with bug #169006
454 which where caused by an incompatible change in the shape file.
456 * app/commands.c : use "gnome-open" instead of "netscape" as
457 fallback for $BROWSER not set. Still not optimal but better
458 to try some common desktop tool than an obsolete browser;)
459 Fixes bug #307142. Also some whitespace changes.
461 * app/interface.c(toolbox_delete): avoid random return value.
462 Patch from Stanislav Brabec, fixes bug #307143
464 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
465 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
466 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
468 2005-06-06 Lars Clausen <lars@raeder.dk>
473 Better support for text edit highlight.
475 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
476 the mainpoint extra visible.
478 2005-06-02 Lars Clausen <lars@raeder.dk>
480 * objects/UML/class_dialog.c:
481 * objects/UML/class.[ch]:
482 The final fixes for mainpoint on UML Class.
484 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
485 Ian Redfern, now in color and with mainpoints! Very pretty!
487 2005-06-02 Hans Breuer <hans@breuer.org>
489 * objects/UML/class_dialog.c : the memory managment with respect to
490 attribute/operation connections was/is a mess. But it should work again ;)
492 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
493 directly from the UML Specification - to show the power of Dia and
494 some weakness. Watch the bug reports following ;)
496 2005-06-01 Hans Breuer <hans@breuer.org>
498 * app/dia.def : export diagram_update_connections_object
499 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
500 Patch from Paolo Bernardi, together with the property setting closes bug #300572
502 2005-06-01 Hans Breuer <hans@breuer.org>
504 * plug-ins/python/pydia-property.c : complete refactoring of property
505 setting, now also supports setting of property arrays
506 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
507 Python namespacing conventions
508 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
509 complete UML Classes with attributes and operations
510 * plug-ins/python/otypes.py : now also show the properties of the objects
512 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
513 (pointers), they might be changed with attributes and opertions changing
515 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
516 were broken. Apparently noone used them before.
518 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
519 which only operate on the DiagramData to the latter file. To get on the DiagramData
520 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
521 but I don't know how to reflect that in the bindings. And for backward compatibility
522 there also is the 'data' member.]
524 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
525 objects/UML/umlparameter.c : describe enums with PropEnumData
527 * app/commands.c(view_show_all_callback) : if there is something selected show
528 that instead of all exisiting objects. If there is noting or all selcted it
529 "Show all" shows the old behaviour.
531 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
532 leaks and use less allocations caused by misguided API. Also some adaption to common
535 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
537 * app/makefile.msc : added new icons and build as console app while
538 not releaseing to the general public
540 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
541 and keep a refernce when storing the a font from style="" in s.font. This should
542 finally allow to have shapes with fully predefined text (and no 'random' crashes)
544 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
545 capable to interpret it's output
547 2005-05-31 Lars Clausen <lars@raeder.dk>
549 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
551 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
553 * configure.in: Added ne in ALL_LINGUAS
555 2005-05-24 Lars Clausen <lars@raeder.dk>
557 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
558 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
561 2005-05-23 Lars Clausen <lars@raeder.dk>
563 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
565 2005-05-21 Lars Clausen <lars@raeder.dk>
567 * lib/diaarrowchooser.c:
568 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
569 'infinite' line (three dots) arrowhead. Fix line length in arrow
570 preview. And fix typo. Fixes bug #303904.
572 2005-05-20 Hans Breuer <hans@breuer.org>
574 * lib/text.c : advice from valgrind and data_string() review:
575 neither g_free() memory on the stack
576 * objects/GRAFCET/boolequation.c : ... nor const strings
577 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
580 * app/diagram.c : a g_object_ref() following g_object_new() is almost
581 always wrong. Why would we need two refernces?
582 * app/app_procs.c : same here.If it crashes later on someone is dropping
583 refernces he does not own, and *that* needs to be fixed. This is reverting
584 "Remember to ref g_object_new'd object" (bug #170972) below, which
585 causes more harm (leaking, hiding bugs elsewhere) than good.
587 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
588 diagramdata_destroy() which was only a wrapper to g_object_unref()
590 * app/display.c(selection_changed) : don't g_strdup_printf() without
591 g_free() later /or/ a C++ comment of me mostly denotes an error
593 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
595 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
596 const gchar* entry it must not eat memory, added a lot of g_free() and
597 some const. Fixed a bunch - i.e. *all* - warnings.
598 * lib/widget.h : removed unused/deleted functions
600 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
601 avoid 'Invalid write of size 4', no luck yet
603 2005-05-19 Lars Clausen <lars@raeder.dk>
605 * objects/UML/class.c:
606 * objects/UML/class.h:
607 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
608 for uml class object. #ifdef'd out right now.
610 2005-05-18 Lars Clausen <lars@raeder.dk>
612 * objects/standard/line.c: Make line adjust its actual endpoints
613 for autogap -- looks and feels better.
615 * objects/standard/arc.c:
617 * app/modify_tool.c: Patch from Grégoire Dooms
618 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
619 shifted arc angle movement.
621 2005-05-16 Hans Breuer <hans@breuer.org>
623 * lib/widget.c : variable declarations need to be at the start of a block,
624 at least as we are not using C++ or C99
626 * plug-ins/python/pydia-property.c : implment the read part for Property
627 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
628 They are working quite well as can be seen with export-object.py
630 * plug-ins/python/codegen.py : prove it once more with the generation of C++
631 or Python code from an UML Diagram. Simply save as .py or .cxx ...
632 * plug-ins/python/Makefile.am : install it
634 2005-05-16 Lars Clausen <lars@raeder.dk>
636 * app/pixmaps/{un}group.png:
637 * app/Makefile.am (ICON_PNG_PAIRS):
638 * app/menus.c (display_menu_items):
639 New icons for grou/ungroup finally added, closing bug #105519.
641 * app/Makefile.am: Dependencies for pixmaps.
643 * app/pixmaps/connectable.png: An icon that actually makes sense
644 for switching connectability.
646 2005-05-15 Hans Breuer <hans@breuer.org>
648 * lib/group.c object/UML/classicon.c : fixed leftovers of
649 'Adding connectionpoint to _move_handle
651 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
652 is *ALWAYS* a memory leak. Plug some more.
655 In preparation to make UML operations/attributes/parameters setable by Python
656 UML class became more StdProp conformant. A nice experience to be the first
657 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
659 * objects/UML/umlattribute.c objects/UML/umloperation.c
660 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
661 split from objects/UML/uml.c and made StdProp aware
662 * objects/UML/class.c : finally make "attributes", "operations", "templates"
663 <template parameters> first class StdProps citizens.
664 (umlclass_load) : removed hand-written parsing for the above, it is all done
665 by object_load_props() now. The old write code is still in place, so be very
666 careful when changing something - at the moment load/save it is 100% compatible
668 * objects/UML/uml.c : now just type registration here, as it is supposed to be
669 * objects/UML/Makefile.am objects/makefile.msc : build the new files
671 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
673 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
674 (darray_prop_adjust_object_records) : don't loop forever
675 (whole file) : use the new (working) way to get on the second level offsets.
676 Also resolved some abbreviations, it is complicated enough without them ;)
677 * lib/proplist.c : even complete list contents may be optional
679 2005-05-15 Hans Breuer <hans@breuer.org>
681 * lib/bezier_conn.c(remove_handles) : don't try to remove
682 non-exisitng handles (patch from Radek Krahl, bug #302273)
684 2005-05-15 Hans Breuer <hans@breuer.org>
686 * plug-ins/metapost/render_metapost.c : locale independent output
687 (Radek Krahl, bug #301866)
689 2005-05-12 Lars Clausen <lars@raeder.dk>
691 * shapes/Cisco/*.{shape,png}:
692 * sheets/cisco*.sheet.in:
693 Updated with color icons from Ian Redfern, closing bug #303889.
694 Added automatic midpoints, not attempt at adjusting them.
696 2005-05-11 Lars Clausen <lars@raeder.dk>
698 * many shapes: Use mid of bounding box for midpoint, better than
699 mid of connection points generally.
701 2005-05-10 Lars Clausen <lars@raeder.dk>
703 * lib/widgets.c: Decided on one way for the ratio thing in arrow
704 size selector: Fixed ratio is on by default and keeps the sizes
705 at the given ratio, but doesn't clamp them to be the same. Fixes
708 * lib/font.c: Fix for bug #303695: Allow more than one entry of
709 each legacy name, thereby correctly encoding bold and italic of
710 the three main fonts. Also use | rather than || to combine slant
711 and weight, so matching works. Had to remove binary search for
712 new font name, but the list is short enough it's not a problem.
714 2005-05-09 Lars Clausen <lars@raeder.dk>
716 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
718 2005-05-08 Hans Breuer <hans@breuer.org>
720 * objects/UML/class.c : Reverted to have no center point.
721 At first it looked as if there was only the bug to not increase
722 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
723 potentially much more dynamic connection points (to the left
724 and right of every attribute/operation). Now simply adding one
725 between see static and dynamic will screw up any existing diagram
726 which makes use of the dynamic connection points. The would all
727 be connected with an off-by-one error. I have no idea how to
728 code around that. But breaking backward compatibility is no
729 option here. Does not completely fix bug #303301 ...
731 * lib/widget.c(dia_font_selector_set_font): actually set the options
732 menu state. So we are not any longer resetting the font style on Apply.
733 Use "UML - Class" dialog as stress text example.
735 * app/command.c : some people insist to close diagrams already
736 closed using tear-off menus. Maybe we should add a dialog
737 "Do you want to call Dr. Watson now?". If there is no diagram
738 to close anymore just do nothing, fixes bug #303221
739 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
740 Calling this with no display to close is a pathological case.
742 * app/diagram.[hc] : moved object.h and other DiaObject stuff
743 to the implementation in preparation of Big Things(tm)
745 * app/interface.c : less warnings and make it compile. strncmp()
746 does not take a char**, neither does gdk_pixbuf_new_from_inline().
748 * objects/makefile.msc plug-ins/makefile.msc : less output
750 2005-05-08 Lars Clausen <lars@raeder.dk>
752 * lib/orth_conn.c (orthconn_init): The right place to set the
753 default autorouting value. Fixes bug #303291.
755 * app/display.c (ddisplay_close): Patch from Radek Krahl
756 (ptasz3k@o2.pl): Fix crash when using from detached menu
759 2005-05-07 Lars Clausen <lars@raeder.dk>
761 * lib/orth_conn.c (orthconn_load): Autorouting should default to
762 off in diagrams that don't have it explicitly. All diagrams
763 should be explicit about it.
765 2005-05-06 Hans Breuer <hans@breuer.org>
767 * app/samples/Self/*.dia : some UML diagrams describing Dia's
768 inner working (or it's future;)
770 2005-04-26 Lars Clausen <lars@raeder.dk>
772 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
773 change to display of mainpoint to be easier to debug autogenerated
776 2005-04-23 Hans Breuer <hans@breuer.org>
778 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
779 plug-ins/python/pydia-properties.h : use lib/ prefix for
780 Dia internal headers with too common names (fixes bug #173061)
782 * app/display.c : stop special casing the first display of
783 a diagram. Every display now has it's own refernce. The initial
784 reference gets dropped when there is no display anymore. See
785 diagram_remove_ddisplay(). Fixes bug #300744.
787 * app/diapsft2renderer.c : locale independent output
788 (Radek Krahl, bug #300847)
789 * app/paginate_psprint.c : fixing use of setlocale() calls
790 (Radek Krahl, bug #300886)
791 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
792 (Radek Krahl, bug #300889)
794 * objects/UML/class.c : fix another crash with the line
795 wrapping code (Gabor Simon, bug #160865)
797 * plug-ins/cairo/diacairo.c : image rendering had an endianess
798 issue (or is this working around a libpixman bug?;)
800 2005-04-21 Lars Clausen <lars@raeder.dk>
802 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
804 * shapes/**/*.shape: All shapes now have midpoints.
806 2005-04-20 Lars Clausen <lars@raeder.dk>
808 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
809 (Radek Krahl): Make sure there's enough handles for the line.
812 * objects/UML/node.c (node_draw): Better drawing method avoids
813 garbage after moving. Fixes bug #301032.
815 2005-04-17 Hans Breuer <hans@breuer.org>
817 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
818 changes (whould compile with current cvs and 0.(3|4).0
820 2005-04-11 Lars Clausen <lars@raeder.dk>
822 * xmldocs.make (all): Fix to put installed docs in right place
825 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
828 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
829 (Leonardo Boshell): Use standard gnome help if called with Gnome.
831 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
832 locale issues for eps output. Fixes bug #173135.
834 2005-04-10 Hans Breuer <hans@breuer.org>
836 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
837 changes (somewhat broken)
839 * plug-ins/pstricks/render_pstricks.c : still C89 ...
840 * objects/custom/shape_info.c : ... but with prototypes
842 2005-04-07 Lars Clausen <lars@raeder.dk>
845 * plug-ins/svg/render_svg.c:
846 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
847 Make decimal separators be correct in save file formats
848 (non-localized). Fixes bugs #172529 and 172531.
850 2005-04-06 Lars Clausen <lars@raeder.dk>
852 * app/create_object.c (create_object_button_release):
853 * app/modify_tool.c (modify_button_release): Correct activations
856 2005-04-05 Simon KĂ¥gström <ska@bth.se>
858 * app/app_procs.c: the --show-layers option can now handle numeric
861 2005-04-05 Lars Clausen <lars@raeder.dk>
863 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
864 (Tom Kast): Avoid blockiness caused by bad updates.
866 2005-04-03 Lars Clausen <lars@raeder.dk>
869 * lib/beziershape.c: Main points. A crude solution, having the
870 center in the middle of the bb. Shows a bug in the distance_from
871 code for polyshape when a side is horizontal.
873 2005-04-02 Lars Clausen <lars@raeder.dk>
875 * plug-ins/pstricks/render_pstricks.c:
876 * plug-ins/xfig/xfig-export.c: Patch from Radek
877 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
879 2005-04-02 Hans Breuer <hans@breuer.org>
881 * lib/dia_image.c(dia_image_filename) : return the path
882 again. (bug #172416, Radek Krahl)
884 2005-04-01 Steve Murphy <murf@e-tools.com>
886 * configure.in: Added "rw" to ALL_LINGUAS.
888 2005-03-31 Lars Clausen <lars@raeder.dk>
890 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
892 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
895 * objects/network/basestation.c: Main points.
897 2005-03-27 Hans Breuer <hans@breuer.org>
899 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
900 * app/pixmaps.h : removed arrow.xpm
901 * lib/Makefile.am : added diamarshal
902 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
903 => makes 'make dist' pass and produce a useable package
905 * po/*.po : 'noise' profuced by make dist
907 2005-03-24 Lars Clausen <lars@raeder.dk>
909 * objects/flowchart/parallelogram.c (pgram_update_data):
910 * objects/flowchart/ellipse.c (ellipse_update_data):
911 * objects/flowchart/diamond.c (diamond_update_data):
912 * objects/flowchart/box.c (box_update_data): Main points.
914 * objects/custom/custom_object.c (custom_create):
915 * objects/custom/shape_info.h:
916 * shapes/Assorted/square.shape:
917 * objects/custom/shape_info.c (load_shape_info):
918 * doc/shape.dtd: Added main point support to shapes, and an
919 example of how to use it.
921 2005-03-21 Lars Clausen <lars@raeder.dk>
923 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
924 unnormalize from same point as you normalize, or else!
926 2005-03-20 Lars Clausen <lars@raeder.dk>
928 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
929 Remember to ref g_object_new'd object.
931 2005-03-19 Hans Breuer <hans@breuer.org>
933 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
934 have configurations, fixes bug #170962
936 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
937 or better not used any longer. Fixes bug #169142.
939 * lib/element.c(element_update_connections_rectangle): don't initialize
940 the eighth point twice but instead the nineth once
942 * objects/standard/bezier.c : no C++ comments *please*
944 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
946 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
947 * plug-ins/python/pydia-image.c : ... so, don't do it!
949 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
950 also named colors via pango_color_parse()
952 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
954 * lib/libdia.def : updated externals
956 * app/object_ops.c : still not C99 everywhere
958 2005-03-19 Hans Breuer <hans@breuer.org>
960 * lib/autoroute.c : at least it should compile ;)
962 2005-03-19 Lars Clausen <lars@raeder.dk>
964 * lib/autoroute.c: Orthconns now do autogap.
966 2005-03-17 Lars Clausen <lars@raeder.dk>
968 * app/authors.h: Added Gregoire Dooms for gap stuff.
970 * objects/standard/polyline.c: Patch from Grégoire Dooms
971 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
973 * objects/standard/bezier.c: Patch from Grégoire Dooms
974 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
978 * objects/UML/state_term.c:
979 * objects/UML/large_package.c:
980 * objects/UML/node.c:
981 * objects/UML/object.c:
982 * objects/UML/small_package.c:
983 * objects/UML/state.c:
984 * objects/UML/usecase.c:
985 * objects/UML/note.c:
986 * objects/UML/actor.c:
987 * objects/UML/classicon.c:
988 * objects/UML/component.c:
989 * objects/Misc/analog_clock.c:
990 * objects/Jackson/requirement.c:
991 * objects/Istar/goal.c:
992 * objects/Istar/actor.c:
993 * objects/FS/function.c:
994 * object/standard/box.c:
995 * objects/ER/entity.c:
996 * objects/ER/relationship.c:
997 * objects/ER/attribute.c: Main points added. Distance_from fixed
998 in attribute, broken in relationship, I* goal, Jackson
999 requirement, analog_clock, all non-rectangular UML elements,
1002 * lib/element.[ch]: New method to help update connection points.
1004 * app/menus.c: Change Help/Manual to Help/Contents to follow
1007 * objects/standard/line.c:
1008 * lib/geometry.[ch]:
1009 * objects/standard/bezier.c: Patch from Grégoire Dooms
1010 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1011 bezier objects. Autogap nowchanged to be a function of the
1015 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1018 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1019 CP_FLAG_ANYPLACE connpoints.
1021 2005-03-16 Lars Clausen <lars@raeder.dk>
1023 * app/interface.c (create_tools): Removed debug printf.
1025 2005-03-15 Lars Clausen <lars@raeder.dk>
1027 * lib/widgets.[ch]: Constification.
1029 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1032 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1034 * lib/connectionpoint.h: Flags for connection points.
1036 * app/create_object.c (create_object_motion):
1037 * app/modify_tool.c (modify_motion): Minor refactoring.
1039 * app/object_ops.c (object_find_connectpoint_display): Extend with
1040 finding connpoints that cover entire objects.
1042 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1044 * objects/custom/custom_object.c (custom_setup_properties): Avoid
1047 2005-03-13 Hans Breuer <hans@breuer.org>
1049 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1051 2005-03-13 Hans Breuer <hans@breuer.org>
1053 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1054 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
1055 dia_svg_style_copy(), dia_svg_style_init()
1057 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1060 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1061 not wrapped in the style attribute
1063 * plug-ins/svg/svg-import.c : implement nested group handling and style
1064 'style inheritance'. Still no transformations, no <image/>, no <style/>
1067 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1068 the latter is for programmers.
1069 Also be more tolerant if the document root namespace is not 'svg'. If the svg
1070 namespace is defined in the file search for the top node including svg. This
1071 allows us to re-read the svg part of our own shape format.
1073 * lib/libdia.def : there is no give_focus_to_object
1074 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
1075 type as an expression
1077 * lib/geometry. c : use G_IMPLEMENT_INLINES
1078 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1080 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1081 gone when trying to remove the focus
1083 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1084 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1085 case of this plug-in, i.e. producing output files]
1087 2005-03-13 Lars Clausen <lars@raeder.dk>
1089 * lib/Makefile.am (BUILT_SOURCES):
1090 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1091 the building of the icons header files.
1092 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1094 2005-03-13 Hans Breuer <hans@breuer.org>
1096 * configure.in : require Cairo 0.3.0
1097 plug-ins/cairo/diacairo.c : changed to match ;-)
1099 * app/app_procs.c() : new function dump_dependencies()
1100 which gets called by: dia --version --verbose
1101 and may help to track version dependent problems in
1104 * lib/font.c : reverted to previous version cause using
1105 not implemented Pango API did not improve the issue.
1106 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1107 for more information.
1109 * lib/dialinechooser.c : a little shrinking of the
1110 initial size (to work around line wrappjing the right
1113 2005-03-11 Lars Clausen <lars@raeder.dk>
1115 * app/textedit.c: Concentrate start/end editing in single functions.
1117 2005-03-10 Lars Clausen <lars@raeder.dk>
1120 * lib/object.h: Added new object function to allow the object to
1121 be notified when its text is being edited.
1124 * app/modify_tool.c:
1127 * lib/focus.c: Remove sideeffects from focus objects, add getter
1130 2005-03-09 Lars Clausen <lars@raeder.dk>
1132 * lib/Makefile.am (dia-lib-icons.h):
1133 * app/Makefile.am: Minor cleanup.
1135 2005-03-06 Hans Breuer <hans@breuer.org>
1137 * app/app_procs.c : avoid "assignment within conditional expression"
1138 and handle -L for the GOption case as well.
1140 * lib/widget.c : strchr() does not return -1 on not found but NULL;
1141 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
1142 indirection from 'const int '
1144 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
1145 large_arc, thus produce correct arc output (like diasvg.py does;),
1148 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
1149 from objects/custom/shape_info.c to be shared with object/custom and
1150 plug-in/svg -> finally the C based svg-import reads pathes again.
1151 Added arc parsing while I was there, which fixes bug #169191
1152 * objects/custom/shape_info.c(parse_path) :
1153 * plug-ins/svg/svg-import : reuse above function
1154 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1155 But in general this does only support a small subset of what is
1158 2005-03-06 Lars Clausen <lars@raeder.dk>
1160 * objects/UML/association.c: Patch from Dave Klotzbach applied:
1161 Add visibility to association arrow. Fixes bug #157012.
1163 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1164 closing bug #161040.
1166 * app/layer_dialog.c (create_button_box): Use stock icons instead
1167 of homemade onces. Gets us rid of four more XPMs.
1169 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
1171 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
1172 This option permits command line control of which layers are visible.
1173 Useful when automatically exporting multiple versions of the same
1174 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
1175 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
1176 and made it static since its only used in that file.
1177 * app/authors.h: added myself
1178 * doc/en/dia.1: documented the switch
1179 * doc/en/usage-layers.xml: ditto
1181 2005-03-05 Alan Horkan <horkana@tcd.ie>
1183 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
1184 this restores how Dia behaved before the GTK2 port and seems to help
1185 allow the toolbox to be more easily resized. Bug #108891.
1187 2005-03-05 Lars Clausen <lars@raeder.dk>
1189 * Civil/civil_motor.shape:
1190 * Civil/civil_rotor.shape:
1192 * Logic/buffer.shape:
1193 * Logic/connector.shape:
1194 * Logic/inverter.shape:
1200 * shapes/Assorted/arrow-left-up.shape:
1201 * shapes/Assorted/heptagon.shape:
1202 * shapes/Assorted/star5.shape:
1203 * shapes/Assorted/trapezoid.shape:
1204 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
1205 defaults, see bug #169143.
1207 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
1210 * doc/en/Makefile.am: Finally figured out the right way to ask for
1211 the manpage xslt. Closes bug #144539.
1213 2005-03-01 Lars Clausen <lars@raeder.dk>
1215 * lib/Makefile.am (nodist_include_HEADERS):
1216 * app/Makefile.am: Correctly generate these files from PNGs with
1221 * lib/widgets.c: Refactor toggle button factory to allow inline
1224 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
1226 * app/makefile.msc (ICON_PNG_PAIRS):
1227 * app/dia-app-icons.h: Updated with more icons.
1230 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
1233 * app/interface.c (create_display_shell):
1234 * app/layer_dialog.c (dia_layer_widget_init):
1235 * lib/dia_image.c (dia_image_get_broken): Use inlined data
1238 * app/display.c (ddisplay_close): Removed unused includes.
1240 2005-03-01 Lars Clausen <lars@raeder.dk>
1242 * app/sheets.c (create_object_pixmap): Create a placeholder image
1243 for when the real image is missing. Better than crashing:)
1246 2005-02-25 Hans Breuer <hans@breuer.org>
1248 * app/app_procs.c : don't requets to open a default display with
1249 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
1251 2005-02-22 Lars Clausen <lars@raeder.dk>
1253 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
1256 2005-02-19 Lars Clausen <lars@raeder.dk>
1258 * app/menus.c (display_menu_items): Applied patch from bug #94019:
1259 Menu cleanup and addition of icons. Also a few additional stock
1262 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
1265 2005-02-14 Lars Clausen <lars@raeder.dk>
1267 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
1269 2005-02-13 Lars Clausen <lars@raeder.dk>
1271 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
1272 width. Seems to work. Once tested some more, needs old code
1275 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
1276 warning by escaping & properly.
1278 2005-02-06 Lars Clausen <lars@raeder.dk>
1280 * app/filedlg.c (file_export_callback): Set correct extension as
1281 soon every time the dialog is shown. Fixes bug #162535.
1283 * app/display.c (ddisplay_set_origo): Use more standard
1286 * app/modify_tool.c (modify_motion):
1287 * app/create_object.c (create_object_motion): Put coordinates of
1288 handle/object in status bar while moving. Fixes bug #163164.
1290 2005-02-03 Lars Clausen <lars@raeder.dk>
1292 * lib/.cvsignore: Added generated files diamarshal.[ch]
1294 2005-02-02 Lars Clausen <lars@raeder.dk>
1296 * configure.in: Add GLIB_GENMARSHAL def as suggested in
1297 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
1298 Now compiles on Linux.
1300 2005-02-01 Lars Clausen <lars@raeder.dk>
1302 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
1303 need to translate the empty string. Especially not after
1304 g_assert_not_reached(). Fixes bug #165966.
1306 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
1308 * objects/UML/activity.c : add fill- and line-colour properties
1309 [applied by Hans Breuer, fixes bug #163260]
1311 2004-01-28 Hans Breuer <hans@breuer.org>
1313 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
1314 update provided by Alan Horkan (fixes bug #159592)
1316 2004-01-28 Hans Breuer <hans@breuer.org>
1318 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
1319 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
1320 generalization, dependancies, parameterized classes ...
1321 * plug-ins/xslt/styleshetts.xml : refernce it
1322 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
1324 2004-01-28 Hans Breuer <hans@breuer.org>
1326 * objects/UML/transition.c : fill out the extra_spacing struct
1327 in the OrtConn member, in order to avoid artifacts when draggin
1328 the transition. (patch by Peter Allin, bug #144956)
1330 2004-01-15 Hans Breuer <hans@breuer.org>
1332 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
1333 to something differnt than 0. Apparently there are case where Dia misses
1334 to appropriately set it before requesting a dashed line (simple line with
1335 arrow as described in bug #151716)
1337 * lib/dia_dirs.c : special casing for drive letters which I broke with
1340 2005-01-13 Hans Breuer <hans@breuer.org>
1342 * app/interface.c(create_sheet_page) : remved dead long time code
1344 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
1345 it is availbale via header - which is the better style anyway
1347 2004-12-31 Hans Breuer <hans@breuer.org>
1349 * lib/dia_dirs.c(dia_get_canonical_path) : complete
1350 rewrite to handle something like /mnt/some/where/../else
1351 too. Workaround for bug #162637.
1352 * app/filedlg.c : call gtk_file_chooser_set_current_name()
1353 to workaround gtk_file_chooser_set_filename() not setting
1354 it if the file does not exist
1356 * sheets/Jackson.sheet.in app/menus.c : fixed typos
1357 (Frank Arnold, bug #161676)
1359 2004-12-31 Steffen Macke <sdteffen@gmail.com>
1361 * doc/pl/*.xml: Added XML prolog
1362 * makefile.msc: Added libxslt, fixed libxml, libart
1364 2004-10-29 Alexander Shopov <ash@contact.bg>
1366 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
1368 2004-12-29 Lars Clausen <lars@raeder.dk>
1370 * configure.in: Make gnomeprint be truly off by default (typo) and
1371 show optional compilation correctly.
1372 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
1374 2004-12-22 Hans Breuer <hans@breuer.org>
1376 * lib/widgets.c : destroy handlers can be called more than once,
1377 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
1379 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
1381 * app/display.c : temporary debug code showing the
1382 timing the rendering
1384 * app/dialibartrenderer.c(draw_string) : removed dead
1385 code loading and leaking font and face
1387 2004-12-15 Hans Breuer <hans@breuer.org>
1389 * app/display.c : actually use the selction-changed signal for something
1390 useful. Show selections representation on statusbar.
1391 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
1392 * app/diagram_tree.c : use new function (as in app/display.c) and only
1393 poke into property internals at one place
1394 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
1397 2004-12-12 Hans Breuer <hans@breuer.org>
1399 * lib/libdia.def app/dia.def : updated externals
1401 * objects/custom/custom_object.c : custom_destroy is called per object.
1402 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
1403 reference to it. Fixes e.g. bug #158288, #160550, ...
1405 * objects/UML/association.c(association_draw) : completed porting to
1406 draw_polyline_with_arrows()
1407 (association_update_data_end) : fixed typo in point compare
1408 (association_update_data) : for name placement take degenerated
1409 segements into account. Together this fixes bug #143891
1411 2004-12-11 Hans Breuer <hans@breuer.org>
1413 * lib/widgets.c(set_size_sensitivity) : revert inverted
1414 logic for arrorw size selections, fixes bug #160527
1416 2004-12-11 Hans Breuer <hans@breuer.org>
1418 * lib/widgets.c(dia_font_selector_set_font) : initialize
1419 the font style widget, too. Gets rid of empty font
1420 style and thus default broken font style, e.g. UML::class_name
1422 * lib/widgets.c(dia_color_selector_more_callback) : fill
1423 the color palette from dynamic menu entries and also
1424 preselect the current color to the last select entry
1426 * plug-ins/python/pydia-diagramdata.c : hold a reference
1427 to the underlying GObject
1429 * app/Makefile.am app/diagrid.h : new file containing the
1430 grid 'class' moved from DiagramData to Diagram.
1431 Also moved pagebreak_color and guides cause they are only
1432 used for visual appearance not 'data'.
1433 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
1434 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
1437 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
1438 lib/libdia.def : get rid of new_diagram_data()
1439 Diagram _is_ DiagramData (and does not have one any longer,
1440 just a compatibility pointer)
1442 * lib/diarenderer.h : a small doc improvement
1444 2004-12-11 Hans Breuer <hans@breuer.org>
1446 * objects/UML/class.c : line wrapping code buffer
1447 overrun fixed by Gabor Simon, bug #160865
1449 2004-12-11 Hans Breuer <hans@breuer.org>
1451 * plug-ins/python/pydia-diagram.c : hold a reference
1452 to the diagram in PyDiaDiagram, avoids bug #159080
1453 [another way to avoid is to detroy the dialog by
1454 clsoing it. But now there is still a diagram to
1455 apply the changes to, even if it's thrwon away just
1458 2004-12-10 Hans Breuer <hans@breuer.org>
1460 * **/*.c : fixed a bunch of warnings, not only for -ansi
1461 (still too many of them, but -ansi works)
1463 prop_geomtypes.h prop_geomtypes.c:306: warning: static
1464 declaration for `fontsizeprop_reset_widget' follows non-static
1465 dia_dirs.c:196: warning: return discards qualifiers from
1469 shape_info.c:121: warning: static declaration for `parse_path'
1473 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
1474 arrow.c:244: warning: unused variable `i'
1475 arrow.c:245: warning: unused variable `p'
1476 arrow.c:246: warning: unused variable `zzr'
1478 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
1479 finally removed c++ comments
1481 objects/Istar/goal.c : initialize connections::directions
1482 while I was there - helps autorouting
1484 * objects/KAOS/metaandorrel.c objects/Istar/link.c
1485 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
1486 (it would be quite simple to add image-from-memory support
1489 * pydia-*.h : warning: no newline at end of file
1491 * plug-ins/gprint/diagnomeprint.c : allow to unregister
1492 and follow new unique name naming convention
1493 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
1496 2004-12-07 Hans Breuer <hans@breuer.org>
1498 * objects/UML/message.c : better default for initial text placement
1499 a suggested in bug #154306, Henning Mersch
1500 * objects/UML/constraint.c : doing the same
1502 * app/filedlg.c : include persistence.h for persistence_get_integer
1503 * lib/libdia.def export it
1505 2004-12-05 Hans Breuer <hans@breuer.org>
1507 * app/grid.c : respect dynamic grid during snap-to, fixes
1508 bug #135124, Dmitriy Morozov. Added some additional magic
1509 to make the grid size more useable.
1511 2004-12-05 Hans Breuer <hans@breuer.org>
1513 * app/app_procs.c : make it compile for the HAVE_POPT and
1514 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
1516 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
1517 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
1518 when interactive. Fixes bug #119329
1520 * plug-ins/cairo/diacairo.c : adapt to new type naming
1521 scheme (introduced by accident;-) for pixbuf-*
1522 * app/app_procs.c : reflect both type name changes
1524 2004-12-04 Hans Breuer <hans@breuer.org>
1526 * objects/standard/image.c : fix the correct warning
1527 `image_file_name' might be used uninitialized
1529 * app/filedlg.c : near complete rewrite
1530 - removed 'related dialog', GtkOptionMenu, most global vars,
1531 also don't hide the dialog but let it go.
1532 - added: filter view by extension, hopefully working diagram
1533 referencing, GtkComboBox usage
1535 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
1536 of im/export filter entries. So the user interface reflects
1537 the dynamic nature of pixbuf loaders
1539 * lib/filter.[ch] : implement filter_unregister_*port
1540 lib/libdia.def : added new functions
1541 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
1542 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
1543 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
1544 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
1545 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
1546 use them in _plugin_unload () thus all these plug-ins
1547 can be loaded used and unloaded during Dia's runtime
1549 2004-12-04 Lars Clausen <lars@raeder.dk>
1551 * lib/diagramdata.h: Access methods for units defined per diagram.
1553 * lib/font.c (dia_font_new_from_style): More proper object creation.
1555 * lib/properties.h: Refactored the PROP_STD_* macros to allow
1558 * app/diagram.c (diagram_init): Force filename to be absolute
1559 path, easing the job for load/save.
1561 2004-12-03 Hans Breuer <hans@breuer.org>
1563 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
1564 added dia_font_set_height, dia_font_copy (note to self: don't try to
1565 maintain these from the *NIX side ;)
1567 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
1568 the new color selection anymore
1569 * objects/UML/class_dialog.c : with the above change it would have been more
1570 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
1571 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
1573 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
1574 (used in object vtable) and make its prototype match
1576 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
1577 correlate any of these strange crashing bug with it, but assume bad things to
1578 happen when one passes stack allocated stuff to gtk_type_unique()
1580 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
1581 not there. Fixes most of the warnings from bug #156996
1583 * lib/makefile.msc : rules to generate diamarshal.[ch]
1585 2004-11-29 Hans Breuer <hans@breuer.org>
1587 * app/disp_callbacks.c : reenable so-called preedit
1588 as described in bug #158859, Etsushi Kato
1589 Also fixed some compiler warnings while there.
1591 * objects/standard/image.c(get_directory) : make
1592 the documentation match the implementation.
1593 (image_save) : don't write a leading slash on
1596 * plug-ins/gprint/diagnomeprintrenderer.c :
1597 switched to gnome-print-pango usage
1599 * app/app_procs.c configure.in : although Dia
1600 is not threaded it appears as if we have to
1601 g_thread_init() to avoid crashing in some
1602 libraries which are thread enabled
1604 * lib/diamarshal.list lib/Makefile.am : start of
1605 using GSignal to clean up some object relations
1606 * lib/libdia.def : export marshallers
1607 * app/diagram.[ch] : emit signals when REMOVED,
1609 * app/display.c : added a connection to
1610 SELECTION_CHANGED to test the new signal stuff
1612 * app/diagram.c : fixed diagram_finalize while I
1615 2004-11-28 Hans Breuer <hans@breuer.org>
1617 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
1618 the text if conversion to current locale fails. [This is actually
1619 using code written four years ago;]
1620 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
1622 * objects/standard/image.c(image_load) : be more robust against
1623 filenames which seem to be absolute
1625 2004-11-27 Hans Breuer <hans@breuer.org>
1627 * app/filedlg.c(file_save_callback) : convert to
1628 filename encoding before passing to diagram_save()
1629 Fixes bug #158381, thanks to Robert Ă–gren
1631 2004-11-27 Hans Breuer <hans@breuer.org>
1633 * lib/dialibartrenderer.c : sometimes its good to read
1634 compiler warnings. Not only define renderer_finalize
1635 but actually *use* it. Should plug a potential huge
1638 * configure.in plug-ins/Makefile.am
1639 plug-ins/gprint/Makefile.am : build the experimental
1640 gnomeprint plug-in on *NIX, too.
1641 * plug-ins/gprint/diagnomeprint.c : don't include
1642 specific (private) backend headers but instead select
1643 the desired backend via config key setting
1645 * lib/diagdkrenderer.c : add 1 to size of filled arc
1646 to be rendered by gdk. Fixes bug #150896.
1648 * plug-ins/gprint/diagnomeprint.c
1649 plug-ins/gprint/diagnomeprintrenderer.c : added magic
1650 to better match page and dash sizes
1652 2004-11-27 Hans Breuer <hans@breuer.org>
1654 * plug-ins/shape/shape-export.c : it's g_strdup_printf
1656 2004-11-27 Hans Breuer <hans@breuer.org>
1658 * app/app_procs.c : mention eps-builtin aka. "using
1659 latin1", does not fix the eps-pango issues but #150571
1661 2004-11-27 Hans Breuer <hans@breuer.org>
1663 * sheets/Cybernetics.sheet.in : changed encoding to
1664 utf-8, patch from Takeshi AIHANA, fixes #149580
1666 2004-11-27 Hans Breuer <hans@breuer.org>
1668 * objects/custom/custom_object.c : many existing shapes
1669 rely on a square default size, revert to it although
1670 it originally was by a typo. Fixes bug #148527.
1672 2004-11-27 Hans Breuer <hans@breuer.org>
1674 * app/load_save.c(dia_cleanup_autosave)
1675 app/diagram.c : don't use dia->filename if already
1676 freed and dont use printf at all.
1678 * app/paginate_psprint.c : not only set the renderer::paper
1679 but also renderer::is_portrait. Should fix bug #142524
1681 2004-11-26 Hans Breuer <hans@breuer.org>
1683 * dia.desktop.in : added Bug Buddy headers (as seen
1684 in planner). Hopefully the automatically filling of
1685 bugs is more meaningful by this.
1687 * objects/custom/custom_util.c objects/standard/image.c
1688 lib/plug-ins.c : getting rid of deprecated g_dirname,
1689 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
1690 bytes inside a block of size 44 free'd
1692 * lib/persistence.c(persistence_load_list) : don't
1695 * lib/diaerror.[ch] : (new file) start of better error handling
1696 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
1697 added new files/funcs
1698 * lib/proplist.c lib/propinternals.h (prop_list_load) :
1699 allow to propagate error to caller. Also set PXP_NOTSET
1700 to avoid applying unset properties, fixes bug #155255
1701 * lib/propobject.c lib/prop_sdarray.c : still spewing
1702 g_warnings but now with context information
1704 * app/filedlg.c : more absolute filenames where required
1705 and strip them where we need the filename only
1706 Also explicit DONT choose gnome-vfs backend cause its
1707 threading appears to crash Dia - at least in GNOME build,
1710 2004-11-26 Hans Breuer <hans@breuer.org>
1712 * app/filedlg.c : don't use relative filenames for
1713 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
1715 (export_set_extension) : if we don't have a filename don't
1716 use it in strrchr() to avoid crashing
1718 2004-11-23 Hans Breuer <hans@breuer.org>
1720 * app/app_procs.c : fixed build for the GNOME case
1721 (let's rip out POPT and depend on glib-2.6, please ;-)
1723 2004-11-23 Hans Breuer <hans@breuer.org>
1725 * app/app_procs.c : fixed typo which broke the
1726 build for HAVE_POPT case
1728 2004-11-21 Hans Breuer <hans@breuer.org>
1730 * app/app_procs.c : some more #if-mess, but one day
1731 we should rely on GLib's 2.6 Option Parser alone
1733 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
1734 and height for RoundRect() - otherwise size depends on offset,
1735 shorten the unique name
1737 * plug-ins/python/diamodule.c : provide a unique name
1738 for python filters as well
1740 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
1741 by using the right colors (need black background cause we
1742 are tinitng it with the real color later)
1744 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
1745 instead of hardcoded slahes, improved portability
1747 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
1748 plug-in. Also added some more error reporting (e.g. no printer driver)
1750 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
1751 plug-ins/makefile.msc : resurrection of the gnome print renderer.
1752 Kinda works (alpha quality) for export but does not print yet.
1753 With bug #158972 resolved this does even work on win32 :-)
1755 2004-11-07 Hans Breuer <hans@breuer.org>
1757 * doc/diagram.dtd : <composite> can have <composite/>,
1758 <font/> has two 'optional' atributes 'style' and 'family',
1759 these are used to store new (since 0.91) font info.
1760 With this changes non of the issues in bug #147431 remains.
1762 * plug-ins/python/otypes.py : starting to implement an
1763 'create all known object' file as ne stress test source
1764 for the dtd and Dia in general.
1766 2004-11-06 Hans Breuer <hans@breuer.org>
1768 * app/diapsrenderer.c : don't convert to locale but to
1769 "LATIN1", fixes bug #146641
1771 2004-11-06 Hans Breuer <hans@breuer.org>
1773 * app/diagram_tree.c : still no C99 everwhere ...
1774 * lib/libdia.def : update externals
1775 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
1777 * app/app_procs.[hc] : declare, use ...
1778 app/winmain.c : ... and implement dia_redirect_console().
1779 Even though newer Gtk version don't popup a console window
1780 anymore redirecting the error messages to a file in $TEMP appears
1781 to be much more reasonable than just ignoring it. Fixes bug #150777
1782 based on a patch from Steffen Macke
1784 2004-11-06 Hans Breuer <hans@breuer.org>
1786 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
1787 RoundRect() for high level renderer api implementation thus
1788 fixing bug #138744 reported by Lars Clausen
1790 2004-11-06 Hans Breuer <hans@breuer.org>
1792 * app/prefernces.c : applied patch to make showing the diagram
1793 menubar the default (advanced users know how to switch it off)
1794 Fixes bug #150706, Steffen Macke
1796 2004-11-06 Hans Breuer <hans@breuer.org>
1798 * app/commands.c app/commands.h : added view_fullscreen_callback()
1800 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
1801 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
1802 ALso modified to allow handling of unmodified keys again (aren't
1803 there plenty of bug reports for this?
1805 2004-11-06 Hans Breuer <hans@breuer.org>
1807 * objects/UML/class_dialog.c : fixed casts for usage
1808 of dia_color_selector_set_color()
1810 * app/filedlg.c : pass a valid filenames to
1811 gtk_file_chooser_set_filename(), if we don't have a name
1812 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
1813 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
1814 assertion `local_full_path[0] == '/'' failed"
1816 2004-11-06 Lars Clausen <lars@raeder.dk>
1818 * app/properties.c (create_dialog):
1819 * app/diagram_tree_window.h:
1820 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
1821 * app/diagram_tree_menu_callbacks.c:
1822 * app/diagram_tree_window.c:
1823 * app/diagram_tree_menu.c:
1824 * app/diagram_tree.c: Changed to use persistence instead of
1825 strange hacks in preferences.
1827 * lib/persistence.h:
1828 * lib/persistence.c (persistent_list_get_glist): Don't deref null
1829 pointer. New function persistent_list_remove_all, and
1830 fixed persistent_list_remove to ... work!
1832 2004-11-05 Lars Clausen <lars@raeder.dk>
1834 * app/paginate_psprint.c (diagram_print_ps): Call
1835 diagram_print_destroy on destroy rather than delete_event. That
1836 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
1839 2004-11-02 Lars Clausen <lars@raeder.dk>
1841 * objects/UML/class.c (umlclass_load): Actually load the saved
1842 fonts and font sizes. Fixes bug #157016
1844 * configure.in: Require at least GTK+ 2.4.
1846 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
1847 finally, finally. Not quite bulletproof yet, and I need to figure
1848 out a minimum version of Gtk that doesn't spew warnings all over.
1850 * app/diagram.[ch]: diagram_set_filename with const filename.
1852 * app/sheets_dialog_callbacks.c
1853 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
1854 correctly recreated. Still something fishy with the sheet menu in
1855 the dialog after adding a new sheet. Probably the sheet name
1858 2004-11-01 Lars Clausen <lars@raeder.dk>
1860 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
1861 stmping. Now requires g_free here and there.
1863 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
1864 for remembering last sheet, better off as persistent string. Must
1865 hunt down other things like that.
1867 * app/interface.c (create_sheets): Now remembers last sheet
1868 selected again. Fixes bug #157036.
1870 2004-11-01 Hans Breuer <hans@breuer.org>
1872 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
1873 will never become NULL but only point to the next char
1874 which might indeed be \0]
1875 Use tex_escape_string() to avoid writing invalid tex,
1878 * **/* : a bunch of changes caused by trying 'make distcheck'
1879 which still fails, see Bug #144527
1881 2004-10-31 Lars Clausen <lars@raeder.dk>
1883 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
1884 floating point numbers being printed with commas. Fixes bug
1887 * app/interface.c (create_sheet_dropdown_menu): New function to
1888 create the sheet menu, and also allow recreation. Still buggy and
1889 slightly prone to magic.
1891 * objects/UML/class_dialog.c
1892 (attributes_list_selection_changed_callback): Don't try to update
1893 the widgets after they're destroyed. Fixes bug #156706 (I think).
1895 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
1896 adjustement. Fixes bug #154637
1898 * sheets/ER/Makefile.am (PIX):
1899 * sheets/GRAFCET/Makefile.am (PIX):
1900 * sheets/Jackson/Makefile.am (PIX):
1901 * sheets/Istar/Makefile.am (PIX):
1902 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
1903 XPM. Why these have their pictures in sheets rather than shapes I
1904 don't know. Fixes bug #152142.
1906 2004-10-31 Hans Breuer <hans@breuer.org>
1908 * plug-ins/pixbuf/pixbuf.c : when running non interactive
1909 Dia won't call color_init() as it assumes no display. If
1910 we have one as tested ourselve we can as well color_init()
1911 to avoid g_warnings() and produce the right collors.
1914 * app/app-procs.c : try to be a little more helpful
1915 and correct with regard to the command line options.
1916 Renamed --export-to-format to --export-filter and some
1917 other string changes
1919 2004-10-31 Hans Breuer <hans@breuer.org>
1921 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
1922 added GetDeviceCaps() dummy implementation to make
1923 'wmf' compile on Linux, too.
1925 2004-10-31 Hans Breuer <hans@breuer.org>
1927 * plug-ins/wmf/wmf.cpp : patch from Robert Ă–gren <gtk@roboros.com>
1928 to finally fix the long lasting clipping issue, bug #85831
1929 Also fixed the line style issue for printing on XP and don't
1932 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
1934 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
1935 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
1937 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
1938 some info from the console (soon gone on windoze) to message_error()
1939 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
1940 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
1942 plug-ins/python/diasvg_import.py : re.compile() only once per expression
1943 and some more playing with scaling
1945 * plug-ins/python/makefile.msc : updated
1947 2004-10-30 Hans Breuer <hans@breuer.org>
1949 * shapes/Civil/civil_arrow_right.shape : removed
1950 <aspectratio type="fixed" /> thus allowing to change
1951 width and height independently, fixes #154897
1952 (Serge Robinson) by making it consistent with the
1955 2004-10-30 Hans Breuer <hans@breuer.org>
1957 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
1958 on arrow being NULL, fixes bug #143063
1960 2004-10-30 Hans Breuer <hans@breuer.org>
1962 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
1963 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
1964 removed use of chached variable DiagramData::selected_count
1965 * lib/diagramdata.h : renamed to selected_count_private
1966 (kept for binary compatibility and sanity checks)
1967 * lib/diagramdata.c : more checks on a screwed up selection list
1969 * app/diagram.c(diagram_group_selected) : don't screw up the
1970 DiagramData::selected list, was assignment of parent_list_affected(),
1971 * lib/diagramdata.c (data_select, data_unselect) : protect against
1972 multiple selections of the same object and removement of a not selected
1973 object (apparently caused by the recently added group undo stuff)
1974 together with the above this finally fixes bug #153525
1976 * app/Makefile.am : fix ./autogen.sh ->
1977 app/Makefile.am:171: blank line following trailing backslash
1979 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
1980 ddisplay_do_update_menu_sensitivity() here as well
1982 * configure.in : make the experimental state of the cairo plug-in
1985 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
1986 try to update anything if we can't find an active diagram
1987 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
1989 * configure.in : another attempt to fix bug #156116. If there is
1990 anyone with autotools knowledge reading this - help appreciated ;-)
1992 2004-10-30 Hans Breuer <hans@breuer.org>
1994 * objects/makefile.msc objects/UML/Makefile.am
1995 objects/UML/uml.c objects/UML/transition.c
1996 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
1997 Patch from Peter Allin adds statechart transitions to the UML sheet -
1998 bug #144956 - modified to not print("%s", NULL) which crashes on
1999 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2001 2004-10-30 Hans Breuer <hans@breuer.org>
2003 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
2004 match the website anymore, i.e. sould remain unchanged.
2005 See below and lib/dia_xml.h for the reasoning
2007 * lib/libdia.def : removed dia_color_selector_get_type
2009 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2010 (like broken PNG) and g_warning if appropriate
2012 * app/interface.c : #include "message.h"
2014 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2015 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2016 better to just move diaunitspinner to lib/ instead of polluting
2017 widgets.[hc] even more ;)
2018 * app/makefile.msc lib/libdia.def : updated
2020 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2021 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2023 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2024 do something useful when compiled
2026 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2027 Also some more #ifdefed backends usage.
2029 2004-10-10 Lars Clausen <lars@raeder.dk>
2031 * lib/widgets.c: Better labels for color selector menu.
2033 * app/dia-props.c (diagram_properties_respond):
2034 * app/preferences.c (prefs_get_value_from_widget): Don't assume
2035 that a dia color selector is of type DiaColorSelector:)
2037 * lib/widgets.[ch]: Color selector changed to dynamic menu.
2039 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2042 2004-10-09 Lars Clausen <lars@raeder.dk>
2044 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2045 arrow preview to avoid long arrow heads flipping.
2047 * lib/arrows.[ch]: Support for getting from name to arrow type,
2048 and for listing all arrow names.
2050 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2052 * lib/libdia.def: Added new global functions.
2054 * lib/persistence.[ch]: Two of the persistent_list functions to
2055 return whether the item was found in the list.
2057 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2058 the growing number of sheets.
2060 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2063 2004-10-05 Lars Clausen <lars@raeder.dk>
2065 * objects/UML/association.c: Patch from Harvey Thompson
2066 <harveyandsu@yahoo.com>: Better placement of association texts.
2068 2004-10-03 Lars Clausen <lars@raeder.dk>
2070 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2071 use the fonts in question. Can't set tooltips with the name since
2072 lib objects don't know the tool_tips thing, which is rather
2075 2004-09-19 Hans Breuer <hans@breuer.org>
2077 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2078 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2080 2004-09-19 Hans Breuer <hans@breuer.org>
2082 * dia.desktop.in : string changes as proposed in bug #151822
2084 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2085 appearts not to be needed on Linux and breaks the build
2086 on OSX. Fixes bug #152970
2088 2004-09-18 Lars Clausen <lars@raeder.dk>
2090 * app/commands.c (view_show_all_callback): Add a bit of border
2091 around Ctrl-E'd diagram, for easier select and better view of edges.
2093 2004-09-19 Hans Breuer <hans@breuer.org>
2095 * app/Makefile.am : trying to fix the fix from 2004-02-15
2096 Overwriting AM_LDFLAGS still gave a automake warning and it
2097 also appeard to break linking against gtklibs in a differnt
2098 prefix. Use dia_LDFLAGS instead.
2100 * plug-ins/svg/svg-import.c : initialize 'end' before usage
2101 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2103 * lib/diarenderer.c : don't try to draw lines which are so much
2104 degenerated that their point count became negative, fixes bug #148139
2106 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
2107 strings (NULL from g_strdup())
2109 2004-09-10 Steffen Macke <sdteffen@web.de>
2111 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2112 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2113 * app/create_object.c:
2114 * app/diaunitspinner.c:
2115 * app/disp_callbacks.c:
2117 * app/modify_tool.c:
2118 * lib/prop_geomtypes.c:
2119 * lib/prop_geomtypes.h: made compile with msvc
2121 2004-09-10 Lars Clausen <lars@raeder.dk>
2123 * lib/widgets.c: Insulate conversion from outside API by adding
2124 internal function to set value. Adjustment not appropriate for
2127 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2129 2004-09-07 Lars Clausen <lars@raeder.dk>
2131 * app/diapagelayout.c: Include from widgets.c rather than
2134 2004-09-03 Lars Clausen <lars@raeder.dk>
2136 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2137 as unit-based property testbed.
2139 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2140 and fontsize widgets.
2142 * app/Makefile.am (dia_core_files):
2143 * app/diaunitspinner.h:
2144 * app/diaunitspinner.c:
2146 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2147 lib/widgets.[ch], as it's used in the properties code now.
2149 2004-08-31 Steffen Macke <sdteffen@web.de>
2151 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2153 2004-08-30 Lars Clausen <lars@raeder.dk>
2156 * app/diagram.c (diagram_remove_all_selected): Remove debugging
2161 * app/disp_callbacks.c:
2163 * app/create_object.c:
2164 * app/textedit.[ch]:
2165 * app/modify_tool.c:
2168 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
2169 current input object, multiple inputs per object, and tabbing
2172 2004-08-28 Steffen Macke <sdteffen@web.de>
2174 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
2175 allow separate installer component "Translations"
2177 2004-08-27 Akagic Amila <bono@linux.org.ba>
2179 * configure.in: Added 'bs' to ALL_LINGUAS.
2181 2004-08-26 Steffen Macke <sdteffen@web.de>
2183 * app/makefile.msc: using /subsystem:windows again
2184 * makefile.msc: updated ALL_LINGUAS
2186 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
2188 * configure.in: Add «nb» to ALL_LINGUAS.
2190 2004-08-21 Steffen Macke <sdteffen@web.de>
2192 * plug-ins/dxf/dxf-export.c: Patch from
2193 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
2195 2004-08-17 Lars Clausen <lars@raeder.dk>
2198 * dia.spec (Release):
2204 2004-08-13 Ankit Patel <ankit@redhat.com>
2206 * configure.in: Added "gu" in ALL_LINGUAS.
2208 2004-08-07 Lars Clausen <lars@raeder.dk>
2214 * dia.spec (Release):
2215 * NEWS: New release 0.94-pre6
2217 2004-08-07 Lars Clausen <lars@raeder.dk>
2219 * app/highlight.c (highlight_reset_objects): Unhighlight inside
2223 * plug-ins/shape/shape-export.c: String capitalization fix from
2224 Alan Horkan <horkana@tcd.ie>
2226 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
2227 Class object menu kinda work, rather than blow up. Doesn't do a
2228 proper undoable change yet.
2230 2004-08-06 Lars Clausen <lars@raeder.dk>
2232 * app/filedlg.c (file_save_as_callback): Don't remove related
2233 dialogs from the NULL diagram.
2235 2004-08-02 Lars Clausen <lars@raeder.dk>
2240 * dia.spec (Release):
2241 * NEWS: Pre5 with leak fix.
2243 * lib/font.c (dia_font_build_layout): Don't try to save an
2244 allocation of LayoutCacheItem if it breaks layout cache hash.
2245 Also make hash function correct, remove explicit height entry
2246 (it's in pfd), and make sure things are correctly unreffed.
2247 Finally fixes #148141.
2249 * lib/text.c (text_set_attributes, text_set_font): Safely unref
2250 when changing font, and actually set the new font in
2252 (text_get_attributes): Ref copied font.
2254 2004-08-01 Lars Clausen <lars@raeder.dk>
2258 * dia.spec (Release):
2261 * doc/en/dia.xml: Prerelease 4.
2263 * lib/font.c (dia_font_build_layout): Better comparision and
2264 freeing of font cache.
2266 2004-07-31 Lars Clausen <lars@raeder.dk>
2268 * lib/font.c (dia_font_build_layout): Faster update to avoid
2271 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
2272 Correctly initialize export filter variable.
2274 2004-07-25 Lars Clausen <lars@raeder.dk>
2276 * dia.spec (Release):
2281 * doc/pl/dia.xml: Pre3 coming out.
2283 * lib/diarenderer.c (draw_polygon):
2284 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
2285 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
2286 rather than O (letter), and assert num_points > 1 rather than the
2289 * app/recent_files.c:
2292 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
2293 Make filenames conform to filesystem encoding.
2295 * RDP/.cvsignore: Added standard ignore.
2297 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
2298 last entry patch-panel, too.
2301 * shapes/Circuit/*.png:
2302 * shapes/Civil/*.png:
2303 * shapes/Contact/*.png:
2304 * shapes/Electric/*.png:
2306 * shapes/Pneumatic/*.png:
2308 * shapes/flowchart/*.png:
2309 * shapes/jigsaw/*.png:
2310 * shapes/network/*.png:
2311 * shapes/sybase/*.png:
2313 * dia_gnome_icon_large.png:
2314 * doc/pl/graphics/*.png: Set -kb for PNGs.
2316 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
2318 2004-07-22 Lars Clausen <lars@raeder.dk>
2324 * dia.spec (Release):
2325 * configure.in: Update to version 0.94-pre2.
2327 * app/load_save.c (diagram_data_write_doc): Use new namespace
2330 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
2331 hidden objects properties.
2333 * objects/standard/line.c: Remove halffinished line gap box from
2336 * app/paginate_psprint.c:
2337 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
2338 Immidi): Close export and print dialog with diagram as well.
2341 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
2342 borelli): Remove deprecated stuff (#137693)
2344 * app/dia-props.c (create_diagram_properties_dialog): Patch from
2345 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
2348 2004-07-21 Ray Strode <rstrode@redhat.com>
2350 * dia/dia.desktop.in: Add MimeType line to desktop file
2353 2004-07-18 Hans Breuer <hans@breuer.org>
2355 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
2356 sheets/UML/*.png : icons in png format
2357 Partial fixup of stuff broken with the following comment:
2358 "7 days : xpm->png, namespace fix, first rotation bits."
2360 * app/load_save.c(read_objects) : don't add objects to the layer.
2361 This function is called recursively and only the topmost objects
2362 belong in the layers object list. Fixes bug #145417 and is the
2363 the real fix for bug #142480
2365 * app/app_procs.c : make the --size hack even uglier, but work again
2367 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
2368 but g_free() what is returned by g_build_filename()
2370 * objects/custom/custom_object.c(custom_destroy) : handle all enum
2371 values in switch to get rid of the warning
2373 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
2374 of setlocale()/strtod()
2375 * lib/dia_svg.c : dito
2376 * lib/dia_xml.c : almost
2378 * plug-ins/python/group_props.py : use the string representation of
2379 value to ensure "unique values". If the strings would not be different
2380 the user cann't see the difference either
2382 2004-07-17 Lars Clausen <lars@raeder.dk>
2384 * lib/persistence.h: Have "void" in prototypes (#142663)
2386 * lib/widgets.c (dia_font_selector_init): Better string handling
2389 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
2391 * objects/standard/image.c (image_load): Use path of diagram
2392 rather than running directory as base for image file place.
2394 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
2397 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
2398 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
2400 * Re-added new sample diagrams binarily.
2402 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
2404 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
2405 Disabled keyboard accels when dragging an object.
2407 2004-07-14 Lars Clausen <lars@raeder.dk>
2409 * app/grid.c (snap_to_grid): Use diagrams grid setting to
2410 determine hex grid snap.
2412 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
2414 * app/interface.h: Avoid multiply defined symbols (#147396)
2416 2004-07-10 Lars Clausen <lars@raeder.dk>
2418 * app/sheets_dialog_callbacks.c (write_user_sheet):
2419 * lib/sheet.c (load_register_sheet): Don't introduce double
2420 slashes in namespace.
2422 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
2423 old diagrams, or XSLT will barf all over.
2425 * shapes/RDP/place.shape:
2426 * shapes/RDP/transition.shape:
2427 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
2428 shapes to use those.
2430 2004-07-07 Lars Clausen <lars@raeder.dk>
2433 * doc/{en,pl}/dia.xml:
2436 * NEWS: First prerelease of version 0.94. Now with release
2437 versions in a branch and main devel in the trunk.
2439 2004-07-05 Hans Breuer <hans@breuer.org>
2441 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
2442 -std=c89. Mostly //-comments and M_PI -> G_PI
2443 [Istar, Jackson, KAOS were removed from build cause they
2444 simply have *too* much C++ comments ;]
2445 * object/UML/association.c : use g_strdup() not plain strdup()
2446 * app/paginate_psprint.c : avoid storage size of `pipe_action'
2447 isn't known with more portable signal code
2449 * app/app_procs.c : don't call gtk_init() if just --version
2450 is requested (bug #144321, Vladimir Kondratiev)
2452 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
2453 DiaFont* if not NULL
2454 * objects/UML/class.c : moved fill_in_fontdata() to
2455 umlclass_load() to avoid such trouble, though unsure if
2456 this really is an improvement...
2458 * shapes/network/makefile.am : patch-panel added here too
2460 2004-07-04 Hans Breuer <hans@breuer.org>
2462 * sheets/network.sheet.in shapes/network/patch-panel.xpm
2463 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
2464 fixes bug #136629, James McDonald
2466 2004-07-04 Hans Breuer <hans@breuer.org>
2468 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
2469 lib/object_defaults.c : revert changing of Dia's XML namespace
2470 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
2471 about its purpose and relation to real world urls.
2473 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
2474 added comment about when to do so
2475 [Should have been long time ago and probably multiple times
2476 to avoid crashing on older plug-ins]
2477 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
2478 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
2480 * lib/object.c objects/UML/class.c : there are still compilers not
2481 supporting C99 and other GCCISMs like allocating dynamic sized arrays
2483 * objects/UML/class.h : there is a differnce between a list pointer
2484 and a list pointer pointer. We and GLib want the former.
2486 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
2487 if Gtk is initialized. Using gdk_display_get_default () avoids the
2488 app/* dependency and is also closer to the requirements of the
2491 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
2492 some #ifdefed support for Cairo backends not public available yet.
2494 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
2495 windoze platform supports them. This should fix bug #109818, at
2496 least for the majority running NT or above ...
2497 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
2499 * objects/makefile.msc : build Istar, Jackson and Kaos
2501 * objects/UML/class.c(umlclass_load) : don't wrap by default to
2502 keep old diagrams as they were - instead of this nice new effect ;-)
2503 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
2505 * objects/UML/class.c : mark for translation _("Wrap ...
2507 * objects/UML/class.c : more correct types, also some default properties
2508 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
2510 * objects/UML/activity.c : removed a leftover from the
2511 use-localization-for-font-substitution-hack
2513 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
2514 'cvs admin -kb *.png' PNG files should already be *added* as binary,
2515 otherwise they are not readable on line-end-converting-platforms
2517 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
2518 filter_get_by_name()
2520 * plug-ins/python/pydia-property.c : some more g_warnings for
2521 not implemented conversions
2523 * plug-ins/python/group_props.py : ensure unique property values
2524 at the right place. Now something like :
2525 - load an old UML class diagram
2526 - change one of the classes to wrap operations
2527 - select all classes (/Select/Same Type)
2528 - /Dialogs/Group Properties : check wrap_operations, select '1'
2529 - Ok, works like a charm :-)
2531 2004-07-04 Lars Clausen <lars@raeder.dk>
2533 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
2536 2004-07-03 Lars Clausen <lars@raeder.dk>
2538 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
2539 <LAV@VL3143.spb.edu>: Fixes console output problems and some
2540 interactiveness problems.
2542 2004-07-02 Lars Clausen <lars@reader.dk>
2544 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
2545 app isn't interactive.
2547 2004-07-01 Lars Clausen <lars@raeder.dk>
2549 * plug-ins/cairo/diacairo.c: Add init of last field of filter
2550 struct to remove crash.
2552 * sheets/Makefile.am (sheet_in_files):
2553 * shapes/Makefile.am:
2554 * sheets/ChemEng.sheet.in:
2555 * shapes/ChemEng/Makefile.am:
2557 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
2558 Chemical engineering shapes.
2560 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
2561 multiple arguments when using devel script.
2563 * app/display.c (new_display):
2565 * lib/diagramdata.c (new_diagram_data):
2566 * lib/diagramdata.h:
2567 * app/preferences.h:
2568 * app/preferences.c:
2571 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
2572 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
2575 * doc/pl/authors.xml:
2576 * doc/en/authors.xml:
2577 * lib/object_defaults.c (dia_object_defaults_save):
2578 * readme.win32 (BTW):
2579 * lib/persistence.c (persistence_save):
2580 * app/load_save.c (diagram_data_write_doc):
2581 * app/commands.c (help_about_callback):
2582 * README: Fix links to home page.
2585 * app/load_save.c (diagram_data_load):
2586 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
2587 loading, and guard against them when fonting.
2589 * lib/diarenderer.c (draw_rounded_polyline): Patch from
2590 anthonym@overture.com: Make limited rounding a corner-specific
2591 rendering-only thing.
2593 2004-06-30 Lars Clausen <lars@raeder.dk>
2595 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
2596 adjustment: If you can't fix it, at least don't change it.
2598 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
2599 code instead of individual code in here.
2601 2004-06-29 Lars Clausen <lars@raeder.dk>
2603 * objects/UML/association.c: Patch from Kiran
2604 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
2609 * lib/diarenderer.c (draw_rounded_polyline):
2610 * objects/standard/polyline.c (polyline_draw):
2611 * objects/standard/zigzagline.c (zigzagline_draw):
2612 Patch from anthonym@overture.com: Add rounded polylines.
2614 2004-06-27 Lars Clausen <lars@raeder.dk>
2616 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
2618 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
2619 free family list before taking out the pointer we need. Also set
2620 the entry_nr correctly so we get the menu set up right.
2622 2004-06-23 Lars Clausen <lars@raeder.dk>
2624 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
2625 images at the right place.
2627 * objects/Istar/actor.c
2628 * objects/Istar/goal.c
2629 * objects/Istar/istar.c
2630 * objects/Istar/istar.h
2631 * objects/Istar/link.c
2632 * objects/Istar/other.c
2633 * objects/Jackson/domain.c
2634 * objects/Jackson/jackson.c
2635 * objects/Jackson/jackson.h
2636 * objects/Jackson/phenomenon.c
2637 * objects/Jackson/requirement.c
2638 * objects/KAOS/goal.c
2639 * objects/KAOS/kaos.c
2640 * objects/KAOS/kaos.h
2641 * objects/KAOS/metaandorrel.c
2642 * objects/KAOS/metabinrel.c
2643 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
2644 <cp@cetic.be>: Fix instability issues caused by not returning NULL
2645 in *_move_handle and *_move. Also improved the headers with
2646 correct (c) information.
2648 2004-06-22 Lars Clausen <lars@raeder.dk>
2650 * objects/KAOS/goal.c:
2651 * objects/KAOS/other.c:
2652 * objects/Istar/actor.c:
2653 * objects/Istar/goal.c:
2654 * objects/Istar/other.c:
2655 * objects/Jackson/domain.c:
2656 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
2657 <cp@cetic.be>: Fix resize issues.
2659 * app/filedlg.c (file_dialog_hide): Patch from Kiran
2660 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
2661 related dialog. #129520.
2663 * app/dia-props.c (diagram_properties_show): Patch from Kiran
2664 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
2665 a child of its diagram. #129520.
2667 * objects/UML/association.c (association_load): Patch from Kiran
2668 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
2669 text placement. #118313.
2671 2004-06-17 Lars Clausen <lars@raeder.dk>
2673 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
2675 * Makefile.am: Make THANKS only be generated by maintainers.
2677 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
2680 * configure.in: Added three missing Makefiles.
2684 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
2685 diagram-related (save) dialog when closing diagram. To be
2686 extended to other dialogs.
2688 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
2690 * samples/Istar.dia:
2691 * samples/Jackson.dia:
2693 * sheets/Istar.sheet.in:
2694 * sheets/Jackson.sheet.in:
2695 * sheets/KAOS.sheet.in:
2700 * objects/Jackson/*:
2703 * objects/Makefile.am (SUBDIRS):
2704 * sheets/Makefile.am (SUBDIRS):
2705 * samples/Makefile.am: Additions from Christophe Ponsard
2706 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
2709 2004-06-12 Lars Clausen <lars@raeder.dk>
2712 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
2714 * lib/font.h: Toning down comments a bit:)
2716 * lib/font.c (dia_font_build_layout): Playing around with DPI
2718 * objects/UML/association.c (association_load): Avoid crashes on
2721 * objects/UML/association.c: Patch from kimmidi@novell.com:
2722 Improve placement of labels when vertical. Part fix of #118313
2724 * lib/object.c (dia_object_is_selected): Grouped objects are not
2725 selected, only the group itself. Thus, don't crash when grouping
2728 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
2729 on how to represent empty strings. Fixes #143639.
2731 * lib/object.c (dia_object_is_selected): Added comment answer.
2733 2004-06-12 Hans Breuer <hans@breuer.org>
2735 * lib/diagramdata.c lib/object.c : deal with grouped objects
2736 not knowing their parent_layer, i.e. avoid crashing in
2737 dia_object_is_selected() via group_draw() [ Triggered by
2738 playing with the Visio generated svg from bug #143455 ]
2740 * plug-ins/python/diasvg_import.py : started to implement
2741 transformation="translate(...)" and <style/> handling. Also
2742 use some other completely bogus values for em/ex scaling
2744 2004-06-08 Lars Clausen <lars@raeder.dk>
2746 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
2748 2004-06-07 Lars Clausen <lars@raeder.dk>
2750 * app/layer_dialog.c (layer_dialog_set_diagram):
2751 * app/display.c: Layer widget crash more properly dealt with in
2754 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
2755 widget deselect was called during destroy, but called
2756 ddisplay_flush, leading to a new display timeout after renderer
2759 * lib/widgets.c (dia_toggle_button_destroy):
2760 * app/recent_files.c (recent_file_menuitem_create):
2761 * lib/persistence.c (persistence_save_list):
2762 * app/commands.c (edit_delete_callback):
2763 * lib/object_defaults.c (dia_object_defaults_save):
2764 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
2767 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2770 * lib/diagramdata.c (new_layer): Initialize connectibility.
2772 * app/display.c (ddisplay_obj_render):
2773 * app/diagram.c (diagram_find_closest_connectionpoint): Take
2774 connectibility into account.
2776 * app/layer_dialog.h (struct _DiaLayerWidget):
2777 * app/layer_dialog.c:
2778 Connectible toggle updates, now works fairly well.
2780 * app/select.c (select_transitive_callback): Make sure we're only
2781 selecting in the same layer.
2783 2004-06-04 Lars Clausen <lars@raeder.dk>
2785 * app/pixmaps/Makefile.am: Also install connectable images.
2787 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
2788 layer toggles from layer itself. Also update diagram correctly
2789 for visibility. Still need updates for connectivity behaviour.
2791 2004-06-03 Hans Breuer <hans@breuer.org>
2793 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
2795 * lib/diagdkrenderer.c(set_linejoin) : actually set
2796 join_style not cap_style
2797 (set_dashes): with the correct number of dashes
2799 2004-06-03 Lars Clausen <lars@raeder.dk>
2801 * app/modify_tool.c (click_select_object):
2802 * lib/text.c (text_set_cursor):
2803 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
2805 2004-05-31 Hans Breuer <hans@breuer.org>
2807 * lib/object_defaults.c : don't 'failed to load external
2808 entity "NULL"' when the defaults file does not exist,
2809 bug #108764 [again: somehow this got lost]
2811 * app/paginate_gdiprint.cpp : don guess the WMF export
2812 filter used for printing but find it by unique name.
2813 Also update for export_func renaming
2814 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
2815 provide some unique names
2817 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
2818 app/select.c : fix bug #140789 by always checking if there
2819 still is an active diagram before accessing it
2821 * app/defaults.c app/properties.c : user visible string should
2822 not read DiaObject but stay as "Object defaults/properties"
2824 * app/app_procs.c : reduce the hack to pass --size to the
2825 export via user_data to the only filter supporting it. Other
2826 filters would crash on it or do worse ;(
2828 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
2830 2004-05-31 Lars Clausen <lars@raeder.dk>
2833 * lib/widgets.c: Use GtkType rather than guint for
2834 dia_size_selector_get_type.
2836 2004-05-29 Lars Clausen <lars@raeder.dk>
2838 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
2839 that it matches the screen output for selfoverlapping polygons and
2842 2004-05-28 Hans Breuer <hans@breuer.org>
2844 * app/load_save.c : ignore empty groups on load and don't
2845 write empty groups while saving
2846 * lib/group.h (group_update_data): there is no first object
2847 in empty groups and they probably don't need an update at
2848 all. Maybe the shold just not exist ?
2850 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
2851 text positioning as well as drawing of images with alpha
2853 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
2854 HAVE_WINDOWS_H or G_OS_WIN32 is defined
2856 2004-05-28 Lars Clausen <lars@raeder.dk>
2858 * app/pixmaps/Makefile.am (imagedir):
2859 * app/pixmaps/visible.png:
2860 * app/pixmaps/visible-empty.png: New images for the visibility
2861 button in the layer dialog.
2863 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
2864 more border around the button. Still some left when hovering the
2865 mouse or selecting, and the grey background is annoying.
2867 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
2868 visibility connector.
2870 2004-05-26 Lars Clausen <lars@raeder.dk>
2872 * configure.in (DB2MAN): Better check for db2man docbook place.
2873 Need something even better.
2875 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
2877 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2878 extraeneous borders.
2881 * dia_gnome_icon.png:
2882 * samples/render-test.dia: Rendering test from Hans.
2884 2004-05-24 Hans Breuer <hans@breuer.org>
2886 * lib/filter.h : renamed DiaExportFilter::export to
2887 _DiaExportFilter::export_func (should not use c++
2888 keywords (g++ specifc ?) in headers. Same for import
2889 out of pure symmetry reasons
2890 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
2891 app/diagram.c app/filedlg.c : reflect functions renaming
2893 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
2894 under *NIX, too. [If you want something done, do it yourself ;-]
2895 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
2896 with wmf.cpp's GDI usage
2897 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
2898 [For the moment it does not much more than compiling, i.e.
2899 the produced WMF files are invalid, if not created on windoze.]
2901 * configure.in : check for C++ to compile plug-in/wmf
2903 * objects/GRAFCET/boolequation.c : looks like fixing
2904 another leak (untested)
2906 2004-05-23 Hans Breuer <hans@breuer.org>
2908 * acinclude.m4 : another attempt to fix
2909 bug #142032 (still not sure it's the right one,
2910 but works for me(tm), which the other does not ;)
2912 * plug-ins/cairo/Makefile.am
2913 plug-ins/Makefile.am
2914 configure.in : support building the new cairo
2915 plug-in, if given --with-cairo and the cairo
2916 packages are found, see http://cairographics.org
2917 and also http://hans.breuer.org/dia/dia-cairo.htm
2919 * plug-ins/cairo/diacairo.c : make it compile
2920 with DEBUG_CAIRO defined, too.
2922 2004-05-23 Hans Breuer <hans@breuer.org>
2924 * plug-ins/cairo/Makefile.am : initial attempt
2926 * plug-ins/cairo/diacairo.c : a new exporter based on
2927 Cairo http://cairographics.org rendering api. Currently
2928 it just can export PNG and PS but one day it might get
2929 PDF and more almost for free. [It is not yet included
2930 in the *NIX build system due to lack of auto* magic.]
2932 * plug-ins/pixbuf/pixbuf.c : always register the export
2933 filter part. If the user does not want it it can be
2934 disabled by File/Plugins or explicit selected the other
2935 one in the Export Formats List
2937 2004-05-23 Hans Breuer <hans@breuer.org>
2939 * lib/dia_dirs.c : #include "message.h"
2940 lib/widgets.c : #include "persistence.h"
2941 lib/widgets.c(dia_font_selector_init) : still not C99
2942 lib/persitence.h : removed unimplemented prototype
2943 lib/persitence.c(persistence_load_list) : still not C99
2944 app/create_object.c : #include "highlight.h"
2945 app/layer_dialog.c : #include "widgets.h"
2946 app/modify_tool.c : prototype functions before usage
2947 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
2948 [otherwise one will have a hard time to make C++ compile ;]
2949 lib/dia_dirs.c : #include "message.h"
2950 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
2953 * plug-ins/xfig/xfig-import.c : dont initialize an int with
2956 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
2957 as documented, i.e. _not_ copying. Plugs a memory leak in
2958 lib/dialibartrenderer.c
2960 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
2961 to radius to more of a clue what it is representing
2963 * */makefile.msc lib/libdia.def : updated
2965 ChangeLog : fixed some date copy&paste bug
2967 2004-05-21 Lars Clausen <lars@raeder.dk>
2969 * NEWS: Release tag.
2971 * config.h.win32: Now 0.93+cvs
2973 * RELEASE-PROCESS: Update with new info about release branches.
2975 * Many files: Moved devel branch back into main trunk. Should
2976 have been done in the opposite way, with release in a branch.
2978 2004-05-20 Hans Breuer <hans@breuer.org>
2980 * acinclude.m4 : disable setting of PYTHON_PREFIX
2981 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
2982 as workaround for bug #142032 (the real fix would
2983 involve some auto* knowledge which I don't have
2986 * plug-ins/python/Makefile.am : more python
2987 plug-ins to be installed (especially svg import,
2988 but also 'simple scale' should be useable
2991 * plug-ins/python/scascale.py : update display
2992 after modifying selected objects
2994 * plug-ins/python/diasvg_import.py : initialize
2997 2004-05-18 Lars Clausen <lars@raeder.dk>
2999 * app/diagram_tree.c (select_node): Use
3000 diagram_remove_all_selected to kill selected list.
3002 * lib/font.c: Set language when using a different context.
3004 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3005 and removed ctype include (#142661).
3007 * lib/paper.c (get_default_paper): Changed isalnum to
3008 g_ascii_isalnum and removed ctype include. (#142661)
3010 * objects/custom/shape_info.c:
3012 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3014 2004-05-17 Hans Breuer <hans@breuer.org>
3016 * lib/object_defaults.c : don't 'failed to load external
3017 entity "NULL"' when the defaults file does not exist,
3020 * lib/widgets.c : fixed possible menu leak
3021 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3022 avoid finalization of floating references, bug #142307
3024 2004-05-15 Lars Clausen <lars@raeder.dk>
3026 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3027 fonts better (#138655)
3029 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3031 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3032 dist, xml, dbk and man. Also the sub-xml files. (#142098)
3034 * Makefile.am (CLEANFILES):
3035 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3036 translation-reports, they are generated automagically. THANKS
3037 file not considered locally generated, so is not locally
3040 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3042 * lib/diaarrowchooser.c:
3043 * lib/prop_attr.c: Fixing naming for arrowselector.
3045 * objects/UML/object.c (objet_type): Oops, little too aggressive
3046 with the DiaObject thing here:)
3048 * objects/custom/shape_info.c (parse_svg_node): Use
3049 g_ascii_isdigit instead of isdigit.
3051 * app/diaunitspinner.c (dia_unit_spinner_update):
3052 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3053 instead of isspace avoids char subscript issues (#142467).
3055 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3056 return value conflict.
3058 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3059 value conflict. Also improved signature. (#142466)
3061 * app/load_save.c (diagram_data_load): Don't overwrite the list in
3062 the layer, but instead free the returned list (#142480)
3064 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3065 for the grid widget.
3067 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3069 * configure.in (DB2MAN): Currently just check for two known
3070 positions for the docbook xsl. Don't know a generic way to find
3071 this info. Ought to add an option for it, but then it's really
3072 only required for maintainers, I think. Maybe.
3074 * app/display.c (update_snap_grid_status): Remove nasty image
3075 toggling code not require for grid toggle button anymore. (#142475)
3077 * app/interface.c (create_display_shell): Use
3078 dia_toggle_button_new_with_images to create grid toggle button.
3079 Much nicer. (#142475)
3081 * app/menus.c (menus_initialize_updatable_items): Free the string
3082 along with the GString. (#142475)
3084 * lib/intl.c (free_alias_table): Free hash table entries in a
3085 proper way, avoiding duplicate frees. (#142475)
3087 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3088 not put in the hash (avoid reading freed memory). (#142476)
3090 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3092 (dia_font_selector_get_family_from_name): Stop leaking
3095 2004-05-14 Lars Clausen <lars@raeder.dk>
3097 * Transfer of fixes from release branch. Not the prettiest way to
3098 do it, this should be done during release, not afterwards.
3100 Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
3102 * acinclude.m4: minor fixes (added missing [] quotation).
3104 Lars Clausen <lars@raeder.dk>:
3106 * app/interface.c (toolbox_delete):
3107 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3108 cancels quit due to modified diagrams.
3110 SamĂºel JĂ³n Gunnarsson <sammi@techattack.nu>:
3112 * is.po: Added "is" to ALL_LINGUAS.
3114 Lars Clausen <lars@raeder.dk>:
3116 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3118 Hans Breuer <hans@breuer.org>:
3120 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
3121 burden should be shared and not be win32 only ;) [this time
3122 build was broken by adding GtkType to widget.h]
3124 * objects/standard/box.c objects/standard/ellipse.c :
3125 for code clarification compare (obj->aspect != FREE_ASPECT)
3126 and not (obj->aspect); no binary effect.
3128 * app/paginate_psprint.c : don't leak printcmd
3130 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3131 standard C requires variables to be declared at the beginning of
3132 a block, also there is no fabsf() with msvc
3134 * app/win32print.[ch] : make win32_printer_close() return an
3135 error code, it's used as pclose replacement
3137 Lars Clausen <lars@raeder.dk>:
3139 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3141 2004-05-06 Lars Clausen <lars@raeder.dk>
3143 * lib/widgets.[ch]: Utility function to make a widget with two
3144 images (selected and non-selected).
3146 * lib/diagramdata.h: Renamed selectable to connectable.
3147 Selectable will come later.
3150 * app/pixmaps/Makefile.am (imagedir):
3151 * app/pixmaps/connectable.png:
3152 * app/pixmaps/connectable-empty.png: New images for the
3153 selectability widget. Proper installation, too.
3155 * app/layer_dialog.[ch]: Adding new button showing connectability
3156 status. Much cleaner way of doing the button, but some problems
3157 with the item getting selected
3159 * lib/widgets.h: Reminder of how to install images for use by
3160 dia_get_image_from_file.
3162 2004-05-05 Lars Clausen <lars@raeder.dk>
3164 * objects/network/Makefile.am:
3165 * objects/network/pixmaps/radiocell.xpm:
3166 * objects/network/pixmaps/basestation.xpm:
3167 * objects/network/network.c:
3168 * objects/network/basestation.c:
3169 * objects/network/radiocell.c:
3170 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
3173 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
3174 Backslash arrow head.
3176 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
3177 Notify takes care. Should maybe use that more.
3179 * lib/diagramdata.[ch]:
3180 * app/filedlg.c (file_export_ok_callback):
3181 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
3183 * app/dia-props.c (diagram_properties_respond):
3184 * app/diagram.c (diagram_set_modified):
3186 * app/disp_callbacks.c:
3188 * app/load_save.c (diagram_save):
3189 Better handling of undo and modified status -- only diagram
3190 properties and page setup explicitly set modified status, all
3191 other important changes should be done through the undo stack
3194 2004-05-04 Lars Clausen <lars@raeder.dk>
3196 * app/app_procs.c (app_init): Consistently open a new diagram if
3197 none specified, with standard name Diagram1.dia.
3199 * app/layer_dialog.c:
3200 * app/diagram.c (diagram_finalize):
3201 * app/commands.c (dialogs_layers_callback):
3202 * app/filedlg.c (file_export_ok_callback):
3203 * app/app_procs.c (app_exit):
3204 * app/display.c (display_set_active):
3205 * app/interface.c (dia_dnd_file_drag_data_received):
3206 * app/recent_files.c:
3207 Undone attempt at unifying the multi-diagram windows (like
3208 layers). It broke the layers and didn't make much sense for the
3209 diagram properties dialog anyway.
3213 * lib/diagramdata.c:
3215 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
3216 many subclasses have to be fixed. Fixed remaining
3217 Object/ObjectType renaming issues.
3219 2004-05-02 Lars Clausen <lars@raeder.dk>
3221 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
3222 having to make all the children objects conform to
3223 GObject style at once? Warning! Does not compile right now.
3225 * many, many files: Rename Object to DiaObject in preparation for
3226 making it a GObject.
3228 * app/diagram.[ch]: Turn diagram into a real GObject.
3231 * app/filedlg.c: Correctly ref and unref diagram.
3233 * lib/diagramdata.h: Starting to turn it into a GObject as well.
3235 2004-05-02 Lars Clausen <lars@raeder.dk>
3237 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
3240 * app/dia-props.c: Undo the attempt at making it really
3241 multi-diagram, now going for a one-diagram dialog.
3243 2004-04-30 Lars Clausen <lars@raeder.dk>
3245 * app/undo.c: Undoing broken undo stuff for diagram properties and
3246 page setup. Shouldn't be mixed into undo at all.
3248 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
3249 function to avoid in particular the grid crawling.
3251 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
3252 to allow aligning dashes, so they don't crawl.
3254 2004-04-28 Lars Clausen <lars@raeder.dk>
3256 * app/Makefile.am: New files diacanvas.[ch]
3258 * app/interface.c (create_display_shell): Use new diacanvas that
3259 allows placing widgets on canvas, for text edit.
3262 Early work towards rotation. No implementation yet.
3264 * app/layer_dialog.c (undo_layer):
3265 * objects/network/bus.c (bus_create_change):
3266 * objects/standard/box.c (aspect_create_change):
3267 * objects/standard/ellipse.c (aspect_create_change):
3268 Use g_new0 for change struct.
3270 * app/undo.c (diagram_change_apply_or_revert):
3271 Support for undo of diagram properties and page setup.
3273 * app/disp_callbacks.c (ddisplay_canvas_events):
3275 * lib/diagramdata.h:
3276 * app/modify_tool.c (click_select_object):
3277 * lib/text.c (text_register_editable):
3278 Starting work on new text editing model. Guarded by #ifdef so
3281 2004-04-07 Lars Clausen <lars@raeder.dk>
3283 * app/recent_files.c (open_recent_file_callback):
3284 * app/interface.c (origin_button_press):
3285 * app/filedlg.c (file_open_ok_callback):
3288 * app/commands.c (dialogs_layers_callback): Using new
3289 diagram_set_current() function to ensure auxilliary windows are
3292 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
3293 menu now borken. *sniff*
3295 * app/dia-props.c: Diagram properties window attempted
3296 persistentified. Trying to make more like layer dialog (since it
3297 already changes when the diagram changes), but some things still
3300 2004-04-06 Lars Clausen <lars@raeder.dk>
3302 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
3303 * lib/attributes.c (attributes_set_default_line_style):
3304 * app/interface.c (create_lineprops_area):
3305 Make line style persistent as well. Added function to directly
3306 set the style and dashlength of a dialinechooser.
3308 2004-04-03 Lars Clausen <lars@raeder.dk>
3310 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
3311 Copy the ellipse extra handle correctly.
3313 * objects/standard/box.c (box_move_handle): Move definitions
3314 according to bug #138925.
3316 2004-04-02 Lars Clausen <lars@raeder.dk>
3318 * app/recent_files.c: Use absolute name for recent files list.
3320 * lib/attributes.c: Set start and end arrow types, correctly.
3322 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
3325 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
3327 * app/interface.c (create_lineprops_area): Set persistently stored
3330 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
3333 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
3334 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
3336 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
3337 with what xfig does. Text now converted from latin-1 to utf-8
3338 (latin-1, since that's what xfig seems to use. Would like to see
3339 examples of non-latin-1 figs). String case problems fixed.
3341 2004-04-01 Lars Clausen <lars@raeder.dk>
3344 * app/interface.c: Default arrows now stored persistently, too.
3346 * lib/arrows.[ch]: New function to get arrow type from name.
3348 * app/color_area.c (color_area_create):
3350 * app/linewidth_area.c: Also persistent colors and line width.
3351 That was easy. Arrows and line style will take a bit more work,
3354 2004-04-01 Lars Clausen <lars@raeder.dk>
3356 * app/preferences.c: All preferences are now
3357 handled by persistence, old prefs load and store code is gone.
3359 * lib/persistence.[ch]: Added string and color persistents. This is
3360 a different string from the one used in the printer dialog, that
3361 one has a GtkEntry attached -- may want to make that one an
3362 encapsulation of this one or something.
3364 2004-03-31 Lars Clausen <lars@raeder.dk>
3366 * app/app_procs.c: Do persistence before prefs. Prefs are to be
3369 * lib/persistence.[ch]:
3370 * app/preferences.c: Adding persistence for integers, reals,
3371 booleans. Fixed stupid list bug. Test persistence for prefs.
3373 2004-03-30 Lars Clausen <lars@raeder.dk>
3375 * app/recent_files.c:
3376 Debugging of deallocation.
3379 Font menu now uses persistence. Ordering needs fixing, or it must
3383 * lib/Makefile.am (libdia_la_SOURCES):
3384 * app/Makefile.am (dia_core_files):
3385 * app/persistence.[ch]:
3386 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
3387 number of fixes, including multiple entries now being read
3388 properly. Still some oddity about the persistent list having the
3389 role as first entry (which makes the font menu crash after a few
3392 2004-03-26 Lars Clausen <lars@raeder.dk>
3394 * app/persistence.c:
3395 * app/recent_files.[ch]: Redoing the recent-files list using
3396 persistence, reducing code by about 50%. Still a problem when
3397 selecting an item from the menu -- possibly it doesn't like the
3398 menu being destroyed while in the callback?
3400 2004-03-25 Lars Clausen <lars@raeder.dk>
3402 * app/persistence.c (persistence_load_string): Missing semicolon?!?
3404 2004-03-24 Lars Clausen <lars@raeder.dk>
3408 * app/persistence.[ch]:
3409 * app/paginate_psprint.c (diagram_print_ps): New type of data can
3410 be stored persistently: Strings. Only the printer command/file
3411 go in here now, but things like creator, organization, diagram
3412 comments etc could also be handled this way.
3414 * objects/standard/beziergon.c (beziergon_draw): Avoid control
3415 lines when the object is not selected.
3417 2004-03-23 Lars Clausen <lars@raeder.dk>
3419 * lib/connectionpoint.h:
3420 * app/load_save.c: Allow connection points to have names, and
3421 handle that in load/store.
3423 * lib/dialibartrenderer.c: Better highlighting for text.
3425 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
3426 * lib/diagdkrenderer.c: Better highlighting for all, using same
3427 principles as libart highlighter.
3429 2004-03-22 Lars Clausen <lars@raeder.dk>
3431 * lib/dialibartrenderer.[ch]:
3432 * lib/diagdkrenderer.c:
3438 * app/modify_tool.c:
3439 * app/create_object.c:
3440 * app/highlight.[ch]:
3441 Added simple object highlighting. In GDK rendering, highlights
3442 the bbox, in libart highlights the outline of the object (except
3445 2004-03-22 Lars Clausen <lars@raeder.dk>
3447 * RELEASE-PROCESS: Added info on how to do a branch for
3448 development during release process.
3450 2004-03-20 Lars Clausen <lars@raeder.dk>
3452 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3454 2004-03-19 Lars Clausen <lars@raeder.dk>
3456 * xmldocs.make: Fixed apparent uninstall error.
3459 * doc/en/dia-manual.xml:
3460 * doc/pl/dia-manual.xml:
3463 * NEWS: Version 0.93-pre1.
3465 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
3466 borelli): Remove some deprecated stuff.
3468 2004-03-18 Lars Clausen <lars@raeder.dk>
3470 * Makefile.am: Try better uninstall thing for scrollkeeper.
3472 * objects/ER/entity.c:
3473 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
3474 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
3475 1, 1 exactly, as well as associative ER entities.
3477 2004-03-17 Lars Clausen <lars@raeder.dk>
3479 * Makefile.am: Make distcheck not complain about scrollkeeper
3480 problems (as per advice from James Henstridge).
3482 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
3483 standard installation.
3485 * objects/standard/ellipse.c: Better strings for object menu.
3487 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
3488 of dialogs (shame on you, glade!)
3490 * objects/custom/custom_object.c (custom_setup_properties):
3491 Removed debugging output
3493 * app/paginate_psprint.c (diagram_print_ps): Slightly more
3494 readable printer error messages.
3498 * doc/en/Makefile.am:
3499 * doc/pl/Makefile.am:
3500 New more standard way to install the XML-based manuals.
3502 2004-03-15 Lars Clausen <lars@raeder.dk>
3504 * objects/standard/box.c (box_move_handle): More intuitive fixed
3507 * objects/standard/ellipse.c:
3508 * objects/standard/box.c:
3511 * app/layer_dialog.[ch]:
3512 Patch from Steve Langasek <vorlon@debian.org>:
3513 Fixes startup crash on Alpha (bug #137169)
3515 * objects/standard/box.c: Aspect fixing like ellipses.
3517 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
3519 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
3520 pixmaps, now can uninstall properly.
3522 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
3523 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
3525 Added object menu access.
3527 2004-03-07 Hans Breuer <hans@breuer.org>
3529 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
3530 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
3531 would not use deprecated apis, but it's much simpler this way)
3533 * lib/makefile.msc : build the above new widgets and render_pixmap
3534 * lib/libdia.def app/dia.def app/makefile.msc : updated
3536 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
3537 what I saw, i.e. how big is an empty array supposed to be ? ;-).
3538 Previously it gave :
3539 disp_callbacks.c(188) : error C2059: syntax error : '}'
3540 disp_callbacks.c(191) : warning C4034: sizeof returns 0
3542 * app/interface.c : #include "dialinechooser.h"
3544 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
3545 [one more reason not to use it here : it's quite slow compared to
3546 the native win32 font renderer ;]
3548 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
3549 a GtkDialog*, removed unneeded cast
3551 * app/render_eps.c : avoid assignment warning for void* user_data
3554 2004-03-06 Steffen Macke sdteffen@web.de>
3556 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
3559 2004-03-06 Lars Clausen <lars@raeder.dk>
3561 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
3564 * lib/font.c: Simple cleanup system for layout cache removes any
3565 layout that hasn't been used for 10 minutes, but only during idle
3568 2004-03-05 Lars Clausen <lars@raeder.dk>
3570 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
3571 (lluis padro) (#130887): Extended Electric shapes with vertical
3574 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
3575 start with "Create a" or "A", always capitalize first word).
3577 * objects/standard/ellipse.c: Patch from Grégoire Dooms
3578 <dooms@info.ucl.ac.be>: Add extra connection point in center of
3579 ellipse. Additionally added a handle in the center, and resize is
3580 now around the center.
3583 * sheets/Makefile.am (SUBDIRS):
3584 * sheets/IsometricMap.sheet.in:
3585 * shapes/Map/Isometric/*
3586 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
3588 2004-03-04 Lars Clausen <lars@raeder.dk>
3591 * lib/pixmaps/Makefile.am:
3593 Better installation handling of pixmaps.
3595 * lib/diagdkrenderer.c:
3596 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
3597 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
3600 2004-03-03 Lars Clausen <lars@raeder.dk>
3602 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
3603 * lib/diagdkrenderer.c:
3604 * lib/diasvgrenderer.c:
3605 * lib/dialibartrenderer.c:
3606 * lib/diainteractiverenderer.c:
3607 * lib/prop_text.c (multistringprop_handle_key):
3609 * lib/dia_image.c (dia_image_rgba_data):
3611 * lib/diagramdata.c (layer_set_object_list):
3614 Getting rid of compile warnings.
3616 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
3617 images. Also remove unused decls.
3619 2004-03-02 Lars Clausen <lars@raeder.dk>
3622 * lib/widgets.c (dia_size_selector_init): Add images to the size
3623 selector chain widget. Also new function to load installed images
3624 from files (better than from included XPM, IMHO).
3626 2004-03-02 Lars Clausen <lars@raeder.dk>
3629 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
3633 * lib/widgets.c (dia_size_selector_init): Work
3634 on getting proper icon onto the size selector. Need simple image
3635 load mechanism in utils.
3639 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
3640 strings, handle utf8 strlen properly. Bug #135930.
3642 2004-03-01 Lars Clausen <lars@raeder.dk>
3644 * shapes/Cybernetics/*:
3645 * sheets/Cybernetics.sheet.in:
3646 * sheets/Makefile.am:
3647 * shapes/Makefile.am:
3648 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
3649 Roggendorf): Cybernetic shapes (#95553).
3651 2004-03-01 Lars Clausen <lars@raeder.dk>
3653 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
3655 * lib/diatypes.h: New type DiaSizeSelector.
3657 * lib/widgets.[ch]: New size selector widgets that selects two
3658 values (width and height, nominally) optionally linked to keep
3661 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
3663 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
3664 in front of file. Bug #128600.
3668 * app/lineprops_area.[ch]:
3670 * lib/dialinechooser.[ch]:
3671 * lib/widgets.c (dia_line_style_selector_init): use line preview
3672 instead of text labels. This involve moving away line_chooser to lib
3675 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
3678 * app/Makefile.am (dia_core_files):
3679 * app/interface.c (create_lineprops_area):
3680 * app/render_pixmap.[ch]:
3682 * lib/diaarrowchooser.[ch]:
3685 * lib/propdialogs.c:
3686 * lib/render_pixmap.[ch]:
3687 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
3688 of text labels. This involve moving away arrow_chooser to lib from
3691 2004-02-29 Lars Clausen <lars@raeder.dk>
3693 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
3694 being updated half-way through destruction. To be removed when
3695 the lists are replaced by something better.
3697 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
3698 Accelerators for class dialog. Bug #130995.
3699 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
3702 * app/preferences.c:
3704 * objects/GRAFCET/step.c:
3705 * objects/Misc/analog_clock.c:
3706 * objects/chronogram/chronoline.c:
3707 * objects/chronogram/chronoref.c:
3708 Change to american spelling (color, not colour) to ease
3709 translators job. Note that a number of translations may need an
3710 update now. Bug #120466.
3712 2004-02-29 Lars Clausen <lars@raeder.dk>
3714 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
3715 Better arrow handling for missing arrows.
3717 * plug-ins/metapost/render_metapost.[ch]: Patch from
3718 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
3719 size. See bug #135363.
3721 * app/app_procs.c (app_init): If non-interactive, or if
3722 --log-to-stderr used, send all messages to stderr. This should
3723 mean that old diaconv == dia --export-to-format=FOO BAR
3725 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
3727 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
3729 2004-02-28 Lars Clausen <lars@raeder.dk>
3731 * lib/text.c (text_key_event): Patch from Kouhei Sutou
3732 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
3734 2004-02-27 Lars Clausen <lars@raeder.dk>
3736 * KNOWN_BUGS: Added info on most commonly reported bugs, with
3739 * app/disp_callbacks.c (popup_object_menu): Unified properties
3740 entry, fixes bug #105080.
3742 * app/diagram.c (diagram_update_menu_sensitivity):
3743 * app/menus.h (struct _UpdatableMenuItems):
3744 * app/menus.c (menus_initialize_updatable_items): Menu items
3745 changed around, align menus flattened, properties entry ghosted,
3746 dialogs menu removed, more shortcuts added. Closing bugs #94018,
3748 Also taking out Gnome menus for now. They don't allow shortcuts,
3749 so what are they good for?
3751 2004-02-27 Lars Clausen <lars@raeder.dk>
3753 * app/menus.c (display_menu_items):
3754 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
3757 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
3759 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
3761 2004-02-23 Lars Clausen <lars@raeder.dk>
3763 * app/app_procs.c (app_init): Comments for translators.
3765 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
3767 * app/preferences.c (prefs_create_dialog): Change packing policy
3768 for widget to expand.
3770 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
3771 running with a debugger.
3773 2004-02-19 Lars Clausen <lars@raeder.dk>
3775 * app/undo.[ch]: Adding last-saved information to undo to allow a
3776 diagram with all changes since last save undo to be marked as
3777 nonmodified. Still needs integration with actual undo
3781 * app/diagram_tree.c (diagram_tree_update):
3783 * app/display.c (update_modified_status):
3784 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
3785 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
3788 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
3789 vs. EPSI, comment out EPSI until preview is in there.
3792 * lib/diarenderer.c: Removing debugging printfs.
3794 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
3797 * objects/standard/arc.c (arc_update_handles): Check to avoid
3798 crash when start and end points are the same.
3800 2004-02-19 Lars Clausen <lars@raeder.dk>
3802 * objects/standard/bezier.c:
3803 * objects/standard/line.c (line_load):
3804 * objects/standard/polyline.c (polyline_load):
3805 * objects/standard/zigzagline.c (zigzagline_load):
3806 * objects/standard/arc.c (arc_load):
3807 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
3808 instead of hardcoding.
3810 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
3812 * app/disp_callbacks.c (popup_object_menu): append a menu item to
3815 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
3817 * app/app_procs.c: declare rc properly with the proper #ifdef
3819 2004-02-17 Lars Clausen <lars@raeder.dk>
3821 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
3822 objects (which seemingly FIG itself breaks, or else there is no
3825 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
3827 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
3828 width renderable in xfig. Helps on bug #133637, but does not
3829 quite fix it -- something about depth is wrong.
3831 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
3832 Extern definitions for Mac compilation.
3834 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
3835 (jdassen@debian.org): Include fix.
3837 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
3838 sure the initial diagram size is correct.
3840 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
3842 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
3843 CPPFLAGS, as per automake warning.
3844 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
3845 LDFLAGS, as per automake warning.
3846 (run_dia.sh): More robust creation, and more easily moved.
3848 * app/undo.c (group_objects_revert): Don't double-free the objects
3849 list. (#129221) Call object_add_updates on grouped objects.
3850 (ungroup_objects_revert): Call object_add_updates on grouped objects.
3852 * lib/diagramdata.c: Internal
3855 * lib/polyshape.c (polyshape_update_data): Correctly calculate
3856 directions for polyshape corners (thanks, Valgrind!)
3859 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
3861 * lib/arrows.h: Default arrow size defined. After all are using
3862 this, may lower to 0.4 or so.
3864 * app/lineprops_area.[ch]: New function to set the arrow type for an
3867 * app/interface.c (create_lineprops_area): Set default line to
3868 have an arrow (fairly likely to be what's wanted, plus it shows
3869 the user where arrows are set).
3871 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
3873 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
3875 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
3876 Dotted lines should use dot_length, not dash_length.
3878 2004-02-06 Hans Breuer <hans@breuer.org>
3880 * app/interface.c : don't use gtk_drawing_area_size() to avoid
3881 the defaut size being also the minimum size. Instead use
3882 gtk_window_set_default_size() on the display shell. Fixes #130982.
3884 [fixing #131210, but umlauts in the 'main' filename still not really
3885 supported on systems where filesystem encoding != utf8
3886 (Problems with recent file menu and window title)]
3887 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
3888 to deal with possible differnces in filename encodings, see
3889 g_filename_<to|from>_utf8()
3890 * objects/standard/image.c : use them.
3892 * lib/widgets.c : handle possible encoding difference here, too.
3893 Also get rid of most warnings by using const and GTK casts where
3894 appropriate; one wrong cast (probably causing a crash) was found/fixed
3895 by this - the remaining give a hint on finally leaking FontSelectorEntry.
3897 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
3898 dia_file_selector_<get|set>_file to behave like the respective Gtk
3899 functions do : encoding- and const-wise ;-)
3901 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
3903 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
3905 2004-01-19 Hans Breuer <hans@breuer.org>
3907 * app/app_procs.c app/diaconv :
3908 only call bind_textdomain_codeset when available, what's good
3909 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
3910 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
3912 2004-01-19 Steffen Macke <sdteffen@web.de>
3914 * makefile.msc: updated for new GAIM-like installer build; sync'ed
3915 ALL_LINGUAS with configure.in
3917 2004-01-18 Hans Breuer <hans@breuer.org>
3919 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
3920 by not passing NULL to g_print()
3922 * app/interface.c (create_toolbox) : actually use
3923 persitence_register_window() to restore toolbox window size
3925 * app/makefile.msc lib/makefile.msc : allow to deselect
3926 building with Freetype by command line to nmake like :
3927 nmake -f makefile.msc "NOFT2=1"
3929 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
3930 far as possible with Dia's limited line style
3931 * plug-ins/python/pydia-property.c : allow to get and set
3932 Linestyle, style and dash(length)
3934 * lib/object.h : removed typedef for ObjectId not use anywhere
3936 2004-01-17 Hans Breuer <hans@breuer.org>
3938 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
3939 doc/shape.dtd doc/custom-shapes :
3940 support for images in custom shapes, also removed some long-time
3943 * doc/en/*.xml : fixed crippled line ends which get created
3944 when windoze line ends are checkin from the unix side
3946 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
3948 * configure.in: Added "sq" to ALL_LINGUAS.
3950 2004-01-11 Hans Breuer <hans@breuer.org>
3952 [more less leaks ;-]
3954 * objects/SADT/annotation.c : use text_destroy() not g_free()
3956 * objects/chronogram/chronoline.c : neither leak chronoline::events
3957 nor chronoline::name
3959 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
3961 2004-01-11 Hans Breuer <hans@breuer.org>
3963 * lib/properties.h :
3964 * objects/custom/custom_object.c : more properties optional
3965 to be backward compatible for older diagrams not having them
3966 set. (Try to load samples/all_objects.dia)
3968 [less memory leaks thanks valgrind ;-]
3970 * app/recent_files.c (recent_file_history_write) :
3971 g_free(history_filename);
3972 (recent_file_menu_item) : use g_path_get_basename()
3973 which already strdups, free result of g_strescape()
3975 * app/filedlg.c (create_export_menu) : return of
3976 filter_get_export_filter_label() must be g_free()'d
3977 (create_open_menu) : same for import
3979 * app/export_png.c (export_png_ok) : destroy info ptr
3980 with png_destroy_write_struct()
3982 * app/app_procs.c (app_init) : g_free(export_format_string);
3984 * lib/font.c (dia_font_finalize) : finalize parent_class, too
3985 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
3986 refing it a second time, g_type_create_from_instance() is enough
3988 * lib/object_defaults.c (_obj_store) : don't mess with names
3989 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
3991 2004-01-11 Steffen Macke <sdteffen@web.de>
3993 * app/diapsftrenderer.c: including ftoutln.h
3994 * app/makefile.msc: updated for freetype build
3995 * lib/libdia.def: added dia_font_get_context()
3996 * lib/dialibartrenderer.c (draw_string): added cast
3998 2004-01-10 Hans Breuer <hans@breuer.org>
4000 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4001 transformed coordinates, fixes bug 130804
4003 2004-01-10 Hans Breuer <hans@breuer.org>
4005 * app/filedlg.c app/app_procs.c : don't try to destroy
4006 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4007 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4008 returns. Fixes 'has no handler' bugs like #121019
4010 2004-01-10 Hans Breuer <hans@breuer.org>
4012 * objects/UML/class.c objects/UML/class_dialog.c :
4013 handle umlclass->name being empty to avoid, i.e. fix #127968
4015 [plugging memleaks, thanks valgrind :-]
4017 * lib/dia_xml.c (data_string) : don't leak return value
4018 of xmlNodeListGetString()
4020 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4021 before returning, maybe alloca() would be the better
4022 choice but anyway ;)
4024 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4026 * lib/font.c (dia_font_build_layout) : don't leak result
4029 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4030 (this is the one which got me started using valgrind, see #130816)
4032 2004-01-07 Sanlig Badral <badral@openmn.org>
4034 * configure.in: Added "mn" to ALL_LINGUAS.
4036 2004-01-04 Hans Breuer <hans@breuer.org>
4038 * lib/diagdkrenderer.c : replace rendering of really small (height
4039 less than 2 pixels) with a simple dashed line, you wont notice the
4040 differnce beside it being much faster. This allows ...
4041 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4042 * app/navigation.c : ... and lets you see an read rendered text even
4043 in the nice navigation popup.
4045 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
4046 (draw_string) : don't leak temporary image
4048 2004-01-04 Hans Breuer <hans@breuer.org>
4050 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4051 * app/interface.c : use dia-app-icons.h to give Dia window icons
4053 * lib/dia_image.c lib/color.c : _never_ call functions implemented
4054 in app/ from lib/. It is not portable and broken from design
4055 * app/app_procs.c : call color_init() and dia_image_init() conditional,
4056 i.e. only if running interactive.
4058 * lib/font.h : #include <time.h>
4060 * lib/libdia.def : updated externals
4062 * objects/UML/actor.c
4063 objects/UML/association.c (todo)
4064 objects/UML/branch.c
4065 objects/UML/class.[hc] objects/UML/class_dialog.c
4066 objects/UML/classicon.c
4067 objects/UML/component.c
4068 objects/UML/constraint.c
4069 objects/UML/dependency.c
4070 objects/UML/generalization.c
4071 objects/UML/implements.c
4072 objects/UML/large_package.c
4073 objects/UML/lifeline.c
4074 objects/UML/message.c
4076 objects/UML/object.c
4077 objects/UML/realizes.c
4078 objects/UML/small_package.c
4080 objects/UML/usecase.c
4082 : ported coloring of most UML objects (bug #97517, orginal
4083 work Mathias Hasselmann)
4085 * lib/properties.h : add _OPTIONAL variants for
4086 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4087 i.e. default colored - UML diagrams without complaining
4088 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4089 not set properties with the help of PXP_NOTSET. Otherwise
4090 optional attributes would lead to wrong initialization.
4092 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4093 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4094 Same for most other selectors which probably should be rewritten
4095 to the combo box with tree model from Gtk+ 2.4
4097 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
4099 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4100 being the Right Thing(tm) to use on Solaris.
4102 * objects/standard/bezier.c (bezierline_draw): Don't draw
4103 guidelines if not selected.
4105 * lib/object.[ch] (dia_object_is_selected): Function to check whether
4106 a given object is selected. O(n), where n is # selected objects.
4109 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
4111 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4112 Fonts dialog is closed without pressing Ok (bug #128646).
4114 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
4116 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4119 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
4121 * INSTALL: Updated list of requirements (bug #129653)
4123 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4124 Pionchon <luc@handhelds.org>.
4126 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4128 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4129 empty or NULL strings (bug #130097).
4131 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
4133 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4134 Added checks against color_black.
4136 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4138 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4139 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
4142 * objects/UML/component_feature.c: Patch from W. Borgert
4143 <debacle@debian.org>: Add handle to component feature text.
4145 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4147 * lib/font.c: Caching PangoLayout for better rendering speed.
4149 2003-12-30 Lars Clausen <lars@raeder.dk>
4151 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4152 get absolute file name from relative.
4153 * app/recent_files.c (recent_file_history_add): Use absolute
4154 filenames for recent files menu so that files can be found when
4155 Dia is invoked from other places.
4157 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4158 Actually load different diagrams if such are requested on command
4161 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4162 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4164 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
4165 remove text rendering. May be turned into greeking at some later
4169 * app/Makefile.am (dia_core_files):
4170 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
4171 Adds navigation window a la Gimp, though without text being
4174 2003-12-27 Luc Pionchon <luc@handhelds.org>
4176 * app/navigation.h: (new file)
4177 * app/navigation.c: (new file) creates a navigation window with a
4178 thumbnail view of the whole diagram.
4179 * app/Makefile.am (dia_core_files): added new files.
4181 * app/interface.c (create_display_shell): added a button between
4182 the scrollbars to popup a navigation window.
4184 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
4186 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
4187 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
4188 not want text rendering.
4190 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
4192 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
4194 * objects/custom/shape_info.[ch]: Cleanup.
4196 * objects/custom/custom_object.[ch]: Changed to use new props
4201 * lib/prop_inttypes.c:
4202 * lib/prop_geomtypes.c: Added *prop_get_data_size.
4204 * lib/libdia.def: Added object_load_props.
4206 * configure.in: Better FT2 version test, from bug #129225.
4208 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
4210 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
4211 Lehmann <holger.lehmann@catworkx.de>.
4213 * plug-ins/xslt/Makefile.am:
4214 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
4215 and OWL XSLT sheets.
4217 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
4219 * lib/diagdkrenderer.c: Add implementation so text is still
4220 rendered. May be improved later.
4226 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
4227 Allow running without a $DISPLAY!
4229 * lib/color.c: Remove warnings for non-interactive run.
4234 * app/app_procs.[ch]:
4235 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
4236 to specify size for PNG output.
4238 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
4239 render a little smaller, so as to fit the big ones.
4241 * lib/arrows.[ch]: New arrow type from W. Borgert
4242 <debacle@debian.org>: Filled Dot and Triangle.
4244 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
4246 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
4249 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
4251 * acinclude.m4: Better Python configure code patch (can't find
4252 author, author please speak up!)
4254 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
4256 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
4259 2003-11-30 Hans Breuer <hans@breuer.org>
4261 * plug-ins/python/diasvg.py : initialize self.dash_length
4262 in constructor to avoid crashing if the renderer user
4263 does not set it before first usage.
4265 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
4267 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
4271 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
4272 development and stable versions.
4274 * lib/text.c (text_draw): Use new renderer function to draw the
4277 * lib/diarenderer.h:
4278 * lib/diarenderer.c: New renderer function "draw_text" with
4279 default implementation. This function should eventually be the
4280 main interface, as it will be able to handle width and caching of
4281 rendering internally. All users of draw_string should convert to
4282 use Text objects and call either renderer->draw_text or text_draw,
4283 the latter if the text can be edited in-place (as should be the
4286 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
4288 * shapes/Circuit/hresistor.shape: First example of extra
4291 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
4293 * plug-ins/shape/shape-export.c:
4294 * lib/diasvgrenderer.h:
4295 * lib/diasvgrenderer.c:
4296 * plug-ins/svg/render_svg.c (new_svg_renderer):
4297 Actually store the font size, using DiaRenderer's font fields.
4299 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
4301 * objects/custom/shape_info.[ch]:
4302 * objects/custom/custom_object.[ch]:
4303 Support for extra attributes in custom objects.
4305 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
4307 * app/diagram.c (diagram_update_menu_sensitivity): More
4308 intelligent checks for menu sensitivity. Might be slow on huge
4309 diagrams, but I think other things outweigh it by a lot.
4311 * app/menus.[ch]: Make "Bring Forwards"
4312 and "Send Backwards" updateable.
4314 2003-11-22 Steffen Macke <sdteffen@web.de>
4316 * shapes/Assorted/arrow-turn-up.shape:
4317 * shapes/Assorted/arrow-turn-up.png:
4318 * sheets/Assorted/Makefile.am:
4319 * sheets/Assorted.sheet.in: Added new arrow
4321 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
4329 * app/diagram_tree.c
4330 * app/diagram_tree_menu.c
4331 * app/diagram_tree_window.c
4332 * app/diapagelayout.c
4333 * app/diaunitspinner.c
4337 * app/layer_dialog.c
4338 * app/lineprops_area.c
4339 * app/linewidth_area.c
4342 * app/paginate_psprint.c
4344 * app/plugin-manager.c
4347 * app/recent_files.c
4349 * app/sheets_dialog.c
4350 * app/sheets_dialog_callbacks.c
4351 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
4352 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
4354 * TODO: Updated, note on EPS transparency.
4356 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
4358 * objects/UML/class.c (umlclass_draw): Allow classes with no name
4361 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
4364 * doc/en/dia-manual.xml:
4367 * NEWS: Another Brown Bag release for parenting problems,
4368 including a crash bug fix.
4370 * app/connectionpoint_ops.c (diagram_update_connections_object):
4371 Also update connections when moving children. This can cause
4372 move_handle to be called twice, so it must be idempotent.
4374 * app/load_save.c: Loading and saving of children totally redone.
4375 Now doesn't violate assumption that all objects in a layer are
4376 placed in order in XML file.
4378 * objects/UML/branch.c (branch_create): Don't lie about being
4381 * objects/UML/node.c (node_create):
4382 * objects/UML/large_package.c (largepackage_create): Drag with
4383 lower right-hand handle at creation like all other objects.
4385 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
4387 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
4388 parenting drop to behave like a move inside, i.e. constrain place
4389 instead of trying to resize. 'Cause, resizing cannot be done for
4390 all objects (e.g. UML Class). Also simplified the algorithm a lot
4393 * app/load_save.c: Saving and loading of connection points for
4394 children added. Prototypes for static functions added.
4396 * lib/dynamic_obj.c: Removed debugging output.
4398 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
4400 * doc/en/dia-manual.xml:
4401 * doc/pl/dia-manual.sgml:
4405 * NEWS: Brown Bag release 0.92.1
4407 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
4409 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
4411 * app/app_procs.c (app_init): Rearrangement for translators.
4413 2003-10-24 Steffen Macke <sdteffen@web.de>
4415 * lib/text.c(text_key_event): enforcing the inserted text length now,
4418 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
4420 * MAINTAINERS: Change Debian maintainer to be the default address.
4422 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
4423 args to match prototype, thus removing crashbug #125159.
4425 * RELEASE-PROCESS: Note to self.
4427 2003-10-22 Steffen Macke <sdteffen@web.de>
4429 * doc/en/dia-manual.xml: removed superfluous external references
4431 2003-10-21 Steffen Macke <sdteffen@web.de>
4433 * lib/libdia.def: added filter_get_by_name
4434 * app/render_eps.c: moved extensions definition outside #ifdef
4436 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
4440 Removed old Dia manual, put new one in doc/en/. Translations
4441 should go in doc/??/.
4443 * doc/en/dia-manual.xml:
4444 * doc/pl/dia-manual.sgml:
4445 * dia.spec (Release):
4448 * NEWS: 0.92 is here!
4452 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
4453 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
4456 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
4458 * doc/en/usage-objects-selecting.xml: Commented out empty note.
4460 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
4462 * doc/pl/dia-manual.sgml:
4463 * doc/en/dia-manual.xml:
4467 * dia.spec (Release): Pre7.
4469 * app/diapsrenderer.c (draw_string): Convert string to print based
4470 on current locale. If conversion fails, fall back to UTF-8 (which
4471 is almost certain to be messy).
4473 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
4475 * doc/pl/dia-manual.sgml:
4476 * dia.spec (Release):
4480 * doc/en/dia-manual.xml: Pre6.
4482 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
4483 TeX chars in strings -- must be possible to use TeX text in there.
4484 Also avoids infinite loop bug (#124464) Will get option for this
4487 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
4489 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
4491 * doc/en/dia-manual.xml:
4492 * doc/pl/dia-manual.sgml:
4493 * dia.spec (Release):
4498 * app/authors.h: Removed duplicate of M. C. Nelson.
4500 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
4502 * app/export_png.c: Unique name for libart PNG export: png-libart.
4504 * app/render_eps.c: Unique names for the two eps export methods:
4505 eps-builtin, eps-pango.
4507 * lib/filter.h: Binary compatibility change:
4508 Added unique name to export filters. Can be NULL.
4509 * lib/filter.c (filter_get_by_name): Finding a filter by
4512 * app/app_procs.h: Changed prototype for do_convert.
4513 * app/app_procs.c (app_init): Support for non-extension file
4514 format selection for export. Also allow extension to differ from
4515 that specified by the filters. A bit of refactoring, too.
4517 2003-09-28 Steffen Macke <sdteffen@web.de>
4519 * makefile.msc: added target po to update the translations
4521 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
4524 * dia.spec (Release):
4526 * doc/pl/dia-manual.sgml:
4527 * doc/en/dia-manual.xml:
4528 Pre4 is given a short try.
4530 * configure.in: Give all necessary libs to PNG test.
4532 * lib/font.c: Added legacy entries for sans, serif and monospace.
4534 * app/app_procs.c (internal_plugin_init):
4537 Added PS fonts output for Unix.
4539 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
4540 factor to make PS fonts stay in boxes.
4542 2003-08-03 Hans Breuer <hans@breuer.org>
4544 * config.h.win32 : close the version string
4546 * lib/libdia.def : with color_white, color_black being static
4547 on win32 they can not be exported anymore either
4549 * lib/dialibartrenderer.c : text rendering is back on win32,
4550 only by Gdk though; almost a year seems to be enough to
4551 wait for my patch at bug #94791 to be accepted ...
4553 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
4555 * shapes/network/{digitizing_board.png,plotter.png,
4556 laptop.png,telephone.png}: 22x22 icons.
4558 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
4560 * doc/pl/dia-manual.sgml:
4561 * doc/en/dia-manual.xml:
4562 * dia.spec (Release):
4566 pre3 improves font rendering speed.
4568 * app/app_procs.c (app_init): Don't do pango init here, it's done
4569 on demand in font.c now.
4571 * lib/font.c: Load pango context on demand rather than during
4572 init/all the time strikes a better balance between working font
4573 size and speed. Still need to cache width calculations.
4575 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
4577 * lib/dia_xml.c: Enable pretty printing. Should have been added
4580 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
4582 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
4583 adjustment a bit for half diamond and open round.
4585 * RELEASE-PROCESS: Added note about notifying translators and
4588 * doc/pl/dia-manual.sgml:
4589 * doc/en/dia-manual.xml:
4590 * dia.spec (Release):
4594 Update to 0.92-pre2.
4596 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
4598 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
4599 calculation for half diamond and open round.
4602 * objects/UML/component_feature.c:
4603 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
4604 arrows instead of specific little hacks. Much nicer, but damn
4605 there's a lot of arrows.
4607 * lib/dialibartrenderer.c (begin_render):
4608 * app/render_libart.c (begin_render): Use correct DPI for screen
4609 (well, actually the default DPI of 75 for now).
4611 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
4613 * lib/diagdkrenderer.c (draw_string): Some reformatting.
4615 * app/app_procs.c (app_init): Note on what should be done for the
4616 pango context now, only it doesn't work:(
4618 * lib/font.c (dia_font_new): Make sure to load fonts that are
4619 used, using a reasonable pango_context. Also a comment on the
4622 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
4624 * doc/pl/graphics/*.png:
4625 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
4626 loop (bug #121817). PL translator may want to change the
4627 home_network png to be in Polish. If the docs get translated into
4628 more languages, we'll want to find out how to share these things.
4630 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
4632 * app/splash.c (app_splash_init): Patch from SĂ©bastien Tricaud
4633 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
4636 * app/filedlg.c (file_save_as_callback): Put filename setting
4637 together. (Preparation for allowing default save dir.)
4639 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
4640 correctly this time:)
4642 * app/dia-props.c (diagram_properties_show):
4643 * app/properties.c (properties_show): Make sure the
4644 dialogs are transient for the correct diagram.
4646 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
4648 * configure.in: Make sure -lz -lm is passed into second png test
4649 as well (stupid AC_LINK_IFELSE can't take it as an argument).
4651 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
4652 comment-filled files readable. Once we have a 'generic data'
4653 system, we can put comments in there.
4655 2003-09-06 Steffen Macke <sdteffen@web.de>
4657 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
4658 g_string_sized_new() instead of g_string_new() to make it compile
4659 * app/Makefile.am: including dia.ico and dia.rc in the tarball
4660 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
4661 for non-solid linestyles - otherwise custom linestyles have to be used.
4663 2003-09-02 Steffen Macke <sdteffen@web.de>
4665 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
4668 2003-09-02 Christian Neumair <chris@gnome-de.org>
4670 * sheets/Pneumatic.sheet.in: Slight unification fix.
4672 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
4676 * dia.spec (Release):
4677 * doc/en/dia-manual.xml:
4678 * doc/pl/dia-manual.sgml:
4679 * NEWS: Update to 0.92-pre1.
4681 * app/properties.c (properties_key_event): Removing Esc/Enter
4682 handling for now, interferes to much with regular dialog usage.
4684 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
4685 Function to escape special TeX characters. Not in use yet, as
4686 PSTricks output by default is TeX strings. Should get a save-time
4689 2008-09-01 Steffen Macke <sdteffen@web.de>
4691 * lib/paper.h: explanatory comment on width and height
4693 2003-08-30 Steffen Macke <sdteffen@web.de>
4696 * lib/color.h: made color_white, color_black static on win32
4698 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
4700 * configure.in (PNG_LIBS): Something in the png tests added an
4701 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
4703 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
4705 * configure.in: Quote correctly for temporarily adding freetype
4708 * app/preferences.c (prefs_save): Remove debugging g_print.
4710 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
4712 * objects/flowchart/parallelogram.c (pgram_update_data):
4713 Directions for connections, better system for placing
4716 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
4718 * lib/diagramdata.c (layer_find_closest_object_except): Look all
4719 the way through the object list, so the foremost object is selected.
4721 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
4722 included for diagramdata.c.
4724 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
4725 newline in multistringprop not close the dialog. Failed so far.
4727 2003-08-25 Steffen Macke <sdteffen@web.de>
4729 * app/commands.c: using CHM instead of HTML on win32 if available
4730 * lib/diagramdata.h: including dynamic_obj.h
4732 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
4734 * app/properties.c (properties_key_event): Make Enter = Ok for
4735 properties dialogs. Still some problems with this and Esc for
4736 Cancel, for instances escaping out of a menu closes the dialog.
4738 * objects/UML/association.c (association_get_properties):
4739 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
4742 * app/diapsft2renderer.c (draw_string): Use
4743 dia_font_scaled_build_layout to ensure similarity of text.
4745 * lib/diagramdata.c: Remove obj from dynobj list when removing
4746 from layer to avoid nasty race conditions.
4748 * app/undo.c (group_objects_revert): Make sure to unparent and
4749 remove from dynobj list when changing layers objects.
4751 2003-08-23 Steffen Macke <sdteffen@web.de>
4753 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
4754 StretchBlt(); fixes #92249
4756 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
4758 * app/filedlg.c (file_save_as_callback):
4759 * app/preferences.h:
4760 * app/preferences.c (prefs_data):
4761 * lib/diagramdata.h:
4762 * lib/diagramdata.c (new_diagram_data):
4763 * app/load_save.c (diagram_data_load):
4764 Let the document remember whether it was compressed. The user can
4765 still override this in the Save As... dialog, and that will still
4766 be remembered as the default for new diagrams.
4768 2003-08-23 Steffen Macke <sdteffen@web.de>
4770 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
4772 2003-08-22 Steffen Macke <sdteffen@web.de>
4774 * plug-ins/xslt/dia-uml.xsl:
4775 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
4776 table containing a list of components grouped by stereotype
4778 2003-08-21 Steffen Macke <sdteffen@web.de>
4780 * lib/makefile.msc: added connectionpoint.obj
4781 * lib/libdia.def: added connpoint_update, find_slope_directions
4782 * app/disp_callbacks.c: including scroll_tool.h
4783 * obj/makefile.msc: added component_feature.obj
4784 * app/paginate_gdiprint.c: fixed loop initialization in
4785 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
4788 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
4790 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
4793 * lib/diagramdata.h: Colors added to prefs.
4794 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
4795 New field for pagebreak color, which should
4796 behave the same as grid color and be settable for a diagram.
4798 * app/diagram.c (diagram_init): Update diagram pagebreak color
4801 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
4804 * app/preferences.[ch]: Default diagram colors now #defines, so
4805 loading can use it. Also, colors are now in NewDiagramData, so
4806 are passed nicely into new diagrams directly from prefs. Yum.
4808 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
4809 Support for loading and saving grid and pagebreak colors with the
4810 diagram. I'm inclined to make all the three Colors in diagram
4811 Color*s instead, so we can tell if they're specified for the
4812 diagram or merely the default setting. There'd be no way for the
4813 user to tell if the color of a diagram is default, though, unless
4814 we add a 'reset to default' button to prefs.
4816 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
4817 pagebreak color. Unsensitizing grid size when dynamic.
4819 * objects/UML/component.c: Patch from Krzysztof Foltman
4820 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
4821 third. Makes the left side connections actually be on the line
4824 2003-08-20 Steffen Macke <sdteffen@web.de>
4826 * lib/libdia.def: added layer_find_closest_object_except
4827 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
4829 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
4833 * app/scroll_tool.c:
4835 * app/disp_callbacks.c:
4836 * app/create_object.h:
4837 * app/create_object.c: Patch from Krzysztof Foltman
4838 <kfoltman@onet.pl>: Middle button can scroll transiently when
4839 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
4843 * sheets/UML.sheet.in:
4844 * sheets/UML/receptacle.xpm:
4845 * sheets/UML/Makefile.am:
4846 * sheets/UML/eventsource.xpm:
4847 * sheets/UML/eventsink.xpm:
4848 * objects/UML/pixmaps/facet.xpm:
4849 * objects/UML/uml.c (dia_plugin_init):
4850 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
4851 * objects/UML/component_feature.c:
4852 Patch from W. Borgert <debacle@debian.org>: Add event sources and
4855 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
4857 * lib/object.h: Turning some comments into doxygen style.
4859 * lib/object_defaults.c (dia_object_defaults_load)
4860 (dia_object_default_get, dia_object_default_create):
4861 Fixing up existing documentation.
4863 * lib/object.h: Doxygen style documentation begun.
4865 * app/create_object.c:
4867 * app/connectionpoint_ops.c:
4868 * app/disp_callbacks.c:
4869 * app/modify_tool.c:
4871 * objects/network/wanlink.c (wanlink_move_handle):
4872 * objects/network/bus.c (bus_move_handle):
4874 * objects/flowchart/parallelogram.c (pgram_move_handle):
4875 * objects/flowchart/ellipse.c (ellipse_move_handle):
4876 * objects/flowchart/diamond.c (diamond_move_handle):
4877 * objects/flowchart/box.c (box_move_handle):
4879 * objects/custom/custom_object.c (custom_move_handle):
4881 * objects/chronogram/chronoref.c (chronoref_move_handle):
4882 * objects/chronogram/chronoline.c (chronoline_move_handle):
4884 * objects/SADT/box.c (sadtbox_move_handle):
4885 * objects/SADT/arrow.c (sadtarrow_move_handle):
4886 * objects/SADT/annotation.c (annotation_move_handle):
4888 * objects/Misc/analog_clock.c (analog_clock_move_handle):
4890 * objects/GRAFCET/vergent.c (vergent_move_handle):
4891 * objects/GRAFCET/vector.c (arc_move_handle):
4892 * objects/GRAFCET/transition.c (transition_move_handle):
4893 * objects/GRAFCET/step.c (step_move_handle):
4894 * objects/GRAFCET/condition.c (condition_move_handle):
4895 * objects/GRAFCET/action.c (action_move_handle):
4897 * objects/FS/function.c:
4898 * objects/FS/flow.c:
4899 * objects/FS/flow-ortho.c (orthflow_move_handle):
4900 * objects/FS/flow-poly.c (flow_move_handle):
4902 * objects/UML/usecase.c (usecase_move_handle):
4903 * objects/UML/state_term.c (state_move_handle):
4904 * objects/UML/state.c (state_move_handle):
4905 * objects/UML/small_package.c (smallpackage_move_handle):
4906 * objects/UML/realizes.c (realizes_move_handle):
4907 * objects/UML/object.c (objet_move_handle):
4908 * objects/UML/note.c (note_move_handle):
4909 * objects/UML/node.c (node_move_handle):
4910 * objects/UML/message.c (message_move_handle):
4911 * objects/UML/lifeline.c (lifeline_move_handle):
4912 * objects/UML/large_package.c (largepackage_move_handle):
4913 * objects/UML/implements.c (implements_move_handle):
4914 * objects/UML/generalization.c (generalization_move_handle):
4915 * objects/UML/fork.c (fork_move_handle):
4916 * objects/UML/dependency.c (dependency_move_handle):
4917 * objects/UML/constraint.c (constraint_move_handle):
4918 * objects/UML/compprop.c (compprop_move_handle):
4919 * objects/UML/component.c (component_move_handle):
4920 * objects/UML/branch.c (branch_move_handle):
4921 * objects/UML/association.c (association_move_handle):
4922 * objects/UML/actor.c (actor_move_handle):
4923 * objects/UML/activity.c (state_move_handle):
4924 * objects/UML/class.c (umlclass_move_handle):
4926 * objects/standard/ellipse.c (ellipse_move_handle):
4927 * objects/standard/zigzagline.c (zigzagline_move_handle):
4928 * objects/standard/textobj.c (textobj_move_handle):
4929 * objects/standard/polyline.c (polyline_move_handle):
4930 * objects/standard/polygon.c (polygon_move_handle):
4931 * objects/standard/line.c (line_move_handle):
4932 * objects/standard/image.c (image_move_handle):
4933 * objects/standard/bezier.c (bezierline_move_handle):
4934 * objects/standard/arc.c (arc_move_handle):
4935 * objects/standard/beziergon.c (beziergon_move_handle):
4936 * objects/standard/box.c (box_move_handle):
4938 * objects/ER/relationship.c (relationship_move_handle):
4939 * objects/ER/participation.c (participation_move_handle):
4940 * objects/ER/entity.c (entity_move_handle):
4941 * objects/ER/attribute.c (attribute_move_handle):
4943 * lib/polyshape.c (polyshape_move_handle):
4945 * lib/orth_conn.c (orthconn_move_handle):
4947 * lib/neworth_conn.c (neworthconn_move_handle):
4948 * lib/neworth_conn.h:
4949 * lib/element.c (element_move_handle):
4951 * lib/connection.c (connection_move_handle):
4953 * lib/beziershape.c (beziershape_move_handle):
4954 * lib/beziershape.h:
4955 * lib/bezier_conn.c (bezierconn_move_handle):
4956 * lib/bezier_conn.h:
4957 *BINARY COMPATIBILITY CHANGE*
4958 Update prototype for *_move_handle() to include connectionpoint,
4959 and also pass on modifiers. Pass in connectionpoint where
4962 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
4963 file connectionpoint.c.
4965 2003-08-17 Danilo Å egan <dsegan@gmx.net>
4967 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
4969 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
4971 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
4973 * lib/beziershape.c (beziershape_update_data): Autoroute
4974 directions for beziershapes!
4976 * lib/connectionpoint.c (find_slope_directions):
4977 * lib/connectionpoint.h: Function for finding the available
4978 directions on a slope.
4980 * lib/polyshape.c: Reasonable directions for
4983 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
4985 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
4986 * objects/GRAFCET/vergent.c (vergent_update_data):
4987 * objects/GRAFCET/transition.c (transition_update_data):
4988 * objects/GRAFCET/action.c (action_update_data):
4989 * objects/GRAFCET/step.c (step_update_data):
4990 * objects/FS/function.c (function_update_data):
4991 * lib/connpoint_line.c (connpointline_putonaline):
4992 * objects/ER/attribute.c (attribute_update_data):
4993 * objects/ER/entity.c (entity_update_data):
4994 * objects/ER/relationship.c (relationship_update_data):
4995 * objects/chronogram/chronoline.c (chronoline_update_data): Set
4996 directions for connection points.
4998 * objects/UML/component.c (component_create): Set to allow
5001 * app/create_object.c (create_object_button_press):
5002 * app/diagram.[ch] (diagram_find_clicked_object_except):
5003 * lib/diagramdata.[ch] (layer_find_closest_object_except):
5004 Avoid parenting to objects you're connecting to (otherwise you
5005 couldn't make a connection out of a parenting object). To do
5006 this, added functions to find the nearest object except a given
5009 * app/render_libart.c: Rearrange libart include to avoid multiple
5010 include program (and put libart includes inside #ifdef!)
5012 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
5014 * lib/dialibartrenderer.c: Don't include art_config.h if others
5015 also do, as it isn't #ifdef'd.
5017 * objects/flowchart/ellipse.c (ellipse_update_data): Add
5018 directions for connection points.
5020 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
5022 * objects/flowchart/box.c (box_update_data): Add directions, use
5024 (box_load): Use g_malloc0.
5026 * lib/Makefile.am (libdia_la_SOURCES):
5027 * lib/connectionpoint.c (connpoint_update):
5028 Function to call to update a connection point info in _update_data().
5030 * lib/connectionpoint.h: Convenience DIR_ macros.
5032 * app/preferences.c (prefs_data): Make pretty formatted XML the
5035 * lib/dialibartrenderer.c:
5036 * app/render_libart.c: Make sure art_config.h is included, cause
5037 some libart headers are broken.
5039 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5040 after test. Add freetype-config cflags to cflags variable.
5042 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
5044 * app/authors.h: Credits for Krzysztof.
5046 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5047 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
5048 than the description) is visible in the title of the properties
5049 dialog. That ought to be a short description (translatable),
5050 though we still want long descriptions for the tooltips. Hmmm...
5052 * configure.in: Updated to use AC_LINK_IFELSE instead of
5053 AC_TRY_COMPILE, also force to link to check libs on Solaris.
5055 * objects/ER/entity.c (entity_load):
5056 * objects/ER/attribute.c (attribute_load):
5057 * lib/attributes.c (attributes_set_default_font):
5058 Check if font is non-null before unreffing.
5060 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
5062 * app/diagram.c (diagram_ungroup_selected)
5063 (diagram_group_selected): Use the undo apply to make sure grouping
5064 and ungrouping is done in consistent manners. This removes a fair
5065 amount of duplicated code from diagram.c.
5067 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
5068 (group_objects_revert, group_objects_apply): Working undo/redo for
5069 diagram tree updates. The initial actions still don't quite work.
5071 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
5073 * app/create_object.c (create_object_button_press):
5075 * app/diagram.c: Undo support for parenting. Uses apply/revert in
5076 undo only for manipulating the parent/child relationships. Things
5077 like removing an object doesn't use the undo functions for
5078 parenting, so any updates to come (like to diagramtree) should be
5081 2003-08-03 Hans Breuer <hans@breuer.org>
5083 * app/create_object.c : minor formating and g_new0 for
5086 * lib/bezier_conn.[hc] lib/beziershape.[hc]
5087 lib/prop_geomtypes.c (prop_geomtypes_register)
5088 objects/standard/bezier.c objects/standard/beziergon.c :
5089 ability to set bezpoints via StdProp api
5091 * plug-ins/python/pydia-property.c : convert list of tuples
5094 * plug-ins/python/diasvg_import.py : use it to
5095 implement part of path parsing. Also minor improvements
5096 like inheritance of group attributes to members,
5097 whitespace, title and style:text/css ignoring ;-)
5099 2003-08-02 Hans Breuer <hans@breuer.org>
5101 * lib/connections.c (connection_move_handle): return
5102 something to make it compile
5103 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
5104 must return a value -> dito
5105 [Is there a warnings-as-errors switch we could use with gcc
5106 to avoid such in future ?]
5108 * plug-ins/python/pydia-object.h : define *_Check macros
5109 * plug-ins/python/diamodule.c : provide dia.group_create()
5110 * plug-ins/python/pydia-diagramdata.c : add
5111 DiaDiagramData.add_layer()
5112 * plug-ins/python/pydia-property.c : allow to set color by
5115 * plug-ins/python/diasvg_import.py : based on the above
5116 implement a) group support, b) rgb(1,2,3) color handling,
5117 and somewhat fishy data:image/png;base64 support (create
5118 temporary files from inline image data)
5119 d) dump the import errors as text into an 'Error' layer
5121 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5122 stray " in draw_rect and corrected error message formating
5124 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5125 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
5128 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
5130 * app/magnify.c (create_magnify_tool): allocate with g_new0()
5132 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
5133 preferences values (see bug 118570). Also group items into a GtkFrame.
5135 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
5140 * app/commands.c (objects_unparent_children_callback):
5142 * app/diagram.c (diagram_unparent_selected,
5143 (diagram_update_menu_sensitivity):
5144 Added unparenting of single children.
5146 * lib/bezier_conn.c:
5147 * lib/bezier_conn.h:
5148 * lib/beziershape.c:
5149 * lib/beziershape.h:
5155 * lib/neworth_conn.c:
5156 * lib/neworth_conn.h:
5163 * objects/EML/instantiation.c:
5164 * objects/EML/interaction-ortho.c:
5165 * objects/EML/interaction.c:
5166 * objects/EML/process.c:
5167 * objects/ER/attribute.c:
5168 * objects/ER/entity.c:
5169 * objects/ER/participation.c:
5170 * objects/ER/relationship.c:
5171 * objects/FS/flow-ortho.c:
5172 * objects/FS/flow-poly.c:
5173 * objects/FS/flow.c:
5174 * objects/FS/function.c:
5175 * objects/GRAFCET/action.c:
5176 * objects/GRAFCET/condition.c:
5177 * objects/GRAFCET/step.c:
5178 * objects/GRAFCET/transition.c:
5179 * objects/GRAFCET/vector.c:
5180 * objects/GRAFCET/vergent.c:
5181 * objects/Misc/analog_clock.c:
5182 * objects/SADT/annotation.c:
5183 * objects/SADT/arrow.c:
5184 * objects/SADT/box.c:
5185 * objects/UML/activity.c:
5186 * objects/UML/actor.c:
5187 * objects/UML/association.c:
5188 * objects/UML/branch.c:
5189 * objects/UML/class.c:
5190 * objects/UML/classicon.c:
5191 * objects/UML/component.c:
5192 * objects/UML/constraint.c:
5193 * objects/UML/dependency.c:
5194 * objects/UML/fork.c:
5195 * objects/UML/generalization.c:
5196 * objects/UML/implements.c:
5197 * objects/UML/large_package.c:
5198 * objects/UML/lifeline.c:
5199 * objects/UML/message.c:
5200 * objects/UML/node.c:
5201 * objects/UML/note.c:
5202 * objects/UML/object.c:
5203 * objects/UML/realizes.c:
5204 * objects/UML/small_package.c:
5205 * objects/UML/state.c:
5206 * objects/UML/state_term.c:
5207 * objects/UML/usecase.c:
5208 * objects/chronogram/chronoline.c:
5209 * objects/chronogram/chronoref.c:
5210 * objects/custom/custom_object.c:
5211 * objects/flowchart/box.c:
5212 * objects/flowchart/diamond.c:
5213 * objects/flowchart/ellipse.c:
5214 * objects/flowchart/parallelogram.c:
5215 * objects/network/bus.c:
5216 * objects/network/wanlink.c:
5217 * objects/standard/arc.c:
5218 * objects/standard/bezier.c:
5219 * objects/standard/beziergon.c:
5220 * objects/standard/box.c:
5221 * objects/standard/ellipse.c:
5222 * objects/standard/image.c:
5223 * objects/standard/line.c:
5224 * objects/standard/polygon.c:
5225 * objects/standard/polyline.c:
5226 * objects/standard/textobj.c:
5227 * objects/standard/zigzagline.c:
5228 Binary compatibility update: Added return value for foo_move() and
5229 foo_move_handle(). Orthconn derivatives also returns change from
5230 orthconn_move_handle().
5232 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
5233 doesn't support it yet.
5235 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
5236 Add returning ObjectChange from object moves. Needs to handle
5237 multiple object moves.
5239 * app/modify_tool.c (modify_motion, modify_release): Add
5240 ObjectChange from move & move_handle to undo stack.
5242 * objects/EML/instantiation.c (instantiation_move): Removing
5243 duplicate move & update.
5245 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
5247 * plug-ins/xfig/xfig-export.c: Added support for arrow head
5248 export. Many arrow types not supported by XFig, replacing those
5249 with standard arrows. Not sure whether it'd be better to render
5250 them as a group of lines instead. You'd lose the arrow-ness for
5251 further editing, but preserve the actual shape of it. Also added
5252 support for dash length.
5254 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
5256 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
5257 description for version 3.2, for reference.
5259 * plug-ins/xfig/xfig-import.c: Added import of arrows.
5261 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
5262 Align Vertical Adjacent call _v rather than _h.
5264 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
5266 * app/scroll_tool.c (create_scroll_tool):
5267 * app/modify_tool.c (create_modify_tool): use g_new0() to
5270 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
5272 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
5274 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
5276 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
5278 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
5280 * configure.in: Added Belarusian to ALL_LINGUAS.
5282 2003-07-19 Hans Breuer <hans@breuer.org>
5285 Make the xslt plug-in work on win32, too. It appears
5286 to require a quite recent version of libxml and libxslt,
5287 otherwise windoze pathes aren't translated correctly
5288 during file processing
5291 * plug-ins/xslt/xslt.h : #include <glib.h> before
5294 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
5295 the 'script' file finding similar to how it is done
5296 with the python scripts (no need for hardcoded pathes,
5297 removed the 'plugin' part from the path)
5299 * plug-ins/xslt/stylesheets.xml : added again. It does
5300 not have any path but only the pure filename again
5302 * plug-ins/xslt/stylesheets.xml.in : removed
5304 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
5305 rule to process stylesheets.xml.in
5307 * plug-ins/makefile.msc : added xslt
5309 2003-07-19 Hans Breuer <hans@breuer.org>
5311 Finally Dia learned to remember the recent selected sheet
5313 * app/preferences.[hc] : added prefs.recent_sheet
5314 * app/interface.c : restore and remember the sheet-option-menu
5315 history, but only if the respective number is stiil available.
5316 This additional adds robustness against running Dia without
5317 any sheet (e.g. installation problems)
5318 * app/app_procs.c : call prefs_safe() in app_exit() to remember
5319 changes which are not done by the prefernces dialog
5321 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
5322 removed every call (especially the conditional ones) to prefs_safe().
5323 Before prefs_safe() was called _many_ times during Dia startup
5325 2003-07-18 Hans Breuer <hans@breuer.org>
5327 * app/makefile.msc lib/makefile.msc lib/libdia.def :
5330 * lib/color.c : use gtk_widget_get_default_visual();
5331 as suggested in #114536
5333 * app/interface.c app/disp_callbacks.c :
5334 moved round_up () to the latter file where it is used
5336 * app/linewidth_area.c : #include "interface.h" for
5337 interface_get_toolbox_shell()
5339 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
5341 * plug-ins/pixbuf/.cvsignore
5342 * shapes/Cisco/.cvsignore:
5345 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
5347 * app/dia-props.c (diagram_properties_retrieve): Use
5348 diagram_get_name() to add the diagram name to the diagram
5352 * app/diagram.c (diagram_get_name): New function to get a
5353 reasonable diagram name.
5355 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5356 info. Still need to be able to set dynamic grid. Also ought to
5357 follow Gnome style and have instant apply.
5359 * app/preferences.h:
5360 * app/preferences.c (prefs_data): Remove option to use stippled
5361 grid, add option for major line offset. Default to 5 minor lines
5363 Add option for dynamically sized grid.
5365 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5367 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
5368 stippled/solid to display minor/major grid lines. Line drawing in
5369 separate functions away from calculating line distance.
5371 * app/grid.h: Split page break drawing out of grid_draw.
5373 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
5374 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
5375 when menu item is selected.
5377 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
5379 * configure.in: Removed -Winline flag to make way for important
5382 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
5383 non-compressed. Should fix bug #117381, also look prettier.
5386 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
5387 Set up desktop info more properly.
5389 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
5406 Autorouting directions patch from Krzysztof Foltman
5409 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
5410 GNOME parent menu items.
5412 * app/authors.h: Added Vadim to contributors list.
5414 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
5416 * app/commands.[ch]:
5417 * app/create_object.c:
5418 * app/disp_callbacks.[ch]:
5429 * objects/UML/large_package.c: Patch from Vadim Berezniker
5430 <vadim@berezniker.com>:
5431 Objects may "parent" other objects, i.e. contain them within
5432 themselves, restrain them and move them along. Some more stuff is
5433 needed, such as selection and individual unparenting. This adds
5434 parenting to UML - Large Package rather than Box.
5436 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
5438 * app/linewidth_area.c: Patch from Krzysztof Foltman
5439 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
5440 conform more, at least:).
5442 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
5443 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
5444 arcs. Implemented images (though there is some pixelization and
5445 banding in the output). Changed output file format to be a little
5448 * app/app_procs.c (app_exit): Added message for double exit, which
5449 shouldn't happen any more. Also preventing strange g_object_unref
5450 messages by having a printf after gtk_main_quit. This is really
5453 * app/interface.c (toolbox_delete): Avoid double app_exit call by
5454 removing handler for destroy when delete is called.
5456 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
5459 * app/display.c (ddisplay_scroll_to_object,
5460 ddisplay_scroll_center_point): New function for easy scrolling to
5463 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
5465 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
5466 $(srcdir) on stylesheets.xml.
5468 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
5469 diagram menus (since they're at the top by default now). Also
5470 move the Properties... menu item from Dialogs to Objects. Dialogs
5471 menu should disappear at some point.
5473 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
5474 ./configure from ./autogen.sh, as configure may need to be run
5475 from a different directory. (Also more standard this way.)
5477 * app/app_procs.c (app_init):
5478 * app/Makefile.am (INCLUDES): Gnome standardization patch from
5481 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
5483 * objects/flowchart/parallelogram.c (pgram_update_data):
5484 Left/right alignment for parallelograms. Doesn't use all
5485 available space, but then pgrams also ignore their shear value.
5486 This thing needs a loving hand.
5488 2003-07-01 Hans Breuer <hans@breuer.org>
5490 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
5491 * lib/proplist.c : don't complain if optional attr is missing
5492 * lib/orth_conn.h : make "orth_autoroute" optional to
5493 stop complaining with older files.
5495 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
5497 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
5499 2003-06-05 Andrew Halper <ashalper@cox.net>
5501 * app/diagram_tree.c : add scrolling of drawing area
5502 to desired object on "Locate". Patch modified to use new ddisplay
5503 function ddisplay_scroll_to_object().
5505 2003-06-11 Lars Clausen <lars@raeder.dk>
5507 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5508 info. Before next version, the grid dialog (view dialog, really)
5509 must be redone to allow a) instant apply, b) apply to all
5510 diagrams, and c) setting colour, dynamic, major lines.
5512 * app/preferences.h:
5513 * app/preferences.c (prefs_data): Remove option to use stippled
5514 grid, add option for major line offset. Default to 5 minor lines
5516 Add option for dynamically sized grid.
5518 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5520 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
5521 stippled/solid to display minor/major grid lines. Line drawing in
5522 separate function away from calculating line distance.
5524 * app/grid.h: Split page break drawing out of grid_draw.
5526 2003-05-15 Hans Breuer <hans@breuer.org>
5528 * plug-ins/python/diasvg.py : add xlink definition,
5529 also avoid to put spaces into attribute values. At least
5530 Sodipodi doesn't like them in width/height attributes
5532 * plug-ins/python/diasvg_import.py : add simple scaling.
5533 Some (more) handling for <svg>, <desc>, <circle>
5535 * plug-ins/python/scascale.py : (new file) which does
5536 some experimental scaling via StdProp api
5538 * plug-ins/python/pydia-cpoint.c
5539 plug-ins/python/pydia-handle.c : return PyDiaPoint for
5540 obj.pos not simple tuples. PyDiaPoint has a tuple interface
5541 so this may even be api compatible ...
5543 2003-05-11 Hans Breuer <hans@breuer.org>
5545 * app/line_area.c : add window position persitence
5547 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
5548 'poly_points' via StdProp api
5549 * lib/neworth_conn.h : don't rely on OrthConn and
5550 NewOrtConn having the same struct offsets
5552 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
5553 to help separating 'useful' properies - in terms of
5556 * objects/custom/custom_object.c
5558 add the missing prop_desc_list_calculate_quarks to
5559 all the *_describe_props()
5561 * objects/standard/beziergon.c objects/standard/bezier.c :
5562 explicit initializtion of default_user_data
5563 * objects/standard/polygon.c objects/standard/polyline.c :
5564 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
5566 * plug-ins/python/diamodule.c : implement dia.register_import
5568 * plug-ins/python/makefile.msc : need to link with Pango
5569 for pango_color_parse()
5571 * plug-ins/python/pydia-property.c : add a bunch of type
5572 conversions to PyDiaProperty_ApllyToObject()
5574 * plug-ins/python/diasvg_import.py : (new file) which currently
5575 is mainly a stress test for PyDia but for some files already
5576 produces better results than svg-import.c
5578 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
5580 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
5581 type-less operations.
5583 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
5585 * configure.in(ALL_LINGUAS): Added "ms".
5587 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
5589 * plug-ins/xslt/xslt.c (xslt_ok):
5590 * plug-ins/shape/shape-export.c (new_shape_renderer):
5591 * plug-ins/svg/render_svg.c (new_svg_renderer):
5592 * plug-ins/hpgl/hpgl.c (export_data):
5593 * plug-ins/dxf/dxf-export.c (export_dxf):
5594 * plug-ins/metapost/render_metapost.c (export_metapost):
5595 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
5596 * plug-ins/xfig/xfig-export.c (export_fig):
5597 * plug-ins/wpg/wpg.c (export_data):
5598 * plug-ins/cgm/cgm.c (export_cgm):
5599 * app/render_eps.c (export_eps):
5600 * app/export_png.c (export_png_ok):
5601 * app/load_save.c (diagram_data_save): Adding and standardizing
5602 output file error messages to include fopen error message.
5604 2003-05-01 Steffen Macke <sdteffen@web.de>
5606 * app/persistence.c: do not use unistd.h for MSVC build
5608 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
5610 * sheets/Assorted.sheet.in
5611 * sheets/Circuit.sheet.in
5612 * sheets/Contact.sheet.in
5613 * sheets/EML.sheet.in
5614 * sheets/ER.sheet.in
5615 * sheets/Electric.sheet.in
5616 * sheets/FS.sheet.in
5617 * sheets/Flowchart.sheet.in
5618 * sheets/GRAFCET.sheet.in
5619 * sheets/Logic.sheet.in
5620 * sheets/MSE.sheet.in
5621 * sheets/Misc.sheet.in
5622 * sheets/Pneumatic.sheet.in
5623 * sheets/SADT.sheet.in
5624 * sheets/SDL.sheet.in
5625 * sheets/UML.sheet.in
5626 * sheets/chronogram.sheet.in
5627 * sheets/ciscohub.sheet.in
5628 * sheets/ciscomisc.sheet.in
5629 * sheets/cisconetwork.sheet.in
5630 * sheets/ciscorouter.sheet.in
5631 * sheets/civil.sheet.in
5632 * sheets/network.sheet.in
5633 * sheets/sybase.sheet.in:
5634 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
5635 standardizes shape descriptions to use no articles, no 'create
5638 * app/interface.c (tool_data): Standard objects follow same
5641 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
5643 * app/color_area.c (color_area_edit): More informative title on
5644 color selection dialog.
5646 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
5647 sensitivity when dropping object in. Also reset tool to pointer.
5649 * objects/flowchart/diamond.c (diamond_update_data):
5650 * objects/flowchart/parallelogram.c (pgram_update_data): Added
5651 left and right alignment options.
5653 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
5655 * objects/flowchart/box.c: Added left and right alignment options.
5657 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
5659 * app/persistence.c (persistence_load): Test existence of
5660 persistence file before trying to open it.
5662 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
5664 * app/properties.c: Escape now closes properties dialogs.
5666 2003-04-25 Hans Breuer <hans@breuer.org>
5668 * app/config.h.win32 : bump version to 0.91+cvs
5670 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
5672 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
5674 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
5677 * app/presistence.c : need to #include "dia_xml_libxml.h"
5680 * app/layer_dialog.c : make delayed creation work by protecting
5681 all non static layer_dialog_*() with :
5682 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
5683 create_layer_dialog();
5684 * app/app_procs.c : removed /* create_layer_dialog(); */
5686 * objects/uml/association.c : give it a minimal StdProp
5687 implementation to fix bug #108896
5688 * lib/object_defaults.c : don't try to copy props if there
5689 is no obj->ops->describe_props
5691 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
5693 * objects/standard/image.c (image_create):
5694 * objects/standard/ellipse.c (ellipse_create):
5695 * objects/standard/box.c (box_create):
5696 * objects/flowchart/ellipse.c (ellipse_create):
5697 * objects/flowchart/diamond.c (diamond_create):
5698 * objects/flowchart/box.c (box_create):
5699 * objects/custom/custom_object.c (custom_create):
5700 * objects/ER/relationship.c (relationship_create):
5701 * objects/ER/entity.c (entity_create):
5702 * objects/ER/attribute.c (attribute_create): Initialize
5703 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
5705 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
5709 * plug-ins/Makefile.am:
5710 * plug-ins/xslt/Makefile.am:
5711 * plug-ins/xslt/xslt.c (dia_plugin_init):
5712 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
5713 automake-style if to only include xslt dir when needed. Works
5714 with automake 1.4 and up, at least.
5716 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
5718 * lib/diasvgrenderer.c (draw_string):
5719 * lib/dia_svg.c (dia_svg_parse_style): Use
5720 text-anchor:(start|middle|end).
5722 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
5723 polygon rather than polyline & avoid missing line pieces.
5724 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
5725 black-filled things.
5727 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
5729 * app/persistence.c (persistence_load): Check that persistence
5730 file exists before trying to read it.
5731 (persistence_update_window): Removed printf.
5733 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
5735 * lib/autoroute.c: Take badness into the layouters again, as some
5736 of them know they can do things that are pretty but would be
5737 counted as ugly by the default calculation.
5739 * objects/UML/large_package.c: Shrink package name box when no
5740 stereotype is present.
5742 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
5743 * lib/orth_conn.c: Added object menu item for autorouting.
5745 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
5746 Autorouting, plus set initial dragging handle to be the end, not
5748 (orthflow_draw): Flipped arrow place to be at the end, as
5749 originally intended (got lost in arrow update).
5751 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
5752 * objects/UML/dependency.c (dependency_get_object_menu):
5753 * objects/UML/association.c (association_get_object_menu):
5754 * objects/UML/realizes.c (realizes_get_object_menu):
5755 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
5756 * objects/GRAFCET/vector.c (arc_get_object_menu):
5757 * objects/ER/participation.c (participation_get_object_menu):
5758 * objects/EML/instantiation.c (instantiation_get_object_menu):
5759 * objects/UML/generalization.c (generalization_get_object_menu):
5760 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
5761 Autorouting setup (currently disabled for SADT/arrow).
5763 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
5765 * lib/autoroute.c: Removed printfs.
5768 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
5769 non-connected orthconns too.
5771 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
5774 * lib/orth_conn.c: Function to set autorouting on/off, use
5775 autorouting in move_handle (turns off when a middle handle is
5776 moved), added to standard orthconn props.
5778 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
5779 Stopped signal emission for check menu items being set to on/off.
5781 * objects/standard/zigzagline.c: Added autorouting object menu item.
5783 * lib/autoroute.c: Added last cases of autoroute layout, fixed
5784 floating point comparison bug, cleaned up layouters, tweaked
5785 badness to allow kinks.
5787 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
5789 * lib/connectionpoint.h: Changed DIR_* macros to go around the
5792 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
5794 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
5795 old cruft, added call to autoroute (currently cannot be turned
5796 off). Need to check what undo thinks about this.
5797 * lib/autoroute.[ch]: Fairly working simple layout.
5799 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
5800 * lib/autoroute.[ch]: Start of proper autorouting functionality.
5802 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5804 * lib/prop_widgets.c: Show labels on ListProp.
5806 2003-04-11 Steffen Macke <sdteffen@web.de>
5808 * doc/en/dia-manual.xml: removed reference of non-existing authors
5810 * doc/en/usage-objects-selecting: commented out misleading section
5813 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
5815 * app/app_procs.c (app_init): Layer window now opened at startup
5818 * lib/prop_widgets.c: Show labels on ListProp.
5820 2003-04-09 Steffen Macke <sdteffen@web.de>
5822 * doc/en/*.sgml: removed files
5823 * doc/en/*.xml: added files
5824 * doc/en/Makefile.am: switched to XML DocBook
5826 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
5828 * plug-ins/xslt/xslt.c (dia_plugin_init):
5829 * configure.in: Added --with-xslt-prefix to allow other XSLT
5830 placements than /usr/lib.
5832 2003-04-09 Steffen Macke <sdteffen@web.de>
5834 * lib/makefile.mingw: updated to include latest files, including
5836 * lib/geometry.h: don't define isinf and finite for mingw gcc build
5838 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
5840 * app/persistence.h:
5841 * app/persistence.c (persistence_register_window_create):
5842 * app/app_procs.c (app_init):
5843 Register window function that doesn't create the window unless it
5844 should be open. Other windows should move to this, so startup
5845 speed can be reduced.
5847 * app/persistence.h: Removed call prototype for update_window, now
5849 * app/persistence.c (persistence_register_window): A number of
5850 fixes. Doesn't forget position when window is closed. Now
5851 actually loads prefs.
5853 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
5856 * app/preferences.c (prefs_data):
5857 * app/diagram_tree_window.h:
5858 * app/diagram_tree_window.c: Added persistence registering.
5859 Removed prefs items storing size and openness.
5861 * app/sheets_dialog.c (create_sheets_main_dialog): Added
5862 persistence registering.
5864 * app/Makefile.am (dia_core_files): Added persistence files.
5867 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
5868 that dirs are present.
5870 * app/app_procs.c (app_init): Loads persistent values on startup.
5871 (app_exit): Saves persistent values on exit.
5873 * app/layer_dialog.c (create_layer_dialog): Registers the layer
5874 window for persistence.
5876 * app/persistence.[ch]: New files handling various kinds of
5879 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
5881 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
5882 head spacing calculations. Added half-circle arrow from Matthieu
5883 Sozeau <mattam@netcourrier.com>
5885 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
5887 * app/app_procs.c (app_init): Moved layer dialog init to allow
5888 tooltips to be initialized.
5890 * app/interface.c (create_display_shell): More tooltips.
5892 * app/linewidth_area.c (linewidth_area_create)
5893 (linewidth_area_events):
5894 * app/color_area.c (color_area_events, color_area_create):
5895 Made tooltips work by embedding drawing_area in event_box.
5897 * app/interface.c (create_display_shell,
5898 (create_lineprops_area, create_color_area): Added a few tooltips.
5900 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
5902 * app/pixmaps/off-grid.xpm:
5903 * app/pixmaps/on-grid.xpm:
5904 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
5907 * app/commands.c (view_snap_to_grid_callback):
5908 * app/display.c (ddisplay_set_snap_to_grid)
5909 (update_snap_grid_status):
5910 * app/interface.c (create_display_shell, grid_toggle_snap):
5911 Added snap-to-grid status button.
5913 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
5915 * app/app_procs.c (app_init): Create a new diagram if a file on
5916 the command line isn't found.
5918 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
5920 * lib/dialibartrenderer.c (draw_string): Correct color handling
5923 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
5926 * doc/en/dia-manual.sgml:
5927 * doc/pl/dia-manual.sgml:
5929 * dia.spec (Release):
5930 Version 0.91 is here!
5932 2003-02-10 Steffen Macke <sdteffen@web.de>
5934 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
5935 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
5936 non-ANSI characters, closes #107980
5938 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
5942 * dia.spec (Release):
5943 * doc/en/dia-manual.sgml: Upping to pre6.
5945 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
5947 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
5948 #107511: Make arrow selector for correct arrow type.
5950 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
5952 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
5955 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
5957 * doc/en/dia-manual.sgml:
5960 * dia.spec (Release): Upping to pre5.
5962 * configure.in: Add freetype-config derived libs to the
5963 AC_CHECK_LIB statement for freetype.
5965 2003-02-28 Hans Breuer <hans@breuer.org>
5967 [fix for bug #107203]
5969 * lib/diarenderer.c : add warning 'implementation'
5970 for fill_rect to avoid crashing with a renderer
5971 which does not implement this required function.
5973 * plug-ins/dxf/dxf-export.c : provide - still empty -
5974 'implementations' for fill_rect and fill_polygon
5975 to suppress the above warnings. Now it works like
5978 2003-02-28 Steffen Macke <sdteffen@web.de>
5980 * samples/all_objects.dia: New sheet containing all dia shapes
5981 and objects; one layer per sheet
5983 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
5985 * lib/prop_text.c (multistringprop_get_widget,
5986 multistringprop_reset_widget, multistringprop_set_from_widget):
5987 Now uses GtkTextView instead of deprecated stuff, and also works:)
5989 * configure.in: Slightly more informative error message for isinf.
5991 * dia.spec (Requires): Require libxml2 rather than libxml.
5993 2003-02-28 Steffen Macke <sdteffen@web.de>
5995 * shapes/Circuit/hjumper.png:
5996 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
5999 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
6001 * doc/en/dia-manual.sgml:
6003 * dia.spec (Release):
6004 * NEWS: New prerelease 0.91pre4, two important fixes.
6006 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
6008 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6011 * app/commands.c (help_manual_callback): More correct URL for help
6012 page (include file://, was broken on Dillo without it).
6014 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
6016 * app/disp_callbacks.c: Set modifed when text is changed.
6018 * app/modify_tool.c (modify_button_release): Allow undo for moving
6021 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6024 * doc/en/dia-manual.sgml:
6026 * configure.in: New prerelease with important bugfix.
6027 * shapes/network/digitizing_board.png:
6028 * shapes/network/plotter.png: Re-adding with -kb.
6030 2003-02-17 Abel Cheung <maddog@linux.org.hk>
6032 * app/app_procs.c (app_init): Add comment for translators.
6034 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6036 * lib/filter.c (filter_register_import, filter_register_export):
6037 Don't accept filters with NULL description.
6039 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6040 (as we assume the description is available in other places).
6042 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
6044 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
6045 * app/display.c (ddisplay_resize_canvas): Use
6046 ddisplay_add_update_all().
6047 (ddisplay_add_update_all): Free display and update lists when
6048 doing update_all, as they'll be regenerated immediately to cover
6049 all visible area. Fixes bug #106165, crash when resizing. This
6050 appears to be the original AA crash bug, believed long extinct.
6052 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
6054 * app/commands.c (help_manual_callback): Use file: protocol for
6057 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6059 * plug-ins/xslt/stylesheets: Removed old-style config file.
6061 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6063 * plug-ins/xslt/Makefile.am:
6064 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6065 handling (no more DIA_PLUGIN_PATH).
6067 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
6069 * plug-ins/svg/render_svg.c:
6070 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6072 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
6074 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
6075 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
6076 side of the triangle is longer than the hypotenuse. Rounding
6079 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
6083 * doc/en/dia-manual.sgml: Update for pre2.
6085 * app/menus.c (display_menu_items): Fixed wrongly place separators.
6087 * objects/flowchart/box.c (box_update_data): Applied patch from
6088 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6091 * app/paginate_psprint.c (print_page): Set paper name, so it
6092 convinces ps printers to use to right size.
6094 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
6096 * app/properties.c (properties_show): Hide the dialog if the
6097 object is NULL (get rid of 'no properties' randomly popping up).
6099 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
6101 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6102 for diagrams not starting at origo.
6104 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
6106 * dia.spec (BuildRequires): Use libxml2-devel.
6108 * plug-ins/pixbuf/Makefile.am: Added to CVS.
6110 * RELEASE-PROCESS: Note on RPM version numbers.
6112 * app/interface.c (create_display_shell): Don't set as toolbar
6113 under Unix, either. Especially not the diagram shell. It removes
6114 it from the taskbar and makes it unresizable, always-on-top with
6115 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
6116 appropriate thing, UTILITY, is not good either, you lose resizing
6117 and minimizing/maximizing under OpenBox.
6119 * app/menus.c (display_menu_items): Set delete item to use Delete.
6121 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
6123 * dia.spec (BuildRequires, Requires): Updated for Gtk2
6126 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6127 display flush when getting focus in, or we may get an update after
6128 the diagram has been destroyed in some cases. Fixes bug #105221.
6130 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6132 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6134 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6135 - gnome-compiled Dia will now read files specified on the command line.
6137 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6139 * INSTALL (REQUIREMENTS): Updated requirements section.
6141 * configure.in: Better finite() check from MĂ¥rten Svantesson
6142 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
6145 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6147 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6149 * app/app_procs.c (debug_break): Added some code to avoid
6150 over-eager optimizations removing the call. Surely there's a
6151 nicer way, but I'm not sure how.
6153 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6154 that set text to black.
6156 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
6158 * NEWS: Mention of Twiki as doc source for Python.
6160 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6161 libart/libpng is not available. Later when we have a way of
6162 letting the user pick options in the file select dialog we shall
6163 allow the choice when applicable.
6165 2003-02-02 Steffen Macke <sdteffen@web.de>
6167 * doc/en/usage-loadsave.sgml:
6168 * doc/en/usage-objects.sgml: patch from
6169 James K. Lowden <jklowden@schemamania.org> to fix
6172 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
6174 * plug-ins/Makefile.am (SUBDIRS):
6175 * plug-ins/pixbuf/pixbuf.c:
6176 * plug-ins/pixbuf/Makefile.am:
6178 Added pixbuf plugin to Makefile.am, but for import only. PNG
6179 export handled by libart, which is better. JPG export is
6180 discouraged. BMP is not much used on Unix. Next release will
6181 integrate libart to allow all outputs.
6183 2003-02-01 Hans Breuer <hans@breuer.org>
6185 * app/preferences.c :
6187 the last two dialogs with 'old' button order finally
6188 are converted to gtk2, no GnomeDialog in all of Dia
6191 2003-02-01 Hans Breuer <hans@breuer.org>
6193 * app/filedlg.c : don't try to use a button as
6194 'overwrite-file-dialog'-parent, use the FileSelDialog
6197 * plug-ins/pixbuf/pixbuf.c : make it work with
6198 system-visual-depth < 24. Remove 'bmp' from output
6199 format extensions, it just was wishful thinking.
6201 * plug-ins/python/Makefile.am : added the four new python
6202 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
6204 2003-02-01 Hans Breuer <hans@breuer.org>
6206 * NEWS : updated content beside dependencies
6208 2003-02-01 Hans Breuer <hans@breuer.org>
6210 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
6211 to make it useable across DLL boundaries
6212 * app/lineprops_area.c : same code to access arrow_types
6215 * objects/UML/class.c : the non empty string is e.g.
6216 comment != NULL && comment[0] != '\0'
6217 * objects/UML/uml.c : same here, don't bother with
6218 empty operation stereotypes
6220 2003-02-01 Steffen Macke <sdteffen@web.de>
6222 * app/lineprops_area.c: latest changes do not work on
6223 windows, using old code without tooltips
6224 * makefile.msc: fixed copying of wmf.dll
6225 * plug-ins/makefile.msc:
6227 * lib/makefile.msc: now linking libintl
6228 * config.h.win32: enabling native language support
6230 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6232 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
6233 -ldl and -lglib. May or may not work on windows...awaiting verdict.
6235 2003-01-31 Daniel Yacob <locales@geez.org>
6237 * configure.in: Added am (Amharic) to ALL_LINGUAS.
6239 2003-01-31 Steffen Macke <sdteffen@web.de>
6241 * objects/UML/class.c (umlclass_calculate_data): fixed crash
6242 when comments were visible, no class comment available and
6245 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6247 * RELEASE-PROCESS: Updated to fit new install-module syntax.
6248 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
6251 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
6257 Prerelease version changes, version 0.91-pre1.
6259 * app/sheets_dialog_callbacks.h:
6260 * app/sheets_dialog_callbacks.c:
6261 * app/sheets_dialog.c (create_sheets_main_dialog):
6262 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
6263 to handle destruction of main dialog cleanly, but it's a mess.
6265 * configure.in: Downgraded ieeefp test to make it not produce
6268 * lib/widgets.c (dia_arrow_selector_set_arrow):
6269 (dia_line_style_selector_set_linestyle): Select menu dot
6272 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
6273 adjustment for diamondheads.
6275 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
6277 * app/properties.c (create_dialog): Destroy properties dialog and
6280 * app/sheets_dialog_callbacks.c
6281 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
6282 if the old one is destroyed.
6284 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
6286 * app/export_png.c (export_png_ok): Added info on resolution.
6287 Should (next release) improve export dialog to allow setting
6288 resolution instead of pixels.
6290 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
6291 to generate arrowheads as well as tooltips.
6293 * lib/arrows.c: Added hollow diamond to menudesc list.
6296 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
6297 unify with rendered menu.
6299 * lib/diarenderer.c (draw_line_with_arrows)
6300 (draw_polyline_with_arrows, draw_arc_with_arrows)
6301 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
6302 without changing renderer API. Thanks to David Scherba for
6303 providing inspiration.
6305 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
6307 * app/interface.c (create_display_shell):
6308 * app/display.h: Patching from Hubert Figuiere
6309 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
6312 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
6314 * app/defaults.c (defaults_show): Fixed defaults closing bug.
6315 Thanks to Hans for pointing it out.
6317 2003-01-25 Hans Breuer <hans@breuer.org>
6319 * app/commands.c : don't warn about crashing libart renderer
6320 on win32. It simply doesn't render text anymore :-(
6322 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
6324 * objects/UML/class.c : don't access umlclass->properties_dialog
6325 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
6326 which sets the former to NULL by destroy_properties_dialog() callback.
6328 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
6330 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
6332 * plug-ins/python/pydia-image.c : add image.uri member
6333 not only useful for SVG rendering
6335 * plug-ins/python/diasvg.py : (new file) a more advanced
6336 example. A full blown SVG Renderer, currently only
6337 registered for .svgz
6339 * plug-ins/python/export-object.py : write text props
6341 * plug-ins/python/debug_objects.py : write prop.type and
6344 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
6346 * objects/UML/association.c (association_update_data): Better
6347 bounding box for assoc with arrows.
6349 * lib/properties.h: New flag for properties with multiple values
6352 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
6353 arrow updating in dialog. Was broken due to changes from destroy
6356 * app/commands.c (view_aa_callback): AA warning only for Windows
6357 -- I trust the Unix side well enough.
6359 * app/render_libart.c (get_text_width):
6360 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
6361 font height can be taken from parent instance.
6363 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
6364 (get_text_width): Proper cursor positioning for libart renderer.
6365 Ought to have a DiaInteractiveRenderer that these two can inherit
6366 from, that knows about transform.
6368 2003-01-25 Steffen Macke <sdteffen@web.de>
6370 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
6371 plug-in still not working on win32
6373 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
6375 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
6376 gdk_window_get_pointer to avoid destroy crash. Simpler than I
6379 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
6381 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
6382 bail out on gtk options.
6384 * lib/message.c (gtk_message_internal): Better handling of destroy
6387 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
6389 * app/color_area.c (color_area_edit):
6390 * lib/widgets.c (dia_file_selector_browse_pressed)
6391 (dia_color_selector_pressed):
6392 * app/plugin-manager.c (get_plugin_manager):
6393 * app/filedlg.c (file_open_callback, file_save_as_callback)
6394 (file_export_callback):
6395 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
6396 handling of destroy event.
6398 2003-01-22 Alan Horkan <horkana@tcd.ie>
6400 * app/commands.c (file_new_callback): Changed Untitled to Diagram
6403 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
6405 * app/preferences.c (prefs_create_dialog):
6406 * app/linewidth_area.c (linewidth_create_dialog):
6407 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
6408 * app/layer_dialog.c (create_layer_dialog)
6409 (layer_dialog_edit_layer): Correct handling of destroy signal.
6411 * app/diapsft2renderer.c (set_font): Adjust silly random factor
6412 for change in font.c
6414 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
6416 * lib/font.c (dia_font_build_layout): Let's all use the same weird
6419 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
6420 * app/layer_dialog.c (create_layer_dialog)
6421 (layer_dialog_edit_layer):
6422 * app/filedlg.c (file_open_callback, file_save_as_callback)
6423 (file_export_callback):
6424 * app/dia-props.c (create_diagram_properties_dialog):
6425 * app/defaults.c (defaults_dialog_destroyed):
6426 * app/color_area.c (color_area_edit): Dialog destroy event handling.
6428 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
6430 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
6431 defaults dialog destroyed.
6433 2003-01-19 Steffen Macke <sdteffen@web.de>
6435 * objects/makefile.msc: added bondgraph
6436 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
6437 to compile pixbuf.dll
6438 * makefile.msc: copying all objects and dlls now
6440 2003-01-19 Hans Breuer <hans@breuer.org>
6442 * app/diagram.[hc] : provide dia_open_diagrams(), make
6443 open_diagrams variable static
6444 * app/dia.def : export it (to be used by PyDia)
6445 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
6446 app/display.c app/dynamic_refresh.c app/layer_dialog.c
6447 app/load_save.c : make use of dia_open_diagrams()
6449 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
6450 on win32. It removes the diagram window from the taskbar and
6451 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
6453 * app/menus.c : add '...' to menu entries where a dialog
6455 * app/recent_files.c app/dia_embedd.c : reflect the above in
6456 menus_get_item_from_path() calls
6458 * lib/libdia.def : add dia_image_rgba_data
6460 * lib/properties.h lib/prop_text.[hc] : add new property
6462 * objects/UML/class.[hc] object/UML/class_dialog.c : use
6463 StringList for attributes_strings and operations_strings to
6464 make this calculated data accessible via the Property API
6466 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
6467 provide dia.new() to create a new diagram, dia.registered_types()
6468 to get on Dia's type registry, dia.message() for simple dialogs
6470 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
6471 to create a new display from a diagram. Let diagram.extents and
6472 diagram.bg_color return the same types as in diagramdata.*
6474 * plug-ins/python/pydia-geometry.c : add a read-only
6475 'sequence interface' to DiaPoint and DiaRectangle
6477 * plug-ins/python/pydia-property.c : allow to get on StringList
6480 * plug-ins/python/pydia-render.c : fix typo to make it compile
6482 * plug-ins/python/python-startup.py : removed 'import pygtk'
6483 again. This file does not need any gtk UI, and some python
6484 plug-ins don't do either
6486 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
6487 it should actually work as intended again
6489 * plug-ins/python/group_props.py : (new file) a prototype for
6490 one the most requested features: Change properties of selected
6491 objects in one step. Requires pygtk.
6493 * plug-ins/python/select_by.py : (new file) select objects by
6494 common properties. Requires pygtk.
6496 [Start of 'PyDia Self Documentation Series']
6498 * plug-ins/python/pydiadoc.py : (new file) generates a new
6499 diagram which contains all objects of dir(dia)
6501 * plug-ins/python/otypes.py : (new file) generates a new diagram
6502 which contains all the currently registered object types sorted
6503 by their containing package
6505 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
6507 * configure.in: Added check for Pango >= 1.1.5, which appears to
6508 be enough to have text work.
6509 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
6510 do it. AC_SUBST should be idempotent, though.
6512 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
6514 * configure.in (HAVE_FREETYPE): Better test for freetype version
6516 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
6518 * lib/font.c: Renamed global_size_one to global_zoom_factor to
6519 avoid confusion, and added comment. Set scale factor in
6520 dia_font_build_layout to 1.0 for Unix side. This fixes at least
6521 my weird scaling problems. Fonts are now of the expectable size,
6522 i.e. the space between lines at size 1.0 is 1.0. If we want a
6523 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
6524 diagrams, though there will always be differences.
6526 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
6528 * plug-ins/python/python-startup.py:
6529 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
6531 * plug-ins/python/python.c (dia_plugin_init): Added warning
6532 message for missing startup file.
6534 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
6536 * lib/dia_image.c (dia_image_rgb_data):
6537 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
6538 involving EPS. Can't do transparency in EPS yet.
6541 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
6542 data as one chunk. Documentation for the RGB data getting funcs.
6543 (dia_image_rgb_data): Added comment.
6545 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
6548 2003-01-13 Steffen Macke <sdteffen@web.de>
6550 * lib/dia_image.c: dia_image_rgb_data() is working for
6551 non-alpha images now. Fixes #93762
6552 * Makefile.am: added makefile.msc to EXTRA_DIST
6554 2003-01-10 Steffen Macke <sdteffen@web.de>
6556 * app/paginate_psprint.c: Closing print dialog when file
6557 could not be written. Fixes #84746
6559 2003-01-04 Steffen Macke <sdteffen@web.de>
6561 * doc/custom-shapes: incomplete description of <svg:text>
6563 2003-01-03 Steffen Macke <sdteffen@web.de>
6565 * makefile.msc(new): new makefile to create file
6566 structure suitable for running dia win32 under
6567 $(TOP)/dia/build/win32
6569 2003-01-02 Steffen Macke <sdteffen@web.de>
6571 * lib/dia_svg.c: including stdlib.h
6572 * lib/makefile.msc: added gdk_pixbuf libs to linker
6573 * app/makefile.msc: added gdk_pixbuf libs, made libart
6574 libs compatible with gnuwin32 package
6576 2003-01-01 Hans Breuer <hans@breuer.org>
6578 * lib/font.c : more comment about global_size_one
6580 * app/menus.c : <control>[<shift>]A for plain gtk build too.
6582 * plug-ins/wmf/wmf.cpp : some type juggling to make
6585 2002-12-31 Steffen Macke <sdteffen@web.de>
6587 * app/makefile.msc: added hint on how to enable console output
6589 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
6591 * objects/standard/textobj.c (textobj_load): Get the handle type
6592 right, at least to be the same as when created.
6594 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
6596 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
6598 2002-12-08 Hans Breuer <hans@breuer.org>
6600 * app/commands.c : fixed bug #85315 'give diagram properties,
6601 instead of no object selected error' almost a one-liner
6603 * app/splash.c : don't make having the logo pixmap
6604 mandatory. Fixes bug #96068.
6606 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
6607 sequence by connecting to the "delete_event"
6608 * app/objects/uml/class_dialog.c : handle "destroy" for
6611 * lib/libdia.def : remove diaXmlNewChild again
6613 * app/paginate_gdiprint.cpp : reflect Dia's page setting
6614 portrait/landscape in the windoze print dialog
6616 * objects/makefile.msc : only UML needs to link against
6617 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
6619 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
6621 * objects/standard/ellipse.c (ellipse_distance_from):
6622 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
6623 correct distance function. Could be faster, but it's not really
6626 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
6628 * lib/font.c: Changed global_size_one to more correct 28.35.
6633 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
6636 2002-12-07 Hans Breuer <hans@breuer.org>
6638 * lib/widgets.c : g_file_get_contents() silently assumes
6639 a binary file. Reflect when creating the font_menu file
6640 to get rid of junk in font menus
6642 2002-12-06 Hans Breuer <hans@breuer.org>
6644 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
6645 removed 0xD 0xD 0xA line ends which get created by
6646 cvs if windoze line ends 0xD 0xA are checked in from
6647 *nix and checked out on win32.
6649 * app/preferences.c : changed toolbox_on_top default to
6650 false. It is currently not possible to change the behaviour
6651 at runtime, at least not on win32.
6653 * lib/dialibartrenderer.c : bug #94791 'rendering to
6654 bitmap without PangoFt2' got delayed to milestone future
6655 so wrap libart text rendering into PANGO_WIN32_FUTURE.
6656 It is not available without my Pango patch in bugzilla.
6658 * lib/font.c : added comment to global_size_one and adapt
6659 the arbitrary size scaling in dia_font_build_layout() for
6660 win32, too. This is needed to get an acceptable font size
6661 approximation for Dia 0.90 and earlier files.
6662 Also #include "message.h".
6664 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
6665 reflect movement of group.[hc]
6666 * lib/group.h : export group_type which gets used by app/*
6668 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
6669 to get the GtkTypeInfo definition
6671 * plug-ins/makefile.msc : dxf and xfig don't need to link
6672 against app/ anymore now that group is moved to lib/
6674 * plug-ins/python/pydia-render.c : remove massive leaking
6675 of self, i.e. PyDiaRenderer
6677 * plug-ins/python/makefile.msc : remove linking against
6680 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
6682 * objects/standard/line.c: Removed properties options for gaps,
6683 until release is done.
6685 * configure.in: Check for freetype version.
6687 * lib/text.c (text_insert_char): Fixed small buffer overflow for
6690 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
6692 * app/diapsft2renderer.h:
6693 * app/diapsft2renderer.c:
6694 * app/diapsrenderer.h:
6695 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
6697 * app/render_eps.c (export_eps, new_psprint_renderer): Using
6698 PS_FT2 renderer when available. Old render stuff killed. Yay!
6700 * lib/properties.h: Fixed bad frame end def.
6702 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
6704 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
6706 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
6708 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
6710 * lib/font.c: Now checking for the proper dia-style standard fonts.
6713 * app/Makefile.am: Moving group.[ch]
6715 * plug-ins/dxf/dxf-import.c:
6716 * plug-ins/xfig/xfig-import.c:
6717 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
6721 * lib/object.c (object_list_move_delta, object_copy_list):
6722 * lib/object.h: Moved some object-related functions from
6723 object_ops to object to assist moving group.c.
6725 * lib/diatypes.h: Added Group typedef.
6728 * lib/group.c: Moved from app to lib to a) resolve plug-ins
6729 references, and b) make groups more "real" objects.
6731 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
6733 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
6735 * lib/font.c (dia_font_init): Added check that the three standard
6738 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6741 * app/load_save.c: Linebreaks in dia files, no indentation.
6742 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
6745 * objects/standard/line.c: Small but important fixes to the line
6749 * lib/dia_xml.c (diaXmlNewChild):
6750 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
6751 XML prettyprinting wrapper.
6753 2002-12-03 Steffen Macke <sdteffen@web.de>
6755 * shapes/Cisco/Makefile.am:
6756 * shapes/Cisco/*.shape: finished conversion of Cisco icons
6759 2002-12-02 Steffen Macke <sdteffen@web.de>
6761 * doc/en/Makefile.am:
6762 * doc/en/usage-objects.sgml:
6763 * doc/en/graphics/line_icon.png: (new) added line icon
6765 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
6767 * objects/standard/line.c: Binary search object edge line gap.
6769 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
6771 * configure.in: Added Cisco makefile, sorted Makefiles list.
6773 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
6775 * configure.in: Now checks for availability of PangoFT2 and
6776 FreeType, raising an error if not found.
6778 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
6781 2002-12-01 Steffen Macke <sdteffen@web.de>
6783 * doc/en/usage-loadsave.sgml: updated information on import
6786 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
6788 * app/commands.c (edit_copy_callback): Freeing copy_list.
6790 2002-11-28 Steffen Macke <sdteffen@web.de>
6792 * app/render_libart.c: art_config.h was included twice
6794 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
6796 * sheets/.cvsignore: More ignorance.
6798 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
6800 * lib/prop_widgets.h: Two (currently unused) settings for frame
6803 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
6804 (by default) foldable.
6806 * lib/propinternals.h:
6807 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
6808 widgets in a more controlled manner.
6810 * objects/standard/line.c (line_update_data): Line gap things
6811 inserted. Can do xeyes now:)
6813 2002-11-26 Christian Neumair <chris@gnome-de.org>
6815 * .cvsignore: Changed.
6816 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
6817 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
6820 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6822 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
6824 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
6825 passing to font hash.
6827 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
6828 utf-8 or locale-convertible before adding to dialog text. This
6829 probably needs done in a number of places where we get text from
6830 the environment and send it to GTK to display.
6832 * lib/widgets.c: Fixed case problems for font menu entries.
6834 * objects/SADT/annotation.c: Don't run the event test (but leave
6835 it here for inspiration).
6838 * lib/widgets.h: Allowing setting preview text for fonts.
6840 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6842 * objects/bondgraph/Makefile.am:
6843 * objects/bondgraph/bondgraph.c:
6845 * objects/Makefile.am: Added bond graph dir.
6847 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
6849 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
6851 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
6853 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
6856 * app/diapsrenderer.c: Freetype rendering is back in force.
6858 * app/disp_callbacks.c: Added missing updates for pre-text-change.
6860 2002-11-25 David Hoover <jazzdaq@yahoo.com>
6862 * app/render_libart.c: Added missing #include line for libart.
6865 * lib/geometry.c: Added point_convex function. This computes
6866 points inside a line segment (0 <= alpha <= 1) or outside the
6867 line segment (alpha < 0 | alpha > 1).
6869 * objects/standard/line.c: Line now has additional code/attributes
6870 which permit the line to extend past the line anchors (gap < 0) or
6871 leave a gap without reaching the anchor (gap > 0). If no gap is
6872 specified, the default gap of 0 will result in identical line
6873 behavior as before. If the 'fractional' attributes are TRUE, the
6874 gap length is not fixed, but a percentage of the line length. I
6875 did not know how create the GTK widgets so the gap code currently
6876 cannot be used without adding XML attributes by hand.
6878 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
6880 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
6882 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
6884 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
6886 * lib/font.c: Debugging functionality in separate functions.
6888 * lib/widgets.c: Using fontsel with context.
6890 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
6892 * objects/custom/custom_object.c: Orientation handling for shapes,
6893 patch thanks to Martin Hans <opfinder@gmx.net>.
6895 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
6896 work on even better orientation handling.
6898 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
6899 casting NULL pointers. Should be unnecessary in an upcoming GTK
6902 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
6906 * lib/widgets.c: Now uses correct context to get font families.
6908 * lib/diagdkrenderer.c (get_text_width, draw_string):
6909 * lib/dialibartrenderer.c (draw_string):
6911 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
6912 (dia_font_build_layout): Unified the twiddle factors into a use of
6913 global_size_one. But I deeply distrust Pango for seeming to
6914 change size of fonts every time I turn my back.
6919 * app/menus.h: Updated some more methods to also be more specific
6923 * app/recent_files.c:
6924 Changed to return most specific type, to avoid run-time type errors.
6926 * app/menus.c (menus_get_item_from_path): Non-gnome version now
6927 gets menu_item rather than widget, which works better.
6929 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
6931 * app/display.c: (new_display):
6932 * app/menus.c: (menus_get_item_from_path):
6933 Relying on the tearoff to locate the input methods menu wasn't a
6934 good idea: tearoffs seem to be an endangered species nowadays.
6935 Anyway, the IM menu seems to be working now.
6937 * app/interface.c: hinted the window manager that the toolbox window
6938 is a toolbox window. Not that my (fairly default configuration)
6939 sawfish cares, but other NETWM compliant WMs may.
6946 * app/layer_dialog.c:
6947 * app/linewidth_area.c:
6949 * app/sheets_dialog.c:
6952 The GTK doc says to avoir gtk_window_set_wmclass() and
6953 gtk_window_set_policy(), and use gtk_window_set_role() and
6954 gtk_window_set_resizable(), respectively.
6956 * app/preferences.c: (prefs_create_dialog):
6957 * app/preferences.h:
6958 * app/display.c: (display_set_active):
6959 Added a preference to have the toolbox hover over diagram windows.
6961 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
6963 * lib/diagdkrenderer.c (get_text_width, draw_string):
6964 Freetype-based string drawing now works. Not very fast, though.
6965 I wish I could use the graphics card for this:( I'm doing three
6966 bitmap loops where I should be doing one. The size is not correct
6967 either, despite having get_text_width give the right thing.
6969 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
6971 * app/connectionpoint_ops.c (diagram_update_connections_object):
6972 Allows more than one connectionpoint on an object to be moved at a
6975 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
6977 * configure.in: Added cs to ALL_LINGUAS.
6979 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
6981 * app/paginate_psprint.c: Removed unnecessary decl of autosave
6984 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
6986 * app/export_png.c (export_png_ok): Saving more variables from the
6989 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
6991 * lib/dialibartrenderer.c (begin_render):
6992 (end_render): Correct pushing and popping of font contexts.
6993 (draw_string): Double zooming eliminated, strange twiddle factor
6994 introduced (grumble). Close to working now, but there are still
6995 strange differences from font to font. In particular, some fonts
6996 really mess with the cursor and extents.
6998 * app/render_eps.c (export_eps):
6999 * app/diapsrenderer.c (dia_ps_renderer_finalize):
7000 Fixed file closing confusion, no longer dependent on PS/EPS.
7002 * app/diagram.c (diagram_place_down_selected)
7003 (diagram_place_up_selected): Now implemented.
7005 * lib/font.c (dia_font_init):
7007 Redesigned the font init/context pushing code. Start of fix for
7008 font name differences.
7010 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
7012 * app/sheets_dialog_callbacks.c: Fix a typo.
7014 2002-10-15 Hans Breuer <hans@breuer.org>
7016 * app/diapsrenderer.[hc] : (new files, old content :-)
7017 simple base class for post script rendering. Does neither
7018 use Pango/FT2 nor does it handle non latin1 characters.
7019 The fancy stuff which nowadays appears to be needed should
7020 probably be done in derived class(es)
7022 * app/makefile.msc app/Makefile.am : added new files
7024 * app/paginate_psrint.c : re-enabled and used as test
7025 for the simple ps renderer above.
7027 * app/render_eps.[hc] : ripped out common ps code and
7028 moved to DiaPsRenderer. The rest of the file is mostly
7029 disabled. And I don't understand enough of it to
7032 * app/diaepsrenderer.h : short lived, removed.
7034 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
7036 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7037 as a plugin (thanks to Torben Nielsen).
7039 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
7041 * app/diaepsrenderer.h:
7043 * app/paginate_psprint.c:
7044 #ifdef'd out enough ps stuff to allow compile. Now we just need
7047 2002-10-12 Hans Breuer <hans@breuer.org>
7049 [last plug-in ported]
7051 * plug-ins/xfig/xfig-export.c : ported to new renderer api
7053 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7054 scale color values to [0..1.0] to properly reconstruct
7057 * plug-ins/xfig/xfig-common.c : some cleaning
7059 2002-10-12 Hans Breuer <hans@breuer.org>
7061 [decrease inter-plug-in-dependencies]
7063 * objects/custom/shape_info.[hc] : move parse_style()
7064 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7065 the related structs and constants.
7066 * objects/custom/custom_object.c : reflect namespace
7069 * lib/dia_svg.[hc] : new files
7070 * lib/makefile.msc lib/Makefile.am : add new files
7071 * lib/libdia.def : updated externals
7073 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7075 * plug-ins/svg/svg.c : enable svg import for win32 (and
7076 probably for other non ELF builds)
7078 * plug-ins/makefile.msc : enable svg import
7080 2002-10-11 Hans Breuer <hans@breuer.org>
7082 * plug-ins/metapost/render_metapost.[hc] : ported
7084 * plug-ins/pstricks/render_pstricks.[hc] : dito
7086 2002-10-11 Hans Breuer <hans@breuer.org>
7088 * plug-ins/cgm/cgm.c : ported, appears to work as before,
7089 but graphic apps available to me can't import the generated
7090 files (the could not with Dia-0.90 cgm as well) ...
7092 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7093 Removed all those function which did emulate 'complex'
7094 drawing ops with basic ones (e.g. rect by line) cause this
7095 stuff is already provided by the base class
7096 * plug-ins/dxf/dxf-import.c : removed render.h include
7098 * plug-ins/python/pydia-font.[hc]
7099 plug-ins/python/pydia-text.c : finally ported to new font api
7101 * plug-ins/python/pydia-layer.c : add extra parameter
7102 to layer_find_closest_connectionpoint()
7104 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7106 * plug-ins/python/python.c : added missing copyright notice
7108 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
7109 actually use the renderers set_font implementation
7111 * plug-ins/renderer.inc : unused now, removed
7112 * plug-ins/Makefile.am : reflect it
7114 2002-10-08 Hans Breuer <hans@breuer.org>
7116 * app/render_gdk.c : don't add the InteractiveRenderer
7117 interface multiple times (it's added to the type, not
7119 * app/render_libart.c : dito. It's currently added
7120 unconditional cause eport_png uses it, but claims
7121 to be non-interactive. Probably set_size should be moved
7122 to the DiaRenderer interface.
7124 * lib/dialibartrenderer.c : add implementations for
7125 get_<width|height>_pixels. Libart rendering works again.
7126 DiaLibartRenderer::draw_image : use dia_image_rowstride()
7129 * lib/diatransform.c(dia_transform_coords_double) :
7130 don't ROUND() the returned values
7132 * plug-ins/pixbuf/pixbuf.c : added import function. It
7133 simply creates a wrapping "Standard - Image" object.
7135 * plug-ins/shape/shape-export.c : use the more direct
7136 method to call base class methods
7138 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
7140 * lib/font.c (dia_font_init): Changed dia_font_init to return old
7141 pango context, to allow stacked contexts (for printing while
7150 * lib/connectionpoint.h
7153 * lib/diagdkrenderer.h
7155 * lib/dialibartrenderer.h
7158 * lib/diasvgrenderer.h
7159 * lib/diatransform.h
7166 * lib/neworth_conn.h
7181 Moved all externally visible struct typedefs into diatypes.h, as
7182 per Hans' suggestions.
7184 2002-10-07 Steffen Macke <sdteffen@web.de>
7186 * lib/Makefile.am: removed a '\' causing problems
7188 2002-10-07 Hans Breuer <hans@breuer.org>
7190 [Libart Renderer resurrected; almost it's compiling but
7191 almost instantly crashing :-]
7193 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
7194 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
7195 * lib/diatransform.[hc] : added dia_transform_coords_double()
7197 * app/display.c : the right parameters for new_renderer_libart()
7198 * app/export_png.c : ported, removed the blind Display hack
7200 * app/makefile.msc lib/makefile.msc
7201 lib/Makefile.am : updated
7203 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
7205 2002-10-06 Hans Breuer <hans@breuer.org>
7207 * plug-ins/pixbuf/pixbuf.c : (new file)
7208 there is a new export plug-in called 'Pixbuf' which uses
7209 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
7210 formats (currently only PNG and JPEG).
7212 2002-10-06 Hans Breuer <hans@breuer.org>
7215 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
7217 * lib/dia-enums.h lib/diatransform.[hc]
7218 lib/diarenderer.[hc] lib/diainteractiverenderer.c
7219 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
7222 * lib/makefile.msc lib/makefile.am : added new files
7224 * lib/plug-ins.c : g_module_error() returns a locale
7225 string, convert to utf8 before further usage
7227 * lib/render.h : #error out. Everything including this
7229 * lib/*.[hc] : ported to new renderer api
7231 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
7232 just to make the rest compile
7233 * app/render_eps.c : temporary disabled all of this
7234 * app/render_eps.h : removed RendererEPS
7236 * app/render_gdk.[hc] : a small wrapper around the new
7237 DiaGdkRenderer form lib/*
7239 * app/render_libart.h : removed RenderLibart definition
7240 * app/render_libart.c : not yet ported to new DiaRenderer
7241 but having an implementation to untie form FT2 dependency
7242 at least on win32. It is using new Pango api form bug #94791
7244 * app/render_pixmap.[hc] : a small wrapper around the new
7245 DiaGdkRenderer form lib/*
7247 * app/display.h : removed render_*.h includes
7248 * app/display.c : the only place where specific
7249 renderers need to be known
7251 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
7252 use new DiaInteractiveRenderer interface
7254 * app/*.c : ported to new renderer api
7255 * object/*/*.c : ported to new renderer api
7256 s/render.h/diarenderer.h/
7257 s/Renderer/DiaRenderer/
7258 s/renderer->ops/renderer_ops/
7259 add in every draw method:
7260 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
7262 * plug-ins/hpgl/hpgl.c :
7263 plug-ins/wmf/wmf.cpp
7264 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
7265 * plug-ins/shape/shape-export.c
7266 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
7267 (nice how small these files became :-)
7269 2002-09-28 Hans Breuer <hans@breuer.org>
7271 * */makefile.msc : updated
7273 * app/defaults.c : don't gdk_invalidate_rect(NULL)
7274 * app/disp_callbacks.c :
7275 can't cast GtkWindow to GdkWindow, use shell->window
7276 (ddisplay_unrealize) don't use already unrefed im_context
7278 can't cast from GtkMenu to GtkMenuItem
7279 (ddisp_destroy) : mark im_context as unrefed
7281 * lib/dia_xml (data_font) : prefer new font format over old one
7282 (data_add_font) : write the legacy name to allow file exchange
7283 with pre Pango versions of Dia, which would otherwise crash
7284 on missing font 'name' attribute.
7285 * lib/font.c (dia_font_get_legacy_name) : improved implementation
7286 to get a better match.
7288 * lib/libdia.def : updated
7290 * lib/messages.c : don't gdk_widget_show(NULL)
7292 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
7294 [make Dia compile, link _and_ work with mingw/gcc3.2]
7296 * config.h.win32 : #define LIBXML, this gets defined from libxml
7297 header but only for _MSC_VER. The mingw build did access an
7298 unitialized function pointer for xmlFree.
7300 * */makefile.mingw : updated (some plug-ins have build issues)
7302 * lib/handle.h lib/object.h : there appears to be no
7303 forward declaration of the form
7304 typedef enum _HandleId HandleId
7305 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
7306 use of enum `_HandleId' without previous declaration
7308 * app/paginate_gdiprint.cpp : added a hack to avoid g++
7309 naming conflict on 'export'
7311 * app/paginate_gdiprint.h : forward declare Diagram
7313 * objects/SADT/annotaion.c : use g_random_double()
7315 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
7317 * app/modify_tool.c: Made motion not happen until sufficiently
7318 large or past double-click interval, to avoid accidental moving
7319 when doubleclicking. Got the double-click time right, and fixed
7320 some issues with release. There are some corner cases that may
7321 exhibit strange behaviour, will look at those later. Nah, let's
7322 not care about those, they are rare and not dangerous.
7324 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
7326 * app/layer_dialog.c:
7328 * plug-ins/dxf/dxf-import.c:
7329 * plug-ins/python/pydia-diagram.c:
7330 * lib/diagramdata.c:
7331 * lib/diagramdata.h:
7332 Improved the consistency of the obj->parent_layer backlinks (esp.
7337 * lib/dynamic_obj.[ch] (NEW):
7340 * app/dynamic_refresh.[ch] (NEW):
7341 * objects/Misc/analog_clock.c:
7342 Added support for dynamic refresh (animated objects).
7344 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
7346 Patch from Owen Taylor <otaylor@redhat.com>:
7347 * doc/en/Makefile.am:
7348 * doc/en/dia-manual.sgml:
7349 * doc/en/usage-objects.sgml:
7350 * doc/en/usage-quickstart.sgml:
7351 * doc/pl/Makefile.am:
7352 * doc/pl/dia-manual.sgml:
7353 * doc/pl/usage-objects.sgml:
7354 * doc/pl/usage-quickstart.sgml:
7356 - Change the DTD declration from an outdated GNOME one to a
7359 - Remove close tags for <graphics> which aren't allowed for
7362 - A hacky fix for a problem where some versions of db2html don't
7363 create *.css files. (If *.css doesn't match anything, then you get
7364 the global explicitely.)
7368 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
7370 * objects/custom/custom_object.c:
7371 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
7372 were never properly prepared for use when reloading a shape with
7373 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
7374 reporting the problem and coming up with a fix! (Closes: #93974)
7376 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
7377 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
7380 * app/display.c: updated menu item paths Alan's patch had moved.
7382 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
7383 load the sheet-provided icon (libpng versions mismatch, grrr.).
7386 * objects/Makefile.am:
7387 * objects/Misc/Makefile.am (NEW):
7388 * objects/Misc/libmisc.c (NEW):
7389 * objects/Misc/analog_clock.c (NEW):
7390 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
7391 * sheets/Misc.sheet.in: just a little experiment...
7393 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
7395 * plug-ins/xlst/Makefile.am: found a way to silence automake while
7396 not forcing everyone to build using libxslt.
7400 * lib/object_defaults.c:
7403 * lib/properties.[ch]:
7405 * objects/standard/box.c:
7406 * objects/UML/state_term.c:
7408 * objects/FS/flow-ortho.c:
7412 * app/diagram_tree.c:
7414 * app/disp_callbacks.c:
7417 * app/lineprops_area.c:
7419 * app/preferences.c:
7422 * app/sheets_dialog_callbacks.c:
7423 * plug-ins/xslt/xslt.c:
7424 * plug-ins/metapost/render_metapost.c:
7425 * plug-ins/xfig/xfig-export.c:
7426 * plug-ins/shape/shape-export.c:
7428 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
7429 unused variables, mostly)
7432 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
7434 * app/Makefile.am: modified run_dia.sh so that we recover the
7435 ability to run a debugger despite libtool's hacks.
7437 * plug-ins/dxf/Makefile.am:
7439 "make distcheck" fixes.
7441 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
7443 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
7444 <mfranzoni@madd.it>: Check for the type being NULL.
7446 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
7448 * app/render_eps.c (set_font): Re-tweaked font size for printing.
7450 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
7452 Patch from Angus Ainslie <angusa@deltatee.com>:
7453 * plug-ins/dxf/dxf-import.c:
7454 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
7456 (plus a couple extra fixes by me, such as the removal of printf's,
7457 adapting for recent changes, and killed a couple warnings)
7459 * app/authors.h: a 60K patch isn't insignificant, is it?
7461 2002-09-09 Tor Lillqvist <tml@iki.fi>
7463 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
7464 as before) and -lfreetype (using AC_CHECK_LIB). At least on
7465 Solaris with Sun's compiler (Forte C), you need to link also the
7466 dia application with -lfreetype, even if it is implicitly linked
7467 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
7468 which is what they actually mean. Use FREETYPE_LIBS for
7471 Don't look for libsunmath if isinf() is not found in math.h (as on
7472 Solaris). The sunmath library is part of Forte C and not present
7473 on all machines. Besides, even if isinf was found in libsunmath,
7474 we didn't use it in the Makefile.am.
7476 Fix a couple of bashisms.
7478 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
7479 too, on Solaris with Forte C.
7481 Don't try to use the gcc flags with other compilers.
7482 DIA_CHECK_CFLAG gives a false indication that Forte C understands
7483 the gcc -f switches, but in fact they get interpreted meaning
7484 something completely different.
7486 Define the automake conditional HAVE_CGC.
7488 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
7490 Use -export-dynamic only with gcc.
7493 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
7494 PANGOFT2_CFLAGS rename.
7496 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
7498 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
7501 * lib/paper.c: Workaround for gccism: Can't use inline this way with
7504 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
7506 * lib/text.c(set_string): fixed a memory leak (char* ain't no
7507 std::auto_ptr<char> !).
7510 * app/interface.[ch]:
7511 * app/ddisp_callbacks.[ch]: Added some basic support for input
7512 methods (GtkIMContext-based)
7515 * app/Makefile.am: made libdia a shared object (per Tor
7516 Lillqvist's suggestion/request), to cope for platforms with a less
7517 than par dynamic library loader.
7519 * app/display.c: disabled the input method menu (I really don't
7520 see where and how to put them. Blame Frozen Bubble )
7522 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
7524 * objects/flowchart/box.c (box_update_data): Made resizing
7525 possible again (only set width & height when resized too small).
7527 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
7529 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
7532 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
7534 * app/authors.h: now showing Akira TAGOH's name in the native script.
7536 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
7538 * plug-ins/xslt/xslt.c: Removed glib warning for unset
7541 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
7543 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
7544 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
7547 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
7549 * objects/UML/class.c: Fixed showing of empty stereotypes and got
7550 the string placed correctly.
7552 2002-08-30 Hans Breuer <hans@breuer.org>
7554 * lib/font.c (dia_font_get_style) : don't shift already
7555 shifted DIA_FONT values.
7557 * lib/libdia.def : updated externals
7559 * app/disp_callbacks.c : on win32 GdkEventKey::string already
7560 is in UTF-8. (Longterm this probably should be handled on the
7563 * app/command.[hc] app/display.[hc] app/menus.c : add code to
7564 switch display renderers again. The libart renderer is very
7565 useful for win9x with it's limited GDI.
7567 * app/render_gdk.c : use g_warning instead of printf which gets
7568 nowhere on win32 (non console apps)
7570 * app/render_libart.c : make it compile without FREETYPE
7572 * objects/makefile.msc plug-ins/makefile.msc : added clean target
7574 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
7576 * app/render_eps.c (postscript_draw_contour): Debugging statement
7577 that allowed me to figure out font problems.
7579 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
7580 items for font styles.
7582 * objects/FS/flow-poly.c:
7583 * objects/FS/flow-ortho.c:
7584 * objects/FS/flow.c: Further conversion away from GTK dialogs.
7585 Can't set a default label right now:(
7587 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
7589 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
7590 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
7592 * Makefile.am: rules relating to AUTHORS and THANKS
7594 * AUTHORS: file content changed to more accurately
7595 reflect guideline requirements.
7596 * TODO: warning added about Gnome BTS.
7597 * KNOWN_BUGS: warning added about Gnome BTS.
7601 * AUTHORS: added full copyright info.
7602 * mkauthors-placeholder: (removed)
7604 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
7606 * app/paginate_psprint.c (print_page): Fixed text printing after
7607 tip from Dov Grobgeld.
7609 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
7611 * app/paginate_psprint.c (print_page): Fixed color of clip
7614 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
7616 * sheets/Makefile.am: enabled intltool-merge translation cache for
7620 * mkauthors-placeholder:
7621 * AUTHORS: revived that file (in a placeholder form) so that
7622 automake stops yelling.
7623 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
7626 Heh, by the way, thanks Christophe. I feel better now.
7628 2002-08-25 Christophe Merlet <christophe@merlet.net>
7630 * app/command.c: Removed invalid multibyte sequence in Chepelov.
7632 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
7634 * lib/dia_image.c (dia_image_rgb_data):
7635 Bugfixes in image data retrieval.
7637 * app/render_eps.c: Refactoring of new_*_renderer.
7639 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
7643 * lib/dia_image.c: Support for rowstride != width (odd width images)
7645 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
7647 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
7648 * plug-ins/xfig/xfig-import.c: Removed assertion.
7650 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
7652 * lib/paper.c: Removed app/preferences.h reference.
7654 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
7656 * plug-ins/svg/svg-import.c:
7657 * plug-ins/xfig/xfig-import.c:
7658 * lib/Makefile.am (libdia_a_SOURCES):
7659 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
7661 * objects/standard/create.h:
7662 * objects/standard/polygon.c (polygon_create):
7663 * objects/standard/polyline.c (polyline_create):
7664 * objects/standard/beziergon.c (beziergon_create):
7665 * objects/standard/bezier.c (bezierline_create):
7666 Moving create.h into lib.
7668 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
7670 * app/render_libart.[ch]: Work on PNG font export. Something's
7671 still fishy with the scaling, I don't get it.
7674 * app/interface.c: Replaced broken zoom combo with entry+menu.
7675 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
7677 * app/render_gdk.c (get_text_width): Checks for validity of text.
7678 Temporary help while debugging input -- should only activate on
7681 * objects/SADT/annotation.c:
7682 * objects/GRAFCET/transition.c:
7683 * objects/FS/function.c: Removal of gtk.h include.
7685 * objects/UML/state.c (state_load): Warnings about using State
7686 object for initial/final states.
7688 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
7690 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
7692 * app/render_eps.c: Text rendering that scales correctly. Too bad
7693 the standard fonts don't get selected right.
7695 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
7697 * lib/diagramdata.h:
7698 * lib/paper.c (get_paper_info):
7700 * plug-ins/xfig/xfig-import.c:
7701 Committed before testing. I am so embarrased. This compiles, now
7702 that the includes are in the right order.
7704 * app/diagram.c (diagram_init):
7705 * app/app_procs.c (do_convert):
7706 * app/preferences.h:
7707 * lib/diagramdata.h:
7708 * lib/diagramdata.c (new_diagram_data):
7710 * lib/paper.c (get_paper_info):
7711 Moved new_diagram part of prefs into lib/diagramdata.h. More
7712 could be done in new_diagram_data() now.
7714 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
7716 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
7718 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
7720 * configure.in: removed silly user-visible comment
7722 (actually, this is a dummy entry before I manually run nemo; for
7723 some dist-upgrade related reason, this morning's run aborted before
7724 the snapshots were created)
7726 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
7728 * objects/network/wanlink.c:
7729 * objects/network/bus.c:
7732 * objects/custom/custom_object.c:
7733 * objects/network/wanlink.c:
7734 * objects/flowchart/parallelogram.c:
7735 * objects/flowchart/ellipse.c:
7736 * objects/flowchart/diamond.c:
7737 * objects/flowchart/box.c:
7738 Removed GTK defaults stuff.
7740 * objects/UML/fork.c:
7741 * objects/UML/object.c:
7742 * objects/UML/lifeline.c:
7743 * objects/UML/branch.c:
7744 * objects/GRAFCET/transition.c:
7745 * objects/FS/function.c: Removed GTK include.
7747 * objects/FS/flow-ortho.c:
7748 * objects/FS/flow.c: Made the label behave again.
7749 Also removed GTK defaults stuff.
7751 2002-08-06 Hans Breuer <hans@breuer.org>
7753 * app/autosave.c : ported to GDir which is the improved
7754 cross platform replacement for <dirent.h>
7756 * app/makefile.msc : build autosave.obj
7758 * app/font.c : some (bad?) code calls
7759 dia_font_scaled_decent() not only with empty string but
7760 with NULL. Handle it gracefully.
7762 * lib/paper.c : don't depend on ../app. Although IMO
7763 this shouldn't be allowed on any platform it is only
7764 disabled for win32, where it simply doesn't work
7767 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
7769 * objects/fs/flow.c : conditionalize debug spew, disabled
7770 and 'ported' to use g_print. Simple printf won't work with
7771 standard win32 gui apps, may even crash them.
7773 * plug-ins/makefile.msc : DISABLED svg-import cause it
7774 depends on ../objects/custom. This not only break the
7775 build for all non ELF systems but IMO also isn't acceptable
7776 from a design point of view. See dia-list mail on subject.
7778 * plug-ins/python/makefile.msc :
7779 plug-ins/python/python.c : remove all references to dirent
7781 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
7783 * configure.in: added ro to ALL_LINGUAS
7787 * ../translation-graphs/transgraph.py: added support for fuzzy
7788 translations. Enlarged the graphs.
7790 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
7792 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
7793 key events according to locale. No clue if this works for
7796 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
7798 * lib/text.c: Various UTF8 related fixes, in particular in
7799 deleting. Text_insert_char is fine, far as I can tell.
7801 * app/interface.c (create_display_shell):
7802 * app/commands.c: Now uses gtk_clipboard functions, for they are
7803 much simpler. Also handles Win32 clipboard. Non-ascii chars
7804 don't seem to get handled correctly by text_insert_char in
7807 * app/commands.c (received_selection_handler): Got utf8 handling
7808 on paste, and individual char handling out of commands.c. Pasting
7809 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
7811 * lib/message.c (gtk_message_internal): Message dialog re-shown
7812 when new message appears. Maybe it should even move to top?
7816 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
7817 (again) and case-insensitive.
7819 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
7822 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
7824 * app/commands.c (edit_cut_text_callback):
7825 * lib/text.c (text_delete_all): Now functioning undo for text cut.
7827 * app/commands.c (edit_cut_text_callback): Now removes text.
7828 Undo is broken, though.
7830 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7832 * app/diagram.c (diagram_update_menu_sensitivity):
7833 Making cut_text active.
7836 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
7837 clipboard. Also removed AA callback.
7839 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
7841 * objects/chronogram/chronoref.c:
7842 * objects/chronogram/chronoline.c:
7843 * objects/SADT/annotation.c:
7844 * objects/SADT/arrow.c:
7845 * objects/SADT/box.c:
7846 * objects/GRAFCET/vergent.c:
7847 * objects/GRAFCET/vector.c:
7848 * objects/GRAFCET/step.c:
7849 * objects/GRAFCET/condition.c:
7850 * objects/GRAFCET/action.c:
7851 * objects/ER/participation.c:
7852 * objects/ER/relationship.c:
7853 * objects/ER/entity.c:
7854 * objects/ER/attribute.c:
7855 Removing unnecessary GTK references.
7857 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
7859 * objects/standard/image.c:
7860 * objects/standard/textobj.c:
7861 * objects/standard/ellipse.c:
7862 * objects/standard/polygon.c:
7863 * objects/standard/beziergon.c:
7864 * objects/standard/box.c:
7865 Making default default properties.
7867 * objects/standard/image.c:
7868 * objects/standard/arc.c:
7869 * objects/standard/box.c:
7870 * objects/standard/zigzagline.c:
7871 * objects/standard/polyline.c:
7872 * objects/standard/line.c:
7873 * objects/standard/ellipse.c:
7874 * objects/standard/polygon.c:
7875 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
7877 * lib/object_defaults.c (dia_object_default_create):
7880 * lib/object.c (object_copy_using_properties):
7881 * lib/propdialogs.c:
7882 * lib/propinternals.h:
7883 * lib/propobject.c (object_create_props_dialog)
7884 (object_copy_props):
7885 Removing the standard (toolbox) properties from defaults dialogs.
7887 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
7889 * lib/font.c (dia_font_scaled_string_width)
7890 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
7892 * lib/text.c (text_calc_boundingbox): Take descent into account.
7894 * objects/standard/bezier.c (bezierline_draw):
7895 * lib/render.c (draw_bezier_with_arrows):
7896 Better arrow drawing for beziers. Doesn't change the mouse-click
7899 * lib/arrows.h: Some const-ness.
7901 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
7903 * lib/render.c (draw_arc_with_arrows):
7904 * objects/standard/arc.c (arc_draw): Better arrow drawing for
7905 arcs. Doesn't change the mouse-click area yet.
7907 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
7913 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
7915 * app/group.c (group_draw): Forgotten commit: Groups to draw as
7916 objects (using default routines).
7920 * lib/diagramdata.h:
7921 * lib/diagramdata.c (layer_find_closest_connectionpoint):
7922 * objects/standard/zigzagline.c (zigzagline_move_handle):
7923 * app/diagram.c (diagram_find_closest_connectionpoint):
7924 * plug-ins/python/pydia-diagram.c
7925 (PyDiaDiagram_FindClosestConnectionPoint):
7926 * app/object_ops.c (object_connect_display)
7927 (object_find_connectpoint_display)
7928 * app/create_object.c (create_object_button_press)
7929 (create_object_motion):
7930 * app/modify_tool.c (modify_motion):
7931 Adding object param to allow connectionpoint and handle coinciding.
7933 * objects/standard/zigzagline.c (zigzagline_check_orientation):
7934 Fixing minor problems.
7936 * objects/standard/ellipse.c (ellipse_update_data):
7937 Added direction hints.
7939 * lib/diagramdata.c:
7942 * lib/diagramdata.h:
7943 * objects/standard/zigzagline.c:
7944 First working example of zigzagline hints, currently only between
7947 2002-07-27 Steffen Macke <sdteffen@web.de>
7949 * plug-ins/svg/render_svg.c: added support for rounded
7950 rectangles (fixes #69053 if compile with
7952 * object/custom/shape_info.[c|h]: made parse_style and
7953 parse_path accessible for svg plug-in
7954 * plug-ins/svg/Makefile.am:
7955 * plug-ins/svg/svg.c:
7956 * plug-ins/svg/svg-import.c(new): added SVG import filter
7958 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
7960 * objects/standard/box.c:
7961 * objects/standard/zigzagline.c (zigzagline_move):
7962 More work on zigzagline hints.
7964 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
7965 * lib/connectionpoint.h:
7966 Hints for zigzaglines.
7968 * app/properties.c (properties_show):
7969 * app/defaults.c (defaults_show):
7971 * lib/propobject.c (object_create_props_dialog):
7973 * objects/FS/flow-poly.c:
7974 * objects/network/wanlink.c:
7975 * objects/network/bus.c:
7976 * objects/UML/class.h:
7977 * objects/UML/class_dialog.c:
7978 * objects/UML/association.c:
7979 Start of removing toolbox props from props dialogs.
7983 * app/lineprops_area.c (dia_arrow_chooser_new):
7984 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
7986 * app/create_object.c:
7987 * app/modify_tool.c:
7992 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
7994 * app/preferences.c:
7996 * app/diapagelayout.c:
7997 New prefs selector kind PREF_CHOICE chooses between a list of
7998 strings. Used for picking default paper.
8000 * app/preferences.c (prefs_data):
8001 * lib/paper.c (get_paper_info): Added prefs setting for
8004 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8005 line segments at the ends (bug #86603).
8007 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8009 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8010 #60324: Now calls update_data after copy.
8012 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8013 Now doesn't steal selection from non-object tools.
8015 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
8017 * app/commands.c (help_manual_callback): Uses BROWSER environment
8018 variable when available.
8020 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
8022 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8023 object from the new sheet when changing.
8025 * app/app_procs.c (app_init): Uses more standard size icon, from
8026 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
8028 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
8030 * objects/UML/implements.c (implements_update_data):
8031 * objects/UML/realizes.c (realizes_update_data):
8032 * objects/UML/dependency.c (dependency_update_data):
8033 Test for null strings before calling on ascent.
8035 * objects/UML/realizes.c (realizes_draw):
8036 * objects/UML/message.c (message_draw):
8037 * objects/UML/generalization.c (generalization_draw):
8038 * objects/UML/dependency.c (dependency_draw)
8039 * objects/UML/constraint.c (constraint_draw):
8040 * objects/GRAFCET/condition.c (condition_draw):
8041 * objects/UML/association.c (association_draw):
8042 * objects/FS/flow-ortho.c (orthflow_draw):
8043 * objects/FS/flow.c (flow_draw): Change to use
8044 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
8047 * lib/arrows.c (calculate_arrow_point):
8050 * objects/standard/zigzagline.c:
8051 * objects/standard/polyline.c:
8052 * objects/standard/line.c: Work towards better arrow drawing.
8054 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
8056 * objects/UML/state.c: Starting phase-out of State object as
8057 initial/final state (which never worked right).
8059 * app/app_procs.c (app_init): --version command line option for
8062 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8064 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
8066 * app/render_eps.c: Removed debugging info.
8068 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8069 Kludge to make ascent and descent work for empty strings. Won't
8070 work when using non-ASCII fonts. Better would be to get a
8071 PangoFont and ask directly.
8073 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8076 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8079 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
8081 * plug-ins/xfig/xfig-export.c: First use of draw_object render
8082 function: All shapes are now groups in XFig export.
8084 * lib/diagramdata.c (normal_render):
8087 * app/display.c (ddisplay_obj_render):
8088 New render function for drawing objects, allows renderers to group
8089 or otherwise specially handle objects. We may want to reconsider
8090 calling it in app/display.c, as we 'know' the object draw function
8091 is the default one there.
8093 * lib/Makefile.am: Removed extra \ that broke stuff.
8095 * plug-ins/xfig/xfig-import.c:
8096 Spline import for xfig. Not perfect.
8098 * objects/standard/create.h:
8099 * objects/standard/bezier.c (bezierline_create):
8100 * lib/bezier_conn.c:
8101 * lib/beziershape.c (beziershape_set_points):
8102 * lib/bezier_conn.h:
8103 * lib/beziershape.h:
8104 Support for creating beziers non-interactively.
8106 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
8108 * plug-ins/xfig/xfig-import.c: Support for polygons and
8109 polylines. Special warning handling system removed.
8111 * lib/message.c (gtk_message_internal): Fixed bug involving
8112 closing message window and then getting repeated message.
8116 * configure.in (GETTEXT_PACKAGE):
8117 Update based on bug #88199. Hopefully this doesn't break too much
8120 * dia.desktop.in (_Comment): Changed after suggestion from
8121 calum.benson@ireland.sun.com (bug 88345)
8123 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8124 <loli@unsa.edu.ar> that makes user/system distinction better.
8126 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8128 * app/render_libart.c: Got the context right, removed crashes.
8138 Remove libart #defines from most places (still around for png export).
8140 * app/render_libart.h:
8141 * app/render_libart.c:
8142 * configure.in (HAVE_LIBART):
8143 Starting on update of libart stuff for png export (without X).
8145 * app/autosave.h (autosave_check_autosave):
8148 * app/Makefile.am (dia_core_files):
8150 * app/diagram.c (diagram_set_modified):
8152 * app/app_procs.c (app_init):
8153 Autosave support. No automatic restore yet.
8155 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8157 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8160 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
8162 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8164 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
8166 * Fix for 'make dist' etc. --- problem caused by
8167 previous AUTHORS patch.
8169 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
8171 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
8173 (set_font): NULL check.
8175 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
8177 * app/disp_callbacks.c:
8179 Addition to the object menus allows check menu items.
8181 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
8183 * HACKING: completely changed to bring up-to-date.
8184 * AUTHORS: file needs REMOVING from CVS as now
8185 dynamically generated.
8186 * app/authors.h: split into subcategories for original
8187 authors, maintainers, etc.
8188 * app/app_procs.c: --credits rewritten to support new
8190 * app/commands.c: no changes to about box code, comment
8192 * Makefile.am: added rule for AUTHORS. I'm still
8193 inexperienced with automake, it seems to work, but
8194 for AUTHORS-related bugs, look at this change first.
8196 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
8198 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
8199 work. Back to including xslt dir always.
8201 * objects/UML/uml.c:
8202 * objects/UML/class.h:
8203 * objects/UML/class_dialog.c:
8204 * objects/UML/class.c: Patch from
8205 <mattam@netcourrier.com>: Adds comment visibility switch, also
8208 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
8209 for state/fork/activity stuff.
8210 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
8211 * objects/UML/Makefile.am:
8212 * objects/UML/uml.c:
8213 * sheets/UML.sheet.in: Added new objects activity, fork,
8215 * objects/UML/pixmaps/state_term.xpm:
8216 * objects/UML/state_term.c: New, only initial/final states.
8217 * objects/UML/pixmaps/activity.xpm:
8218 * objects/UML/activity.c: New, activity state.
8219 * objects/UML/pixmaps/fork.xpm:
8220 * objects/UML/fork.c: New, fork/join bar.
8221 * objects/UML/pixmaps/state.xpm: state icon.
8225 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
8226 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
8229 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
8231 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
8234 * app/Makefile.am: Commented out the diaconv parts while it's not
8235 used anyway. To come back later.
8237 * configure.in (HAVE_FREETYPE):
8240 * app/render_eps.c: Support for printing with freetype, better
8241 encapsulated now. Renders the text nicely, but ignores font
8242 setting. Requires pangoft2 to get the font outline, but non-text
8243 objects can still be rendered without it.
8246 * app/commands.c (objects_place_up_callback)
8247 (objects_place_down_callback):
8249 * app/diagram.c (diagram_place_down_selected)
8250 (diagram_place_up_selected): Starting support for moving objects
8253 * app/menus.c: Removed character/numeral shortcuts.
8255 2002-07-06 Hans Breuer <hans@breuer.org>
8257 * makefile.am app/makefile.am lib/makefile.am
8258 objects/makefile.am plug-ins/makefile.am
8259 plug-ins/python/makefile.am :
8260 added required files for win32 build to EXTRA_DIST
8262 * app/paginate_psprint.c app/render_eps.c
8264 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
8265 on Pango as currently is on win32 => no PostScript
8268 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
8269 use '/* noop */;' for empty case labels; replace
8270 debug spew printf with g_print which is guaranteed
8271 to work on win32, too.
8273 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
8274 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
8275 in the pango_font_description_set_weight() api documentation
8276 Take care for them in dia_font_get_style() too.
8278 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
8279 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
8280 rename Obliquity to Slant which appears to be the usual name,
8281 also rename dia_font_get_style_string -> dia_font_get_slant_string
8283 * plug-ins/wmf/wmf.cpp : finally ported to new font api
8285 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
8287 * objects/uml/association.c class.c large_package.c message.c
8288 if g_free() is used g_strdup needs to be used.
8289 * objects/custom/shape_info.c
8290 objects/ER/attribute.c entity.c
8291 objects/standard/image.c
8292 app/sheets_dialog_callbacks.c : more strdup cleaning
8294 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8296 * app/render_eps.c: Non-crashing printing (made the right
8297 context). Font output still fscked up.
8299 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
8301 * app/authors.h: Added file --- now master
8302 location for contributors data.
8303 * app/app_procs.c: Added --credits option.
8304 * app/commands.c: Modified about box to use
8307 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8309 * app/render_eps.c: First stab at EPS rendering using the contour
8310 code from PAPS. Crashes.
8312 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
8314 * app/recent_files.c (recent_file_history_remove):
8315 Fixed call to g_list_delete_link discarding return value.
8317 * lib/widgets.c (dia_font_selector_set_styles):
8318 * lib/font.h (DiaFontWeight):
8319 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
8321 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
8323 Contribution from Alan Horkan <horkana@tcd.ie>:
8326 * sheets/Assorted.sheet:
8327 A set of 40 assorted geometric shapes.
8329 * sheets/Assorted.sheet.in:
8330 * sheets/Makefile.am
8331 * shapes/Assorted/Makefile.am:
8332 * shapes/Makefile.am:
8335 Done the integration job of Alan's shapes. (Translators: have fun!)
8337 * po/dia.pot: refreshed the main potfile.
8339 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
8341 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
8343 * objects/UML/class.[ch]:
8344 * objects/UML/class_dialog.c:
8345 changed the number of connection points from a hardcoded value of
8346 8 to a #defined constant
8348 (I changed the constant back from 20 to 8, until we better know
8349 how we'll handle more connection points on the UML class in the
8350 future -- but Tim's patch is a welcome clean-up).
8352 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
8354 * shapes/MSE/demultiplexer.xpm:
8355 * shapes/MSE/node_center.xpm:
8356 * shapes/MSE/multiplexer.xpm:
8357 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
8358 Horkan <horkana@tcd.ie>
8360 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
8362 * lib/widgets.c: Total rehash of font selector, with font dialog
8363 option, expanding list (not LRU yet), and stuff.
8365 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
8369 Added a set of new setter/getters, some of them more specially for
8372 * plug-ins/shape/shape-export.c: (new_shape_renderer),
8373 (destroy_shape_renderer), (set_font), (draw_string):
8374 * plug-ins/svg/render_svg.c: (new_svg_renderer),
8375 (destroy_svg_renderer), (set_font), (draw_string):
8377 Actually exported the font face, style, weight and size (sodipodi
8378 agrees with dia on how a small sample should look like (a sample
8379 0.90 would not even display anyways). Yay !)
8381 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8383 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
8385 (end of ChangeLog-less patch)
8387 * objects/custom/shape_info.c (parse_style): now understands the
8388 font-style and font-weight attributes as well. Does not use
8389 anymore dia_font_new_from_legacy_name().
8391 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
8393 * objects/standard/textobj.c: Now uses stdprops for defaults.
8395 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
8396 * lib/font.c (dia_font_get_style): Style now linear and conversion
8399 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
8402 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
8404 * plug-ins/dxf/dxf-import.c:
8405 using dia_font_new_from_style()
8407 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8409 * objects/UML/class.[ch]: Added a comment field to class
8410 * objects/UML/uml.[ch]: Added a comment field to attributes,
8411 operations and parameters.
8412 * objects/UML/class_dialog.c: Added code for the new comment
8414 * plug-ins/xslt/*.xsl: Added some code to handle comments.
8415 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
8416 Added a $directory parameter for stylesheets so the output is
8417 in the good place (not in the $PWD).
8421 * AUTHORS: added contributors, updated maintainers. Removed the
8422 specific areas of action.
8424 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
8425 from a patch by Xing Wang <quixon@gnuchina.org>:
8427 * app/commands.c: help_about_callback now supports
8428 new-style GNOME about box as well as old GTK style.
8429 code also tidied (Closes: #85726)
8433 * app/commands.c: fixed the copyright (it's not all FSF), and
8434 maintainers. Synced contributors list with AUTHORS.
8436 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
8438 * lib/message.c: More work on repeating messages, now with
8441 2002-06-24 Hans Breuer <hans@breuer.org>
8443 * lib/widget.c : some more bits in place, at least
8444 it does something useful instead of crashing. Much
8445 better - but not all ok :-)
8447 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
8449 * lib/message.c (gtk_message_internal): First stab at repeating
8452 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8455 * objects/GRAFCET/*.c:
8457 * objects/UML/association.c: (one instance forgotten)
8458 * objects/UML/large_package.c:
8459 * objects/standard/textobj.c:
8462 using dia_font_new_from_style()
8464 2002-06-23 Hans Breuer <hans@breuer.org>
8466 * lib/font.c : giving some love to
8467 dia_font_new_from_legacy_name() that is making
8468 import of old files as painless as possible and
8469 provide an almost exact match where possible.
8470 It does not yet fully work because it interfers
8471 with the Style to DiaStyle conversion which comes
8474 [Changing these files is only allowed with Dia-0.90]
8475 * broken-files/fonts-0.90.dia : including the
8476 common hard-coded fonts from Dia-0.90. It also
8477 has drawn bounding-boxes for win32 as they were calculated
8478 from the former version (they were all too big).
8479 * broken-files/fonts-0.90-full.dia : all hardcoded
8480 fonts including the asian versions. On my machine
8481 this gives _a lot_ complaining about missing fonts
8482 and a finally a broken file display. Anyone having
8485 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8487 * objects/chronogram/*.c:
8488 * objects/custom/custom_object.c:
8490 using dia_font_new_from_style()
8492 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
8494 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
8495 font selector (stability, insensitivity).
8497 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
8498 stretching scheme for tweaking, and made scaling scheme faster
8500 (dia_font_dia_style_to_pango): Oops, % != /.
8502 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
8505 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
8507 * plug-ins/xslt : Added an XSLT plugin to export dia files using
8508 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
8509 It includes a small config file to tell it what stylesheets to use.
8513 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
8514 GTK2.0/HIG compliant (the labels could be slightly more verbose,
8515 perhaps). Added back a couple forgotten _(). Removed //-style
8518 2002-06-23 Hans Breuer <hans@breuer.org>
8521 (dia_plugin_get_name) : don't crash plugin_manager
8523 (dia_plugin_load) : reuse the description field to
8524 store the error string if loading fails.
8526 * lib/font.[hc] : starting to beautify the new
8527 font api: proper namespacing, adding convenience
8528 functions like dia_font_new_from_style(), ...
8530 * objects/uml/*.c : use the new convenience functions.
8532 [Next thing I plan to do is changing the other font
8533 functions to take DiaStyle and make Style and
8534 BASIC_*_FONT vanish. As well as giving some love to
8535 dia_font_new_from_legacy_name().
8536 If anyone want's to help on converting the other
8537 objects to the new api during that, I would highly
8540 2002-06-23 Hans Breuer <hans@breuer.org>
8542 * lib/font.c : made it compile and small indent fixes.
8543 Is there a code-has-no-effect-so-needs-not-be-valid
8546 * lib/widgets.c : use g_strcasecmp
8548 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
8552 * lib/widgets.c: Font names sorted, style selector widget
8553 reappeared. Doesn't select the old style yet.
8555 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
8557 * lib/font.c: one who expects a text's font to be changed shall
8558 actually request the attributes to apply to the whole range of the
8561 * lib/font.c: extents computation was wrong.
8563 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
8564 if a last NULL parameter is added...
8566 * lib/font.c: extents computation was completely wrong. This looks
8567 much better this time.
8569 * objects/UML/class.c: fixed the various strings positions.
8571 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
8572 macros to get the hardcoded base fonts.
8574 * objects/ER/relationship.c: wasn't converted to DiaFont*
8576 2002-06-22 Hans Breuer <hans@breuer.org>
8578 * lib/widget.c : dont use backend specific functions
8579 to get on the font_families. Including it would mean
8580 including <windows.h> which breaks due to namespace
8583 * lib/libdia.def : updated externals
8585 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
8587 * lib/font.c : added empty dia_font_init_instance function,
8588 reformatting of dia_fon_unref to allow to set breakpoint,
8589 dia_fon_build_layout() : dont crash on string==NULL
8591 * lib/text.c (text_set_attributes) : don't unref the wrong font
8593 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
8594 stores lowercased font names, but dia_font_get_family()
8597 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
8600 * app/render_gdk.c: Patch from Hans Breuer.
8602 * app/Makefile.am (dia_core_files): diaconv commented out for now.
8604 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
8606 * lib/all files touched yesterday: took into account some of Hans
8608 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
8610 * objects/chronogram/*:
8613 * objects/flowchart/*:
8615 * objects/GRAFCET/*:
8617 * objects/standard/textobj.?:
8619 converted to the new DiaFonts.
8622 * plug-ins/pstricks/*:
8626 Made minimalistic conversions so that they'd at least compile.
8629 * app/render_pixmap.c:
8630 Converted to the new DiaFonts.
8635 made the minimal changes so that it would at least build.
8637 *** At this point, the thing builds on my machine, but segfaults
8640 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
8642 * configure.in: removed the backend-specific pango pkg_modules
8643 (trivial to add back if needed, when actually needed)
8646 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
8647 renderer. The APIs will have completely changed when we get around
8648 to redo a renderer for it, anyways.
8650 * font.[ch]: rewrote everything from scratch, with a Pango
8651 implementation. Normally, only backend-neutral things should go in
8654 **WARNING**: new rules for managing DiaFont* pointers: these are
8655 reference-counted GObjects. One >must< diafont_ref() and
8656 diafont_unref() as appropriate. I wish I could overload operator=()...
8658 lib/plug-ins.h: bumped up the plug-in API.
8663 lib/object_defaults:
8664 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
8665 again tomorrow with GObject.
8667 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
8669 **** The rest of the tree should be updated as well ****
8671 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
8675 * app/render_pixmap.c:
8676 * app/render_pixmap.h:
8677 * app/render_libart.h:
8678 * app/render_libart.c:
8680 * lib/font.c: Removed freetype stuff (still around in
8681 lib/widgets.c 'cause we might want the font selector widget).
8683 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
8685 * shapes/network/laptop.(xml|shape):
8686 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
8687 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
8689 2002-06-17 Hans Breuer <hans@breuer.org>
8691 * lib/object_defaults.c : #include <libxml/tree.h> not
8692 <tree.h> pointed out by Xing Wang
8694 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
8696 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
8698 * app/color_area.c: Update to
8699 gtk_color_selection_*_current_color() fixed bad crash issues, plus
8700 updated color conversions.
8702 * sheets/ER/weakentity.xpm: Accepted patch from
8703 quixon@gnuchina.org to make icon match actual appearance.
8705 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
8706 quixon@gnuchina.org.
8708 2002-06-16 Hans Breuer <hans@breuer.org>
8710 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
8711 good tradition of information hiding. Add new function
8712 dia_plugin_get_symbol()
8713 * app/sheets.c app/sheets_dialog_callbacks.c : use it
8715 * app/sheets.c : stop complaining about object_get_type()
8716 returning NULL. This is a consequence of e.g. disabling
8717 plug-ins at runtime _and_ it was and is gracefully handled.
8718 Spitting out g_warning for it isn't appropriate.
8720 * lib/object.[ch] : removed dead code
8722 * app/plugin-mangager.c : almost complete rewrite for gtk2
8723 using GtkListStore/GtkTreeView
8725 * lib/libdia.def : updated externals
8727 * todo.gtk2 : updated, that is removed already done steps
8729 2002-06-15 Hans Breuer <hans@breuer.org>
8731 * objects/uml/class_dialog.c : clean some left-over
8732 utf8-mess, return 0 from "focus_out_event" handlers
8733 to avoid asserting in gtk (#78305). Reconstruct
8734 stereotype/NULL behaviour to avoid rendering empty
8735 stereotypes on classes and member functions
8737 [#56109 - Provide object defaults for StdProp objects,
8738 some remaining issues are discussed in bugzilla]
8740 * lib/object_defaults.c : (new file) manage default properties
8741 of dia objects. The serialization is done with standard
8742 object methods in a diagram compatible format.
8744 * lib/object.c : add object_registry_foreach() which allows
8745 to iterate over all registered object types
8747 * lib/object.h : added prototypes object_default*() and
8748 object_registry_foreach()
8750 * lib/makefile.am lib/makefile.msc : add new file to build
8752 * lib/libdia.def : export new functions
8754 * app/defaults.c : provide StdProp based defaults if the
8755 ObjectType doesn't implement it's own default functions
8757 * app/create_object.c : through dia_object_default_create()
8758 * app/disp_callbacks.c : same here
8760 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8762 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
8763 sensitivity for deleting segments.
8765 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
8767 * app/color_area.c: (color_area_events):
8768 * app/diagram.c: (diagram_destroy):
8769 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
8771 * app/load_save.c: (diagram_data_load):
8772 * app/menus.c: (menus_get_item_from_path):
8773 * app/preferences.c: (prefs_load):
8774 * app/render_gdk.c: (get_text_width):
8776 * lib/color.c: (color_convert):
8777 * lib/dia_dirs.c: (dia_config_filename):
8778 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
8779 * lib/intl.c: (intl_get_language_list):
8780 * lib/message.c: (message):
8782 * lib/paper.c: (get_default_paper):
8783 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
8784 * lib/widgets.c: (dia_file_selector_get_file):
8786 * objects/standard/image.c: (get_directory):
8790 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
8792 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
8794 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
8796 * app/interface.c: sscanf now returns EOF on empty string, so
8797 handle no match for zoom factor better => correct zoom at start.
8799 * app/sheets.c (create_object_pixmap): Tried to display empty error.
8800 (sheets_optionmenu_create): Died when not finding specified
8801 sheet. Don't think it should.
8803 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
8804 (bug #84367) to place the text better.
8806 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
8808 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
8810 * app/commands.c: Removed unnecessary gnome include. Removed
8811 GNOME-Print support.
8813 * app/menus.h: Removed now unnecessary gnome include.
8815 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
8816 GNOME-specific stock buttons
8818 2002-06-09 Hans Breuer <hans@breuer.org>
8820 * app/app_procs.c : convert 'Modified diagrams exits'
8821 dialog to use GtkMessageDialog. That gives us:
8822 - icons without Gnome dependency
8823 - much less code, also cross platform
8824 - improved useability ?
8826 * app/color_area.c : the Color Selection Widget looked
8827 quite wrong (alpha problems). Fix it by merging in required
8828 changes stolen from The Gimp cvs
8829 * app/color_area.h : to get the right appearance the maskes
8830 needed to be taken into account
8831 * app/interface.c : adapt to color_area_create changes.
8832 Also remove some dead code and finally remove cvs autexpansion,
8833 I was bothered enough by irrelevant differences :-)
8835 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
8836 api, i.e stocks and response to make the GnomeDialog usage
8837 obsolete. Also fixed the issue with closing the 'parent'
8838 before closing the dialog
8840 * app/display.[ch] : removed some dead code and conversion
8841 to new GtkDialog api. Also trying to conform to new HIG
8842 standard http://developer.gnome.org/projects/gup/hig/
8844 2002-06-09 Hans Breuer <hans@breuer.org>
8846 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
8849 * lib/dia_image.c : gtk_widget_set_default_visual()
8850 remove. It does nothing with Gtk2.
8852 * lib/libdia.def : added ps_unicoder exports
8854 * lib/message.c : remove #GNOME use GtkMessageDialog.
8855 Yeah, Dia gets dialogs wit icons cross-platform.
8857 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
8858 to gtk_spin_button_get_value()
8860 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
8862 add #undef GTK_DISABLE_DEPRECATED to still use ...
8863 * lib/prop_text.c : ... GtkText
8864 * lib/prop_widgets.c : ... GtkList
8865 * lib/prop_dialogs.c : ... gtk_signal_connect and more
8866 * lib/widgets.c : ... (too much to list here)
8868 * lib/ps-utf8.c : #include <string.h>
8870 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
8873 * Makefile.am: Adapted for gtk2.
8874 Removed dependencies on libunicode, on iconv(), on langinfo().
8876 * acconfig.h: removed (now obsolete)
8878 * lib/charconv.[ch]: removed (superceded by glib)
8879 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
8881 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
8882 libunicode types for their glib counterparts. Fixed the include
8883 paths for libxml2. Removed all traces of libxml1 or non-UTF8
8884 support (there were remains in objects/uml).
8887 2002-06-08 Hans Breuer <hans@breuer.org>
8889 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
8890 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
8891 Also use g_strdup()'s handling of NULL by returning NULL
8892 again at all places I found (remove unnecessary if's)
8894 * todo.gtk2 : new file to keep notes about gtk2 porting,
8895 further issues and thoughts and some status information.
8896 Also sent to dia-list ('Dia goes Gtk2 ...').
8898 [make it compile with GTK+ 2.0]
8900 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
8901 removed definition of S_ISDIR, S_ISREG and getlogin
8903 * */makefile.msc : Use GTK2 and libxml2
8904 BEWARE: makefile.am, configure.in not yet ported !
8906 * app/app_procs.c app/diagram.c : remove
8907 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
8908 but set use gtk_menu_set_accel_path() on menu creation
8910 * app/color_area.c lib/widgets.c :
8911 make use of gtk_color_selection_set_has_palette ()
8913 * app/commands.c : gdk_pixbuf_new_from_file wants an
8914 extra argument. Convert from DIR to GDir usage.
8916 * app/diagram_tree.c(button_press_callback) : need to return
8917 FALSE in the signal handler to let gtk process it further.
8918 (get_object_name) : don't leak 'prop'
8920 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
8921 dia_page_layout_destroy() getting called more than once
8923 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
8926 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
8928 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
8929 IIRC this code will not compile unchanged when USE_XIM is defined ...
8931 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
8933 * app/interface.c : there is no widget->klass anymore in Gtk,
8934 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
8935 parameter. Some tweaking of GtkWrapBox usage to get four tools in
8937 switch off GTK's double buffering on Dia's canvas. Otherwise we would
8938 get triple buffering and flicker.
8939 Replace call to GTK private function _gtk_accel_group_attach()
8940 with public gtk_window_add_accel_group()
8942 * app/layer_dialog.c : adapt to GtkTypeInfo changes
8944 * app/load_save.c lib/plug-ins.c lib/sheet.c
8945 objects/custom/custom.c :
8946 simplified by using g_file_test()
8948 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
8949 to gtk_accel_map_<save|load>. Also added common stock-icons
8952 * app/preferences.c : use gtk_button_set_label() instead
8953 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
8955 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
8956 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
8959 * app/recent_files.c : removed GLIB_CHECK_VERSION
8962 plug-ins/metapost/render_metapost.c
8963 plug-ins/pstricks/render_pstricks.c
8964 plug-ins/svg/render_svg.c :
8965 replace getlogin() with g_get_user_name() which always
8968 * app/render_gdk.c : gdk_region_union_with_rect() modifies
8969 inplace now and returns nothing, also less #hell
8971 * app/render_libart.c : some initial #hell cleaning, SuckFont
8972 still needs to vanish
8974 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
8975 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
8977 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
8978 * app/sheets_dialog_callbacks.c : some #hell and adaptions
8979 needed to GtkWrapBox api changes
8982 * lib/charconv.[hc] : removed from build
8983 [changed appropriate]
8984 * lib/prop_inttypes.c lib/prop_text.c :
8986 * lib/text.c : ported from HEAD but keep original indent
8987 intact. Original was done by Akira TAGOH.
8989 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
8991 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
8993 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
8994 same on all platforms now!
8996 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
8998 * lib/message.c : remove "charconv.h"
9000 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9003 * lib/sheet.c : convert from DIR to GDir usage
9005 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9007 * lib/widgets.h : include gtk<label|colorseldialog>.h
9010 * objects/fs/flow.c :
9011 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9013 * objects/custom/custom.c : convert from DIR to GDir usage
9016 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9019 2002-05-03 Hans Breuer <hans@breuer.org>
9021 * lib/dia_xml.c : make the well formed utf8 check
9022 actually work for û (non 7-bit ascii encoding)
9023 and fixed the file re-writing if the check fails.
9024 Thanks to Vitaly Lipatov for noticing the misbehaviour.
9026 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9027 comment on last ressort font. Thanks to Maxim Sobolev.
9029 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
9031 * sheets/network.sheet.in: corrected a typo in plotter invocation.
9033 2002-06-03 Steffen Macke <sdteffen@web.de>
9035 * shapes/network/digitizing_board.png:
9036 * shapes/network/digitizing_board.shape:
9037 * shapes/network/plotter.png:
9038 * shapes/network/plotter.shape:
9039 * shapes/network/Makefile.am
9040 * sheets/network.sheet.in: added new plotter and digitizing
9043 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
9045 * lib/font.c: made a symptomatic fix to a segfault reported by
9046 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9047 won't prevent dia from terminating, but should give more
9048 user-friendly information about why did it terminate.
9050 Two patches from <robert.young@dsto.defence.gov.au>:
9052 * app/display.c: fix the size of the canvas area which gets
9053 redrawn. There was an off-by one error (Closes #83659)
9055 * app/display.c: make sure we redraw all screen only when we
9056 really have to (some update_areas were mistakenly ignored) (Closes
9059 * NEWS: added a new entry for the future. Put there a reminder to
9060 update the dependencies.
9062 * configure.in: put in notes about what will change shortly.
9063 upped the version to 0.90+cvs (did also in config.h.win32)
9064 upped the minimum version for intltools (now 0.21)
9066 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
9072 bumped up version number to 0.90. Yay!
9074 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
9076 * doc/pl/Makefile.am:
9077 * doc/en/Makefile.am: fixed a "make install" problem when db2html
9078 is not present (Reported by Andrew Ferrier
9079 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9080 problem which prevented me from ever seeing the problem in doc/en...
9082 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9084 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9085 way to read the font path from the XFS configuration files in
9086 order to enable FreeType (fixes #83098).
9088 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9095 bumped up version number to 0.90.RC3
9097 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
9099 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9100 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9101 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9102 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9103 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9104 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9105 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9106 Added Polish documentation.
9108 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
9110 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9111 format for the UML State object. Now there's a hack to reload
9112 older files, and get them converted on the fly.
9113 Justyna BiaĂ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
9117 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9118 and adapter the proplist predicates. A LOAD_ONLY property is for
9119 when you have legacy to support but can't resist moving your
9120 fields around... (was needed to support the above state.c fix).
9122 If the in-core of your object changes and you need a LOAD_ONLY
9123 property for the old format, you must keep some spare room in your
9124 object's struct to accomodate for the potential old-style
9125 attributes. Then in foo_load(), after having called
9126 object_load_using_properties(), you must inspect the old-style
9127 fields and act accordingly. Don't ever change the on-disk formats...
9129 * objects/UML/object.c:
9130 * objects/UML/small_package.c: added a check against empty
9131 stereotypes still consuming space. Reported by Dolores Alia de
9132 Saravia <loli@unsa.edu.ar>. Thanks!
9134 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
9136 * INSTALL: added platform notes from MĂƒÂ¥rten Svantesson, for when
9137 using libtool on an AFS partition.
9139 * po/update_potfiles_in.sh: now simply calls the recent intltools
9140 features; they work better than hand-crafted half-ignorant
9141 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9144 * po/POTFILES.in: added back two files update_potfiles_in.sh
9145 didn't take into account. Now this file is not automatically
9147 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9148 (the usual suspects, in fact).
9150 * configure.in: improved the isinf() / isfinite() detection on
9151 Solaris (MĂƒÂ¥rten Svantesson)
9153 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
9155 * configure.in: one expression was replacing $CFLAGS, removing
9156 whatever was previously in.
9157 Added more checks for isinf() and finite() on Solaris.
9159 * lib/geometry.h: added a macro defintion for isinf() if not
9160 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9163 * app/commands.c: "cut" did not set the 'modified' bit (paste has
9164 been for a little while). Fixes #82994.
9166 * Makefile.am: added more stuff to distclean-local. This should make
9167 "make distcheck" pass! Thanks to the author of
9168 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
9169 ... I wonder who this Henstridge guy is ... ;-)
9170 Darn. Still doesn't pass. I give up for tonight.
9172 * po/update_potfiles_in.sh: updated to take care of sheet files,
9173 and to filter out the EML plug-in.
9174 * po/POTFILES.in: updated with all .c and all .sheet.in files
9176 * po/dia.pot, po/*.po: again updated all .po files with all
9177 strings (with the updated POTFILES). Now with the up-to-date
9178 POTFILES, just all languages have some fuzzy or untranslated
9179 strings (not that the 100% team was that large beforehand...)
9181 * po-checktrans: removed the comment about .po files not holding
9182 all translatable stuff, since now they do.
9184 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
9190 bumped up version number to 0.90.RC2
9192 2002-05-20 Hans Breuer <hans@breuer.org>
9194 * app/load_save.c : starting to increase
9195 Dias tolerance on incomplete/broken files. The
9196 corresponding bug is #56233. But the patch there does
9197 neither apply anymore nor does it really fix the problem
9198 but only delays it, e.g. even if it would be allowed
9199 to read a file without any layers, the later code can't
9201 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
9202 handle passing in NULL for the node gracefully.
9204 * shapes/network/printer.shape : added two more connection
9205 points - one at each side - to fix bug #60359
9207 * app/commands.c (edit_copy_callback) :
9208 add ddisplay_do_update_menu_sensitivity() to make
9209 sequence select-copy-paste work.
9211 2002-05-20 Hans Breuer <hans@breuer.org>
9213 * app/create_object.c (create_object_button_press) :
9214 added a call to ddisplay_do_update_menu_sensitivity()
9215 to make Ctrl^D etc work after object creation.
9218 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
9220 * objects/ER/entity.c:
9221 * objects/ER/attribute.c:
9222 * objects/ER/relationship.c: Patch to allow text size change from
9223 Celso Tetsuo Nagase Suzuki.
9225 2002-05-18 Steffen Macke <sdteffen@web.de>
9227 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
9229 * doc/en/graphics/greendots.png:
9230 * doc/en/home_network.png:
9231 * doc/en/line_props.png:
9233 * dia_gnome_icon.png:
9234 * dia_gnome_menu_icon.png:
9236 * shapes/network/telephone.png:
9237 * shapes/Logic/and.png:
9238 * shapes/Logic/buffer.png:
9239 * shapes/Logic/connector.png:
9240 * shapes/Logic/inverter.png:
9241 * shapes/Logic/nand.png:
9242 * shapes/Logic/nor.png:
9243 * shapes/Logic/not.png:
9244 * shapes/Logic/or.png:
9245 * shapes/logic/xor.png:
9246 * samples/ER-demo.dia:
9248 * samples/UML-demo.dia:
9249 * samples/chronograms.dia:
9250 * samples/grafcet.dia: re-added as binary files
9252 2002-05-17 Hans Breuer <hans@breuer.org>
9254 * lib/libdia.def : reflect removing of render_store.[ch]
9256 * */makefile.mingw : remove VERSION definition it's
9257 done in config.h.win32. Dia still doesn't work if
9258 build with mingw ...
9260 * RELEASE-PROCESS : removed */makefile.mingw
9262 * app/sheets_dialog_callbacks.c : if we use those
9263 ugly charconv_gtk_* functions lib/charconv.h needs to
9265 * lib/charconv.h : ... and needs to contain the
9266 necesseray prototypes _and_ #defines
9268 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
9269 is deprecated and does nothing but spit a warning. This broke
9270 the shape format writing. Fixed.
9271 Also with libxml2 pretty formatted xml isn't the default
9272 anymore, but needs to be enabled explicit: It is done now
9273 for shape files, which almost always needed to be edited by
9276 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
9277 from stderr - which is invalid on Dia/win32 - to g_print -
9278 which opens up a console window if necessary. This way
9279 a xml-deprecation-error shouldn't stay unnoticed next time
9281 2002-05-17 Steffen Macke <sdteffen@web.de>
9283 * shapes/Misc/folder.png:
9284 * shapes/Misc/file.png: re-added as binary files
9286 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9288 * lib/font.c: Fixed segfault for fonts without family_name.
9290 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
9292 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
9294 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
9295 Lars' request, minor cosmetic stuff (mostly _() of human-readable
9296 XML comments in .sheet files; one translator booby-trap disarmed).
9298 * lib/charconv.c: moved #hell inside the body of the new
9299 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
9302 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9304 * plug-ins/wpg/Makefile.am (INCLUDES):
9305 * plug-ins/shape/Makefile.am (INCLUDES):
9306 * plug-ins/svg/Makefile.am (INCLUDES):
9307 * plug-ins/pstricks/Makefile.am (INCLUDES):
9308 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
9309 and DEBUG_CFLAGS in some missing places.
9311 * MAINTAINERS: New file containing list of known package
9315 * lib/charconv.c: Charconv versions of some common gtk calls.
9317 * app/sheets_dialog_callbacks.c
9318 (on_sheets_new_dialog_button_ok_clicked),
9319 (on_sheets_dialog_button_edit_clicked),
9320 (on_sheets_dialog_button_remove_clicked),
9321 (on_sheets_edit_dialog_button_ok_clicked):
9322 * app/sheets.c (sheets_optionmenu_create),
9323 (sheets_optionmenu_create): Added utf8 translations.
9325 * app/sheets_dialog.c:
9327 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
9329 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
9331 * po/POTFILES.in: added app/sheets_dialog.c
9333 2002-05-15 Cyrille ChĂƒÂ©pĂƒÂ©lov <cyrille@chepelov.org>
9335 * lib/charconv.c: (charconv_local8_to_utf8),
9336 (charconv_utf8_to_local8): tweaked the warnings to get more
9338 * lib/font.c: (font_get_suckfont): handled a potential case of
9339 uninitialised data being used (just paranoid)
9341 * objects/GRAFCET/boolequation.c: (opstring),
9342 (opblock_get_boundingbox), (opblock_draw),
9343 (boolequation_calc_boundingbox): some extra hoops needed now dia
9344 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
9345 symbols can't yet be used with their proper Unicode cells, since
9346 gtk will demand them in the Symbol font, expressed in the local
9349 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
9350 the fix just above).
9352 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
9354 * app/diagram_tree.c (get_object_name): Check that name property
9355 doesn't have null string.
9357 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
9359 * autogen.sh (DIE): Added conditional --force to gettextize.
9361 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
9364 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
9366 * RELEASE-PROCESS: added James' notes on how to properly make the
9369 * configure.in: removed macro nesting related to libpng.h, which
9370 was causing some problems on some systems (like mine, which made
9373 Made --enable-unicode, previously an option, the mandatory case.
9375 * app/Makefile.am: updated EXTRA_DIST
9378 * app/makefile.mingw:
9380 * doc/en/dia-manual.sgml:
9381 * plug-ins/makefile.mingw:
9382 * configure.in: bumped up the version number to 0.90.RC1
9384 * lib/render_objects.[ch]:
9385 * po/POTFILES.in: removed render_objects from the build.
9387 * plug-ins/Makefile.am:
9388 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
9389 so we keep its source in the tarball.
9391 * objects/network/*.c, Makefile.am:
9392 * objects/sybase/*.c, Makefile.am:
9393 * po/POTFILES.in: cleaned up the non-existent files from the po
9396 * plug-ins/Makefile.am: re-enabled metapost plug-in.
9398 2002-05-13 Steffen Macke <sdteffen@web.de>
9401 * app/command.c: added M. C. Nelson to the Authors
9402 * sheets/Circuit/Makefile.am: added firewall shape to build
9403 * sheets/network/Makefile.am: added telephone and microphone
9406 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
9408 * RELEASE-PROCESS: Added list of files that contain the release
9409 number or should otherwise be changed at each release.
9411 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
9413 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
9414 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
9416 2002-05-12 Hans Breuer <hans@breuer.org>
9418 * config.h.win32 : changed VERSION to 0.90.RC1
9420 * app/makefile.msc lib/makefile.msc : use renamed
9421 gdk-pixbuf version (same content but renamed because
9422 all the other gtk+ dlls are renamed) to avoid trouble
9423 mixing gtk versions (of which one would not
9426 * app/app_procs.c : removed recently unneeded
9427 inclusion of "sheets.h"
9429 * app/render_gdk.c : removed my own debug spew
9430 which should never made it to cvs
9432 * lib/render_object.[hc] : added
9433 #error "File not used anymore."
9435 * lib/libdia.def : updated externals
9437 * app/interface.c : dropped filenames need to be
9438 converted from uri with Gtk+2.0
9440 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
9442 * RELEASE-PROCESS (new): a draft document about how to release. To
9443 be discussed. (already with some input from Hans Breuer)
9445 2002-05-12 Steffen Macke <sdteffen@web.de>
9447 * sheets/Makefile.am: re-added Misc sheet to make process
9449 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
9451 * objects/FS/function.c: Added comments to humungous list of menu
9452 items, to aid translators.
9454 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9456 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9458 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9460 * app/interface.c (create_toolbox): Disallow shrinking beyond
9461 requested size. Fixes bug #59439, and confirms to GTK guidelines
9462 (see gtk_window_set_policy).
9463 (create_sheets): Removed now unnecessary set_usize call.
9465 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9467 * lib/beziershape.c (remove_handles): Fixing removal of last
9468 segment. Undo of removal still hokey.
9470 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
9472 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
9474 * lib/beziershape.c (beziershape_init): Removed early call to
9475 beziershape_update_data where points aren't set yet.
9476 (beziershape_add_segment): Use segment 0 instead of overflowing
9477 points array with segment+1.
9478 (beziershape_remove_segment): Proper offset for fixing
9480 (remove_handles): Proper offset.
9482 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
9484 * objects/GRAFCET/action.c (action_update_data): Init x value of
9485 click point for call to connpointlist_adjust_count.
9487 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
9489 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
9490 setting to where values are inited.
9492 * lib/polyshape.c (polyshape_init): Removed call to
9493 polyshape_update_data that tried to use uninitialized data.
9495 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9497 * app/sheets_dialog.c: Mass removal of //-style comments. The
9498 Irix compiler doesn't like them:( I do...
9500 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
9502 * app/render_libart.c (draw_string): Bail out when no GDK font is
9504 (set_font): Give error when font not found.
9505 (set_fillstyle): Intlized error msg.
9507 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
9508 modified when applied (and ok only does apply if apply is set
9509 sensitive). Fixes bug #75623.
9511 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
9513 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
9515 2002-05-05 Steffen Macke <sdteffen@web.de>
9517 * app/Makefile.am: added $(UNICODE_CFLAGS)
9519 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
9521 * app/commands.c (help_manual_callback): Check return value of
9524 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
9526 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
9529 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
9531 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
9533 * objects/UML/uml.c (uml_operation_read): Fix of UML default
9536 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9538 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
9539 Added button to toggle diagram compression.
9541 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9543 * lib/font.c: Support for loading extra kerning files, plus got
9544 rid of rounding errors. Bounding box mostly perfect for freetype
9546 (font_string_width): Fudge factor to get around nonlinearity of
9549 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
9551 * lib/font.c (font_string_width): YA font calculation scheme, with
9554 * objects/UML/class.c (umlclass_calculate_data): Uses the same
9555 font for drawing and calculating now.
9557 * configure.in: Added utime.h check.
9559 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
9560 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
9562 2002-04-26 Hans Breuer <hans@breuer.org>
9564 [ Instead of fixing about 70 occurances in 20 files
9565 where GTK_TALKS_UTF8_WE_DONT needed to be handled
9566 Dia on win32 from now on uses glib-2.0 and not
9567 only talks utf-8 with gtk-1.3 but also internally.
9568 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
9571 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
9572 #undef GTK_TALKS_UTF8_WE_DONT
9574 * */makefile.msc : changes to use glib-2.0 (still
9575 using gtk+1.3(win32-production)
9577 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
9578 adapt kevent->string handling, add <string.h>
9579 * app/render_gdk.c (get_text_width) : the length given
9580 is in chars, gdk_text_width() needs bytes
9582 * app/render_libart.c :
9583 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
9584 (could simplify the same way as done in render_gdk.c)
9586 * app/diagram_tree.c app/paginate_gdiprint.cpp
9588 * lib/prop_basic.c lib/prop_geomtypes.c
9589 lib/propdialgs.c lib/propobject.c :
9590 added <string.h> which is now removed from charconv.h
9592 * lib/charconv.h : optional use infrastructure from
9593 glib-2.0 -> only five direct function mapping left
9595 * lib/charconv.c : avoid to build this with glib-2.0
9597 * lib/font.c : no string conversion needed anymore
9598 when Dia and Gtk talk utf-8, also code adaptions
9599 for GLIB_CHECK_VERSION(2,0,0)
9601 * lib/libdia.def : removed charconv functions
9603 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
9604 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
9606 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
9607 removed GTK_TALKS_UTF8_WE_DONT
9609 * lib/text.c : finally(?) fixed cursor <place|move>ment
9610 for Umlauts. Also fixed char insertion, still wondering
9611 how this could ever work. Does realloc on Linux
9612 initialize the memory with zeros ?
9614 * objects/chronogram/chronoline_event.c
9615 objects/grafcet/boolequation.c :
9616 there is no uni_get_utf8 when building for glib-2.0.
9617 Replace with g_utf8_get_char() and g_utf8_next_char().
9619 * objects/uml/stereotype.c (bracketted_to_string) :
9620 simplify while adding code for glib-2.0 build
9622 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
9624 * app/diagram.h: Autosave field
9625 * app/diagram.c (diagram_set_modified): Sets autosave field.
9627 * objects/UML/usecase.c (usecase_update_data):
9628 * objects/flowchart/ellipse.c (ellipse_update_data):
9629 * objects/flowchart/parallelogram.c (pgram_update_data):
9630 * objects/flowchart/diamond.c (diamond_update_data):
9631 * objects/custom/custom_object.c (custom_update_data):
9632 * objects/UML/state.c (state_update_data):
9633 * objects/UML/small_package.c (smallpackage_update_data):
9634 * objects/UML/object.c (objet_update_data):
9635 * objects/UML/note.c (note_update_data):
9636 * objects/UML/node.c (node_update_data):
9637 * objects/UML/component.c (component_update_data):
9638 * objects/UML/classicon.c (classicon_update_data):
9639 * objects/UML/actor.c (actor_update_data):
9640 * objects/SADT/box.c (sadtbox_update_data):
9641 * objects/FS/function.c (function_update_data):
9642 All now update text boundaries from update_data.
9644 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
9647 2002-04-26 Hans Breuer <hans@breuer.org>
9649 * config.h.win32 : added VERSION definition here
9650 (and removed from makefile.msc's)
9652 * app/makefile.msc : added new files
9654 * app/app_procs.c (app_init): remove sheets_dialog_create()
9655 from start-up and ...
9657 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
9658 sheet_dialog here when it is really needed.
9659 #include "../lib/message.h", make sheets_dialog_create()
9660 return it's success or failing on (!custom_type_symbol).
9661 Although editing shapes is nice IMHO it isn't crucial enough
9662 to abort() Dia if it isn't possible.
9664 * app/sheet.h : adapt create_sheet_dialog() prototype
9666 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
9668 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
9669 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
9670 name space corrections for utime() and utim_buf #ifdef
9673 * lib/libdia.def : export new sheet functions
9675 * lib/makefile.msc : added new files
9677 * lib/render.c : don't put draw_bezier_with_arrows() in
9678 the DrawLineWithArrowsFunc slot
9680 * objects/custom/custom_object.c : #include <gmodule.h>
9681 and export 'custom_type' via G_MODULE_EXPORT
9683 * objects/uml/class_dialog.c : removed 'incompatible
9684 types' warnings. Some refactoring while making it fit
9685 on screen with 800x600 again.
9687 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
9689 * plug-ins/python/pydia-handle.h : extra parameter to
9690 PyDiaHandle_New to store the owner of the handle
9691 * plug-ins/python/pydia-handle.c : store handle owner
9692 on construction and use it in new method .connect()
9693 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
9694 adapt to changed prototype
9696 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
9698 * lib/text.c (text_calc_boundingbox): Will now return early if box
9701 * objects/flowchart/box.c (box_update_data): Now updates text
9702 width info from update_data.
9704 2002-04-23 Steffen Macke <sdteffen@web.de>
9706 * plug-ins/xfig/xfig-import.c: fixed text import
9708 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
9710 * app/export_png.c: Moved dialog functions to their own file.
9711 * app/dialogs.[ch]: New files with standard functions for creating
9712 small, transient dialogs (e.g. export options).
9713 * app/Makefile.am: Added dialogs.[ch]
9715 2002-04-19 Steffen Macke <sdteffen@web.de>
9717 * shapes/Misc/folder.*:
9718 * shapes/Misc/file.*:
9719 * shapes/Misc/Makefile.am:
9720 * shapes/Makefile.am:
9721 * sheets/Misc.sheet.in:
9722 * sheets/Makefile.am:
9723 * configure.in: added new Misc sheet containing filesystem shapes
9725 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
9727 * app/lineprops_area.c: Arrow selector in toolbox changed to use
9728 standard arrowdraw code. Line is thinner to make some arrowheads
9731 2002-04-18 Steffen Macke <sdteffen@web.de>
9733 * sheets/network.sheet.in:
9734 * shapes/network/telephone.shape:
9735 * shapes/network/Makefile.am: added telephone shape
9737 2002-04-16 Steffen Macke <sdteffen@web.de>
9739 * sheets/EML.sheet.in: commented out unavailable shapes
9741 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
9743 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
9744 variable assignment.
9746 2002-04-15 Steffen Macke <sdteffen@web.de>
9748 * plug-ins/dxf/dxf-import.c: text import works again
9749 * shapes/Pneumatic/Makefile.am: added compush shape
9750 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
9753 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
9755 * All these modifications are for the 'Sheets and Objects' dialog
9758 * app/pixmaps/line_break.xpm: new icon representing a line break.
9760 * app/pixmaps/n_a.xpm: new empty icon representing not available.
9762 * app/Makefile.am: added sheets_*.[ch] files to compile list.
9764 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
9766 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
9768 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
9770 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
9772 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
9774 * app/sheets_dialog_callbacks.h: [new file] support for " " "
9776 * app/interface.c: added 'interface_current_sheet_name' global to
9777 fill_sheet_wbox(); made fill_sheet_menu() non-static
9779 * app/interface.h: added extern declaration for aboves.
9781 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
9783 * app/sheets.h: [new file] declarations for backing store structures
9785 * lib/sheet.c: modification of new_sheet() parameters; introduction
9786 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
9787 changes to load_register_sheet().
9789 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
9790 added 'has_icon_on_sheet' flag to SheetObject structure; added
9791 'filename', 'scope', 'shadowing' fields to Sheet structure.
9793 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
9796 * lib/plug-isn.h: see above.
9798 * lib/object.c: added 'sheet.h' to include list; added several
9800 to detect objects which are not found on any sheet (for future use)
9801 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
9802 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
9804 * lib/object.h: added public declarations for above functions where
9807 * objects/custom/custom.c: made custom_object_load() non-static so we
9808 can load and interpret .shape files from the Sheets & Objects dialog
9810 * objects/custom/custom_object.c: made 'custom_type' non-static so
9811 we can differentiate between SVG shapes and other types.a
9813 2002-04-07 Hans Breuer <hans@breuer.org>
9815 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
9816 from 2002-01-22 to not destroy diagram->data->selected.
9817 Avoids to crash on Objects/Align/Vertical/Top
9819 * app/render_eps.c (draw_string) : un-const buffer
9820 It isn't at all const (g_malloc(), assignment, g_free()).
9821 Doesn't gcc catch such ?
9823 * lib/arrows.h : prototype calculate_arrow_point()
9825 * lib/font.c (font_get_suckfont) : no need to
9826 special case gdk_draw_string() with GTK_TALKS_UTF8,
9827 cause all the parameter differences are handled above
9829 * lib/libdia.def : updated externals
9831 * lib/makefile.msc : removed string_prerenderer, added render
9833 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
9834 is expected. [Sometimes it's good to read compiler warnings.]
9836 * objects/standard/image.c : simplified by use of g_strconcat()
9838 * plug-ins/python/makefile.msc : updated for Python 2.2
9840 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
9842 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
9843 directionality problem for zero-length line segments.
9845 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
9847 * app/diagram.c (diagram_ungroup_selected)
9848 (diagram_update_menu_sensitivity): Now allows ungrouping of
9849 several groups at once.
9851 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
9853 * lib/render.c, all renderers: Binary incompatibility, change to
9854 expandable renderops structure.
9856 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
9858 * objects/standard/Makefile.am:
9859 * objects/network/Makefile.am:
9860 * objects/UML/Makefile.am:
9861 * objects/ER/Makefile.am:
9862 * objects/FS/Makefile.am:
9863 * objects/flowchart/Makefile.am:
9864 * objects/custom/Makefile.am:
9865 * objects/GRAFCET/Makefile.am:
9866 * objects/chronogram/Makefile.am:
9867 * objects/SADT/Makefile.am:
9868 * plug-ins/cgm/Makefile.am:
9869 * plug-ins/pstricks/Makefile.am:
9870 * plug-ins/hpgl/Makefile.am:
9871 * plug-ins/wpg/Makefile.am:
9872 * plug-ins/svg/Makefile.am:
9873 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
9875 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
9877 * app/render_eps.c: Support for dumping TrueType fonts (taken from
9880 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
9882 * lib/render.c: New abstract super class for renderers.
9884 2002-03-07 Akira TAGOH <tagoh@redhat.com>
9886 * objects/ER/attribute.c (attribute_save): save a font property.
9887 (attribute_load): load a font property, and if can't load it, it's
9890 * objects/ER/entity.c (entity_save): save a font property.
9891 (entity_load): load a font property, and if can't load it, it's
9894 * objects/ER/relationship.c (relationship_save): save a font property.
9895 (relationship_load): load a font property, and if can't load it, it's
9898 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
9900 (umlclass_save): save the font and the font size properties.
9901 (umlclass_load): load the font and the font size properties.
9903 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
9905 * lib/string_prerenderer.[ch] (REMOVED):
9907 * lib/diagramdata.c:
9909 * app/render_eps.c: got rid of the string-specific string
9910 prerenderer, transitioned its functionality towards Lars'
9913 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
9915 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
9916 may need to rerun aclocal.
9918 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
9920 * lib/font.c: First attempt at Unicodeness for Freetype.
9922 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
9924 * lib/font.c (font_string_width): Fixed font_string_width for
9925 freetype. BB is now almost right.
9927 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
9930 * app/paginate_psprint.c (paginate_psprint):
9932 * app/render_eps.c: Support for dumping postscript fonts into
9933 postscript files with freetype. Fairly primitive, but works.
9934 Unicode version may have problems.
9936 2002-02-28 Akira TAGOH <tagoh@redhat.com>
9938 * objects/UML/class_dialog.c (class_read_from_dialog)
9939 (class_fill_in_dialog), (class_create_page): add the font selector and
9940 the font size selector.
9942 * objects/UML/class.c (umlclass_draw): uses each font_height.
9943 (umlclass_calculate_data): ditto.
9944 (fill_in_fontdata): add initial value of new font_height.
9945 (umlclass_copy): add new font_height.
9947 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
9949 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
9951 * lib/font.c: calculate font metrics properly and stop guessing at
9954 2002-02-28 Akira TAGOH <tagoh@redhat.com>
9956 * configure.in: changed gtk_advancement value to dia_talks_utf8.
9957 right now Dia is working with UTF-8 internally. it means Dia probably
9958 support most languages also including the languages which heretofore
9959 didn't work correctly.
9961 2002-02-26 Akira TAGOH <tagoh@redhat.com>
9963 * objects/FS/function.c: add related text properties.
9964 (function_get_props), (function_set_props): add handling attribute.
9966 * objects/FS/flow.c: add related text properties.
9967 (flow_get_props), (flow_set_props): add handling attribute.
9969 * objects/FS/flow-ortho.c: add related text properties.
9970 (orthflow_set_props), (orthflow_get_props): add handling attribute.
9972 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
9974 * objects/ER/entity.c: ditto.
9976 * objects/ER/attribute.c: ditto.
9978 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
9980 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
9982 * autogen.sh: add a check for missing intltoolize.
9984 2002-02-20 Akira TAGOH <tagoh@redhat.com>
9986 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
9987 charcode, it was registered the duplicate item to HashTable. fix.
9989 * app/render_gnomeprint.c (get_width_string): add new function.
9990 (draw_string): fix non-multibyte specific code.
9992 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
9994 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
9996 * lib/font.c: do not try to search paths that do not begin with
9997 '/', like X Font Server addresses.
9999 * objects/UML/message.c (message_draw): free mname when not
10000 message->text but CREATE or DESTROY.
10002 * objects/UML/uml.h:
10003 * objects/UML/uml.c:
10004 * objects/UML/class_dialog.c: added code to handle a stereotype
10005 attribute for operations.
10007 2002-02-19 Akira TAGOH <tagoh@redhat.com>
10009 * lib/Makefile.am: add LIBART_CFLAGS.
10011 2002-02-15 Hans Breuer <hans@breuer.org>
10013 * lib/font.c (font_get_suck_font): the black and white pixel values
10014 need to be taken from a 1 bit colormap rather than the default colormap.
10015 (fixed again, last time was 2000-05-26)
10017 Also handle the case where GTK_TALKS_UTF8 and expects all strings
10018 passed in to be in this encoding.
10020 * lib/libdia.def : export suck_font_free()
10022 * lib/text.c (text_draw) : avoid circular dependency to ../app
10023 at least for the !USE_XIM case, where it is unnecessary.
10025 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
10027 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10029 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10030 * sheets/Circuit.sheet.in: added new shape microphone
10031 * shapes/Circuit/speaker_de.shape: Added a connection point.
10033 2002-02-13 Akira TAGOH <tagoh@redhat.com>
10035 * app/render_libart.c (draw_string): fixed build issue for Win32.
10037 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10040 * configure.in: fixed testing gtk_advancement.
10042 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10044 2002-02-12 Akira TAGOH <tagoh@redhat.com>
10046 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10049 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
10051 * app/group.c (group_copy): Made new object properly initialized
10054 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
10056 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10058 2002-02-10 Akira TAGOH <tagoh@redhat.com>
10060 * lib/text.c (text_draw): fixed XIM transaction.
10062 * app/interface.c (create_display_shell): add signal for
10065 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10067 (set_input_dialog): remove.
10068 (ddisplay_canvas_events): remove XIM transaction. it can't transact
10069 correctly on this function.
10071 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10074 * app/export_png.c: Added checks for interactivity (maybe this
10075 should be a hook after all?).
10077 * app/filedlg.c (file_export_callback): Made export dialog add
10078 suffix when reopened.
10080 * app/export_png.c: Added dialog asking for export size.
10082 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10084 * lib/widgets.c: Fixed font reselection problem and first font
10087 * objects/UML/actor.c (actor_update_data): Changed to have
10088 connection points below text.
10090 2002-02-08 Akira TAGOH <tagoh@redhat.com>
10092 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10095 2002-02-07 Akira TAGOH <tagoh@redhat.com>
10097 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10098 strings which is given.
10099 (suck_font): remove. it's any longer needed.
10101 * app/render_libart.c (set_font): don't get suckfont.
10102 (draw_string): get suckfont only which is needed for now.
10104 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10106 * lib/text.c: Fixes for misunderstood width functions.
10108 2002-02-05 Hans Breuer <hans@breuer.org>
10110 * lib/dia_xml.c : use g_strconcat() instead of
10111 malloc, strcpy, strcat dance
10112 * app/properties.c : same here and plug memory leak
10113 (gtk functions don't eat strings)
10115 * objects/UML/message.c : there is no g_sprintf()
10116 use g_strdup_printf() instead ...
10118 2002-02-05 Akira TAGOH <tagoh@redhat.com>
10120 * lib/message.c (gtk_message_internal): doesn't need to convert to
10123 * app/render_libart.c (draw_string): fixed transaction for UTF-8
10125 (get_text_width): ditto.
10127 * app/Makefile.am (EXTRA_DIST):
10128 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10130 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10131 This function needs ifdef HAVE_FREETYPE because don't use it for
10134 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
10136 * NEWS: updated with the new dependencies.
10138 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10140 * objects/UML/class.h:
10141 * objects/UML/class.c:
10142 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10143 property using a GtkMenu. Options are Undefined, In, Out, In & Out
10145 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
10147 * app/render_libart.c: Slow but working libart freetype renderer,
10150 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10152 * app/render_gdk.c (draw_string): Fixed gc_function bug.
10154 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10156 * lib/font.c (freetype_render_string):
10158 * app/render_gdk.c:
10159 * app/render_gdk.h: Changed freetype_render_string to use
10160 callback. Rendering is broken.
10162 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
10164 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10166 * objects/UML/uml.h:
10167 * objects/UML/uml.c: added UMLInheritanceType and isQuery
10168 (constant) UML Operation attributes. UMLInheritanceType is either
10169 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
10171 * objects/UML/class.h:
10172 * objects/UML/class.c:
10173 * objetcs/UML/class_dialog.c: added code to handle new
10174 UMLOperation attributes via a GtkMenu and a checkbox.
10176 2002-02-03 Akira TAGOH <tagoh@redhat.com>
10178 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
10179 several client doesn't work with previous codes.
10181 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
10183 * lib/font.c (freetype_render_string): Kerning. Very few fonts
10186 2002-02-02 Akira TAGOH <tagoh@redhat.com>
10188 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
10189 when doing the operation like invert the objects after active view is
10190 destroyed. when changes focus, it needs to set active_display.
10192 * app/layer_dialog.c (dia_layer_update_from_layer):
10193 (layer_dialog_edit_layer): need to convert to locale encoding
10194 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10195 (edit_layer_ok_callback):
10196 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10198 * lib/diagramdata.c (new_diagram_data): ditto.
10200 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
10202 * lib/diagramdata.c (new_layer): use utfchar instead of char for
10205 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
10206 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
10207 it's needed for now. also this function needs prototype declaration.
10209 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
10211 * lib/widgets.c: Style now functional on font selector. Some leak
10212 possible, but doesn't show up under stress test.
10214 2002-01-31 Akira TAGOH <tagoh@redhat.com>
10216 * app/plugin-manager.c (clist_select_row): name and description needs to
10217 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10218 (get_plugin_manager): ditto.
10220 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
10222 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
10225 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
10226 when prop->string_data is NULL.
10228 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10231 * lib/widgets.h: New font selector separating font and style.
10232 Style not functional yet.
10234 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
10237 * app/render_gdk.c (draw_string): More freetype support, now
10238 renders text. Still broken is font selection and exporting.
10240 2002-01-30 Akira TAGOH <tagoh@redhat.com>
10242 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
10245 * objects/chronogram/chronoline.c (chronoline_create): ditto.
10247 * objects/UML/usecase.c (usecase_create): ditto.
10249 * objects/UML/state.c (state_create): ditto.
10251 * objects/UML/object.c (objet_create): ditto.
10253 * objects/UML/node.c (node_create): ditto.
10255 * objects/UML/message.c (message_create): ditto.
10257 * objects/UML/component.c (component_create): ditto.
10259 * objects/UML/classicon.c (classicon_create): ditto.
10261 * objects/UML/actor.c (actor_create): ditto.
10263 * objects/SADT/box.c (sadtbox_create): ditto.
10265 * objects/SADT/annotation.c (annotation_create): ditto.
10267 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
10269 * objects/GRAFCET/step.c (STEP_FONT):
10270 * (step_create): ditto.
10272 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
10274 * objects/GRAFCET/action.c (ACTION_FONT):
10275 (action_create): ditto.
10277 * objects/FS/function.c (function_create): ditto.
10279 * objects/FS/flow.c (flow_create):
10281 (flow_apply_defaults): ditto.
10283 * objects/FS/flow-poly.c (flow_create):
10285 (flow_apply_defaults): ditto.
10287 * objects/FS/flow-ortho.c (orthflow_create):
10289 (orthflow_apply_defaults): ditto.
10291 * objects/ER/relationship.c: use utfchar instead of char for structure.
10292 (relationship_create): name needs to convert to UTF-8.
10294 * objects/ER/attribute.c: use utfchar instead of char for structure.
10295 (attribute_create): name needs to convert to UTF-8.
10297 * objects/ER/entity.c: use utfchar instead of char for structure.
10298 (entity_create): name needs to convert to UTF-8.
10300 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
10301 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
10302 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
10303 items. if GTK_TALKS_UTF8 isn't defined.
10305 2002-01-29 Akira TAGOH <tagoh@redhat.com>
10307 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
10308 it was my careless mistake...
10310 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
10311 a font name, because there are strings which isn't shown by "Courier".
10312 We need to consider a way to feel free to choose a font at runtime.
10314 * lib/render_object.c (render_object_load): ditto.
10316 * lib/text.c (data_text): ditto.
10318 * objects/EML/instantiation.c (instantiation_create): ditto.
10320 * objects/EML/interaction-ortho.c (interaction_ortho_create):
10321 (interaction_ortho_load): ditto.
10323 * objects/EML/interaction.c (interaction_create):
10324 (interaction_load): ditto.
10326 * objects/EML/process.c (fill_in_fontdata): ditto.
10328 * objects/ER/attribute.c (attribute_create):
10329 (attribute_load): ditto.
10331 * objects/ER/entity.c (entity_create):
10332 (entity_load): ditto.
10334 * objects/ER/relationship.c (relationship_create):
10335 (relationship_load): ditto.
10337 * objects/UML/association.c (association_create):
10338 (association_load): ditto.
10340 * objects/UML/class.c (fill_in_fontdata): ditto.
10342 * objects/UML/constraint.c (constraint_create): ditto.
10344 * objects/UML/dependency.c (dependency_create): ditto.
10346 * objects/UML/generalization.c (generalization_create): ditto.
10348 * objects/UML/implements.c (implements_create): ditto.
10350 * objects/UML/large_package.c (largepackage_create): ditto.
10352 * objects/UML/note.c (note_create): ditto.
10354 * objects/UML/realizes.c (realizes_create): ditto.
10356 * objects/UML/small_package.c (smallpackage_create): ditto.
10358 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
10360 * objects/custom/custom_object.c (custom_create): ditto.
10362 * objects/network/antenna.c (render_to_store): ditto.
10364 * objects/network/computer.c (render_to_store): ditto.
10366 * objects/network/disc.c (render_to_store): ditto.
10368 * objects/network/flash.c (render_to_store): ditto.
10370 * objects/network/hub.c (render_to_store): ditto.
10372 * objects/network/modem.c (render_to_store): ditto.
10374 * objects/network/modularswitch.c (render_to_store): ditto.
10376 * objects/network/monitor.c (render_to_store): ditto.
10378 * objects/network/printer.c (render_to_store): ditto.
10380 * objects/network/rj45plug.c (render_to_store): ditto.
10382 * objects/network/scead-plug.c (render_to_store): ditto.
10384 * objects/standard/textobj.c (textobj_load): ditto.
10386 * objects/sybase/client.c (render_to_store): ditto.
10388 * objects/sybase/dataserver.c (render_to_store): ditto.
10390 * objects/sybase/ltm.c (render_to_store): ditto.
10392 * objects/sybase/repserver.c (render_to_store): ditto.
10394 * objects/sybase/rsm.c (render_to_store): ditto.
10396 * objects/sybase/stableq.c (render_to_store): ditto.
10398 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
10400 * objects/UML/uml.h (UML_STEREOTYPE_START):
10401 (UML_STEREOTYPE_END): changes default strings.
10403 2002-01-28 Akira TAGOH <tagoh@redhat.com>
10405 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
10406 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
10407 which is given to arguments isn't UTF-8. so don't need to convert it.
10408 if GTK+ handle UTF-8, also don't need to convert it.
10410 (bracketted_to_string): fixed transaction for UTF-8 support.
10411 also start/end bracket is not necessarily 1 character. so that when use
10412 strend(), it doesn't work correctly.
10413 (string_to_stereotype): use utfchar instead of char.
10414 (remove_stereotype_from_string): ditto.
10415 (stereotype_to_string): ditto.
10417 * objects/UML/stereotype.h: ditto.
10419 * objects/UML/message.c: use utfchar instead of char for structure.
10420 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
10422 * objects/UML/small_package.c: use utfchar instead of char for structure.
10424 * objects/UML/realizes.c: ditto.
10426 * objects/UML/object.c: ditto.
10428 * objects/UML/large_package.c: ditto.
10430 * objects/UML/implements.c: ditto.
10432 * objects/UML/generalization.c: ditto.
10434 * objects/UML/dependency.c: ditto.
10436 * objects/UML/constraint.c: ditto.
10438 * objects/UML/component.c: ditto.
10440 * objects/UML/class_dialog.c (attributes_get_current_values):
10441 (attributes_list_new_callback, attributes_fill_in_dialog):
10442 (parameters_set_values, parameters_get_values):
10443 (parameters_get_current_values, parameters_list_new_callback):
10444 (operations_set_values, operations_get_values):
10445 (operations_get_current_values, operations_list_new_callback):
10446 (operations_fill_in_dialog, templates_set_values):
10447 (templates_get_values, templates_get_current_values):
10448 (templates_list_new_callback, templates_fill_in_dialog):
10449 fixed transaction for UTF-8 support.
10451 2002-01-27 Akira TAGOH <tagoh@redhat.com>
10453 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
10455 * objects/UML/class_dialog.c (class_read_from_dialog):
10456 (class_fill_in_dialog):
10457 (attributes_get_values): ditto.
10459 * objects/UML/actor.c (actor_create): ditto.
10461 * objects/UML/class.c (umlclass_calculate_data): ditto.
10463 * objects/UML/association.c (association_apply_properties):
10464 (fill_in_dialog): ditto.
10466 * objects/UML/uml.c (uml_get_attribute_string):
10467 (uml_get_operation_string):
10468 (uml_get_parameter_string):
10469 (uml_get_formalparameter_string): use utfchar instead of char.
10471 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
10472 UML_STEREOTYPE_END.
10474 * objects/UML/class.h: use utfchar instead of char.
10476 * lib/dia_xml.c (data_add_string): ditto.
10478 * lib/text.c (text_insert_char): fixed characters# calculation
10479 when includes multibytes character in strings.
10481 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
10483 Patch from Richard Rowell <rwrowell@bellsouth.net>:
10485 * app/lineprops_area.c:
10488 * lib/widgets.c: added crow foot arrow and cross arrow
10490 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
10492 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
10494 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
10496 * po/update.pl (REMOVED):
10497 * po/update.sh (REMOVED):
10498 * xml-i18n-merge.in.kg (REMOVED):
10499 * xml-i18n-update.in.kg (REMOVED):
10500 * sheets/Makefile.am:
10503 * configure.in: converted from xml-i18n-tools to intltools
10505 This looks like it fixes the build bugs of the snapshot tarballs,
10506 and it supersedes #69611.
10508 2002-01-25 Akira TAGOH <tagoh@redhat.com>
10510 * lib/text.c (text_insert_char): fixed characters# calculation.
10511 it's not string length.
10513 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
10514 is defined, needs to convert a description to UTF-8.
10516 * app/render_gdk.c (get_text_width): fixed transaction for
10517 UTF-8 support. also should uses gdk_text_width_wc() instead
10518 of gdk_text_width().
10520 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
10521 is defined, needs to convert to locale encoding for display.
10522 Also use utfchar instead of char for argument.
10524 2002-01-24 Hans Breuer <hans@breuer.org>
10526 * app/commands.c(edit_paste_callback and more) :
10527 call diagram_modified(ddisp->diagram) to fix #68083
10528 (help_menu_callback) : plug a DIR leak
10530 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
10531 GTK_TALKS_UTF8_WE_DONT
10533 * app/render_gdk.c(get_text_with) : it's a bad idea to use
10534 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
10535 gdk_text_width(). The length value is still questionable ...
10537 * lib/charconv.c : use functions already available in early
10538 GLIB-1.3 days whiches API hasn't changed since, to avoid
10539 version problems with the win32 build
10541 * lib/font.c : finally fix #58045 and #68208
10543 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
10545 2002-01-24 Akira TAGOH <tagoh@redhat.com>
10547 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
10548 no strings, fixed transaction.
10550 * lib/charconv.h: fixed typo.
10552 * app/menus.c: fixed typo.
10554 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
10556 * objects/UML/object.c: attrib's type uses utfchar instead of char.
10558 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
10560 * lib/text.c (text_create_change): use unichar instead of char.
10562 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
10563 use utfchar instead of char.
10565 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
10568 * lib/charconv.c (charconv_utf8_get_char): add new function.
10570 2002-01-23 Akira TAGOH <tagoh@redhat.com>
10572 * lib/text.c (text_delete_forward, text_delete_backward,
10573 text_split_line): fixed transaction for UTF-8 support.
10575 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
10576 strlen[] has string length for UTF-8, so has to use alloclen[].
10580 * .cvsignore: add dia.pot.
10582 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
10584 * configure.in: Added "sk" to ALL_LINGUAS.
10586 2002-01-22 Akira TAGOH <tagoh@redhat.com>
10588 * lib/text.c (text_set_string, new_text, text_copy,
10589 text_get_string_copy, text_join_lines): use utfchar instead of gchar
10592 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
10595 * lib/charconv.c (charconv_utf8_strchr): add new function.
10597 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
10599 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
10601 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
10602 strings to the appropriate encoding.
10604 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
10606 * app/object_ops.c (object_list_align_[hv]): Leak fix.
10608 * lib/Makefile.am (INCLUDES): Added debug flags.
10610 * app/object_ops.c: Fixed ordering problem of align equi-distant &
10613 2002-01-21 Akira TAGOH <tagoh@redhat.com>
10615 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
10616 gdk_string_width().
10618 * objects/GRAFCET/boolequation.c: fixed invalid comment.
10620 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
10621 when defined UNICODE_WORK_IN_PROGRESS.
10623 * lib/dia_xml.c (data_add_string): fixed typo.
10625 2002-01-20 Akira TAGOH <tagoh@redhat.com>
10627 * configure.in: fixed test gtk_advancement.
10629 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
10631 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
10634 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
10636 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
10637 tool tips, preferences, and arbitrarily long ~/.dia/history
10639 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
10640 removed 'Open Recent'; added new separators for recent documents on
10643 * app/interface.[ch] (interface_get_toolbox_shell): new function
10645 * app/diagram.c: added new parameter to recent_file_history_add() call
10647 * app/preferences.[ch]: added new 'Recent documents list size'
10650 2002-01-18 Akira TAGOH <tagoh@redhat.com>
10652 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
10653 if it failed, should be used gdk_font_load ().
10655 * lib/font.c (font_data): added the font entries for CJK.
10657 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
10659 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
10661 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
10663 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
10665 Patch from Martin Cracauer <cracauer@cons.org>:
10667 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
10670 2002-01-01 Hans Breuer <hans@breuer.org>
10672 * app/command.c : optional use GDI printing on windoze
10674 * app/preferences.[hc] : add option 'prefer_psprint' to
10675 select the print engine to use (could be used for Dia/Gnome
10678 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
10679 wmf plug-in with the common win32 print api. Now printing
10680 should work almost as expected from a windows program :-)
10682 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
10683 to .edit_delete to avoid clashes with C++
10685 * app/makefile.msc : updated for GDI printing
10687 * plug-ins/wmf/wmf.cpp : some small modifications to support
10688 GDI printing. Also swap R and B channel in draw_image()
10690 * app/makefile.am : added windows only files to EXTRA_DIST
10692 * objects/uml/class.c(umlclass_set_props) : force recalculation
10693 when applying properties
10695 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
10696 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
10697 many incompatible changes (and would force a gtk update)
10699 * objects/makefile.msc : don't build C-Objects which are
10700 already available as 'pure shape'
10702 * plug-ins/makefile.msc : remove diaimport from build. It was
10703 only available via mailing-list and is broken since the
10707 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
10709 * app/preferences.[hc] : tweaked preferences.c to make
10710 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
10711 added some more DiagramTree prefererences and their own
10714 * app/diagram_tree.[hc] : allow to sort by object type or name
10715 and hide by type ...
10716 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
10717 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
10719 * app/diagram_tree_window.c : handle hidden types and window
10722 2001-12-20 Hans Breuer <hans@breuer.org>
10724 * plug-ins/python/Makefile.am : patch from Peter Moulder
10725 <pmoulder@csse.monash.edu.au> to make the python plug-in
10726 compile on *nix too.
10728 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
10730 Patch from Alan <horkana@tcd.ie>:
10732 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
10734 2001-11-20 Hans Breuer <hans@breuer.org>
10736 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
10738 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
10740 * app/diagram_tree.[hc] : Added new functions and types for
10741 sorting diagram and objects, and attaching the popup menus.
10743 * app/preferences.h: Added more diagram tree preferences, using a
10744 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
10745 height and width of the diagram tree window and the default sort
10746 orders for diagrams and objects.
10748 * app/preferences.c (prefs_data): Added new entries for the new
10749 diagram tree preferences.
10751 * app/preferences.c (prefs_tabs): New tab for diagram tree
10754 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
10755 * app/diagram_tree_window.c (diagram_tree_window_new):
10756 * app/interface.c (create_tree_window): The diagram tree window is
10757 initialised using the DiagramTreeConfig part of prefs.
10760 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
10762 * app/diagram_tree_menu.[hc]: New files. Functions to create the
10763 diagram tree popup menus.
10765 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
10766 the diagram tree popup menus.
10768 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
10771 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
10773 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
10774 double-clicking a diagram tree node raises the diagram window
10775 to the foreground (and, if a object node was clicked, selects the
10776 object in the diagram).
10778 * app/diagram_tree.c (select_tree_widget): selecting an object
10779 node with single click simply updates it (no raise).
10781 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
10782 These changes make the diagram tree lazy: it is not created unless
10783 the diagram tree window is requested.
10785 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
10786 function for creating the tree window.
10788 * app/interface.c (create_tree_window): call
10789 create_diagram_tree_window() instead of diagram_window().
10791 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
10792 (diagram_tree_update, diagram_tree_update_name)
10793 (diagram_tree_add_object, diagram_tree_add_objects)
10794 (diagram_tree_remove_object, diagram_tree_remove_objects)
10795 (diagram_tree_update_object): accept a NULL tree as a nominal
10796 argument (and do nothing in this case!), so that the diagram tree
10797 is not initialised if not used.
10799 * app/diagram_tree_window.c (diagram_tree): do not create the
10800 diagram tree until diagram_window() or diagtree_show_callback()
10803 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
10804 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
10806 * app/diagram_tree_window.[hc] : (new files) implementation of
10807 the diagram tree window, a container for a diagram tree. [Removed
10808 the horizontal scroll bar glitch by disableing it]
10810 * app/diagram_tree.[hc] : (new files) implementation of the
10811 diagram tree widget. [Don't rely on the layers GPtrArray to be
10812 NULL terminated, but use its ->len field]
10814 * app/Makefile.am (dia_core_files): added new files
10815 diagram_tree.[hc] and diagram_tree_window.[hc]
10817 * app/interface.[hc] : (create_tree_window): this function
10818 creates the new diagram tree window widget
10820 * app/undo.c (delete_objects_apply) (delete_objects_revert)
10821 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
10822 (ungroup_objects_apply) (ungroup_objects_revert):
10823 every time that an undoable command modifies a diagram
10824 adding/removing/(un)grouping objects, a diagram_tree_something() is
10825 invoked to keep the diagram tree window in sync
10827 * app/properties.c (properties_apply): call to
10828 diagram_object_modified(), which updates the diagram tree window
10829 when the properties of an object are modified
10831 * app/preferences.[hc] : new "show_diagram_tree" configuration option
10832 (whether the diagram tree window should be shown on dia startup)
10834 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
10836 * app/diagram.h (diagram_object_modified): callback notifying of a
10837 diagram object modification
10839 * app/diagram.c (diagram_load_into): added call to
10840 diagram_tree_add() to add newly loaded diagrams to the diagram
10842 (diagram_destroy): call to diagram_tree_remove() to remove a
10843 destroyed diagram from the diagram tree window
10844 (diagram_add_object): call to diagram_tree_add_object() to add an
10845 object to the diagram tree window
10846 (diagram_add_object_list): as above, but with an object list
10847 (diagram_selected_break_external): deletion of objects from the
10848 diagram is detected here, and diagram_tree_remove_object() is
10849 invoked to remove the object from the diagram tree window (it
10850 would be nice to have a diagram_remove_object() in the Diagram
10852 (diagram_set_filename): update the diagram tree window when a
10853 diagram's filename changes
10855 * app/commands.c (file_new_callback): added call to
10856 diagram_tree_add() to add newly created diagrams to the diagram
10859 * app/app_procs.c (app_init): added call to create_tree_window()
10861 * app/makefile.msc : updated
10863 2001-10-28 Hans Breuer <hans@breuer.org>
10865 * app/preferences.h (DiaPreferences):
10866 * app/preferences.c (prefs_data): new "show_diagram_tree"
10867 configuration option (whether the diagram tree window should be
10868 shown on dia startup)
10870 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
10871 entry (both for GNOME and gtk)
10873 * app/diagram.h (diagram_object_modified): callback notifying of a
10874 diagram object modification
10876 * app/diagram.c (diagram_load_into): added call to
10877 diagram_tree_add() to add newly loaded diagrams to the diagram
10879 (diagram_destroy): call to diagram_tree_remove() to remove a
10880 destroyed diagram from the diagram tree window
10881 (diagram_add_object): call to diagram_tree_add_object() to add an
10882 object to the diagram tree window
10883 (diagram_add_object_list): as above, but with an object list
10884 (diagram_selected_break_external): deletion of objects from the
10885 diagram is detected here, and diagram_tree_remove_object() is
10886 invoked to remove the object from the diagram tree window (it
10887 would be nice to have a diagram_remove_object() in the Diagram
10889 (diagram_set_filename): update the diagram tree window when a
10890 diagram's filename changes
10892 * app/commands.c (file_new_callback): added call to
10893 diagram_tree_add() to add newly created diagrams to the diagram
10896 * app/app_procs.c (app_init): added call to create_tree_window()
10898 2001-10-28 Hans Breuer <hans@breuer.org>
10900 * plug-ins/python/pydia-property.c : apparently I missed
10901 to commit this last time. Now it has some more SetAttr
10902 support (apply from property)
10904 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
10906 * plug-ins/python/pydia-text.[ch] : new files
10908 2001-10-14 Hans Breuer <hans@breuer.org>
10910 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
10911 strings. Use g_strdup() for these.
10913 libxml2 does not produce 'any extra indentation when saving a tree'
10914 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
10915 libxml(1). To get human readable XML some extra tweaking is required.
10916 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
10917 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
10918 * app/preferences.[ch] : initialize 'pretty_formated_xml'
10920 * lib/libdia.def : updated externals
10922 * lib/properties.h : add prototype for prop_list_from_single ()
10924 * plug-ins/makefile.msc : build metapost plug-in
10926 * plug-ins/metapost/render_metapost.c : msvc does not like
10927 switch labels without operation 'default: }'. Added a noop.
10929 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
10930 * plug-ins/python/diamodule.c : added PyDiaText
10931 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
10932 Although the python plug-in does not use libxml at all, the
10933 headers are required to use the lib/prop*.h headers
10935 * plug-ins/python/pydia-diagramdata.c : added wrappers for
10936 update_extents and get_sorted_selected (should I duplicate
10937 more functions from PyDiaDiagram or should they be moved?)
10939 * plug-ins/python/pydia-properties.c : allow to set (some) properties
10940 through the dictionary api
10941 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
10942 * plug-ins/python/pydia-property.c : implement it (currently only
10943 string properties can be set)
10945 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
10946 Quoting myself: 'Still not convinced that this is better than an
10947 integral property->type and some casting ...
10948 It is trading a straightforward 40 lines switch statement to
10949 this nice 'type safe' function mapping (about 125 lines)'
10950 (But now it works again, better than changing the News file :)
10952 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
10954 patch from <robert.young@dsto.defence.gov.au>:
10955 * objects/UML/component.c: remember to set font in UML component
10956 object (fixes #62132)
10958 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
10960 * plug-ins/metapost/metapost.c:
10961 * plug-ins/metapost/Makefile.am:
10962 * plug-ins/metapost/render_metapost.c:
10963 * plug-ins/metapost/render_metapost.h:
10964 Metapost renderer from Chris Sperandio
10966 2001-09-14 Hans Breuer <hans@breuer.org>
10968 * app/render_gdk.c : reflect the fact, that GTK already talks
10969 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
10972 * app/render_libart.c : trying to fix #58045 but it appears
10973 to be an Gdk/win32, too.
10975 * lib/charconv.c : handle utf8 conversion with the help of
10976 glib-1.3 even in the !HAVE_UNICODE case.
10978 * lib/dia_xml.c : reduce complaing about missing encoding, by
10979 detecting if the default (utf8) would break the file.
10981 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
10983 * lib/charconv.c: (get_local_charset): at least please try to not
10984 silently change the logic, while avoiding crashes.
10986 * lib/font.c: (suck_font): put a #error, we have a nasty something
10987 to fix there before we switch to Gtk 2.0.
10989 2001-09-09 Hans Breuer <hans@breuer.org>
10991 * **/makefile.mingw : Approach to compile Dia with mingw.
10992 Compiling mostly works but running does not (yet) ...
10995 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
10996 Apparently mingw needs it too.
10997 - enable 'normalization' of a null verctor. Otherwise the beziergon
10998 bounding box calculation would be broken at least with msvc. What's
10999 the mathematical correct result of 0.0/0.0 ?
11001 * lib/dia_xml.c : isinf() for mingw too.
11003 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
11006 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
11007 Please don't do it.
11009 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11011 * lib/libdia.def : updated externals. Apparently mingw needs
11012 them to produce the right mangling.
11014 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11017 2001-09-08 Wang Jian <lark@linux.net.cn>
11019 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11021 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
11023 * lib/dia_xml_libxml.h:
11024 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11025 libxml1's code, to rework the output file before it gets committed
11026 to disk. This is rubbish, and will be removed when libxml2
11027 switches from discouraged to mandatory.
11028 All in all, this fixes #60152.
11031 * lib/charconv.c: (charconv_unichar_to_utf8):
11032 made the type of the input parameter explicitly an unsigned long.
11034 * configure.in: Added a check for libz (we must now include it
11035 explicitly, for xmlDiaSaveFile).
11037 * app/load_save.c: (diagram_data_save):
11038 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11039 (dia_pluginrc_write):
11040 * plug-ins/shape/shape-export.c: (new_shape_renderer),
11041 (end_render), (draw_string):
11042 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11045 Made sure we always write UTF-8 XML files, and through
11048 * NEWS: documented that fact.
11050 2001-09-07 James Henstridge <james@daa.com.au>
11052 * configure.in (found_libxml): refactor the check for libxml a
11053 little so that it handles finding both libxml1 and 2 better.
11055 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
11057 * app/app_procs.c: removed a spurious } which caused a compilation
11058 error in the (!HAVE_GNOME && HAVE_POPT_H) case
11060 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11061 don't know what ANSI X3.4-1968 is. I didn't know until this day,
11062 but it's just plain old ASCII. Added a check to shield the poor
11065 Patches from <robert.young@dsto.defence.gov.au>:
11067 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11068 width and height of text before calculating bounds. Fixes #59928
11070 * app/preferences.c: Moved grid related items into Grid Tab.
11072 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
11074 * app/interface.c: (create_zoom_widget): connected one more signal
11075 to the Zoom selector combo's list. Fixes #59879.
11077 * app/app_procs.[ch]: (app_init) (do_convert)
11078 (build_output_file_name): brought back into the main executable
11079 the rare useful bits of the ill-fated diaconv. This means we have
11080 one new feature : --export-to-format (-t), which should make
11081 writing conversion scripts easier, and a crude implementation of
11082 -t and -e for the poptless argument parsing, which means the Win32
11083 port should be able to take advantage of it (that should make
11084 resolving #58197 possible).
11086 * app/diaconv.c: kept the poor duck compiling (but that's about
11089 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11090 I've got it right).
11092 * NEWS: updated about the new feature above, and documented the
11093 "missing encoding specification" complaint.
11095 2001-09-01 Abel Cheung <maddog@linux.org.hk>
11097 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11099 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
11101 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11104 2001-09-01 James Henstridge <james@daa.com.au>
11106 * */Makefile.am: various changes to include missing files, and fix
11107 sheets dir to handle building with builddir != srcdir.
11109 * autogen.sh: unconditionally pass the --enable-maintainer-mode
11110 and --enable-db2html flags so that builds from CVS work correctly.
11112 * configure.in: increment version number. Also add an
11113 --enable-db2html flag. Without the flag, db2html won't be run (if
11114 the flag is passed and db2html is not present, do nothing).
11116 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
11118 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11119 even compiled. It's really too bad there is no lint tool easily
11120 available (or a more cautious, pedandic, paranoid and verbose
11121 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11123 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11126 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11127 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11129 * app/menu.c: added ellipsis(...) to diagram properties menu item.
11130 * app/dia-props.c: diagram properties dialog contents did not
11131 represent current diagram settings.
11132 * app/dia-props.[ch]:
11133 * app/display.c: diagram properties contents now follows currently
11135 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11137 * AUTHORS: added Robert Young.
11139 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11141 * app/modify_tool.c: (modify_button_release): Patch from
11142 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11143 #59090: if selection dragging was released outside of the window,
11144 artifacts of the selection box remained.
11146 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
11148 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11150 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
11153 * sheets/Makefile.am: prepared the terrain for the Version of
11154 xml-i18n-tools Which Comes After 0.9 (and which will feature at
11155 last a sane behaviour with XML files). Some reasonible delay
11156 before enforcing that version *will* be given.
11158 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11160 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11161 becomes a nonexistent symbol.
11163 2001-08-18 Hans Breuer <hans@breuer.org>
11165 * app/app_procs.c : made it compile without ENABLE_NLS
11167 * app/diap_callbacks.c : strcmp isn't guaranteed to work
11170 * app/load_save.c :
11172 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
11174 xmlGetProp, ... -> xmlFree
11175 malloc, strdup -> free
11176 g_new, g_malloc, g_strdup - > g_free
11178 * app/win32print.c : some more error checking, still not
11181 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
11183 * lib/dia_xml.c : msvc still has no unistd.h
11186 * lib/sheets.c : temporary resolved libxml include brokeness
11188 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
11189 changes. Compiles again, but doesn't do anything useful anymore.
11190 (see THE_PROP_TYPE_IS_INTEGRAL)
11192 * **/makefile.msc : updated to use LIBXML2
11194 * lib/libdia.def : reflect api changes
11196 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
11198 * config.h.win32: added defines telling that gtk speaks UTF8.
11199 Hans, I believe this reflects what GTK on Win32 does.
11201 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
11203 * lib/prop_inttypes.c:
11205 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
11208 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
11209 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
11210 search for plug-ins is done.
11211 * app/Makefile.am: made app/run_dia.sh use the // capability. No
11212 need to update this anymore if we get a new plug-in library (or
11215 * lib/dia_xml.c: #include <unistd.h> was missing.
11217 * lib/properties.h:
11218 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
11219 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
11222 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
11224 * sheets/civil.sheet: removed duplicate "Danish" entries.
11229 * sheets/Makefile.am:
11231 * Makefile.am: applied the xml-i18n-tools README's instructions.
11233 * po/(da de fr hu nl nn no sl).po: merged the translations from
11234 the sheet files into the .po files. I hope I haven't mixed
11236 * sheets/*.sheet (REMOVED):
11237 * sheets/*.sheet.in (NEW): moved the sheet files sans
11238 translations into .sheet.in files.
11240 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
11241 because we don't yet want to force all translators to work using
11242 UTF-8 editors. We'll want to do that sometime (sooner rather than
11243 later). Okay, I sing a slightly different tune in po/ChangeLog...
11245 * dia.desktop (REMOVED):
11246 * dia.desktop.in (NEW): used also the x18t infrastructure for
11249 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
11250 "official" version of x18t with support for .sheet files is available.
11251 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
11252 "official" version of x18t which doesn't corrupt UTF-8 data in XML
11255 ** yes, we are now using xml-i18n-tools to manage the sheet
11256 translations. For the Win32 build, Nemo stores snapshots of
11257 translated strings next to the CVS snapshots. **
11259 * sheets/checktrans.py: suddenly, some sheets have lots of
11260 translations (objects which existed before sheets, mostly).
11261 Adapted the formatting.
11263 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
11265 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
11266 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
11267 <robert.young@dsto.defence.gov.au>, to fix #59090.
11269 * app/display.c: (ddisplay_scroll): While at it, added some
11270 margin, so that autoscrolling can happen within a margin outside
11271 the diagram's extents.
11275 * app/disp_callbacks.c: Robert "forced" me to go when I usually
11276 don't, namely the app/ directory. So while I was there, I
11277 scratched a long-time itch. If no object has focus, pressing the
11278 space bar will select back the tool which was selected before the
11279 current one (I find this especially useful with "reset after create" !)
11281 * lib/proplist.c: (prop_list_from_single): Renamed
11282 prop_list_singleton() to avoid confusion with the Singleton
11283 pattern (which it definitely is not).
11285 * lib/propobject.c: (object_prop_by_name_type),
11286 (object_prop_by_name): The "flags" parameter was not necessary.
11287 These don't return synthetic properties, but properties built from
11288 a real property description list; therefore, we don't call
11289 make_new_prop() but use the existing property descriptor, which
11290 has perfectly valid (and meaningful) flags.
11292 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
11293 new predicates better reflect the reason why properties exist when
11294 they're created by make_new_prop() or object_prop_by_name().
11296 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11297 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
11300 * lib/properties.h: reflects all the above changes.
11302 * objects/SADT/arrow.c:
11303 * objects/SADT/annotation.c:
11304 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
11307 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11309 * lib/properties.h:
11310 * lib/proplist.c: (prop_list_singleton):
11311 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11312 Added these, to simplify interactions of plug-ins with the StdProp
11317 * lib/dia_xml_libxml.h (NEW):
11322 * objects/custom/shape_info.c: A few prototypes were causing
11323 #include hell, because we generally attempt to not pull the whole
11324 libxml header set when we include dia_xml.h. Moved those
11325 prototypes away for the rare cases they're necessary.
11327 2001-08-15 Hans Breuer <hans@breuer.org>
11329 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
11332 * lib/makefile.msc : updated
11334 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
11335 use G_GNUC_FUNCTION instead.
11337 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
11339 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
11340 msvc instead of cleaning missing includes
11342 * plug-ins/wmf/wmf.cpp :
11343 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
11345 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11352 * objects/custom/shape_info.c:
11353 * plug-ins/shape/shape-export.c:
11354 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
11355 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
11356 removed xmlKeepBlanksDefault(0) in favour for proper
11357 xmlIsBlankNode() testing. Lots of other fixups to use the
11358 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
11359 make libxml1 output correct files.
11361 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
11362 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
11363 packages). If both devel packages are found, the build will stop
11364 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
11366 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
11367 allocate the first handle :-)
11369 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
11370 a cast and a sizeof.</gratuitous>
11372 * objects/custom/custom_object.c: (custom_copy): don't call
11373 text_get_attrbutes if the shape has no text...
11374 (custom_update_data): The info->resize_with_text code was a bit
11375 directive; basically, the shape's bounding box was forced to be
11376 proportional to the text's bounding box.... This fixes #57187.
11378 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
11379 default for info->aspect_ratio; unobfuscated a line about
11380 info->resize_with_text;
11382 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
11384 * lib/properties.h: added comments next to the PROP_TYPEs to tell
11385 which C Property subclass to use.
11387 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
11388 cast-ridden form of setting properties in a list, in favour for
11389 the "local pointers" form. I'll take any better offer...
11391 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
11393 * lib/font.c: fprintf(...) --> fprintf(format...)
11395 * configure.in: added a disabled versioned test for glib.
11396 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
11397 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
11398 g_critical() with a simple g_error(). Proper fix is to implement
11401 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
11404 * lib/properties.h:
11405 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
11406 * lib/proplist.c: (find_prop_by_name_and_type):
11407 * lib/prop_basic.c: (make_new_prop), (initialize_property):
11408 * lib/propoffsets.c: (do_set_props_from_offsets),
11409 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
11410 Added a type_quark member to PropDescription, Property and
11411 PropOffset. Used it to implement a safety in
11412 do_[sg]et_props_from_offsets().
11414 * objects/flowchart/diamond.c: the diamond's text was not saved,
11415 and thus not even copied (c&p).
11416 * objects/standard/textobj.c: ditto.
11418 Most of the above changes thanks to Robert Young's testing. Thanks !
11420 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
11422 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
11425 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
11427 * lib/proplist.c (prop_list_from_descs): added a call to
11428 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
11429 too embarrassing to tell.
11431 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
11432 while loop to a for loop, for symmetry with
11433 prop_offset_list_calculate_quarks().
11435 * lib/geometry.h: new inline function, rectangle_equals.
11437 * lib/diagramdata.[ch]: refactored a bit the diagram extents
11438 computation logic, and changed it to always be the union of the
11439 visible layers' extents. This should close #58882 (Debian
11440 #107167), and fixes #55498.
11442 * app/display.c: made the initial visible box more coherent with
11443 the diagram being loaded's extents.
11445 * app/prop_attr.c: don't set the font (from offset) if font_data
11446 is NULL. Two brainos in colorprop_load() and fontprop_load().
11448 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
11450 * lib/properties.[ch]: split in a lot of pieces:
11452 * lib/prop_*.[ch] (NEW): all property types are now first-class
11453 objects, inheriting from the original abstract Property type.
11454 * lib/propdesc.c (NEW): property description handling routines
11455 * lib/propoffsets.c (NEW): property offset handling routines
11456 * lib/proplist.c (NEW): property list handling routines
11457 * lib/propobject.c (NEW): property list <-> object routines
11458 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
11460 * lib/propinternals.h: prototypes for stuff not usually needed by
11461 the outside of StdProps.
11462 * lib/Makefile.am: a lot of new files have been added...
11464 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
11465 BOTH INTERFACES AND RUN-TIME STABILITY.
11467 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
11469 * lib/object.h: removed the incestuous relationship with
11470 properties.h' contents. Now a Property list is a GPtrArray -->
11471 object interface change !
11473 * app/app_procs.c/app_init(): removed a disabled call to a
11474 non-existent routine. Added a call to stdprops_init().
11476 * objects/Makefile.am: disabled the construction of EML. I'm not
11477 touching these until a certain issue is solved (or this module
11480 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
11481 objects to the interface changes.
11483 * app/disp_callbacks.c: killed a warning.
11484 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
11487 The macros PROP_VALUE_* have disappeared. Adapted to using the new
11490 * plug-ins/dxf/dxf-import.c:
11491 * plug-ins/xfig/xfig-import.c:
11492 PROP_VALUE_* macros have been removed. Converted to the new API.
11494 * plug-ins/python/**/*: I gave up converting this; I can't
11495 compile --with-python (problems with object.h defined both by us
11496 and by Python). I'll gladly help whomever cares to fix it !
11497 (or, fix it myself if someone tells me how to compile it).
11499 * configure.in: added the UNICODE-related progress defines.
11502 * lib/geometry.h: On Solaris and perhaps other systems, finite()
11503 is defined in ieeefp.h rather than in math.h. Patch from Andrew
11504 Halper <ashalper@acm.org> with further modifications, isinf() is
11505 provided by -lsunmath (sunmath.h).
11507 * lib/font.c: conditionally disabled Lars' debugging messages.
11508 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
11510 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
11512 * lib/bezier_conn.h:
11513 * objects/standard/bezier.c (bezierline_create):
11514 * lib/bezier_conn.c (bezierconn_init):
11515 Preparations for use of userdata for bezier lines.
11517 * objects/standard/polygon.c:
11518 * objects/standard/create.h:
11521 * plug-ins/xfig/xfig-import.c:
11522 Use of user_data for polygon as well, including adding
11523 polyshape_set_points. Include file for non-interactive
11524 creation of standard objects, objects/standard/create.h
11526 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
11528 * app/render_gdk.c:
11529 * app/render_gdk.h:
11533 More preliminary freetype support. Not at all functional, crashes
11538 * objects/standard/polyline.c:
11539 Support for creating polyline objects with more than two points.
11540 This includes an extra function and a prototype change in the
11541 poly_conn lib object.
11543 * lib/object.c (object_copy): Fixed memory leak of handles and
11546 2001-08-08 Abel Cheung <maddog@linux.org.hk>
11548 * dia.desktop: added traditional Chinese strings
11550 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
11552 * NEWS: updated to reflect build-time dependencies.
11554 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
11555 around obj->ops->describe_props(obj). Quarks are none of an
11556 object's business in the general case...
11557 * lib/text.c: Added an apply_textattr_properties() function to
11558 factor out some common code related to applying a dialog's text
11559 attribute properties to a (Text *) which wasn't edited there.
11560 Ditto for textstr, for the string part of an objet.
11562 * objects/GRAFCET/action.c:
11563 * objects/SADT/annotation.c:
11564 * objects/SADT/box.c: used apply_textattr_properties().
11566 * objects/UML/actor.c:
11567 * objects/UML/branch.c:
11568 * objects/UML/component.c:
11569 * objects/UML/constraint.c:
11570 * objects/UML/small_package.c:
11571 * objects/UML/state.c:
11572 * objects/UML/usecase.c:
11573 * objects/UML/large_package.c:
11574 * objects/UML/note.c:
11575 * objects/UML/node.c:
11576 * objects/UML/message.c:
11577 * objects/UML/classicon.c:
11578 * objects/UML/object.c:
11579 * objects/UML/realizes.c:
11580 * objects/UML/dependency.c:
11581 * objects/UML/implements.c:
11582 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
11583 (most objects were already using StdProps to some extent ; this
11584 systematises usage and removes some dead wood).
11586 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
11587 * objects/UML/uml.[ch]: audited for UTF-8.
11589 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
11590 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
11591 private (ISO-8859-1) definition.
11593 * lib/charconv.c: Added a warning if we didn't run
11594 nl_langinfo(CODESET) but rely instead on a hardcoded default.
11596 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
11599 * app/disp_callbacks.c: added a way for an object to cause an
11600 already realised menu to be destroyed (for instance if it changes
11603 * objects/custom/custom_object.c: used the above to fix #55073.
11605 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
11607 * configure.in: Remove 2.50 prereq.
11609 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
11611 * po-checktrans.py: under some circumstances, there was one column
11612 more than what was supposed to be, thus breaking the formatting.
11614 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
11616 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
11618 * NEWS: updated with new stuff since 0.88
11620 * shapes/network/antenna.shape: the text was misplaced ; fixed.
11622 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
11623 firewall router (upon request from Cyril Lacoux
11624 <clacoux@easter-eggs.com>)
11626 * configure.in (didn't rename to configure.ac): autoconf 2.50
11627 constructs were used ; added an AC_PREREQ call to guard against
11630 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
11632 * lib/properties.c: minor clean-ups with the event delivery code.
11634 * EML/instantiation.c: brought this object back from stone and ice
11637 * app/diaconv.c(NEW): added a command-line conversion tool. Still
11638 lacks a man page and correctness. In fact, it doesn't work. Please
11639 see #58196 if you want to finish it.
11641 * lib/message.[ch]: redefined things a little so that a different
11642 message_internal routine could be passed.
11643 applications can use that to fit themselves to the display model.
11645 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
11647 * objects/SADT/box.c:
11648 * objects/GRAFCET/action.c: spelling in property descriptors (name
11650 * objects/SADT/annotation.c: ditto, plus a temporary test of the
11651 event delivery code (try to click on the "click me !" button !).
11654 * lib/properties.[ch]: improved (fixed) support for group event
11655 handlers. Fixed various things from yesterday's code to make it
11656 not too obviously crash.
11658 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
11660 * app/group.c: added delivery of events to the first member of the
11661 group which is able to process it.
11663 * lib/properties.c(prop_desc_lists_intersection): properties
11664 don't match if they don't have identical event handler.
11665 * lib/properties.h: simplified the PropEventHandler signature.
11667 Event delivery code is still untested so far, but should be
11670 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
11672 * lib/properties.[ch]: Added (untested !) property event handler
11673 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
11674 generating such events. This stuff compiles, and should lurk
11675 around silently as long as you don't declare property descriptors
11676 with events (AFAICT).
11677 In object_create_props_dialog() and friends:
11678 attached a single structure with lots of data instead of lots of
11679 little attachments of data to the dialog widget.
11681 * lib/object.h: fixed mild typedef breakage introduced by the above.
11683 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
11685 * lots of files: Changed Font to DiaFont
11686 * */Makefile.am: Added FREETYPE_LIBS
11687 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
11689 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
11691 * configure.in: Added "nn" to ALL_LINGUAS.
11693 2001-07-09 Alex Larsson <alexl@redhat.com>
11695 * app/disp_callbacks.c:
11696 Add gdk_im_ready() calls to XIM code.
11698 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
11700 * lib/properties.[ch]: splitted prop_get_widget() into
11701 prop_get_widget() (gives a widget but doesn't fill it) and
11702 prop_reset_widget() (fills an existing widget with a property's value).
11704 * lib/widgets.[ch]: const enforcement police work.
11706 * shapes/network/antenna.shape: added a connection point at top,
11707 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
11709 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
11711 * intl/*: tested with gettext-0.10.38
11712 * configure.in: moved a macro call around (AM_PROG_CC) to keep
11713 some of autogen.sh from complaining.
11714 * INSTALL: added a warning against gettext older than at least 0.10.36
11716 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
11718 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
11719 AM_ICONV (both provided by gettext)
11721 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
11723 * lib/charconv.c: corrected the degraded mode for when
11724 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
11726 * objects/chronoline/chronoline_events.c: UTF8 compliance.
11728 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
11730 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
11731 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
11732 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
11735 * objects/chronogram/chronoline.c:
11736 * objects/chronogram/chronoref.c: took advantage of the above to
11737 make nicer looking dialogs.
11739 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
11740 from libunicode's internals).
11741 * lib/message.c: convert strings to local encoding prior to
11742 display (UNICODE_WORK_IN_PROGRESS)
11743 * lib/properties.[ch]: convert strings to local encoding prior to
11744 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
11745 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
11746 * lib/stringprerenderer.[ch]: ditto
11748 (lib/text.c has been audited for UTF8, but the size of the changes
11749 make them inappropriate for commit before 0.89)
11751 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11753 * objects/boolequation.h (<save|load>_boolequation): made the
11754 prototypes for match the .c file.
11756 * samples/grafcet.dia: minor non-conformance with IEC-848
11757 fixed (in the transition from step 100 to step 101).
11759 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
11760 disallow editing of properties if the object is part of a group.
11762 * objects/chronogram/chronoline.c:
11763 * objects/SADT/annotation.c:
11764 * objects/SADT/box.c:
11765 * objects/GRAFCET/step.c:
11766 * objects/GRAFCET/transition.c:
11767 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
11769 2001-06-12 Hans Breuer <hans@breuer.org>
11771 * lib/libdia.def : removed lazyprop exports
11772 * lib/makefile.msc : removed lazyprop.obj
11774 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
11775 and avoid crashes by always creating a custom->text,
11776 when (custom->info->has_text)
11778 * objects/makefile.msc : removed sybase from build
11780 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
11781 ObjectNode is a pointer already, which is what we want
11782 instead of a pointer pointer.
11784 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
11785 and implemented working export for images
11787 * shapes/network/zip-disk.shape : added connection points
11789 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
11791 * objects/SADT/box.c: removed lazyprops for standard props.
11792 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
11793 * objects/chronograms/chronoref.c: ditto
11797 * lib/connpoint_line.c:
11798 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
11799 * lib/properties.[ch]: new property types:
11800 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
11801 - PROP_TYPE_MULTISTRING: same as string, but renders as a
11802 multi-line entry box.
11803 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
11804 in a tabbed-notebook style (this is a bit complicated to use;
11805 see objects/chronograms/chronoline.c for an example).
11807 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
11809 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
11810 * objects/GRAFCET/step.c: ditto.
11811 * objects/GRAFCET/vector.c: ditto.
11812 * objects/SADT/annotation.c: ditto.
11813 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
11815 * lib/properties.[ch]: two more non-visible types
11816 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
11818 * lib/neworthconn.[ch]:
11819 * lib/orthconn.[ch]: added support for manipulation through
11820 standard properties.
11822 * configure.in: removed -fomit-frame-pointer, this seems to
11823 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
11826 * charconv.[ch]: more functions from unicode.h.
11827 get_local_charset() wasn't working properly, fixed now.
11828 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
11831 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
11832 * lib/lazyprops.[ch]: put a big fat warning in.
11834 * app/render_eps.c: one line mysteriously went away, causing a
11835 variable to be used uninitialised....
11837 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
11839 * app/app_procs.c: commented out the call to
11840 bind_textdomain_codeset(): it's premature.
11842 * lib/connpoint_line.c: a NULL point can be given to
11843 connpointline_adjust_count(), in case there's not really a clicked
11846 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
11847 #include order troubles. #included by lib/text.h, so there is no
11848 impact outside lib/.
11849 * lib/properties.[ch]: added support for CONNPOINT_LINE and
11850 (nonvisible) TEXT properties.
11852 * objects/GRAFCET/action.c:
11853 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
11856 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
11857 standard properties code). Grafted a dynamic number of connection
11858 points (heavily inspired from what Vergent does). This is the real
11861 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
11863 * lib/fonts.c: some hardening (mostly g_assert())
11864 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
11866 * app/app_procs.c (app_init): added a call to
11867 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
11868 (UNICODE_WORK_IN_PROGRESS).
11870 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
11872 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
11874 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
11875 (fixes #55863) : some clean-ups in the handling of connection
11876 points. Now the total number of connection points is just a
11877 #define (the proper solution is to retrofit the GRAFCET Vergent's
11878 dynamic behaviour wrt connection points).
11880 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
11882 * app/app_procs.c (app_init): added a call to unicode_init() (only
11883 if HAVE_UNICODE, of course).
11885 * lib/charconv.c: simplified the code which detects the local
11886 charset. No need to use <langinfo.h>, libunicode already takes the
11887 burden of figuring that out. Also, if local charset is utf8, no
11888 conversion will take place.
11889 Exposed a way to get the current charset (similar to
11890 unicode_get_charset() but actually working, hopefully).
11892 * lib/charconv.h: Added a partial non-UTF8 implementation of
11893 unicode.h if !HAVE_UNICODE (actually, all the time for the
11894 moment). The UTF8 implementation is just macros on libunicode (use
11895 the functions prefixed by uni_, as defined by charconv.h, not
11896 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
11897 From now on, all strings which don't *need* to be ASCII should be
11898 utfchar *, not gchar *. Just include charconv.h, let it sort out
11899 the details (such as: "is libunicode available and enabled?")
11901 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
11902 "API" instead of directly libunicode. Removed the now unnecessary
11903 speculative clustering of characters in encoding pages.
11905 * app/render_eps.c: made the local8->utf8 conversions dependent of
11906 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
11907 boundary will be when this WIP is done).
11909 * lib/dia_xml.c (data_point): fixed a format string typo.
11911 * po/POTFILES.in: added all C files from lib/
11913 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
11915 * app/disp_callbacks.c: make sure the objects' connected objects
11916 are updated when the objects' size changes after a keypress event
11919 * configure.in: added a big warning about the possible future
11920 non-optionality of --enable-unicode.
11922 * TODO: removed entries which look like done ; added a few ones
11923 (Bugzilla "enhancement" bugs may be a better way to keep track of
11926 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
11928 * objects/UML/message.c: got rid of #55564 and of message_copy()
11929 by using more standard properties (are the message_state_*()
11930 functions still necessary ?)
11932 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
11935 * objecs/custom/shape_info.c:
11936 * plug-ins/shape/shape-export.c:
11937 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
11938 use xmlChar instead of obsolete CHAR.
11940 2001-06-03 Hans Breuer <hans@breuer.org>
11942 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
11943 * app/commands.c : give the right number of parameters
11944 to diagram_update_menu_sensitivity ()
11946 * app/preferences.c : do proper initialization for DiaPrefsData:
11947 render_bounding_boxes. It would be a real surprise if 'hidden'
11948 properties would have ever worked before.
11949 Don't try to access the widgets of hidden property, it does not
11952 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
11953 it is defined in libdia, but initialized from dia app, which
11954 otherwise gave nice start-up crashes.
11956 * lib/diagramdata.c : initialize the color for rendering bounding
11957 boxes in the Dia range (0 .. 1.0)
11959 * lib/libdia.def : added *_bbox functions for export
11961 * lib/makefile.msc : added new sources
11963 * objects/custom/custom_object.c : use HAVE_UNISTD_H
11965 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
11968 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
11969 removes a translation of menus (in a place where there shouldn't
11970 have been), which gets rid of a waterfall of warnings if LANG!=C,
11971 and a fix to #55047.
11973 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
11975 * lib/charconv.c : added #include <errno.h>
11977 * app/dia_embedd.c : updated menus_get_item_from_path usage
11979 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
11981 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
11982 Added a special case for Symbol strings, so that they're not
11983 re-encoded using the LN encoding (we use the bare Adobe encoding
11986 * objects/custom/custom_object.c: Now that #52912 is fixed,
11987 I could remove the ugly hack I wrote to squash the shape bounding box
11988 problem shown by Ben A. Hetland a few months ago, and fix it
11989 properly this time.
11991 * lib/text.c: enlarged a little the bounding box to account for
11992 the cursor in rightmost position.
11994 * lib/diagramdata.c: draw bounding boxes only if the relevant
11995 variable is set (as before), but also only if the rendere is
11996 interactive (ie, don't bother rendering bounding boxes on
11998 Made the bounding box's line width a fixed value, 0.01
12000 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12001 and assymmetric control beziers. Implemented ellipse_bbox().
12003 * Makefile.am: incantations to get po/dia.pot build, as suggested
12004 by Hubert in #55075.
12006 * shapes/network/computer.shape: typo fixed.
12007 * shapes/network/antenna.shape: fixed #55074 (antenna is now
12008 properly translucent, except for its base where it makes sense. It
12009 doesn't look that ugly anymore if transparent mode is on).
12011 * configure.in: --enable-unicode is now the default. This
12012 still currently affects only printing.
12014 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12016 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
12017 The overshoot code is buggy, and the bounding boxes for polyshapes
12018 looks a bit cheezy. To be done ASAP.
12020 2001-05-26 James Henstridge <james@daa.com.au>
12022 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12023 This should clear up some of the build problems people have been
12026 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12028 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12031 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12032 box code (beginning with lines, polylines and polybeziers), into a
12033 more generic facility. While at it, a better shot at correctly
12034 computing the bounding box of a Bezieroid (should take care of
12035 #53424, #51233 and of course is part 1 of #52912).
12037 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12038 into a hidden preference (set render_bounding_boxes in diarc).
12039 * app/preferences.[ch]: Added support for hidden preferences.
12041 * lib/geometry.[ch]: sprinkled with "const" modifiers.
12043 * lib/bezier_conn.[ch]:
12044 * lib/beziershape.[ch]:
12045 * lib/connection.[ch]:
12046 * lib/element.[ch]:
12047 * lib/poly_conn.[ch]:
12048 * lib/orth_conn.[ch]:
12049 * lib/neworth_conn.[ch]:
12050 * lib/polyshape.[ch]: adapted to take advantage of
12051 boundingbox.[ch] instead of relying on private (duplicate) code.
12053 * object/FS/flow.c:
12054 * object/GRAFCET/action.c:
12055 * objects/GRAFCET/condition.c:
12056 * objects/GRAFCET/vergent.c:
12057 * objects/GRAFCET/vector.c:
12058 * objects/SADT/annotation.c:
12059 * objects/SADT/arrow.c:
12060 * objects/ER/participation.c:
12061 * objects/UML/constraint.c:
12062 * objects/UML/implements.c:
12063 * objects/UML/lifeline.c:
12064 * objects/UML/message.c:
12065 * objects/UML/realizes.c:
12066 * objects/UML/generalization.c:
12067 * objects/UML/association.c:
12068 * objects/UML/dependency.c:
12069 * objects/FS/flow-ortho.c:
12070 * objects/network/bus.c:
12071 * objects/standard/arc.c:
12072 * objects/standard/bezier.c:
12073 * objects/standard/beziergon.c:
12074 * objects/standard/line.c:
12075 * objects/standard/polygon.c:
12076 * objects/standard/zigzagline.c:
12078 * objects/standard/polyline.c: Some *BBExtras structures changed
12079 names while moving to boundingbox.[ch]. A trivial mass-renaming.
12081 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
12083 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12084 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12086 * app/display.c (ddisplay_update_scrollbars): from Patrick's
12087 suggestion, remove the extra scrollable area (it was only visible
12088 to the scrollbars). This is experimental.
12090 * objects/custom/custom_object.c: If a shape's icon file doesn't
12091 exist, warn and substitute a default icon, instead of crashing.
12094 * objects/network/network.c:
12095 * shapes/network/modularswitch.(shape|xpm) (NEW):
12096 * shapes/network/printer.(shape|xpm) (NEW):
12097 * shapes/network/genmonitor.(shape|xpm) (NEW):
12098 * shapes/network/computer.(shape|xpm) (NEW):
12099 * shapes/network/Makefile.am: four less objects, four more shapes.
12100 These were the last known RenderObjects. (phew !)
12104 * objects/sybase/Makefile.am:
12105 * objects/network/Makefile.am: Removed the older Renderobjects
12106 from the build, and their infrastructure (not yet deleted,
12109 * shapes/network/sceadplug.shape:
12110 * shapes/network/antenna.shape:
12111 * shapes/network/modem.shape:
12112 * shapes/network/hub.shape:
12113 * shapes/network/rj45plug.shape:
12114 * shapes/sybase/client.shape:
12115 * shapes/sybase/dataserver.shape:
12116 * shapes/sybase/ltm.shape:
12117 * shapes/sybase/repserver.shape:
12118 * shapes/sybase/rsm.shape:
12119 * shapes/sybase/stableq.shape: Minor corrections (line widths were
12120 ten times too narrow).
12122 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
12124 * objects/network/network.c:
12125 * shapes/network/sceadplug.(shape|xpm) (NEW):
12126 * shapes/network/antenna.(shape|xpm) (NEW):
12127 * shapes/network/modem.(shape|xpm) (NEW):
12128 * shapes/network/Makefile.am: four less objects, four more shapes.
12131 * lib/diagramdata.c:
12133 * lib/string_prerenderer.[ch] (NEW):
12134 Add a new renderer primitive, predraw_string() (does nothing, to be
12135 used as a hook to optimise the character encodings if needed).
12136 Added a string pre-renderer, which can be viewed as a filter
12137 renderer (to route draw_string() to predraw_string() and ignore
12138 the rest, in a first rendering pass)
12140 * app/render_eps.c: Took advantage of the above to make wholly
12141 optimised Postscript encoding page(s), even (especially) with
12142 non-latin1 code (HAVE_UNICODE must be true).
12144 (#53512 in fact is wholly resolved).
12146 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
12148 * lib/charconv.c: steps towards resolution of #53512 (inspired by
12149 Alexey Novodvorsky <aen@logic.ru>'s patch).
12151 * app/menus.c (dia_menu_signal_proxy): checked that the signal
12152 handler is not NULL before transferring control to it... (fixes #52836)
12154 * app/app_procs.c (app_init): removed non-constant initialiser
12157 * objects/custom/custom_object.c:
12158 * objects/custom/shape_info.[ch]:
12159 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
12160 <skh@mathstar.com>. This add support for a <svg:text> shape
12161 element, and some related style properties (font, font height,
12164 * doc/custom_shapes: a precision about the meaning of case in a
12165 SVG path (closes #52364)
12167 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
12168 fixed by <drk@sgi.com>)
12170 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
12172 * objects/network/network.c:
12173 * shapes/network/Makefile.am:
12174 * shapes/network/hub.(shape|xpm) (NEW):
12175 * shapes/network/flash.(shape|xpm) (NEW):
12176 * shapes/network/rj45plug.(shape|xpm) (NEW):
12177 More shapes, less renderobjects.
12179 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
12181 * plug-ins/svg/render_svg.c: typo made exported ellipses
12182 corrupted (zero Y pseudo-radius).
12184 * objects/network/network.c:
12185 * objects/network/disc.c:
12186 * shapes/network/disc.(shape|xpm): Converted the first
12187 Renderobject into a shape. Normally, old diagrams should reload
12188 without problems (please check this against your diagrams). More
12189 flexibility should be gained that way. I intend to hunt and
12190 eradicate all renderobjects as I can commit cycles to that.
12192 * objects/Makefile.am:
12195 * objects/sybase/sybase.c:
12196 * shapes/sybase/Makefile.am(NEW):
12197 * shapes/sybase/client.(xpm|shape) (NEW):
12198 * shapes/sybase/dataserver.(xpm|shape) (NEW):
12199 * shapes/sybase/ltm.(xpm|shape) (NEW):
12200 * shapes/sybase/repserver.(xpm|shape) (NEW):
12201 * shapes/sybase/rsm.(xpm|shape) (NEW):
12202 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
12203 renderobjects into shapes. The Sybase objects are now not compiled
12204 anymore, and ready to be nuked if nobody objects in the next few weeks.
12207 * app/diagram.[ch]:
12208 * app/disp_callbacks.c:
12209 * app/display.[ch]:
12210 * app/interface.[ch]:
12212 * app/modify_tool.c:
12213 * app/preferences.[ch]:
12214 * app/recent_files.c:
12215 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
12216 a menu bar reflecting the popup menu, to each display window. This
12217 is optional (changing the preference currently doesn't affect
12218 already opened windows; a few other rough edges to cut).
12220 * plug-ins/wpg/wpg.c:
12221 * plug-ins/xfig/xfig-import.c:
12222 * plug-ins/python/pydia-property.c:
12223 * plug-ins/python/pydia-properties.c:
12224 * plug-ins/python/pydia-geometry.c:
12225 * plug-ins/pstricks/render_pstricks.c:
12227 * objects/EML/dbox.c:
12228 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
12231 * lib/ps-utf8.c: improved the clustering of alphabetic character
12232 definitions in custom encodings pages.
12234 2001-05-02 Hans Breuer <hans@breuer.org>
12236 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
12237 of 'obj_bb' to PROP_TYPE_RECT
12239 * objects/custom/custom_object.c : take all quarks into account,
12240 not only 4 as copy&paste suggests
12242 * objects/uml/objects.c : completed the implementation of the
12243 property api to avoid reading of totally bogus data. Removed
12244 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
12245 there was too much but too less ...
12247 The above changes removed all known crashes (mentioned below)
12248 from the Property API. Property access is still incomplete though.
12250 * objects/flowchart/box.c :
12251 * objects/flowchart/diamond.c :
12252 * objects/flowchart/ellipse.c :
12253 * objects/flowchart/parallelogram.c :
12254 * objects/uml/classicon.c :
12255 * objects/uml/state.c : calculate number of quarks from quark array
12256 size instead of using hardcoded values for consistence and to avoid
12257 future bugs like the above
12259 * objects/eml/nlist.c : include <string.h> for strcmp()
12261 * lib/dia_xml.c : relax g_warning for values, which
12262 appear to be too small. There is nothing which prevents
12265 * plug-ins/python/pydia-geometry.c : changed stringifying of
12266 geometry objects accept BezPoint back to %f, which does not
12267 crash anymore, because all the data is intialized now and it
12268 simply is more readable than %e ...
12270 * plug-ins/python/python-startup.py : removed dependency
12271 to PyGtk, because it isn't required here and probably won't
12272 in i.e.: export filters.
12274 * plug-ins/python/gtkcons.py : create the gtkoutfile even
12275 if sys.stderr.fileno() isn't supported
12277 * app/makefile.msc : make version 0.88
12278 * plug-ins/makefile.msc : make version 0.88 an added new
12279 xfig files to build
12281 2001-05-11 James Henstridge <james@daa.com.au>
12283 * NEWS: remember to add news items this time.
12285 * dia.spec: update spec file for 0.88 release.
12287 * configure.in: up version number to 0.88
12289 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
12290 preventing any of the useful python scripts from being
12293 * sheets/Makefile.am (sheet-translation-report): fix bustage I
12294 introduced in my fixups for the 0.87 release :(
12296 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
12298 * plug-ins/xfig/xfig-import.c: Finally got groups working.
12300 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
12302 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
12303 group manipulation.
12305 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
12307 * lib/ps-utf8.[ch]:
12308 * lib/Makefile.am: fix makefile breakage which led to not
12309 including ps-utf8.[ch] in the released tarballs.
12311 2001-05-09 James Henstridge <james@daa.com.au>
12313 * Makefile.am (core-translation-report): dist scripts needed for
12314 this target, and change to $(srcdir) before running.
12316 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
12317 files aren't automatically included in the tarball by automake
12318 because they could be generated files.
12320 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
12322 * doc/en/Makefile.am (install-data-hook): fix up where graphics
12325 * configure.in: up version number to 0.87
12327 * plug-ins/python/*.py: no longer necessary to explicitly set
12328 sys.argv, as python.c does it for us now (like it should).
12330 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
12333 * plug-ins/python/python-startup.py: startup script that imports
12334 all modules in $(datadir)/dia/python and ~/.dia/python.
12336 * plug-ins/python/python.c (dia_plugin_init): change so that it
12337 only runs the $(datadir)/dia/python-startup.py script. Make sure
12338 that sys.argv and __main__.__file__ are set when calling the
12341 * plug-ins/python/Makefile.am: update makefile. Make it install
12342 gtkcons.py plugin. I haven't set any other plugins to install, as
12343 they look like they are mainly for debugging purposes.
12345 * configure.in: add tests to detect if python is available, so we
12346 can build the python plugin. Only run if --with-python passed to
12349 2001-05-08 James Henstridge <james@daa.com.au>
12351 * acinclude.m4: add macros for detecting python.
12353 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
12354 at GNOME_APP_UI_SUBTREE entries.
12355 (menus_add_path): function to add a menu item to the menubars.
12356 Uses a hash table to keep track of extra menu items it adds. Also
12357 notifies the item factory about the entries so that accels can be
12359 (menus_add_path): implement gtk only version.
12360 (menus_init): use menus_add_path() to add the menu.
12361 (plugin_callback): simplify.
12363 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
12365 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
12367 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
12369 * plug-ins/xfig/xfig-export.c:
12370 * plug-ins/xfig/xfig-common.c:
12371 * plug-ins/xfig/xfig-import.c:
12372 * plug-ins/xfig/xfig.c:
12373 * plug-ins/xfig/xfig.h:
12374 * app/Makefile.am: Added support for exporting to Fig format
12375 (except splits, which are less powerful in Fig). Some refactoring
12378 2001-05-02 Hans Breuer <hans@breuer.org>
12380 * plug-ins/python/debug_objects.py : added another
12381 test to get massive crashes from the Property API due
12382 to unintialized data.
12384 * app/menu.c : the callback_action wasn't incremented
12385 (should have checked my last optimization). Now more
12386 than one plug-in callback is supported again.
12388 * plug-ins/python/pydia-geometry.c : avoid crashes from
12389 glib, when trying to g_strdup_printf unintialized floats.
12391 * plug-ins/python/pydia-property.c : avoid crashes from
12392 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
12394 2001-05-01 Hans Breuer <hans@breuer.org>
12396 * objects/makefile.msc : added eml
12397 * objects/eml/instantiation.c : initialize 'inst' pointer
12398 before using, zero initialization for objects
12399 * objects/eml/interaction-ortho.c :
12400 * objects/eml/interaction.c : zero initialization for objects
12402 * app/menus.c : removed Gimp mru stuff which slipped in at
12403 2000-08-15, was never activated and will never be needed,
12404 because of Steffens recent file list patch added at 2001-01-05.
12406 * objects/eml/*.c : some more zero initialization of objects
12407 to avoid infinite (uninitialized) bounding boxes
12409 Implemented a callback api which allows plug-ins to register
12410 menu call backs. Dia for Gnome should compile, but will need
12411 some extra tweaking to make it work because I can't test it.
12413 * plug-ins/python/pydia-error.h :
12414 * plug-ins/python/pydia-render.c : moved Pxthon function return
12415 value handling from pydia-render.c to pydia-error.h, to make it
12417 * plug-ins/python/diamodule.c : implement callback function
12418 registration from and relaying to Python code
12420 * app/menus.c : register and use plug-in menu callbacks
12422 * lib/filter.[hc] : implement filter_register_callback() and
12423 filter_get_callbacks() for the above
12424 * lib/libdia.def : export them
12426 * plug-ins/python/debug_objects.py (new file):
12427 sample using the above
12429 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
12431 * plug-ins/shape/shape-export.c (new_shape_renderer):
12432 The name of a shape is now taken from the dir, to conform with
12435 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
12437 * app/properties.c (properties_show): Added title containing
12438 object type, plus (hopefully) fix of the ghost properties dialog.
12440 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
12442 * app/display.c: remove the display idle handler in case we
12443 destroy the ddisplay (caused crashes in ddd, probably random
12444 crashes elsewhere).
12448 * Makefile.am: hack around gettext-0.10.36's new "features".
12450 * lib/properties.[ch]: added new function object_copy_props().
12451 Added new property type PROP_TYPE_ENDPOINTS
12453 * lib/connection.h: added support for load/saving through the
12454 properties interface.
12456 * lib/object.[ch]: object_load/save/copy_using_properties()
12457 support functions (code factorisations).
12459 * objects/GRAFCET/boolequation.c: check against null values in
12460 boolequation_set_value() and boolequation_destroy().
12462 * objects/GRAFCET/transition.c: Converted from lazyprops to
12463 standard properties. 31% less (x86) code !
12465 * objects/GRAFCET/condition.c: also converted from lazyprops to
12466 standard properties. Also killed lots of code.
12468 2001-04-13 Hans Breuer <hans@breuer.org>
12470 * plug-ins/wmf/wmf.cpp : changed text conversion from
12471 g_utf8_utf16 to g_convert usage. The latter function is already
12472 available in tml's last "official" Gtk+ version (2000-12-26).
12473 This change allows to use recent Dia with either the official
12474 version or the latest cvs "gtk-1-3-win32-production"-branch.
12476 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
12478 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
12479 * app/disp_callbacks.c:
12480 - Allow submenus in DiaMenus.
12481 - Don't require DiaMenu.title to be non-null (so that
12482 submenus aren't required to have titles)
12484 * objects/FS/function.c:
12485 - object menu now has submenus, an almost complete list of
12486 standard-basis verbs, and a start on nouns.
12487 - box padding, dash length, and other visual attributes are
12488 scaled by the font size... eventually font height will be
12489 a function property.
12490 - draw functions with smaller font to make initial view hold
12491 a reasonable number of functions.
12493 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
12496 * sheets/chronogram.sheet:
12497 * sheets/jigsaw.sheet:
12498 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
12499 Wieers <dag@wieers.com>
12501 2001-04-13 Hans Breuer <hans@breuer.org>
12503 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
12504 to ensure that all the deinitialization is only done once. Fixes
12505 recent app exit crash on win32
12507 * lib/dia_xml.c : provide isinf() replacement for msc which does only
12510 * lib/libdia.def : updated
12512 * objects/makefile.msc : added wanlink.c
12514 * objects/network/wanlink.c : added M_PI_2 definition for poor
12515 platforms which don't have one
12517 * objects/standard/arc.c :
12518 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
12519 initialized which led to rather huge bounding boxes (try Ctrl^A on
12520 diagrams with Arcs or ZigZagLines).
12521 * objects/*/*.c : to avoid further bugs like the above changed all
12522 object initializations to g_malloc0 or g_new0
12525 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
12527 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
12528 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
12530 * objects/UML/class.c:
12531 * objects/UML/usecase.c:
12532 * objects/UML/large_package.c:
12533 * objects/UML/message.c:
12534 * objects/UML/object.c:
12535 * objects/UML/lifeline.c:
12536 * objects/FS/flow.c:
12537 * objects/FS/flow-ortho.c:
12538 * objects/FS/function.c:
12539 * objects/custom/custom_object.c:
12540 * objects/GRAFCET/vergent.c:
12541 * objects/chronogram/chronoref.c:
12542 * objects/SADT/box.c:
12543 * objects/SADT/annotation.c:
12544 * plug-ins/dxf/dxf-import.c:
12545 * plug-ins/xfig/xfig-import.c:
12546 * plug-ins/wpg/wpg.c:
12549 * app/display.c: /* certainly more WIP than dead code there */
12550 Unused variables, unused static function definitions, forgotten or
12551 incomplete prototypes added or fixed, lack of const or unwanted const,
12552 etc. (mostly clean-ups of leftovers of the pre-properties era).
12553 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
12554 please check these.
12556 * app/lineprops_area.c: More of the same. Missing prototypes
12557 added, and functions unused outside made static.
12559 * app/recent_files.c:
12560 * app/properties.c:
12561 * app/defaults.c: some variables are used only when doing a GNOME
12564 * app/magnify.c: missing #include <stdlib.h>.
12566 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
12568 These are a lot of clean-ups (by the way, this compiles and runs
12569 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
12570 for DEAD_CODE, and if it's yours, judge it.
12572 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
12574 * plug-ins/dxf-import.c: some progress with the arcs; still some
12575 clean-ups to do and line width scaling issues to figure out.
12577 * objects/standard/arc.c: start_point and end_point properties
12578 (duplicated from standard/line.c)
12580 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
12583 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
12585 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
12586 preliminary support for arcs (doesn't work). Circles and ellipses are
12587 now transparent. Coordinate and width scaling are now a common
12588 static constant (probably before morphing into a preference).
12590 * sheet/checktrans.py: improved error reporting. Made checktrans
12591 count lack of <name xml:lang="code"> as a lack of translation for
12592 language "code" (no, it's not a plot to bring down other
12593 language's scores !)
12595 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
12596 in the header, and have <name xml:lang="fr"> components.
12598 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
12600 * objects/custom/custom_object.c: temporary hack to fix the shape
12601 bounding box reported by Ben A. Hetland. Proper fix isn't .87
12602 material, see bugzilla #52912.
12604 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
12606 * objects/standard/image.c (get_directory): Now uses
12607 G_SEPARATOR_CHAR_S instead of "/"
12609 * sheets/network.sheet:
12610 * sheets/Logic.sheet:
12611 * sheets/Flowchart.sheet:
12612 * sheets/Electric.sheet:
12613 * sheets/Circuit.sheet:
12615 * sheets/Pneumatic.sheet:
12616 * sheets/SDL.sheet:
12617 * sheets/UML.sheet:
12618 * sheets/GRAFCET.sheet:
12619 * sheets/MSE.sheet:
12620 * sheets/chronogram.sheet:
12621 * sheets/civil.sheet:
12622 * sheets/network.sheet:
12623 Danish translations.
12625 * objects/standard/image.c (get_directory): Changed get_directory
12626 to use g_dirname to find the directory part.
12628 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
12631 * sheets/Electric.sheet:
12632 * sheets/Flowchart.sheet:
12633 * sheets/Logic.sheet:
12634 * sheets/network.sheet: More Dutch translations from Dag Wieers.
12636 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12638 * sheets/checktrans.py: now emits a warning when two descriptions
12639 for a single language code are found.
12642 * sheets/Makefile.am: -translation-reports now also depend on their
12645 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12647 * sheets/Circuit.sheet:
12648 * sheets/Contact.sheet:
12649 * sheets/Logic.sheet:
12650 * sheets/chronogram.sheet:
12651 * sheets/sybase.sheet:
12652 Dutch translations from Dag Wieers <dag@wieers.com>
12654 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
12656 * po-checktrans.py: Now shows the detailed counts alongside the
12657 percentage of translations.
12659 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
12662 * po-checktrans (NEW):
12663 * po-checktrans.py (NEW): builds core-translation-report:
12664 percentages of core (gettext) translations done [Not placed into
12665 po/ where that should belong, because of integration fear^Wissues
12668 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
12669 sheets/sheet-translation-report probably ought to be copied on the
12670 user's /usr/share/doc/dia (or equivalent) directory.
12672 * sheets/Makefile.am: sheet-translation-report now a simple
12673 EXTRA_DIST; make install won't install it by default.
12675 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
12677 * app/preferences.c: changed the default grid colour to something
12680 * shapes/SDL/*.shape:
12681 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
12682 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
12683 DIA FILES (well, for files using SDL), see the mailing list
12684 archive "SDL (ab)using the global shape namespace" for a script to
12685 do this conversion.
12687 * sheets/SDL.sheet: translated into French
12688 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
12690 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
12692 * lib/dia_xml.c: made data_point() more paranoid
12694 * sheets/Makefile.am:
12695 * sheets/checktrans (NEW):
12696 * sheets/checktrans.py: Made checktrans handle more gracefully the
12697 absence of python and python-xml packages, and made the error
12698 message more helpful.
12700 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
12702 * lib/render_object.c (new_render_object): Made initial handles
12703 behave like on most other objects.
12705 * app/load_save.c (read_objects): Fixed premature free'ing ofr
12706 typestr causing garbage.
12708 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
12710 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
12711 accouting for handle ordering through copy and save. (#51479)
12713 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
12715 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
12717 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
12719 * sheets/Circuit.sheet
12721 * sheets/network.sheet: Updated German translations
12723 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12726 * app/lineprops_area.c: The return of the revenge of the arrow
12727 heads. Now all types covered by ISO 10303-201 should be covered.
12729 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12731 * sheets/Flowchart.sheet: translations in probably Hungarian were
12732 a victim of cut-n-paste from the German one. Fixed (hopefully).
12733 * sheet/UML.sheet: translation in probably Norwegian was a victim
12734 of cut-n-paste from the French one. Fixed (hopefully).
12735 * sheets/Logic.sheet: French translation not tagged with
12738 * sheets/checktrans.py:
12739 * sheets/Makefile.am: new file, sheet-translation-report, to be
12740 installed along the sheets, show how much of them has been
12741 translated into which language (I wish the result was prettier...)
12743 * po/README: most translators don't read this file, but anyway...
12745 * sheets/.cvsignore:
12746 * objects/network/.cvsignore: the usual negotiation with CVS.
12748 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
12750 * sheets/*.sheet: French translations
12752 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
12754 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
12756 ** objects/network/network.c:
12757 ** objects/network/wanlink.c:
12758 ** objects/network/pixmaps/wanlink.c:
12759 ** sheets/network.sheet:
12760 ** objects/network/Makefile.am: a better object to use instead of
12761 the older WAN Connection.
12763 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
12765 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
12768 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
12769 Arc; kept the C file name (because CVS wouldn't like it), and
12770 still registering the older object name (but advertising the newer
12771 one in sheets/GRAFCET.sheet).
12773 2001-03-24 Hans Breuer <hans@breuer.org>
12775 * app/dia.def : some plug-ins (currently only python, xfig) are using
12776 functions from the dia executable. To get them working these functions
12777 need to be explicit exported on win32. IMO the much cleaner way would
12778 be to move these functions to libdia, but that would require some
12779 long term restructuring ...
12781 * lib/libdia.def : updated
12783 * plug-ins/makefile.msc : build xfig plug-in
12785 2001-03-24 Hans Breuer <hans@breuer.org>
12787 * app/diagram.c : g_strdup (dia->filename) because it will be
12790 * app/display.c : set ddisp->renderer to NULL after destruction.
12791 This may solve or help to identify erroneous access to it after
12794 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
12795 get 'umlauts' working
12797 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
12799 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
12800 were reversed... (look for the patch, and drink a beer to my
12803 2001-03-23 Hans Breuer <hans@breuer.org>
12805 * app/app_procs.c : don't g_error () if the config directory
12806 can't be created (at least not on windoze) because it's quite
12807 common that the user don't read or understand the FAQ ...
12809 * app/cursor.c : use ddisplay_active () instead of active_display
12812 * app/display.[hc] : made active_display var static and provide
12813 an accessor funtion ddisplay_active_diagram ()
12815 * app/dia-props.c : don't store the active_diagram, but ask
12816 for it everytime it needed.
12818 * lib/properties.h : #include "intl.h"
12820 * lib/makefile.msc : need to take care of inclusion order to
12821 avoid clashes with gtk+2.0's gdk-pixbuf
12823 * objects/makefile.msc : added uml/stereotype.c to build
12825 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
12827 * **/*.c: Added config.h to the remaining .c files, and changed
12828 all to be <config.h>.
12830 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
12835 * app/lineprops_area.c: added new arrow types with double
12838 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
12840 * shapes/Civil/civil_gas_bottle.xpm
12841 * shapes/Civil/civil_gas_bottle.shape
12842 * sheets/civil.sheet
12843 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
12846 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
12848 * objects/custom/shape_info.c (load_shape_info):
12849 * objects/custom/shape_info.h:
12850 * objects/custom/custom_object.c (custom_update_data):
12851 Better support for text outside the box -- new attributes 'resize'
12852 and 'align' for text entity. Align not fully supported yet.
12854 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
12856 2001-03-20 James Henstridge <james@daa.com.au>
12858 * app/interface.c (display_data_received_callback): comment out
12861 2001-03-19 James Henstridge <james@daa.com.au>
12863 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
12865 * objects/UML/realizes.c: similar here.
12867 * objects/UML/implements.c: similar here.
12869 * objects/UML/component.c: similar here.
12871 * objects/UML/generalization.c: same here.
12873 * objects/UML/dependency.c: allow NULL for ->name and
12874 ->stereotype. This fixes a number of problems in loading saved
12877 * lib/properties.c: various changes so that NULL string properties
12880 * objects/standard/line.c (line_update_data):
12881 line->extra.start_long and line->extra.end_long were not being
12882 initialised. This fixes potential problems with the bounding box
12883 of "Standard - Line" objects.
12885 2001-03-19 Hans Breuer <hans@breuer.org>
12887 * app/commands.c : added win32 specific code to display a html
12888 file. #include "text.h" for text_delete_all prototype.
12891 * app/dia.rc : (new) to give Dia win32 an icon
12893 * app/win32print.[ch] : new files to support direct postscript
12894 file printing on win32. Beware: it *requires* a ps-printer!
12896 * app/paginate_psprint.c : disable the signal code for win32 build
12897 and added small specific changes to support win32print.
12899 * app/makefile.msc : added win32print and linking shell32.lib
12901 * lib/libdia.def : updated
12903 2001-03-18 Kevin Breit <battery841@mediaone.net>
12905 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
12908 2001-03-17 James Henstridge <james@daa.com.au>
12910 * app/paginate_psprint.c (diagram_print_ps): add code that traps
12911 SIGPIPEs during printing. This gets rid of a number of crashes
12912 caused by printing (eg. typing an incorrect print command).
12914 * dia.spec (%install): gzip the manpage.
12916 * lib/beziershape.c (beziershape_save): fix off by one error in
12917 beziershape save code, which was adding an extra segment to the
12920 * app/menus.c: add a separator in the gnome version of the help
12923 * app/app_procs.c (app_init): add a --nosplash argument which
12924 disables the splash screen.
12926 * app/dia_embedd.c (main): don't leave the splash screen open for
12927 embeddable component.
12929 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
12930 didn't seem to be showing the splash screen like expected, so I
12931 have replaced it with some code that calls gtk_main() until the
12932 first exposure of the window.
12934 2001-03-16 James Henstridge <james@daa.com.au>
12936 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
12938 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
12941 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
12943 * app/Makefile.am (dia_core_files): remove splash.h from file
12944 list, as it doesn't exist.
12946 * doc/en/Makefile.am (uninstall-local): remove the docdir on
12949 * doc/Makefile.am (uninstall-local): target to remove the C
12952 * dia.spec (%files): include the documentation in the package.
12954 * app/menus.c (toolbox_menu_items): add menu item for manual,
12955 which calls help_manual_callback.
12957 * app/commands.c (help_manual_callback): find help file and load
12958 netscape to view it.
12960 * app/commands.h: add prototype for help_manual_callback()
12962 * doc/Makefile.am (helpdir): similar here.
12964 * doc/en/Makefile.am (helpdir): make the helpdir
12965 $(pkgdatadir)/help/en in the non gnome case.
12967 * configure.in (HAVE_GNOME): add conditional.
12969 * doc/en/Makefile.am: handle the graphics in a more general way,
12970 so it is easier for Kevin to add them to the build (just add them
12971 to the GRAPHICS var).
12973 * app/Makefile.am (embed_extra_print_files): make the case of
12974 building without gnome-print support but with bonobo support work.
12975 dia-embedd needs to be include the gnome-print
12977 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
12979 * samples/Makefile.am: included all samples in the distribution....
12981 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
12983 * configure.in: removed premature test for DPS. Added -*- m4 -*-
12984 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
12985 vanished, removed it from ALL_LINGUAS.
12987 * lib/charconv.[ch] (NEW): a very small wrapper around
12988 unicode_iconv to convert strings between utf8 and local charset
12989 (actually, ISO-8859-1, though one can do
12990 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
12992 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
12993 library to help build Postscript streams which use as many custom
12994 font encodings as necessary to correctly represent all characters
12995 used (testing from users with non-latin1 and/or more than 256
12996 characters in routine use *very* welcome).
12998 * app/Makefile.am, lib/Makefile.am: integrated these into the
13001 * shapes/Logic/.cvsignore (NEW): .cvsignore
13003 * app/render_eps.h: forwarded some changes Lars forgot to include.
13004 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13007 2001-03-08 Kevin Breit <battery841@mediaone.net>
13009 * doc/en/home_network.png: Added file.
13010 * doc/en/line_props.png: Added file.
13011 * doc/en/usage-objects.sgml: Added two graphics to file.
13012 * doc/en/usage-quickstart.sgml: Added one graphic to file.
13014 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
13016 * app/grid.h: Place comment around text after #endif.
13017 * lib/bezier_conn.c: #include <string.h>.
13018 * lib/beziershape.c: #include <string.h>.
13019 * lib/connpoint_line.h: Comment after #endif.
13020 * lib/dia_dirs.c: #include <string.h>.
13021 * lib/element.c: Same.
13022 * lib/lazyprops.c: #include <config.h> and "intl.h".
13023 * lib/lazyprops.h: Comment out text after #endif.
13024 * lib/neworth_conn.c: #include <string.h>
13025 * lib/orth_conn.c: Same here.
13026 * lib/poly_conn.c: Here too.
13027 * lib/polyshape.c: And here.
13028 * lib/properties.c: Remove #include "intl.h" from here and add
13029 an array of static strings to work around bug in gettext that
13030 makes it miss strings in a #define body.
13031 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13032 * objects/GRAFCET/boolequation.h: Same here.
13033 * objects/chronogram/chronoline_event.h: Add prototype for
13036 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13038 * objects/FS/function.c:
13039 * objects/FS/flow.c:
13040 * objects/FS/flow-ortho.c:
13041 Updated to use properties.
13043 2001-03-03 James Henstridge <james@daa.com.au>
13045 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13046 button labels when creating them.
13048 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13050 * objects/UML/actor.c
13051 * objects/UML/realizes.c
13052 * objects/UML/implements.c
13053 * objects/UML/generalization.c
13054 * objects/UML/dependency.c
13055 * objects/UML/constraint.c
13056 Updated to use properties.
13058 * objects/UML/stereotype.c
13059 * objects/UML/stereotype.h
13060 Generalized to any kind of bracketting.
13062 2001-02-28 James Henstridge <james@daa.com.au>
13064 * app/menus.c: add help entry to the help menu. Need to get this
13065 working for the non GNOME case as well (maybe put help under
13066 $(datadir)/dia/help for non GNOME?)
13068 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13070 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13071 this element so that we get a meaningful filename in the html
13074 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13077 * configure.in (DB2HTML): add a check for the db2html program, and
13078 set an automake conditional if it is found.
13080 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13081 and descend into doc/ directory while building.
13083 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13084 we need more complex rules for building the docs.
13086 2001-02-25 Hans Breuer <hans@breuer.org>
13088 * config.h.win32 : some cleanup
13090 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13091 are deprecated since glib-1.3.2. Sorry needing to use them
13092 contionally, but there is no glib-1.2 for win32
13094 * app/recent_files.c : use g_strescape (params) conditionally
13096 * lib/connection.c : include string.h for memcpy
13098 * lib/geometry.h : added some stuff for compatibility with
13099 msvc, which previously came from included config.h
13101 * lib/libdia.def : updated
13103 * objects/makefile.msc : updated
13105 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
13106 'extra' used without having been initialized
13108 * objects/network/bus.c(658) : initialize 'extra'
13110 * plug-ins/makefile.msc : updated
13112 * plug-ins/cgm/cgm.c :
13113 * plug-ins/pstricks/render_pstricks.c :
13114 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
13117 * plug-ins/python/python.c : use HAVE_DIRENT_H
13119 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13121 * lib/connection.c (connection_update_boundingbox):
13122 Made the BB shrink on right and lower sides, too.
13124 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
13126 * */*.c: #incude <config.h> at the top.
13127 * */*.h: Remove include of "config.h" since it should only
13128 be included in .c files and at the very top for things to
13130 * sheets/*.sheet: Updated Norwegian translations.
13132 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13134 * objects/UML/small_package.c:
13135 * objects/UML/class.c:
13136 * objects/UML/node.c:
13137 * objects/UML/usecase.c:
13138 * objects/UML/lifeline.c:
13139 * objects/UML/message.c:
13140 Various cleanup of properties in particular. Now much more use of
13141 standard properties.
13143 * lib/diagramdata.c (layer_render): Visualization of bounding
13144 boxes, for debugging purpoises.
13146 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
13149 * lib/connection.[ch]:
13150 * lib/poly_conn.[ch]:
13151 * lib/polyshape.[ch]:
13152 * lib/bezier_conn.[ch]:
13153 * lib/beziershape.[ch]:
13154 * lib/orth_conn.[ch]:
13155 * lib/neworth_conn.[ch]:
13156 * lib/element.[ch]: Changed a bit the _update_boundingbox()
13157 interface. Now the parent elements have an extra_spacing
13158 structure, which child objects just need to fill, to take care of
13159 most arrow & line width extra space needs.
13161 * objects/**/*.c: updated all objects to the new interface.
13162 While at it, killed all instances of (Object *) downcasts (phew !)
13164 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
13165 doesn't speak about.
13167 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13169 * sheets/Logic.sheet: New sheet for Logic symbols.
13171 2001-02-21 James Henstridge <james@daa.com.au>
13173 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
13174 widget by its path name. Walks the GnomeUIInfo heirachy rather
13175 than widget tree, compares untranslated label names and ignores
13176 underscores in the labels.
13177 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
13178 lookups are not dependent on the current locale, as with
13179 gnome_app_find_menu_pos.
13181 * acconfig.h: guard against multiple inclusion of config.h.
13183 * app/select.c (select_style_callback): simply set the selection
13184 style to the value of action.
13186 * app/menus.c (menus_init): simplify the item factory based menu
13187 code a bit. It looks like it was using some code cut and pasted
13188 from the gimp, which looked a bit unnecessary. Things work fine
13190 (selectmenu): set the action to the type of selection mode
13192 (display_menu_items): use the symbolic enumeration values for the
13195 * app/plugin-manager.c:
13196 * app/plugin-manager.h:
13200 * app/select.h: change prototypes.
13202 * app/commands.c: update all callback prototypes, and get rid of
13203 some #ifdef GNOME's.
13205 * app/commands.h: change function prototypes.
13207 * app/dia_embedd.c (save_fn):
13208 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
13210 * app/menus.c (menus_init): for gnome menus, use
13211 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
13212 structure that proxies the callbacks to have the same signature as
13213 GtkItemFactory type 1 callbacks.
13214 (menus_init): for GTK menus, change from callback type 2 to type
13216 (display_menu_items): add back tearoffs. I don't know who removed
13217 these for the gtk menu case.
13219 2001-02-20 Kevin Breit <battery841@mediaone.net>
13221 * doc/en/usage-objects-special.sgml: Fixed a few of the special
13222 object descriptions. More to come in the next few days.
13224 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
13226 * app/render_eps.c: Fixed for internationalized floating point
13229 * objects/UML/note.c: Fixed properties -- was missing
13230 Get/ApplyPropertiesFunc. Also improved update to recalculate text
13233 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
13235 * plug-ins/xfig/xfig-import.c:
13236 File added importing xfig files. Still very rough, but good
13237 enough to let others hack on it.
13239 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
13242 * app/linewidth_area.c:
13244 * lib/properties.c:
13246 * objects/ER/attribute.c:
13247 * objects/ER/entity.c:
13248 * objects/ER/relationship.c:
13249 * objects/custom/custom_object.c:
13250 * objects/flowchart/box.c:
13251 * objects/flowchart/diamond.c:
13252 * objects/flowchart/ellipse.c:
13253 * objects/flowchart/parallelogram.c:
13254 * objects/standard/box.c:
13255 * objects/standard/textobj.c: per Vlad Harchev's request, made
13256 page sizes of gtk_adjustments different than their step sizes.
13257 When sensible values of page size weren't found (overwhelming
13258 majority of cases), page sizes were set to 10.0 * respective step
13261 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
13263 * objects/network/hub.c:
13264 Patch from Hubert Figuiere applied, adding connection points.
13266 2001-02-02 James Henstridge <james@daa.com.au>
13268 * app/display.c (new_display): set update id to 0 here.
13269 (ddisplay_update_handler): rename from ddisplay_flush, and set
13270 update_id to 0 at end of processing.
13271 (ddisplay_flush): new implementation that simply sets an idle
13272 handler to perform the actual drawing.
13274 * app/display.h: add structure member to hold the redraw idle
13277 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
13279 * objects/standard/ellipse.c (ellipse_copy):
13280 * objects/standard/zigzagline.c (zigzagline_copy):
13281 Fix of copying provided by Martin Hawlisch.
13283 2001-01-23 Kevin Breit <battery841@mediaone.net>
13285 * doc/en/graphics/: added directory
13287 * doc/en/graphics/greendots.png: added file
13289 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
13292 2001-01-23 Kevin Breit <battery841@mediaone.net>
13294 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
13295 thanks to John Fleck!
13297 2001-01-21 Kevin Breit <battery841@mediaone.net>
13299 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
13301 2001-01-12 Michael Meeks <michael@helixcode.com>
13303 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
13304 so our POA gets setup properly.
13306 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
13307 things we g_malloc.
13309 * configure.in: Use bonobox_print.
13311 * app/dia_embedd.c (embeddable_factory): add print interface.
13312 (object_print): impl.
13314 2001-01-11 Michael Meeks <michael@helixcode.com>
13316 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
13317 (load_fn, save_fn): impl.
13318 (view_factory): hide modified status bar, & use activate fn.
13319 (refresh_view): force redraws of the views.
13320 (view_show_hide): split from
13321 (dia_view_activate): here.
13323 * app/diagram.c (diagram_load_into): split from diagram_load.
13324 (new_diagram): simplify bu splittin stuff into
13325 (diagram_init): here.
13327 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
13329 * shapes/jigsaw/*.shape: replaced #000000 with foreground
13330 and #ffffff with background
13332 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
13334 *configure.in: GTK+-build was broken due to missing
13337 2001-01-06 Michael Meeks <michael@helixcode.com>
13339 * app/dia_embedd.c (main): add running context support.
13340 (dia_embeddable_destroy): remove old running object counting.
13341 (embeddable_factory): ditto.
13342 (view_factory): comment out menu path hiding.
13344 * lib/sheet.c (load_register_sheet): use free to free
13345 stuff from libxml not g_free.
13347 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
13349 * configure.in: remove USE_OAF checks, check for a precice
13350 Bonobo version >= 0.31, revamp bits.
13352 * app/dia_embedd.c (init_server_factory): upd.
13353 (init_dia_factory): remove OAF conditionals, everything uses
13356 * app/GNOME_Dia.oafinfo: rename OAFIIDs
13358 * app/Makefile.am: remove ancient gnorba code.
13359 rename dia.oafinfo to GNOME_Dia.oafinfo
13361 2001-01-07 Hans Breuer <Hans@Breuer.Org>
13365 * readme.win32 : some more files required or useful to build
13368 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
13369 fill_bezier implementation, boundary drawing in fill mode, etc.
13370 Next one complaining gets the source, uncommented ...
13372 * shapes/network/router-symbol.xpm
13373 * shapes/network/switch-atm-symbol.xpm
13374 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
13375 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
13376 the files as XPMs. Maybe the X versions of these functions are more
13379 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
13381 * plug-ins/python/Makefile.am: added libart path
13383 * plug-ins/python/python.c: added dirent.h
13385 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
13387 2001-01-06 Hans Breuer <Hans@Breuer.Org>
13389 * objects/uml/actor.c
13390 * objects/uml/branch.c
13391 * objects/uml/class.c
13392 * objects/uml/classicon.c
13393 * objects/uml/component.c
13394 * objects/uml/large_package.c
13395 * objects/uml/node.c
13396 * objects/uml/note.c
13397 * objects/uml/object.c
13398 * objects/uml/small_package.c
13399 * objects/uml/state.c
13400 * objects/uml/usecase.c : started to implement the generic property
13401 interface for the uml objects. Would appreciate some help on how
13402 to implement properties which are list of properties themselves,
13403 e.g. member functions and their parameters of UMLClass.
13405 2001-01-06 Hans Breuer <Hans@Breuer.Org>
13407 * plug-ins/python/diamodule.c : finally ported to win32.
13408 Added new objects and implemented register_export function.
13410 * plug-ins/python/pydia-object.h
13411 * plug-ins/python/pydia-display.c
13412 * plug-ins/python/pydia-handle.c
13413 PyObject_HEAD_INIT needs some tweakink on win32. Done in
13414 pydia-object.h; others files simply using it.
13416 * plug-ins/python/pydia-layer.c : reflect
13417 layer_find_closest_connection(_)point renaming
13419 * plug-ins/python/pydia-object.c : add property properties.
13420 Also change bounding_box to DiaRectangle.
13422 * plug-ins/python/python.c : extended error reporting; use
13423 all *.py files from Dia's plug-in dir instead of hardcoded
13424 test.py. This sollution should be fine with Win32, but on
13425 Unix it may need some tweaking (dunno) ...
13427 * plug-ins/python/export-object.py
13428 * plug-ins/python/export-render.py : test and documentation
13429 implementations for export filter implementations in Python
13431 * plug-ins/python/pydia-color.[hc]
13432 * plug-ins/python/pydia-diagramdata.[hc]
13433 * plug-ins/python/pydia-error.[hc]
13434 * plug-ins/python/pydia-export.[hc]
13435 * plug-ins/python/pydia-font.[hc]
13436 * plug-ins/python/pydia-geometry.[hc]
13437 * plug-ins/python/pydia-image.[hc]
13438 * plug-ins/python/pydia-properties.[hc]
13439 * plug-ins/python/pydia-property.c
13440 * plug-ins/python/pydia-render.c : new objects in new files
13442 * plug-ins/python/makefile.am : added new files but can't test it
13444 * plug-ins/python/pydia.def
13445 * plug-ins/python/makefile.msc : for win32 build
13447 * plug-ins/cgm/cgm.c
13448 * plug-ins/dxf/dxf-import.c
13449 * plug-ins/dxf/dxf-export.c
13450 * plug-ins/hpgl/hpgl.c : reflect export API change
13452 * plug-ins/shape/shape-export.c : reflect export API change
13453 and check for libart (better the availibility of a png exporter)
13454 at run-time instead of compile-time.
13456 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
13458 * app/recent_files.h was missing from Hans's commit
13460 * plug-ins/shape/shape_export.c: shape export was broken
13461 due to interface changes
13463 2001-01-05 Hans Breuer <Hans@Breuer.Org>
13465 Applied Steffen's recent file list patch :
13466 * app/Makefile.am : added recent_files.[hc]
13467 * app/diagram.c : add files to recent file list
13468 * app/menus.c : add recent file menu
13469 * app/app_procs.c : changed initialization order to
13470 make recent file list work with command line processing.
13472 The Filter export()/import() functions have got an additional
13473 parameter to allow multiple filters via one C callback (required
13474 for Python bindings)
13476 * app/commands.[hc] : corrected the signature for gtk menu callback
13477 functions, which actually use the second or third parameter. This
13478 is the absolute minimum change to make these functions/menu entries
13479 work again. Using the other possible gtk menu callback signature
13480 would have required one more function to change. (see mailing list
13481 thread "Objects/Align/Equal Distance" for more information.
13483 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
13484 zoom-combo focus patch
13487 * app/interface.c : wrapped the Zoom Combo code into
13488 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
13489 improvement but cluttering the user interface. Also it wasn't
13490 compiling on Win32 anyway. The win32 version does define
13491 WITHOUT_ZOOM_COMBO to keep the old look.
13492 There are plans to use the statusbar to display size and placement
13493 of selected objects, whereas the Zoom Combo would need to get out
13494 of the way as well.
13496 Added "Save Changes?" to diagram close dialog. Hopefuly the
13497 Yes/No/Cancel option isn't too much windoze like. IHMO this is
13498 an useability improvement.
13503 * app/layer_dialog.c
13504 * app/paginate_psprint.c
13506 - reflect signature changing of filter->export function
13507 - replaced '/' with G_DIR_SEPARARTOR where appropriate
13509 * app/diaunitspinner.c
13510 * app/render_libart.c
13511 added misssing headers like <string.h>
13513 * app/object_ops.c : fixed copy&paste bug in dialog string
13515 * app/splash.c : gdk_widget_show_now () does not ensure actual
13516 drawing of the splash screen, at least not on win32. Reuse the
13517 previous implementation with gtk_main_iteration() again.
13519 * */makefile.msc : make use of the build module (available in
13520 gnome-cvs/build. Updated for other source changes
13522 * lib/filter.h : added an user_data pointer to <ex/im>port()
13523 function signature and Dia<Im/Ex>portFilter to allow different
13524 filters to reuse the same callback function
13526 * lib/font.c : #include <string.h>
13531 * lib/neworth_conn.c
13532 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
13534 * */*.def : export function definition files required by win32 build
13536 * objects/custom/custom.c : #include <string.h>
13538 * plug-ins/pstricks/render_pstricks.c
13539 * plug-ins/shape/shape_export.c
13540 * plug-ins/svg/render_svg.c
13541 reflect changes to filter export function signature
13543 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
13544 mostly work as expected
13545 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
13546 to build the wmf plug-in because on the one hand the GDI emulation
13547 isn't finished and on the other hand it isn't required when building
13548 for win32. Is there anybody out there, who wants to save WMF on non
13549 windoze platforms ?
13551 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
13552 offset into account.
13554 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
13556 * app/Makefile.am: added missing plug-ins to run_dia.sh
13558 * lib/paper.c: added paper sizes A0, A1, A2
13560 * objects/UML/class.c
13561 objects/UML/class.h
13562 objects/UML/class_dialog.c: added support for colored UML
13565 2000-12-30 Kevin Breit <battery841@mediaone.net>
13567 * doc/en/usage-customization.sgml: added more content
13569 2000-12-24 Kevin Breit <battery841@mediaone.net>
13571 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
13572 <remy.viard@laposte.net>
13574 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
13576 * added limiting lines to Civil Engineering sheet,
13577 fixed vertical pump icon
13579 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
13581 * updated/additional Civil Engineering shapes: better icons,
13582 shapes use foreground/background colors now and are filled
13584 2000-12-03 Kevin Breit <battery841@mediaone.net>
13586 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
13587 the selection <sect1>
13589 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
13591 * app/load_save.c (diagram_data_save): avoid using obsoleted
13592 libxml calls (only matters when compiling with libxml2)
13594 2000-11-25 James Henstridge <james@daa.com.au>
13596 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
13597 handle the tool drops on the canvas.
13599 * app/interface.c (display_data_received_callback): do the check
13600 to make sure that the drag is from a local toolbox here as well.
13602 * app/interface.c (create_tools): unref the pixmap/mask after
13603 creating the GtkPixmap.
13604 (tool_setup_drag_source): function to set up a drag source for
13605 create object tool buttons.
13606 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
13607 (fill_sheet_wbox): same here.
13608 (create_display_shell): set up the display canvas as a drag
13610 (display_drop_callback, display_data_received_callback): functions
13611 to handle drops of tool buttons.
13613 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
13614 does weird shit to the user_data pointer for a menu item. Object
13615 alignment should work again now.
13617 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
13618 NULL, and mark this function static.
13619 (app_splash_init): use gtk_widget_show_now() instead of the
13620 gtk_main_iteration loop.
13621 (app_splash_init): connecting gtk_widget_destroy to the destroy
13622 signal of a widget seems pretty useless.
13624 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
13626 * doc/en/dia-manual.sgml:
13627 Added sect1 for advanced object types. Starting development
13630 2000-11-18 Kevin Breit <battery841@mediaone.net>
13632 * doc/en/dia-manual.sgml:
13633 Stupid spelling fixes.
13635 2000-11-18 Kevin Breit <battery841@mediaone.net>
13637 * doc/en/dia-manual.sgml:
13638 Just some small changes I made. Props to Greg LeBlanc on the
13641 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
13644 (ddisplay_add_display_area): Clip input rectangle to
13645 the visible part of the display.
13646 (ddisplay_scroll): Optimization, don't scroll and
13647 redraw if moving to the same position as before.
13649 * app/render_libart.c (renderer_libart_copy_to_window):
13650 Removed sanity check. Now moved to ddisplay_add_display_area().
13653 Added return at end of file.
13655 2000-11-13 Kevin Breit <battery841@mypad.com>
13656 * doc/en/dia-manual.sgml
13657 Commited manual changes from Henry House <hajhouse@houseag.com>
13659 2000-10-21 Hans Breuer <Hans@Breuer.Org>
13660 * lib/beziershape.c :
13661 The previous code was accessing unowned memory due to IHMO
13662 wrong index calculation. Now it appears to be fixed.
13666 * plug-ins/makefile.msc
13667 * objects/makefile.msc
13668 * app/makefile.msc: (new files)
13669 Makefiles for Dia on Win32, Micro$oft VC only.
13671 * plug-ins/pstricks/render_pstricks.c
13672 * plug-ins/dxf/dxf-import.c
13673 * plug-ins/shape/shape-export.c
13674 * plug-ins/svg/render_svg.c
13677 * app/preferences.c
13681 * objects/custom/custom.c
13682 * objects/standard/image.c
13683 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
13684 where appropriate, add missing prototypes like <string.h>
13686 * plug-ins/wmf/wmf_gdi.cpp
13687 * plug-ins/wmf/wmf_gdi.h:
13688 start of wmf write functions for non Win32 platform. Not
13689 finished yet. The other way to get it working maybe to
13690 link the plug-in against wine libs.
13692 * plug-ins/wpg/wpg.c : add missing brace
13694 * app/load_save.c :
13695 Handling for unknown objects at load time. Previously Dia
13696 was crashing, if you try to load a file referencing objects
13697 whiches plug-ins aren't installed/available. Now it spits out
13698 a warning and ignores the unknown objects.
13701 toolbox DND support for files like The Gimp does it.
13705 Simple splash screen support and usage.
13708 Splash screen, portability fixes, dont' g_error if there is
13709 g_get_homedir return NULL. This may remove the one and only
13713 Make it compile without ENABLE_NLS
13715 * app/render_libart.c :
13716 Sanity check to avoid calling libart with wrong window coordinates.
13717 They come from the update handler. Direct Gdk is dealing nicely
13718 with coordinates out of range, libart does access un-owned memory
13719 in this case, mostly causing crashes.
13721 * app/winmain.c: (new file) Export the Win32 Gui version of the
13722 main function. This file is only required for Windoze.
13724 * app/splash.c: (new file) splash screen implementation
13728 * lib/diavar.h: (new file)
13729 moved special variable export code to diavar.h, because it is
13730 needed in color.h and font.h
13733 M$VC cann't export inlined functions. Quick hack to let it
13734 link again. Probably the glib mechanics should be used here?
13736 * objects/UML/lifeline.c : initialize var before usage
13738 * objects/GRAFCET/step.c : removed unused var
13740 2000-10-14 James Henstridge <james@daa.com.au>
13742 * app/render_gnomeprint.c (draw_image): change code so images
13743 don't get flipped when printing.
13745 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
13746 sure that the return value of
13747 gnome_print_context_new_with_paper_size is not NULL.
13749 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
13750 into a series of bezier segments.
13751 (fill_arc): similar code to handle filled arc segments.
13753 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
13760 * app/disp_callbacks.c
13762 * app/linewidth_area.c
13763 * app/paginate_psprint.c
13764 * app/preferences.c
13768 * app/neworth_conn.c
13770 * objects/standard/box.c: various small changes to get rid of
13771 annoying warnings (eg faulty prototypes and unused variables)
13773 * app/disp_callbacks.c
13776 * app/magnify.h: update magnify tool icon when pressing/releasing
13777 shift. I will try to make something more general so that similar
13778 things can be used by other tools.
13780 * shapes/SDL/inout.shape
13781 * shapes/SDL/return.shape: fixed some typos
13783 2000-10-09 James Henstridge <james@daa.com.au>
13785 * objects/custom/shape_info.c (parse_path): apply patch from
13786 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
13789 2000-10-08 James Henstridge <james@daa.com.au>
13791 * objects/standard/image.c (image_set_props): if the file could not
13792 be loaded, show the broken image icon.
13794 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
13796 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
13798 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
13799 object icon when loading from a file. This allows you to have PNG
13800 icon files for shapes.
13802 2000-10-07 James Henstridge <james@daa.com.au>
13804 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
13806 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
13807 GDK_IMLIB_CFLAGS reference.
13809 * app/commands.c (help_about_callback): remove imlib code.
13811 * lib/dia_image.c: only include the pixbuf version of the image
13814 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
13816 * configure.in (CPPFLAGS): remove the check for imlib, as we now
13817 require gdk-pixbuf.
13819 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
13820 conditionally define \setfont as well.
13822 2000-10-05 James Henstridge <james@daa.com.au>
13824 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
13825 preamble so that we define \setlinejoinmode and \setlinecaps
13826 commands conditionally on them being undefined. This way, the
13827 pstricks output files should work without modification, and will
13828 support the commands when they are implemented in pstricks.
13830 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
13832 * dia.desktop: added hungarian translations to dia.desktop
13834 2000-10-04 James Henstridge <james@daa.com.au>
13836 * sheets/UML.sheet: fix typo.
13838 * objects/custom/shape_info.c: use strtod instead of g_strtod.
13839 (parse_path): actually call setlocale around strtod calls.
13841 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
13842 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
13843 the g_strtod wrapper.
13845 * shapes/SDL/: add SDL shapes from Rubens Ramos
13846 <rubens_ramos@yahoo.com>
13848 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
13850 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
13852 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
13853 W. Michael Petullo <mike@flyn.org>.
13855 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
13856 from the 0.86 tarball) and jigsaw.sheet.
13858 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
13860 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
13862 * shapes/network/: add network-additional shapes here.
13864 * sheets/network.sheet: add the network-additional shapes from
13865 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
13868 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
13870 * configure.in: Updated ALL_LINGUAS
13872 * po/nl.po: Removed newline from translation
13874 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
13876 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
13877 logo filename generation.
13879 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
13880 Avoiding "//dia_logo.png".
13882 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
13884 * app/filedlg.c: add include <sys/types.h> to
13885 remove warning. (OS/2)
13887 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
13889 * objects/chronogram/chronoline_event.c (reparse_clevent):
13890 the __checksum routine was simply bogus. Redone it in a slightly
13891 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
13893 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
13895 * app/create_object.c (create_object_button_press):
13896 * app/modify_tool.c (click_select_object):
13897 * lib/object.h: select renamed to selectf to prevent
13898 compiler problems with function select(). OS/2 version.
13900 2000-09-08 Karsten Weiss <knweiss@gmx.de>
13902 * po/de.po: Updated.
13904 2000-09-07 Karsten Weiss <knweiss@gmx.de>
13906 * dia.desktop: Added German translation
13907 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
13909 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
13911 * configure.in (ALL_LINGUAS): added "es"
13913 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
13918 * app/scroll_tool.c:
13919 Standardized cursor function get_cursor(). Magnify now has
13920 looking-glass cursor with + and -.
13922 * app/create_object.c (create_object_button_press):
13923 Newly created connections now snap to connection points even when
13926 2000-08-17 Daniel Egger <egger@suse.de>
13928 * app/menus.c: #ifdef'ed some code for the none GNOME
13930 * app/dia_embedd.c: Changed obvious hackery. Can anyone
13931 please have a look at the GNOME UI menu creation? The
13932 gnome-app-helper code is ages old and plainly broken!
13934 2000-08-15 Daniel Egger <egger@suse.de>
13941 * app/select.c: First big patch to get the menus
13942 working again in the international version. Copied
13943 some code written by Sven and me from GIMP and
13944 thus implemented automatic tearoffmenu creation and
13945 proper translation. I also removed that pseudo
13946 radiomenu hack and cleaned up several translation
13947 hacks which have never really worked. All in all
13948 this is part I of the big menu patch. Enjoy and tell
13949 me if you detect any problems.
13951 2000-08-14 Daniel Egger <egger@suse.de>
13953 * sheets/UML.sheet: Changed one German translation as
13954 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
13956 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
13958 * app/diapagelayout.c:
13959 * lib/diagramdata.c:
13960 * lib/diagramdata.h:
13963 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
13964 selecting paper size for a new diagram. TODO: Use libpaper if
13965 available and use gnome_paper-stuff if using GNOME.
13967 * sheets/Electric.sheet: fixed typo.
13969 2000-08-08 James Henstridge <james@daa.com.au>
13971 * po/README: added a readme file to tell translators to translate
13972 the .sheet files as well.
13974 * app/commands.c (help_about_callback): fix small bug where we tried
13975 to gdk_bitmap_unref() the mask for the about box image, even though
13976 it was NULL. Now check for a NULL mask.
13978 2000-08-07 Daniel Egger <egger@suse.de>
13980 * sheets/*.sheet: Added translations for the name
13981 in the toolbar tab. Brushed up some descriptions
13982 and some translations a bit.
13984 2000-08-06 James Henstridge <james@daa.com.au>
13986 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
13987 identifier and dtd url for SVG output.
13988 (new_svg_renderer): fix the output of the viewBox output. The
13989 second two numbers are the width and height -- not the right
13990 and bottom sides of the box.
13992 * shapes/*/*.shape: update svg namespace URI.
13994 * objects/custom/shape_info.c (load_shape_info): change the
13995 namespace URI for custom shapes yet again to match the Candidate
13996 Recommedation. It looks like this one will probably be the final
13999 * app/display.c (new_display): remove the code that sets ic and
14000 ic_attr members to NULL, as one of the previous function calls
14001 causes the display to be realised. This means that the ic gets
14002 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14005 2000-08-06 James Henstridge <james@daa.com.au>
14007 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14009 * NEWS: fixed date in NEWS file, as I will release today.
14011 * README: updated the README a little. Added note that Dia is now
14014 * dia.spec: fix up spec file.
14016 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14018 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14019 get heaps of warnings when you turn off debugging.
14020 Also made a few other warning fixes.
14022 2000-08-02 James Henstridge <james@daa.com.au>
14024 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14026 * configure.in: update version number.
14028 2000-08-01 James Henstridge <james@daa.com.au>
14030 * app/commands.c (help_about_callback): add Hans to about dialog.
14032 * doc/shape.dtd: dtd for shape file format.
14034 * doc/custom-shapes: update doc file about creating custom shapes.
14036 * shapes/*/*.shape: change namespace URI for the SVG portion to the
14037 one for the latest draft.
14039 * shapes/*/*.shape: fix up rect definitions.
14041 * objects/custom/shape_info.c (load_shape_info): recognise newer
14042 namespace tag for SVG.
14043 (parse_svg_node): the rect element should take attributes x, y, width
14044 and height -- not x1,y1,x2,y2.
14046 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14047 output to use the newest draft DTD.
14049 * plug-ins/svg/svg.c: initialisation code for plugin.
14051 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14053 * plug-ins/svg/Makefile.am: makefile for svg plugin.
14055 * app/app_procs.c (internal_plugin_init): don't register the svg
14056 export filter here.
14058 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14060 2000-07-31 James Henstridge <james@daa.com.au>
14062 * objects/standard/textobj.c (textobj_get_defaults):
14063 * objects/standard/polygon.c (polygon_get_defaults):
14064 * objects/standard/image.c (image_get_defaults):
14065 * objects/standard/ellipse.c (ellipse_get_defaults):
14066 * objects/standard/box.c (box_get_defaults):
14067 * objects/standard/beziergon.c (beziergon_get_defaults):
14068 * objects/flowchart/parallelogram.c (pgram_get_defaults):
14069 * objects/flowchart/ellipse.c (ellipse_get_defaults):
14070 * objects/flowchart/diamond.c (diamond_get_defaults):
14071 * objects/flowchart/box.c (box_get_defaults):
14072 * objects/custom/custom_object.c (custom_get_defaults):
14073 * objects/FS/flow.c (flow_get_defaults):
14074 * objects/FS/flow-poly.c (flow_get_defaults):
14075 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14078 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14079 widgets for various object types.
14080 (create_dialog): ref and sink the no_defaults_dialog.
14082 * app/preferences.c (prefs_create_dialog): change
14083 gtk_container_border_width call to gtk_container_set_border_width.
14085 2000-07-29 James Henstridge <james@daa.com.au>
14087 * app/commands.c (view_aa_callback): show a warning dialog if
14090 * app/interface.c (fill_sheet_menu): don't add a menu item for
14093 2000-07-26 James Henstridge <james@daa.com.au>
14095 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14097 * app/menus.c: remove edit grid menu item.
14099 * app/commands.[ch] (view_edit_grid_callback): removed.
14101 * app/display.c (new_display): don't initialise removed Grid members.
14103 * app/grid.c: remove unused functions.
14105 * app/grid.h: remove dialog related stuff from Grid structure.
14106 Remove prototypes for dialog functions.
14108 * app/menus.c: add to menus
14110 * app/commands.[ch] (view_diagram_properties_callback): new command
14111 for showing the diagram properties dialog.
14113 * app/dia-props.[ch]: a new diagram properties dialog. To replace
14114 the edit grid dialog.
14116 2000-07-25 James Henstridge <james@daa.com.au>
14118 * app/grid.c (grid_x_update):
14119 (grid_y_update): as the grid setting is stored with the diagram,
14120 update all displays when a change is made.
14122 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14124 * app/create_object.c (create_object_button_press):
14125 (create_object_motion): use new snap_to_grid signature.
14127 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14128 and handle invisible grid lines.
14129 (snap_to_grid): use new grid settings. Also changed signature to
14130 take a DDisplay rather than Grid pointer.
14131 (grid_show_dialog): get the defaults from the correct place.
14133 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14135 * app/diagram.c (new_diagram): set the grid size defaults from the
14138 * app/load_save.c (diagram_data_save): save grid and guide info to
14140 (diagram_data_load): add guide and grid load support.
14142 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14145 * lib/diagramdata.h: add members to DiagramData for grid and guide
14148 * configure.in (BONOBO_LIBS): update configure scripts
14150 * app/dia.oafinfo: oafinfo file for dia embeddables.
14152 * app/dia_embedd.c: add OAF support.
14154 2000-07-24 James Henstridge <james@daa.com.au>
14156 * plug-ins/wpg/Makefile.am:
14157 * plug-ins/pstricks/Makefile.am:
14158 * plug-ins/hpgl/Makefile.am:
14159 * plug-ins/dxf/Makefile.am: same here.
14161 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
14162 the required libraries, and the link line was causing libtool not
14163 to build a shared library on some systems :(
14165 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
14166 be checking x, not n.
14168 2000-07-23 James Henstridge <james@daa.com.au>
14170 * app/preferences.c (prefs_data): set the "reset tools after
14171 create" preference to true by default. That seems to be what most
14174 * app/interface.c (create_sheets): instead of a notebook, use an
14175 option menu that updates the sheet tools. The notebook tabs were
14176 getting a bit unwieldly, so the option menu should fix that. This
14177 also reduces the number of widgets in the tools radio button
14178 group, which should make the UI a little more responsive.
14180 2000-07-19 Fatih Demir <kabalak@gmx.net>
14182 * configure.in: Added tr to ALL_LINGUAS.
14183 [ Yeah, we're now having a Turkish translation,
14186 * dia.desktop: Added the Turkish entries.
14188 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
14190 * doc/diagram.dtd: changed string-element so it conforms to the
14193 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
14195 * configure.in: added chinese.
14196 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
14204 objects/custom/shape_info.c:
14205 shapes/Circuit/npn.shape:
14206 shapes/Circuit/pnp.shape:
14207 sheets/*.sheet: dia now works with libxml2.
14208 Libxml2 is a bit more picky when parsing xml and reported errors on all
14209 sheet files because they use non ascii characters (added
14210 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
14211 I commented out these.
14213 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
14215 * configure.in (ALL_LINGUAS): added Italian
14217 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
14219 * configure.in (ALL_LINGUAS): added Korean
14221 2000-06-25 James Henstridge <james@daa.com.au>
14223 * objects/flowchart/parallelogram.c (pgram_create): use default font
14224 and add properties interface support.
14226 * objects/flowchart/ellipse.c (ellipse_create): use default font and
14227 add properties interface support.
14229 * objects/flowchart/diamond.c (diamond_create): use default font and
14230 add properties interface code.
14232 * objects/flowchart/box.c (box_create): use default font.
14234 * objects/custom/custom_object.c (custom_create): use default font
14237 * objects/standard/textobj.c (textobj_create): update to use default
14240 * lib/attributes.c: add implementations.
14242 * lib/attributes.h (attributes_[gs]et_default_font): add function
14243 prototypes for setting/getting a default font.
14245 2000-06-24 James Henstridge <james@daa.com.au>
14247 * app/paginate_gnomeprint.h: updated prototype.
14249 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
14250 diagram page settings.
14252 * objects/standard/beziergon.c (beziergon_copy): same here.
14254 * objects/standard/polygon.c (polygon_copy): copy the fill colour
14258 * app/tool.h (tool_options_dialog_show):
14259 * app/scroll_tool.h (free_scroll_tool):
14260 * app/render_svg.h:
14261 * app/render_libart.h (renderer_libart_copy_to_window):
14262 * app/render_gdk.h (renderer_gdk_copy_to_window):
14263 * app/properties.h (properties_hide_if_shown):
14264 * app/preferences.h (prefs_load):
14265 * app/object_ops.h:
14266 * app/modify_tool.h (free_modify_tool):
14267 * app/magnify.h (free_magnify_tool):
14268 * app/linewidth_area.h (linewidth_area_create):
14269 * app/layer_dialog.h:
14270 * app/handle_ops.h (handle_is_clicked):
14272 * app/grid.h (grid_destroy_dialog):
14273 * app/defaults.h (defaults_show):
14274 * app/cut_n_paste.h (cnp_exist_stored_objects):
14275 * app/create_object.h (free_create_object_tool):
14276 * app/connectionpoint_ops.h (diagram_unconnect_selected):
14278 * app/color_area.h (color_area_create):
14279 * app/app_procs.h (app_is_embedded): remove extern keyword from
14280 function prototypes.
14283 * lib/sheet.h (load_all_sheets):
14284 * lib/render_store.h:
14285 * lib/render_object.h (render_object_load):
14286 * lib/polyshape.h (polyshape_closest_segment):
14287 * lib/poly_conn.h (polyconn_closest_segment):
14290 * lib/objchange.h (new_object_state_change):
14291 * lib/neworth_conn.h (neworthconn_add_segment):
14292 * lib/message.h (message_error):
14295 * lib/font.h (font_descent):
14296 * lib/focus.h (remove_focus):
14298 * lib/diagramdata.h:
14299 * lib/dia_xml.h (data_add_composite):
14301 * lib/connpoint_line.h:
14302 * lib/connection.h (connection_move_handle):
14304 * lib/attributes.h (attributes_set_default_line_style):
14305 * lib/arrows.h (arrow_draw): remove extern keyword from function
14306 definitions. It is not required for functions.
14308 * plug-ins/dxf/Makefile.am (INCLUDES):
14309 * plug-ins/pstricks/Makefile.am (INCLUDES):
14310 * plug-ins/cgm/Makefile.am (INCLUDES):
14311 * objects/SADT/Makefile.am (INCLUDES):
14312 * objects/chronogram/Makefile.am (INCLUDES):
14313 * objects/GRAFCET/Makefile.am (INCLUDES):
14314 * objects/flowchart/Makefile.am (INCLUDES):
14315 * objects/sybase/Makefile.am (INCLUDES):
14316 * objects/FS/Makefile.am (INCLUDES):
14317 * objects/standard/Makefile.am (INCLUDES):
14318 * objects/network/Makefile.am (INCLUDES):
14319 * objects/UML/Makefile.am (INCLUDES): same here.
14321 * objects/ER/Makefile.am: changed inclusion of some macros to
14324 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
14325 handle the plug in extension, rather than have all the #ifdef's in
14328 * plug-ins/Makefile.am: add renderer.inc to dist.
14330 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
14332 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
14334 * lib/plug-ins.c: Handle OS/2 dll's too.
14336 2000-06-07 James Henstridge <james@daa.com.au>
14338 * app/plugin-manager.c (get_plugin_manager): set some table
14339 packing options to make it look a little nicer.
14341 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
14342 makefiles for these plug-ins.
14344 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
14346 * configure.in: added hpgl and wpg directories to build. Added
14347 note about whether gnome-print support was enabled, and noted that
14348 it is not recommended.
14350 2000-06-06 James Henstridge <james@daa.com.au>
14352 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
14353 a little work, but I am checking them in so I don't lose them.
14355 2000-06-01 James Henstridge <james@daa.com.au>
14357 * objects/standard/arc.c: added extra properties.
14359 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
14360 was using the wrong index into the handles array. This gets corner
14361 type changing working correctly.
14363 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
14364 to properties code (no editing or loading yet though). Also added
14365 support for point array manipulation through the offsets interfaces.
14367 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
14369 * app/interface.c (origin_button_press): changes so the origin
14370 button doesn't grab the pointer when we pop up the menu.
14372 * app/commands.c (help_about_callback): fix small memory leak in
14375 * app/menus.c (menus_init): fixed breakage I introduced in the non
14376 gnome menus when I was doing the menu changes. The tearoffs work
14377 really nicely in plain gtk mode as well.
14379 * objects/standard/beziergon.c (beziergon_create): changed the
14380 returned handles to match the handle numbering changes. Now
14381 segment addition and removal works correctly with undo!
14383 * lib/beziershape.c: various changes to the code. Changed the
14384 numbering of handles, and fixed the segment removal code.
14386 2000-05-31 James Henstridge <james@daa.com.au>
14388 * objects/standard/beziergon.c: remove connection point handling.
14389 There is still a bit of work to be done to get adding and removing
14390 of segments working correctly.
14392 * lib/beziershape.c: add connection point handling to beziershape.
14393 I set it for two connection points per segment.
14395 2000-05-30 James Henstridge <james@daa.com.au>
14397 * objects/standard/polygon.c: don't do connectionpoint handling.
14399 * lib/polyshape.c: changed to handle connection points internally.
14400 Also, don't worry about connections to handles on polyshape, as
14401 all handles are non connectable.
14403 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
14405 * configure.in: Added finnish
14407 2000-05-30 James Henstridge <james@daa.com.au>
14409 * sheets/*.sheet: translation updates to the .sheet files.
14411 * po/fr.po: updated po file from Christophe Merlet.
14413 * menus.h: removed prototypes for functions which have been removed.
14415 2000-05-29 James Henstridge <james@daa.com.au>
14417 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
14418 item in the option menu when changing selected diagram.
14420 * app/dia_embedd.c (view_factory): fix up function to work with new
14423 * app/disp_callbacks.c (ddisplay_realize): remove call to
14424 display_set_active from here.
14425 (ddisplay_canvas_events): move call here. This gets rid of all the
14426 warnings, as the renderer has been fully set up correctly at this
14429 * app/menus.c (menus_init): add the tearoff item to the start of the
14432 * app/app_procs.c (create_user_dirs): we don't need to create the
14433 menus directory anymore.
14435 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
14436 necessary to update the menu state here, as it was done when the
14437 active display was set.
14439 * app/display.c (display_set_active): update the menu state when
14440 changing active displays.
14442 * app/interface.c (origin_button_press): set the display as active
14443 when a click is made on the menu button.
14445 * app/menus.c (menus_init): set up a quit function to save the accels
14447 Add tearoff items for the non GNOME menus, add accelerators for
14448 several GNOME menus.
14450 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
14451 menus_get_image_menu().
14453 * app/menus.c (menus_get_item_from_path): use display_menus here
14454 rather than ddisp->popup.
14456 * app/display.h: remove the popup member in the DDisplay structure.
14458 * app/interface.c: remove option of not using wrap box.
14459 (create_toolbox): change to always use menus_get_toolbox_menubar
14460 even when using gnome menus.
14461 (create_display_shell): use menus_get_image_menu to load accelerators
14462 only -- not the actual popup menu.
14464 * app/menus.c (menus_init): new function to create the menus.
14465 (menus_get_toolbox_menubar): use this function whether gnome is
14466 in use or not. Changed to use menus_init.
14467 (menus_get_image_menu): same here. Also, now this function always
14468 returns the same menu, rather than a new one each time.
14469 (menus_init): read a menurc file to load accelerators here.
14471 2000-05-28 James Henstridge <james@daa.com.au>
14473 * app/display.c (ddisplay_really_destroy): unset active display if
14474 active display is destroyed.
14475 (ddisplay_active): simplify function to return active_display as set
14476 by display_set_active. This allows using a pinned menu with any
14477 display -- not just the one it was popped up from.
14478 (display_set_active): notify the layer dialog of change of diagrams
14479 when active diagram changes.
14481 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
14482 on button and key presses.
14483 (ddisplay_realize): set active display on realize.
14485 * app/display.c (display_set_active): simple implementation of this
14488 * app/display.h (display_set_active): add prototype for setting
14489 the active display.
14491 * app/interface.c (create_display_shell): don't give focus to the
14494 * app/menus.c: fix up menus for Beziergon.
14496 * app/interface.c (create_display_shell): make the widget in the
14497 top left corner a button that can be used to pop up the right click
14498 menu, like in gimp and sketch.
14500 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
14503 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
14504 add code to set corner types for beziergon.
14506 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
14508 (beziershape_move_handle): use the previous corner type for right
14511 * app/interface.c (tool_data): add beziergon to toolbox.
14513 * objects/standard/standard.c (dia_plugin_init): initialise the new
14514 Beziergon object type.
14516 * objects/standard/beziergon.c: an object based on BezierShape.
14518 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
14520 * lib/beziershape.[ch]: new files implementing a bezier shape.
14522 2000-05-26 James Henstridge <james@daa.com.au>
14524 * lib/text.c (text_key_event): handle multibyte inserts.
14525 (text_key_event): also add home and end keybindings.
14527 * app/interface.c (create_display_shell): connect handlers for
14528 focus_in_event, focus_out_event, realize and unrealize signals.
14530 * app/display.[ch] (new_display): initialise input context members.
14532 * app/disp_callbacks.[ch]: added XIM support here.
14534 * lib/font.c (suck_font): the black and white pixel values should be
14535 taken from a 1 bit colormap rather than the default colormap.
14537 Hans Breuer's Windows patches ...
14539 * lib/font.c: use Courier New for fixed width font on windows
14542 * lib/dia_image.h: change to "struct _DiaImage".
14544 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
14546 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
14547 mouse button for object menu. This will make two button mouse owners
14550 2000-05-25 James Henstridge <james@daa.com.au>
14552 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
14554 * app/app_procs.c (app_init): add extra NULL argument to call of
14557 * app/load_save.h: remove prototype.
14559 * app/load_save.c: remove diagram_data function here.
14561 * app/diagram.h: added prototype.
14563 * app/diagram.c (diagram_load): new function here, which uses import
14566 * plug-ins/dxf/dxf.c: register the import filter as well.
14568 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
14569 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
14571 * objects/standard/line.c: add start_point and end_point properties
14572 to standard line object.
14574 2000-05-21 James Henstridge <james@daa.com.au>
14576 * app/paginate_psprint.c: added missing include of locale.h.
14578 * objects/custom/custom_object.c (custom_draw): use fabs rather than
14579 abs for scaling factors.
14580 (custom_distance_from): same here.
14582 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
14584 2000-05-18 James Henstridge <james@daa.com.au>
14586 * po/POTFILES.in: updated POTFILES.in.
14588 * dia.spec: incremented version number in spec file.
14590 * NEWS: added (lots of) news items for the 0.85 release.
14592 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
14595 * configure.in: updated version number here.
14597 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
14599 2000-05-17 James Henstridge <james@daa.com.au>
14601 * app/app_procs.c (internal_plugin_init): register the native import
14604 * app/load_save.c (diagram_data_load, diagram_load): split this
14605 function into two -- one that does all the work on the DiagramData
14606 structure, and the other that provides compatibility with the old
14608 (dia_import_filter): use diagram_data_load to define an import
14611 * app/diagram.h (new_diagram): added const to prototype.
14613 * app/filedlg.c (file_open_callback): change to use new import filter
14616 * lib/filter.c: added import filter management functions.
14618 * lib/filter.h: added prototypes for import filter interface.
14620 * app/commands.c (help_about_callback): updated about dialog to
14621 contain a few more names.
14623 2000-05-16 James Henstridge <james@daa.com.au>
14625 * configure.in (Configuration): added a status message to the end of
14626 the configure script to give the user some idea of what was
14629 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
14631 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
14634 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
14637 * configure.in (AM_PATH_LIBART): use the check function provided
14638 with libart rather than our own code. It is more reliable, and
14639 it only requires that people who build out of CVS have libart.m4
14640 installed (not necessarily all of libart).
14641 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
14643 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
14645 * dia.desktop: Added Swedish translation.
14647 2000-05-09 James Henstridge <james@daa.com.au>
14649 * lib/dia_xml.c: you can't free a const pointer, so remove const
14650 from variable definitions.
14652 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
14653 initialised correctly.
14655 * app/render_svg.c (export_svg): set locale to C.
14657 * app/paginate_psprint.c (paginate_psprint): set locale to C.
14659 * app/render_eps.c (export_eps): set locale to C for EPS export.
14661 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
14662 (data_add_point): same here.
14663 (data_add_rectangle): same here.
14664 (data_real): use g_strtod to convert strings to real numbers, so that
14665 locales are taken into account.
14666 (data_point): same here.
14667 (data_rectangle): same here.
14669 * AUTHORS: added Henk and Jacek to authors file.
14671 Daniel Egger's code cleanups.
14673 * app/select.c (select_invert_callback): remove unused variable.
14675 * app/plugin-manager.c (get_plugin_manager): fix typo.
14677 * app/load_save.c (read_connections, write_objects):
14678 (write_connections): made some functions static.
14680 * app/interface.c (toolbox_delete, toolbox_destroy): made some
14683 * app/filedlg.c (file_export_callback): remove unused variable.
14685 * app/app_procs.c: various warning fixes.
14687 Integrating Jacek Pliszka's pstricks export filter.
14689 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
14691 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
14692 renderer (with a few small modifications by me).
14694 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
14696 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
14698 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
14701 * sheets/Makefile.am:
14702 * shapes/Makefile.am:
14703 * shapes/Civil/Makefile.am:
14704 * sheets/civil.sheet:
14706 Added civil/hydraulic/structural engineering objects from
14707 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
14709 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
14711 * objects/FS/flow-poly.c:
14712 * objects/FS/flow.c:
14713 Fix division by zero in point_normalize().
14714 Patch by David Thompson <dcthomp@mail.utexas.edu>
14716 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
14719 * lib/bezier_conn.c:
14720 * lib/connpoint_line.c:
14721 Added checks for zero-length lines before calls to point_normalize.
14723 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14725 * app/preferences.c (prefs_data): Changed
14726 reversed_dragging_intersects to not make the dialog ridiculously
14729 2000-04-22 James Henstridge <james@daa.com.au>
14731 Hans's win32 patches:
14733 * app/export_png.c: include message.h
14734 * app/interface.c: include dia_dirs.h
14735 * app/linewidth_area.c: check for rint
14736 * app/main.c: include interface.h
14737 * app/paginate_psprint.c: remove unused variable.
14738 * app/preferences.c: include message.h
14739 * app/render_svg.c: include stdlib.h
14740 * app/select.c: include object_ops.h
14741 * lib/dia_dirs.c: miscelaneous fixes for win32.
14742 * lib/dia_image.c: include string.h
14743 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
14744 * lib/properties.c: include stdlib.h
14745 * lib/properties.h: define extra data for standard properties as
14746 static variables on win32 (to get around dynamic linker problems).
14747 * objects/standard/polygon.c: polygon_create_change missing return
14750 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
14752 * configure.in (ALL_LINGUAS): added Catalan
14754 2000-04-18 James Henstridge <james@daa.com.au>
14756 * objects/standard/bezier.c (bezierline_get_object_menu): add a
14757 separator to the object menu between the add/remove segment items
14758 and the corner type items.
14759 (bezierline_get_object_menu): add code to disable the menu item for
14760 the current corner type. Really just a cosmetic change.
14762 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
14763 a NULL for the label or with no associated callback.
14765 * objects/standard/bezier.c (bezierline_menu_items): use the
14766 enumeration values rather than numeric values for the corner types.
14768 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
14769 structure, and add code to handle it. Also, don't save the corner
14770 types inline in the bez_points node. The way it is conditionally
14771 including the element just feels like it will break.
14773 * lib/geometry.h (BezPoint): removed the corner_type stuff from
14774 BezPoint. The corner type stuff is a user interface level idea rather
14775 than something required by the renderer, so should be taken care of
14776 at the object level.
14778 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14780 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
14781 checks. Weren't able to reproduce original bug, tough.
14783 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
14785 * sheets/Electric.sheet:
14786 * sheets/Contact.sheet:
14787 * sheets/Pneumatic.sheet:
14788 * sheets/Circuit.sheet: sprayed some <br/>'s around.
14789 (added a few French translations in the last file)
14791 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14794 * lib/bezier_conn.h:
14795 * objects/standard/bezier.c:
14796 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
14797 bezier points. Only one minor problem known: Menus are active
14798 for endpoints minor handles.
14799 11:28: Save and load now works, too.
14800 (bezierconn_closest_major_handle): 12:03: New function to get the
14801 non-control point handle associated with the nearest control
14803 Also fixed the menu activation problem, and made remove_segment
14804 not remove the endpoint.
14806 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14808 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
14811 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
14813 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
14814 <sys/stat.h>. OS/2 patch.
14816 2000-04-15 James Henstridge <james@daa.com.au>
14818 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
14819 Thompson's patch that adds undo support to the function structure
14822 2000-04-14 James Henstridge <james@daa.com.au>
14824 * objects/custom/custom_object.c (custom_distance_from): new
14825 implementation of distance algorithm that actually takes the
14826 display list into account when calculating the distance. Much nicer
14827 than a simple bounding box.
14829 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
14831 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
14833 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14835 * objects/standard/polygon.c: Start of polygons own changes (for
14836 connectionpoints). Need to do seperate changes in polyshape, too,
14837 rather than reuse the bezier changes.
14839 2000-04-13 James Henstridge <james@daa.com.au>
14841 * lib/dia_image.c (dia_image_draw): use the new enumeration values
14842 from after the gdk-pixbuf cleanup.
14844 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
14845 on for loop. Last set of coefficients were not beeing calculated,
14846 which caused a bit of breakage.
14848 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
14849 functions in geometry.c for calculating the closest segment.
14850 (bezierconn_distance_from): use distance_bez_line_point to calculate
14853 * lib/geometry.c (distance_bez_line_point): new function to calculate
14854 the distance from an open bezier line to a point.
14855 (distance_bez_shape_point): new function to calculate the distance
14856 from a closed bezier shape.
14857 (distance_ellipse_point): new function to calculate the distance from
14858 a filled ellipse to a point.
14860 * lib/geometry.h (BezPoint): moved this structure here from render.h
14862 2000-04-12 James Henstridge <james@daa.com.au>
14864 * lib/geometry.c (distance_bez_seg_point): new function to calculate
14865 the distance from a bezier segment.
14867 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
14868 to calculate the distance from the object.
14870 * lib/geometry.c (distance_polygon_point): function for calculating
14871 the distance from a polygon to a point.
14873 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
14876 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
14877 breaks can be inserted in the tool box.
14879 * doc/sheet.dtd: updated the DTD
14880 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
14882 2000-04-12 James Henstridge <james@daa.com.au>
14884 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
14885 macro if the dialog is a GtkDialog :(
14887 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14889 * objects/standard/polygon.c: Connectionpoints now properly
14890 managed in a GList. As far as I can tell, this will not dieturb
14891 the order (but I have the nagging doubt...)
14893 * lib/polyshape.c: No longer knows about connectionpoints.
14895 2000-04-11 James Henstridge <james@daa.com.au>
14897 * app/Makefile.am: fix makefile for bonobo build.
14899 * configure.in: fix checks for bonobo.
14901 * app/menus.c: added entries for the plugin manager.
14903 * app/Makefile.am (dia_core_files): added plugin manager to files
14906 * app/plugin-manager.[ch]: the plugin manager dialog.
14908 * app/display.c (display_update_menu_state): set the antialiased
14909 menu entry to the correct value.
14911 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
14913 * objects/custom/custom_object.c: not all renderers like ellipses with
14914 negative dimensions. This could cause ellipses to disappear when using
14915 the flip_h and flip_v functions.
14917 * samples/grafcet.dia: fixed speling and correctness.
14919 2000-04-11 James Henstridge <james@daa.com.au>
14921 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
14922 exposed the dia_plugin_load and dia_plugin_unload functions.
14924 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
14925 already created PluginInfo structure.
14927 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
14930 * lib/sheet.c: fix up call to dia_config_filename.
14932 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
14933 file. This would save information such as which plugins not to
14934 load during startup.
14936 2000-04-09 James Henstridge <james@daa.com.au>
14938 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
14940 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
14942 * lib/plug-ins.c (dia_register_plugins):
14943 Don't free the value returned from g_getenv.
14945 2000-04-09 Anders Carlsson <andersca@gnu.org>
14947 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
14949 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
14951 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
14952 right to left, select objects that intersect the rubberbanding rectangle
14953 instead of selecting objects that are in the rectangle.
14955 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
14957 * lib/diagramdata.h: Likewise.
14960 2000-04-09 James Henstridge <james@daa.com.au>
14962 * lib/plug-ins.[ch]: add copyright messages to files.
14964 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
14967 * objects/sybase/sybase.c (dia_plugin_init):
14968 * objects/network/network.c (dia_plugin_init):
14969 * objects/flowchart/flowchart.c (dia_plugin_init):
14970 * objects/custom/custom.c (dia_plugin_init):
14971 * objects/chronogram/chronogram.c (dia_plugin_init):
14972 * objects/UML/uml.c (dia_plugin_init):
14973 * objects/SADT/sadt.c (dia_plugin_init):
14974 * objects/GRAFCET/grafcet.c (dia_plugin_init):
14975 * objects/FS/fs.c (dia_plugin_init):
14976 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
14979 * objects/standard/standard.c (dia_plugin_init): change over to new
14982 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
14983 the version checker for plugins.
14985 * app/app_procs.c: remove plugin loading code from here, and use
14986 code from plug-ins.[ch]. Also move registration of internal
14987 objects/filters to a `builtin' plugin.
14989 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
14991 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
14993 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
14994 defined variable in EXTRA_DIST.
14996 * app/preferences.h: removed dia_config_filename from header.
14998 * app/preferences.c: removed dia_config_filename function.
15000 * lib/dia_dirs.c (dia_config_filename): moved function over to this
15001 file. Also changed implementation slightly so that it should work
15002 on the win32 port correctly (and use NT home directories).
15004 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15005 it should have been.
15007 * lib/plug-ins.[ch]: new plugin loading code.
15009 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15011 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15013 * lib/polyshape.c: Fix closest segment finding, exposes deeper
15014 bugs in adding corners to 'wraparound' segment.
15016 * objects/standard/polygon.c: Added connection points (fixed so
15017 far), set menu sensitivity.
15019 * lib/polyshape.c: Changed to box-style handles, fixed for start
15020 and ends not being special, added initial connections,
15022 * lib/dummy_dep.h: Added polyshape (gotcha!)
15024 * objects/standard/pixmaps/ellipse.xpm:
15025 * objects/standard/pixmaps/box.xpm:
15026 Filled element pixmaps with white.
15029 * objects/standard/polygon.c:
15031 * objects/standard/standard.c:
15032 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
15033 * lib/Makefile.am (libdia_a_SOURCES):
15035 * app/interface.c (tool_data):
15036 Added Standard/Polygon object and PolyShape lib object. Still
15037 needs inside grab and connection points.
15039 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15042 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15045 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15046 if (argv) outside ifdefs.
15048 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15050 * objects/standard/image.c (image_set_props):
15051 Aspect ratio is back in town.
15053 * app/Makefile.am (dia_LDADD):
15056 Check for gdk_pixbuf (by default disabled, for now)
15058 * app/render_eps.c (draw_image):
15059 * app/render_libart.c (draw_image):
15060 * app/render_gnomeprint.c (draw_image):
15061 Support for alpha mask in rendering. Color postscript, too.
15065 Support for gdk_pixbuf and proper masking for exports.
15067 2000-04-01 Kjartan Maraas <kmaraas@online.no>
15069 * sheets/*.sheets: Updated Norwegian translations.
15071 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15073 * lib/text.c (text_insert_char):
15074 * lib/render_store.c (add_data):
15075 Made realloc double the alloced space rather than add
15076 a fixed amount, to reduce memory stress.
15078 * app/select.c: Added new select method 'Transitive'
15079 that select every reachable (by connections) object.
15081 2000-03-27 Kjartan Maraas <kmaraas@online.no>
15083 * dia.desktop: Added Norwegian translation.
15085 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15087 * app/render_eps.c:
15088 * app/render_svg.c:
15089 Don't dereference NULL pointer if the renderer
15090 couldn't open the file. Fix by Lars Clausen.
15091 Bug reported by Martin Chisholm <b1mt@unb.ca>
15093 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15097 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15099 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15101 * app/dia.gnorba (location_info):
15102 Changed to correct executable name.
15104 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15107 Don't do any argument parsing or initialization
15110 * app/dia_embedd.c:
15111 Call init_server_factroy before app_init.
15112 Call app_init with argv==NULL
15113 Now we don't get any critical error on startup.
15116 Add Electric and Pneumatic to makefile list.
15118 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
15120 * shapes/Electric/*:
15121 * sheets/Electric.sheet:
15122 Add some Electric circuit shapes.
15124 * shapes/Pneumatic/*:
15125 * sheets/Pneumatic.sheet:
15126 Add some Pneumatic & Hydraulic circuit shapes
15127 (both sheets are still incomplete, though feature enough
15128 things for basic circuits).
15130 * shapes/Contact/l_*.(xpm|shape):
15131 * sheets/Contact.sheet
15132 * shapes/Contact/Makefile.am
15133 made the older electric circuit shapes in Contact obsolete (disabled
15134 them in the sheet, made that sheet Ladder only). Fixed the makefile
15135 for forgotten items.
15137 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
15140 Add support for Dia bonobo component.
15141 Currently a bit raw, so it's commented out.
15143 * app/dia_embedd.c:
15145 New files for embedding dia.
15146 The menu disabling hack is a bit gross. Esp. for GNOME.
15149 Add new function app_is_embedded();
15152 Don't destroy diagram when last display is destroyed if embedded.
15155 Change initialization of display so it works with embedding.
15158 Clarify comment about display destruction.
15160 * app/interface.[ch]:
15161 Added top_level_window argument to create_display_shell.
15162 Don't open a top-level window if embedding.
15163 Don't quit app if trying to close toolbox window when embedding.
15164 Add toolbox_show() and toolbox_hide().
15167 Added app_is_embedded() function (just returns false).
15168 Added toolbox_show() call in main().
15171 Added code for getting toolbox menus. This is used to
15172 hide some menu items when running embedded.
15175 Include sheet.h to remove warning.
15177 * objects/UML/association.c:
15178 Clarify association direction text.
15180 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
15183 Fixed man page so whatis parsing works.
15185 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
15187 * app/render_libart.c (new_libart_renderer):
15188 Fix from segg <segg@infonet.ca> to compile without libart.
15189 I forgot to change the stub for new_libart_renderer when doing
15190 the interactive renderer stuff for libart.
15192 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
15194 * dia.desktop: Added Irish translation.
15196 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
15198 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
15200 * app/load_save.c (fchmod): OS/2 defines only.
15202 2000-03-07 James Henstridge <james@daa.com.au>
15204 * lib/properties.c (prop_get_widget): set the position in the option
15207 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
15210 * app/export_png.c:
15211 * app/render_libart.[ch]:
15212 Don't export png:s with an interactive libart renderer.
15214 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
15216 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
15218 2000-03-02 James Henstridge <james@daa.com.au>
15220 * dia.spec (%build): unset LINGUAS before running configure. This
15221 ensures that all translations get included in the RPM.
15223 * lib/properties.c (object_create_props_dialog): put in a check for
15224 a NULL return from the describe_props() object method.
15225 (prop_desc_lists_union): make sure that the returned array is not
15227 (prop_desc_lists_intersection): same here.
15229 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
15231 * objects/ER/Makefile.am:
15232 * objects/FS/Makefile.am:
15233 * objects/UML/Makefile.am:
15234 Don't link object libs with gtk.
15236 2000-02-29 James Henstridge <james@daa.com.au>
15238 * app/preferences.c (prefs_save): check to see if the file could
15239 be opened before writing the prefs.
15241 * app/disp_callbacks.c (popup_object_menu): pass the button event
15242 to gtk_menu_popup. This allows you to click and release to open
15244 (ddisplay_canvas_events): same here.
15245 (create_object_menu): set the object type menu item in the object
15246 menu to be insensitive.
15248 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
15249 as we are now requiring a new version of libxml.
15251 * dia.spec: updated version number. Added requirement for
15254 * configure.in: incremented version number to 0.84.
15255 Added check for libxml >= 1.8.5. This will prevent some of the
15256 problems people have had with broken libxml versions.
15258 * NEWS: added news items.
15260 * app/interface.c (create_color_area): removed call to realize parent
15261 widget. Segg <segg@infonet.ca> reported that it caused a warning,
15262 but I haven't seen it on my copy of dia.
15264 2000-02-28 James Henstridge <james@daa.com.au>
15266 * app/export_png.c: added copyright notice, and made the band height
15269 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
15271 * lib/font.c (suck_font):
15272 Fixed off-by one bug in font pixmap height.
15273 Fixes the problem with garbage at the bottom of some text in aa mode
15274 and in png exported files.
15276 2000-02-27 James Henstridge <james@daa.com.au>
15278 * app/app_procs.c: add the png export filter if it was compiled in.
15280 * app/export_png.c (export_png): new PNG export filter. This requires
15281 the libart renderer to work as it needs a renderer that renders to a
15284 * configure.in: add check for libpng.
15286 * lib/message.c (message_internal): use a GNOME dialog here as well.
15288 * app/display.c (ddisplay_close): use a GNOME dialog here.
15290 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
15291 when exporting to EPS. This is because some people said the EPS
15292 output was too large
15294 2000-02-26 James Henstridge <james@daa.com.au>
15296 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
15299 * app/app_procs.c (app_exit): use a GNOME dialog here.
15301 * app/preferences.c (prefs_create_dialog): if GNOME support is
15302 enabled, show a GNOME dialog.
15304 * app/grid.c (grid_draw): use preferences when drawing page break
15307 * app/preferences.c: add page break preferences to dialog.
15309 * app/preferences.h: added page break preferences.
15311 2000-02-25 James Henstridge <james@daa.com.au>
15313 * sheets/UML.sheet: added new objects.
15315 * objects/UML/uml.c: link in the two new objects.
15317 * objects/UML/node.c:
15318 * objects/UML/branch.c: new UML objects from Stfan Seefeld
15319 <seefelds@magellan.umontreal.ca>.
15321 2000-02-24 James Henstridge <james@daa.com.au>
15323 * objects/custom/custom_object.c: converted to use the properties
15324 interface. In the future, it would be nice to add support for
15325 defining custom properties for custom objects, but that can wait.
15327 2000-02-22 James Henstridge <james@daa.com.au>
15329 * sheets/Circuit.sheet: added new circuit shapes to sheet.
15331 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
15332 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
15333 and adds a few new features.
15335 2000-02-21 Daniel Egger <egger@suse.de>
15337 * sheets/*.sheets: Added German translations and made some
15338 corrections to the others.
15340 2000-02-21 James Henstridge <james@daa.com.au>
15342 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
15344 * shapes/Circuit/...: added new shapes from Erik Janssens.
15346 2000-02-20 James Henstridge <james@daa.com.au>
15348 * app/interface.c (create_color_area): realize the parent window
15351 * objects/standard/image.c: properties patch for standard image
15352 object, from Lars Clausen.
15354 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
15356 * lib/properties.h (PropType): added file property type.
15358 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
15361 * app/interface.c: use wrap box for toolbox.
15363 * app/Makefile.am: added new files.
15365 * app/gtk*wrapbox.[ch]: added wrap box widget.
15367 2000-02-19 James Henstridge <james@daa.com.au>
15369 * sheets/network.sheet: added extra shapes to networks sheet.
15371 * configure.in (AC_OUTPUT): added shapes/network/Makefile
15373 * shapes/network/*: added shapes that were posted to the list a while
15376 * shapes/Makefile.am (SUBDIRS): added network subdirectory
15378 * app/menus.c (toolbox_menu_items): don't right justify help menu for
15379 gtk+ version of menus.
15381 * app/properties.c (create_dialog): use a GnomeDialog if we happen
15384 2000-02-18 James Henstridge <james@daa.com.au>
15386 * objects/flowchart/box.c: set extra data for corner radius and text
15387 padding properties.
15389 * objects/standard/box.c: set extra data for corner radius property.
15391 * lib/properties.h: set extra data in some standard properties.
15393 * lib/properties.c (prop_get_widget): look at the extra data for
15394 int, real and enum property types. They now use GtkSpinButton and
15395 GtkOptionMenu respectively.
15397 * lib/properties.h: extra data members for creating property setting
15400 2000-02-17 James Henstridge <james@daa.com.au>
15402 * objects/flowchart/box.c: reverted load/save functions back to
15403 previous implementations. Made box use standard property names.
15405 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
15407 * app/grid.c: add more digits to the grid edit dialog. This patch
15408 was also from Lars Clausen.
15410 * objects/standard/zigzagline.c:
15411 * objects/standard/textobj.c:
15412 * objects/standard/polyline.c:
15413 * objects/standard/line.c:
15414 * objects/standard/ellipse.c:
15415 * objects/standard/box.c:
15416 * objects/standard/bezier.c:
15417 * objects/standard/arc.c: patches to add properties code to standard
15418 objects. Based on patches from Lars Clausen. I have also removed
15419 some dead code from the files.
15421 * lib/properties.h (PROP_STD_*): define a number of standard
15422 properties. Where appropriate, objects should include these
15423 properties in their PropDescription list. This way, the intersection
15424 of properties of two different shapes will be greater.
15426 2000-02-14 James Henstridge <james@daa.com.au>
15428 * objects/flowchart/box.c (box_load, box_save): use property save
15429 routines. Make sure that any props not handled by object_load_props
15430 are loaded before calling object_load_props, or we get errors because
15431 update_data is called.
15433 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
15434 error that could cause properties to be loaded incorrectly.
15435 (object_set_props_from_offsets): similar here.
15437 * lib/properties.[ch] (prop_{load,save}): functions for loading
15438 or saving a property in Dia's XML file format.
15439 (object_{load,save}_props): load or save some properties of an
15440 object. These functions should help simplify the load/save methods
15441 of objects that implement the properties interface.
15443 2000-02-13 James Henstridge <james@daa.com.au>
15445 * objects/flowchart/box.c: use offset code to simplify property
15448 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
15450 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
15452 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
15454 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
15456 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
15459 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
15462 Add the custom object to DIA_LIB_PATH in run_dia.sh
15464 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
15466 * sheets/Circuit.sheet:
15467 * shapes/l_sout* (NEW):
15468 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
15469 variants of simple, inverted, set and reset outputs.
15470 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
15471 probably a split of Contact and Ladder sheets. And then a major
15472 revamping of the Contact sheet.
15474 2000-02-10 James Henstridge <james@daa.com.au>
15476 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
15478 * app/app_procs.c (register_all_objects): don't explicitely
15479 register the custom objects library -- let it be loaded by the
15480 normal plugin loading methods.
15482 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
15484 * objects/custom/Makefile.am: build libcustom_objects as a shared
15487 * objects/custom/shape_info.[ch]: don't read the description field
15488 of custom shapes. It makes more sense to have these in the sheet
15489 file to localise the parts of dia that translators have to deal
15492 * objects/custom/custom_object.c (custom_object_new): do not
15493 create the sheet object for the new custom shape -- this is
15494 handled by the custom sheet code.
15496 * objects/custom/custom.c: change over to being a normal plug-in
15497 rather than being linked with the main dia executable.
15499 2000-02-09 James Henstridge <james@daa.com.au>
15501 * sheets/Circuit.sheet:
15502 * sheets/Flowchart.sheet:
15503 * sheets/Contact.sheet: fixed up sheets.
15505 * objects/custom/custom_object.c (custom_object_new): set the
15506 extra ObjectType fields.
15508 * lib/sheet.c: use extra ObjectType fields when creating sheet
15509 objects. Give a warning if <shape> tags are found in a sheet
15510 file. Now the custom sheet code does not know about custom
15511 shapes -- they look like any other object type.
15513 * lib/object.h (ObjectType): added extra members
15515 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
15517 * app/linewidth_area.c:
15518 Added code to set arbitrary line width.
15519 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
15521 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
15523 * app/linewidth_area.c:
15525 Add support for font-sucking.
15526 Implementation borrowed from gnome-canvas.
15528 * app/render_libart.[ch]:
15529 Implement text rendering.
15531 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
15533 * app/properties.c (create_dialog):
15534 ref and sink no_properties_dialog.
15536 2000-02-07 James Henstridge <james@daa.com.au>
15538 * app/group.c (group_describe_props): new function. Return the
15539 intersection of the properties of the contained objects that
15540 implement the describe_props interface.
15541 (group_get_props): implement by iterating through contained objects
15542 and calling their get_props method until all properties have been
15543 set. Maybe this should go through all objects all the time??
15544 (group_set_props): implement by calling set_props method on all
15546 (group_ops): use standard props dialog creation routines.
15548 * lib/properties.c (prop_desc_lists_intersection): fix implementation
15549 of intersection -- I was using i++ instead of i-- in a for loop :(
15551 * objects/custom/custom.c (custom_register_objects): fix usage
15552 of dia_get_data_directory again.
15554 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
15555 actually read the sheets.
15557 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
15559 Win32 port by Hans Breuer <Hans@Breuer.org>
15562 Remove DATADIR and LIBDIR defines.
15565 Add dia_dirs.c and dia_dirs.h
15566 Added DATADIR and LIBDIR defines.
15568 * lib/dia_dirs.[ch]:
15569 New files for handling special directories.
15574 * objects/custom/custom.c:
15575 Fix warnings. Use directory functions.
15578 Add prototype for diagram_redraw_all.
15580 * app/diaunitspinner.c:
15583 * app/preferences.c:
15587 Win32 doesn't have mkstemp and fchmod.
15589 * app/paginate_psprint.c:
15590 Win32 calls popen _popen and pclose _pclose.
15593 Win32 calls finite _finite.
15596 Win32 needs to dllexport the color vars.
15598 * objects/GRAFCET/step.c:
15599 * objects/chronogram/chronoref.c:
15600 snprintf -> g_snprintf
15602 2000-02-05 James Henstridge <james@daa.com.au>
15604 * lib/properties.c: more fixes so that it doesn't crash when using
15605 properties. The undo/redo stuff also works!!
15607 * objects/flowchart/box.c (box_{describe, get, set}_props): test
15608 object where I have implemented the new properties interface
15609 complete with automatic properties dialog generation.
15611 * lib/properties.c (object_apply_props): fixed stupid error when
15612 creating the old_props array. Also, it no longer frees the props
15613 array -- you will have to do that yourself.
15615 2000-02-04 James Henstridge <james@daa.com.au>
15617 * app/properties.c (properties_apply): pass object_part to
15620 * lib/object.h (ApplyPropertiesFunc): added widget argument.
15622 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
15623 created this way as well.
15625 * objects/*/*.c: ref and sink the properties dialog window for each
15626 widget. It can't rely on ref count being incremented by
15627 properties_show anymore.
15629 * app/properties.c (properties_show): don't ref the widget before
15630 removing it, or its ref count will increase each time you open the
15631 properties dialog. Don't unparent the widget, as container_remove
15634 * lib/object.h: fixed up prototypes for new object methods.
15636 * lib/properties.[ch]: added functions for automatically creating
15637 a properties dialog from the output of describe_props, get_props and
15639 (object_apply_props): apply properties and return an ObjectChange
15640 structure that can be used for undo.
15642 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
15644 * objects/GRAFCET/transition.c: minor leak plugged.
15646 * sheets/GRAFCET.sheet:
15647 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
15648 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
15650 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
15651 new ones (for condition.c).
15652 * objects/GRAFCET/action.c: added connection points for the conditions.
15653 * samples/grafcet.dia: updated the sample to improve conformance to
15654 IEC 848 and take advantage of dia's new features.
15656 * lib/geometry.h: (point_get_normed) fixed a typo.
15658 2000-02-02 James Henstridge <james@daa.com.au>
15660 * lib/object.h: added object functions describe_props, get_props and
15661 set_props. Do type definitions so that object.h doesn't need to
15662 include properties.h, since properties.h includes object.h.
15664 * lib/properties.[ch]: more hacking.
15666 * po/de.po: updated po file.
15668 2000-01-30 James Henstridge <james@daa.com.au>
15670 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
15671 check to see if the C compiler accepts the flag beforehand.
15673 * lib/properties.[ch]: start of properties code.
15675 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
15677 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
15679 * sheets/GRAFCET.sheet:
15680 * sheets/GRAFCET/etapemc.xpm: (NEW)
15681 * sheets/GRAFCET/etapesp.xpm: (NEW)
15682 * objects/GRAFCET/step.c: Added the macro and
15683 sub-program call step types.
15685 * objects/GRAFCET/receptivity.[ch]: renamed to
15686 objects/GRAFCET/boolequation.[ch].
15687 * objects/GRAFCET/transition.c: changed (Receptivity *) to
15690 * lib/connpoint_line.[ch]:
15691 * objects/chronogram/chronoline.c:
15692 * objects/chronogram/chronoref.c:
15693 * objects/GRAFCET/vergent.c:
15694 * objects/standard/line.c:
15695 * objects/SADT/box.c: Minor CPL interface changes, factored out the
15696 point count adjustment code into the CPL object.
15698 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
15700 * app/render_libart.c:
15701 Added support for images and bezier curves.
15702 Only text/fonts missing now.
15704 * app/render_gdk.c:
15705 Removed old erronous comment.
15707 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
15709 * objects/chronogram/chronoline_event.c: removed references to
15710 lround(). Please don't insist, I'm already red of shame.
15712 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
15714 * app/render_libart.[ch]:
15716 Non-finished libart renderer.
15719 Added HAVE_LIBART flag
15725 Call gdk_rbg_init().
15727 * app/connectionpoint_ops.c:
15728 * app/disp_callbacks.c:
15730 * app/handle_ops.c:
15732 * app/modify_tool.c:
15733 Change ddisp->renderer type from RendererGdk * to Renderer *
15734 Draw zoom and select rects in ddisp->canvas->window instead
15735 of ddisp->renderer->renderer->pixmap.
15737 * app/display.[ch]:
15738 Add aa_renderer to DDisplay, and support for it.
15739 New function ddisplay_set_renderer() for changing renderer.
15740 Add ddisplay_transform_coords_double() function, used by aa renderer.
15741 Change ddisp->renderer type from RendererGdk * to Renderer *
15744 Add antialias to menu.
15746 * app/commands.[ch]:
15747 add view_aa_callback function
15748 Change ddisp->renderer type from RendererGdk * to Renderer *
15750 * lib/geometry.[ch]:
15751 Added IntRectangle and int_rectangle_union.
15753 2000-01-28 James Henstridge <james@daa.com.au>
15755 * app/commands.h: removed prototypes.
15757 * app/commands.c: removed the functions that have been moved to
15760 * app/filedlg.h: added new prototypes.
15762 * app/filedlg.c (file_open_callback): move open dialog to this
15763 file. This implementation should remember the current directory
15764 between file loads.
15765 (file_save_as_callback): moved this dialog as well.
15766 (file_save_callback): moved this function here.
15768 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
15769 align page boundaries to the origin.
15771 * app/diagram.c (diagram_update_extents): redraw the diagram if the
15772 scaling factor changes while updating the extents. This is so the
15773 page breaks get redrawn correctly.
15775 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
15778 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
15779 For normal mode, use (0,0) as the origin. For `fit to' mode, use
15780 the corner of the bounding box.
15782 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
15783 into page setup dialog.
15784 (pagesetup_apply): apply new `fit to' attributes to the diagram.
15786 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
15787 (diagram_data_save): save `fit to' data.
15789 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
15790 (data_update_extents): when in `fit to' mode, update scale factor
15791 when we update the extents.
15793 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
15796 * .../.cvsignore: added some cvsignore files to quieten cvs.
15798 * app/pagesetup.c (pagesetup_changed): added code to change the
15799 scaling/fit to values as you change the options in the page setup
15800 dialog. I haven't added code so that the fit to options are saved
15803 * app/diapagelayout.[ch]: changed the scaling portion of the widget
15804 to make it easier to set a `fit to' style scaling factor.
15806 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
15807 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
15808 but connpoint_line-based, so that there's a connection point at the
15809 middle of each segment. Currently only the SADT arrow uses this.
15811 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
15813 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
15814 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
15815 saving and editing of properties (and default properties).
15816 See the new objects (GRAFCET, SADT, chonograms) for examples.
15817 For already too hairy stuff, see objects/chronogram/chronoline.c.
15819 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
15820 evenly spaced connection points, which the user can add or remove at
15821 will. An object can own several connection point lines. See the SADT
15822 Box, or the GRAFCET vergents for examples.
15824 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
15825 quiet about unused stuff.
15827 * objects/GRAFCET (NEW):
15828 * samples/grafcet.dia (NEW):
15829 Added support for GRAFCET charts.
15831 * objects/chronogram (NEW):
15832 * samples/chronograms.dia (NEW):
15833 Added support for chronograms (feature requested by Ronald L. Chichest;
15834 I found I'd use it often, too).
15836 * objects/standard/line.c: Replace the middle connectionpoint by
15837 a whole connection point line, which defaults to one point (hint,
15838 hint). New Line object menu to take advantage of this.
15839 "Bothwards" compatibility is preserved (although you may loose
15840 connections if you load a newer file in a older dia).
15842 * app/lineprops_area.c:
15844 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
15845 (feature requested by Benjamin Kahn).
15846 Merged in Steffen Macke's slashed arrow head type.
15848 * app/Makefile.am (app/run_dia.sh actually):
15849 Added $DEBUGGER in front of dia's invocation, so that
15850 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
15851 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
15852 "EFENCE=-lefence" to link with Electric Fence.
15854 * configure.in: Made gcc do more aggressive optimisations on i386, and
15857 2000-01-24 James Henstridge <james@daa.com.au>
15859 * lib/geometry.[ch]: added inline versions of functions. Used
15860 glib's G_INLINE_FUNC stuff, so it should still work on systems
15861 without inline funcs.
15863 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
15864 it outputs the correct element id for the ellipse objects.
15866 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
15868 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
15869 object_add_handle_at. Message typo fixed.
15871 * lib/sheet.c (load_register_sheet):
15872 potential bug fixed (warning hunt).
15874 * objects/custom/custom.c (custom_object_load): disabled an assertion
15875 which made dia abort upon failure to load a shape file. Fixed a
15878 * objects/custom/shape_info.c (load_shape_info): Made the custom
15879 shape load code ignore XML comments between <?xml ...?> and the
15880 root object (mostly useful to put the emacs magic comments).
15882 * app/load_save.c: Made dia do backup copies of files when saving,
15883 and complain in case of failure.
15885 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
15887 * AUTHORS: fixed my address (ISP thought it was a great idea to change
15892 * shapes/Contact/*:
15893 * sheets/Contact.sheet:
15894 * sheets/Makefile.am:
15895 Added support for Contact and LADDER charts.
15897 * dia.desktop: Added a French translation.
15899 2000-01-23 James Henstridge <james@daa.com.au>
15901 * app/commands.c (help_about_callback): don't die if can't load
15904 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
15905 out NaN's when performing bezier curve subdivision.
15907 * objects/custom/custom_object.c: initialise memory of Custom structs
15910 * app/render_svg.c (draw_image): added image support to the XML
15911 output filter. The image is just referenced, rather than being
15912 included inline, so if you copy the SVG file somewhere else, you
15913 may need to move the images or fix up the links.
15915 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
15916 so the text is not just displayed in black all the time.
15918 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
15920 * configure.in: fixed libpopt test so we wont try to build with
15923 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
15925 * configure.in: Added "uk" to ALL_LINGUAS.
15927 1999-12-24 James Henstridge <james@daa.com.au>
15929 * po/ru.po: updated russian translation from Valek Filippov.
15931 * app/render_svg.c (new_svg_renderer): make output use 19991203
15932 version of SVG DTD. Use viewBox to set the extents of the view.
15934 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
15935 ftp.gnome.org as the download.
15937 * TODO (TODO): weeded out completed todo items and added a few extra.
15939 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
15941 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
15942 be good to get rid of the object/shape distinction and separate
15943 the custom shape code out from the main application.
15945 * objects/custom/README, diagram.dtd: moved to new doc directory.
15946 Renamed the custom shapes README to custom-shapes. Also updated
15947 custom shape docs a bit and removed the section on sheet files, as
15948 that has changed a bit.
15950 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
15951 of the image data is larger than the maximum cell array. I should
15952 add code to break scan lines down further in this case, but for now
15953 an error message is better than an infinite loop.
15955 * app/filedlg.c (file_export_ok_callback): show a dialog if we
15956 couldn't determine the export filter to use.
15958 * app/commands.c (help_about_callback): fixed up about box logo
15959 expose bug. Now just use a GtkPixmap widget rather than a
15960 GtkDrawingArea and calling gdk_imlib_paste_image.
15962 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
15963 because automake does not always get things right.
15965 * configure.in: updated version number to 0.83.
15967 * app/preferences.c (prefs_save):
15968 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
15969 for fopen. Text is the default file mode anyway.
15971 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
15972 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
15973 * app/load_save.c (write_objects, write_connections):
15974 * app/filedlg.c (file_export_ok_callback):
15975 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
15976 * lib/dia_xml.c (data_add_point, data_add_rectangle):
15977 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
15978 snprintf to calls to g_snprintf.
15980 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
15981 as the picture name.
15983 1999-12-23 James Henstridge <james@daa.com.au>
15985 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
15986 negative numbers. This fixes the upside down text problem I was
15988 (draw_image): implemented the image code. It will try to split the
15989 image data up into bands if it is too big to fit into a single
15990 cgm cell array element. It will have problems if you try to insert
15991 an image wider than about 10,000 pixels though.
15993 * Makefile.am: use gnomedatadir for the files that need to be
15994 installed in gnome's datadir. This is mainly to help people doing
15995 packages for weird setups.
15997 1999-12-22 James Henstridge <james@daa.com.au>
15999 * plug-ins/cgm/cgm.c: added support for text. Now only images and
16000 beziers are left to do. The text seems to be the wrong way up
16001 still. This is probably a problem with character orientation
16002 element, but I have used what the settings given in the standard.
16003 Other than this, the CGMs dia produces are readable (and displayable)
16004 by ralcgm and corel draw.
16005 (draw_string): subtract from the X coord rather than the Y coord for
16006 center and right aligned text.
16008 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
16009 the size of a real number, and changed name of write_double to
16010 write_real. Consider changing to fixed real encoding. Also, now
16011 all element headers are correct. Once the real number encoding is
16012 fixed, only text, beziers and images are left to do.
16014 1999-12-21 James Henstridge <james@daa.com.au>
16016 * Makefile.am (SUBDIRS): recurse into plug-ins.
16018 * configure.in: add plug-ins directory makefiles to list.
16020 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
16021 not done yet. Also, the output files are not quite correct.
16023 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16024 font. It doesn't work if you do.
16026 1999-12-20 James Henstridge <james@daa.com.au>
16028 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16029 export the files. Instead, use filter_guess_export_filter to
16030 guess the correct format to save in and use the appropriate filter.
16031 It defaults to postscript for compatibility.
16033 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16036 * app/commands.[ch]: removed export to eps functions.
16038 * app/menus.c: removed export to eps menu items.
16040 * app/app_procs.c: register new export filters.
16042 * app/load_save.[ch]: define dia native export filter.
16044 * app/render_eps.[ch]: define eps export filter.
16046 * lib/filter.h: added diafilename argument to the DiaExportFunc
16047 prototype. This is useful for putting the source of the diagram
16048 into the output file for instance.
16050 * app/app_procs.c (app_init): register the SVG export filter. Have
16051 to get EPS code converted to this API, and maybe also allow saving in
16052 DIA's native format from the export dialog. In fact, it is now
16053 possible to load an export filter from a shared library and it will
16054 integrate into the interface correctly.
16056 * app/menus.c: removed references to the SVG renderer.
16058 * app/commands.[ch]: removed svg stuff.
16060 * app/diagram.[ch]: removed diagram_export_to_svg function.
16062 * app/render_svg.[ch]: added a DiaExportFilter structure for this
16065 * app/filedlg.[ch]: code for the new export diagram dialog. Will
16066 probably move the open/save dialogs to this file as well.
16068 1999-12-19 James Henstridge <james@daa.com.au>
16070 * lib/filter.[ch]: start of interface for generalised handling of
16071 filters. I have only done code for export filters so far. I still
16072 need to do the gui for this, and convert the current SVG and EPS
16073 filters to the new API.
16075 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
16076 weren't setting the last handle correctly. It was actually assigning
16077 to the wrong position in the handles array, so the last handle was
16078 left as NULL, which caused the segfault.
16080 * objects/standard/image.c (image_copy): modified routine so that
16081 it just adds a reference to the DiaImage structure in the new image
16082 object. This seems to have cleared up the problems with copying
16085 * dia.spec: spec file additions from John Gotts.
16087 1999-12-12 James Henstridge <james@daa.com.au>
16089 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
16090 has not been released yet though.
16092 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16095 The following based on a patch from Lars Clausen:
16097 * objects/standard/bezier.c (bezierline_move_handle): when performing
16098 the initial drag of the bezierline, move the control points to keep
16101 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16102 make the new control points a bit closer to the major point.
16104 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16105 as the reason for the move.
16106 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16109 * lib/handle.h: new handle move reasons.
16111 1999-12-09 James Henstridge <james@daa.com.au>
16113 * dia.spec: include the new files in RPMs.
16115 * Makefile.am: install these new files.
16117 * dia.keys.in: file describing actions and icon for dia diagrams for
16118 use in the gnome file manager.
16120 * dia.mime: a file defining the application/x-dia-diagram mime type.
16122 * dia-diagram.png: an icon for dia diagrams.
16124 1999-12-08 James Henstridge <james@daa.com.au>
16126 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16128 * plug-ins/python/pydia-display.[ch]: wrapper for display.
16130 * objects/standard/ellipse.c: applied Lars's patch to optionally not
16131 draw the background of the ellipse.
16133 * app/load_save.c (read_connections): do some sanity checking on the
16134 handle and connection point numbers before performing the object
16137 * lib/bezier_conn.c (bezierconn_load): give the correct number of
16138 handles when loading a BezierConn.
16140 1999-12-07 Kjartan Maraas <kmaraas@online.no>
16142 * sheets/*.sheet: Finished Norwegian translations.
16144 1999-12-07 James Henstridge <james@daa.com.au>
16146 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16147 (PyDia_GetObjectType): find object type function.
16149 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16150 method for diagrams.
16152 * plug-ins/python/pydia-object.c: added methods for DiaObject and
16155 * AUTHORS: added Lars and Cyrille to the authors file.
16157 * objects/standard/bezier.c (bezierline_add_segment_callback): place
16158 new point correctly.
16160 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16162 * lib/bezier_conn.c: applied Lars's patch for placement of the new
16163 point when adding a segment to a BezierConn.
16165 1999-12-06 James Henstridge <james@daa.com.au>
16167 * plug-ins/python/test.py: test script for the python plug-in.
16169 * plug-ins/python/python.c: this file contains the plug-in startup
16170 code for the python plugin. Right now, it just initialises the
16171 dia module and executes a script.
16173 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
16175 * objects/standard/bezier.c (bezierline_draw): draw control lines for
16176 bezier curve if we are using an interactive renderer (ie. only if
16177 displaying to the screen).
16179 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
16180 to draw control lines on to a bezier curve. Based on implementation
16183 * objects/standard/bezier.c (bezierline_delete_segment_callback):
16184 calculate segment number using closest_segment rather than
16185 closest_handle. Sometimes the closest handle is part of a different
16187 (bezierline_draw): use correct size for start arrow.
16189 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
16190 * lib/geometry.c (distance_line_point): added notes to documentation
16192 * app/object_ops.c (object_list_align_v):
16193 (object_list_align_h): fix of by one error when calculating free space
16194 for equal distance alignment.
16195 * app/menus.c (objects_align_h, objects_align_v): include align
16196 adjacent menu items in the gnome version of the menus.
16197 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
16198 align adjacent menu items correctly.
16201 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
16204 * objects/standard/bezier.c: converted bezierline to use BezierConn.
16205 Still a few bugs. It crashes on deleting line segments.
16207 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
16209 1999-12-05 James Henstridge <james@daa.com.au>
16211 * lib/bezier_conn.[ch]: start of BezierConn object
16213 * app/interface.c: add bezierline to toolbox.
16215 * objects/standard/standard.c: initialise bezierline.
16217 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
16218 made a few modifications to get it working nicely. It still needs
16219 a bit of work though. Maybe create a BezierConn object in lib.
16221 1999-12-02 James Henstridge <james@daa.com.au>
16223 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
16225 * plug-ins/python/Makefile.am: tried building everything. It is
16226 building as a library at the moment. I will have to convert it
16227 to a libtool library and add some initialisation code.
16229 * plug-ins/python/diamodule.c: start of the dia module, using the
16230 other object wrappers. Not complete.
16232 1999-12-01 James Henstridge <james@daa.com.au>
16234 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
16235 the handles and connections attributes.
16237 * plug-ins/python/pydia-layer.c: added functions that use
16240 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
16242 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
16244 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
16245 I am currently wrapping the basic elements in the diagram in python
16246 objects -- nothing to see or play with yet.
16248 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
16252 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
16254 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
16258 Added russian translation from Valek Filippov <frob@df.ru>
16260 1999-11-24 James Henstridge <james@daa.com.au>
16263 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
16264 discussed with Alex. Also added extra makefiles so that make install
16267 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
16269 * app/preferences.[ch]:
16271 Added snap to grid preference.
16272 Patch from Michael Leslie <mles@springboardwireless.com>
16274 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16280 * objects/custom/shape_info.c:
16281 All strings returned by libxml must be freed with free, not
16282 g_free, or there will be problems if you use memory debugging
16285 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16287 * app/create_object.[ch]:
16290 * app/commands.[ch]:
16292 * app/interface.[ch]:
16293 Reverted the tool menu patch. It has some 'issues'.
16294 I liked it though, so it'll probably return.
16296 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16298 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
16299 <bruce@cybersight.com> for some purify runs and analysis.
16300 Also a great thank you to Owen Taylor for creating MemProf, a
16301 free memory leak detector that was used to find and verify a
16302 lot of these fixes.
16305 * app/paginate_psprint.c:
16306 * app/render_eps.[ch]:
16307 * app/render_svg.[ch]:
16311 Don't add a reference to ddisp->shell. Why was this done in
16318 Free all strings returned from xmlGetProp
16320 * app/modify_tool.c:
16323 * objects/custom/custom.c:
16324 Use closedir() after opendir().
16326 * objects/custom/shape_info.c:
16327 User g_free() instead of "if (tmp) free(tmp)".
16330 Add newline at end of file.
16333 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
16335 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
16336 Adds tool menu and keyboard shortcuts.
16338 * app/create_object.[ch]:
16339 Use tool_set() instead of tool_reset().
16340 create_create_object_tool() takes extra type argument
16346 Moved tool_data here, export it.
16347 Add separate tool type for all create objects tools.
16348 new functions tool_set().
16351 New callback tool_set_callback.
16354 Moved some pixmaps to interface.c.
16357 Remove tool_data array (moved to tool.c).
16358 Use the tool_data from tool.c.
16359 Remove modify_tool_button global var.
16361 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
16363 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
16366 Interprets command-line arguments as files to open even when
16367 HAVE_POPT is not defined.
16370 Shift-clicking when zooming zooms out, like the Gimp.
16373 Has hotkeys for zoom-100% and snap-to-grid.
16375 1999-11-17 James Henstridge <james@daa.com.au>
16377 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
16378 that it is not jumpy.
16380 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
16382 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
16383 scrolling by pressing the shift key when using the scroll tool.
16385 * sheets/Makefile.am: fixed makefile so that install actually works
16386 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
16388 (SHEETS): install Circuit.sheet
16390 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
16391 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16393 * sheets/Circuit.sheet:
16396 * sheets/Flowchart.sheet:
16397 * sheets/UML.sheet:
16398 * sheets/network.sheet:
16399 * sheets/sybase.sheet:
16402 * sheets/Circuit.sheet:
16403 added some missing French translations
16406 killed the temporary sheet namespace
16408 * objects/custom/custom.c:
16409 obsolete comment cleaned up
16411 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
16415 Added portugese translation from Pedro Morais
16416 <pmmm@rnl.ist.utl.pt>
16418 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
16420 Changed all sheets to be specified in xml.
16421 All sheet objects removed from the C code.
16422 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16427 Updated version to 0.81cvs.
16430 Update run_dia.sh with sheet-dir.
16433 Load all sheets on startup.
16434 Create sheet directory first time.
16435 Don't call custom_register_sheets().
16438 Add sheetdir define
16441 Remove custom_register_sheets().
16444 Add sheet loading code.
16446 * sheet/Circuit.sheet:
16449 * sheet/Flowchart.sheet:
16451 * sheet/network.sheet:
16452 * sheet/sybase.sheet:
16455 * sheet/ER/weakentity.xpm:
16456 * sheet/UML/aggregation.xpm
16457 * sheet/UML/umlclass_template.xpm
16458 Added sheet pixmaps.
16459 These are moved from their old places.
16461 * sheet/.cvsignore:
16465 Removed sheet objects and sheet registration.
16467 * objects/ER/Makefile.am:
16468 * objects/ER/pixmaps/weakentity.xpm:
16469 * objects/UML/Makefile.am:
16470 * objects/UML/pixmaps/aggregation.xpm:
16471 * objects/UML/pixmaps/umlclass_template.xpm:
16472 Removed alternative pixmaps. (Moved to sheet).
16474 * objects/custom/Makefile.am:
16475 * objects/custom/load_sheet.[ch]:
16476 Removed old sheet loading code.
16478 * objects/custom/custom.c:
16479 Load all shapes instead of sheets.
16480 Removed custom_register_sheets().
16482 * objects/custom/custom_object.c:
16485 * objects/custom/shape_info.[ch]:
16486 Added shape_info_getbyname().
16488 * objects/flowchart/Makefile.am:
16489 * objects/flowchart/collate.shape
16490 * objects/flowchart/delay.shape
16491 * objects/flowchart/display.shape
16492 * objects/flowchart/document.shape
16493 * objects/flowchart/extract.shape
16494 * objects/flowchart/flowchart.c
16495 * objects/flowchart/intstorage.shape
16496 * objects/flowchart/magdisk.shape
16497 * objects/flowchart/magdrum.shape
16498 * objects/flowchart/magtape.shape
16499 * objects/flowchart/manualinput.shape
16500 * objects/flowchart/manualop.shape
16501 * objects/flowchart/merge.shape
16502 * objects/flowchart/offlinestore.shape
16503 * objects/flowchart/offpageconn.shape
16504 * objects/flowchart/or.shape
16505 * objects/flowchart/predefdproc.shape
16506 * objects/flowchart/preparation.shape
16507 * objects/flowchart/punchedcard.shape
16508 * objects/flowchart/punchedtape.shape
16509 * objects/flowchart/sort.shape
16510 * objects/flowchart/sumjunction.shape
16511 * objects/flowchart/terminal.shape
16512 * objects/flowchart/transaction.shape
16513 * objects/flowchart/transmittape.shape
16514 * objects/flowchart/pixmaps/collate.xpm
16515 * objects/flowchart/pixmaps/delay.xpm
16516 * objects/flowchart/pixmaps/display.xpm
16517 * objects/flowchart/pixmaps/document.xpm
16518 * objects/flowchart/pixmaps/extract.xpm
16519 * objects/flowchart/pixmaps/intstorage.xpm
16520 * objects/flowchart/pixmaps/magdisk.xpm
16521 * objects/flowchart/pixmaps/magdrum.xpm
16522 * objects/flowchart/pixmaps/magtape.xpm
16523 * objects/flowchart/pixmaps/manualinput.xpm
16524 * objects/flowchart/pixmaps/manualop.xpm
16525 * objects/flowchart/pixmaps/merge.xpm
16526 * objects/flowchart/pixmaps/offlinestore.xpm
16527 * objects/flowchart/pixmaps/offpageconn.xpm
16528 * objects/flowchart/pixmaps/or.xpm
16529 * objects/flowchart/pixmaps/predefdproc.xpm
16530 * objects/flowchart/pixmaps/preparation.xpm
16531 * objects/flowchart/pixmaps/punchedcard.xpm
16532 * objects/flowchart/pixmaps/punchedtape.xpm
16533 * objects/flowchart/pixmaps/sort.xpm
16534 * objects/flowchart/pixmaps/sumjunction.xpm
16535 * objects/flowchart/pixmaps/terminal.xpm
16536 * objects/flowchart/pixmaps/transaction.xpm
16537 * objects/flowchart/pixmaps/transmittape.xpm
16538 Moved shapes and their pixmaps to shapes/flowchart
16540 * shapes/Circuit/Makefile.am:
16541 * shapes/Circuit/index.sheet:
16542 Removed index.sheet.
16544 * shapes/Makefile.am:
16545 * shapes/flowchart/Makefile.am:
16546 * shapes/flowchart/*.shape:
16547 * shapes/flowchart/*.xpm:
16548 Added flowchart shapes. (Moved from objects/flowchart)
16551 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
16553 * app/app_procs.c: Fixed popt stuff.
16555 1999-11-01 James Henstridge <james@daa.com.au>
16557 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
16560 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
16564 Update version to 0.81.
16567 Update with news for 0.81.
16569 * shapes/Circuit/*:
16570 * shapes/Circuit_eu/*:
16571 Moved european circuit objects to Circuit sheet.
16573 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
16575 * lib/diagramdata.[ch]:
16576 Added layer_set_object_list() function.
16579 Added support for undo of reordered objects.
16580 Fix the undo of delete to keep the right order on undo.
16583 changed loop to object_add_updates_list() calls.
16584 Added undo support to bring to front/back.
16586 * app/disp_callbacks.c:
16587 * app/paginate_psprint.c:
16590 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
16592 This plugs some leaks. Thanks to
16593 Bruce Mitchener <bruce@cybersight.com> for running
16594 Dia through purify for me.
16597 Free displays and diagrams on exit.
16599 * app/modify_tool.c:
16600 Free gc when freeing tool.
16602 * lib/diagramdata.c:
16606 Free update and display lists when destroying display.
16608 * lib/diagramdata.c:
16609 Don't leak layer name.
16611 * objects/custom/load_sheet.c:
16612 * objects/custom/shape_info.c:
16613 Free loaded xml documents.
16615 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
16618 * app/object_ops.[ch]:
16619 Add undo handling to alignment ops.
16620 Based partially on patch by Dan Cohn <dan@internap.com>.
16622 * objects/standard/image.c (image_move_handle):
16623 Don't divide by zero for small images.
16624 Patch by Dan Cohn <dan@internap.com>.
16626 * objects/UML/class.c (umlclass_destroy):
16627 * objects/custom/custom_object.c (custom_destroy):
16628 Don't free connectionpoints before calling element_destroy
16629 which unconnects them.
16631 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
16633 * objects/custom/custom_object.c:
16634 Load and save padding too. Fixes strange load crashes.
16636 * app/group.c (group_destroy):
16637 Don't unconnect already freed connectionpoints when
16638 destroying group. Probably fixes bug reported by
16639 Elliot Lee <sopwith@redhat.com>.
16641 * app/render_gdk.c:
16642 Don't crash on zero-size (broken) bezier curves.
16643 Different sort of fix. This should work on closed bezier curves
16646 * objects/standard/textobj.c:
16647 Activate default properties dialog for Text objects.
16649 * app/render_eps.c:
16651 * app/preferences.c:
16652 * app/render_svg.c:
16653 fopen files in binary or text mode.
16655 1999-10-26 Alexander Larsson <alex@cendio.se>
16657 * app/render_gdk.c (bezier_add_lines):
16658 Don't crash on zero-size (broken) bezier curves.
16659 Fixes a crashing bug.
16661 1999-10-25 James Henstridge <james@daa.com.au>
16663 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
16664 before it is installed.
16666 * objects/flowchart/flowchart.c: use relative paths to find shapes.
16668 * objects/custom/custom.c (custom_object_load): take file names
16669 relative to $(pkgdatadir)/shape-internal, and check an environment
16670 variable for an alternative directory.
16672 * app/...: added copyright messages to the top of my new code.
16674 * app/paginate_psprint.c: some general clean ups. Also, give an error
16675 dialog if we can't open the command or output file for writing.
16677 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
16678 function so it would set orientation to landscape correctly.
16680 * app/paginate_psprint.c: use the paper settings that come with
16681 the diagram. Also implemented landscape printing.
16683 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
16686 * app/commands.[ch] (file_pagesetup_callback): added callback for
16687 the page setup dialog.
16689 * app/menus.c: added page setup menu item.
16691 * app/pagesetup.[ch]: implementation of the page setup dialog.
16693 * app/diapagelayout.[ch]: added accessors for the scaling factor.
16695 * app/load_save.c (diagram_load): load paper information from save
16697 (diagram_save): save the paper info.
16699 * lib/diagramdata.c (new_diagram_data): initialise paper info section
16700 of DiagramData structure.
16701 (diagram_data_destroy): free the paper name.
16703 * lib/diagramdata.h: added a paper member to the DiagramData structure
16704 that holds the page layout info for a diagram.
16706 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
16708 * objects/flowchart/box.c:
16709 * objects/flowchart/ellipse.c:
16710 * objects/flowchart/diamond.c:
16711 * objects/flowchart/parallelogram.c:
16712 Load and save padding too. Fixes strange load crashes.
16714 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
16716 * app/app_procs.c (name_is_lib):
16717 .dll, .sl and .so.0.0.0 are also libraries.
16719 1999-10-20 James Henstridge <james@daa.com.au>
16721 * configure.in: added extra makefile.
16723 * shapes/Circuit_eu/*: a new set of european circuit shapes from
16724 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
16725 (added fuses to makefile, fill the area of some of the components).
16727 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
16731 Add GDK_IMLIB_CFLAGS to includes.
16732 Changed --export-dynamic to -export-dynamic
16735 * objects/UML/message.c:
16736 Removed c++ comment.
16738 * lib/render_store.[ch]:
16739 Don't use empty structure. That is not Ansi C.
16741 1999-10-19 James Henstridge <james@daa.com.au>
16743 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
16744 the margin entries, as they allow interpretation of units.
16745 (paper_size_change): display the current page dimensions.
16747 * app/diaunitspinner.[ch]: a widget derived from the standard
16748 GtkSpinButton that tries to take units into account. So if you enter
16749 "1in" into the entry, it will convert it to 2.54cm.
16751 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
16754 Removed include of dlfcn.h
16756 1999-10-18 James Henstridge <james@daa.com.au>
16758 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
16759 bound on margin widths. It is set to the paper width/height.
16761 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
16762 routine for the diamond. This bug was found and fixed by Daniel Wang
16763 <danwang@CS.Princeton.EDU>
16765 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
16767 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
16768 remove warning (OS/2 version).
16770 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
16773 Put a pointer to objects/custom/README.
16775 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
16778 Updated version to 0.80
16781 Updated version to 0.80cvs
16783 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
16785 * Released Dia 0.80
16786 Tag called DIA_0_80
16788 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
16792 * objects/UML/Makefile.am
16793 * objects/ER/Makefile.am
16794 * objects/network/Makefile.am
16795 * objects/standard/Makefile.am
16796 * objects/FS/Makefile.am
16797 * objects/sybase/Makefile.am
16798 * objects/flowchart/Makefile.am
16799 * objects/custom/Makefile.am
16800 Added -I$(top_srcdir)/intl which is needed for
16801 --with-included-gettext.
16807 Updated swedish translation.
16809 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16812 Updated version number to 0.80.
16818 Updated. Moved bugs to KNOWN_BUGS.
16821 Updated with 0.80 release notes.
16823 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
16826 For backwards compatibility, make sure handle 0 and 1 are the
16827 first and last handle. Fixes compatibility with 0.41, breaks
16828 compatibility with cvs version.
16829 Fixed bug in undo/redo of adding deleting endpoint segments
16830 when the endpoint was connected.
16831 Start OrthConn objects with three segments.
16833 1999-10-16 James Henstridge <james@daa.com.au>
16835 * objects/custom/custom_object.c (custom_update_data): changed
16836 resizing behaviour a bit so that shapes don't grow huge when you try
16837 to resize them to smaller than the size required by the text box.
16838 Also, now shapes will not grow with fixed aspect ratio when you enter
16839 text into them unless the shape has the fixed aspect ratio flag set.
16841 1999-10-15 James Henstridge <james@daa.com.au>
16843 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16845 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16847 * objects/flowchart/magdrum.shape:
16848 * objects/flowchart/offlinestore.shape:
16849 * objects/flowchart/punchedtape.shape:
16850 * objects/flowchart/transmittape.shape:
16851 * objects/flowchart/punchedcard.shape: new shapes.
16853 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16855 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16857 * objects/flowchart/collate.shape:
16858 * objects/flowchart/delay.shape:
16859 * objects/flowchart/extract.shape:
16860 * objects/flowchart/intstorage.shape:
16861 * objects/flowchart/magdisk.shape:
16862 * objects/flowchart/magtape.shape:
16863 * objects/flowchart/merge.shape:
16864 * objects/flowchart/or.shape:
16865 * objects/flowchart/sort.shape:
16866 * objects/flowchart/sumjunction.shape: new shapes.
16868 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
16872 Entering an erronous command as print command
16875 * app/paginate_psprint.c:
16876 Save all print dialog values for next time.
16879 Remove custom lib from DIA_LIB_PATH.
16881 1999-10-14 James Henstridge <james@daa.com.au>
16883 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16885 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16887 * objects/flowchart/offpageconn.shape:
16888 * objects/flowchart/manualop.shape:
16889 * objects/flowchart/preparation.shape:
16890 * objects/flowchart/manualinput.shape:
16891 * objects/flowchart/predefdproc.shape:
16892 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
16894 1999-10-13 James Henstridge <james@daa.com.au>
16896 * app/diapagelayout.[ch]: added accessors to paper information. The
16897 widget should be just about complete now.
16899 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
16900 It actually does something now.
16902 1999-10-12 James Henstridge <james@daa.com.au>
16904 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
16905 for the page layout widget.
16907 * app/diapagelayout.[ch]: start of page layout widget. Not actually
16908 built yet as it is not complete.
16910 * objects/flowchart/flowchart.c: added new shapes to sheet.
16912 * objects/flowchart/display.shape:
16913 * objects/flowchart/transaction.shape: new shapes.
16915 * AUTHORS: added my name to the spec file.
16917 * dia.spec: include the dia desktop entry to the spec file.
16919 * Makefile.am: install the dia.desktop file.
16921 * dia.desktop: added a gnome desktop entry so you can start dia
16922 from the gnome panel menu.
16924 1999-10-11 James Henstridge <james@daa.com.au>
16926 * objects/custom/custom_object.c:
16927 * objects/custom/shape_info.c: warning fixes.
16929 * objects/flowchart/document.shape: a shape file for the `document'
16932 * lib/custom.h: new header with the custom shape prototypes.
16934 * app/app_procs.c: register custom objects as well.
16935 (register_objects_in): close shared libraries if they don't load
16936 correctly, and call g_module_make_resident on libraries that load
16939 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
16941 * objects/custom/custom.c: removed get_version, added custom_ prefix
16942 to register_objects and register_sheets.
16944 * objects/custom/Makefile.am: converted to a normal library.
16946 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
16948 * app/lineprops_area.c:
16949 * app/render_svg.c:
16951 * objects/custom/shape_info.c:
16952 * objects/flowchart/box.c:
16953 * objects/flowchart/diamond.c:
16954 * objects/flowchart/ellipse.c:
16955 * objects/flowchart/parallelogram.c:
16956 * objects/network/flash.c:
16957 * objects/network/scead-plug.c:
16958 * objects/sybase/client.c:
16959 Removed -Wall warnings.
16961 * objects/network/bus.c:
16962 Removed unused functions.
16964 * objects/FS/flow-ortho.c:
16965 * objects/FS/flow-poly.c:
16966 * objects/FS/flow.c:
16967 * objects/FS/function.c:
16969 Implemented "non-implemented" undo for FS objects.
16970 Now at least it won't crash.
16972 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
16974 * objects/network/bus.c:
16976 Handles are now added and removed using the object menu.
16977 Default to 6 handles instead of 10.
16978 Changed name from "Standard - Bus" to "Network - Bus". Kept old
16979 name for backwards compatibility.
16981 * objects/network/network.c:
16982 Changed name from "Standard - Bus" to "Network - Bus". Kept old
16983 name for backwards compatibility.
16985 * app/properties.[ch]:
16987 Update properties in properties dialog if the shown object
16988 is part of and ObjectChange (undo or redo).
16991 Remove old known bugs list.
16993 * objects/UML/class_dialog.c:
16994 Removed debug printf's.
16996 1999-10-10 James Henstridge <james@daa.com.au>
16998 * objects/custom/custom.c (custom_object_load): new function that
16999 provides a nice entry point to the custom shape code for when it
17000 gets used by other libraries.
17002 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
17003 speeds builds up a bit.
17005 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17006 (SUBDIRS): do not descend into pixmaps subdirs.
17008 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17009 This speeds up build process.
17011 * objects/custom/custom.c (sheets): made variable static.
17013 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17016 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17018 * objects/custom/custom.c: look in ~/.shapes instead of
17019 ~/.dia_shapes as the per-user shapes directory.
17021 * app/preferences.c (prefs_save): save config to ~/.diarc.
17022 (prefs_load): load configuration from ~/.diarc. If the file
17023 does not exist, fallback on the old ~/.diarc location.
17025 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17027 (register_all_objects): look for user specific objects in
17028 ~/.objects rather than ~/.dia_libs.
17030 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
17034 * objects/flowchart/box.c
17035 * objects/flowchart/ellipse.c
17036 * objects/flowchart/flowchart.c
17037 Use gmodule for dynamic linking. As gmodule is using
17038 RTLD_GLOBAL i had to change flowchart box and ellipse
17039 so the typenames doesn't conflict with the standard
17044 Use button box to make dialogs look better.
17046 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
17048 * objects/UML/class_dialog.c:
17049 * objects/UML/class.h:
17050 Implemented undo for "UML - Class" objects.
17051 Not 100% tested yet.
17053 * objects/UML/classicon.c:
17054 * objects/UML/constraint.c:
17055 * objects/UML/dependency.c:
17056 * objects/UML/generalization.c:
17057 * objects/UML/implements.c:
17058 * objects/UML/large_package.c:
17059 * objects/UML/lifeline.c:
17060 * objects/UML/message.c:
17061 * objects/UML/object.c:
17062 * objects/UML/realizes.c:
17063 * objects/UML/state.c:
17064 * objects/UML/usecase.c:
17067 * lib/connectionpoint.h:
17070 1999-10-09 James Henstridge <james@daa.com.au>
17072 * objects/custom/*.[ch]: added copyright notices to custom object
17075 * shapes/Circuit/hdiode.shape:
17076 * shapes/Circuit/hzener.shape:
17077 * shapes/Circuit/opamp.shape:
17078 * shapes/Circuit/vdiode.shape:
17079 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17080 shapes look nice after the custom shape code changes.
17082 * objects/custom/README: updated docs to cover changes to drawing
17085 * objects/custom/custom_object.c (custom_draw): honour the line
17086 properties when drawing the shape.
17088 * objects/custom/shape_info.[ch]: added support for setting line
17089 properties for individual drawing elements in a custom shape. You
17090 can set the dash style, dash length, cap style and join style.
17092 1999-10-07 James Henstridge <james@daa.com.au>
17094 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17095 for foreground and background.
17097 * objects/custom/custom_object.c (custom_draw): use the new style
17098 information when drawing the object.
17100 * objects/custom/shape_info.[ch]: store all shape style info in the
17101 GraphicStyle structure. This makes adding support for extra CSS
17102 attributes easier -- we don't have to keep adding extra arguments to
17103 a lot of functions.
17105 1999-10-05 James Henstridge <james@daa.com.au>
17107 * lib/intl.c (unalias_lang): merged in changes from the i18n code
17108 swiped from gnome-libs.
17110 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
17112 * objects/standard/image.c (get_directory):
17113 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17115 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17117 * lib/poly_conn.c (polyconn_destroy):
17118 Fix bug. Access of freed memory.
17119 Rememeber, you can't free the handles of an object
17120 before calling object_destroy(), as it unconnects the handles
17121 therefore referencing them.
17123 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17126 undo_clear() didn't set stack->depth to zero.
17127 This made other undo functions crash after this had been called
17131 Slightly modified by Chris Love <clove@exactis.com>
17133 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17135 * objects/UML/class.h:
17136 * objects/UML/class_dialog.c:
17137 Retrun NULL ObjectChange on class property change.
17138 This means no crashes, but "UML - Class" doesn't support undo yet.
17140 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17145 * objects/UML/classicon.c:
17146 * objects/UML/dependency.c:
17147 * objects/UML/generalization.c:
17148 * objects/UML/implements.c:
17149 * objects/UML/large_package.c:
17150 * objects/UML/lifeline.c:
17151 * objects/UML/message.c:
17152 * objects/UML/object.c:
17153 * objects/UML/realizes.c:
17154 * objects/UML/state.c:
17155 * objects/UML/usecase.c:
17156 Update to new undo (w. get/set_state).
17157 Add object menu to add/delete segments.
17159 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
17162 Add equal distance alignment.
17164 * app/object_ops.c:
17165 Add equal distance alignment.
17166 Fix bug in adjacent alignment.
17168 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
17170 * objects/UML/constraint.c:
17171 Update to new undo (w. get/set_state).
17173 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
17175 * app/paginate_psprint.c:
17176 Save (parts, more todo) of the info in the print dialog to the
17177 next time it's opened.
17178 Patch from Yo Ric Dude <ricdude@toad.net>
17180 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
17183 Updated version string to 0.41cvs.
17185 * objects/UML/assocition.c:
17186 Update to new undo (w. get/set_state).
17187 Add object menu to add/delete segments.
17190 Added function debug_break() and called it after all
17191 objects and sheets are loaded. Place a breakpoint here if you
17192 want to debug objects. All symbols should be loaded.
17194 1999-09-12 James Henstridge <james@daa.com.au>
17196 * app/menus.c (display_menu_items): added print menu item.
17197 (filemenu): always add print menu item -- even if gnome-print is
17200 * app/commands.h, app/commands.c (file_print_callback): the print
17201 menu item is now available for both gnome-print and non gnome-print
17204 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
17205 print with the non gnome-print driver.
17207 1999-09-11 James Henstridge <james@daa.com.au>
17209 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
17210 printer dialog code out of commands.c.
17212 * app/paginate_psprint.c: new file containing the pagination code for
17215 * app/render_eps.c: made a few modifications so as well as producing
17216 EPS files, this renderer can be set up to do postscript printing.
17217 This basically entailed adding an extra function to create a RenderEPS
17218 renderer which did not bother setting the viewport for the document.
17219 That was left for the pagination code.
17221 1999-09-10 James Henstridge <james@daa.com.au>
17223 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
17224 gnome-print does not support elliptic arcs at the moment, approximate
17225 the ellipse with eight bezier curves. This gives a pretty good
17226 match to a true ellipse.
17228 1999-09-09 James Henstridge <james@daa.com.au>
17230 * app/commands.c (file_gnome_print_callback): added support for
17231 scaling the diagram. Also fixed a few other bugs.
17233 * app/paginate_gnomeprint.c (print_page): added ability to scale
17234 document. Fixed up test to see if the page has no objects on it.
17235 This should prevent some blank pages being printed. Non square
17236 objects such as lines could still cause problems.
17238 1999-09-08 James Henstridge <james@daa.com.au>
17240 * app/commands.c (file_gnome_print_callback): changed from using the
17241 standard printer selection dialog to one that also has a paper size
17244 * commands.[ch]: added callbacks for the print menu item. Currently
17245 it only does A4 output. I will make it configurable soon.
17247 * app/menus.c: add a print diagram menu item if gnome-print support
17250 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
17251 bit higher level than the gnome-print renderer. It splits the
17252 diagram into page size chunks and then renders them. For each
17253 page, it only renders the objects whose bounding box intersects
17254 the page, and it sets the clip mask so that the diagram does not
17255 overlap the margins.
17257 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
17258 that uses gnome-print as its back end.
17260 * configure.in: added a check for gnome-print. It is disabled by
17261 default because the code is not really working correctly yet.
17263 * app/menus.c: the delete object menu item was missing from the
17264 GnomeUIInfo style menus.
17266 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
17269 Added japanese to ALL_LINGUAS.
17270 Fix for Linux on Alpha.
17272 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
17274 * app/create_object.c (create_object_button_press):
17275 Always initialize tool->obj. Otherwise we store a null
17276 in the undo Change.
17279 Set linestyle before drawing cursor.
17280 Fix undo of backwards delete.
17282 1999-09-05 James Henstridge <james@daa.com.au>
17284 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
17286 * app/render_svg.c (draw_image): some fixes so that the appropriate
17287 style attributes are set. Before it was setting line styles on
17288 fill_* functions. Now it only does this for the draw_* variants.
17290 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
17291 variable so that custom shapes can be loaded.
17293 * shapes/: new directory for custom shapes. The Circuit sheet has
17296 1999-09-02 James Henstridge <james@daa.com.au>
17298 * TODO: removed a few todo items that have been implemented.
17300 * app/interface.c (create_sheets): enabled the popup page menu to the
17301 notebook. This can make it easier to select different sheets.
17303 * object/custom/Circuit/: added diode, zener diode, ground point and
17304 operational amplifier shapes.
17306 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
17307 if you want the output.
17309 * objects/custom/shape_info.c (parse_path): same here.
17311 * objects/custom/load_sheet.c (load_with_readdir): don't print so
17312 much debugging output. To get the previous level of output, define
17315 * objects/custom/shape_info.c (parse_svg_node): polygons were being
17316 recorded as polylines in the ShapeInfo structure.
17318 * objects/custom/README: some notes on writing new custom shapes.
17320 1999-09-01 James Henstridge <james@daa.com.au>
17322 * objects/custom/Circuit/hinductor.*:
17323 * objects/custom/Circuit/vinductor.*: added inductor shapes that
17324 also test out the bezier curve and SVG path support.
17326 * objects/custom/custom_object.c (custom_draw): added support for
17327 drawing bezier paths and filled shapes.
17329 * objects/custom/shape_info.c (parse_path): new function to parse
17330 SVG path elements. It does not do quadratic beziers or elliptic
17331 arcs though. Only moves, lines and cubic beziers.
17332 (*): added support for paths.
17334 1999-08-31 James Henstridge <james@daa.com.au>
17336 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
17338 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
17341 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
17344 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
17347 * lib/render_store.[ch]: use newer bezier functions.
17349 * lib/render.h: changed the bezier drawing functions to use an array
17350 of BezPoint structures instead of normal Point structures to allow
17351 lineto's mixed in with the curveto's.
17353 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
17355 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
17356 xpm images for different shapes to Makefile.
17358 * objects/custom/custom_object.c (custom_object_new): set the icon
17359 for the sheet button if there is one. Otherwise fall back on the
17360 default custom object icon.
17362 * objects/custom/shape_info.c (load_shape_info): read the sheet
17363 icon name from the shape file.
17365 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
17366 check the pixmap_file field for the name of a pixmap file to load
17369 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
17370 at the end of the structure, and it isn't used if the pixmap field
17371 is non NULL, so it should not break binary compatibility.
17373 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
17374 added support for the use of an index.sheet file so you can specify
17375 the ordering of the shapes in the sheet, and also internationalise
17376 the sheet name and actually be able to give a description. The old
17377 readdir based sheet loading code acts as a fallback if an index.sheet
17378 file can not be found.
17380 * objects/custom/custom_util.[ch]: new file containing useful routines
17381 needed by the custom object code. Currently only contains a simple
17382 routine for resolving relative paths.
17384 * objects/custom/custom_object.c (custom_draw): fixed problem with
17385 drawing rectangles if the shape has been flipped.
17387 1999-08-30 James Henstridge <james@daa.com.au>
17389 * objects/custom/custom_object.c (custom_get_object_menu): allow
17390 flipping of custom shapes. This uses the miggle click object
17393 * objects/custom/Circuit/npn.shape: fix aspect ratio.
17395 * objects/custom/custom_object.c (custom_update_data): honour the
17396 aspect ratio constraints.
17398 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
17399 tag parsing, so you can specify a free, fixed or a range for aspect
17400 ratios for the shape.
17402 1999-08-29 James Henstridge <james@daa.com.au>
17404 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
17405 up shape namespace tag.
17407 * objects/custom/shape_info.c (load_shape_info): check xml:lang
17408 attribute on <description> elements to support i18n for custom
17409 shape descriptions.
17410 Also changed the shape namespace for custom shapes to something
17411 a little more sensible.
17413 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
17415 * lib/intl.c: new file containing some functions for i18n stuff.
17417 * app/layer_dialog.c (create_button_box): fixed a warning.
17419 * objects/custom/custom_object.c: use current line style. Save dash
17422 * objects/flowchart/diamond.c: use current line style. Save dash
17425 * objects/flowchart/parallelogram.c: use current line style. Save
17428 * objects/flowchart/ellipse.c: use current line style. Save dash
17431 * objects/flowchart/box.c: use current line style. Save dash length.
17433 * objects/standard/ellipse.c: make ellipse use current line style.
17435 * objects/standard/box.c: use the line style set in the toolbox for
17436 new boxes, and remember the dash length.
17438 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
17441 1999-08-24 James Henstridge <james@daa.com.au>
17443 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
17444 to try to stop ellipse to get infinite width/height when we resize,
17445 while trying to keep the text inside the ellipse.
17447 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
17448 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
17449 resizing behaviour, so that you can't push objects round the screen
17450 with the resize handles.
17452 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
17453 get the OK buttons in the dialogs to take default clicks.
17455 * objects/custom/custom_object.c: added code so that resizing the
17456 shape does not end up pushing it round the screen.
17458 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
17460 * app/display.[ch]:
17461 Generate rectangle with the union of the damaged regions.
17462 This is used to optimize the grid paint and the object rendering.
17463 display_render_pixmap passes this info to grid_draw() and data_render().
17466 grid_draw doesn't draw grid lines outside of damaged rectangle.
17467 Sets dashlength when drawing non-solid grid.
17469 * lib/diagramdata.[ch]:
17470 data_render() and layer_render() takes an optional damaged rectangle
17471 argument. No objects not intersecting this are drawn.
17475 Call data_render with NULL update rectangle.
17477 1999-08-23 James Henstridge <james@daa.com.au>
17479 * objects/custom/custom_object.c (custom_update_data): if the aspect
17480 ratio is fixed, make sure the shape is not distorted.
17482 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
17483 a <fixaspectratio/> tag is given in the shape file.
17485 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
17486 added support for stroke-width, stroke and fill CSS attributes
17487 specified in style attributes of the SVG elements. The line width
17488 is relative to the user specified line width. The stroke and fill
17489 attributes can only be used to swap the foreground/background
17492 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
17493 sensitivity on the dash length selector when this function is called.
17495 * objects/standard/arc.c: same. Also handle dash length.
17496 * objects/standard/zigzagline.c: same.
17497 * objects/standard/polyline.c: same. Also handle dash length.
17498 * objects/standard/line.c: use default arrow/line styles.
17500 * app/interface.c: added callbacks to set the default attributes.
17502 * lib/attributes.c: added implementations of these functions.
17504 * lib/attributes.h: added extra prototypes for the new line properties
17505 area in the toolbox.
17507 * app/interface.c (create_lineprops_area): added line properties
17508 area to bottom of toolbox.
17510 * app/lineprops_area.h: a header exporting a few routines of the
17511 line properties area widgets.
17513 * app/lineprops_area.c: new file containing a selector for arrows
17514 and line styles to go in the main toolbox.
17516 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
17519 Update Gtk+ 1.0.5 comment to 1.2.0.
17528 Make sure we don't propagate -ldl and -lpopt to all LIBS
17529 by adding new var APP_LIBS that only app/dia links with.
17532 Update run_dia.sh to load custom and flowchart objects.
17534 * objects/ER/Makefile.am:
17535 * objects/FS/Makefile.am:
17536 * objects/UML/Makefile.am:
17537 * objects/network/Makefile.am:
17538 * objects/standard/Makefile.am:
17539 * objects/sybase/Makefile.am:
17540 Don't build versioned libs.
17542 1999-08-22 James Henstridge <james@daa.com.au>
17544 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
17547 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
17548 should actually work a bit now.
17550 * objects/custom/Circuit/*: a test sheet for the custom shape code.
17551 It is a small collection of circuit elements.
17553 * objects/custom/shape_info.c: fixed up loading of polylines and
17554 polygons. Before it was removing negative signs :(
17556 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
17557 placeholder was here before. I still need to work out how to set
17558 icons for individual custom shapes.
17560 * objects/custom/custom.c: added code to load the shapes into sheets
17561 properly. The shape files should be arranged into directories, and
17562 each directory represents a different sheet in the toolbox. This
17563 will make it very easy to distribute a collection of dia shapes as
17564 a tarball. I still need to work out internationalisation, and maybe
17565 also shape ordering in the sheet.
17567 * objects/custom/custom_object.c: fixed up dialogs for these objects.
17568 (custom_create): fix for objects without text areas.
17570 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
17571 and saving of custom object works correctly now.
17573 1999-08-21 James Henstridge <james@daa.com.au>
17575 * objects/flowchart/ellipse.c:
17576 * objects/flowchart/diamond.c:
17577 * objects/flowchart/parallelogram.c:
17578 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
17579 copying or loading these object types. Not all the connection
17580 points would be initialised correctly.
17582 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
17585 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
17586 build a versioned library. It will only ever be dlopen'd, so this
17589 * objects/custom/custom_object.c (custom_distance_from): allow
17590 selecting the object by clicking on the text. This fixes problems
17591 where the text box is outside the graphic.
17593 * objects/custom/shape_info.c (load_shape_info): fixed up reading
17594 of connections points. It should be possible to add connections
17595 to custom objects now.
17597 * objects/custom/custom_object.c (custom_update_data): fixed resizing
17598 due to changes to text.
17600 * configure.in: added extra makefiles.
17602 * objects/custom/shape_info.[ch]:
17603 * objects/custom/custom_object.c:
17604 * objects/custom/custom.c: the starts of custom shape support in dia.
17605 This is not built by default at the moment, since it is not quite
17606 complete. When it is, it will let you create more shapes for dia
17607 without writing a line of C. Its implementation includes buzzwords
17608 such as XML and SVG, so it must be good :)
17610 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
17612 * app/app_procs.c (app_exit): Use button labels "Quit" and
17613 "Cancel" instead of "Yes" and "No".
17614 Set default action to "Cancel" instead of "Quit".
17616 1999-08-19 James Henstridge <james@daa.com.au>
17618 * objects/flowchart/flowchart.c: added ellipse object.
17620 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
17622 1999-08-18 James Henstridge <james@daa.com.au>d
17624 * app/color_area.c (color_area_edit): small fix to prevent dia from
17625 segfaulting when you try to change the default foreground/background.
17627 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
17629 * app/diagram.[ch] (diagram_redraw_all):
17630 Added function that redraws all diagrams.
17632 * app/preferences.c (prefs_apply):
17633 Call diagram_redraw_all when prefs are changed.
17635 * app/render_svg.c:
17636 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
17637 older libxml's, and the old version works good enought here.
17639 1999-08-17 James Henstridge <james@daa.com.au>
17641 * lib/widgets.c: changed handlers that were connected to the GtkButton
17642 "pressed" signal to connect to the "clicked" signal. This removes the
17643 problem where dialogs are inactive until you click a mouse button
17644 after using a colour selector.
17646 * configure.in: added extra makefiles to AC_OUTPUT list.
17648 * objects/Makefile.am (SUBDIRS): added flowchart module
17650 * objects/flowchart/*: a collection of shapes for use in flowcharts.
17652 * app/color_area.c (color_area_events): similar here.
17654 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
17655 event is recieved with event->width == 0, which causes a warning if we
17656 try to create a pixmap of that width.
17658 * app/preferences.c, app/preferences.h, app/grid.c: added code to
17659 allow you to configure the colour of the grid, and also lets you
17660 set the grid to use dotted lines instead of solid ones.
17662 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
17663 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
17665 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
17666 export filter. It is not quite complete, but for most shapes it
17667 works as expected. Fonts still need a bit of work.
17669 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
17671 * configure.in: Added "en_GB" to ALL_LINGUAS.
17673 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
17676 Added Undo and Redo to GNOME menus.
17678 * objects/ER/attribute.c:
17679 * objects/ER/entity.c:
17680 * objects/ER/participation.c:
17681 * objects/ER/relationship.c:
17682 Added get/set_state functions.
17684 * objects/ER/participation.c:
17685 Added add/delete segment.
17688 Updated Swedish translation.
17690 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17692 * app/preferences.[hc]:
17693 Added undo_depth pref.
17696 Never grow stack larger than pref.undo_depth.
17697 undo_depth == 0 means unlimited.
17698 Converted printfs to conditionally compiled DEBUG_PRINTFs.
17700 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17705 * lib/render_object.c:
17706 * objects/ER/attribute.c:
17707 * objects/ER/entity.c:
17708 * objects/ER/participation.c:
17709 * objects/ER/relationship.c:
17710 * objects/FS/flow-ortho.c:
17711 * objects/FS/flow-poly.c:
17712 * objects/FS/flow.c:
17713 * objects/FS/function.c:
17714 * objects/UML/actor.c:
17715 * objects/UML/association.c:
17716 * objects/UML/class.c:
17717 * objects/UML/classicon.c:
17718 * objects/UML/component.c:
17719 * objects/UML/constraint.c:
17720 * objects/UML/dependency.c:
17721 * objects/UML/generalization.c:
17722 * objects/UML/implements.c:
17723 * objects/UML/large_package.c:
17724 * objects/UML/lifeline.c:
17725 * objects/UML/message.c:
17726 * objects/UML/note.c:
17727 * objects/UML/object.c:
17728 * objects/UML/realizes.c:
17729 * objects/UML/small_package.c:
17730 * objects/UML/state.c:
17731 * objects/UML/usecase.c:
17732 * objects/network/bus.c:
17733 * objects/standard/arc.c:
17734 * objects/standard/box.c:
17735 * objects/standard/ellipse.c:
17736 * objects/standard/image.c:
17737 * objects/standard/line.c:
17738 * objects/standard/polyline.c:
17739 * objects/standard/textobj.c:
17740 * objects/standard/zigzagline.c:
17741 Removed all traces of is_empty(). It doesn't work in an
17744 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
17749 Undoable grouping and ungrouping.
17751 * app/layer_dialog.c:
17752 * lib/diagramdata.[ch]:
17753 Undoable layer ops.
17755 * app/modify_tool.c:
17756 Undoable unconnect on handle move.
17758 * lib/orth_conn.[ch]:
17759 Working undoable add/remove segment.
17760 Removed endpoint_handles from OrthConn, renamed
17761 midpoint_handles to handles and put the endpoint
17764 * objects/standard/zigzagline.c:
17765 * objects/ER/participation.c:
17766 * objects/UML/association.c:
17767 * objects/UML/dependency.c:
17768 * objects/UML/generalization.c:
17769 * objects/UML/realizes.c:
17770 Update for the changes in OrthConn
17772 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
17774 * configure.in: Added "de" to ALL_LINGUAS.
17776 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
17788 Don't have the <Display> etc part of the menu strings
17789 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17792 Don't have the <Display> etc part of the menu strings
17793 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17794 Don't remove is_empty() objects, that don't work with undo.
17796 * lib/objchange.[ch]:
17798 Definition of ObjectChange. This is essentially an Change
17799 exported to the object libs. It encapsulates a change made
17800 to an objects internals. It can be applied, reverted and freed.
17801 There are also utility functions for doing ObjectChanges that
17802 only get/set the whole state of an object to store the change.
17803 This cannot be used when the object change deletes or adds a
17804 object which has references from other objects, eg. Handles which
17805 might be connected.
17808 Added objchange.c and objchange.h.
17811 Return NULL when loading fails.
17814 Menu callbacks return an ObjectChange.
17817 Reference objchange.o
17820 Key events return ObjectChange if they modify the object.
17824 Added object_add_handle_at() function.
17825 Apply properties returns an ObjectChange.
17826 Remove ObjectState and the get/set state functions, these
17827 don't always work. Use the new ObjectChange instead.
17830 Added object_add_handle_at() function implementation.
17832 * lib/orth_conn.[ch]:
17833 Use ObjectChange. Not finished yet.
17834 Removed get/set/free state functions
17836 * lib/poly_conn.[ch]:
17838 Don't remove segments that are small.
17839 Removed get/set/free state functions
17843 Added functions to get/set all text attributes.
17845 * objects/standard/arc.c:
17846 * objects/standard/box.c:
17847 * objects/standard/ellipse.c:
17848 * objects/standard/image.c:
17849 * objects/standard/line.c:
17850 * objects/standard/polyline.c:
17851 * objects/standard/textobj.c:
17852 * objects/standard/zigzagline.c:
17854 fixed bug in image_set_state.
17855 zigzagline.c not finished yet.
17857 * app/disp_callbacks.c:
17858 Use ObjectChange that are returned from menu callbacks and
17859 key_events for undo.
17861 * app/properties.c:
17862 Use ObjectChange that are returned from properties apply
17867 New undo type: ObjectChangeChange. This wraps a change to the
17868 internals of an object (and ObjectChange) in code that does
17869 app specific stuff (object_add_updates etc.)
17871 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
17873 * lib/orth_conn.[ch]:
17874 Added code for add/delete segment.
17876 * objects/standard/zigzagline.c:
17877 Use the new orth_conn code.
17880 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
17882 * objects/FS/Makefile.am
17883 Removed fs.h from sources.
17889 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
17891 * app/disp_callbacks.c (ddisplay_canvas_events):
17892 Fix for bug. Every other arrow-key press got lost.
17893 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
17896 change automake.sh to autogen.sh
17898 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
17901 Don't remove 'empty' objects.
17902 This violent destruction of objects won't work
17903 with the new undo framework.
17905 * app/disp_callbacks.c:
17906 Save undo info for object menu calls and key_events.
17908 * app/properties.c:
17909 Save undo info on properties apply.
17911 * lib/dia_image.[ch]:
17912 Add refcounting for images.
17914 * app/render_eps.c:
17915 * app/render_gdk.c:
17917 DiaImage * -> DiaImage
17920 Add undo functions for object state changes.
17924 change of semntics for focus->key_event.
17925 Now returns TRUE if the object recieving the event
17931 * lib/orth_conn.[ch]:
17932 Don't automatically create and delete segments when
17933 handles are moved. This is incompatible with undo.
17934 Added state get, set and free functions.
17936 * lib/orth_conn.[ch]:
17937 Added state get, set and free functions.
17939 * objects/UML/object.c:
17940 * objects/UML/uml.c:
17941 Fixed typo "UML - Objet" -> "UML - Object".
17942 Saved old for backwards compatibility.
17944 * objects/standard/arc.c:
17945 * objects/standard/box.c:
17946 * objects/standard/ellipse.c:
17947 * objects/standard/image.c:
17948 * objects/standard/line.c:
17949 * objects/standard/polyline.c:
17950 * objects/standard/textobj.c:
17951 * objects/standard/zigzagline.c:
17952 Added get/set state functions.
17953 Textobj has a redo crash-bug.
17954 Zigzagline needs object menus to add segments.
17957 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
17959 * app/render_eps.c (set_dashlength):
17960 Don't generate eps files with zero dash-length.
17962 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
17965 * app/create_object.c:
17967 Finished undo for create and paste.
17970 Started properties undo.
17972 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
17975 Added resizeable groups.
17978 Removed unused variable.
17982 Undo/redo for cut/delete done.
17984 * app/create_object.c:
17985 * app/modify_tool.c:
17986 * lib/diagramdata.[ch]:
17987 * app/diagram.[ch]:
17988 renamed diagram_add_selected -> diagram_select
17989 renamed diagram_remove_selected -> diagram_unselect
17991 * app/properties.[ch]:
17992 Added properties_hide_if_shown() function.
17994 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
18000 * app/commands.[ch]
18001 * app/modify_tool.[ch]
18002 * app/object_ops.[ch]
18003 * app/connectionpoint_ops.c
18005 Use undo functions.
18006 WARNING: Not finished. Will break.
18007 Finished: move object, move handle.
18010 Added diagram_selected_break_external() function.
18011 It removes all connections between selected objects
18013 Add undo stack to Diagram.
18015 * lib/diagramdata.[ch]
18016 Added layer_remove_objects() function
18018 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
18020 * objects/FS/Makefile.am
18021 * objects/sybase/Makefile.am
18022 Now uses GNOME_CFLAGS.
18025 Now compiles with GNOME even if popt.h isn't available.
18027 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
18030 * objects/Makefile.am
18032 First version of sybase objects from
18033 Brian Bruns <camber@umcc.ais.org>
18035 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18038 Added fr to ALL_LINGUAS
18040 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
18044 Popt-code is activated if popt is available.
18046 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
18048 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18050 * lib/orth_conn.[ch]:
18051 Added orthconn_get_middle_handle()
18054 Added text_set_cursor_at_end()
18057 Added first version of functions structure diagrams.
18059 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
18061 * app/modify_tool.c:
18062 Include math.h to remove warning.
18064 * app/commands.c (dialogs_properties_callback):
18065 Bring up correct properties dialog when selected
18067 From Dan Cohn <dan@internap.com>
18069 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
18071 Patch from Lars R. Clausen
18073 * app/modify_tool.c:
18074 Changed abs to fabs.
18076 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
18082 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18084 Patches from Dan Cohn <dan@internap.com>
18086 * app/commands.[ch]:
18087 * app/display.[ch]:
18089 * app/preferences.[ch]:
18090 Implements ability to turn on/off connection points in
18091 current drawing and in global prefs.
18093 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18095 * lib/widgets.c (dia_line_style_selector_init):
18098 * lib/diagramdata.c (layer_update_extents):
18099 Fixed uninitialized variable error.
18101 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
18104 Made some changes to the gdk_imlib visual+colormap setup.
18106 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18108 * objects/UML/usecase.c:
18109 * objects/UML/lifeline.c
18112 * objects/UML/object.c:
18113 * objects/UML/message.c:
18114 Changed font from Courier to Helvetica.
18118 Added dash lenth to the LineStyle widget.
18120 * objects/standard/ellipse.c :
18121 * objects/standard/zigzagline.c:
18122 * objects/standard/line.c:
18123 Added dash lenght property.
18125 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18127 * app/render_eps.c:
18128 First shot at latin1 encoded eps files.
18129 Works, but the eps files get a bit large.
18131 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18133 * objects/UML/class.[ch]:
18134 * objects/UML/uml.[ch]:
18135 Reverted the line wrap changes.
18136 Some day this might return, but it has to be selectable and
18137 default to off for loaded objects, otherwise it breaks file
18138 format compatibility.
18139 There was also some complains about how it looked, so a making it
18140 selectable is good for this too.
18142 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
18144 * objects/UML/class.[ch]:
18145 Some indentation cleanup.
18146 Added wrap_lines variable to class.
18147 I'll fix the line break stuff tomorrow.
18149 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18152 Added ref to poly_conn.o.
18154 * objects/standard/polyline.c (polyline_draw):
18155 * objects/standard/zigzagline.c (zigzagline_draw):
18156 * objects/standard/arc.c (arc_draw):
18157 * objects/standard/line.c (line_draw):
18158 Draw lines before arrows. This makes hollow arrows not
18161 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18163 Changes from Kim Peasley <kpeasley@ior.com>
18165 * objects/UML/class.c:
18166 Break lines with long operations so classes won't be
18169 * objects/UML/uml.[ch]:
18170 Helperfunctions for the above.
18172 * objects/UML/objects.c:
18173 Fix bug that duplicated the text in the attributes
18174 textwidget each time the object was selected.
18176 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
18178 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
18180 * app/modify_tool.c:
18181 * app/modify_tool.h:
18182 Control-drag is restricted to vertical/horizontal movement
18185 ModifierKeys argument added to object_move_handle
18187 * app/connectionpoint_ops.c:
18188 * app/create_object.c:
18189 * app/object_ops.c:
18190 * objects/ER/attribute.c:
18191 * objects/ER/entity.c:
18192 * objects/ER/participation.c:
18193 * objects/ER/relationship.c:
18194 * objects/UML/actor.c:
18195 * objects/UML/association.c:
18196 * objects/UML/class.c:
18197 * objects/UML/classicon.c:
18198 * objects/UML/component.c:
18199 * objects/UML/constraint.c:
18200 * objects/UML/dependency.c:
18201 * objects/UML/generalization.c:
18202 * objects/UML/implements.c:
18203 * objects/UML/large_package.c:
18204 * objects/UML/lifeline.c:
18205 * objects/UML/message.c:
18206 * objects/UML/note.c:
18207 * objects/UML/object.c:
18208 * objects/UML/realizes.c:
18209 * objects/UML/small_package.c:
18210 * objects/UML/state.c:
18211 * objects/UML/usecase.c:
18212 * objects/network/bus.c:
18213 * objects/standard/arc.c:
18214 * objects/standard/box.c:
18215 * objects/standard/ellipse.c:
18216 * objects/standard/image.c:
18217 * objects/standard/line.c:
18218 * objects/standard/polyline.c:
18219 * objects/standard/textobj.c:
18220 * objects/standard/zigzagline.c:
18221 Changed calls to move_handle to pass the new argument.
18225 Default line width, color etc #define'd
18228 Updates of danish menus
18230 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18233 * dia_gnome_icon.png
18234 * dia_gnome_menu_icon.png
18236 Graphics by Toussaint FrĂƒÂ©dĂƒÂ©ric <ftoussin@club-internet.fr>.
18239 About dialog shows dia_logo.png. Removed the GNOME about dialog.
18242 Distribute the icons and install logo in pkgdatadir.
18245 Added DATADIR-define.
18247 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18248 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
18251 Updated version number, made setup quiet, can build from cvs,
18252 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
18255 * objects/ER/Makefile.am
18256 * objects/UML/Makefile.am
18257 * objects/network/Makefile.am
18258 * objects/standard/Makefile.am
18259 now builds better with gnome
18261 * objects/UML/class_dialog.c
18262 Fixed typo -> po files must be updated too!!
18264 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18267 Added reference so that widgets.o gets linked to the app.
18269 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18271 * objects/UML/classicon.c:
18274 * objects/UML/actor.c:
18275 Changed position of 'snap-to-grid' so connection points are
18278 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18280 * objects/UML/classicon.c:
18281 Changed position of 'snap-to-grid'.
18282 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18284 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18286 * objects/network/antenna.c
18287 * objects/network/flash.c
18288 * objects/network/hub.c
18289 * objects/network/modem.c
18290 * objects/network/modularswitch.c
18291 * objects/network/rj45plug.c
18292 * objects/network/scead-plug.c
18293 * objects/network/network.c
18294 * objects/network/Makefile.am
18295 * objects/network/pixmaps/antenna.xpm
18296 * objects/network/pixmaps/flash.xpm
18297 * objects/network/pixmaps/hub.xpm
18298 * objects/network/pixmaps/modem.xpm
18299 * objects/network/pixmaps/modularswitch.xpm
18300 * objects/network/pixmaps/rj45plug.xpm
18301 * objects/network/pixmaps/sceadplug.xpm
18302 * objects/network/pixmaps/Makefile.am
18303 Lots of new network objects from
18304 Roland Steinbach <roland@support-system.com>.
18306 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18308 * objects/UML/classicon.c:
18309 Fixed connection positions, saved type as int (it has 3 states),
18310 and other small fixes.
18312 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
18314 * app/preferences.c:
18316 Added preference compress_save. It lets dia save uncompressed
18319 * objects/UML/class.c:
18320 Fixed bug with size calculation on methods that had class scope.
18322 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18324 * objects/UML/usecase.c:
18325 Added collaboration mode
18326 Fixed connection points with text > ellipse bug and other
18329 * objects/UML/state.c:
18330 Fixed bug of bad position of text after being either end
18331 or begin, moved and returned to text
18333 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
18335 * app/preferences.c: Add prototype declaration for prefs_apply.
18337 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
18339 * app/preferences.c:
18341 Apply don't hide window.
18343 * app/properties.c:
18346 * objects/UML/object.c:
18347 * objdcts/UML/state.c:
18348 Some data was not copied on copy.
18351 Ben Hochstedler <benh@eeyore.moneng.mei.com>
18353 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
18356 Changed link order between X and libxml.
18357 Some people had problems with an old libz in their
18360 1999-04-09 Kjartan Maraas <kmaraas@online.no>
18362 * po/no.po: updated translation.
18364 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
18366 * lib/message.c (message_error):
18369 * app/commands.[ch]:
18370 * app/diagram.[ch]:
18371 Added begining of xfig importing
18373 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18375 * objects/UML/pixmaps/state.xpm:
18376 * objects/UML/state.c:
18377 New UML object state machine.
18379 * objects/UML/uml.c:
18380 * objects/UML/Makefile.am:
18381 * objects/UML/pixmaps/Makefile.am:
18382 Added the state object.
18384 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
18386 * objects/UML/usecase.c:
18387 Added dialog to allow move text outside the ellipse.
18389 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18391 * Released Dia 0.41
18392 Tag called DIA_0_41
18397 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18400 Updated version number to 0.41
18405 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
18408 Changed errormessage for --export-to-ps. Removed call to
18409 g_log_set_always_fatal().
18412 * app/disp_callbacks.c
18414 (i18n) Removed gettext from some debugmessages.
18417 Small fix in GNOME-menus. Added warning that will help track
18418 problems with translations.
18421 (i18n) Updated swedish translation.
18423 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
18428 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
18434 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
18437 (i18n) Updated the danish translation.
18438 From Lars R. Clausen.
18440 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
18443 (i18n) The popup menu is translated now.
18446 (i18n) Updated swedish translation.
18448 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18450 * Released Dia 0.40
18451 Tag called DIA_0_40
18454 Updated for new release
18456 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18458 * objects/network/bus.c:
18459 Added initialization of properties dialog to NULL.
18461 * app/commands.c (edit_cut_callback):
18462 Update menu sensitivity when cut object.
18464 * app/modify_tool.c (click_select_object):
18465 * app/modify_tool.c (modify_button_release):
18466 Call diagram_update_menu_sensitivity() when
18467 selecting objects to update stuff that depends
18468 on selected/not selected.
18470 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
18473 Change order of subdir so that libintl.a builds.
18474 Now passed make distcheck.
18476 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18478 * lib/font.c (init_x11_font):
18481 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18483 * objects/UML/pixmaps/classicon.xpm:
18484 * objects/UML/classicon.c:
18485 * objects/UML/uml.c:
18486 Added the class stereotype icon objects.
18489 Changed default ps extension from .ps to .eps.
18491 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18494 Added diamenu.h and intl.h
18499 * objects/UML/pixmaps/Makefile.am:
18502 * objects/standard/pixmaps/Makefile.am:
18505 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18508 Use a scalable font before fixed when real font not found.
18513 * objects/standard/image.c:
18514 Better handling of loading/saving of images.
18517 Added some text about cvs, fonts and rewrote some parts.
18520 Updated with new stuff.
18523 Bump up version number to 0.40.
18525 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18528 Moved diagram_add_ddisplay() call into new_display().
18529 Fixed new_display to not use uninitialized variables
18530 causing loaded files to show up as black (or garbage).
18534 Removed unneeded calls to diagram_add_ddisplay().
18536 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
18538 * objects/UML/lifeline.c:
18540 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18542 * objects/UML/message.c:
18543 Fixed bug loading messages with null-text.
18544 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18546 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
18549 Updated swedish translation.
18552 (GNOME) Removed help-browser from help menu. Fixed typo.
18555 (GNOME) Accelerators in diagrams should work now.
18557 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
18562 * app/disp_callbacks.c
18566 * app/preferences.c
18568 * lib/diagramdata.c
18574 * objects/network/*.c
18575 * objects/standard/*.c
18576 * po/update_pofiles_in.sh
18578 More i18n. All strings (expect rare debug messages) can be
18579 translated now. Moved intl.h from app to lib. Updated
18580 update_pofiles_in.sh to check all .c-files.
18582 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
18584 * app/disp_callbacks.c (ddisplay_canvas_events):
18585 Don't drop keys while num-lock, scroll-lock etc is on.
18587 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18589 * app/render_eps.c (draw_image):
18590 Fixed exporting of images.
18591 Still not perfect, but not outright buggy.
18593 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18597 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
18600 Added $* to the dia call in run_dia.sh
18602 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18605 Added color_equals() call.
18607 * objects/standard/arc.c:
18608 * objects/standard/line.c:
18609 Don't save unneccesary data.
18611 * objects/standard/box.c:
18612 * objects/standard/ellipse.c:
18613 * objects/standard/image.c:
18614 * objects/standard/polyline.c:
18615 * objects/standard/zigzagline.c:
18616 Share properties dialog.
18617 Don't save unneccesary data.
18619 1999-03-22 Seth Alves <alves@hungry.com>
18624 small changes so that gnome menus aren't broken
18626 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
18629 Added danish translation from lrclause@cs.uiuc.edu.
18634 * po/update_pofiles_in.sh:
18635 Added script that updates POFILES.in.
18636 This should probably be run automatically from somewhere.
18638 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
18640 * app/diagram.[ch]:
18641 Added function diagram_update_menu_sensitivity() which
18642 sets the sensitivity of some menu items. This function
18643 is called at each diagram state change (from diagram_modified()).
18644 This is needed because otherwise the keyboard accelerators
18645 don't work correctly.
18647 * app/display.[ch]:
18648 Changed display_set_menu_sensitivity() to display_update_menu_state().
18649 Moved lots of code to diagram_update_menu_sensitivity() in
18650 diagram.c. Optimized to only look up menu-items from path:s once.
18652 * app/disp_callbacks.c:
18654 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
18655 Need to set GDK_FOCUS_CHANGE_MASK.
18657 * app/create_object.c:
18658 Call diagram_modified when an object has been created and
18659 selected so that the menu sensitivity is updated.
18662 removed menus_set_sensitive() and menus_set_state(). Exported
18663 renamed function menus_get_item_from_path().
18665 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
18667 * app/disp_callbacks.c:
18668 Show (empty) object menus on object that has none.
18669 Show title on object menus.
18672 Set zoom factor correctly when opening new displays.
18673 Better setting of scrollbars.
18677 Some reformating cleanup.
18680 Added title to object menus.
18683 Added object menu method (NULL-valued) to all objects.
18685 * objects/standard/polyline.c:
18686 Added title to object menu.
18688 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
18690 * app/preferences.[ch]:
18691 New files. Implements the preferences dialog and
18692 loading/saving of ~/.diarc.
18695 Added preferences.[ch].
18698 Load preferences on startup.
18700 * app/commands.[ch]:
18701 Added file_preferences_callback to show the preferences dialog.
18703 * app/create_object.c:
18704 Update extents when creating object.
18705 Use the reset_tools_after_create preferences setting.
18708 Use preferences when creating new display.
18711 Add preferences to menu.
18714 * app/layer_dialog.c:
18715 * app/properties.c:
18716 Don't allow shrinking of dialog.
18717 Add i18n of some strings.
18719 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
18721 Norwegian translation added.
18723 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
18725 * objects/standard/line.c:
18726 * objects/standard/arc.c:
18727 * objects/standard/polyline.c:
18728 * objects/standard/zigzagline.c:
18729 Loading of arrow data fixed.
18731 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
18734 Update extents when saving and exporting to postscript.
18735 Fixes a bug with postscript bounding-box being wrong.
18738 Changed border width from 5 to 2.
18741 Move grouped objects by the move-point of the first object.
18742 Fixes bug that made all objects in the group be off-grid
18743 when moving the group, even though all objects was on-grid.
18745 * app/layer_dialog.c:
18746 Update extents when changing layer.
18748 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18750 * objects/UML/uml.c:
18751 * objects/UML/component.c:
18752 * objects/UML/pixmaps/component.xpm:
18753 Added the UML component object
18755 1999-03-04 Seth Alves <alves@hungry.com>
18757 * objects/UML/generalization.c (generalization_create): avoid
18758 math on uninitialized genlz->text_width (NaN causes sigfpe)
18760 * objects/UML/realizes.c (realizes_create): same
18762 * objects/UML/dependency.c (dependency_create): same
18764 1999-03-01 Seth Alves <alves@hungry.com>
18766 * app/display.c (ddisplay_active): don't fly a warning panel
18767 if ddisplay_active is called when no views are open.
18769 * app/commands.c (set_default_file_selection_directory): set
18770 file selector's default directory if there is already
18773 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18776 New info about imlib requirements.
18779 Added lib/pixmaps/Makefile to created makefiles.
18783 Change from obsoleted to newer gtk calls.
18786 Pass filename of the diagram when loading and saving.
18787 This creates better oportunities to handle filename saving.
18790 Pass filenames to load and save methods.
18792 * lib/dia_image.[ch]:
18793 Added dia_image_get_broken() call that returns a image which
18794 is used for 'broken' images.
18796 * lib/pixmaps/.cvsignore:
18797 * lib/pixmaps/Makefile.am:
18798 * lib/pixmaps/broken.xpm:
18799 New files for the broken image bitmap.
18802 Fixed bug with double destroyed filedialog.
18805 Updated load and save prototypes to use the new filename argument.
18808 Render broken image instead of line when got no image.
18809 Use the new filename in load and save to save (if possible)
18810 relative pathnames and to better try to find loaded images.
18812 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18815 Some updates to the todo file.
18819 Place over/place over => sent to back/bring to front.
18820 Added some keyboard shortcuts to menus.
18822 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
18825 Changed string saving/loading to a new method. This should
18826 be much better att handling &,<,> and whitespaces.
18827 Loading strings of the old kind is still supported for backwards
18830 * samples/ER-demo.dia:
18831 * samples/UML-demo.dia:
18832 Updated to use the new strings.
18835 statusbar modified update fix.
18837 1999-02-27 Seth Alves <alves@hungry.com>
18839 * app/app_procs.c (app_init): added a --export-to-ps option
18840 which will cause dia to load a dia file and save it as ps
18841 and then exit. this is a little bogus, because it still
18842 pops up a window. this option only shows up if --enable-gnome
18845 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
18846 menu when built with --enable-gnome
18848 * app/interface.c (create_display_shell): build status bar
18849 even if --enable-gnome is used
18851 * app/menus.c: menu fixes for --enable-gnome
18853 * app/commands.c (file_open_dialog_ok_callback): fixed up
18854 menus when --enable-gnome is used
18855 (file_export_to_eps_callback): set a default file name
18856 when dialog is created
18858 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
18860 * objects/UML/association.c (association_create):
18861 Fixed usage of not initialized variable.
18862 Pointed out by Seth Alves <alves@hungry.com>.
18864 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
18867 Fixed detection of gnome-xml.
18868 From Valtteri Vuorikoski <vuori@k.notcom.org>.
18871 Fixed error detection on dlsym calls.
18872 From Valtteri Vuorikoski <vuori@k.notcom.org>.
18874 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
18876 * objects/UML/message.c (fill_in_dialog):
18879 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18881 * objects/standard/zigzagline.c:
18882 * objects/standard/polyline.c:
18883 * objects/standard/line.c:
18884 * objects/standard/arc.c:
18888 Support for sizeable arrows.
18890 * objects/standard/box.c:
18891 * objects/standard/ellipse.c:
18892 * objects/standard/image.c:
18893 Changed creation handle to lower-right.
18894 Transparent box/ellipse.
18896 * objects/standard/image.c:
18897 Better layout of properties boxes.
18899 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18901 * objects/UML/message.c (fill_in_dialog):
18902 Fixed dialog fill in. Common dialog for all messages.
18904 * objects/UML/object.c:
18905 Added multiple instance. Dialog related bugs fixed.
18906 Common dialog for all instances. Completed copy and destroy.
18908 * objects/UML/lifeline.c (lifeline_load):
18909 Conn initialization bug fixed and few bad loading prevention flags.
18910 Common dialog for all lifeline objects.
18912 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18914 * lib/dia_image.[ch]:
18915 More work on the DiaImage abstraction.
18918 * app/render_eps.c:
18919 * app/render_gdk.c:
18920 * objects/standard/image.c:
18921 Use the new DiaImage calls.
18923 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18927 Reversed the meaning of align horizontal/vertical.
18929 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18931 * app/load_save.c (diagram_load):
18932 Statusbar update fix.
18934 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18936 * app/interface.c (create_display_shell):
18937 Fixed status bar size.
18939 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
18941 * lib/dia_image.[ch]:
18942 Added extern declaration for dia_image_release.
18943 Removed dia_image_draw, as it's not neseccary.
18945 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18947 * app/object_ops.c:
18949 Added equal distance alignment both vertical and horizontal.
18951 * objects/UML/object.c:
18952 Added a couple of attributes to load/read that were missing.
18954 * objects/UML/lifeline.c:
18955 Better handling of handles. Fixed another bug I forgot to add
18958 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
18960 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
18962 * lib/dia_image.[ch]:
18964 New files. DiaImage wraps the GdkImlibImage.
18967 * app/render_eps.c:
18968 * app/render_gdk.c:
18969 * lib/render_store.[ch]:
18970 * objects/standard/image.c:
18971 Use the new DiaImagetype.
18974 Removed unused variable to eliminate warning.
18976 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
18978 * objects/standard/box.c:
18979 Added rounded corners on the box object.
18981 * lib/widgets.[ch]:
18982 Updated the DiaFileSelector widget.
18984 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18986 * objects/UML/object.c (objet_draw):
18987 Completed underlining of all object name lines.
18989 * objects/UML/message.c (fill_in_dialog):
18990 Fixed a bug that filled incorrectly the message's dialog.
18992 * objects/UML/lifeline.c (lifeline_load):
18993 Some cleanning and fixed a couple of bugs that caused
18994 crashes after reading diagrams with lifelines.
18997 Added flags to prevent crash with void strings
18999 1999-02-07 Matthias KĂƒÂ¶ster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19000 * app/display.[ch]:
19001 Added statusbar to the display widget. Currently shows the zoom
19002 factor and modified flag of the viewed diagram. The statusbar is
19003 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19004 This caused the following additions:
19006 * app/diagram.[ch]:
19007 Added function diagram_set_modified. Calls
19008 ddisplay_update_statusbar for all displays showing the modified diagram.
19009 Changed diagram_modified to call diagram_set_modified.
19012 Added the creation of the statusbar.
19015 diagram_save now calls diagram_set_modified instead of setting
19016 dia->modified. Needed to force call to display_update_statusbar
19019 Changed the way view_show_all works. Now calls ddisplay_zoom
19020 instead of directly setting the zoom_factor, so the zoom factor is
19021 correctly shown in the statusbar.
19024 Fixed rubberband zoom to use ddisplay_zoom().
19026 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
19029 Rudimentary GNOME session management.
19031 * app/disp_callbacks.c
19035 GNOME menus. Problems:
19036 Callbacks doesn't get user_data.
19037 Weird warnings when creating popup menus.
19038 menus_set_sensitive(), menus_set_state() doesn't work.
19040 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19043 Add AM_PATH_GDK_IMLIB() call.
19046 Add gdk_imlib to linking flags.
19050 Print library-loading error messages on stdout too.
19053 Add standard image to toolbox.
19055 * app/render_eps.c:
19056 Set a more reasonable dot length. Fixed
19057 missing initialization of dot length.
19058 Added draw_image methods.
19060 * app/render_gdk.c (new_gdk_renderer):
19061 Dot a bit wider. Looks good in normal mode now.
19063 * objects/standard/image.c:
19064 * objects/standard/pixmaps/image.xpm:
19065 New files. Standard object for images.
19067 * app/render_eps.c (set_linestyle):
19068 * app/render_gdk.c (set_linestyle):
19069 * lib/widgets.c (dia_line_style_selector_init):
19071 New line style DOTTED.
19074 * lib/render_store.c:
19075 Change DrawImage call to use gdk_imlib.
19077 * lib/widgets.[ch]:
19078 Added widgets for selecting files.
19079 Added dotted to the linestyle selector.
19081 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19083 * objects/network/printer.c:
19084 * objects/network/network.c:
19085 * objects/network/pixmaps/printer.xpm:
19086 * objects/network/.cvsignore:
19087 * objects/network/Makefile.am:
19088 * objects/network/pixmaps/Makefile.am:
19089 New printer object in network.
19090 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19093 Added known XML bug.
19095 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19099 Reverted back from #include <gnome-xml/tree.h> to
19100 #include <tree.h> as this is fixed by the xml-config program.
19101 The former way broke for some people.
19102 Reported by blizzard@redhat.com.
19104 * objects/UML/lifeline.c:
19105 * objects/UML/message.c:
19106 * objects/UML/object.c:
19107 Removed some warnings.
19109 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19111 * objects/UML/lifeline.c:
19112 Fixed connection points over the life line when the focus of
19113 control is not drawn.
19115 * objects/UML/message.c:
19116 Now a recursive message can be freely resized using the handles.
19118 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19120 * objects/UML/lifeline.c:
19121 Added connection points.
19122 Added properties dialog with the option to draw/hide focus of control
19123 box and destruction mark.
19125 * objects/UML/object.c:
19126 Added properties dialog and stereotype, explicit state and attributes.
19127 It's also possible to mark the object as active.
19129 * objects/UML/pixmaps/object.xpm:
19132 * objects/UML/message.c:
19133 Added "recursive" message type (was not necessary to use OrthConn).
19135 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
19137 * objects/standard/arc.c:
19138 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19140 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
19142 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19146 Update xml includes to gnome-xml/*.h.
19148 * objects/standard/arc.c:
19149 Only one property dialog per type.
19150 Fix arrows directions.
19152 * objects/standard/box.c:
19153 * objects/standard/ellipse.c:
19154 * objects/standard/textobj.c
19155 Added default properties dialog.
19158 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19160 * objects/UML/Makefile.am:
19161 * objects/UML/uml.c:
19162 * objects/UML/lifeline.c:
19163 * objects/UML/object.c:
19164 * objects/UML/message.c:
19165 * objects/UML/pixmaps/lifeline.xpm:
19166 * objects/UML/pixmaps/object.xpm:
19167 * objects/UML/pixmaps/message.xpm:
19168 Added 3 new UML objects for dynamic modeling. To avoid internal
19169 conflicts, the name "objet" is used for object "object".
19172 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
19175 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
19177 * app/display.[ch]:
19178 * app/modify_tool.c:
19179 Added autoscrolling while doing rubber-band select.
19180 This patch from Matthias KĂƒÂ¶ster
19181 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
19184 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
19186 * app/defaults.[ch]:
19187 New files, deals with default properties dialog.
19190 New file. Contains definitions for the new object menu.
19192 * lib/poly_conn.[ch]:
19193 New file. Base class for poly-line like objects.
19195 * objects/standard/polyline.c:
19196 * objects/standard/pixmaps/polyline.xpm:
19197 New files. Polyline object.
19200 Fixed bug with infinite loop when registering sheets.
19203 Removed unneccesary stuff.
19205 * app/disp_callbacks.c:
19206 Support for object menus.
19209 Added polyline to toolbox.
19210 Added call to tool_options_dialog_show() when double clicking on
19214 New function tool_options_dialog_show() for tool properties.
19220 Added ObjectType methods for handling object default dialogs.
19221 Added Object method for handling object_menu.
19222 Added unused methods to ObjectTypeOps for future binary
19225 * lib/widgets.[ch]:
19226 Added DiaArrowTypeSelector widget.
19228 * objects/standard/arc.c:
19229 * objects/standard/zigzagline.c:
19230 Added support for default properties.
19232 * objects/standard/line.c:
19233 Added support for default properties.
19234 Just use one properties dialog for all line objects. NOTE: This
19235 seems to have a bug. We're working on it.
19237 * standard/standard.c:
19238 Add the polyline object.
19240 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
19242 * app/modify_tool.c:
19243 Commented out buggy transitive select function. It wasn't really
19244 meant to go into cvs.
19247 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
19259 Swedish translation. Not completed.
19263 Added possibility to enable GNOME specific code with configure.
19266 Added possibility to set debug level with configure.
19269 Added about dialog.
19275 Added some GNOME specific code. Not ready for use.
19277 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
19280 Added text about needing gtk 1.1.13 and gnome-xml.
19283 Described changes since last version (0.20).
19285 Released version 0.30, tagged DIA_0_30.
19287 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
19289 * app/magnify.c (magnify_button_release):
19290 Fixed a problem when zooming in on a very small box would
19291 not release the grabbed pointer-focus.
19293 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19295 * app/load_save.c (diagram_load):
19296 Be somewhat more robust when loading files that
19299 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19303 * objects/UML/uml.c:
19304 * objects/network/network.c:
19305 * objects/standard/standard.c:
19306 Added versioning of object libraries.
19308 * app/create_object.c:
19309 Don't change tool when an object is created.
19311 * objects/network/network.c:
19316 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
19319 Updated gtk requirement to Gtk+ 1.1.13.
19322 Always add one screenful of scrolling space on
19323 each side of a diagram window.
19325 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
19328 Tell automake to auto-install missing files.
19331 Renamed deprecated Gtk+ function.
19333 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
19337 * samples/Makefile.am:
19338 * samples/ER-demo.dia:
19339 * samples/UML-demo.dia:
19340 Added samples directory.
19341 Added samples for ER and UML.
19344 * app/disp_callbacks.c:
19346 Zoom is done by sqrt(2) instead of 2.
19347 Lots of more zoom options in the menu.
19349 * objects/ER/relationship.c:
19350 Relationships have 8 connectionpoints instead of 4.
19352 * objects/UML/class.c:
19353 UML class name font a bit smaller.
19354 Fixed stupid bug in the copy operation.
19357 Displays are opened at 500x400 instead of 256x256.
19360 Fixup of internal error message.
19362 * app/color_area.c:
19364 * app/modify_tool.c:
19366 Removed debug printf's.
19369 Added new known bug.
19371 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
19375 Fixed so accelerator groups work in all windows.
19376 Updated to new gtk function names.
19382 Updated to new gtk function names.
19383 Set sensitivity of the align menu items.
19385 * objects/ER/pixmaps/Makefile.am:
19386 * objects/UML/pixmaps/Makefile.am:
19387 * objects/network/pixmaps/Makefile.am:
19388 Fix so that make dist works.
19391 * app/color_area.c:
19395 * app/layer_dialog.c:
19397 * app/object_ops.c:
19398 * app/properties.c:
19399 * lib/diagramdata.[ch]:
19401 * lib/objects/ER/attribute.c:
19402 * lib/objects/ER/entity.c:
19403 * lib/objects/ER/participation.c:
19404 * lib/objects/ER/relationship.c:
19405 * lib/objects/ER/.c:
19406 * objects/UML/actor.c:
19407 * objects/UML/association.c:
19408 * objects/UML/class_dialog.c:
19409 * objects/UML/dependency.c:
19410 * objects/UML/generalization.c:
19411 * objects/UML/large_package.c:
19412 * objects/UML/realizes.c:
19415 Updated to new gtk function names.
19418 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
19424 Fixed loading of diagrams specified as arguments.
19426 * objects/ER/attribute.c:
19427 * objects/ER/entity.c:
19429 * objects/ER/participation.c:
19430 * objects/ER/relationship.c:
19431 Updated the ER objects.
19434 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
19438 * objects/Makefile.am:
19439 * objects/ER/attribute.c:
19440 * objects/ER/entity.c:
19442 * objects/ER/participation.c:
19443 * objects/ER/relationship.c:
19444 * objects/ER/pixmaps/Makefile.am:
19445 * objects/ER/pixmaps/attribute.xpm:
19446 * objects/ER/pixmaps/entity.xpm:
19447 * objects/ER/pixmaps/participation.xpm:
19448 * objects/ER/pixmaps/relationship.xpm:
19449 * objects/ER/pixmaps/weakentity.xpm:
19450 First commit of entity relationship objects.
19451 These were done by hallon@lysator.liu.se.
19452 There are still stuff to do on these.
19454 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
19459 * app/diagram.[ch]:
19460 Change diagram_remove_all_selected to take new argument
19461 delete_empty. Empty objects are deleted only if it is TRUE.
19462 Removed call to close_eps_renderer. This is now done in end_render
19463 in the eps renderer.
19465 * app/create_object.c:
19466 * app/layer_dialog.c:
19467 Update calls to diagram_remove_all_selected.
19470 Update calls to diagram_remove_all_selected.
19471 Some code reformating.
19472 Changed order of adding updates i align_h and align_v.
19474 * app/modify_tool.c:
19475 Update calls to diagram_remove_all_selected.
19476 Added pointer grab when doing rubber-band selection, this fixes
19477 the bug when draging the box over to another window.
19479 * app/connectionpoint_ops.[ch]:
19480 diagram_update_connections_object changed to take an argument
19481 update_nonmoved. This lets connections that has not moved, but
19482 the stuff they're connected to has been moved work.
19483 Update calls to the new diagram_update_connections_object.
19485 * app/properties.c:
19486 Update calls to the new diagram_update_connections_object.
19487 Update extents when properties are applied.
19489 * app/disp_callbacks.c:
19490 Added support for zooming with the '+' and '-' keys.
19493 Removed old keyboard shortcuts for zoom.
19496 Added calls begin_render and end_render to renderer.
19497 These can be used for setup and cleanup.
19499 * lib/diagramdata.c:
19500 Added calls to begin_render and end_render in data_render.
19502 * app/render_gdk.c:
19503 Added begin_render and end_render.
19505 * app/render_eps.[ch]:
19506 Added begin_render and end_render.
19507 Moved close_eps_renderer code to end_render.
19508 Various fixes to the generated eps code. This fixes importing
19509 generated eps into LYX.
19511 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
19517 Menus for alignment updated.
19519 * app/object_ops.[ch]:
19520 Functions for object alignment updated.
19522 * app/commands.[ch]:
19523 Object alignment callbacks updated.
19524 New diagrams are called Untitled-<nr>.
19526 * app/layer_dialog.c:
19527 Active layer selected when showing layers from new
19531 Compress xml files when saving.
19532 Use xml namespace 'dia'.
19535 Minor comment update.
19537 * objects/UML/class_dialog.c:
19538 Cleanup of the gkt_list_item moving code.
19539 Fixed bug with update of operation when moving parameters.
19541 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
19543 * app/layer_dialog.[ch]:
19544 Fixed the rest of the layers dialog.
19547 Added call to redo layer dialogs diagram list when changing
19550 * lib/diagramdata.[ch]:
19551 Added data_raise_layer and data_lower_layer functions for
19552 raising/lowering layers. Added data_add_layer_at for adding a
19553 layer at a specified index.
19555 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
19557 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
19560 Added support for reading diagrams from the command line.
19562 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
19564 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
19566 * app/commands.[ch]:
19567 Added objects_align_callback().
19570 Added align objects to menu.
19572 * app/object_ops.[ch]:
19573 Add object_list_align().
19575 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
19576 * app/layer_dialog.[ch]:
19577 New files. Handles the layers dialog. Needs a bugfix for glib to
19578 work. Sent patch to gtk-list.
19580 * app/pixmaps/new.xpm:
19581 * app/pixmaps/eye.xbm:
19582 * app/pixmaps/lower.xpm:
19583 * app/pixmaps/raise.xpm:
19584 * app/pixmaps/delete.xpm:
19585 New files. Images for the layer dialog buttons.
19587 * lib/diagramdata.h
19588 * lib/diagramdata.c
19589 New files for the DiagramData and Layer structures and functions.
19592 Added call to create_layer_dialog() on startup.
19594 * app/commands.[ch]:
19595 New callbacks for showing the properties and layout dialog.
19596 Changes for the new DiagramData structure.
19598 * app/connectionpoint_ops.c:
19599 * app/cut_n_paste.c:
19600 * app/diagram.[ch]:
19601 * app/display.[ch]:
19603 * app/modify_tool.c:
19604 * app/object_ops.[ch]:
19605 * app/render_eps.c:
19607 Changes for the new DiagramData structure.
19610 * app/properties.c:
19611 Set correct wmclasses.
19614 Fix load and save of layers.
19617 Update DTD for layers.
19620 New menus for dialogs.
19626 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
19629 Removed the gtk 1.1.5 stuff.
19632 Updated gtk check to version 1.1.5.
19633 Updated version from 0.20 to 0.30
19635 * app/commands.[ch]:
19636 Updated some callbacks to be of type GtkItemFactoryCallback1.
19637 Not all are done yet, but it works anyway.
19640 Removed Gtk 1.0.0 GtkAcceleratorTable references.
19644 Update to Gtk 1.1.x functions.
19645 Use ItemFactory instead of MenuFactory.
19647 * app/render_gdk.c:
19648 Removed Gtk 1.0.0 references.
19650 * objects/UML/class_dialog.c:
19651 Scrolled window updates for Gtk 1.1.5.
19654 Removed ugly fix for gnome-xml bug. Make sure you get the
19655 newest version of gnome-xml from CVS.
19657 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
19660 Removed the xml load/save line.
19666 Removed building of files.c
19669 * lib/connection.c:
19673 * lib/render_object.c:
19674 * objects/UML/actor.c:
19675 * objects/UML/association.c:
19676 * objects/UML/class.c:
19677 * objects/UML/constraint.c:
19678 * objects/UML/dependency.c:
19679 * objects/UML/generalization.c:
19680 * objects/UML/implements.c:
19681 * objects/UML/large_package.c:
19682 * objects/UML/note.c:
19683 * objects/UML/realizes.c:
19684 * objects/UML/small_package.c:
19685 * objects/UML/uml.c:
19686 * objects/UML/usecase.c:
19687 * objects/network/bus.c:
19688 * objects/standard/arc.c:
19689 * objects/standard/box.c:
19690 * objects/standard/ellipse.c:
19691 * objects/standard/line.c:
19692 * objects/standard/textobj.c:
19693 * objects/standard/zigzagline.c:
19694 Removed all includes of files.h
19697 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
19700 Made the val property of string be implied.
19701 This makes it possible to save strings that
19702 are NULL. Just leave out val.
19704 * objects/lib/dia_xml.c:
19705 Fixed string so that it is possible to save strings
19706 that are NULL. Also made an ugly workaround of a
19707 bug in gnome-xml which removes empty properties.
19709 * objects/lib/orth_conn.c:
19710 Fixed a bug in saving. Forgot to step through the
19713 * objects/UML/association.c:
19714 * objects/UML/class.c:
19715 * objects/UML/constraint.c:
19716 * objects/UML/dependency.c:
19717 * objects/UML/generalization.c:
19718 * objects/UML/implements.c:
19719 * objects/UML/large_package.c:
19720 * objects/UML/note.c:
19721 * objects/UML/small_package.c:
19722 * objects/UML/realizes.c:
19723 * objects/UML/usecase.c:
19724 * objects/UML/actor.c:
19725 Fixed UML objects to save as xml.
19726 The last two were done by asierra@servidor.unam.mx (asierra-981204)
19728 * objects/UML/uml.[ch]:
19729 Updated *_write() and *_read() functions to use xml.
19731 * objects/network/bus.c:
19732 * objects/network/computer.c:
19733 * objects/network/disc.c:
19734 * objects/network/monitor.c:
19735 Updated network diagrams to use xml.
19737 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
19740 New file. DTD that describes the xml file format
19743 * lib/dia_xml.[ch]:
19744 New files. Support for saving object to xml files.
19749 Added check for and usage of gnome-xml library.
19752 Major chages. Now saves/loads diagrams as xml.
19755 * lib/element.[ch]:
19756 * lib/connection.[ch]:
19757 * lib/orth_conn.[ch]:
19758 * lib/render_object.[ch]:
19760 Updated object support load/save functions for xml:
19762 * object/standard/arc.c:
19763 * object/standard/box.c:
19764 * object/standard/ellipse.c:
19765 * object/standard/line.c:
19766 * object/standard/textobj.c:
19767 * object/standard/zigzagline.c:
19768 Updated all standard objects to use xml.
19771 Only the standard objects are converted right now, don't
19772 save or load uml or network diagrams yet. Also, since this
19773 is new code it is deemed a bit unstable.
19778 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
19780 * objects/UML/class.c:
19781 Changed classname font to Helvetica.
19782 Added more space above the classname
19784 * objects/UML/usecase.c:
19785 Correct placements of connectionpoints on ellipse.
19786 Better algorithm for deciding aspect ration on
19789 These changes were made by Alejandro Aguilar Sierra
19790 <asierra@servidor.unam.mx>. (asierra-981201)
19792 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19794 * objects/UML/actor.c:
19795 Changed the extents and alignment of the element
19798 * objects/UML/.cvsignore:
19799 Added usecase.lo and actor.lo.
19801 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
19803 * objects/UML/actor.c:
19804 * objects/UML/usecase.c:
19805 * objects/UML/pixmaps/actor.xpm:
19806 * objects/UML/pixmaps/case.xpm:
19807 New files. Implements usecase and actor UML objects.
19808 These objects are done by Alejandro Aguilar Sierra
19809 <asierra@servidor.unam.mx>.
19811 * objects/UML/Makefile.am:
19812 * objects/UML/pixmaps/Makefile.am:
19813 Added usecase and actor to makefile.
19816 Added Alejandro and Jerome to autors list.
19818 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
19820 * objects/UML/class.c (umlclass_load):
19821 Fixed typo. Reported by Jerome.Abela@solsoft.fr
19823 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
19825 * app/properties.c:
19826 Update connections when doing apply in the properties window.
19828 * objects/UML/uml.[ch]:
19829 * objects/UML/class.[ch]:
19830 * objects/UML/class_dialog.c:
19831 Added connection points on both sides of attributes and
19832 operations in UML classes.
19833 Based on idea from Jerome.Abela@solsoft.fr
19835 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
19838 Some new documentation about handles and connectionpoints.
19841 Added functions object_add_connectionpoint and
19842 object_remove_connectionpoint for handling a dynamic
19843 number of connectionpoints.
19845 * objects/UML/class.c:
19846 Only reserve space for stereotype when it is shown.
19848 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
19850 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
19852 * app/connectionpoint_ops.c:
19854 * app/disp_callbacks.c:
19855 * app/display.[ch]:
19857 * app/handle_ops.c:
19859 * app/modify_tool.c:
19860 * app/render_gdk.[ch]:
19862 Huge cleanup of internal rendering system.
19863 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
19864 This gives a few new methods for Interactive Renderers for setting
19865 clipping regions and drawing pixel based lines and rects.
19866 Updated the rest of the code to use the new stuff.
19868 * app/render_eps.c:
19872 * objects/standard/zigzagline.c
19873 Fixed unused variable warnings.
19876 Fixedbug with stringwidth where width==0.
19881 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
19883 * lib/widgets.[ch]:
19884 Added suppot for setting the font of a
19885 DiaFontSelector widget.
19886 Also fixed some typos in the header.
19889 Added a comment about the GetPRoperties method call.
19890 You have to make sure to update widget state when
19891 this method is called. (Not all objects do this yet,
19897 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
19900 Fixed problem with height of ascent and descent for fonts.
19901 It didn't use the whole height (==ascent+descent) when calculatine
19902 ascent_ratio and descent_ratio.
19904 * objects/standard/textobj.c:
19905 * objects/standard/box.c:
19906 * objects/standard/ellipse.c:
19907 * objects/standard/line.c:
19908 * objects/standard/arc.c:
19909 Updated and added property dialogs for these objects.
19910 Also added line width/color/style to those objects
19911 that didn't have it.
19912 This change breaks fileformat compatibility for these objects.
19914 * objects/standard/zigzagline.c:
19915 Changed zigzagline to be based on OrthConn, much nicer.
19916 Also added line style and color to properties.
19917 This change breaks fileformat compatibility for zigzagline.
19920 Fixed bug in message(). Forgot a pair of '&'.
19922 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
19924 * lib/widgets.[ch]:
19925 Added DiaColorSelector widget.
19926 This is a colored button that pops up a color selection
19927 dialog when pressed.
19929 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
19931 * lib/widgets.[ch]:
19933 New files, added widgets for selecting fonts, alignment
19934 and line-style. Will be used later.
19936 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
19940 * objects/UML/Makefile.am:
19941 * objects/network/Makefile.am:
19942 * objects/standard/Makefile.am:
19943 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
19944 in all Makefile.am.
19946 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
19948 * app/handle_ops.c (handle_draw):
19949 connected HANDLE_MINOR_CONTROL also becomes red.
19951 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
19954 removed -ldl from linking. This is added if needed by configure.
19957 Open dlls with RTLD_LAZY if it is defined.
19958 Some cleanups: char *error -> const char *error
19959 Added fprintf()'s to where we exited because of errors.
19962 Include <sys/types.h>
19964 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
19969 Detect dlopen better.
19970 Detect wether dlopen needs an underscore in the identifier.
19971 This code was mostly borrowed from guile.
19975 * objects/standard/standard.c:
19976 * objects/network/network.c:
19977 * objects/UML/uml.c:
19979 Changed the way sheets reference objects to use just the
19980 name. Changed module loading to a two stage model:
19981 First register_objects() is called for all modules.
19982 Then register_sheets() is called. This means that
19983 sheets can safely include objects from other modules.
19986 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
19988 * objects/network/bus.c:
19989 * objects/network/network.c:
19990 * objects/network/Makefile.am:
19991 New file bus.c. Added new object: Ethernet bus.
19993 * objects/standard/box.c:
19994 Added call to gtk_spin_button_set_numeric for linewidth spinner
19995 in property dialog.
19997 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
19999 * app/connectionpoint_ops.c:
20000 * app/create_object.c:
20002 * app/handle_ops.c:
20003 * app/modify_tool.c:
20004 * lib/connection.c:
20009 * loads of objects:
20010 Changed handle->connectable to handle->connect_type.
20011 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20012 that their connections don't break when moving objects.
20015 Always select the last handle in an object that has
20016 the closest distance.
20018 * lib/geometry.[ch]:
20019 Added rectangle_add_point function.
20022 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
20024 * app/properties.[ch]: New files. Handles the new properties
20027 * app/modify_tool.c: Changed to use new properties dialog.
20029 * app/object_ops.[ch]: Removed object_changed_callback, as it's
20030 not needed anymore. This is now handled differently in
20034 Changed the properties ops for objects. Removed typedefs
20035 ChangedObjectTime and ObjectChangedFunc needed for the old way.
20036 Added object_return_null function.
20039 * lib/render_object.c:
20041 Changed objects to use the new properties dialog.
20044 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
20046 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20049 * autogen.sh: New file. Copied from gtk and added a call to
20050 libtoolize. Anyone knows why this isn't done in gtk?
20052 * Removed autogenerated files.
20054 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
20056 * Added call setlocale(LC_NUMERIC, "C") so that formating of
20057 floating-point numbers in postscript output will be correct.
20058 * Did some cleanup of generated postscript files.