Changeset 678
- Timestamp:
- Jul 23, 2006, 7:22:24 PM (17 years ago)
- Location:
- trunk/macosx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Badger.m
r613 r678 97 97 98 98 //place badge 99 [fBadge compositeToPoint: badgeRect.origin 100 operation: NSCompositeSourceOver]; 99 [fBadge compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver]; 101 100 102 101 //ignore shadow of badge when placing string … … 106 105 107 106 //place badge text 108 [self badgeString: [NSString stringWithInt: completed] 109 forRect: badgeRect]; 107 [self badgeString: [NSString stringWithInt: completed] forRect: badgeRect]; 110 108 111 109 [dockIcon unlockFocus]; … … 144 142 { 145 143 //place badge 146 [fUploadBadge compositeToPoint: badgeRect.origin 147 operation: NSCompositeSourceOver]; 144 [fUploadBadge compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver]; 148 145 149 146 //place badge text … … 162 159 163 160 //place badge 164 [fDownloadBadge compositeToPoint: badgeRect.origin 165 operation: NSCompositeSourceOver]; 161 [fDownloadBadge compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver]; 166 162 167 163 //place badge text -
trunk/macosx/Controller.m
r676 r678 48 48 #define TORRENT_TABLE_VIEW_DATA_TYPE @"TorrentTableViewDataType" 49 49 50 #define ROW_HEIGHT_REGULAR 65.0 51 #define ROW_HEIGHT_SMALL 40.0 50 #define ROW_HEIGHT_REGULAR 65.0 51 #define ROW_HEIGHT_SMALL 40.0 52 #define WINDOW_REGULAR_WIDTH 468.0 52 53 53 54 #define WEBSITE_URL @"http://transmission.m0k.org/" … … 151 152 152 153 [contentView addSubview: fFilterBar]; 153 [fFilterBar setFrameOrigin: NSMakePoint(0, [contentView frame].origin.y + [contentView frame].size.height)];154 [fFilterBar setFrameOrigin: NSMakePoint(0, NSMaxY([contentView frame]))]; 154 155 155 156 [self showFilterBar: [fDefaults boolForKey: @"FilterBar"] animate: NO]; … … 164 165 165 166 [contentView addSubview: fStatusBar]; 166 [fStatusBar setFrameOrigin: NSMakePoint(0, [contentView frame].origin.y + [contentView frame].size.height)];167 [fStatusBar setFrameOrigin: NSMakePoint(0, NSMaxY([contentView frame]))]; 167 168 [self showStatusBar: [fDefaults boolForKey: @"StatusBar"] animate: NO]; 168 169 … … 2120 2121 : [self windowFrameForAmount: [fFilteredTorrents count]]; 2121 2122 2122 frame.size.width = [fDefaults boolForKey: @"SmallView"] ? [fWindow minSize].width : 468.0;2123 frame.size.width = [fDefaults boolForKey: @"SmallView"] ? [fWindow minSize].width : WINDOW_REGULAR_WIDTH; 2123 2124 return frame; 2124 2125 } … … 2187 2188 //hide search filter if it overlaps filter buttons 2188 2189 NSRect buttonFrame = [fPauseFilterButton frame]; 2189 if ( buttonFrame.origin.x + buttonFrame.size.width+ 2.0 > [fSearchFilterField frame].origin.x)2190 if (NSMaxX(buttonFrame) + 2.0 > [fSearchFilterField frame].origin.x) 2190 2191 { 2191 2192 if (![fSearchFilterField isHidden]) -
trunk/macosx/InfoWindowController.m
r676 r678 218 218 [fStateField setStringValue: [torrent stateString]]; 219 219 /* 220 [fPercentField setStringValue: [NSString stringWithFormat: 221 @"%.2f%%", 100.0 * [torrent progress]]]; 220 [fPercentField setStringValue: [NSString stringWithFormat: @"%.2f%%", 100.0 * [torrent progress]]]; 222 221 */ 223 222 int seeders = [torrent seeders], leechers = [torrent leechers]; -
trunk/macosx/TorrentCell.m
r639 r678 368 368 369 369 //place status string 370 pen.x = cellFrame.origin.x + cellFrame.size.width- PADDING - [statusString size].width;370 pen.x = NSMaxX(cellFrame) - PADDING - [statusString size].width; 371 371 pen.y += ([nameString size].height - [statusString size].height) * 0.5; 372 372 -
trunk/macosx/TorrentTableView.m
r557 r678 190 190 float buttonToTop = [fDefaults boolForKey: @"SmallView"] ? BUTTON_TO_TOP_SMALL : BUTTON_TO_TOP_REGULAR; 191 191 192 return NSMakeRect( cellRect.origin.x + cellRect.size.width- AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH,192 return NSMakeRect(NSMaxX(cellRect) - AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH, 193 193 cellRect.origin.y + buttonToTop, BUTTON_WIDTH, BUTTON_WIDTH); 194 194 } … … 200 200 float buttonToTop = [fDefaults boolForKey: @"SmallView"] ? BUTTON_TO_TOP_SMALL : BUTTON_TO_TOP_REGULAR; 201 201 202 return NSMakeRect( cellRect.origin.x + cellRect.size.width- AREA_CENTER + DISTANCE_FROM_CENTER,202 return NSMakeRect(NSMaxX(cellRect) - AREA_CENTER + DISTANCE_FROM_CENTER, 203 203 cellRect.origin.y + buttonToTop, BUTTON_WIDTH, BUTTON_WIDTH); 204 204 }
Note: See TracChangeset
for help on using the changeset viewer.