From b790b4778e6fb699dc5a7cd2a9063d61b1c14063 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 19 Oct 2006 14:38:25 +0000 Subject: [PATCH] Monotone-Parent: 3757df8ac9e5d424ceeb411dc2dba958b01a28bb Monotone-Revision: 25201eca7a2d2327ce725455760027b032810d78 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-19T14:38:25 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/UIxTimeDateControl.h | 1 + UI/Scheduler/UIxTimeDateControl.m | 13 +++- .../SchedulerUI/UIxTimeDateControl.wox | 75 +++++++++++++------ 3 files changed, 65 insertions(+), 24 deletions(-) diff --git a/UI/Scheduler/UIxTimeDateControl.h b/UI/Scheduler/UIxTimeDateControl.h index d01ed1ff7..bfe490d1b 100644 --- a/UI/Scheduler/UIxTimeDateControl.h +++ b/UI/Scheduler/UIxTimeDateControl.h @@ -44,6 +44,7 @@ unsigned int endHour; NSNumber *currentHour; NSNumber *currentMinute; + BOOL isDisabled; } - (void) setDayStartHour: (unsigned int) hour; diff --git a/UI/Scheduler/UIxTimeDateControl.m b/UI/Scheduler/UIxTimeDateControl.m index a513f607d..469e63301 100644 --- a/UI/Scheduler/UIxTimeDateControl.m +++ b/UI/Scheduler/UIxTimeDateControl.m @@ -36,6 +36,7 @@ self = [super init]; if (self) { displayTimeControl = YES; + isDisabled = NO; } return self; } @@ -257,7 +258,7 @@ _hour = [[self hour] intValue]; _minute = [[self minute] intValue]; _second = [[self second] intValue]; - + d = [NSCalendarDate dateWithYear: _year month:_month day:_day hour:_hour minute:_minute second:_second timeZone: [[self clientObject] userTimeZone]]; @@ -265,4 +266,14 @@ } } +- (void) setDisabled: (BOOL) disabled +{ + isDisabled = disabled; +} + +- (BOOL) disabled +{ + return isDisabled; +} + @end /* UIxTimeDateControl */ diff --git a/UI/Templates/SchedulerUI/UIxTimeDateControl.wox b/UI/Templates/SchedulerUI/UIxTimeDateControl.wox index d925adabd..5e3761ca2 100644 --- a/UI/Templates/SchedulerUI/UIxTimeDateControl.wox +++ b/UI/Templates/SchedulerUI/UIxTimeDateControl.wox @@ -13,30 +13,59 @@ month="month" day="day" label="label" + var:disabled="disabled" /> - - + + + + + + +