Changeset 3046


Ignore:
Timestamp:
Sep 11, 2007, 7:23:14 PM (14 years ago)
Author:
livings124
Message:

show the priority images in the menu popup for files

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r3039 r3046  
    330.90 (2007/xx/yy)
    44 - Improved compliance with BitTorrent spec
    5  - Multiscrape support added
     5 - Multiscrape support
    66 - Only report downloaded, verified good pieces in tracker `download' field
    77 - OS X:
     
    99   + Redesigned message log
    1010   + Inspector can be resized vertically in Peers and Files tabs
     11   + Various smaller interface improvements
    1112
    12130.82 (2007/09/09)
  • trunk/macosx/InfoWindowController.m

    r3033 r3046  
    102102    [fFileOutline setDoubleAction: @selector(revealFile:)];
    103103   
     104    //set priority item images
     105    [fFilePriorityNormal setImage: [NSImage imageNamed: @"PriorityNormal.png"]];
     106    [fFilePriorityLow setImage: [NSImage imageNamed: @"PriorityLow.png"]];
     107    [fFilePriorityHigh setImage: [NSImage imageNamed: @"PriorityHigh.png"]];
     108   
    104109    //set blank inspector
    105110    [self updateInfoForTorrents: [NSArray array]];
  • trunk/macosx/MessageWindowController.m

    r3043 r3046  
    3131
    3232#define UPDATE_SECONDS  0.6
    33 #define MAX_MESSAGES    2500
     33#define MAX_MESSAGES    4000
    3434
    3535@interface MessageWindowController (Private)
     
    7171    [window setFrameUsingName: @"MessageWindowFrame"];
    7272   
    73     [window center];
    74    
    7573    //initially sort peer table by IP
    7674    if ([[fMessageTable sortDescriptors] count] == 0)
     
    9694    else if (level == TR_MSG_INF)
    9795        [fLevelButton selectItemAtIndex: LEVEL_INFO];
    98     else if (level == TR_MSG_DBG)
     96    else
    9997        [fLevelButton selectItemAtIndex: LEVEL_DEBUG];
    100     else
    101     {
    102         level = TR_MSG_ERR;
    103         [fLevelButton selectItemAtIndex: LEVEL_ERROR];
    104         [[NSUserDefaults standardUserDefaults] setInteger: level forKey: @"MessageLevel"];
    105     }
    10698   
    10799    [self setDebugWarningHidden: level != TR_MSG_DBG];
     
    122114    tr_freeMessageList(messages);
    123115   
    124     #warning still needed?
    125116    int total = [fMessages count];
    126117    if (total > MAX_MESSAGES)
     
    159150        else if (level == TR_MSG_INF)
    160151            return fInfoImage;
    161         else if (level == TR_MSG_DBG)
     152        else
    162153            return fDebugImage;
    163         else
    164             return nil;
    165154    }
    166155    else
     
    290279    else if (level == TR_MSG_INF)
    291280        levelString = @"Info";
    292     else if (level == TR_MSG_DBG)
     281    else
    293282        levelString = @"Debug";
    294     else
    295         levelString = @"???";
    296    
    297     return [NSString stringWithFormat: @"%@ %@ %@", [message objectForKey: @"Date"], levelString, [message objectForKey: @"Message"]];
     283   
     284    return [NSString stringWithFormat: @"%@ [%@] %@", [message objectForKey: @"Date"], levelString, [message objectForKey: @"Message"]];
    298285}
    299286
Note: See TracChangeset for help on using the changeset viewer.