psppire_checkbox_treeview_init (PsppireCheckboxTreeview *cbtv)
{
cbtv->list = GTK_TREE_MODEL (gtk_list_store_new (N_CHECKBOX_COLUMNS,
- G_TYPE_STRING,
- G_TYPE_BOOLEAN));
+ G_TYPE_STRING,
+ G_TYPE_BOOLEAN,
+ G_TYPE_STRING));
gtk_tree_view_set_model (GTK_TREE_VIEW (cbtv), cbtv->list);
g_object_unref (cbtv->list);
gtk_list_store_append (GTK_LIST_STORE (cbtv->list), &iter);
gtk_list_store_set (GTK_LIST_STORE (cbtv->list), &iter,
CHECKBOX_COLUMN_LABEL, gettext (items[i].label),
- CHECKBOX_COLUMN_SELECTED,
- (default_items & (1u << i)) != 0,
+ CHECKBOX_COLUMN_SELECTED, (default_items & (1u << i)) != 0,
+ CHECKBOX_COLUMN_TOOLTIP, gettext (items[i].tooltip),
-1);
}
+ gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (cbtv), CHECKBOX_COLUMN_TOOLTIP);
}
#define N_(msgid) msgid
-#define REGRESSION_STATS \
- RG (COEFF, N_("Coeff")) \
- RG (CI, N_("Conf. Interval")) \
- RG (R, N_("R")) \
- RG (ANOVA, N_("Anova")) \
- RG (BCOV, N_("Bcov"))
+#define REGRESSION_STATS \
+ RG (COEFF, N_("Coeff"), N_("Show the regression coefficients")) \
+ RG (CI, N_("Conf. Interval"), N_("Show the confidence interval for the regression coefficients")) \
+ RG (R, N_("R"), N_("Show the correlation between observed and predicted values")) \
+ RG (ANOVA, N_("Anova"), N_("Show the analysis of variance table")) \
+ RG (BCOV, N_("Bcov"), N_("Show the variance coefficient matrix"))
enum
{
-#define RG(NAME, LABEL) RG_##NAME,
+#define RG(NAME, LABEL, TOOLTIP) RG_##NAME,
REGRESSION_STATS
#undef RG
N_REGRESSION_STATS
enum
{
-#define RG(NAME, LABEL) B_RG_##NAME = 1u << RG_##NAME,
+#define RG(NAME, LABEL, TOOLTIP) B_RG_##NAME = 1u << RG_##NAME,
REGRESSION_STATS
#undef RG
B_RG_STATS_ALL = (1u << N_REGRESSION_STATS) - 1,
static const struct checkbox_entry_item stats[] =
{
-#define RG(NAME, LABEL) {#NAME, LABEL},
+#define RG(NAME, LABEL, TOOLTIP) {#NAME, LABEL, TOOLTIP},
REGRESSION_STATS
#undef RG
};