]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1022 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 13 Feb 2007 22:12:43 +0000 (22:12 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 13 Feb 2007 22:12:43 +0000 (22:12 +0000)
12 files changed:
ChangeLog
SoObjects/Appointments/product.plist
UI/MailPartViewers/French.lproj/Localizable.strings
UI/MailPartViewers/UIxMailPartICalViewer.m
UI/Scheduler/GNUmakefile
UI/Scheduler/Toolbars/SOGoAppointmentFolder.toolbar
UI/Scheduler/UIxCalDayTable.m
UI/Scheduler/UIxCalView.m
UI/Scheduler/product.plist
UI/WebServerResources/SchedulerUI.css
UI/WebServerResources/SchedulerUI.js
UI/WebServerResources/generic.js

index bab0b29e976dfdbeb42f0d65ad14650e3968388b..90bbbff2daeed5e12dd72b3211954cf64413b3da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2007-02-13  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
+
+       * UI/Scheduler/UIxCalMulticolumnDayView.[hm]: new daily view
+       module which shows each selected user's calendar in a different
+       column instead of mixing their events together.
+
+       * UI/Scheduler/UIxCalView.m ([UIxCalView -redirectForUIDsAction]):
+       replaced use of [NSString stringByTrimmingWhiteSpaces] with
+       [NSString stringByTrimmingSpaces].
+
+       * UI/MailPartViewers/UIxMailPartICalViewer.m: request the key
+       "cnWithoutQuotes" instead of "cnForDisplay", which no longer
+       exists.
+
+       * UI/Scheduler/UIxCalDayOverview.m,
+       UI/Scheduler/UIxCalDayChartview.m,
+       UI/Scheduler/UIxCalDayListview.m,
+       UI/Scheduler/UIxCalWeekOverview.m,
+       UI/Scheduler/UIxCalWeekChartview.m,
+       UI/Scheduler/UIxCalWeekListview.m,
+       UI/Scheduler/UIxCalInlineMonthOverview.m,
+       UI/Scheduler/UIxCalYearOverview.m: removed unused modules.
+
 2007-02-09  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
 
        * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
index e9856d9048f4278328782e09a634ef847dc91e73..bb2f1a8187df08a6d45a5f32eb04ce8b6f35dc51 100644 (file)
@@ -13,6 +13,7 @@
       defaultRoles = {
         "View" = ( "Owner", "Delegate", "Assistant" );
         "FreeBusyLookup" = ( "Owner", "Delegate", "Assistant", "FreeBusy" );
+        "Add Documents, Images, and Files" = ( "Owner", "Delegate" );
       };
     };
 
index c9475001de6748cfad478cbf30afd83ea1a919d8..d7cacae22c86bf42fcb0db4d54a2128e9c7b03f5 100644 (file)
@@ -1,10 +1,10 @@
-ACCEPTED     = "Accepté"
-COMPLETED    = "Terminé"
-DECLINED     = "Refusé"
-DELEGATED    = "Délégué"
-IN-PROCESS   = "En cours de traitement"
-NEEDS-ACTION = "Prise de décision nécessaire"
-TENTATIVE    = "Proposition"
+ACCEPTED     = "Accepté";
+COMPLETED    = "Terminé";
+DECLINED     = "Refusé";
+DELEGATED    = "Délégué";
+IN-PROCESS   = "En cours de traitement";
+NEEDS-ACTION = "Prise de décision nécessaire";
+TENTATIVE    = "Proposition";
 organized_by_you    = "vous êtes l'organisateur";
 you_are_an_attendee = "vous êtes invité";
 add_info_text       = "iMIP 'ADD' requests are not yet supported by SOGo.";
