From 3d9ceb2a6989e57c248c5321c3f8bcaa1fd348f0 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sun, 18 Mar 2007 15:13:30 +0000 Subject: [PATCH] Monotone-Parent: d5f1a516bfd1d0f094ade872c5342a9001e80b86 Monotone-Revision: c12384df7b313f197dd027d6c173021b55882245 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-18T15:13:30 Monotone-Branch: ca.inverse.sogo --- UI/Common/UIxPageFrame.h | 2 ++ UI/Common/UIxPageFrame.m | 47 ++++++++++++++++++++++++---------------- 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/UI/Common/UIxPageFrame.h b/UI/Common/UIxPageFrame.h index 7647b169e..94fe9816f 100644 --- a/UI/Common/UIxPageFrame.h +++ b/UI/Common/UIxPageFrame.h @@ -22,6 +22,8 @@ #ifndef UIXPAGEFRAME_H #define UIXPAGEFRAME_H +#import + @interface WOComponent (PopupExtension) - (BOOL) isPopup; diff --git a/UI/Common/UIxPageFrame.m b/UI/Common/UIxPageFrame.m index dfb04557f..e01a23f3e 100644 --- a/UI/Common/UIxPageFrame.m +++ b/UI/Common/UIxPageFrame.m @@ -19,12 +19,14 @@ 02111-1307, USA. */ +#import "common.h" +#import +#import + #import #import -#include "common.h" -#include -#include "UIxPageFrame.h" +#import "UIxPageFrame.h" @implementation UIxPageFrame @@ -38,7 +40,8 @@ return self; } -- (void)dealloc { +- (void) dealloc +{ [item release]; [title release]; if (toolbar) @@ -48,27 +51,32 @@ /* accessors */ -- (void)setTitle:(NSString *)_value { +- (void) setTitle: (NSString *) _value +{ ASSIGNCOPY(title, _value); } -- (NSString *)title { +- (NSString *) title +{ if ([self isUIxDebugEnabled]) return title; return [self labelForKey: @"SOGo"]; } -- (void)setItem:(id)_item { +- (void) setItem: (id) _item +{ ASSIGN(item, _item); } -- (id)item { +- (id) item +{ return item; } -- (NSString *)ownerInContext { - return [[self clientObject] ownerInContext:[self context]]; +- (NSString *) ownerInContext +{ + return [[self clientObject] ownerInContext: nil]; } - (NSString *) doctype @@ -81,19 +89,20 @@ /* Help URL/target */ -- (NSString *)helpURL +- (NSString *) helpURL { return [NSString stringWithFormat: @"help/%@.html", title]; } -- (NSString *)helpWindowTarget +- (NSString *) helpWindowTarget { return [NSString stringWithFormat: @"Help_%@", title]; } /* notifications */ -- (void)sleep { +- (void) sleep +{ [item release]; item = nil; [super sleep]; @@ -107,22 +116,22 @@ return [self relativePathToUserFolderSubPath: @""]; } -- (NSString *)relativeCalendarPath +- (NSString *) relativeCalendarPath { return [self relativePathToUserFolderSubPath: @"Calendar/"]; } -- (NSString *)relativeContactsPath +- (NSString *) relativeContactsPath { return [self relativePathToUserFolderSubPath: @"Contacts/"]; } -- (NSString *)relativeMailPath +- (NSString *) relativeMailPath { return [self relativePathToUserFolderSubPath: @"Mail/"]; } -- (NSString *)logoffPath +- (NSString *) logoffPath { return [self relativePathToUserFolderSubPath: @"logoff"]; } @@ -192,8 +201,8 @@ { WOComponent *page; NSString *pageJSFilename; - - page = [[self context] page]; + + page = [[self context] page]; pageJSFilename = [NSString stringWithFormat: @"%@.css", NSStringFromClass([page class])];