GnuCash c935c2f+
Loading...
Searching...
No Matches
completioncell.h
1/********************************************************************\
2 * completion.h -- combo-box used for completion 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
38#ifndef COMPLETION_CELL_H
39#define COMPLETION_CELL_H
40
41#include <glib.h>
42
43#include "basiccell.h"
44
45typedef struct
46{
47 BasicCell cell;
49
50
51BasicCell * gnc_completion_cell_new (void);
52void gnc_completion_cell_init (CompletionCell* cell);
53
54void gnc_completion_cell_set_value (CompletionCell* cell, const char* value);
55
56void gnc_completion_cell_clear_menu (CompletionCell* cell);
57
60 const char* menustr);
61
64 gboolean enabled);
65
68void gnc_completion_cell_set_strict (CompletionCell* cell, gboolean strict);
69
72void gnc_completion_cell_set_autosize (CompletionCell* cell, gboolean autosize);
73
76void gnc_completion_cell_reverse_sort (CompletionCell* cell, gboolean is_reversed);
77
79#endif
void gnc_completion_cell_set_strict(CompletionCell *cell, gboolean strict)
Determines whether the cell will accept strings not in the menu.
void gnc_completion_cell_add_menu_item(CompletionCell *cell, const char *menustr)
Add a menu item to the hash table list.
void gnc_completion_cell_reverse_sort(CompletionCell *cell, gboolean is_reversed)
Register the sort direction.
void gnc_completion_cell_set_sort_enabled(CompletionCell *cell, gboolean enabled)
Enable sorting of the menu item's contents.
void gnc_completion_cell_set_autosize(CompletionCell *cell, gboolean autosize)
Determines whether the popup list autosizes itself or uses all available space.
The CompletionCell object implements a cell handler with a "combination-box" pull-down menu in it.