/*  HomeBank -- Free, easy, personal accounting for everyone.
 *  Copyright (C) 1995-2026 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 __HB_REP_LIST__H__
#define __HB_REP_LIST__H__


typedef enum
{
	LIST_TYPE_BALANCE = 1,
	LIST_TYPE_TIME,
	LIST_TYPE_SUMMARY
} HbListType;


enum
{
	LST_REPORT_POS,	//keep for compatibility with chart
	LST_REPORT_KEY,
	LST_REPORT_LABEL,
	//LST_REPORT_ROW,
	LST_REPORT_EXPENSE,
	LST_REPORT_INCOME,
	LST_REPORT_TOTAL,
	LST_REPORT_FLAGS,
	NUM_LST_REPORT
};



/* -- flags -- */
#define	REPORT_FLAG_OVER	(1<<1)
#define	REPORT_FLAG_TODAY	(1<<2)

#define LST_REPORT_POS_TOTAL	G_MAXINT


GString *lst_replist_to_string(ToStringMode mode, GtkTreeView *treeview, gchar *title);
void lst_replist_set_cur(GtkTreeView *treeview, guint32 kcur);
GtkWidget *lst_replist_create(HbListType type);


#endif
