2004-09-28 Helge Hess <helge.hess@opengroupware.org>
+ * SOGoMailBaseObject.m, SOGoMailAccount.m: added -mailAccountFolder
+ method to find the active root folder along the SOPE chain (v0.9.8)
+
* SOGoMailAccount.m: be graceful if the IMAP4 login failed (v0.9.7)
2004-09-27 Helge Hess <helge.hess@opengroupware.org>
return [NSArray arrayWithObjects:@"INBOX", nil];
}
+/* hierarchy */
+
+- (SOGoMailAccount *)mailAccountFolder {
+ return self;
+}
+
/* IMAP4 */
- (BOOL)useSSL {
@class NSURL;
@class NGImap4Client;
+@class SOGoMailAccount;
@interface SOGoMailBaseObject : SOGoObject
{
- (id)initWithImap4URL:(NSURL *)_url inContainer:(id)_container;
+/* hierarchy */
+
+- (SOGoMailAccount *)mailAccountFolder;
+
/* IMAP4 */
- (NSURL *)imap4URL;
[super dealloc];
}
+/* hierarchy */
+
+- (SOGoMailAccount *)mailAccountFolder {
+ if (![[self container] respondsToSelector:_cmd]) {
+ [self logWithFormat:@"WARNING: weird container of mailfolder: %@",
+ [self container]];
+ return nil;
+ }
+
+ return [[self container] mailAccountFolder];
+}
+
/* IMAP4 */
- (NSString *)relativeImap4Name {
# $Id$
-SUBMINOR_VERSION:=7
+SUBMINOR_VERSION:=8
+2004-09-28 Helge Hess <helge.hess@opengroupware.org>
+
+ * more work on mailer UI, added tree based on WETreeView (v0.9.4)
+
2004-09-25 Helge Hess <helge.hess@opengroupware.org>
* added rsrc namespace declaration to templates (v0.9.3)
mailer.css \
MailerUI_RESOURCE_FILES += \
- screenshots/*.png
+ screenshots/*.png \
+ Images/*.gif
MailerUI_LOCALIZED_RESOURCE_FILES += \
default.strings
return self->item;
}
+/* tree */
+
+- (NSArray *)rootNodes {
+ // TODO: maybe we want to add this in WETreeView for convenience?
+ return [NSArray arrayWithObject:[[self clientObject] mailAccountFolder]];
+}
+- (NSArray *)itemChildNodes {
+ NSMutableArray *folders;
+ NSArray *names;
+ unsigned i, count;
+
+ names = [[self item] toManyRelationshipKeys];
+ count = [names count];
+ folders = [NSMutableArray arrayWithCapacity:count];
+
+ for (i = 0; i < count; i++) {
+ id folder;
+
+ folder = [[self item] lookupName:[names objectAtIndex:i]
+ inContext:[self context]
+ acquire:NO];
+ if (folder)
+ [folders addObject:folder];
+ }
+
+ return folders;
+}
+
+- (BOOL)isItemExpanded {
+ return YES;
+}
+
/* notifications */
- (void)sleep {
xmlns:rsrc="OGo:url"
xmlns:label="OGo:label"
>
+<!--
<var:foreach list="clientObject.toManyRelationshipKeys" item="item">
<li><a var:href="item"><var:string value="item"/></a></li>
</var:foreach>
+ <hr />
+-->
+ <var:treeview
+ list="rootNodes" item="item" sublist="itemChildNodes"
+ currentPath="currentPath" zoom="isItemExpanded"
+ const:iconWidth = "13"
+ const:plusIcon = "treeview_plus.gif"
+ const:minusIcon = "treeview_minus.gif"
+ const:lineIcon = "treeview_line.gif"
+ const:cornerIcon = "treeview_corner.gif"
+ const:junctionIcon = "treeview_junction.gif"
+ const:leafIcon = "treeview_leaf.gif"
+ const:leafCornerIcon = "treeview_leaf_corner.gif"
+ const:cornerPlusIcon = "treeview_corner_plus.gif"
+ const:cornerMinusIcon = "treeview_corner_minus.gif"
+ const:spaceIcon = "treeview_space.gif"
+ >
+ <var:tree-data const:isTreeElement="YES" const:treeLink="">
+ <a href="#" class="treecell"
+ ><var:string value="item.davDisplayName" /></a>
+ </var:tree-data>
+ </var:treeview>
</span>
# $Id$
-SUBMINOR_VERSION:=3
+SUBMINOR_VERSION:=4
background-color: #D4D0C8;
padding: 4px;
}
+
+.treecell {
+ font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
+ font-size: 10pt;
+}
publicResources = (
"uix.css",
"mailer.css",
+
+ "treeview_corner.gif",
+ "treeview_corner_minus.gif",
+ "treeview_corner_plus.gif",
+ "treeview_junction.gif",
+ "treeview_leaf.gif",
+ "treeview_leaf_corner.gif",
+ "treeview_line.gif",
+ "treeview_minus.gif",
+ "treeview_plus.gif",
+ "treeview_space.gif",
+
"tbird_073_accountview.png",
"tbird_073_compose.png",
"tbird_073_mailwelcome.png",