2009-08-05 03:59:46 -05:00
|
|
|
/*
|
2012-03-15 13:28:40 -05:00
|
|
|
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 03:59:46 -05:00
|
|
|
|
2010-09-30 05:17:41 -05:00
|
|
|
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
2009-08-05 03:59:46 -05:00
|
|
|
which should be included with this package. The terms are also available at
|
2010-09-30 05:17:41 -05:00
|
|
|
http://www.hardcoded.net/licenses/bsd_license
|
2009-08-05 03:59:46 -05:00
|
|
|
*/
|
|
|
|
|
2009-06-01 04:55:11 -05:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2010-02-07 08:26:50 -06:00
|
|
|
#import "HSOutlineView.h"
|
2011-01-13 09:20:03 -06:00
|
|
|
#import "HSRecentFiles.h"
|
2010-02-07 08:26:50 -06:00
|
|
|
#import "DirectoryOutline.h"
|
2009-06-01 04:55:11 -05:00
|
|
|
#import "PyDupeGuru.h"
|
|
|
|
|
2011-01-15 05:08:10 -06:00
|
|
|
@class AppDelegateBase;
|
|
|
|
|
2011-09-06 09:03:14 -05:00
|
|
|
@interface DirectoryPanel : NSWindowController <NSOpenSavePanelDelegate>
|
2009-06-01 04:55:11 -05:00
|
|
|
{
|
2011-01-15 05:08:10 -06:00
|
|
|
AppDelegateBase *_app;
|
2012-01-13 13:43:43 -06:00
|
|
|
PyDupeGuru *model;
|
2011-01-13 09:20:03 -06:00
|
|
|
HSRecentFiles *_recentDirectories;
|
2010-02-07 08:26:50 -06:00
|
|
|
DirectoryOutline *outline;
|
2011-01-14 08:07:11 -06:00
|
|
|
BOOL _alwaysShowPopUp;
|
2012-07-23 16:46:01 -05:00
|
|
|
NSPopUpButton *addButtonPopUp;
|
|
|
|
NSPopUpButton *loadRecentButtonPopUp;
|
|
|
|
HSOutlineView *outlineView;
|
|
|
|
NSButton *removeButton;
|
|
|
|
NSButton *loadResultsButton;
|
2009-06-01 04:55:11 -05:00
|
|
|
}
|
2012-07-23 16:46:01 -05: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 05:08:10 -06:00
|
|
|
- (id)initWithParentApp:(AppDelegateBase *)aParentApp;
|
2009-06-01 04:55:11 -05:00
|
|
|
|
2011-01-14 08:07:11 -06:00
|
|
|
- (void)fillPopUpMenu; // Virtual
|
2012-03-20 14:43:47 -05:00
|
|
|
- (void)adjustUIToLocalization;
|
2011-01-14 08:07:11 -06:00
|
|
|
|
2012-07-23 16:46:01 -05:00
|
|
|
- (void)askForDirectory;
|
|
|
|
- (void)popupAddDirectoryMenu:(id)sender;
|
|
|
|
- (void)popupLoadRecentMenu:(id)sender;
|
|
|
|
- (void)removeSelectedDirectory;
|
2009-06-01 04:55:11 -05:00
|
|
|
|
|
|
|
- (void)addDirectory:(NSString *)directory;
|
|
|
|
- (void)refreshRemoveButtonText;
|
|
|
|
@end
|