1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * e-cell-tree.h - Tree cell object.
4 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
7 * Chris Toshok <toshok@ximian.com>
9 * A majority of code taken from:
11 * the ECellText renderer.
12 * Copyright 1998, The Free Software Foundation
13 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
15 * This program is free software; you can redistribute it and/or modify it
16 * under the terms of the GNU Lesser General Public License as published by
17 * published by the Free Software Foundation; either the
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 * You should have received a copy of the GNU Lesser General Public License
25 * along with this program; if not, see <http://www.gnu.org/licenses/>.
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
30 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
31 #error "Only <e-util/e-util.h> should be included directly."
34 #ifndef _E_CELL_TREE_H_
35 #define _E_CELL_TREE_H_
37 #include <libgnomecanvas/libgnomecanvas.h>
39 #include <e-util/e-cell.h>
41 /* Standard GObject macros */
42 #define E_TYPE_CELL_TREE \
43 (e_cell_tree_get_type ())
44 #define E_CELL_TREE(obj) \
45 (G_TYPE_CHECK_INSTANCE_CAST \
46 ((obj), E_TYPE_CELL_TREE, ECellTree))
47 #define E_CELL_TREE_CLASS(cls) \
48 (G_TYPE_CHECK_CLASS_CAST \
49 ((cls), E_TYPE_CELL_TREE, ECellTreeClass))
50 #define E_IS_CELL_TREE(obj) \
51 (G_TYPE_CHECK_INSTANCE_TYPE \
52 ((obj), E_TYPE_CELL_TREE))
53 #define E_IS_CELL_TREE_CLASS(cls) \
54 (G_TYPE_CHECK_CLASS_TYPE \
55 ((cls), E_TYPE_CELL_TREE))
56 #define E_CELL_TREE_GET_CLASS(obj) \
57 (G_TYPE_INSTANCE_GET_CLASS \
58 ((obj), E_TYPE_CELL_TREE, ECellTreeClass))
62 typedef struct _ECellTree ECellTree
;
63 typedef struct _ECellTreeClass ECellTreeClass
;
69 gboolean grouped_view
;
74 struct _ECellTreeClass
{
75 ECellClass parent_class
;
78 GType
e_cell_tree_get_type (void) G_GNUC_CONST
;
79 ECell
* e_cell_tree_new (gboolean draw_lines
,
81 void e_cell_tree_construct (ECellTree
*ect
,
84 ECellView
* e_cell_tree_view_get_subcell_view
86 gboolean
e_cell_tree_get_grouped_view (ECellTree
*cell_tree
);
87 void e_cell_tree_set_grouped_view (ECellTree
*cell_tree
,
88 gboolean grouped_view
);
92 #endif /* _E_CELL_TREE_H_ */