diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-11-27 07:33:07 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-11-27 07:33:07 +0800 |
commit | a01422975f3b39905bb09ef6d40aedb4c7ba9446 (patch) | |
tree | 867a98600c9962cb6f7356e9af03125b6f8ac9fe /calendar/gui/e-day-view.h | |
parent | 30bb3527694d38c84f6f3c3efc1cdca5777da855 (diff) | |
download | gsoc2013-evolution-a01422975f3b39905bb09ef6d40aedb4c7ba9446.tar gsoc2013-evolution-a01422975f3b39905bb09ef6d40aedb4c7ba9446.tar.gz gsoc2013-evolution-a01422975f3b39905bb09ef6d40aedb4c7ba9446.tar.bz2 gsoc2013-evolution-a01422975f3b39905bb09ef6d40aedb4c7ba9446.tar.lz gsoc2013-evolution-a01422975f3b39905bb09ef6d40aedb4c7ba9446.tar.xz gsoc2013-evolution-a01422975f3b39905bb09ef6d40aedb4c7ba9446.tar.zst gsoc2013-evolution-a01422975f3b39905bb09ef6d40aedb4c7ba9446.zip |
added more support for config settings.
2000-11-26 Damon Chaplin <damon@helixcode.com>
* gui/gnome-cal.c: added more support for config settings.
* gui/e-week-view.[hc]:
* gui/e-day-view.[hc]: added support for setting - show event end
times, week start day and 12-hour format (unfinished).
* gui/e-day-view-time-item.c: started 12-hour support.
* gui/tag-calendar.c (prepare_tag): use end_day + 1 since we want to
include the last day.
* gui/event-editor.c (set_all_day): minor change when turning all_day
off - set the event end to one hour after the event start if it is on
or before the start time. Also added more comments to make it a bit
clearer.
* cal-util/cal-recur.c (cal_obj_time_add_days): use a gint for day
rather than a guint since we now support -ve days.
Also fixed bug with weekly recurrences.
* gui/dialogs/task-editor.c (task_editor_create_date_edit): use
config settings.
* gui/dialogs/cal-prefs-dialog.c (cal_prefs_dialog_update_config):
updated EDateEdit calls.
svn path=/trunk/; revision=6675
Diffstat (limited to 'calendar/gui/e-day-view.h')
-rw-r--r-- | calendar/gui/e-day-view.h | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/calendar/gui/e-day-view.h b/calendar/gui/e-day-view.h index bf72d47f46..f0118187e4 100644 --- a/calendar/gui/e-day-view.h +++ b/calendar/gui/e-day-view.h @@ -209,7 +209,7 @@ struct _EDayView /* Calendar client object we are monitoring */ CalClient *client; - /* The start and end of the day shown. */ + /* The start and end of the days shown. */ time_t lower; time_t upper; @@ -218,7 +218,7 @@ struct _EDayView /* The number of days we are showing. Usually 1 or 5, but can be up to E_DAY_VIEW_MAX_DAYS, e.g. when the user selects a range of - days in the mini calendar. */ + days in the date navigator. */ gint days_shown; /* The start of each day & an extra element to hold the last time. */ @@ -282,6 +282,12 @@ struct _EDayView /* Whether we use 12-hour of 24-hour format. */ gboolean use_24_hour_format; + /* Whether we use show event end times in the main canvas. */ + gboolean show_event_end_times; + + /* The first day of the week, 0 (Monday) to 6 (Sunday). */ + gint week_start_day; + /* This is set to TRUE when the widget is created, so it scrolls to the start of the working day when first shown. */ gboolean scroll_to_work_day; @@ -291,7 +297,9 @@ struct _EDayView gint day_widths[E_DAY_VIEW_MAX_DAYS]; gint day_offsets[E_DAY_VIEW_MAX_DAYS + 1]; - /* An array holding the number of columns in each row, in each day. */ + /* An array holding the number of columns in each row, in each day. + Note that there are a maximum of 12 * 24 rows (when a row is 5 mins) + but we don't always have that many rows. */ guint8 cols_per_row[E_DAY_VIEW_MAX_DAYS][12 * 24]; /* Sizes of the various time strings. */ @@ -313,7 +321,7 @@ struct _EDayView gint longest_weekday_name; gint longest_abbreviated_weekday_name; - /* The large font use to display the hours. I don't think we need a + /* The large font used to display the hours. I don't think we need a fontset since we only display numbers. */ GdkFont *large_font; @@ -433,6 +441,12 @@ struct _EDayView GnomeCanvasItem *drag_rect_item; GnomeCanvasItem *drag_bar_item; GnomeCanvasItem *drag_item; + + /* "am" and "pm" in the current locale, and their widths. */ + gchar *am_string; + gchar *pm_string; + gint am_string_width; + gint pm_string_width; }; struct _EDayViewClass @@ -515,6 +529,16 @@ gboolean e_day_view_get_24_hour_format (EDayView *day_view); void e_day_view_set_24_hour_format (EDayView *day_view, gboolean use_24_hour); +/* Whether we display event end times in the main canvas. */ +gboolean e_day_view_get_show_event_end_times (EDayView *day_view); +void e_day_view_set_show_event_end_times (EDayView *day_view, + gboolean show); + +/* The first day of the week, 0 (Monday) to 6 (Sunday). */ +gint e_day_view_get_week_start_day (EDayView *day_view); +void e_day_view_set_week_start_day (EDayView *day_view, + gint week_start_day); + /* * Internal functions called by the associated canvas items. */ |