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" /> - - + + + + + + +