index a91b831135780538370afebba8b9a4bf7023068b..365d144e298f73701ff3e6bf43261bd78d466d76 100644 (file)
   NSString   *cn;
   
   if ((organizer = [[self authorativeEvent] organizer]) != nil) {
-    cn = [organizer valueForKey:@"cnForDisplay"];
+    cn = [organizer valueForKey:@"cnWithoutQuotes"];
     if ([cn isNotNull] && [cn length] > 0)
       return cn;
     
index 36018de1d91fd1ffd834a6ef548ba7a01ec516fb..e38c031429913153df3d8fe8790922f07d54fab6 100644 (file)
@@ -24,21 +24,12 @@ SchedulerUI_OBJC_FILES =            \
        UIxCalAptListView.m             \
        UIxCalTasksListView.m           \
        UIxCalDayView.m                 \
+       UIxCalMulticolumnDayView.m      \
        UIxCalWeekView.m                \
        UIxCalMonthView.m               \
        UIxCalMonthViewOld.m            \
        UIxAptTableView.m               \
                                        \
-       UIxCalDayOverview.m             \
-       UIxCalDayChartview.m            \
-       UIxCalDayListview.m             \
-       UIxCalWeekOverview.m            \
-       UIxCalWeekChartview.m           \
-       UIxCalWeekListview.m            \
-       UIxCalWeekColumnsview.m         \
-       UIxCalMonthOverview.m           \
-       UIxCalYearOverview.m            \
-       UIxCalInlineMonthOverview.m     \
        UIxComponentEditor.m            \
        UIxFreeBusyUserSelector.m       \
        UIxFreeBusyUserSelectorTable.m  \
@@ -56,6 +47,7 @@ SchedulerUI_OBJC_FILES =              \
        UIxCalInlineAptView.m           \
        UIxCalScheduleOverview.m        \
        UIxCalParticipationStatusView.m \
+       UIxCalMonthOverview.m
 
 SchedulerUI_RESOURCE_FILES += \
        Version         \
index ceca26f9658f9c3c4ecb8016ef2bb891a18dfe80..64353fe2018ac3c7ec97c2b206097fda49d6baab 100644 (file)
       label="Day View";
       onclick = "return onDayOverview();";
       image = "day-view.png"; },
+    { link  = "dayoverview";
+      label="Multicolumn Day View";
+      onclick = "return onMulticolumnDayOverview();";
+      image = "day-view-multicolumn.png"; },
     { link  = "weekoverview";
       label="Week View";
       onclick = "return onWeekOverview();";
index 9357b8e32125a71505ba06eea900bf334d51642e..409bbdcfffcacc407add6713a9de9e458dcc01a3 100644 (file)
             addObject: [NSString stringWithFormat: @"%d", currentHour]];
           currentHour++;
         }
+      [hoursToDisplay
+        addObject: [NSString stringWithFormat: @"%d", currentHour]];
     }
 
   return hoursToDisplay;
   start = [currentTableDay hour: [self dayStartHour] minute: 0];
   endHour = [self dayEndHour];
   if (endHour < 24)
-    end = [currentTableDay hour: [self dayEndHour] minute: 0];
+    end = [currentTableDay hour: [self dayEndHour] minute: 59];
   else
     end = [[currentTableDay tomorrow] hour: 0 minute: 0];
 
   return currentAppointment;
 }
 
-- (NSArray *) appointmentsClasses
+- (NSString *) appointmentsClasses
 {
   return [NSString stringWithFormat: @"appointments appointmentsFor%dDays",
                    numberOfDays];
index b56c24291e62ce7d5efd1606cbd3a94b79b3f66e..adf899190f3b8985a44eed0865d428d49099f1c3 100644 (file)
@@ -602,7 +602,7 @@ static BOOL shouldDisplayWeekend = NO;
   unsigned index;
 
   uidsString = [self queryParameterForKey: @"userUIDString"];
-  uidsString = [uidsString stringByTrimmingWhiteSpaces];
+  uidsString = [uidsString stringByTrimmingSpaces];
   [self setQueryParameter: nil forKey: @"userUIDString"];
 
   prevMethod = [self queryParameterForKey: @"previousMethod"];
index c0fdd8b3889174709a4817369162c06d48ad432b..e9f0cf4c0185b61cb0b2c304e54550157be59fa5 100644 (file)
           protectedBy = "View";
           pageName    = "UIxCalDayView"; 
         };
+        multicolumndayview = {
+          protectedBy = "View";
+          pageName    = "UIxCalMulticolumnDayView"; 
+        };
         weekview = {
           protectedBy = "View";
           pageName    = "UIxCalWeekView"; 
           protectedBy = "View";
           pageName    = "UIxFreeBusyUserSelectorTable";
         };
