2009-08-05 08:59:46 +00:00
|
|
|
/*
|
2015-01-03 21:30:57 +00:00
|
|
|
Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
|
2015-01-03 21:33:16 +00:00
|
|
|
This software is licensed under the "GPLv3" 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
|
2015-01-03 21:33:16 +00:00
|
|
|
http://www.gnu.org/licenses/gpl-3.0.html
|
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"
|
|
|
|
#import "HSTableView.h"
|
2009-06-01 09:55:11 +00:00
|
|
|
#import "PyDupeGuru.h"
|
|
|
|
|
2016-06-06 01:18:48 +00:00
|
|
|
@class AppDelegate;
|
2011-01-14 12:56:50 +00:00
|
|
|
|
2016-06-05 01:18:14 +00:00
|
|
|
@interface ResultWindow : NSWindowController
|
2009-06-01 09:55:11 +00:00
|
|
|
{
|
|
|
|
@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
|
|
|
|
2016-06-06 01:18:48 +00:00
|
|
|
AppDelegate *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;
|
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;
|
|
|
|
|
2016-06-06 01:18:48 +00:00
|
|
|
- (id)initWithParentApp:(AppDelegate *)app;
|
2011-01-15 10:38:59 +00:00
|
|
|
|
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-20 19:43:47 +00:00
|
|
|
- (void)adjustUIToLocalization;
|
2016-06-06 01:18:48 +00:00
|
|
|
- (void)initResultColumns:(ResultTable *)aTable;
|
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)switchSelected;
|
|
|
|
- (void)toggleColumn:(id)sender;
|
|
|
|
- (void)toggleDelta;
|
|
|
|
- (void)toggleDetailsPanel;
|
|
|
|
- (void)togglePowerMarker;
|
|
|
|
- (void)toggleQuicklookPanel;
|
2009-06-01 09:55:11 +00:00
|
|
|
@end
|