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>
|
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;
|
|
|
|
@end
|