diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-06 07:15:14 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-06 07:15:14 +0800 |
commit | 3de981ec78d529eb1bd9b2f98f154eae91dffc6d (patch) | |
tree | e8758124523b6c534890aa80f5b918981be6ce00 /widgets/e-table/e-table-header.h | |
parent | 645f69dcf6d0b6162c5c7843371c559486234175 (diff) | |
download | gsoc2013-evolution-3de981ec78d529eb1bd9b2f98f154eae91dffc6d.tar gsoc2013-evolution-3de981ec78d529eb1bd9b2f98f154eae91dffc6d.tar.gz gsoc2013-evolution-3de981ec78d529eb1bd9b2f98f154eae91dffc6d.tar.bz2 gsoc2013-evolution-3de981ec78d529eb1bd9b2f98f154eae91dffc6d.tar.lz gsoc2013-evolution-3de981ec78d529eb1bd9b2f98f154eae91dffc6d.tar.xz gsoc2013-evolution-3de981ec78d529eb1bd9b2f98f154eae91dffc6d.tar.zst gsoc2013-evolution-3de981ec78d529eb1bd9b2f98f154eae91dffc6d.zip |
Added support for the sorting info. The Etable creates a sort_info object,
2000-03-05 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Added support for the sorting info. The
Etable creates a sort_info object, and then connects to the
signals to rearrange the rows when the sort_info changes. It also
passes the info object to the ETableHeaderItem.
* e-table-model.c: Fixed a typo where ETableModel was written as
ETableModle.
* e-table-header.c, e-table-header.h: Added some code for sorting
here, but it's not used. I don't think we want this code, but I
wanted to check it in at least once so that it's not lost.
* e-table-header-item.c, e-table-header-item.h: Added a
"sort_info" argument to ETableHeaderItem. Added display of
current sort settings. Added support for clicking to change the
sort settings.
* e-table-col.h: E_TABLE_COL_ARROW_NONE is marked as being = 0
since this is required in other places. (I think C defines this
as being the case, but it's good to have the = 0 there so that
it's obvious that it has to be first.)
* TODO: Mark sorting as done.
* e-table-sort-info.c, e-table-sort-info.h: New files for
containing the xml grouping/sorting information and for sending
signals on that information.
* Makefile.am: Added e-table-sort-info.c and e-table-sort-info.h.
svn path=/trunk/; revision=2060
Diffstat (limited to 'widgets/e-table/e-table-header.h')
-rw-r--r-- | widgets/e-table/e-table-header.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-header.h b/widgets/e-table/e-table-header.h index 0b4e40101f..cfd4d68d4a 100644 --- a/widgets/e-table/e-table-header.h +++ b/widgets/e-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); |