|
GnuCash 2.4.99
|
00001 /********************************************************************\ 00002 * combocell.h -- combo-box pull-down menu cell * 00003 * * 00004 * This program is free software; you can redistribute it and/or * 00005 * modify it under the terms of the GNU General Public License as * 00006 * published by the Free Software Foundation; either version 2 of * 00007 * the License, or (at your option) any later version. * 00008 * * 00009 * This program is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU General Public License* 00015 * along with this program; if not, contact: * 00016 * * 00017 * Free Software Foundation Voice: +1-617-542-5942 * 00018 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00019 * Boston, MA 02110-1301, USA gnu@gnu.org * 00020 * * 00021 \********************************************************************/ 00022 00038 #ifndef COMBO_CELL_H 00039 #define COMBO_CELL_H 00040 00041 #include <glib.h> 00042 00043 #include "basiccell.h" 00044 #include "QuickFill.h" 00045 00046 typedef struct 00047 { 00048 BasicCell cell; 00049 gpointer shared_store; 00050 } ComboCell; 00051 00052 00053 BasicCell * gnc_combo_cell_new (void); 00054 void gnc_combo_cell_init (ComboCell *cell); 00055 00056 void gnc_combo_cell_set_value (ComboCell *cell, const char *value); 00057 00058 void gnc_combo_cell_clear_menu (ComboCell *cell); 00059 00061 void gnc_combo_cell_add_menu_item (ComboCell *cell, const char * menustr); 00062 00066 void gnc_combo_cell_add_account_menu_item (ComboCell *cell, char * menustr); 00067 00070 void gnc_combo_cell_set_sort_enabled (ComboCell *cell, gboolean enabled); 00071 00074 void gnc_combo_cell_set_strict (ComboCell *cell, gboolean strict); 00075 00077 void gnc_combo_cell_set_complete_char (ComboCell *cell, 00078 gunichar complete_char); 00079 00082 void gnc_combo_cell_add_ignore_string (ComboCell *cell, 00083 const char *ignore_string); 00084 00087 void gnc_combo_cell_set_autosize (ComboCell *cell, gboolean autosize); 00088 00098 void gnc_combo_cell_use_quickfill_cache (ComboCell *cell, QuickFill *shared_qf); 00099 00100 void gnc_combo_cell_use_list_store_cache (ComboCell * cell, gpointer data); 00101 00102 #endif
1.7.4