2007-03-29 Lars Clausen * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Release 0.96.1 is a brown-bag release for empty initial line problem in shapes, and a couple other bugs. * app/diapsrenderer.c (draw_text_line): Use language-independent float conversion in new text rendering code. Fixes bug #424052. * plug-ins/vdx/vdx-import.c: Updated to version 0.9.4 to fix shape problems and text errors. Fixes bug #417956. * lib/text.c (text_key_event): Treat keypad enter like return. Fixes bug #423480. * plug-ins/dxf/dxf-import.c: Load closed polyline as polygon, patch from Ben Abbott fixes font height problems. Fixes bug #421250. 2007-03-28 Lars Clausen * objects/custom/custom_object.c (custom_update_data): Use newer way to get text ascent. Fixes bug #423351. 2007-03-25 Lars Clausen * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Release 0.96 hits the streets. 2007-03-18 Hans Breuer * app/load_save.c : glib/gstdio.h was protected by #if GLIB_CHECK_VERSION(2,8,0) but it is supposed to be available since glib-2-6. We rely on that anyway. 2007-03-18 Hans Breuer * app/app_procs.c : avoid stumbling over libxml2 preprocessor tricks for LIBXML_THREAD_ENABLED (not at all platform specific) 2007-03-18 Lars Clausen * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Pre9 hot on the heels of pre8. * app/app_procs.c plug-ins/wmf/wmf.cpp : portability fixes 2007-03-17 Hans Breuer * app/app_procs.c app/autosave.c app/commands.c app/diaconv.c app/export_png.c app/filedlg.c app/load_save.c app/paginate_psprint.c app/preferences.c app/render_eps.c app/sheets_dialog.c app/sheets_dialog_callbacks.c lib/dia_dirs.c lib/dia_xml.c lib/diagdkrenderer.c plug-ins/cgm/cgm.c plug-ins/dxf/dxf-export.c plug-ins/dxf/dxf-import.c plug-ins/hpgl/hpgl.c plug-ins/metapost/render_metapost.c plug-ins/pgf/render_pgf.c plug-ins/pstricks/render_pstricks.c plug-ins/python/pydia-render.c plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c plug-ins/vdx/vdx-export.c plug-ins/vdx/vdx-import.c plug-ins/wmf/wmf.cpp plug-ins/wpg/wpg.c plug-ins/xfig/xfig-export.c plug-ins/xfig/xfig-import.c plug-ins/xslt/xslt.c : use to match GLib's filename encoding to the io functions used, that is: g_open, g_fopen, g_stat, g_unlink, g_mkdir, g_rename (, g_access, g_lstat, g_remove, g_freopen, g_chdir, g_rmdir). Also replace gzopen() with gzdopen(g_open(), ...) to properly handle unicode filenames; finally use g_mkstemp(). Fixes bug #131210 and bug #397159. To make this fully work on win32 a recent enough version of libxml2 is required - tested with 2.6.27 - but anything from 2.6.24 should do. * plug-ins/cairo/diacairo.c : special handling for cairo which currently only supports filenames in the C runtime locale. 2007-03-17 Hans Breuer * plug-ins/python/aobjects.py : if created a diagram, display it ... * app/display.c : ... and don't crash with display update before we had the chance to reate a renderer. * app/filedlg.c : plugged some leaks and made the filter sensitive extension update work, by relying less on what we get back from gtk+ Fixes bug #403195. [some playing with valgrind : memory leaks] * lib/text.c(text_set_line_text) : removed superfluous g_strdup() * app/interface.c : gtk_accelerator_get_label() and g_strconcat() return newly allocated strings and gtk_tooltips_set_tip() does not free them [jump or move depends on uninitialised value(s)] * objects/network/radiocell.c : dont call polyshape_update_data() without initialized points * plug-ins/python/aobjects.py : somehow an extra 'd' got commited :) * plug-ins/python/aobjects.py plug-ins/python/Makefile.am : Self Documenation Part III and stress test, creates all Dia Objects * objects/FS/flow-ortho.c objects/FS/flow.c : removed partial left over of 'static DiaFont*' which caused a crash on creation * objects/UML/umlattribute.c objects/UML/umlformalparameter.c objects/UML/umloperation.c : don't crash on name being NULL * objects/custom/custom_object.c : call *_update_data in *_copy Fixes the disappearance of object drawing after cut&paste (bug #416414, Stein Somers) * plug-ins/python/pydia-font.c : cmpfunc is supposed to return out of (-1, 0, 1) * lib/utils.h lib/message.h : added C++ guards 2007-03-17 Steffen Macke * installer/win32/locale/slovak.nsh: Use Codepage 1250, fixed errors 2007-03-16 Lars Clausen * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Pre8? Really? Furrfu! * doc/en/Makefile.am (dia.1): Allow net access for getting the XSLT. Let's see if it causes more problems than it solves. Fixes bug #391545. * app/textedit.c (textedit_remove_focus): Do not free that which has not been allocated (focus!). Fixes bug #418188. * plug-ins/pgf/render_pgf.c (draw_*_with_arrows): Don't assume that the arrow pointers are non-null. Fixes bug #413309 * plug-ins/vdx/vdx-import.c: Patch to fix crash bug #417956. 2007-03-14 Steffen Macke * installer/win32/locale/slovak.nsh: (added) * installer/win32/locale/Makefile.am: * installer/win32/dia.nsi: Added Slovak translations for installer. Thanks to helix84 2007-03-11 Lars Clausen * widgets.c (get_units_name_list): * widgets.h: New function to give names of units for prefs. * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Pre7 * lib/prop_geomtypes.c (lengthprop_get_widget): Default to cm in display to be similar to other reals. * lib/widgets.c (dia_unit_spinner_value_changed): Leave space before unit. * Makefile.am (desktopdir): Put .desktop file in right dir. Fixes bug #415767. * app/diagram.c (diagram_group_selected): Don't try to group no objects. Fixes bug #410483, though the overall problem of activateable insensitive menu items remains. * lib/dia_image.c (dia_image_draw): * lib/dia_image.h: * lib/diagdkrenderer.c (draw_image): Give a GC to the image rendering function -- also change to using gdk_draw_pixbuf. Fixes bug #401774. * lib/focus.c (remove_focus_object): Make sure a removed object no longer has the active focus. Fixes bug #414708. * app/textedit.c (textedit_end_edit): Don't assert active_focus when it might not be true (during destruction). (textedit_remove_focus): Free the old focus when done. 2007-03-07 Steffen Macke * lib/diaarrowchooser.c: Include config.h to compile with MSVC 2007-03-06 Steffen Macke * installer/win32/dia.nsi: Added plug-ins/python/doxrev.py 2007-03-05 Lars Clausen * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Pre6 * lib/diaarrowchooser.c: Use _dia_translate instead of gettext for tooltips and "Details...". Fixes bug #406066. * app/diagram_tree_menu.c (create_factory): Add translate_func to item factory. * plug-ins/metapost/render_metapost.c: Patch from Robert Young : Scale text correctly with page scaling. 2007-03-04 Lars Clausen * app/export_png.c (export_png_ok): * plug-ins/pixbuf/pixbuf.c (export_data): Fix rounding error of bitmap export. Fixes bug #413275. * app/diagram.c (diagram_load): Correctly update title on defaulted diagrams. * objects/UML/class.c: * objects/UML/class_dialog.c: * objects/standard/line.c (line_save): #ifdef DEBUG'ed out sanity check calls. 2007-02-26 Lars Clausen * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Pre5 2007-02-25 Gabor Kelemen * installer/win32/locale/hungarian.nsh: * installer/win32/dia.nsi: Hungarian installer translation added. 2007-02-18 Hans Breuer * app/diagram.c : moved diagram only stuff from diagram_load_into() to diagram_load() so ... * app/interface.c : ... we can use diagram_load_into() to drop files on the canvas, i.e. really load them _into_ an exisiting diagram * plug-ins/python/pydia-property.c : better debug support for wrong types in lists (of lists) when doing array assignments (e.g. uml_class::operations) * plug-ins/python/doxrev.py : an import filter for XML generated by doxygen. One step further to do reverse engineering with Dia. * plug-ins/python/Makefile.am : at the moment only added to EXTRA_DIST 2007-02-17 Lars Clausen * objects/UML/class.c * objects/UML/object.c * objects/UML/state.c * objects/UML/small_package.c * objects/GRAFCET/boolequation.c: Make sure to call set_font before calling draw_string, fixes bug #408519 * objects/UML/class.c (umlclass_set_props): #ifdef out debugging statement. 2007-02-12 Hans Breuer * lib/libdia.def : added text_get_line_strlen * makefile.msc : delete config.h on clean * plug-ins/python/pydia-property.c : allow to set string properties with unicode 2007-02-10 Hans Breuer [ two more steps slowly fixing issues from bug #340352 ] * plug-ins/python/diamodule.c : instead of breaking compatibility with former PyDia plug-ins reimplmented dia.register_calback() by mapping to the GtkAction framework (it is not yet possible again to create new menus, only adding menuitems to existing menus) * plug-ins/python/select_by.py : restored menuitems to shorter form 2007-02-08 Steffen Macke * installer/win32/dia.nsi: * installer/win32/langmacros.nsh: * installer/win32/locale/*.nsh: Added Python plug-in 2007-02-05 Lars Clausen * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Pre4 * plug-ins/vdx/vdx-export.c: Patch for crash. 2007-02-03 Lars Clausen * lib/dialibartrenderer.c (get_text_width): * lib/diagdkrenderer.c (get_text_width): * lib/text.c: Use g_utf8_strlen where character, not bytes are the goal. Also remove utterly the unnecessary optimization of keeping strlen around for each and every line. * lib/text.[ch]: Remove clearly unneeded array of strlen. Easier to just call strlen when needed. * objects/GRAFCET/action_text_draw.c (action_text_draw): Change offending direct use of text->strlen. * plug-ins/vdx/vdx.c * plug-ins/vdx/vdx-common.c * plug-ins/vdx/vdx-export.c * plug-ins/vdx/vdx.h * plug-ins/vdx/vdx-import.c * plug-ins/vdx/vdx-xml.c * plug-ins/vdx/visio-types.h: Upgrade to version 0.9 of VDX plug-in. 2007-01-28 Hans Breuer * app/recent_files.c : don't treat underscores in filenames as accelerators, see bug #340352 * app/menus.c : again register a translation function for menus/actions. This fixes the code part of bug #400616 Every translation needs to be updated to translate 'verbs' instead of complete menu pathes 2007-01-25 Lars Clausen * plug-ins/metapost/render_metapost.c (draw_text_line): First stab at text_line for metapost. Needs width adjustment. * app/diagram.c (diagram_get_name): Don't emulate g_path_get_basename buggily, just use it. Fixes bug #399535. * lib/dia_svg.c (dia_svg_parse_path): Patch from robert.young@dsto.defence.gov.au solves infinite loop in loading shapes. 2007-01-25 Steffen Macke * installer/win32/dia.nsi: Added some more *.po files to the installer; include dia-win-remote.exe 2007-01-23 Steffen Macke * installer/win32/dia.nsi: Added BPMN sheet and shapes to installer 2007-01-22 Lars Clausen * plug-ins/vdx/vdx-import.c: * plug-ins/vdx/vdx-export.c: * plug-ins/vdx/vdx-common.c: * plug-ins/vdx/vdx-xml.c: * plug-ins/vdx/vdx.[ch]: * plug-ins/vdx/visio-types.h: Updated to version 0.8. * NEWS: * RELEASE-PROCESS: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: Pre3 2007-01-21 Lars Clausen * installer/rpm/dia.spec: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: * configure.in: * NEWS: Prerelease 2 of 0.96. * Makefile.am (applicationsdir): * po/POTFILES.in: Create versioned dia.desktop file by first intltool'ing it and then replacing the version number. * app/interface.c (create_tools): End g_strconcat with NULL. Fixes bug #398286. 2007-01-18 Lars Clausen * lib/Makefile.am (AM_CPPFLAGS): * lib/dia_dirs.c: DIA_DATADIR and DIA_LIBDIR reverted to being DATADIR and LIBDIR, see http://mail.gnome.org/archives/dia-list/2007-January/msg00008.html and bug #385701. 2007-01-16 Lars Clausen * doc/en/usage-layers.xml: Corrections from Mick Curtis & Tim Bogie (see bug #347210). 2007-01-14 Lars Clausen * Makefile.am (%.desktop.in): Attempt at better desktop.in building rule. No luck. * app/menus.c (tool_entries): Using shift-alt instead of alt for menus to avoid conflicts with menu shortcuts. Closing bug #350731. * objects/UML/class.c (uml_underline_text): Underline that skips leading whitespace, and is called on each part of a wrapped operation. Fixes bug #390145. * lib/diasvgrenderer.c (draw_text_line): Don't crash rendering text line, use text_line for rendering. Dimensions now correct in SVG file for render-test, too bad nobody seems to obey them:( Fixes bug #332826. * samples/Makefile.am (EXTRA_DIST): Added new samples to dist. * plug-ins/vdx/vdx-import.c: * plug-ins/vdx/vdx-xml.c: * plug-ins/vdx/vdx.h: * plug-ins/vdx/visio-types.h: Updated to version 0.7. Thanks to Ian again for more work on this. * objects/KAOS/metaandorrel.c: Full autogap enabled for line-like connector. Fixes bug #365437. * objects/KAOS/metabinrel.c (mbr_update_data): Added comment on why autogap is hard -- this line is a one-segment bezier. The standard bezier object has a generic bezier autogap function that could be reused given some work. 2007-01-13 Hans Breuer * app/menu.c : register action "ViewAntialised" even if we don't HAVE_LIBART ... * app/display.c : ... and disable the respective menu entry to avoid package dependent ui-file and crashing due to gtk+ bug http://bugzilla.gnome.org/show_bug.cgi?id=396161 2007-01-13 Tommi Vainikainen * app/diagram_tree_window.c (diagram_tree_window_new): "Diagram Tree" window title is now shown as translated. 2007-01-09 Hans Breuer * objects/UML/class.c : comments were not considered for connection point placement. Patch from Vadim Zelenin, fixes bug #342086 2007-01-06 Hans Breuer * plug-ins/python/Makefile.am : EXTRA_DIST += bbox.py * dia.desktop.in : 'svn mv dia.desktop.in dia.desktop.in.in' configure.in : add dia.desktop.in to AC_OUTPUT Makefile.am : changed rule for .desktop handling. Together this should resolve @VERSION@ in the dia.desktop file and thus gives us version info via bug-buddy automatically. This is more important with bug-buddy 2.16 cause there the user can not manually adapt the version anymore. Hopefully fixes bug #393618 (see also bug #348827) * plug-ins/python/bbox.py : draws bounding boxes of the objects in the active layer into a new layer. Helps analyzing the font size problems. * acinclude.m4 : deduce py_config_dir from py_prefix, helps GARNOME and seems not to break anything (tested on Fedora and Gentoo) Joseph Sacco, bug #338368 * plug-ins/python/pydia-property.c : finally implemented getters/setters for LengthProperty and FontsizeProperty. (We really should take g_warning more serious, this one was WARNING **: No handler for type 'length') * plug-ins/xslt/xslt.c : don't use g_warning but message_error for "No valid configuration files found for the XSLT plugin, not loading." 2007-01-05 Hans Breuer * objects/standard/line.c : fix typo in save_arrow(), patch from Michael Duelli closing bug #393201 * app/dia-win-remote.c app/paginate_gdiprint.cpp app/win32print.c lib/dia_dirs.c lib/font.c plug-ins/wmf/wmf.cpp : #define WIN32_MEAN_AND_LEAN before windows.h inclusion where ever possible to reduce namespace clashes 2007-01-03 Hans Breuer * lib/persistence.c : before restoring window positions check if they are still in valid range. Fixes bug #354266 * app/interface.c : refined the zooms-list drop-down to include 800%, stay symmetric and not have more than seven entries. Fixes bug #328596 * lib/makefile.msc : enable strict checking again (-FImsvc_recommended_pragmas.h) to enforce e.g. matching pointers at compile time * lib/textline.h : RenderCacheFreeFunc is only taking a pointer, not a pointer to a pointer and we dont need a pointer to the function pointer in the struct * objects/UML/constraint.c objects/UML/implements.c objects/UML/message.c objects/Jackson/phenomenon.c objects/KAOS/metaandorrel.c : move_handle() method needs to call connection_adjust_for_autogap() after connection_move_handle() because the endpoints used for relative text movement need adjustment after possible autogap correction. Fixes bug #362254. 2007-01-02 Hans Breuer * *.msc, *.win32, HACKING, *.nsh, *.am, *.xbm, *.xpm; *.shape, *.sheet : setting svn:eol-style=native * lib/diagdkrenderer.c : avoid leaks in rounded rectangles, bug #358171, Michael Duelli 2006-12-13 Lars Clausen * Makefile.am (core-translation-report): Clean up after po-checktrans copying. * lib/plug-ins.h (DIA_PLUGIN_API_VERSION): Updated due to changes. * NEWS: * configure.in: * config.h.win32: * doc/en/dia.xml: * doc/pl/dia.xml: * doc/eu/dia.xml: Updated to version 0.96-pre1 * plug-ins/vdx/Makefile.am (libvdx_filter_la_SOURCES): Added visio-types.h * po/POTFILES.in: Removed EML.sheet.in. 2006-12-09 Lars Clausen * app/diapsft2renderer.c (ANNOYING_SCALE_FACTOR): Recalculated the existing random scale factor to work with text_line, removed some old cruft, and switched to using the new adjustment. This fixes, though in a not-well-understood way, bug #384007. * app/Makefile.am: Make it possible to compile without freetype by excluding freetype files. * app/diapsrenderer.c: Don't font_unref until you have font_ref'd the font, in case it's the same font. Fixes crash. Also adjust for baseline in text drawing. 2006-12-03 Lars Clausen * doc/en/usage-objects-special.xml: A few updates. * app/menus.c (display_entries): Add Alt-Return as shortcut for object properties, and Shift-Alt-Return for diagram properties. Closes bug # * objects/SADT/box.c: Make connection points not tear off the side at resize. Thanks to Vadim Zelenin for this patch. 2006-12-02 Lars Clausen * po/POTFILES.in: Add VDX and BPMN files. * lib/dialibartrenderer.c (fill_polygon): Make sure to use odd-even winding rule. Fixes bug #378878. * app/interface.c (tool_data): Add note about Space toggling tools. * samples/render-test.dia: Updated font geometry part since font size has changed. Also added polygon and beziergon with holes. * lib/diasvgrenderer.c: Specify that font-size is in cm, which according to http://www.w3.org/TR/SVG/text.html#FontSizeProperty specifies the baseline-to-baseline size of the font. InkScape does not respect this, nor does gqview. See bug #332826 for details. * lib/textline.c (text_line_cache_values): * lib/font.c (get_layout_offsets): Fix (seemingly) remaining problems in the textline adjustment process. * lib/text.c: Fix a couple bugs, admit to using textline for text rendering, make sure height&font are set from attributes. * lib/text.h: * lib/diarenderer.c: Admit to using textline for text rendering always. * lib/diagdkrenderer.c (draw_text_line): Removed code for caching text rendering, it's not really needed with new textline based rendering being so fast after all. Also remove debugging include of sys/time.h. 2006-12-01 Lars Clausen * plug-ins/pstricks/render_pstricks.c (set_linewidth): Specify unit of measure. See bug #380302. * lib/font.c (get_layout_offsets): Remember the newly constructed runs SList. * lib/textline.c (text_line_cache_values): Don't take run->glyphs to be an array and crash. Still some problems with text rendering. 2006-12-01 Steffen Macke * lib/text.h: Added text_get_line() declaration * lib/text.c: * lib/libdia.def: Added text_get_line_width, text_get_line, text_get_descent,text_get_max_width * objects/UML/object.c: Fixed typo in objet_draw() * plug-ins/vdx/vdx-export.c: Use g_ascii_strncasecmp() instead of strcasecmp() 2006-11-30 Lars Clausen * app/diapsft2renderer.c (draw_text_line): * lib/textline.[ch] (text_line_adjust_glyphs): * lib/diagdkrenderer.c (draw_text_line): Adjusting widths no longer mallocs and frees, merely changes the existing object. * lib/text.c (text_draw): Remember to set_font, even though draw_text doesn't require it anymore. 2006-11-29 Lars Clausen * lib/diarenderer.c: Make default draw_text use its internal TextLine structures. * objects/UML/object.c: * objects/UML/classicon.c: * objects/UML/node.c: * objects/GRAFCET/action.c: * objects/GRAFCET/action_text_draw.c: * app/modify_tool.c: Use functions to access text internals. There are more places that access the structure directly, which should be changed, but are not critical now. * lib/text.[ch]: Add variant (to become standard) that uses a TextLine for each line. Also expose some information in a more encapsulated way. * lib/diagdkrenderer.c: Use default draw_text implementation. 2006-11-28 Lars Clausen * app/modify_tool.c (modify_make_text_edit): Call text_line_destroy rather than undefined text_line_free. * lib/libdia.def: Removed disappeared _scaled_ functions. * lib/arrows.[ch]: Moving inclusions towards .c, as too many includes in .h confuses MSVC. * lib/text.h: Start of using TextLine for Text lines. 2006-11-26 Lars Clausen * lib/text.[ch]: Encapsulated the arrays in Text to prepare for switching to one array of TextLine. Simplified operations a lot by using standard functions. 2006-11-25 Lars Clausen * lib/font.[ch]: Use text_line for the few remaining functions that used _scaled_ (non of them actually *were* scaled:), and get rid of all the _scaled_ stuff! One less horror of a kludge! * app/diapsft2renderer.c (draw_string): Happy with using text_line for string output. * lib/diagdkrenderer.c: Make highlighted area match text area, and use text_line in get_text_width. These should later be superfluous due to increased use of text_line at higher levels. * lib/dialibartrenderer.c: Implement text_line based rendering of text. Works. Also get_text_width uses a text_line. Text bounding box is still a little off, but that will help once text_line is used in the text system. * lib/arrows.c (arrow_get_name_from_type): Function to get arrow names, and proper error messages when a loaded diagram has bad arrows. Finally fixes bug #144394, thanks to both Pontus Pihlgren and Vadim Zelenin 2006-11-24 Lars Clausen * samples/Metapost-Testcase.dia: A nice test case for MetaPost, including most basic rendering things. * lib/textline.[ch]: Little cache fix, and adding a function to get alignment widths for a TextLine. * lib/diagdkrenderer.c (draw_text_line): Make caching of renderer data for textline work, get rid of last use of _scaled_ stuff. 2006-11-23 Lars Clausen * lib/diagdkrenderer.c (draw_text_line): * lib/textline.[ch]: Underlying implementation and first (currently commented out) attempt at use of textline renderer data cache. Not debugged, but thennobody holds textline objects long enough to make a difference yet. 2006-11-22 Lars Clausen * app/menus.c: Patch adding shortcuts for align functions, thanks be to jan@uos.de. 2006-11-18 Djihed Afifi * configure.in: Added Arabic Language (ar). 2006-11-16 Lars Clausen * lib/font.[ch] (get_layout_offsets): Start of function to adjust all offsets in a layout line. Not used yet, and not debugged. Kept around for when we have more runs in a line. * lib/textline.c (text_line_adjust_layout_line): Adjusts the glyph sizes within a PangoLayoutLine to overcome the rounding problems and ensure linear scaling of fonts. Currently only fixes the first run, since AFAIK that's all we can do with current text input anyway. * lib/diagdkrenderer.c (draw_text_line): Now uses text_line_adjust_layout_line to avoid repeating Pango digging for Freetype and GDK code both. Ready to merge freetype and GDK duplicate code. 2006-11-15 Lars Clausen * plug-ins/vdx/*: Update to version 0.6.1 yields improvements in both export and import. 2006-11-13 Lars Clausen * lib/font.c: Internally calculate glyph offsets at *20 font size to avoid rounding problems. * app/layer_dialog.c: Revamped the visibility toggling system to make visibility change a properly undoable operation, making the page borders resize in the process. * objects/standard/line.c (line_load, line_save): * objects/standard/arc.c (arc_load, arc_save): * objects/standard/polyline.c (polyline_load, polyline_save): * objects/standard/bezier.c (bezierline_load, bezierline_save): * objects/standard/zigzagline.c (zigzagline_load, zigzagline_save): Use generic load/save functions. * lib/libdia.def: * lib/arrows.[ch]: Generic functions for loading and saving arrows, including sanitizing on load, part of fixing bug #144394. * objects/FS/flow-ortho.c (orthflow_draw): * objects/FS/flow-poly.c (orthflow_draw): Update to use modern arrow rendering. * app/modify_tool.c (modify_start_text_edit) (modify_make_text_edit): Don't use dia_font_scaled_* when avoidable. 2006-10-29 Steffen Macke * app/paginate_psprint.c: Made compile with MSVC again 2006-10-26 Lars Clausen * app/interface.[ch]: Patch from jan@uos.de: Write the accelerator keys in tooltips for standard tools. * app/paginate_psprint.c: Patch for better printing: Reasonable file name, check before overwriting, re-popup if file write failed. Thanks to Leon Stringer for this patch. 2006-10-26 Hans Breuer * plug-ins/shape/shape-export.c : the icon export facility dependens on the libart-size-hack; use filter_get_by_name("png-libart") instead of filter_guess_export_filter(). Fixes bug #364491. 2006-10-19 Ignacio Casal Quinteiro * configure.in: Added 'gl' to ALL_LINGUAS 2006-10-16 Hans Breuer * objects/UML/class.c : the comment wrapping was only working for plain ASCII, now it deals with UTF-8 (Vadim Zelenin, bug #349765) 2006-10-16 Theppitak Karoonboonyanan * configure.in : Add 'th' (Thai) to ALL_LINGUAS. 2006-10-14 Hans Breuer * plug-ins/vdx/vdx-import.c : don't try to print("%s", NULL). It is not generally supported and crashes on win32. Fixes bug #349883 * lib/arrows.[hc] : draw hollow arrow heads with linewidth 0.0 correctly. Patch from Michael Duelli fixing bug #358176 * objects/standard/arc.c : don't rely on the result of atan2(inf,inf), it is C-runtime dependent. Fixes infinitesimal burning of CPU cycles, bug #360013 and duplicates. * app/load_save.c : protect gstdio.h by GLIB_CHECK_VERSION and use the * objects/UML/(actor|large_package|node|note).c : use element_update_connections_rectangle() instead of about 25 lines of copy and pasted code * app/load_save.c : make it compile by defining W_OK if it is not there and also use '#if GLIB_CHECK_VERSION(2,8,0)' instead of '#ifdef GLIB_CHECK_VERSION(2,8,0)'. Strange that gcc apparently compiled this * lib/parent.[ch] : parent_handle_move_in_check() was moving the checked point about twice as much as needed, bug #342773. 2006-10-12 Lars Clausen * app/load_save.c (diagram_data_save): If we have GTK 2.8, check that we are allowed to write to the file in question (if it exists) and to the directory (for backup/temp/newly created file). * lib/dia_dirs.c (dia_get_lib_directory, dia_get_data_directory): * lib/Makefile.am (AM_CPPFLAGS): * app/Makefile.am (INCLUDES): Rename DATADIR and LIBDIR to DIA_DATADIR and DIA_LIBDIR to avoid conflicts with libtool and the like. Thanks to lode leroy for pointing out the solution. * plug-ins/pstricks/render_pstricks.c (export_pstricks) (draw_string): Use \psscalebox instead of \scalebox, courtesy of Dan Bolser and the pstricks mailing list. * shapes/Makefile.am (SUBDIRS): * configure.in: * shapes/BPMN/* * sheets/BPMN.sheet.in: * sheets/Makefile.am (sheet_in_files): New shape set BPMN for Business Process Modelling from anthonym@overture.com. * doc/en/dia.dbk: Correctly describing connections. * objects/standard/box.c: Patch from Michael Duelli : Set line attributes before drawing anything. 2006-10-08 Lars Clausen * configure.in: Allow compiling without freetype on Unix systems. The effect of changes to non-freetype parts of the code can now be tested, and I have no excuse to not fix them anymore:( 2006-10-01 Lars Clausen * app/modify_tool.c (modify_motion): Don't use null-ness of connectionpoint to skip snap-to-grid for non-connectable handles. Fixes bug #350246. * shapes/flowchart/predefdproc.shape: Fixed midpoint. 2006-09-27 Steffen Macke * shapes/flowchart/datasource.png: * shapes/flowchart/datasource.shape: * shapes/flowchart/Makefile.am: * sheets/Flowchart.sheet.in: * installer/win32/dia.nsi: Added new "Data source" shape 2006-09-24 Hans Breuer * lib/diagdkrenderer.c : I'm going to rip out all the Freetype code the next time the GDK only compile breaks 2006-09-23 Hans Breuer * app/commands.c app/create_object.c app/disp_callbacks.c : add missing #include "lib/parent.h" * lib/makefile.msc : build textline.obj * objects/makefile.msc : don't build newgroup.obj * objects/misc/libmisc.c : with newgroup gone to app/ newgroup_type can not be registered from the module any longer - at least not on win32 * plug-ins/python/makefile.msc : removed obsolete references to Python 1.5, also removed misleading link to Python 2.2 debug build * app/diagram.[ch] app/app_procs.c : don't use C++ keyword 'virtual' as variable name: s/virtual/is_default/ * plug-ins/python/*.c : don't mix PyObject_NEW() with PyMem_DEL() Newer versions of Python (2.5) are not tolerant about this anymore. 2006-09-11 Lars Clausen * lib/diasvgrenderer.c (draw_text_line): First stab at making svg text line renderer, doesn't work yet. * lib/textline.c (text_line_draw): Removed #define. * lib/diagdkrenderer.c (draw_text_line): Slight cleanups. 2006-09-11 Steffen Macke * plug-ins/vdx/vdx-export.c: * plug-ins/vdx/vdx-import.c: * plug-ins/vdx/vdx-xml.c: * plug-ins/vdx/vdx.h: * plug-ins/vdx/visio-types.h: Update to version 0.5 (from 0.4) of Visio import, thanks to Ian Redfern, who states: This is the first version to support export to VDX - for now, just straight lines and text, but I'm working on the more complex bits. It currently writes Visio 2002 VDX as a lowest common denominator, but that won't handle Beziers, so when I get round to converting them to NURBS, only Visio 2003 users will be able to import them. There are also several improvements to import, both to fix the layout and clean up the code, and it can now import embedded bitmaps - as Dia needs them to be separate files, it puts them in /tmp (or wherever tempnam() goes to on your system). Alternative suggestions are welcome. NURBS import still doesn't work, but everything else seems pretty reliable. In addition, two small adjustments to compile on Windows 2006-09-08 Steffen Macke * app/makefile.msc: * app/Makefile.am: * app/dia-win-remote.c: * installer/win32/dia.nsi: From Windows Explorer, open .dia files in the running Dia instance (if possible). Fixes bug #70718 2006-09-05 Lars Clausen * lib/diatypes.h: * lib/Makefile.am (libdia_la_SOURCES): * lib/diarenderer.[ch]: * lib/font.[ch]: * lib/diagdkrenderer.c: * lib/textline.[ch]: TextLine now ready for commit. Rendering with it is much faster and significantly more precise than without. All renderers should implement a good definitions for this (though there is a default one that uses draw_string), as it can tell the expected width of a string. * lib/libdia.def: Newly defined functions. 2006-08-29 Lars Clausen * lib/textline.[ch]: New text rendering level: A self-contained single-line text object that allows safer caching and hopefully more accurate rendering at various zooms. Using a PangoMatrix didn't seem to help. * lib/font.c: Removing out-deffed layout cache code, it'll never work. Also a couple support functions for my quest of good zoom. 2006-08-20 Hans Breuer * plug-ins/cairo/diacairo.c : get rid of c++ coment * app/diagram.h app/diagram.c app/modify_tool.c app/select.c app/undo.c : reverted 'Shortened diagram_unselect'. It broke plug-ins/python, but more iomportant made one function fromm app/diagram.h asymmetric with all the others. We should not leave the common C OO-pattern of passing an explicit "this pointer" just because that can also be deduced from the other object. 2006-08-18 Lars Clausen * lib/render.[ch]: Finally removed unused render files now known as diarenderer.[ch]. 2006-08-17 Steffen Macke * installer/win32/dia-diagram.ico: * installer/win32/dia.nsi: Assign icon to *.dia files 2006-08-16 Lars Clausen * app/diagram.c (diagram_load): * lib/object.c (dia_object_is_selectable): Two silly null-pointer errors detected by Michael Duelli 2006-08-16 Steffen Macke * app/modify_tool.c: * app/undo.c: Include parent.h * lib/libdia.def: Include dia_object_is_selectable() 2006-08-13 Lars Clausen * objects/Misc/libmisc.c: * {app,objects/Misc}/Makefile.am: * objects/Misc/newgroup.c: * app/newgroup.c: Moved newgroup. * app/diagram.[ch]: * app/undo.c: * app/modify_tool.c: * app/select.c: Trim diagram_unselect_object() to the one required argument. * app/app_procs.c: * app/interface.c (dia_dnd_file_drag_data_received): * app/recent_files.c (open_recent_file_callback): * app/filedlg.c (file_open_response_callback): * app/diagram.c (diagram_load): Make the diagram created at start-up be a virtual diagram that if unchanged is filled in by the first opened diagram, like Gnumeric. 2006-08-11 Lars Clausen * app/properties.c (properties_give_focus): Give focus to first thing in a properties dialog. Still need our own compound widgets to get focus right. 2006-08-06 Lars Clausen * objects/Misc/newgroup.c: * lib/diagramdata.c: * app/diagram.[ch]: * app/select.c: * app/modify_tool.c: * lib/object.[ch]: Work towards a more reasonable definition of Groups. 2006-08-06 Steffen Macke * installer/win32/dia.nsi: Save diagrams by default in "My Pictures"; fixes bug #344247 2006-08-04 Steffen Macke * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm newgroup.xpm , *ui.xml files 2006-08-03 Lars Clausen * sheets/Makefile.am: EML sheet taken out since it's been empty for five years anyway. Fixes bug #347894. * doc/eu/dia.dbk: * doc/en/dia.dbk: * doc/en/usage-layers.xml: Fixed obsolete references to export-to-format. Fixes bug #346510. 2006-08-02 Lars Clausen * plug-ins/vdx/visio-types.h: * plug-ins/vdx/vdx.h: * plug-ins/vdx/vdx-xml.c: * plug-ins/vdx/vdx-import.c: * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of Visio import, thanks to Ian Redfern, who states: Version 0.4 does a passable job with curves, and has the first implementation of Masters. It also handles XForm1D, and fixes a potential crash. It gets some layers in the wrong order and still has some major positioning and sizing issues. Version 0.3 gets object layout correct, and does a better job of text, lines, arrows, layers etc. Some diagrams (that don't contain curves) now render pretty much correctly. 2006-07-16 Hans Breuer * app/cut_n_paste.[hc] : maintain a generation counter to count how many times the stored object list is used * app/commands.c : use the generation for paste placement. The first one after cut is not moved at all: a nice way to move objects between layers without changing their lateral position. Also sprinkled some diagram_update_extents() * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080 * app/recent_files.c : don't g_return_if_fail() on common use case, here an empty recent file list * lib/dia_image.c(dia_image_draw) : don't try to draw anything if width or height is smaller than 1 pixel * plug-ins/cairo/diacairo.c : allow to export to svg if available with cairo. Some tweaking of surface sizes. 2006-07-12 Lars Clausen * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added. 2006-06-28 Lars Clausen * plug-ins/vdx/vdx-import.c: Removed create_standard_group which is in create.c. 2006-06-25 Hans Breuer * app/display.c : avoid to call gettext on parameters for ngettext() Should finally really fix bug #344896 * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml : removed expand="yes" because otherwise the files can't be read with gtk+-2.6.x which follows Dia can't start. Fixes bug #344895 * app/menus.c app/Makefile.am : also find the ui files when run from app/run_dia.sh 2006-06-17 Gintautas Miliauskas * configure.in: Added lt to ALL_LINGUAS. 2006-06-15 Hans Breuer * app/display.c : use ngettext() for possible plural variations. (Bug #344896, tokul@users.sourceforge.net) * objects/UML/class.c : use g_list_append() rather than prepend when copying attributes, operations, formalparams. Fixes bug #342902 Also removed some superfluous outcommented code and fixed a warning. * objects/UML/class.c : dont break reading comment_line_length by misguide compatibility code. Fixes bug #341887 * plug-ins/vdx/vdx-xml.c : added file missing from 0.3 version commit. Fixes bug #344804 * lib/create.h : add create_standard_group() prototype * lib/libdia.def lib/makefile.msc objects/makefile.msc plug-ins/makefile.msc : added missing (files|exports) 2006-06-13 Lars Clausen * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks again to Ian Redfern. 2006-06-12 Elijah Newren * autogen.sh: Run configure by default, allow it to be skipped if NOCONFIGURE is set in the environment. #344574. 2006-06-12 Elijah Newren Pair of build fixes. #344357 * Makefile.am: avoid cp errors when $(srcdir) == . * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of pixmaps/group.xpm as the latter doesn't exist. 2006-06-12 Hans Breuer * plug-ins/python/codegen.py : applied patch from Thomas D Ahle which adds support for Java and inheritance. Closes bug #344187 2006-05-28 Lars Clausen * sheets/Misc.sheet.in: * objects/Misc/Makefile.am (EXTRA_DIST): * objects/Misc/pixmaps/newgroup.xpm: * objects/Misc/newgroup.c: * objects/Misc/libmisc.c: Start of new group model, with "visible" object to test with. This object will later become the default group object and thus (mostly) invisible. * lib/parent.c (parent_handle_move_in_check): * app/create_object.c (create_object_button_press): * app/diagram.c (diagram_unparent_children_selected): * app/disp_callbacks.c (ddisplay_drop_object): * app/load_save.c (write_objects): * objects/network/radiocell.c (radiocell_create): * objects/AADL/aadlbox.c (aadlbox_create): * objects/UML/large_package.c (largepackage_create): * objects/UML/component.c (component_create): * lib/object.[ch]: DiaObject API change: DiaObject now has gint flags rather than gboolean can_parent, and utility function object_flags_set. Uses of can_parent changed to call to function. * doc/en/dia.dbk: Removal of obsolete epsi references. 2006-05-27 Hans Breuer * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator '+': it wants 'plus', same for minus. * tests/exports/cgm/* : cvs admin -kb *.cgm tests/exports/png/* tests/exports/png-libart/* tests/exports/shape/* : cvs admin -kb *.png tests/exports/wpg/* : cvs admin -kb *.wpg mark binary files as such to not get them broken on platforms which insist on replacing line-ends. * app/app_procs.c app/display.c app/filedlg.c app/interface.c app/load_save.c app/sheets.c lib/dia_image.c lib/message.c plug-ins/python/diamodule.c plug-ins/python/pydia-error.c plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD as well. Patch from Hans de Goede, bug #342111 2006-05-27 Rob Staudinger * Makefile.am: * app/Makefile.am: * app/diagram.c: * lib/Makefile.am: * objects/standard/Makefile.am: * plug-ins/python/Makefile.am: Fix out of tree build (#340115). 2006-05-25 Hans Breuer * app/interface.[hc] app/menus.c : rename ToolButton::menu_item to action_name. Don't mark action names for translation. It is not needed and some languages don't support CamelCase. Fixes bug #342895 * app/menus.c : re-added a bunch of accelerators lost in translation to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally it was not available with gtk+-2-6-x. Use dia_get_data_directory() instead of hardcoded UIDATADIR. * app/dia_embedd.c : explain instead of out-comment * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c lib/properties.h dia_xml.c : warningectomy * lib/create.h : create_standard_group() * lib/libdia.def lib/makefile.msc : reflect moved stuff 2006-05-25 Lars Clausen * tests/exports/*.dia: A set of test diagrams for export plug-ins. The intention is to use these for regression tests by ensuring that they don't change when code is altered, or if they change that a manual inspection proves them ok. The fact that an export plug-in passes these tests doesn't mean it's perfect, just that is hasn't degraded. * plug-ins/xfig/xfig-import.c: * plug-ins/vdx/vdx-import.c: * lib/create.[ch]: Functions taken from xfig to create some standard objects easily. Uses of them updated, no longer need to take DiagramData. * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian Redfern . Also a bunch of samples for the purpose from the vdxtosvg project. 2006-05-21 Hans Breuer * app/interface.[hc] app/disp_callbacks.c : removed unused global variable popup_shell * app/pagesetup.c app/diapagelayout.c : restrict every page margin to a little less than half of the page. This guarantees margins leaving some useable page area and thus avoids crashing on negative page sizes. Fixes bug #339562 (also applied to dia-0-95 branch) 2006-05-20 Hans Breuer Patch from Robert Staudinger to base dia menus on GtkAction framework instead on deprecated GtkItemFactory. Tracked in bug #340352. En passant fixes bug #171397 * configure.in : placementof ui files added data/Makefile to AC_OUTPUT * Makefile.am : added data dir * app/Makefile.am : added $(uidatadir) * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c app/diagram_tree_window.c app/diagram_tree_window.h app/disp_callbacks.c app/display.c app/display.h app/interface.c app/menus.c app/menus.h app/recent_files.c : changed a bunch of callback signatures to take GtkAction * app/pixmaps/Makefile.am * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml data/popup-ui.xml : new files containing the menu structure * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter registration change to be more appropriate for actions * lib/libdia.def : updated externals * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c plug-ins/python/group_props.py plug-ins/python/gtkcons.py plug-ins/python/otypes.py plug-ins/python/pydiadoc.py plug-ins/python/scascale.py plug-ins/python/select_by.py : adapted to API change dia.register_callback to dia.register.action * app/authors.h : added Robert to the authors * app/commands.c : got rid of compiler warnings 2006-05-14 Hans Breuer * plug-ins/python/python.c : protect the plug-in against initializing if Python already is initialized. This PyDia extensions is designed for embedding Python. * plug-ins/python/pydia-property.c : LineStyle.dash may be either Float or Integer. * plug-ins/python/diasvg_import.py : remove FontSize debug spew * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already setup use the pango context matching the display. Otherwise fallback to a context from PangoWin32 (matches only for gtk+-2-6, not the one used since gtk+-2-8 using cairo. 2006-05-13 Hans Breuer [ also applied to branch dia-0-95 ] * objects/UML/umloperationc: add "query" to umloperation_offsets. Patch from Peter Allin, fixes bug #338336 [ also applied to branch dia-0-95 ] * app/diagram.c(diagram_ungroup_selected) : operate on a copy of data-Selected cause the original is modified during use. Patch from Victor Stinner, fixes bug #334771 * configure.in config.h.win32 : development started again so 095+cvs. Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1 if necessary) * app/diagram.c : removed long-time outcommented code * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL) it is handled everywhere else just fine. 2006-04-19 Lars Clausen * installer/win32/dia.nsi: * doc/en/dia.xml: * doc/eu/dia.xml: * doc/pl/dia.xml: * config.h.win32: * configure.in: * NEWS: Release 0.95 * shapes/Gane_and_Sarson/process.shape: Connectionpoint update from Nick Moore . 2006-04-17 Kjartan Maraas * configure.in: Remove obsolete entry for no_NO * po/no.po: And the translation. 2006-04-12 Lars Clausen * installer/win32/dia.nsi: * doc/en/dia.xml: * doc/eu/dia.xml: * doc/pl/dia.xml: * config.h.win32: * configure.in: * NEWS: -pre9 * configure.in: Check for xgettext. Apparently AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort. 2006-04-04 Steffen Macke * installer/win32/dia.nsi: * installer/win32/langmacros.nsh: * installer/win32/locale/*.nsh: Added check for outdated libgtk dll; closes bug #335477 2006-04-03 Lars Clausen * installer/win32/dia.nsi: * doc/en/dia.xml: * doc/eu/dia.xml: * doc/pl/dia.xml: * config.h.win32: * configure.in: * NEWS: -pre8 * plug-ins/xfig/xfig-import.c: Initially place text in the right place. 2006-04-03 Steffen Macke * installer/win32/dia.nsi: * installer/win32/locale/french.nsh: Added french installer locale. Patch from Yannick Le Ny 2006-04-02 Hans Breuer * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge 2006-03-29 Daniel Drake * configure.in: Use standard pkg-config expressions to check for GTK+/Glib, the GTK-supplied macro's conflict with our usage of $GTK_MODULES (#335422) 2006-03-28 Lars Clausen * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377: Include libs and cflags in proper places. * installer/win32/dia.nsi: * doc/en/dia.xml: * doc/eu/dia.xml: * doc/pl/dia.xml: * config.h.win32: * configure.in: * NEWS: -pre7 * shapes/network/mobile_phone.{png,xpm,shape}: * shapes/network/telephone.shape: * shapes/network/disc.shape: Updates from W. Borgert improving looks and positioning. 2006-03-26 Lars Clausen * objects/network/radiocell.c: Patch from W. Borgert for extra midpoint, flicker, extraneous properties. * objects/network/basestation.c: Patch for BB from W. Borgert . 2006-03-23 Hans Breuer * lib/widgets.c : use original fontname and fallback 'sans' to render the font menu. Thus crashing (in Pango) is delayed until the point where one chooses a font, which can't be rendered by Pango. Fixes bug #335096 as far as Dia can. 2006-03-21 Lars Clausen * installer/win32/dia.nsi: * doc/en/dia.xml: * doc/eu/dia.xml: * doc/pl/dia.xml: * config.h.win32: * configure.in: * NEWS: -pre6 * plug-ins/xfig/xfig-import.c: Last missing stack underflow check. 2006-03-19 Hans Breuer * app/display.c app/preferences.c : unset transient, still issues with transient handling, see bug #332828 * app/makefile.msc lib/makefile.msc objects/makefile.msc plug-ins/makefile.msc : removed stuff supposed to be used from $(TOP)/glib/build/win32/make.msc * plug-ins/xfig/xfig-import.c : make it compile with strict type checking [these were real errors, freeing stack passed values instead of the intended local variable] : xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *' differs in levels of indirection from 'struct _Point ** ' xfig-import.c(580) : warning C4024: 'g_array_free' : different types for formal and actual parameter 1 * lib/libdia.def : export connection_adjust_for_autogap * plug-ins/hpgl/hpgl.c : there is one floating point value in the whole HPGL output - and it was locale dependent. 2006-03-12 Lars Clausen * installer/win32/dia.nsi: * doc/en/dia.xml: * doc/eu/dia.xml: * doc/pl/dia.xml: * config.h.win32: * configure.in: * NEWS: -pre5 * objects/UML/constraint.c (constraint_update_data): * objects/UML/message.c (message_update_data): * objects/UML/implements.c (implements_update_data): * objects/SADT/annotation.c (annotation_update_data): * objects/Jackson/phenomenon.c (message_update_data): * objects/network/wanlink.c (wanlink_update_data): * objects/FS/flow.c (flow_update_data): Added autogap adjustment. * objects/standard/line.c: * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap functionality for connections. 2006-03-11 Lars Clausen * lib/diagdkrenderer.c (draw_object): * lib/dialibartrenderer.c (draw_object): Don't draw highlighting in the non-interactive rendering. * dia.spec: * installer/rpm/dia.spec: * installer/rpm/README: Moving dia.spec to installer directory, where distribution maintainers can keep their own copies. * objects/UML/uml.h: * objects/UML/class.h: * objects/UML/umloperation.c: * objects/UML/class.c: Preparations to fix bug #334037: Clean away the Lisp-like constructs confusing the issue. 2006-03-10 Lars Clausen * lib/object.c: Don't compare floats with ==, even in sanity checks. 2006-03-09 Lars Clausen * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color reading, depth reading, and points reading. Thanks to * COPYING: Added copyright info again. 2006-03-09 Steffen Macke * installer/win32/dia.nsi: don't uninstall old version; overwrite existing files 2006-03-08 Steffen Macke * installer/Makefile.am: * installer/win32/Makefile.am: * installer/win32/locale/Makefile.am: Making sure that the installer sources are included in the dia source distribution * installer/win32/dia.nsi: Don't include makefiles in installer; Add uninstaller link to start menu (bug #332650); added commandline option GTKBIN to specify GTK installation directory (fixes bug #332595) * installer/win32/dia-diagram.ico: * installer/win32/dia-header.bmp: * installer/win32/dia-install.ico: * installer/win32/dia-intro.bmp: * installer/win32/dia-uninstall.ico: * installer/win32/dia.nsi: * installer/win32/langmacros.nsh: * installer/win32/locale/english.nsh: * installer/win32/locale/german.nsh: Added files to build the win32 installer using NSIS (http://nsis.sourceforge.net) 2006-03-06 Lars Clausen * doc/en/dia.xml: * doc/pl/dia.xml: * config.h.win32: * configure.in: * NEWS: -pre4 * samples/TexChars.dia: Added sample of the escaped chars for TeX. * plug-ins/pstricks/render_pstricks.c (tex_escape_string): Changing escape of \, [, and ] to something that works. $ is fine. Fixes parts of 333193. 2006-03-05 Lars Clausen * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import. * lib/orth_conn.c (orthconn_update_data): * app/diagram.c: Removing debug info. * app/object_ops.c (object_find_connectpoint_display): Don't magnet to parents. 2006-02-26 Hans Breuer * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh * plug-ins/python/python.c : if set use it to find python-startup.py (bug #332599, Torben H. Nielsen) * app/app_procs.c : removed // from gtk_init() [shouldn't have commited my test code]. Really closes #332177, thanks Mateus César Gröess. 2006-02-26 Lars Clausen * doc/en/dia.xml: * doc/pl/dia.xml: * config.h.win32: * configure.in: * NEWS: -pre3 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting of element_width and element_height until constraints can be properly checked. Bug #328200 * dia.spec (Requires): Updated GTK requirements. 2006-02-25 Lars Clausen * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure other dynamic menus have proper translation. * lib/widgets.c (dia_dynamic_menu_create_string_item): * app/interface.c (cmp_names): * app/sheets.c (sheets_optionmenu_create): * lib/sheet.c (load_register_sheet): Using C locale for sheet names internally, translating on display instead. Also sorting by gettext order explicitly. Bug #328570. 2006-02-25 Hans Breuer * app/interface.c(get_sheet_by_name) : be more tolerant about localization of the sheet name. ( Steffen Macke, #332070 ) * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init() in any case. In contrast to X11/*nix displays are not optional on windoze. And we need some help of gtk to render text to bitmaps. ( Rob McDonald, bug #332177 ) 2006-02-21 Lars Clausen * NEWS: * doc/pl/dia.xml: * doc/en/dia.xml: * configure.in: * config.h.win32: Update to -pre2. * lib/beziershape.c (add_handles): Fixing CP pos calculation for adding new CP's. Fixes bug #331557. 2006-02-20 Lars Clausen * lib/diarenderer.c (find_center_point): Better handling of some degenerate cases. (draw_arc_with_arrows): Draw line in all cases. Doesn't handle the truly degenerate cases well enough yet, but at least doesn't break on common cases. Probably need to do something special for arcs with start and end point the same. Improves but does not entirely fix bug #331372. 2006-02-20 Hans Breuer * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST 2006-02-18 Hans Breuer * plug-ins/metapost/render_metapost.c : text position gives the baseline neither top nor bottom. ( Rob McDonald, #331491 ) * plug-ins/wmf/wmf.cpp : finally respecting the print margins ( Rob McDonald, #331371 ) * plug-ins/wmf/wmf_gdi.h : some more constants not useful without a GDI printer (driver) 2006-02-17 Hans Breuer * plug-ins/metapost/render_metapost.c(draw_string) : dont query the font for it's height but use the 'height' parameter passed in. Close enough to the desired size - and independent of zoom - to close bug #331489 (Rob McDonald) 2006-02-12 Lars Clausen * NEWS: * dia.spec: * doc/pl/dia.xml: * doc/en/dia.xml: * configure.in: * config.h.win32: Updates for version 0.95-pre1. 2006-02-12 Hans Breuer * app/makefile.msc : build three components dia.exe (console application), diaw.exe (windows application) and dia-app.dll containing almost all of Dia's application shared between the two executables * app/main.c app/winmain.c app/app_procs.c app/dia.def : some refactoring to accomplish the new dependency layout * objects/makefile.msc plug-ins/python/makefile.msc : need to link dia-app.lib now - if at all depending on app/* 2006-02-11 Hans Breuer * makefile.msc : nmake -f makefile.msc just compiles now * app/makefile.msc lib/makefile.msc : make not using FT2 on win32 the default (works around bug #150813 by diabaling it) * objects/makefile.msc plug-ins/makefile.msc : remove -GD from $(CC) command line. It isn't understood by newer versions of cl. * app/authors.h : reflect the recent maintainers change * app/display.c app/load_save.c : removed debug spew * app/winmain.c : improved redirection 2006-02-05 Hans Breuer * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead since 0.94. Fix somne left-overs, also properly disable the duplicate menu entry * po/POTFILES.in : added objects/network/wanlink.c 2006-02-05 Hans Breuer * lib/dialibartrenderer.c(renderer_finalize) : dont unref parent_instance.font here. It will be done in DiaRenderer::finalize() Just another reason for crashing at diagram close with libart renderer involved ... 2006-02-04 Hans Breuer * objects/standard/image.c : added mainpoint, patch from Torben H. Nielsen fixing bug #329603 * app/layer_widget.c : avoid writing to Layer::connectable for a diagram possibly already gone. Fixes bug #329096. * lib/persitence.c(persistence_load) : dont leak filename in case of not existing file Code review via regex "[^_l>p](malloc|free|realloc)\(" * objects/fs/function.c : what's g_strdup() must be g_free()'d * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free() * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free() * app/filedlg.c(file_save_as_response_callback) : before destroying the save as dialog we need to drop the dialogs diagram reference. Fixes behaviour described in bug #123225#c7 * app/interface.c(get_sheet_names) : need to sort sheets by their display name to really fix bug #160101. * objects/UML/association.c : dont leak the role_name calculated with visibility attribute, use g_strdup_printf() instead of strcat(). * configure.in : fix typo in error message * lib/object.c : remove duplicated prototype * lib/element.c : element_update_connections_rectangle() assumes nine connection points, i.e. requires 'mainpoint'. g_assert() for this. 2006-02-03 Hans Breuer * objects/network/bus.c : allow to tint it. Patch from Torben H. Nielsen, closes bug #328580. * objects/network/wanlink.c : allow to tint this as well. 2006-01-29 Hans Breuer * app/render_libart.c(draw_line) : make setting the pixel side-effect free; account for it in now (less) magic increments. Fixes bug #312147 2006-01-28 Hans Breuer * po/checktrans.py : make it work with recent pyxml (unknown url type) * po/AADL.sheet.in : remove duplicated _description => translation report works again * app/display.c : revert back to "_Discard Changes" to avoid accelerator clash. Also gtk_button_new_with_mnemonic() to 'expand' the accelerator. * lib/dia_svg.c(dia_svg_style_init) : need to initialize linecap, linejoin, linestyle to avoid invalid settings. (Nguyen Thai Ngoc Duy, bug #328945) * lib/diagdkrenderer.c : add a place fro breakpoint to detect invalid mode * lib/diarenderer.c(setfont) : if we get passed in the same font it must be ref'd before unref. * lib/text.c(set_string) : don't eat the trailing new-line Fixes bug #165092 * app/app_procs.c app/display.c app/filedlg.c attempt to provide more HIG compliant dialogs. Patch from Nguyen Thai Ngoc Duy, part of bug #138183 * app/recent_files.c(recent_file_history_clear_menu) : instead of messing with GtkMenuShell::children and gtk_widget_destroy() just use gtk_container_remove. Avoids memory corruption causing the most 'random' crashes recently. * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the TextAttributes - not some subset. Fixes bug #327701 * objects/UML/implements.c objects/UML/generalization.c objects/UML/constraint.c objects/UML/object.c objects/UML/large_package.c objects/UML/realizes.c : same here. * objects/UML/dependency.c : same here. Also draw the "Name" with the given color, not only the Stereotype. * objects/UML/class.c : same here. But we also need to restore explicit restore "text_color" for the load case. 2006-01-27 Hans Breuer * configure.in : error out if GLib/GTK+ version is lower than required * app/filedlg.c lib/widgets.c : more default responses. Patch from Nguyen Thai Ngoc Duy, part of bug #138183 * NEWS : Main point feature correction. The line is supposed to start at the border of the object not the bounding box. * app/commands.c : respect difference between documenters and translators and show both in about dialog. Closes bug #328711. * app/interface.c : instead of g_warning for missing shape icon but use message_warning and show the 'missing' icon * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does not match pango_win32_get_context(). Use gdk_pango_get_context (). Also removed my special win32-modified-pango code for draw_string() without the help of gdk. * Makefile.am : include MAINTAINERS file in tarball * lib/conectionpoint.h : removed double include of "geometry.h" 2006-01-22 Hans Breuer * app/splash.c app/commands.c : dont share the logo and finally leak it. Instead both place load and unref the logo themself. Also unbreak GNOME case. * app/commands.c : use GtkAboutDialog instead of homegrown GTK+ or GNOME specific one. 120 lines less code and more standard. * configure.in : require GTK+ >= 2.6 * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c : make GtkTypeInfo static const as usual elsewhere * app/recent_files.c : it almost certainly is an error to ignore the return value of g_list_remove_link() * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch] objects/UML/uml.h : documentation fixes * lib/object.h lib/diagramdata.h : avoid circular inclusion * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h lib/properties.h lib/sheet.h lib/diamenu.h : dont include "object.h", "diatypes.h" is enough. Rule of thumb: only headers declaring an inheritant of DiaObject should include "object.h" * lib/diarenderer.h : include "font.h" not strictly needed by this header, but needed in almost any plug-in/ * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c app/export_png.c app/interface.c app/load_save.c app/sheets.c app/sheets_dialog.c app/sheets_dialog_callbacks.c lib/diagdkrenderer.c lib/object.c lib/propobject.c lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c plug-ins/svg/render_svg.c : some .c files now need to include "object.h" or or e.g. "intl.h" direct, formerly dargged in indirectly * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h" 2006-01-21 Hans Breuer * lib/connection.c lib/connection.h lib/connectionpoint.h lib/diagramdata.h lib/diarenderer.h lib/diatypes.h lib/element.h lib/geometry.h lib/handle.h lib/objchange.h lib/object.c lib/object.h : documentation tweaking * objects/UML/class_dialog.c(attributes_create_page, operations_create_page) : dont connect to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **: g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed" (This was a leftover of introducing the GtkTextView instead of GtkEntry) * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h : Introduce 'comment_tagging' switch which allows to hide the rendering {documentation = } Maybe a choice between ugliness and non-standard. Fixes bug #326214. (Unrelated: started to adapt casing of variables to Dia's common coding style) * lib/object_defaults.c : pass is_default=TRUE to object_copy_props lib/proplist.c : fixed pdtpp_default() lib/propobject.c : correctly reflect is_default * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934 * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a widget in defaults dialog * app/display.c(initialize_display_widgets) : also append the Input Methods menu to the diagram menubar. Now fixes bug #327862. * config.h.win32 : #undef LOCALEDIR * app/app_procs.c : runtime calculation of localedir. It now is $(executable_dir)/../locale. Should help fix bug #309763 * sheets/AADL.sheet.in : remove left over xml:lang tag. ( Nguyen Thai Ngoc Duy, bug #327519) * lib/dialibartrenderer.c : make text rendering work without PangoFT2 and PangoWin32 2006-01-18 Lars Clausen * objects/UML/class.h: Enabling UML class mainpoint after failure to break it. * app/grid.c: Fix bug with grid being incorrectly drawn when gap < 1. 2006-01-14 Hans Breuer * app/paginate_psprint.c : ensure we are not producing pages for epsilon. Floating imprecision is fun. Fixes bug #133856. * app/paginate_gdiprint.cpp : same here. * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've found the nice samples from bug #156171 it was quite simple to confirm that the y value need indeed to be inverted. Fixes bug #304974. Also special case strings starting with \tex - i.e. dont escape them - to keep the use-case of direct tex input. * lib/debug.c : #include not just 2006-01-14 Hans Breuer * samples/Self/umlclass.dia : (new file) documenting part of the object relations of UMLClass. Also good for testing connections. * lib/debug.c : replace wrong call to vprintf() - missing file descriptor - with the more appropriate g_vprintf(). Thus dia_assert_true() does not smash the stack anymore on win32. * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h objects/UML/umlattribute.c objects/UML/umloperation.c : reverted the memory managment of UMLAttribute/UMLOperation's ConnectionPoint(s) back to how it was up until 0.94. This finally makes the UMLClass work again including undo/redo support. Fixes bug #314153 and en passant bug #326453. 2005-01-12 Lars Clausen * objects/UML/umlattribute.c: * objects/UML/class_dialog.c: Better way of handling connectionpoints: Don't copy them, just reference them. Finally fixes bug #314153 (not quite the pi bug:) * app/menus.c (display_menu_items): * app/filedlg.c (file_open_response_callback): * app/display.[ch] (copy_display): * app/commands.[ch] (view_clone_view_callback): Added functionality to clone display. Preparation for storing display info in diagram files (not happening this version, though). * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling users pointing at dia-installer. 2006-01-08 Hans Breuer * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames. (Narcelio Filho, #326075) * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed, plug-ins should not depend on app/* and it even breaks 'make distcheck'. * objects/AADL/Makefile.am : added edit_port_declaration.h * app/Makefile.am : added diaconv.c to EXTRA_DIST => 'make distcheck' passes again. * configure.in : use some more of gcc's useful warnings * lib/geometry.h : removed unused functions just producing warnings [sometimes it's good to read compiler warnings] * plug-ins/cairo/diacairo.c : somehow a function call got lost (left-hand operand of comma expression has no effect) * plug-ins/metapost/render_metapost.c : dia_message_filename() wants a char* not a FILE* (passing arg 1 of `dia_message_filename' from incompatible pointer type) 2006-01-07 Hans Breuer * objects/custom/shape_info.c(parse_path) : handle the case of invalid path data more gracefully, i.e. show a warning instead of crashing later on. * plug-ins/svg/svg-import.c(read_path_svg) : ditto. * configure.in sheets/Makefile.am shapes/Gane_and_Sarson shapes/Makefile.am : added Gane & Sarson shapes (Nick Moore, #319544) * objects/makefile.msc : building AADL on win32 2006-01-06 Hans Breuer * objects/AADL/aadl.h : avoid redefinition warnings by #undef min, #undef max before local definitions * objects/AADL/aadl.h : more prototypes * objects/AADL/aadltext.c : for C89 declarations must be at the beginning of a block. And Dia *must* be compileable with C89. * objects/AADL/** objects/Makefile.am sheets/Makefile.am configure.in : AADL plug-in from Pierre Duquesne. See http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html for more information * sheets/AADL.sheet.in : from the above patch but modified to become translatable like the other sheet files. That is: the french translation got temporary removed cause it does not belong here. * plug-ins/pgf/render_pgf.c : no C99/C++ comments please * app/app_procs.c app/diaconv.c : get rid of run-on sentences (Adam Weinberger, bug #325567) * app/menus.c : removed some keybindings with [0-9A-F] and change some other to use . They collide with GTK's Unicode input feature. Fixes bug #320495. For rationale see: http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html * app/display.c : pay attention to g_warnings() [should always run with --g-fatalwarnings ;)]. Only create the menubar IM menu if there actually is a menu bar. * lib/diarenderer.c : the righthand calculation accidentially broke some arcs direction. Should be fixed again. 2006-01-02 Hans Breuer * app/display.c(new_display) : also append the Input Methods menu to the diagram menubar. Fixes bug #308576. * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592. * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to their localized name (with g_utf8_collate). Thus not relying on the capabilities of the C libraries strcmp(). Fixes bug #160101. * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center point and width from the (arrow-)corrected new points. Otherwise a whole new wrong arc may emerge. Fixes bug #312641. 2006-01-01 Hans Breuer * objects/custom/custom_object.c(cutom_update_data) : depending on the handle moving let one scale (x or y) take precedence. (bug #308515, Eric Deplagne) * objects/UML/class.c : only perform the attributes check with attributes visible to ged rid of false warnings * objects/UML/class_dialog.c : need to setup Connection::object after uml_attribute_new() and uml_operation_new(), again less warnings but bug #314153 still not fixed. * NEWS : updated * plug-ins/python/diasvg.py : more correct svg by also writing xmlns="http://www.w3.org/200/svg" * plug-ins/python/dot.py : skip unconnected connection lines * plug-ins/python/Makefile.am : added dot.py * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed typos in comments 2005-12-31 Hans Breuer * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the caching of UMLClass::attributes_strings, operations_strings, templates_strings. It was broken by the recent code restructuring in bug #303744 and - if necessary at all - nowadays it should be done on the UMLAttribute, UMLOperation, UMLFormalParameter level anyway. A small, much needed simplification of the code. 2005-12-30 Hans Breuer * objects/UML/class.c : Patch from Dave Klotzbach fixes crash bug #325151 * app/app_procs.c : add command line parameter --nonew to allow avoiding the empty start-up diagram Also give a hint on where the object-libs were missing. Finally work around a misbehaviour upstreamm : g_option_context_parse() returning FALSE but not setting error. * app/commands.c app/app_diagram_tree.c app/interface.c : Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask * lib/widgets.c : image file selection finally ported to the new gtk file chooser. Fixes bug #309383 2005-12-28 Hans Breuer * app/commands.c(file_new_callback) : convert to filename encoding before passing to new_diagram(), fixes bug #322400 * app/interface.c(create_display_shell) : don't clip width on screen height - now commited. Also lazy creation of tooltips. * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915 2005-12-27 Hans Breuer * app/diapsft2renderer.c(draw_bezier_outline) : only call FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE. Prefers no text output over crashing for bug #144212 * app/interface.c : removed superfluous call to dia_canvas_set_size(). Suggested by Roland Stigge, fixes bug #148149. * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary DXF. It is not supported at all. Fixes bug #322101 * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0) define G_IMPLEMENT_INLINES. It breaks again with glib-2-8 2005-12-27 Hans Breuer * app/navigation.c : protect on_da_button_release_event() against being called twice. Also only popdown the navigation window after the first draw (reusing nav->is_first_expose). Fixes bug #151696 * app/interface.c(create_display_shell): don't clip width on screen height, but height * lib/plug-ins.c : fixed typo in comment * lib/libdia.def : updated externals * lib/makefile.msc : build debug.obj * plug-ins/makefile.msc : building pgf in the right alphabetical order * plug-ins/pgf/render_pgf.c : include 2005-12-08 Lars Clausen * app/authors.h: * plug-ins/pgf/pgf.c: * plug-ins/pgf/render_pgf.[ch]: * plug-ins/pgf/Makefile.am: * plug-ins/Makefile.msc: * plug-ins/Makefile.am (SUBDIRS): * configure.in: Patch from Moritz Kirmse : Add support for PGF output for including in (La)TeX documents that allows PDF generation. * samples/render-test.dia: Added samples of text in different sizes, standard fonts and styles with size markers. 2005-12-04 Lars Clausen * lib/Makefile.am (gen_sources): Mark marshal files as generated. (BUILT_SOURCES): Added marshal files. 2005-12-03 Lars Clausen * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk about $(srcdir) and confusing everybody. * app/undo.c: * lib/diagramdata.c: * lib/diagramdata.h: * lib/diamarshal.list: * plug-ins/python/pydia-diagram.c: * plug-ins/python/pydia-diagramdata.c: * plug-ins/python/python-startup.py: Patch from David Johansson : Add signals emitted when objects are inserted or removed. 2005-11-13 Lars Clausen * app/display.c (update_zoom_status): Fix of bug #321387: Avoid (small) buffer overflow by using g_strdup_printf instead of sprintf. 2005-11-09 Lars Clausen * app/app_procs.c: * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except when reaching the statement is a bug. Using g_critical and exit() for fatally wrong inputs. * objects/UML/uml.c: * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave Klotzbach): Fixes template rendering and converts home-brew inline doc format to javadoc. Doesn't yet fix bug #320934, but turns it into a dup. 2005-11-07 Lars Clausen * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding box' since several objects have problems of using bounding box in different ways (see bug #300055). For now, enclosing box == bounding box, but over time objects will learn to expand the bounding box to include things only rendered interactively. * app/modify_tool.c (modify_motion): Make sure highlight is reset when moving between overlapping objects. * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw diagram after toggling to make red X's come and go. * lib/font.c: #ifdef'd out layout cache for bug #307320. Define it if you need faster rendering and aren't afraid of crashbugs:) * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net (dave Klotzbach): Fixes null pointer problems in free function. * objects/UML/class.c * objects/UML/class.h * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net (dave Klotzbach): Make UML comments conform to UML 1.0 standard and allow multi-line comments. Ugly as hell, but standard. Time for a 'Strict UML' option? Fixes bug #303744. * objects/UML/state.c: Patch from Peter Allin : Add entry, exit and do descriptions to a state object. Fixes bug #65434. 2005-11-03 Lars Clausen * lib/arrows.c: * lib/attributes.c: * lib/autoroute.c: * lib/bezier_conn.c: * lib/boundingbox.c: * lib/color.c: * lib/connection.c: * lib/connectionpoint.c: * lib/dia_dirs.c: * lib/dia_image.c: * lib/dia_svg.c: * lib/dia_xml.c: * lib/diaarrowchooser.c: * lib/diaerror.c: * lib/diagdkrenderer.c: * lib/diagramdata.c: * lib/element.c: * lib/object.c: * lib/object.h: * lib/parent.c: Added documentation java-doc style. Also a few trivial cleanups. 2005-10-13 Lars Clausen * lib/connectionpoint.h (DIR_ALL): Parentheses around operations in macros. * plug-ins/hpgl/hpgl.c (export_data): Correct error message. * lib/Makefile.am: * lib/debug.[ch]: * lib/object.[ch]: * objects/UML/class.[ch]: * objects/UML/uml.h: * objects/UML/umlattribute.c: * objects/UML/umloperation.c: * objects/UML/class_dialog.c: Rework of the UML class attribute/operation handling. Now doesn't copy connection points into the dialog data, but only the "flat" data. As part of debugging made sanity check functionality. Currently still dies when deleting an attribute/operation that has a connection to it. 2005-10-09 Hans Breuer * lib/properties.h : prefer american spelling of colo(u)r for user visible strings - i.e. to be translated ones. * objects/UML/uml.c : it is Implementation. Together fixes bug #313929 ^ * po/*.po : updated (by 'make distcheck') 2005-10-09 Hans Breuer * app/display.c : allow !"toolbox on top" without restart. (Chris Hellberg, bug #310702) 2005-10-09 Hans Breuer * lib/arrows.c : patch from Radek Krahl fixing the blanking of two arrowheads, bug #310157 2005-10-08 Hans Breuer * plug-ins/python/group_props.py : show a descriptive text instead of an empty table if there are no common properties to change. Fixes bug #314432 2005-10-08 Hans Breuer * objects/UML/transition.c : inverted default direction of the direction. Patch from Peter Allin, fixes bug #318049 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect] 2005-10-08 Hans Breuer * app/Makefile.am objects/standard/Makefile.am : match the referenced icons to the needed. Make 'make distcheck' pass and thus fixes bug #312152 * objects/standard/textobj.c : no C++ comments please! 2005-10-08 Hans Breuer * objects/standard/textobj.c : preserve the position set on create [makes e.g. text positioning of diasvg_import.py work] * plug-ins/python/diasvg_import.py : restrict what eval() can do with strings from svg files. Fixes the arbitrary code execution from bug #317637 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point magnetism. At least they are distinguishable from grid snapping. * app/makefile.msc app/Makefile.am : use them * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851 I also can't reproduce bug #309044 anymore (on win32). 2005-10-01 Lars Clausen * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions. * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't pass FILE * as gchar *. * lib/debug.[ch] (dia_assert_true): Debugging aids. 2005-09-29 Lars Clausen * objects/UML/class.h: Enabling mainpoints for UML. * objects/UML/class.c (umlclass_set_props): Make sure to always realloc connection point list. 2005-09-26 Ahmad Riza H Nst * configure.in: Added "id" in ALL_LINGUAS line. 2005-09-14 Lars Clausen * objects/UML/class.c (umlclass_load): Set mainpoint obj upon loading. Fixes bug #315427. 2005-09-11 Hans Breuer * objects/standard/arc.c objects/standard/textobj.c : fix C99isms, Dia is supposed to compile with C89 like msvc * app/makefile.msc : use the wrong center-point-magnetism icons for the win32 build, too. * plug-ins/python/pydia-error.c : dont crash on C escape sequences in the error string * plug-ins/python/pydia-render.c : dont free filename twice * plug-ins/python/dot.py : start of an exporter to DOT language which can be processed by www.graphviz.org tools 2005-09-05 Iñaki Larrañaga * configure.in: Added "doc/eu/Makefile" for Basque documentation. 2005-09-04 Iñaki Larrañaga * configure.in: Added "eu" to ALL_LINGUAS. 2005-09-04 Lars Clausen * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object dimensions frame to make ext_attributes work again. * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo : Use dynamic grid setting from diagram, not global prefs. * objects/standard/textobj.c: Applied patch from Grégoire Dooms : Add vertical alignment for standard text object. This should really be moved into lib/text.c and apply to all text objects. 2005-09-03 Lars Clausen * app/connectionpoint_ops.c (connectionpoint_draw): Only draw mainpoint when snap-to-objects is not on. * app/Makefile.am (ICON_PNG_PAIRS): Fake icons for snap-to-objects. * app/commands.[ch]: * app/menus.c (menus_get_image_menubar): * app/display.[ch]: * app/interface.c (create_display_shell): * app/create_object.c (create_object_button_release): * app/disp_callbacks.c (ddisplay_drop_object): * app/object_ops.[ch]: * app/connectionpoint_ops.c (ddisplay_connect_selected): * app/modify_tool.c (modify_button_release): * app/display.[ch]: Togglable snap-to-objects, also doesn't snap when moving entire object. This should be more reasonable in practical use, and can be turned off when you want to place your arrows more precisely. 2005-08-06 Hans Breuer * plug-ins/cairo/diacairo.c : increased #ifdef MESS: With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case becomes even more ugly when the user has choosen *not* to build the diacairo plug-in. If noone can come up with a very convincing reason why it has to be done this way I'll probably go back to my original dont-build-at-all approach when this breaks the next time. 2005-08-02 Lars Clausen * objects/standard/arc.c: Patch from Grégoire Dooms : An almost perfect arc autogap implementation. "There is still a small bug when the non connected end of the arc is very close to the border of the connected object. I think this is due to rounding errors in the code for SHIFT-move handle which is reused to trim the arc in autogap. Also it is not yet possible to have a startgap and an endgap from/to the same central CP." 2005-07-31 Hans Breuer * plug-ins/cairo/diacairo.c congigure.in : dont wait any longer for distributions official packages - depend on cairo 0.6.0 - fixes bug #307144 2005-07-20 Hans Breuer * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES which must match PropDescription, that is make it at least compile. 2005-07-19 Hans Breuer * app/diagram.c(new_diagram) : what comes from g_object_new() MUST NOT be g_free()'d * lib/message.h : added dia_message_filename() here as well. Mainly to not touch all files using. They *all* where using lib/message.h already! Maybe the implemantation should be moved to message.c as well cause the function has *nothing* to do with dynamic filename resolving. It is a wrapper around g_display_filename() mostly (only?) used for messages ... * lib/dia_dirs.c(dia_message_filename) : fix C99ism 2005-07-18 Lars Clausen * objects/EML/instantiation.c (instantiation_load): * objects/EML/interaction-ortho.c (interaction_ortho_type) * objects/ER/participation.c (participation_type): * objects/FS/flow-ortho.c (orthflow_type): * objects/GRAFCET/vector.c (arc_load): * objects/standard/zigzagline.c (zigzagline_type): * objects/UML/transition.c (transition_load): * objects/UML/realizes.c (realizes_load): * objects/UML/dependency.c (dependency_load): * objects/UML/generalization.c (generalization_type): * objects/UML/association.c (association_type): * objects/UML/component_feature.c (compfeat_load): Make autorouting deafult on except for old diagrams. * plug-ins/cairo/diacairo.c (export_data): * plug-ins/cgm/cgm.c (export_cgm): * plug-ins/dxf/dxf-export.c (export_dxf): * plug-ins/dxf/dxf-import.c: * plug-ins/hpgl/hpgl.c (export_data): * plug-ins/metapost/render_metapost.c: * plug-ins/pixbuf/pixbuf.c: * plug-ins/pstricks/render_pstricks.c: * plug-ins/python/pydia-render.c: * plug-ins/shape/shape-export.c: * plug-ins/svg/render_svg.c: * plug-ins/svg/svg-import.c: * plug-ins/wpg/wpg.c * plug-ins/xfig/xfig-export.c: * plug-ins/xfig/xfig-import.c: * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal UTF-8 in message boxes. 2005-07-18 Lars Clausen * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects to have their dimensions specified in properties. Still needs to have proper update when setting properties cause constraint changes. * app/preferences.c (update_floating_toolbox): Allow toolbox_on_top setting to happen at once. * app/diagram.c * app/filedlg.c * app/load_save.c * app/render_eps.c * app/sheets_dialog_callbacks.c * lib/dia_dirs.c * lib/dia_dirs.h * lib/dia_xml.c * lib/diarenderer.c * lib/element.h * lib/object_defaults.c: Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe for displaying in messages - better than crashing! Mostly fixes #310087. * objects/UML/class.c: Save normal_font_height under the same name it gets loaded as. Fixes bug #310515. * doc/en/authors.xml * doc/en/usage-customization.xml * doc/en/usage-objects-special.xml * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug #308315. 2005-07-17 Lars Clausen * doc/en/usage-customization.xml: * doc/en/usage-objects.xml: * doc/en/authors.xml: * doc/en/usage-objects-special.xml: Applied patch from stigge@antcom.de (Roland Stigge): Diverse typos and misencodings. Fixes bug #308315. * objects/UML/class.c (umlclass_save): Patch from i.pilcher@comcast.net: Save normal font height under correct name to reload it. Fixes bug #310515. 2005-07-10 Hans Breuer * app/connectionpoint_ops.c app/object_ops.c : make the 'whole object' connection point only center point again. That is: it is visible and far less magnetic. Only the line gap handling make it special. For me this probably fixes bug #303301 * lib/neworth_conn.c : apply the same as for bug #173031. This OrthConn fork got broken as well. Fixes bug #309381 * app/makefile.msc objects/makefile.msc : adapt to icon changes * app/interface.c app/diagram_tree.c : a char** is still not a char* and the win32 build is configured to error on sloppiness like this * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition 2005-07-10 Hans Breuer [ Take part in the toolbox icon redesign context! If you want to make them really prettier, please keep the following in mind : - the size *must* be 22x22 otherwise button reflow will get broken. Or you need to change about 800 icons at once. - one important part of Dia are control points, so maybe the icons should reflect that. (IMO gathering random icons form other apps wont work) - the icons should at least look consistent in their group ] * app/Makefile.am : use 22x22 variants mostly lent from The GIMP * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets * objects/standard/pixmap/* : added arc.png beziergon.png bezierline.png box.png ellipse.png image.png line.png polygon.png polyline.png text.png zigzagline.png * objects/standard/Makefile.am : use the new icon set including text and arc ... * app/interface.c : remove the "will probably crash" debug spew 2005-07-09 Lars Clausen * objects/standard/pixmaps/*.png: * objects/standard/Makefile.am: * objects/standard/*.c: * app/interface.c: * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use new icons. [Slightly belated entry] 2005-07-03 Hans Breuer * app/diagram_tree.c : dont leak display name * app/app_procs.c : dont leak GOptionContext * app/prop_widgets.c(frame_beginprop_get_widget) : Gtk api still not eating strings ... * objects/UML/class.c() : don't load properties once more which are already loaded by StdProps. In case of strings (data_string) it has even produced leaks. * app/paginate_psprint.c app/diagram.[hc] : the last of the related dialogs is gone and with it the misconception of destroying widgets from diagram::finalize() * app/display.c : ensure the diagram is still threre when we remove the display from it's list 2005-07-01 Hans Breuer * lib/widgets.c(dia_color_selector_more_callback): dont free old_color twice * plug-ins/wmf/wmf.cpp : finally added enahnced meta file option. Thus linestyles can be preserved on export - at least on NT based systems. * NEWS : clarify the wmf outside of windows issue * app/modify_too.c : fix C99ism * objects/standard/arc.c : debug spew optional at compile time 2005-06-26 Hans Breuer [ Cyrille would call it: warningectomy :-] * lib/font.c app/create_object.c : `...' might be used uninitialized in this function. Yes they were. * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used uninitialized in this function. Yes it was with textedit_activate_object() Also some static correctness. * lib/diarenderer.c:678: warning: no previous prototype for `calculate_min_radius'. Made static. * lib/dia_svg.c : ptr is a gchar * * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK * app/app_procs.c : confirm warning and make dump_dependencies() static * app/autosave.c : #if 0'd old stuff * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid * * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c app/diapsrenderer.c app/diagram.c app/disp_callback.c : removed unused variables and functions * objects/UML/umlattribute.c objects/UML/umloperation.c objects/UML/umlparameter.c objects/UML/umlformalparameter.c : neither 'missing braces around initializer' nor 'initialization from incompatible pointer type' * objects/UML/class_dialog.c : more static * app/interface.c : static and almost const correctness and some less unitialized variables. * app/diapsft2renderer.c : use (int) casts like the original (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does * app/render_gdk.c: stop assignment from incompatible pointer type, make member functions match the prototype. * app/render_libart.c : Dito. Also stop caching the copy_gc in a static variable. Otherwise it finally leaks and also may cause BadMatch with changing windows => warning count down from about 250 to about 60, one or two hand full crash bugs less. 2005-06-26 Hans Breuer * lib/libdia.def : added dia_font_get_description, missing from my last commit * app/app_procs.c : use png_get_header_ver(NULL), that is: prefer function call over exported variable to get the runtime version of libpng 2005-06-19 Hans Breuer * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST as suggested by Roland Stigge, bug #308310 2005-06-19 Hans Breuer * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't called anymore 2005-06-18 Hans Breuer * NEWS : mention new file dialog [plugged remaining leaks from bug #142669] * lib/prop_attr.c(fontprop_free) : not only unref the font but free the property itself, too. * app/diagram_tree.c(create_diagram_children): remember the original list start to not only free the last element * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined but not used. Here it meant a potentially huge leak. 2005-06-18 Hans Breuer * po/POTFILES.in : removed app/diaconv.c which isn't referenced by app/Makefile.am anymore either. Should finally fix 'make distcheck' for others, too. ( Roland Stigge, bug #144527 ) 2005-06-18 Hans Breuer * plug-ins/wmf/Makefile.am : prevent installation. It doesn't do anything useful on *NIX and even seems to be linked wrong by gcc (or me;). Fixes bug #172830 2005-06-18 Hans Breuer * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness in function declarations. 'f();' for a function without parameters is a C++ism. Though I can't get any of my compilers to warn about it. Finally fixes bug #142663. 2005-06-18 Hans Breuer * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness in function declarations. 'f();' for a function without parameters is a C++ism. Though I can't get any of my compilers to warn about it. Finally fixes the rest of bug #142663. 2005-06-18 Hans Breuer * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger changes but doesn't hurt anyway. See bug #162034 * app/diapsft2renderer.c app/modify_tool.c plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() instead of messing with internals * app/display.c : give interactive renderers more begin/end render. It is guaranteed that the scale wont change between these. 2005-06-18 Hans Breuer * app/app_procs.c : const correctness for stderr_message_internal * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON not GTK_CHECK_BUTTON, also some G_CALLBACK casts * app/disp_callbacks.c : don't dereference the to the function call when the function pointer in meant to be checked against 0 * app/interface.c : warning fixes by using correct types * app/modify_tool.c : describe_props() members returns const pointer * app/render_libart.c : removed most of the render function again. They happily live in lib/dialibartrenderer.c since almost 3 years http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32 * lib/dia_dirs.c : dia_get_canonical_path() const correctness * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes * lib/dialibartrenderer.c(set_line_join): actually set the join_style instead of the cap_style. Don't initialize Art* enums with GDK_* constants. Both mentioned in bug #159814 and not warned by most other compilers. * lib/diagtkfontsel.c : at least the watcom compiler did not like the trailing colon in the GtkTypeInfo initialization * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference between char and gint8 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %% * plug-ins/wpg/wpg.c : consitently use guint8 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids redefinition warnings for python and xslt plug-ins 2005-06-18 Hans Breuer * lib/diagramdata.c : really get rid of diagram_data_destroy and new_diagram_data [ no previous prototype for `...' is either a sign of missing static or of a function to vanish :-] * lib/geometry.c : apparently the G_INLINE stuff was working only with particular GLib version(s), glib-2.6.4 does not. Conditionally reverting to the old mecanics. 2005-06-17 Hans Breuer * plug-ins/python/pydia-*.c : include order tweaking to get rid of redefinition warnings. Ensure to include before any 'system' header, some dragged in by glib.h * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str) pydia-properties.c(PyDiaProperties_Str) plug-ins/python/pydia-property.c(PyDiaProperty_Str) : use %p to format pointers * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : dont cast to float for %d * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : use correct pointer type * plug-ins/python/pydia-image.c(PyDiaImage_Str) : dont discard qualifier aka dont free const strings * plug-ins/python/pydia-properties.c : casts to PyCFunction * plug-ins/python/pydia-property.c : removed unused function, make ensure_quarks() static * plug-ins/python/pydia-render.c : removed unused vars, use the correct signature for begin_render (dia_py_renderer_finalize): pluged a leak => except -fno-strict-aliasing there is no warning left in all of PyDia 2005-06-12 Hans Breuer * app/filedlg.c : really fix the file extension mismatch on export dialog by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850 2005-06-11 Hans Breuer * configure.in config.h.win32.h : mark as +cvs (should have been done directly after the 0.94 release) * NEWS : attempt to summarize 2/3 year of development [ WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck finally passes again ] * app/app_procs.c : force use of POPT for the GNOME case, otherwise app/run_dia.sh --credits > THANKS => Segmentation fault * app/pixmaps/Makefile.am : added group.png and ungroup.png * Makefile.am : work around scrollkeeper bug * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1 * po/*.po : 'noise' produced by make dist 2005-06-10 Hans Breuer * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ... * objects/custom/custom_object.c : ... and use it to avoid complains about missing attribute "show_background". It is safe to leave this uninitialized. Same for flip_* and "text", the latter with comment cause it usually is *not* safe to do it for the general case. Fixes remaining issues with bug #169006 which where caused by an incompatible change in the shape file. * app/commands.c : use "gnome-open" instead of "netscape" as fallback for $BROWSER not set. Still not optimal but better to try some common desktop tool than an obsolete browser;) Fixes bug #307142. Also some whitespace changes. * app/interface.c(toolbox_delete): avoid random return value. Patch from Stanislav Brabec, fixes bug #307143 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs. Patch from Torben H. Nielsen (bugzilla is still the preferred way) http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html 2005-06-06 Lars Clausen * app/diagram.c: * app/modify_tool.c: * app/textedit.[ch]: Better support for text edit highlight. * app/connectionpoint_ops.c (connectionpoint_draw): Stop making the mainpoint extra visible. 2005-06-02 Lars Clausen * objects/UML/class_dialog.c: * objects/UML/class.[ch]: The final fixes for mainpoint on UML Class. * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from Ian Redfern, now in color and with mainpoints! Very pretty! 2005-06-02 Hans Breuer * objects/UML/class_dialog.c : the memory managment with respect to attribute/operation connections was/is a mess. But it should work again ;) * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams directly from the UML Specification - to show the power of Dia and some weakness. Watch the bug reports following ;) 2005-06-01 Hans Breuer * app/dia.def : export diagram_update_connections_object * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object Patch from Paolo Bernardi, together with the property setting closes bug #300572 2005-06-01 Hans Breuer * plug-ins/python/pydia-property.c : complete refactoring of property setting, now also supports setting of property arrays * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to Python namespacing conventions * plug-ins/python/pydiadoc.py : use the stuff above to produce more complete UML Classes with attributes and operations * plug-ins/python/otypes.py : now also show the properties of the objects * objects/UML/class.c(umlclass_set_props) : need to update object::connections (pointers), they might be changed with attributes and opertions changing * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters were broken. Apparently noone used them before. * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods which only operate on the DiagramData to the latter file. To get on the DiagramData object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, but I don't know how to reflect that in the bindings. And for backward compatibility there also is the 'data' member.] * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c objects/UML/umlparameter.c : describe enums with PropEnumData * app/commands.c(view_show_all_callback) : if there is something selected show that instead of all exisiting objects. If there is noting or all selcted it "Show all" shows the old behaviour. * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory leaks and use less allocations caused by misguided API. Also some adaption to common coding style * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT * app/makefile.msc : added new icons and build as console app while not releaseing to the general public * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d and keep a refernce when storing the a font from style="" in s.font. This should finally allow to have shapes with fully predefined text (and no 'random' crashes) * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program capable to interpret it's output 2005-05-31 Lars Clausen * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811. 2005-05-30 Pawan Chitrakar * configure.in: Added ne in ALL_LINGUAS 2005-05-24 Lars Clausen * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting anyway. 2005-05-23 Lars Clausen * lib/paper.c: Added Ledger size paper. Fixes bug #305254. 2005-05-21 Lars Clausen * lib/diaarrowchooser.c: * lib/arrows.[ch]: Patch from Radek Krahl : Add 'infinite' line (three dots) arrowhead. Fix line length in arrow preview. And fix typo. Fixes bug #303904. 2005-05-20 Hans Breuer * lib/text.c : advice from valgrind and data_string() review: neither g_free() memory on the stack * objects/GRAFCET/boolequation.c : ... nor const strings * objects/UML/association.c:934 : definitely lost. Even g_strdup("") wants to be freed * app/diagram.c : a g_object_ref() following g_object_new() is almost always wrong. Why would we need two refernces? * app/app_procs.c : same here.If it crashes later on someone is dropping refernces he does not own, and *that* needs to be fixed. This is reverting "Remember to ref g_object_new'd object" (bug #170972) below, which causes more harm (leaking, hiding bugs elsewhere) than good. * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of diagramdata_destroy() which was only a wrapper to g_object_unref() * app/display.c(selection_changed) : don't g_strdup_printf() without g_free() later /or/ a C++ comment of me mostly denotes an error * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a const gchar* entry it must not eat memory, added a lot of g_free() and some const. Fixed a bunch - i.e. *all* - warnings. * lib/widget.h : removed unused/deleted functions * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to avoid 'Invalid write of size 4', no luck yet 2005-05-19 Lars Clausen * objects/UML/class.c: * objects/UML/class.h: * objects/UML/class_dialog.c: Work on getting a proper mainpoint for uml class object. #ifdef'd out right now. 2005-05-18 Lars Clausen * objects/standard/line.c: Make line adjust its actual endpoints for autogap -- looks and feels better. * objects/standard/arc.c: * lib/geometry.h: * app/modify_tool.c: Patch from Grégoire Dooms : First stab at autogap for arcs, and shifted arc angle movement. 2005-05-16 Hans Breuer * lib/widget.c : variable declarations need to be at the start of a block, at least as we are not using C++ or C99 * plug-ins/python/pydia-property.c : implment the read part for Property arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"] They are working quite well as can be seen with export-object.py * plug-ins/python/codegen.py : prove it once more with the generation of C++ or Python code from an UML Diagram. Simply save as .py or .cxx ... * plug-ins/python/Makefile.am : install it 2005-05-16 Lars Clausen * app/pixmaps/{un}group.png: * app/Makefile.am (ICON_PNG_PAIRS): * app/menus.c (display_menu_items): New icons for grou/ungroup finally added, closing bug #105519. * app/Makefile.am: Dependencies for pixmaps. * app/pixmaps/connectable.png: An icon that actually makes sense for switching connectability. 2005-05-15 Hans Breuer * lib/group.c object/UML/classicon.c : fixed leftovers of 'Adding connectionpoint to _move_handle * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup()) is *ALWAYS* a memory leak. Plug some more. [ In preparation to make UML operations/attributes/parameters setable by Python UML class became more StdProp conformant. A nice experience to be the first to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-) ] * objects/UML/umlattribute.c objects/UML/umloperation.c objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) split from objects/UML/uml.c and made StdProp aware * objects/UML/class.c : finally make "attributes", "operations", "templates"