GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
combocell.h
Go to the documentation of this file.
1 /********************************************************************\
2  * combocell.h -- combo-box pull-down menu cell *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA [email protected] *
20  * *
21 \********************************************************************/
22 
38 #ifndef COMBO_CELL_H
39 #define COMBO_CELL_H
40 
41 #include <glib.h>
42 
43 #include "basiccell.h"
44 #include "QuickFill.h"
45 
46 typedef struct
47 {
48  BasicCell cell;
49  gpointer shared_store;
50 } ComboCell;
51 
52 
53 BasicCell * gnc_combo_cell_new (void);
54 void gnc_combo_cell_init (ComboCell *cell);
55 
56 void gnc_combo_cell_set_value (ComboCell *cell, const char *value);
57 
58 void gnc_combo_cell_clear_menu (ComboCell *cell);
59 
61 void gnc_combo_cell_add_menu_item (ComboCell *cell, const char * menustr);
62 
66 void gnc_combo_cell_add_account_menu_item (ComboCell *cell, char * menustr);
67 
70 void gnc_combo_cell_set_sort_enabled (ComboCell *cell, gboolean enabled);
71 
74 void gnc_combo_cell_set_strict (ComboCell *cell, gboolean strict);
75 
78  gunichar complete_char);
79 
83  const char *ignore_string);
84 
87 void gnc_combo_cell_set_autosize (ComboCell *cell, gboolean autosize);
88 
99 
100 void gnc_combo_cell_use_list_store_cache (ComboCell * cell, gpointer data);
101 
102 #endif
void gnc_combo_cell_set_autosize(ComboCell *cell, gboolean autosize)
void gnc_combo_cell_set_sort_enabled(ComboCell *cell, gboolean enabled)
void gnc_combo_cell_add_account_menu_item(ComboCell *cell, char *menustr)
void gnc_combo_cell_use_quickfill_cache(ComboCell *cell, QuickFill *shared_qf)
void gnc_combo_cell_set_complete_char(ComboCell *cell, gunichar complete_char)
void gnc_combo_cell_add_menu_item(ComboCell *cell, const char *menustr)
void gnc_combo_cell_add_ignore_string(ComboCell *cell, const char *ignore_string)
void gnc_combo_cell_set_strict(ComboCell *cell, gboolean strict)
QuickFill is used to auto-complete typed user entries.