39 XACC_CELL_ALLOW_NONE = 0,
40 XACC_CELL_ALLOW_INPUT = 1 << 0,
41 XACC_CELL_ALLOW_SHADOW = 1 << 1,
42 XACC_CELL_ALLOW_ALL = XACC_CELL_ALLOW_INPUT | XACC_CELL_ALLOW_SHADOW,
43 XACC_CELL_ALLOW_EXACT_ONLY = 1 << 2,
44 XACC_CELL_ALLOW_ENTER = 1 << 3,
45 XACC_CELL_ALLOW_READ_ONLY = XACC_CELL_ALLOW_SHADOW | XACC_CELL_ALLOW_ENTER
50 CELL_BORDER_LINE_NONE,
51 CELL_BORDER_LINE_LIGHT,
52 CELL_BORDER_LINE_NORMAL,
53 CELL_BORDER_LINE_HEAVY,
54 CELL_BORDER_LINE_HIGHLIGHT
55 } PhysicalCellBorderLineStyle;
59 PhysicalCellBorderLineStyle top;
60 PhysicalCellBorderLineStyle bottom;
61 PhysicalCellBorderLineStyle left;
62 PhysicalCellBorderLineStyle right;
65 typedef const char * (*TableGetEntryHandler) (VirtualLocation virt_loc,
67 gboolean *conditionally_changed,
70 typedef const char * (*TableGetLabelHandler) (VirtualLocation virt_loc,
73 typedef char * (*TableGetHelpHandler) (VirtualLocation virt_loc,
76 typedef char * (*TableGetTooltipHandler) (VirtualLocation virt_loc,
79 typedef CellIOFlags (*TableGetCellIOFlagsHandler) (VirtualLocation virt_loc,
82 typedef guint32 (*TableGetCellColorHandler) (VirtualLocation virt_loc,
86 typedef void (*TableGetCellBorderHandler) (VirtualLocation virt_loc,
90 typedef gboolean (*TableConfirmHandler) (VirtualLocation virt_loc,
93 typedef void (*TableSaveCellHandler) (BasicCell * cell,
97 typedef void (*TableSaveHandler) (gpointer save_data,
100 typedef gpointer (*VirtCellDataAllocator) (void);
101 typedef void (*VirtCellDataDeallocator) (gpointer cell_data);
102 typedef void (*VirtCellDataCopy) (gpointer to, gconstpointer from);
106 GHashTable *entry_handlers;
107 GHashTable *label_handlers;
108 GHashTable *help_handlers;
109 GHashTable *tooltip_handlers;
110 GHashTable *io_flags_handlers;
111 GHashTable *cell_color_handlers;
112 GHashTable *cell_border_handlers;
113 GHashTable *confirm_handlers;
115 GHashTable *save_handlers;
116 TableSaveHandler pre_save_handler;
117 TableSaveHandler post_save_handler;
119 gpointer handler_user_data;
127 gboolean reverse_sort;
134 int dividing_row_upper;
137 int dividing_row_lower;
142 VirtCellDataAllocator cell_data_allocator;
143 VirtCellDataDeallocator cell_data_deallocator;
144 VirtCellDataCopy cell_data_copy;
149 void gnc_table_model_destroy (
TableModel *model);
151 void gnc_table_model_set_read_only (
TableModel *model,
153 gboolean gnc_table_model_read_only (
TableModel *model);
155 void gnc_table_model_set_reverse_sort (
TableModel *model,
158 void gnc_table_model_set_entry_handler
160 TableGetEntryHandler entry_handler,
161 const char * cell_name);
162 void gnc_table_model_set_default_entry_handler
164 TableGetEntryHandler entry_handler);
165 TableGetEntryHandler gnc_table_model_get_entry_handler
167 const char * cell_name);
169 void gnc_table_model_set_label_handler
171 TableGetLabelHandler label_handler,
172 const char * cell_name);
173 void gnc_table_model_set_default_label_handler
175 TableGetLabelHandler label_handler);
176 TableGetLabelHandler gnc_table_model_get_label_handler
178 const char * cell_name);
180 void gnc_table_model_set_help_handler
182 TableGetHelpHandler help_handler,
183 const char * cell_name);
184 void gnc_table_model_set_default_help_handler
186 TableGetHelpHandler help_handler);
187 TableGetHelpHandler gnc_table_model_get_help_handler
189 const char * cell_name);
191 void gnc_table_model_set_tooltip_handler
193 TableGetTooltipHandler tooltip_handler,
194 const char * cell_name);
195 void gnc_table_model_set_default_tooltip_handler
197 TableGetTooltipHandler tooltip_handler);
198 TableGetTooltipHandler gnc_table_model_get_tooltip_handler
200 const char * cell_name);
202 void gnc_table_model_set_io_flags_handler
204 TableGetCellIOFlagsHandler io_flags_handler,
205 const char * cell_name);
206 void gnc_table_model_set_default_io_flags_handler
208 TableGetCellIOFlagsHandler io_flags_handler);
209 TableGetCellIOFlagsHandler gnc_table_model_get_io_flags_handler
211 const char * cell_name);
213 void gnc_table_model_set_cell_color_handler
215 TableGetCellColorHandler io_flags_handler,
216 const char * cell_name);
217 void gnc_table_model_set_default_cell_color_handler
219 TableGetCellColorHandler io_flags_handler);
220 TableGetCellColorHandler gnc_table_model_get_cell_color_handler
222 const char * cell_name);
224 void gnc_table_model_set_cell_border_handler
226 TableGetCellBorderHandler io_flags_handler,
227 const char * cell_name);
228 void gnc_table_model_set_default_cell_border_handler
230 TableGetCellBorderHandler io_flags_handler);
231 TableGetCellBorderHandler gnc_table_model_get_cell_border_handler
233 const char * cell_name);
235 void gnc_table_model_set_confirm_handler
237 TableConfirmHandler io_flags_handler,
238 const char * cell_name);
239 void gnc_table_model_set_default_confirm_handler
241 TableConfirmHandler io_flags_handler);
242 TableConfirmHandler gnc_table_model_get_confirm_handler
244 const char * cell_name);
246 void gnc_table_model_set_save_handler
248 TableSaveCellHandler save_handler,
249 const char * cell_name);
250 void gnc_table_model_set_pre_save_handler
252 TableSaveHandler save_handler);
253 void gnc_table_model_set_post_save_handler
255 TableSaveHandler save_handler);
256 TableSaveCellHandler gnc_table_model_get_save_handler
258 const char * cell_name);
259 TableSaveHandler gnc_table_model_get_pre_save_handler
261 TableSaveHandler gnc_table_model_get_post_save_handler
Common declarations for the register core.