]> Dogcows Code - chaz/homebank/blob - src/list_operation.h
import homebank-5.1.7
[chaz/homebank] / src / list_operation.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2018 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __LIST_OPERATION__H__
21 #define __LIST_OPERATION__H__
22
23 enum {
24 LIST_TXN_TYPE_BOOK,
25 LIST_TXN_TYPE_DETAIL,
26 LIST_TXN_TYPE_IMPORT,
27 };
28
29 struct list_txn_data
30 {
31 GtkWidget *treeview;
32 GtkTreeViewColumn *tvc_balance;
33
34 gint list_type;
35 gboolean tvc_is_visible;
36 gboolean save_column_width;
37 };
38
39
40
41 GtkWidget *create_list_transaction(gint type, gboolean *pref_columns);
42 GtkWidget *create_list_import_transaction(gboolean enable_choose);
43
44 gboolean list_txn_column_id_isvisible(GtkTreeView *treeview, gint sort_id);
45
46 Transaction *list_txn_get_active_transaction(GtkTreeView *treeview);
47
48 GString *list_txn_to_string(GtkTreeView *treeview, gboolean clipboard);
49
50 void list_txn_set_save_column_width(GtkTreeView *treeview, gboolean save_column_width);
51 void list_txn_sort_force(GtkTreeSortable *sortable, gpointer user_data);
52 guint list_txn_get_quicksearch_column_mask(GtkTreeView *treeview);
53
54 #endif
This page took 0.032047 seconds and 4 git commands to generate.