Changeset 3259


Ignore:
Timestamp:
Oct 1, 2007, 4:23:00 PM (14 years ago)
Author:
livings124
Message:

add known peers field to the inspector

Location:
trunk/macosx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.h

    r3250 r3259  
    5151
    5252    IBOutlet NSTableView * fPeerTable;
    53     IBOutlet NSTextField * fSeedersField, * fLeechersField, * fConnectedPeersField,
    54                         * fDownloadingFromField, * fUploadingToField, * fCompletedFromTrackerField;
     53    IBOutlet NSTextField * fConnectedPeersField, * fDownloadingFromField, * fUploadingToField, * fKnownField,
     54                            * fSeedersField, * fLeechersField, * fCompletedFromTrackerField;
    5555    IBOutlet NSTextView * fErrorMessageView;
    5656    IBOutlet PiecesView * fPiecesView;
  • trunk/macosx/InfoWindowController.m

    r3252 r3259  
    216216        [fRatioField setStringValue: @""];
    217217       
     218        [fSwarmSpeedField setStringValue: @""];
     219        [fErrorMessageView setString: @""];
     220        [fErrorMessageView setSelectable: NO];
     221       
     222        [fConnectedPeersField setStringValue: NSLocalizedString(@"info not available", "Inspector -> Peers tab -> peers")];
     223        [fDownloadingFromField setStringValue: @""];
     224        [fUploadingToField setStringValue: @""];
     225        [fKnownField setStringValue: @""];
    218226        [fSeedersField setStringValue: @""];
    219227        [fLeechersField setStringValue: @""];
    220228        [fCompletedFromTrackerField setStringValue: @""];
    221         [fConnectedPeersField setStringValue: NSLocalizedString(@"info not available", "Inspector -> Peers tab -> peers")];
    222         [fDownloadingFromField setStringValue: @""];
    223         [fUploadingToField setStringValue: @""];
    224         [fSwarmSpeedField setStringValue: @""];
    225         [fErrorMessageView setString: @""];
    226         [fErrorMessageView setSelectable: NO];
    227229       
    228230        [fDateAddedField setStringValue: @""];
     
    469471    [fDownloadingFromField setStringValue: active ? [NSString stringWithFormat: @"%d", [torrent peersSendingToUs]] : @""];
    470472    [fUploadingToField setStringValue: active ? [NSString stringWithFormat: @"%d", [torrent peersGettingFromUs]] : @""];
     473    [fKnownField setIntValue: [torrent totalPeersKnown]];
    471474   
    472475    [fPeers release];
  • trunk/macosx/Torrent.h

    r3218 r3259  
    185185- (int) totalPeersCache;
    186186- (int) totalPeersPex;
     187- (int) totalPeersKnown;
    187188
    188189- (int) peersSendingToUs;
  • trunk/macosx/Torrent.m

    r3250 r3259  
    10941094{
    10951095    return fStat->peersFrom[TR_PEER_FROM_PEX];
     1096}
     1097
     1098- (int) totalPeersKnown
     1099{
     1100    return fStat->peersKnown;
    10961101}
    10971102
  • trunk/macosx/en.lproj/InfoWindow.nib/classes.nib

    r3213 r3259  
    4747                fHaveField = NSTextField;
    4848                fImageView = NSImageView;
     49                fKnownField = NSTextField;
    4950                fLeechersField = NSTextField;
    5051                fNameField = NSTextField;
Note: See TracChangeset for help on using the changeset viewer.