diff options
Diffstat (limited to 'widgets/table/e-table-config.h')
-rw-r--r-- | widgets/table/e-table-config.h | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/widgets/table/e-table-config.h b/widgets/table/e-table-config.h index 617ef6a331..ddae3f1497 100644 --- a/widgets/table/e-table-config.h +++ b/widgets/table/e-table-config.h @@ -1,11 +1,42 @@ -#ifndef _E_TABLE_CONFIG_H -#define _E_TABLE_CONFIG_H +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +#ifndef _E_TABLE_CONFIG_H_ +#define _E_TABLE_CONFIG_H_ -GnomeDialog *e_table_gui_config (ETable *etable); -void e_table_do_gui_config (GtkWidget *, ETable *etable); +#include <gnome.h> +#include <gal/e-table/e-table-sort-info.h> +#include <gal/e-table/e-table-specification.h> -void e_table_gui_config_accept (GtkWidget *widget, ETable *etable); -void e_table_gui_config_cancel (GtkWidget *widget, ETable *etable); +#define E_TABLE_CONFIG_TYPE (e_table_config_get_type ()) +#define E_TABLE_CONFIG(o) (GTK_CHECK_CAST ((o), E_TABLE_CONFIG_TYPE, ETableConfig)) +#define E_TABLE_CONFIG_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_TABLE_CONFIG_TYPE, ETableConfigClass)) +#define E_IS_TABLE_CONFIG(o) (GTK_CHECK_TYPE ((o), E_TABLE_CONFIG_TYPE)) +#define E_IS_TABLE_CONFIG_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TABLE_CONFIG_TYPE)) +typedef struct { + GnomeDialog base; + + ETableSpecification *spec; + ETableState *state; + + GtkWidget *sort_label; + GtkWidget *group_label; + + GtkWidget *sort_dialog; + GtkWidget *group_dialog; + + int sorting_changed_id; + int grouping_changed_id; +} ETableConfig; + +typedef struct { + GnomeDialogClass parent_class; +} ETableConfigClass; + +GtkType e_table_config_get_type (void); +GtkWidget *e_table_config_new (ETableSpecification *spec, + ETableState *state); +GtkWidget *e_table_config_construct (ETableConfig *etco, + ETableSpecification *spec, + ETableState *state); #endif /* _E_TABLE_CONFIG_H */ |