mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Removed MatchesView and took advantage of HSOutlineView's delete and space triggered delegate methods.
This commit is contained in:
parent
310951bfa8
commit
905988c592
@ -29,7 +29,6 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
- (void)markNone;
|
- (void)markNone;
|
||||||
|
|
||||||
- (void)addSelectedToIgnoreList;
|
- (void)addSelectedToIgnoreList;
|
||||||
- (void)removeSelected;
|
|
||||||
- (void)openSelected;
|
- (void)openSelected;
|
||||||
- (void)revealSelected;
|
- (void)revealSelected;
|
||||||
- (void)makeSelectedReference;
|
- (void)makeSelectedReference;
|
||||||
|
@ -19,5 +19,6 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
- (BOOL)renameSelected:(NSString *)aNewName;
|
- (BOOL)renameSelected:(NSString *)aNewName;
|
||||||
- (void)sortBy:(NSInteger)aIdentifier ascending:(BOOL)aAscending;
|
- (void)sortBy:(NSInteger)aIdentifier ascending:(BOOL)aAscending;
|
||||||
- (void)markSelected;
|
- (void)markSelected;
|
||||||
|
- (void)removeSelected;
|
||||||
- (NSArray *)rootChildrenCounts;
|
- (NSArray *)rootChildrenCounts;
|
||||||
@end
|
@end
|
@ -22,6 +22,5 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
- (void)setDeltaValuesMode:(BOOL)aDeltaValuesMode;
|
- (void)setDeltaValuesMode:(BOOL)aDeltaValuesMode;
|
||||||
- (void)setDeltaColumns:(NSIndexSet *)aDeltaColumns;
|
- (void)setDeltaColumns:(NSIndexSet *)aDeltaColumns;
|
||||||
- (NSInteger)selectedDupeCount;
|
- (NSInteger)selectedDupeCount;
|
||||||
|
- (void)removeSelected;
|
||||||
- (IBAction)markSelected:(id)sender;
|
|
||||||
@end;
|
@end;
|
@ -68,7 +68,7 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
else {
|
else {
|
||||||
NSInteger r = 0;
|
NSInteger r = 0;
|
||||||
for (NSArray *path in selected) {
|
for (NSArray *path in selected) {
|
||||||
if ([path count] == 1) {
|
if ([path count] == 2) {
|
||||||
r++;
|
r++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -76,9 +76,15 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)markSelected:(id)sender
|
- (void)removeSelected
|
||||||
{
|
{
|
||||||
[[self py] markSelected];
|
NSInteger selectedDupeCount = [self selectedDupeCount];
|
||||||
|
if (!selectedDupeCount)
|
||||||
|
return;
|
||||||
|
NSString *msg = [NSString stringWithFormat:@"You are about to remove %d files from results. Continue?",selectedDupeCount];
|
||||||
|
if ([Dialogs askYesNo:msg] == NSAlertSecondButtonReturn) // NO
|
||||||
|
return;
|
||||||
|
[[self py] removeSelected];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Datasource */
|
/* Datasource */
|
||||||
@ -161,6 +167,18 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)tableViewHadDeletePressed:(NSTableView *)tableView
|
||||||
|
{
|
||||||
|
[self removeSelected];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)tableViewHadSpacePressed:(NSTableView *)tableView
|
||||||
|
{
|
||||||
|
[[self py] markSelected];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
/* don't calls saveEdits and cancelEdits */
|
/* don't calls saveEdits and cancelEdits */
|
||||||
- (void)outlineViewDidEndEditing:(HSOutlineView *)outlineView
|
- (void)outlineViewDidEndEditing:(HSOutlineView *)outlineView
|
||||||
{
|
{
|
||||||
|
@ -12,17 +12,13 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
#import "ResultOutline.h"
|
#import "ResultOutline.h"
|
||||||
#import "PyDupeGuru.h"
|
#import "PyDupeGuru.h"
|
||||||
|
|
||||||
@interface MatchesView : HSOutlineView
|
|
||||||
- (void)keyDown:(NSEvent *)theEvent;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface ResultWindowBase : NSWindowController
|
@interface ResultWindowBase : NSWindowController
|
||||||
{
|
{
|
||||||
@protected
|
@protected
|
||||||
IBOutlet PyDupeGuruBase *py;
|
IBOutlet PyDupeGuruBase *py;
|
||||||
IBOutlet id app;
|
IBOutlet id app;
|
||||||
IBOutlet NSSegmentedControl *deltaSwitch;
|
IBOutlet NSSegmentedControl *deltaSwitch;
|
||||||
IBOutlet MatchesView *matches;
|
IBOutlet HSOutlineView *matches;
|
||||||
IBOutlet NSSegmentedControl *pmSwitch;
|
IBOutlet NSSegmentedControl *pmSwitch;
|
||||||
IBOutlet NSTextField *stats;
|
IBOutlet NSTextField *stats;
|
||||||
IBOutlet NSMenu *columnsMenu;
|
IBOutlet NSMenu *columnsMenu;
|
||||||
@ -63,6 +59,7 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
- (IBAction)resetColumnsToDefault:(id)sender;
|
- (IBAction)resetColumnsToDefault:(id)sender;
|
||||||
- (IBAction)revealSelected:(id)sender;
|
- (IBAction)revealSelected:(id)sender;
|
||||||
- (IBAction)showPreferencesPanel:(id)sender;
|
- (IBAction)showPreferencesPanel:(id)sender;
|
||||||
|
- (IBAction)startDuplicateScan:(id)sender;
|
||||||
- (IBAction)switchSelected:(id)sender;
|
- (IBAction)switchSelected:(id)sender;
|
||||||
- (IBAction)toggleColumn:(id)sender;
|
- (IBAction)toggleColumn:(id)sender;
|
||||||
- (IBAction)toggleDelta:(id)sender;
|
- (IBAction)toggleDelta:(id)sender;
|
||||||
|
@ -14,22 +14,6 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
#import "AppDelegate.h"
|
#import "AppDelegate.h"
|
||||||
#import "Consts.h"
|
#import "Consts.h"
|
||||||
|
|
||||||
@implementation MatchesView
|
|
||||||
- (void)keyDown:(NSEvent *)theEvent
|
|
||||||
{
|
|
||||||
unichar key = [[theEvent charactersIgnoringModifiers] characterAtIndex:0];
|
|
||||||
// get flags and strip the lower 16 (device dependant) bits
|
|
||||||
NSUInteger flags = ( [theEvent modifierFlags] & 0x00FF );
|
|
||||||
if (((key == NSDeleteFunctionKey) || (key == NSDeleteCharacter)) && (flags == 0))
|
|
||||||
[self sendAction:@selector(removeSelected:) to:[self delegate]];
|
|
||||||
else
|
|
||||||
if ((key == 0x20) && (flags == 0)) // Space
|
|
||||||
[self sendAction:@selector(markSelected:) to:[self delegate]];
|
|
||||||
else
|
|
||||||
[super keyDown:theEvent];
|
|
||||||
}
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation ResultWindowBase
|
@implementation ResultWindowBase
|
||||||
- (void)awakeFromNib
|
- (void)awakeFromNib
|
||||||
{
|
{
|
||||||
@ -155,7 +139,6 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
- (IBAction)changePowerMarker:(id)sender
|
- (IBAction)changePowerMarker:(id)sender
|
||||||
{
|
{
|
||||||
[outline setPowerMarkerMode:[pmSwitch selectedSegment] == 1];
|
[outline setPowerMarkerMode:[pmSwitch selectedSegment] == 1];
|
||||||
// [self outlineView:matches didClickTableColumn:nil];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)copyMarked:(id)sender
|
- (IBAction)copyMarked:(id)sender
|
||||||
@ -279,13 +262,7 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
|
|
||||||
- (IBAction)removeSelected:(id)sender
|
- (IBAction)removeSelected:(id)sender
|
||||||
{
|
{
|
||||||
NSInteger selectedDupeCount = [outline selectedDupeCount];
|
[outline removeSelected];
|
||||||
if (!selectedDupeCount)
|
|
||||||
return;
|
|
||||||
NSString *msg = [NSString stringWithFormat:@"You are about to remove %d files from results. Continue?",selectedDupeCount];
|
|
||||||
if ([Dialogs askYesNo:msg] == NSAlertSecondButtonReturn) // NO
|
|
||||||
return;
|
|
||||||
[py removeSelected];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)renameSelected:(id)sender
|
- (IBAction)renameSelected:(id)sender
|
||||||
@ -310,6 +287,11 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
[preferencesPanel showWindow:sender];
|
[preferencesPanel showWindow:sender];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (IBAction)startDuplicateScan:(id)sender
|
||||||
|
{
|
||||||
|
// Virtual
|
||||||
|
}
|
||||||
|
|
||||||
- (IBAction)switchSelected:(id)sender
|
- (IBAction)switchSelected:(id)sender
|
||||||
{
|
{
|
||||||
[py makeSelectedReference];
|
[py makeSelectedReference];
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
<integer value="406"/>
|
<integer value="219"/>
|
||||||
<integer value="29"/>
|
<integer value="29"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||||
@ -1668,14 +1668,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<int key="connectionID">212</int>
|
<int key="connectionID">212</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">matches</string>
|
|
||||||
<reference key="source" ref="339936126"/>
|
|
||||||
<reference key="destination" ref="40047569"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">245</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
<object class="IBConnectionRecord">
|
||||||
<object class="IBOutletConnection" key="connection">
|
<object class="IBOutletConnection" key="connection">
|
||||||
<string key="label">initialFirstResponder</string>
|
<string key="label">initialFirstResponder</string>
|
||||||
@ -1684,14 +1676,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<int key="connectionID">279</int>
|
<int key="connectionID">279</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">delegate</string>
|
|
||||||
<reference key="source" ref="40047569"/>
|
|
||||||
<reference key="destination" ref="339936126"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">410</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
<object class="IBConnectionRecord">
|
||||||
<object class="IBOutletConnection" key="connection">
|
<object class="IBOutletConnection" key="connection">
|
||||||
<string key="label">stats</string>
|
<string key="label">stats</string>
|
||||||
@ -1932,14 +1916,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<int key="connectionID">758</int>
|
<int key="connectionID">758</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBOutletConnection" key="connection">
|
|
||||||
<string key="label">py</string>
|
|
||||||
<reference key="source" ref="40047569"/>
|
|
||||||
<reference key="destination" ref="875360857"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">764</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
<object class="IBConnectionRecord">
|
||||||
<object class="IBActionConnection" key="connection">
|
<object class="IBActionConnection" key="connection">
|
||||||
<string key="label">removeSelected:</string>
|
<string key="label">removeSelected:</string>
|
||||||
@ -2220,6 +2196,14 @@
|
|||||||
</object>
|
</object>
|
||||||
<int key="connectionID">1175</int>
|
<int key="connectionID">1175</int>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="IBConnectionRecord">
|
||||||
|
<object class="IBOutletConnection" key="connection">
|
||||||
|
<string key="label">matches</string>
|
||||||
|
<reference key="source" ref="339936126"/>
|
||||||
|
<reference key="destination" ref="40047569"/>
|
||||||
|
</object>
|
||||||
|
<int key="connectionID">1176</int>
|
||||||
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||||
<object class="NSArray" key="orderedObjects">
|
<object class="NSArray" key="orderedObjects">
|
||||||
@ -3399,7 +3383,7 @@
|
|||||||
<string>{340, 340}</string>
|
<string>{340, 340}</string>
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||||
<boolean value="YES"/>
|
<boolean value="YES"/>
|
||||||
<string>MatchesView</string>
|
<string>HSOutlineView</string>
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||||
<boolean value="YES"/>
|
<boolean value="YES"/>
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||||
@ -3577,7 +3561,7 @@
|
|||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<nil key="sourceID"/>
|
<nil key="sourceID"/>
|
||||||
<int key="maxID">1175</int>
|
<int key="maxID">1176</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||||
@ -3656,7 +3640,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">dgbase/AppDelegate.h</string>
|
<string key="minorKey">../base/AppDelegate.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
@ -3668,19 +3652,22 @@
|
|||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">MatchesView</string>
|
<string key="className">HSOutlineView</string>
|
||||||
<string key="superclassName">OutlineView</string>
|
<string key="superclassName">NSOutlineView</string>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="417275989">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="384069338">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">dgbase/ResultWindow.h</string>
|
<string key="minorKey">../views/HSOutlineView.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">MatchesView</string>
|
<string key="className">NSObject</string>
|
||||||
<string key="superclassName">OutlineView</string>
|
<reference key="sourceIdentifier" ref="384069338"/>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
</object>
|
||||||
<string key="majorKey">IBUserSource</string>
|
<object class="IBPartialClassDescription">
|
||||||
<string key="minorKey"/>
|
<string key="className">NSObject</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="653924221">
|
||||||
|
<string key="majorKey">IBProjectSource</string>
|
||||||
|
<string key="minorKey">../views/NSTableViewAdditions.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
@ -3692,31 +3679,15 @@
|
|||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">OutlineView</string>
|
<string key="className">NSTableView</string>
|
||||||
<string key="superclassName">NSOutlineView</string>
|
<reference key="sourceIdentifier" ref="653924221"/>
|
||||||
<object class="NSMutableDictionary" key="outlets">
|
|
||||||
<string key="NS.key.0">py</string>
|
|
||||||
<string key="NS.object.0">PyApp</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">cocoalib/Outline.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">OutlineView</string>
|
|
||||||
<string key="superclassName">NSOutlineView</string>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBUserSource</string>
|
|
||||||
<string key="minorKey"/>
|
|
||||||
</object>
|
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">PyApp</string>
|
<string key="className">PyApp</string>
|
||||||
<string key="superclassName">PyRegistrable</string>
|
<string key="superclassName">PyRegistrable</string>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">cocoalib/PyApp.h</string>
|
<string key="minorKey">../PyApp.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
@ -3748,7 +3719,7 @@
|
|||||||
<string key="superclassName">PyApp</string>
|
<string key="superclassName">PyApp</string>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">dgbase/PyDupeGuru.h</string>
|
<string key="minorKey">../base/PyDupeGuru.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
@ -3756,7 +3727,7 @@
|
|||||||
<string key="superclassName">NSObject</string>
|
<string key="superclassName">NSObject</string>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">cocoalib/PyRegistrable.h</string>
|
<string key="minorKey">../PyRegistrable.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
@ -3790,7 +3761,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">cocoalib/RecentDirectories.h</string>
|
<string key="minorKey">../RecentDirectories.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
@ -3805,123 +3776,14 @@
|
|||||||
<string key="className">ResultWindow</string>
|
<string key="className">ResultWindow</string>
|
||||||
<string key="superclassName">ResultWindowBase</string>
|
<string key="superclassName">ResultWindowBase</string>
|
||||||
<object class="NSMutableDictionary" key="actions">
|
<object class="NSMutableDictionary" key="actions">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<string key="NS.key.0">removeDeadTracks:</string>
|
||||||
<object class="NSArray" key="dict.sortedKeys">
|
<string key="NS.object.0">id</string>
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>clearIgnoreList:</string>
|
|
||||||
<string>filter:</string>
|
|
||||||
<string>ignoreSelected:</string>
|
|
||||||
<string>markAll:</string>
|
|
||||||
<string>markInvert:</string>
|
|
||||||
<string>markNone:</string>
|
|
||||||
<string>markSelected:</string>
|
|
||||||
<string>markToggle:</string>
|
|
||||||
<string>openSelected:</string>
|
|
||||||
<string>refresh:</string>
|
|
||||||
<string>removeMarked:</string>
|
|
||||||
<string>removeSelected:</string>
|
|
||||||
<string>renameSelected:</string>
|
|
||||||
<string>resetColumnsToDefault:</string>
|
|
||||||
<string>revealSelected:</string>
|
|
||||||
<string>startDuplicateScan:</string>
|
|
||||||
<string>toggleDelta:</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableArray" key="dict.values">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="outlets">
|
|
||||||
<string key="NS.key.0">filterField</string>
|
|
||||||
<string key="NS.object.0">NSSearchField</string>
|
|
||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
<string key="majorKey">IBProjectSource</string>
|
<string key="majorKey">IBProjectSource</string>
|
||||||
<string key="minorKey">ResultWindow.h</string>
|
<string key="minorKey">ResultWindow.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">ResultWindow</string>
|
|
||||||
<string key="superclassName">ResultWindowBase</string>
|
|
||||||
<object class="NSMutableDictionary" key="actions">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<object class="NSArray" key="dict.sortedKeys">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>changeDelta:</string>
|
|
||||||
<string>changePowerMarker:</string>
|
|
||||||
<string>collapseAll:</string>
|
|
||||||
<string>copyMarked:</string>
|
|
||||||
<string>deleteMarked:</string>
|
|
||||||
<string>expandAll:</string>
|
|
||||||
<string>exportToXHTML:</string>
|
|
||||||
<string>moveMarked:</string>
|
|
||||||
<string>switchSelected:</string>
|
|
||||||
<string>togglePowerMarker:</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableArray" key="dict.values">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="outlets">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<object class="NSArray" key="dict.sortedKeys">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>actionMenuView</string>
|
|
||||||
<string>app</string>
|
|
||||||
<string>deltaSwitch</string>
|
|
||||||
<string>deltaSwitchView</string>
|
|
||||||
<string>filterFieldView</string>
|
|
||||||
<string>matches</string>
|
|
||||||
<string>pmSwitch</string>
|
|
||||||
<string>pmSwitchView</string>
|
|
||||||
<string>py</string>
|
|
||||||
<string>stats</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableArray" key="dict.values">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>NSSegmentedControl</string>
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>MatchesView</string>
|
|
||||||
<string>NSSegmentedControl</string>
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>PyDupeGuru</string>
|
|
||||||
<string>NSTextField</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBUserSource</string>
|
|
||||||
<string key="minorKey"/>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">ResultWindowBase</string>
|
<string key="className">ResultWindowBase</string>
|
||||||
<string key="superclassName">NSWindowController</string>
|
<string key="superclassName">NSWindowController</string>
|
||||||
@ -3931,15 +3793,29 @@
|
|||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
<string>changeDelta:</string>
|
<string>changeDelta:</string>
|
||||||
<string>changePowerMarker:</string>
|
<string>changePowerMarker:</string>
|
||||||
|
<string>clearIgnoreList:</string>
|
||||||
<string>copyMarked:</string>
|
<string>copyMarked:</string>
|
||||||
<string>deleteMarked:</string>
|
<string>deleteMarked:</string>
|
||||||
<string>expandAll:</string>
|
|
||||||
<string>exportToXHTML:</string>
|
<string>exportToXHTML:</string>
|
||||||
|
<string>filter:</string>
|
||||||
|
<string>ignoreSelected:</string>
|
||||||
|
<string>markAll:</string>
|
||||||
|
<string>markInvert:</string>
|
||||||
|
<string>markNone:</string>
|
||||||
|
<string>markSelected:</string>
|
||||||
<string>moveMarked:</string>
|
<string>moveMarked:</string>
|
||||||
|
<string>openClicked:</string>
|
||||||
|
<string>openSelected:</string>
|
||||||
|
<string>removeMarked:</string>
|
||||||
|
<string>removeSelected:</string>
|
||||||
|
<string>renameSelected:</string>
|
||||||
<string>resetColumnsToDefault:</string>
|
<string>resetColumnsToDefault:</string>
|
||||||
|
<string>revealSelected:</string>
|
||||||
<string>showPreferencesPanel:</string>
|
<string>showPreferencesPanel:</string>
|
||||||
|
<string>startDuplicateScan:</string>
|
||||||
<string>switchSelected:</string>
|
<string>switchSelected:</string>
|
||||||
<string>toggleColumn:</string>
|
<string>toggleColumn:</string>
|
||||||
|
<string>toggleDelta:</string>
|
||||||
<string>toggleDetailsPanel:</string>
|
<string>toggleDetailsPanel:</string>
|
||||||
<string>togglePowerMarker:</string>
|
<string>togglePowerMarker:</string>
|
||||||
</object>
|
</object>
|
||||||
@ -3958,6 +3834,20 @@
|
|||||||
<string>id</string>
|
<string>id</string>
|
||||||
<string>id</string>
|
<string>id</string>
|
||||||
<string>id</string>
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
|
<string>id</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMutableDictionary" key="outlets">
|
<object class="NSMutableDictionary" key="outlets">
|
||||||
@ -3967,6 +3857,7 @@
|
|||||||
<string>app</string>
|
<string>app</string>
|
||||||
<string>columnsMenu</string>
|
<string>columnsMenu</string>
|
||||||
<string>deltaSwitch</string>
|
<string>deltaSwitch</string>
|
||||||
|
<string>filterField</string>
|
||||||
<string>matches</string>
|
<string>matches</string>
|
||||||
<string>pmSwitch</string>
|
<string>pmSwitch</string>
|
||||||
<string>py</string>
|
<string>py</string>
|
||||||
@ -3977,13 +3868,17 @@
|
|||||||
<string>id</string>
|
<string>id</string>
|
||||||
<string>NSMenu</string>
|
<string>NSMenu</string>
|
||||||
<string>NSSegmentedControl</string>
|
<string>NSSegmentedControl</string>
|
||||||
<string>MatchesView</string>
|
<string>NSSearchField</string>
|
||||||
|
<string>HSOutlineView</string>
|
||||||
<string>NSSegmentedControl</string>
|
<string>NSSegmentedControl</string>
|
||||||
<string>PyDupeGuruBase</string>
|
<string>PyDupeGuruBase</string>
|
||||||
<string>NSTextField</string>
|
<string>NSTextField</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<reference key="sourceIdentifier" ref="417275989"/>
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBProjectSource</string>
|
||||||
|
<string key="minorKey">../base/ResultWindow.h</string>
|
||||||
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">SUUpdater</string>
|
<string key="className">SUUpdater</string>
|
||||||
@ -4605,7 +4500,7 @@
|
|||||||
<integer value="3000" key="NS.object.0"/>
|
<integer value="3000" key="NS.object.0"/>
|
||||||
</object>
|
</object>
|
||||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||||
<string key="IBDocument.LastKnownRelativeProjectPath">../../dupeguru.xcodeproj</string>
|
<string key="IBDocument.LastKnownRelativeProjectPath">../../me/dupeguru.xcodeproj</string>
|
||||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||||
</data>
|
</data>
|
||||||
</archive>
|
</archive>
|
||||||
|
@ -12,5 +12,4 @@ http://www.hardcoded.net/licenses/hs_license
|
|||||||
|
|
||||||
@interface ResultWindow : ResultWindowBase {}
|
@interface ResultWindow : ResultWindowBase {}
|
||||||
- (IBAction)removeDeadTracks:(id)sender;
|
- (IBAction)removeDeadTracks:(id)sender;
|
||||||
- (IBAction)startDuplicateScan:(id)sender;
|
|
||||||
@end
|
@end
|
||||||
|
@ -275,7 +275,7 @@ class DupeGuru(RegistrableApplication, Broadcaster):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def remove_duplicates(self, duplicates):
|
def remove_duplicates(self, duplicates):
|
||||||
self.results.remove_duplicates(duplicates)
|
self.results.remove_duplicates(self.without_ref(duplicates))
|
||||||
self.notify('results_changed')
|
self.notify('results_changed')
|
||||||
|
|
||||||
def remove_marked(self):
|
def remove_marked(self):
|
||||||
|
@ -87,9 +87,6 @@ class PyDupeGuruBase(PyRegistrable):
|
|||||||
def removeMarked(self):
|
def removeMarked(self):
|
||||||
self.py.remove_marked()
|
self.py.remove_marked()
|
||||||
|
|
||||||
def removeSelected(self):
|
|
||||||
self.py.remove_selected()
|
|
||||||
|
|
||||||
def renameSelected_(self,newname):
|
def renameSelected_(self,newname):
|
||||||
return self.py.rename_selected(newname)
|
return self.py.rename_selected(newname)
|
||||||
|
|
||||||
@ -182,6 +179,9 @@ class PyResultOutline(PyOutline):
|
|||||||
def markSelected(self):
|
def markSelected(self):
|
||||||
self.py.app.toggle_selected_mark_state()
|
self.py.app.toggle_selected_mark_state()
|
||||||
|
|
||||||
|
def removeSelected(self):
|
||||||
|
self.py.app.remove_selected()
|
||||||
|
|
||||||
def rootChildrenCounts(self):
|
def rootChildrenCounts(self):
|
||||||
return self.py.root_children_counts()
|
return self.py.root_children_counts()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user