GnuCash  5.6-150-g038405b370+
quickfillcell.h
Go to the documentation of this file.
1 /********************************************************************\
2  * quickfillcell.h -- autocompletion based on memorized history *
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 
35 /* HISTORY:
36  * Copyright (c) 1997, 1998 Linas Vepstas
37  * Copyright (c) 2000 Dave Peticolas
38  */
39 
40 #ifndef QUICKFILL_CELL_H
41 #define QUICKFILL_CELL_H
42 
43 #include "basiccell.h"
44 #include "QuickFill.h"
45 
46 typedef struct
47 {
48  BasicCell cell;
49  QuickFill *qf;
50  QuickFillSort sort;
52  char *original;
55 
56 BasicCell * gnc_quickfill_cell_new (void);
57 
62  const char *value);
63 
64 void gnc_quickfill_cell_set_sort (QuickFillCell *cell,
65  QuickFillSort sort);
66 
67 void gnc_quickfill_cell_add_completion (QuickFillCell *cell,
68  const char *completion);
69 
73 void
74 gnc_quickfill_cell_use_quickfill_cache (QuickFillCell *cell, QuickFill *shared_qf);
76 #endif
The QuickFillCell implements a text cell with quick-fill capabilities.
Definition: quickfillcell.h:46
gboolean use_quickfill_cache
original string entered in original case
Definition: quickfillcell.h:53
void gnc_quickfill_cell_set_value(QuickFillCell *cell, const char *value)
sets the current cell value to the indicated string, simultaneously adding the string to the quick-fi...
QuickFillSort sort
quickfill-tree handled by this cell
Definition: quickfillcell.h:50
void gnc_quickfill_cell_use_quickfill_cache(QuickFillCell *cell, QuickFill *shared_qf)
Lets the cell use the given shared quickfill object instead of the one it owns internally.
char * original
determines order of strings matched.
Definition: quickfillcell.h:52
QuickFill is used to auto-complete typed user entries.