GnuCash  5.6-150-g038405b370+
numcell.h
Go to the documentation of this file.
1 /********************************************************************\
2  * numcell.h -- number handling cell incl. accelerator key support *
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 
30  /* HISTORY:
31  * Copyright (c) 2000 Dave Peticolas <dave@krondo.com>
32  */
33 
34 #ifndef NUM_CELL_H
35 #define NUM_CELL_H
36 
37 #include "basiccell.h"
38 
39 typedef struct
40 {
41  BasicCell cell;
42  long int next_num;
43  gboolean next_num_set;
44 } NumCell;
45 
46 BasicCell * gnc_num_cell_new (void);
47 
48 void gnc_num_cell_set_value (NumCell *cell, const char *str);
49 gboolean gnc_num_cell_set_last_num (NumCell *cell, const char *str);
51 #endif
The NumCell object implements a number handling cell.
Definition: numcell.h:39