]> err.no Git - scalable-opengroupware.org/commitdiff
Beginning of 'dayoverview'. Still incomplete.
authorznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Fri, 23 Jul 2004 19:55:28 +0000 (19:55 +0000)
committerznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Fri, 23 Jul 2004 19:55:28 +0000 (19:55 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@155 d1b88da0-ebda-0310-925b-ed51d893ca5b

20 files changed:
GNUmakefile [new file with mode: 0644]
SOGo/SOGo.xcode/project.pbxproj
SOGo/UI/Common/ChangeLog
SOGo/UI/Common/calendar.css
SOGo/UI/Scheduler/ChangeLog
SOGo/UI/Scheduler/English.lproj/default.strings
SOGo/UI/Scheduler/GNUmakefile
SOGo/UI/Scheduler/UIxCalDayOverview.m [new file with mode: 0644]
SOGo/UI/Scheduler/UIxCalDayOverview.wox [new file with mode: 0644]
SOGo/UI/Scheduler/UIxCalDayView.h [new file with mode: 0644]
SOGo/UI/Scheduler/UIxCalDayView.m [new file with mode: 0644]
SOGo/UI/Scheduler/UIxCalInlineMonthOverview.m
SOGo/UI/Scheduler/UIxCalInlineMonthOverview.wox
SOGo/UI/Scheduler/UIxCalMonthOverview.wox
SOGo/UI/Scheduler/UIxCalMonthView.m
SOGo/UI/Scheduler/UIxCalWeekOverview.wox
SOGo/UI/Scheduler/UIxCalWeekView.m
SOGo/UI/Scheduler/UIxCalYearOverview.wox
SOGo/UI/Scheduler/Version
SOGo/UI/Scheduler/product.plist

diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644 (file)
index 0000000..8099204
--- /dev/null
@@ -0,0 +1,11 @@
+# $Id$
+
+include $(GNUSTEP_MAKEFILES)/common.make
+
+SUBPROJECTS = \
+       OGoContentStore \
+       SOGoLogic       \
+       SOGo            \
+
+
+include $(GNUSTEP_MAKEFILES)/aggregate.make
index d26e64881a667a225164e77e7985594e557fae6d..328038fc0d5e741a8d1e86fd737a23a667fec1f7 100644 (file)
                        tabWidth = 4;
                        usesTabs = 1;
                };
