96 #ifndef TABLE_ALLGUI_H
97 #define TABLE_ALLGUI_H
101 #include "basiccell.h"
105 #include "table-control.h"
106 #include "table-layout.h"
107 #include "table-model.h"
116 unsigned int visible : 1;
117 unsigned int start_primary_color : 1;
122 typedef void (*TableCursorRefreshCB) (
Table *
table,
126 typedef void (*TableRedrawHelpCB) (
Table *
table);
127 typedef void (*TableDestroyCB) (
Table *
table);
131 TableCursorRefreshCB cursor_refresh;
133 TableRedrawHelpCB redraw_help;
134 TableDestroyCB destroy;
166 COLOR_PRIMARY_BG_ACTIVE,
168 COLOR_SECONDARY_BG_ACTIVE,
170 COLOR_SPLIT_BG_ACTIVE,
179 COLOR_PRIMARY_FG_ACTIVE,
181 COLOR_SECONDARY_FG_ACTIVE,
183 COLOR_SPLIT_FG_ACTIVE,
196 static const guint32 reg_colors_default [] =
222 static const guint32 reg_colors_gtkrc [] =
227 COLOR_PRIMARY_BG_ACTIVE,
229 COLOR_SECONDARY_BG_ACTIVE,
231 COLOR_SPLIT_BG_ACTIVE,
236 COLOR_PRIMARY_FG_ACTIVE,
238 COLOR_SECONDARY_FG_ACTIVE,
240 COLOR_SPLIT_FG_ACTIVE,
260 int gnc_table_current_cursor_changed (
Table *
table,
261 gboolean include_conditional);
263 void gnc_table_clear_current_cursor_changes (
Table *
table);
266 void gnc_table_restore_current_cursor (
Table *
table,
269 const char * gnc_table_get_current_cell_name (
Table *
table);
271 gboolean gnc_table_get_current_cell_location (
Table *
table,
272 const char *cell_name,
278 gboolean gnc_table_virtual_cell_out_of_bounds (
Table *
table,
281 gboolean gnc_table_virtual_location_in_header (
Table *
table,
317 const char * gnc_table_get_cell_name (
Table *
table,
319 const gchar * gnc_table_get_cell_type_name (
Table *
table,
321 gboolean gnc_table_get_cell_location (
Table *
table,
322 const char * cell_name,
326 void gnc_table_save_cells (
Table *
table, gpointer save_data);
334 void gnc_table_set_size (
Table *
table,
int virt_rows,
int virt_cols);
338 gconstpointer vcell_data,
340 gboolean start_primary_color,
344 void gnc_table_set_virt_cell_data (
Table *
table,
346 gconstpointer vcell_data);
349 void gnc_table_set_virt_cell_visible (
Table *
table,
354 void gnc_table_set_virt_cell_cursor (
Table *
table,
375 gboolean gnc_table_verify_cursor_position (
Table *
table,
381 gpointer gnc_table_get_vcell_data (
Table *
table,
387 gboolean gnc_table_find_close_valid_cell (
Table *
table,
389 gboolean exact_cell);
399 void gnc_table_refresh_current_cursor_gui (
Table *
table,
403 void gnc_table_refresh_gui (
Table *
table, gboolean do_scroll);
412 void gnc_table_refresh_cursor_gui (
Table *
table,
418 void gnc_table_wrap_verify_cursor_position (
Table *
table,
421 gboolean gnc_table_virtual_loc_valid(
Table *
table,
423 gboolean exact_pointer);
427 gboolean move_right);
444 int phys_row_offset);
448 int *cursor_position,
449 int *start_selection,
456 const char * gnc_table_modify_update(
Table *
table,
462 int *cursor_position,
463 int *start_selection,
465 gboolean *cancelled);
467 gboolean gnc_table_direct_update(
Table *
table,
470 int *cursor_position,
471 int *start_selection,
475 gboolean gnc_table_traverse_update(
Table *
table,
477 gncTableTraversalDir dir,
gboolean gnc_table_move_vertical_position(Table *table, VirtualLocation *virt_loc, int phys_row_offset)
void gnc_table_set_default_gui_handlers(TableGUIHandlers *gui_handlers)
void gnc_table_save_state(Table *table, gchar *state_section)
void gnc_table_init_gui(GtkWidget *widget, gchar *state_section)
Declarations for the CellBlock object.
Common declarations for the register core.