2009-08-05 08:59:46 +00:00
|
|
|
/*
|
2011-04-12 08:04:01 +00:00
|
|
|
Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
|
2010-09-30 10:17:41 +00:00
|
|
|
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
2009-08-05 08:59:46 +00:00
|
|
|
which should be included with this package. The terms are also available at
|
2010-09-30 10:17:41 +00:00
|
|
|
http://www.hardcoded.net/licenses/bsd_license
|
2009-08-05 08:59:46 +00:00
|
|
|
*/
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2011-09-22 19:59:11 +00:00
|
|
|
#import <Quartz/Quartz.h>
|
2010-02-11 19:54:06 +00:00
|
|
|
#import "StatsLabel.h"
|
2010-09-24 13:48:59 +00:00
|
|
|
#import "ResultTable.h"
|
2010-04-12 10:21:01 +00:00
|
|
|
#import "ProblemDialog.h"
|
2010-09-24 13:48:59 +00:00
|
|
|
#import "HSTableView.h"
|
2009-06-01 09:55:11 +00:00
|
|
|
#import "PyDupeGuru.h"
|
|
|
|
|
2011-01-14 12:56:50 +00:00
|
|
|
@class AppDelegateBase;
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
@interface ResultWindowBase : NSWindowController
|
|
|
|
{
|
|
|
|
@protected
|
2011-01-13 12:51:00 +00:00
|
|
|
IBOutlet NSSegmentedControl *optionsSwitch;
|
2010-09-24 13:48:59 +00:00
|
|
|
IBOutlet HSTableView *matches;
|
2011-01-14 12:56:50 +00:00
|
|
|
IBOutlet NSTextField *stats;
|
|
|
|
IBOutlet NSSearchField *filterField;
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-01-14 12:56:50 +00:00
|
|
|
AppDelegateBase *app;
|
2012-01-13 19:43:43 +00:00
|
|
|
PyDupeGuru *model;
|
2011-01-14 12:56:50 +00:00
|
|
|
NSMenu *columnsMenu;
|
2010-09-24 13:48:59 +00:00
|
|
|
ResultTable *table;
|
2010-02-11 19:54:06 +00:00
|
|
|
StatsLabel *statsLabel;
|
2010-04-12 10:21:01 +00:00
|
|
|
ProblemDialog *problemDialog;
|
2011-09-22 19:59:11 +00:00
|
|
|
QLPreviewPanel* previewPanel;
|
2009-06-01 09:55:11 +00:00
|
|
|
}
|
2011-01-14 12:56:50 +00:00
|
|
|
- (id)initWithParentApp:(AppDelegateBase *)app;
|
2011-01-15 10:38:59 +00:00
|
|
|
|
|
|
|
/* Virtual */
|
|
|
|
- (void)initResultColumns;
|
|
|
|
- (void)setScanOptions;
|
|
|
|
|
2009-06-14 14:48:47 +00:00
|
|
|
/* Helpers */
|
2009-10-30 12:56:05 +00:00
|
|
|
- (void)fillColumnsMenu;
|
2010-09-25 13:37:18 +00:00
|
|
|
- (void)sendMarkedToTrash:(BOOL)hardlinkDeleted;
|
2011-01-13 15:20:03 +00:00
|
|
|
- (void)updateOptionSegments;
|
2009-06-14 14:48:47 +00:00
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
/* Actions */
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)clearIgnoreList:(id)sender;
|
2011-01-13 12:51:00 +00:00
|
|
|
- (IBAction)changeOptions:(id)sender;
|
2009-06-01 09:55:11 +00:00
|
|
|
- (IBAction)copyMarked:(id)sender;
|
|
|
|
- (IBAction)deleteMarked:(id)sender;
|
2010-09-25 13:37:18 +00:00
|
|
|
- (IBAction)hardlinkMarked:(id)sender;
|
2009-09-01 14:05:00 +00:00
|
|
|
- (IBAction)exportToXHTML:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)filter:(id)sender;
|
|
|
|
- (IBAction)ignoreSelected:(id)sender;
|
2010-04-12 15:43:24 +00:00
|
|
|
- (IBAction)invokeCustomCommand:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)markAll:(id)sender;
|
|
|
|
- (IBAction)markInvert:(id)sender;
|
|
|
|
- (IBAction)markNone:(id)sender;
|
|
|
|
- (IBAction)markSelected:(id)sender;
|
2009-06-01 09:55:11 +00:00
|
|
|
- (IBAction)moveMarked:(id)sender;
|
2010-02-09 13:55:51 +00:00
|
|
|
- (IBAction)openClicked:(id)sender;
|
|
|
|
- (IBAction)openSelected:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)removeMarked:(id)sender;
|
|
|
|
- (IBAction)removeSelected:(id)sender;
|
|
|
|
- (IBAction)renameSelected:(id)sender;
|
2011-09-13 20:31:25 +00:00
|
|
|
- (IBAction)reprioritizeResults:(id)sender;
|
2009-10-30 14:40:17 +00:00
|
|
|
- (IBAction)resetColumnsToDefault:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)revealSelected:(id)sender;
|
2010-08-13 11:06:18 +00:00
|
|
|
- (IBAction)saveResults:(id)sender;
|
2010-02-12 16:15:48 +00:00
|
|
|
- (IBAction)startDuplicateScan:(id)sender;
|
2009-06-14 14:48:47 +00:00
|
|
|
- (IBAction)switchSelected:(id)sender;
|
2009-10-30 12:56:05 +00:00
|
|
|
- (IBAction)toggleColumn:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)toggleDelta:(id)sender;
|
2009-11-02 15:16:34 +00:00
|
|
|
- (IBAction)toggleDetailsPanel:(id)sender;
|
2009-06-16 08:04:23 +00:00
|
|
|
- (IBAction)togglePowerMarker:(id)sender;
|
2011-09-22 19:59:11 +00:00
|
|
|
- (IBAction)toggleQuicklookPanel:(id)sender;
|
2009-06-14 14:48:47 +00:00
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
/* Notifications */
|
|
|
|
- (void)jobCompleted:(NSNotification *)aNotification;
|
|
|
|
@end
|