annotate finch/libgnt/gnttree.h @ 18420:e2b8b17fc62c

Allow storing non-string binary data in tree columns.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 03 Jul 2007 04:47:24 +0000
parents e79da0369a6d
children be10fc22d649
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
1 /**
18303
5c6f019e48f8 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18118
diff changeset
2 * @file gnttree.h Tree API
5c6f019e48f8 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18118
diff changeset
3 * @ingroup gnt
5c6f019e48f8 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18118
diff changeset
4 */
5c6f019e48f8 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18118
diff changeset
5 /*
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
6 * GNT - The GLib Ncurses Toolkit
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
7 *
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
8 * GNT is the legal property of its developers, whose names are too numerous
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
10 * source distribution.
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
11 *
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
12 * This library is free software; you can redistribute it and/or modify
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
13 * it under the terms of the GNU General Public License as published by
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
15 * (at your option) any later version.
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
16 *
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
17 * This program is distributed in the hope that it will be useful,
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
20 * GNU General Public License for more details.
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
21 *
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
22 * You should have received a copy of the GNU General Public License
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
23 * along with this program; if not, write to the Free Software
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
25 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
26
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
27 #ifndef GNT_TREE_H
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
28 #define GNT_TREE_H
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
29
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
30 #include "gntwidget.h"
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
31 #include "gnt.h"
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
32 #include "gntcolors.h"
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
33 #include "gntkeys.h"
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
34 #include "gnttextview.h"
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
35
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
36 #define GNT_TYPE_TREE (gnt_tree_get_gtype())
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
37 #define GNT_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_TREE, GntTree))
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
38 #define GNT_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_TREE, GntTreeClass))
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
39 #define GNT_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_TREE))
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
40 #define GNT_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_TREE))
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
41 #define GNT_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_TREE, GntTreeClass))
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
42
15928
f00f2e283ffb Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15817
diff changeset
43 typedef struct _GntTree GntTree;
f00f2e283ffb Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15817
diff changeset
44 typedef struct _GntTreePriv GntTreePriv;
f00f2e283ffb Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15817
diff changeset
45 typedef struct _GntTreeClass GntTreeClass;
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
46
15928
f00f2e283ffb Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15817
diff changeset
47 typedef struct _GntTreeRow GntTreeRow;
f00f2e283ffb Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15817
diff changeset
48 typedef struct _GntTreeCol GntTreeCol;
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
49
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
50 typedef enum {
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
51 GNT_TREE_COLUMN_INVISIBLE = 1 << 0,
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
52 GNT_TREE_COLUMN_FIXED_SIZE = 1 << 1,
18420
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
53 GNT_TREE_COLUMN_BINARY_DATA = 1 << 2,
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
54 } GntTreeColumnFlag;
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
55
15928
f00f2e283ffb Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15817
diff changeset
56 struct _GntTree
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
57 {
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
58 GntWidget parent;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
59
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
60 GntTreeRow *current; /* current selection */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
61
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
62 GntTreeRow *top; /* The topmost visible item */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
63 GntTreeRow *bottom; /* The bottommost visible item */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
64
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
65 GntTreeRow *root; /* The root of all evil */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
66
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
67 GList *list; /* List of GntTreeRow s */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
68 GHashTable *hash; /* We need this for quickly referencing the rows */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
69 guint (*hash_func)(gconstpointer);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
70 gboolean (*hash_eq_func)(gconstpointer, gconstpointer);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
71 GDestroyNotify key_destroy;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
72 GDestroyNotify value_destroy;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
73
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
74 int ncol; /* No. of columns */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
75 struct _GntTreeColInfo
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
76 {
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
77 int width;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
78 char *title;
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
79 int width_ratio;
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
80 GntTreeColumnFlag flags;
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
81 } *columns; /* Would a GList be better? */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
82 gboolean show_title;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
83 gboolean show_separator; /* Whether to show column separators */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
84
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
85 GString *search;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
86 int search_timeout;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
87
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
88 GCompareFunc compare;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
89 };
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
90
15928
f00f2e283ffb Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15817
diff changeset
91 struct _GntTreeClass
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
92 {
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
93 GntWidgetClass parent;
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
94
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
95 void (*selection_changed)(GntTreeRow *old, GntTreeRow * current);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
96 void (*toggled)(GntTree *tree, gpointer key);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
97
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
98 void (*gnt_reserved1)(void);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
99 void (*gnt_reserved2)(void);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
100 void (*gnt_reserved3)(void);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
101 void (*gnt_reserved4)(void);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
102 };
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
103
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
104 G_BEGIN_DECLS
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
105
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
106 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
107 * @return The GType for GntTree
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
108 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
109 GType gnt_tree_get_gtype(void);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
110
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
111 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
112 * Create a tree with one column.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
113 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
114 * @return The newly created tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
115 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
116 * @see gnt_tree_new_with_columns
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
117 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
118 GntWidget * gnt_tree_new(void);
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
119
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
120 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
121 * Create a tree with a specified number of columns.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
122 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
123 * @param columns Number of columns
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
124 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
125 * @return The newly created tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
126 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
127 * @see gnt_tree_new
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
128 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
129 GntWidget * gnt_tree_new_with_columns(int columns);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
130
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
131 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
132 * The number of rows the tree should display at a time.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
133 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
134 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
135 * @param rows The number of rows
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
136 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
137 void gnt_tree_set_visible_rows(GntTree *tree, int rows);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
138
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
139 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
140 * Get the number visible rows.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
141 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
142 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
143 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
144 * @return The number of visible rows
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
145 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
146 int gnt_tree_get_visible_rows(GntTree *tree);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
147
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
148 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
149 * Scroll the contents of the tree.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
150 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
151 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
152 * @param count If positive, the tree will be scrolled down by count rows,
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
153 * otherwise, it will be scrolled up by count rows.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
154 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
155 void gnt_tree_scroll(GntTree *tree, int count);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
156
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
157 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
158 * Insert a row in the tree.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
159 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
160 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
161 * @param key The key for the row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
162 * @param row The row to insert
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
163 * @param parent The key for the parent row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
164 * @param bigbro The key for the row to insert the new row after.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
165 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
166 * @return The inserted row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
167 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
168 * @see gnt_tree_create_row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
169 * @see gnt_tree_add_row_last
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
170 * @see gnt_tree_add_choice
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
171 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
172 GntTreeRow * gnt_tree_add_row_after(GntTree *tree, void *key, GntTreeRow *row, void *parent, void *bigbro);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
173
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
174 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
175 * Insert a row at the end of the tree.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
176 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
177 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
178 * @param key The key for the row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
179 * @param row The row to insert
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
180 * @param parent The key for the parent row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
181 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
182 * @return The inserted row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
183 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
184 * @see gnt_tree_create_row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
185 * @see gnt_tree_add_row_after
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
186 * @see gnt_tree_add_choice
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
187 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
188 GntTreeRow * gnt_tree_add_row_last(GntTree *tree, void *key, GntTreeRow *row, void *parent);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
189
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
190 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
191 * Get the key for the selected row.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
192 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
193 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
194 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
195 * @return The key for the selected row
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
196 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
197 gpointer gnt_tree_get_selection_data(GntTree *tree);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
198
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
199 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
200 * Get the text displayed for the selected row.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
201 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
202 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
203 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
204 * @return The text, which needs to be freed by the caller
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
205 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
206 char * gnt_tree_get_selection_text(GntTree *tree);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
207
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
208 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
209 * Get a list of text of the current row.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
210 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
211 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
212 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
213 * @return A list of texts of the currently selected row. The list
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
214 * and its data should be freed by the caller.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
215 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
216 GList * gnt_tree_get_selection_text_list(GntTree *tree);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
217
18118
ab6d2763b8d8 Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@wiktel.com>
parents: 18049
diff changeset
218 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
219 * Returns the list of rows in the tree.
18118
ab6d2763b8d8 Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@wiktel.com>
parents: 18049
diff changeset
220 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
221 * @param tree The tree
18118
ab6d2763b8d8 Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@wiktel.com>
parents: 18049
diff changeset
222 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
223 * @return The list of the rows. The list should not be modified by the caller.
18118
ab6d2763b8d8 Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@wiktel.com>
parents: 18049
diff changeset
224 */
ab6d2763b8d8 Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@wiktel.com>
parents: 18049
diff changeset
225 GList *gnt_tree_get_rows(GntTree *tree);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
226
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
227 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
228 * Remove a row from the tree.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
229 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
230 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
231 * @param key The key for the row to remove
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
232 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
233 void gnt_tree_remove(GntTree *tree, gpointer key);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
234
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
235 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
236 * Remove all the item from the tree.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
237 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
238 * @param tree The tree
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
239 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
240 void gnt_tree_remove_all(GntTree *tree);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
241
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
242 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
243 * Get the visible line number of the selected row.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
244 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
245 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
246 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
247 * @return The line number of the currently selected row
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
248 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
249 int gnt_tree_get_selection_visible_line(GntTree *tree);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
250
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
251 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
252 * Change the text of a column in a row.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
253 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
254 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
255 * @param key The key for the row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
256 * @param colno The index of the column
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
257 * @param text The new text
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
258 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
259 void gnt_tree_change_text(GntTree *tree, gpointer key, int colno, const char *text);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
260
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
261 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
262 * Add a checkable item in the tree.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
263 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
264 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
265 * @param key The key for the row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
266 * @param row The row to add
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
267 * @param parent The parent of the row, or @c NULL
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
268 * @param bigbro The row to insert after, or @c NULL
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
269 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
270 * @return The row inserted.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
271 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
272 * @see gnt_tree_create_row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
273 * @see gnt_tree_create_row_from_list
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
274 * @see gnt_tree_add_row_last
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
275 * @see gnt_tree_add_row_after
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
276 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
277 GntTreeRow * gnt_tree_add_choice(GntTree *tree, void *key, GntTreeRow *row, void *parent, void *bigbro);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
278
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
279 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
280 * Set whether a checkable item is checked or not.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
281 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
282 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
283 * @param key The key for the row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
284 * @param set @c TRUE if the item should be checked, @c FALSE if not
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
285 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
286 void gnt_tree_set_choice(GntTree *tree, void *key, gboolean set);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
287
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
288 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
289 * Return whether a row is selected or not, where the row is a checkable item.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
290 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
291 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
292 * @param key The key for the row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
293 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
294 * @return @c TRUE if the row is checked, @c FALSE otherwise.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
295 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
296 gboolean gnt_tree_get_choice(GntTree *tree, void *key);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
297
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
298 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
299 * Set flags for the text in a row in the tree.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
300 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
301 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
302 * @param key The key for the row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
303 * @param flags The flags to set
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
304 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
305 void gnt_tree_set_row_flags(GntTree *tree, void *key, GntTextFormatFlags flags);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
306
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
307 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
308 * Select a row.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
309 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
310 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
311 * @param key The key of the row to select
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
312 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
313 void gnt_tree_set_selected(GntTree *tree , void *key);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
314
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
315 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
316 * Create a row to insert in the tree.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
317 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
318 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
319 * @param ... A string for each column in the tree
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
320 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
321 * @return The row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
322 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
323 * @see gnt_tree_create_row_from_list
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
324 * @see gnt_tree_add_row_after
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
325 * @see gnt_tree_add_row_last
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
326 * @see gnt_tree_add_choice
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
327 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
328 GntTreeRow * gnt_tree_create_row(GntTree *tree, ...);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
329
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
330 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
331 * Create a row from a list of text.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
332 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
333 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
334 * @param list The list containing the text for each column
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
335 *
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
336 * @return The row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
337 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
338 * @see gnt_tree_create_row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
339 * @see gnt_tree_add_row_after
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
340 * @see gnt_tree_add_row_last
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
341 * @see gnt_tree_add_choice
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
342 */
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
343 GntTreeRow * gnt_tree_create_row_from_list(GntTree *tree, GList *list);
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
344
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
345 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
346 * Set the width of a column in the tree.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
347 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
348 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
349 * @param col The index of the column
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
350 * @param width The width for the column
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
351 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
352 * @see gnt_tree_set_column_width_ratio
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
353 * @see gnt_tree_set_column_resizable
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
354 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
355 void gnt_tree_set_col_width(GntTree *tree, int col, int width);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
356
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
357 /**
18348
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
358 * Set the title for a column.
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
359 *
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
360 * @param tree The tree
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
361 * @param index The index of the column
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
362 * @param title The title for the column
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
363 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
364 * @see gnt_tree_set_column_titles
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
365 * @see gnt_tree_set_show_title
18348
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
366 */
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
367 void gnt_tree_set_column_title(GntTree *tree, int index, const char *title);
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
368
1f9db757efc2 Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18303
diff changeset
369 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
370 * Set the titles of the columns
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
371 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
372 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
373 * @param ... One title for each column in the tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
374 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
375 * @see gnt_tree_set_column_title
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
376 * @see gnt_tree_set_show_title
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
377 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
378 void gnt_tree_set_column_titles(GntTree *tree, ...);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
379
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
380 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
381 * Set whether to display the title of the columns.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
382 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
383 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
384 * @param set If @c TRUE, the column titles are displayed
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
385 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
386 * @see gnt_tree_set_column_title
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
387 * @see gnt_tree_set_column_titles
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
388 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
389 void gnt_tree_set_show_title(GntTree *tree, gboolean set);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
390
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
391 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
392 * Set the compare function for sorting the data.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
393 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
394 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
395 * @param func The comparison function, which is used to compare
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
396 * the keys
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
397 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
398 * @see gnt_tree_sort_row
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
399 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
400 void gnt_tree_set_compare_func(GntTree *tree, GCompareFunc func);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
401
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
402 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
403 * Set whether a row, which has child rows, should be expanded.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
404 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
405 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
406 * @param key The key of the row
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
407 * @param expanded Whether to expand the child rows
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
408 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
409 void gnt_tree_set_expanded(GntTree *tree, void *key, gboolean expanded);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
410
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
411 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
412 * Set whether to show column separators.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
413 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
414 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
415 * @param set If @c TRUE, the column separators are displayed
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
416 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
417 void gnt_tree_set_show_separator(GntTree *tree, gboolean set);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
418
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
419 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
420 * Sort a row in the tree.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
421 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
422 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
423 * @param row The row to sort
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
424 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
425 * @see gnt_tree_set_compare_func
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
426 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
427 void gnt_tree_sort_row(GntTree *tree, void *row);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
428
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
429 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
430 * Automatically adjust the width of the columns in the tree.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
431 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
432 * @param tree The tree
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
433 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
434 void gnt_tree_adjust_columns(GntTree *tree);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
435
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
436 /**
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
437 * Set the hash functions to use to hash, compare and free the keys.
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
438 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
439 * @param tree The tree
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
440 * @param hash The hashing function
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
441 * @param eq The function to compare keys
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
442 * @param kd The function to use to free the keys when a row is removed
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
443 * from the tree
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
444 */
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
445 void gnt_tree_set_hash_fns(GntTree *tree, gpointer hash, gpointer eq, gpointer kd);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
446
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
447 /**
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
448 * Set whether a column is visible or not.
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
449 * This can be useful when, for example, we want to store some data
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
450 * which we don't want/need to display.
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
451 *
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
452 * @param tree The tree
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
453 * @param col The index of the column
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
454 * @param vis If @c FALSE, the column will not be displayed
18049
1cedd520cd18 Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15970
diff changeset
455 */
15970
790d1d003825 Allow making some columns invisible.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15928
diff changeset
456 void gnt_tree_set_column_visible(GntTree *tree, int col, gboolean vis);
790d1d003825 Allow making some columns invisible.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 15928
diff changeset
457
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
458 /**
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
459 * Set whether a column can be resized to keep the same ratio when the
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
460 * tree is resized.
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
461 *
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
462 * @param tree The tree
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
463 * @param col The index of the column
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
464 * @param res If @c FALSE, the column will not be resized when the
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
465 * tree is resized
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
466 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
467 * @see gnt_tree_set_col_width
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
468 * @see gnt_tree_set_column_width_ratio
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
469 */
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
470 void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res);
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
471
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
472 /**
18420
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
473 * Set whether data in a column should be considered as binary data, and
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
474 * not as strings. A column containing binary data will be display empty text.
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
475 *
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
476 * @param tree The tree
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
477 * @param col The index of the column
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
478 * @param bin @c TRUE if the data for the column is binary
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
479 */
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
480 void gnt_tree_set_column_is_binary(GntTree *tree, int col, gboolean bin);
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
481
e2b8b17fc62c Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18419
diff changeset
482 /**
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
483 * Set column widths to use when calculating column widths after a tree
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
484 * is resized.
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
485 *
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
486 * @param tree The tree
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
487 * @param cols Array of widths. The width must have the same number
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
488 * of entries as the number of columns in the tree, or
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
489 * end with a negative value for a column-width.
18419
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
490 *
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
491 * @see gnt_tree_set_col_width
e79da0369a6d Docs for GntTree.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18404
diff changeset
492 * @see gnt_tree_set_column_resizable
18404
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
493 */
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
494 void gnt_tree_set_column_width_ratio(GntTree *tree, int cols[]);
9a0f99ea664d Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 18348
diff changeset
495
15817
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
496 G_END_DECLS
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
497
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
498 /* The following functions should NOT be used by applications. */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
499
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
500 /* This should be called by the subclasses of GntTree's in their _new function */
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
501 void _gnt_tree_init_internals(GntTree *tree, int col);
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
502
0e3a8505ebbe renamed gaim-text to finch
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
503 #endif /* GNT_TREE_H */