Changeset 6995


Ignore:
Timestamp:
Oct 31, 2008, 12:13:50 AM (12 years ago)
Author:
livings124
Message:

CTGradientAdditions is now ProgressGradients?

Location:
trunk
Files:
6 edited
2 moved

Legend:

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

    r6973 r6995  
    306306                D4AF3B300C41F7A600D46B6B /* list.h in Headers */ = {isa = PBXBuildFile; fileRef = D4AF3B2E0C41F7A500D46B6B /* list.h */; };
    307307                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 */; };
    309309/* End PBXBuildFile section */
    310310
     
    776776                E138A9730C04D88F00C5426C /* CTGradient.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CTGradient.h; sourceTree = "<group>"; };
    777777                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>"; };
    780780/* End PBXFileReference section */
    781781
     
    13151315                                E138A9730C04D88F00C5426C /* CTGradient.h */,
    13161316                                E138A9740C04D88F00C5426C /* CTGradient.m */,
    1317                                 E138A9750C04D88F00C5426C /* CTGradientAdditions.h */,
    1318                                 E138A9760C04D88F00C5426C /* CTGradientAdditions.m */,
     1317                                E138A9750C04D88F00C5426C /* ProgressGradients.h */,
     1318                                E138A9760C04D88F00C5426C /* ProgressGradients.m */,
    13191319                        );
    13201320                        name = CTGradient;
     
    18911891                                A2FB057F0BFEB6800095564D /* DragOverlayView.m in Sources */,
    18921892                                E138A9770C04D88F00C5426C /* CTGradient.m in Sources */,
    1893                                 E138A9780C04D88F00C5426C /* CTGradientAdditions.m in Sources */,
     1893                                E138A9780C04D88F00C5426C /* ProgressGradients.m in Sources */,
    18941894                                A215760B0C0D449A0057A26A /* NSBezierPathAdditions.m in Sources */,
    18951895                                A2DF37070C220D03006523C1 /* CreatorWindowController.m in Sources */,
  • trunk/macosx/Badger.m

    r5975 r6995  
    2727#import "NSApplicationAdditions.h"
    2828#import "NSStringAdditions.h"
    29 #import "NSBezierPathAdditions.h"
    3029
    3130#define COMPLETED_BOTTOM_PADDING 5.0
  • trunk/macosx/FilterButton.h

    r4423 r6995  
    2727@interface FilterButton : NSButton
    2828{
    29     int fCount;
     29    NSInteger fCount;
    3030}
    3131
    32 - (void) setCount: (int) count;
     32- (void) setCount: (NSInteger) count;
    3333
    3434@end
  • trunk/macosx/FilterButton.m

    r5192 r6995  
    3636}
    3737
    38 - (void) setCount: (int) count
     38- (void) setCount: (NSInteger) count
    3939{
    4040    if (count == fCount)
  • trunk/macosx/ProgressGradients.h

    r6994 r6995  
    2323 *****************************************************************************/
    2424
    25 #import "CTGradient.h"
     25@class CTGradient;
    2626
    27 @interface CTGradient (ProgressBar)
     27@interface ProgressGradients : NSObject
    2828
    2929+ (CTGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent;
  • trunk/macosx/ProgressGradients.m

    r6994 r6995  
    2323 *****************************************************************************/
    2424
    25 #import "CTGradientAdditions.h"
     25#import "ProgressGradients.h"
     26#import "CTGradient.h"
    2627
    27 @implementation CTGradient (ProgressBar)
     28@implementation ProgressGradients
    2829
    2930+ (CTGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent
  • trunk/macosx/TorrentCell.h

    r6252 r6995  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
    24 
    25 @class CTGradient;
    2624
    2725@interface TorrentCell : NSActionCell
  • trunk/macosx/TorrentCell.m

    r6959 r6995  
    2929#import "NSStringAdditions.h"
    3030#import "NSBezierPathAdditions.h"
    31 #import "CTGradientAdditions.h"
     31#import "ProgressGradients.h"
     32#import "CTGradient.h"
    3233
    3334#define BAR_HEIGHT 12.0f
     
    589590            noIncludeRect.size.width = rightNoIncludeWidth;
    590591           
    591             [[CTGradient progressLightGrayGradient] fillRect: noIncludeRect angle: 90];
     592            [[ProgressGradients progressLightGrayGradient] fillRect: noIncludeRect angle: 90];
    592593        }
    593594       
     
    606607                    notAvailableRect.size.width = notAvailableWidth;
    607608                   
    608                     [[CTGradient progressRedGradient] fillRect: notAvailableRect angle: 90];
     609                    [[ProgressGradients progressRedGradient] fillRect: notAvailableRect angle: 90];
    609610                }
    610611            }
     
    616617                includeRect.size.width = rightWidth;
    617618               
    618                 [[CTGradient progressWhiteGradient] fillRect: includeRect angle: 90];
     619                [[ProgressGradients progressWhiteGradient] fillRect: includeRect angle: 90];
    619620            }
    620621        }
     
    629630        {
    630631            if ([torrent isChecking])
    631                 [[CTGradient progressYellowGradient] fillRect: completeRect angle: 90];
     632                [[ProgressGradients progressYellowGradient] fillRect: completeRect angle: 90];
    632633            else if ([torrent isSeeding])
    633634            {
     
    641642                    ratioLeftRect.size.width = ratioLeftWidth;
    642643                   
    643                     [[CTGradient progressLightGreenGradient] fillRect: ratioLeftRect angle: 90];
     644                    [[ProgressGradients progressLightGreenGradient] fillRect: ratioLeftRect angle: 90];
    644645                }
    645646               
     
    648649                    completeRect.size.width = leftWidth;
    649650                   
    650                     [[CTGradient progressGreenGradient] fillRect: completeRect angle: 90];
     651                    [[ProgressGradients progressGreenGradient] fillRect: completeRect angle: 90];
    651652                }
    652653            }
    653654            else
    654                 [[CTGradient progressBlueGradient] fillRect: completeRect angle: 90];
     655                [[ProgressGradients progressBlueGradient] fillRect: completeRect angle: 90];
    655656        }
    656657        else
     
    659660            {
    660661                if ([torrent progressLeft] <= 0.0f)
    661                     [[CTGradient progressDarkGreenGradient] fillRect: completeRect angle: 90];
     662                    [[ProgressGradients progressDarkGreenGradient] fillRect: completeRect angle: 90];
    662663                else
    663                     [[CTGradient progressDarkBlueGradient] fillRect: completeRect angle: 90];
     664                    [[ProgressGradients progressDarkBlueGradient] fillRect: completeRect angle: 90];
    664665            }
    665666            else
    666                 [[CTGradient progressGrayGradient] fillRect: completeRect angle: 90];
     667                [[ProgressGradients progressGrayGradient] fillRect: completeRect angle: 90];
    667668        }
    668669    }
Note: See TracChangeset for help on using the changeset viewer.