add color and adjust size of group row

This commit is contained in:
Mitchell Livingston 2008-02-19 01:58:36 +00:00
parent 03f986dffe
commit d17cb50d25
3 changed files with 4002 additions and 3956 deletions

View File

@ -2485,6 +2485,11 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
return group != -1 ? [[GroupsWindowController groups] nameForIndex: group]
: NSLocalizedString(@"No Group", "Group table row");
}
else if ([ident isEqualToString: @"Color"])
{
int group = [[item objectForKey: @"Group"] intValue];
return [[GroupsWindowController groups] imageForIndex: group isSmall: YES];
}
else if ([ident isEqualToString: @"UL Image"])
return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
else if ([ident isEqualToString: @"DL Image"])
@ -2499,6 +2504,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
while ((torrent = [enumerator nextObject]))
rate += upload ? [torrent uploadRate] : [torrent downloadRate];
return @"999.9 KB/s";
return [NSString stringForSpeed: rate];
}
}

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@
@class TorrentCell;
#define GROUP_SEPARATOR_HEIGHT 18.0
#define GROUP_SEPARATOR_HEIGHT 20.0
@interface TorrentTableView : NSOutlineView
{