MailPartViewers \
Anais \
-ifneq ($(FOUNDATION_LIB),apple)
-# experimental
-SUBPROJECTS += \
- MailerContactsUI \
- MailerSchedulerUI
-endif
-
SUBPROJECTS += \
Templates
+++ /dev/null
-2005-06-26 Helge Hess <helge.hess@opengroupware.org>
-
- * use new ContactsUI library from Contacts (v0.9.9)
-
-2005-06-24 Helge Hess <helge.hess@opengroupware.org>
-
- * UIxMailContactEditor.m: fixed an exception with Cocoa due to empty
- fields on contact creation (v0.9.8)
-
-2005-02-22 Helge Hess <helge.hess@opengroupware.org>
-
- * UIxMailContactList.m: hide frame if "noframe" query parameter is set
- (v0.9.7)
-
-2005-02-18 Helge Hess <helge.hess@opengroupware.org>
-
- * mailercontacts.js: added some function to allow inline editing of
- fields in a tableview (v0.9.6)
-
-2005-02-17 Helge Hess <helge.hess@opengroupware.org>
-
- * removed DUP Images directory, resource lookup now properly works for
- the mail sort component (v0.9.5)
-
-2005-02-16 Helge Hess <helge.hess@opengroupware.org>
-
- * added automatic search submit (v0.9.4)
-
-2005-02-15 Helge Hess <helge.hess@opengroupware.org>
-
- * UIxMailContactEditor.m: added object title (v0.9.3)
-
-2005-02-14 Helge Hess <helge.hess@opengroupware.org>
-
- * work on contact editor (v0.9.2)
-
- * UIxMailContactList.wox: use sortable mail header component from
- MailerUI (need to copy some images until the resource lookup in SOPE
- is improved to properly span multiple products)
-
- * created ChangeLog
+++ /dev/null
-# GNUstep makefile
-
-include ../common.make
-
-BUNDLE_NAME = MailerContactsUI
-
-MailerContactsUI_PRINCIPAL_CLASS = MailerContactsUIProduct
-
-MailerContactsUI_LANGUAGES = English French
-
-MailerContactsUI_OBJC_FILES += \
- MailerContactsUIProduct.m \
- \
- UIxMailContactList.m \
- UIxMailContactEditor.m \
-
-
-MailerContactsUI_RESOURCE_FILES += \
- Version \
- product.plist \
-
-MailerContactsUI_RESOURCE_FILES += \
- mailercontacts.js
-
-MailerContactsUI_LOCALIZED_RESOURCE_FILES +=
-
-# make
-
--include GNUmakefile.preamble
-include $(GNUSTEP_MAKEFILES)/bundle.make
--include GNUmakefile.postamble
-include ../../fhsbundle.make
+++ /dev/null
-# compile flags
-
-ADDITIONAL_INCLUDE_DIRS += \
- -I.. -I../.. -I../../..
-
-ADDITIONAL_LIB_DIRS += \
- -L../Contacts/$(GNUSTEP_OBJ_DIR)
-
-MailerContactsUI_BUNDLE_LIBS += -lContactsUI
+++ /dev/null
-/*
- Copyright (C) 2005 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.
-*/
-
-#import <Foundation/NSObject.h>
-
-@interface MailerContactsUIProduct : NSObject
-{
-}
-
-@end
-
-#include "common.h"
-
-@implementation MailerContactsUIProduct
-@end /* MailerContactsUIProduct */
+++ /dev/null
-/*
- Copyright (C) 2005 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.
-*/
-
-#include <UI/Contacts/UIxContactEditorBase.h>
-
-@interface UIxMailContactEditor : UIxContactEditorBase
-{
-}
-
-@end
-
-#include "common.h"
-
-@implementation UIxMailContactEditor
-
-/* title */
-
-- (NSString *)objectTitle {
- NSString *l, *f;
-
- l = [self valueForKeyPath:@"snapshot.sn"];
- f = [self valueForKeyPath:@"snapshot.givenName"];
- if ([f length] == 0) return l;
- if ([l length] == 0) return f;
- return [[l stringByAppendingString:@", "] stringByAppendingString:f];
-}
-- (NSString *)panelTitle {
- NSString *s, *t;
-
- t = [self objectTitle];
- s = [self labelForKey:@"Edit Contact"];
- if ([t isNotNull]) {
- s = [s stringByAppendingString:@": "];
- s = [s stringByAppendingString:t];
- }
- return s;
-}
-
-/* actions */
-
-- (NSString *)editActionName {
- /* this is called by the parent class new action */
- return @"tb.edit";
-}
-- (NSString *)viewxActionName {
- /* this is called by the parent class save action */
- return @"tb.edit";
-}
-
-@end /* UIxMailContactEditor */
+++ /dev/null
-/*
- Copyright (C) 2005 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.
-*/
-
-#include <UI/Contacts/UIxContactsListViewBase.h>
-
-@interface UIxMailContactList : UIxContactsListViewBase
-{
-}
-
-@end
-
-#include "common.h"
-#include <SoObjects/Contacts/SOGoContactFolder.h>
-#include <SoObjects/Contacts/SOGoContactObject.h>
-
-@implementation UIxMailContactList
-
-/* frame */
-
-- (BOOL)hideFrame {
- return [[[[self context] request] formValueForKey:@"noframe"] boolValue];
-}
-
-/* title */
-
-- (NSString *)objectTitle {
- return [[self clientObject] nameInContainer];
-}
-- (NSString *)panelTitle {
- NSString *s;
-
- s = [self labelForKey:@"View Contacts Folder"];
- s = [s stringByAppendingString:@": "];
- s = [s stringByAppendingString:[self objectTitle]];
- return s;
-}
-
-@end /* UIxMailContactList */
+++ /dev/null
-# version file
-
-SUBMINOR_VERSION:=9
-
-# v0.9.5 requires MailerUI v0.9.116
+++ /dev/null
-{
- requires = {
- bundleManagerVersion = 1;
- classes = (
- { name = NSObject; }
- );
- };
-
- provides = {
- classes = (
- );
- WOComponents = (
- { name = UIxMailContactEditor; }
- );
- };
-}
+++ /dev/null
-/*
- Copyright (C) 2005 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.
-*/
-
-#import <Foundation/Foundation.h>
-
-#if LIB_FOUNDATION_LIBRARY
-# include <Foundation/exceptions/GeneralExceptions.h>
-#elif NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY
-# include <NGExtensions/NGObjectMacros.h>
-# include <NGExtensions/NSString+Ext.h>
-#endif
-
-#include <NGExtensions/NGExtensions.h>
-#include <NGObjWeb/NGObjWeb.h>
-#include <NGObjWeb/SoObjects.h>
+++ /dev/null
-/*
- Copyright (C) 2005 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.
-*/
-/* JavaScript code for SOGo MailerUI contacts */
-
-function openContact(sender, addruid) {
- var w;
-
- w = window.open(addruid + "/tb.edit", 'SOGo_addr_' + addruid,
- 'width=540,height=340,resizable=1,scrollbars=1,toolbar=0,' +
- 'location=0,directories=0,status=0,menubar=0,copyhistory=0');
- w.focus();
- return false;
-}
-
-function cl_highlight(sender) {
- sender.className = "tableview_highlight";
-}
-function cl_lowlight(sender) {
- sender.className = "tableview";
-}
-
-/* edit field */
-
-function cl_saveFieldValue(sender, keyName) {
- var http = createHTTPClient();
-
- if (http) {
- var tableRow = sender.parentNode.parentNode;
- var recordID = tableRow.id;
- var url = window.location.href;
- var content;
-
- url = ml_stripActionInURL(url);
- url = url + recordID + "/patchOneField";
- // TODO: confuses SOPE?!: url = url + "?jsonly=1"
-
- // TODO: need to use XML!
- content = keyName + "\n" + sender.value;
-
- http.open("POST", url, false);
- http.send(content);
- if (http.status != 200) {
- // TODO: localize, improve error message
- alert("Store Failed: " + http.statusText);
- }
- else {
- return true;
- }
- }
- else {
- // TODO: we should disable the functionality now
- }
- return false;
-}
-
-var currentEditField = null;
-var currentEditDiv = null;
-var oldFieldValue = null;
-var currentKeyName = null;
-
-function cl_findEditField(sender) {
- var f;
-
- f = sender.parentNode.getElementsByTagName("input");
- return (f.length > 0) ? f[0] : null;
-}
-
-function cl_showEditField(sender, e, keyName) {
- var inputField;
-
- if (currentEditDiv != null)
- cl_findEditField(currentEditField);
-
- e.stopPropagation();
-
- currentKeyName = keyName;
- currentEditDiv = sender;
- currentEditField = cl_findEditField(sender);
- oldFieldValue = unescapeHTML(sender.innerHTML);
-
- inputField = cl_findEditField(sender);
- inputField.value = oldFieldValue;
- sender.style.display = "none";
- inputField.style.display = "inline";
-
- inputField.focus();
- inputField.select();
-
- return true;
-}
-
-function cl_finishEditField(sender) {
- // this might trigger onblur!
-
- if (sender != currentEditField && sender != null)
- return;
-
- currentEditField.style.display = "none";
- currentEditDiv.style.display = "inline";
- currentEditField = null;
- currentEditDiv = null;
- currentKeyName = null;
- oldFieldValue = null;
-}
-
-function cl_editFieldKeyPress(sender, e) {
- if (e.keyCode == 27) { /* escape, cancel editing */
- cl_finishEditField(null);
- return false;
- }
- if (e.keyCode == 13) { /* save using XMLHttpRequest */
- if (cl_saveFieldValue(sender, currentKeyName)) {
- // copy new value to div
- currentEditDiv.innerHTML = escapeHTML(sender.value);
- cl_finishEditField(null);
- }
- else {
- // alert blurs!: alert("field save failed!"); // TODO: localize
- // TODO: do we have beep or something?
- }
- return false;
- }
-
- // TODO: we could support "tab" for jumping to the next field
- return true;
-}
+++ /dev/null
-{
- requires = ( MAIN, CommonUI, Contacts, MailerUI, ContactsUI );
-
- publicResources = (
- "title_sortdown_12x12.png",
- "title_sortup_12x12.png",
- "mailercontacts.js"
- );
-
- factories = {
- };
-
- categories = {
- SOGoContactFolder = {
- slots = {
- toolbar = {
- protectedBy = "View";
- value = ( /* the toolbar groups */
- ( /* first group */
- {
- link = "#"; // no-op
- cssClass = "tbicon_getmail"; label = "Get Mail";
- },
- {
- link = "tb.new";
- // onclick = "clickedNewContact(this);return false;";
- cssClass = "tbicon_compose"; label = "New Contact";
- target = "_blank";
- },
-/* enable if we actually can do that
- { link = "tb.compose"; target = "_blank";
- cssClass = "tbicon_compose"; label = "Write"; },
-*/
- ),
- );
- };
- };
- methods = {
- "tb.view" = { /* primary entry for mailer actions */
- protectedBy = "View";
- pageName = "UIxMailContactList";
- };
- "tb.tableview" = { /* same like above without the frame */
- protectedBy = "View";
- pageName = "UIxMailContactListPart";
- };
-
- "tb.compose" = {
- protectedBy = "View";
- actionClass = "UIxMailEditorAction";
- actionName = "compose";
- };
-
- "tb.new" = {
- protectedBy = "View";
- pageName = "UIxMailContactEditor";
- actionName = "new";
- };
- };
- };
-
- SOGoContactObject = {
- slots = {
- toolbar = {
- protectedBy = "View";
- value = ( /* the toolbar groups */
- ( /* first group */
- { link = "#";
- onclick = "clickedEditorSave(this);return false;";
- cssClass = "tbicon_save"; label = "Save"; },
- { link = "#";
- onclick = "clickedEditorDelete(this);return false;";
- cssClass = "tbicon_delete"; label = "Delete"; },
- )
- );
- };
- };
- methods = {
- "tb.edit" = {
- protectedBy = "View";
- pageName = "UIxMailContactEditor";
- };
- };
- };
- };
-}
+++ /dev/null
-2005-02-15 Helge Hess <helge.hess@opengroupware.org>
-
- * created ChangeLog
+++ /dev/null
-# GNUstep makefile
-
-include ../common.make
-
-BUNDLE_NAME = MailerSchedulerUI
-
-MailerSchedulerUI_PRINCIPAL_CLASS = MailerSchedulerUIProduct
-
-MailerSchedulerUI_LANGUAGES = English French
-
-MailerSchedulerUI_OBJC_FILES += \
- MailerSchedulerUIProduct.m \
- \
- UIxMailCalWeekOverview.m \
-
-MailerSchedulerUI_RESOURCE_FILES += \
- Version \
- product.plist \
-
-# make
-
--include GNUmakefile.preamble
-include $(GNUSTEP_MAKEFILES)/bundle.make
--include GNUmakefile.postamble
-include ../../fhsbundle.make
+++ /dev/null
-/*
- Copyright (C) 2005 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.
-*/
-
-#import <Foundation/NSObject.h>
-
-@interface MailerSchedulerUIProduct : NSObject
-{
-}
-
-@end
-
-#include "common.h"
-
-@implementation MailerSchedulerUIProduct
-@end /* MailerSchedulerUIProduct */
+++ /dev/null
-/*
- Copyright (C) 2005 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.
-*/
-
-#include <UI/Scheduler/UIxCalWeekOverview.h>
-
-@interface UIxMailCalWeekOverview : UIxCalWeekOverview
-{
-}
-
-@end
-
-#include "common.h"
-
-@implementation UIxMailCalWeekOverview
-
-/* title */
-
-- (NSString *)panelTitle {
- return [self labelForKey:@"Week Overview"];
-}
-
-@end /* UIxMailCalWeekOverview */
+++ /dev/null
-# version file
-
-SUBMINOR_VERSION:=3
+++ /dev/null
-/*
- Copyright (C) 2005 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.
-*/
-
-#import <Foundation/Foundation.h>
-
-#if LIB_FOUNDATION_LIBRARY
-# include <Foundation/exceptions/GeneralExceptions.h>
-#elif NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY
-# include <NGExtensions/NGObjectMacros.h>
-# include <NGExtensions/NSString+Ext.h>
-#endif
-
-#include <NGExtensions/NGExtensions.h>
-#include <NGObjWeb/NGObjWeb.h>
-#include <NGObjWeb/SoObjects.h>
+++ /dev/null
-{
- requires = ( MAIN, CommonUI, Appointments, MailerUI, SchedulerUI );
-
- publicResources = (
- );
-
- factories = {
- };
-
- categories = {
- SOGoAppointmentFolder = {
- slots = {
- toolbar = {
- protectedBy = "View";
- value = ( /* the toolbar groups */
- ( /* first group */
- {
- link = "#"; // no-op
- cssClass = "tbicon_getmail"; label = "Get Mail";
- },
- {
- link = "new";
- // onclick = "clickedCompose(this);return false;";
- cssClass = "tbicon_compose"; label = "New Event";
- },
-/* enable if we actually can do that
- { link = "tb.compose"; target = "_blank";
- cssClass = "tbicon_compose"; label = "Write"; },
-*/
- ),
- ( /* second group */
- { // TODO: does not consider query parameters!
- // TODO: icon
- link = "proposal"; target= "proposal";
- cssClass = "tbicon_forward"; label = "Proposal";
- },
- ),
- ( /* third group */
- { // TODO: does not consider query parameters!
- // TODO: icon
- link = "weekprintview"; target= "SOGoPrintView";
- cssClass = "tbicon_print"; label = "Print";
- },
- ),
- );
- };
- };
- methods = {
- "tb.view" = { /* primary entry for mailer actions */
- protectedBy = "View";
- pageName = "UIxMailCalWeekOverview";
- };
- "tb.compose" = {
- protectedBy = "View";
- actionClass = "UIxMailEditorAction";
- actionName = "compose";
- };
- };
- };
-
- SOGoAppointmentObject = {
- slots = {
- toolbar = {
- protectedBy = "View";
- value = ( /* the toolbar groups */
- ( /* first group */
- { link = "#";
- onclick = "clickedEditorSave(this);return false;";
- cssClass = "tbicon_save"; label = "Save"; },
- { link = "#";
- onclick = "clickedEditorDelete(this);return false;";
- cssClass = "tbicon_delete"; label = "Delete"; },
- )
- );
- };
- };
- methods = {
- "tb.edit" = {
- protectedBy = "View";
- pageName = "UIxMailEventEditor";
- };
- };
- };
- };
-}