From e8fec1c0300a922c7b0e154fec2887fe78c35676 Mon Sep 17 00:00:00 2001 From: znek Date: Tue, 21 Dec 2004 16:43:49 +0000 Subject: [PATCH] visual changes and important bugfixes git-svn-id: http://svn.opengroupware.org/SOGo/trunk@481 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/Scheduler/ChangeLog | 9 + SOGo/UI/Scheduler/UIxCalScheduleOverview.m | 35 ++- SOGo/UI/Scheduler/UIxCalScheduleOverview.wox | 211 ++++++++++--------- SOGo/UI/Scheduler/Version | 2 +- 4 files changed, 148 insertions(+), 109 deletions(-) diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index afc2a823..3ad8a30f 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,3 +1,12 @@ +2004-12-21 Marcus Mueller + + * v0.9.106 + + * UIxCalScheduleOverview.wox: different visual representation for + actions (requested by Laurent) + + * UIxCalScheduleOverview.m: bugfix for wrong sort orderings + 2004-12-18 Marcus Mueller * UIxCalScheduleOverview.[wox,m]: removed workaround for NGObjWeb bug, diff --git a/SOGo/UI/Scheduler/UIxCalScheduleOverview.m b/SOGo/UI/Scheduler/UIxCalScheduleOverview.m index 5c0b9ed3..86396ede 100644 --- a/SOGo/UI/Scheduler/UIxCalScheduleOverview.m +++ b/SOGo/UI/Scheduler/UIxCalScheduleOverview.m @@ -97,6 +97,10 @@ return self->participantIndex; } +- (BOOL)isFirstParticipant { + return self->participantIndex == 0 ? YES : NO; +} + - (BOOL)hasUserAppointments { return [[self userAppointments] count] > 0; } @@ -139,6 +143,28 @@ ([self maxRenderedParticipantsCount] + 1) ? YES : NO; } +- (unsigned)rowspan { + unsigned count; + + count = [self renderedParticipantsCount]; + if ([self didTruncateParticipants]) + count += 1; + return count; +} + +- (NSString *)userParticipationStatus { + NSString *pms; + NSArray *partmails; + unsigned idx; + + pms = [self->item valueForKey:@"partmails"]; + partmails = [pms componentsSeparatedByString:@"\n"]; + idx = [partmails indexOfObject:[self emailForUser]]; + if (idx == NSNotFound) + return @""; + return [self->partStates objectAtIndex:idx]; +} + /* fetching */ @@ -179,7 +205,10 @@ unsigned i, count; if (!orders) { - orders = [[NSArray alloc] initWithObjects:@"startDate", nil]; + EOSortOrdering *so; + so = [EOSortOrdering sortOrderingWithKey:@"startDate" + selector:EOCompareAscending]; + orders = [[NSArray alloc] initWithObjects:so, nil]; } aptFolder = [self clientObject]; @@ -202,8 +231,8 @@ else [self->foreignApts addObject:apt]; } - [self->userApts sortedArrayUsingKeyOrderArray:orders]; - [self->foreignApts sortedArrayUsingKeyOrderArray:orders]; + [self->userApts sortUsingKeyOrderArray:orders]; + [self->foreignApts sortUsingKeyOrderArray:orders]; } diff --git a/SOGo/UI/Scheduler/UIxCalScheduleOverview.wox b/SOGo/UI/Scheduler/UIxCalScheduleOverview.wox index 586c0f16..a7530b3f 100644 --- a/SOGo/UI/Scheduler/UIxCalScheduleOverview.wox +++ b/SOGo/UI/Scheduler/UIxCalScheduleOverview.wox @@ -61,7 +61,7 @@ - + @@ -71,59 +71,58 @@ - - - - - - - - - - - + + + + - - - - - - - - - -
-
- - - -
- - ... - -
- - + + + + + +
+ + + + + + + + + + + + + ... + + + + + @@ -132,7 +131,7 @@ - + @@ -142,67 +141,69 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - - - -
+ + + - + + + + + -
- - - -
- - ... - -
- - -
- - - + + + +
+ + + + + + + ... + + + + diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index 13b2c93d..af6dc912 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,6 +1,6 @@ # $Id$ -SUBMINOR_VERSION:=105 +SUBMINOR_VERSION:=106 # v0.9.105 requires NGObjWeb v4.5.102 # v0.9.101 requires NGiCal v4.5.36 -- 2.39.5