Changeset 1065 for trunk/macosx


Ignore:
Timestamp:
Nov 10, 2006, 4:55:52 AM (15 years ago)
Author:
livings124
Message:

Peers progress bar in inspector window. Bar should be red when progress is < .33, yellow when < .66, and green when greater.

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1062 r1065  
    15841584    {
    15851585        enumerator = [newNames objectEnumerator];
     1586        int count;
    15861587        while ((file = [enumerator nextObject]))
    15871588        {
    1588             int count = [fTorrents count];
     1589            count = [fTorrents count];
    15891590            [self openFiles: [NSArray arrayWithObject: file]];
    15901591           
     
    16011602    //create temporary torrents to check if an import fails because of an error
    16021603    enumerator = [newNames objectEnumerator];
     1604    int error;
    16031605    while ((file = [enumerator nextObject]))
    16041606    {
    1605         int error;
    16061607        tr_torrent_t * tempTor = tr_torrentInit(fLib, [file UTF8String], 0, & error);
    16071608       
  • trunk/macosx/InfoWindowController.m

    r1054 r1065  
    506506        if ([ident isEqualToString: @"Connected"])
    507507            return [[peer objectForKey: @"Connected"] boolValue] ? fDotGreen : fDotRed;
     508        else if ([ident isEqualToString: @"Client"])
     509            return [peer objectForKey: @"Client"];
     510        else if  ([ident isEqualToString: @"Progress"])
     511            return [peer objectForKey: @"Progress"];
    508512        else if ([ident isEqualToString: @"UL To"])
    509513            return [[peer objectForKey: @"UL To"] boolValue] ? fCheckImage : nil;
    510514        else if ([ident isEqualToString: @"DL From"])
    511515            return [[peer objectForKey: @"DL From"] boolValue] ? fCheckImage : nil;
    512         else if ([ident isEqualToString: @"Client"])
    513             return [peer objectForKey: @"Client"];
    514516        else
    515517            return [peer objectForKey: @"IP"];
  • trunk/macosx/PrefsController.m

    r1058 r1065  
    413413- (void) setAutoImport: (id) sender
    414414{
     415    NSString * path = [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath];
    415416    if ([fDefaults boolForKey: @"AutoImport"])
    416         [[UKKQueue sharedFileWatcher] addPath:
    417             [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath]];
    418     else
    419         [[UKKQueue sharedFileWatcher] removePathFromQueue:
    420             [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath]];
     417        [[UKKQueue sharedFileWatcher] addPath: path];
     418    else
     419        [[UKKQueue sharedFileWatcher] removePathFromQueue: path];
    421420   
    422421    [[NSNotificationCenter defaultCenter] postNotificationName: @"AutoImportSettingChange" object: self];
  • trunk/macosx/Torrent.m

    r1059 r1065  
    701701            [NSString stringWithCString: (char *) peer.addr encoding: NSUTF8StringEncoding], @"IP",
    702702            [NSString stringWithCString: (char *) peer.client encoding: NSUTF8StringEncoding], @"Client",
     703            [NSNumber numberWithFloat: peer.progress], @"Progress",
    703704            [NSNumber numberWithBool: peer.isDownloading], @"UL To",
    704705            [NSNumber numberWithBool: peer.isUploading], @"DL From", nil]];
Note: See TracChangeset for help on using the changeset viewer.