Changeset 4059
- Timestamp:
- Dec 4, 2007, 4:47:00 PM (14 years ago)
- Location:
- trunk/macosx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/BadgeView.m
r3816 r4059 133 133 rect.origin.x += (rect.size.width - stringSize.width) * 0.5; 134 134 rect.origin.y += (rect.size.height - stringSize.height) * 0.5; 135 rect.size = stringSize; 135 136 136 [string draw AtPoint: rect.originwithAttributes: fAttributes];137 [string drawInRect: rect withAttributes: fAttributes]; 137 138 } 138 139 -
trunk/macosx/Badger.m
r4057 r4059 262 262 rect.origin.x += (rect.size.width - stringSize.width) * 0.5; 263 263 rect.origin.y += (rect.size.height - stringSize.height) * 0.5; 264 rect.size = stringSize; 264 265 265 [string draw AtPoint: rect.originwithAttributes: fAttributes];266 [string drawInRect: rect withAttributes: fAttributes]; 266 267 } 267 268 -
trunk/macosx/DragOverlayView.m
r4058 r4059 92 92 NSSize badgeSize = [fBadge size]; 93 93 94 [fBadge lockFocus]; 95 94 96 //place icon 95 [fBadge lockFocus];96 const float WIDTH = 64.0;97 97 [icon drawInRect: NSMakeRect(PADDING, (badgeSize.height - ICON_WIDTH) * 0.5, ICON_WIDTH, ICON_WIDTH) fromRect: NSZeroRect 98 98 operation: NSCompositeSourceOver fraction: 1.0]; -
trunk/macosx/FilePriorityCell.h
r3093 r4059 28 28 @interface FilePriorityCell : NSSegmentedCell 29 29 { 30 NSImage * fLowImage, * fHighImage, * fNormalImage, * fMixedImage, * fNoneImage;31 30 } 32 31 -
trunk/macosx/FilePriorityCell.m
r3478 r4059 93 93 NSImage * image; 94 94 if (count == 0) 95 { 96 if (!fNoneImage) 97 fNoneImage = [NSImage imageNamed: @"PriorityNone.png"]; 98 image = fNoneImage; 99 } 95 image = [NSImage imageNamed: @"PriorityNone.png"]; 100 96 else if (count > 1) 101 { 102 if (!fMixedImage) 103 fMixedImage = [NSImage imageNamed: @"PriorityMixed.png"]; 104 image = fMixedImage; 105 } 97 image = [NSImage imageNamed: @"PriorityMixed.png"]; 106 98 else 107 99 { … … 109 101 { 110 102 case TR_PRI_NORMAL: 111 if (!fNormalImage) 112 fNormalImage = [NSImage imageNamed: @"PriorityNormal.png"]; 113 image = fNormalImage; 103 image = [NSImage imageNamed: @"PriorityNormal.png"]; 114 104 break; 115 105 case TR_PRI_LOW: 116 if (!fLowImage) 117 fLowImage = [NSImage imageNamed: @"PriorityLow.png"]; 118 image = fLowImage; 106 image = [NSImage imageNamed: @"PriorityLow.png"]; 119 107 break; 120 108 case TR_PRI_HIGH: 121 if (!fHighImage) 122 fHighImage = [NSImage imageNamed: @"PriorityHigh.png"]; 123 image = fHighImage; 109 image = [NSImage imageNamed: @"PriorityHigh.png"]; 124 110 break; 125 111 }
Note: See TracChangeset
for help on using the changeset viewer.