mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
[#3] base cocoa: added selection synchronization with the py side.
--HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%4066
This commit is contained in:
parent
d30591fd39
commit
12482fed1b
@ -16,7 +16,9 @@
|
|||||||
|
|
||||||
- (NSNumber *)doScan;
|
- (NSNumber *)doScan;
|
||||||
|
|
||||||
|
- (NSArray *)selectedPowerMarkerNodePaths;
|
||||||
- (void)selectPowerMarkerNodePaths:(NSArray *)aIndexPaths;
|
- (void)selectPowerMarkerNodePaths:(NSArray *)aIndexPaths;
|
||||||
|
- (NSArray *)selectedResultNodePaths;
|
||||||
- (void)selectResultNodePaths:(NSArray *)aIndexPaths;
|
- (void)selectResultNodePaths:(NSArray *)aIndexPaths;
|
||||||
|
|
||||||
- (void)toggleSelectedMark;
|
- (void)toggleSelectedMark;
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
/* Helpers */
|
/* Helpers */
|
||||||
- (NSArray *)getSelected:(BOOL)aDupesOnly;
|
- (NSArray *)getSelected:(BOOL)aDupesOnly;
|
||||||
- (NSArray *)getSelectedPaths:(BOOL)aDupesOnly;
|
- (NSArray *)getSelectedPaths:(BOOL)aDupesOnly;
|
||||||
|
- (void)updatePySelection;
|
||||||
- (void)performPySelection:(NSArray *)aIndexPaths;
|
- (void)performPySelection:(NSArray *)aIndexPaths;
|
||||||
- (void)refreshStats;
|
- (void)refreshStats;
|
||||||
|
|
||||||
|
@ -96,6 +96,16 @@
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)updatePySelection
|
||||||
|
{
|
||||||
|
NSArray *selection;
|
||||||
|
if (_powerMode)
|
||||||
|
selection = [py selectedPowerMarkerNodePaths];
|
||||||
|
else
|
||||||
|
selection = [py selectedResultNodePaths];
|
||||||
|
[matches selectNodePaths:selection];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)performPySelection:(NSArray *)aIndexPaths
|
- (void)performPySelection:(NSArray *)aIndexPaths
|
||||||
{
|
{
|
||||||
if (_powerMode)
|
if (_powerMode)
|
||||||
@ -127,6 +137,7 @@
|
|||||||
[matches setTag:0];
|
[matches setTag:0];
|
||||||
[self expandAll:nil];
|
[self expandAll:nil];
|
||||||
[self outlineView:matches didClickTableColumn:nil];
|
[self outlineView:matches didClickTableColumn:nil];
|
||||||
|
[self updatePySelection];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)copyMarked:(id)sender
|
- (IBAction)copyMarked:(id)sender
|
||||||
|
Loading…
x
Reference in New Issue
Block a user