1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 Maxime DOYEN
4 * This file is part of HomeBank.
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.
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.
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/>.
20 #ifndef __LIST_OPERATION__H__
21 #define __LIST_OPERATION__H__
25 LIST_TXN_TYPE_BOOK
= 0,
31 MODEL_TXN_POINTER
= 0,
39 GtkTreeViewColumn
*tvc_balance
;
43 gboolean tvc_is_visible
;
44 gboolean save_column_width
;
48 GtkWidget
*create_list_transaction(gint type
, gboolean
*pref_columns
);
49 GtkWidget
*create_list_import_transaction(gboolean enable_choose
);
51 gboolean
list_txn_column_id_isvisible(GtkTreeView
*treeview
, gint sort_id
);
52 void list_txn_set_column_acc_visible(GtkTreeView
*treeview
, gboolean visible
);
54 Transaction
*list_txn_get_active_transaction(GtkTreeView
*treeview
);
56 GString
*list_txn_to_string(GtkTreeView
*treeview
, gboolean clipboard
);
58 void list_txn_set_save_column_width(GtkTreeView
*treeview
, gboolean save_column_width
);
59 void list_txn_sort_force(GtkTreeSortable
*sortable
, gpointer user_data
);
60 guint
list_txn_get_quicksearch_column_mask(GtkTreeView
*treeview
);