mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-25 16:33:22 +00:00
Monotone-Parent: 77d6f1cf85f2204c8e5f316ee513551508049ec9
Monotone-Revision: 1487f5359ed75a8c1f5df8db9a25b561e7e5978c Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-06-30T20:10:09 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -110,6 +110,18 @@
|
||||
return [dateFormatter formattedDateAndTime: messageDate];
|
||||
}
|
||||
|
||||
- (NSString *) messageSize
|
||||
{
|
||||
NSString *rc;
|
||||
int size;
|
||||
|
||||
size = [[message valueForKey: @"size"] intValue];
|
||||
|
||||
rc = [NSString stringWithFormat: @"%dK", size/1024];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
//
|
||||
// Priorities are defined like this:
|
||||
//
|
||||
@@ -651,7 +663,7 @@
|
||||
searchValue = [request formValueForKey: @"value"];
|
||||
if ([searchValue length])
|
||||
[self _setQualifierForCriteria: searchCriteria
|
||||
andValue: searchValue];
|
||||
andValue: searchValue];
|
||||
|
||||
firstMessageNumber
|
||||
= ((specificMessage)
|
||||
@@ -761,6 +773,13 @@
|
||||
[columnsMetaData setObject: [NSDictionary dictionaryWithObjects: tmpColumns
|
||||
forKeys: tmpKeys]
|
||||
forKey: @"Priority"];
|
||||
|
||||
tmpColumns
|
||||
= [NSArray arrayWithObjects: @"tbtv_headercell", @"sizeHeader",
|
||||
@"Size", nil];
|
||||
[columnsMetaData setObject: [NSDictionary dictionaryWithObjects: tmpColumns
|
||||
forKeys: tmpKeys]
|
||||
forKey: @"Size"];
|
||||
|
||||
return columnsMetaData;
|
||||
}
|
||||
@@ -777,11 +796,11 @@
|
||||
if (![defaultsOrder count])
|
||||
{
|
||||
defaultsOrder = [[NSUserDefaults standardUserDefaults]
|
||||
arrayForKey: @"SOGoMailListViewColumnsOrder"];
|
||||
arrayForKey: @"SOGoMailListViewColumnsOrder"];
|
||||
if (![defaultsOrder count])
|
||||
defaultsOrder = [NSArray arrayWithObjects: @"Invisible",
|
||||
@"Attachment", @"Subject", @"From",
|
||||
@"Unread", @"Date", @"Priority", nil];
|
||||
defaultsOrder = [NSArray arrayWithObjects: @"Invisible",
|
||||
@"Attachment", @"Subject", @"From",
|
||||
@"Unread", @"Date", @"Priority", nil];
|
||||
}
|
||||
userDefinedOrder = [NSMutableArray arrayWithArray: defaultsOrder];
|
||||
|
||||
@@ -802,6 +821,11 @@
|
||||
notFoundMarker: @""];
|
||||
}
|
||||
|
||||
- (NSString *) columnsDisplayCount
|
||||
{
|
||||
return [NSString stringWithFormat: @"%d", [[self columnsDisplayOrder] count]];
|
||||
}
|
||||
|
||||
- (NSString *) columnTitle
|
||||
{
|
||||
return [self labelForKey: [currentColumn objectForKey: @"value"]];
|
||||
|
||||
Reference in New Issue
Block a user