GnuCash c935c2f+
Loading...
Searching...
No Matches
dialog-query-view.h
1/*
2 * dialog-query-view.h -- a simple dialog to display a query view and
3 * allow users to select items (or close the view)
4 *
5 * Created By: Derek Atkins <derek@ihtfp.com>
6 * Copyright (c) 2003 Derek Atkins <warlord@MIT.EDU>
7 * Copyright (c) 2012 Robert Fewell
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, contact:
21 *
22 * Free Software Foundation Voice: +1-617-542-5942
23 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
24 * Boston, MA 02110-1301, USA gnu@gnu.org
25 */
26
27#ifndef GNC_DIALOG_QUERY_VIEW_H
28#define GNC_DIALOG_QUERY_VIEW_H
29
30#include "Query.h"
31
32typedef struct _DialogQueryView DialogQueryView;
33
34typedef void (*GNCDisplayViewCB)(GtkWindow *dialog, gpointer obj, gpointer user_data);
35typedef struct
36{
37 const char *label;
38 GNCDisplayViewCB cb_fcn;
40
41DialogQueryView *
42gnc_dialog_query_view_new (GtkWindow *parent, GList *param_list, Query *q, const gchar *pref_group);
43
44void gnc_dialog_query_view_set_title (DialogQueryView *dqv, const char *title);
45void gnc_dialog_query_view_set_label (DialogQueryView *dqv, const char *label);
46void gnc_dialog_query_view_set_buttons (DialogQueryView *dqv,
47 GNCDisplayViewButton *buttons,
48 gpointer user_data);
49void gnc_dialog_query_view_set_numerics (DialogQueryView *dqv, gboolean abs,
50 gboolean inv_sort);
51
52void gnc_dialog_query_view_refresh (DialogQueryView *dqv);
53void gnc_dialog_query_view_destroy (DialogQueryView *dqv);
54
55DialogQueryView *
56gnc_dialog_query_view_create (GtkWindow *parent, GList *param_list, Query *q,
57 const char *title, const char *label,
58 gboolean abs, gboolean inv_sort,
59 gint sort_column, GtkSortType order,
60 gint expand_column,
61 GNCDisplayViewButton *buttons,
62 const gchar *pref_group, gpointer user_data);
63
64
65#endif /* GNC_DIALOG_QUERY_VIEW_H */
A Query.
Definition qofquery.cpp:75