Changeset 2731
- Timestamp:
- Aug 13, 2007, 5:03:21 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentCell.m
r2730 r2731 57 57 - (NSImage *) advancedBarSimple; 58 58 59 #warning rearrange60 59 - (NSRect) rectForMinimalStatusWithString: (NSAttributedString *) string inBounds: (NSRect) bounds; 61 - (NSRect) rectForTitle BasedOnMinimalStatusRect: (NSRect) statusRect withString: (NSAttributedString *) string60 - (NSRect) rectForTitleWithString: (NSAttributedString *) string basedOnMinimalStatusRect: (NSRect) statusRect 62 61 inBounds: (NSRect) bounds; 63 62 - (NSRect) rectForProgressWithString: (NSAttributedString *) string inBounds: (NSRect) bounds; 64 - (NSRect) rectForStatusWithString: (NSAttributedString *) string 65 inBounds: (NSRect) bounds; 63 - (NSRect) rectForStatusWithString: (NSAttributedString *) string inBounds: (NSRect) bounds; 66 64 67 65 - (NSAttributedString *) attributedTitleWithColor: (NSColor *) color; … … 75 73 #define BE OSSwapBigToHostConstInt32 76 74 77 static uint32_t kRed = BE(0xFF6450FF), //255, 100, 8078 kBlue = BE(0x50A0FFFF), //80, 160, 25579 kBlue2 = BE(0x1E46B4FF), //30, 70, 18080 kGray = BE(0x969696FF), //150, 150, 15075 static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 76 kBlue = BE(0x50A0FFFF), //80, 160, 255 77 kBlue2 = BE(0x1E46B4FF), //30, 70, 180 78 kGray = BE(0x969696FF), //150, 150, 150 81 79 kGreen1 = BE(0x99FFCCFF), //153, 255, 204 82 80 kGreen2 = BE(0x66FF99FF), //102, 255, 153 83 81 kGreen3 = BE(0x00FF66FF), //0, 255, 102 84 kWhite = BE(0xFFFFFFFF); //255, 255, 25582 kWhite = BE(0xFFFFFFFF); //255, 255, 255 85 83 86 84 //only called one, so don't worry about release … … 148 146 - (NSRect) titleRectForBounds: (NSRect) bounds 149 147 { 150 return [self rectForTitle BasedOnMinimalStatusRect: [self minimalStatusRectForBounds: bounds]151 withString: [self attributedTitleWithColor: nil] inBounds: bounds];148 return [self rectForTitleWithString: [self attributedTitleWithColor: nil] 149 basedOnMinimalStatusRect: [self minimalStatusRectForBounds: bounds] inBounds: bounds]; 152 150 } 153 151 … … 250 248 //title 251 249 NSAttributedString * titleString = [self attributedTitleWithColor: titleColor]; 252 NSRect titleRect = [self rectForTitle BasedOnMinimalStatusRect: minimalStatusRect withString: titleStringinBounds: cellFrame];250 NSRect titleRect = [self rectForTitleWithString: titleString basedOnMinimalStatusRect: minimalStatusRect inBounds: cellFrame]; 253 251 [titleString drawInRect: titleRect]; 254 252 … … 548 546 } 549 547 550 - (NSRect) rectForTitle BasedOnMinimalStatusRect: (NSRect) statusRect withString: (NSAttributedString *) string548 - (NSRect) rectForTitleWithString: (NSAttributedString *) string basedOnMinimalStatusRect: (NSRect) statusRect 551 549 inBounds: (NSRect) bounds 552 550 {
Note: See TracChangeset
for help on using the changeset viewer.