From: helge Date: Mon, 16 Aug 2004 09:04:19 +0000 (+0000) Subject: git-svn-id: http://svn.opengroupware.org/SOGo/trunk@245 d1b88da0-ebda-0310-925b-ed51d... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5bc1872ba1b1d7d2628173824a2f59a90dfd256;p=scalable-opengroupware.org git-svn-id: http://svn.opengroupware.org/SOGo/trunk@245 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index ded3c466..bd3bece2 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,5 +1,12 @@ 2004-08-16 Helge Hess + * v0.9.53 + + * UIxAppointmentProposal: added attendee selectors, added ivars, added + searchProposal action + + * added green_corner.gif + * iCalPerson+UIx.m: fixed -cnForDisplay to properly check for quotes prior removing them (v0.9.52) diff --git a/SOGo/UI/Scheduler/GNUmakefile b/SOGo/UI/Scheduler/GNUmakefile index 801c76be..bfe32458 100644 --- a/SOGo/UI/Scheduler/GNUmakefile +++ b/SOGo/UI/Scheduler/GNUmakefile @@ -93,6 +93,7 @@ SchedulerUI_RESOURCE_FILES += \ images/previous.gif \ images/next.gif \ images/last.gif \ + images/green_corner.gif \ SchedulerUI_LOCALIZED_RESOURCE_FILES += \ default.strings \ diff --git a/SOGo/UI/Scheduler/UIxAppointmentEditor.m b/SOGo/UI/Scheduler/UIxAppointmentEditor.m index ef83069e..db7e548a 100644 --- a/SOGo/UI/Scheduler/UIxAppointmentEditor.m +++ b/SOGo/UI/Scheduler/UIxAppointmentEditor.m @@ -40,8 +40,8 @@ NSString *title; NSString *location; NSString *comment; - NSArray *participants; - NSArray *resources; + NSArray *participants; /* array of iCalPerson's */ + NSArray *resources; /* array of iCalPerson's */ } - (NSString *)iCalStringTemplate; @@ -423,7 +423,6 @@ return self; } -#warning TODO: implement proper "multi-saves" ex = [[self clientObject] saveContentString:content]; if (ex != nil) { [self setErrorText:[ex reason]]; diff --git a/SOGo/UI/Scheduler/UIxAppointmentProposal.m b/SOGo/UI/Scheduler/UIxAppointmentProposal.m index 9e7c86ac..92ed59c8 100644 --- a/SOGo/UI/Scheduler/UIxAppointmentProposal.m +++ b/SOGo/UI/Scheduler/UIxAppointmentProposal.m @@ -26,6 +26,12 @@ { id item; id currentDay; + + /* individual values */ + NSCalendarDate *startDate; + NSCalendarDate *endDate; + NSArray *participants; /* array of iCalPerson's */ + NSArray *resources; /* array of iCalPerson's */ } @end @@ -34,6 +40,14 @@ @implementation UIxAppointmentProposal +- (void)dealloc { + [self->startDate release]; + [self->endDate release]; + [self->participants release]; + [self->resources release]; + [super dealloc]; +} + /* notifications */ - (void)sleep { @@ -51,6 +65,32 @@ return self->item; } +- (void)setStartDate:(NSCalendarDate *)_date { + ASSIGN(self->startDate, _date); +} +- (NSCalendarDate *)startDate { + return self->startDate; +} +- (void)setEndDate:(NSCalendarDate *)_date { + ASSIGN(self->endDate, _date); +} +- (NSCalendarDate *)endDate { + return self->endDate; +} + +- (void)setParticipants:(NSArray *)_parts { + ASSIGN(self->participants, _parts); +} +- (NSArray *)participants { + return self->participants; +} +- (void)setResources:(NSArray *)_res { + ASSIGN(self->resources, _res); +} +- (NSArray *)resources { + return self->resources; +} + - (void)setCurrentDay:(id)_day { ASSIGN(self->currentDay, _day); } @@ -74,4 +114,18 @@ return [NSArray arrayWithObjects:@"2004-08-15", nil]; } +/* actions */ + +- (BOOL)shouldTakeValuesFromRequest:(WORequest *)_rq inContext:(WOContext*)_c{ + return YES; +} + +- (id)proposalSearchAction { + [self logWithFormat:@"search from %@ to %@", + [self startDate], [self endDate]]; + [self logWithFormat:@" participants: %@", [self participants]]; + [self logWithFormat:@" resources: %@", [self resources]]; + return self; +} + @end /* UIxAppointmentProposal */ diff --git a/SOGo/UI/Scheduler/UIxAppointmentProposal.wox b/SOGo/UI/Scheduler/UIxAppointmentProposal.wox index f6e65561..323ca063 100644 --- a/SOGo/UI/Scheduler/UIxAppointmentProposal.wox +++ b/SOGo/UI/Scheduler/UIxAppointmentProposal.wox @@ -2,15 +2,13 @@ - @@ -39,7 +37,7 @@ label:label="Appointment proposal" href="#" > - +
- - - @@ -154,7 +162,17 @@ @@ -164,7 +182,7 @@ diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index 0a10d2c5..f8d8760c 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,6 +1,6 @@ # $Id$ -SUBMINOR_VERSION:=52 +SUBMINOR_VERSION:=53 # v0.9.41 requires libNGObjWeb v4.2.431 # v0.9.31 requires libWEExtensions v4.2.52 diff --git a/SOGo/UI/Scheduler/images/green_corner.gif b/SOGo/UI/Scheduler/images/green_corner.gif new file mode 100644 index 00000000..6a06d058 Binary files /dev/null and b/SOGo/UI/Scheduler/images/green_corner.gif differ diff --git a/SOGo/UI/Scheduler/product.plist b/SOGo/UI/Scheduler/product.plist index 58d326c2..8305b198 100644 --- a/SOGo/UI/Scheduler/product.plist +++ b/SOGo/UI/Scheduler/product.plist @@ -18,7 +18,8 @@ next.gif, last.gif, skycalendar.html, - skycalendar.js + skycalendar.js, + green_corner.gif, ); factories = { @@ -89,6 +90,11 @@ protectedBy = "View"; pageName = "UIxAppointmentProposal"; }; + proposalSearch = { + protectedBy = "View"; + pageName = "UIxAppointmentProposal"; + actionName = "proposalSearch"; + }; }; };
@@ -68,7 +66,8 @@
+ : @@ -96,7 +95,8 @@
+ : @@ -108,7 +108,8 @@
+ : @@ -133,7 +134,14 @@ - Anais resource selector + + +
- Anais person selector + + +
- new + new