aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.h
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-11-29 08:19:44 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-11-29 08:19:44 +0800
commite1635ef07ac4dbbb2511a01ed32ef096399d11fb (patch)
treeb2dd3c3596335e2ad97bfd863fb54242beadf467 /calendar/gui/e-day-view.h
parent2eabc063bc04b4c2cd74b6829f939b036f937792 (diff)
downloadgsoc2013-evolution-e1635ef07ac4dbbb2511a01ed32ef096399d11fb.tar
gsoc2013-evolution-e1635ef07ac4dbbb2511a01ed32ef096399d11fb.tar.gz
gsoc2013-evolution-e1635ef07ac4dbbb2511a01ed32ef096399d11fb.tar.bz2
gsoc2013-evolution-e1635ef07ac4dbbb2511a01ed32ef096399d11fb.tar.lz
gsoc2013-evolution-e1635ef07ac4dbbb2511a01ed32ef096399d11fb.tar.xz
gsoc2013-evolution-e1635ef07ac4dbbb2511a01ed32ef096399d11fb.tar.zst
gsoc2013-evolution-e1635ef07ac4dbbb2511a01ed32ef096399d11fb.zip
finished 12-hour support and tried to tidy up & comment the drawing code
2000-11-28 Damon Chaplin <damon@helixcode.com> * gui/e-day-view*.[hc]: * gui/e-week-view*.[hc]: finished 12-hour support and tried to tidy up & comment the drawing code in places. Also fixed a couple of bugs I spotted. All the options on the 'Calendar' page should now work. svn path=/trunk/; revision=6706
Diffstat (limited to 'calendar/gui/e-day-view.h')
-rw-r--r--calendar/gui/e-day-view.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/calendar/gui/e-day-view.h b/calendar/gui/e-day-view.h
index f0118187e4..a6ecc165d5 100644
--- a/calendar/gui/e-day-view.h
+++ b/calendar/gui/e-day-view.h
@@ -303,13 +303,11 @@ struct _EDayView
guint8 cols_per_row[E_DAY_VIEW_MAX_DAYS][12 * 24];
/* Sizes of the various time strings. */
- gint large_hour_widths[24];
gint small_hour_widths[24];
- gint minute_widths[12]; /* intervals of 5 minutes. */
gint max_small_hour_width;
- gint max_large_hour_width;
gint max_minute_width;
gint colon_width;
+ gint digit_width; /* Size of '0' character. */
/* This specifies how we are displaying the dates at the top. */
EDayViewDateFormat date_format;
@@ -524,7 +522,7 @@ void e_day_view_set_working_day (EDayView *day_view,
gint end_hour,
gint end_minute);
-/* Whether we use 12-hour of 24-hour format. */
+/* Whether we use 12-hour or 24-hour format. */
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);
@@ -582,6 +580,14 @@ void e_day_view_check_auto_scroll (EDayView *day_view,
gint event_y);
void e_day_view_stop_auto_scroll (EDayView *day_view);
+void e_day_view_convert_time_to_display (EDayView *day_view,
+ gint hour,
+ gint *display_hour,
+ gchar **suffix,
+ gint *suffix_width);
+gint e_day_view_get_time_string_width (EDayView *day_view);
+
+
#ifdef __cplusplus
}
#endif /* __cplusplus */