mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
Make private methods actually private.
This commit is contained in:
parent
9dacd02f92
commit
218ddd0cb9
1 changed files with 36 additions and 32 deletions
|
@ -54,38 +54,6 @@
|
|||
fTorrents = torrents;
|
||||
}
|
||||
|
||||
- (NSRect) pauseRectForRow: (int) row
|
||||
{
|
||||
NSRect cellRect = [self frameOfCellAtColumn:
|
||||
[self columnWithIdentifier: @"Torrent"] row: row];
|
||||
|
||||
return NSMakeRect(cellRect.origin.x + cellRect.size.width
|
||||
- AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH,
|
||||
cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
|
||||
}
|
||||
|
||||
- (NSRect) revealRectForRow: (int) row
|
||||
{
|
||||
NSRect cellRect = [self frameOfCellAtColumn:
|
||||
[self columnWithIdentifier: @"Torrent"] row: row];
|
||||
|
||||
return NSMakeRect(cellRect.origin.x + cellRect.size.width
|
||||
- AREA_CENTER + DISTANCE_FROM_CENTER,
|
||||
cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
|
||||
}
|
||||
|
||||
- (BOOL) pointInPauseRect: (NSPoint) point
|
||||
{
|
||||
return NSPointInRect( point, [self pauseRectForRow:
|
||||
[self rowAtPoint: point]] );
|
||||
}
|
||||
|
||||
- (BOOL) pointInRevealRect: (NSPoint) point
|
||||
{
|
||||
return NSPointInRect( point, [self revealRectForRow:
|
||||
[self rowAtPoint: point]] );
|
||||
}
|
||||
|
||||
- (void) mouseDown: (NSEvent *) e
|
||||
{
|
||||
fClickPoint = [self convertPoint: [e locationInWindow] fromView: nil];
|
||||
|
@ -214,3 +182,39 @@
|
|||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation TorrentTableView (Private)
|
||||
|
||||
- (NSRect) pauseRectForRow: (int) row
|
||||
{
|
||||
NSRect cellRect = [self frameOfCellAtColumn:
|
||||
[self columnWithIdentifier: @"Torrent"] row: row];
|
||||
|
||||
return NSMakeRect(cellRect.origin.x + cellRect.size.width
|
||||
- AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH,
|
||||
cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
|
||||
}
|
||||
|
||||
- (NSRect) revealRectForRow: (int) row
|
||||
{
|
||||
NSRect cellRect = [self frameOfCellAtColumn:
|
||||
[self columnWithIdentifier: @"Torrent"] row: row];
|
||||
|
||||
return NSMakeRect(cellRect.origin.x + cellRect.size.width
|
||||
- AREA_CENTER + DISTANCE_FROM_CENTER,
|
||||
cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
|
||||
}
|
||||
|
||||
- (BOOL) pointInPauseRect: (NSPoint) point
|
||||
{
|
||||
return NSPointInRect( point, [self pauseRectForRow:
|
||||
[self rowAtPoint: point]] );
|
||||
}
|
||||
|
||||
- (BOOL) pointInRevealRect: (NSPoint) point
|
||||
{
|
||||
return NSPointInRect( point, [self revealRectForRow:
|
||||
[self rowAtPoint: point]] );
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue