1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-06 19:48:15 +00:00

return of double-click for inspector, double-click icon to reveal file, and double-click progress string to toggle selected and total status

This commit is contained in:
Mitchell Livingston 2008-01-11 04:52:44 +00:00
parent fe9cabbe4b
commit 1f862a70e6
2 changed files with 18 additions and 16 deletions

1
NEWS
View file

@ -8,6 +8,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
- 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:

View file

@ -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];