+               AD5ED0AF06B1385700E3EC4B = {
+                       fileEncoding = 4;
+                       isa = PBXFileReference;
+                       lastKnownFileType = text.xml;
+                       path = UIxCalDayOverview.wox;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
+               AD5ED0B006B1385700E3EC4B = {
+                       fileEncoding = 4;
+                       isa = PBXFileReference;
+                       lastKnownFileType = sourcecode.c.objc;
+                       path = UIxCalDayOverview.m;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
+               AD5ED1AE06B1768900E3EC4B = {
+                       fileEncoding = 4;
+                       isa = PBXFileReference;
+                       lastKnownFileType = sourcecode.c.h;
+                       path = UIxCalDayView.h;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
+               AD5ED1AF06B1768900E3EC4B = {
+                       fileEncoding = 4;
+                       isa = PBXFileReference;
+                       lastKnownFileType = sourcecode.c.objc;
+                       path = UIxCalDayView.m;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
                AD6BCEE5069D77E9003664CD = {
                        children = (
                                AD6BCF0D069D77E9003664CD,
                                E87209050692E3D30099CBBD,
                                AD7379B306AEBB2500735920,
                                AD7379B206AEBB2500735920,
+                               AD5ED0B006B1385700E3EC4B,
+                               AD5ED0AF06B1385700E3EC4B,
                                E87209080692E3D30099CBBD,
                                E87209090692E3D30099CBBD,
                                AD737A1706AEC77E00735920,
                                E87208F50692E3D30099CBBD,
                                E87208F60692E3D30099CBBD,
                                E87208F70692E3D30099CBBD,
-                               E87209020692E3D30099CBBD,
-                               E87209030692E3D30099CBBD,
                                E87209060692E3D30099CBBD,
                                E87209070692E3D30099CBBD,
+                               AD5ED1AE06B1768900E3EC4B,
+                               AD5ED1AF06B1768900E3EC4B,
                                E872090A0692E3D30099CBBD,
                                E872090B0692E3D30099CBBD,
+                               E87209020692E3D30099CBBD,
+                               E87209030692E3D30099CBBD,
                        );
                        isa = PBXGroup;
                        name = Classes;
index 40abc9289d719def06c48bb99c999c98af5a7b59..2cd35856c40582c1bee847323f99573ec4f63d13 100644 (file)
@@ -1,4 +1,8 @@
-2004-07-21  Marcus Mueller  <znek@mulle-kybernetik.com>
+2004-07-23  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * calendar.css: added styles for dayoverview's calendar.
+
+2004-07-22  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * calendar.css: complete style for 'yearoverview' and fixed style in
          'monthoverview'.
index 94e4f3d72c47df789493898fa5b49b0b7f7b8ab5..c485a1dc0132c3ce6b278e956b0eecadd7eb90d0 100644 (file)
   color:            #000000;
 }
 
+
+.dayoverview_cal {
+  color:            #000000;
+  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
+  font-size:        10pt;
+  letter-spacing:   0pt;
+  padding:          0px 0px 0px 0px;
+  margin:           0px 0px 0px 0px;
+}
+
+.dayoverview_cal table {
+  padding:          0px 0px 0px 0px;
+  margin:           0px 0px 0px 0px;
+}
+
+.dayoverview_cal td {
+  padding:          0px 0px 0px 0px;
+  margin:           0px 0px 0px 0px;
+}
+
+.dayoverview_cal a {
+  color:            #000000;
+  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
+  font-size:        10pt;
+  letter-spacing:   0pt;
+  padding:          0px;
+  text-decoration:  none;
+}
+.dayoverview_cal a:hover {
+  text-decoration:  underline;
+}
+
+.dayoverview_cal_title {
+  background-color: #d2d2cc;
+  text-align:       center;
+  font-size:        10pt;
+  font-weight:      bold;
+  letter-spacing:   0pt;
+}
+
+.dayoverview_cal_day_header {
+  background-color: #d2d2cc;
+  text-align:       center;
+  vertical-align:   middle;
+  font-size:        11pt;
+  width:            20px;
+  padding:          2px 2px 2px 2px;
+  margin:           2px 2px 2px 2px;
+}
+
+.dayoverview_cal_content {
+  color:            #0033cc;
+  background-color: #e8e8e0;
+  text-align:       center;
+  vertical-align:   middle;
+}
+
+.dayoverview_cal_content_hilite {
+  color:            #0033cc;
+  background-color: #fffff0;
+  text-align:       center;
+  vertical-align:   middle;
+}
+
+.dayoverview_cal_content_selected {
+  color:            #ff0000;
+}
+.dayoverview_cal_content_selected a {
+  color:            #ff0000;
+}
+.dayoverview_cal_content_selected a:hover {
+  color:            #ff0000;
+}
+
+.dayoverview_cal_content_dimmed {
+  color:            #0033cc;
+  background-color: #d2d2cc;
+  text-align:       center;
+  vertical-align:   middle;
+}
+.dayoverview_cal_content_dimmed a {
+  color:            #5a5a5a;
+}
+.dayoverview_cal_content_dimmed a:hover {
+  color:            #5a5a5a;
+}
+
+
 .weekoverview_title {
   font-size:        10pt;
   font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
index bce60ab074056f1335069d7976201c6f23e76b3f..78abaa65bc09edc436a55011e0f1c1877c96f5bb 100644 (file)
@@ -1,4 +1,20 @@
-2004-07-21  Marcus Mueller  <znek@mulle-kybernetik.com>
+2004-07-23  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * v0.9.6
+
+       * GNUmakefile: added UIxCalDayView.[hm] and UIxCalDayOverview.[m|wox]
+
+       * UIxCalDayView.[hm]: abstract superclass for all day related views.
+
+       * UIxCalDayOverview.[m|wox]: new component rendering the day overview.
+
+       * UIxCalInlineMonthOverview.[m|wox]: uses new "selectedDayExtraStyle"
+         binding and implements accompanied logic for its usage.
+
+       * product.plist: added 3 dayview methods, all currently pointing to
+         UIxCalDayOverview.
+
+2004-07-22  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * v0.9.5
 
index f0d6424122a9e2c265a36d76ad06f6b792075498..c80f60854e7791af26dcba2e9e105c6e6f4ca853 100644 (file)
@@ -19,7 +19,7 @@
 "a2_Saturday"   = "Sa";
 
 "dayLabelFormat"    = "%Y-%m-%d";
-
+"today"         = "today";
 
 /* Week */
 
@@ -67,7 +67,7 @@
 "new"           = "new";
 "printview"     = "printview";
 "proposal"      = "proposal";
-
+"Calendar"      = "Calendar";
 
 /* calendar modes */
 
index fcef9b24c8513a889d61218f982f8ecf92646322..d546a3e61d3f77b3f7c7886f2c7b519a2d52b830 100644 (file)
@@ -14,10 +14,12 @@ SchedulerUI_OBJC_FILES = \
        SchedulerUIProduct.m    \
        UIxAppointmentFormatter.m \
        UIxCalView.m            \
+       UIxCalDayView.m \
        UIxCalWeekView.m        \
        UIxCalMonthView.m       \
        UIxAptTableView.m       \
        \
+       UIxCalDayOverview.m             \
        UIxCalWeekOverview.m    \
        UIxCalMonthOverview.m   \
        UIxCalYearOverview.m    \
@@ -33,6 +35,7 @@ SchedulerUI_RESOURCE_FILES += \
        product.plist                   \
        \
        UIxAptTableView.wox             \
+       UIxCalDayOverview.wox           \
        UIxCalWeekOverview.wox          \
        UIxCalMonthOverview.wox         \
        UIxCalYearOverview.wox          \
diff --git a/SOGo/UI/Scheduler/UIxCalDayOverview.m b/SOGo/UI/Scheduler/UIxCalDayOverview.m
new file mode 100644 (file)
index 0000000..ed701e9
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+  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 "UIxCalDayView.h"
+
+@interface UIxCalDayOverview : UIxCalDayView
+{
+
+}
+
+@end
+
+
+@implementation UIxCalDayOverview
+
+@end
diff --git a/SOGo/UI/Scheduler/UIxCalDayOverview.wox b/SOGo/UI/Scheduler/UIxCalDayOverview.wox
new file mode 100644 (file)
index 0000000..bdd4e8c
--- /dev/null
@@ -0,0 +1,177 @@
+<?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:rsrc="OGo:url"
+               xmlns:label="OGo:label"
+               className="UIxPageFrame"
+               label:title="Calendar"
+>
+  <table id="skywintable" class="wintable" cellspacing="0" cellpadding="5" width="100%">
+    <tr>
+      <td class="wintitle">
+        <table cellpadding="0" cellspacing="0" width="100%">
+          <tr>
+            <td width="5"/>
+            <td class="wintitle">
+              <var:component className="UIxCalDateLabel"
+                             startDate="startDate"
+                             endDate="endDate"
+                             const:selection="year"
+              />
+            </td>
+            <td width="36" align="right" valign="center">
+              <var:component className="UIxWinClose"/>
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
+    <tr>
+      <td id="skywinbodycell" class="wincontent">
+        <table border="0" cellpadding="0" cellspacing="0" width="100%">
+          <tr bgcolor="#e8e8e0">
+            <td align="left" valign="middle" width="80%">TODO: controls</td><!-- 99% -->
+            <td align="right">
+              <var:component className="UIxCalBackForthNavView"
+                             methodName="ownMethodName"
+                             prevQueryParameters="prevDayQueryParameters"
+                             currentQueryParameters="todayQueryParameters"
+                             nextQueryParameters="nextDayQueryParameters"
+                             label:label="today"
+              />
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
+    <tr>
+      <td id="skywinbodycell" class="wincontent">
+        <table border="0" width="100%" cellpadding="0" cellspacing="0">
+          <tr>
+            <td colspan="2">
+              <var:component className="UIxCalSelectTab"
+                             const:selection="day"
+                             currentDate="selectedDate"
+              >
+                <table border="0" cellpadding="4" width="100%" cellspacing="2">
+                  <tr>
+                    <td width="1%" align="left" valign="middle" bgcolor="#e8e8e0">
+                      <table border='0' cellpadding='0' cellspacing='0'>
+                        <tr>
+                          <td><img rsrc:src="icon_apt_overview_inactive.gif"
+                                   label:title="Overview"
+                                   label:alt="Overview"
+                                   border="0"
+                                   valign="top"
+                              /></td>
+                          <td><a href="daychartview"
+                                 var:queryDictionary="queryParameters"
+                              ><img rsrc:src="icon_apt_chart.gif"
+                                                          label:title="Chart"
+                                                          label:alt="Chart"
+                                                          border="0"
+                                                          valign="top"
+                                                     /></a></td>
+                          <td><a href="daylistview"
+                                 var:queryDictionary="queryParameters"
+                              ><img rsrc:src="icon_apt_list.gif"
+                                                         label:title="List"
+                                                         label:alt="List"
+                                                         border="0"
+                                                         valign="top"
+                                                    /></a></td>
+                        </tr>
+                      </table>
+                    </td>
+                    <td align="right" bgcolor="#e8e8e0">
+                      <table border="0" cellpadding="0" cellspacing="1">
+                        <tr>
+                          <td class="button_auto_env" nowrap="true" valign="middle" align="center">
+                            <a class="button_auto"
+                               href="dayprintview"
+                               var:queryDictionary="queryParameters"
+                               target="SOGoPrintView"
+                            ><var:string label:value="printview"/></a>
+                          </td>
+                          <td class="button_auto_env" nowrap="true" valign="middle" align="center">
+                            <a class="button_auto"
+                               href="proposal"
+                               var:queryDictionary="queryParameters"
+                            ><var:string label:value="proposal"/></a>
+                          </td>
+                        </tr>
+                      </table>
+                    </td>
+                  </tr>
+                </table>
+                <table>
+                  <tr valign="top">
+                    <td>
+                      <table>
+                        <tr>
+                          <td>
+                             <var:component className="UIxCalInlineMonthOverview"
+                                            selectedDate="thisMonth"
+                                            const:showYear="1"
+                                            const:daySelectionHref="dayoverview"
+                                            const:showWeekColumn="0"
+                                            const:style="dayoverview_cal"
+                                            const:headerStyle="dayoverview_cal_title"
+                                            const:dayHeaderStyle="dayoverview_cal_day_header"
+                                            const:dayBodyStyle="dayoverview_cal_content"
+                                            const:todayBodyStyle="dayoverview_cal_content_hilite"
+                                            const:selectedDayExtraStyle="dayoverview_cal_content_selected"
+                                            const:inactiveDayBodyStyle="dayoverview_cal_content_dimmed"
+                             />
+                          </td>
+                        </tr>
+                        <tr>
+                          <td>
+                             <var:component className="UIxCalInlineMonthOverview"
+                                            selectedDate="nextMonth"
+                                            const:showYear="1"
+                                            const:daySelectionHref="dayoverview"
+                                            const:showWeekColumn="0"
+                                            const:style="dayoverview_cal"
+                                            const:headerStyle="dayoverview_cal_title"
+                                            const:dayHeaderStyle="dayoverview_cal_day_header"
+                                            const:dayBodyStyle="dayoverview_cal_content"
+                                            const:todayBodyStyle="dayoverview_cal_content_hilite"
+                                            const:inactiveDayBodyStyle="dayoverview_cal_content_dimmed"
+                             />
+                          </td>
+                        </tr>
+                      </table>
+                    </td>
+                    <td>
+                      TODO: Content
+                    </td>
+                  </tr>
+                </table>
+              </var:component>
+            </td>
+          </tr>
+          <tr bgcolor="#F5F5E9">
+            <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">
+              <table border="0" width="100%" cellpadding="10" cellspacing="0">
+                <tr/>
+              </table>
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
+  </table>
+</var:component>
diff --git a/SOGo/UI/Scheduler/UIxCalDayView.h b/SOGo/UI/Scheduler/UIxCalDayView.h
new file mode 100644 (file)
index 0000000..0729035
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+  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$
+
+
+#ifndef        __UIxCalDayView_H_
+#define        __UIxCalDayView_H_
+
+
+#include "UIxCalView.h"
+
+@interface UIxCalDayView : UIxCalView
+{
+
+}
+
+- (NSCalendarDate *)thisMonth;
+- (NSCalendarDate *)nextMonth;
+
+@end
+
+#endif /* __UIxCalDayView_H_ */
diff --git a/SOGo/UI/Scheduler/UIxCalDayView.m b/SOGo/UI/Scheduler/UIxCalDayView.m
new file mode 100644 (file)
index 0000000..fcd872c
--- /dev/null
@@ -0,0 +1,69 @@
+/*
+  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$
+
+
+#import "UIxCalDayView.h"
+#include <NGExtensions/NGExtensions.h>
+
+
+@implementation UIxCalDayView
+
+- (NSCalendarDate *)thisMonth {
+    return [self selectedDate];
+}
+
+- (NSCalendarDate *)nextMonth {
+    NSCalendarDate *date = [self thisMonth];
+    return [date dateByAddingYears:0 months:0 days:[date numberOfDaysInMonth]
+                             hours:0 minutes:0 seconds:0];
+}
+
+
+/* URLs */
+
+- (NSDictionary *)prevDayQueryParameters {
+    NSCalendarDate *date;
+    
+    date = [[self startDate] dateByAddingYears:0 months:0 days:-1 
+                                         hours:0 minutes:0 seconds:0];
+    return [self queryParametersBySettingSelectedDate:date];
+}
+
+- (NSDictionary *)nextDayQueryParameters {
+    NSCalendarDate *date;
+    
+    date = [[self startDate] dateByAddingYears:0 months:0 days:1 
+                                         hours:0 minutes:0 seconds:0];
+    return [self queryParametersBySettingSelectedDate:date];
+}
+
+
+/* fetching */
+
+- (NSCalendarDate *)startDate {
+    return [[self selectedDate] beginOfDay];
+}
+- (NSCalendarDate *)endDate {
+    return [[self startDate] endOfDay];
+}
+
+@end
index 6eebf48557201cf526d03c70e902996df9e8fc04..dc62d6542bfd60b596b1e1c5ce887144c1151433 100644 (file)
@@ -36,6 +36,7 @@
     NSString *dayBodyStyle;
     NSString *todayBodyStyle;
     NSString *inactiveDayBodyStyle;
+    NSString *selectedDayExtraStyle;
     NSString *daySelectionHref;
     NSString *weekSelectionHref;
     NSString *monthSelectionHref;
@@ -59,6 +60,7 @@
     [self->dayBodyStyle release];
     [self->todayBodyStyle release];
     [self->inactiveDayBodyStyle release];
+    [self->selectedDayExtraStyle release];
     [self->daySelectionHref release];
     [self->weekSelectionHref release];
     [self->monthSelectionHref release];
 - (NSString *)inactiveDayBodyStyle {
     return self->inactiveDayBodyStyle;
 }
+- (void)setSelectedDayExtraStyle:(NSString *)_style {
+    ASSIGN(self->selectedDayExtraStyle, _style);
+}
+- (NSString *)selectedDayExtraStyle {
+    return self->selectedDayExtraStyle;
+}
 - (void)setDaySelectionHref:(NSString *)_href {
     ASSIGN(self->daySelectionHref, _href);
 }
     return [self dayBodyStyle];
 }
 
+- (NSString *)extraStyle {
+    if([[self selectedDate] isDateOnSameDay:self->currentDay]) {
+        return [self selectedDayExtraStyle];
+    }
+    return nil;
+}
+
 
 /* URLs */
 
index 6aa83379488a7ca11df21425b46588ef1b9635de..aa6d005a351023c3e7711a8f808b7610eaef27c2 100644 (file)
                     </var:month-label>
                 </var:if>
                 <var:month-title class="contentStyle">
-                    <var:if condition="hasDaySelectionHref">
-                        <a var:href="daySelectionHref"
-                           var:queryDictionary="currentDayQueryParameters"
-                        ><var:string value="currentDay.dayOfMonth" /></a>
-                    </var:if>
-                    <var:if condition="hasDaySelectionHref" const:negate="YES">
-                        <var:string value="currentDay.dayOfMonth" />
-                    </var:if>
+                  <span var:class="extraStyle">
+                  <var:if condition="hasDaySelectionHref">
+                    <a var:href="daySelectionHref"
+                        var:queryDictionary="currentDayQueryParameters"
+                    ><var:string value="currentDay.dayOfMonth"/></a>
+                  </var:if>
+                  <var:if condition="hasDaySelectionHref" const:negate="YES">
+                    <var:string value="currentDay.dayOfMonth"/>
+                  </var:if>
+                  </span>
                 </var:month-title>
             </var:month-overview>
         </td>
index cccb20e474646d91320e50f217aa7186ac0ccad9..331aa8f27b60eab8cf39ab573849c9e37c8dff65 100644 (file)
-<?xml version='1.0' standalone='yes'?>
-<var:component className="UIxPageFrame" title="name"
-  xmlns="http://www.w3.org/1999/xhtml"
-  xmlns:var="http://www.skyrix.com/od/binding"
-  xmlns:const="http://www.skyrix.com/od/constant"
-  xmlns:rsrc="OGo:url"
-  xmlns:label="OGo:label"
+<?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:rsrc="OGo:url"
+               xmlns:label="OGo:label"
+               className="UIxPageFrame"
+               title="name"
 >
-
   <table id="skywintable" class="wintable" cellspacing="0" cellpadding="5" width="100%">
-  <tr>
-  <td class="wintitle">
-  <table cellpadding="0" cellspacing="0" width="100%">
-  <tr>
-  <td width="5"/>
-  <td class="wintitle"><var:component className="UIxCalDateLabel" startDate="startDate" endDate="endDate" const:selection="month" /></td>
-  <td width="36" align="right" valign="center">
-  <var:component className="UIxWinClose" />
-  </td>
-  </tr>
-  </table>
-  </td>
-  </tr>
-
-  <tr>
-  <td id="skywinbodycell" class="wincontent">
-    <table border="0" cellpadding="0" cellspacing="0" width="100%">
-        <tr bgcolor="#e8e8e0">
+    <tr>
+      <td class="wintitle">
+        <table cellpadding="0" cellspacing="0" width="100%">
+          <tr>
+            <td width="5"/>
+            <td class="wintitle">
+              <var:component className="UIxCalDateLabel"
+                             startDate="startDate"
+                             endDate="endDate"
+                             const:selection="month"
+              />
+            </td>
+            <td width="36" align="right" valign="center">
+              <var:component className="UIxWinClose"/>
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
+    <tr>
+      <td id="skywinbodycell" class="wincontent">
+        <table border="0" cellpadding="0" cellspacing="0" width="100%">
+          <tr bgcolor="#e8e8e0">
             <td align="left" valign="middle" width="80%">TODO: controls</td><!-- 99% -->
             <td align="right">
-                <var:component className="UIxCalBackForthNavView"
-                               methodName="ownMethodName"
-                               prevQueryParameters="prevMonthQueryParameters"
-                               currentQueryParameters="todayQueryParameters"
-                               nextQueryParameters="nextMonthQueryParameters"
-                               label:label="this month"
-                />
+              <var:component className="UIxCalBackForthNavView"
+                             methodName="ownMethodName"
+                             prevQueryParameters="prevMonthQueryParameters"
+                             currentQueryParameters="todayQueryParameters"
+                             nextQueryParameters="nextMonthQueryParameters"
+                             label:label="this month"
+              />
             </td>
-        </tr>
-    </table>
-  </td>
-  </tr>
-
-  <tr>
-  <td id="skywinbodycell" class="wincontent">
-  <table border="0" width="100%" cellpadding="0" cellspacing="0">
-  <tr>
-  <td colspan="2">
-  <var:component className="UIxCalSelectTab"
-                 const:selection="month"
-                 currentDate="selectedDate"
-  >
-        <table border="0" cellpadding="4" width="100%" cellspacing="2">
+          </tr>
+        </table>
+      </td>
+    </tr>
+    <tr>
+      <td id="skywinbodycell" class="wincontent">
+        <table border="0" width="100%" cellpadding="0" cellspacing="0">
           <tr>
-            <td align="right" bgcolor="#e8e8e0">
-                <table border='0' cellpadding='0' cellspacing='1'>
-                    <tr>
-                        <td class="button_auto_env" nowrap="true" valign='middle' align='center'>
-                            <a class="button_auto" href="monthprintview" var:queryDictionary="queryParameters" target="SOGoPrintView"><var:string label:value="printview" /></a>
-                        </td>
-                        <td class="button_auto_env" nowrap="true" valign='middle' align='center'>
-                            <a class="button_auto" href="proposal" var:queryDictionary="queryParameters"><var:string label:value="proposal" /></a>
-                        </td>
-                    </tr>
+            <td colspan="2">
+              <var:component className="UIxCalSelectTab"
+                             const:selection="month"
+                             currentDate="selectedDate"
+              >
+                <table border="0" cellpadding="4" width="100%" cellspacing="2">
+                  <tr>
+                    <td align="right" bgcolor="#e8e8e0">
+                      <table border="0" cellpadding="0" cellspacing="1">
+                        <tr>
+                          <td class="button_auto_env" nowrap="true" valign="middle" align="center">
+                            <a class="button_auto"
+                               href="monthprintview"
+                               var:queryDictionary="queryParameters"
+                               target="SOGoPrintView"
+                            ><var:string label:value="printview"/></a>
+                          </td>
+                          <td class="button_auto_env" nowrap="true" valign="middle" align="center">
+                            <a class="button_auto"
+                               href="proposal"
+                               var:queryDictionary="queryParameters"
+                            ><var:string label:value="proposal"/></a>
+                          </td>
+                        </tr>
+                      </table>
+                    </td>
+                  </tr>
                 </table>
+                <var:month-overview list="appointments"
+                                    item="appointment"
+                                    currentDay="currentDay"
+                                    index="dayIndex"
+                                    year="year"
+                                    month="month"
+                                    const:startDateKey="startDate"
+                                    const:endDateKey="endDate"
+                                    const:class="monthoverview"
+                                    contentStyle="contentStyle"
+                                    const:width="100%"
+                >
+                  <var:month-info>
+                    <var:if condition="hasHolidayInfo">
+                      <var:string value="holidayInfo" const:class="monthoverview_holidayinfo"/>
+                    </var:if>
+                    <var:foreach list="allDayApts" item="appointment">
+                      <a var:href="appointmentViewURL"
+                      ><var:string value="shortTextForApt"/></a>
+                    </var:foreach>
+                  </var:month-info>
+                  <var:month-label const:orientation="top" dayOfWeek="dayOfWeek" const:class="monthoverview_title">
+                    <var:string value="localizedDayOfWeekName"/>
+                  </var:month-label>
+                  <var:month-label const:orientation="left" weekOfYear="weekOfYear" class="weekStyle">
+                    <a href="weekoverview"
+                       var:queryDictionary="currentWeekQueryParameters"
+                    ><var:string value="weekOfYear"/></a>
+                  </var:month-label>
+                  <var:month-title class="contentStyle">
+                    <span class="monthoverview_day">
+                      <a href="dayoverview"
+                         var:queryDictionary="currentDayQueryParameters"
+                      ><var:string value="currentDay.dayOfMonth"/></a>
+                    </span>
+                    <br/>
+                    <span class="monthoverview_day_new">
+                      <a href="new"
+                         var:queryDictionary="currentDayQueryParameters"
+                      >[<var:string label:value="new"/>]</a>
+                    </span>
+                  </var:month-title>
+                  <var:month>
+                    <a var:href="appointmentViewURL"
+                       class="monthoverview_content_link"
+                       var:title="shortTextForApt"
+                       var:queryDictionary="currentDayQueryParameters"
+                    ><var:string value="shortTitleForApt"/></a>
+                  </var:month>
+                </var:month-overview>
+              </var:component>
+            </td>
+          </tr>
+          <tr bgcolor="#F5F5E9">
+            <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">
+              <table border="0" width="100%" cellpadding="10" cellspacing="0">
+                <tr/>
+              </table>
             </td>
           </tr>
         </table>
-
-    <var:month-overview
-      list="appointments"
-      item="appointment"
-      currentDay="currentDay"
-      index="dayIndex"
-      year="year"
-      month="month"
-      const:startDateKey = "startDate"
-      const:endDateKey   = "endDate"
-
-      const:class="monthoverview"
-      contentStyle="contentStyle"
-      const:width="100%"
-    >
-      <var:month-info>
-        <var:if condition="hasHolidayInfo">
-          <var:string value="holidayInfo" 
-                      const:class="monthoverview_holidayinfo" />
-        </var:if>
-        <var:foreach list="allDayApts" item="appointment">
-          <a var:href="appointmentViewURL"
-            ><var:string value="shortTextForApt" /></a>
-        </var:foreach>
-      </var:month-info>
-      <var:month-label const:orientation="top"
-                       dayOfWeek="dayOfWeek"
-                       const:class="monthoverview_title"
-      >
-        <var:string value="localizedDayOfWeekName" />
-      </var:month-label>
-      <var:month-label const:orientation="left"
-                       weekOfYear="weekOfYear"
-                       class="weekStyle"
-      >
-        <a href="weekoverview"
-           var:queryDictionary="currentWeekQueryParameters"
-        ><var:string value="weekOfYear" /></a>
-      </var:month-label>
-    
-      <var:month-title class="contentStyle">
-        <span class="monthoverview_day">
-          <a href="dayoverview"
-             var:queryDictionary="currentDayQueryParameters"
-            ><var:string value="currentDay.dayOfMonth" /></a>
-        </span>
-        <br />
-        <span class="monthoverview_day_new">
-          <a href="new" var:queryDictionary="currentDayQueryParameters"
-            >[<var:string label:value="new" />]</a>
-        </span>
-      </var:month-title>
-
-      <var:month>
-        <a var:href="appointmentViewURL"
-           class="monthoverview_content_link"
-           var:title="shortTextForApt"
-           var:queryDictionary="currentDayQueryParameters"
-          ><var:string value="shortTitleForApt" /></a>
-        </var:month>
-    </var:month-overview>
-  </var:component>
-  </td>
-  </tr>
-  <tr bgcolor="#F5F5E9">
-  <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">
-  <table border="0" width="100%" cellpadding="10" cellspacing="0">
-  <tr/>
+      </td>
+    </tr>
   </table>
-  </td>
-  </tr>
-  </table>
-  </td>
-  </tr>
-  </table>
-
-<!--
-    <hr />
-    SOGo Server - <var:string value="name"/>
-    <br />
-    Client: <var:string value="clientObject"/>
-    <br />
-    Appointments: #<var:string value="appointments.count"/>
-    from <var:string value="startDate" />
-    to   <var:string value="endDate" />
-    <br />
+  <!--
+  <hr />
+  SOGo Server - <var:string value="name"/>
+  <br />
+  Client: <var:string value="clientObject"/>
+  <br />
+  Appointments: #<var:string value="appointments.count"/>
+  from <var:string value="startDate" />
+  to   <var:string value="endDate" />
+  <br />
 
 
-    <hr />
+  <hr />
 
-    Appointments: 
-    <var:component className="UIxAptTableView" appointments="appointments"/>
-    -->
-    <!-- pre><var:string value="appointments" const:insertBR="YES"/></pre -->
+  Appointments: 
+  <var:component className="UIxAptTableView" appointments="appointments"/>
+  -->
+<!-- pre><var:string value="appointments" const:insertBR="YES"/></pre -->
 </var:component>
index fa3a216463626f940a5bf2f2782b5c3db4b578af..09f93086135950e909be321f7ce8f365ff1cac01 100644 (file)
@@ -6,11 +6,11 @@
 @implementation UIxCalMonthView
 
 - (NSCalendarDate *)startDate {
-  return [[super startDate] firstDayOfMonth];
+  return [[[super startDate] firstDayOfMonth] beginOfDay];
 }
 
 - (NSCalendarDate *)endDate {
-  NSCalendarDate *startDate = [self startDate];
+  NSCalendarDate *startDate = [[self startDate] endOfDay];
   return [startDate dateByAddingYears:0
                     months:0
                     days:[startDate numberOfDaysInMonth]
index 8628b480568fbf34e82efff550a77c3f49a3f5cc..0f7a2a85c3520ad788abb3047f62fccbeb333639 100644 (file)
   <table border="0" width="100%" cellpadding="0" cellspacing="0">
   <tr>
   <td colspan="2">
-    <var:component className="UIxCalSelectTab" const:selection="week" 
-                   currentDate="selectedDate">
+    <var:component className="UIxCalSelectTab"
+                   const:selection="week"
+                   currentDate="selectedDate"
+    >
         <table border="0" cellpadding="4" width="100%" cellspacing="2">
           <tr>
             <td width="1%" align="left" valign="middle" bgcolor="#e8e8e0">
                 <tr>
                   <td class="button_auto_env" nowrap="true" valign='middle' 
                       align='center'>
-                    <a class="button_auto" href="weekprintview" 
-                       var:queryDictionary="queryParameters" 
-                       target="SOGoPrintView"><var:string label:value="printview" /></a>
+                    <a class="button_auto"
+                       href="weekprintview"
+                       var:queryDictionary="queryParameters"
+                       target="SOGoPrintView"
+                    ><var:string label:value="printview" /></a>
                   </td>
                   <td class="button_auto_env" nowrap="true" valign='middle' 
                       align='center'>
-                    <a class="button_auto" href="proposal" 
-                       var:queryDictionary="queryParameters"><var:string label:value="proposal" /></a>
+                    <a class="button_auto"
+                       href="proposal"
+                       var:queryDictionary="queryParameters"
+                    ><var:string label:value="proposal" /></a>
                   </td>
                 </tr>
               </table>
index 5df1d2d9781341822d30f07b5910090cbcdfe04d..5696cfa1befc6d16ab35e986e51765e9ab594f32 100644 (file)
@@ -6,12 +6,12 @@
 @implementation UIxCalWeekView
 
 - (NSCalendarDate *)startDate {
-  return [[super startDate] mondayOfWeek];
+  return [[[super startDate] mondayOfWeek] beginOfDay];
 }
 
 - (NSCalendarDate *)endDate {
-  return [[self startDate] dateByAddingYears:0 months:0 days:7
-                          hours:0 minutes:0 seconds:0];
+  return [[[self startDate] dateByAddingYears:0 months:0 days:7
+                          hours:0 minutes:0 seconds:0] endOfDay];
 }
 
 /* URLs */
index 3e24d92f702e1b12a2a5919ae5ce1765eeea7876..2ee96ece3a5b57afe4d8a14fac24f538dbc4c7d8 100644 (file)
-<?xml version='1.0' standalone='yes'?>
-<var:component className="UIxPageFrame"
-               title="name"
-               xmlns="http://www.w3.org/1999/xhtml"
+<?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:rsrc="OGo:url"
                xmlns:label="OGo:label"
+               className="UIxPageFrame"
+               title="name"
 >
-
   <table id="skywintable" class="wintable" cellspacing="0" cellpadding="5" width="100%">
-  <tr>
-  <td class="wintitle">
-  <table cellpadding="0" cellspacing="0" width="100%">
-  <tr>
-  <td width="5"/>
-  <td class="wintitle"><var:component className="UIxCalDateLabel"
-                                      startDate="startDate"
-                                      endDate="endDate"
-                                      const:selection="year"
-                       /></td>
-  <td width="36" align="right" valign="center">
-  <var:component className="UIxWinClose" />
-  </td>
-  </tr>
-  </table>
-  </td>
-  </tr>
-
-  <tr>
-  <td id="skywinbodycell" class="wincontent">
-    <table border="0" cellpadding="0" cellspacing="0" width="100%">
-        <tr bgcolor="#e8e8e0">
+    <tr>
+      <td class="wintitle">
+        <table cellpadding="0" cellspacing="0" width="100%">
+          <tr>
+            <td width="5"/>
+            <td class="wintitle">
+              <var:component className="UIxCalDateLabel"
+                             startDate="startDate"
+                             endDate="endDate"
+                             const:selection="year"
+              />
+            </td>
+            <td width="36" align="right" valign="center">
+              <var:component className="UIxWinClose"/>
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
+    <tr>
+      <td id="skywinbodycell" class="wincontent">
+        <table border="0" cellpadding="0" cellspacing="0" width="100%">
+          <tr bgcolor="#e8e8e0">
             <td align="left" valign="middle" width="80%">TODO: controls</td><!-- 99% -->
             <td align="right">
-                <var:component className="UIxCalBackForthNavView"
-                               methodName="ownMethodName"
-                               prevQueryParameters="prevYearQueryParameters"
-                               currentQueryParameters="todayQueryParameters"
-                               nextQueryParameters="nextYearQueryParameters"
-                               label:label="this year"
-                />
+              <var:component className="UIxCalBackForthNavView"
+                             methodName="ownMethodName"
+                             prevQueryParameters="prevYearQueryParameters"
+                             currentQueryParameters="todayQueryParameters"
+                             nextQueryParameters="nextYearQueryParameters"
+                             label:label="this year"
+              />
             </td>
-        </tr>
-    </table>
-  </td>
-  </tr>
-
-  <tr>
-  <td id="skywinbodycell" class="wincontent">
-  <table border="0" width="100%" cellpadding="0" cellspacing="0">
-  <tr>
-  <td colspan="2">
-  <var:component className="UIxCalSelectTab"
-                 const:selection="year"
-                 currentDate="selectedDate"
-  >
-    <table>
-        <var:foreach list="arrayOfDateArrays" item="row">
-            <tr valign="top">
-                <var:foreach list="row" item="month">
-                    <td>
-                        <var:component className="UIxCalInlineMonthOverview"
-                                       selectedDate="month"
-                                       const:monthSelectionHref="monthoverview"
-                                       const:showYear="NO"
-                                       const:daySelectionHref="dayoverview"
-                                       const:showWeekColumn="1"
-                                       const:weekSelectionHref="weekoverview"
-                                       const:style="yearoverview"
-                                       const:headerStyle="yearoverview_title"
-                                       const:weekStyle="yearoverview_week"
-                                       const:todayWeekStyle="yearoverview_week_hilite"
-                                       const:dayHeaderStyle="yearoverview_day_header"
-                                       const:dayBodyStyle="yearoverview_content"
-                                       const:todayBodyStyle="yearoverview_content_hilite"
-                                       const:inactiveDayBodyStyle="yearoverview_content_dimmed"
-                        />
-                    </td>
-                </var:foreach>
-            </tr>
-        </var:foreach>
-    </table>   
-  </var:component>
-  </td>
-  </tr>
-  <tr bgcolor="#F5F5E9">
-  <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">
-  <table border="0" width="100%" cellpadding="10" cellspacing="0">
-  <tr/>
-  </table>
-  </td>
-  </tr>
-  </table>
-  </td>
-  </tr>
+          </tr>
+        </table>
+      </td>
+    </tr>
+    <tr>
+      <td id="skywinbodycell" class="wincontent">
+        <table border="0" width="100%" cellpadding="0" cellspacing="0">
+          <tr>
+            <td colspan="2">
+              <var:component className="UIxCalSelectTab"
+                             const:selection="year"
+                             currentDate="selectedDate"
+              >
+                <table>
+                  <var:foreach list="arrayOfDateArrays" item="row">
+                    <tr valign="top">
+                      <var:foreach list="row" item="month">
+                        <td>
+                          <var:component className="UIxCalInlineMonthOverview"
+                                         selectedDate="month"
+                                         const:monthSelectionHref="monthoverview"
+                                         const:showYear="NO"
+                                         const:daySelectionHref="dayoverview"
+                                         const:showWeekColumn="1"
+                                         const:weekSelectionHref="weekoverview"
+                                         const:style="yearoverview"
+                                         const:headerStyle="yearoverview_title"
+                                         const:weekStyle="yearoverview_week"
+                                         const:todayWeekStyle="yearoverview_week_hilite"
+                                         const:dayHeaderStyle="yearoverview_day_header"
+                                         const:dayBodyStyle="yearoverview_content"
+                                         const:todayBodyStyle="yearoverview_content_hilite"
+                                         const:inactiveDayBodyStyle="yearoverview_content_dimmed"
+                          />
+                        </td>
+                      </var:foreach>
+                    </tr>
+                  </var:foreach>
+                </table>
+              </var:component>
+            </td>
+          </tr>
+          <tr bgcolor="#F5F5E9">
+            <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">
+              <table border="0" width="100%" cellpadding="10" cellspacing="0">
+                <tr/>
+              </table>
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
   </table>
 </var:component>
index 86b0e4dd1bb40eae92692079db28ea4a64e5a3ca..3fc5892ad6908249bb272cd5044dfceab1ecc155 100644 (file)
@@ -1,5 +1,5 @@
 # $Id$
 
-SUBMINOR_VERSION:=5
+SUBMINOR_VERSION:=6
 
 # 1.1.0 requires NGObjWeb 4.2.202
index 1e85c93bf80d8e3732772639fc9394bb3ae7393b..58a3c39939323cacae40c259e5a5918dea2bafd7 100644 (file)
   categories = {
     SOGoAppointmentFolder = {
       methods = {
+        "dayoverview" = { 
+          protectedBy = "View";
+          pageName    = "UIxCalDayOverview"; 
+        };
+        "daychartview" = { 
+          protectedBy = "View";
+          pageName    = "UIxCalDayOverview"; 
+        };
+        "daylistview" = { 
+          protectedBy = "View";
+          pageName    = "UIxCalDayOverview"; 
+        };
         "weekoverview" = { 
           protectedBy = "View";
           pageName    = "UIxCalWeekOverview";