Changeset 339


Ignore:
Timestamp:
Jun 12, 2006, 4:56:07 AM (16 years ago)
Author:
livings124
Message:

Make private methods actually private.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r338 r339  
    5353{
    5454    fTorrents = torrents;
    55 }
    56 
    57 - (NSRect) pauseRectForRow: (int) row
    58 {
    59     NSRect cellRect = [self frameOfCellAtColumn:
    60                 [self columnWithIdentifier: @"Torrent"] row: row];
    61                
    62     return NSMakeRect(cellRect.origin.x + cellRect.size.width
    63                         - AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH,
    64                         cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
    65 }
    66 
    67 - (NSRect) revealRectForRow: (int) row
    68 {
    69     NSRect cellRect = [self frameOfCellAtColumn:
    70                 [self columnWithIdentifier: @"Torrent"] row: row];
    71    
    72     return NSMakeRect(cellRect.origin.x + cellRect.size.width
    73                         - AREA_CENTER + DISTANCE_FROM_CENTER,
    74                         cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
    75 }
    76 
    77 - (BOOL) pointInPauseRect: (NSPoint) point
    78 {
    79     return NSPointInRect( point, [self pauseRectForRow:
    80                                     [self rowAtPoint: point]] );
    81 }
    82 
    83 - (BOOL) pointInRevealRect: (NSPoint) point
    84 {
    85     return NSPointInRect( point, [self revealRectForRow:
    86                                     [self rowAtPoint: point]] );
    8755}
    8856
     
    215183
    216184@end
     185
     186@implementation TorrentTableView (Private)
     187
     188- (NSRect) pauseRectForRow: (int) row
     189{
     190    NSRect cellRect = [self frameOfCellAtColumn:
     191                [self columnWithIdentifier: @"Torrent"] row: row];
     192               
     193    return NSMakeRect(cellRect.origin.x + cellRect.size.width
     194                        - AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH,
     195                        cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
     196}
     197
     198- (NSRect) revealRectForRow: (int) row
     199{
     200    NSRect cellRect = [self frameOfCellAtColumn:
     201                [self columnWithIdentifier: @"Torrent"] row: row];
     202   
     203    return NSMakeRect(cellRect.origin.x + cellRect.size.width
     204                        - AREA_CENTER + DISTANCE_FROM_CENTER,
     205                        cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
     206}
     207
     208- (BOOL) pointInPauseRect: (NSPoint) point
     209{
     210    return NSPointInRect( point, [self pauseRectForRow:
     211                                    [self rowAtPoint: point]] );
     212}
     213
     214- (BOOL) pointInRevealRect: (NSPoint) point
     215{
     216    return NSPointInRect( point, [self revealRectForRow:
     217                                    [self rowAtPoint: point]] );
     218}
     219
     220@end
Note: See TracChangeset for help on using the changeset viewer.