+on_opts_clicked (PsppireDialogActionLogistic *act)
+{
+ int ret;
+
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(act->conf_checkbox), act->conf);
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (act->conf_entry), act->conf_level);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(act->const_checkbox), act->constant);
+
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (act->cut_point_entry), act->cut_point);
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (act->iterations_entry), act->max_iterations);
+
+
+ ret = psppire_dialog_run (PSPPIRE_DIALOG (act->opts_dialog));
+
+ if ( ret == PSPPIRE_RESPONSE_CONTINUE )
+ {
+ act->conf = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(act->conf_checkbox));
+ act->conf_level = gtk_spin_button_get_value (GTK_SPIN_BUTTON (act->conf_entry));
+
+ act->constant = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(act->const_checkbox));
+
+ act->cut_point = gtk_spin_button_get_value (GTK_SPIN_BUTTON (act->cut_point_entry));
+ act->max_iterations = gtk_spin_button_get_value (GTK_SPIN_BUTTON (act->iterations_entry));
+ }
+}
+
+
+static void
+psppire_dialog_action_logistic_activate (PsppireDialogAction *a)