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=e1fb9ec3caf3c48195f31ce801431abfc8fbad5d;hp=f9d0e50bd1f023072e33bb89ffbad3d04704a5eb;hb=59c5e08a64798d4303ae7eb3a2713bc93d98fa7b;hpb=8988b3bef0760b4cab8144715cc3d8f55688861c diff --git a/src/list_operation.h b/src/list_operation.h index f9d0e50..e1fb9ec 100644 --- a/src/list_operation.h +++ b/src/list_operation.h @@ -1,5 +1,5 @@ /* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2014 Maxime DOYEN + * Copyright (C) 1995-2016 Maxime DOYEN * * This file is part of HomeBank. * @@ -21,21 +21,32 @@ #define __LIST_OPERATION__H__ enum { - TRN_LIST_TYPE_BOOK, - TRN_LIST_TYPE_DETAIL, - TRN_LIST_TYPE_IMPORT, + LIST_TXN_TYPE_BOOK, + LIST_TXN_TYPE_DETAIL, + LIST_TXN_TYPE_IMPORT, }; -struct list_transaction_data +struct list_txn_data { + GtkWidget *treeview; GtkTreeViewColumn *tvc_balance; + + gint list_type; gboolean tvc_is_visible; + gboolean save_column_width; }; + GtkWidget *create_list_transaction(gint type, gboolean *pref_columns); -void list_transaction_sort_force(GtkTreeSortable *sortable, gpointer user_data); -guint list_transaction_get_quicksearch_column_mask(GtkTreeView *treeview); -GtkWidget *create_list_import_transaction(void); +GtkWidget *create_list_import_transaction(gboolean enable_choose); + +gboolean list_txn_column_id_isvisible(GtkTreeView *treeview, gint sort_id); + +Transaction *list_txn_get_active_transaction(GtkTreeView *treeview); + +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