Changeset 3168


Ignore:
Timestamp:
Sep 25, 2007, 9:11:54 PM (14 years ago)
Author:
livings124
Message:

for seeding peers overlay a check mark on progress bar

Location:
trunk
Files:
1 added
4 edited

Legend:

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

    r3156 r3168  
    132132                A2AE68330C628A35008753C9 /* Creator.nib in Resources */ = {isa = PBXBuildFile; fileRef = A2AE68310C628A35008753C9 /* Creator.nib */; };
    133133                A2AF1C390A3D0F6200F1575D /* FileOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */; };
     134                A2BC19850CA9AF5A00DD302A /* CompleteCheck.png in Resources */ = {isa = PBXBuildFile; fileRef = A2BC19840CA9AF5A00DD302A /* CompleteCheck.png */; };
    134135                A2BE9C520C1E4AF5002D16E6 /* makemeta.c in Sources */ = {isa = PBXBuildFile; fileRef = A2BE9C4E0C1E4ADA002D16E6 /* makemeta.c */; };
    135136                A2BE9C530C1E4AF7002D16E6 /* makemeta.h in Headers */ = {isa = PBXBuildFile; fileRef = A2BE9C4F0C1E4ADA002D16E6 /* makemeta.h */; };
     
    479480                A2AF1C360A3D0F6200F1575D /* FileOutlineView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FileOutlineView.h; path = macosx/FileOutlineView.h; sourceTree = "<group>"; };
    480481                A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FileOutlineView.m; path = macosx/FileOutlineView.m; sourceTree = "<group>"; };
     482                A2BC19840CA9AF5A00DD302A /* CompleteCheck.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = CompleteCheck.png; path = macosx/Images/CompleteCheck.png; sourceTree = "<group>"; };
    481483                A2BE9C4E0C1E4ADA002D16E6 /* makemeta.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = makemeta.c; path = libtransmission/makemeta.c; sourceTree = "<group>"; };
    482484                A2BE9C4F0C1E4ADA002D16E6 /* makemeta.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = makemeta.h; path = libtransmission/makemeta.h; sourceTree = "<group>"; };
     
    773775                                A2D4F0820A915F6600890C32 /* RedDot.tiff */,
    774776                                A2EF7DEB0C96297400FA9811 /* PurpleDot.png */,
     777                                A2BC19840CA9AF5A00DD302A /* CompleteCheck.png */,
    775778                                A20AB97A0A5C622A004F81FA /* SmallTurtle.png */,
    776779                                A2D0E0480A54A97C003C72CF /* Bandwidth.png */,
     
    13471350                                A24872B60C9B6BB9000F5B92 /* Advanced.png in Resources */,
    13481351                                A2A6E3A00CA7E4C900F10FEF /* AboutWindow.nib in Resources */,
     1352                                A2BC19850CA9AF5A00DD302A /* CompleteCheck.png in Resources */,
    13491353                        );
    13501354                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/macosx/AboutWindowController.m

    r3157 r3168  
    7070}
    7171
    72 #warning localize OK button
    7372- (IBAction) showLicense: (id) sender
    7473{
    75         [fLicenseView setString: [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"LICENSE" ofType: nil]]];
     74    [fLicenseView setString: [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"LICENSE" ofType: nil]]];
    7675    [fLicenseCloseButton setTitle: NSLocalizedString(@"OK", "About window -> license close button")];
    7776       
  • trunk/macosx/PeerProgressIndicatorCell.h

    r3083 r3168  
    2828{
    2929    BOOL fIsHidden;
     30    NSImage * fCheckImage;
    3031}
    3132@end
  • trunk/macosx/PeerProgressIndicatorCell.m

    r3083 r3168  
    4040{
    4141    if (!fIsHidden)
     42    {
    4243        [super drawWithFrame: cellFrame inView: controlView];
     44        if ([self floatValue] >= 1.0)
     45        {
     46            if (!fCheckImage)
     47            {
     48                fCheckImage = [NSImage imageNamed: @"CompleteCheck.png"];
     49                [fCheckImage setFlipped: YES];
     50            }
     51           
     52            NSSize imageSize = [fCheckImage size];
     53            NSRect rect = NSMakeRect(cellFrame.origin.x + (cellFrame.size.width - imageSize.width) * 0.5,
     54                            cellFrame.origin.y + (cellFrame.size.height - imageSize.height) * 0.5, imageSize.width, imageSize.height);
     55            [fCheckImage drawInRect: rect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
     56        }
     57    }
    4358}
    4459
Note: See TracChangeset for help on using the changeset viewer.