aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-tree-gnode.h
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-06-09 07:16:22 +0800
committerChris Toshok <toshok@src.gnome.org>2000-06-09 07:16:22 +0800
commite581631a9ce0803ba629ac67cd8934a6e23753ae (patch)
tree16fd9ebf869dd9fd82d265ce5a60a4ea7aeba652 /widgets/e-table/e-tree-gnode.h
parentf856d999c5cade657d045ea22b1fb64be481829d (diff)
downloadgsoc2013-evolution-e581631a9ce0803ba629ac67cd8934a6e23753ae.tar
gsoc2013-evolution-e581631a9ce0803ba629ac67cd8934a6e23753ae.tar.gz
gsoc2013-evolution-e581631a9ce0803ba629ac67cd8934a6e23753ae.tar.bz2
gsoc2013-evolution-e581631a9ce0803ba629ac67cd8934a6e23753ae.tar.lz
gsoc2013-evolution-e581631a9ce0803ba629ac67cd8934a6e23753ae.tar.xz
gsoc2013-evolution-e581631a9ce0803ba629ac67cd8934a6e23753ae.tar.zst
gsoc2013-evolution-e581631a9ce0803ba629ac67cd8934a6e23753ae.zip
New files. A tree model using a GNode structure to store it's info.
2000-06-08 Chris Toshok <toshok@helixcode.com> * e-tree-gnode.c, e-tree-gnode.h: New files. A tree model using a GNode structure to store it's info. * e-tree-model.c, e-tree-model.h: New files. A proxy model sitting between a table model and the real tree model (of which ETreeGNode is an example). * e-cell-tree.c, e-cell-tree.h: New files. A cell renderer capable of wrapping up a subcell and drawing the tree controls for expanding/collapsing trees. * tree-expanded.xpm, tree-unexpanded.xpm: New files. the standard + and - icons. * e-tree-example-1.c: New file, giving a (pretty poor :) example of using ETreeGNode. * Makefile.am: at the tree stuff to the build, and build tree-example-1. * .cvsignore: ignore tree-example-1. svn path=/trunk/; revision=3483
Diffstat (limited to 'widgets/e-table/e-tree-gnode.h')
-rw-r--r--widgets/e-table/e-tree-gnode.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/widgets/e-table/e-tree-gnode.h b/widgets/e-table/e-tree-gnode.h
new file mode 100644
index 0000000000..56e6b19b80
--- /dev/null
+++ b/widgets/e-table/e-tree-gnode.h
@@ -0,0 +1,37 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+
+#ifndef _E_TREE_GNODE_H_
+#define _E_TREE_GNODE_H_
+
+#include "e-tree-model.h"
+
+#define E_TREE_GNODE_TYPE (e_tree_gnode_get_type ())
+#define E_TREE_GNODE(o) (GTK_CHECK_CAST ((o), E_TREE_GNODE_TYPE, ETreeGNode))
+#define E_TREE_GNODE_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_TREE_GNODE_TYPE, ETreeGNodeClass))
+#define E_IS_TREE_GNODE(o) (GTK_CHECK_TYPE ((o), E_TREE_GNODE_TYPE))
+#define E_IS_TREE_GNODE_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TREE_GNODE_TYPE))
+
+typedef void *(*ETreeGNodeValueAtFn)(ETreeModel *model, GNode *node, int col, void *data);
+
+
+typedef struct {
+ ETreeModel parent;
+
+ GNode *root;
+
+ ETreeGNodeValueAtFn value_at;
+
+ void *data;
+} ETreeGNode;
+
+typedef struct {
+ ETreeModelClass parent_class;
+} ETreeGNodeClass;
+
+GtkType e_tree_gnode_get_type (void);
+
+ETreeModel *e_tree_gnode_new (GNode *tree,
+ ETreeGNodeValueAtFn value_at,
+ void *data);
+
+#endif /* _E_TREE_GNODE_H_ */