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"
|
|
|
|
|
2011-01-15 11:08:10 +00:00
|
|
|
@class AppDelegateBase;
|
|
|
|
|
2011-09-06 14:03:14 +00:00
|
|
|
@interface DirectoryPanel : NSWindowController <NSOpenSavePanelDelegate>
|
2009-06-01 09:55:11 +00:00
|
|
|
{
|
2011-01-15 11:08:10 +00:00
|
|
|
AppDelegateBase *_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;
|
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
|
|
|
|
|
|
|
@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;
|
|
|
|
|
2011-01-15 11:08:10 +00:00
|
|
|
- (id)initWithParentApp:(AppDelegateBase *)aParentApp;
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-01-14 14:07:11 +00:00
|
|
|
- (void)fillPopUpMenu; // Virtual
|
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;
|
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
|