2009-08-05 08:59:46 +00:00
|
|
|
/*
|
2012-03-15 18:28:40 +00:00
|
|
|
Copyright 2012 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"
|
2012-05-30 16:10:56 +00:00
|
|
|
#import "DeletionOptions.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
|
2012-07-26 16:18:39 +00:00
|
|
|
NSSegmentedControl *optionsSwitch;
|
|
|
|
NSToolbarItem *optionsToolbarItem;
|
|
|
|
HSTableView *matches;
|
|
|
|
NSTextField *stats;
|
|
|
|
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;
|
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;
|
2012-05-30 16:10:56 +00:00
|
|
|
DeletionOptions *deletionOptions;
|
2011-09-22 19:59:11 +00:00
|
|
|
QLPreviewPanel* previewPanel;
|
2009-06-01 09:55:11 +00:00
|
|
|
}
|
2012-07-26 16:18:39 +00: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 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;
|
2011-01-13 15:20:03 +00:00
|
|
|
- (void)updateOptionSegments;
|
2012-03-09 18:47:28 +00:00
|
|
|
- (void)showProblemDialog;
|
2012-03-20 19:43:47 +00:00
|
|
|
- (void)adjustUIToLocalization;
|
2009-06-14 14:48:47 +00:00
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
/* Actions */
|
2012-07-29 15:16:04 +00: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 09:55:11 +00:00
|
|
|
@end
|