/* HomeBank -- Free, easy, personal accounting for everyone.
- * Copyright (C) 1995-2018 Maxime DOYEN
+ * Copyright (C) 1995-2019 Maxime DOYEN
*
* This file is part of HomeBank.
*
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __CHARTSTACK_H__
-#define __CHARTSTACK_H__
+#ifndef __CHARTPROGRESS_H__
+#define __CHARTPROGRESS_H__
#include "gtk-chart-colors.h"
/* Macro for casting a pointer to a GtkWidget or GtkWidgetClass pointer.
* Macros for testing whether `widget' or `klass' are of type GTK_TYPE_WIDGET.
*/
-#define GTK_TYPE_CHARTSTACK (ui_chart_stack_get_type ())
-#define GTK_CHARTSTACK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHARTSTACK, ChartStack))
-#define GTK_CHARTSTACK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHARTSTACK, ChartStackClass)
-#define GTK_IS_CHARTSTACK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHARTSTACK))
-#define GTK_IS_CHARTSTACK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHARTSTACK))
-#define GTK_CHARTSTACK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHARTSTACK, ChartStackClass))
+#define GTK_TYPE_CHARTPROGRESS (ui_chart_progress_get_type ())
+#define GTK_CHARTPROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHARTPROGRESS, ChartProgress))
+#define GTK_CHARTPROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHARTPROGRESS, ChartProgressClass)
+#define GTK_IS_CHARTPROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHARTPROGRESS))
+#define GTK_IS_CHARTPROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHARTPROGRESS))
+#define GTK_CHARTPROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHARTPROGRESS, ChartProgressClass))
-typedef struct _ChartStack ChartStack;
-typedef struct _ChartStackClass ChartStackClass;
+typedef struct _ChartProgress ChartProgress;
+typedef struct _ChartProgressClass ChartProgressClass;
typedef struct _StackItem StackItem;
-typedef gchar (* ChartStackPrintIntFunc) (gint value, gboolean minor);
-typedef gchar (* ChartStackPrintDoubleFunc) (gdouble value, gboolean minor);
+typedef gchar (* ChartProgressPrintIntFunc) (gint value, gboolean minor);
+typedef gchar (* ChartProgressPrintDoubleFunc) (gdouble value, gboolean minor);
/* = = = = = = = = = = */
/* = = = = = = = = = = = = = = = = = = = = */
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
-#define GTK_CHARTSTACK_BARW 32
+#define GTK_CHARTPROGRESS_BARW 32
#define CHART_BUFFER_LENGTH 128
/* you should access only the entry and list fields directly */
-struct _ChartStack
+struct _ChartProgress
{
/*< private >*/
GtkBox hbox;
};
-struct _ChartStackClass {
+struct _ChartProgressClass {
GtkBoxClass parent_class;
/* Padding for future expansion */
};
-GType ui_chart_stack_get_type (void);
+GType ui_chart_progress_get_type (void);
/* public function */
-GtkWidget *ui_chart_stack_new(void);
+GtkWidget *ui_chart_progress_new(void);
-void ui_chart_stack_set_color_scheme(ChartStack * chart, gint colorscheme);
-void ui_chart_stack_set_dualdatas(ChartStack *chart, GtkTreeModel *model, gchar *coltitle1, gchar *coltitle2, gchar *title, gchar *subtitle);
-void ui_chart_stack_set_title(ChartStack * chart, gchar *title);
-void ui_chart_stack_set_subtitle(ChartStack * chart, gchar *subtitle);
-void ui_chart_stack_set_barw(ChartStack * chart, gdouble barw);
-void ui_chart_stack_show_minor(ChartStack * chart, gboolean minor);
+void ui_chart_progress_set_color_scheme(ChartProgress * chart, gint colorscheme);
+void ui_chart_progress_set_dualdatas(ChartProgress *chart, GtkTreeModel *model, gchar *coltitle1, gchar *coltitle2, gchar *title, gchar *subtitle);
+void ui_chart_progress_set_title(ChartProgress * chart, gchar *title);
+void ui_chart_progress_set_subtitle(ChartProgress * chart, gchar *subtitle);
+void ui_chart_progress_set_barw(ChartProgress * chart, gdouble barw);
+void ui_chart_progress_show_minor(ChartProgress * chart, gboolean minor);
-void ui_chart_stack_set_minor_prefs(ChartStack * chart, gdouble rate, gchar *symbol);
-void ui_chart_stack_set_currency(ChartStack * chart, guint32 kcur);
+void ui_chart_progress_set_minor_prefs(ChartProgress * chart, gdouble rate, gchar *symbol);
+void ui_chart_progress_set_currency(ChartProgress * chart, guint32 kcur);
#ifdef __cplusplus
}
#endif /* __cplusplus */
-#endif /* __CHARTSTACK_H__ */
+#endif /* __CHARTPROGRESS_H__ */