From c467af6aa275e006bdcfa49549611f43f70d5116 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 12 Oct 2006 16:44:40 +0000 Subject: [PATCH] Monotone-Parent: f1d6bbdddac1991718ebbf895c02a5b084ac7094 Monotone-Revision: 56401c752068eee483fe404dd572236401e9ae8d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-12T16:44:40 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ UI/SOGoUI/UIxComponent.h | 4 ++++ UI/SOGoUI/UIxComponent.m | 13 +++++++++++++ 3 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 55cdd0bbe..23643ecd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-12 Wolfgang Sourdeau + * UI/SOGoUI/UIxComponent.m ([UIxComponent + -jsCloseWithRefreshMethod:methodName]): new method with explicit purpose. + * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -saveAction]), UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -saveAction]), UI/MailerUI/UIxMailEditor.m ([UIxMailEditor diff --git a/UI/SOGoUI/UIxComponent.h b/UI/SOGoUI/UIxComponent.h index 87edb9836..ff5996842 100644 --- a/UI/SOGoUI/UIxComponent.h +++ b/UI/SOGoUI/UIxComponent.h @@ -60,6 +60,8 @@ - (NSString *)ownMethodName; - (NSString *)userFolderPath; +- (NSString *) applicationPath; + - (NSString *)ownPath; - (NSString *)relativePathToUserFolderSubPath:(NSString *)_sub; @@ -70,6 +72,8 @@ - (BOOL) hideFrame; +- (UIxComponent *) jsCloseWithRefreshMethod: (NSString *) methodName; + /* SoUser */ - (SoUser *)user; - (NSString *)shortUserNameForDisplay; diff --git a/UI/SOGoUI/UIxComponent.m b/UI/SOGoUI/UIxComponent.m index a78424aa4..268afeb56 100644 --- a/UI/SOGoUI/UIxComponent.m +++ b/UI/SOGoUI/UIxComponent.m @@ -32,6 +32,8 @@ #import #import +#import "../Common/UIxJSClose.h" + #import "UIxComponent.h" @interface UIxComponent (PrivateAPI) @@ -398,6 +400,17 @@ static BOOL uixDebugEnabled = NO; return ([[self queryParameterForKey: @"noframe"] boolValue]); } +- (UIxComponent *) jsCloseWithRefreshMethod: (NSString *) methodName +{ + UIxJSClose *jsClose; + + jsClose = [UIxJSClose new]; + [jsClose autorelease]; + [jsClose setRefreshMethod: methodName]; + + return jsClose; +} + /* SoUser */ - (SoUser *) user