Changeset 5170


Ignore:
Timestamp:
Feb 28, 2008, 9:28:48 PM (14 years ago)
Author:
livings124
Message:

add tooltips for group speeds/ratios

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r5165 r5170  
    218218    return [item isKindOfClass: [Torrent class]] ? [item name]
    219219            : [[self preparedCellAtColumn: [self columnWithIdentifier: @"Group"] row: [self rowForItem: item]] stringValue];
     220}
     221
     222- (NSString *) outlineView: (NSOutlineView *) outlineView toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect
     223                tableColumn: (NSTableColumn *) column item: (id) item mouseLocation: (NSPoint) mouseLocation
     224{
     225    NSString * ident = [column identifier];
     226    if ([ident isEqualToString: @"DL"] || [ident isEqualToString: @"DL Image"])
     227        return NSLocalizedString(@"Download speed", "Torrent table -> group row -> tooltip");
     228    else if ([ident isEqualToString: @"UL"] || [ident isEqualToString: @"UL Image"])
     229        return [fDefaults boolForKey: @"DisplayGroupRowRatio"] ? NSLocalizedString(@"Ratio", "Torrent table -> group row -> tooltip")
     230                : NSLocalizedString(@"Upload speed", "Torrent table -> group row -> tooltip");
     231    else
     232        return nil;
    220233}
    221234
Note: See TracChangeset for help on using the changeset viewer.