]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@189 d1b88da0-ebda-0310-925b-ed51d...
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Thu, 12 Aug 2004 14:19:43 +0000 (14:19 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Thu, 12 Aug 2004 14:19:43 +0000 (14:19 +0000)
14 files changed:
SOGo/UI/Scheduler/ChangeLog
SOGo/UI/Scheduler/GNUmakefile
SOGo/UI/Scheduler/GNUmakefile.preamble
SOGo/UI/Scheduler/UIxAppointmentEditor.m
SOGo/UI/Scheduler/UIxAppointmentProposal.m [new file with mode: 0644]
SOGo/UI/Scheduler/UIxAppointmentProposal.wox [new file with mode: 0644]
SOGo/UI/Scheduler/UIxCalDayOverview.h
SOGo/UI/Scheduler/UIxCalWeekOverview.wox
SOGo/UI/Scheduler/Version
SOGo/UI/Scheduler/iCalPerson+UIx.h [new file with mode: 0644]
SOGo/UI/Scheduler/iCalPerson+UIx.m [new file with mode: 0644]
SOGoLogic/ChangeLog
SOGoLogic/SOGoAppointment.h
SOGoLogic/Version

index 7868b60d5d69617d6c1fa0cfd39bfd8c86701034..281e4e91fd6f4f766c81b27be7c5d2a2caaeee25 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-12  Helge Hess  <helge.hess@skyrix.com>
+
+       * some code reorganizations, fixed some compile warnings (v0.9.20)
+
 2004-08-11  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * v0.9.19
index 6e2607539521a14a38d0de637c4c259c6225f8e1..3c70f375407b51a148f943f0aad3c2d48afa1e97 100644 (file)
@@ -13,15 +13,16 @@ SchedulerUI_LANGUAGES = English French
 SchedulerUI_OBJC_FILES =               \
        SchedulerUIProduct.m            \
        UIxAppointmentFormatter.m       \
-       UIxCalView.m                            \
-       UIxCalDayView.m                         \
-       UIxCalWeekView.m                        \
-       UIxCalMonthView.m                       \
-       UIxAptTableView.m                       \
-                                                               \
-       UIxCalDayOverview.m                     \
+       iCalPerson+UIx.m                \
+       UIxCalView.m                    \
+       UIxCalDayView.m                 \
+       UIxCalWeekView.m                \
+       UIxCalMonthView.m               \
+       UIxAptTableView.m               \
+                                       \
+       UIxCalDayOverview.m             \
        UIxCalDayChartview.m            \
-       UIxCalDayListview.m                     \
+       UIxCalDayListview.m             \
        UIxCalDayPrintview.m            \
        UIxCalWeekOverview.m            \
        UIxCalWeekChartview.m           \
@@ -34,15 +35,15 @@ SchedulerUI_OBJC_FILES =            \
        UIxCalInlineMonthOverview.m     \
        UIxAppointmentView.m            \
        UIxAppointmentEditor.m          \
-       UIxCalSelectTab.m                       \
-       UIxCalDateLabel.m                       \
+       UIxCalSelectTab.m               \
+       UIxCalDateLabel.m               \
        UIxCalBackForthNavView.m        \
 
-SchedulerUI_RESOURCE_FILES +=                          \
-       Version                                                                 \
-       product.plist                                                   \
-                                                                                       \
-       UIxAptTableView.wox                                             \
+SchedulerUI_RESOURCE_FILES +=          \
+       Version                         \
+       product.plist                   \
+       \
+       UIxAptTableView.wox                                     \
        UIxCalDayOverview.wox                                   \
        UIxCalDayChartview.wox                                  \
        UIxCalDayListview.wox                                   \
@@ -55,22 +56,22 @@ SchedulerUI_RESOURCE_FILES +=                               \
        UIxCalMonthOverview.wox                                 \
        UIxCalMonthPrintview.wox                                \
        UIxCalYearOverview.wox                                  \
-       UIxCalInlineMonthOverview.wox                   \
+       UIxCalInlineMonthOverview.wox                           \
        UIxAppointmentView.wox                                  \
        UIxAppointmentEditor.wox                                \
-       UIxCalSelectTab.wox                                             \
-       UIxCalDateLabel.wox                                             \
+       UIxCalSelectTab.wox                                     \
+       UIxCalDateLabel.wox                                     \
        UIxCalBackForthNavView.wox                              \
        images/next_week.gif                                    \
        images/previous_week.gif                                \
-       images/icon_view_overview.gif                   \
-       images/icon_view_overview_inactive.gif  \
+       images/icon_view_overview.gif                           \
+       images/icon_view_overview_inactive.gif                  \
        images/icon_view_chart.gif                              \
-       images/icon_view_chart_inactive.gif             \
+       images/icon_view_chart_inactive.gif                     \
        images/icon_view_list.gif                               \
-       images/icon_view_list_inactive.gif              \
-       images/icon_view_columns.gif                    \
-       images/icon_view_columns_inactive.gif   \
+       images/icon_view_list_inactive.gif                      \
+       images/icon_view_columns.gif                            \
+       images/icon_view_columns_inactive.gif                   \
 
 SchedulerUI_LOCALIZED_RESOURCE_FILES += \
        default.strings
index 838c1b5810350e063a08db049fb057fda7614a4d..c240c8e8c3c73c4f3b39f6eec13d19b86a283dfc 100644 (file)
@@ -1,7 +1,9 @@
 # $Id$
 
 ADDITIONAL_INCLUDE_DIRS += \
-       -I..    \
+       -I..            \
+       -I../..         \
+       -I../../..      \
        -I../../SoObjects
 
 ifneq ($(GNUSTEP_BUILD_DIR),)
index 6b2f1f9b01dbbbcd3d5bc94afab66a992d8182fc..c62b88319ceed1802ade2c9699afbe38db23de82 100644 (file)
 */
 // $Id$
 
-
-#include "common.h"
 #include <SOGoUI/UIxComponent.h>
+
+/* TODO: CLEAN UP */
+
+@class NSString;
+@class SOGoAppointment;
+
+@interface UIxAppointmentEditor : UIxComponent
+{
+  id appointment;
+  id participants;
+}
+
+- (SOGoAppointment *)appointment;
+- (NSString *)iCalStringTemplate;
+- (NSString *)iCalString;
+
+@end
+
 #include <SOGoUI/SOGoDateFormatter.h>
 #include <SOGoLogic/SOGoAppointment.h>
+#include <Appointments/SOGoAppointmentFolder.h>
+#include <Appointments/SOGoAppointmentObject.h>
+#include "iCalPerson+UIx.h"
+#include "common.h"
 #include <NGiCal/NGiCal.h>
 
-
-/* TODO: CLEAN THIS MESS UP */
-
 @interface NSDate(UsedPrivates)
 - (NSString *)icalString; // TODO: this is in NGiCal
 @end
 }
 @end
 
