GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
checkboxcell.h
1 /********************************************************************\
2  * checkboxcell.h -- yes/no checkbox 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 
23 /*
24  * FILE:
25  * checkboxcell.h
26  *
27  * FUNCTION:
28  * The CheckboxCell object implements a cell handler
29  * that will toggle between yes and no values when clicked upon by the mouse.
30  *
31  * HISTORY:
32  * Copyright (c) 2002 Derek Atkins
33  */
34 
35 #ifndef CHECKBOX_CELL_H
36 #define CHECKBOX_CELL_H
37 
38 #include <glib.h>
39 
40 #include "basiccell.h"
41 
42 typedef struct
43 {
44  BasicCell cell;
45 
46  gboolean flag;
47 
48 } CheckboxCell;
49 
50 BasicCell * gnc_checkbox_cell_new (void);
51 
52 void gnc_checkbox_cell_set_flag (CheckboxCell *cell, gboolean flag);
53 gboolean gnc_checkbox_cell_get_flag (CheckboxCell *cell);
54 const char* gnc_checkbox_cell_get_string (gboolean flag);
55 
56 #endif