1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Fixed delta columns.

This commit is contained in:
Virgil Dupras
2011-11-27 12:54:58 -05:00
parent 7e95404903
commit 0571151c5f
7 changed files with 9 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ http://www.hardcoded.net/licenses/bsd_license
@interface ResultTable : HSTable <QLPreviewPanelDataSource, QLPreviewPanelDelegate>
{
NSIndexSet *_deltaColumns;
NSSet *_deltaColumns;
HSColumns *columns;
}
- (id)initWithPy:(id)aPy view:(NSTableView *)aTableView;
@@ -24,7 +24,7 @@ http://www.hardcoded.net/licenses/bsd_license
- (void)setPowerMarkerMode:(BOOL)aPowerMarkerMode;
- (BOOL)deltaValuesMode;
- (void)setDeltaValuesMode:(BOOL)aDeltaValuesMode;
- (void)setDeltaColumns:(NSIndexSet *)aDeltaColumns;
- (void)setDeltaColumns:(NSSet *)aDeltaColumns;
- (NSInteger)selectedDupeCount;
- (void)removeSelected;
@end;

View File

@@ -85,7 +85,7 @@ http://www.hardcoded.net/licenses/bsd_license
[[self py] setDeltaValuesMode:aDeltaValuesMode];
}
- (void)setDeltaColumns:(NSIndexSet *)aDeltaColumns
- (void)setDeltaColumns:(NSSet *)aDeltaColumns
{
[_deltaColumns release];
_deltaColumns = [aDeltaColumns retain];
@@ -165,8 +165,7 @@ http://www.hardcoded.net/licenses/bsd_license
}
else if (isMarkable) {
if ([self deltaValuesMode]) {
NSInteger i = [[column identifier] integerValue];
if ([_deltaColumns containsIndex:i]) {
if ([_deltaColumns containsObject:[column identifier]]) {
color = [NSColor orangeColor];
}
}

View File

@@ -31,7 +31,7 @@ http://www.hardcoded.net/licenses/bsd_license
[self fillColumnsMenu];
[matches setTarget:self];
[matches setDoubleAction:@selector(openClicked:)];
[table setDeltaColumns:[Utils array2IndexSet:[py deltaColumns]]];
[table setDeltaColumns:[NSSet setWithArray:[py deltaColumns]]];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jobCompleted:) name:JobCompletedNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jobStarted:) name:JobStarted object:nil];