quicklist.h File Reference


Detailed Description

Utility functions.

Author:
Copyright 2006-2007 Neil Williams <linux@codehelp.co.uk>

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

QlReportInfoql_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 Documentation

typedef void(* QlReportInfoCB)(gpointer index, gpointer report, gpointer user_data)

iterator type for field information.

Definition at line 51 of file quicklist.h.


Function Documentation

void ql_fieldinfo_foreach ( QlTabData tab,
QlReportInfoCB  cb,
gpointer  user_data 
)

iterate over each field in the tab

Parameters:
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.

Parameters:
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 }


Generated on Mon Jan 28 22:02:11 2008 for quicklist by  doxygen 1.5.4