From 8e8b4bc740332b9f86ec75b426e8df8798b039b5 Mon Sep 17 00:00:00 2001 From: znek Date: Tue, 29 Jun 2004 18:43:00 +0000 Subject: [PATCH] more work in progress git-svn-id: http://svn.opengroupware.org/SOGo/trunk@79 d1b88da0-ebda-0310-925b-ed51d893ca5b --- .../UI-X/Scheduler/UIxAppointmentEditor.m | 71 ++++++++++++ .../UI-X/Scheduler/UIxAppointmentEditor.wox | 103 ++++++++++++++++++ 2 files changed, 174 insertions(+) create mode 100644 ZideStore/UI-X/Scheduler/UIxAppointmentEditor.m create mode 100644 ZideStore/UI-X/Scheduler/UIxAppointmentEditor.wox diff --git a/ZideStore/UI-X/Scheduler/UIxAppointmentEditor.m b/ZideStore/UI-X/Scheduler/UIxAppointmentEditor.m new file mode 100644 index 00000000..f2e19784 --- /dev/null +++ b/ZideStore/UI-X/Scheduler/UIxAppointmentEditor.m @@ -0,0 +1,71 @@ +/* + Copyright (C) 2000-2004 SKYRIX Software AG + + This file is part of OGo + + OGo is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + OGo is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with OGo; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. +*/ +// $Id$ + + +#include "common.h" +#include +#include + + +@interface UIxAppointmentEditor : UIxComponent +{ + id appointment; +} + +- (SOGoAppointment *)appointment; + +@end + +@implementation UIxAppointmentEditor + +- (void)dealloc { + [self->appointment release]; + [super dealloc]; +} + + +/* accessors */ + + +- (NSString *)formattedAptStartTime { + NSCalendarDate *date; + + date = [[self appointment] startDate]; + /* TODO: convert this into display timeZone! */ + return [date descriptionWithCalendarFormat:@"%A, %Y-%m-%d %H:%M %Z"]; +} + + +/* backend */ + + +- (SOGoAppointment *)appointment { + if(self->appointment == nil) { + NSString *iCalString; + + iCalString = [[self clientObject] valueForKey:@"iCalString"]; + self->appointment = [[SOGoAppointment alloc] initWithICalString:iCalString]; + } + return self->appointment; +} + +@end diff --git a/ZideStore/UI-X/Scheduler/UIxAppointmentEditor.wox b/ZideStore/UI-X/Scheduler/UIxAppointmentEditor.wox new file mode 100644 index 00000000..64da2f1c --- /dev/null +++ b/ZideStore/UI-X/Scheduler/UIxAppointmentEditor.wox @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ Appointment Editor + +
+
+ + + + + + + + +
+ Appointment on +
+ Start time: + + + start time + +
+
+ + + + + + + + +
+ Search participants +
+ Start time: + + + textarea + +
+
+ + + + + + + + + +
+ Title: + + + + +
+ Location: + + + + +
+
+
+ +
+ clientObject: +
-- 2.39.5