From: helge Date: Wed, 13 Jul 2005 14:54:14 +0000 (+0000) Subject: added some vCard support X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b399e09d35d65fa82da838468e5f42dd271de07;p=scalable-opengroupware.org added some vCard support git-svn-id: http://svn.opengroupware.org/SOGo/trunk@739 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/UI/Common/UIxTabItem.m b/SOGo/UI/Common/UIxTabItem.m index 46a4cb71..70add19d 100644 --- a/SOGo/UI/Common/UIxTabItem.m +++ b/SOGo/UI/Common/UIxTabItem.m @@ -18,7 +18,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id$ #include "UIxTabView.h" #include "common.h" diff --git a/SOGo/UI/Contacts/ChangeLog b/SOGo/UI/Contacts/ChangeLog index aa320240..584c1514 100644 --- a/SOGo/UI/Contacts/ChangeLog +++ b/SOGo/UI/Contacts/ChangeLog @@ -1,3 +1,8 @@ +2005-07-13 Helge Hess + + * UIxContactEditorBase.m: added a safeguard for vCard contacts + (v0.9.24) + 2005-06-26 Helge Hess * created a library containing shared base classes (for diff --git a/SOGo/UI/Contacts/UIxContactEditorBase.m b/SOGo/UI/Contacts/UIxContactEditorBase.m index f1b3ad64..e2ec3a00 100644 --- a/SOGo/UI/Contacts/UIxContactEditorBase.m +++ b/SOGo/UI/Contacts/UIxContactEditorBase.m @@ -82,6 +82,12 @@ - (void)loadValuesFromContentString:(NSString *)_s { NSDictionary *plist; + + if ([_s hasPrefix:@"BEGIN:VCARD"]) { + // TODO: load vCard values + [self errorWithFormat:@"Editing of vCard's is not yet supported!"]; + return; + } if ((plist = [_s propertyList]) == nil) { [self errorWithFormat:@"could not parse content string!"]; diff --git a/SOGo/UI/Contacts/Version b/SOGo/UI/Contacts/Version index 09d4f5bf..097fb071 100644 --- a/SOGo/UI/Contacts/Version +++ b/SOGo/UI/Contacts/Version @@ -1,6 +1,6 @@ # GNUstep makefile -SUBMINOR_VERSION:=23 +SUBMINOR_VERSION:=24 # v0.9.18 requires NGExtensions v4.5.136 # v0.9.16 requires libSOGoUI v0.9.16 diff --git a/SOGo/UI/Templates/ChangeLog b/SOGo/UI/Templates/ChangeLog index 1b50054b..e87c1c98 100644 --- a/SOGo/UI/Templates/ChangeLog +++ b/SOGo/UI/Templates/ChangeLog @@ -1,5 +1,11 @@ 2005-07-13 Helge Hess + * ContactsUI/UIxContactEditor.wox: disable editing when being used on + a vCard contact + + * ContactsUI/UIxContactView.wox: added support for displaying vCard + attributes + * ContactsUI/UIxContactsListView.wox, UIxMailContactList.wox: changed to use c_name instead of cName (as required by new GDLContentStore) diff --git a/SOGo/UI/Templates/ContactsUI/UIxContactEditor.wox b/SOGo/UI/Templates/ContactsUI/UIxContactEditor.wox index fb20ce62..64c83fc3 100644 --- a/SOGo/UI/Templates/ContactsUI/UIxContactEditor.wox +++ b/SOGo/UI/Templates/ContactsUI/UIxContactEditor.wox @@ -46,6 +46,11 @@ + +

Editing of vCards is not yet supported!

+
+ + - + +
@@ -56,7 +61,8 @@ const:extraAttributes="cn, givenName,telephoneNumber,facsimileTelephoneNumber,mobile,postalAddress,homePostalAddress,departmentNumber,l" />
@@ -306,8 +312,10 @@
+
+ @@ -321,6 +329,7 @@ + diff --git a/SOGo/UI/Templates/ContactsUI/UIxContactView.wox b/SOGo/UI/Templates/ContactsUI/UIxContactView.wox index 1ab7b914..d00fac1e 100644 --- a/SOGo/UI/Templates/ContactsUI/UIxContactView.wox +++ b/SOGo/UI/Templates/ContactsUI/UIxContactView.wox @@ -7,10 +7,7 @@ className="UIxPageFrame" title="name" > - @@ -36,8 +33,15 @@
- + + + + + + : + + + @@ -66,6 +70,7 @@ - - - + + +
+ +
@@ -99,20 +104,24 @@
-
+
- + + + + >
@@ -215,7 +224,93 @@
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ : + + + + +
+ : + + + + +
+ : + + +
+
+
+
+
+ : + + + +
+ : + + + +
+ : + + + +
+
+
+ +