From: John Darrington Date: Fri, 16 Jul 2010 20:53:18 +0000 (+0200) Subject: Reliability dialog: Add checkbox for summary subcommand X-Git-Tag: v0.7.6~335 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d276e7c96c4c6fb21e4f0bd0f9473f7ab4066a4;p=pspp-builds.git Reliability dialog: Add checkbox for summary subcommand --- diff --git a/src/ui/gui/reliability-dialog.c b/src/ui/gui/reliability-dialog.c index 8587b723..957d9e11 100644 --- a/src/ui/gui/reliability-dialog.c +++ b/src/ui/gui/reliability-dialog.c @@ -43,6 +43,7 @@ struct reliability GtkWidget *variables; GtkWidget *split_point_hbox; GtkWidget *split_spinbutton; + GtkWidget *scale_if_item_deleted_checkbutton; }; @@ -93,6 +94,9 @@ refresh (PsppireDialog *dialog, struct reliability *rd) gtk_spin_button_set_range (GTK_SPIN_BUTTON (rd->split_spinbutton), 0, 0); + + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (rd->scale_if_item_deleted_checkbutton), + FALSE); } @@ -128,6 +132,8 @@ reliability_dialog (PsppireDataWindow *de) rd.model_combo = get_widget_assert (xml, "combobox1"); rd.split_spinbutton = get_widget_assert (xml, "spinbutton1"); + rd.scale_if_item_deleted_checkbutton = get_widget_assert (xml, "totals-checkbutton"); + g_signal_connect_swapped (rd.model_combo, "changed", G_CALLBACK (on_method_change), &rd); @@ -207,6 +213,9 @@ generate_syntax (const struct reliability *rd) gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (rd->split_spinbutton)) ); + if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (rd->scale_if_item_deleted_checkbutton))) + g_string_append (string, "\n\t/SUMMARY = TOTAL"); + g_string_append (string, ".\n"); text = string->str; diff --git a/src/ui/gui/reliability.ui b/src/ui/gui/reliability.ui index 588e5e20..96353509 100644 --- a/src/ui/gui/reliability.ui +++ b/src/ui/gui/reliability.ui @@ -7,7 +7,6 @@ 100 1 10 - 0 @@ -30,171 +29,205 @@ True - + True - vertical - 12 + 5 + 5 + 6 - + True + vertical + 12 - + True - True - never - automatic - etched-in - + True True - True - 5 - False + never + automatic + etched-in + + + True + True + 5 + False + False + + + + 0 + - - - 0 - - - - - True - 0 - 0 - + True - True - True - True - 5 - dict-view - treeview2 + 0 + 0 + + + True + True + True + True + 5 + dict-view + treeview2 + + + + False + False + 1 + - - - False - False - 1 - - - - - True - 0 - none - + True - 12 + vertical - + True - True - never - automatic - etched-in + 0 + none + + + True + 12 + + + True + True + never + automatic + etched-in + + + True + True + False + False + + + + + + + + + True + _Items: + True + True + + + + + 0 + + + + + True + + + True + 1 + Model: + right + + + False + False + 0 + + + + + True + model1 + + + + 0 + + + + + False + 1 + + + + + False + 1 + + + + + True + False + 5 + + + True + Variables in first split: + + + False + 0 + + - + True True - False + + adjustment1 + + False + 1 + + + False + 2 + - - - - True - _Items: - True - True - + + 2 + - 2 - - - - - 0 - - - - - True - - - True - 1 - Model: - right - - - False - False 0 - - True - model1 - - - - 0 - - - - - False - 1 - - - - - False - 1 - - - - - True - False - 5 - - - True - Variables in first split: - - - False - 0 - - - - + + Show descriptives for scale if _item is deleted + True True True - adjustment1 + False + True False + False 1 - - False - 2 -