2002-01-21 Jon Trowbridge * src/libguppiplot/guppi-marker.c: Make the min and max size values for the markers be functions of the default size. * plug-ins/plot/axis/guppi-axis-view.c (compute_size): #if 0/#endif out the overly-clever bit of code that was leading to truncated labels. 2002-01-20 Jon Trowbridge * src/libguppiplot/guppi-axis-markers.c (guppi_axis_markers_adjust_excel): Fixed some simple typos. 2002-01-20 Jody Goldberg * plug-ins/plot/scatter/guppi-scatter-state.c (guppi_scatter_state_init) : Add [xy]_axis_type. (guppi_scatter_state_{get,set}_{x,y}_axis_type) : new. * plug-ins/plot/scatter/guppi-scatter-view.c (view_init) : Use them here. * src/libguppiplot/guppi-axis-markers.c (excel_date_init) : new. (guppi_date_set_excel) : ditto. (guppi_axis_markers_adjust_excel) : ditto. (guppi_axis_markers_populate_dates) : optionally populate with excel style serial dates. (guppi_axis_markers_populate_generic) : add GUPPI_AXIS_XL_DATE. 2002-01-19 Jon Trowbridge * plug-ins/plot/axis/guppi-axis-item.c (render): Use guppi_paint_sharp_box to draw ticks, so they line up properly with the rules. * plug-ins/plot/frame/guppi-frame-item.c (sharp_box): Use a sharp box instead of a soft box. (render): s/soft_box/sharp/box. * src/libguppiuseful/guppi-rgb.c (guppi_paint_sharp_box): Added. We use this instead of guppi_paint_soft_box in order to get a crisper look for the lines in our background rules, etc. 2002-01-18 Jon Trowbridge * Lots of small changes to get rid of compiler warnings, most of which are either adding #include or removing unused functions. * plug-ins/plot/pie/guppi-pie-item.c (between_angle): Always normalize all angles into the [0, 2pi) interval before comparing. Fixes the "can't drag pie slices in the first quadrant in gnumeric" bug. (guppi_pie_item_in_slice): Since between_angle is now smarter, this code can be a bit stupider. 2002-01-18 Jody Goldberg * configure.in : bump the Gnumeric idl version requirement. 2002-01-17 Jon Trowbridge * plug-ins/plot/text/Makefile.am (guppi_text_la_SOURCES): Add init.c back into guppi_text_la_SOURCES... it must have gotten deleted by mistake. 2002-01-14 Jon Trowbridge * libguppitank/guppi-tank-init.c (guppi_tank_shutdown): Don't call depricated functions! (guppi_tank_exit): Don't call depricated functions! 2002-01-13 Jon Trowbridge * Added #include in a whole bunch of places that needed it. * Remove a bunch of cruft, mostly involving our currently-broken scripting support. This totally removes any guile dependency, and removes the optional python business... it was all only making life hard for people, anyway. When Guppi gets ported to GNOME2, we can use all of their cool new bindings stuff. * plug-ins/plot/axis/guppi-axis-view.c (compute_size): Take our "shrink-to-fit" factor into account, if necessary. The text was being shrunk, but not the space allocated for the text to be drawn. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_maximum_span): Added label_scale argument. (guppi_axis_state_get_size): Added label_scale argument. 2002-01-08 Jon Trowbridge * src/libguppiuseful/guppi-attribute-bag.c (guppi_attribute_bag_vset): Doh! Dereference our va_list* when calling va_args. * src/libguppiplot/guppi-element-view.c (guppi_element_view_new): guppi_attribute_bag_vset now takes a va_list*. * src/libguppiplot/guppi-element-state.c (guppi_element_state_new): guppi_attribute_bag_vset now takes a va_list*. * python-modules/Guppi/Makefile.am: Remove data_impl from SUBDIRS. * tests/data: Replaced numerous instances of guppi_seq_*_new with guppi_seq_*_core_new. * libguppitank: Replaced numerous instances of guppi_seq_*_new with guppi_seq_*_core_new. (Now I'm getting really lazy in my ChangeLogging. Shame on me.) * plug-ins/plot/pie/guppi-pie-state.c (get_slice_offsets): s/guppi_seq_scalar_new/guppi_seq_scalar_core_new/. * src/libguppidata/guppi-seq.c (get_missing): Added evil cross-pseudolib dependency so that our default implementation of missing data could call guppi_seq_boolean_core_new. 2002-01-07 Jon Trowbridge * src/libguppidata: Removed all of the data base-type *_new() functions that loaded default plug-ins. That was just a bad idea. * src/libguppidataimpl: Libraryified the old data implementation plug-ins. * plug-ins/plot/linegraph/guppi-linegraph-view.c (build_date_series): Re-implemented to work with new way of doing things. (guppi_linegraph_view_build_path): Look at the ts_data attribute, try to do the right thing. * plug-ins/plot/linegraph/guppi-linegraph-state.c (guppi_linegraph_state_init): Added ts_data attribute for time series data. * src/Makefile.am: Added all of the libguppidataimpl .lo files to libguppi_la_LIBADD. * src/demo.c: Changed to call the un-plug-in-ified data type constructors directly. * src/libguppidata/guppi-price-series.c (cache_valid): The logic here was totally broken. (Exposed by gnome-chart.) * src/libguppiplot/guppi-root-group-item.c (guppi_root_group_item_destroy): Change our idle into a short timeout. (button_press_idle_cb): Idle -> short timeout. Return if we already have a pending button press timeout running. Only do the guppi_plot_tool_end stuff if the tool is active. (This is all meant to fix some re-entrancy problems. It helps, but there are still problems.) * src/libguppiplot/guppi-plot-tool.c (tool_repeat_handler): Added repeat_lock to try to avoid re-entrancy problems. (guppi_plot_tool_end): Don't clear the repeater tag first; instead, do it after the ->last call. * src/libguppiplot/guppi-layout-constraint.c (guppi_layout_constraint_add_terms): Use gint as the va_arg type, since enums aren't allowed! * src/libguppiplot/guppi-color-palette.c (guppi_color_palette_set_vcustom): Use gint as the va_arg type rather than guint32. * src/libguppiuseful/guppi-attribute-flavor.c (boolean_va2p): use gint as the va_arg type rather than gboolean. (uint32_va2p): Use gint as the va_arg type rather than guint32. (Thanks gmorten!) * configure.in: Bumped version number. Removed all of the plugin/data_impl Makefiles from AC_OUTPUT, added src/libguppidataimpl. 2001-12-28 Simos Xenitellis * configure.in(ALL_LINGUAS): Added el for Greek. 2001-12-18 Wang Jian * configure.in(ALL_LINGUAS): Added zh_CN for Simplified Chinese. 2001-11-26 Jon Trowbridge * plug-ins/plot/pie/guppi-pie-state.c (guppi_pie_state_make_config_model): Add some simple config pages. * plug-ins/plot/barchart/guppi-barchart-state.c (make_config_model): Add a simple config page. * plug-ins/plot/compass-box/guppi-compass-box-view.c (position_floating): If position is GUPPI_COMPASS_INVALID, hide the floating item. * src/libguppiplot/guppi-text-block.c (guppi_text_block_text): Add a guppi_outside_alloc hint to avoid errors in our memory debugging output. * src/libguppiplot/guppi-layout-engine.c (build_simplified_rule_system): Print a message and return if we try to do a layout on an empty system. * src/libguppiplot/guppi-group-view.c (make_config_model): Revamped for new-style make_config_model. * src/libguppiplot/guppi-element-view.c (guppi_element_view_make_config_model): Revamped, as below. * src/libguppiplot/guppi-element-state.c (guppi_element_state_make_config_model): Revamped to account for the change in signature for make_config_model. Passing in a model is cleaner, requires less merging, and makes chaining easier. * src/libguppiplot/guppi-canvas-group.c (guppi_canvas_group_destroy): Properly disconnect all of our subobjects from the changed_position signal. * src/libguppiplot/guppi-config-dialog.c: Moved from libguppiuseful; beefed up and added an optional plot preview. * src/libguppiuseful/guppi-useful-init.c (guppi_useful_init_without_guile): Allow us to set a default verbosity via the GUPPI_VERBOSITY environment variable. * src/libguppiuseful/guppi-config-model.c (guppi_config_model_add): Added an attribute bag parameter (which can be NULL), since we'll be binding to attribute widgets in almost all cases. (guppi_config_model_add_glade_file): Added. A convenience routine for adding config pages from glade files. (guppi_config_model_foreach): Fixed for new signature for iterator functions. If we have a bag, attach it to the widgets we create. * src/libguppiuseful/guppi-attribute-flavor.c (guppi_attr_glade): Shortened name, from guppi_attribute_flavor_glade_custom_fn, for easier typing in those little glade entries. 2001-11-26 Pablo Saratxaga * configure.in: Added "az" to ALL_LINGUAS. 2001-11-25 John Gotts * Guppi.spec.in: Needed two lines removed, one added. Hardly what I would call broken! Otherwise cleaned up to help ease maintenance. 2001-11-22 Abel Cheung * plug-ins/import/import-delimited/Makefile.am: Move the last few unmoved headers to $includedir/gnome-1.0/libguppi/ . 2001-11-20 Jon Trowbridge * Makefile.am: Take out Guppi.spec and Guppi.spec.in. They are broken, and will just cause trouble. * libguppitank/guppi-object-*: Add casts to accomodate our changes to the function signatures in GuppiObject. * libguppitank/guppi-object.c (guppi_object_build_widget): Add a cast for the 2nd arg of our call to item_init. (guppi_object_view): Return a gpointer instead of GuppiElementView*. * libguppitank/guppi-object.h: Don't #include any libguppi headers, and remove any reference to libguppi types. Return a gpointer instead of a GuppiElementView* from build and pass a GnomeCanvasItem* to item_init instead of a GuppiCanvasItem*. * configure.in: Bump our version number to 0.40.2 and our soname to 15. * src/libguppiplot/guppi-element-view.c (guppi_element_view_changed_size): Only emit 'changed_size' if the new size != our current size. * src/libguppiuseful/guppi-hash.c (guppi_hash_raw): Added parens around a ^. 2001-11-19 Jon Trowbridge * Makefile.am: Comment out stuff related to our old .desktop file. * libguppitank/guppi-object-barchart.c (build_bar_data): Added a cast to get rid of a compiler warning. * src/libguppiplot/Makefile.am: Added Guppi.spec back to the build. This way, someone will tell me if they don't work. (libguppiplotinclude_HEADERS): I'd forgotten to add guppi-config-dialog.h. * src/libguppiplot/guppi-layout-engine.c (guppi_layout_engine_remove_geometry): Removed unused variables. (guppi_layout_engine_remove_geometry_rules): Removed unused variables. * src/libguppiplot/guppi-root-group-view.c (guppi_root_group_view_destroy): Removed references to old config-related code. * src/libguppiplot/guppi-root-group-view.h: Removed reference to (now-deleted) guppi-configure.h. * src/boilermaker.pl: Fixed the quoting we use for include files in generated headers. Also changed how we make opaque objects, changing from "gpointer & a priv macro" to "FooPrivate ->priv". * src/libguppiplot/guppi-canvas-group.c: Included a missing header to silence a compiler warning. * plug-ins/plot/guppi-axis-state.c * plug-ins/plot/guppi-axis-view.c * plug-ins/plot/guppi-frame-state.c * plug-ins/plot/guppi-pie-state.c * plug-ins/plot/guppi-scatter-state.c * src/libguppiplot/guppi-root-group-view.c * src/libguppiplot/guppi-root-group-tools.c * src/libguppiplot/guppi-element-view.c * src/libguppiplot/guppi-group-view.c * src/libguppiplot/guppi-element-state.c: Removed old configuration code. Added code related to GuppiConfigModel. * src/libguppiuseful/guppi-config-dialog.c (guppi_config_dialog_new): Turns a GuppiConfigModel into a manipulable dialog. * src/libguppiuseful/guppi-config-model.c: Added. A container for configuration information. * src/libguppiuseful/guppi-config-item.h * src/libguppiuseful/guppi-config-item.c * src/libguppiuseful/guppi-configure.h * src/libguppiuseful/guppi-configure.c: Removed. 2001-11-18 Jon Trowbridge * build-tools/gen-scm.pl (c_include): More include quoting. * src/libguppiplot/build-rule-predef-h.pl: Fix include quoting. * src/libguppiplot/build-layout-h.pl: Fix include quoting in generated header file. * Makefile.am: Remove the .desktop file from the distributed files, since we don't ship any application right now. * configure.in (LIBGUPPI_INCLUDEDIR): Fixed include dir so that the libguppi/ prefix is mandatory when including libguppi headers. (The situation remains the same w/ libguppitank headers, though.) * plug-ins/plot/pricebars/guppi-pricebars-view.c: Removed a bunch of dead code having to do with enforced preferred views, back from before we were able to do that in a generic fashion. (preferred_range): Make our preferred x-range a function of the 'preferred_days' attribute, rather than having it just correspond to the whole time series. * plug-ins/plot/pricebars/guppi-pricebars-state.c (guppi_pricebars_state_init): Add 'preferred_days' attribute, an integer which records how many days from the end of the time series we want to see in our preferred view. * plug-ins/plot/text/guppi-text-item.c (render): If our 'gradient' flag is set, render the text in a gradientized fashion. Pure eye candy. * plug-ins/plot/text/guppi-text-state.c (guppi_text_state_init): Added 'gradient' and 'color_final' attributes. * src/libguppiplot/guppi-canvas-group.c (position_subitem): Make sure our canvas coordinate are properly sorted before using them to set our bounding boxes. This fixes a bunch of off-by-one errors in the layout. * src/libguppiplot/guppi-element-view.c (guppi_element_view_force_preferred_view): Keep track of whether or not any of our axes are being forced to the preferred view. (vi_changed): If the changes axis isn't being forced to the preferred view, but some other axis is, launch an idle function that will enforce all preferred views. This causes things to change correctly when one axis has a forced view that is a function of another axis, and the second axis changes. (guppi_element_view_finalize): Remove any pending view enforcement from vi_changed. * src/libguppiplot/guppi-view-interval.c (guppi_view_interval_init): Set our min, max, and min_width parameters to reasonable defaults. (guppi_view_interval_set): Enforce our min, max and min_width. (guppi_view_interval_set_bounds): Added. Sets min and max. (guppi_view_interval_clear_bounds): Added. Resets min and max to +/- infinity. (guppi_view_interval_set_min_width): Added. (guppi_view_interval_translate): Enforce min and max bounds. * src/libguppiplot/guppi-axis-markers.c (guppi_axis_markers_populate_scalar_log): If the min and the max are sufficiently close together (i.e. within one factor of the base) fall back to using the 'linear' scalar axis markers algorithm. (populate_dates_quarterly): Label every month with the first character in the month's name. I'm not sure if I like this, but it sucks less that what I was doing before. (populate_dates_yearly): Don't label every year if we are choosing markers for large periods. (guppi_axis_markers_populate_dates): Tweak the parameters slightly to get a more aesthetic result. * src/libguppiplot/guppi-alpha-template.c (guppi_alpha_template_gradient_print): Yes, GuppiAlphaTemplates are deprecated, but that doesn't mean we still can't have some fun with them. This lets us copy templates into buffers in a "gradientized" fashion. For now, the 'start' parameter is ignored. * src/libguppidata/guppi-date-indexed.c (get_size_info): Added some default size info for GuppiDateIndexed objects. * src/libguppidata/guppi-seq.c (import_xml): Properly chain on the parent class. * src/libguppidata/guppi-data.c (guppi_data_new): Changed the class validation warning message to read "Class 'foo' is not fully specified". Calling it "invalid" seemed to freak people out. Also, we store the plug-in's code in the GuppiDataClass, so that we can use it when exporting xml. (guppi_data_export_xml): Use the plug-in code for the Type property. (guppi_data_import_xml): Don't free the type_name until we know we don't need it for any warning messages. * src/libguppiuseful/guppi-useful.c: Stripped out the initialization code and put it into guppi-useful-init.c. This file is now empty. * src/libguppiuseful/guppi-useful-init.c: Added, for symmetry with the other sublibraries. This now contains the libguppiuseful initialization code. 2001-11-16 Jon Trowbridge * src/libguppiuseful/guppi-attribute-widget.c: Added. Handles the details of binding attribute bags to attribute widgets. * plug-ins/plot/pie/Makefile.am (plugin_DATA): Added guppi-pie-state-config.glade. * plug-ins/plot/pie/guppi-pie-state-config.glade: A skeletal glade file for pie config info. * plug-ins/plot/pie/guppi-pie-state.c (config_widget): Removed a lot of old config code, replaced it with this snippet of code. * plug-ins/plot/text/guppi-text-state.c (guppi_text_state_init): Fix outline_width's attribute type. * plug-ins/plot/axis/guppi-axis-view.c (guppi_axis_view_label_shrink_to_fit_factor): If we are thrashing excessively, don't assert. Instead, just abort and use whatever scale we tried last. * configure.in: Inject gnome-1.0 into the header install dir. Build makefiles compass-box, image and pricebars. * plug-ins/plot/Makefile.am: Added pricebars, image and compass-box to the build. * plug-ins/plot/pricebars/guppi-pricebars-print.c: Ported to revised framework. (Finally!) * plug-ins/plot/pricebars/guppi-pricebars-item.c: Ported to revised framework. * plug-ins/plot/pricebars/guppi-pricebars-view.c: Ported to revised framework. * plug-ins/plot/pricebars/guppi-pricebars-state.c: Ported to revised framework. * plug-ins/plot/image: Added. * plug-ins/plot/compass-box: Added. * src/*/Makefile.am: Changed header install path to start with PREFIX/include/gnome-1.0. * src/demo.c: Various cleanups. Added image and compass-box samples. * src/libguppiuseful/guppi-paths.h: Whitespace. * src/libguppiuseful/guppi-metric-entry.c (write_value): Added. (guppi_metric_entry_set_pt_value): Push new pt values to the widget. Also lots of whitespace fixes. * src/libguppiuseful/guppi-hash.c (guppi_hash_raw): Fairly pointless optimization. * src/libguppiuseful/guppi-attribute-flavor.c: Added lots of machinery for producing widgets that are bound to attributes. * src/libguppiuseful/guppi-attribute-bag.c (guppi_attribute_bag_get_flavor): The contents of attr_hash are GuppiAttributes, not GuppiAttributeFlavorInfos. Thinking otherwise caused much unhappiness and many segfaults. * src/libguppiplot/guppi-pixbuf-stock.c: Removed spew. * src/libguppiplot/guppi-layout-engine.c (guppi_layout_engine_remove_rule): Don't unref the rule until we're done with it. (guppi_layout_engine_remove_geometry_rules): Added. (guppi_layout_engine_remove_geometry): Changed to call guppi_layout_engine_remove_geometry_rules. * src/libguppiplot/guppi-element-state.c (guppi_element_state_config_widget): Provisionally added. (guppi_element_state_new): Don't allow the empty string as a type. * src/libguppiplot/guppi-canvas-item.c: Whitespace fixes. * src/libguppiplot/guppi-chart-plug-in.c: Added. * src/libguppiplot/guppi-chart.c: Added. Fairly experimental. 2001-11-08 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-item.c (gather_pairs_cb): Changed to render GuppiPixbufs. * plug-ins/plot/scatter/guppi-scatter-state.c (guppi_scatter_state_get_point_pixbuf): Renamed and changed to use GuppiPixbufs. * configure.in: Added orbit's cflags/libs for guppi-gnumeric. * src/libguppiuseful/guppi-hash.c (guppi_hash_int): Fixed sizeof. (guppi_hash_uint): Added. 2001-11-07 Jon Trowbridge * src/libguppiuseful/guppi-hash.c (guppi_hash_to_uint): Added. * src/libguppiplot/guppi-marker.c: Hacked to be able to use GuppiPixbufs as well as GuppiAlphaTemplates for markers. This is transitional --- GuppiAlphaTemplates are being phased out. * src/libguppiplot/guppi-pixbuf-stock.c: Added. Generates GuppiPixbuf versions of circles, squares, etc. * src/libguppiplot/guppi-pixbuf.c: Added. Wraps gdk-pixbuf with some guppi-specific extensions. 2001-10-30 Jody Goldberg * acconfig.h (GUPPI_GNUMERIC_SHLIB) : add. * configure.in (GUPPI_GNUMERIC_SHLIB) : add. 2001-10-24 Jon Trowbridge * configure.in: Bump up the version number to 0.40.1. Don't generate Makefiles for stuff we've dropped from the build. 2001-10-19 Jody Goldberg * src/Makefile.am : remove libguppibonobo because it is useless. 2001-10-18 Jon Trowbridge * configure.in: Change version number to 0.40.0. 2001-10-18 Jody Goldberg * src/libguppiplot/guppi-raster-text.c (guppi_raster_text_text) : result needs to be freed. * plug-ins/plot/legend/guppi-legend-item.c (update) : this is the only caller. Free the memory. 2001-10-18 Jon Trowbridge * src/libguppispecfns/incbet.c (incbd): s/k6/kk6/, s/k7/kk7/ to work around incredibly broken behavior of compiler #define-ing k6 or k7 when building on AMD machines. 2001-10-18 Valek Filippov * plug-ins/import/import-delimited/delim-import-widget.c: added xgettext comments about "ttl", "pre" and "pst". 2001-10-16 Jon Trowbridge * plug-ins/plot/linegraph/guppi-linegraph-item.c (update): Be graceful if item->path == NULL. 2001-10-15 Jon Trowbridge * plug-ins/plot/axis/guppi-axis-print.c (print): Use guppi_axis_view_label_shrink_to_fit_factor and guppi_axis_view_tick_properties. * plug-ins/plot/axis/guppi-axis-item.c (prepare_labels): Use guppi_axis_view_label_shrink_to_fit_factor and guppi_axis_view_tick_properties. (render): Use guppi_axis_view_tick_properties. Remove the old code that tried to deal with partially obscured labels by shifting them. This approach sucked. * plug-ins/plot/axis/guppi-axis-view.c (guppi_axis_view_tick_properties): Added. Like guppi_axis_state_tick_properties (which it calls), except that it takes the view into account and hides marker labels that would fall partially off the display. (guppi_axis_view_label_shrink_to_fit_factor): Added. Computes the extent to which we need to shrink labels in order to keep them from overlapping one another and otherwise causing problems. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_init): Turn "shrink_labels_to_fit" on by default. * plug-ins/plot/barchart/guppi-barchart-view.c (update_axis_markers): Mark row axis labels as "critical". * src/libguppiplot/guppi-element-view.c (guppi_element_view_axis_markers): Sort axis markers before returning. * src/libguppiplot/guppi-axis-markers.c (guppi_axis_markers_sort): Added. (guppi_axis_markers_add): Reset sorted flag. (guppi_axis_markers_add_critical): Added. A stupid cut&paste of guppi_axis_markers_add. * src/libguppiuseful/guppi-useful.c: Added. Gadget for computing hash values in a nice way. 2001-10-14 Christian Meyer * AUTHORS: Corrected my email address. 2001-10-14 Stanislav Visnovsky * configure.in: Added "sk" to ALL_LINGUAS. 2001-10-13 Jon Trowbridge * AUTHORS: Updated. 2001-10-12 Jody Goldberg * src/libguppiuseful/guppi-enums.c (guppi_str2compass) : Accept sides as aliases for compass points. 2001-10-12 Jody Goldberg * configure.in : bump Gnumeric_Graph idl version again. 2001-10-12 Jon Trowbridge * src/python-server/Makefile.am: s/GUILE_LDFLAGS/GUILE_LIBS/ (rlb) * src/libguppiuseful/guppi-guile.c: Fixed cwdr-no-unwind to work with guile 1.3.4, 1.4, 1.5 or 1.6. (rlb) * configure.in: Various changes to improve the build w.r.t. guile. (rlb) * src/libguppiuseful/gnan.c (gnan_init): Add new hack for generating NaN, suggested by Morten Welinder. * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_class_init): Allow per-axis dragging/scaling by default. * plug-ins/plot/linegraph/guppi-linegraph-item.c (render): If we have enough points, don't use libart -- connect the dots with a faster, uglier algorithm. (update): Only construct the ArtSVPPath for paths with few lines. 2001-10-11 Jon Trowbridge * src/libguppiplot/guppi-axis-markers.c (guppi_axis_markers_populate_scalar): Don't freak out if our request has pos_min >= pos_max. * src/libguppiplot/guppi-element-view.c (changed_state): Try to set the preferred view if our current view interval is pathological. * src/demo.c (main): Check if we are in guppi3/src; print a warning and terminate if we aren't. (layout_elements): Use our barchart demo. * plug-ins/plot/linegraph/guppi-linegraph-state.c (guppi_linegraph_state_init): Cut default width in half. * plug-ins/plot/linegraph/guppi-linegraph-view.c (view_init): Added axis markers. (preferred_range): Added a simple preferred view. * plug-ins/plot/linegraph/guppi-linegraph-item.c (guppi_linegraph_item_class_init): Add a basic set of tools. * src/libguppiplot/guppi-root-group-item.c (guppi_root_group_item_class_init): Disable right-click configuration until such time that it sucks a whole lot less. * plug-ins/plot/axis/guppi-axis-print.c (print): Set the color properly before drawing the edge. * plug-ins/plot/axis: Fixed copyrights, removed dead code, etc. 2001-10-10 Jon Trowbridge * configure.in: Fix library order in LIBGUPPI_LIBS. (GUPPI_CURRENT): Incremented. Fixed to make build work if only static python libs are available. * src/libguppiplot/guppi-group-view.c (guppi_group_view_compare_z): Added. (guppi_group_view_raise): Added. (guppi_group_view_raise_to_top): Added. (guppi_group_view_sink_to_bottom): Added. This is a new api for controlling the z-axis/layering of group elements. * configure.in (STANDARD_LDFLAGS): Added $(GNOME_PRINT_LIBS). Added the linegraph Makefile to AC_OUTPUT. 2001-10-09 Jody Goldberg * plug-ins/plot/legend/guppi-legend-item.c (update) : Handle empty strings without crashing. 2001-10-08 Jon Trowbridge * plug-ins/plot/barchart/guppi-barchart-view.c (update_axis_markers): Use percentages as our numeric axis markers when showing normalized stacks. (guppi_barchart_view_bar_position): Properly position stacked bars. * plug-ins/plot/barchart/guppi-barchart-state.c (guppi_barchart_state_bar_info): Deal with normalized stacks. * plug-ins/plot/legend/guppi-legend-view.c (changed_state): Recompute our legend's size on state changes. * src/libguppiplot/guppi-element-view.c (changed_state): Check if we need to force preferred views on a state change. * libguppitank/Makefile.am (INCLUDES): Fixes for builddir != srcdir build. * libguppitank/guppi-object-barchart.c: Remove reference to guppi-seq-data.h. Fix copyright. * configure.in: Build w/ gnumeric support by default. Require bonobo 1.0.8, gnome-print 0.28, gdk-pixbuf 0.11. Require gnumeric idl from 0.71. * src/libguppibonobo/guppi-bonobo.c (guppi_bonobo_destroy): #if 0/#endif out this (unused) function. * src/libguppibonobo/guppi-bonobo-view.c: Remove reference to guppi-bonobo-canned-demo.h. * src/libguppiplot/guppi-element-view.c (vi_changed): Use our stored ids to block/unblock the signals. 2001-10-07 Jon Trowbridge * src/libguppiplot/guppi-text-block.c (guppi_text_block_set_font): Unset the maximum width when our font changes. * src/Makefile.am (SUBDIRS): Removed libguppitank. * Makefile.am (SUBDIRS): Added libguppitank. * configure.in: Fixed libguppitank. * src/libguppiuseful/guppi-paths.c (development_path_hacks): Don't force our path hacks when running from inside of libguppitank. * src/libguppiplot/guppi-layout-rule-predef.c (guppi_layout_rule_new_same_horizontal_center): Added. (guppi_layout_rule_new_same_vertical_center): Added. (guppi_layout_rule_new_same_center): Added. * src/libguppiplot/guppi-root-group-item.c: Remove old, empty get_arg/set_arg functions. * src/libguppidata/guppi-data-table.c: Make the signature of GuppiDataTable's signals less annoying. 2001-10-06 Jon Trowbridge * src/demo.c: Added a demo of our new, currently very lame & broken, line chart plug-in. * plug-ins/plot/barchart/guppi-barchart-view.c (guppi_barchart_view_bar_position): Add a warning that stacked barcharts are not yet supported. * src/libguppidata/guppi-data-table.c (validate_class): Added some class validation. Better safe than sorry. * src/libguppidata/guppi-data.c (process_pending_op): Check that op->op is not NULL before trying to call it as a function. 2001-10-05 Jody Goldberg * configure.in : handle the version bump in GNOME_Gnumeric_Graph::Mananager. 2001-10-06 Jon Trowbridge * configure.in (GUPPI_GNUMERIC_MANAGER_VERSION): Check for version 3 of the gnumeric idl. * plug-ins/plot/linechart: Added. A sketch of a line chart that observes the same coordinate conventions, etc. as the bar chart. Not complete -- just a barely functional shell of an implementation. 2001-10-04 Fatih Demir * configure.in: Added "tr" to the languages list. 2001-10-02 Jody Goldberg * guppi-gnumeric/Makefile.am : only create the stamp files if the idl compile was successful. 2001-10-02 Jody Goldberg * guppi-gnumeric/guppi-gnumeric.c : some cut and paste support for building as a shared library. This is unlikely to work because of guile for now. 2001-10-02 Jon Trowbridge * src/boilermaker.pl: Clean-up. * plug-ins/plot/pie/guppi-pie-view.c (guppi_pie_view_max_radius): Make maximum radius smaller by an extra edge-width, to try to avoid rendering artifacts due to rounding error, etc. * src/libguppiplot/guppi-layout-rule-predef.c (guppi_layout_rule_new_flush_right): Fixed sign error in constraint definition. (guppi_layout_rule_new_flush_top): Fixed sign error in constraint definition. 2001-10-01 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-item.c (query_slack): Properly compute our 'marker slack' so that markers that straddle canvas refresh regions get rendered properly. 2001-10-01 Jody Goldberg * guppi-gnumeric/Makefile.am (CLEANFILES) : no need to use += * src/libguppiuseful/Makefile.am (noinst_HEADERS) : automake 1.5 noticed that this was being set twice. 2001-10-01 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-item.c (gather_pairs_cb): We no longer need to manually center the templates before printing, since the base point stuff now works. * src/libguppiplot/guppi-alpha-template.c (guppi_alpha_template_print): Adjust display coordinates to center template on the base point. (guppi_alpha_template_auto_crop): Adjust base point when cropping. * src/libguppiplot/guppi-color-palette.c (guppi_attribute_flavor_color_palette): Adjusted to reflect change guppi_attribute_flavor_add_signal_to_forward API. * src/libguppiuseful/guppi-attribute-bag.c (attribute_callback_marshal_cb): Queue queued signals. (guppi_attribute_attach_signals): Handle queued signals. (guppi_attribute_detatch_signals): Handle queued signals. * src/libguppiuseful/guppi-attribute-flavor.c (guppi_attribute_flavor_add_signal_to_forward): Change function to allow forwarded signals to be flagged as queued. * src/libguppiuseful/guppi-attribute-flavor-private.h: Add definition of GuppiSignalsToForward struct. * src/libguppiplot/guppi-marker.c (template_triangle): Use guppi_alpha_template_new_triangle. (template_bar): Use guppi_alpha_template_new_bar. (template_half_bar): Use guppi_alpha_template_new_bar. (template_filled_diamond): Use guppi_alpha_template_new_filled_triangle. * src/libguppiplot/guppi-alpha-template.c (guppi_alpha_template_new_triangle): Added. (guppi_alpha_template_new_filled_triangle): Added. (guppi_alpha_template_new_bar): Added. 2001-09-30 Morten Welinder * (HACKING): Use -f, not bash's -e. 2001-09-29 Jon Trowbridge * src/libguppiplot/guppi-layout-rule-predef.c (guppi_layout_rule_new_vertically_adjacent): Fixed a sign error. * src/libguppiplot/guppi-element-view.c (guppi_element_view_connect_axis_markers): Always connect the view interval at the same time as the axis markers. (Is there a case where we wouldn't want to do this? I can't think of one.) * src/libguppidata/guppi-data-socket.c (our_type_check_fn): Always accept NULL data. 2001-09-28 Jody Goldberg * Makefile.am (SUBDIRS) : move guppi-gnumeric up here so that libguppi can get built first. * configure.in : ditto. * src/Makefile.am (SUBDIRS) : remove it from here. 2001-09-28 Jon Trowbridge OK, the party is over. I'm going to start writing ChangeLog entries again. * configure.in: Change version to 0.35.666. The release is drawing near. * src/libguppiplot/guppi-color-palette.c (guppi_color_palette_copy): Added. (guppi_color_palette_set): Added for Jody. Allows one node in the palette to be changed, with copy-on-write if necessary. (guppi_color_palette_init): Set initial value for meta. (guppi_color_palette_set_raw): Use guppi_strdup. (guppi_color_palette_set_custom): If color is NULL, default to an all-black palette. * plug-ins/plot/legend/guppi-legend-state.c (guppi_legend_state_init): Make the labels data socket untyped. 2001-09-25 Jody Goldberg * configure.in : Adjust to the new versioned placement of include files. We need to explicitly mention glade now. 2001-09-12 Jody Goldberg * configure.in : remove XLplots plugin. 2001-09-11 Jody Goldberg * configure.in : reflect name change for gnumeric idl file. 2001-09-01 Jody Goldberg * configure.in : Make the gal and canvas pixbuf req gnumeric specific 2001-08-17 Jody Goldberg * configure.in : Add IDL_FLAGS. Update Gnumeric checks to test for a specific version of the idl file. Expand a few extra variables to make the gnumeric tests for centralized. Clone some code out of gtkhtml to begin support for a shared lib based factory for guppi-gnumeric. Fix the creation of the oaf files. * src/guppi-gnumeric/* : fight bitrot. 2001-07-09 Jon Trowbridge * plug-ins/plot/text/guppi-text-state.c (prepare_attributes): Added chaining. (set_attributes): Added chaining. * src/libguppiuseful: * src/libguppidata: Reorganized header files #includes for greater correctness. * src/libguppiplot/guppi-group-view.c (custom_xml_export): Added. Export info about subobjects. * src/libguppiplot/guppi-root-group-view.c (guppi_root_group_view_new): Added. Removes need to create degenerate state object. * src/libguppiplot/guppi-element-view.c (guppi_element_view_export_xml): Added. (guppi_element_view_import_xml): Added. (Still FIXMEd) (guppi_element_view_spew_xml): Added. * src/libguppiplot/guppi-element-state.c (guppi_element_state_export_xml): Updated; changed semantics of custom export to allow multiple nodes. * src/libguppiuseful/guppi-unique-id.c (guppi_uniq2str): Changed to return an allocated string. * src/libguppiuseful/guppi-attributes.c (guppi_attributes_export_xml): Return NULL if the attribute table is empty. 2001-06-14 Jon Trowbridge * src/libguppiplot/guppi-geometry.c: Fixed some typos resulting from my adding of inline API docs. (Thanks Jon Kare.) 2001-06-12 Jon Trowbridge * src/libguppiplot/guppi-geometry.c: Added inline API docs. 2001-06-08 Jon Trowbridge * configure.in (GNOMECANVASPIXBUF_LIBS): Fix in gnomecanvaspixbuf check. Thanks to Benoit Pelletier. 2001-06-05 Jon Trowbridge * src/libguppibonobo/guppi-bonobo.c (guppi_bonobo_canned_demo_init): Added "void" as function arg. (All of these are due to gmorten.) * src/libguppiuseful/guppi-python.c (guppi_python_module_init): Added "void" as function arg. * src/libguppiuseful/guppi-multiview.c (guppi_multiview_new): Added "void" as function arg. * src/libguppiuseful/guppi-splash.c (gtk_catchup): Added "void" as function arg. * src/python-server/gnome-python-repl.c (init_readline): Added "void" as function arg. * src/libguppiuseful/guppi-unique-id.c (init_unique_id): Added "void" as function arg. 2001-06-04 Jon Trowbridge * src/libguppiuseful/guppi-unique-id.c (init_unique_id): Changed to use /dev/urandom rather than /dev/random, on a suggestion from Richard Braakman . (guppi_unique_id): Forgot to make the "initialized" flag static. It must have been pretty late when I originally wrote that code... 2001-06-02 Jon Trowbridge * configure.in: Notify the user if the API docs will be built. * src/libguppidata/guppi-seq.c: Added embedded API docs. * src/libguppidata/guppi-seq-scalar.c: Added embedded API docs. * src/libguppidata/guppi-seq-boolean.c: Added embedded API docs. * src/libguppidata/guppi-data-impl.c: Fixed copyright notice. 2001-06-01 Jon Trowbridge * src/libguppidata/guppi-seq-scalar.c (guppi_seq_scalar_ordering): Added. Compute whether a sequence is increasing/decreasing. (changed): Reset have_ordering flag on changes. * plug-ins/plot/pricebars/guppi-pricebars-item.c (update): Removed some debugging spew. * src/libguppidata/guppi-seq-scalar.c: Added embedded documentation. 2001-05-31 Jon Trowbridge * src/libguppimath/Makefile.am: Fix race condition (related to lex/yacc) that can cause parallel builds to fail. * plug-ins/plot/pricebars/guppi-pricebars-item.c (update): Cache the entire series in local buffers. (render): Heavilty optimized. The update routine is split into two different rendering algorithms: one is for the general case and one is for the "small N" case. * plug-ins/plot/linegraph/guppi-linegraph-print.c (print): Fixed for new API. * plug-ins/plot/linegraph/guppi-linegraph-item.c (update): For smallish paths, use libart to stroke a wide AA line. Otherwise, use the non-AA 1-pixel-think routine. * plug-ins/plot/linegraph/guppi-linegraph-view.c (build_date_series): Optimized. (build_curve): Now called guppi_curve_approximate_to_path, as it should, for adaptive sampling. * plug-ins/data_impl/price_series/guppi-price-series-core-impl.c: Implemented core functions in terms of revised API. * plug-ins/data_impl/date_series: Fixed API, made everything const-correct, optimizations. * plug-ins/data_impl/curve/func.c (v_curve_get): Get rid of call to a _01 function. This should be changed to work with unbounded curves. * plug-ins/data_impl/curve/poly.c: Changed to use GuppiPolynomial. More complex analysis yields better efficiency. * plug-ins/data_impl/curve: Added the skeleton of an "interpolate" curve plug-in. * src/libguppispecfns/gamma.c: Changed to use G_INFINITY and the related functions. * src/libguppispecfns/unity.c: Changed to use G_INFINITY and the related functions. * src/libguppidata/guppi-seq-impl.c: Changed a /** to /*. * src/libguppidata/guppi-price-series.h: * src/libguppidata/guppi-price-series.c: * src/libguppidata/guppi-price-series-impl.c: Simplified, improved API. * src/libguppidata/guppi-date-series.h: * src/libguppidata/guppi-date-series.c: * src/libguppidata/guppi-date-series-impl.h: Made API const-correct. * src/libguppidata/guppi-curve-impl.h: Added approx_to_path to vtable. * src/libguppidata/guppi-curve.c: Removed the "01" part of the API, so that we can handle unbounded curves properly. (guppi_curve_approximate_to_path): Added function arguments. We use the extra information for further optimizations. * src/libguppidata/guppi-data.c (guppi_data_newv_by_type): Properly hook up signals to our impl. (guppi_data_new): Properly hook up signals to our impl. (guppi_data_newv): Properly hook up signals to our impl. Also added embedded gtk-docs. * src/libguppiuseful/guppi-polynomial.c: Lots of changes. First of all, the whole thing has been objectified. Added guppi_polynomial_approximate_path and guppi_polynomial_find_bounded_range. Many small fixes and optimizations. * src/libguppiuseful/gnan.c (g_isinf): Added. Currently not portable. (g_finite): Added. Currently not portable. Also, introduced G_NAN, rather than using NAN. Added G_INFINITY. * src/libguppiuseful/guppi-rgb.c (guppi_paint_wide_curve): Cleaned up code, added clipping. 2001-05-25 Christian Stimming * src/libguppitank/demo.c: Tested the new barchart options - hrmpf, in here everything works fine. GnuCash does segfault, though :( * src/libguppitank/guppi-object-barchart.[hc]: Added option for x-axis and y-axis labels. However, this gives only segfaults so far. What's wrong?!? * src/libguppitank/guppi-object-pie.c: Added missing font option. 2001-05-14 Christian Stimming * *.cvsignore: ignore *.defs, ignore executables 2001-05-12 Jon Trowbridge * src/libguppiuseful/guppi-polynomial.c: Added a whole bunch of useful functionality: fairly good root-finding, ability to efficiently find min/max over a range, etc. * configure.in: Bumped version number. 2001-05-08 Jon Trowbridge * src/libguppidata/guppi-date-series.c (guppi_date_series_class_init): Forgot to properly set import_xml_element in the vtable. Doh. (import_xml_element): Fixed typo in first argument type. * configure.in: Added --enable-explicit-python-linking argument. * src/libguppiuseful/guppi-xml.h: Defined some macros for backwards compatibility with old libxmls. * src/libguppiuseful/guppi-enums.c: Added a little documentation. Mostly as a test. * src/libguppiuseful/guppi-enums.h: Fixed enums for gtk-doc. * src/libguppidata/guppi-data.c: Fixed comment to not start with /**, for gtk-doc. 2001-05-06 Jon Trowbridge * Everywhere: Removed stray instances of /** ... that had ended up in the sources and which were giving gtk-doc fits. * src/libguppiplot/guppi-canvas-item.h: Cleaned ups related to docs. * src/libguppiplot/guppi-canvas-item.c: Added a bunch of embedded docs. 2001-05-05 Jon Trowbridge * Added a whole bunch of build fixes. * src/guppi/Makefile.am: Took out app_scm and its broken old-style guile bindings. * src/guppi/guppi.c: Removed app_scm dependency. * configure.in: Remove guppi-api's Makefile line. * src/libguppispecfns/const.c: Don't try to define our own NAN; use the more portable stuff from gnan.c instead. * src/libguppispecfns/unity.c: Use NAN from gnan.c. * src/libguppispecfns/gamma.c: Use NAN from gnan.c. 2001-05-04 Jon Trowbridge * src/libguppidata/guppi-data.c (guppi_data_read_xml_file): If we can't read the file, return NULL. We should have been doing this all along. * src/libguppiuseful/guppi-xml.c (guppi_xml_document_read_file): Do the right thing if the file isn't found or otherwise can't be parsed. This code is still very broken w.r.t. how it handles namespaces. * src/guppi/guppi-app.c (guppi_app_load_visited_files): Remove debug spew. * src/guppi-gnumeric/Makefile.am (GNUMERIC_GRAPHS_CORBA_GENERATED): Only define this variable if we are actually building with gnumeric support. Otherwise "make dist" fails if we don't enable gnumeric support at configure time. (And "make distcheck" always fails, since gnumeric support isn't the default...) * plug-ins/plot/*.defs: Removed all of the old .defs files, which are now generated from the .defs.in files. 2001-05-04 Mathieu Lacage Fix misc builddir != srcdir problems. * Makefile.am: * build-tools/Makefile.am: * python-modules/Guppi/Makefile.am: * python-modules/Guppi/data_impl/Makefile.am: * python-modules/Guppi/plot/Makefile.am: * src/guppi-gnumeric/Makefile.am: * src/guppi/Makefile.am: * src/libguppidata/Makefile.am: * src/libguppidataui/Makefile.am: * src/libguppieval/Makefile.am: * src/libguppiplot/Makefile.am: * src/libguppiplot/guppi-canvas-item.h: * src/libguppiplot/guppi-chart-type.h: * src/libguppiplot/guppi-geometry.h: * src/libguppiplot/guppi-group-view.h: * src/libguppiplot/guppi-marker.h: * src/libguppiplot/guppi-shared.h: * src/libguppistat/Makefile.am: * plug-ins/data_impl/category/Makefile.am: * plug-ins/data_impl/curve/Makefile.am: * plug-ins/data_impl/date_series/Makefile.am: * plug-ins/data_impl/price_series/Makefile.am: * plug-ins/data_impl/seq_boolean/Makefile.am: * plug-ins/data_impl/seq_date/Makefile.am: * plug-ins/data_impl/seq_integer/Makefile.am: * plug-ins/data_impl/seq_object/Makefile.am: * plug-ins/data_impl/seq_scalar/Makefile.am: * plug-ins/data_impl/seq_string/Makefile.am: * plug-ins/data_impl/struct/Makefile.am: * plug-ins/import/net-hist-quotes/Makefile.am: * plug-ins/plot/XLplots/Makefile.am: * plug-ins/plot/axis/Makefile.am: * plug-ins/plot/barchart/Makefile.am: * plug-ins/plot/boxplot/Makefile.am: * plug-ins/plot/frame/Makefile.am: * plug-ins/plot/legend/Makefile.am: * plug-ins/plot/linegraph/Makefile.am: * plug-ins/plot/pie/Makefile.am: * plug-ins/plot/pricebars/Makefile.am: * plug-ins/plot/scatter/Makefile.am: * plug-ins/plot/slinreg/Makefile.am: * plug-ins/plot/text/Makefile.am: * plug-ins/plot/xybox/Makefile.am: move .defs to .defs.in so that the .plugin variable in the files are replaced by a full path. This allows you to regenerate the binding code when builddir != srcdir. * plug-ins/plot/boxplot/guppi-boxplot.defs.in: * plug-ins/plot/axis/guppi-axis.defs.in: * plug-ins/plot/barchart/guppi-barchart.defs.in: * plug-ins/plot/frame/guppi-frame.defs.in: * plug-ins/plot/legend/guppi-legend.defs.in: * plug-ins/plot/linegraph/guppi-linegraph.defs.in: * plug-ins/plot/pie/guppi-pie.defs.in: * plug-ins/plot/pricebars/guppi-pricebars.defs.in: * plug-ins/plot/root-group/guppi-root-group.defs.in: * plug-ins/plot/scatter/scatter.defs.in: * plug-ins/plot/slinreg/guppi-slinreg.defs.in: * plug-ins/plot/text/guppi-text.defs.in: * plug-ins/plot/xybox/guppi-xybox.defs.in: 2001-05-02 Mathieu Lacage - docs/developer-docs/libguppiplot: add this directory and all the files/directories included in it. - docs/deveoper-docs/fdl.sgml Makefile.fragment: add. - configure.in: add gtk-doc detection and Makefile for libguppiplot. 2001-05-04 Jon Trowbridge * src/libguppistat/guppi-regression-polynomial.c (guppi_regression_polynomial_recalc): Finished implementing poly-regression algorithm. (guppi_regression_polynomial_get_polynomial): Added. Actually get a polynomial object corresponding to the calculated model. (Cool, huh?) * src/libguppiuseful/guppi-polynomial.c (guppi_polynomial_export_xml): Adjusted calls to guppi_xml_set_propertyf to reflect the change in that function's arguments. 2001-05-03 Jon Trowbridge * src/libguppidata/guppi-price-series.c (import_xml_element): Added type-generic XML import. * src/libguppidata/guppi-date-series.c (import_xml_element): Added type-generic XML import. * src/libguppidata/guppi-data.c (guppi_data_export_xml): Fixed to pass impl to impl_class->set_attributes, not the corresponding data object. * configure.in: Add tests related to python linking, to try to determine if -lpython should be added to LIBGUPPI_LIBS in libguppiConf.sh. Eventually pkg-config should save us all from this misery. Fix XML checks to use gnome-config rather than looking for specific header files. * all the Makefile.am: Lots of fixes for the srcdir != builddir case. We still can't make distcheck properly, though. Damn. * plug-ins/plot/pie/guppi-pie-state.c: Added code to import/export GuppiPieState as XML. This is the first small step towards making plots XMLable * plug-ins/plot/text/guppi-text-state.c: Removed some old experimental XML code. * plug-ins/import/net-hist-quotes/guppi-net-hist-quotes.c (save_to_cache): Use new XML framework to cache quote data. * src/libguppiplot/guppi-gsml.c: Fixed includes. * src/libguppiplot/guppi-canvas-item.h: * src/libguppiplot/guppi-canvas-item.c: Removed broken XML code. We probably won't need to serialize these items anyway... * src/libguppiplot/guppi-element-view.h: * src/libguppiplot/guppi-element-view.c: Added XML import/export framework similar to that used by GuppiData. * src/libguppiplot/guppi-element-state.h: * src/libguppiplot/guppi-element-state.c: Added XML import/export framework similar to that used by GuppiData. * src/libguppidata/guppi-category.c: * src/libguppidata/guppi-price-series.c: * src/libguppidata/guppi-date-series.c: * src/libguppidata/guppi-date-indexed.c: * src/libguppidata/guppi-struct.c: * src/libguppidata/guppi-seq-point.c: * src/libguppidata/guppi-seq-boolean.c: * src/libguppidata/guppi-seq-categorical.c: * src/libguppidata/guppi-seq-integer.c: * src/libguppidata/guppi-seq-string.c: * src/libguppidata/guppi-seq-scalar.c: * src/libguppidata/guppi-seq.c: Modified to use new XML system. Removed lots of old, broken, hard-to-understand code. Replaced it with lots of clean, shiny, happy, fun code. * src/libguppidata/guppi-data-attribute.c: Added. Allows GuppiData objects to be stored (and properly imported/exported) in a GuppiAttributes object. * src/libguppidata/guppi-data-impl-plug-in.c (guppi_data_impl_plug_in_construct_impl): Save the plug-in's code in the GuppiDataImplClass. * src/libguppidata/guppi-data-impl.h: Added implementation override hooks for XML import/export to GuppiDataImplClass. * src/libguppidata/guppi-data.c: Fixed old (broken) approach to XML import/export. Removed lots of overly-complicated code. (build_impl_by_code): Added. (guppi_data_export_xml): Added. (guppi_data_import_xml): Added. The list of added/changes stuff goes on. (This is a nominee in the "most vague ChangeLog entry of 2001" competition.) * src/libguppidata/guppi-data.h: Modified GuppiData and GuppiDataClass definitions, adding new virtual functions for the new, improved XML import/export. * src/libguppiuseful/guppi-xml.h: * src/libguppiuseful/guppi-xml.c: Added. Convenience routines and encapsulation for dealing with XML documents & trees. * src/libguppiuseful/guppi-polynomial.h: * src/libguppiuseful/guppi-polynomial.c: Added. A polynomial object that is meant to be both efficient and correct. * src/libguppiuseful/guppi-attributes.h: * src/libguppiuseful/guppi-attributes.c: Added. An XML-streamable object that maps different types of data to string keys. * src/libguppiuseful/guppi-unique-id.c (guppi_unique_id): Small tweaks to make the unique IDs "more unique". They are, however, still not as unique as they could be. * src/libguppiuseful/guppi-rgb.c (guppi_str2color_rgba): Added code to deal with "#xxyyzz"-type color definitions. * src/libguppiuseful/guppi-python.h: Added an #include "guppi-guile.h" to work around a namespace collision. * src/libguppiuseful/guppi-memory.c: Removed a bunch of broken object auditting code. * src/libguppiuseful/guppi-debug.c (guppi_FIXME): Added. A wrapper around g_assert_not_reached() that can easily be grepped for. * src/libguppiuseful/guppi-context-xml.c (guppi_context_xml_finalize): Added call to guppi_finalized. * src/libguppiuseful/guppi-context-xml.h: Changed to include gtk.h. 2001-04-26 Jon Trowbridge * src/libguppieval/guppi-fit-slr.c: Hacked to use GuppiRegressionLinear rather than GuppiSimpleLinreg. * src/libguppistat/guppi-regression-polynomial.c: Polynomial regression, built on top of GuppiRegression2D. Unfinished. * src/libguppistat/guppi-regression-linear.c: Simple linear regression, built on top of GuppiRegression2D. * src/libguppistat/guppi-regression2d.c: A base class for 2d regression classes. Handles ref counting, changed signals, etc. 2001-04-21 Christian Stimming * configure.in: Added option --disable-bonobo. * src/libguppitank/guppi-object-barchart.[hc]: Added option to show the legend with reversed order. Added frame-view for the barchart so that horizontal rulers are shown. 2001-04-13 Jon Trowbridge * src/libguppiplot/guppi-layout.c: Changed to use nicer matrix and vector routines. * src/libguppiuseful/guppi-matrix.c: Added. Utility matrix routines. * src/libguppiuseful/guppi-vector.c: Added. Utility vector routines. 2001-04-04 John Gotts * Guppi.spec.in: Standard Red Hat Linux category. Encoded current hierarchy. Split devel stuff into -devel package. 2001-04-04 Jon Trowbridge * src/libguppieval/guppi-var-data.c: Removed test code. * src/libguppieval/guppi-var-double.c: Removed test code. * src/libguppieval/guppi-var-int.c: Removed test code. * src/libguppieval/guppi-var-bool.c: Removed test code. * src/libguppieval/guppi-fit-slr.h: * src/libguppieval/guppi-fit-slr.c: Added. "Proof of concept" for GuppiCurveFit, implements simple linear regression in the new framework. * src/libguppieval/guppi-curve-fit.h: * src/libguppieval/guppi-curve-fit.c: Added. "Control object" (not a base class, because you build up instances by connecting to its signals) for new curve-fitting framework. * src/libguppieval/guppi-parameters.h: * src/libguppieval/guppi-parameters.c: Added. A bag of GuppiVars. * src/libguppidata/guppi-data.c (guppi_data_set): Added. A GuppiData version of gtk_object_set that forwards the arguments to the underlying implementation. (guppi_data_setv): Added. A GuppiData version of gtk_object_setv. * plug-ins/data_impl/curve/poly.c (sample): Fix polynomial evaluation. (sample_uniformly): Fix polynomial evaluation. (guppi_curve_poly_impl_set_coefficient): Emit "changed" signal on coefficient changes. 2001-04-03 Jon Trowbridge * src/guppi/guppi.c (real_main): Call guppi_eval_init (). * src/Makefile.am (SUBDIRS): Added libguppieval. * configure.in: Added libguppieval. * src/libguppieval: Added the first of my GuppiVar parameter code. 2001-04-02 Jon Trowbridge * configure.in: Increment version to 0.35.4. This should have been done after the last release. 2001-03-31 Jon Trowbridge * Applied Christian Stimming's stacked-barcharts-in-guppitank patch. 2001-03-26 Jon Trowbridge * src/libguppiuseful/guppi-rgb.h: Changed some "uint"s to "guint"s in the UINT_RGBA_[RGBA] macros. 2001-02-26 Jon Trowbridge * plug-ins/plot/axis/guppi-axis-item.c (prepare_labels): Be more careful about checking pointers before we dereference them. * src/libguppiplot/guppi-axis-markers.c (populate_dates_yearly): Removed (invisible) duplicate year labels. 2001-02-20 Rusty Conover * src/libguppitank/guppi-object-title.c (update): New function, preform update function for title objects. (guppi_object_title_class_init): added update method to class structure * src/libguppitank/guppi-object-barchart.h: Added left_axis_view and bottom_axis_view to GuppiObjectBarchart. * src/libguppitank/guppi-object-pie.c (guppi_object_pie_set_arg): Fixed but when setting the ARG_COLORS_RGB opie-data was being freed when opie->colors_rgb was supposed to be freed. (guppi_object_pie_class_init): added update method to class structure (update): New function, preform update function for pie charts. Refactored pie chart object's build, added: pie_build_data, pie_build_labels, and pie_build_colors for generic construction routines. (build): refactored. * src/libguppitank/guppi-object-barchart.c (update): New function, preform update function for bar charts. Refactored construction of bar object's build function, added: build_bar_data, build_bar_labels, build_bar_colors. (guppi_object_barchart_class_init): added update method to class structure. (build): refactored. * src/libguppitank/guppi-object.c (guppi_object_update): New API call, forces a GuppiObject to update itself since it data or parameters have changed. This is to emulate the behavior of the data changing and the change signal emission. 2001-02-20 Michael Meeks * configure.in: Check for bonobo >= 0.37 2001-02-20 Michael Meeks * src/guppi-gnumeric/corba-graph-manager.c (graph_manager_get_type): upd. (manager_corba_object_create): kill. (graph_manager_new): upd. (manager_corba_object_create): kill. (corba_implementation_classes_init): move (graph_manager_class_init): here & upd. (impl_getTypeSelectControl): upd. * src/libguppidata/demo.c (main): add cast to kill warning. * src/libguppidata/guppi-seq-impl.c: include stdio.h for printf. * src/libguppidata/guppi-price-series.c: ditto for sscanf * src/libguppibonobo/guppi-bonobo-view.c (guppi_bonobo_view_factory): upd. * src/libguppibonobo/guppi-embeddable.c (guppi_bonobo_embeddable_construct): upd. (guppi_bonobo_embeddable_get_type): upd. 2001-02-03 Jon Trowbridge * plug-ins/plot/text/guppi-text-view.c: Further adapted to use a GuppiTextBlock. * plug-ins/plot/text/guppi-text-state.c: Further adapted to use a GuppiTextBlock. * plug-ins/plot/text/guppi-text-print.c (print): Fixed to properly gnome-printify text blocks. * plug-ins/plot/slinreg/guppi-slinreg-item.c (update): Fixed rotated text in label. * src/libguppiplot/guppi-gsml.c (guppi_text_block_parse_gsml): Added; GSML == "Guppi Stupid Markup Language". Allows for rich text in GuppiTextBlocks and, by extension, text items. * src/libguppiplot/guppi-text-tokens.c: Extensive hacking. * src/libguppiplot/guppi-text-block.c: Extensive hacking, beyond the scope of a ChangeLog entry to describe. * src/libguppiplot/guppi-element-print.c (guppi_element_print_print): Made the debugging frame a bit more elaborate. It is still #if 0ed out, though. * src/libguppiuseful/guppi-context-xml.c (guppi_context_xml_add_element_fns): Added; a convenience function for defining being and end tag handlers simultaneously. (gtk_iter_hack): Something somewhere isn't re-entrant. So much for not locking the UI while parsing XML... (guppi_context_xml_parse_memory): Added; for XML-parsing blocks of memory. 2001-01-25 Jon Trowbridge * src/libguppiuseful/guppi-attributes-xml.c: Added #include to silence compiler warning. * src/libguppiplot/guppi-text-block.c: Extensive improvements to line breaking and layout algorithms. * src/boilermaker.pl: Fix default copyright. 2001-01-24 Jon Trowbridge * src/libguppiuseful/guppi-context-xml.h: Fix header to not include and thus build properly when included in other projects. 2001-01-23 Michael Meeks * src/guppi-gnumeric/test.c: more include fixage. 2001-01-23 Michael Meeks * src/guppi-gnumeric/guppi-gnumeric.c: sort out include mess. * src/guppi-gnumeric/guppi-chart-selector.c: ditto. 2001-01-20 Andrew H. Chatham * build-tools/generate.py : Relaxed capitalization assumptions to deal with xy_boxplot. Removed some print statements. * plug-ins/plot/axis/guppi-axis.defs, plug-ins/plot/barchart/guppi-barchart.defs, plug-ins/plot/boxplot/guppi-boxplot.defs, plug-ins/plot/frame/guppi-frame.defs, plug-ins/plot/legend/guppi-legend.defs, plug-ins/plot/linegraph/guppi-linegraph.defs, plug-ins/plot/pie/guppi-pie.defs, plug-ins/plot/pricebars/guppi-pricebars.defs, plug-ins/plot/slinreg/guppi-slinreg.defs, plug-ins/plot/text/guppi-text.defs, plug-ins/plot/xybox/guppi-xybox.defs : Added ElementView subclass declarations * python-modules/Guppi/data_impl/*: Added * configure.in : Added data_impl * src/libguppiuseful/guppi-python.c (guppi_python_module_init) (python_eval_str) (python_eval_file): Beginnings of running each script in a new namespace * src/libguppiuseful/guppi-python.c (PyGuppi_dealloc): Removed extra gtk_object_unref call * src/guppi/barchart-demo.py, src/guppi/group-scatter.py, src/guppi/group-scatter2.py, src/guppi/pbars.py, src/guppi/pie-demo.py, src/guppi/scatter/demo.py: Added. The last two don't work yet. * src/guppi/hacked-pie-demo.py: Removed 2001-01-16 Jon Trowbridge * src/libguppiuseful/guppi-i18n.h: Added. This is something that we can #include to properly define the gettext _() and N_() macros w/o needing to include all of gnome.h. This should help improve Guppi's awful compile-times while protecting us from future changes in Guppi. * Applied James LewisMoss' "header-speedup.diff" patch. * plug-ins/plot/text/guppi-text-state.c (guppi_text_state_get_arg): Cast out const to get rid of a compiler warning. * Applied James LewisMoss' patch "libxml-v2.diff", so that Guppi will build with either versions 1 and 2 of libxml. * Applied James LewisMoss' patch "cleaning.diff", so that "make clean" will do a better job. * configure.in: Increment version number. * plug-ins/plot/text/guppi-text-item.c: Revamp code to use GuppiRasterText and GuppiTextBlock. The way we did things before was very obsolete... * plug-ins/plot/text/guppi-text-view.c (calc_width): Calc width via the GuppiTextBlock's width fn. (calc_height): Calc height via the GuppiTextBlock's height fn. * plug-ins/plot/text/guppi-text-state.h: * plug-ins/plot/text/guppi-text-state.c: Redesigned to hold text in a GuppiTextBlock. * plug-ins/plot/slinreg/guppi-slinreg-item.c (update): Changed to account for GuppiRasterText API changes. * plug-ins/plot/pie/guppi-pie-item.c (update): Changed to account for GuppiRasterText API changes. * plug-ins/plot/legend/guppi-legend-item.c (update): Changed to account for GuppiRasterText API changes. * plug-ins/plot/axis/guppi-axis-item.c: Changed to account for GuppiRasterText API changes. * src/libguppitank/guppi-object-title.c (build): Make the code handle the case of an unspecified title and subtitle with some grace, rather than just core-dumping all over the floor... * src/libguppiplot/guppi-raster-text.h: * src/libguppiplot/guppi-raster-text.c: Opaqueify the object and rip out all of the old guts. This is now a rasterizing front-end for a GuppiTextBlock that tries to maintain a (more or less) backwards-compatible API. * src/libguppiplot/guppi-text-block.h: * src/libguppiplot/guppi-text-block.c: A new class that serves as a model for a chunk of text. The API is supposed to be flexible enough that ultimately we'll be able to add higher-order functions (like multi-line text with line breaks and intra-block font changes) without having to change any of the rendering code. * src/libguppiplot/guppi-canvas-group.c (position_subitem): Fix off-by-one error in bounding box coordinates. * src/libguppiuseful/guppi-version.c (guppi_helpers): Added James LewisMoss to the list of Guppi Helpers, for his fine work making .debs. (guppi_copyright): Added FSF Copyright. * src/libguppiuseful/guppi-defaults.c (cant_find_default_font): Added. Prints a more intelligble error message when Guppi can't find its default fonts. (Which usually indicates a problem with gnome-print.) 2000-12-21 Jon Trowbridge * plug-ins/plot/slinreg/guppi-slinreg-statviewer.c (sv_set): Check if numeric values are NAN. * src/libguppistat/guppi-simple-linreg.c (guppi_simple_linreg_recalc): Make the calculate of the regression stats much more paranoid regarding division by zero and other FP exceptions. * plug-ins/plot/pie/guppi-pie-common.c: Add #include . * plug-ins/data_impl/date_series/core.c: s/isnan/g_isnan/. * src/guppi/plug-ins.c: Add #include . * src/guppi/corba_guppi.c: Add #include . * src/libguppibonobo/guppi-bonobo-print.c: Add #include . * src/guppi/about.c: Deal with new signature of guppi_copyright function. * src/libguppimath/guppi-equation-parser.y: Add #include . * src/libguppimath/guppi-equation-lexer.ll: Add #include . * src/libguppiplot/guppi-canvas-item.c (render): Remove turn of the dharma wheel. * src/libguppiuseful/guppi-timer.c (emission_monitor): Turn the dharma wheel whenever a "heartbeat" is generated. * src/libguppiuseful/guppi-splash.c (guppi_splash_text): Changed to properly handle the new signature of the guppi_copyright function. * src/libguppiuseful/guppi-version.c (guppi_copyright): Change the return from a string to a NULL-terminated vector of strings. * src/libguppiuseful/guppi-rgb.c: Added #include . * src/libguppiuseful/guppi-multiview.c: Added #include . * src/libguppiuseful/guppi-memory.c: Add a bunch of (#if 0/#endif-ed out) experimental object audit code. * src/libguppiuseful/guppi-dharma.c (GUPPI_WHEEL_MANTRA_COUNT): Reduced count in a burst of paranoia about performance. * src/libguppiuseful/gnan.c (gnan_init): Added more elaborate schemes to try to figure out what is NAN in the platform's FP. (g_isnan): Added. Allows us to use a truely awful work-around for when all else fails. * src/libguppiuseful/guppi-version.c (guppi_helpers): Updated list of helpers. * AUTHORS (TRANSLATORS): Updated credits. 2000-12-19 Jon Trowbridge * src/libguppiuseful/guppi-exit.c: Added #include before #include . This is needed for guile 1.3.x. * src/libguppiplot/guppi-canvas-item.c (update): Added call to guppi_dharma_turn_wheel. * src/guppi/guppi.c (real_main): Added call to guppi_dharma_turn_wheel_automatically. * src/libguppiuseful/guppi-dharma.c: Decreased overall count per cycle. (guppi_dharma_turn_wheel_automatically): Added. The wheel-turning timeout is no longer installed automatically by guppi_dharma_init. * plug-ins/plot/XLplots/guppi-scatter-register.c (guppi_scatter_factory): #if 0/#endif-ed out some bad code. 2000-12-18 Jon Trowbridge * plug-ins/plot/XLplots/guppi-boxplot-register.c: Added header to make the compiler happy. * plug-ins/plot/XLplots/guppi-linegraph-register.c: Added header to make the compiler happy. * src/guppi/guppi-app.c: Added header to silence compiler warning. * src/libguppiplot/guppi-2d.c (guppi_2d_make_path): Changed an ART_MOVETO to an ART_MOVETO_OPEN. (guppi_2d_make_optimized_path): Ditto. * src/libguppidata/guppi-curve.c (guppi_curve_sample_uniformly_to_path): Changed an ART_MOVETO to an ART_MOVETO_OPEN. * plug-ins/plot/pricebars/guppi-pricebars-item.c (render): Remove code, call guppi_pricebars_view_date_range instead. Code dup is the enemy. * plug-ins/plot/pricebars/guppi-pricebars-view.c (guppi_pricebars_view_date_range): Added. This is code from GuppiPricebarsItem that was also needed by GuppiPricebarsPrint. * plug-ins/plot/pricebars/guppi-pricebars-print.c (print): Implemented printing. * plug-ins/plot/linegraph/guppi-linegraph-item.c (update): Changed to call guppi_linegraph_view_build_path, which is the entry point to some code that used to be in this file. * plug-ins/plot/linegraph/guppi-linegraph-view.c (guppi_linegraph_view_build_path): Added. This is code from GuppiLinegraphItem that is needed in common with GuppiLinegraphPrint, so I've moved it here. * plug-ins/plot/linegraph/guppi-linegraph-print.c (print): Set line width to zero, to match stupid line-drawing algorithm we are currently using in the GuppiLinegraphItem. Construct our path with guppi_linegraph_view_build_path. * src/libguppiuseful/guppi-memory.c: Turned off memory tracing by default. * src/libguppitank/guppi-object-barchart.c (guppi_object_barchart_set_arg): Add ARG_ROTATE_X_AXIS_LABELS and ARG_ROTATE_Y_AXIS_LABELS. (build): Rotate x- and y-axis labels if necessary. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_get_arg): Add handling of ARG_ROTATE_LABELS. (guppi_axis_state_set_arg): Add handling of ARG_ROTATE_LABELS. (guppi_axis_state_class_init): Define ARG_ROTATE_LABELS, as well as ARG_LABEL_OFFSET (which I must have forgotten before). 2000-12-17 Jon Trowbridge * src/libguppidata/guppi-seq.c (init_xml_object): Properly chain our call to the init_xml_object in th eparent class.. * src/libguppidata/guppi-data.c (guppi_data_set_label): Check to see if the new label is actually different than the old label before emitting CHANGED_LABEL. * src/libguppiuseful/guppi-string.c (guppi_string_canonize_filename): Added. Given a string, this copies the string while replacing any characters that aren't suitable for appearing in a nice un*x filename (like <, /, etc.) with underscores. * src/libguppiuseful/guppi-output-xml.c (guppi_output_xml_finalize): Added finalization indicator. * src/libguppiuseful/guppi-attributes-xml.c (guppi_attributes_xml_finalize): Added finalization indicator. * src/libguppiuseful/guppi-unique-id.c (guppi_uniq2str): Added dash between the two 32-bit pieces of the uid to simplify parsing. * src/libguppidata/guppi-data.c (data_save_cb): Added. A callback for a well-behaved "save" operation for the data popup menu. Saves to native XML format. * src/libguppiuseful/guppi-unique-id.c (guppi_str2uniq): Added. * src/libguppidata/guppi-data.c (build_menu): Added menu item for a "rename" operation. (rename_cb): Added. Callback for rename menu item. (init_xml_object): Added. I forgot this earlier... * src/libguppitank/guppi-object-title.c (guppi_object_title_set_arg): Sink our subobjects. (guppi_object_title_finalize): Unref our subobjects on finalization. * src/libguppitank/demo2.c (main): Changes to facilitate hunting for memory leaks via Guppi's memory trace. * src/libguppitank/demo.c (main): Changed to facilitate hunting for memory leaks via Guppi's memory trace. * src/libguppitank/demo-scatter.c (main): Changes to facilitate hunting for memory leaks via Guppi's memory trace. * src/libguppitank/guppi-object-pie.c (build): Fixed memory leaks. * src/libguppitank/guppi-object-scatter.c (build): Fixed memory leaks. * src/libguppitank/guppi-object-barchart.c (build): Fixed memory leaks; properly unref everything that needs to be unrefed at the end. * src/libguppitank/guppi-object.c (guppi_object_build_widget): We add a reference to the GuppiObject when creating a widget, and unref when the widget is destroyed. This simplifies memory management of GuppiObjects. (object_build): We ref+sink the view that we build, so that it won't be sunk later when it is injected into a root group view. This gives us better control over our own memory management. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_finalize): Fix small memory leak; forgot to free state->legend. * src/libguppiuseful/guppi-exit.c (final_phase_shutdown): Check to see if guppi is active before trying to collect garbage. * plug-ins/plot/pricebars/guppi-pricebars-view.c (guppi_pricebars_view_class_init): Properly set view_class->print_type. * plug-ins/plot/pricebars/guppi-pricebars-print.c: Added framework for printing. Still unfinished. * plug-ins/plot/XLplots/guppi-linegraph-register.c (guppi_linegraph_config): Made to return guppi_unimplemented_plot() rather than NULL. * plug-ins/plot/XLplots/guppi-boxplot-register.c (guppi_boxplot_factory): Make to return guppi_unimplemented_plot() rather than NULL. * plug-ins/plot/XLplots/guppi-XLplots-common.c (guppi_unimplemented_plot): Added. Returns a valid plot consisting only of a text item that reads "Unimplemented". 2000-12-16 Jon Trowbridge * src/libguppitank/guppi-object.c (guppi_object_width): Added. (guppi_object_height): Added. (priv): Added paranoid GUPPI_OBJECT cast. * src/libguppiplot/guppi-root-group-view.c (guppi_root_group_view_show_configure_window): Added a "close" button to the configure window. * src/libguppiplot/guppi-plot-window.c (guppi_plot_window_new): Connect to delete_event so that we hide the configure window associated to that plot. * src/libguppiuseful/guppi-memory.h (guppi_outside_object): Added. (guppi_A_contains_B): Added. (guppi_finalized): Added. These three operations let us let us explicitly specify the sematics of various memory allocations inside of our code. * plug-ins/plot/barchart/guppi-barchart-tools.c (guppi_barchart_tool_new_cycle_orientation): I was setting the tool->name equal to a string constant. Since this is freed later, this is a really bad idea. (guppi_barchart_tool_new_cycle_style): Ditto. * plug-ins/data_impl/seq_string/guppi-seq-string-core-impl.c (guppi_seq_string_core_impl_finalize): Fixed memory leak; properly clean up the contents of the GuppiSeqStringCoreImpl. * src/guppi/file-open.c (do_import_config): Fix memory leak; unref our copy of imp at the end of the function. (post_hook): Remove unref from the post_hook, which only gets called when OK is clicked. Moved to the end of do_import_config instead. * src/libguppiuseful/guppi-stream-preview.c (style_line_font): Changed font string to specify iso8859-1 encoding. Added fallback to "fixed". (style_line_number_font): Ditto. * src/libguppiuseful/guppi-python.c (guppi_python_init): Flag the copy of the environment as permanent. 2000-12-16 Jon Trowbridge * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_finalize): Fix memory leak; unref legend raster-text item. 2000-12-16 Morten Welinder * configure.in (GNUMERIC_IDLDIR): Add missing directory separator. * src/guppi-gnumeric/guppi-chart-selector.c: Fix compilation. * src/guppi-gnumeric/corba-graph-manager.c: Fix compilation. * src/guppi-gnumeric/corba-graph-series.c: Fix compilation. * src/libguppiuseful/guppi-python.c (guppi_python_init): Copy environment because Python is broken. 2000-12-15 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-state.c (guppi_scatter_state_class_init): The parent class was being set to type GTK_TYPE_OBJECT rather than GUPPI_TYPE_ELEMENT_STATE, so all of our chaining operations were failing... in particular the finalization, resulting in a memory leak. How I could have gone so long without noticing this, I don't know. (guppi_scatter_state_init): Fix memory leak; properly ref and sink our stock scatter styles. * plug-ins/plot/scatter/guppi-scatter-item.c (guppi_scatter_item_class_init): Set the item_class_toolkit the new way. * plug-ins/plot/pricebars/guppi-pricebars-item.c (guppi_pricebars_item_class_init): Set the item_class_toolkit the new way. * plug-ins/plot/pie/guppi-pie-item.c (guppi_pie_item_class_init): Set the item_class_toolkit the new way. * plug-ins/plot/barchart/guppi-barchart-item.c (guppi_barchart_item_class_init): Set the item_class_toolkit w/ our convenience function. * plug-ins/import/import-delimited/guppi-delimited-importer.c (guppi_delimited_importer_import): Fixed memory leak; unref our data struct after calling the iter_fn on it. * src/libguppiplot/guppi-canvas-item.c (guppi_canvas_item_finalize): Fixed memory leak; unref our item toolkit. * src/libguppiplot/guppi-style.c (guppi_style_stock_alien): Flag stock styles as permanent. (guppi_style_stock): Flag stock styles as permanent. * src/libguppiplot/guppi-shared.c (guppi_shared_get_type): Flag our connection graph as permanent. * src/libguppiplot/guppi-root-group-item.c (guppi_root_group_item_class_init): Set item class toolkit with guppi_canvas_item_class_set_item_class_toolkit. * src/libguppiplot/guppi-plot-window.c (add_item_tools_iter_fn): Fixed memory leak; added a callback to unref toolkits when the associated button is destroyed. * src/libguppiplot/guppi-plot-toolkit.c (guppi_plot_toolkit_foreach): Added. (guppi_plot_toolkit_add_to_toolbar): Fixed memory leak; added a destructor callback for our tb_info structs. * src/libguppiplot/guppi-element-state.c (guppi_element_state_newv): Flag plug in code as permanent. * src/libguppiplot/guppi-canvas-item.c (guppi_canvas_item_class_set_item_class_toolkit): Added. A convenience function for setting the default item toolkit of a GuppiCanvasItemClass. This helps memory debugging by also properly flagging the various tools as permanent allocations. * src/libguppidata/guppi-struct-impl.c (v_size_in_bytes): s/g_strfreev/guppi_strfreev/ * src/libguppidata/guppi-seq-categorical.c (guppi_seq_categorical_finalize): Fixed memory leak; properly deallocate the frequency table. * src/libguppidata/guppi-data.c (build_impl_by_name): Fixed memory leak; stopped an extraneous data object from being allocated on every call. How this bug crept in, I don't know. * src/libguppidata/guppi-data-tree.c (guppi_data_tree_node_destroy_children): s/while/if. An obvious brain-cramp. (guppi_data_tree_node_destroy_downhill): Added. (guppi_data_tree_finalize): Fixed memory leak; nodes are now properly deallocated. (guppi_data_tree_main): Added a shutdown function to deallocate the main tree on exit. * src/libguppiuseful/guppi-useful.c (guppi_useful_init_without_guile): Added call to guppi_paths_init. * src/libguppiuseful/guppi-plug-in.c (guppi_plug_in_finalize): Fixed memory leak. * src/libguppiuseful/guppi-plug-in-spec.c (guppi_plug_in_spec_finalize): s/g_strfreev/guppi_strfreev/ (do_spec_preloads): Fix memory leak; free path. (do_spec_preloads): Fix memory leak; free path. (guppi_plug_in_spec_shutdown): Add call to guppi_plug_in_path_clear. * src/libguppiuseful/guppi-paths.c (guppi_paths_init): Added. Registers a function that cleans up after the various path lists on exit. (guppi_logo_graphic_path): Flag alloc as permanent. (gnome_guile_repl_path): Flag alloc as permanent. * src/libguppiuseful/guppi-guile.c (scm2stringv): Copy our string, so that it can be deallocated with guppi_free. * src/libguppiuseful/guppi-exit.c (final_phase_shutdown): Added a call of scheme's GC right before exiting. This helps make sure that the maximum amount of stuff is deallocated, for memory-tracing purposes. * src/libguppiuseful/ggraph.c (g_graph_free): Added. * src/libguppiuseful/guppi-memory.h: Changed macro definitions to make them #ifdef-able. Added guppi_realloc and guppi_renew. 2000-12-14 Jon Trowbridge * throughout: Changed standard glib memory alloc and free calls (i.e. g_malloc, g_new, g_strdup, etc.) to the guppi memory-tracing versions (guppi_malloc, guppi_new, guppi_strdup, etc.). * src/libguppiuseful/guppi-memory.h: * src/libguppiuseful/guppi-memory.c: Added. Macros and functions that trace memory usage and helping to find memory leaks. 2000-12-12 Jon Trowbridge * build-tools/gen-scm.pl (define_new_smob_type): Fixed a huge memory leak in the guile bindings; we need to sink objects that we store in a smob to keep them from being leaked. * Changed all gtk_object_ref and gtk_object_unref calls into guppi_ref and guppi_unrefs. * src/libguppiplot/guppi-layout.c (guppi_layout_connect_geometry): Got rid of old abusive-geometry-hack-using code, call guppi_geometry_connect_to_layout instead. * src/libguppiplot/guppi-geometry.c (guppi_geometry_connect_to_layout): Added. The abusive hack has been removed; now GuppiGeometry is fully opaque. Also, added code to watch for an attach layout's demise... we do this to avoid circular reference problems. (guppi_geometry_disconnect_from_layout): Modified for opaqueness. * src/guppi/guppi.c (main): Add a --refcount-debug command line arg, which activates the new refcount debugging options defined in guppi-convenient.c. * src/libguppiuseful/guppi-convenient.c: Added refcount debugging. Make guppi_ref, guppi_unref and guppi_sink into macros that carry extra information for logging purposes. Defined guppi_ref_fn, guppi_unref_fn and guppi_sink_fn for when we really need a function (like for passing as a function pointer). * src/libguppiuseful/gnan.c: s/neg/signbit/. (gnan_init): Added test that sizeof (double) == 8 before we engage in any union trickery. * src/libguppiuseful/guppi-useful.c (guppi_useful_init_without_guile): Call gnan_init (). * plug-ins/data_impl/date_series/core.c: Changed to use gnan.h rather than other hacks. * src/libguppiuseful/gnan.c: Added. An attempt to define NAN in a portable way. 2000-12-11 Jon Trowbridge * plug-ins/data_impl/curve/poly.c: Added. An optimized implementation of polynomial functions. Certain algorithms are currently only fully implemented for low-degree polynomials; this needs to be remedied. * src/libguppidataui/guppi-data-tree-view.c (build_data_popup): Vastly simplified -- now just calls guppi_data_build_menu. Lots of other cruft has been removed, or has been moved into GuppiData (where it belongs). * src/libguppidata/guppi-seq-scalar.c (info_display): Add a simple info display that shows various descriptive statistics. * src/libguppidata/guppi-data.c (guppi_data_build_menu): Added. Construct a menu with options appropriate for that data type; this is used by the popup in the GuppiDataTreeView. (build_menu): Added. A nice set of default operations appropriate for all data types. (guppi_data_info_display): Added. Construct an appropriate info display. * src/libguppidata/guppi-data.h: Added build_menu and info_display to GuppiDataClass struct. * src/libguppidata/guppi-data-impl.h: Added build_menu and info_display to GuppiDataImplClass struct. 2000-12-11 Morten Welinder * doc/developer-docs/guppi-api/Makefile.am (TARGET_DIR): Delete extraneous "=". * plug-ins/data_impl/date_series/core.c (guppi_date_series_core_impl_class_init): Provide a reasonable portable NAN and g_assert that it really is isnan(). * src/libguppimath/guppi-equation-parser.y (yyerror): Prototype. 2000-12-09 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-tools.c (guppi_scatter_toolkit_default): Fixed default toolkit's name. * plug-ins/plot/pricebars/guppi-pricebars-tools.c: Added. Defines a default pricebars toolkit. * plug-ins/plot/pricebars/guppi-pricebars-item.c (guppi_pricebars_item_class_init): Added a default pricebars toolkit. * plug-ins/plot/xybox/guppi-xybox-view.c (pref_x_range, pref_y_range): Added preferred range calculations. * plug-ins/plot/pricebars/guppi-pricebars-view.c (fix_y_bounds): Added assert to keep us from calling obsolete pricebar-specific enforced view code. (preferred_y_range): Added more paranoid error checking. (guppi_pricebars_view_init): Deactivated obsolete enforced view option. * plug-ins/plot/pricebars/guppi-pricebars-state.c: Added support for GtkObject args. * plug-ins/plot/axis/guppi-axis-view.c (changed): Recalc natural size on view changes. * plug-ins/import/import-delimited/init.c: Removed unused our_widget () function. * plug-ins/import/net-hist-quotes/guppi-net-hist-quotes.c (import): Only re-write price data to cache if we actually managed to import new data. Try to respond more gracefully to being unable to connect to the server. * plug-ins/import/net-hist-quotes/net-common.c (good_read): Handle events mid-read to keep GUI from freezing. (good_write): Handle events mid-write to keep GUI from freezing. * src/guppi/scatter-demo.scm: Hide the annoying line connecting the scatter markers. * src/guppi/pbars.scm (show-stock-chart): Use our new generic force-preferred-y-view method, rather than the hacked-up pricebars-only version. 2000-12-08 Jon Trowbridge * src/libguppiplot/guppi-axis-markers.c (populate_dates_monthly): Removed excess whitespace from strftime string. (populate_dates_quarterly): Fixed strftime string. (populate_dates_yearly): Fixed strftime string. (guppi_axis_markers_populate_generic): Added more checking of the inputs in the case of a GUPPI_AXIS_DATE. Don't do anything if the two given bounds aren't both proper julian dates. * src/libguppidata/guppi-data-importer.c (guppi_data_importer_newv): Added. (guppi_data_importer_new): Added a mechanism to pass in a list of args with the constructor. * src/libguppiuseful/guppi-context-xml.c (gtk_iter_hack): A small internal function to periodically handle pending gtk events. We don't want to the GUI to freeze when processing large XML files. (guppi_context_xml_process_characters): Call gtk_iter_hack (). (guppi_context_xml_process_begin_element): Call gtk_iter_hack (). * src/libguppiuseful/guppi-guile.c (guppi_guile_init): Changed a g_warning into a g_print. I hate anything that messes with my --g-fatal-warnings. 2000-12-04 Michael Meeks * src/libguppibonobo/guppi-bonobo.c (guppi_bonobo_canned_demo_init):, (guppi_bonobo_factory): update to GenericFactory. 2000-12-02 Jon Trowbridge * plug-ins/plot/boxplot/guppi-boxplot-item.c (guppi_boxplot_item_class_init): Set uses_vp_coordinates to TRUE. * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_class_init): Set uses_vp_coordinates to TRUE, so the stock tools will (once again) work properly with axes * plug-ins/plot/pricebars/guppi-pricebars-item.c (render): Immediately bail out of any rendering on an empty GuppiPriceSeries. * plug-ins/plot/pricebars/guppi-pricebars-view.c (preferred_x_range): Don't express a range preference if our series is empty. It causes bad things to happen. (preferred_y_range): Ditto. * plug-ins/plot/linegraph/guppi-linegraph-item.c (update_date_series): Do the right thing (i.e. nothing) if our GuppiDateSeries is empty. (update): Check that item->path is non-NULL before calling guppi_canvas_item_vpath_vp2c (). * plug-ins/data_impl/date_series/calc-extra.c (movavg_bounds): More gracefully handle the case of an empty movavg->ser. * plug-ins/import/net-hist-quotes/guppi-net-hist-quotes.c (import): Added better error handling, so that things will proceed (relatively) smoothly when trying to import when not connected to the net. * src/libguppidata/guppi-price-series.c (guppi_price_series_get_range): I'd forgotten to return a value properly here. Thank goodness for compiler warnings. * src/libguppidata/guppi-date-indexed.c (guppi_date_indexed_empty): Added. This is the kind of convenience function that I love. (guppi_date_indexed_nonempty): Added. (guppi_date_indexed_size): Immediately return zero on guppi_date_indexed_empty (). 2000-11-30 Jon Trowbridge * src/guppi/guppi-app.c (guppi_app_setup_menus): Added menu item for price bars demo. * build-tools/generate.py (header_template): A hack: Python typedefs "destructor", which is used as an arg name in some of the guile 1.4 headers. To work around this, we re-order some includes to make sure that the guile headers get processed first. * src/libguppiuseful/Makefile.am (CLEANFILES): Add auto-genererated code to cleanfiles. * src/libguppiuseful/guppi-plug-in-spec.c (process_spec_exported_symbols): Remove unused variable decl, silencing warning. * src/libguppiuseful/guppi-dialogs.c: Fix includes to silence warnings. * src/libguppiuseful/guppi-debug.c: Fix includes to silence warnings. * plug-ins: Changed a bunch of the .plugins files to use ExportedSymbol declarations, rather than SchemePreload, to export symbols to guile before the plug-in has actually loaded. * src/libguppitank/guppi-object.c (guppi_object_build_widget): As an experiment, changed resize semantics of GuppiObject root items to ROOT_GROUP_RESIZE_FILL_SPACE. * src/libguppitank/guppi-object-scatter.c (build): Added guppi_element_view_set_[xy]_axis_marker_type () calls, fixing a bug reported by Bill Gribble. * src/libguppitank/guppi-object-pie.c (item_init): Removed some debug spew. * src/libguppidata/guppi-curve-impl.h: Added approx_to_path hook for PL-approximations. * src/libguppidata/guppi-curve.c (guppi_curve_approximate_to_path): Added a method for implementation-driven piecewise linear approximations with bounded error. Not really implemented now. * src/libguppiuseful/guppi-plug-in-spec.c (parse_spec_file): Added handling for ExportedSymbol entries in .plugin files. (process_spec_exported_symbols): If we have guile, define any exported symbols to be guile-autoloaders. * src/libguppiuseful/guppi-guile.c (guppi_scm_define_autoloaded_symbol): Added. Associates a function name with a plug-in, and forces that plug-in to be loaded before calling the function the first time. * src/libguppiuseful/guppi-guile-boot.scm: Commented out broken guppi-autoload macro. 2000-11-27 Michael Meeks * configure.in: remove guppi-gnumeric.oafinfo handling * src/libguppibonobo/guppi-bonobo.c (guppi_bonobo_canned_demo_init): upd. * src/guppi-gnumeric/guppi-gnumeric.c (guppi_chart_selector_factory_init): upd. * src/guppi-gnumeric/Makefile.am (oaf_DATA): upd. * src/libguppibonobo/Makefile.am: upd. * src/libguppibonobo/GNOME_Guppi.oafinfo: upd. * src/guppi-gnumeric/GNOME_Gnumeric_Graph.oafinfo: upd. 2000-11-26 Jon Trowbridge * plug-ins/plot/pricebars/guppi-pricebars-item.c (render): Changed to use timecodes, and is thus not quite as fragile as the old code. Still sort of fragile, though. * plug-ins/plot/linegraph/guppi-linegraph-item.c (update): Revised to examine the type of the associated data, and to generate an ArtVpath in a way that take that information into account. We now support linegraph-drawing for a pair of GuppiSeqScalars (which is what we've always handled) as well as GuppiDateSeries and GuppiCurves. The switch-on-type logic is a bit unaesthetic, but it does produce a very nice "do-what-I-mean" effect. * plug-ins/plot/linegraph/guppi-linegraph-view.c: Removed destroy function. * plug-ins/plot/linegraph/guppi-linegraph-state.c (guppi_linegraph_state_init): Added a shared data object bound to SHARED_DATA tag. (guppi_linegraph_state_data): Added. (guppi_linegraph_state_set_data): Added. * plug-ins/data_impl/price_series/guppi-price-series-core-impl.c (v_ps_get_range): Fixed to support timecoding. * plug-ins/data_impl/date_series/core.c (v_ds_get_range): Fixed to support timecoding. * plug-ins/data_impl/date_series/calc.c: Added some preliminary code for cacheing. * plug-ins/data_impl/curve/calc.c (v_curve_clamp): Implemented a simple bbox-clamping heuristic for when the curve is a function. * src/libguppiplot/guppi-basic-tools.c (reframe_cb): Fixed a long-standing bug in the reframe tool, which caused reframing to not work properly when doing a "frame-by-center" operation. * src/libguppidata/guppi-price-series-impl.h: Changed the signature of the get_range hook to use timecodes. * src/libguppidata/guppi-price-series.c: Removed a lot of that PRICE_JULIAN nonsense. The (much more sensible) timecoded-approach makes all of that obsolete. (guppi_price_series_get_range_timecoded): Added a timecoded version of the get_range function. (guppi_price_series_get_range): Reduced to a special case of the timecoded version of this function. * src/libguppidata/guppi-date-series-impl.h: Changed signature of get_range hook to handle the timecoded case by default. * src/libguppidata/guppi-date-series.c (guppi_date_series_get_range_timecoded): Added. Stuff julian dates and values for a date range into two buffers. (guppi_date_series_get_range): Reduced to a special case of guppi_date_series_get_range_timecoded. * src/libguppidata/guppi-curve-impl.h: Add clamp, a virtual function hook for guppi_curve_clamp_to_bbox, to our GuppiCurveImpl struct. * src/libguppidata/guppi-curve.c (guppi_curve_clamp_to_bbox): Added. Code to select a subinterval of a parameter interval eliminating regions that lay outside of the bounding box. In general, this is tricky to do. * src/libguppiuseful/guppi-rgb.c (guppi_paint_wide_line_alt): Added -- an experimental bit of code for non-AA wide lines. Not totally satisfactory. * src/libguppiuseful/guppi-fn-wrapper.c (guppi_fn_wrapper_eval_d__d_bulk): Added. 2000-11-22 Jon Trowbridge * plug-ins/data_impl/date_series: Added two initial DateSeries implementations -- a "core" implementation which is just a wrapped array of doubles, and a "calc" implementation that channels API calls into provided callbacks. * plug-ins/plot/text/guppi-text-state.c: Implemented write_xml_attributes (), prepare_xml_attributes () and init_xml_object (), as a test case for XML read/write of GuppiElementState derivatives. * src/libguppiplot/guppi-plot.defs: Added bindings for the various spew_xml functions, for testing/debugging purposes. * src/libguppiplot/guppi-canvas-item.h: * src/libguppiplot/guppi-canvas-item.c: Added XML read/write infrastructure. * src/libguppiplot/guppi-element-view.h: * src/libguppiplot/guppi-element-view.c: Added XML read/write infrastructure. * src/libguppiplot/guppi-element-state.h: * src/libguppiplot/guppi-element-state.c: Added infrastructure for reading/writing an XML description of an element's state. * src/libguppidata/guppi-data-init.c (guppi_data_init): Add initializing call to guppi_date_series_get_type (). * src/libguppidata/guppi-seq-point-impl.h: Added get_many slot to vtable. * src/libguppidata/guppi-seq-point.c (guppi_seq_point_get_many): Added. * src/libguppidata/guppi-date-series-impl.h: Back-end * src/libguppidata/guppi-date-series-impl.c: Back-end implementation base type for GuppiDateSeries. * src/libguppidata/guppi-date-series.h: * src/libguppidata/guppi-date-series.c: A front-end for a date-indexed scalar time series. * src/libguppiuseful/guppi-unique-id.h: * src/libguppiuseful/guppi-unique-id.c: Added. Code for generating and otherwise dealing with 64-bit unique IDs. We are going to use these uids to tag data objects, plot element objects, etc. * src/libguppiuseful/guppi-attributes-xml.c (guppi_attributes_xml_declare_uint32): Added a uint32 type for attributes. (guppi_attributes_xml_get_uint32): Added. (guppi_attributes_xml_set_uint32): Added. (guppi_attributes_xml_declare_boolean): Added a boolean type for attributes. (guppi_attributes_xml_get_boolean): Added. (guppi_attributes_xml_set_boolean): Added. (ac_chars_value): Added conversion routines for uint32 and boolean types. * src/libguppiuseful/guppi-output-xml.c (guppi_output_xml_attribute_start): Added. These four are convenience function for outputting "extended attributes" into XML. (guppi_output_xml_attribute_end): Added. (guppi_output_xml_attribute): Added. (guppi_output_xml_attributef): Added. 2000-11-18 Jon Trowbridge * plug-ins/data_impl/struct/guppi-struct-core-impl.c (v_struct_foreach): Hacked foreach to iterate over elements in the order that they were added, rather than in a random order. This is nice because, among other things, it insures that when you write out an object to XML and the re-read it, all of the subdata is in the same order as before. * src/libguppidata/guppi-data-init.c (guppi_data_init): Added call to guppi_struct_get_type () to our initialization routine. * src/libguppidata/guppi-struct.c: Added XML input and output functions. * src/libguppidata/guppi-seq-string.c: Added XML input and output functions. 2000-11-17 Jon Trowbridge * src/libguppitank/guppi-object.c (guppi_object_new): Moved sections of the code into static functions typename2object () and object_build (). (guppi_object_newv): Added at the request of our friends at Gnumatic. * plug-ins/data_impl/struct/guppi-struct-core-impl.c: Added implementation of guppi_struct_foreach_subdata vfunction. * src/libguppidata/guppi-struct-impl.c: Added a default implementation of the guppi_data_foreach_subdata virtual function, implemented in terms of the guppi_struct_foreach_subdata definition. * src/libguppidata/guppi-struct.c: Hacked to use the new subdata functions. This cleans things up somewhat. (guppi_struct_foreach_subdata): Added, to replace the annoying old function that returned a GList. * src/libguppidata/guppi-data-tree.c (guppi_data_tree_node_handle_subdata): Hacked to use new subdata functions. * src/libguppidata/guppi-data-impl.h: Added the foreach_subdata function to the GuppiData vtable. Added a CHANGED_SUBDATA signal. * src/libguppidata/guppi-data.c: Fixed up the subdata API, removing the broken concepts of "local" and "global" subdata and shifting subdata to be purely implementation-dependent. Also, added more agressive type-checking of arguments. Connected to listen for implementation's CHANGED_SUBDATA signal. 2000-11-16 Jon Trowbridge * plug-ins/plot/pricebars: A rough draft of a plug-in for plotting price bars. * plug-ins/import/net-hist-quotes/via-yahoo.c (via_yahoo): Check validity of date before spewing out the "incomplete record" message. * plug-ins/import/native-XML/init.c (guppi_plug_in): Set import files flag. * plug-ins/import/import-delimited/init.c (guppi_plug_in): Set import files flag. * plug-ins/plot/scatter/guppi-scatter-view.c (guppi_scatter_view_class_init): Remove cruft from old axis scheme. * plug-ins/plot/barchart/guppi-barchart-view.c (guppi_barchart_view_init): Initialize bar chart axes properly. (update_markers): Handle NULL state properly. (update_x_axis_markers): Handle NULL state properly. (update_y_axis_markers): Handle NULL state properly. Calls to these functions w/ NULL state can occur when calling our axis initialization functions in guppi_barchart_view_init () during construction, before a corresponding GuppiElementState object has been assigned. * src/libguppiplot/guppi-view-interval.c (guppi_view_interval_set): Changed to sort our inputs with guppi_2sort (). What good are convenience functions if you don't use them? * src/libguppiplot/guppi-element-view.c: Fairly major brain surgery. Previously, axis markers were tied to specific plot types in a fairly awkward and inflexible way. Now, we can specify x- and y-markers for any plot type in a way that gives us finer control. These changes also simplify things somewhat, which is always a good sign that we are on the right track. (guppi_element_view_x_axis_marker_type): Added. (guppi_element_view_y_axis_marker_type): Added. (do_x_markers): Modified to call guppi_axis_markers_populate_generic () based on value of x_axis_marker_type. (do_y_markers): Same as previously, but for the y-axis. (x_vi_changed): Call do_x_markers based on value of x_axis_marker_type. (y_vi_changed): Ditto, for y. (guppi_element_view_init): Initialize our marker types to GUPPI_AXIS_NONE. Removed initialization code related to the old way of doing things. (view_state_change_cb): Handle marker updates by type. * src/libguppiplot/guppi-canvas-item.c (guppi_canvas_item_x_vp2c_d_bulk): Added. A single-variable "plural" coordinate transformer. (guppi_canvas_item_y_vp2c_d_bulk): Added, same as previous. * src/libguppiplot/guppi-axis-markers.h: Added a new axis marker type enum. * src/libguppiplot/guppi-axis-markers.c (guppi_axis_markers_populate_scalar): Switched args to take a simple "percentage" flag rather than a more general (and unused) type flag. (guppi_axis_markers_populate_dates): Added. (guppi_axis_markers_populate_generic): Added. A generic front-end for all of the different axis marker population routines. * src/libguppidata/guppi-data-importer-plug-in.c (assess_iter): Check and see if our plug-in is tagged as importing files. If not, ignore it. (This is a hack to get around the fact that we haven't fully integrated things like the NetHistQuote importer yet... we don't want it ever popping up as an option when selecting an import method for a file.) * src/libguppidata/guppi-price-series-impl.h: Added the get_bounds hook to GuppiPriceSeriesImpl. * src/libguppidata/guppi-price-series.c (guppi_price_series_get_range): Clamp our date inputs. (guppi_price_series_get_bounds): Added. Find the min/max of a series quantity between two dates. * src/libguppidata/guppi-date-indexed.c (guppi_date_indexed_clamp): Added. * src/libguppiuseful/guppi-convenient.c (guppi_2sort_dt): Added. We like to sort pairs of dates, too. * src/libguppiuseful/guppi-convenient.h: Added g_date_clamp macro. * src/libguppiuseful/guppi-rgb.c (guppi_paint_horiz): Sort the x-args with guppi_2sort_i (). (guppi_paint_vert): Sort the y-args with guppi_2sort_i (). 2000-11-15 Michael Meeks * src/libguppibonobo/guppi.oafinfo: rename to ObjectFactory 2000-11-14 Jon Trowbridge * plug-ins/import/net-hist-quotes: Added. A simple quick&dirty importer for pulling historical price data down from Yahoo!. Not well integrated with the rest of Guppi yet --- some changes in the way GuppiDataImporters work will be required for that. * src/libguppidata/guppi-data.c (guppi_data_read_xml_file): Silently return NULL if your parsing failed. * src/libguppiuseful/guppi-output-xml.c (guppi_output_xml_open_fd): Hacked up default support for compressed XML output. (guppi_output_xml_close): Fixed to handle compressed files. (guppi_output_xml_print): Write out to compressed files. * src/libguppiuseful/guppi-convenient.h (g_date_min): Added a number of GDate convenience functions. 2000-11-13 Jon Trowbridge * src/libguppidata/guppi-data.c (guppi_data_new): Changed connect to connect_after, to preserve proper changed sematics. (guppi_data_newv): Ditto. * src/libguppidata/guppi-seq-data.c (op_set): Changed signal connection to "after", to properly work with other data objects. (op_insert): Changed signal connection to "after", for same reason. 2000-11-12 Jon Trowbridge * src/libguppibonobo/guppi-bonobo-view.c (guppi_bonobo_view_factory): Remove obsolete "size_alloc" callback setting the optimal view; replace it by setting the FILL_SPACE semantics. This is a reasonable default, though we might later want to add some way of changing this. * src/libguppiplot/guppi-root-group-item.c (canv_size_allocate): Implement the FILL_SPACE semantics, adjusting the size of our item's view when we resize. Doing this will clearly cause problem if we ever have two items with the same view: they will fight over the objects size whenever eitherone is resized... (set_scale): When in FILL_SPACE mode, we have to also readjust our size every time we change our scale. * src/libguppiplot/guppi-root-group-item.h: Add new item to resize-semantics enum: ROOT_GROUP_RESIZE_FILL_SPACE. A nicer way of doing things in bonobo components. * src/libguppiplot/guppi-element-view.c (guppi_element_view_init): Monitor geometry changes and convert them to view changes. I can't believe I forgot to do this, and I also can't believe it took this long before not doing this cropped up and caused problems... 2000-11-11 Jon Trowbridge * src/guppi/file-open.c: Retooled somewhat to take advantage of GuppiDataImporter API improvements. * plug-ins/import/import-delimited/guppi-delimited-importer.c (guppi_delimited_importer_import): Changed to conform to new, cleaner API. * plug-ins/import/import-delimited/init.c (guppi_plug_in): Remove references to state_edit_widget field. * src/libguppidata/guppi-data-importer-plug-in.h: Moved the state_editor_widget field from GuppiDataImporterPlugInClass to GuppiDataImporterClass. * src/libguppidata/guppi-data-importer.c (guppi_data_importer_import): Cleaned up the interface, using iterator functions rather than returning a hacky vector-list. (guppi_data_importer_import_interactive): Added. Pops up a window for editting the importer state before performing the actual import. * plug-ins/plot/XLplots/guppi-pie-register.c (guppi_piechart_factory): s/"data_scalar"/"data"/. * src/libguppibonobo/guppi-bonobo-canned-demo.c (guppi_bonobo_canned_demo): s/"data_scalar"/"data"/. * src/libguppitank/guppi-object-pie.c (build): Fix the guppi_element_state_new ("pie"...) arg to be "data", not "data_scalar". * plug-ins/plot/pie/guppi-pie-item.c (update): Properly handle pie charts without any labels at all. * src/libguppidata/guppi-seq-categorical.c (prepare_xml_attributes): Added. Define the category attribute, and provide a custom handler to read in a data object. (create_xml_object): Build our GuppiSeqCategorical. (init_xml_object): Take the GuppiCategory defined as the "category" attribute value and attach it to our GuppiSeqCategorical. * src/libguppidata/guppi-seq-integer.c (begin_element): Fixed moronic typo. * src/libguppidata/guppi-category.c (content_xml_context): Added XML importing. * src/libguppidata/guppi-data.c (guppi_data_read_xml_context): Instead of having the context stuff the a pointer to the imported GuppiData in a provided GuppiData**, we pass in a callback that is function called with the newly-imported data. This is more flexible. (guppi_data_read_xml_file): Changed to reflect the new callback-arg approach to guppi_data_read_xml_file. (guppi_data_identify_xml_file): The whole "magic comment" approach was just evil... so now I just look for certain telling fragments of XML tags in the text. * src/libguppiuseful/guppi-attributes-xml.c (guppi_attributes_xml_set_special_import_context): Added. Lets you define a custom context for importing a value. This allows you to have Attribute values other than just ints, doubles, etc... very useful. (guppi_attributes_xml_declare_pointer): Added. (guppi_attributes_xml_get_pointer): Added. (guppi_attributes_xml_set_pointer): Added. (guppi_attributes_xml_set_pointer_free): Added. (guppi_attributes_xml_set_pointer_unref): Added. (guppi_attributes_xml_set_pointer_destroy_fn): Added. (g_hash_free): Call attritem_clear_data () to dealloc stuff in the union, rather than having that nasty code dup here. (attritem_clear_data): Added support for calling the destroy_fn for pointer items. (ac_begin_element): Hacked to return our custom import context, when present. * src/libguppiuseful/guppi-context-xml.c (guppi_context_xml_set_user_data): Fixed assertions that check if more than one destruction method flag is set. (push_context): Sink our context pointers, fixing some ref-counting problems. 2000-11-10 Jon Trowbridge * src/libguppidata/guppi-price-series.c (create_xml_object): Added. (content_xml_context): Build up an XML parser for Price Series objects. * src/libguppidata/guppi-date-indexed.c (guppi_date_indexed_class_init): Forgot to set the prepare_xml_attributes variable in the GuppiDataClass. Duh! * src/libguppidata/guppi-data-init.c (guppi_data_init): Call the type initializers for our various data types. 2000-11-09 Jon Trowbridge * plug-ins/import/import-delimited/delim-import-widget.c (stream_preview_extra_info_cb): Cast an arg of isalpha to a guchar. * src/libguppiplot/guppi-marker.c (loose_match): Cast some args to isfoo() to guchar. * plug-ins/import/import-delimited/guppi-delimited-importer.c: Cast some gchar to guchar in isspace() and friends. Most platforms don't care about this, but perrenial oddball HP/UX does. Thanks to Morten Welinder for pointing this out to me. * src/libguppidata/guppi-seq.c (guppi_seq_class_init): Fix the signal info for changed_shift_indices. It was only luck that this hadn't caused any segfaults yet. (op_shift): Fixed a mind-numbingly stupid typo that had been causing segfaults galore. * src/libguppidata/guppi-date-indexed.c (prepare_xml_attributes): Declare the size, start_date and end_date attributes. * src/libguppidata/guppi-seq-integer.c (content_xml_context): Build a content XML context for integer sequences. * src/libguppidata/guppi-seq-boolean.c (content_xml_context): Build a context for parsing the Content section of a boolean sequence's XML doc. * src/libguppidata/guppi-seq-scalar.c (content_xml_context): Build a context for parsing the Content section of a scalar sequence's XML doc. * src/libguppidata/guppi-seq.c (prepare_xml_attributes): Make sure all GuppiSeq derivatives know about the min_index and max_index Attibutes. (init_xml_object): Set the min index and offer a size hint for any seq objects we construct from an XML document. * src/libguppidata/guppi-data.c (prepare_xml_attributes): Added. Define the default attributes that every data object has, a label and an implementation name. (content_xml_context): Added. We make the default content context the debugging context. (guppi_data_class_init): Set our hooks in GuppiDataClass. (guppi_data_write_xml): Spew out an identifying XML comment at the top of the XML document --- there must be a more XMLishly-correct way of handling this. Put the type name (as a gtk_type_name) in the Data tag's attributes, and move the impl_name down to the Attributes section. (guppi_data_read_xml_context): Build and return our basic data-importing XML context. (guppi_data_read_xml_file): A convenience function that builds an XML context and then uses it to slurp data out of a file. (guppi_data_identify_xml_file): Look at a file and decide it if is really a Guppi XML data file. The way I do this right now is sort of hacky. * src/libguppidata/guppi-data.h: Add four virtual function hooks to the GuppiDataClass structure: prepare_xml_attributes, create_xml_object, init_xml_object, content_xml_context. * src/libguppiuseful/guppi-context-xml.h: * src/libguppiuseful/guppi-context-xml.c: Added. This is basically a wrapper around gnome-xml's SAX routines, with a twist. A GuppiContextXML is a data structure that contains callbacks for various XML situations: begin element, end element, etc. just like SAX. However, "context switches" (to misuse the term) can occur: things can be set up so that hitting a certain begin-element causes the body of that element to be processed by a different context. This lets us do nice things with nested parsers & modularity: for example, there is a common "header" for the XML data type, and then each different data type has their own XML context for parsing the "content" section of the document. This approach can be a bit clunky at times: you end up defining lots of callback functions everywhere, and building lots of little structs for carrying around user data. And the API still probably needs some fine-tuning. But beyond these things, I'm finding this approach to actually work pretty well. YMMV, of course. * src/libguppiuseful/guppi-attributes-xml.h: * src/libguppiuseful/guppi-attributes-xml.c: Added. A symbol table- type construction for use in the Guppi XML file format. * src/libguppiplot/guppi-plot-window.c (new_view_cb): Changed to use guppi_warning_dialog. * src/libguppiuseful/guppi-useful.h: Added an #include * src/libguppiuseful/guppi-paths.c (gnome_guile_repl_path): Changed to use guppi_error_dialog. * src/libguppiuseful/guppi-debug.c (_guppi_unimplemented_function_dialog): Changed to use guppi_warning_dialog. * src/libguppiuseful/guppi-dialogs.c: Added. Provides guppi_ok_dialog, guppi_warning_dialog and guppi_error_dialog functions, which just behave like gnome_*_dialog except that they automatically show the dialog widgets, return void, and allow for printf-style format strings and varargs. 2000-10-31 Zbigniew Chyla * configure.in: Added pl to ALL_LINGUAS. 2000-10-28 Jon Trowbridge * plug-ins/data_impl/price_series/guppi-price-series-core-impl.c: Added. A simple implementation for price series, w/o much optimization. * plug-ins/data_impl/seq_boolean/guppi-seq-boolean-core-impl.c: Added some code to support missing values. That stuff is still fairly incomplete, though. * src/libguppiplot/guppi-2d.c (guppi_2d_make_path): Fixed typo in type-cast which was causing compiler warnings. * src/libguppidata/guppi-price-series.h: * src/libguppidata/guppi-price-series.c: Added. A data type for daily open/high/low/close-type time series for financial instruments. * src/libguppidata/guppi-date-indexed.h: * src/libguppidata/guppi-date-indexed.c: Added. A base class for date-indexed data. This is sort of a time-series equivalent to GuppiSeq. * src/libguppidata/guppi-seq-categorical.c (write_xml_attributes): Added xml output. * src/libguppidata/guppi-seq-integer.c (write_xml_element): Added xml output. * src/libguppidata/guppi-category.c (write_xml_content): Added xml output. * src/libguppidata/guppi-seq-boolean.c (write_xml_element): Added xml output. * src/libguppidata/guppi-seq-scalar.c (write_xml_element): Added xml output. * src/libguppidata/guppi-seq.c (write_xml_attributes): Added default xml attribute handing. (write_xml_content): Added default xml content handling. * src/libguppidata/guppi-data.c (guppi_data_write_xml): Added. * src/libguppiuseful/guppi-output-xml.c Tweaked some indentation and spacing. (guppi_output_xml_elementf): Added. (guppi_output_xml_end_tag_check): Added. Instead an end tag, with error checking. (guppi_output_xml_open_file): Added simplistic implementation. (guppi_output_xml_open_fd): Added a simplistic implementation. (guppi_output_xml_close): Added a simp... well, I think you can guess. 2000-10-27 Jon Trowbridge * src/guppi/plug-ins.c: Hacked to mark which plug-ins have actually been loaded. Does not dynamically update, which is a bug. * plug-ins/plot/linegraph/guppi-linegraph-item.c (update): Use guppi_2d_make_path and our optimization guppi_canvas_item_vpath_vp2c bulk coordinate-transformer. This makes thing nicer and simpler. * src/libguppiuseful/guppi-rgb.c (guppi_paint_wide_curve): Added. This doesn't paint a curve --- just a bunch of connected line segments -- and it isn't wide, it is just a 1-pixel thick non-AA line. But this is here as a placeholder until I get my rasterization algorithms sorted out. * src/libguppiplot/guppi-2d.c (guppi_2d_make_path): Added. 2000-10-22 Jon Trowbridge * plug-ins/*/*/Makefile.am: Change all of our plug-in dirs to form a directory hierarchy that mirrors our plug-in "name space" when installing. (So now the plot plug-in foo gets installed in PREFIX/lib/guppi/VERSION/plot/foo. Previously it was put in PREFIX/lib/guppi/VERSION/foo.) * plug-ins/plot/legend/guppi-legend-print.c: Use our new accessors. * plug-ins/plot/legend/guppi-legend-item.c: Use our new accessors. * plug-ins/plot/legend/guppi-legend-state.h: * plug-ins/plot/legend/guppi-legend-state.c: Add new accessors for all data access to pass through; this allows us to support different data sources for the legend. * plug-ins/plot/pie/guppi-pie.defs: Fix types in binding specs. * plug-ins/plot/pie/guppi-pie-print.c: Use new accessors in GuppiPieState for data access. * plug-ins/plot/pie/guppi-pie-item.c: Use new accessors in GuppiPieState for data access. * plug-ins/plot/pie/guppi-pie-state.h: * plug-ins/plot/pie/guppi-pie-state.c: Make all data access pass through accessor functions, so that pie can support many different data sources. In doing this, the assumption that our data comes from a GuppiSeqScalar has been removed. (guppi_pie_state_slice_bounds): Added. (guppi_pie_state_slice_percentage): Added. (guppi_pie_state_need_separate_label_data): Added. * plug-ins/data_impl/curve/calc-pre.scm: Add autoload magic. * plug-ins/data_impl/curve/func-pre.scm: Add autoload magic. * plug-ins/data_impl/curve/func.c: Implement transformed curves. * plug-ins/data_impl/curve/func.plugin: Added PreloadedScheme. * plug-ins/data_impl/curve/calc.plugin: Added. * plug-ins/data_impl/curve/calc.h: * plug-ins/data_impl/curve/calc.c: Added. Actually, this is just func.[ch] renamed, to be consistent with our naming scheme in seq_scalar. * plug-ins/data_impl/curve/calc.defs: Fix bindings info. * plug-ins/data_impl/curve/func.defs: Fix bindings info. * plug-ins/data_impl/seq_scalar/calc.defs: Define bindings. * plug-ins/data_impl/seq_scalar/func.c: Removed unneeded destroy function. * plug-ins/data_impl/seq_scalar/calc.plugin: Added PreloadedScheme declaration. * plug-ins/data_impl/seq_scalar/func.plugin: Added PreloadedScheme declaration. * plug-ins/data_impl/seq_scalar/func-pre.scm: Added; autoload hooks. * plug-ins/data_impl/seq_scalar/calc-pre.scm: Added; autoload hooks. * plug-ins/data_impl/seq_scalar/calc.c: Implement purely computed scalar sequences. * plug-ins/data_impl/seq_scalar/calc.h: Properly define GuppiSeqScalarCalcImpl. Previously, this was just a copy of func.c. 2000-10-21 Jon Trowbridge * plug-ins/data_impl/curve/guppi-curve-func-impl.c (guppi_curve_func_impl_class_init): Add implementation name. * src/libguppidata/guppi-curve.c (guppi_curve_sample): Check parameter bounds. (guppi_curve_parameter_bounds): Add assert to check for impl_class->bounds. (guppi_curve_get): Added asserts for bounds and get. (guppi_curve_get_bbox): Add asserts for bounds and get. Clamp endpoints to bounds. (guppi_curve_sample_uniformly): Clamp endpoints to bounds. * src/libguppidata/guppi-curve-impl.h: Label optional & mandatory virtual functions in vtable. * src/libguppidata/guppi-seq-scalar.c: Added sum_abs to GuppiSeqScalarPrivate. (changed): Deal with sum_abs-tracking. (op_set): Update sum_abs on-the-fly. (op_insert): Update sum_abs on-the-fly. (guppi_seq_scalar_sum_abs): Added. * src/libguppiuseful/guppi-guile.c (guppi_guile_init): Locate and run guppi-guile-boot.scm script. * src/libguppiuseful/guppi-paths.c (guppi_find_script): Added development-path-hacks trickery. Quite awful, really. * src/libguppiuseful/guppi-useful.c (guppi_useful_init_without_guile): Added call to guppi_dharma_init (). * src/libguppiuseful/guppi-dharma.c: Added. Let no one suggest that Guppi isn't full of compassion for all sentient beings. 2000-10-20 Ariel Rios * configure.in: Added AC_PROG_LEX and AC_PROG_YACC. This enables compilations on sytems that only has bison / flex available. 2000-10-19 Jon Trowbridge * Everywhere: With much pain and suffering, I've changed my bizarre code indentation practices and I'm trying to conform to the GNU Coding Style as much as I can. For consistency, I've run "indent" on * src/libguppiuseful/guppi-output-xml.h: * src/libguppiuseful/guppi-output-xml.c: Added; an object and lots of convenience routines for writing XML files. 2000-10-18 Jody Goldberg * src/guppi-gnumeric/guppi-chart-selector.c (cb_row_select) : Use the stored first minor type rather than guessing 0,0. (cb_minor_list_init) : Remember the minimum #'d minor type. (guppi_chart_selector_widget) : no need to do the colour map and visual dance. The canvas_new takes care of it. * src/guppi-gnumeric/corba-graph-series.c (impl_vector_notify_remove) : Add stub. (impl_vector_notify_nameChanged) : Ditto. (corba_implementation_classes_init) : Use them. 2000-10-15 Jon Trowbridge * plug-ins/plot/barchart/guppi-barchart-state.c (config_tree): Build a config menu snippet for bar charts. (config_data_cb): Build a GuppiDataMultiselect and put it in place. The signals aren't properly hooked up yet --- this is mostly just for testing right now. * plug-ins/plot/axis/guppi-axis-item.c (render): Fix bug that caused a segfault if the empty string was used as an axis label. * src/guppi/guppi.c (real_main): Call guppi_data_ui_init() at the right time. * src/libguppidataui/guppi-data-ui-init.h: * src/libguppidataui/guppi-data-ui-init.c: Added an init function for libguppidataui. * src/libguppidataui/guppi-data-ui.defs: Added some binding specs for GuppiDataMultiselect. Mostly for testing purposes. * src/libguppistat/guppi-stat-init.h: Fixed broken GUPPI_DECLS macros. * src/libguppiplot/guppi-plot-init.h: Fixed broken GUPPI_DECLS macros. * src/libguppidata/guppi-seq-data.c (guppi_seq_data_class_init): Oops... the correct impl_type is GUPPI_TYPE_SEQ_OBJECT_IMPL, not GUPPI_TYPE_SEQ_OBJECT. * src/libguppidata/guppi-data-init.h: Fixed broken GUPPI_DECLS macros. * src/libguppidataui/guppi-data-select.c: Removed all of the popup construction code, which has been moved to guppi-data-popup.c. (guppi_data_select_construct): Switched to use GuppiDataPopup. * src/libguppidataui/guppi-data-select.h: Remove the tree pointer from the GuppiDataSelect struct. * src/libguppidataui/guppi-data-multiselect.h: * src/libguppidataui/guppi-data-multiselect.c: Added. A widget that lets you select & manipulate a list of N data items. * src/libguppidataui/guppi-data-popup.h: * src/libguppidataui/guppi-data-popup.c: Added. This widget is a button that, when clicked, pops up a menu and allows a data item to be selected. 2000-10-14 Andrew Chatham * build-tools/generate.py (FunctionDefsParser.writePython): Added a topoligical sort for the classes so that the Python shadow classes get printed out in an acceptable order. * build-tools/top.py: Added. A module/class to perform a topological sort. * src/guppi/guppi-app.c (python_terminal_cb): Changed from unimplemented to (python_terminal). Python terminal should now work. * src/guppi/python-term.c: * src/guppi/python-term.h: Added. I basically copied from guile-term.[ch] except that instead of calling a CORBA server I call PyRun_InteractiveLoop, which we already have included for free. As a result I took out the path searching code. Currently exiting the terminal is a bit of a problem, since I haven't figured out how to get zvt_term to pass an EOF character or deal with a call to sys.exit. * src/libguppiuseful/guppi-python.c: * src/libguppiuseful/guppi-python.h: (python_safe_apply): Added. (py_eval_d__i): Added (py_eval_d__i_d): Added (py_eval_d__d_d): Added. (py2fn_d__i): Added (py2fn_d__i_d): Added (py2fn_d__d_d): Added. Note that these are not yet integrated with the code generation, so they're not being used (or, um, tested) yet. 2000-10-12 Jody Goldberg * plug-ins/plot/XLplots/Makefile.am (EXTRA_DIST) : dist xpm, png and .plugin files. * src/libguppimath/guppi-equation.c : include stdio.h, suppress warning * src/guppi-gnumeric/Makefile.am : Make executable conditional. * src/libguppiplot/Makefile.am (libguppiplotinclude_HEADERS) : Add missing file guppi-plot.h 2000-10-12 Jon Trowbridge * plug-ins/import/import-delimited/delim-import-widget.c (build_type_chooser): Add support for categorical & date data types. * plug-ins/import/import-delimited/guppi-delimited-importer.c (guppi_delimited_importer_finalize): Deallocate potential date array. Added date-related info to ColumnInfo struct. (guppi_delimited_importer_guess_types): Added support for potential_date array. Use g_date_set_parse() to check if our columns look like dates. Use our distinct-item count to recognize potential categorical variables. (guppi_delimited_importer_import): Handle date & categorical data. * plug-ins/data_impl/category/guppi-category-core-impl.c: Added a base definition for our category class. * plug-ins/data_impl/seq_date/guppi-seq-date-core-impl.c (v_data_copy): Add a placeholder function. (Asserts if called :/) (v_data_size_in_bytes): Added a size estimate. (guppi_seq_date_core_impl_class_init): Define these two new functions in our vtable. * src/libguppidata/guppi-data.defs: Define binding prototypes for GuppiSeqCategorical and GuppiCategory. * src/libguppidata/guppi-seq-data.c (guppi_seq_data_class_init): Properly set the impl_type for the class. * src/libguppidata/guppi-seq-categorical.h: * src/libguppidata/guppi-seq-categorical.c: Added. Defines sequences of "categorical objects", with an on-the-fly maintained frequency count of each. Built on top of GuppiSeqInteger and with GuppiCategory. * src/libguppidata/guppi-category.h: * src/libguppidata/guppi-category.c: A new data type, basically defines a mapping between strings and integer codes. Used by categorical sequences, and potentially in other places as well. 2000-10-08 Jon Trowbridge * plug-ins/plot/pie/guppi-pie-tool.c (guppi_pie_tool_new_fixed_spin): Added a tool for spinning the pie by a fixed amount on each "click". (guppi_pie_toolkit_default): Bind a fixed spin tool to mouse buttons 4 & 5, so the wheel on a wheel mouse can be used to spin the pie. Also bind them to the left and right arrow keys, so that we can spin the pie from the keyboard. * plug-ins/plot/pie/guppi-pie-state.c (config_tree): Added two config dialogs --- one for setting data values/labels, one for appearance parameters. The latter dialog is very primitive at this point. * plug-ins/plot/frame/guppi-frame-state.c (config_tree): Add placeholder config dialogs. * plug-ins/plot/axis/guppi-axis-view.c (config_tree): Add placeholder config dialogs. * plug-ins/plot/axis/guppi-axis-state.c (config_tree): Add placeholder config dialogs. * src/libguppiuseful/guppi-config-item.c (guppi_config_item_new): Added a fallback widget constructor if NULL is passed in. Check that the name & short name args are not NULL. (guppi_config_item_add_before): Properly handle adding non-singletons. (guppi_config_item_add_after): Handle non-singletons. (guppi_config_item_add_below): Handle non-singletons. I really wasn't thinking ahead when I wrote this code originally. :/ BTW, I think (well actually I know) that this code's ref counting is a bit hosed. 2000-10-07 Jon Trowbridge * src/libguppitank/guppi-object-scatter.c (build): Fix some return values. * src/libguppiuseful/guppi-paths.c (guppi_glade_path): Properly scan $(datadir)/guppi/glade for .glade files. 2000-10-06 Yukihiro Nakai * guppi.desktop: Add Japanese translation. 2000-10-05 Jon Trowbridge * src/libguppitank/guppi-object-scatter.c (build): Fixed some returns w/ no value. * plug-ins/data_impl/seq_scalar/core.c (guppi_seq_scalar_core_impl_finalize): What good are all of our convenience functions/macros if we don't actually use them? * plug-ins/data_impl/seq_date/guppi-seq-date-core-impl.c: Added basic functionality. Date sequences now actually sort of work... but are missing lots of needed bells & whistles. * src/libguppitank/guppi-tank.h: Removed stray END_GUPPI_DECLS call. This is the problem with mass automated changes to source files... * src/libguppitank/guppi-object-pie.c: GroupView-ified. * src/libguppitank/guppi-object-scatter.c: GroupView-ified. * src/libguppitank/guppi-object-barchart.c: GroupView-ified. * src/libguppitank/guppi-tank-init.c (guppi_tank_shutdown): Added. (guppi_tank_exit): Added as a convenience. * src/libguppitank/guppi-object-title.c: Carried the new idea of "container items" to guppi-tank. This is a "framing" title object that can handle all titles for all GuppiObjects, rather than requiring code dup for titles in every single case. * src/libguppitank/guppi-object.c: Modified to use the "new method" of building plots, rather than the old GuppiPlot approach. Changed the "hidden" GuppiPlot into a more general opaque state struct. General fiddling. * src/libguppiplot/Makefile.am (libguppiplot_la_SOURCES): guppi-plot.c and guppi-plot-canvas.c are finally out of the build. Hurray! * src/libguppiplot/guppi-root-group-item.c: Double-click handling broken when we moved from the GuppiPlotCanvas-model to the GuppiRootGroupItem-model. I've fixed it, but had to change a few things to work around slight differences in how the canvas dispatches signals compared to a GtkWidget. (This confused me for a while, since the cut&paste of code from the GuppiPlotCanvas for event handling *almost* worked perfectly, but not quite...) Also, built variable resize-handling semantics directly into the object. This is much nicer than requiring apps to connect to size_allocate themselves. * src/libguppiplot/guppi-plot.defs: Clean out a bunch of old GuppiPlot declarations. * src/libguppiplot/guppi-plot-toolhelp.c (guppi_plot_toolhelp_construct): #if 0/#endif out some unused variables. * src/libguppiplot/guppi-canvas-group.c (double_click): Fix order of arguments in call to guppi_canvas_item_double_click() call. (guppi_canvas_group_find_by_view): Made the find recursively descend into sub-groups. * src/libguppidata/guppi-seq-impl.c (guppi_seq_impl_set_missing): Made more ANSI-ily correct. (guppi_seq_impl_insert_missing): ANSI tweak. (guppi_seq_impl_set_many_missing): ANSI tweak, plus replaced broken usage of guppi_seq_boolean_set_many() by a call to guppi_seq_boolean_set() inside of a loop. * src/libguppidata/guppi-seq-date-impl.h: Removed a number of consts, paralleling the changes to GuppiSeqDate. Added hooks for custom min, max, and lookup functions. * src/libguppidata/guppi-seq-date.c: Deconstified most of the API. (guppi_seq_date_min): Added. (guppi_seq_date_max): Added. (guppi_seq_date_lookup): Added. * src/libguppiuseful/guppi-fn-wrapper.h: Removed a trailing , in an enum definition. Again, -pedantic turns up the damndest things. * src/libguppiuseful/guppi-exit.c (guppi_shutdown): Added. This allows a shutdown to be requested w/o any exit functions being called afterwards. This change is for guppi-tank, which is getting its own shutdown command, but which clearly should leave the actual exitting to the controlling app. * src/libguppiuseful/guppi-enums.h: Moved our enum typedefs after the definition of the enum. They had previously been before (like our convention for struct typedefs), but it turns out that forward declarations of enums is illegal under ANSI C. (The things you can learn from -pedantic...) 2000-09-28 Jody Goldberg * configure.in : Improve the error messages for when searching for the gnumeric idl file. Use gnome-config --moddatadir * src/libguppibonobo/guppi-bonobo.c (guppi_bonobo_canned_demo_init) : Change the name of guppi_bonobo_init to guppi_bonobo_canned_demo_init. * src/guppi/guppi.c (real_main) : Ditto. 2000-09-25 Jody Goldberg * src/guppi-gnumeric/corba-graph-manager.c (graph_manager_destroy) : Add a handler to help figure out when this thing is getting destroyed. * plug-ins/plot/XLplots/guppi-pie-register.c (guppi_piechart_factory) : Use xlplot_stock_legend. * plug-ins/plot/XLplots/guppi-barchart-register.c (guppi_barchart_factory) : Improve the look a bit. * plug-ins/plot/XLplots/guppi-XLplots-common.c (xlplots_stock_legend) : New routine. * plug-ins/plot/barchart/guppi-barchart-state.c (guppi_barchart_state_set_arg) : Implement arguments for cluster_margin and bar_margin. * src/libguppiplot/guppi-root-group-item.c (guppi_root_group_item_init) Init background to NULL; (set_canvas_size) : Make a reference to the background so that it is not released prematurely. 2000-09-24 Jon Trowbridge * plug-ins/plot/XLplots: Converted all of the plot registration functions to use the new approach. BTW, the problem with the scatter item was that it needed a call to guppi_element_view_set_preferred_view() to have it choose the optimal coordinate system --- scatter doesn't do this by default. The view defaults to [0,1]x[0,1], so no points were visible and thus the scatter plot appeared blank. QED. (I've made that same mistake about 10 times already in Guppi's short lifetime...) * src/guppi-gnumeric/guppi-chart-selector.c: A crude hack job to get this widget to use the overhauled plotting stuff. It ain't pretty, but it does seem to work... * src/guppi-gnumeric/test.c (real_main): Call force_development_path_hacks(), so that we search for plug-ins and such under guppi3 --- I hate doing "make install". There should probably be a support group for that as well. * src/libguppiplot/guppi-root-group-item.c (set_canvas_size): Make our background object be in the same canvas group as our root group item, rather than in root. Doing it this was just makes more sense. * src/libguppibonobo: Reworked to get rid of all of that awful GuppiPlot/GuppiPlotCanvas cruft. All untested, of course, since I'm still basically afraid of Bonobo. There should be a support group for people like me. * src/libguppiplot/guppi-chart-type.c: Ported over to the new way of doing things. The changes can be summarized quite simply as: s/GuppiPlot/GuppiRootGroupView/g * src/libguppiplot/guppi-root-group-item.c (post_realization_init): Take all of the stuff that we had been doing in our default handler for realize, and do it in a post_realization_init function. (guppi_root_group_item_class_init): Defined our post_realization_init function. * src/libguppiplot/guppi-element-view.c (guppi_element_view_make_canvas_item): After creating our item, set the ready flag and then (if necessary) call the post_creation_init function. * src/libguppiplot/guppi-canvas-item.h: Added post_creation_init and post_realize_init virtual functions to GuppiCanvasItemClass. * src/libguppiplot/guppi-canvas-item.c (guppi_canvas_item_ready): Added. Check the ready flag. (guppi_canvas_item_set_ready): Added. Set the "item ready" flag. (realize): Upon realization, try to call the post_realization_init function. If the item doesn't have the ready flag set (i.e. if it hasn't been fully constructed yet), set up and idle function and defer calling post_realization_init until later. 2000-09-23 Jon Trowbridge * src/guppi/scatter-demo.scm: Hacked to use the new xybox type. I like it when things get simpler. * plug-ins/plot/xybox: A simple example of a container plug-in. You drop in xy-ish items (like scatter plots, slinregs, etc.) and it automatically sets the layout to fill the available space (via a layout_horizontal_fill()/layout_vertical_fill() combo) and connects up the x/y-views and markers. Containers are actually much easier to build than regular plot plug-ins, because you can just rely on the default handlers for printing and building canvas items... so there are many fewer details to worry about. * src/libguppiplot/guppi-group-view.c (guppi_group_view_foreach_pending): Added. Iterate across the view items in the "pending" group view, i.e. the subitems that will become active when changes are committed. (guppi_group_view_commit_all_changes): Added. Commit changes in this view, and in all sub-group views. * src/libguppiplot/guppi-canvas-item.c (find_tool): Allow NULL to be passed in for the op_tool or op_item args. (guppi_canvas_item_locate_button_tool): Allow NULL op_item or op_tool args. (guppi_canvas_item_locate_key_tool): Allow NULL op_item or op_tool args. * src/libguppiplot/guppi-root-group-item.c (key_press_event): Grab keyboard when activating a keyboard-bound tool. (key_release_cb): Add keyboard ungrab on key release. * src/libguppiplot/guppi-plot-tool.c (guppi_plot_tool_first): Added pt coordinate tracking. (guppi_plot_tool_middle): Added pt coordinate tracking. (guppi_plot_tool_end): Added pt coordinate tracking. * src/libguppiplot/guppi-plot-tool.h: For convenience, added pt coordinates to the GuppiPlotTool struct. * src/libguppiplot/guppi-root-group-view.c (guppi_root_group_view_show_in_window): Changed our commit_changes() function call to commit_all_changes(). It just makes more sense. * src/libguppiplot/guppi-group-view.c (guppi_group_view_commit_all_changes): Added. * src/libguppiplot/guppi-root-group-tools.c (guppi_root_group_tool_new_help): Added. Now pop-up help can be just another tool, rather than something that has to be hard-wired into our event-handing framework. I like that. (guppi_root_group_toolkit_configure): Bind the pop-up help tool to the question-mark key. * src/libguppiplot/guppi-plot-toolhelp.c (guppi_plot_toolhelp_construct): Hack to work properly with the new post-GuppiPlot way of doing things. For now we our pop-up help only covers button-bindings, not key-bindings or double-click bindings. * src/libguppiplot/guppi-root-group-tools.c (select_and_configure_cb): Remove unused variable to silence warning. * src/guppi/group-scatter.scm: * src/guppi/group-scatter2.scm: * src/guppi/scatter-demo.scm: s/guppi-group-view-push/guppi-group-view-commit-changes/ * src/libguppiplot/guppi-root-group-view.c (guppi_root_group_view_show_in_window): s/guppi_group_view_push/guppi_group_view_commit_changes/ * src/libguppiplot/guppi-group-view.c (guppi_group_view_commit_changes): Renamed guppi_group_view_push, on Jody's suggestion. 2000-09-22 Jon Trowbridge * src/guppi/guppi-app.c (hacked_scatter_grid_cb): Added function to produce the 2x2 scatter grid demo. (Callback to data window menu item.) (guppi_app_setup_menus): Added menu item for 2x2 scatter grid demo. 2000-09-20 Jody Goldberg * src/libguppiplot/guppi-chart-type.h : Adjust the signature. * src/guppi-gnumeric/guppi-chart-selector.c (guppi_chart_selector_init) : Store labels seperately. * src/guppi-gnumeric/corba-graph-manager.c : Handle idl renaming. * src/guppi-gnumeric/corba-graph-series.c : Ditto. * plug-ins/plot/XLplots/guppi-pie-register.c (guppi_piechart_factory) Improve handling of labels. * plug-ins/data_impl/seq_scalar/calc.c (guppi_seq_scalar_calc_impl_set_arg) : silence warning. 2000-09-17 Jon Trowbridge * These are the worst ChangeLog entries in history. This stuff reflects ten days of deep, low-level hacking. Breakage will abound. * plug-ins/plot: Fixed config stuff. Great renaming. * plug-ins/plot/root-group: Removed root-group plug-in. See below. * src/libguppiplot/guppi-plot-window.c: Totally overhauled to use root-groups. * src/libguppiplot/guppi-plot-toolkit.c (guppi_plot_toolkit_set_button_tool): Track activation button in tool. Useful when a tool creates a pop-up menu. (guppi_plot_toolkit_signature): Added. * src/libguppiplot/guppi-plot-tool.c (guppi_plot_tool_signature): Added. (guppi_plot_tool_supports_item): Added check of supports cb function. * src/libguppiplot/guppi-group-view.c (guppi_group_view_add): Added code for tracking changed_structure signals in childer. (guppi_group_view_remove): Disconnect our changed_structure monitor on removal. * src/libguppiplot/guppi-element-view.c (guppi_element_view_class_init): Added "changed_structure" signal. (guppi_element_view_changed_structure_delayed): Added. (guppi_element_view_changed_structure): Added. (assemble_config_tree): Added a virtual function to control how view and state config info are combined for the config tree. (guppi_element_view_config_tree): Added. Removed old properties tree stuff. (guppi_element_view_finalize): Remove any pending structure changes. * src/libguppiplot/guppi-element-state.c: Removed properties tree related stuff. (guppi_element_state_label): Made default label nicer. * src/libguppiplot/guppi-basic-tools.c (uses_vp_cb): Added. Check if vp coordinates are used. Various great-renaming related changes. * src/libguppiplot: Moved the GuppiRootGroup code here. Having that code in a plug-in was just silly, and it was very beneficial to be able to access the various guppi_root_group functions directly. * The great renaming: s/GuppiElementCanvasItem/GuppiCanvasItem/g * src/libguppidata/guppi-seq-integer.c: DataOp-ificiation for correct signal semantics. * src/libguppiuseful/guppi-properties.h: * src/libguppiuseful/guppi-properties.c: Obsolete; removed. * src/libguppiuseful/guppi-metrics.h: Added GUPPI_PX to guppi_metric_t enum. * src/libguppiuseful/guppi-metrics.c (guppi_to_pt): Added support for GUPPI_PX. (guppi_from_pt): Added support for GUPPI_PX. (guppi_metric_name): Added. * src/libguppiuseful/guppi-metric-entry.c: Added. A widget for entering metric quantities. * src/libguppiuseful/guppi-defaults.c (guppi_default_units): Added default units. For now, it is hard-coded as inches. * src/libguppiuseful/guppi-configure.h: * src/libguppiuseful/guppi-configure.c: Added. Improved replacement for code in guppi-properties.c (i.e. the GuppiProperties widget). * src/libguppiuseful/guppi-config-item.h: * src/libguppiuseful/guppi-config-item.c: Added. Nicer replacement for the non-gtkobject struct in guppi-properties.h. * src/libguppiuseful/guppi-multiview.h: * src/libguppiuseful/guppi-multiview.c: Added. Derived from Jonathan Blanford's gtk-multiview. Used instead of a notebook in the new GuppiConfigure. 2000-09-17 Jody Goldberg * src/guppi-gnumeric/test.c (real_main) : Create series names. * src/guppi-gnumeric/guppi-chart-selector.c (guppi_chart_selector_get_plot) : Use new factory signature to pass data and series names. (guppi_chart_selector_init) : Init the series name. * src/guppi-gnumeric/corba-graph-series.c (impl_vector_string_notify_changed) : Implement. * src/guppi-gnumeric/corba-graph-manager.c (impl_addVectorScalar) : Store the series name. (impl_addVectorString) : Fill in. * plug-ins/plot/XLplots/guppi-scatter-register.c (guppi_scatter_factory) : Change signature. * plug-ins/plot/XLplots/guppi-pie-register.c (guppi_piechart_factory) : Support legends better, convert to new signature. * plug-ins/plot/XLplots/guppi-linegraph-register.c (guppi_linegraph_config) : Change to the new signature. * plug-ins/plot/XLplots/guppi-boxplot-register.c (guppi_boxplot_factory) : Change to the new signature. * plug-ins/plot/XLplots/guppi-barchart-register.c (guppi_barchart_factory) : Use a real sequence of styles. Add a legend. * plug-ins/plot/XLplots/guppi-XLplots-common.c (xlplots_stock_styles) New function. * src/libguppidata/guppi-seq-string.c (guppi_seq_string_set_nc) : guppi_seq_changed_set ignores the index passed. The handlers use the index in the op, which we forgot to set. (guppi_seq_string_set) : Ditto. 2000-09-15 Jody Goldberg * src/guppi-gnumeric/test.c (real_main) : Add some sample data. * src/guppi-gnumeric/corba-graph-series.c (impl_vector_scalar_notify_changed) : suppress warning. * src/guppi-gnumeric/guppi-chart-selector.c (guppi_chart_selector_init) : suppress warning. 2000-09-15 Jody Goldberg * plug-ins/data_impl/seq_scalar/core.c (v_seq_scalar_set_many) : New function. * src/libguppidata/guppi-seq-impl.c (guppi_seq_impl_set_many_missing) : new function. * src/libguppidata/guppi-seq-scalar.c (guppi_seq_scalar_insert_many) : Init N. (guppi_seq_scalar_set_many) : New function. (op_insert_set_many) : Ditto. * src/libguppidata/guppi-seq-scalar-impl.h : Add set_many. * src/libguppiplot/guppi-plot-canvas.c : Handle a NULL plot. * src/libguppiplot/guppi-plot.defs : adjust signature for style_stock. * src/libguppiplot/guppi-style.c (guppi_style_stock) : Add a selector for which stock styles to use. 2000-09-15 Jody Goldberg * src/Makefile.am : Make the build of guppi-gnumeric conditional. * src/guppi-gnumeric/Makefile.am : Add inclusion of libguppi-bonobo. Build the gnumeric-graph idl files locally. Add the implementation files for the CORBA objects. * src/guppi-gnumeric/guppi-chart-selector.c : Update to enable sharing of the resultant plot. Make use of the new pluginless startup. * src/guppi-gnumeric/test.c : update. * src/libguppibonobo/guppi-bonobo-print.c : Use guppi_bonobo_embeddable_get_plot. * src/libguppibonobo/guppi-bonobo-view.c : Ditto. (guppi_bonobo_factory) : move the demo ctor here. * src/libguppibonobo/guppi-embeddable.c : (guppi_bonobo_embeddable_get_plot) : new function. (guppi_bonobo_embeddable_set_plotter) : new function. 2000-09-07 Jon Trowbridge * plug-ins/plot/root-group/guppi-root-group-item.c (button_press_event): Properly dispatch double-clicks. * plug-ins/plot/pie/guppi-pie-item.c (double_click): Switch position args to be in dvi-coordinates. * plug-ins/plot/legend/guppi-legend-item.c (double_click): Switch position args to be in dvi-coordinates. * plug-ins/plot/barchart/guppi-barchart-item.c (double_click): Switch position arg to be in dvi-coordinates. * plug-ins/plot/root-group/guppi-root-group-state.h: Removed some obsolete function prototypes. * src/libguppiplot/guppi-style.c (guppi_style_changed_delayed): Increased priority of idle function. * src/libguppiplot/guppi-seq-style.c (guppi_seq_style_get_type): Fixed type name. * src/libguppiplot/guppi-layout.c (guppi_layout_calc_delayed): Layout idle function priority increased. * src/libguppiplot/guppi-element-view.c (guppi_element_view_changed_delayed): Idle function priority raised. * src/libguppiplot/guppi-element-state.c (guppi_element_state_changed_delayed): Changed idle function now has high priority. (Higher than canvas redraw, in particular.) * src/libguppidata: The way I typedef GuppiDataImplClass and the classes of the GuppiDataImpl derivates has been changed to facilitate discussing thse classes in gtk-doc. 2000-09-05 Jon Trowbridge * plug-ins/plot/root-group/guppi-root-group-item.c (realize): Set our scale properly (using the value stored in GuppiRootGroupView) when realized. * src/libguppiplot/guppi-group-view.c (guppi_group_view_add): Added call to add_hook. (guppi_group_view_push): Delay the view change signal. 2000-09-04 Jon Trowbridge * plug-ins/plot/root-group/guppi-root-group-item.c: A GuppiCanvasGroup that implements all of the event magic that used to be handled by GuppiPlotCanvas. It dispatches button presses, steals key events from the parent widget, attaches drag&drop signals to the canvas and handles highlighting, data dispatch, etc. It also sizes the canvas scroll region to properly map device-indep coordinates to pixel coordinates with the right scaling. While you can now drop any guppi canvas item into any gnome canvas, you aren't going to get all of the proper higher-order behavior unless the root group of your construction is a root-group. * plug-ins/plot/root-group/guppi-root-group-view.c: A GuppiGroupView derivative that allows the size (in device-indep. units) and scale to be set. * plug-ins/plot/root-group/guppi-root-group-state.c: Mostly-empty state object for the root group. * src/libguppiplot/guppi-canvas-group.c: A Guppified GnomeCanvasItem. Handles many of the placement issues that used to be addressed by GuppiPlotCanvas. * src/libguppiplot/guppi-group-view.h: This is basically now the successor to GuppiPlot. It can be used as a simple container w/ layout by itself, and can itself be layed-out since it is a GuppiElementView-derivative. It can also be a base class for containers with more complex behavior. * src/libguppiplot/guppi-group-state.c: Placeholder for group state. Empty right now, except for the correct make-view functionality. * src/libguppiplot/guppi-element-canvas-item.c Guppi canvas items are now derived from GnomeCanvasGroup. (guppi_element_canvas_item_finalize): Disconnect position handler. (update): Save our bounding box before chaining the call to update, because the f*cking GnomeCanvasGroup update function clobbers the bounding box. (It assumes you aren't going to derive from GnomeCanvasGroup and do anything interesting... I spent many hours trying to track that one down.) (guppi_element_canvas_item_pt2c_d): Properly invert the y-coordinate. (guppi_element_canvas_item_foreach): Added. (guppi_element_canvas_item_foreach_at): Added. (guppi_element_canvas_item_first_matching_at): Added. (guppi_element_canvas_item_data_drop_candidate): Added. (guppi_element_canvas_item_data_drop): Added. (guppi_element_canvas_item_locate_button_tool): Added. (guppi_element_canvas_item_locate_key_tool): Added. (guppi_element_canvas_item_double_click): Added. (guppi_element_canvas_item_set_local_toolkit): Added. (guppi_element_canvas_item_enable_local_toolkit): Added. (guppi_element_canvas_item_enable_class_toolkit): Added. * src/libguppiplot/guppi-element-view.c (guppi_element_view_print): Added. (Moved here from GuppiPlot.) (guppi_element_view_print_to_bbox): Added, from GuppiPlot. (guppi_element_view_print_ps_to_file): Added, from GuppiPlot. (priv): Added paranoid cast to priv() macro. (print): Added. Printing is now virtualized, so that we can properly deal with groups. (guppi_element_view_class_init): Connected up our default print. * src/libguppiplot/guppi-plot-tool.c (guppi_plot_tool_first): Pointer grab removed. The caller is now responsible for this. (guppi_plot_tool_end): Pointer grab removed. * src/libguppiplot/guppi-layout.c: Added paranoid cast in priv() macro. (guppi_layout_remove): Disconnect removed geometry from layout. (guppi_layout_replace): Explicitly disconnect old geometry and reconnect new geometry from the layout. (guppi_layout_set_bounds_from_geometry): Added. * src/libguppiplot/guppi-geometry.c: Added paranoid cast in priv() macro. (guppi_geometry_finalize): Disconnect abusive-layout-hack signals. * src/libguppiuseful/guppi-debug.c (_guppi_track_entry): Changed indenttation to 2 spaces per level. (_guppi_track_exit): Ditto. 2000-09-01 Jon Trowbridge * plug-ins/import/import-delimited/guppi-delimited-importer.c (guppi_delimited_importer_guess_types): Fixed memory leak. * src/libguppiplot/guppi-element-canvas-item.c (render): Properly check for empty render regions. * src/libguppiuseful/guppi-stream.c (guppi_stream_finalize): Fixed memory leak caused by off-by-one error. (guppi_stream_changed): The last line will now refresh properly (marked & sani version) on a change. * src/libguppiuseful/guppi-version.c (guppi_developers): Added Martin Quinson. * src/libguppiuseful/guppi-string.c: In true_forms and false_forms, the empty string shouldn't be true or false. * src/libguppiuseful/guppi-useful.c (guppi_useful_init_without_guile): Register our plug-in clean-up function to run on exit. * src/libguppiuseful/guppi-plug-in-spec.c (guppi_plug_in_spec_shutdown): Added function that cleans up our plug-in table. * src/libguppiuseful/guppi-convenient.c (g_free2): Added. (g_free_hash_key): Added. (g_free_hash_val): Added. (g_free_hash_keyval): Added. (guppi_unref2): Added. (guppi_unref_hash_key): Added. (guppi_unref_hash_val): Added. (guppi_unref_hash_keyval): Added. These are all convenience functions for deallocating objects stored in lists and hash tables. 2000-08-29 Jon Trowbridge * src/libguppidata/demo.c: Added a small demo to exercise the data import code, for purify-ication purposes. * src/libguppiuseful/guppi-stream.c (guppi_stream_finalize): Correctly deallocate GuppiFile. * src/libguppiplot/guppi-plot.c (guppi_plot_finalize): Cancel pending changes. * src/libguppiplot/guppi-plot-canvas.c (guppi_plot_canvas_finalize): Make finalization more paranoid. * src/libguppiplot/guppi-element-view.c (guppi_element_view_finalize): Cancel any pending changes. * src/libguppiplot/guppi-element-state.c (guppi_element_state_finalize): Cancel any pending changes. * src/libguppiplot/guppi-style.c (guppi_style_finalize): Deallocate label. Cancel any pending changes. * src/libguppiuseful/guppi-file.c (guppi_file_destroy): Move chained call to end. Duh. * src/guppi/guppi.c (main): Close popen() with a pclose(). * src/libguppiuseful/guppi-python.c (guppi_python_eval_file): Fix file descriptor leak. * src/libguppidataui/guppi-data-select.c (guppi_data_select_set_empty_label): If we change our "empty" label and we have NULL currently selected, update the label accordingly. (popup): Put a "none" selection first in the popup menu. I'd forgotten this previously. 2000-08-28 Andrew Chatham * src/libguppiuseful/guppi-useful.c (guppi_useful_init_without_guile): Negated the guppi_python_is_active test. 2000-08-28 Morten Welinder * src/libguppiuseful/guppi-plug-in-spec.c (guppi_plug_in_spec_find): Close directory when we are done with it. What a thought. (parse_spec_file): Close files when done. 2000-08-28 Jon Trowbridge * plug-ins/plot/boxplot/guppi-boxplot-item.c (update): Cleaned up some of the boxplot path code so that various chunks of the path are omitted if they are totally off the screen. This doesn't get rid of the colinearity spew, but it does seem to get rid of those annoying horizontal streak artifacts that libart was producing when trying to render an off-screen boxplot. If I was a true hacker, I guess I would have fixed libart rather than just working around its bugs, but I'm selfishly committed to my own project... * src/guppi/guppi.c (main): Added descriptive label to CORBA shutdown function. * src/guppi/file-open.c (file_open_ask_about_import_type): Tweaked to look for information in the GuppiPlugInSpec rather than the GuppiPlugIn. * src/guppi/about.c (credits): Free software development is a team effort, and every member of the team is important. * src/libguppiplot/guppi-element-canvas-item.c (render): Debug spew. (update): Debug spew. * src/libguppiplot/guppi-plot-canvas.c (position_item): Added some debug spew. (guppi_plot_canvas_set_state): Debug spew. * src/libguppiplot/guppi-plot.c (guppi_plot_push): Added some debug spew. (guppi_plot_layout_remove): Added. (guppi_plot_layout_replace): Added. * src/libguppiplot/guppi-layout.c (term_free): Simplified. (guppi_layout_finalize): Remove any pending layout calcs upon finalization. (register_geom): Change usage of guppi_geometry_set_registered() to conform to new signature. (guppi_layout_remove): Added. Removes an object, as well as all layout rules that refer to that it. (guppi_layout_replace): Added. Replaces one object by another. This replacement also occurs in all layout rules that mention the original objects. * src/libguppiplot/guppi-geometry.c (guppi_geometry_set_registered): Made this function take an bool argument, which it probably should have done from the beginning. * src/libguppidataui/guppi-data-select.c: Removed a bunch of debug spew that I'd put in for acuster --- the bug wasn't in here after all. * src/libguppidata/guppi-data-importer-plug-in.h: Changed the GuppiDataImporterAssessment struct to also carry around a pointer to the plug-in's GuppiPlugInSpec. This allows us to access info like the plug-in's "human-readable" name and other info that is no longer stored in the GuppiPlugIn. * src/libguppidata/guppi-seq-scalar.c: Made GuppiSeqScalar opaque; Private info is now stored in the hidden struct GuppiSeqScalarPrivate. * src/libguppidata/guppi-data.c (process_pending_op): Memory leak fixed by adding g_list_free_1(). * plug-ins: Snipped out all of the code in the various init() functions of all of the plug-ins that manually set the informational fields (author, copyright, etc.). This stuff is all in the .plugin files now. * src/libguppiuseful/guppi-plug-in.h: Removed all of the informational data fields from the GuppiPlugIn struct --- they are now stored in GuppiPlugInSpec instead. Incremented the plug-in magic number. * src/libguppiuseful/guppi-useful.c (guppi_useful_init_without_guile): Added guppi_python_is_active() check before initializing python stuff. * src/libguppiuseful/guppi-exit.c (guppi_exit_connect_approval_func): Added descriptive label. (guppi_exit_connect_shutdown_func): Added descriptive label. (approve_shutdown): Added some debug spew. (guppi_exit): Added explicit exit() call. In some cases, guile seemed to be interfering with normal application termination. (guppi_abort): Added explicit exit() call. * src/libguppiuseful/guppi-debug.c: Added some new functions & macros for doing debug spew. This is really just tinkering, and thus not worth discussing in detail. :-) 2000-08-26 Jon Trowbridge * plug-ins/plot/boxplot/guppi-boxplot-item.c: Added more very-verbose debug spew. This is all meant to try to solve acuster's mysterious scatterplot lock-up problem. * src/libguppidataui/guppi-data-select.c: Added a bunch of spew at the very-verbose level. * src/guppi/guppi.c (main): Fixed handling of debug-level command line args. 2000-08-26 Jon Trowbridge * src/libguppiplot/guppi-plot-window.c: A bunch of changes to make up for the fact that GuppiPlot and GuppiPlotCanvas are now opaque objects. Pretty boring, all in all. * src/libguppiplot/guppi-plot-canvas.c: I've been on an opaqueification roll these last few days; all of the GuppiPlotCanvas's state is now also in the hidden GuppiPlotCanvasPrivate struct. All of the changes in this file (and there are many, many changes) are changes to either support this privitization or the privitization of GuppiPlot. Some of the exceptions worth noting are: (guppi_plot_canvas_set_state): Here, we check that the GuppiPlot object we are setting as our state has ever been pushed. If not, we push it ourselves. I don't *think* this is a bad thing to force at this point. It just means that anyone who isn't dynamically changing their GuppiPlot's never needs to worry about ever doing a push, and that you don't need to worry about forgetting that initial push. Now passing in an uninitialized GuppiPlot here should also be OK; pushing an "empty" GuppiPlot is a valid operation. (Actually there might be a glitch or two associated with that, but nothing a few extra NULL pointer checks can't fix.) The only problem would be if someone insists on setting the canvas's state to some sort of weird half-constructed GuppiPlot, in which case some ugly crap might end up on the screen. I don't know if this is a case that is worth worrying about. (populate_canvas): This function has also been added; it tries to map the GuppiElementViews in a GuppiPlot to GuppiElementCanvasItems in an intelligent way, reusing existing canvas items if items associated to those views already exist. (guppi_plot_canvas_foreach_item): Since the list of canvas items is no longer exposed, iteration over all the items now has to be done with this foreach function. * src/libguppiplot/guppi-plot.c: Massive change associated with the opaque-ification of GuppiPlot --- all state has been moved to GuppiPlotPrivate. Most of those changes are more typing than programming, but one key, fundamental change is mixed up in there as well. Namely, (guppi_plot_push): has been added. This function attempts to address a big problem with manipulating a GuppiPlot's state: most of the time a single change will leave a GuppiPlot in a bad/incomplete state, and most changes consist of N steps. (ie calls to multiple layout functions to fully specify the geometry of added objects) This *is* model/view, after all... If GuppiPlot/GuppiPlotCanvas are to be meaningfully thought as a model/view pair, changes to GuppiPlot should transparently be reflected in GuppiPlotCanvas w/o the coder having to operate on the GuppiPlotCanvas in any way. So clearly we can't have GuppiPlot spit out some sort of "changed" signal every time you touch it, or you risk forcing an updating in the GuppiPlotCanvas N times when GuppiPlot is screwed up. We get around this by basically cacheing (is that spelled with an 'e'?) changed to GuppiPlot. Changes don't take effect until guppi_plot_push() is called, which is also when the "changed" signal is emitted. (guppi_plot_foreach_element): Since we've hidden the list of views inside of GuppiPlotPrivate, this foreach function is provided as a way for external code to iterate over all the plot's elements. Of course, I should note that the only changes to a GuppiPlot that are currently possible are to add more elements. Deletion isn't (Modification is a tricker question: the only reasonable thing to do might be to require that modifications be accomplished by deleteing something and then re-adding it in a different way. But I need to think about that question some more...) * src/libguppiplot/guppi-layout.c (guppi_layout_connect_geometry): Here is where we do the black deed and violate GuppiGeometry's encapsulation. We listen for a "changed_size" from the GuppiGeometry, and do a guppi_layout_calc_delayed on emission. If another layout was already listening, we uncerimoniously disconnect them. (guppi_layout_bounds): Added. I thought I needed this. It turns out I didn't, but it might come in handy later. (matrix_normalize_row): Gratuitous optimization to remove some unnecessary multiplies from inside of the loop. (matrix_row_is_nonzero): Gratuitous optimization. (matrix_column_is_nonzero): Gratuitous optimization. (matrix_row_dot): Gratuitous optimization. (matrix_subtract_scaled_row_from_row): Gratuitous optimization. All sorts of other gratuitous optimization would be possible in this matrix code. (term_copy): Added. (rule_add_term): Added. (rule_copy): Added. (rule_list_copy): Added. (rule_list_free): Added. (geom_list_copy): Added. (geom_list_free): Added. (guppi_layout_finalize): Cleaned up w/ new convenience functions. (guppi_layout_copy): Added. (guppi_layout_calc_flush): Added. * src/libguppiplot/guppi-geometry.c (guppi_geometry_disconnect_from_layout): We use the dreaded bit of non-opaque state to store the handle of the signal connection that sends a request for a new layout operation to a GuppiLayout when the GuppiGeometry emits "changed_size". Each GuppiGeometry should be sending this message to exactly one GuppiLayout; by storing the handle here, it simplifies thing when we reconnect to a different GuppiLayout and want to disconnect the old signal, at which point we might not have easy access to a pointer to the old GuppiLayout. * src/libguppiplot/guppi-geometry.h: In a major act of programming grossness, I've added a bit of non-opaque state to GuppiGeometry to try to avoid a circular dependency with GuppiLayout, a guint named abusive_layout_signal_hack. Shame on me. * src/libguppiplot/guppi-style.c (guppi_style_stock): I sure hate those default XL colors that Jody put in here, so I've switch over to what is (IMHO) a much more attractive set of colors. (guppi_style_stock_alien): Meanwhile, you can still construct an XLish color scheme by using these styles. I guess I should have called this function guppi_style_stock_XL, but I just couldn't bring myself to do that. * plug-ins/plot/text/guppi-text-print.c (print): In a canvas item, text gets rendered in the center of the bounding box, whereas here it was getting rendered flush along the bottom. Changed to be consistant w/ the canvas item. (This should be a text element option eventually.) * src/guppi/guppi-app.c (about_cb): Replace the old gnome_about dialog with our shiny new guppi_about. * src/guppi/about.c (guppi_about): Added. A better "about" dialog that gives credit where credit is due. 2000-08-24 Andrew Chatham * src/libguppiuseful/guppi-python.c (guppi_python_load_plug_in): added (guppi_python_module_init): Changed script directory to a Python-specific subdirectory of GUPPI_SCRIPTS * src/guppi/hacked-pie-demo.py: Updated to match pie-demo.scm * build-tools/generate.py: (_obj2inst, register_classes): Moved per-module functions to python-modules/Guppi/plot/end.py. (FunctionDefsParser.[options|get_plugin_info) : Added code to parse the .plugin files and implement lazy module loading. (Object.defineinit): Now will only take the shortest constructor. * python-modules/Guppi/plot/start.py: (LazyModule, LazyPluginModule): Created a class which appears to be a module as far as the rest of the code is concerned but which is only initialized when it is actually used. * plug-ins/plot/*/*.defs: Added a "(plugin mypluginfile.plugin)" option for each plot plugin. 2000-08-24 Jon Trowbridge * src/libguppiuseful/guppi-useful.defs: Added new plug-in fns to bindings. * src/libguppiuseful/guppi-plug-in-spec.c (guppi_plug_in_exists): Added. (guppi_plug_in_is_loaded): Added. (guppi_plug_in_force_load): Added. * src/libguppiuseful/guppi-python.c: Fixed python path cpp variable. (I lumped this stuff all together into a common scripts dir, which might have been the wrong thing to do.) 2000-08-24 Jody Goldberg * configure.in : Fix cut-n-paste-o. 2000-08-24 Jon Trowbridge * src/libguppiuseful/guppi-splash.c (guppi_splash_text): Removed developers from default text splash. Modesty is a virtue. * src/libguppiuseful/guppi-version.c (guppi_developers): Added other worthy people to the list of developers. (guppi_helpers): Added. These are more worthy people. * src/guppi/guppi.c (main): Added --paths cmd line arg, to print search paths on the console. (real_main): Added code implementing --paths. Right now it only does the plug-in paths; the others should be added. * src/libguppiuseful/guppi-plug-in-spec.c (guppi_plug_in_path_reset_to_default): Fixed name of cpp variable containing default plug-in path. Changed not to use default path when runnning in-place. (This allow local development to occur when a version is also installed.) (guppi_plug_in_path_dump): Added function to print the plug-in search path to the console. Useful for debugging. 2000-08-22 Jon Trowbridge * src/libguppiuseful/guppi-plug-in-spec.c: Improved error handle and argument handling in several of the functions. * src/guppi/guppi.c (real_main): Check if we are successful in our search for plug-ins. If not, warn the user that something is terribly wrong. * src/libguppiuseful/guppi-plug-in-spec.c (guppi_plug_in_count): Added. (guppi_plug_in_count_by_type): Added. 2000-08-21 Jon Trowbridge * src/libguppiplot/guppi-plot-canvas.c (find_local_tool): Fixed bug with key tools. (Passed in button # to _local_key_tool() rather than key_code. Duh! * plug-ins/plot/scatter/guppi-scatter-view.c: Added code to expose the scatter styles via the get_style_bounds/get_style vfunctions. * plug-ins/plot/scatter/guppi-scatter-tools.c (guppi_scatter_toolkit_default): Added. * plug-ins/plot/scatter/guppi-scatter-item.c (guppi_scatter_item_class_init): Added item class toolkit. * plug-ins/plot/text/guppi-text-item.c (state_changed): Fixed to just call request_update(), rather than to try to do part of the update process itself. What was I thinking? (view_changed): Ditto. * plug-ins/plot/scatter/guppi-scatter-style.c: Added object args. * src/libguppitank/demo-scatter.c: Added. A test prog for GuppiObjectScatter. * src/libguppitank/guppi-object-scatter.c: Added. A GuppiObject implementation for scatter plots. * src/libguppiplot/guppi-plot.c: Removed all of the "scheduled layout" ops; the right place for those to be is in guppi-layout. (guppi_plot_set_size): Now just propogates info to guppi_layout_set_bounds(). * src/libguppiplot/guppi-layout.c: A bit overhaul. Besides some trivial API changes, the way that layouts are calculated has been changed quite a bit. High points include: + Nicer matrix op code. + Div by zero and other floating point errors avoided. + Helpful (?) error messages are emitted if the linear system is unsolvable. + Redunant rules are recognized and removed... this has been a big source of problems in the past (for me at least). * src/libguppiplot/guppi-marker.c: Added "canonical" marker names, so as not to fail in strange ways due to i18n. * src/libguppiplot/guppi-geometry.c (guppi_geometry_positioned): Added. Lets us track if a GuppiGeometry is not yet initialized. (guppi_geometry_set_user_data): Certain bits of debugging are easier when this info is exposed. (guppi_geometry_calc_natural_size_real): The calc-natural-size code has been restructured to avoid unnecessary calls to the item size-calculation callbacks. * src/libguppiplot/guppi-element-view.c (guppi_element_view_changed_delayed): Don't defer changed signals is guppi_is_synchronous(). (guppi_element_view_style_bounds): Added. (guppi_element_view_style_in_bounds): Added. (guppi_element_view_style): Added. This is all part of an abstraction that lets you access element styles w/ minimal knowledge of the semantics of the element in question. * src/libguppiplot/guppi-element-state.c (guppi_element_state_changed_delayed): Don't defer changed signals if guppi_is_synchronous(). * src/libguppiplot/guppi-element-canvas-item.c (update): Skip update for non-visible items. (render): Skip rendering non-visible items. * src/libguppiplot/guppi-style.c: Added support for object args. * src/libguppiuseful/guppi-defaults.c: Added different sizes of default fonts, to give us a better way of having some control while still being totally abstract. * src/libguppiuseful/guppi-paths.c (development_path_hacks): We want to be able to run stuff from inside of libguppitank and still use our development stuff rather than the installed libs. * src/libguppiuseful/guppi-debug.c (guppi_set_synchronous): Added. (guppi_is_synchronous): Added. This defines a "synchronous" flag in Guppi that the *_delayed() version of object-change-signal-emitting functions check and, if set, they emit the signal right away rather than in an idle loop. This makes debugging easier, as it allows you to track down who is making the call too guppi_foo_changed_delayed(). 2000-08-16 Jody Goldberg * plug-ins/plot/scatter/guppi-scatter-state.c : Add size1_data, and size2_data arguments. 2000-08-16 Jon Trowbridge * plug-ins: Added a bunch of *.plugin files. Hacked on the build to set up directoryification. * src/libguppiuseful/guppi-plug-in-spec.c: Added. GuppiPlugInSpec objects are created from *.plugin files, and are used as proxies for information about plug-ins before they are loaded. All of the various indexing of plug-ins has been moved here. So functions in the guppi_plug_in_ namespace are defined here; that naming has been preserved for clarity and for backwards compatibility. * src/libguppiuseful/guppi-plug-in.c: Stripped out all of the indexing; plug-ins are now not loaded at start-up. * src/libguppidata/guppi-data-transform.c: Added standardize and logit transforms. * src/libguppiuseful/guppi-paths.c (development_path_hacks): Made public. (guppi_pixmap_path_add): Added. (guppi_find_pixmap): Now uses g_concat_dir_and_file and the pixmap path list. (guppi_script_path_add): Added. (guppi_find_script): Now uses g_concat_dir_and_file and the script path list. Guile-specific nomenclature removed. (guppi_glade_path_register): Renamed so as to not conflict with... (guppi_glade_path_add): ...this added function. (guppi_glade_path): Hacked to use glade path list. 2000-08-14 Jody Goldberg * configure.in : Add a preliminary check for gnumeric * plug-ins/plot/pie/guppi-pie-state.c : Add a 'use_stock_colors' argument that indicates whether to fall back on the default colour immediately, or to use the stock styles first. 2000-08-12 Jody Goldberg * src/libguppiplot/guppi-style.c (guppi_style_stoc) : localize this a bit more and add a list of colours similar to those used by office. * plug-ins/plot/barchart/guppi-barchart-state.c : Add a 'use_stock_colors' argument that indicates whether to fall back on the default colour immediately, or to use the stock styles first. 2000-08-12 Jon Trowbridge * src/libguppiplot/guppi-shared.c (guppi_shared_set_inner): Minor clean-ups. * src/libguppiplot/guppi-plot-window.c (guppi_plot_window_build_tool_palette): Check if any item in the plot uses the vp coordinate system before adding the basic tools. * src/libguppiplot/guppi-element-view.c (x_vi_changed_held): Removed problematic "while_alive" signal connection. (y_vi_changed_held): Ditto. * src/libguppiplot/guppi-element-canvas-item.h: Added uses_vp_coordinates flag. * src/libguppiplot/guppi-basic-tools.c: Set toolbar images for all toolkits. * src/libguppidataui/guppi-data-tree-view.c (guppi_data_tree_view_build_node): Added lock icon next to read-only data items. (guppi_data_tree_view_construct): Adjusted # of columns in ctree. * plug-ins/plot/scatter/guppi-scatter-tools.c: Set toolbar image for all toolkits. * plug-ins/plot/scatter/guppi-scatter-item.c (guppi_scatter_item_class_init): Set uses_vp_coordinates flag to TRUE. * plug-ins/plot/barchart/guppi-barchart-tools.c (guppi_barchart_toolkit_style_toggle): Added. (guppi_barchart_tool_new_cycle_style): Set supported type. (guppi_barchart_tool_new_cycle_orientation): Set supported type. (guppi_barchart_tool_new_bar_callback): Set supported type. * plug-ins/plot/barchart/guppi-barchart-item.c (build_toolkit_vec): Added. 2000-08-11 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-item.c (build_toolkit_vec): Add the brushing toolkit to the toolkit_vec. * plug-ins/plot/scatter/guppi-scatter-state.c (guppi_scatter_state_brush_rectangle): Silently return if one data element is NULL. It isn't an error to try to brush an empty canvas... (guppi_scatter_state_brush_circle): Silently return if one data element is NULL. (guppi_scatter_state_init): Changed some connect()s to connect_while_alive()s. * plug-ins/plot/scatter/guppi-scatter-tools.c (guppi_scatter_toolkit_brush): Added brushing toolkit. (guppi_scatter_tool_radius_brush): Added supported type info. (guppi_scatter_tool_frame_brush): Added supported type. * plug-ins/plot/boxplot/guppi-boxplot-print.c (print): Move the whiskers to the 5/95 points found in the state. * plug-ins/plot/boxplot/guppi-boxplot-item.c (update): Changed our paths to put the whiskers at the 5% and 95% points calculated in the state object. (The 5/95 aren't hard-wired here, just in the state.) * plug-ins/plot/boxplot/guppi-boxplot-state.c (data_change_cb): Calculate the 5% and 95% percentiles of the data, and save this info for the "whiskers" of the plot. This needs to be parameterized. * plug-ins/data_impl/seq_scalar/func.c (guppi_seq_scalar_func_impl_set_arg): Changed to listen to the arg data for "changed" signals, and to forward these signals. * src/libguppiplot/guppi-element-view.c: Changed many connect()s and connect_object()s to connect_while_alive()s and connect_object_while_alive()s. * src/libguppiplot/guppi-element-state.c: Removed some deprecated stuff that had been wrapped in #if 0/#endif for a while. (guppi_element_state_connect_to_object): Changed to connect_object_while_alive. * src/libguppiplot/guppi-shared.c (guppi_shared_set_inner): Changed to use signal_connect_after, to correctly handle new data changed signal semantics. * src/libguppidata/guppi-seq-scalar.c (guppi_seq_scalar_percentile): Added, along with a fairly efficient default implementation. * src/libguppidata/guppi-seq-scalar-impl.h: Added percentile virtual function. * src/libguppidata/guppi-data.c (guppi_data_new): Listen for impl changed signals, convert into a guppi_data_touch. (guppi_data_newv): Ditto. * src/libguppidata/guppi-data-impl.c (guppi_data_impl_class_init): Added impl changed signals. (guppi_data_impl_changed): Added. (guppi_data_impl_touch): Added. These last two functions are meant to mirror the guppi_data_ versions, but they don't currently get the connect/connect_after semantics right. * plug-ins/plot/pie/guppi-pie-state.c (guppi_pie_state_init): Changed signal to _connect_after(). (connect_slice_and_offset_data): Changed to use new signal semantics. * src/libguppidata/guppi-struct.c (guppi_struct_set): #if-ed out direct signal emission. What was I thinking? * src/libguppidata/guppi-data-tree.c (guppi_data_tree_node_add_sibling_here): Stray & gratuitous manipulation of iter removed. (guppi_data_tree_node_parent): Unused. #ifdef-ed out to shut up the compiler. * src/libguppidata/guppi-seq-string.c: Boy I'm tired of writing ChangeLog entries. * src/libguppiplot/guppi-seq-style.c: Uh huh. * src/libguppidata/guppi-seq-object.c: Ditto. * src/libguppidata/guppi-seq-integer.c: Ditto. * src/libguppidata/guppi-seq-boolean.c: Moved all state-changing operations to callbacks. * src/libguppidata/guppi-seq-scalar.c: Moved all state-changes to callbacks. * src/libguppidata/guppi-seq.c: Removed the horror of before/after signals. The new semantics (described below) are much nicer. Added GuppiDataOp_Seq struct and a whole bunch of callbacks to do the work of the setters. (guppi_seq_class_init): All signals are now GTK_RUN_LAST. Old stupid signals are gone. * src/libguppidata/guppi-data.c: Removed freeze/thaw mechanism. Removed guppi_data_get_impl_type; it was useless. Removed the "hook" stuff. It seemed like a good idea at the time, but never got used. (guppi_data_add_pending_op): Added. (process_pending_op): Added. (changed): Added. Does nothing but process pending ops. (changed_label): Added string arg to signal. All state-changing work now happens in the default handler. (guppi_data_class_init): Made all signals GTK_RUN_LAST. (guppi_data_changed): The sematics of this function have changed: it should now never be called unless you have registered a pending op, or bad things will happen. If you want to just cause a quasi-spurious changed signal to be thrown off by an a data object, you should... (guppi_data_touch): ...use this function instead, which registers a no-op operation before emitting the changed signal. * src/libguppidata: OK, there are a lot of changes here that will not make sense without some meta-explanation. When our GuppiData objects change state, they emit various signals. There is a base "changed" signal associated with GuppiData, and subclasses (like GuppiSeq) emit finer-grained signals describing what sort of change occurred. Now sometimes we want to be able to control when we catch those comments; it can be occasionally useful to connect a callback for before the change is made, while other times we want to be sure our callback gets the object afterwards. Now to do this, a few things have to happen: (1) All signals must be GTK_RUN_LAST. (2) All changes to the state must actually happen in the default signal handlers. (3) In fact, all changes must happen in the "base" GuppiData "changed" signal, and the finer-grained signals can't do anything other than invoke the base signal. Now the problem is that our signal args usually don't carry enough info to actually make the changes. So to get around this, I've introduces a simple little marshalling/callback driven approach. A function that is supposed to change the state of an object does nothing but register a callback and some data (the info needed for the actual state change), then calls the appropriate "emit this signal" function. Things chain down, and eventually the base "changed" signal gets called, which then invokes the callback that actually changes the state of our object. This is a bit hairy and indirect, but it does give us the right semantics: you can either _connect() or _connect_after() your signal, and The Right Thing(tm) will happen. * plug-ins/plot/text/guppi-text-print.c: Missing #include was causing the gnome_font_get_size backwards compatibility macro to not be seen, causing it to be interpreted as an unknown function (w/ gnome-print 0.20) and leading to an unhappy crash when printing. * plug-ins/plot/scatter/guppi-scatter-state.c (guppi_scatter_state_brush_from_boolean_data): Removed guppi_data_freeze & guppi_data_thaw calls. If this ends up being inefficient, I'll just need to make the integer sequence smarter. * plug-ins/plot/scatter/guppi-scatter-item.c (build_toolkit_vec): Added a toolkit vec containing the drag toolkit. * plug-ins/plot/scatter/guppi-scatter-tools.c (guppi_scatter_toolkit_drag): Added drag toolkit. * src/libguppidata/guppi-seq-boolean-impl.h: * plug-ins/data_impl/seq_boolean/guppi-seq-boolean-core-impl.c (v_seq_boolean_set_many): Made the gint* indices arg const. 2000-08-10 Jody Goldberg * src/guppi-gnumeric/guppi-chart-selector.c : We can not add and remove canvases to the dialog when used as a control. Something goes Kaboom! Modify the dialog to use one GuppiPlotCanvas and to just change the state as the plot types change. * src/libguppiplot/guppi-plot-canvas.c (size_allocate) : Do not crash if we are realized with no state. (guppi_plot_canvas_add_item) : merge into (guppi_plot_canvas_set_state) : here. Add support for resetting the state. Merge with (guppi_plot_canvas_set_state_group) : this. It's name was not good. (guppi_plot_canvas_clear_items) : New routine. * src/libguppibonobo/guppi-bonobo-view.c : Pass a NULL GnomeCanvasGroup to guppi_plot_canvas_set_state. * src/libguppiplot/guppi-plot-window.c : Ditto. * src/libguppitank/guppi-object.c : Ditto. 2000-08-10 Jody Goldberg * src/guppi-gnumeric/test.c : suppress warnings. * src/libguppiplot/guppi-chart-type.c : suppress warnings. * src/libguppiplot/guppi-plot.c (guppi_plot_make_canvas) : Delete, and move guts. * src/libguppiplot/guppi-plot-canvas.c (guppi_plot_canvas_set_state_group) : Here. (guppi_plot_canvas_set_state) : Wrapper to use root canvas group. (guppi_plot_canvas_new) : Reenable. * src/guppi-gnumeric/guppi-chart-selector.c : Move to new guppi_plot_canvas_new, guppi_plot_canvas_set_state methodology. * src/libguppibonobo/guppi-bonobo-view.c : Ditto. * src/libguppiplot/guppi-plot-window.c : Ditto. * src/libguppitank/guppi-object.c : Ditto. * plug-ins/plot/*/guppi-*-view.c (make_canvas_item) : Take a GnomeCanvasGroup as an argument rather than using the root group. * plug-ins/plot/barchart/guppi-barchart-state.c (guppi_barchart_state_set_arg) : Handle setting horizontal vs vertical bars. 2000-08-10 Jon Trowbridge * src/libguppiplot/guppi-plot-canvas.c (guppi_plot_canvas_set_insensitive): Added. When called (before the canvas is realized), all key bindings, mouse clicks and DnD are disabled. (In particular, the widget doesn't capture all keystrokes from its parent.) 2000-08-09 Jon Trowbridge * src/guppi-gnumeric/guppi-chart-selector.c (cb_sample_pressed): s/guppi_plot_canvas_new/guppi_plot_make_canvas/ * src/libguppiplot/guppi-plot-canvas.h: A serious bit of API confusion has been cleared up. There have been two almost-identical functions floating around: GtkWidget* guppi_plot_make_canvas(GuppiPlot*); and GtkWidget* guppi_plot_canvas_new(GuppiPlot*); As it turns out (and I'd forgotten this), the one to use was make_canvas. canvas_new did very little, and was called by make_canvas. The historical reason for this is that you need to fiddle with GuppiPlot internals to build the canvas up properly... this happened in make_canvas. There used to be some evil fiddling with GuppiPlotCanvas internals that was done in canvas_new, but that is no longer necessary. So to simplify things, I've removed guppi_plot_canvas_new() from the API and instead exposed guppi_plot_canvas_set_state() to do the little canvas-specific initialization needed --- this gets called by guppi_plot_make_canvas(), you shouldn't need to ever call it unless you are doing something really strange. (Apologies to Jody for the grief this caused him.) * plug-ins/data_impl/seq_scalar/func.c (guppi_seq_scalar_func_impl_class_init): Removed broken quartile and range query functions; the defaults in the implementation now do a very good job. * plug-ins/data_impl/seq_scalar/core.c: Gutted like a fish, with code being moved to guppi-seq-scalar.c. * src/libguppidata/guppi-seq-scalar.c: Radical overhaul. Lots of concepts from the core implementation have been ripped out of there and added to the interface (the sorted copy, the fast range query, etc.). This stuff turns out to be fairly universal, and is a *big* performance win for calculated objects. As long as it is all largely overrideable, I don't think that there is any harm in imposing this level of "policy" in the interface. * src/libguppidata/guppi-data-transform.c: Added sq, exp, abs transforms. The question of missing values still needs to be addressed. * src/libguppidata/guppi-data-tree.c (guppi_data_tree_node_add_sibling_here): Added. (guppi_data_tree_add_beside): Make added element end up adjacent to the specified data, not just in the same group. * src/libguppiplot/guppi-plot-canvas.c (size_allocate): Change our default resize semantics to be somewhat nicer: on a resize, do an optimal fit if the result is a larger scale. * src/libguppiplot/guppi-plot-window.c (do_print_cb): Added #ifdef to avoid using gnome_print_master_get_paper() if we are using an older gnome-print. * src/libguppiplot/guppi-element-canvas-item.c (guppi_element_canvas_item_vp2c_d_bulk): Added. * src/libguppiplot/guppi-chart-type.c: * src/libguppiplot/guppi-chart-type.h: Moved #include from the .c to the .h file. * src/libguppiplot/guppi-view-interval.c (guppi_view_interval_conv_bulk): Added. (guppi_view_interval_unconv_bulk): Added. * src/libguppistat/guppi-simple-linreg.c (guppi_simple_linreg_recalc): Added forgotten cast to silence compiler warning. * plug-ins/plot/pie/guppi-pie-register.c (guppi_piechart_factory): Removed explicit call to guppi_plot_calc_layout. * plug-ins/plot/scatter/guppi-scatter-item.c (render): Add "speed rendering code" as an experiment. Disabled for now. 2000-08-08 Jon Trowbridge * plug-ins/data_impl/seq_scalar/core.c (v_seq_scalar_quartiles): Make our quartile calculator use the sorted copy, if available. * src/libguppiplot/guppi-plot-canvas.c (size_allocate): Fixed canvas resize sematics. * src/libguppidata/guppi-seq-scalar.c (calc_quartiles): Added default, unoptimized calculation of quartiles. * src/libguppiuseful/guppi-paths.c (development_path_hacks): Added; checks if we are running from inside of src/guppi. (guppi_find_pixmap): Check if we are in src/guppi before adding ../../pixmaps to our pixmap search path. (guppi_glade_path): Check if we are in src/guppi before adding the relative directories .. and ../../plug-ins to our glade search path. (This fixes the slow start-up bug experienced by Cesar when he ran guppi installed, which I never do...) * plug-ins/data_impl/seq_scalar/calc.c (guppi_seq_scalar_calc_impl_class_init): Disable all missing values functions. When this is done, the sequence interface reports all values as present. * plug-ins/data_impl/seq_scalar/func.c (v_seq_has_missing): Added. (v_seq_missing): Added. Missing values support is still incomplete here (and in lots of other places as well...) * plug-ins/data_impl/seq_scalar/core.c: Removed v_seq_scalar_range function; that functionality is now in the interface layer. (v_seq_scalar_quartiles): Removed caching of quartiles; we can still do the calculation more efficiently down here, though. (v_seq_scalar_set): Fixed to work with with missing values. (v_seq_scalar_insert): Fixed to work with missing values. (v_seq_scalar_insert_many): Fixed to work with missing values. (v_seq_scalar_range_query): Removed min/max optimization; moved to interface layer. (v_seq_insert_missing): Added. (v_seq_delete_many): Fixed to work with missing values. (guppi_seq_scalar_core_impl_class_init): Fixed vtable set-up. * plug-ins/data_impl/seq_boolean/guppi-seq-boolean-core-impl.c: This baby has gotten a lot of love over the last few days. (ASIZE): Correctly calculate needed array size, properly handling multiples of 32. (LAST_MASK): Added needed guint32 cast to ~0. (v_seq_boolean_insert): Revamped & simplified. Now correct in all cases. (v_seq_boolean_insert_many): Revamped & simplfied. Now correct in all cases. (v_seq_delete_many): Revamped & simplified. Now correct in all cases. (v_seq_grow_to_include): Fixed. This "fixed" and "correct" talk sounds overly-optimistic, and probably is... but at least now this code has undergone pretty extensive testing, and at least has done the right thing in several million randomly-generated test cases. (v_data_copy): s/sizeof(double)/sizeof(guint32)/. Obviously a cut&paste mistake from seq-scalar. * src/libguppidataui/guppi-data-tree-view.c (build_data_popup): Added; dynamically builds a popup menu of possible transformation types. (button_press_event): Check for mouse-3, pop up the transform menu. * src/libguppistat/guppi-simple-linreg.c (guppi_simple_linreg_recalc): Tweaked to ignore missing values when calculating. * src/libguppidata/guppi-data.defs: Add bindings for our new missing values API for sequences. * src/libguppidata/guppi-data-init.c (guppi_data_init): Added call to guppi_data_transforms_init(). * src/libguppidata/guppi-data-transform.h: * src/libguppidata/guppi-data-transform.c: Added; Some simple code for data transforms. * src/libguppidata/guppi-data.c (build_impl_by_name): Check that the implementation we constructed is of the right type for our interface. (This check was alread in the build-by-type code, but was left out of build-by-name by mistake.) * src/libguppidata/guppi-seq-scalar.h: * src/libguppidata/guppi-seq-scalar.c: Moved stat-caching into the interface, where it belongs. Made the fallback stat calculation routines do the right thing in the presence of missing values. * src/libguppidata/guppi-seq-impl.h: * src/libguppidata/guppi-seq-impl.c: Added virtual function hooks for missing values functions, and an (optional) default implementation that embeds a boolean sequence to store "missing" flags. * src/libguppidata/guppi-seq.h: * src/libguppidata/guppi-seq.c: Added missing values API and guppi_seq_delete_range() convenience function. Un-const-ified several function args. * src/libguppiuseful/guppi-garray.c: Changed from using a g_array to doing things "by hand". 2000-08-05 Jody Goldberg * configure.in : Improve the handling of --disable-python Add src/guppi-gnumeric/Makefile. Add src/guppi-gnumeric/guppi-gnumeric.oafinfo 2000-08-03 Jon Trowbridge * src/libguppiplot/guppi-element-state.h: * src/libguppiplot/guppi-element-state.c: * src/libguppiplot/guppi-element-view.h: * src/libguppiplot/guppi-element-view.c: * src/libguppiplot/guppi-element-canvas-item.h: * src/libguppiplot/guppi-element-canvas-item.c: * src/libguppiplot/guppi-element-canvas-item.h: * src/libguppiplot/guppi-geometry.h: * src/libguppiplot/guppi-geometry.c: * src/libguppiplot/guppi-layout.h: * src/libguppiplot/guppi-layout.c: Made GuppiElementState, GuppiElementView, GuppiElementCanvasItem, GuppiGeometry, and GuppiLayout into opaque objects. This involved some API extenstions and lots of lots of mindless tweaking of other files that touched these struct's contents directly. (In the process I did some other decrufting of code.) 2000-08-03 Michael Meeks * configure.in: Fit for BonoboX 2000-08-02 Jody Goldberg * src/libguppiplot/guppi-element-print.c (guppi_element_print_setmatrix) : Delete, gnome_print_setmatrix is now private. 2000-08-02 Jon Trowbridge * src/libguppidataui/guppi-data-select.c (guppi_data_select_set_selected_data): Added check that the data we are setting is actually of a valid type. (Oops.) * src/libguppiuseful/guppi-convenient.c (guppi_2sort_i): Added; convenience routine for putting two integers into sorted order (parallel to guppi_2sort() for doubles). * src/libguppiplot/guppi-plot-canvas.c (popup_help_create, popup_help_cleanup_cb, popup_help_remove): Moved code for constructing/managing the popup help window into separate functions. (key_press_event, key_release_event): Call the popup help functions, rather than doing all of the work themselves. * src/libguppiplot/guppi-plot-toolkit.c (guppi_plot_toolkit_get_all_keys): Added. Returns a list of all key bindings for that toolkit. (Used by GuppiPlotToolhelp.) * src/libguppiplot/guppi-plot-toolhelp.c (guppi_plot_toolhelp_construct): Added a listing of key bindings, in addition to the mouse button bindings. * src/libguppiplot/guppi-basic-tools.c: Gave many of the tools more meaningful names. * src/libguppiplot/guppi-plot-tool.c (guppi_plot_tool_name, guppi_plot_tool_set_name): Added proper accessor/modifier functions for tool names. * src/libguppiplot/guppi-element-print.c (guppi_element_print_print): Don't print an object if the "hide" flag is set. * src/libguppiplot/guppi-element-canvas-item.c (render): Don't render an object if the "hide" flag is set. * src/libguppiplot/guppi-element-view.h: Added "hide" flag. 2000-08-01 Jon Trowbridge * plug-ins/data_impl/seq_scalar: Hacks to deal with new python naming for generated files. * build-tools/generate.py: Changed name conversion scheme for generated .py files. * src/libguppiplot/guppi-plot-tool.h: Added faux accessor for tool names. * src/libguppiplot/guppi-plot-canvas.c: Added code to pop up a GuppiPlotToolhelp when the question mark key is held down on a canvas. * src/libguppiuseful/guppi-plug-in.c (guppi_plug_in_find_inner): Made "stat() failed" messages only appear in very-verbose mode. * src/libguppiuseful/guppi-convenient.h: Added backwards-compatibility macros for gnome-print. * src/libguppiplot/guppi-alpha-template.c: Added #ifdef hacks to removed dependence on unrelease (though far superior) gnome-print v0.21. * plug-ins/data_impl/curve/guppi-curve-func-impl.c: Finished basic implementation of calculated curves. It works, but naming is all screwed up throughout data_impl: this needs to be fixed sooner rather than later. * plug-ins/data_impl/seq_scalar/func.c (guppi_seq_scalar_func_impl_set_arg): Added a bunch of calls to guppi_data_impl_changed() where needed. * src/libguppidata/guppi-data-impl.c (guppi_data_impl_changed): Added empty shell of definition for the implementation changed signal invocation function. Right now this does nothing. * src/libguppidata/guppi-curve.c (guppi_curve_get_bbox): Added fallback version of bounding box function. 2000-07-31 Jon Trowbridge * plug-ins/plot/text/guppi-text-state.c (guppi_text_state_set_text): Check if text has actually changed, like all of the other modifiers do. (This was causing a "signal cascade" in the new text configuration widget.) (guppi_text_state_set_outline_width): Changed the sematics of this function; it no longer does an implicit guppi_text_state_set_outline(foo, TRUE). (properties_tree): Added a semi-nice configuration widget that attaches to the property tree. * src/libguppiplot/guppi-alpha-template.c (guppi_alpha_template_text_general): Fixed bug which caused a segfault when attempting to rasterize the empty string. (guppi_alpha_template_print): If NULL is passed in as the alpha template to be printed to a GnomeCanvasBuf, just do nothing. * plug-ins/plot/axis/guppi-axis-print.c (print): Added code for printing axis legends. * src/libguppiuseful/guppi-convenient.c (guppi_tooltip): Added convenience function for tooltips. * plug-ins/plot/axis/guppi-axis-item.c (prepare_legend): Added code to rasterize legends. (render): If we have a legend already rasterized, paint it in the right place. * plug-ins/plot/axis/guppi-axis-state.h: * plug-ins/plot/axis/guppi-axis-state.c: Added get/set functions for legend-related data. * src/libguppiplot/guppi-plot-window.c (configure_request_cb): Changed how we deal with configure events; if we get a configure event on an unknown "configuree", don't pop up the properties window. * src/libguppiuseful/guppi-properties.h: * src/libguppiuseful/guppi-properties.c: The properties dialog now sucks considerably less. The selection control is now a GtkCTree (what was I thinking when I originally based it on a GtkTree?), producing something that both looks nicer and has nicer code. (The GtkCTree API is sort of messy, but it everything in there that you need; with the GtkTree, everything was an ass-backward hack.) 2000-07-30 Jon Trowbridge * src/libguppidataui/guppi-data-tree-view.c (button_press_event): All of the button press events were being swallowed up by the drag & drop code; added code to do the right thing if the tree expanders were being clicked. * plug-ins/plot/axis/guppi-axis-view.c (state_changed): Added call to guppi_geometry_calc_natural_size() on state changes. (This fixes a bug where axis items were not resizing properly when legends were added or removed.) * src/guppi/guppi-app.c (guppi_app_realize): We don't need to respond to "destroy" signals on the app... that just causes problems: gtk_signal_connect() call removed. * src/libguppiuseful/guppi-paths.c (guppi_glade_path_scan_dir): Annoying message about failed stat() calls now only shows up in "very-vebose" mode. * plug-ins/plot/scatter/guppi-scatter-state.c: Numerous changes to switch from using GuppiDataPickers to GuppiDataSelects in the state configuration dialog. (config_cb): Fix bug causing our dialog to not be properly initialized. * plug-ins/plot/boxplot/guppi-boxplot-item.c (data_drop): Added drag & drop support. * plug-ins/plot/boxplot/guppi-boxplot-state.c (guppi_boxplot_state_data, (guppi_boxplot_state_set_data): Added accessors for the boxplot's connected data item. * plug-ins/plot/axis/guppi-axis-item.c (data_drop): Added drag & drop support. * plug-ins/plot/axis/guppi-axis-state.h: * plug-ins/plot/axis/guppi-axis-state.c: (guppi_axis_state_set_data, guppi_axis_state_data, guppi_axis_state_init): A data object can now be tied to an access. * src/libguppiplot/guppi-plot-canvas.h: * src/libguppiplot/guppi-plot-canvas.c: Added a whole steaming pile of drag & drop support. You can now drop data onto individual plot elements. There are still some rough edges in terms of dealing with stacked elements and properly handling data acceptance. * src/libguppiplot/guppi-element-view.c (top_view_node_cb): Preliminary code for a nicer top-level configuration widget for views in the properties dialog. * src/libguppiplot/guppi-element-canvas-item.h: Added data_drop function to vtable. It is called when dragged data is dropped on the item. * src/libguppidataui/guppi-data-select.h: * src/libguppidataui/guppi-data-select.c: A new widget to replace GuppiDataPicker. Nicer (IMHO) and supports DnD. * src/libguppidataui/guppi-data-tree-view.h: * src/libguppidataui/guppi-data-tree-view.c: Added code to make this widget a drag source; individual rows of the ctree can be dragged as "guppi/data". * src/libguppiuseful/guppi-paths.c (guppi_glade_path): Added ".." to the search path for plug-ins, for convenience during development. 2000-07-25 Jon Trowbridge * plug-ins/data_impl/seq_scalar: Reorganized code & build, got rid of annoyingly long file names. * build-tools/gen-scm.pl (parse_scheme): Added "fn_d__d_d" type for use by binary seq_scalar functions. * configure.in: Deconvoluted the check for readline. I think it still works properly. * src/libguppidata/guppi-seq-scalar.c (guppi_seq_scalar_class_init): Added specification of implementation type via data_class->impl_type. This needs to be added for all of the various data types. * src/libguppidata/guppi-seq-scalar-impl.c: Added include to silence compiler warning. * src/libguppidata/guppi-data.h: * src/libguppidata/guppi-data.c: Cleaned up the implementation and API for our GuppiData virtual constructors. Added lots of paranoid checking of arguments. (guppi_data_is_read_only): Check to see if the implementation class is flagged as read-only. (guppi_data_can_change): Made to return !guppi_data_is_read_only(arg). * src/libguppiuseful/guppi-plug-in.c (guppi_plug_in_load): Remove extraneous punctuation from splash message. * src/guppi/guppi.c (main): Rename the --gpl arg to --license. It just makes more sense. * src/libguppiuseful/guppi-splash.c (guppi_splash_create): Gracefully handle the premature destruction of our splash window. (guppi_splash_text): Slightly shorten our"splash text". 2000-07-24 Jon Trowbridge * plug-ins/data_impl/seq_scalar/guppi-seq-scalar-calc-impl.c: Finished implementing transformed sequences. It all even seems to sort of work. * plug-ins/data_impl/seq_scalar/guppi-seq-scalar-calc-impl.h: Added prototypes for new transformed sequence constructors. * src/libguppidata/guppi-array.c: Further butchered to keep it compiling. This code does nothing useful, and needs to be rewritten properly. * src/libguppiuseful/guppi-fn-wrapper.c: A bunch of expressions g_return_val_if_fails() needs to take their != turned into ==. I'm such an idiot. * src/libguppiuseful/guppi-convenient.c (guppi_unref): Added anal check for non-zero refcount. 2000-07-23 Jon Trowbridge * src/guppi/guppi.c: Fixed splash messages to be two-lined. * plug-ins/data_impl/seq_scalar/guppi-seq-scalar-calc-impl.h: * plug-ins/data_impl/seq_scalar/guppi-seq-scalar-calc-impl.c: Minor tinkering. Still doesn't actually do anything. * plug-ins/plot/barchart/guppi-barchart-view.c (make_canvas_item): Removed hideous old "hacky_click" code. (guppi_barchart_view_find_bar_at_position): Convenience function to find which bar is at a given point. * plug-ins/plot/barchart/guppi-barchart-state.h: * plug-ins/plot/barchart/guppi-barchart-state.c: Removed the hated and feared "hacky_click" code. * plug-ins/plot/barchart/guppi-barchart-item.c (guppi_barchart_item_class_init): Added clicked_box signal. Removed old tool code. * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_class_init): Removed old tool code. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_class_init): Added state type name. * plug-ins/plot/scatter/guppi-scatter-item.c (guppi_scatter_item_class_init): Removed old tool code. * plug-ins/plot/frame/guppi-frame-state.c (guppi_frame_state_class_init): Added state name. * plug-ins/plot/legend/guppi-legend-state.h: * plug-ins/plot/legend/guppi-legend-state.c: Removed awful old "hacky_click" stuff. * plug-ins/plot/legend/guppi-legend-view.c (make_canvas_item): Removed crufty code related to the old "hacky_click" interface. * plug-ins/plot/legend/guppi-legend-item.c: Added clicked_box signal. * plug-ins/plot/pie/guppi-pie-tool.c: (guppi_pie_toolkit_default): New toolkit. (guppi_pie_toolkit_explode): New toolkit. (guppi_pie_toolkit_spin): New toolkit. * plug-ins/plot/pie/guppi-pie-item.c: Added clicked_slice signal. (guppi_pie_item_class_init): Removed old tool code, added definition of build_toolkit_vec. * plug-ins/plot/slinreg/guppi-slinreg-statviewer.c: Removed obsolete slinreg_test function. * plug-ins/plot/text/guppi-text-state.c (guppi_text_state_class_init): Added a state type name. * src/libguppitank/guppi-object-barchart.c: Removed all of the hacky old mouse click callback stuff; extended callbacks so that mouse-1, mouse-2 or mouse-3 double-clicks can be connected to for either bars or legend boxes. * src/libguppitank/guppi-object-pie.c: Removed all of the hacky old mouse click callback stuff; extended callbacks so that mouse-1, mouse-2 or mouse-3 double-clicks can be connected to for either slices or legend boxes. * src/libguppitank/guppi-object.h: * src/libguppitank/guppi-object.c: Added widget_init to the vtable, which is called on newly-built GuppiPlotCanvas objects and which is useful for connecting signal callbacks (like to trap double-clicks). * src/libguppiplot/guppi-plot-canvas.h: * src/libguppiplot/guppi-plot-canvas.c: Too much has changed to describe in detail. Added a pop-up configure-select menu. (guppi_plot_canvas_find_item_by_view): Lets you access a canvas item by view. Useful for connecting signal handlers and such. Totally new event dispatching off of mouse-click and keypress events (obtained by stealing key events from the top-level window) that does all of the right things to try to decide which tool should be applied to which item in stack of things below the point we clicked on. Handle the execution of an items double-click callback on a double-click event. * src/libguppiplot/guppi-plot-toolkit.h: * src/libguppiplot/guppi-plot-toolkit.c: Fixed up reference counting; tools added to a toolkit are now sunk. (guppi_plot_toolkit_get_key_tool): Support for keybindings. (guppi_plot_toolkit_set_key_tool): Support for keybindings. (guppi_plot_toolkit_add_to_toolbar): Code for adding a button corresponding to a toolkit to a toolbar like the one created by GuppiPlotWindow. * src/libguppiplot/guppi-plot-tool.h: * src/libguppiplot/guppi-plot-tool.c: Moved the generic tools out of this file and into guppi-basic-tools.[ch]. (guppi_plot_tool_first): Function to activate a tool. (guppi_plot_tool_middle): "Mid-life" processing for a tool. (guppi_plot_tool_end): Tool deactivation. All of the code activation/use/decativation was tangled up in the event processing code that used to be in the GuppiElementCanvasItem event dispatcher. (guppi_plot_tool_supports_item): Test if a tool can act on a given item. * src/libguppiplot/guppi-plot-window.c: Added configure requests to allow the associated properties window to open to a specific page. Added a toolbar that lets you flip between different toolkits in the associated GuppiPlotCanvas. * src/libguppiplot/guppi-element-canvas-item.c (guppi_element_canvas_item_vpath_vp2c): Handle coordinate transforms on an entire vpath with one function call. (guppi_element_canvas_item_vpath_pt2c): Another bulk coordinate transformer. * src/libguppiplot/guppi-element-canvas-item.h: Removed old tool-related stuff, added new tool-related stuff. Added build_toolkit_vec to the vtable so that items can declare a list of tools that can be used to manipulate them. Added a double-click handler to the vtable. * src/libguppiplot/guppi-geometry.h: * src/libguppiplot/guppi-geometry.c (guppi_geometry_contains): Added convenience function. * src/libguppiplot/guppi-element-view.c (guppi_element_view_properties_tree): Save the view in the properties node, so that we can later call up pages by view. * src/libguppidata/guppi-curve-impl.h: * src/libguppidata/guppi-curve-impl.c: Added sampling functions to the vtable. * src/libguppidata/guppi-curve.h: * src/libguppidata/guppi-curve.c: Further work fleshing out the API, and the beginnings of an actual implementation. * src/libguppidata/guppi-seq-scalar.c (do_range_query): Changed to use guppi_2sort. (guppi_seq_scalar_range_query): Changed to use guppi_2sort. * src/libguppiuseful/guppi-useful.defs (guppi_splash_message): Changed definition of guppi_splash_message binding to reflect new args. * src/libguppiuseful/guppi-properties.h: * src/libguppiuseful/guppi-properties.c: Added code to open properties widget to specific pages, which required some revamping of internals. This is all still fairly hacky. * src/libguppiuseful/guppi-python.c (guppi_python_init): Made the splash message two-lined. * src/libguppiuseful/guppi-plug-in.c (guppi_plug_in_load): Made splash message two-lined. * src/libguppiuseful/guppi-splash.h: * src/libguppiuseful/guppi-splash.c: Switched from a one-line to two-line splash message, which is much nicer: changed the guppi_splash_message() args to take two strings, and made some internal changes to make it all work. * src/libguppiuseful/guppi-guile.h: * src/libguppiuseful/guppi-guile.c: Added scm2fn_* functions to wrap up scheme procedures in a GuppiFnWrapper so that we can eval them in a language-independent way. I need to get Andrew to do similar constructions for Python when he gets back from the UK. * src/libguppiuseful/guppi-fn-wrapper.h: * src/libguppiuseful/guppi-fn-wrapper.c: I really wish that C had lambda expressions; then this sort of thing wouldn't be necessary... * src/libguppiuseful/guppi-convenient.h: * src/libguppiuseful/guppi-convenient.c: Added more small convenience functions --- guppi_sink(), guppi_unref0(), guppi_2sort(), guppi_3sort(), guppi_between(). 2000-07-19 Michael Meeks * build-tools/gen-scm.pl (parse_scheme): Really fix the problem with g_free. It seems most of the below is auto-generated =) 2000-07-18 Michael Meeks * src/libguppiuseful/guppi-guile.c s/g_free/free/ except in guppi_argv_free. * src/libguppiuseful/guppi-scm-useful.c: s/g_free/free/ * src/libguppidata/guppi-scm-data.c: s/g_free/free/ * src/guppi/app_scm.c (addsubtree): fix leak. s/g_free/free/ * src/libguppiplot/guppi-scm-plot.c: s/g_free/free/ * plug-ins/plot/text/guppi-scm-text.c (fn_scm_guppi_text_state_set_text): don't g_free memory not allocated with g_malloc; Fri Jul 14 16:08:34 2000 Jon Trowbridge * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_class_init): Added default binding for the toggle_log_scale tool. * plug-ins/plot/axis/guppi-axis-tools.c: Added tool for toggling between linear- and log-scaled axes. Wed Jul 12 16:40:36 2000 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-item.c (render): Check coordinate validity with respect to the view; skip invalid points. * plug-ins/plot/scatter/guppi-scatter-view.c (valid_range): Calculate the range of data elements, taking validity with respect to the view in to account. (preferred_x_range): Use valid_range(). (preferred_y_range): Use valid_range(). * src/libguppiplot/guppi-element-view.c (default_markers): Added smarter default markers functions. * src/libguppiplot/guppi-plot-tool.c (drag_cb): Perform our translation in conv-coordinates, to get the right effect in non-linear coordinate systems. * src/libguppiplot/guppi-element-view.h: Added guppi_element_view_valid_vp convenience macros. * src/libguppiplot/guppi-view-interval.h: More code related to log-scaled axes. They mostly work now; reciprocal scaling is still broken. * src/libguppiplot/guppi-axis-markers.c (guppi_axis_markers_populate_scalar): Add bounds checks as we attempt to add to our set of markers. (guppi_axis_markers_populate_scalar_log): Code for choosing a nice set of axis labels for log-scaled axes. This could still use some fine-tuning. Wed Jul 12 00:08:22 2000 Jon Trowbridge * plug-ins/plot: Lots of small changes to the plot plug-in init code, wrapping things in #ifdef HAVE_PYTHON. * src/guppi/guppi-app.c (guppi_app_setup_menus): Wrapped python scripting menu items and callbacks in #ifdef HAVE_PYTHONs. * src/libguppiuseful/guppi-useful.c: Accidentally left include of guppi-python-useful.h outside of the #ifdef HAVE_PYTHON directive. 2000-07-13 Michael Meeks * configure.in: Hack about; add -lbonobo-print, make python less verbose, add standard status stuff at the end. * src/libguppibonobo/guppi-bonobo.h (guppi_bonobo_init): kill redundant parameters. * src/guppi/guppi.c (main): don't create splash if we have been oaf activated. (real_main): only do bonobo_init if we are a factory process. * src/libguppibonobo/guppi-bonobo-print.[ch]: Implement. * src/libguppibonobo/guppi-embeddable.c (guppi_bonobo_embeddable_destroy): unref the plot on embeddable destruction. * src/libguppibonobo/guppi-bonobo.c (guppi_bonobo_factory): add print interface. * src/libguppibonobo/guppi-bonobo-view.c (guppi_bonobo_view_factory): whack the canvas into the view data. (guppi_bonobo_view_destroy): destroy the canvas. * src/libguppibonobo/guppi-embeddable.[ch]: Split view code. * src/libguppibonobo/guppi-view.[ch]: move it here * src/libguppibonobo/Makefile.am: Add guppi-view.[ch] 2000-07-12 Michael Meeks * src/libguppibonobo/guppi-embeddable.c (hello_bonobo_view_activate), (guppi_bonobo_view_class_init): hook in UI activation. * src/libguppiplot/guppi-alpha-template.c (get_gt1_font): define out. (guppi_alpha_template_text_general): update for GnomeFont (my_gt1_glyph_outline_lookup): define out. (my_art_drect_bpath): ditto. * plug-ins/plot/text/guppi-text-state.c (guppi_text_state_set_font_size): fix. * plug-ins/plot/text/guppi-text-state.h (guppi_text_state_font_size): fix. * plug-ins/plot/axis/guppi-axis-print.c (print): fix. Wed Jul 12 00:08:22 2000 Jon Trowbridge * src/libguppiplot/guppi-view-interval.c: Added some code related to transformed axes (for log-plots and such). * src/guppi/guppi.c (real_main): Reorder init sequence to call guppi_bonobo_init() last. This allows guppi to get fully initialized before responding to any bonobo requests. Tue Jul 11 21:57:15 2000 Jon Trowbridge * src/libguppibonobo/guppi-embeddable.c (guppi_bonobo_view_factory): Added code to construct a widget from the GuppiBonoboEmbeddable. (guppi_bonobo_embeddable_construct): Initialize our embeddables with a stupid canned demo. * src/libguppiplot/guppi-element-canvas-item.c (update, render): Check if the item's scale factor is >0 before executing its update/render code. Sun Jul 9 16:37:22 2000 Jon Trowbridge * src/libguppitank/guppi-object-pie.c (guppi_object_pie_set_arg, guppi_object_pie_class_init, build): Added parameters for controlling the fonts used in the plot. * src/libguppiuseful/guppi-useful.h: Added guppi-convenient.h. I hate doing this, because my next build is going to take forever... * src/libguppiuseful/guppi-convenient.h: * src/libguppiuseful/guppi-convenient.c: I'm sick and tired of doings all sorts of checks for NULL and casts to GTK_OBJECT when calling gtk_object_ref & gtk_object_unref, so I define some convenience functions that will do it for me. In the spirit of cutting down keystrokes, I also add the mildly abusive guppi_refcounting_assign() macro. * src/libguppitank/guppi-object-barchart.c (guppi_object_barchart_set_arg, guppi_object_barchart_class_init, build): Added parameters for controlling the fonts used in the plot. * src/libguppidata/guppi-seq-date.c (guppi_seq_date_new): Fixed typo. * src/libguppidata/guppi-seq-scalar-impl.c (v_seq_validate, v_seq_get, v_seq_set, v_seq_insert): Added default method definitions. * src/libguppiuseful/guppi-plug-in.c (guppi_plug_in_find, guppi_plug_in_find_all): Added routines to scan directory structure, return the locations of plug-ins. (guppi_plug_in_load_dir, guppi_plug_in_load_all): Changed to use the find routines to locate plug-ins to be loaded. * src/libguppiplot/guppi-seq-style.c (guppi_seq_style_new): Changed convenience constructor to call guppi_data_newv. * src/libguppidata/guppi-seq-string.c (guppi_seq_string_new): Changed convenience constructor to call guppi_data_newv. * src/libguppidata/guppi-seq-object.c (guppi_seq_object_new): Changed convenience constructor to call guppi_data_newv. * src/libguppidata/guppi-struct.c (guppi_struct_new): Changed convenience constructor to call guppi_data_newv. * src/libguppidata/guppi-seq-integer.c (guppi_seq_integer_new): Changed convenience constructor to call guppi_data_newv. * src/libguppidata/guppi-seq-date.c (guppi_seq_date_new): Changed convenience constructor to call guppi_data_newv. * src/libguppidata/guppi-seq-boolean.c (guppi_seq_boolean_new): Changed convenience constructor to call guppi_data_newv. * src/libguppidata/guppi-seq-scalar.c (guppi_seq_scalar_new): Changed convenience constructor to call guppi_data_newv. * src/libguppidata/guppi-data.c (guppi_data_newv): Added data constructor that uses the new implementation plug-in system. The constructor args are passed to the implementation. (guppi_data_new): var_args verison of guppi_data_newv. (guppi_data_impl): Because of the redesign of implemention handling, this function doesn't really do anything special anymore. * plug-ins/data_impl: * src/libguppidata: Moved all data type implementations into plug-ins, and added code to GuppiData so that specific implementations can be requested, and so that args can be passed to implementations. Fri Jul 7 13:48:11 2000 Jon Trowbridge * src/libguppidata/guppi-data.c (guppi_data_finalize): Move parent's finalize call to after local finalization. * src/libguppiplot/guppi-element-canvas-item.c (guppi_element_canvas_item_finalize): Fixed refcounting problem. * plug-ins/plot/scatter/guppi-scatter-style-view.c (guppi_scatter_style_view_finalize): Fixed a rather heinous memory leak. * plug-ins/plot/scatter/guppi-scatter-view.c (state_changed): Added some needed refcounting. (guppi_scatter_view_finalize): Fixed potential memory leak. (view_init): Fixed refcounting. * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_finalize): Fixed memory leak. * plug-ins/plot/boxplot/guppi-boxplot-item.c (guppi_boxplot_item_finalize): Fixed memory leak. * plug-ins/plot/legend/guppi-legend-item.c (guppi_legend_item_finalize): Fixed memory leak. * plug-ins/plot/linegraph/guppi-linegraph-item.c (guppi_linegraph_item_finalize): Fixed memory leak. * plug-ins/plot/pie/guppi-pie-item.c (guppi_pie_item_finalize): Fixed memory leak. * plug-ins/plot/text/guppi-text-item.c (guppi_text_item_finalize): Fixed memory leak. * plug-ins/plot/scatter/guppi-scatter-item.c (guppi_scatter_item_finalize): Fixed memory leak. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_finalize): Fixed memory leak. (guppi_axis_state_init): Fixed small refcount bug. * plug-ins/plot/barchart/guppi-barchart-state.c (guppi_barchart_state_finalize): Plugged small memory leak. * plug-ins/plot/legend/guppi-legend-state.c (guppi_legend_state_init): Fixed ref count bug. (guppi_legend_state_set_label_font): More anal type/NULL checking. (guppi_legend_state_finalize): Fixed small memory leak. * plug-ins/plot/pie/guppi-pie-state.c (guppi_pie_state_init): Fixed ref count bug. (guppi_pie_state_finalize): Fixed memory leaks. (guppi_pie_state_set_label_font): Better checks for NULL font. * plug-ins/plot/slinreg/guppi-slinreg-state.c (guppi_slinreg_state_finalize): Memory leaks. (guppi_slinreg_state_set_label_font): Extra checks for NULL font. * plug-ins/plot/text/guppi-text-state.c (guppi_text_state_finalize): Plugged memory leak. (guppi_text_state_set_font_size): Plugged memory leak. (guppi_text_state_set_font): Added extra checks for NULL font. Thu Jul 6 19:43:22 2000 Jody Goldberg * src/libguppiuseful/guppi-plug-in.c (guppi_plug_in_load_dir) : plugin file names now have the format guppi_*.so * plugins/*/Makefile.am : Added -module -avoid-version to decrease the number of files installed for each plugin. 2000-07-06 Andrew Chatham * src/libguppiuseful/guppi-python.c (color2py): Changed color conversion to return PyInt's only. Returning as lists doesn't work, which I'll look into. * build-tools/generate.py: Fixed memory leak. Previously all code was of the form "return convert_to_py(c_func(args,...))" This has all been changed so that arguments can be freed before returning if necessary (for argv). Still haven't actually tried any argv arguments, though. 2000-07-06 Michael Meeks * src/libguppibonobo/guppi-embeddable.c (guppi_bonobo_view_factory): set the view frame. (guppi_bonobo_embeddable_construct): handle errors nicely. Wed Jul 5 23:19:34 2000 Jon Trowbridge * src/libguppitank/guppi-object.c (guppi_object_new): Added bar charts to our virtual constructor. * src/libguppitank/guppi-object-barchart.c: Initial implementation of GuppiObject for bar charts. * src/libguppitank/guppi-object-pie.c: Added support for radius, radius_maximize, radius_lock args, and for separate legend callbacks. * src/libguppiplot/guppi-plot.defs: Added binding for guppi_element_view_set_event_blocking function. * src/libguppiplot/guppi-element-canvas-item.c (event_dispatcher): Hacked event dispatcher to abort if the block_event flag is set on the canvas item's associated view object. * src/libguppiplot/guppi-element-view.c (guppi_element_view_set_event_blocking): Added event blocking flag. * src/libguppidata/guppi-seq-object-core-impl.c (guppi_seq_object_core_impl_finalize): Fixed ordering of finalize function, stomping memory corruption bug. There are more of these lurking out there. :-/ * plug-ins/plot/legend/guppi-legend-state.c (guppi_legend_state_init): Made our default edge thickness narrower. * plug-ins/plot/legend/guppi-legend-print.c (print): * plug-ins/plot/legend/guppi-legend-item.c (render): Fixed bug in calculation of box_y_step when we only have one item in our legend. * plug-ins/plot/barchart: Finished core bar chart functionality. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_maximum_span): Commented out the rounding up of the the natural axis size, as it produces an annoying "flutter" in bar charts. Since it is useful in scatter plots, it should become an optional parameter. Mon Jul 3 12:55:00 2000 Jon Trowbridge * plug-ins/plot/barchart/guppi-barchart-state.c: One of the great truisms of coding is that if your code is too complex, you probably have failed to understand the question at hand. That was what happened to me during my first pass at bar charts; I tried to operate a bit too generally, and the extra functionality that I tried to provide (which was of at best dubious value) was creating all sorts of code complexity --- not to mention cases where it was difficult to see what the default behavior should be, and equally difficult to properly delegate that decision making to user-supplied code. This is a bad place to be, so a quick retooling of my existing code has led to great code simplification. But shed no tears for the lost functionality; if anyone should possibly still want do to things that way, you still can by properly manipulating your data beforehand and placing N barchart plug-ins in a row. * plug-ins/plot/axis/guppi-axis-print.c (print): Tweaked usage of guppi_axis_state_tick_properties(). * plug-ins/plot/axis/guppi-axis-item.c (prepare_labels): Tweaked usage of guppi_axis_state_tick_properties(). (render): Tweaked usage of guppi_axis_state_tick_properties(). * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_tick_properties): Made the label offset a calculated property. (It is nice to be able to stick a little extra space in for "tickless" axis markers.) (guppi_axis_state_label_shrink_to_fit_factor): Tweaked usage of guppi_axis_state_tick_properties(). (guppi_axis_state_maximum_span): Tweaked usage of guppi_axis_state_tick_properties(). 2000-07-03 Michael Meeks * src/libguppibonobo/guppi-embeddable.[ch]: Implement. 2000-06-30 Michael Meeks * src/guppi/corba_guppi.c (guppi_corba_init): add alternative init for oaf. 2000-06-28 Michael Meeks * src/guppi/guppi.c (main): add oaf options. * configure.in: Create lots of mess making the checks for Bonobo more stringent, and rolling an oaf check in too. * src/guppi/guppi.c (real_main): re-enable bonobo init. * src/libguppibonobo/guppi-bonobo.c: Fixed up and slightly less hobbled. * src/libguppibonobo/guppi-bonobo.h: update. * src/libguppibonobo/guppi.oafinfo: create. * src/libguppibonobo/Makefile.am: Add oaf install info. 2000-06-28 Michael Meeks * src/libguppiplot/guppi-plot-window.c (do_print_cb): Add preview. Sun Jul 2 21:19:41 2000 Jon Trowbridge * plug-ins/plot/barchart: Lots of hacking... it is starting to do things now. Nice things, IMHO. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_maximum_span): Fixed max size calculation to take rotation into account. * plug-ins/plot/axis/guppi-axis-view.c: Made our natural height/width functions work according to our new scheme. Connected signals so that our height/width get recalculated every time our associated axis markers change; this allows the axis to grow/shrink to accomodate changing marker sizes. * plug-ins/plot/boxplot/guppi-boxplot-view.c: Updated natural height/width functions. If we don't have any data connected, we set our height/width to zero, which is just a bit nicer. * plug-ins/plot/legend/guppi-legend-view.c: Fixed natural height/width functions to conform to our new scheme. * src/libguppiplot/guppi-plot.c (guppi_plot_schedule_layout): Add a function to set up an idle function with a call to guppi_plot_calc_layout(). * src/libguppiplot/guppi-plot-canvas.c (guppi_plot_canvas_add_item): When we add an item to our canvas, listen for it's geometry's "changed_position" signal and, when triggered, reposition it on the canvas accordingly. By doing this, we don't have to explicitly call position_item() in response to layout changes --- only for the scale changes that we are generating ourselves. * src/libguppiplot/guppi-element-canvas-item.c (guppi_element_canvas_item_set_bbox_c): Only call gnome_canvas_update_bbox() (and hence generate redraw requests, etc.) if our bounding box actually changed. * src/libguppiplot/guppi-layout.c (register_geom): When we register a geometry object, listen for its CHANGED_SIZE signal --- and if it changes size, recalc our entire layout. (build_vec): Replace direct access to GuppiGeometry innards by calls to guppi_geometry_natural_width() and guppi_geometry_natural_height(). (guppi_layout_recalc): Added function to re-calculate the layout using the same bounds as the previous call to guppi_layout_calc()... (guppi_layout_calc): ...so we need to save a copy of the bounds that we pass into guppi_layout_calc() for possible later use by guppi_layout_recalc(). * src/libguppiplot/guppi-element-view.c Added lots of paranoid checking of function args. (guppi_element_view_changed_size): Make guppi_element_view_changed_size() call guppi_geometry_calc_natural_size(). The emission of the CHANGED_SIZE signal is blocked for now; I should probably remove the GuppiElementView CHANGED_SIZE signal, because the GuppiGeometry encodes the size info and it is it's rightful place to throw around these signals. * src/libguppiplot/guppi-geometry.c: Retooled how natural heights and widths are handled, including rationalizing the callback signatures. guppi_geometry_calc_natural_size() now tries to calculate the natural w/h, and emits a CHANGED_SIZE signal if the values it comes up with are different than before. Natural sizes are cached so that multiple calls to guppi_geometry_natural_width() and guppi_geometry_natural_height() only call guppi_geometry_calc_natural_size() the first time. Fri Jun 30 00:07:15 2000 Jon Trowbridge * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_tick_properties): Added support for GUPPI_TICK_NONE type. * plug-ins/plot/frame/guppi-frame-item.c (render): Added support for GUPPI_TICK_NONE type. * src/libguppiplot/guppi-axis-markers.h: Added a new tick type: GUPPI_TICK_NONE, for labels w/o associated ticks. * plug-ins/plot/barchart/guppi-barchart-view.c (update_markers): Show axis markers as percentages when rendering stacked, normalized bars. * src/libguppiplot/guppi-axis-markers.c (guppi_axis_markers_populate_scalar): Added a style flag and support for displaying scalars as percentages. * src/guppi/corba_guppi.c (guppi_corba_shutdown): * src/libguppiuseful/guppi-exit.c (do_shutdown): (guppi_exit): Added verbosity check to console output. * src/guppi/guppi-app.c (guppi_app_setup_menus): Added a menu entry for the bar chart demo. (hacked_bar_cb): Added this callback for the bar chart demo.. * plug-ins/plot/barchart: More bar chart hacking. * src/libguppiplot/guppi-element-view.c (do_x_markers): Don't try to update our markers if our view doesn't have an associated state object yet. (do_y_markers): Ditto. * src/libguppiplot/guppi-layout.c (guppi_layout_vertically_adjacent): Another coordinate system fix. * src/libguppiplot/guppi-plot-canvas.c (guppi_plot_canvas_c2pt): Put in coordinate system reversal. (guppi_plot_canvas_c2pt): Put in coordinate system reversal. * src/libguppiplot/guppi-element-canvas-item.c (guppi_element_canvas_item_set_bbox_c): Rearrange the coordinates in the canonical order, if the necessary. * src/libguppiplot/guppi-plot.c (guppi_plot_print): Removed coordinate flip. Now that the pt coordinate system has been made consistent with postscript's conventions, it is no longer necessary. Thu Jun 29 11:10:44 2000 Jon Trowbridge * src/libguppiplot/guppi-layout.c (guppi_layout_natural_height): Fixed height calculation in relation to our correcting of the handedness of the pt coordinate system. (guppi_layout_flush_top): More coordinate system changes. (guppi_layout_flush_bottom): More coordinate system changes. * src/libguppiplot/guppi-geometry.h (guppi_geometry_height): Reversed sign to accomodate our (corrected) coordinate system. * src/libguppiplot/guppi-element-view.c (guppi_element_view_vp2pt): Fixed stupid typo. * src/libguppiplot/guppi-plot-canvas.c (guppi_plot_canvas_vertical_fit): Test for division by zero. (guppi_plot_canvas_horizontal_fit): Test for division by zero. (guppi_plot_canvas_pt2c): Test for division by zero. (guppi_plot_canvas_c2pt): Test for division by zero. * src/libguppiplot/guppi-element-canvas-item.h: * src/libguppiplot/guppi-element-canvas-item.c: Cleaned up all of the coordinate transforms, added new convenience functions. Simplified our use of macros. * src/libguppiplot/guppi-element-view.h: * src/libguppiplot/guppi-element-view.c: Rationalized coordinate transforms, adding code for dealing with the pt coor system. (This is our device-independent coor system in postscript points.) * src/libguppiplot/guppi-geometry.h: Added conv and unconv macros. * plug-ins/plot/barchart: Preliminary work on getting the bar chart to actually do something. I can now handle the rendering for any 2-d bar chart that Excel can do... or at least the crappy old version of Excel that I have handy. Data access is still canned, and guile bindings, accessors and printing are not provided --- but that really is the easy part. :-) Wed Jun 28 16:43:47 2000 Jon Trowbridge * src/libguppidata/guppi-seq-scalar-core-impl.c (guppi_seq_scalar_core_impl_finalize): Re-ordered chained call to parent. Added free()ing of the sorted copy of the data... a nice little memory leak. (v_seq_scalar_range_query): Added adjusted by index basis in the case of data w/o a sorted copy. * src/libguppidataui/guppi-data-picker.c (guppi_data_picker_rebuild): Fixed off-by-one error that caused data pickers to change values when new data was loaded. * src/libguppidata/guppi-seq-boolean-core-impl.c (v_seq_boolean_set_many): Added adjustment by index basis and a check that our index value is in range. * src/libguppidata/guppi-seq-scalar-core-impl.c (v_seq_scalar_range_query): Fixed a reversed inequality that was causing us to do extra work when the entire data set lay inside of our range query interval. * plug-ins/plot/pie/guppi-pie-print.c (print): Fixed to use round joins. (Problem pointed out by Bill Gribble.) 2000-06-28 Michael Meeks * src/libguppiplot/guppi-plot-window.c (do_print_cb): Add preview. Wed Jun 28 13:10:20 2000 Jon Trowbridge * src/libguppiplot/guppi-element-print.c (guppi_element_print_print): Oops... I forgot to remove some debugging code that framed each element when printing. * src/libguppiplot/guppi-plot-window.c (edit_prop_cb): Removed hard-wired size for properties window. * src/libguppiuseful/guppi-properties.c (select_child_cb): Fixed resizing problem with properties widget (at least partially). Tue Jun 27 00:40:16 2000 Jon Trowbridge * src/libguppiuseful/guppi-guile.c: Misc fixes for guile 1.3.0 compatibility. * build-tools/gen-scm.pl: Changed auto-generated code to support guile 1.3.x, x<4. * src/guppi/guppi.c (main): Moved the hard-wired monitor parameters into my .guppirc file, where they belong. * src/python-server/Makefile.am: Linking is screwed up with old versions of guile, due to the qthreads mess. (What does guile have to do with python-server, you ask? Good question.) * src/guppi/corba_guppi.c (scm_strport_to_string): See previous entry. * plug-ins/plot/slinreg/guppi-slinreg-state.c (properties_tree): Moved existing info widget into a properties tree, along with a placeholder for a configuration screen. * plug-ins/plot/scatter/guppi-scatter-state.c (properties_tree): Tied existing config widget into a properties tree node. This widget is too big: it should be split up into multiple "screens". For now, though, I'm happy to just have something working... * src/libguppiplot/guppi-element-view.c (guppi_element_view_properties_tree): Changed to automatically construct an element-level top node with the view and state nodes as children underneath. * src/libguppiplot/guppi-plot-window.c (edit_prop_cb): Changed so that there is always at most one properties widget per window: re-selecting the edit properties menu item just raises any existing window. * src/libguppiuseful/guppi-properties.c (add_page): Allow the widget constructor function to be NULL, which causes a placeholder label widget to be created. Mon Jun 26 08:29:41 2000 Jon Trowbridge * src/libguppidata/guppi-data-tree.c: Added #include to silence compiler warning. * src/libguppiplot/guppi-plot-window.c: Added an edit menu with a "Properties" option that creates and shows the plot canvas' properties dialog. * src/libguppiplot/guppi-plot-canvas.c (guppi_plot_canvas_properties_dialog): Get the property tree of the canvas' plot object and use it to build a dialog. * src/libguppiplot/guppi-plot.c (guppi_plot_properties_tree): Added; builds up the property tree for all the plot's component views. * src/libguppiplot/guppi-element-view.c (guppi_element_view_properties_tree): Call virtual function for creating the associated GuppiPropertiesNode for both the view and the associated state. If both return non-NULL, add the view's node as a child of the state's node. * src/libguppiplot/guppi-element-state.c (guppi_element_state_properties_tree): Call virtual function for creating the associated GuppiPropertiesNode. * src/libguppiuseful/guppi-properties.c (guppi_properties_construct): Show the page associated to the root tree node upon creation. * src/libguppiuseful/guppi-python.c (guppi_python_init): Removed C++-style comment which was confusing one of the gettext-related programs. * plug-ins/plot/scatter/guppi-scatter-item.c (guppi_scatter_item_finalize): Re-ordered destructor to avoid memory corruption. * src/libguppiuseful/guppi-useful.h: Added guppi-properties.h. * plug-ins/plot/boxplot/guppi-boxplot-item.c (update): When zooming in extremely close, the off-screen coordinates of the paths defining the box could get quite large, and this sometimes annoyed libart. To work around this, I've clamped the path coordinates to values just off the edge of the screen. (Part II of the fix for Bug#15054.) * plug-ins/plot/slinreg/guppi-slinreg-item.c (update): Fixed bug that caused the regression line's label to get "stuck" on the screen when the line itself was no longer visible. * src/libguppidata/guppi-seq-scalar-core-impl.c (v_seq_scalar_range_query): I must have been on crack when I first coded the simple bisection search here... I totally got it wrong. :-/ (Part I of the fix for Bug#15054.) * plug-ins/plot/legend/guppi-legend-item.c: Suppressed warning by adding forgotten #include. * src/libguppiuseful/guppi-guile.c: Removed some crufty looking stuff from the SCWM-copied chunk of code that seemed to be itself copied out of the fluid.h header of an old version of guile. Replaced it by #including fluid.h. (That stuff must not have been exported by guile way back when...) * build-tools/gen-scm.pl: Adjusted the auto-generated code to be both guile 1.3.x and 1.4.x compatible. (I'm particularly happy today that my guile bindings are auto-generated...) * plug-ins/plot/pie/guppi-pie-view.c (guppi_pie_view_effective_radius): Added support for radius_maximize parameter. * src/libguppitank/guppi-object-pie.h: * src/libguppitank/guppi-object-pie.c: Added support for legends, custom slice colors, slice/box click callbacks, etc. * plug-ins/plot/legend/guppi-legend-state.c: Added get_arg/set_arg access to the "hacky box click". * plug-ins/plot/legend/guppi-legend-view.c (make_canvas_item): When appropriate, the legend canvas item we construct has the "hacky box click" callback connected. * plug-ins/plot/pie/guppi-pie-state.c: Added get_arg/set_arg access to the "hacky slice click". Added radius_maximize parameter. * plug-ins/plot/pie/guppi-pie-view.c (make_canvas_item): When appropriate, the pie canvas item we construct has the "hacky slice click" callback connected. * src/libguppiplot/guppi-shared-hash.h: Added macro key for shared labels. Sun Jun 25 13:32:06 2000 Jon Trowbridge * src/libguppiplot/guppi-element-canvas-item.c (guppi_element_canvas_item_init): Construct the local toolkit. (guppi_element_canvas_item_finalize): Deallocate the local toolkit. * plug-ins/plot/pie/guppi-pie-view.c (make_canvas_item): Added support for hacked slice click tool. * plug-ins/plot/pie/guppi-pie-item.c (update): Updaed for new font rasterize parameters. * plug-ins/plot/axis/guppi-axis-item.c (prepare_labels): Updated for new font rasterizer parameters. * plug-ins/plot/text/guppi-text-item.c (set_template): Updated for new alpha template behavior. * src/libguppiplot/guppi-raster-text.c (guppi_raster_text_rasterize_full): Changed font size parameter to a scale factor, as per our changes in the alpha template. * src/libguppiplot/guppi-alpha-template.c (guppi_alpha_template_text_general): Removed last remnant of my ass-backwards way of separating fonts and font sizes. The size parameter is the alpha template text rasterizer is now just a general scale factor. * src/libguppiplot/guppi-layout.c (guppi_layout_calc): Clamp calculated coordinate values, to keep objects from "falling off the page." * src/libguppiuseful/guppi-properties.c: Added code for "properties edit" widget w/ a tree menu to control which page to look at. * src/guppi/guppi.c (real_main): Hard-wired in a guppi_set_monitor_size() call for my specific monitor. :-/ This information needs to get moved to a conf file. * plug-ins/plot/legend: Preliminary implementation of legend objects. The basic rendering code is done, but much of the state is still hard-wired. * plug-ins/plot/scatter/guppi-scatter-item.c (update): Simplified code by using the guppi_seq_grow_to_include_range() function to alloc our local visibility masks. * src/libguppidata/guppi-seq-boolean-core-impl.c (v_seq_grow_to_include): Added grow_to_incude vfunction. * src/libguppidata/guppi-seq.c: Added the various grow_to_include functions. * src/libguppidata: Added code for a GuppiSeqObject type. * src/libguppidata/guppi-seq-scalar.c (guppi_seq_scalar_insert_many): Changed to use new insert_many semantics. (guppi_seq_scalar_insert_repeating): Added. (guppi_seq_scalar_prepend_many): Added. (guppi_seq_scalar_prepend_repeating): Added. (guppi_seq_scalar_append_many): Added. (guppi_seq_scalar_append_repeating): Added. * src/libguppidata/guppi-seq-scalar-impl.c * src/libguppidata/guppi-seq-scalar-core-impl.c (v_seq_scalar_insert_many): Changed insert_many semantics to take a pointer and a stride, rather than just an array of doubles. This is somewhat more flexible. Also added grow_to_include vfunction. Fri Jun 23 17:43:53 2000 Jon Trowbridge * plug-ins/plot/legend: Added most of the standard boilerplate code. It still doesn't do anything. * plug-ins/plot/*/init.c (guppi_plug_in): Check for guile and python with the guppi_supports_*() commands, and only init the bindings for the languages if the scripting languages are active. * src/libguppiplot/guppi-layout.h: * src/libguppiplot/guppi-layout.c: * src/libguppiplot/guppi-plot.h: * src/libguppiplot/guppi-plot.c: * src/libguppiplot/guppi-plot.defs: Added guppi_layout_width_equals_height() and the associated guppi_plot_layout_width_equals_height(). * src/guppi/guppi.c (real_main): Changed our --script option to call guppi_execute_script(filename). Thus guppi will figure out what language the script is in and do the right thing. * src/libguppiuseful/guppi-scripting.h: * src/libguppiuseful/guppi-scripting.c: Added a unified set of operations for dealing with scripting. * src/libguppidata/guppi-seq-scalar-core-impl.c (v_seq_scalar_range_query): Optimized for the case when the range of our data is entirely within the range of our query. * plug-ins/plot/scatter/guppi-scatter-item.c (render): Added raw array access for our GuppiSeqScalar items. Tuned our usage of visibility bit masks. This all should (theoretically) speed things up a bit, but our main bottleneck remains moving RGB data between the X client and the server. Thu Jun 22 00:46:30 2000 Jon Trowbridge * plug-ins/plot/boxplot/guppi-boxplot-print.c (print): Do nothing if we aren't in a ready state. (This was causing stray marks to appear when printing a "blank" plot.) * plug-ins/plot/axis/guppi-axis-print.c (print): As coded, it wouldn't show labels if the tick was not shown. This was wrong, as is now fixed. * plug-ins/plot/axis/guppi-axis-item.c (render): Replaced big switch statement with call to guppi_axis_state_tick_properties(). * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_tick_properties): Moved the resolution of tick properties here (from the canvas item and print object), thus eliminating some ugly code duplication. * plug-ins/plot/axis/guppi-axis-state.c (guppi_axis_state_get_arg, guppi_axis_state_set_arg, guppi_axis_state_class_init, guppi_axis_state_init): Added "shrink_labels_to_fit" and "label offset" variables. * plug-ins/plot/pie/guppi-pie-state.c (guppi_pie_state_get_arg, guppi_pie_state_set_arg): Added arg processing for our radius_lock variable. * plug-ins/plot/pie/guppi-pie-item.c (guppi_pie_item_in_slice): Fixed idiotic typo. Wed Jun 21 14:23:31 2000 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-item.c (update, render): Hacked on how the range queries are done, trying to goose the performance up a bit. (Cesar Talon observed that Guppi seemed to have gotten a bit slower in its screen updates since I retooled the internals.) * src/libguppiplot/guppi-geometry.h (guppi_geometry_width, guppi_geometry_height): Added semi-useful macros. * plug-ins/plot/pie/guppi-pie-tool.c: Add "change radius" tool, borrowing code from explode_all(). * plug-ins/plot/pie/guppi-pie-item.c (update): Use the new guppi_pie_view_effective_radius() function to determine the radius of our rendered slices. (guppi_pie_item_class_init): Connect up our new "change radius tool" to mouse-3. (guppi_pie_item_in_slice): Use the effective_radius() function to determine which slice we are in. * plug-ins/plot/pie/guppi-pie-view.c (guppi_pie_view_max_radius): Calculates the maximum possible radius for this view of the pie chart that doesn't result in us spilling outside of the bounds of our plot. (guppi_pie_view_effective_radius): Calculates what radius to render the pie chart with, considering all factors. * plug-ins/plot/pie/guppi-pie-state.c (guppi_pie_state_init): Made the new radius_lock value default to TRUE. (guppi_pie_state_set_radius_lock): Added an accessor for the radius lock variable. * src/libguppidata/guppi-seq-scalar-core-impl.c: Added a cached sorted index of the data for optimized range queries. The sorted index is created on the first range query, but then a waiting period is imposed --- after it is invalidated, N range queries will be made using the less efficient O(N) algorithm before the new index is generated. This way we won't thrash creating and destroying sorted indices when doing some like (for example) dragging a point around a scatter plot. I think that this is rather clever. It remains to be seen how it works out in practice. (v_seq_scalar_range_query): Added a range query function that will use the sorted index of the data if available, and otherwise just scans the whole array. * src/libguppidata/guppi-seq-boolean-core-impl.c (v_seq_boolean_set_many): Added a "set many" function for the core bool sequence implementation. * src/libguppidata/guppi-seq-boolean-impl.h: Added virtual function for set_many to GuppiSeqBooleanImpl. * src/libguppidata/guppi-seq-boolean.h * src/libguppidata/guppi-seq-boolean.c (guppi_seq_boolean_set_many): Added front-end for "set many" routine, which allows N bits to be set w/ (if the implementation supports it) only one virtual function call. * src/libguppidata/guppi-data-importer-plug-in.c: Added #include to silence compiler warning. * plug-ins/plot/boxplot/guppi-boxplot-item.c (update): Libart has moved its annoying "colinear" spew from stdout to stderr (which is progress, I guess)... so now I redirect stderr to /dev/null rather than stdout when stroking the boxplot frame. Mon Jun 19 21:01:48 2000 Jon Trowbridge * src/guppi/guppi-app.c (guppi_app_setup_menus): Fixed moronic typo. * src/libguppitank/guppi-object-pie.c (add_arg): Changed args to be write-only. Facism reigns in libguppitank. * src/libguppimath/guppi-equation-parser.y: * src/libguppimath/guppi-equation-lexer.ll: #included some standard headers to get rid of scary compiler warnings... * src/guppi/pie-demo.scm (pie-demo): Adjusted size parameters. * src/guppi/guppi-app.c (guppi_app_setup_menus): Added menu item for canned pie chart demo. * src/libguppitank/guppi-object-pie.c: A simple abstraction layer for building pie charts. It needs more features, as does the pie chart plug-in. * src/libguppitank/guppi-object.c (guppi_object_build_widget): The signal is called "size_allocate", not "size_alloc". Duh. (guppi_object_new): Fix conditional: things go wrong if klass->build == NULL, not != NULL. Add horizontal & vertical size as arguments to the build virtual functions. guppi_plot_set_size() has to be called *last*, after the plot has been built up, so that it can do the layout. I was calling it before the GuppiPlot was fully constructed, with the expected bad results. * src/libguppitank/guppi-tank-init.c (guppi_tank_init): Add everything we need to get guppi up and running. Guile stuff is not activated. * src/libguppiuseful/guppi-useful.c (guppi_useful_init, guppi_useful_init_without_guile): Add a function that will initialize the library without doing any guile initialization. * src/libguppiplot/guppi-plot-init.c (guppi_plot_init): * src/libguppiplot/guppi-stat-init.c (guppi_stat_init): * src/libguppidata/guppi-data-init.c (guppi_data_init): Check that guile is active before initializing bindings. * plug-ins/plot/pie/guppi-pie-state.c (guppi_pie_state_get_arg, guppi_pie_state_set_arg, guppi_pie_state_class_init): Added access to the carried state via GtkObject args. * plug-ins/plot/*/init.c (guppi_plug_in): Check to see if guppi_guile_is_active() returns true before initializing our guile bindings. This is a good thing to do if, for example, you are embedding guppi in a program that does not embed guile, or if you don't want to export guppi's huge guile interface. Mon Jun 19 21:11:10 2000 Andrew Chatham * plugins/plot/*/*.defs: Removed "(plugin 1)" options and added objects to scatter.defs to allow class identification in Python. * python-modules/Guppi/compilefile.py: Will now precompile __init__.py files. * python-modules/Guppi/plot/[end|start].py: To make up for removing "(plugin 1)" from defs files. * src/libguppiuseful/guppi-python.c (py_compass_check) (guppi_python_type_name): Removed some g_free statements which were unneccessary and causing segfaults. Also removed commented-out (PyGuppiFlag_get_value) and (guppi_python_register_classes) * src/guppi/hacked-scatter-demo.py: Removed duplicate lines and typo which caused segfault. * build-tools/generate.py: Stores return value from C function in temporary variable. Necessary so we can free argv arguments before returning [freeing not yet implemented]. Sun Jun 18 00:14:42 2000 Jon Trowbridge * Applied a big patch from Andrew Chatham that provides auto-generated Python bindings. There are still a few kinks to be worked out, but otherwise very cool. * src/libguppiplot/guppi-alpha-template.c (my_art_drect_bpath): Copied definition from gnome-print, since it has become static in that lib. This is all hackiness caused by the lack of an exposed API that can be used to rasterize nice fonts... * src/libguppiplot/guppi-element-canvas-item.c (guppi_element_canvas_item_class_init): Fixed default zoom in/out mouse bindings to match the way they were in the 0.34.x releases. (Somewhere along the way I reversed them by mistake...) * plug-ins/plot/scatter/guppi-scatter-tools.c (find_point_to_drag): Save point to be dragged in an int_arg, not a ptr_arg. Duh. * plug-ins/plot/pie/guppi-pie-tool.c (guppi_pie_tool_new_slice_callback): Added tool that executes a callback (with the slice # as an arg) upon clicking. * src/libguppiplot/guppi-plot-tool.h: Add more space to stuff state in GuppiPlotTool. * plug-ins/plot/scatter/guppi-scatter-style-view.c (variable_mixed_lookup): Added a template cache for mixed size gradients (i.e. for variable size1 and size2 systems). The way this is done is a little hacky and strange, but it works so I'm not complaining. In any case, everything ugly is hidden behind the interface, so I could clean it up later without hurting anything else. * plug-ins/plot/pie/guppi-pie.defs: Added bindings for label stuff. * plug-ins/plot/pie/guppi-pie-item.c (update): Added code to rasterize, cache, and render percentage labels. * plug-ins/plot/pie/guppi-pie-print.c (print): Added code to print percentage labels. * plug-ins/plot/pie/guppi-pie-state.c: Added state elements corresponding to percentage labels. * src/libguppiplot/guppi-color-gradient.c: Added the fairly hacky guppi_color_gradient_set_intensity() & guppi_color_gradient_set_alpha() functions, to simplify UI stuff. All of this color gradient stuff is going to have to be redesigned eventually, as it is already sort of crufty. * plug-ins/plot/scatter/guppi-scatter-style.c (connect_signals): Connected the alpha & intensity spinners to the UI. (I'd forgotten to do so this morning...) Sat Jun 17 14:30:50 2000 Jon Trowbridge * src/libguppiplot/guppi-element-print.c (guppi_element_print_get_bbox_vp): Added parallel to the GuppiElementCanvasItem routine. * plug-ins/plot/slinreg/guppi-slinreg-item.c (update): Removed old center-of-segment calc (which was wrong anyway) and replaced it will a call to the new common routine. * plug-ins/plot/slinreg/guppi-slinreg-common.c (guppi_slinreg_segment_endpoints): Moved the "center of visible line segment" calculation into a common file to be shared by both the canvas item and the printing code. * plug-ins/plot/slinreg/guppi-slinreg-print.c: Implemented printing for simple linear regression objects. * src/libguppiplot/guppi-shared.c (set_traverse_fn): I forgot that this has to be able to deal with being passed either a GtkObject or NULL. Thus using GTK_OBJECT() wasn't too smart. * plug-ins/plot/slinreg/init.c (guppi_plug_in): Re-enabled guile bindings for simple linear regression plug-in. * src/guppi/guppi-app.c (hacked_scatter_plot_cb): Removed embedded guile code: now we eval the contents of the file scatter-demo.scm. * src/libguppiuseful/guppi-paths.c: Added guppi_find_guile_script() to hunt for system-installed guile code. * plug-ins/plot/scatter/guppi-scatter-view.c (view_init, state_changed): Hacked to track the data our scatter state holds, and to change to the preferred view on that axis whenever the x- or y-data changes. This seems to be the desirable interactive behavior. * src/libguppiplot/guppi-element-state.c (guppi_element_state_make_view): Added call to view_init hook after a newly constructed view object has the parent state attached. * src/libguppiplot/guppi-element-view.h: Added view_init hook. * src/libguppiplot/guppi-style.h: Added style-object specific edit widgets. * plug-ins/plot/pie/guppi-pie-item.c: Changed to #include libart.h, rather than individual libart headers. * plug-ins/plot/scatter/guppi-scatter-style.c: Added custom style editor widget. Added support for cool new color gradients. * plug-ins/plot/scatter/guppi-scatter-style-view.c (variable_size1_lookup, variable_size2_lookup): Fixed ref counting glitch. Hacked to use new color gradients. * plug-ins/plot/scatter/guppi-scatter-state.h: Changed semantics for specifying "spread" of a size gradient. * src/libguppiplot/guppi-style.h: Added objectified color gradients. Fri Jun 16 01:50:58 2000 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-item.c (update): (render): Changed slack in window queries from a constant to a quantity that estimates the maximum size of any marker. This keeps larger markers from being partially truncated during redraws. * plug-ins/plot/scatter/guppi-scatter-state.c (guppi_scatter_state_init): Connect the scatterplot's state's "changed" signals, so that the plot will refresh on style changes. I forgot to do this previously... Thu Jun 15 18:56:54 2000 Jon Trowbridge * src/libguppiplot/guppi-layout.c: Added the hbox2, hbox3, vbox2 and vbox3 layout commands. Having these really cuts down on the number of layout instructions needed to produce common arrangements of plot elements. * src/libguppiplot/guppi-plot.c (guppi_plot_add_element): Don't add the same GuppiElementView to a GuppiPlot twice. * src/libguppiplot/guppi-plot.h: Changed the guppi_plot_layout_*()s from macros to functions with proper paranoid type checking. These wrapper functions now automatically call guppi_plot_add_element() on all GuppiElementView arguments. * src/libguppiplot/guppi-plot.defs: Removed bindings for annoying GuppiLayout GuppiElementView-layout convenience macros. * src/libguppiplot/guppi-layout.h: Removed annoying GuppiLayout GuppiElementView-layout convenience macros. * src/guppi/guppi.c (main): Fixed the batch-mode start-up sequence to init only the non-graphical parts of Gnome. Guppi can now truly be used to batch-generate postscript plots without a X server running. * src/libguppiplot/guppi-style.c (guppi_style_stock): Replaced a ref to gdk_color_lookup with guppi_str2color_rgba. * src/libguppiuseful/guppi-guile.c (scm2color): (scm_color_p): Replaced refs to gdk_color_lookup with guppi_str2color_rgba. * src/libguppiuseful/guppi-rgb.c (guppi_str2color_rgba): Added an alternative to gdk_color_lookup, which will (try to) work w/o an X server. 2000-06-15 Yuri Syrota * configure.in: Added "uk" to ALL_LINGUAS. Thu Jun 15 00:01:25 2000 Jon Trowbridge * AUTHORS: Added Andrew Chatham, who is working on python bindings, to the list. * src/libguppiplot/guppi-plot.defs: The generic language bindings specs just keep coming. * src/libguppiplot/guppi-element-canvas-item.c (event_dispatcher): Fixed the radius of the circular cue item to correctly be converted from pts to pixels. * src/libguppiplot/guppi-style.c (guppi_style_copy): Added a way to (as the name suggests) copy the state of one style to another. (guppi_style_stock): Stock styles now work properly. Wheee! * src/libguppiplot/guppi-shared-hash.h: Added canned symbols for shared color and size data. * src/libguppiplot/guppi-layout.c (guppi_layout_calc): Removed some debug spew. Good riddance. Wed Jun 14 23:32:53 2000 Jon Trowbridge * src/libguppiplot/guppi-marker.c: Added template-generating functions. Some of our size variables are probably a bit off. (generic_print_circle): I'm annoyed that gnome-print makes us draw our own circles out of line segments. My previous implementation did this in a not-very-careful way, so I went way overboard in the # of segments per circle I used, resulting in big .ps files and slow printing time (at least on my 7-year-old HP Laserjet). I've added some logic that tries to do things in a more rational way, calculating the # of segments to use based on keeping the error (the deviation from circle-ness) below a maximum threshold. * src/libguppiuseful/guppi-splash.c (guppi_splash_message): Changed to respect the global verbosity level. * src/libguppiuseful/guppi-rgb.h: Added macro-ified color interpolation. Fixed the pixel-painting macros to do the right thing if accidentally handed an alpha channel > 0xff. * src/libguppiuseful/guppi-debug.c: Added functions for setting/getting a global verbosity level. * src/libguppidata/guppi-seq-boolean-core-impl.c (v_seq_boolean_range_query): Made a bunch of grotty, low-level optimizations to our core range query implementation. I'm firmly in "shave off a few instructions here and there" territory with these changes. * src/guppi/guppi.c (main, real_main): More start-up sequence decrufting. Added verbosity control, so we don't get all of that spew every time we start up. * plug-ins/plot/text/guppi-text-print.c: Removed some unused boilerplate code relating to args and destroy signals. * plug-ins/plot/pie/guppi-pie-print.c (print): Changed to use the slice colors and edge color specified in the state object.o * plug-ins/plot/pie/guppi-pie-state.c: Added infrastructure for multi-color slices. * plug-ins/plot/boxplot/guppi-boxplot-print.c (print): Implemented printing for boxplots. * plug-ins/plot/scatter/guppi-scatter-view.c (guppi_scatter_view_class_init): Defined a print type. * plug-ins/plot/scatter/guppi-scatter-state.c: Added accessors & modified for style data, color data, size data. * plug-ins/plot/scatter/scatter.defs: Added tons of new bindings for scatter styles, etc. * plug-ins/plot/scatter/guppi-scatter-style-view.c: Most of the hairy logic that made the old guppi scatter rendering code so ugly has been encapsulate in GuppiScatterStyleView objects now. Basically, we use these for all style-specific cacheing (like storing & reusing alpha template). This has turned out to be a big de-crufter, and has made new optimizations possible. For example, doing a cache of N alpha templates associated with size gradients was just too convoluted before, so I never implemented it. Now it is actually not too bad. * plug-ins/plot/scatter/guppi-scatter-style.c: This is basically a total re-write to integrate with our new GuppiStyle notion. * plug-ins/plot/scatter/guppi-scatter-item.c (guppi_scatter_item_class_init): Attached some of our scatter tools to mouse buttons. (render): Finally implemented new optimized rendering code that allows for multiple styles & brushing. * plug-ins/plot/scatter/guppi-scatter-tools.c: Finally ported to our new (well, not so new anymore) framework. * plug-ins/plot/linegraph/guppi-linegraph-print.c (print): Implemented printing for line graphs. * plug-ins/plot/frame/guppi-frame-view.c (guppi_frame_view_class_init): Defined our print type. * plug-ins/plot/frame/guppi-frame-print.c: Implemented a printing class for the frame plug-in. * plug-ins/plot/frame/guppi-frame-state.c (guppi_frame_state_get_arg, guppi_frame_state_set_arg, guppi_frame_state_class_init): Added args for all of our frame's internal state. * plug-ins/plot/axis/guppi-axis-print.c (print): Fixed label positioning. Sun Jun 11 00:33:25 2000 Jon Trowbridge * src/guppi/guppi.c (main, real_main): Cleaned up and rationalized Guppi's start-up sequence. * plug-ins/plot/pie/guppi-pie-state.c (soff_insert_cb): Fixed bug in the code that keeps our slice offset sequence in sync with our data sequence. Sat Jun 10 23:07:46 2000 Jon Trowbridge * src/libguppiuseful/guppi-guile.c (guppi_guile_init): Gettextized a few messages. * src/libguppiuseful/guppi-useful.c (guppi_useful_init): Added call to guppi_python_init(). * src/libguppiuseful/guppi-python.c: Framework (still empty) for Python bindings. Fri Jun 9 14:43:23 2000 Jon Trowbridge * plug-ins/plot/pie/guppi-pie-item.c (update): Changed to use edge width specified in state object. (render): Changed to use colors specified in state object. * plug-ins/plot/pie/guppi-pie-state.c: Added state variables for edge & default colors, edge width. * src/libguppiuseful/guppi-plug-in.h (GUPPI_PLUG_IN_MAGIC_NUMBER): I guess I've changed enough stuff to warrent incrementing the plug-in magic number. * src/guppi/guppi.c (main, real_main): Hacked to not display splash screen when command line args like --help or --usage are given. Based on a patch by Andrew Chatham. Wed Jun 7 23:49:17 2000 Jon Trowbridge * src/guppi/hacked-scatter-demo.scm: Added marginal boxplots to the demo. * src/libguppiplot/guppi-element-view.c (delayed_changer, guppi_element_view_changed_delayed, guppi_element_view_flush_changes): Fixed small bugs in the freeze/thaw and delayed signal interaction. * plug-ins/plot/pie/guppi-pie-state.c: Restructured to allow the (internal) pie slice offset sequence to stay in sync with changes to the data sequence that determines the proportional size of the pie slices. * src/libguppidata/guppi-seq-scalar.c: * src/libguppidata/guppi-seq-boolean.c: Added support for the new fine-grained GuppiSeq signals. * src/libguppidata/guppi-seq.c: Added fine-grained "changed" signals for sequences. Mon Jun 5 08:45:16 2000 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-style.c (guppi_scatter_style_paint): Changed to look for the visibility mask in the canvas item, not in the view. * plug-ins/plot/scatter/guppi-scatter-view.c: Excised the visibility calculations. * plug-ins/plot/scatter/guppi-scatter-item.c (update): Moved the calculation of the visibility mask into the update routine, where it belongs. The visibility calculation in the scatter plot now works again. * plug-ins/plot/pie/guppi-pie.defs: Added bindings for the slice offset functions. * plug-ins/plot/pie/guppi-pie-state.c: Added gadgetry to record/change individual slice offsets. Fine-tuned the semantics of the offset functions; I think that the interaction between the base offset and the individual slice offsets is more intuitive now. * plug-ins/plot/pie/guppi-pie-tool.c: Added a tool to allow individual slices to be dragged/"exploded". * plug-ins/plot/pie/guppi-pie-print.c: Basic printing now works. Wheee! * plug-ins/plot/pie/guppi-pie-item.c (guppi_pie_item_in_slice): Fixed a few bugs. I'm happy I was paying attention in school during trigonometry. * src/libguppiplot/guppi-plot.defs: Added bindings for the GuppiElementView's preferred view functions. * src/libguppiplot/guppi-shared.c: Modified the "changed_held" signal to pass the old object as an arg. * src/libguppiplot/guppi-plot-window.c: Created distinction between linked and unlinked views. Unlinked views don't really work properly right now. * src/libguppiplot/guppi-plot-tool.h: Added int_arg1 and int_arg2 to GuppiPlotTool -- more places to stuff state information for tools. Also added a "preferred view" tool. * src/libguppiplot/guppi-element-view.c: Added the preferred_x_range and preferred_y_range hooks in GuppiElementViewClass, and the code necessary to have them automagically get called when guppi_element_view_set_preferred_x_view() or guppi_element_view_set_preferred_y_view() are called. * src/libguppiplot/guppi-view-interval.c (guppi_view_interval_class_init): Added "preferred_range_request" signal, and the guppi_view_interval_request_preferred_range() and guppi_view_interval_grow_to() functions. * src/libguppiuseful/guppi-useful.defs: Added bindings for the functions from guppi-metrics. * src/libguppiuseful/guppi-splash.c: Decreased minimum splash time to 10 seconds. * src/libguppiuseful/guppi-rgb.c (guppi_paint_wide_line): Added a ultra-simple non-anti-aliased 1-pixel-wide line draw as a proxy for a better algorithm, which will have to be implemented later. * src/libguppiuseful/guppi-rgb.h: Added convenience macros UINT_RGBA_R, UINT_RGBA_G, UINT_RGBA_B, UINT_RGBA_A. * src/libguppiuseful/guppi-metrics.c (guppi_px2pt): Added average of guppi_x_px2pt and guppi_y_px2pt. Sat Jun 3 18:08:29 2000 Jon Trowbridge * src/libguppiplot/guppi-element-state.c (guppi_element_state_make_view): Added support for a view_type arg rather than requiring a make_view function to be defined. * src/libguppiplot/guppi-element-view.c (guppi_element_view_make_print): Fixed typo in warning message. * src/libguppidata/guppi-seq.c: * src/libguppidata/guppi-seq-boolean.c: I'd forgotten to have some of the modifiers emit the proper changed signals. Oops. * plug-ins/plot/text/guppi-text-state.c: Added forgotten #include to silence warning. Fri Jun 2 22:48:08 2000 Jon Trowbridge * src/libguppiuseful/guppi-version.c (guppi_copyright, guppi_developers): Added access to embedded copyright and developer info . * src/libguppiuseful/guppi-splash.c (guppi_splash_text): A text "splash" message. * src/libguppiuseful/guppi-metrics.c (guppi_pt2px): Average of guppi_x_pt2px and guppi_y_pt2px, an approximation that is useful in some cases. After all, everything isn't always axis-aligned. * src/libguppiuseful/guppi-guile.c: Added macros for SCM<->compass operations. * src/libguppiuseful/guppi-enums.c (guppi_compass2str): Fixed spelling error. * src/libguppiplot/guppi-plot.defs: Added a bunch more bindings. * src/libguppiplot/guppi-plot.c: Added "changed_layout" signal and associated machinery. * src/libguppiplot/guppi-plot-window.c: Changed (simplified, I might add) to coordinate with the un-fucking of GuppiPlotCanvas. * src/libguppiplot/guppi-plot-canvas.c: The way this widget behaved in response to resizing was totally fucked. Ripped all of the crap out and put it together properly this time. (realize): Made our canvas have a white background. Much nicer. * src/libguppiplot/guppi-layout.c (solve, guppi_layout_calc): Gracefully handle the case of an empty layout. * src/libguppiplot/guppi-element-print.c (guppi_element_print_get_bbox): Encapsulation function. (guppi_element_print_vp2pt): Fixed typo. (guppi_element_print_setrgbacolor): Convenience function. (guppi_element_print_setrgbacolor_uint): Convenience function. * src/libguppiplot/guppi-axis-markers.c (guppi_axis_markers_populate_scalar): Added some rules, to keep life interesting. * src/guppi/guppi.c (main, real_main): Hacks to make --batch and --script command line args work properly. * src/boilermaker.pl: Fixed placement of #include in auto-generated code. Thu Jun 1 08:56:06 2000 Jon Trowbridge * src/libguppiplot/guppi-plot.defs: Updated and expanded to reflect all of the recent changes. * src/libguppiplot/guppi-plot-window.c (do_print_cb, print_cb): The print button now does something. Wheee! * src/libguppiplot/guppi-plot.c (guppi_plot_print): Paint our plot to an arbitrary print context. (guppi_plot_print_ps_to_file): A convenience function: dump a postscript version of our plot to the given filename. (guppi_plot_show_in_window): Another convenience function, mostly for gtk/gnome-less language bindings: pop up a window containing an (interactive) rendering of our plot. * src/libguppiplot/guppi-element-view.c (guppi_element_view_make_print): Added constructor for GuppiElementPrint derivatives. * src/libguppiplot/guppi-alpha-template.c (guppi_alpha_template_text_general): Added a pt->px conversion for the size argument. This is the result of trying to get things looking exactly the same on the screen and on the printed output, and reading a lot of gnome-print source code. :-/ * src/libguppiuseful/guppi-metrics.c (guppi_pt2px): Added "compromise" function for doing an approximate pt->px conversion for non-square pixels. * src/libguppiplot: An architectural shake-up, in anticipation of adding support for printing. * src/libguppiuseful/guppi-rgb.c: Created function versions of some of my macros: guppi_paint_horiz(), guppi_paint_vert(), guppi_paint_box(), as well as guppi_paint_soft_box(). I need to curb my macro-happy tendencies. * src/libguppiuseful/guppi-rgb.h: Fixed copyright info. Added convenience macros for basic colors. Added BUF_PTR. Add BUF_INBOUNDS_X and BUF_INBOUNDS_Y. Added PAINT_DOT, PAINT_HORIZ, PAINT_VERT and PAINT_BOX. * src/libguppiuseful/guppi-plug-in.h: * src/libguppiuseful/guppi-plug-in.c: Made plug-in path handling much more flexible by adding guppi_plug_in_path_clear(), guppi_plug_in_path_set(), guppi_plug_in_path_prepend(), guppi_plug_in_path_append(), and guppi_plug_in_path_reset_to_default(). (guppi_plug_in_load_all): If guppi fails to load any plug-ins at all, print a warning message. * src/libguppiuseful/guppi-paths.c (guppi_find_pixmap): Added function to traverse directories looking for pixmaps. (guppi_logo_graphic_path): Changed to use guppi_find_pixmap(). (guppi_glade_path): Added check of environment variable GUPPI_GLADE_PATH when looking for .glade files. * src/libguppiuseful/guppi-guile.h: * src/libguppiuseful/guppi-guile.c: Added is_guile_active flag and guppi_guile_is_active() function to test and see if guppi_guile_init() has been called. * src/libguppiuseful/guppi-enums.c (guppi_alignment2str, guppi_str2alignment): Added stringifications and unstringifications of GUPPI_CENTER_X, GUPPI_CENTER_Y, GUPPI_WIDTH and GUPPI_HEIGHT. * src/libguppiuseful/guppi-enums.h: Made guppi_compass_t "bit-maskable". Added GUPPI_CENTER_X, GUPPI_CENTER_Y, GUPPI_WIDTH and GUPPI_HEIGHT to guppi_alignment_t, making it suitable for constraint-based alignments. Convenience macros were updated accordingly. * src/libguppiuseful/guppi-debug.c: Made default value of "track_entry_and_exit" TRUE. * src: Moved the #include directives from the .h files and into the .c files where they belong. Wed May 17 15:08:11 2000 Jon Trowbridge * src/libguppiuseful/guppi-file.h: * src/libguppiuseful/guppi-file.c: Changed to allow gzipped files to be transparently read. Fri May 5 17:30:39 2000 Jon Trowbridge * src/libguppiuseful/guppi-rgb.h: Added PAINT_BOX macro. * src/guppi/guppi.c (real_main): Changed order of initialization so that .rc files would be loaded before loading plug-ins: the lets us change our search paths in the .rc files. * src/libguppiuseful/guppi-useful.defs: Added bindings for Guppi plug-in path manipulation routines. * src/libguppiuseful/guppi-plug-in.c: Added new functions guppi_plug_in_path_set(), guppi_plug_in_path_prepend(), guppi_plug_in_path_append(), guppi_plug_in_path_reset_to_default(). * src/libguppiuseful/guppi-plug-in.c (guppi_plug_in_load_all): Changed to iterate over GList of plug-in dirs. 2000-05-03 Jon Trowbridge * src/libguppiuseful/guppi-paths.c (guppi_glade_path): Added check for GUPPI_GLADE_PATH environment variable. * NEWS: Updated for release. * plug-ins/plot/boxplot/guppi-boxplot-state.c: Added hooks to deal with data setting and to select the horizontal or vertical status according to whether x- or y- data was set. * plug-ins/plot/slinreg/guppi-slinreg-state.c (set_x_data, get_x_data, set_y_data, get_y_data): Fixed typos that should have been causing horrible segfaults right and left. I got lucky, I guess... * src/libguppidata/guppi-data.defs: Added bindings for accessing the quartiles of scalar sequences. * src/libguppidata/guppi-seq-scalar-core-impl.c (v_seq_scalar_quartiles): Added some (not very sophisticated or optimized) code to calculate and cache the data's quartiles. * src/libguppidata/guppi-seq-scalar-impl.h: Added a hook for quartile calculations to the implementation vtable. * src/libguppidata/guppi-seq-scalar.h: * src/libguppidata/guppi-seq-scalar.c: Added an interface for getting the quartiles of a set of scalar data. * src/libguppiuseful/guppi-useful.h: Added #include . * src/libguppiuseful/guppi-enums.h: * src/libguppiuseful/guppi-enums.c: Added utility routines for common enums. * plug-ins/plot/boxplot/guppi-boxplot-item.c (guppi_boxplot_item_update): Redirect stdout to /dev/null while calling art_svp_vpath_stroke(), to hide the damn "colinear!" spew. * src/guppi/guppi-app.c (hacked_scatter_plot_cb): Change the hard-coded scheme to build a plot with boxplots in the margins. * plug-ins/plot/scatter/guppi-scatter-style.c (guppi_scatter_style_new_stock): Changed style #1 to default to grey rather than black. Make the default size of the circle marker smaller. 2000-04-30 Jon Trowbridge * src/libguppibonobo: A placeholder for future bonobo support. * src/guppi/corba_guppi.c (guppi_corba_init): Changed to allow for passing in a popt table. * src/guppi/guppi.c (real_main): Added skeletal arg parsing with popt. * src/libguppiuseful/guppi-exit.c (do_shutdown): Check gtk_main_level() before calling gtk_main_quit(). * src/libguppiplot/guppi-canvas-item.c: * src/libguppiplot/guppi-layout-grid.c: * src/libguppiplot/guppi-layout-grid-cell.c: I've spent the last few days decrufting dynamic layouts, to keep layout ops from occuring inside of canvas items' update call --- where they tend to trigger new updates, which is problematic. Changes to an item's geometry now "schedules" an allocation; that is, a pending geometry allocation is set in an idle function. Now there is no need for a freeze/thaw mechanism, since nothing happens if an allocation is already pending. The new framework should be good about not doing extra work or repeating the same calculation unnecessarily. (Getting the details of all of this right was rather tricky. It might still have bugs.) 2000-04-25 Kjartan Maraas * configure.in: Added "no" to ALL_LINGUAS. 2000-04-25 Jon Trowbridge * plug-ins/plot/boxplot: Added a boxplot plug-in. * src: * plug-ins: Lots of small i18n fixes. * src/libguppiplot: Lots of fine-tuning of the dynamics of layout geometry. * plug-ins/plot: * src/libguppiplot/guppi-plot-element: Rationalized state handling for plug-ins; wrote a default make_canvas_item rather than requiring each plug-in to basically re-provide the same chunk of code. 2000-04-24 Jon Trowbridge * src/libguppiuseful/guppi-string.c (guppi_string_is_boolean): i18n fix. (guppi_string2boolean): i18n fix. * src/guppi/guppi-app.c (guppi_app_save_visited_files): Fixed bug that was causing us to lose the last element of the visited files list (due to misplacing the g_snprintf, putting it after the if rather than outside). Duh. 2000-04-21 Jon Trowbridge * plug-ins/plot/graphpaper: Added a new plot type for drawing ruled lines behind our plot. * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_render): Hacked label rendering code to avoid unsightly clipped labels. Removed ruled lines from background and converted the axis item into a pure "marginal" axis, rather than something that lay superimposed over the plot itself. Added some primitive, hard-wired geometry information. * src/libguppiplot/guppi-plot-element.h: * src/libguppiplot/guppi-plot-element.c: Added the ability to pass args to the state embedded in a plot element via the usual GtkArg mechanism. Also embedded layout grid positioning information in the element. * src/libguppiuseful/guppi-guile.h * src/libguppiuseful/guppi-guile.c: Added code for dealing with vectors of GtkArgs from guile. * src/libguppiplot/guppi-nice-values.c (guppi_nice_values): Moved the calculations of "round values" out of the axis plug-in code and into this function. 2000-04-20 Jon Trowbridge * src/libguppidata/guppi-seq-integer.h * src/libguppidata/guppi-seq-integer.c * src/libguppidata/guppi-seq-integer-impl.h * src/libguppidata/guppi-seq-integer-impl.c * src/libguppidata/guppi-seq-integer-core-impl.h * src/libguppidata/guppi-seq-integer-core-impl.c: A new data type for integer sequences. This will be the basis of the categorical data type. * src/libguppidata/guppi-seq-scalar-core-impl.c (v_data_copy): Fixed memory leak. * src/libguppiuseful/guppi-splash.c (guppi_splash_create): Made our splash window look nicer, with the color of the status label changed to match the bottom of the blue gradient in the guppi logo pixmap. * src/libguppidata/guppi-data.defs: Added definitions for GuppiSeqInteger functions. * configure.in: Made the necessary changes to enable gettext. 2000-04-18 Jon Trowbridge * src/libguppidata/guppi-seq-scalar-core-impl.c (v_seq_scalar_set): Fixed bug in the code that tries to maintain the coherency of the cached min/max. 2000-04-17 Jon Trowbridge * src/libguppidata/guppi-seq-scalar-core-impl.c (v_seq_scalar_range): Don't you love it when you find a simple error that, upon correction, immediately provides a nice performance boost? Because I'd left out a "return", I was re-calculating the min/max of a scalar sequence every time it was asked for, even when the correct value was cached. Silly me... * src/libguppidata/guppi-seq-boolean-core-impl.c (guppi_seq_boolean_core_impl_finalize): Fixed memory leak. * src/libguppidata/guppi-seq-scalar-core-impl.c (guppi_seq_scalar_core_impl_finalize): Fixed memory leak. * src/libguppidata/guppi-data.c (guppi_data_impl_class): Added this convenience function, which I should have added ages ago. 2000-04-15 Jon Trowbridge * src/libguppiplot/guppi-layout-grid.h * src/libguppiplot/guppi-layout-grid.c * src/libguppiplot/guppi-layout-grid-allocate.h * src/libguppiplot/guppi-layout-grid-allocate.c * src/libguppiplot/guppi-layout-grid-cell.h * src/libguppiplot/guppi-layout-grid-cell.c: Created the infrastructure for handling nice plot layouts. * src/libguppiplot/guppi-plot-element.c (guppi_plot_element_make_canvas_item): Removed the canvas resize/GuppiCanvasItem resize hack. * plug-ins/plot/slinreg/guppi-slinreg-item.c (guppi_slinreg_item_render): Changed to clip properly via guppi_scatter_item_render(). * plug-ins/plot/scatter/guppi-scatter-item.c (guppi_scatter_item_render): Changed to clip properly via guppi_scatter_item_render(). * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_render): Chaned to clip properly via guppi_canvas_item_clip_buf(). * src/libguppiplot/guppi-canvas-item.c (guppi_canvas_item_clip_buf): Added function to simplify _render() code by producing a new GnomeCanvasBuf that is clipped to the bounds of a given GnomeCanvasItem. 2000-04-14 Jon Trowbridge * plug-ins/plot/slinreg/guppi-slinreg-item.c (guppi_slinreg_item_update): Changed to get default font information from guppi_default_font() and the related functions. * plug-ins/plot/axis/guppi-axis-calc.c (optimal_guppi_axis_numerical_labels): Added 4 as a base 10 divisor, which will generate numbering on the quarters (i.e. 0, 0.25, 0.50, etc.) * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_render): Added some simple text labels. The Axis item is now behaving really like a "gridline" object with labels slapped on... but that will have to do until I implement proper geometry management. * plug-ins/plot/axis/guppi-axis-item.c (guppi_axis_item_update): Boosted the label goal to 6, which seems to get better visual results. * src/libguppiuseful/guppi-rgb.h (PIXEL_RGBA): I hadn't been sufficiently paranoid in parenthesizing occurances of the args inside of the macro's body. Weirdness ensured. 2000-04-13 Jon Trowbridge * Updated e-mail addresses in lots of old headers, touching a whole lot of files in the process. * src/libguppiuseful/guppi-defaults.h * src/libguppiuseful/guppi-defaults.c: Added code to encapsulate some default values. Right now, all are font-related. Eventually, this should be done in a proper way using something like gconf. * src/guppi/guppi-app.c (guppi_app_load_visited_files): Fixed glitch that was reversing the order of the file history list every time guppi was run. 2000-04-12 Jon Trowbridge * src/libguppiplot/guppi-plot-element.c (guppi_plot_element_make_canvas_item): Made canvas items resize along with the canvas. This is only a pathetic stop-gap hack until I can implement proper geometry management. * plug-ins/plot/slinreg/guppi-slinreg-item.c (guppi_slinreg_item_update): Optimized function to only re-render the label text if the text has actually changed. This is a big performance win for operations like panning, in which _update() is getting called but the appearance of the text doesn't actually change. * src/libguppiplot/guppi-alpha-template.c (my_gt1_glyph_outline_lookup): Added some GINT_TO_POINTERs to silence compiler warnings. * src/guppi/file-open.c: Added some cruft, but got something out of it. (1) We now remember what directory we most recently loaded a file from, and make that the default for the next file open. (2) When we open a file, it gets added to our list of recently-opened files. * src/libguppidata/guppi-data-importer.h * src/libguppidata/guppi-data-importer.c (guppi_data_importer_filename): Added this convenience function. * src/guppi/guppi.c * src/guppi/guppi-app.c: Broke out the code for building up the main app window for Guppi, moved it into a class derived from GnomeApp. Added a bunch of code for remembering the most recently opened files. 2000-04-11 Jon Trowbridge * plug-ins/plot/scatter/guppi-scatter-style.c (guppi_scatter_style_paint): I screwed up when I fixed a memory leak here a few days ago. The situation is now (hopefully) unscrewed. 2000-04-10 Jon Trowbridge * src/libguppimath/guppi-equation.c (guppi_equation_simplify): Adjusted to simplify 0/foo => 0 (as long as foo != 0). * plug-ins/plot/slinreg/guppi-slinreg-state.h * plug-ins/plot/slinreg/guppi-slinreg-state.c * plug-ins/plot/slinreg/guppi-slinreg-item.h * plug-ins/plot/slinreg/guppi-slinreg-item.c: Added an optional model equation/R^w label on the regression line. * src/libguppiplot/guppi-alpha-template.c (my_gt1_glyph_outline_lookup & get_gt1_font): Added the caches I'd left out in the first pass, thereby plugging some massive memory leaks. (guppi_alpha_template_text_general): Added support for rotated and outlined text. Anti-aliased fonts rule. 2000-04-08 Jon Trowbridge * src/libguppiplot/guppi-canvas-item.c (renrenegotiate_x_start & renegotiate_y_start): We reset the reneg_[xy]_started flag here rather than in renegotiate_*_accept. This fixes a glitch involving objects that are passive wrt bounding boxes. * src/libguppiplot/guppi-alpha-template.c (guppi_alpha_template_text): Added a function to render nice anti-aliased text info an alpha template. * src/libguppiplot/guppi-alpha-template.h: Added a prototype for guppi_alpha_template_text(). * plug-ins/plot/scatter/guppi-scatter-item.c: Macroified the MARGIN value. * plug-ins/plot/scatter/guppi-scatter-style.c (guppi_scatter_style_paint): Fixed a memory leak caused by adding an extra reference to our marker alpha templates. 2000-04-07 Jon Trowbridge * src/libguppistat/guppi-simple-linreg.c (guppi_simple_linreg_recalc): The regression calculation now properly deals with the case of data sets with different bounds. * src/libguppiplot/guppi-canvas-item.c (renegotiate_x_accept & renegotiate_y_accept): A serious typo (a MIN had popped up where a MAX was expected) had totally screwed up the entire size negotiation process. Fixed. * src/libguppimath: Added a chunk of code for dealing with symbolic math. 2000-04-06 Jon Trowbridge * src/libguppiplot/guppi-plot-element.c (event_dispatcher): Removed a superfluous call to gnome_canvas_item_hide(). I don't remember what this was supposed to do in the first place... * src/libguppiuseful/guppi-paths.c (guppi_glade_path): .glade files are now searched for properly, by recursively searching through the directory structure. This replaces a hideous hard-wired hack. * src/libguppiuseful/guppi-paths.h: Fixed const-ness of the string returned by guppi_glade_path(). * src/libguppiuseful/guppi-useful.defs: Fixed the const-ness of the return value for the .defs-inition of guppi_glade_path. * src/libguppiuseful/guppi-debug.c: Added cool debugging functions stolen from Nautilus: the guppi_stop_in_debugger() function and the related functions to make log messages trigger it. This is why free software kicks ass; you can really learn so much by reading other people's code. * src/libguppiuseful/guppi-debug.h: Added prototypes for new functions, and the GUPPI_ENTER and GUPPI_EXIT macros. * plug-ins/plot/scatter/guppi-scatter-style.c (guppi_scatter_style_paint): Added code to properly handle the case of x- and y-data sets that are not the same size. We plot the common range, if any. * plug-ins: Reorganized the directory structure so that all of the plug-ins of a particular type are grouped together in a sub-directory. 2000-04-02 Jon Trowbridge * src/libguppiuseful/guppi-plug-in.c (register_plug_in): Fixed g_message()s to print the right version number for plug ins. (Thanks to Ji Yu for catching this.) ----------------------------------- I used to be very bad about keeping a ChangeLog, in that I didn't; instead, I put the change info in the CVS log entries. After getting a lot of shit from people at GUADEC in Mar 2000, about generating too much traffic on the CVS commit mailing list with my file-by-file commits, I saw the error in my ways. :-) So if you want to know what happened previous to this, look in the CVS logs. (It is still early enough in development that most changes have either been the addition of large chunks of new code or various bits of architectural thrashing...)