From ff58c95439293794142b453155efc36198feff62 Mon Sep 17 00:00:00 2001 From: znek Date: Wed, 8 Sep 2004 22:35:53 +0000 Subject: [PATCH] working day views, better debugging facilities git-svn-id: http://svn.opengroupware.org/SOGo/trunk@300 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/SOGo.xcode/project.pbxproj | 20 +++++++ SOGo/UI/Common/ChangeLog | 5 ++ SOGo/UI/Common/UIxPageFrame.wox | 13 +++++ SOGo/UI/Common/Version | 2 +- SOGo/UI/Scheduler/ChangeLog | 11 ++++ SOGo/UI/Scheduler/UIxAppointmentEditor.wox | 7 --- SOGo/UI/Scheduler/UIxCalDayChartview.wox | 16 ++--- SOGo/UI/Scheduler/UIxCalDayListview.m | 33 ++++++++--- SOGo/UI/Scheduler/UIxCalDayListview.wox | 68 ++++++---------------- SOGo/UI/Scheduler/Version | 2 +- 10 files changed, 104 insertions(+), 73 deletions(-) diff --git a/SOGo/SOGo.xcode/project.pbxproj b/SOGo/SOGo.xcode/project.pbxproj index bf7d893a..efc7a01a 100644 --- a/SOGo/SOGo.xcode/project.pbxproj +++ b/SOGo/SOGo.xcode/project.pbxproj @@ -951,6 +951,24 @@ refType = 4; sourceTree = ""; }; + AD88394906EF807D00981A3E = { + fileEncoding = 5; + indentWidth = 2; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.h; + path = SOGoGroupAppointmentFolder.h; + refType = 4; + sourceTree = ""; + }; + AD88394A06EF807D00981A3E = { + fileEncoding = 5; + indentWidth = 2; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.objc; + path = SOGoGroupAppointmentFolder.m; + refType = 4; + sourceTree = ""; + }; ADCDE53106ADA8AC00BFCE2B = { fileEncoding = 5; indentWidth = 8; @@ -1337,6 +1355,8 @@ E87206410692E3D00099CBBD, E87206470692E3D00099CBBD, E87206480692E3D00099CBBD, + AD88394906EF807D00981A3E, + AD88394A06EF807D00981A3E, E87206490692E3D00099CBBD, E872064A0692E3D00099CBBD, ); diff --git a/SOGo/UI/Common/ChangeLog b/SOGo/UI/Common/ChangeLog index 24f5e5d1..60d3fefb 100644 --- a/SOGo/UI/Common/ChangeLog +++ b/SOGo/UI/Common/ChangeLog @@ -1,3 +1,8 @@ +2004-09-09 Marcus Mueller + + * UIxPageFrame.wox: display clientObject and object traversal stack + if isUIxDebugEnabled is set (v0.9.23) + 2004-09-01 Helge Hess * GNUmakefile.preamble: removed dependency on libNGScripting (v0.9.22) diff --git a/SOGo/UI/Common/UIxPageFrame.wox b/SOGo/UI/Common/UIxPageFrame.wox index 283cab06..f868ee0a 100644 --- a/SOGo/UI/Common/UIxPageFrame.wox +++ b/SOGo/UI/Common/UIxPageFrame.wox @@ -90,6 +90,19 @@ + + + + +
+ clientObject: +

+ OTS: +

