Changeset 417


Ignore:
Timestamp:
Jun 20, 2006, 5:10:35 PM (15 years ago)
Author:
livings124
Message:

Comment out code so connections in Interface Builder don't need to be made and unused calculations aren't made.

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/English.lproj/InfoWindow.nib/classes.nib

    r376 r417  
    1717                fDataLocationField = NSTextField;
    1818                fDateStartedField = NSTextField;
    19                 fDownloadRateField = NSTextField;
    2019                fDownloadedTotalField = NSTextField;
    2120                fDownloadedValidField = NSTextField;
     
    2625                fLeechersField = NSTextField;
    2726                fNameField = NSTextField;
    28                 fPercentField = NSTextField;
    2927                fPieceSizeField = NSTextField;
    3028                fPiecesField = NSTextField;
     
    3432                fSeedersField = NSTextField;
    3533                fSizeField = NSTextField;
    36                 fStateField = NSTextField;
    3734                fTabView = NSTabView;
    3835                fTorrentLocationField = NSTextField;
    3936                fTrackerField = NSTextField;
    40                 fUploadRateField = NSTextField;
    4137                fUploadedTotalField = NSTextField;
    4238                fUploadingToField = NSTextField;
  • trunk/macosx/InfoWindowController.h

    r395 r417  
    3939                        * fTorrentLocationField, * fDataLocationField,
    4040                        * fDateStartedField,
    41 #if 0
     41/*
    4242                        * fStateField, * fPercentField,
    4343                        * fDownloadRateField, * fUploadRateField,
    44 #endif
     44*/
    4545                        * fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField,
    4646                        * fRatioField, * fSeedersField, * fLeechersField,
  • trunk/macosx/InfoWindowController.m

    r409 r417  
    109109            [fSizeField setStringValue: @""];
    110110           
    111 #if 0
     111/*
    112112            [fDownloadRateField setStringValue: @""];
    113113            [fUploadRateField setStringValue: @""];
    114 #endif
    115            
     114*/
    116115            [fDownloadedValidField setStringValue: @""];
    117116            [fDownloadedTotalField setStringValue: @""];
     
    138137        [fDateStartedField setStringValue: @""];
    139138       
    140 #if 0
     139/*
    141140        [fStateField setStringValue: @""];
    142141        [fPercentField setStringValue: @""];
    143 #endif
     142*/
    144143        [fRatioField setStringValue: @""];
    145144       
     
    250249    if (numberSelected > 0)
    251250    {
    252         float downloadRate = 0, uploadRate = 0, downloadedValid = 0;
     251        //float downloadRate = 0, uploadRate = 0;
     252        float downloadedValid = 0;
    253253        uint64_t downloadedTotal = 0, uploadedTotal = 0;
    254254        Torrent * torrent;
     
    256256        while ((torrent = [enumerator nextObject]))
    257257        {
    258             downloadRate += [torrent downloadRate];
     258            /*downloadRate += [torrent downloadRate];
    259259            uploadRate += [torrent uploadRate];
    260            
     260            */
    261261            downloadedValid += [torrent downloadedValid];
    262262            downloadedTotal += [torrent downloadedTotal];
    263263            uploadedTotal += [torrent uploadedTotal];
    264264        }
    265        
    266 #if 0
     265/*
    267266        [fDownloadRateField setStringValue: [NSString stringForSpeed: downloadRate]];
    268267        [fUploadRateField setStringValue: [NSString stringForSpeed: uploadRate]];
    269 #endif
    270        
     268*/
    271269        [fDownloadedValidField setStringValue: [NSString stringForFileSize: downloadedValid]];
    272270        [fDownloadedTotalField setStringValue: [NSString stringForFileSize: downloadedTotal]];
     
    276274        {
    277275            torrent = [fTorrents objectAtIndex: 0];
    278            
    279 #if 0
     276/*
    280277            [fStateField setStringValue: [torrent state]];
    281278            [fPercentField setStringValue: [NSString stringWithFormat:
    282279                                            @"%.2f%%", 100.0 * [torrent progress]]];
    283 #endif
    284 
     280*/
    285281            int seeders = [torrent seeders], leechers = [torrent leechers];
    286282            [fSeedersField setStringValue: seeders < 0 ?
Note: See TracChangeset for help on using the changeset viewer.