X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fgtk-chart-progress.h;fp=src%2Fgtk-chart-stack.h;h=4ed375ed62ff399ba5f09d9af3969c706f52ba0d;hp=d64f6b87076daa26d948bb3f1c917e34b15bca63;hb=236cb5e47660876f46488ea8f76ecd5bebfa1fac;hpb=8892e90b335f94c296462a91534334b674226cd9 diff --git a/src/gtk-chart-stack.h b/src/gtk-chart-progress.h similarity index 62% rename from src/gtk-chart-stack.h rename to src/gtk-chart-progress.h index d64f6b8..4ed375e 100644 --- a/src/gtk-chart-stack.h +++ b/src/gtk-chart-progress.h @@ -1,5 +1,5 @@ /* 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. * @@ -17,8 +17,8 @@ * along with this program. If not, see . */ -#ifndef __CHARTSTACK_H__ -#define __CHARTSTACK_H__ +#ifndef __CHARTPROGRESS_H__ +#define __CHARTPROGRESS_H__ #include "gtk-chart-colors.h" @@ -30,27 +30,27 @@ extern "C" { /* 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 @@ -83,7 +83,7 @@ struct _StackItem /* you should access only the entry and list fields directly */ -struct _ChartStack +struct _ChartProgress { /*< private >*/ GtkBox hbox; @@ -152,7 +152,7 @@ struct _ChartStack }; -struct _ChartStackClass { +struct _ChartProgressClass { GtkBoxClass parent_class; /* Padding for future expansion */ @@ -163,24 +163,24 @@ struct _ChartStackClass { }; -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__ */