~mdoyen/homebank/5.7.x

« back to all changes in this revision

Viewing changes to src/list-report.h

  • Committer: Maxime Doyen
  • Date: 2023-09-06 19:22:10 UTC
  • Revision ID: homebank@free.fr-20230906192210-kal1pe00sty1jt2g
5.7 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define __LIST_REPORT__H__
22
22
 
23
23
 
24
 
 
25
 
 
26
24
enum
27
25
{
28
 
        LST_REPDIST_POS,        //keep for compatibility with chart
29
 
        LST_REPDIST_KEY,
30
 
        LST_REPDIST_NAME,
31
 
        LST_REPDIST_EXPENSE,
32
 
        LST_REPDIST_EXPRATE,
33
 
        LST_REPDIST_INCOME,
34
 
        LST_REPDIST_INCRATE,
35
 
        LST_REPDIST_TOTAL,
36
 
        LST_REPDIST_TOTRATE,
37
 
        NUM_LST_REPDIST
 
26
        LST_REPORT_POS, //keep for compatibility with chart
 
27
        LST_REPORT_KEY,
 
28
        LST_REPORT_NAME,
 
29
        //LST_REPORT_ROW,
 
30
        LST_REPORT_EXPENSE,
 
31
        LST_REPORT_INCOME,
 
32
        LST_REPORT_TOTAL,
 
33
        NUM_LST_REPORT
38
34
};
39
35
 
40
 
#define LST_REPDIST_POS_TOTAL G_MAXINT
 
36
#define LST_REPORT_POS_TOTAL G_MAXINT
 
37
 
 
38
//special column id
 
39
#define LST_REP_COLID_AVERAGE -1
 
40
#define LST_REP_COLID_TOTAL   -3
41
41
 
42
42
//test
43
43
enum {
44
 
        LST_REPDIST2_POS,
45
 
        LST_REPDIST2_KEY,
46
 
        LST_REPDIST2_LABEL,
47
 
        LST_REPDIST2_ROW,
48
 
        NUM_LST_REPDIST2
49
 
};
50
 
 
51
 
 
52
 
GtkWidget *lst_rep_total_create(void);
53
 
GString *lst_rep_total_to_string(GtkTreeView *treeview, gchar *title, gboolean clipboard);
54
 
 
55
 
 
56
 
GString *lst_rep_time_to_string(GtkTreeView *treeview, gchar *title, gboolean clipboard);
 
44
        LST_REPORT2_POS,
 
45
        LST_REPORT2_KEY,
 
46
        LST_REPORT2_LABEL,
 
47
        LST_REPORT2_ROW,
 
48
        NUM_LST_REPORT2
 
49
};
 
50
 
 
51
 
 
52
struct lst_report_data
 
53
{
 
54
        GtkWidget       *treeview;
 
55
 
 
56
//      guint           intvl;
 
57
//      guint           n_cols;
 
58
//      DataCol         **cols;
 
59
        gdouble         tot_exp;
 
60
        gdouble         tot_inc;
 
61
        
 
62
};
 
63
 
 
64
 
 
65
 
 
66
GtkTreeStore *lst_report_new(void);
 
67
GtkWidget *lst_report_create(void);
 
68
gboolean lst_report_get_top_level (GtkTreeModel *liststore, guint32 key, GtkTreeIter *return_iter);
 
69
GString *lst_report_to_string(GtkTreeView *treeview, gint src, gchar *title, gboolean clipboard);
 
70
 
 
71
 
 
72
gboolean lst_rep_time_get_top_level (GtkTreeModel *liststore, guint32 key, GtkTreeIter *return_iter);
 
73
GString *lst_rep_time_to_string(GtkTreeView *treeview, gint src, gchar *title, gboolean clipboard);
57
74
GtkWidget *lst_rep_time_createtype(GtkListStore *store);
 
75
GtkTreeStore *lst_rep_time_new(void);
58
76
GtkWidget *lst_rep_time_create(void);
59
 
void lst_rep_time_renewcol(GtkTreeView *treeview, guint32 nbintvl, guint32 jfrom, gint intvl, gboolean avg);
60
 
 
61
 
 
62
 
#endif
 
 
b'\\ No newline at end of file'
 
77
void lst_rep_time_renewcol(GtkTreeView *treeview, DataTable *dt, guint32 nbintvl, guint32 jfrom, gint intvl, gboolean avg);
 
78
 
 
79
 
 
80
#endif