23 #ifndef _GNC_DENSE_CAL_H
24 #define _GNC_DENSE_CAL_H
29 #include "gnc-dense-cal-model.h"
34 #define GNC_TYPE_DENSE_CAL (gnc_dense_cal_get_type ())
35 #define GNC_DENSE_CAL(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gnc_dense_cal_get_type (), GncDenseCal)
36 #define GNC_DENSE_CAL_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gnc_dense_cal_get_type (), GncDenseCalClass)
37 #define GNC_IS_DENSE_CAL(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gnc_dense_cal_get_type ())
58 GtkComboBox *view_options;
59 GtkDrawingArea *cal_drawing_area;
66 GtkWindow *transPopup;
80 gint firstOfMonthOffset;
87 GdkColor weekColors[MAX_COLORS];
93 GncDenseCalModel *model;
97 gint week_starts_monday;
112 GtkVBoxClass parent_class;
126 GtkWidget* gnc_dense_cal_new (
void);
127 GtkWidget* gnc_dense_cal_new_with_model (GncDenseCalModel *model);
128 GType gnc_dense_cal_get_type (
void);
130 void gnc_dense_cal_set_model(
GncDenseCal *cal, GncDenseCalModel *model);
132 void gnc_dense_cal_set_month(
GncDenseCal *dcal, GDateMonth mon);
133 GDateMonth gnc_dense_cal_get_month(
GncDenseCal *dcal );
137 void gnc_dense_cal_set_year(
GncDenseCal *dcal, guint year );
138 GDateYear gnc_dense_cal_get_year(
GncDenseCal *dcal );
140 void gnc_dense_cal_set_num_months(
GncDenseCal *dcal, guint num_months );
141 guint gnc_dense_cal_get_num_months(
GncDenseCal *dcal );
143 void gnc_dense_cal_set_months_per_col(
GncDenseCal *dcal, guint monthsPerCol );