diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-09-11 07:22:51 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-09-11 07:22:51 +0800 |
commit | 3ef38d9cc08d0dc1e0e94bfc8b01ca78416bae30 (patch) | |
tree | fa70f00a162a910ba8c1e7f67f8f3262d446c3b0 /widgets/misc/e-calendar-item.h | |
parent | 04b9887c41506d308aac7b89858b3bd5a4bb9ec4 (diff) | |
download | gsoc2013-evolution-3ef38d9cc08d0dc1e0e94bfc8b01ca78416bae30.tar.gz gsoc2013-evolution-3ef38d9cc08d0dc1e0e94bfc8b01ca78416bae30.tar.zst gsoc2013-evolution-3ef38d9cc08d0dc1e0e94bfc8b01ca78416bae30.zip |
added e-dateedit.[hc] and the test-dateedit app.
2000-09-11 Damon Chaplin <damon@helixcode.com>
* Makefile.am (libemiscwidgets_a_SOURCES): added e-dateedit.[hc]
and the test-dateedit app.
* e-dateedit.[hc]: new widget to use instead of GnomeDateEdit. It
uses the new ECalendar widget for the calendar and also supports
"None", "Today" and "Now" buttons, and goes away with a single click.
* test-dateedit.c: app to test the EDateEdit widget.
* e-calendar-item.c: updated to support the EDateEdit better,
mainly by adding the "move_selection_when_moving" arg so we can turn
it off to keep the same day selected when changing the months shown.
svn path=/trunk/; revision=5304
Diffstat (limited to 'widgets/misc/e-calendar-item.h')
-rw-r--r-- | widgets/misc/e-calendar-item.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/misc/e-calendar-item.h b/widgets/misc/e-calendar-item.h index 3091e47bb4..3820b84131 100644 --- a/widgets/misc/e-calendar-item.h +++ b/widgets/misc/e-calendar-item.h @@ -126,6 +126,11 @@ struct _ECalendarItem weeks, or -1 if we never switch. Defaults to -1. */ gint days_to_start_week_selection; + /* Whether the selection is moved when we move back/forward one month. + Used for things like the EDateEdit which only want the selection to + be changed when the user explicitly selects a day. */ + gboolean move_selection_when_moving; + /* Whether the selection is rounded down to the nearest week when we move back/forward one month. Used for the week view. */ gboolean round_selection_when_moving; @@ -165,6 +170,7 @@ struct _ECalendarItem gboolean selecting; gboolean selection_dragging_end; gboolean selection_from_full_week; + gboolean selection_set; gint selection_start_month_offset; gint selection_start_day; gint selection_end_month_offset; @@ -236,9 +242,14 @@ void e_calendar_item_get_date_range (ECalendarItem *calitem, gint *end_month, gint *end_day); +/* Returns the selected date range. It returns FALSE if no days are currently + selected. */ gboolean e_calendar_item_get_selection (ECalendarItem *calitem, GDate *start_date, GDate *end_date); +/* Sets the selected date range, and changes the date range shown so at least + the start of the selection is shown. If start_date is NULL it clears the + selection. */ void e_calendar_item_set_selection (ECalendarItem *calitem, GDate *start_date, GDate *end_date); |