GnuCash  5.6-150-g038405b370+
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 gnu@gnu.org *
20  * *
21 \********************************************************************/
22 
40 #ifndef COMBO_CELL_H
41 #define COMBO_CELL_H
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 #include <glib.h>
48 
49 #include "basiccell.h"
50 #include "QuickFill.h"
51 
52 typedef struct
53 {
54  BasicCell cell;
55  gpointer shared_store;
56 } ComboCell;
57 
58 
59 BasicCell* gnc_combo_cell_new (void);
60 void gnc_combo_cell_init (ComboCell* cell);
61 
62 void gnc_combo_cell_set_value (ComboCell* cell, const char* value);
63 
64 void gnc_combo_cell_clear_menu (ComboCell* cell);
65 
68  const char* menustr);
69 
74  char* menustr);
75 
79  gboolean enabled);
80 
83 void gnc_combo_cell_set_strict (ComboCell* cell, gboolean strict);
84 
87  gunichar complete_char);
88 
92  const char* ignore_string);
93 
96 void gnc_combo_cell_set_autosize (ComboCell* cell, gboolean autosize);
97 
108  QuickFill* shared_qf);
109 void gnc_combo_cell_use_list_store_cache (ComboCell* cell, gpointer data);
110 
111 #ifdef __cplusplus
112 }
113 #endif
114 
116 #endif
void gnc_combo_cell_set_sort_enabled(ComboCell *cell, gboolean enabled)
Enable sorting of the menu item&#39;s contents.
void gnc_combo_cell_add_ignore_string(ComboCell *cell, const char *ignore_string)
Add a string to a list of strings which, if the cell has that value, will cause the cell to be unedit...
void gnc_combo_cell_set_complete_char(ComboCell *cell, gunichar complete_char)
Sets a character used for special completion processing.
void gnc_combo_cell_add_account_menu_item(ComboCell *cell, char *menustr)
Add a &#39;account name&#39; menu item to the list.
The ComboCell object implements a cell handler with a "combination-box" pull-down menu in it...
Definition: combocell.h:52
void gnc_combo_cell_add_menu_item(ComboCell *cell, const char *menustr)
Add a menu item to the list.
void gnc_combo_cell_set_strict(ComboCell *cell, gboolean strict)
Determines whether the cell will accept strings not in the menu.
QuickFill is used to auto-complete typed user entries.
void gnc_combo_cell_use_quickfill_cache(ComboCell *cell, QuickFill *shared_qf)
Tell the combocell to use a shared QuickFill object.
void gnc_combo_cell_set_autosize(ComboCell *cell, gboolean autosize)
Determines whether the popup list autosizes itself or uses all available space.