]> Dogcows Code - chaz/homebank/blob - src/dsp-mainwindow.h
Merge branch 'upstream'
[chaz/homebank] / src / dsp-mainwindow.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __HB_MANWINDOW_GTK_H__
21 #define __HB_MANWINDOW_GTK_H__
22
23 struct hbfile_data
24 {
25 GtkWidget *window;
26
27 GtkWidget *toolbar;
28 GtkWidget *menubar;
29 GtkWidget *vpaned;
30 GtkWidget *hpaned;
31
32 /* panel: your account */
33 GtkWidget *LV_acc;
34 GtkWidget *BT_expandall;
35 GtkWidget *BT_collapseall;
36 gboolean showall;
37 GSimpleActionGroup *action_group_acc;
38
39 GtkWidget *GR_top;
40 GtkWidget *LV_top;
41 gdouble toptotal;
42 GtkWidget *CY_range;
43 GtkWidget *RE_pie;
44
45 GtkWidget *GR_upc;
46
47 GtkWidget *LV_upc;
48 GtkWidget *LB_maxpostdate;
49 GtkWidget *BT_sched_skip;
50 GtkWidget *BT_sched_post;
51 GtkWidget *BT_sched_editpost;
52
53 GtkWidget *RA_type;
54
55 GtkWidget *stack;
56 // max is 2=HUB_TXN_TYPE_REMIND, so 3 elt
57 GtkWidget *LV_txn[3];
58
59 gchar *wintitle;
60
61 Account *acc;
62
63 gint busy;
64
65 GtkUIManager *manager;
66 GtkActionGroup *actions;
67
68 GtkRecentManager *recent_manager;
69 GtkWidget *recent_menu;
70
71 Filter *filter;
72
73 /*
74 UBYTE accnum;
75 UBYTE pad0;
76 struct Account *acc;
77
78 ULONG mindate, maxdate;
79 ULONG change;
80 ULONG keyvalue;
81 UBYTE title[140];
82 UBYTE Filename[108];
83 UBYTE csvpath[108];
84 */
85 };
86
87
88 typedef struct _pnlaccgrp PnlAccGrp;
89
90 struct _pnlaccgrp
91 {
92 GPtrArray *acclist;
93 gboolean expanded;
94 };
95
96 //temporary ?
97 void ui_mainwindow_defarchive(Archive *arc);
98
99
100 GtkWidget *create_hbfile_window(GtkWidget *do_widget);
101 void ui_mainwindow_populate_accounts(GtkWidget *widget, gpointer user_data);
102 gboolean ui_mainwindow_open_backup_check_confirm(gchar *filepath);
103 void ui_mainwindow_open_internal(GtkWidget *widget, gpointer user_data);
104 void ui_mainwindow_update(GtkWidget *widget, gpointer user_data);
105 void ui_mainwindow_action_help_welcome(void);
106
107 #endif /* __HB_MANWINDOW_GTK_H__ */
This page took 0.031851 seconds and 4 git commands to generate.