- Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation
+ Copyright (C) 2009, 2010, 2011, 2012, 2014 Free Software Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "psppire-var-view.h"
#include "dialog-common.h"
#include "psppire-selector.h"
#include "psppire-var-view.h"
#include "dialog-common.h"
#include "psppire-selector.h"
G_DEFINE_TYPE (PsppireDialogActionFactor, psppire_dialog_action_factor, PSPPIRE_TYPE_DIALOG_ACTION);
G_DEFINE_TYPE (PsppireDialogActionFactor, psppire_dialog_action_factor, PSPPIRE_TYPE_DIALOG_ACTION);
- ds_put_c_format (&str, "MINEIGEN (%g)", rd->extraction.mineigen);
+ ds_put_c_format (&str, "MINEIGEN (%.*g)",
+ DBL_DIG + 1, rd->extraction.mineigen);
ds_put_cstr (&str, "PAF");
else
ds_put_cstr (&str, "PC");
ds_put_cstr (&str, "\n\t/METHOD = ");
ds_put_cstr (&str, "PAF");
else
ds_put_cstr (&str, "PC");
ds_put_cstr (&str, "\n\t/METHOD = ");
ds_put_cstr (&str, "COVARIANCE");
else
ds_put_cstr (&str, "CORRELATION");
ds_put_cstr (&str, "COVARIANCE");
else
ds_put_cstr (&str, "CORRELATION");
{
ds_put_cstr (&str, "\n\t/PLOT = ");
ds_put_cstr (&str, "EIGEN");
{
ds_put_cstr (&str, "\n\t/PLOT = ");
ds_put_cstr (&str, "EIGEN");
ds_put_cstr (&str, "\n\t/PRINT = ");
ds_put_cstr (&str, "INITIAL ");
ds_put_cstr (&str, "\n\t/PRINT = ");
ds_put_cstr (&str, "INITIAL ");
ds_put_cstr (&str, "ROTATION");
/* The CRITERIA = ITERATE subcommand is overloaded.
It applies to the next /ROTATION and/or EXTRACTION command whatever comes first.
*/
ds_put_cstr (&str, "ROTATION");
/* The CRITERIA = ITERATE subcommand is overloaded.
It applies to the next /ROTATION and/or EXTRACTION command whatever comes first.
*/
ds_put_cstr (&str, "\n\t/ROTATION = ");
ds_put_cstr (&str, rot_method_syntax[rd->rotation.method]);
ds_put_cstr (&str, "\n\t/ROTATION = ");
ds_put_cstr (&str, rot_method_syntax[rd->rotation.method]);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fd->scree_button), p->scree);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fd->unrotated_button), p->unrotated);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fd->scree_button), p->scree);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fd->unrotated_button), p->unrotated);
gtk_combo_box_set_active (GTK_COMBO_BOX (fd->extraction_combo), 1);
else
gtk_combo_box_set_active (GTK_COMBO_BOX (fd->extraction_combo), 0);
gtk_combo_box_set_active (GTK_COMBO_BOX (fd->extraction_combo), 1);
else
gtk_combo_box_set_active (GTK_COMBO_BOX (fd->extraction_combo), 0);
p->method = ROT_VARIMAX;
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (act->rotation_quartimax)))
p->method = ROT_QUARTIMAX;
p->method = ROT_VARIMAX;
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (act->rotation_quartimax)))
p->method = ROT_QUARTIMAX;
{
/* Set the parameters from their respective widgets */
set_extraction_parameters (act, ex);
{
/* Set the parameters from their respective widgets */
set_extraction_parameters (act, ex);
{
/* Set the parameters from their respective widgets */
set_rotation_parameters (act, rot);
{
/* Set the parameters from their respective widgets */
set_rotation_parameters (act, rot);
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionFactor *act = PSPPIRE_DIALOG_ACTION_FACTOR (a);
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionFactor *act = PSPPIRE_DIALOG_ACTION_FACTOR (a);
G_CALLBACK (run_extractions_subdialog), act);
g_signal_connect_swapped (rotation_button, "clicked", G_CALLBACK (run_rotations_subdialog), act);
G_CALLBACK (run_extractions_subdialog), act);
g_signal_connect_swapped (rotation_button, "clicked", G_CALLBACK (run_rotations_subdialog), act);
psppire_dialog_action_set_valid_predicate (pda, (void *) dialog_state_valid);
psppire_dialog_action_set_refresh (pda, dialog_refresh);
psppire_dialog_action_set_valid_predicate (pda, (void *) dialog_state_valid);
psppire_dialog_action_set_refresh (pda, dialog_refresh);