-
-/* TODO: delete the following components */
-        dayoverview = {
-          protectedBy = "View";
-          pageName    = "UIxCalDayOverview"; 
-        };
-        daychartview = { 
-          protectedBy = "View";
-          pageName    = "UIxCalDayChartview"; 
-        };
-        daylistview = { 
-          protectedBy = "View";
-          pageName    = "UIxCalDayListview"; 
-        };
-        weekoverview = { 
-          protectedBy = "View";
-          pageName    = "UIxCalWeekOverview"; 
-        };
-        weekchartview = { 
-          protectedBy = "View";
-          pageName    = "UIxCalWeekChartview"; 
-        };
-        weeklistview = { 
-          protectedBy = "View";
-          pageName    = "UIxCalWeekListview"; 
-        };
-        weekcolumnsview = { 
-          protectedBy = "View";
-          pageName    = "UIxCalWeekColumnsview"; 
-        };
-        monthoverview = { 
-          protectedBy = "View";
-          pageName    = "UIxCalMonthOverview"; 
-        };
-        yearoverview = { 
-          protectedBy = "View";
-          pageName    = "UIxCalYearOverview"; 
-        };
       };
     };
 
index cb615858d8f5dc62b5d3ebf69475b48fc0589e7a..edc706231ed6cb89e5509d01b7fdac6cb3993007 100644 (file)
@@ -611,10 +611,13 @@ DIV.daysView DIV.days
   left: 5em;
   right: 0px; }
 
+DIV.multicolumnDayView DIV.lastDayUser
+{ border-right: 1px solid #397d94; }
+
 DIV.daysView DIV.day
 { position: absolute;
-  left: 0px;
   border-left: 1px solid #397d94;
+  left: 0px;
   top: 0px;
   bottom: 0px; }
 
index f2d800c3c1837ad06d602b4713a963b45ff5b2ed..6aa1bfb3f8209199933ec90ebbae651ec246109b 100644 (file)
@@ -22,8 +22,12 @@ function newEvent(sender, type) {
   if (!day)
     day = currentDay;
 
+  var user = UserLogin;
+  if (currentView == "multicolumndayview" && type == "event")
+     user = sender.parentNode.parentNode.getAttribute("user");
+
   var hour = sender.getAttribute("hour");
-  var urlstr = ApplicationBaseURL + "new" + type;
+  var urlstr = UserFolderURL + "../" + user + "/Calendar/new" + type;
   var params = new Array();
   if (day)
     params.push("day=" + day);
@@ -375,6 +379,7 @@ function changeDateSelectorDisplay(day, keepCurrentDay)
     if (!keepCurrentDay)
       currentDay = day;
 
+    log (backtrace());
     var month = day.substr(0, 6);
     if (cachedDateSelectors[month]) {
 //       log ("restoring cached selector for month: " + month);
@@ -442,6 +447,11 @@ function onDayOverview()
   return _ensureView("dayview");
 }
 
+function onMulticolumnDayOverview()
+{
+  return _ensureView("multicolumndayview");
+}
+
 function onWeekOverview()
 {
   return _ensureView("weekview");
@@ -773,7 +783,11 @@ function onCalendarSelectAppointment() {
 }
 
 function onCalendarSelectDay(event) {
-  var day = this.getAttribute("day");
+  var day;
+  if (currentView == "multicolumndayview")
+     day = this.parentNode.getAttribute("day");
+  else
+     day = this.getAttribute("day");
   var needRefresh = (listFilter == 'view_selectedday'
                      && day != currentDay);
 
index 2d55e455e8df1aa52aee2c643f05f97e0c177acc..a4586b9d3269ea7d83384501ff0be4b02a95f5a5 100644 (file)
@@ -554,6 +554,29 @@ function log(message) {
     logConsole.innerHTML += message + '<br />' + "\n";
 }
 
+function backtrace() {
+   var func = backtrace.caller;
+   var str = "backtrace:<br/>";
+
+   while (func)
+   {
+      if (func.name)
+      {
+         str += "  " + func.name;
+         if (this)
+            str += " (" + this + ")";
+      }
+      else
+         str += "[anonymous]\n";
+
+      str += "<br/>";
+      func = func.caller;
+   }
+   str += "--\n";
+
+   return str;
+}
+
 function dropDownSubmenu(event) {
   var node = event.target;
   var submenu = node.getAttribute("submenu");