149 typedef BasicCell * (*CellCreateFunc) (void);
151 typedef void (*CellSetValueFunc) (
BasicCell *cell,
152 const char * new_value);
154 typedef gboolean (*CellEnterFunc) (
BasicCell *cell,
155 int *cursor_position,
156 int *start_selection,
159 typedef void (*CellModifyVerifyFunc) (
BasicCell *cell,
162 const char *new_value,
164 int *cursor_position,
165 int *start_selection,
168 typedef gboolean (*CellDirectUpdateFunc) (
BasicCell *cell,
169 int *cursor_position,
170 int *start_selection,
174 typedef void (*CellLeaveFunc) (
BasicCell *cell);
176 typedef void (*CellRealizeFunc) (
BasicCell *cell, gpointer gui_handle);
178 typedef void (*CellMoveFunc) (
BasicCell *cell);
180 typedef void (*CellDestroyFunc) (
BasicCell *cell);
192 gchar *cell_type_name;
197 gboolean conditionally_changed;
200 CellSetValueFunc set_value;
201 CellDestroyFunc destroy;
204 CellEnterFunc enter_cell;
205 CellModifyVerifyFunc modify_verify;
206 CellDirectUpdateFunc direct_update;
207 CellLeaveFunc leave_cell;
210 CellRealizeFunc gui_realize;
211 CellMoveFunc gui_move;
212 CellDestroyFunc gui_destroy;
216 CellAlignment alignment;
222 gpointer gui_private;
226 gboolean gnc_cell_name_equal (
const char * cell_name_1,
227 const char * cell_name_2);
230 void gnc_basic_cell_init (
BasicCell *bcell);
231 void gnc_basic_cell_destroy (
BasicCell *bcell);
233 void gnc_basic_cell_set_name (
BasicCell *cell,
const char *name);
234 gboolean gnc_basic_cell_has_name (
BasicCell *cell,
const char *name);
235 void gnc_basic_cell_set_type_name (
BasicCell *cell,
const gchar *type_name);
236 gboolean gnc_basic_cell_has_type_name (
BasicCell *cell,
const gchar *type_name);
240 void gnc_basic_cell_set_sample_text (
BasicCell *cell,
241 const char *sample_text);
242 void gnc_basic_cell_set_alignment (
BasicCell *cell,
243 CellAlignment alignment);
244 void gnc_basic_cell_set_expandable (
BasicCell *cell,
245 gboolean expandable);
246 void gnc_basic_cell_set_span (
BasicCell *cell,
249 const char * gnc_basic_cell_get_value (
BasicCell *cell);
250 void gnc_basic_cell_set_value (
BasicCell *bcell,
const char *value);
252 gboolean gnc_basic_cell_get_changed (
BasicCell *cell);
253 gboolean gnc_basic_cell_get_conditionally_changed (
BasicCell *cell);
255 void gnc_basic_cell_set_changed (
BasicCell *cell, gboolean changed);
256 void gnc_basic_cell_set_conditionally_changed (
BasicCell *cell,
260 void gnc_basic_cell_set_value_internal (
BasicCell *bcell,