Definition in file quicklist.h.
Go to the source code of this file.
Typedefs | |
typedef void(* | QlReportInfoCB )(gpointer index, gpointer report, gpointer user_data) |
Functions | |
QlReportInfo * | ql_get_reportinfo (QlTabData *tab, gint report_index) |
Retrieve the report context from the tab. | |
gboolean | ql_add_reportinfo (QlTabData *tab, QlReportInfo *report) |
gboolean | ql_set_reportinfo (QlTabData *tab, QlReportInfo *report, gint report_index) |
void | ql_remove_reportinfo (QlTabData *tab, gint report_index) |
gint | ql_get_last_report (QlTabData *tab) |
void | ql_fieldinfo_foreach (QlTabData *tab, QlReportInfoCB cb, gpointer user_data) |
iterate over each field in the tab |
typedef void(* QlReportInfoCB)(gpointer index, gpointer report, gpointer user_data) |
iterator type for field information.
Definition at line 51 of file quicklist.h.
void ql_fieldinfo_foreach | ( | QlTabData * | tab, | |
QlReportInfoCB | cb, | |||
gpointer | user_data | |||
) |
iterate over each field in the tab
tab | The notebook tab containing the GtkSheet | |
cb | QlFieldInfoCB function to pass each field from the sheet. | |
user_data | Pointer to data to pass to the callback. |
Definition at line 287 of file dialog_initial.c.
00288 { 00289 g_return_if_fail (tab); 00290 g_hash_table_foreach (tab->file->fields, cb, user_data); 00291 }
QlReportInfo* ql_get_reportinfo | ( | QlTabData * | tab, | |
gint | report_index | |||
) |
Retrieve the report context from the tab.
tab | The notebook tab context | |
report_index | Currently an int but probably more useful as the report name. |
Definition at line 58 of file quicklist.c.
00059 { 00060 QlFieldInfo * field; 00061 00062 g_return_val_if_fail (tab, NULL); 00063 field = (QlReportInfo*)g_hash_table_lookup (tab->file->report_ptr, 00064 GINT_TO_POINTER(report_index)); 00065 return field; 00066 }