Commit 300bfab7 authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Jody Goldberg

Modify description od descriptive stats tool.

2001-09-27  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* analysis-tools.sgml : Modify description od descriptive stats tool.

2001-09-27  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* dialog-analysis-tools.c (desc_stat_tool_set_focus_output_range) :
	  Switch output selection when output range is edited.
	(cb_desc_stat_tool_ok_clicked) : ditto
	(dialog_desc_stat_tool_init) : ditto

2001-09-27  Jody Goldberg <jgoldberg@home.com>

	* dialog-graph-guru.c (dialog_graph_guru) : doh!

2001-09-27  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object.c (cell_offset_calc_pixel) : round to nearest
	  pixel, rather than truncating.
parent 469e82ee
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object.c (cell_offset_calc_pixel) : round to nearest
pixel, rather than truncating.
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (set_acetate_coords) : make the control pts
......
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object.c (cell_offset_calc_pixel) : round to nearest
pixel, rather than truncating.
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (set_acetate_coords) : make the control pts
......
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object.c (cell_offset_calc_pixel) : round to nearest
pixel, rather than truncating.
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (set_acetate_coords) : make the control pts
......
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object.c (cell_offset_calc_pixel) : round to nearest
pixel, rather than truncating.
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (set_acetate_coords) : make the control pts
......
2001-09-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
* analysis-tools.sgml : Modify description od descriptive stats tool.
2001-09-17 Morten Welinder <terra@diku.dk>
* make-index.pl: Use LF line endings.
......
2001-09-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
* analysis-tools.sgml : Modify description od descriptive stats tool.
2001-09-17 Morten Welinder <terra@diku.dk>
* make-index.pl: Use LF line endings.
......
......@@ -166,11 +166,13 @@
tool calculates confidence intervals for the mean of each variable.
You should specify the confidence level in the entry
box. The default value is to calculate the confidence level of
95&percnt;. Note that the interval given will usually be wider than the
interval obtained using the CONFIDENCE functionn since that function
95&percnt;.</para>
<note><para>The interval given will usually be wider than the
interval obtained using the CONFIDENCE function since that function
assumes that the population standard deviation is known while this tool
estimates the population standard deviation by the sample standard
deviation.</para>
deviation.</para></note>
<para>If ``Kth Largest:'' button is checked on, the tool finds
the kth largest value of each of the variables. Specify the k in
......
2001-09-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-analysis-tools.c (desc_stat_tool_set_focus_output_range) :
Switch output selection when output range is edited.
(cb_desc_stat_tool_ok_clicked) : ditto
(dialog_desc_stat_tool_init) : ditto
2001-09-27 Jody Goldberg <jgoldberg@home.com>
* dialog-graph-guru.c (dialog_graph_guru) : doh!
2001-09-26 Jody Goldberg <jgoldberg@home.com>
* dialog-graph-guru.c : Add a sample for the data page.
......
......@@ -958,6 +958,22 @@ desc_stat_tool_set_focus (GtkWidget *window, GtkWidget *focus_widget,
wbcg_set_entry (state->wbcg, NULL);
}
/**
* desc_stat_tool_set_focus_output_range:
* @widget:
* @focus_widget:
* @state:
*
* Output range entry was focused. Switch to output range.
*
**/
static void
desc_stat_tool_set_focus_output_range (GtkWidget *widget, GdkEventFocus *event,
DescriptiveStatState *state)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(state->output_range),TRUE);
}
/**
* cb_desc_stat_tool_ok_clicked:
* @button:
......@@ -1068,8 +1084,6 @@ desc_stat_tool_update_sensitivity (DescriptiveStatState *state)
if (output_range != NULL) value_release(output_range);
gtk_widget_set_sensitive (state->ok_button, ready);
gtk_widget_set_sensitive (GTK_WIDGET(state->output_entry), (i == 2) );
}
/**
......@@ -1113,8 +1127,6 @@ dialog_desc_stat_tool_init (DescriptiveStatState *state, WorkbookControlGUI *wbc
if (state->dialog == NULL)
return TRUE;
state->ok_button = glade_xml_get_widget(state->gui, "okbutton");
gtk_signal_connect (GTK_OBJECT (state->ok_button), "clicked",
GTK_SIGNAL_FUNC (cb_desc_stat_tool_ok_clicked),
......@@ -1164,6 +1176,8 @@ dialog_desc_stat_tool_init (DescriptiveStatState *state, WorkbookControlGUI *wbc
GTK_SIGNAL_FUNC (desc_stat_tool_destroy), state);
gtk_signal_connect_after (GTK_OBJECT (state->input_entry), "changed",
GTK_SIGNAL_FUNC (desc_stat_tool_update_sensitivity_cb), state);
gtk_signal_connect (GTK_OBJECT (state->output_entry), "focus-in-event",
GTK_SIGNAL_FUNC (desc_stat_tool_set_focus_output_range), state);
gtk_signal_connect_after (GTK_OBJECT (state->output_entry), "changed",
GTK_SIGNAL_FUNC (desc_stat_tool_update_sensitivity_cb), state);
gtk_signal_connect_after (GTK_OBJECT (state->output_range), "toggled",
......
......@@ -463,7 +463,6 @@ dialog_graph_guru (WorkbookControlGUI *wbcg, GnmGraph *graph, int page)
GraphGuruState *state;
g_return_if_fail (wbcg != NULL);
g_return_if_fail (IS_GNUMERIC_GRAPH (graph));
state = g_new0 (GraphGuruState, 1);
state->wbcg = wbcg;
......@@ -481,6 +480,8 @@ dialog_graph_guru (WorkbookControlGUI *wbcg, GnmGraph *graph, int page)
state->current_series = NULL;
if (graph != NULL) {
g_return_if_fail (IS_GNUMERIC_GRAPH (graph));
state->graph = graph;
gtk_object_ref (GTK_OBJECT (state->graph));
} else
......
......@@ -562,7 +562,7 @@ cell_offset_calc_pixel (Sheet const *sheet, int i, gboolean is_col,
ColRowInfo const *cri = sheet_colrow_get_info (sheet, i, is_col);
/* TODO : handle other anchor types */
if (anchor_type == SO_ANCHOR_PERCENTAGE_FROM_COLROW_END)
return (1. - offset) * cri->size_pixels;
return .5 + (1. - offset) * cri->size_pixels;
return offset * cri->size_pixels;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment