GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
search-core-utils.h
1 /*
2  * search-core-utils.h -- common functions for search code
3  * Copyright (C) 2006 David Hampton <[email protected]>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This program 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
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, contact:
17  *
18  * Free Software Foundation Voice: +1-617-542-5942
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
20  * Boston, MA 02110-1301, USA [email protected]
21  *
22  */
23 
24 /* Functions for creating the common two column GtkComboBox used by
25  * all the search widgets. */
26 
27 enum gnc_combo_search_cols
28 {
29  GNC_COMBO_SEARCH_COL_TEXT = 0,
30  GNC_COMBO_SEARCH_COL_VALUE,
31  NUM_GNC_COMBO_SEARCH_COLS,
32 };
33 
34 GtkWidget *gnc_combo_box_new_search (void);
35 void gnc_combo_box_search_add (GtkComboBox *combo, const gchar *text, guint value);
36 guint gnc_combo_box_search_get_active (GtkComboBox *combo);
37 void gnc_combo_box_search_set_active (GtkComboBox *combo, guint value);
38 void gnc_combo_box_search_changed(GtkComboBox *combo, guint *value);
39