-@interface iCalPerson (Convenience)
-- (NSString *)rfc822Email;
-@end
-
-@implementation iCalPerson (Convenience)
-- (NSString *)rfc822Email {
-    NSString *_email = [self email];
-    NSRange colon = [_email rangeOfString:@":"];
-    if(colon.location != NSNotFound) {
-        return [_email substringFromIndex:colon.location + 1];
-    }
-    return _email;
-}
-@end
-
-@interface UIxAppointmentEditor : UIxComponent
-{
-    id appointment;
-    id participants;
-}
-
-- (SOGoAppointment *)appointment;
-- (NSString *)iCalStringTemplate;
-- (NSString *)iCalString;
-
-@end
-
 @implementation UIxAppointmentEditor
 
 - (void)dealloc {
-    [self->appointment release];
-    [self->participants release];
-    [super dealloc];
+  [self->appointment  release];
+  [self->participants release];
+  [super dealloc];
 }
 
-
 /* accessors */
 
-
 - (NSString *)formattedAptStartTime {
-    NSCalendarDate *date;
-    SOGoDateFormatter *fmt;
-    NSString *s;
-
-    date = [[[[self appointment] startDate] copy] autorelease];
-    [date setTimeZone:[self viewTimeZone]];
-    fmt = [[SOGoDateFormatter alloc] initWithLocale:[self locale]];
-    [fmt setFullWeekdayNameAndDetails];
-    s = [fmt stringForObjectValue:date];
-    [fmt release];
-    return s;
+  NSCalendarDate    *date;
+  SOGoDateFormatter *fmt;
+  NSString *s;
+
+  date = [[[[self appointment] startDate] copy] autorelease];
+  [date setTimeZone:[self viewTimeZone]];
+  fmt = [[SOGoDateFormatter alloc] initWithLocale:[self locale]];
+  [fmt setFullWeekdayNameAndDetails];
+  s = [fmt stringForObjectValue:date];
+  [fmt release];
+  return s;
 }
 
 - (BOOL)isNewAppointment {
 - (NSString *)iCalString {
   // TODO: improve check for new appointment
   NSString *ical;
-
+  
   ical = [[self clientObject] valueForKey:@"iCalString"];
   if ([ical length] == 0) /* a new appointment */
     ical = [self iCalStringTemplate];
diff --git a/SOGo/UI/Scheduler/UIxAppointmentProposal.m b/SOGo/UI/Scheduler/UIxAppointmentProposal.m
new file mode 100644 (file)
index 0000000..462c00d
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+  Copyright (C) 2004 SKYRIX Software AG
+
+  This file is part of OpenGroupware.org.
+
+  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: UIxAppointmentEditor.m 181 2004-08-11 15:13:25Z helge $
diff --git a/SOGo/UI/Scheduler/UIxAppointmentProposal.wox b/SOGo/UI/Scheduler/UIxAppointmentProposal.wox
new file mode 100644 (file)
index 0000000..17419a8
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version='1.0' standalone='yes'?>
+<var:component xmlns="http://www.w3.org/1999/xhtml"
+               xmlns:var="http://www.skyrix.com/od/binding"
+               xmlns:const="http://www.skyrix.com/od/constant"
+               xmlns:uix="OGo:uix"
+               xmlns:label="OGo:label"
+               className="UIxPageFrame"
+               title="name"
+>
+  proposal
+</var:component>
index bc998aa1fcf810ff3b1f460790e95e7c89fb9892..3c2e2c65c88d2b799fb994623c845a5213cfb3c4 100644 (file)
  */
 // $Id$
 
+#ifndef __UIxCalDayOverview_H__
+#define __UIxCalDayOverview_H__
 
 #include "UIxCalDayView.h"
-#include "common.h"
+
+@className= NSArray;
 
 @interface UIxCalDayOverview : UIxCalDayView
 {
-    NSArray *currentApts;
+  NSArray *currentApts;
 }
 
 - (void)setCurrentApts:(NSArray *)_apts;
@@ -35,3 +38,5 @@
 - (int)minRequiredRowSpan;
     
 @end
+
+#endif /* __UIxCalDayOverview_H__ */
index 38bcbfade5a46709d28a6fa10ade83046dbcba35..2b60bf99bc46e177d2e4d68acd3de7833f81f7ae 100644 (file)
@@ -7,9 +7,8 @@
                xmlns:uix="OGo:uix"
                className="UIxPageFrame"
                title="name">
-
-  <!-- $Id: SkyNews.html,v 1.3 2003/12/22 16:53:55 helge Exp $ -->
-  <table id="skywintable" class="wintable" cellspacing="0" cellpadding="5" width="100%">
+  <table id="skywintable" class="wintable" cellspacing="0" cellpadding="5" 
+         width="100%">
   <tr>
   <td class="wintitle">
   <table cellpadding="0" cellspacing="0" width="100%">
@@ -21,7 +20,7 @@
                                       const:selection="week"
                        /></td>
   <td width="36" align="right" valign="center">
-  <var:component className="UIxWinClose" />
+    <var:component className="UIxWinClose" />
   </td>
   </tr>
   </table>
   </var:component>
   </td>
   </tr>
-  <tr bgcolor="#F5F5E9">
+  <tr bgcolor="#F5F5E9"> <!-- use CSS -->
   <td align="left" width="10"><var:entity const:name="nbsp"/></td>
   <td align="right"><img 
      border="0" alt="" 
      src="/sogod.woa/so/ControlPanel/Products/CommonUI/Resources/corner_right.gif" /></td>
   </tr>
   <tr>
-  <td colspan="2" bgcolor="#F5F5E9">
+  <td colspan="2" bgcolor="#F5F5E9"> <!-- use CSS -->
   <table border="0" width="100%" cellpadding="10" cellspacing="0">
   <tr />
   </table>
     <var:component className="UIxAptTableView" appointments="appointments"/>
   -->
     <!-- pre><var:string value="appointments" const:insertBR="YES"/></pre -->
-
 </var:component>
index 93c8cd1ddfe4862984d2fe8dffb82de3a02d010b..7cb001acfe53aa2f6319d40435bdf0120783297d 100644 (file)
@@ -1,3 +1,3 @@
 # $Id$
 
-SUBMINOR_VERSION:=19
+SUBMINOR_VERSION:=20
diff --git a/SOGo/UI/Scheduler/iCalPerson+UIx.h b/SOGo/UI/Scheduler/iCalPerson+UIx.h
new file mode 100644 (file)
index 0000000..eaa1989
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+  Copyright (C) 2004 SKYRIX Software AG
+
+  This file is part of OpenGroupware.org.
+
+  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: UIxAppointmentEditor.m 181 2004-08-11 15:13:25Z helge $
+
+#ifndef __iCalPerson_UIx_H__
+#define __iCalPerson_UIx_H__
+
+#include <NGiCal/NGiCal.h>
+
+@class NSString;
+
+@interface iCalPerson(Convenience)
+- (NSString *)rfc822Email;
+@end
+
+#endif /* __iCalPerson_UIx_H__ */
diff --git a/SOGo/UI/Scheduler/iCalPerson+UIx.m b/SOGo/UI/Scheduler/iCalPerson+UIx.m
new file mode 100644 (file)
index 0000000..94473e3
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+  Copyright (C) 2004 SKYRIX Software AG
+
+  This file is part of OpenGroupware.org.
+
+  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: UIxAppointmentEditor.m 181 2004-08-11 15:13:25Z helge $
+
+#include "iCalPerson+UIx.h"
+#include "common.h"
+
+@implementation iCalPerson(Convenience)
+
+- (NSString *)rfc822Email {
+  NSString *_email;
+  NSRange  colon;
+  
+  _email = [self email];
+  colon  = [_email rangeOfString:@":"];
+  
+  if (colon.length > 0)
+    return [_email substringFromIndex:(colon.location + colon.length)];
+  
+  return _email;
+}
+
+@end /* iCalPerson(Convenience) */
index d7958e21cb3ef9cbbbde51273dadf26ace5fb84e..c865704c4700d4d34d496ea6a1930091b73c3835 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-12  Helge Hess  <helge.hess@skyrix.com>
+
+       * SOGoAppointment.h: added -iCalString prototype (v0.9.2)
+
 2004-06-30  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * SOGoAppointment.[hm]: new cover methods. also added hackish
index ab12abcdb929e0f5bf12d6586e6bf504233dbb51..1b17ed4c9d37b5a52e82d7ec3961987c870dff4b 100644 (file)
@@ -69,6 +69,9 @@
 - (void)addToAttendees:(iCalPerson *)_person;
 - (NSArray *)attendees;
 
+/* generating iCal */
+
+- (NSString *)iCalString;
 
 /* do we really need these? */
 
index 237a59049190fb100f4d3a877ebcfed082bc30dc..1bf86739af6e070f2b3946837285f951d5e6a275 100644 (file)
@@ -1,3 +1,3 @@
 # $Id$
 
-SUBMINOR_VERSION:=1
+SUBMINOR_VERSION:=2