Changeset 5945
- Timestamp:
- May 27, 2008, 6:05:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentCell.m
r5944 r5945 164 164 - (NSRect) minimalStatusRectForBounds: (NSRect) bounds 165 165 { 166 if (![fDefaults boolForKey: @"SmallView"]) 167 return NSZeroRect; 168 166 169 return [self rectForMinimalStatusWithString: [self attributedStatusString: [self minimalStatusString] withColor: nil] 167 170 inBounds: bounds]; … … 170 173 - (NSRect) progressRectForBounds: (NSRect) bounds 171 174 { 175 if ([fDefaults boolForKey: @"SmallView"]) 176 return NSZeroRect; 177 172 178 return [self rectForProgressWithString: [self attributedStatusString: [[self representedObject] progressString] withColor: nil] 173 179 inBounds: bounds]; … … 195 201 - (NSRect) statusRectForBounds: (NSRect) bounds 196 202 { 203 if ([fDefaults boolForKey: @"SmallView"]) 204 return NSZeroRect; 205 197 206 return [self rectForStatusWithString: [self attributedStatusString: [self statusString] withColor: nil] inBounds: bounds]; 198 207 } … … 249 258 250 259 if (NSMouseInRect(point, [self controlButtonRectForBounds: cellFrame], [controlView isFlipped]) 251 || NSMouseInRect(point, [self revealButtonRectForBounds: cellFrame], [controlView isFlipped]) 252 || (NSMouseInRect(point, [self progressRectForBounds: cellFrame], [controlView isFlipped]) && [[self representedObject] folder]) 253 || NSMouseInRect(point, [self minimalStatusRectForBounds: cellFrame], [controlView isFlipped])) 260 || NSMouseInRect(point, [self revealButtonRectForBounds: cellFrame], [controlView isFlipped])) 254 261 return NSCellHitContentArea | NSCellHitTrackableArea; 255 262 … … 779 786 - (NSRect) rectForMinimalStatusWithString: (NSAttributedString *) string inBounds: (NSRect) bounds 780 787 { 781 if (![fDefaults boolForKey: @"SmallView"])782 return NSZeroRect;783 784 788 NSRect result = bounds; 785 789 result.size = [string size]; … … 809 813 - (NSRect) rectForProgressWithString: (NSAttributedString *) string inBounds: (NSRect) bounds 810 814 { 811 if ([fDefaults boolForKey: @"SmallView"])812 return NSZeroRect;813 814 815 NSRect result = bounds; 815 816 result.origin.y += PADDING_ABOVE_TITLE + HEIGHT_TITLE + PADDING_BETWEEN_TITLE_AND_PROGRESS; … … 824 825 - (NSRect) rectForStatusWithString: (NSAttributedString *) string inBounds: (NSRect) bounds 825 826 { 826 if ([fDefaults boolForKey: @"SmallView"])827 return NSZeroRect;828 829 827 NSRect result = bounds; 830 828 result.origin.y += PADDING_ABOVE_TITLE + HEIGHT_TITLE + PADDING_BETWEEN_TITLE_AND_PROGRESS + HEIGHT_STATUS
Note: See TracChangeset
for help on using the changeset viewer.