/* 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.
*
#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