2009-08-05 03:59:46 -05:00
|
|
|
/*
|
2014-04-19 11:19:11 -05:00
|
|
|
Copyright 2014 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 03:59:46 -05:00
|
|
|
|
2010-09-30 05:17:41 -05:00
|
|
|
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
2009-08-05 03:59:46 -05:00
|
|
|
which should be included with this package. The terms are also available at
|
2010-09-30 05:17:41 -05:00
|
|
|
http://www.hardcoded.net/licenses/bsd_license
|
2009-08-05 03:59:46 -05:00
|
|
|
*/
|
|
|
|
|
2009-06-01 04:55:11 -05:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2011-09-22 14:59:11 -05:00
|
|
|
#import <Quartz/Quartz.h>
|
2010-02-11 13:54:06 -06:00
|
|
|
#import "StatsLabel.h"
|
2010-09-24 08:48:59 -05:00
|
|
|
#import "ResultTable.h"
|
2010-04-12 05:21:01 -05:00
|
|
|
#import "ProblemDialog.h"
|
2012-05-30 11:10:56 -05:00
|
|
|
#import "DeletionOptions.h"
|
2010-09-24 08:48:59 -05:00
|
|
|
#import "HSTableView.h"
|
2009-06-01 04:55:11 -05:00
|
|
|
#import "PyDupeGuru.h"
|
|
|
|
|
2011-01-14 06:56:50 -06:00
|
|
|
@class AppDelegateBase;
|
|
|
|
|
2009-06-01 04:55:11 -05:00
|
|
|
@interface ResultWindowBase : NSWindowController
|
|
|
|
{
|
|
|
|
@protected
|
2012-07-26 11:18:39 -05:00
|
|
|
NSSegmentedControl *optionsSwitch;
|
|
|
|
NSToolbarItem *optionsToolbarItem;
|
|
|
|
HSTableView *matches;
|
|
|
|
NSTextField *stats;
|
|
|
|
NSSearchField *filterField;
|
2009-06-01 04:55:11 -05:00
|
|
|
|
2011-01-14 06:56:50 -06:00
|
|
|
AppDelegateBase *app;
|
2012-01-13 13:43:43 -06:00
|
|
|
PyDupeGuru *model;
|
2010-09-24 08:48:59 -05:00
|
|
|
ResultTable *table;
|
2010-02-11 13:54:06 -06:00
|
|
|
StatsLabel *statsLabel;
|
2010-04-12 05:21:01 -05:00
|
|
|
ProblemDialog *problemDialog;
|
2012-05-30 11:10:56 -05:00
|
|
|
DeletionOptions *deletionOptions;
|
2011-09-22 14:59:11 -05:00
|
|
|
QLPreviewPanel* previewPanel;
|
2009-06-01 04:55:11 -05:00
|
|
|
}
|
2012-07-26 11:18:39 -05:00
|
|
|
|
|
|
|
@property (readwrite, retain) NSSegmentedControl *optionsSwitch;
|
|
|
|
@property (readwrite, retain) NSToolbarItem *optionsToolbarItem;
|
|
|
|
@property (readwrite, retain) HSTableView *matches;
|
|
|
|
@property (readwrite, retain) NSTextField *stats;
|
|
|
|
@property (readwrite, retain) NSSearchField *filterField;
|
|
|
|
|
2011-01-14 06:56:50 -06:00
|
|
|
- (id)initWithParentApp:(AppDelegateBase *)app;
|
2011-01-15 04:38:59 -06:00
|
|
|
|
|
|
|
/* Virtual */
|
|
|
|
- (void)initResultColumns;
|
|
|
|
- (void)setScanOptions;
|
|
|
|
|
2009-06-14 09:48:47 -05:00
|
|
|
/* Helpers */
|
2009-10-30 07:56:05 -05:00
|
|
|
- (void)fillColumnsMenu;
|
2011-01-13 09:20:03 -06:00
|
|
|
- (void)updateOptionSegments;
|
2012-03-09 12:47:28 -06:00
|
|
|
- (void)showProblemDialog;
|
2012-03-20 14:43:47 -05:00
|
|
|
- (void)adjustUIToLocalization;
|
2009-06-14 09:48:47 -05:00
|
|
|
|
2009-06-01 04:55:11 -05:00
|
|
|
/* Actions */
|
2012-07-29 10:16:04 -05:00
|
|
|
- (void)changeOptions;
|
|
|
|
- (void)copyMarked;
|
|
|
|
- (void)trashMarked;
|
|
|
|
- (void)filter;
|
|
|
|
- (void)focusOnFilterField;
|
|
|
|
- (void)ignoreSelected;
|
|
|
|
- (void)invokeCustomCommand;
|
|
|
|
- (void)markAll;
|
|
|
|
- (void)markInvert;
|
|
|
|
- (void)markNone;
|
|
|
|
- (void)markSelected;
|
|
|
|
- (void)moveMarked;
|
|
|
|
- (void)openClicked;
|
|
|
|
- (void)openSelected;
|
|
|
|
- (void)removeMarked;
|
|
|
|
- (void)removeSelected;
|
|
|
|
- (void)renameSelected;
|
|
|
|
- (void)reprioritizeResults;
|
|
|
|
- (void)resetColumnsToDefault;
|
|
|
|
- (void)revealSelected;
|
|
|
|
- (void)saveResults;
|
|
|
|
- (void)startDuplicateScan;
|
|
|
|
- (void)switchSelected;
|
|
|
|
- (void)toggleColumn:(id)sender;
|
|
|
|
- (void)toggleDelta;
|
|
|
|
- (void)toggleDetailsPanel;
|
|
|
|
- (void)togglePowerMarker;
|
|
|
|
- (void)toggleQuicklookPanel;
|
2009-06-01 04:55:11 -05:00
|
|
|
@end
|