Changeset 1250


Ignore:
Timestamp:
Dec 18, 2006, 4:12:01 AM (15 years ago)
Author:
livings124
Message:

expanded tooltips in peer inspector window

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r1242 r1250  
    588588    else if (tableView == fPeerTable)
    589589    {
    590         if ([[column identifier] isEqualToString: @"Progress"])
    591             return [NSString stringWithFormat: @"%.1f%%", [[[fPeers objectAtIndex: row]
    592                                                 objectForKey: @"Progress"] floatValue] * 100.0];
    593         else
    594         {
    595             if ([[[fPeers objectAtIndex: row] objectForKey: @"Incoming"] boolValue])
    596                 return NSLocalizedString(@"From incoming connection", "Inspector -> Peers tab -> table row tooltip");
    597             else
    598                 return NSLocalizedString(@"From outgoing connection", "Inspector -> Peers tab -> table row tooltip");
    599         }
     590        NSDictionary * peerDic = [fPeers objectAtIndex: row];
     591        return [NSString stringWithFormat: NSLocalizedString(@"Progress: %.1f%%"
     592                    "\nPort: %@"
     593                    "\nFrom %@ connection", "Inspector -> Peers tab -> table row tooltip"),
     594                    [[peerDic objectForKey: @"Progress"] floatValue] * 100.0,
     595                    [peerDic objectForKey: @"Port"],
     596                    [[peerDic objectForKey: @"Incoming"] boolValue]
     597                        ? NSLocalizedString(@"incoming", "Inspector -> Peers tab -> table row tooltip")
     598                        : NSLocalizedString(@"outgoing", "Inspector -> Peers tab -> table row tooltip")];
    600599    }
    601600    else
  • trunk/macosx/Torrent.m

    r1242 r1250  
    852852            [NSNumber numberWithFloat: peer.progress], @"Progress",
    853853            [NSNumber numberWithBool: peer.isDownloading], @"UL To",
    854             [NSNumber numberWithBool: peer.isUploading], @"DL From", nil]];
     854            [NSNumber numberWithBool: peer.isUploading], @"DL From",
     855            [NSNumber numberWithInt: peer.port], @"Port", nil]];
    855856    }
    856857   
Note: See TracChangeset for help on using the changeset viewer.