From 1f862a70e6cdca34a90985ce00f619f1166c3199 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 11 Jan 2008 04:52:44 +0000 Subject: [PATCH] return of double-click for inspector, double-click icon to reveal file, and double-click progress string to toggle selected and total status --- NEWS | 1 + macosx/TorrentTableView.m | 33 +++++++++++++++++---------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/NEWS b/NEWS index f648c158a..83485e49a 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ NEWS file for Transmission - All Platforms: + Fix 1.00 freezing issue + Fix 1.00 assertion failure + + Improve initial connection speed + Improve reconnection to peers with imperfect network connections + Fix crashes on architectures that require strict alignment - OS X: diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index 3c350bbe2..384e96928 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -100,6 +100,7 @@ - (void) mouseDown: (NSEvent *) event { + NSLog(@"down"); fClickPoint = [self convertPoint: [event locationInWindow] fromView: nil]; if ([self pointInActionRect: fClickPoint]) @@ -125,15 +126,28 @@ fClickPoint = NSZeroPoint; [self reloadData]; } - + [super mouseDown: event]; + + if ([event clickCount] == 2 && !NSEqualPoints(fClickPoint, NSZeroPoint)) + { + if ([self pointInProgressRect: fClickPoint]) + { + [fDefaults setBool: ![fDefaults boolForKey: @"DisplayStatusProgressSelected"] forKey: @"DisplayStatusProgressSelected"]; + [self reloadData]; + } + else if ([self pointInIconRect: fClickPoint]) + [[fTorrents objectAtIndex: [self rowAtPoint: fClickPoint]] revealData]; + else if (![self pointInActionRect: fClickPoint]) + [fController showInfo: nil]; + else; + } + else; } } -#warning not working on Leopard - (void) mouseUp: (NSEvent *) event { - //NSLog(@"up"); NSPoint point = [self convertPoint: [event locationInWindow] fromView: nil]; int row = [self rowAtPoint: point], oldRow = [self rowAtPoint: fClickPoint]; @@ -155,19 +169,6 @@ } else if (row == oldRow && [self pointInRevealRect: point] && [self pointInRevealRect: fClickPoint]) [[fTorrents objectAtIndex: row] revealData]; - else if ([event clickCount] == 2 && !NSEqualPoints(fClickPoint, NSZeroPoint)) - { - if ([self pointInProgressRect: fClickPoint]) - { - [fDefaults setBool: ![fDefaults boolForKey: @"DisplayStatusProgressSelected"] forKey: @"DisplayStatusProgressSelected"]; - [self reloadData]; - } - else if ([self pointInIconRect: point]) - [[fTorrents objectAtIndex: row] revealData]; - else if (![self pointInActionRect: point]) - [fController showInfo: nil]; - else; - } else; [super mouseUp: event];