GnuCash  5.6-150-g038405b370+
gnc-dense-cal.h
1 /********************************************************************\
2  * gnc-dense-cal.h : a custom densely-dispalyed calendar widget *
3  * Copyright (C) 2002,2006 Joshua Sled <jsled@asynchronous.org> *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation, under version 2 and *
8  * / or version 3 of the License. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License*
16  * along with this program; if not, contact: *
17  * *
18  * Free Software Foundation Voice: +1-617-542-5942 *
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20  * Boston, MA 02110-1301, USA gnu@gnu.org *
21 \********************************************************************/
22 
23 #ifndef _GNC_DENSE_CAL_H
24 #define _GNC_DENSE_CAL_H
25 
26 #include <config.h>
27 
28 #include <glib.h>
29 #include "gnc-dense-cal-model.h"
30 #include <gtk/gtk.h>
31 
32 G_BEGIN_DECLS
33 
34 #define GNC_TYPE_DENSE_CAL (gnc_dense_cal_get_type ())
35 G_DECLARE_FINAL_TYPE (GncDenseCal, gnc_dense_cal, GNC, DENSE_CAL, GtkBox)
36 
37 GtkWidget* gnc_dense_cal_new (GtkWindow *parent);
38 GtkWidget* gnc_dense_cal_new_with_model (GtkWindow *parent,
39  GncDenseCalModel *model);
40 void gnc_dense_cal_set_model (GncDenseCal *cal, GncDenseCalModel *model);
41 
42 void gnc_dense_cal_set_month (GncDenseCal *dcal, GDateMonth mon);
43 GDateMonth gnc_dense_cal_get_month (GncDenseCal *dcal);
47 void gnc_dense_cal_set_year (GncDenseCal *dcal, guint year);
48 GDateYear gnc_dense_cal_get_year (GncDenseCal *dcal);
49 
50 void gnc_dense_cal_set_num_months (GncDenseCal *dcal, guint num_months);
51 guint gnc_dense_cal_get_num_months (GncDenseCal *dcal);
52 
53 void gnc_dense_cal_set_months_per_col (GncDenseCal *dcal, guint monthsPerCol);
54 
55 G_END_DECLS
56 
57 #endif /* _GNC_DENSE_CAL_H */