|
GnuCash 2.4.99
|
00001 /* 00002 * dialog-query-list.h -- a simple dialog to display a querylist and 00003 * allow users to select items (or close the list) 00004 * 00005 * Created By: Derek Atkins <derek@ihtfp.com> 00006 * Copyright (c) 2003 Derek Atkins <warlord@MIT.EDU> 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License as 00010 * published by the Free Software Foundation; either version 2 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, contact: 00020 * 00021 * Free Software Foundation Voice: +1-617-542-5942 00022 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00023 * Boston, MA 02110-1301, USA gnu@gnu.org 00024 */ 00025 00026 #ifndef GNC_DIALOG_QUERY_LIST_H 00027 #define GNC_DIALOG_QUERY_LIST_H 00028 00029 #include "Query.h" 00030 00031 typedef struct _DialogQueryList DialogQueryList; 00032 00033 typedef void (*GNCDisplayListCB)(gpointer obj, gpointer user_data); 00034 typedef struct 00035 { 00036 const char * label; 00037 GNCDisplayListCB cb_fcn; 00038 } GNCDisplayListButton; 00039 00040 DialogQueryList * 00041 gnc_dialog_query_list_new (GList *param_list, Query *q); 00042 00043 void gnc_dialog_query_list_set_title (DialogQueryList *dql, const char *title); 00044 void gnc_dialog_query_list_set_label (DialogQueryList *dql, const char *label); 00045 void gnc_dialog_query_list_set_buttons (DialogQueryList *dql, 00046 GNCDisplayListButton *buttons, 00047 gpointer user_data); 00048 void gnc_dialog_query_list_set_numerics (DialogQueryList *dql, gboolean abs, 00049 gboolean inv_sort); 00050 00051 void gnc_dialog_query_list_refresh (DialogQueryList *dql); 00052 void gnc_dialog_query_list_destroy (DialogQueryList *dql); 00053 00054 DialogQueryList * 00055 gnc_dialog_query_list_create (GList *param_list, Query *q, 00056 const char *title, const char *label, 00057 gboolean abs, gboolean inv_sort, 00058 GNCDisplayListButton *buttons, gpointer user_data); 00059 00060 00061 #endif /* GNC_DIALOG_QUERY_LIST_H */
1.7.4