/* 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__ */