mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
Convert tabs to spaces, remove trailing whitespace (Mac client)
This commit is contained in:
@@ -34,14 +34,14 @@
|
||||
FileNameCell * nameCell = [[FileNameCell alloc] init];
|
||||
[[self tableColumnWithIdentifier: @"Name"] setDataCell: nameCell];
|
||||
[nameCell release];
|
||||
|
||||
|
||||
FilePriorityCell * priorityCell = [[FilePriorityCell alloc] init];
|
||||
[[self tableColumnWithIdentifier: @"Priority"] setDataCell: priorityCell];
|
||||
[priorityCell release];
|
||||
|
||||
|
||||
[self setAutoresizesOutlineColumn: NO];
|
||||
[self setIndentationPerLevel: 14.0];
|
||||
|
||||
|
||||
fMouseRow = -1;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
- (NSMenu *) menuForEvent: (NSEvent *) event
|
||||
{
|
||||
const NSInteger row = [self rowAtPoint: [self convertPoint: [event locationInWindow] fromView: nil]];
|
||||
|
||||
|
||||
if (row >= 0)
|
||||
{
|
||||
if (![self isRowSelected: row])
|
||||
@@ -67,7 +67,7 @@
|
||||
}
|
||||
else
|
||||
[self deselectAll: self];
|
||||
|
||||
|
||||
return [self menu];
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
{
|
||||
FileNameCell * cell = (FileNameCell *)[self preparedCellAtColumn: [self columnWithIdentifier: @"Name"] row: row];
|
||||
NSRect iconRect = [cell imageRectForBounds: [self rectOfRow: row]];
|
||||
|
||||
|
||||
iconRect.origin.x += [self indentationPerLevel] * (CGFloat)([self levelForRow: row] + 1);
|
||||
return iconRect;
|
||||
}
|
||||
@@ -83,23 +83,23 @@
|
||||
- (void) updateTrackingAreas
|
||||
{
|
||||
[super updateTrackingAreas];
|
||||
|
||||
|
||||
for (NSTrackingArea * area in [self trackingAreas])
|
||||
{
|
||||
if ([area owner] == self && [[area userInfo] objectForKey: @"Row"])
|
||||
[self removeTrackingArea: area];
|
||||
}
|
||||
|
||||
|
||||
NSRange visibleRows = [self rowsInRect: [self visibleRect]];
|
||||
if (visibleRows.length == 0)
|
||||
return;
|
||||
|
||||
|
||||
NSPoint mouseLocation = [self convertPoint: [[self window] mouseLocationOutsideOfEventStream] fromView: nil];
|
||||
|
||||
|
||||
for (NSInteger row = visibleRows.location, col = [self columnWithIdentifier: @"Priority"]; (NSUInteger)row < NSMaxRange(visibleRows); row++)
|
||||
{
|
||||
FilePriorityCell * cell = (FilePriorityCell *)[self preparedCellAtColumn: col row: row];
|
||||
|
||||
|
||||
NSDictionary * userInfo = [NSDictionary dictionaryWithObject: [NSNumber numberWithInt: row] forKey: @"Row"];
|
||||
[cell addTrackingAreasForView: self inRect: [self frameOfCellAtColumn: col row: row] withUserInfo: userInfo
|
||||
mouseLocation: mouseLocation];
|
||||
|
||||
Reference in New Issue
Block a user