/usr/include/gnucash/gnc-query-view.h is in gnucash-common 1:2.6.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | /********************************************************************\
* gnc-query-view.h -- GnuCash GNOME query display view widget *
* Copyright (C) 2003 Derek Atkins <derek@ihtfp.com> *
* Copyright (C) 2012 Robert Fewell *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation; either version 2 of *
* the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License*
* along with this program; if not, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#ifndef GNC_QUERY_VIEW_H
#define GNC_QUERY_VIEW_H
#include <gtk/gtk.h>
#include "Query.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define GNC_TYPE_QUERY_VIEW (gnc_query_view_get_type ())
#define GNC_QUERY_VIEW(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_QUERY_VIEW, GNCQueryView)
#define GNC_QUERY_VIEW_CLASS(klass) G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_QUERY_VIEW, GNCQueryViewClass)
#define GNC_IS_QUERY_VIEW(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_QUERY_VIEW)
#define GNC_IS_QUERY_VIEW_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_QUERY_VIEW)
typedef struct _GNCQueryView GNCQueryView;
typedef struct _GNCQueryViewClass GNCQueryViewClass;
struct _GNCQueryView
{
GtkTreeView qview;
/* Query information */
Query *query;
gint num_entries;
/* Select information */
gpointer selected_entry;
GList *selected_entry_list;
gint toggled_row;
gint toggled_column;
/* Column information */
gint num_columns;
GList *column_params;
/* numeric information */
gboolean numeric_abs;
gboolean numeric_inv_sort;
/* Sorting info */
gint sort_column;
gboolean increasing;
};
struct _GNCQueryViewClass
{
GtkTreeViewClass view_class;
/* This signal is emitted when a toggle happens, the pointer has
an interger value for the active setting of the toggle */
void (*column_toggled) (GNCQueryView *qview, gpointer item);
/* This signal is emitted when a row is selected, the pointer has
an interger value for the number of rows selected */
void (*row_selected) (GNCQueryView *qview, gpointer item);
/* This signal is emitted when a row is double clicked, the pointer has
a pointer to the entry */
void (*double_click_entry) (GNCQueryView *qview, gpointer entry);
};
/***********************************************************
* public functions *
***********************************************************/
GType gnc_query_view_get_type (void);
/* The param_list remains owned by the caller but is used by the
* query-view; do not destroy it until you destroy this query-view.
* The query will be copied by the query-view so the caller may do
* whatever they want.
*/
GtkWidget * gnc_query_view_new (GList *param_list, Query *query);
void gnc_query_view_construct (GNCQueryView *qview, GList *param_list, Query *query);
void gnc_query_view_reset_query (GNCQueryView *view, Query *query);
void gnc_query_view_set_numerics (GNCQueryView *qview, gboolean abs, gboolean inv_sort);
gint gnc_query_view_get_num_entries (GNCQueryView *qview);
gpointer gnc_query_view_get_selected_entry (GNCQueryView *qview);
GList * gnc_query_view_get_selected_entry_list (GNCQueryView *qview);
void gnc_query_view_refresh (GNCQueryView *qview);
void gnc_query_view_unselect_all (GNCQueryView *qview);
gboolean gnc_query_view_item_in_view (GNCQueryView *qview, gpointer item);
void gnc_query_sort_order (GNCQueryView *qview, gint column, GtkSortType order);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* GNC_QUERY_VIEW_H */
|