aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/weekday-picker.h
blob: 00c51b7a629fbdb553d4df130bb2147d52b12dcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* Evolution calendar - Week day picker widget
 *
 * Copyright (C) 2000 Helix Code, Inc.
 *
 * Author: Federico Mena-Quintero <federico@helixcode.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef WEEKDAY_PICKER_H
#define WEEKDAY_PICKER_H

#include <libgnome/gnome-defs.h>
#include <libgnomeui/gnome-canvas.h>

BEGIN_GNOME_DECLS



#define TYPE_WEEKDAY_PICKER            (weekday_picker_get_type ())
#define WEEKDAY_PICKER(obj)            (GTK_CHECK_CAST ((obj), TYPE_WEEKDAY_PICKER, WeekdayPicker))
#define WEEKDAY_PICKER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), TYPE_WEEKDAY_PICKER, \
                    WeekdayPickerClass))
#define IS_WEEKDAY_PICKER(obj)         (GTK_CHECK_TYPE ((obj), TYPE_WEEKDAY_PICKER))
#define IS_WEEKDAY_PICKER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TYPE_WEEKDAY_PICKER))

typedef struct _WeekdayPicker WeekdayPicker;
typedef struct _WeekdayPickerClass WeekdayPickerClass;
typedef struct _WeekdayPickerPrivate WeekdayPickerPrivate;

struct _WeekdayPicker {
    GnomeCanvas canvas;

    /* Private data */
    WeekdayPickerPrivate *priv;
};

struct _WeekdayPickerClass {
    GnomeCanvasClass parent_class;

    void (* changed) (WeekdayPicker *wp);
};

GtkType weekday_picker_get_type (void);

GtkWidget *weekday_picker_new (void);

void weekday_picker_set_days (WeekdayPicker *wp, guint8 day_mask);
guint8 weekday_picker_get_days (WeekdayPicker *wp);

void weekday_picker_set_blocked_days (WeekdayPicker *wp, guint8 blocked_day_mask);
guint weekday_picker_get_blocked_days (WeekdayPicker *wp);

void weekday_picker_set_week_start_day (WeekdayPicker *wp, int week_start_day);
int weekday_picker_get_week_start_day (WeekdayPicker *wp);



END_GNOME_DECLS

#endif
/span>/+2 * - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-061-2/+1 * - update png to 1.5.10dinoex2012-06-011-0/+1 * update to mozc-1.5.1090.102.1daichi2012-05-2919-30/+29 * - fixed a build errordaichi2012-05-2322-2775/+15 * fixed some path issuesdaichi2012-05-232-3/+4 * Added fcitx-mozc supportdaichi2012-05-2222-6/+2838 * added a new patch of the openssl build handlingdaichi2012-05-021-0/+27 * improved the openssl relative handlingdaichi2012-05-021-2/+9 * added a needed patch filedaichi2012-05-011-0/+11 * removed unneeded patch filedaichi2012-05-011-11/+0 * update to 1.5.1053.102daichi2012-05-0118-67/+39 * Update to Mozc 1.4.1033.102daichi2012-04-0220-60/+39 * Update to 1.4.1003.102daichi2012-03-1621-52/+53 * Fixed a build issue for 8.xdaichi2012-01-303-1/+27 * Simplified LOCALBASE replacement treatmentdaichi2012-01-291-1/+1 * Update to 1.3.975.102daichi2012-01-2919-40/+40 * Update for ibus 1.4.0daichi2012-01-101-3/+1 * added support for ibus-1.4.0daichi2012-01-072-1/+14 * fixed wrong packages namedaichi2012-01-071-1/+1 * Update mozc* to 1.3.931.102daichi2011-12-2418-25/+57 * - fixed a gcc 4.2.1 's namespace bug. Now mozc can builddaichi2011-12-133-46/+190 * Fixed typo.daichi2011-12-111-1/+1 * Fixed a build error caused by a gcc 4.2.1's namespace bug.daichi2011-12-101-5/+16 * Fix a dependency issue pointed out by pointyhatdaichi2011-12-071-1/+2 * Update to 1.3.911.102 including new featuresdaichi2011-12-0419-67/+108 * Mark broken on powerpc as well as sparc64. (In fact, on all the tier-2s.)linimon2011-11-10