Changeset 6995
- Timestamp:
- Oct 31, 2008, 12:13:50 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Transmission.xcodeproj/project.pbxproj
r6973 r6995 306 306 D4AF3B300C41F7A600D46B6B /* list.h in Headers */ = {isa = PBXBuildFile; fileRef = D4AF3B2E0C41F7A500D46B6B /* list.h */; }; 307 307 E138A9770C04D88F00C5426C /* CTGradient.m in Sources */ = {isa = PBXBuildFile; fileRef = E138A9740C04D88F00C5426C /* CTGradient.m */; }; 308 E138A9780C04D88F00C5426C /* CTGradientAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = E138A9760C04D88F00C5426C /* CTGradientAdditions.m */; };308 E138A9780C04D88F00C5426C /* ProgressGradients.m in Sources */ = {isa = PBXBuildFile; fileRef = E138A9760C04D88F00C5426C /* ProgressGradients.m */; }; 309 309 /* End PBXBuildFile section */ 310 310 … … 776 776 E138A9730C04D88F00C5426C /* CTGradient.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CTGradient.h; sourceTree = "<group>"; }; 777 777 E138A9740C04D88F00C5426C /* CTGradient.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CTGradient.m; sourceTree = "<group>"; }; 778 E138A9750C04D88F00C5426C /* CTGradientAdditions.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CTGradientAdditions.h; sourceTree = "<group>"; };779 E138A9760C04D88F00C5426C /* CTGradientAdditions.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CTGradientAdditions.m; sourceTree = "<group>"; };778 E138A9750C04D88F00C5426C /* ProgressGradients.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ProgressGradients.h; path = ../ProgressGradients.h; sourceTree = "<group>"; }; 779 E138A9760C04D88F00C5426C /* ProgressGradients.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = ProgressGradients.m; path = ../ProgressGradients.m; sourceTree = "<group>"; }; 780 780 /* End PBXFileReference section */ 781 781 … … 1315 1315 E138A9730C04D88F00C5426C /* CTGradient.h */, 1316 1316 E138A9740C04D88F00C5426C /* CTGradient.m */, 1317 E138A9750C04D88F00C5426C /* CTGradientAdditions.h */,1318 E138A9760C04D88F00C5426C /* CTGradientAdditions.m */,1317 E138A9750C04D88F00C5426C /* ProgressGradients.h */, 1318 E138A9760C04D88F00C5426C /* ProgressGradients.m */, 1319 1319 ); 1320 1320 name = CTGradient; … … 1891 1891 A2FB057F0BFEB6800095564D /* DragOverlayView.m in Sources */, 1892 1892 E138A9770C04D88F00C5426C /* CTGradient.m in Sources */, 1893 E138A9780C04D88F00C5426C /* CTGradientAdditions.m in Sources */,1893 E138A9780C04D88F00C5426C /* ProgressGradients.m in Sources */, 1894 1894 A215760B0C0D449A0057A26A /* NSBezierPathAdditions.m in Sources */, 1895 1895 A2DF37070C220D03006523C1 /* CreatorWindowController.m in Sources */, -
trunk/macosx/Badger.m
r5975 r6995 27 27 #import "NSApplicationAdditions.h" 28 28 #import "NSStringAdditions.h" 29 #import "NSBezierPathAdditions.h"30 29 31 30 #define COMPLETED_BOTTOM_PADDING 5.0 -
trunk/macosx/FilterButton.h
r4423 r6995 27 27 @interface FilterButton : NSButton 28 28 { 29 intfCount;29 NSInteger fCount; 30 30 } 31 31 32 - (void) setCount: ( int) count;32 - (void) setCount: (NSInteger) count; 33 33 34 34 @end -
trunk/macosx/FilterButton.m
r5192 r6995 36 36 } 37 37 38 - (void) setCount: ( int) count38 - (void) setCount: (NSInteger) count 39 39 { 40 40 if (count == fCount) -
trunk/macosx/ProgressGradients.h
r6994 r6995 23 23 *****************************************************************************/ 24 24 25 #import "CTGradient.h" 25 @class CTGradient; 26 26 27 @interface CTGradient (ProgressBar)27 @interface ProgressGradients : NSObject 28 28 29 29 + (CTGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent; -
trunk/macosx/ProgressGradients.m
r6994 r6995 23 23 *****************************************************************************/ 24 24 25 #import "CTGradientAdditions.h" 25 #import "ProgressGradients.h" 26 #import "CTGradient.h" 26 27 27 @implementation CTGradient (ProgressBar)28 @implementation ProgressGradients 28 29 29 30 + (CTGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent -
trunk/macosx/TorrentCell.h
r6252 r6995 22 22 * DEALINGS IN THE SOFTWARE. 23 23 *****************************************************************************/ 24 25 @class CTGradient;26 24 27 25 @interface TorrentCell : NSActionCell -
trunk/macosx/TorrentCell.m
r6959 r6995 29 29 #import "NSStringAdditions.h" 30 30 #import "NSBezierPathAdditions.h" 31 #import "CTGradientAdditions.h" 31 #import "ProgressGradients.h" 32 #import "CTGradient.h" 32 33 33 34 #define BAR_HEIGHT 12.0f … … 589 590 noIncludeRect.size.width = rightNoIncludeWidth; 590 591 591 [[ CTGradientprogressLightGrayGradient] fillRect: noIncludeRect angle: 90];592 [[ProgressGradients progressLightGrayGradient] fillRect: noIncludeRect angle: 90]; 592 593 } 593 594 … … 606 607 notAvailableRect.size.width = notAvailableWidth; 607 608 608 [[ CTGradientprogressRedGradient] fillRect: notAvailableRect angle: 90];609 [[ProgressGradients progressRedGradient] fillRect: notAvailableRect angle: 90]; 609 610 } 610 611 } … … 616 617 includeRect.size.width = rightWidth; 617 618 618 [[ CTGradientprogressWhiteGradient] fillRect: includeRect angle: 90];619 [[ProgressGradients progressWhiteGradient] fillRect: includeRect angle: 90]; 619 620 } 620 621 } … … 629 630 { 630 631 if ([torrent isChecking]) 631 [[ CTGradientprogressYellowGradient] fillRect: completeRect angle: 90];632 [[ProgressGradients progressYellowGradient] fillRect: completeRect angle: 90]; 632 633 else if ([torrent isSeeding]) 633 634 { … … 641 642 ratioLeftRect.size.width = ratioLeftWidth; 642 643 643 [[ CTGradientprogressLightGreenGradient] fillRect: ratioLeftRect angle: 90];644 [[ProgressGradients progressLightGreenGradient] fillRect: ratioLeftRect angle: 90]; 644 645 } 645 646 … … 648 649 completeRect.size.width = leftWidth; 649 650 650 [[ CTGradientprogressGreenGradient] fillRect: completeRect angle: 90];651 [[ProgressGradients progressGreenGradient] fillRect: completeRect angle: 90]; 651 652 } 652 653 } 653 654 else 654 [[ CTGradientprogressBlueGradient] fillRect: completeRect angle: 90];655 [[ProgressGradients progressBlueGradient] fillRect: completeRect angle: 90]; 655 656 } 656 657 else … … 659 660 { 660 661 if ([torrent progressLeft] <= 0.0f) 661 [[ CTGradientprogressDarkGreenGradient] fillRect: completeRect angle: 90];662 [[ProgressGradients progressDarkGreenGradient] fillRect: completeRect angle: 90]; 662 663 else 663 [[ CTGradientprogressDarkBlueGradient] fillRect: completeRect angle: 90];664 [[ProgressGradients progressDarkBlueGradient] fillRect: completeRect angle: 90]; 664 665 } 665 666 else 666 [[ CTGradientprogressGrayGradient] fillRect: completeRect angle: 90];667 [[ProgressGradients progressGrayGradient] fillRect: completeRect angle: 90]; 667 668 } 668 669 }
Note: See TracChangeset
for help on using the changeset viewer.