GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-tree-util-split-reg.h
1 /********************************************************************\
2  * gnc-tree-util-split-reg.h -- GtkTreeView implementation *
3  * to display registers in a GtkTreeView. *
4  * *
5  * Copyright (C) 2006-2007 Chris Shoemaker <[email protected]> *
6  * Copyright (C) 2012 Robert Fewell *
7  * *
8  * This program is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU General Public License as *
10  * published by the Free Software Foundation; either version 2 of *
11  * the License, or (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License*
19  * along with this program; if not, contact: *
20  * *
21  * Free Software Foundation Voice: +1-617-542-5942 *
22  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
23  * Boston, MA 02110-1301, USA [email protected] *
24  * *
25 \********************************************************************/
26 
27 #ifndef __GNC_TREE_UTIL_SPLIT_REG_H
28 #define __GNC_TREE_UTIL_SPLIT_REG_H
29 
30 #include "gnc-tree-model-split-reg.h"
31 #include "gnc-tree-view-split-reg.h"
32 
33 G_BEGIN_DECLS
34 
35 
36 /*****************************************************************************/
37 
38 gboolean gnc_tree_util_split_reg_has_rate (GncTreeViewSplitReg *view);
39 
40 gboolean gnc_tree_util_split_reg_needs_conv_rate (GncTreeViewSplitReg *view,
41  Transaction *trans, Account *acc);
42 
43 const char * gnc_tree_util_split_reg_get_transfer_entry (Split *split, gboolean *is_multi);
44 
45 const char * gnc_tree_util_split_reg_template_get_transfer_entry (Split *split);
46 
47 const char * gnc_tree_util_split_reg_template_get_fdebt_entry (Split *split);
48 
49 const char * gnc_tree_util_split_reg_template_get_fcred_entry (Split *split);
50 
51 gchar * gnc_tree_util_split_reg_get_date_help (GDate *date);
52 
53 void gnc_tree_util_split_reg_parse_date (GDate *parsed, const char *datestr);
54 
55 gboolean gnc_tree_util_split_reg_rotate (GncTreeViewSplitReg *view, GtkTreeViewColumn *col,
56  Transaction *trans, Split *split);
57 
58 gboolean gnc_tree_util_split_reg_is_multi (Split *split);
59 
60 gboolean gnc_tree_util_split_reg_needs_amount (GncTreeViewSplitReg *view, Split *split);
61 
62 void gnc_tree_util_split_reg_set_value_for (GncTreeViewSplitReg *view, Transaction *trans,
63  Split *split, gnc_numeric input, gboolean force);
64 
65 void gnc_tree_util_split_reg_save_amount_values (GncTreeViewSplitReg *view, Transaction *trans,
66  Split *split, gnc_numeric input);
67 
68 gnc_numeric gnc_tree_util_split_reg_get_value_for (GncTreeViewSplitReg *view, Transaction *trans,
69  Split *split, gboolean is_blank);
70 
71 gboolean gnc_tree_util_split_reg_get_debcred_entry (GncTreeViewSplitReg *view,
72  Transaction *trans, Split *split,
73  gboolean is_blank,gnc_numeric *ret_num,
74  GNCPrintAmountInfo *ret_print_info);
75 
76 void gnc_tree_util_set_number_for_input (GncTreeViewSplitReg *view, Transaction *trans,
77  Split *split, gnc_numeric input, gint viewcol);
78 
79 void gnc_tree_util_set_value_for_amount (GncTreeViewSplitReg *view, Transaction *trans,
80  Split *split, gnc_numeric input);
81 
82 gnc_numeric gnc_tree_util_get_rate_for (GncTreeViewSplitReg *view, Transaction *trans,
83  Split *split, gboolean is_blank);
84 
85 /*****************************************************************************/
86 
87 G_END_DECLS
88 
89 #endif /* __GNC_TREE_UTIL_SPLIT_REG_H */
Definition: SplitP.h:71