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>
|
2010-02-07 14:26:50 +00:00
|
|
|
#import "HSOutlineView.h"
|
2011-01-13 15:20:03 +00:00
|
|
|
#import "HSRecentFiles.h"
|
2010-02-07 14:26:50 +00:00
|
|
|
#import "DirectoryOutline.h"
|
2009-06-01 09:55:11 +00:00
|
|
|
#import "PyDupeGuru.h"
|
|
|
|
|
2016-06-06 01:18:48 +00:00
|
|
|
@class AppDelegate;
|
2011-01-15 11:08:10 +00:00
|
|
|
|
2011-09-06 14:03:14 +00:00
|
|
|
@interface DirectoryPanel : NSWindowController <NSOpenSavePanelDelegate>
|
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;
|
2011-01-13 15:20:03 +00:00
|
|
|
HSRecentFiles *_recentDirectories;
|
2010-02-07 14:26:50 +00:00
|
|
|
DirectoryOutline *outline;
|
2011-01-14 14:07:11 +00:00
|
|
|
BOOL _alwaysShowPopUp;
|
2016-06-06 01:18:48 +00:00
|
|
|
NSSegmentedControl *appModeSelector;
|
2016-06-03 01:31:12 +00:00
|
|
|
NSPopUpButton *scanTypePopup;
|
2012-07-23 21:46:01 +00:00
|
|
|
NSPopUpButton *addButtonPopUp;
|
|
|
|
NSPopUpButton *loadRecentButtonPopUp;
|
|
|
|
HSOutlineView *outlineView;
|
|
|
|
NSButton *removeButton;
|
|
|
|
NSButton *loadResultsButton;
|
2009-06-01 09:55:11 +00:00
|
|
|
}
|
2012-07-23 21:46:01 +00:00
|
|
|
|
2016-06-06 01:18:48 +00:00
|
|
|
@property (readwrite, retain) NSSegmentedControl *appModeSelector;
|
2016-06-03 01:31:12 +00:00
|
|
|
@property (readwrite, retain) NSPopUpButton *scanTypePopup;
|
2012-07-23 21:46:01 +00:00
|
|
|
@property (readwrite, retain) NSPopUpButton *addButtonPopUp;
|
|
|
|
@property (readwrite, retain) NSPopUpButton *loadRecentButtonPopUp;
|
|
|
|
@property (readwrite, retain) HSOutlineView *outlineView;
|
|
|
|
@property (readwrite, retain) NSButton *removeButton;
|
|
|
|
@property (readwrite, retain) NSButton *loadResultsButton;
|
|
|
|
|
2016-06-06 01:18:48 +00:00
|
|
|
- (id)initWithParentApp:(AppDelegate *)aParentApp;
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2016-06-06 01:18:48 +00:00
|
|
|
- (void)fillPopUpMenu;
|
|
|
|
- (void)fillScanTypeMenu;
|
2012-03-20 19:43:47 +00:00
|
|
|
- (void)adjustUIToLocalization;
|
2011-01-14 14:07:11 +00:00
|
|
|
|
2012-07-23 21:46:01 +00:00
|
|
|
- (void)askForDirectory;
|
|
|
|
- (void)popupAddDirectoryMenu:(id)sender;
|
|
|
|
- (void)popupLoadRecentMenu:(id)sender;
|
|
|
|
- (void)removeSelectedDirectory;
|
2016-06-05 01:18:14 +00:00
|
|
|
- (void)startDuplicateScan;
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
- (void)addDirectory:(NSString *)directory;
|
|
|
|
- (void)refreshRemoveButtonText;
|
2013-11-24 15:12:47 +00:00
|
|
|
- (void)markAll;
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
@end
|