Monotone-Parent: 3757df8ac9e5d424ceeb411dc2dba958b01a28bb
Monotone-Revision: 25201eca7a2d2327ce725455760027b032810d78 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-19T14:38:25 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
ee39aab212
commit
b790b4778e
|
@ -44,6 +44,7 @@
|
|||
unsigned int endHour;
|
||||
NSNumber *currentHour;
|
||||
NSNumber *currentMinute;
|
||||
BOOL isDisabled;
|
||||
}
|
||||
|
||||
- (void) setDayStartHour: (unsigned int) hour;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -13,30 +13,59 @@
|
|||
month="month"
|
||||
day="day"
|
||||
label="label"
|
||||
var:disabled="disabled"
|
||||
/>
|
||||
<var:if condition="displayTimeControl">
|
||||
<select var:name="hourSelectId">
|
||||
<var:foreach list="selectableHours" item="hourOption"
|
||||
><var:if condition="isCurrentHour"
|
||||
><option var:value="hourValue" selected="selected"
|
||||
><var:string value="hourLabel"
|
||||
/></option></var:if
|
||||
><var:if condition="isCurrentHour" const:negate="YES"
|
||||
><option var:value="hourValue"><var:string value="hourLabel"
|
||||
/></option></var:if>
|
||||
</var:foreach
|
||||
></select>
|
||||
<select var:name="minuteSelectId">
|
||||
<var:foreach list="selectableMinutes" item="minuteOption"
|
||||
><var:if condition="isCurrentMinute"
|
||||
><option var:value="minuteValue" selected="selected"
|
||||
><var:string value="minuteLabel"
|
||||
/></option></var:if
|
||||
><var:if condition="isCurrentMinute" const:negate="YES"
|
||||
><option var:value="minuteValue"
|
||||
><var:string value="minuteLabel"
|
||||
/></option></var:if>
|
||||
</var:foreach
|
||||
></select>
|
||||
<var:if condition="disabled">
|
||||
<select var:name="hourSelectId" const:disabled="disabled">
|
||||
<var:foreach list="selectableHours" item="hourOption"
|
||||
><var:if condition="isCurrentHour"
|
||||
><option var:value="hourValue" selected="selected"
|
||||
><var:string value="hourLabel"
|
||||
/></option></var:if
|
||||
><var:if condition="isCurrentHour" const:negate="YES"
|
||||
><option var:value="hourValue"><var:string value="hourLabel"
|
||||
/></option></var:if>
|
||||
</var:foreach
|
||||
></select>
|
||||
<select var:name="minuteSelectId" const:disabled="disabled">
|
||||
<var:foreach list="selectableMinutes" item="minuteOption"
|
||||
><var:if condition="isCurrentMinute"
|
||||
><option var:value="minuteValue" selected="selected"
|
||||
><var:string value="minuteLabel"
|
||||
/></option></var:if
|
||||
><var:if condition="isCurrentMinute" const:negate="YES"
|
||||
><option var:value="minuteValue"
|
||||
><var:string value="minuteLabel"
|
||||
/></option></var:if>
|
||||
</var:foreach
|
||||
></select>
|
||||
</var:if
|
||||
|
||||
><var:if-not condition="disabled">
|
||||
<select var:name="hourSelectId">
|
||||
<var:foreach list="selectableHours" item="hourOption"
|
||||
><var:if condition="isCurrentHour"
|
||||
><option var:value="hourValue" selected="selected"
|
||||
><var:string value="hourLabel"
|
||||
/></option></var:if
|
||||
><var:if condition="isCurrentHour" const:negate="YES"
|
||||
><option var:value="hourValue"><var:string value="hourLabel"
|
||||
/></option></var:if>
|
||||
</var:foreach
|
||||
></select>
|
||||
<select var:name="minuteSelectId">
|
||||
<var:foreach list="selectableMinutes" item="minuteOption"
|
||||
><var:if condition="isCurrentMinute"
|
||||
><option var:value="minuteValue" selected="selected"
|
||||
><var:string value="minuteLabel"
|
||||
/></option></var:if
|
||||
><var:if condition="isCurrentMinute" const:negate="YES"
|
||||
><option var:value="minuteValue"
|
||||
><var:string value="minuteLabel"
|
||||
/></option></var:if>
|
||||
</var:foreach
|
||||
></select>
|
||||
</var:if-not>
|
||||
</var:if>
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue