Changeset 3190


Ignore:
Timestamp:
Sep 26, 2007, 6:32:32 PM (15 years ago)
Author:
livings124
Message:

add "failed hash" field to activity tab

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r3180 r3190  
    7575                A20B6FA50C4D97840034AB1D /* PriorityNone.png in Resources */ = {isa = PBXBuildFile; fileRef = A20B6FA40C4D97840034AB1D /* PriorityNone.png */; };
    7676                A20B6FAE0C4D9B040034AB1D /* PriorityNormal.png in Resources */ = {isa = PBXBuildFile; fileRef = A20B6FAD0C4D9B040034AB1D /* PriorityNormal.png */; };
    77                 A21282A70CA6C66800EAEE0F /* StatusBarView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = A21282A50CA6C66800EAEE0F /* StatusBarView.h */; };
    7877                A21282A80CA6C66800EAEE0F /* StatusBarView.m in Sources */ = {isa = PBXBuildFile; fileRef = A21282A60CA6C66800EAEE0F /* StatusBarView.m */; };
    7978                A21567ED0A9A5034004DECD6 /* MessageWindow.nib in Resources */ = {isa = PBXBuildFile; fileRef = A21567EB0A9A5034004DECD6 /* MessageWindow.nib */; };
     
    283282                                A261F1E40A69A1B10002815A /* Growl.framework in CopyFiles */,
    284283                                A24F19210A3A796800C9C145 /* Sparkle.framework in CopyFiles */,
    285                                 A21282A70CA6C66800EAEE0F /* StatusBarView.h in CopyFiles */,
    286284                        );
    287285                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/macosx/InfoWindowController.h

    r3180 r3190  
    4545                        * fCreatorField, * fDateCreatedField,
    4646                        * fStateField, * fProgressField,
    47                         * fHaveField, * fDownloadedTotalField, * fUploadedTotalField,
     47                        * fHaveField, * fDownloadedTotalField, * fUploadedTotalField, * fFailedHashField,
    4848                        * fRatioField, * fSwarmSpeedField;
    4949    IBOutlet NSTextView * fCommentView;
  • trunk/macosx/InfoWindowController.m

    r3182 r3190  
    3636//15 spacing at the bottom of each tab
    3737#define TAB_INFO_HEIGHT 268.0
    38 #define TAB_ACTIVITY_HEIGHT 274.0
     38#define TAB_ACTIVITY_HEIGHT 290.0
    3939#define TAB_OPTIONS_HEIGHT 158.0
    4040#define TAB_RESIZABLE_MIN_HEIGHT 279.0
     
    158158            [fDownloadedTotalField setStringValue: @""];
    159159            [fUploadedTotalField setStringValue: @""];
     160            [fFailedHashField setStringValue: @""];
    160161           
    161162            //options fields
     
    375376        return;
    376377   
    377     uint64_t have = 0, haveVerified = 0, downloadedTotal = 0, uploadedTotal = 0;
     378    uint64_t have = 0, haveVerified = 0, downloadedTotal = 0, uploadedTotal = 0, failedHash = 0;
    378379    Torrent * torrent;
    379380    NSEnumerator * enumerator = [fTorrents objectEnumerator];
     
    384385        downloadedTotal += [torrent downloadedTotal];
    385386        uploadedTotal += [torrent uploadedTotal];
     387        failedHash += [torrent failedHash];
    386388    }
    387389   
     
    397399    [fDownloadedTotalField setStringValue: [NSString stringForFileSize: downloadedTotal]];
    398400    [fUploadedTotalField setStringValue: [NSString stringForFileSize: uploadedTotal]];
     401    [fFailedHashField setStringValue: [NSString stringForFileSize: failedHash]];
    399402   
    400403    if (numberSelected == 1)
  • trunk/macosx/Torrent.h

    r3180 r3190  
    191191- (uint64_t) haveVerified;
    192192- (uint64_t) haveTotal;
     193- (uint64_t) uploadedTotal;
    193194- (uint64_t) downloadedTotal;
    194 - (uint64_t) uploadedTotal;
     195- (uint64_t) failedHash;
    195196- (float) swarmSpeed;
    196197
  • trunk/macosx/Torrent.m

    r3180 r3190  
    11611161}
    11621162
     1163- (uint64_t) uploadedTotal
     1164{
     1165    return fStat->uploadedEver;
     1166}
     1167
    11631168- (uint64_t) downloadedTotal
    11641169{
     
    11661171}
    11671172
    1168 - (uint64_t) uploadedTotal
    1169 {
    1170     return fStat->uploadedEver;
     1173- (uint64_t) failedHash
     1174{
     1175    return fStat->corruptEver;
    11711176}
    11721177
  • trunk/macosx/TorrentCell.m

    r3189 r3190  
    333333            else if ([torrent isSeeding])
    334334            {
    335                 #warning integer-ize!
    336                 /*NSRect ratioRect = completeRect;
    337                 ratioRect.size.width *= [torrent progressStopRatio];*/
    338                
    339335                int ratioLeftWidth = leftWidth * (1.0 - [torrent progressStopRatio]);
    340336                leftWidth -= ratioLeftWidth;
  • trunk/macosx/en.lproj/InfoWindow.nib/classes.nib

    r3180 r3190  
    3636                fDownloadingFromField = NSTextField;
    3737                fErrorMessageView = NSTextView;
     38                fFailedHashField = NSTextField;
    3839                fFileCheckItem = NSMenuItem;
    3940                fFileOutline = FileOutlineView;
Note: See TracChangeset for help on using the changeset viewer.