mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-10 17:31:23 +00:00
Monotone-Parent: 4f6055656f29743c9da3d3dcce84f449939717bf
Monotone-Revision: 60ad639c204e75de92c1111a09d2ecfe2cbd655b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-07-11T17:53:09 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -20,13 +20,13 @@
|
||||
*/
|
||||
|
||||
#include <SOGoUI/UIxComponent.h>
|
||||
#include "../Common/UIxPageFrame.h"
|
||||
|
||||
@interface UIxMailMainFrame : UIxComponent
|
||||
@interface UIxMailMainFrame : UIxPageFrame
|
||||
{
|
||||
NSString *title;
|
||||
NSString *rootURL;
|
||||
NSString *userRootURL;
|
||||
id item;
|
||||
struct {
|
||||
int hideFolderTree:1;
|
||||
int hideFrame:1; /* completely disables all the frame around the comp. */
|
||||
@@ -61,8 +61,6 @@ static NSString *treeRootClassName = nil;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[self->item release];
|
||||
[self->title release];
|
||||
[self->rootURL release];
|
||||
[self->userRootURL release];
|
||||
[super dealloc];
|
||||
@@ -88,23 +86,6 @@ static NSString *treeRootClassName = nil;
|
||||
return self->mmfFlags.hideFrame ? YES : NO;
|
||||
}
|
||||
|
||||
- (void)setTitle:(NSString *)_value {
|
||||
ASSIGNCOPY(self->title, _value);
|
||||
}
|
||||
- (NSString *)title {
|
||||
if ([self->title length] == 0)
|
||||
return @"OpenGroupware.org";
|
||||
|
||||
return self->title;
|
||||
}
|
||||
|
||||
- (void)setItem:(id)_item {
|
||||
ASSIGN(self->item, _item);
|
||||
}
|
||||
- (id)item {
|
||||
return self->item;
|
||||
}
|
||||
|
||||
- (NSString *)pageFormURL {
|
||||
NSString *u;
|
||||
NSRange r;
|
||||
@@ -161,13 +142,6 @@ static NSString *treeRootClassName = nil;
|
||||
return nil;
|
||||
}
|
||||
|
||||
/* notifications */
|
||||
|
||||
- (void)sleep {
|
||||
[self->item release]; self->item = nil;
|
||||
[super sleep];
|
||||
}
|
||||
|
||||
/* URL generation */
|
||||
// TODO: I think all this should be done by the clientObject?!
|
||||
// TODO: is the stuff below necessary at all in the mailer frame?
|
||||
@@ -236,24 +210,6 @@ static NSString *treeRootClassName = nil;
|
||||
@"</script>", errorText];
|
||||
}
|
||||
|
||||
/* URLs */
|
||||
|
||||
- (NSString *)relativeHomePath {
|
||||
return [self relativePathToUserFolderSubPath:@""];
|
||||
}
|
||||
|
||||
- (NSString *)relativeCalendarPath {
|
||||
return [self relativePathToUserFolderSubPath:@"Calendar/"];
|
||||
}
|
||||
|
||||
- (NSString *)relativeContactsPath {
|
||||
return [self relativePathToUserFolderSubPath:@"Contacts/"];
|
||||
}
|
||||
|
||||
- (NSString *)relativeMailPath {
|
||||
return [self relativePathToUserFolderSubPath:@"Mail/"];
|
||||
}
|
||||
|
||||
@end /* UIxMailMainFrame */
|
||||
|
||||
@implementation UIxMailPanelFrame
|
||||
|
||||
Reference in New Issue
Block a user