Updated Spanish translation
[evolution.git] / e-util / e-cell-tree.h
blob14490a20f35bc586f18280ce619b36ff292a5b51
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * e-cell-tree.h - Tree cell object.
4 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
6 * Authors:
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
22 * for more details.
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
27 * 02110-1301, USA.
30 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
31 #error "Only <e-util/e-util.h> should be included directly."
32 #endif
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))
60 G_BEGIN_DECLS
62 typedef struct _ECellTree ECellTree;
63 typedef struct _ECellTreeClass ECellTreeClass;
65 struct _ECellTree {
66 ECell parent;
68 gboolean draw_lines;
69 gboolean grouped_view;
71 ECell *subcell;
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,
80 ECell *subcell);
81 void e_cell_tree_construct (ECellTree *ect,
82 gboolean draw_lines,
83 ECell *subcell);
84 ECellView * e_cell_tree_view_get_subcell_view
85 (ECellView *ect);
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);
90 G_END_DECLS
92 #endif /* _E_CELL_TREE_H_ */