Fix debian/changelog
[hildon] / hildon / hildon-find-toolbar.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Rodrigo Novo <rodrigo.novo@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef                                         __HILDON_FIND_TOOLBAR_H__
26 #define                                         __HILDON_FIND_TOOLBAR_H__
27
28 #include                                        <gtk/gtk.h>
29
30 G_BEGIN_DECLS
31
32 #define                                         HILDON_TYPE_FIND_TOOLBAR (hildon_find_toolbar_get_type())
33
34 #define                                         HILDON_FIND_TOOLBAR(object) \
35                                                 (G_TYPE_CHECK_INSTANCE_CAST((object), \
36                                                 HILDON_TYPE_FIND_TOOLBAR, \
37                                                 HildonFindToolbar))
38
39 #define                                         HILDON_FIND_TOOLBAR_CLASS(klass) \
40                                                 (G_TYPE_CHECK_CLASS_CAST((klass), HILDON_TYPE_FIND_TOOLBAR, \
41                                                 HildonFindToolbarClass))
42
43 #define                                         HILDON_IS_FIND_TOOLBAR(object) \
44                                                 (G_TYPE_CHECK_INSTANCE_TYPE((object), \
45                                                 HILDON_TYPE_FIND_TOOLBAR))
46
47 #define                                         HILDON_IS_FIND_TOOLBAR_CLASS(klass) \
48                                                 (G_TYPE_CHECK_CLASS_CAST((klass), \
49                                                 HILDON_TYPE_FIND_TOOLBAR))
50
51 #define                                         HILDON_FIND_TOOLBAR_GET_CLASS(object) \
52                                                 (G_TYPE_INSTANCE_GET_CLASS((object), \
53                                                 HILDON_TYPE_FIND_TOOLBAR, \
54                                                 HildonFindToolbarClass))
55
56 typedef struct                                  _HildonFindToolbar HildonFindToolbar;
57
58 typedef struct                                  _HildonFindToolbarClass HildonFindToolbarClass;
59
60 struct _HildonFindToolbar
61 {
62   GtkToolbar parent;
63 };
64
65 struct _HildonFindToolbarClass
66 {
67   GtkToolbarClass parent_class;
68
69   void (*search) (HildonFindToolbar *toolbar);
70   void (*close) (HildonFindToolbar *toolbar);
71   void (*invalid_input) (HildonFindToolbar *toolbar);
72   gboolean (*history_append) (HildonFindToolbar *tooblar);
73 };
74
75 GType G_GNUC_CONST
76 hildon_find_toolbar_get_type                    (void);
77
78 GtkWidget*      
79 hildon_find_toolbar_new                         (const gchar *label);
80
81 GtkWidget*      
82 hildon_find_toolbar_new_with_model              (const gchar *label,
83                                                  GtkListStore* model,
84                                                  gint column);
85
86 void 
87 hildon_find_toolbar_highlight_entry             (HildonFindToolbar *ftb,
88                                                  gboolean get_focus);
89
90 void
91 hildon_find_toolbar_set_active                  (HildonFindToolbar *toolbar,
92                                                  gint index);
93
94 gint
95 hildon_find_toolbar_get_active                  (HildonFindToolbar *toolbar);
96
97 void
98 hildon_find_toolbar_set_active_iter             (HildonFindToolbar *toolbar, 
99                                                  GtkTreeIter *iter);
100
101 gboolean
102 hildon_find_toolbar_get_active_iter             (HildonFindToolbar *toolbar, 
103                                                  GtkTreeIter *iter);
104
105 gint32
106 hildon_find_toolbar_get_last_index              (HildonFindToolbar *toolbar);
107
108 G_END_DECLS
109
110 #endif                                          /* __HILDON_FIND_TOOLBAR_H__ */
111