From 5766cf5c08c5e102316bec2b31379ca78760514e Mon Sep 17 00:00:00 2001 From: helge Date: Mon, 14 Feb 2005 16:23:41 +0000 Subject: [PATCH] added experimental mailer contacts module git-svn-id: http://svn.opengroupware.org/SOGo/trunk@559 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/GNUmakefile | 8 +- SOGo/UI/MailerContacts/GNUmakefile | 30 +++++ .../MailerContacts/MailerContactsUIProduct.m | 33 ++++++ SOGo/UI/MailerContacts/UIxMailContactList.m | 36 ++++++ SOGo/UI/MailerContacts/UIxMailContactList.wox | 112 ++++++++++++++++++ SOGo/UI/MailerContacts/Version | 3 + SOGo/UI/MailerContacts/common.h | 33 ++++++ SOGo/UI/MailerContacts/product.plist | 38 ++++++ 8 files changed, 291 insertions(+), 2 deletions(-) create mode 100644 SOGo/UI/MailerContacts/GNUmakefile create mode 100644 SOGo/UI/MailerContacts/MailerContactsUIProduct.m create mode 100644 SOGo/UI/MailerContacts/UIxMailContactList.m create mode 100644 SOGo/UI/MailerContacts/UIxMailContactList.wox create mode 100644 SOGo/UI/MailerContacts/Version create mode 100644 SOGo/UI/MailerContacts/common.h create mode 100644 SOGo/UI/MailerContacts/product.plist diff --git a/SOGo/UI/GNUmakefile b/SOGo/UI/GNUmakefile index ef666605..c5afa11e 100644 --- a/SOGo/UI/GNUmakefile +++ b/SOGo/UI/GNUmakefile @@ -1,8 +1,8 @@ -# $Id$ +# GNUstep makefile include $(GNUSTEP_MAKEFILES)/common.make -SUBPROJECTS = \ +SUBPROJECTS += \ SOGoUI \ Common \ Scheduler \ @@ -10,4 +10,8 @@ SUBPROJECTS = \ Mailer \ Anais \ +# experimental +SUBPROJECTS += \ + MailerContacts + include $(GNUSTEP_MAKEFILES)/aggregate.make diff --git a/SOGo/UI/MailerContacts/GNUmakefile b/SOGo/UI/MailerContacts/GNUmakefile new file mode 100644 index 00000000..cd41f03d --- /dev/null +++ b/SOGo/UI/MailerContacts/GNUmakefile @@ -0,0 +1,30 @@ +# GNUstep makefile + +include ../common.make + +BUNDLE_NAME = MailerContactsUI + +MailerContactsUI_PRINCIPAL_CLASS = MailerContactsUIProduct + +MailerContactsUI_LANGUAGES = English French + +MailerContactsUI_OBJC_FILES += \ + MailerContactsUIProduct.m \ + \ + UIxMailContactList.m + +MailerContactsUI_RESOURCE_FILES += \ + Version \ + product.plist \ + +MailerContactsUI_RESOURCE_FILES += \ + UIxMailContactList.wox + +MailerContactsUI_LOCALIZED_RESOURCE_FILES += + +# make + +-include GNUmakefile.preamble +include $(GNUSTEP_MAKEFILES)/bundle.make +-include GNUmakefile.postamble +include ../../fhsbundle.make diff --git a/SOGo/UI/MailerContacts/MailerContactsUIProduct.m b/SOGo/UI/MailerContacts/MailerContactsUIProduct.m new file mode 100644 index 00000000..7385e799 --- /dev/null +++ b/SOGo/UI/MailerContacts/MailerContactsUIProduct.m @@ -0,0 +1,33 @@ +/* + 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 + +@interface MailerContactsUIProduct : NSObject +{ +} + +@end + +#include "common.h" + +@implementation MailerContactsUIProduct +@end /* MailerContactsUIProduct */ diff --git a/SOGo/UI/MailerContacts/UIxMailContactList.m b/SOGo/UI/MailerContacts/UIxMailContactList.m new file mode 100644 index 00000000..b0799e86 --- /dev/null +++ b/SOGo/UI/MailerContacts/UIxMailContactList.m @@ -0,0 +1,36 @@ +/* + 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 + +@interface UIxMailContactList : UIxContactsListView +{ +} + +@end + +#include "common.h" +#include +#include + +@implementation UIxMailContactList + +@end /* UIxMailContactList */ diff --git a/SOGo/UI/MailerContacts/UIxMailContactList.wox b/SOGo/UI/MailerContacts/UIxMailContactList.wox new file mode 100644 index 00000000..898cd190 --- /dev/null +++ b/SOGo/UI/MailerContacts/UIxMailContactList.wox @@ -0,0 +1,112 @@ + + + + + + + + + + + +
+ + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
diff --git a/SOGo/UI/MailerContacts/Version b/SOGo/UI/MailerContacts/Version new file mode 100644 index 00000000..93f90d16 --- /dev/null +++ b/SOGo/UI/MailerContacts/Version @@ -0,0 +1,3 @@ +# version file + +SUBMINOR_VERSION:=1 diff --git a/SOGo/UI/MailerContacts/common.h b/SOGo/UI/MailerContacts/common.h new file mode 100644 index 00000000..801da9cc --- /dev/null +++ b/SOGo/UI/MailerContacts/common.h @@ -0,0 +1,33 @@ +/* + 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 + +#if LIB_FOUNDATION_LIBRARY +# include +#elif NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY +# include +# include +#endif + +#include +#include +#include diff --git a/SOGo/UI/MailerContacts/product.plist b/SOGo/UI/MailerContacts/product.plist new file mode 100644 index 00000000..0fc923e4 --- /dev/null +++ b/SOGo/UI/MailerContacts/product.plist @@ -0,0 +1,38 @@ +{ + requires = ( MAIN, CommonUI, Contacts, MailerUI, ContactsUI ); + + publicResources = ( + ); + + factories = { + }; + + categories = { + SOGoContactFolder = { + slots = { + toolbar = { + protectedBy = "View"; + value = ( /* the toolbar groups */ + ( /* first group */ + { + link = "getMail"; + cssClass = "tbicon_getmail"; label = "Get Mail"; + }, + { + link = "new"; + // onclick = "clickedCompose(this);return false;"; + cssClass = "tbicon_compose"; label = "New Contact"; + }, + ), + ); + }; + }; + methods = { + "tb.view" = { /* primary entry for mailer actions */ + protectedBy = "View"; + pageName = "UIxMailContactList"; + }; + }; + }; + }; +} -- 2.39.5