diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-03-28 10:50:25 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-03-28 10:50:25 +0800 |
commit | 60e32147808776a125d9ec433ad7f042b99e7e83 (patch) | |
tree | 8f61a1e305120594edb7c989b4c5eb63ddc195e9 /widgets/table/e-tree-selection-model.h | |
parent | 505f6c235bf79453fdd500a62583ea82630eb604 (diff) | |
download | gsoc2013-evolution-60e32147808776a125d9ec433ad7f042b99e7e83.tar gsoc2013-evolution-60e32147808776a125d9ec433ad7f042b99e7e83.tar.gz gsoc2013-evolution-60e32147808776a125d9ec433ad7f042b99e7e83.tar.bz2 gsoc2013-evolution-60e32147808776a125d9ec433ad7f042b99e7e83.tar.lz gsoc2013-evolution-60e32147808776a125d9ec433ad7f042b99e7e83.tar.xz gsoc2013-evolution-60e32147808776a125d9ec433ad7f042b99e7e83.tar.zst gsoc2013-evolution-60e32147808776a125d9ec433ad7f042b99e7e83.zip |
New class implementing a tree model. Not finished yet or in use, but I
2001-03-27 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c, e-tree-selection-model.h: New class
implementing a tree model. Not finished yet or in use, but I
wanted to get it checked in.
svn path=/trunk/; revision=8987
Diffstat (limited to 'widgets/table/e-tree-selection-model.h')
-rw-r--r-- | widgets/table/e-tree-selection-model.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/widgets/table/e-tree-selection-model.h b/widgets/table/e-tree-selection-model.h new file mode 100644 index 0000000000..0d28f47c90 --- /dev/null +++ b/widgets/table/e-tree-selection-model.h @@ -0,0 +1,58 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +#ifndef _E_TREE_SELECTION_MODEL_H_ +#define _E_TREE_SELECTION_MODEL_H_ + +#include <gtk/gtkobject.h> +#include <gal/util/e-sorter.h> +#include <gdk/gdktypes.h> +#include <gal/widgets/e-selection-model.h> +#include <gal/e-table/e-tree-model.h> +#include <gal/e-table/e-tree-sorted.h> +#include <gal/e-table/e-tree-table-adapter.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define E_TREE_SELECTION_MODEL_TYPE (e_tree_selection_model_get_type ()) +#define E_TREE_SELECTION_MODEL(o) (GTK_CHECK_CAST ((o), E_TREE_SELECTION_MODEL_TYPE, ETreeSelectionModel)) +#define E_TREE_SELECTION_MODEL_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_TREE_SELECTION_MODEL_TYPE, ETreeSelectionModelClass)) +#define E_IS_TREE_SELECTION_MODEL(o) (GTK_CHECK_TYPE ((o), E_TREE_SELECTION_MODEL_TYPE)) +#define E_IS_TREE_SELECTION_MODEL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TREE_SELECTION_MODEL_TYPE)) + +typedef struct { + ESelectionModel base; + + ETreeTableAdapter *etta; + ETreeSorted *ets; + ETreeModel *model; + + GHashTable *data; + + gboolean invert_selection; + + ETreePath cursor_path; + gint cursor_col; + gint selection_start_row; + + guint model_changed_id; + guint model_row_inserted_id, model_row_deleted_id; + + guint frozen : 1; + guint selection_model_changed : 1; + guint group_info_changed : 1; +} ETreeSelectionModel; + +typedef struct { + ESelectionModelClass parent_class; +} ETreeSelectionModelClass; + +GtkType e_tree_selection_model_get_type (void); +ESelectionModel *e_tree_selection_model_new (void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* _E_TREE_SELECTION_MODEL_H_ */ |