]> err.no Git - scalable-opengroupware.org/commitdiff
fixed date/time fields
authorznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 16 Aug 2004 11:01:55 +0000 (11:01 +0000)
committerznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 16 Aug 2004 11:01:55 +0000 (11:01 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@252 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/UI/Scheduler/ChangeLog
SOGo/UI/Scheduler/UIxAppointmentProposal.m
SOGo/UI/Scheduler/UIxAppointmentProposal.wox
SOGo/UI/Scheduler/Version

index 81f93be179e64298927a117615c68e9ac08d21b3..ba1a65bb92920686dfb05d2d2cef54aa37934f49 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-16  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * v0.9.58
+
+       * UIxAppointmentProposal.[wox,m]: fixed date/time fields.
+
 2004-08-16  Helge Hess  <helge.hess@skyrix.com>
 
        * UIxAppointmentProposal: added duration popup (v0.9.57)
index fb04a770924c5475bc0ccf58a9a9733efad842dd..c4005ea719143293f1549abff32d44548f3c41fb 100644 (file)
   id currentDay;
 
   /* individual values */
-  NSCalendarDate *startDate;
-  NSCalendarDate *endDate;
+  id startDateHour;
+  id startDateMinute;
+  id startDateDay;
+  id startDateMonth;
+  id startDateYear;
+
+  id endDateHour;
+  id endDateMinute;
+  id endDateDay;
+  id endDateMonth;
+  id endDateYear;
+  
   NSArray        *participants; /* array of iCalPerson's */
   NSArray        *resources;    /* array of iCalPerson's */
   id             duration;
 @implementation UIxAppointmentProposal
 
 - (void)dealloc {
-  [self->duration     release];
-  [self->startDate    release];
-  [self->endDate      release];
-  [self->participants release];
-  [self->resources    release];
+  [self->startDateHour   release];
+  [self->startDateMinute release];
+  [self->startDateDay    release];
+  [self->startDateMonth  release];
+  [self->startDateYear   release];
+
+  [self->endDateHour     release];
+  [self->endDateMinute   release];
+  [self->endDateDay      release];
+  [self->endDateMonth    release];
+  [self->endDateYear     release];
+  [self->duration        release];
+    
+  [self->participants    release];
+  [self->resources       release];
   [super dealloc];
 }
 
   return self->item;
 }
 
