]> Dogcows Code - chaz/homebank/blobdiff - src/rep-stats.h
import homebank-5.2.4
[chaz/homebank] / src / rep-stats.h
diff --git a/src/rep-stats.h b/src/rep-stats.h
new file mode 100644 (file)
index 0000000..93bc983
--- /dev/null
@@ -0,0 +1,109 @@
+/*  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 <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __HOMEBANK_REPDIST_H__
+#define __HOMEBANK_REPDIST_H__
+
+enum {
+       HID_REPDIST_MINDATE,
+       HID_REPDIST_MAXDATE,
+       HID_REPDIST_RANGE,
+       HID_REPDIST_VIEW,
+       MAX_REPDIST_HID
+};
+
+
+enum
+{
+       LST_REPDIST_POS,        //keep for compatibility with chart
+       LST_REPDIST_KEY,
+       LST_REPDIST_NAME,
+       LST_REPDIST_EXPENSE,
+       LST_REPDIST_EXPRATE,
+       LST_REPDIST_INCOME,
+       LST_REPDIST_INCRATE,
+       LST_REPDIST_BALANCE,
+       LST_REPDIST_BALRATE,
+       NUM_LST_REPDIST
+};
+
+//test
+enum {
+       LST_REPDIST2_POS,
+       LST_REPDIST2_TYPE,
+       LST_REPDIST2_ROW,
+       LST_REPDIST2_LABEL,
+       NUM_LST_REPDIST2
+};
+
+
+struct ui_repdist_data
+{
+       GQueue          *txn_queue;
+       Filter          *filter;
+
+       gboolean        detail;
+       gboolean        legend;
+       gboolean        rate;
+       gdouble         total_expense;
+       gdouble         total_income;
+       gdouble         total_balance;
+
+       GtkWidget       *window;
+
+       GtkUIManager    *ui;
+       GtkActionGroup *actions;
+
+       GtkWidget       *TB_bar;
+
+       GtkWidget       *TX_info;
+       GtkWidget       *CM_minor;
+       GtkWidget       *CY_src;
+       GtkWidget       *CY_type;
+       GtkWidget       *RG_zoomx, *LB_zoomx;
+       GtkWidget       *LV_report;
+       
+       GtkWidget       *CM_byamount;
+
+       GtkWidget       *PO_mindate, *PO_maxdate;
+
+       GtkWidget       *CY_range;
+       GtkWidget       *GR_result;
+
+       GtkWidget       *TX_daterange;
+       GtkWidget       *TX_total[3];
+
+       GtkWidget       *RE_chart;
+
+       GtkWidget       *GR_detail;
+       GtkWidget       *LV_detail;
+
+       GtkWidget       *BT_export;
+       GtkWidget       *MI_detailtoclip;
+       GtkWidget       *MI_detailtocsv;
+
+       gulong          handler_id[MAX_REPDIST_HID];
+
+};
+
+
+
+GtkWidget *ui_repdist_window_new(void);
+
+#endif
This page took 0.025571 seconds and 4 git commands to generate.