28 #ifndef __GNC_TREE_MODEL_SPLIT_REG_H
29 #define __GNC_TREE_MODEL_SPLIT_REG_H
39 #define GNC_TYPE_TREE_MODEL_SPLIT_REG (gnc_tree_model_split_reg_get_type ())
40 #define GNC_TREE_MODEL_SPLIT_REG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL_SPLIT_REG, GncTreeModelSplitReg))
41 #define GNC_TREE_MODEL_SPLIT_REG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL_SPLIT_REG, GncTreeModelSplitRegClass))
42 #define GNC_IS_TREE_MODEL_SPLIT_REG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL_SPLIT_REG))
43 #define GNC_IS_TREE_MODEL_SPLIT_REG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL_SPLIT_REG))
44 #define GNC_TREE_MODEL_SPLIT_REG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL_SPLIT_REG, GncTreeModelSplitRegClass))
45 #define GNC_TREE_MODEL_SPLIT_REG_NAME "GncTreeModelSplitReg"
49 #define NUM_OF_TRANS 30
71 NUM_SINGLE_REGISTER_TYPES2,
73 GENERAL_LEDGER2 = NUM_SINGLE_REGISTER_TYPES2,
86 REG2_STYLE_AUTO_LEDGER,
88 } SplitRegisterStyle2;
93 GNC_TREE_MODEL_SPLIT_REG_COL_GUID,
94 GNC_TREE_MODEL_SPLIT_REG_COL_DATE,
95 GNC_TREE_MODEL_SPLIT_REG_COL_DUEDATE,
96 GNC_TREE_MODEL_SPLIT_REG_COL_NUMACT,
97 GNC_TREE_MODEL_SPLIT_REG_COL_DESCNOTES,
98 GNC_TREE_MODEL_SPLIT_REG_COL_TRANSFERVOID,
99 GNC_TREE_MODEL_SPLIT_REG_COL_RECN,
100 GNC_TREE_MODEL_SPLIT_REG_COL_DEBIT,
101 GNC_TREE_MODEL_SPLIT_REG_COL_CREDIT,
103 GNC_TREE_MODEL_SPLIT_REG_COL_LAST_VISIBLE = GNC_TREE_MODEL_SPLIT_REG_COL_CREDIT,
106 GNC_TREE_MODEL_SPLIT_REG_COL_RO,
107 GNC_TREE_MODEL_SPLIT_REG_COL_NUM_VIS,
108 GNC_TREE_MODEL_SPLIT_REG_COL_ACT_VIS,
110 GNC_TREE_MODEL_SPLIT_REG_NUM_COLUMNS
111 } GncTreeModelSplitRegColumn;
124 } GncTreeModelSplitRegUpdate;
188 typedef GtkWidget *(*SRGetParentCallback2) (gpointer user_data);
194 GType gnc_tree_model_split_reg_get_type (
void);
198 gnc_tree_model_split_reg_new (SplitRegisterType2 reg_type, SplitRegisterStyle2 style,
199 gboolean use_double_line, gboolean is_template);
218 SRGetParentCallback2 get_parent);
228 SplitRegisterStyle2 newstyle, gboolean use_double_line);
237 void gnc_tree_model_split_reg_set_display (
GncTreeModelSplitReg *model, gboolean subacc, gboolean gl);
240 void gnc_tree_model_split_reg_move (
GncTreeModelSplitReg *model, GncTreeModelSplitRegUpdate model_update);
272 gboolean gnc_tree_model_split_reg_get_split_and_trans (
274 gboolean *is_trow1, gboolean *is_trow2, gboolean *is_split,
278 gboolean gnc_tree_model_split_reg_set_blank_split_parent (
292 gboolean gnc_tree_model_split_reg_get_iter_from_trans_and_split (
294 GtkTreeIter *iter1, GtkTreeIter *iter2);
298 gboolean is_trow2, gboolean is_split, gint num);
304 void gnc_tree_model_split_reg_set_current_trans_by_position (
GncTreeModelSplitReg *model, gint position);
315 GtkTreePath * gnc_tree_model_split_reg_get_path_to_split_and_trans (
319 gboolean gnc_tree_model_split_reg_is_blank_trans (
GncTreeModelSplitReg *model, GtkTreeIter *iter);
322 Split * gnc_tree_model_split_reg_trans_get_split_equal_to_ancestor (
const Transaction *trans,
const Account *ancestor);
325 gint gnc_tree_model_split_reg_sort_iter_compare_func (GtkTreeModel *tm, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data);
gint number_of_trans_in_full_tlist
gint position_of_trans_in_full_tlist
GncTreeModel gnc_tree_model
gboolean use_theme_colors
GtkSortType sort_direction
gboolean separator_changed
GtkTreeModel implementation for a generic gnucash tree.
gboolean alt_colors_by_txn
Transaction * current_trans
gboolean use_accounting_labels
GncTreeModelClass gnc_tree_model
SplitRegisterStyle2 style