Monotone-Parent: d5f1a516bfd1d0f094ade872c5342a9001e80b86
Monotone-Revision: c12384df7b313f197dd027d6c173021b55882245 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-18T15:13:30 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
d399013ffe
commit
3d9ceb2a69
|
@ -22,6 +22,8 @@
|
||||||
#ifndef UIXPAGEFRAME_H
|
#ifndef UIXPAGEFRAME_H
|
||||||
#define UIXPAGEFRAME_H
|
#define UIXPAGEFRAME_H
|
||||||
|
|
||||||
|
#import <SOGoUI/UIxComponent.h>
|
||||||
|
|
||||||
@interface WOComponent (PopupExtension)
|
@interface WOComponent (PopupExtension)
|
||||||
|
|
||||||
- (BOOL) isPopup;
|
- (BOOL) isPopup;
|
||||||
|
|
|
@ -19,12 +19,14 @@
|
||||||
02111-1307, USA.
|
02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#import "common.h"
|
||||||
|
#import <NGObjWeb/SoComponent.h>
|
||||||
|
#import <NGObjWeb/WOComponent.h>
|
||||||
|
|
||||||
#import <SOGoUI/UIxComponent.h>
|
#import <SOGoUI/UIxComponent.h>
|
||||||
#import <SOGo/SOGoUser.h>
|
#import <SOGo/SOGoUser.h>
|
||||||
|
|
||||||
#include "common.h"
|
#import "UIxPageFrame.h"
|
||||||
#include <NGObjWeb/SoComponent.h>
|
|
||||||
#include "UIxPageFrame.h"
|
|
||||||
|
|
||||||
@implementation UIxPageFrame
|
@implementation UIxPageFrame
|
||||||
|
|
||||||
|
@ -38,7 +40,8 @@
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc {
|
- (void) dealloc
|
||||||
|
{
|
||||||
[item release];
|
[item release];
|
||||||
[title release];
|
[title release];
|
||||||
if (toolbar)
|
if (toolbar)
|
||||||
|
@ -48,27 +51,32 @@
|
||||||
|
|
||||||
/* accessors */
|
/* accessors */
|
||||||
|
|
||||||
- (void)setTitle:(NSString *)_value {
|
- (void) setTitle: (NSString *) _value
|
||||||
|
{
|
||||||
ASSIGNCOPY(title, _value);
|
ASSIGNCOPY(title, _value);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)title {
|
- (NSString *) title
|
||||||
|
{
|
||||||
if ([self isUIxDebugEnabled])
|
if ([self isUIxDebugEnabled])
|
||||||
return title;
|
return title;
|
||||||
|
|
||||||
return [self labelForKey: @"SOGo"];
|
return [self labelForKey: @"SOGo"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setItem:(id)_item {
|
- (void) setItem: (id) _item
|
||||||
|
{
|
||||||
ASSIGN(item, _item);
|
ASSIGN(item, _item);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)item {
|
- (id) item
|
||||||
|
{
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)ownerInContext {
|
- (NSString *) ownerInContext
|
||||||
return [[self clientObject] ownerInContext:[self context]];
|
{
|
||||||
|
return [[self clientObject] ownerInContext: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *) doctype
|
- (NSString *) doctype
|
||||||
|
@ -81,19 +89,20 @@
|
||||||
|
|
||||||
/* Help URL/target */
|
/* Help URL/target */
|
||||||
|
|
||||||
- (NSString *)helpURL
|
- (NSString *) helpURL
|
||||||
{
|
{
|
||||||
return [NSString stringWithFormat: @"help/%@.html", title];
|
return [NSString stringWithFormat: @"help/%@.html", title];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)helpWindowTarget
|
- (NSString *) helpWindowTarget
|
||||||
{
|
{
|
||||||
return [NSString stringWithFormat: @"Help_%@", title];
|
return [NSString stringWithFormat: @"Help_%@", title];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* notifications */
|
/* notifications */
|
||||||
|
|
||||||
- (void)sleep {
|
- (void) sleep
|
||||||
|
{
|
||||||
[item release];
|
[item release];
|
||||||
item = nil;
|
item = nil;
|
||||||
[super sleep];
|
[super sleep];
|
||||||
|
@ -107,22 +116,22 @@
|
||||||
return [self relativePathToUserFolderSubPath: @""];
|
return [self relativePathToUserFolderSubPath: @""];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)relativeCalendarPath
|
- (NSString *) relativeCalendarPath
|
||||||
{
|
{
|
||||||
return [self relativePathToUserFolderSubPath: @"Calendar/"];
|
return [self relativePathToUserFolderSubPath: @"Calendar/"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)relativeContactsPath
|
- (NSString *) relativeContactsPath
|
||||||
{
|
{
|
||||||
return [self relativePathToUserFolderSubPath: @"Contacts/"];
|
return [self relativePathToUserFolderSubPath: @"Contacts/"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)relativeMailPath
|
- (NSString *) relativeMailPath
|
||||||
{
|
{
|
||||||
return [self relativePathToUserFolderSubPath: @"Mail/"];
|
return [self relativePathToUserFolderSubPath: @"Mail/"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)logoffPath
|
- (NSString *) logoffPath
|
||||||
{
|
{
|
||||||
return [self relativePathToUserFolderSubPath: @"logoff"];
|
return [self relativePathToUserFolderSubPath: @"logoff"];
|
||||||
}
|
}
|
||||||
|
@ -192,8 +201,8 @@
|
||||||
{
|
{
|
||||||
WOComponent *page;
|
WOComponent *page;
|
||||||
NSString *pageJSFilename;
|
NSString *pageJSFilename;
|
||||||
|
|
||||||
page = [[self context] page];
|
page = [[self context] page];
|
||||||
pageJSFilename = [NSString stringWithFormat: @"%@.css",
|
pageJSFilename = [NSString stringWithFormat: @"%@.css",
|
||||||
NSStringFromClass([page class])];
|
NSStringFromClass([page class])];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue