X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fdsp-account.h;fp=src%2Fdsp-account.h;h=4f99c6e95b995301db22cc5b8d629fbd95949cf4;hp=0000000000000000000000000000000000000000;hb=a6c6b0df5492c2160ed97e3a376bdb2fe7c5ebc4;hpb=cd13d9691c46c2b2d6d459e9e6a76bed1c21b7a6 diff --git a/src/dsp-account.h b/src/dsp-account.h new file mode 100644 index 0000000..4f99c6e --- /dev/null +++ b/src/dsp-account.h @@ -0,0 +1,113 @@ +/* HomeBank -- Free, easy, personal accounting for everyone. + * Copyright (C) 1995-2019 Maxime DOYEN + * + * This file is part of HomeBank. + * + * HomeBank is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * HomeBank is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __HB_DSPACCOUNT_H__ +#define __HB_DSPACCOUNT_H__ + + +/* official GTK_RESPONSE are negative */ +#define HB_RESPONSE_REFRESH 1 + + +enum +{ + ACTION_ACCOUNT_ADD, + ACTION_ACCOUNT_INHERIT, + ACTION_ACCOUNT_EDIT, + ACTION_ACCOUNT_MULTIEDIT, + ACTION_ACCOUNT_NONE, + ACTION_ACCOUNT_CLEAR, + ACTION_ACCOUNT_RECONCILE, + ACTION_ACCOUNT_DELETE, + ACTION_ACCOUNT_FILTER, + ACTION_ACCOUNT_CLOSE, + MAX_ACTION_ACCOUNT +}; + +enum { + HID_RANGE, + HID_TYPE, + HID_STATUS, + HID_SEARCH, + MAX_HID +}; + +struct register_panel_data +{ + GtkWidget *window; + + GtkWidget *IB_duplicate; + GtkWidget *LB_duplicate; + GtkWidget *NB_txn_daygap; + + GtkWidget *TB_bar; + GtkWidget *TB_tools; + + GtkWidget *CY_range; + GtkWidget *CM_future; + GtkWidget *CY_type; + GtkWidget *CY_status; +// GtkWidget *CY_month, *NB_year; + GtkWidget *BT_reset; + GtkWidget *TX_selection; + + GtkWidget *ST_search; + + GtkWidget *IM_closed; + GtkWidget *LB_name; + GtkWidget *CM_minor; + GtkWidget *TX_balance[3]; + + GPtrArray *gpatxn; + GtkWidget *LV_ope; + + gint busy; + gchar *wintitle; + GtkUIManager *ui; + GtkActionGroup *actions; + + + Account *acc; + + Transaction *cur_ope; + + gboolean showall; + gboolean do_sort; + + /* status counters */ + gint hidden, total, similar; + gdouble totalsum; + + Filter *filter; + + guint timer_tag; + + gulong handler_id[MAX_HID]; + + //gint change; /* change shouldbe done directly */ + +}; + +#define DEFAULT_DELAY 750 /* Default delay in ms */ + +GtkWidget *register_panel_window_new(Account *acc); +void register_panel_window_init(GtkWidget *widget, gpointer user_data); + + +#endif /* __HOMEBANK_DSPACCOUNT_H__ */