1 /*
2  * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org>
3  * Copyright (C) 2011 Murray Cumming <murrayc@murrayc.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA  02110-1301, USA.
19  */
20 
21 #ifndef __GDAUI_DATA_FILTER__
22 #define __GDAUI_DATA_FILTER__
23 
24 #include <gtk/gtk.h>
25 #include <libgda/gda-decl.h>
26 #include <libgda-ui/gdaui-decl.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GDAUI_TYPE_DATA_FILTER          (gdaui_data_filter_get_type())
31 #define GDAUI_DATA_FILTER(obj)          G_TYPE_CHECK_INSTANCE_CAST (obj, gdaui_data_filter_get_type(), GdauiDataFilter)
32 #define GDAUI_DATA_FILTER_CLASS(klass)  G_TYPE_CHECK_CLASS_CAST (klass, gdaui_data_filter_get_type (), GdauiDataFilterClass)
33 #define GDAUI_IS_DATA_FILTER(obj)       G_TYPE_CHECK_INSTANCE_TYPE (obj, gdaui_data_filter_get_type ())
34 
35 
36 typedef struct _GdauiDataFilter      GdauiDataFilter;
37 typedef struct _GdauiDataFilterClass GdauiDataFilterClass;
38 typedef struct _GdauiDataFilterPriv  GdauiDataFilterPriv;
39 
40 /* struct for the object's data */
41 struct _GdauiDataFilter
42 {
43 	GtkBox                      object;
44 
45 	GdauiDataFilterPriv *priv;
46 };
47 
48 /* struct for the object's class */
49 struct _GdauiDataFilterClass
50 {
51 	GtkBoxClass                 parent_class;
52 };
53 
54 /**
55  * SECTION:gdaui-data-filter
56  * @short_description: Entrer rules to filter the rows in a #GdauiDataProxy
57  * @title: GdauiDataFilter
58  * @stability: Stable
59  * @Image: vi-filter.png
60  * @see_also:
61  *
62  * The #GdauiDataFilter widget can be used as a standalone widget, but is also
63  * used internally by the #GdauiDataProxyInfo widget for its search option.
64  */
65 
66 GType             gdaui_data_filter_get_type                  (void) G_GNUC_CONST;
67 
68 GtkWidget        *gdaui_data_filter_new                       (GdauiDataProxy *data_widget);
69 
70 G_END_DECLS
71 
72 #endif
73 
74 
75 
76