X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Flist-operation.h;fp=src%2Flist-operation.h;h=473fb87b19de71c82d2f7636bb045d89a309493f;hp=0000000000000000000000000000000000000000;hb=a6c6b0df5492c2160ed97e3a376bdb2fe7c5ebc4;hpb=cd13d9691c46c2b2d6d459e9e6a76bed1c21b7a6 diff --git a/src/list-operation.h b/src/list-operation.h new file mode 100644 index 0000000..473fb87 --- /dev/null +++ b/src/list-operation.h @@ -0,0 +1,54 @@ +/* HomeBank -- Free, easy, personal accounting for everyone. + * Copyright (C) 1995-2019 Maxime DOYEN + * + * This file is part of HomeBank. + * + * HomeBank 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. + * + * HomeBank 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, see . + */ + +#ifndef __LIST_OPERATION__H__ +#define __LIST_OPERATION__H__ + +enum { + LIST_TXN_TYPE_BOOK, + LIST_TXN_TYPE_DETAIL +}; + +struct list_txn_data +{ + GtkWidget *treeview; + GtkTreeViewColumn *tvc_balance; + + gint list_type; + gboolean showall; + gboolean tvc_is_visible; + gboolean save_column_width; +}; + + +GtkWidget *create_list_transaction(gint type, gboolean *pref_columns); +GtkWidget *create_list_import_transaction(gboolean enable_choose); + +gboolean list_txn_column_id_isvisible(GtkTreeView *treeview, gint sort_id); +void list_txn_set_column_acc_visible(GtkTreeView *treeview, gboolean visible); + +Transaction *list_txn_get_active_transaction(GtkTreeView *treeview); + +GString *list_txn_to_string(GtkTreeView *treeview, gboolean clipboard); + +void list_txn_set_save_column_width(GtkTreeView *treeview, gboolean save_column_width); +void list_txn_sort_force(GtkTreeSortable *sortable, gpointer user_data); +guint list_txn_get_quicksearch_column_mask(GtkTreeView *treeview); + +#endif