1
0
의 미러 https://github.com/arsenetar/dupeguru.git synced 2025-09-11 17:58:17 +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:
hsoft 2009-06-16 09:07:33 +00:00
부모 d30591fd39
커밋 12482fed1b
3개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

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