2009-08-05 03:59:46 -05:00
|
|
|
/*
|
2010-01-01 14:11:34 -06:00
|
|
|
Copyright 2010 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;
|
|
|
|
|
2010-02-05 10:05:00 -06:00
|
|
|
@interface DirectoryPanel : NSWindowController
|
2009-06-01 04:55:11 -05:00
|
|
|
{
|
|
|
|
IBOutlet NSPopUpButton *addButtonPopUp;
|
2011-01-15 05:08:10 -06:00
|
|
|
IBOutlet NSPopUpButton *loadRecentButtonPopUp;
|
2010-02-07 08:26:50 -06:00
|
|
|
IBOutlet HSOutlineView *outlineView;
|
2009-06-01 04:55:11 -05:00
|
|
|
IBOutlet NSButton *removeButton;
|
|
|
|
|
2011-01-15 05:08:10 -06:00
|
|
|
AppDelegateBase *_app;
|
2009-06-01 04:55:11 -05:00
|
|
|
PyDupeGuruBase *_py;
|
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;
|
2009-06-01 04:55:11 -05:00
|
|
|
}
|
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
|
|
|
|
|
2009-06-01 04:55:11 -05:00
|
|
|
- (IBAction)askForDirectory:(id)sender;
|
|
|
|
- (IBAction)popupAddDirectoryMenu:(id)sender;
|
2011-01-15 05:08:10 -06:00
|
|
|
- (IBAction)popupLoadRecentMenu:(id)sender;
|
2009-06-01 04:55:11 -05:00
|
|
|
- (IBAction)removeSelectedDirectory:(id)sender;
|
|
|
|
|
|
|
|
- (void)addDirectory:(NSString *)directory;
|
|
|
|
- (void)refreshRemoveButtonText;
|
|
|
|
@end
|