aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.h
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-01-18 07:34:46 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-01-18 07:34:46 +0800
commitae353b456cb569f4beb3e16ae2cf059d9a001c23 (patch)
tree3f1a3bd4e80a3b6646bdb8ee255aa0b74de42a9b /calendar/gui/e-cal-model.h
parent17b434b57f2020a9c7bf0e459a5377e1fdef8ee4 (diff)
downloadgsoc2013-evolution-ae353b456cb569f4beb3e16ae2cf059d9a001c23.tar.gz
gsoc2013-evolution-ae353b456cb569f4beb3e16ae2cf059d9a001c23.tar.zst
gsoc2013-evolution-ae353b456cb569f4beb3e16ae2cf059d9a001c23.zip
month and week view printing works again, day view is next to fix
2004-01-18 Radek Doulik <rodo@ximian.com> * gui/print.c (print_border_with_triangles): use rgb color as fillcolor (print_week_day_event): ditto * gui/e-cal-model.c (e_cal_model_get_rgb_color_for_component): new helper function, gets component color as rgb double values * gui/print.c (print_week_summary_cb): uncommented and updated for e_cal_model_generate_instances (print_week_summary): use e_cal_model_generate_instances (print_border_with_triangles): pass rgb fillcolor (print_border_rgb): new function to print border with rgb color background * gui/e-cal-model.c (e_cal_model_generate_instances): new function, similar to e_cal_generate_instances. see comments to understand how to use cb_data svn path=/trunk/; revision=24292
Diffstat (limited to 'calendar/gui/e-cal-model.h')
-rw-r--r--calendar/gui/e-cal-model.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-model.h b/calendar/gui/e-cal-model.h
index 9f193b4f07..6cb3f6ba30 100644
--- a/calendar/gui/e-cal-model.h
+++ b/calendar/gui/e-cal-model.h
@@ -64,6 +64,11 @@ typedef struct {
} ECalModelComponent;
typedef struct {
+ ECalModelComponent *comp_data;
+ gpointer cb_data;
+} ECalModelGenerateInstancesData;
+
+typedef struct {
ETableModel model;
ECalModelPrivate *priv;
} ECalModel;
@@ -100,11 +105,13 @@ void e_cal_model_set_query (ECalModel *model, const gchar *sexp);
icalcomponent *e_cal_model_create_component_with_defaults (ECalModel *model);
const gchar *e_cal_model_get_color_for_component (ECalModel *model, ECalModelComponent *comp_data);
+gboolean e_cal_model_get_rgb_color_for_component (ECalModel *model, ECalModelComponent *comp_data, double *red, double *green, double *blue);
ECalModelComponent *e_cal_model_get_component_at (ECalModel *model, gint row);
gchar *e_cal_model_date_value_to_string (ECalModel *model, const void *value);
void e_cal_model_free_component_data (ECalModelComponent *comp_data);
+void e_cal_model_generate_instances (ECalModel *model, time_t start, time_t end, ECalRecurInstanceFn cb, gpointer cb_data);
G_END_DECLS