X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fdsp-mainwindow.h;fp=src%2Fdsp-mainwindow.h;h=b53bf6a87f138482866cd47dfd237a4094451b63;hb=a6c6b0df5492c2160ed97e3a376bdb2fe7c5ebc4;hp=0000000000000000000000000000000000000000;hpb=cd13d9691c46c2b2d6d459e9e6a76bed1c21b7a6;p=chaz%2Fhomebank diff --git a/src/dsp-mainwindow.h b/src/dsp-mainwindow.h new file mode 100644 index 0000000..b53bf6a --- /dev/null +++ b/src/dsp-mainwindow.h @@ -0,0 +1,107 @@ +/* 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_MANWINDOW_GTK_H__ +#define __HB_MANWINDOW_GTK_H__ + +struct hbfile_data +{ + GtkWidget *window; + + GtkWidget *toolbar; + GtkWidget *menubar; + GtkWidget *vpaned; + GtkWidget *hpaned; + + /* panel: your account */ + GtkWidget *LV_acc; + GtkWidget *BT_expandall; + GtkWidget *BT_collapseall; + gboolean showall; + GSimpleActionGroup *action_group_acc; + + GtkWidget *GR_top; + GtkWidget *LV_top; + gdouble toptotal; + GtkWidget *CY_range; + GtkWidget *RE_pie; + + GtkWidget *GR_upc; + + GtkWidget *LV_upc; + GtkWidget *LB_maxpostdate; + GtkWidget *BT_sched_skip; + GtkWidget *BT_sched_post; + GtkWidget *BT_sched_editpost; + + GtkWidget *RA_type; + + GtkWidget *stack; + // max is 2=HUB_TXN_TYPE_REMIND, so 3 elt + GtkWidget *LV_txn[3]; + + gchar *wintitle; + + Account *acc; + + gint busy; + + GtkUIManager *manager; + GtkActionGroup *actions; + + GtkRecentManager *recent_manager; + GtkWidget *recent_menu; + + Filter *filter; + + /* + UBYTE accnum; + UBYTE pad0; + struct Account *acc; + + ULONG mindate, maxdate; + ULONG change; + ULONG keyvalue; + UBYTE title[140]; + UBYTE Filename[108]; + UBYTE csvpath[108]; + */ +}; + + +typedef struct _pnlaccgrp PnlAccGrp; + +struct _pnlaccgrp +{ + GPtrArray *acclist; + gboolean expanded; +}; + +//temporary ? +void ui_mainwindow_defarchive(Archive *arc); + + +GtkWidget *create_hbfile_window(GtkWidget *do_widget); +void ui_mainwindow_populate_accounts(GtkWidget *widget, gpointer user_data); +gboolean ui_mainwindow_open_backup_check_confirm(gchar *filepath); +void ui_mainwindow_open_internal(GtkWidget *widget, gpointer user_data); +void ui_mainwindow_update(GtkWidget *widget, gpointer user_data); +void ui_mainwindow_action_help_welcome(void); + +#endif /* __HB_MANWINDOW_GTK_H__ */