diff --git a/ChangeLog b/ChangeLog index b75ddfff7..f3ed17f45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2006-10-23 Wolfgang Sourdeau + + * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -init]): + added new "url" ivar with its classic accessors. + ([UIxComponentEditor -urlButtonClasses]): new method that returns + the class strings for the url button on the appointment/task + editor (depending on the validity of the url). + + * UI/Templates/SchedulerUI/UIxTaskEditor.wox, + UI/Templates/SchedulerUI/UIxAppointmentEditor.wox: start rewriting + the template to match the Lightning's new task/appointment editor. + + * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -saveValuesIntoAppointment:_appointment]): initialize url from the components'url. + + * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -saveValuesIntoTask:_task]): initialize url from the components'url. + 2006-10-20 Wolfgang Sourdeau * SoObjects/Contacts/SOGoContactLDAPFolder.m diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index ae8071716..c7614cc2d 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -215,7 +215,8 @@ [endDate retain]; } -- (void)saveValuesIntoAppointment:(iCalEvent *)_appointment { +- (void) saveValuesIntoAppointment: (iCalEvent *) _appointment +{ /* merge in form values */ NSArray *attendees, *lResources; iCalRecurrenceRule *rrule; @@ -224,13 +225,14 @@ [_appointment setEndDate:[self aptEndDate]]; [_appointment setSummary: [self title]]; + [_appointment setUrl: [self url]]; [_appointment setLocation: [self location]]; [_appointment setComment: [self comment]]; [_appointment setPriority:[self priority]]; [_appointment setCategories: [[self categories] componentsJoinedByString: @","]]; - [_appointment setAccessClass:[self accessClass]]; - [_appointment setTransparency:[self transparency]]; + [_appointment setAccessClass: [self accessClass]]; + [_appointment setTransparency: [self transparency]]; #if 0 /* diff --git a/UI/Scheduler/UIxComponentEditor.h b/UI/Scheduler/UIxComponentEditor.h index e809758d3..fbf594e10 100644 --- a/UI/Scheduler/UIxComponentEditor.h +++ b/UI/Scheduler/UIxComponentEditor.h @@ -47,6 +47,7 @@ NSString *title; NSString *location; NSString *comment; + NSString *url; iCalPerson *organizer; NSArray *participants; /* array of iCalPerson's */ NSArray *resources; /* array of iCalPerson's */ @@ -98,6 +99,9 @@ - (void) setComment: (NSString *) _value; - (NSString *) comment; +- (void) setUrl: (NSString *) _url; +- (NSString *) url; + - (void) setParticipants: (NSArray *) _parts; - (NSArray *) participants; diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index 1e5be3360..bd0a7a320 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -26,6 +26,7 @@ #import #import #import +#import #import #import @@ -79,6 +80,7 @@ [accessClass release]; [cycle release]; [cycleEnd release]; + [url release]; [super dealloc]; } @@ -160,6 +162,16 @@ return title; } +- (void) setUrl: (NSString *) _url +{ + ASSIGNCOPY(url, _url); +} + +- (NSString *) url +{ + return url; +} + - (void) setLocation: (NSString *) _value { ASSIGNCOPY(location, _value); @@ -577,6 +589,7 @@ title = [[component summary] copy]; location = [[component location] copy]; comment = [[component comment] copy]; + url = [[[component url] absoluteString] copy]; priority = [[component priority] copy]; categories = [[[component categories] commaSeparatedValues] retain]; organizer = [[component organizer] retain]; @@ -734,4 +747,16 @@ return componentOwner; } +- (NSString *) urlButtonClasses +{ + NSString *classes; + + if ([url length]) + classes = @"button"; + else + classes = @"button _disabled"; + + return classes; +} + @end diff --git a/UI/Scheduler/UIxTaskEditor.m b/UI/Scheduler/UIxTaskEditor.m index 22cafcc4d..01456a736 100644 --- a/UI/Scheduler/UIxTaskEditor.m +++ b/UI/Scheduler/UIxTaskEditor.m @@ -203,6 +203,7 @@ [_task setDue: dateTime]; [_task setSummary: [self title]]; + [_task setUrl: [self url]]; [_task setLocation: [self location]]; [_task setComment: [self comment]]; [_task setPriority:[self priority]]; diff --git a/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox b/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox index 5500bd9e6..329b770ab 100644 --- a/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox +++ b/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox @@ -15,122 +15,144 @@
-

- -

+


-
- - - - - - - - -
- -
- -