]> Pileus Git - ~andy/gtk/blob - gtk/tests/treemodel.h
1478f470b51e29d35bc22364510f62cabc4ec6ca
[~andy/gtk] / gtk / tests / treemodel.h
1 /* Main wrapper for TreeModel test suite.
2  * Copyright (C) 2011  Kristian Rietveld  <kris@gtk.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #include <gtk/gtk.h>
21
22 void register_list_store_tests ();
23 void register_tree_store_tests ();
24 void register_sort_model_tests ();
25 void register_filter_model_tests ();
26 void register_model_ref_count_tests ();
27
28 /*
29  * Signal monitor
30  */
31 typedef struct _SignalMonitor           SignalMonitor;
32 typedef enum _SignalName                SignalName;
33
34 enum _SignalName
35 {
36   ROW_INSERTED,
37   ROW_DELETED,
38   ROW_CHANGED,
39   ROW_HAS_CHILD_TOGGLED,
40   ROWS_REORDERED,
41   LAST_SIGNAL
42 };
43
44
45 SignalMonitor *signal_monitor_new                     (GtkTreeModel  *client);
46 void           signal_monitor_free                    (SignalMonitor *m);
47
48 void           signal_monitor_assert_is_empty         (SignalMonitor *m);
49
50 void           signal_monitor_append_signal_reordered (SignalMonitor *m,
51                                                        SignalName     signal,
52                                                        GtkTreePath   *path,
53                                                        int           *new_order,
54                                                        int            len);
55 void           signal_monitor_append_signal_path      (SignalMonitor *m,
56                                                        SignalName     signal,
57                                                        GtkTreePath   *path);
58 void           signal_monitor_append_signal           (SignalMonitor *m,
59                                                        SignalName     signal,
60                                                        const gchar   *path_string);