GnuCash 2.4.99
checkboxcell.h
00001 /********************************************************************\
00002  * checkboxcell.h -- yes/no checkbox cell                           *
00003  *                                                                  *
00004  * This program is free software; you can redistribute it and/or    *
00005  * modify it under the terms of the GNU General Public License as   *
00006  * published by the Free Software Foundation; either version 2 of   *
00007  * the License, or (at your option) any later version.              *
00008  *                                                                  *
00009  * This program is distributed in the hope that it will be useful,  *
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00012  * GNU General Public License for more details.                     *
00013  *                                                                  *
00014  * You should have received a copy of the GNU General Public License*
00015  * along with this program; if not, contact:                        *
00016  *                                                                  *
00017  * Free Software Foundation           Voice:  +1-617-542-5942       *
00018  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00019  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00020  *                                                                  *
00021 \********************************************************************/
00022 
00023 /*
00024  * FILE:
00025  * checkboxcell.h
00026  *
00027  * FUNCTION:
00028  * The CheckboxCell object implements a cell handler
00029  * that will toggle between yes and no values when clicked upon by the mouse.
00030  *
00031  * HISTORY:
00032  * Copyright (c) 2002 Derek Atkins
00033  */
00034 
00035 #ifndef CHECKBOX_CELL_H
00036 #define CHECKBOX_CELL_H
00037 
00038 #include <glib.h>
00039 
00040 #include "basiccell.h"
00041 
00042 typedef struct
00043 {
00044     BasicCell cell;
00045 
00046     gboolean flag;
00047 
00048 } CheckboxCell;
00049 
00050 BasicCell * gnc_checkbox_cell_new (void);
00051 
00052 void        gnc_checkbox_cell_set_flag (CheckboxCell *cell, gboolean flag);
00053 gboolean    gnc_checkbox_cell_get_flag (CheckboxCell *cell);
00054 const char* gnc_checkbox_cell_get_string (gboolean flag);
00055 
00056 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines