00001 /*************************************************************************** 00002 * dialog_initial.h 00003 * 00004 * Fri Aug 25 14:43:10 2006 00005 * Copyright 2006-2007 Neil Williams 00006 * linux@codehelp.co.uk 00007 ****************************************************************************/ 00008 /* 00009 This package is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 3 of the License, or 00012 (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program. If not, see <http://www.gnu.org/licenses/>. 00021 */ 00030 #ifndef _DIALOG_INITIAL_H 00031 #define _DIALOG_INITIAL_H 00032 00033 #include "main.h" 00034 #include "field.h" 00035 00042 void main_window (QlContext * qlc); 00043 00050 QlContext * 00051 ql_get_context (GtkWidget * widget); 00052 00053 void 00054 ql_free_context (QlContext *qlc); 00055 00056 QlFileData * 00057 ql_get_filedata (QlContext * qlc); 00058 00059 QlViewData * 00060 ql_get_viewdata (QlContext * qlc); 00061 00062 QlTabData * 00063 ql_new_tabdata (QlContext * qlc); 00064 00065 QlTabData * 00066 ql_get_tabdata (QlContext * qlc); 00067 00069 QlFieldInfo * 00070 ql_get_fieldinfo (QlTabData * tab, gint field_index); 00071 00073 typedef void (*QlFieldInfoCB) (gpointer index, gpointer field, gpointer user_data); 00074 00081 void 00082 ql_fieldinfo_foreach (QlTabData * tab, QlFieldInfoCB cb, gpointer user_data); 00083 00085 gboolean 00086 ql_add_fieldinfo (QlTabData * tab, QlFieldInfo * field); 00087 00097 gboolean 00098 ql_set_fieldinfo (QlTabData * tab, QlFieldInfo * field, gint field_index); 00099 00105 void 00106 ql_remove_fieldinfo (QlTabData * tab, gint field_index); 00107 00109 gint 00110 ql_get_last_field (QlTabData * tab); 00111 00112 #endif /* _DIALOG_INITIAL_H */