Changeset 4


Ignore:
Timestamp:
Jan 12, 2006, 6:30:10 PM (15 years ago)
Author:
root
Message:

Update 2005-11-18

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/AUTHORS

    r3 r4  
    1313 + OS X toolbar icons
    1414
    15 Michael, Omar and Adrien
     15Omar and Adrien
    1616 + Beta testing
     17
     18Michael Demars
     19 + Beta testing
     20 + OS X UI patches
    1721
    1822Various people
  • trunk/Jamrules

    r2 r4  
    77
    88VERSION_MAJOR  = 0 ;
    9 VERSION_MINOR  = 3 ;
     9VERSION_MINOR  = 4 ;
    1010# VERSION_STRING = $(VERSION_MAJOR).$(VERSION_MINOR) ;
    11 VERSION_STRING = 0.4-cvs ;
     11VERSION_STRING = 0.5-cvs ;
    1212
    1313DEFINES += VERSION_MAJOR=$(VERSION_MAJOR)
  • trunk/NEWS

    r1 r4  
    11NEWS file for Transmission <http://transmission.m0k.org/>
     2
     30.4 (2005/11/18)
     4 - Uses less CPU downloading torrents with many pieces
     5 - The UI could freeze when the hard drive was having a hard time - fixed
     6 - Fixes for difficult trackers, which require a 'key' parameter or a
     7     User Agent field
     8 - OS X: Cleaner look, unified toolbar
     9 - OS X: Added a document icon for torrent files
     10 - OS X: Added a Pause/Resume button for each torrent, and a
     11    "Reveal in Finder" button
     12 - OS X: Added a contextual menu
     13 - OS X: Sometimes torrents kept "Stopping..." forever - fixed
     14 - OS X: Several minor improvements or fixes: allows column reordering,
     15    fixed resizing on Panther, remember the position of the window,
     16    fixed display of Unicode filenames, added menubar items and
     17    keyboard shortcuts, made the simple progress bar switch to green
     18    when seeding
    219
    3200.3 (2005/10/19)
  • trunk/macosx/Controller.h

    r3 r4  
    4242
    4343    IBOutlet NSMenuItem          * fAdvancedBarItem;
     44    IBOutlet NSMenuItem          * fPauseResumeItem;
     45    IBOutlet NSMenuItem          * fRemoveItem;
    4446
    4547    IBOutlet NSWindow            * fWindow;
  • trunk/macosx/Controller.m

    r3 r4  
    4949@implementation Controller
    5050
    51 - (void) updateToolbar
     51- (void) updateBars
    5252{
    5353    NSArray * items;
     
    5757    unsigned i;
    5858
    59     row    = [fTableView selectedRow];
     59    row = [fTableView selectedRow];
     60
     61    /* Can we remove it ? */
    6062    enable = ( row >= 0 ) && ( fStat[row].status &
    6163                ( TR_STATUS_STOPPING | TR_STATUS_PAUSE ) );
    62 
    6364    items = [fToolbar items];
    6465    for( i = 0; i < [items count]; i++ )
     
    6970            [item setAction: enable ? @selector( removeTorrent: ) : NULL];
    7071        }
     72    }
     73    [fRemoveItem setAction: enable ? @selector( removeTorrent: ) : NULL];
     74
     75    /* Can we pause or resume it ? */
     76    [fPauseResumeItem setTitle: @"Pause"];
     77    [fPauseResumeItem setAction: NULL];
     78    if( row < 0 )
     79    {
     80        return;
     81    }
     82    if( fStat[row].status & TR_STATUS_PAUSE )
     83    {
     84        [fPauseResumeItem setTitle: @"Resume"];
     85        [fPauseResumeItem setAction: @selector( resumeTorrent: )];
     86    }
     87    else if( fStat[row].status & ( TR_STATUS_CHECK |
     88                TR_STATUS_DOWNLOAD | TR_STATUS_SEED ) )
     89    {
     90        [fPauseResumeItem setAction: @selector( stopTorrent: )];
    7191    }
    7292}
     
    543563
    544564    /* Must we do this? Can't remember */
    545     [self updateToolbar];
     565    [self updateBars];
    546566}
    547567
     
    636656    int row = [fTableView selectedRow];
    637657
    638     [self updateToolbar];
     658    [self updateBars];
    639659
    640660    if( row < 0 )
     
    689709        [item setImage: [NSImage imageNamed: @"Remove.png"]];
    690710        [item setTarget: self];
    691         /* We set the selector in updateToolbar: */
     711        /* We set the selector in updateBars: */
    692712    }
    693713    else if( [ident isEqualToString: TOOLBAR_PREFS] )
     
    773793                }
    774794            }
    775             [self updateToolbar];
     795            [self updateBars];
    776796            break;
    777797    }
  • trunk/macosx/English.lproj/MainMenu.nib/classes.nib

    r3 r4  
    3131                fInfoTracker = NSTextField;
    3232                fInfoUploaded = NSTextField;
     33                fPauseResumeItem = NSMenuItem;
    3334                fPrefsController = PrefsController;
    34                 fTableView = NSTableView;
     35                fRemoveItem = NSMenuItem;
     36                fTableView = TorrentTableView;
    3537                fTotalDLField = NSTextField;
    3638                fTotalULField = NSTextField;
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r3 r4  
    44<dict>
    55        <key>IBDocumentLocation</key>
    6         <string>188 334 361 432 0 0 1280 832 </string>
     6        <string>185 138 361 432 0 0 1280 832 </string>
    77        <key>IBEditorPositions</key>
    88        <dict>
     
    1818        <key>IBOpenObjects</key>
    1919        <array>
     20                <integer>29</integer>
    2021                <integer>456</integer>
    21                 <integer>21</integer>
    2222        </array>
    2323        <key>IBSystem Version</key>
  • trunk/macosx/ProgressCell.m

    r2 r4  
    141141        for( w = 0; w < 120; w++ )
    142142        {
    143             *p = kBlue2[h];
     143            if( fStat->status & TR_STATUS_SEED )
     144            {
     145                *p = kGreen[h];
     146            }
     147            else
     148            {
     149                *p = kBlue2[h];
     150            }
    144151
    145152            if( w >= (int) ( fStat->progress * 120 ) )
     
    157164    int        h, w;
    158165    uint32_t * p;
    159 
    160     if( fStat->status & TR_STATUS_SEED )
    161     {
    162         for( h = 0; h < 2; h++ )
    163         {
    164             p = (uint32_t *) ( [fBmp bitmapData] +
    165                     h * [fBmp bytesPerRow] ) + 2;
    166         }
    167     }
    168166
    169167    for( h = 0; h < 14; h++ )
Note: See TracChangeset for help on using the changeset viewer.