* added AgenorUserDefaults class (incomplete) as a wrapper for the
profile data of Agenor users
->>>>>>> .r719
2005-07-08 Helge Hess <helge.hess@opengroupware.org>
* v0.9.42
+2005-07-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * English.lproj/Localizable.strings: removed label "You are here" and
+ provided new label "User" (v0.9.40)
+
2005-07-07 Marcus Mueller <znek@mulle-kybernetik.com>
* v0.9.39
"Mail" = "Mail";
"Administration" = "Right Administration";
-"You are here" = "You are here";
+"User" = "User";
"Help" = "Help";
# Version file
-SUBMINOR_VERSION:=39
+SUBMINOR_VERSION:=40
# v0.9.28 requires NGExtensions v4.5.136
+2005-07-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * WOContext+UIx.[hm]: new category to WOContext, currently provides
+ -isUIxDebugEnabled (v0.9.29)
+
2005-07-08 Marcus Mueller <znek@mulle-kybernetik.com>
* UIxComponent.m: moved -isAccessRestricted method to
SOGoDateFormatter.h \
SOGoAptFormatter.h \
SOGoJSStringFormatter.h \
+ WOContext+UIx.h \
libSOGoUI_OBJC_FILES += \
UIxComponent.m \
SOGoDateFormatter.m \
SOGoAptFormatter.m \
SOGoJSStringFormatter.m \
+ WOContext+UIx.m \
# make
# version file
-SUBMINOR_VERSION:=28
+SUBMINOR_VERSION:=29
# v0.9.18 requires NGExtensions v4.5.136
--- /dev/null
+/*
+ Copyright (C) 2000-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.
+*/
+
+#ifndef __SOGoUI_WOContext_UIx_H_
+#define __SOGoUI_WOContext_UIx_H_
+
+#include <NGObjWeb/WOContext.h>
+
+@interface WOContext (UIx)
+
+- (BOOL)isUIxDebugEnabled;
+
+@end
+
+#endif /* __SOGoUI_WOContext_UIx_H_ */
--- /dev/null
+/*
+ Copyright (C) 2000-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 "WOContext+UIx.h"
+#include "common.h"
+
+@implementation WOContext (UIx)
+
+- (BOOL)isUIxDebugEnabled {
+ NSNumber *bv;
+
+ if ((bv = [self objectForKey:@"_isUIxDebugEnabled"]) == nil) {
+ NSUserDefaults *ud;
+ BOOL uixDebugEnabled;
+
+ ud = [NSUserDefaults standardUserDefaults];
+ uixDebugEnabled = [ud boolForKey:@"SOGoUIxDebugEnabled"];
+ bv = [NSNumber numberWithBool:uixDebugEnabled];
+ [self setObject:bv forKey:@"_isUIxDebugEnabled"];
+ }
+ return [bv boolValue];
+}
+
+@end
+2005-07-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * UIxAppNavView.wox: traversal path is only shown when debugging app,
+ instead inserted user's CN as requested
+
2005-07-13 Helge Hess <helge.hess@opengroupware.org>
* ContactsUI/UIxContactEditor.wox: disable editing when being used on
<?xml version='1.0' standalone='yes'?>
-<font xmlns="http://www.w3.org/1999/xhtml"
+<span 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:uix="OGo:uix"
xmlns:label="OGo:label"
- class="defaultfont"
>
- <b><var:string label:value="You are here"
- />:</b><var:entity const:name="nbsp" />
- <var:foreach list="navPathElements" item="element">
- <var:if condition="element" value="lastElement" const:negate="YES">
- <a var:href="element.url"><var:string value="element.name" /></a>
- /
- </var:if>
- <var:if condition="element" value="lastElement">
- <var:string value="element.name" />
- </var:if>
- </var:foreach>
-</font>
+ <span class="defaultfont"
+ ><b><var:string label:value="User" />:</b> <var:string value="context.activeUser.cn" /></span>
+ <var:if condition="context.isUIxDebugEnabled">
+ <span class="defaultfont">
+ (<b><var:string label:value="Path"
+ />:</b><var:entity const:name="nbsp" />
+ <var:foreach list="navPathElements" item="element">
+ <var:if condition="element" value="lastElement" const:negate="YES">
+ <a var:href="element.url"><var:string value="element.name" /></a>
+ /
+ </var:if>
+ <var:if condition="element" value="lastElement">
+ <var:string value="element.name" />
+ </var:if>
+ </var:foreach>)
+ </span>
+ </var:if>
+</span>