Changeset 2016


Ignore:
Timestamp:
Jun 9, 2007, 10:11:10 PM (15 years ago)
Author:
livings124
Message:

change some method names

Location:
branches/file_selection/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/macosx/InfoWindowController.m

    r2014 r2016  
    794794        Torrent * torrent = [fTorrents objectAtIndex: 0];
    795795        if ([[item objectForKey: @"IsFolder"] boolValue])
    796             return [NSNumber numberWithInt: [torrent shouldDownloadFolderForFiles: [item objectForKey: @"Indexes"]]];
    797         else
    798             return [NSNumber numberWithInt: [torrent shouldDownloadFile: [[item objectForKey: @"Index"] intValue]]];
     796            return [NSNumber numberWithInt: [torrent checkForFileFolder: [item objectForKey: @"Indexes"]]];
     797        else
     798            return [NSNumber numberWithInt: [torrent checkForFile: [[item objectForKey: @"Index"] intValue]]];
    799799    }
    800800    else
     
    833833        Torrent * torrent = [fTorrents objectAtIndex: 0];
    834834        if ([[item objectForKey: @"IsFolder"] boolValue])
    835             [cell setEnabled: [torrent canChangeDownloadCheckFoldersForFiles: [item objectForKey: @"Indexes"]]];
     835            [cell setEnabled: [torrent canChangeDownloadCheckForFileFolder: [item objectForKey: @"Indexes"]]];
    836836        else
    837837            [cell setEnabled: [torrent canChangeDownloadCheckFile: [[item objectForKey: @"Index"] intValue]]];
  • branches/file_selection/macosx/Torrent.h

    r2014 r2016  
    203203- (int) fileCount;
    204204- (float) fileProgress: (int) index;
    205 - (int) shouldDownloadFile: (int) index;
    206 - (int) shouldDownloadFolderForFiles: (NSIndexSet *) indexSet;
     205- (int) checkForFile: (int) index;
     206- (int) checkForFileFolder: (NSIndexSet *) indexSet;
    207207- (BOOL) canChangeDownloadCheckFile: (int) index;
    208 - (BOOL) canChangeDownloadCheckFoldersForFiles: (NSIndexSet *) indexSet;
     208- (BOOL) canChangeDownloadCheckForFileFolder: (NSIndexSet *) indexSet;
    209209- (void) setFileCheckState: (int) state forFileItem: (NSDictionary *) item;
    210210
  • branches/file_selection/macosx/Torrent.m

    r2015 r2016  
    13161316}
    13171317
    1318 - (int) shouldDownloadFile: (int) index
     1318- (int) checkForFile: (int) index
    13191319{
    13201320    return (tr_torrentGetFilePriority(fHandle, index) != TR_PRI_DND || [self fileProgress: index] >= 1.0)
     
    13221322}
    13231323
    1324 - (int) shouldDownloadFolderForFiles: (NSIndexSet *) indexSet
     1324- (int) checkForFileFolder: (NSIndexSet *) indexSet
    13251325{
    13261326    BOOL onState = NO, offState = NO;
     
    13281328    for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
    13291329    {
    1330         if ([self shouldDownloadFile: index] == NSOnState)
     1330        if ([self checkForFile: index] == NSOnState)
    13311331            onState = YES;
    13321332        else
     
    13441344}
    13451345
    1346 - (BOOL) canChangeDownloadCheckFoldersForFiles: (NSIndexSet *) indexSet
     1346- (BOOL) canChangeDownloadCheckForFileFolder: (NSIndexSet *) indexSet
    13471347{
    13481348    int index;
     
    16261626    {
    16271627        if (isFolder)
    1628         {
    1629             [dict setObject: [NSNumber numberWithInt: [[dict objectForKey: @"Remaining"] intValue]+1] forKey: @"Remaining"];
    16301628            [[dict objectForKey: @"Indexes"] addIndex: index];
    1631         }
    16321629    }
    16331630   
Note: See TracChangeset for help on using the changeset viewer.