GnuCash 2.4.99
search-core-utils.h
00001 /*
00002  * search-core-utils.h -- common functions for search code
00003  * Copyright (C) 2006 David Hampton <hampton@employees.org>
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License as
00007  * published by the Free Software Foundation; either version 2 of
00008  * the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, contact:
00017  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00021  *
00022  */
00023 
00024 /* Functions for creating the common two column GtkComboBox used by
00025  * all the search widgets. */
00026 
00027 enum gnc_combo_search_cols
00028 {
00029     GNC_COMBO_SEARCH_COL_TEXT = 0,
00030     GNC_COMBO_SEARCH_COL_VALUE,
00031     NUM_GNC_COMBO_SEARCH_COLS,
00032 };
00033 
00034 GtkWidget *gnc_combo_box_new_search (void);
00035 void gnc_combo_box_search_add (GtkComboBox *combo, const gchar *text, guint value);
00036 guint gnc_combo_box_search_get_active (GtkComboBox *combo);
00037 void gnc_combo_box_search_set_active (GtkComboBox *combo, guint value);
00038 void gnc_combo_box_search_changed(GtkComboBox *combo, guint *value);
00039 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines