for seeding peers overlay a check mark on progress bar
This commit is contained in:
parent
7a15abaf7a
commit
8d4d653044
|
@ -131,6 +131,7 @@
|
|||
A2AA579D0ADFCAB400CA59F6 /* PiecesView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AA579B0ADFCAB400CA59F6 /* PiecesView.m */; };
|
||||
A2AE68330C628A35008753C9 /* Creator.nib in Resources */ = {isa = PBXBuildFile; fileRef = A2AE68310C628A35008753C9 /* Creator.nib */; };
|
||||
A2AF1C390A3D0F6200F1575D /* FileOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */; };
|
||||
A2BC19850CA9AF5A00DD302A /* CompleteCheck.png in Resources */ = {isa = PBXBuildFile; fileRef = A2BC19840CA9AF5A00DD302A /* CompleteCheck.png */; };
|
||||
A2BE9C520C1E4AF5002D16E6 /* makemeta.c in Sources */ = {isa = PBXBuildFile; fileRef = A2BE9C4E0C1E4ADA002D16E6 /* makemeta.c */; };
|
||||
A2BE9C530C1E4AF7002D16E6 /* makemeta.h in Headers */ = {isa = PBXBuildFile; fileRef = A2BE9C4F0C1E4ADA002D16E6 /* makemeta.h */; };
|
||||
A2BF07910B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = A2BF078F0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.m */; };
|
||||
|
@ -478,6 +479,7 @@
|
|||
A2AE68390C628A66008753C9 /* Greek */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Greek; path = macosx/Greek.lproj/Creator.nib; sourceTree = "<group>"; };
|
||||
A2AF1C360A3D0F6200F1575D /* FileOutlineView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FileOutlineView.h; path = macosx/FileOutlineView.h; sourceTree = "<group>"; };
|
||||
A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FileOutlineView.m; path = macosx/FileOutlineView.m; sourceTree = "<group>"; };
|
||||
A2BC19840CA9AF5A00DD302A /* CompleteCheck.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = CompleteCheck.png; path = macosx/Images/CompleteCheck.png; sourceTree = "<group>"; };
|
||||
A2BE9C4E0C1E4ADA002D16E6 /* makemeta.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = makemeta.c; path = libtransmission/makemeta.c; sourceTree = "<group>"; };
|
||||
A2BE9C4F0C1E4ADA002D16E6 /* makemeta.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = makemeta.h; path = libtransmission/makemeta.h; sourceTree = "<group>"; };
|
||||
A2BF078E0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SpeedLimitToTurtleIconTransformer.h; path = macosx/SpeedLimitToTurtleIconTransformer.h; sourceTree = "<group>"; };
|
||||
|
@ -772,6 +774,7 @@
|
|||
A2D4F0840A915F7200890C32 /* GreenDot.tiff */,
|
||||
A2D4F0820A915F6600890C32 /* RedDot.tiff */,
|
||||
A2EF7DEB0C96297400FA9811 /* PurpleDot.png */,
|
||||
A2BC19840CA9AF5A00DD302A /* CompleteCheck.png */,
|
||||
A20AB97A0A5C622A004F81FA /* SmallTurtle.png */,
|
||||
A2D0E0480A54A97C003C72CF /* Bandwidth.png */,
|
||||
A21DFF0F0A292B2B007C5F76 /* Transfers.png */,
|
||||
|
@ -1346,6 +1349,7 @@
|
|||
A2041D530C9AC523000ACFFB /* Lock.tiff in Resources */,
|
||||
A24872B60C9B6BB9000F5B92 /* Advanced.png in Resources */,
|
||||
A2A6E3A00CA7E4C900F10FEF /* AboutWindow.nib in Resources */,
|
||||
A2BC19850CA9AF5A00DD302A /* CompleteCheck.png in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
|
@ -69,10 +69,9 @@ AboutWindowController * fAboutBoxInstance = nil;
|
|||
fAboutBoxInstance = nil;
|
||||
}
|
||||
|
||||
#warning localize OK button
|
||||
- (IBAction) showLicense: (id) sender
|
||||
{
|
||||
[fLicenseView setString: [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"LICENSE" ofType: nil]]];
|
||||
[fLicenseView setString: [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"LICENSE" ofType: nil]]];
|
||||
[fLicenseCloseButton setTitle: NSLocalizedString(@"OK", "About window -> license close button")];
|
||||
|
||||
[NSApp beginSheet: fLicenseSheet modalForWindow: [self window] modalDelegate: nil didEndSelector: nil contextInfo: nil];
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 382 B |
|
@ -27,5 +27,6 @@
|
|||
@interface PeerProgressIndicatorCell : NSLevelIndicatorCell
|
||||
{
|
||||
BOOL fIsHidden;
|
||||
NSImage * fCheckImage;
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -39,7 +39,22 @@
|
|||
- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) controlView
|
||||
{
|
||||
if (!fIsHidden)
|
||||
{
|
||||
[super drawWithFrame: cellFrame inView: controlView];
|
||||
if ([self floatValue] >= 1.0)
|
||||
{
|
||||
if (!fCheckImage)
|
||||
{
|
||||
fCheckImage = [NSImage imageNamed: @"CompleteCheck.png"];
|
||||
[fCheckImage setFlipped: YES];
|
||||
}
|
||||
|
||||
NSSize imageSize = [fCheckImage size];
|
||||
NSRect rect = NSMakeRect(cellFrame.origin.x + (cellFrame.size.width - imageSize.width) * 0.5,
|
||||
cellFrame.origin.y + (cellFrame.size.height - imageSize.height) * 0.5, imageSize.width, imageSize.height);
|
||||
[fCheckImage drawInRect: rect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue