Changeset 5898


Ignore:
Timestamp:
May 21, 2008, 10:09:05 PM (14 years ago)
Author:
livings124
Message:

quicklook window expands from the icon instead of the whole table row

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r5897 r5898  
    342342                        containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
    343343                        proxyType = 1;
    344                         remoteGlobalIDString = A2DF58240DE4B0EF000795D5 /* shttpd */;
     344                        remoteGlobalIDString = A2DF58240DE4B0EF000795D5;
    345345                        remoteInfo = shttpd;
    346346                };
  • trunk/macosx/Controller.m

    r5897 r5898  
    40904090            if ([item isKindOfClass: [Torrent class]] && [[(Torrent *)item dataLocation] isEqualToString: fullPath])
    40914091            {
    4092                 NSRect frame = [fTableView rectOfRow: row];
     4092                NSRect frame = [fTableView iconRectForRow: row];
    40934093                frame.origin = [fTableView convertPoint: frame.origin toView: nil];
    40944094                frame.origin = [fWindow convertBaseToScreen: frame.origin];
  • trunk/macosx/FileOutlineView.h

    r5382 r5898  
    4040- (Torrent *) torrent;
    4141
     42- (NSRect) iconRectForRow: (int) row;
     43
    4244- (int) hoveredRow;
    4345
  • trunk/macosx/FileOutlineView.m

    r5872 r5898  
    112112   
    113113    return [self menu];
     114}
     115
     116- (NSRect) iconRectForRow: (int) row
     117{
     118    FileNameCell * cell = (FileNameCell *)[[self tableColumnWithIdentifier: @"Name"] dataCell];
     119    return [cell imageRectForBounds: [self rectOfRow: row]];
    114120}
    115121
  • trunk/macosx/InfoWindowController.m

    r5885 r5898  
    2525#import "InfoWindowController.h"
    2626#import "InfoTabButtonCell.h"
     27#import "FileOutlineView.h"
    2728#import "QuickLookController.h"
    2829#import "NSApplicationAdditions.h"
     
    946947        if ([[folder stringByAppendingPathComponent: [rowItem objectForKey: @"Path"]] isEqualToString: fullPath])
    947948        {
    948             NSRect frame = [fileOutlineView rectOfRow: row];
     949            NSRect frame = [fileOutlineView iconRectForRow: row];
    949950            frame.origin = [fileOutlineView convertPoint: frame.origin toView: nil];
    950951            frame.origin = [[self window] convertBaseToScreen: frame.origin];
  • trunk/macosx/TorrentTableView.h

    r5734 r5898  
    6767- (NSArray *) selectedTorrents;
    6868
     69- (NSRect) iconRectForRow: (int) row;
     70
    6971- (void) paste: (id) sender;
    7072
  • trunk/macosx/TorrentTableView.m

    r5873 r5898  
    546546}
    547547
     548- (NSRect) iconRectForRow: (int) row
     549{
     550    return [fTorrentCell iconRectForBounds: [self rectOfRow: row]];
     551}
     552
    548553- (void) paste: (id) sender
    549554{
Note: See TracChangeset for help on using the changeset viewer.