Ignore:
Timestamp:
Jun 6, 2006, 6:05:57 PM (16 years ago)
Author:
livings124
Message:

First commit on my own 8-)

Sorting by progress, sorting no longer causes crashes.
New look for the table.
Info is now inspector: can set individual and multiple ratio limits, shows listing of files, more info in general, resizes when changing tabs, can change tabs with cmd-left and cmd-right.
Menu items moved to "Transfers" menu.
Sliding status bar in its own view.
Prefs moved into their own nib.
Toolbar items for pause and resume selected (many wanted this, but it needs better icons)
New icons for Transfers and General.
A lot of tweaking of main window to fix alignment etc.
Sparkle used for updated (still needs to be added to website to work).

And a lot more tweaking and changes that I'm too lazy to list.

...now let's hope I commit this right

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r261 r272  
    2828#import "Utils.h"
    2929
     30#define BUTTON_WIDTH 14.0
     31#define BUTTON_TO_TOP 32.5
     32#define AREA_CENTER 23.0
     33#define DISTANCE_FROM_CENTER 2.5
     34
    3035@implementation TorrentTableView
    3136
     
    3742- (NSRect) pauseRectForRow: (int) row
    3843{
    39     int col;
    40     NSRect cellRect, rect;
    41 
    42     col      = [self columnWithIdentifier: @"Torrent"];
    43     cellRect = [self frameOfCellAtColumn: col row: row];
    44     rect     = NSMakeRect( cellRect.origin.x + cellRect.size.width - 39,
    45                            cellRect.origin.y + 3, 14, 14 );
    46 
    47     return rect;
     44    NSRect cellRect = [self frameOfCellAtColumn:
     45                [self columnWithIdentifier: @"Torrent"] row: row];
     46               
     47    return NSMakeRect(cellRect.origin.x + cellRect.size.width
     48                        - AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH,
     49                        cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
    4850}
    4951
    5052- (NSRect) revealRectForRow: (int) row
    5153{
    52     int col;
    53     NSRect cellRect, rect;
    54 
    55     col      = [self columnWithIdentifier: @"Torrent"];
    56     cellRect = [self frameOfCellAtColumn: col row: row];
    57     rect     = NSMakeRect( cellRect.origin.x + cellRect.size.width - 20,
    58                            cellRect.origin.y + 3, 14, 14 );
    59 
    60     return rect;
     54    NSRect cellRect = [self frameOfCellAtColumn:
     55                [self columnWithIdentifier: @"Torrent"] row: row];
     56   
     57    return NSMakeRect(cellRect.origin.x + cellRect.size.width
     58                        - AREA_CENTER + DISTANCE_FROM_CENTER,
     59                        cellRect.origin.y + BUTTON_TO_TOP, BUTTON_WIDTH, BUTTON_WIDTH);
    6160}
    6261
     
    185184            [image setFlipped: YES];
    186185            [image drawAtPoint: rect.origin fromRect:
    187                 NSMakeRect( 0, 0, 14, 14 ) operation:
     186                NSMakeRect(0, 0, BUTTON_WIDTH, BUTTON_WIDTH) operation:
    188187                NSCompositeSourceOver fraction: 1.0];
    189188        }
     
    195194        [image setFlipped: YES];
    196195        [image drawAtPoint: rect.origin fromRect:
    197             NSMakeRect( 0, 0, 14, 14 ) operation:
     196            NSMakeRect(0, 0, BUTTON_WIDTH, BUTTON_WIDTH) operation:
    198197            NSCompositeSourceOver fraction: 1.0];
    199198    }
Note: See TracChangeset for help on using the changeset viewer.