diff options
Diffstat (limited to 'widgets/table/e-table-header.h')
-rw-r--r-- | widgets/table/e-table-header.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/widgets/table/e-table-header.h b/widgets/table/e-table-header.h index 0b4e40101f..cfd4d68d4a 100644 --- a/widgets/table/e-table-header.h +++ b/widgets/table/e-table-header.h @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ #ifndef _E_TABLE_COLUMN_H_ #define _E_TABLE_COLUMN_H_ @@ -13,6 +14,13 @@ typedef struct _ETableHeader ETableHeader; #define E_IS_TABLE_HEADER(o) (GTK_CHECK_TYPE ((o), E_TABLE_HEADER_TYPE)) #define E_IS_TABLE_HEADER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TABLE_HEADER_TYPE)) +#if 0 +typedef struct { + int model_col; + int ascending; +} ETableHeaderSortInfo; +#endif + /* * A Columnar header. */ @@ -23,6 +31,12 @@ struct _ETableHeader { ETableCol **columns; gboolean selectable; int frozen_count; + +#if 0 + ETableHeaderSortInfo sort_info; + ETableHeaderSortInfo *grouping; + gint grouping_count; +#endif }; typedef struct { @@ -45,6 +59,19 @@ int e_table_header_index (ETableHeader *eth, int e_table_header_get_index_at (ETableHeader *eth, int x_offset); ETableCol **e_table_header_get_columns (ETableHeader *eth); + +#if 0 +ETableHeaderSortInfo e_table_header_get_sort_info (ETableHeader *eth); +void e_table_header_set_sort_info (ETableHeader *eth, ETableHeaderSortInfo info); + +int e_table_header_get_group_count (ETableHeader *eth); +ETableHeaderSortInfo *e_table_header_get_groups (ETableHeader *eth); +ETableHeaderSortInfo e_table_header_get_group (ETableHeader *eth, gint index); +void e_table_header_grouping_insert (ETableHeader *eth, gint index, ETableHeaderSortInfo info); +void e_table_header_grouping_delete (ETableHeader *eth, gint index); +void e_table_header_grouping_move (ETableHeader *eth, gint old_idx, gint new_idx); +#endif + gboolean e_table_header_selection_ok (ETableHeader *eth); int e_table_header_get_selected (ETableHeader *eth); int e_table_header_total_width (ETableHeader *eth); |