+
+ + +
diff --git a/SOGo/UI/Common/Version b/SOGo/UI/Common/Version index 78237daf..8a19b3e3 100644 --- a/SOGo/UI/Common/Version +++ b/SOGo/UI/Common/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=22 +SUBMINOR_VERSION:=23 diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index a6d376a4..f305ffe2 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,3 +1,14 @@ +2004-09-09 Marcus Mueller + + * v0.9.79 + + * UIxAppointmentEditor.wox: removed debug output of clientObject, + UIxPageFrame.wox is doing this now. + + * UIxCalDayListView.[wox|m]: fixed some wrong assumptions of uid + handling, corrected to use the (now bugfixed) calendarUIDs of + clientObject. + 2004-09-07 Marcus Mueller * v0.9.78 diff --git a/SOGo/UI/Scheduler/UIxAppointmentEditor.wox b/SOGo/UI/Scheduler/UIxAppointmentEditor.wox index 4e95cc3d..5dbfe13f 100644 --- a/SOGo/UI/Scheduler/UIxAppointmentEditor.wox +++ b/SOGo/UI/Scheduler/UIxAppointmentEditor.wox @@ -214,11 +214,4 @@ - - - -
- clientObject: -
-
diff --git a/SOGo/UI/Scheduler/UIxCalDayChartview.wox b/SOGo/UI/Scheduler/UIxCalDayChartview.wox index 839b0dcb..f2b8d276 100644 --- a/SOGo/UI/Scheduler/UIxCalDayChartview.wox +++ b/SOGo/UI/Scheduler/UIxCalDayChartview.wox @@ -209,13 +209,15 @@ const:bgcolor="#d6d6ce" const:valign="top" > - + + + diff --git a/SOGo/UI/Scheduler/UIxCalDayListview.m b/SOGo/UI/Scheduler/UIxCalDayListview.m index 93933154..32dd4760 100644 --- a/SOGo/UI/Scheduler/UIxCalDayListview.m +++ b/SOGo/UI/Scheduler/UIxCalDayListview.m @@ -32,6 +32,7 @@ @end #include "common.h" +#include @implementation UIxCalDayListview @@ -43,19 +44,37 @@ - (NSArray *)uids { if(!self->uids) { - NSArray *tmp; - NSSet *availUIDs; - - tmp = [[self appointments] valueForKey:@"uid"]; - availUIDs = [[NSSet alloc] initWithArray:tmp]; - tmp = [[availUIDs allObjects] sortedArrayUsingSelector:@selector(compareAscending:)]; - self->uids = [tmp retain]; + self->uids = [[[self clientObject] calendarUIDs] retain]; } return self->uids; } +- (void)setCurrentUid:(id)_currentUid { + ASSIGN(self->currentUid, _currentUid); +} +- (id)currentUid { + return self->currentUid; +} + +- (NSString *)cnForCurrentUid { + return [[AgenorUserManager sharedUserManager] getCNForUID:self->currentUid]; +} + - (NSString *)shortTextForApt { return [[self appointment] valueForKey:@"title"]; } +- (BOOL)isRowActive { + AgenorUserManager *um; + NSString *mailChunk; + NSString *currentMail; + + um = [AgenorUserManager sharedUserManager]; + currentMail = [um getEmailForUID:self->currentUid]; + mailChunk = [self->appointment valueForKey:@"partmails"]; + if([mailChunk rangeOfString:currentMail].length > 0) + return YES; + return NO; +} + @end diff --git a/SOGo/UI/Scheduler/UIxCalDayListview.wox b/SOGo/UI/Scheduler/UIxCalDayListview.wox index 2412a8b8..6e79ec39 100644 --- a/SOGo/UI/Scheduler/UIxCalDayListview.wox +++ b/SOGo/UI/Scheduler/UIxCalDayListview.wox @@ -114,45 +114,8 @@
- +
-
- - - - - - - -
- -
- -
-
diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index 0070f1c7..1c730816 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,6 +1,6 @@ # $Id$ -SUBMINOR_VERSION:=77 +SUBMINOR_VERSION:=79 # v0.9.70 requires libNGExtensions v4.3.107 # v0.9.67 requires SOPE 4.3 -- 2.39.5
@@ -163,11 +126,11 @@ columns="dateRange" column="currentDate" itemActive="isCurrentDateInApt" - const:isRowActive="YES" + isRowActive="isRowActive" const:rowHeight="8" const:width="100%" const:border="0" - const:cellpadding="0" + const:cellpadding="2" const:cellspacing="2" > + />
[] @@ -187,9 +150,12 @@ - + - + + +