28 #ifndef __GNC_TREE_VIEW_SPLIT_REG_H
29 #define __GNC_TREE_VIEW_SPLIT_REG_H
34 #include "gnc-tree-model-split-reg.h"
39 #define GNC_TYPE_TREE_VIEW_SPLIT_REG (gnc_tree_view_split_reg_get_type ())
40 #define GNC_TREE_VIEW_SPLIT_REG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_SPLIT_REG, GncTreeViewSplitReg))
41 #define GNC_TREE_VIEW_SPLIT_REG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_SPLIT_REG, GncTreeViewSplitRegClass))
42 #define GNC_IS_TREE_VIEW_SPLIT_REG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_SPLIT_REG))
43 #define GNC_IS_TREE_VIEW_SPLIT_REG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_SPLIT_REG))
44 #define GNC_TREE_VIEW_SPLIT_REG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_SPLIT_REG, GncTreeViewSplitRegClass))
57 gpointer uiupdate_cb_data;
61 gboolean change_allowed;
63 gboolean show_extra_dates;
110 GType gnc_tree_view_split_reg_get_type (
void);
120 void gnc_tree_view_split_reg_set_read_only (
GncTreeViewSplitReg *view, gboolean read_only);
132 void gnc_tree_view_split_reg_set_current_path (
GncTreeViewSplitReg *view, GtkTreePath *mpath);
136 void gnc_tree_view_split_reg_set_uiupdate_cb (
GncTreeViewSplitReg *view, GFunc cb, gpointer cb_data);
150 const char * gnc_tree_view_split_reg_get_credit_debit_string (
GncTreeViewSplitReg *view, gboolean credit);
156 GtkTreePath * gnc_tree_view_split_reg_get_sort_path_from_model_path (
GncTreeViewSplitReg *view, GtkTreePath *mpath);
159 GtkTreePath * gnc_tree_view_split_reg_get_model_path_from_sort_path (
GncTreeViewSplitReg *view, GtkTreePath *spath);
180 void gnc_tree_view_split_reg_cancel_edit (
GncTreeViewSplitReg *view, gboolean reg_closing);
utility functions for the GnuCash UI
common utilities for manipulating a GtkTreeView within gnucash