gtk_list_store_clear (GTK_LIST_STORE (liststore));
}
-#define CROSSTABS_STATS \
- CS (CHISQ, N_("Chisq")) \
- CS (PHI, N_("Phi")) \
- CS (CC, N_("CC")) \
- CS (LAMBDA, N_("Lambda")) \
- CS (UC, N_("UC")) \
- CS (BTAU, N_("BTau")) \
- CS (CTAU, N_("CTau")) \
- CS (RISK, N_("Risk")) \
- CS (GAMMA, N_("Gamma")) \
- CS (D, N_("D")) \
- CS (KAPPA, N_("Kappa")) \
- CS (ETA, N_("Eta")) \
- CS (CORR, N_("Corr")) \
- CS (STATS_NONE, N_("None"))
-
-
-#define CROSSTABS_CELLS \
- CS (COUNT, N_("Count")) \
- CS (ROW, N_("Row")) \
- CS (COLUMN, N_("Column")) \
- CS (TOTAL, N_("Total")) \
- CS (EXPECTED, N_("Expected")) \
- CS (RESIDUAL, N_("Residual")) \
- CS (SRESIDUAL, N_("Std. Residual")) \
- CS (ASRESIDUAL, N_("Adjusted Std. Residual")) \
- CS (CELLS_NONE, N_("None"))
+#define CROSSTABS_STATS \
+ CS (CHISQ, N_("Chisq"), N_("Pearson chi-square, " \
+ "likelihood ratio, Fisher’s exact test, continuity correction, " \
+ "linear-by-linear association.")) \
+ CS (PHI, N_("Phi and Cramer's V"), NULL) \
+ CS (CC, N_("CC"), N_("Contingency coefficient")) \
+ CS (LAMBDA, N_("Lambda"), NULL) \
+ CS (UC, N_("UC"), N_("Uncertainty coefficient")) \
+ CS (BTAU, N_("BTau"), N_("Kendall's Tau-b")) \
+ CS (CTAU, N_("CTau"), N_("Kendall's Tau-c")) \
+ CS (RISK, N_("Risk"), N_("Relative Risk estimate")) \
+ CS (GAMMA, N_("Gamma"), NULL) \
+ CS (D, N_("D"), N_("Somer's d")) \
+ CS (KAPPA, N_("Kappa"), N_("Cohen's Kappa")) \
+ CS (ETA, N_("Eta"), NULL) \
+ CS (CORR, N_("Corr"), N_("Spearman correlation, Pearson's r")) \
+ CS (STATS_NONE, N_("None"), NULL)
+
+
+#define CROSSTABS_CELLS \
+ CS (COUNT, N_("Count"), N_("Frequency Count")) \
+ CS (ROW, N_("Row"), N_("Row percent")) \
+ CS (COLUMN, N_("Column"), N_("Column percent")) \
+ CS (TOTAL, N_("Total"), N_("Total percent")) \
+ CS (EXPECTED, N_("Expected"), N_("Expected value")) \
+ CS (RESIDUAL, N_("Residual"), NULL) \
+ CS (SRESIDUAL, N_("Std. Residual"), N_("Standardized Residual")) \
+ CS (ASRESIDUAL, N_("Adjusted Std. Residual"), NULL) \
+ CS (CELLS_NONE, N_("None"), NULL)
enum
{
-#define CS(NAME, LABEL) CS_##NAME,
+#define CS(NAME, LABEL, TOOLTIP) CS_##NAME,
CROSSTABS_STATS
#undef CS
N_CROSSTABS_STATS
enum
{
-#define CS(NAME, LABEL) CS_##NAME,
+#define CS(NAME, LABEL, TOOLTIP) CS_##NAME,
CROSSTABS_CELLS
#undef CS
N_CROSSTABS_CELLS
enum
{
-#define CS(NAME, LABEL) B_CS_##NAME = 1u << CS_##NAME,
+#define CS(NAME, LABEL, TOOLTIP) B_CS_##NAME = 1u << CS_##NAME,
CROSSTABS_STATS
CROSSTABS_CELLS
#undef CS
static const struct checkbox_entry_item stats[] =
{
-#define CS(NAME, LABEL) {#NAME, LABEL},
+#define CS(NAME, LABEL, TOOLTIP) {#NAME, LABEL, TOOLTIP},
CROSSTABS_STATS \
- CS(NONE, N_("None"))
+ CS(NONE, N_("None"), NULL)
#undef CS
};
static const struct checkbox_entry_item cells[] =
{
-#define CS(NAME, LABEL) {#NAME, LABEL},
+#define CS(NAME, LABEL, TOOLTIP) {#NAME, LABEL, TOOLTIP},
CROSSTABS_CELLS \
- CS(NONE, N_("None"))
+ CS(NONE, N_("None"), NULL)
#undef CS
};
ret = psppire_dialog_run (PSPPIRE_DIALOG (cd->format_dialog));
- if ( ret == PSPPIRE_RESPONSE_CONTINUE )
+ if (ret == PSPPIRE_RESPONSE_CONTINUE)
{
cd->format_options_avalue =
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (cd->avalue_button));
gint ret = psppire_dialog_run (PSPPIRE_DIALOG (cd->cell_dialog));
- if ( ret == PSPPIRE_RESPONSE_CONTINUE )
+ if (ret == PSPPIRE_RESPONSE_CONTINUE)
{
g_object_unref (liststore);
}
gint ret = psppire_dialog_run (PSPPIRE_DIALOG (cd->stat_dialog));
- if ( ret == PSPPIRE_RESPONSE_CONTINUE )
+ if (ret == PSPPIRE_RESPONSE_CONTINUE)
{
g_object_unref (liststore);
}
PsppireDialogActionCrosstabs *act = PSPPIRE_DIALOG_ACTION_CROSSTABS (a);
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
- GtkBuilder *xml = builder_new ( "crosstabs.ui");
+ GtkBuilder *xml = builder_new ("crosstabs.ui");
pda->dialog = get_widget_assert (xml, "crosstabs-dialog");
pda->source = get_widget_assert (xml, "dict-treeview");