diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-18 21:25:40 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-19 08:31:50 +0800 |
commit | c6ccd45a0ef07b12a0313deb3abee032d89eec0a (patch) | |
tree | 41f67ea66ada4bf9a1b109236194386dc1292f7e /e-util/e-table-subset.h | |
parent | 96acf4fa41260e7917ae1a794bb4b636e6c398cc (diff) | |
download | gsoc2013-evolution-c6ccd45a0ef07b12a0313deb3abee032d89eec0a.tar.gz gsoc2013-evolution-c6ccd45a0ef07b12a0313deb3abee032d89eec0a.tar.zst gsoc2013-evolution-c6ccd45a0ef07b12a0313deb3abee032d89eec0a.zip |
ETable-related cleanups.
Diffstat (limited to 'e-util/e-table-subset.h')
-rw-r--r-- | e-util/e-table-subset.h | 83 |
1 files changed, 41 insertions, 42 deletions
diff --git a/e-util/e-table-subset.h b/e-util/e-table-subset.h index 9e8d69496d..fc954f820c 100644 --- a/e-util/e-table-subset.h +++ b/e-util/e-table-subset.h @@ -26,8 +26,8 @@ #error "Only <e-util/e-util.h> should be included directly." #endif -#ifndef _E_TABLE_SUBSET_H_ -#define _E_TABLE_SUBSET_H_ +#ifndef E_TABLE_SUBSET_H +#define E_TABLE_SUBSET_H #include <e-util/e-table-model.h> @@ -54,67 +54,66 @@ G_BEGIN_DECLS typedef struct _ETableSubset ETableSubset; typedef struct _ETableSubsetClass ETableSubsetClass; +typedef struct _ETableSubsetPrivate ETableSubsetPrivate; struct _ETableSubset { ETableModel parent; + ETableSubsetPrivate *priv; - ETableModel *source; + /* protected - subclasses modify this directly */ gint n_map; gint *map_table; - - gint last_access; - - gint table_model_pre_change_id; - gint table_model_no_change_id; - gint table_model_changed_id; - gint table_model_row_changed_id; - gint table_model_cell_changed_id; - gint table_model_rows_inserted_id; - gint table_model_rows_deleted_id; }; struct _ETableSubsetClass { ETableModelClass parent_class; - void (*proxy_model_pre_change) (ETableSubset *etss, - ETableModel *etm); - void (*proxy_model_no_change) (ETableSubset *etss, - ETableModel *etm); - void (*proxy_model_changed) (ETableSubset *etss, - ETableModel *etm); - void (*proxy_model_row_changed) (ETableSubset *etss, - ETableModel *etm, - gint row); - void (*proxy_model_cell_changed) (ETableSubset *etss, - ETableModel *etm, - gint col, - gint row); - void (*proxy_model_rows_inserted) (ETableSubset *etss, - ETableModel *etm, - gint row, - gint count); - void (*proxy_model_rows_deleted) (ETableSubset *etss, - ETableModel *etm, - gint row, - gint count); + void (*proxy_model_pre_change) + (ETableSubset *table_subset, + ETableModel *source_model); + void (*proxy_model_no_change) + (ETableSubset *table_subset, + ETableModel *source_model); + void (*proxy_model_changed) (ETableSubset *table_subset, + ETableModel *source_model); + void (*proxy_model_row_changed) + (ETableSubset *table_subset, + ETableModel *source_model, + gint row); + void (*proxy_model_cell_changed) + (ETableSubset *table_subset, + ETableModel *source_model, + gint col, + gint row); + void (*proxy_model_rows_inserted) + (ETableSubset *table_subset, + ETableModel *source_model, + gint row, + gint count); + void (*proxy_model_rows_deleted) + (ETableSubset *table_subset, + ETableModel *source_model, + gint row, + gint count); }; GType e_table_subset_get_type (void) G_GNUC_CONST; -ETableModel * e_table_subset_new (ETableModel *etm, +ETableModel * e_table_subset_new (ETableModel *source_model, gint n_vals); -ETableModel * e_table_subset_construct (ETableSubset *ets, - ETableModel *source, +ETableModel * e_table_subset_construct (ETableSubset *table_subset, + ETableModel *source_model, gint nvals); +ETableModel * e_table_subset_get_source_model (ETableSubset *table_subset); gint e_table_subset_model_to_view_row - (ETableSubset *ets, + (ETableSubset *table_subset, gint model_row); gint e_table_subset_view_to_model_row - (ETableSubset *ets, + (ETableSubset *table_subset, gint view_row); -ETableModel * e_table_subset_get_toplevel (ETableSubset *table_model); -void e_table_subset_print_debugging (ETableSubset *table_model); +ETableModel * e_table_subset_get_toplevel (ETableSubset *table_subset); +void e_table_subset_print_debugging (ETableSubset *table_subset); G_END_DECLS -#endif /* _E_TABLE_SUBSET_H_ */ +#endif /* E_TABLE_SUBSET_H */ |