+- (void)setStartDateHour:(id)_startDateHour {
+    ASSIGN(self->startDateHour, _startDateHour);
+}
+- (id)startDateHour {
+    return self->startDateHour;
+}
+- (void)setStartDateMinute:(id)_startDateMinute {
+    ASSIGN(self->startDateMinute, _startDateMinute);
+}
+- (id)startDateMinute {
+    return self->startDateMinute;
+}
+- (void)setStartDateDay:(id)_startDateDay {
+    ASSIGN(self->startDateDay, _startDateDay);
+}
+- (id)startDateDay {
+    return self->startDateDay;
+}
+- (void)setStartDateMonth:(id)_startDateMonth {
+    ASSIGN(self->startDateMonth, _startDateMonth);
+}
+- (id)startDateMonth {
+    return self->startDateMonth;
+}
+- (void)setStartDateYear:(id)_startDateYear {
+    ASSIGN(self->startDateYear, _startDateYear);
+}
+- (id)startDateYear {
+    return self->startDateYear;
+}
+- (void)setEndDateHour:(id)_endDateHour {
+    ASSIGN(self->endDateHour, _endDateHour);
+}
+- (id)endDateHour {
+    return self->endDateHour;
+}
+- (void)setEndDateMinute:(id)_endDateMinute {
+    ASSIGN(self->endDateMinute, _endDateMinute);
+}
+- (id)endDateMinute {
+    return self->endDateMinute;
+}
+- (void)setEndDateDay:(id)_endDateDay {
+    ASSIGN(self->endDateDay, _endDateDay);
+}
+- (id)endDateDay {
+    return self->endDateDay;
+}
+- (void)setEndDateMonth:(id)_endDateMonth {
+    ASSIGN(self->endDateMonth, _endDateMonth);
+}
+- (id)endDateMonth {
+    return self->endDateMonth;
+}
+- (void)setEndDateYear:(id)_endDateYear {
+    ASSIGN(self->endDateYear, _endDateYear);
+}
+- (id)endDateYear {
+    return self->endDateYear;
+}
+
 - (void)setStartDate:(NSCalendarDate *)_date {
-  ASSIGN(self->startDate, _date);
+  [self setStartDateHour:[NSNumber numberWithInt:[_date hourOfDay]]];
+  [self setStartDateMinute:[NSNumber numberWithInt:[_date minuteOfHour]]];
+  [self setStartDateDay:[NSNumber numberWithInt:[_date dayOfMonth]]];
+  [self setStartDateMonth:[NSNumber numberWithInt:[_date monthOfYear]]];
+  [self setStartDateYear:[NSNumber numberWithInt:[_date yearOfCommonEra]]];
 }
 - (NSCalendarDate *)startDate {
-  return self->startDate;
+  return [NSCalendarDate dateWithYear:[[self startDateYear] intValue]
+                                month:[[self startDateMonth] intValue]
+                                  day:[[self startDateDay] intValue]
+                                 hour:[[self startDateHour] intValue]
+                               minute:[[self startDateMinute] intValue]
+                               second:0
+                             timeZone:[self viewTimeZone]];
 }
 - (void)setEndDate:(NSCalendarDate *)_date {
-  ASSIGN(self->endDate, _date);
+  [self setEndDateHour:[NSNumber numberWithInt:[_date hourOfDay]]];
+  [self setEndDateMinute:[NSNumber numberWithInt:[_date minuteOfHour]]];
+  [self setEndDateDay:[NSNumber numberWithInt:[_date dayOfMonth]]];
+  [self setEndDateMonth:[NSNumber numberWithInt:[_date monthOfYear]]];
+  [self setEndDateYear:[NSNumber numberWithInt:[_date yearOfCommonEra]]];
 }
 - (NSCalendarDate *)endDate {
-  return self->endDate;
+    return [NSCalendarDate dateWithYear:[[self endDateYear] intValue]
+                                  month:[[self endDateMonth] intValue]
+                                    day:[[self endDateDay] intValue]
+                                   hour:[[self endDateHour] intValue]
+                                 minute:[[self endDateMinute] intValue]
+                                 second:59
+                               timeZone:[self viewTimeZone]];
 }
 
 - (void)setDuration:(id)_duration {
index b7ef0b5ed2cf1df44058be790f8d593e02852f61..d392e9d9e9a3e78b40c2315ae7b51f4c3884dcfa 100644 (file)
@@ -51,7 +51,9 @@
                       <var:component className="UIxDatePickerScript" />
                       <var:component className="UIxDatePicker"
                                      const:dateID="startDate"
-                                     date="startDate"
+                                     day="startDateDay"
+                                     month="startDateMonth"
+                                     year="startDateYear"
                                      label:label="browse start date"
                       />
                     </span>
@@ -65,7 +67,9 @@
                   <td align="left" bgcolor="#FFFFF0" class="aptview_text" >
                     <var:component className="UIxDatePicker"
                                    const:dateID="endDate"
-                                   date="endDate"
+                                   day="endDateDay"
+                                   month="endDateMonth"
+                                   year="endDateYear"
                                    label:label="browse end date"
                     />
                   </td>
@@ -81,8 +85,8 @@
                   <td align="left" bgcolor="#FFFFF0" class="aptview_text">
                     <var:component className="UIxTimeSelector"
                                    const:timeID="earliestStartTime"
-                                   date="startDate"
-                                   const:combined="YES"
+                                   hour="startDateHour"
+                                   minute="startDateMinute"
                     />
                   </td>
                 </tr>
@@ -94,8 +98,8 @@
                   <td align="left" bgcolor="#FFFFF0" class="aptview_text" >
                     <var:component className="UIxTimeSelector"
                                    const:timeID="latestEndTime"
-                                   date="endDate"
-                                   const:combined="YES"
+                                   hour="endDateHour"
+                                   minute="endDateMinute"
                     />
                   </td>
                 </tr>
index 5d43ba69d50685404adc850565ef62d4f5893a27..b6179f4b8fd6f34ede9d339c3d159baa453973ad 100644 (file)
@@ -1,6 +1,6 @@
 # $Id$
 
-SUBMINOR_VERSION:=57
+SUBMINOR_VERSION:=58
 
 # v0.9.41 requires libNGObjWeb     v4.2.431
 # v0.9.31 requires libWEExtensions v4.2.52