AD07123606C904C900A9EEF4 = {
children = (
AD07137606C926BF00A9EEF4,
+ AD07123D06C904C900A9EEF4,
AD07123706C904C900A9EEF4,
AD07123C06C904C900A9EEF4,
- AD07123D06C904C900A9EEF4,
AD07124306C904E500A9EEF4,
AD07124006C904DE00A9EEF4,
AD07124606C9050700A9EEF4,
children = (
AD07124C06C9052700A9EEF4,
AD07124B06C9052700A9EEF4,
+ AD0715CB06CA711600A9EEF4,
+ AD0715CA06CA711600A9EEF4,
);
isa = PBXGroup;
name = Components;
path = ChangeLog;
refType = 4;
sourceTree = "<group>";
+ tabWidth = 4;
+ usesTabs = 1;
+ };
+ AD0715CA06CA711600A9EEF4 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = text.xml;
+ path = AnaisUidSelector.wox;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ AD0715CB06CA711600A9EEF4 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.objc;
+ path = AnaisUidSelector.m;
+ refType = 4;
+ sourceTree = "<group>";
};
AD152B6F06AC159A002375D2 = {
fileEncoding = 4;
- (NSString *)jsFunctionName;
- (NSString *)jsFunctionHref;
-- (NSString *)getCode;
+- (NSString *)jsCode;
@end
#include "common.h"
[self jsFunctionName]];
}
-- (NSString *)getCode {
+- (NSString *)jsCode {
static NSString *codeFmt = \
@"function %@() {\n"
@" var url = '/anais/aideAnais.php?m_fonc=%@%@&m_champ=mail,uid,sn#mon_etiquette';\n"
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:const="http://www.skyrix.com/od/constant"
xmlns:rsrc="OGo:url"
+ class="button_auto_env"
>
<script language="JavaScript">
- <var:string value="getCode" const:escapeHTML="NO" />
+ <var:string value="jsCode" const:escapeHTML="NO" />
</script>
<a var:href="jsFunctionHref"
class="button_auto"
--- /dev/null
+/*
+ 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 <SOGoUI/UIxComponent.h>
+
+@interface AnaisUidSelector : UIxComponent
+{
+ NSArray *calendarUIDs;
+ NSString *uid;
+ BOOL meTooChecked;
+}
+
+- (NSString *)prettyUid;
+
+- (NSString *)jsCode;
+
+@end
+
+#include "common.h"
+
+@implementation AnaisUidSelector
+
+- (id)init {
+ self = [super init];
+ if(self) {
+ }
+ return self;
+}
+
+- (void)dealloc {
+ [self->calendarUIDs release];
+ [self->uid release];
+ [super dealloc];
+}
+
+- (void)setCalendarUIDs:(NSArray *)_calendarUIDs {
+ ASSIGN(self->calendarUIDs, _calendarUIDs);
+}
+- (NSArray *)calendarUIDs {
+ return self->calendarUIDs;
+}
+- (void)setUid:(NSString *)_uid {
+ ASSIGN(self->uid, _uid);
+}
+- (NSString *)uid {
+ return self->uid;
+}
+- (NSString *)prettyUid {
+ if([self->calendarUIDs objectAtIndex:0] == self->uid)
+ return self->uid;
+ return [NSString stringWithFormat:@", %@", self->uid];
+}
+
+- (void)setMeTooChecked:(BOOL)_meTooChecked {
+ self->meTooChecked = _meTooChecked;
+}
+- (BOOL)meTooChecked {
+ return self->meTooChecked;
+}
+
+
+/* JavaScript */
+
+- (NSString *)jsCode {
+ static NSString *script = \
+ @"function submitUidList() {\n"
+ @"}\n"
+ @"function clearUidList() {\n"
+ @" var o = document.getElementById('anaisUidList');\n"
+ @" var dst = o.parentNode;\n"
+ @" var n = document.createElement('td');\n"
+ @" n.setAttribute('id', 'anaisUidList');\n"
+ @" dst.replaceChild(n, o);\n"
+ @"}\n"
+ @"function addUid(division, cn, dn, email, uid, sn) {\n"
+ @" if(!uid)\n"
+ @" uid='helge';\n"
+ @" var td = document.getElementById('anaisUidList');\n"
+ @" if(td.hasChildNodes())\n"
+ @" uid=', '+uid;\n"
+ @" var text = document.createTextNode(uid);\n"
+ @" td.appendChild(text);\n"
+ @"}\n"
+ @"";
+ return script;
+}
+
+@end
--- /dev/null
+<?xml version='1.0' standalone='yes'?>
+
+<table 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"
+ width="100%"
+ border="0"
+ >
+ <script language="JavaScript">
+ <var:string value="jsCode" const:escapeHTML="NO" />
+ </script>
+ <tr valign="top">
+ <td align="left">
+ <table cellspacing="2" cellpadding="0">
+ <tr valign="middle">
+ <td>
+ <var:component className="AnaisSelector"
+ label:title="Search in Anais"
+ const:windowId="UidSelector"
+ const:callback="addUid"
+ const:division="CC"
+ />
+ </td>
+ <td>
+ <input type="checkbox" var:checked="meTooChecked" />
+ <var:string label:value="me too" />
+ </td>
+ <td class="button_auto_env">
+ <a href="javascript:submitUidList()"
+ class="button_auto"
+ ><var:string label:value="show" /></a>
+ </td>
+ <td class="button_auto_env">
+ <a href="javascript:clearUidList()"
+ class="button_auto"
+ ><var:string label:value="clear" /></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr valign="middle">
+ <td id="anaisUidList" align="left">
+ <var:foreach list="calendarUIDs" item="uid">
+ <var:string value="prettyUid" />
+ </var:foreach>
+ </td>
+ </tr>
+</table>
2004-08-11 Marcus Mueller <znek@mulle-kybernetik.com>
+ * AnaisUidSelector.[m|wox]: added (v0.9.1)
+
+2004-08-11 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.0
+
* AnaisSelector.[m|wox]: added several associations used for uniquing
the selector and one for preselecting a certain division (LDAP).
AnaisUI_OBJC_FILES += \
AnaisUIProduct.m \
AnaisSelector.m \
+ AnaisUidSelector.m \
AnaisUI_RESOURCE_FILES += \
Version \
product.plist \
AnaisSelector.wox \
+ AnaisUidSelector.wox \
ADDITIONAL_INCLUDE_DIRS += \
# $Id: Version 165 2004-08-05 17:55:50Z znek $
-SUBMINOR_VERSION:=0
+SUBMINOR_VERSION:=1
+2004-08-11 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * UIxPageFrame.wox, UIxAppNavView.m: added labels (v0.9.9)
+
2004-08-11 <helge@agenor.opengroupware.org>
* UIxPageFrame: minor fixes to UI (v0.9.8)
*/
// $Id$
-#include <NGObjWeb/WOComponent.h>
+#include <SOGoUI/UIxComponent.h>
-@interface UIxAppNavView : WOComponent
+@interface UIxAppNavView : UIxComponent
{
id element;
id lastElement;
name = [obj davDisplayName];
if ([name length] == 0)
name = NSStringFromClass([obj class]);
-
+ name = [self labelForKey:name];
+
if (![name hasPrefix:@"sogod"]) {
NSMutableDictionary *c;
NSString *url;
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:const="http://www.skyrix.com/od/constant"
xmlns:rsrc="OGo:url"
+ xmlns:label="OGo:label"
>
<head>
<title>
<font class="skydockfont">
<a var:href="userRootURL"
class="skydockfont"
- >Contacts</a>
+ ><var:string label:value="Contacts" /></a>
</font>
</td>
</tr>
<font class="skydockfont">
<a var:href="calendarRootURL"
class="skyDockFont"
- >Calendar</a>
+ ><var:string label:value="Calendar" /></a>
</font>
</td>
</tr>
>
<tr>
<td>
- <font class="skydockfont">Misc</font>
+ <font class="skydockfont"
+ ><var:string label:value="Misc" /></font>
</td>
</tr>
<tr>
+2004-08-11 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.18
+
+ * UIxCalWeekOverview.wox: added AnaisUidSelector
+
+ * English.lproj/default.strings: more labels
+
2004-08-11 Marcus Mueller <znek@mulle-kybernetik.com>
* v0.9.17
"this year" = "this year";
+/* Menu */
+
+"Calendar" = "Calendar";
+"Contacts" = "Contacts";
+
+
/* Misc */
"new" = "new";
"printview" = "printview";
"proposal" = "proposal";
-"Calendar" = "Calendar";
"Save" = "Save";
<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="left" valign="middle" width="80%">
+ <var:component className="AnaisUidSelector"
+ calendarUIDs="clientObject.calendarUIDs"
+ />
+ </td><!-- 99% -->
<td align="right">
<var:component className="UIxCalBackForthNavView"
methodName="ownMethodName"