2009-08-05 08:59:46 +00:00
|
|
|
/*
|
2011-04-12 10:04:01 +02:00
|
|
|
Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
|
2010-09-30 12:17:41 +02: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 12:17:41 +02: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>
|
|
|
|
#import "PyDupeGuru.h"
|
2009-10-30 14:40:17 +00:00
|
|
|
#import "ResultWindow.h"
|
2009-11-02 15:16:34 +00:00
|
|
|
#import "DetailsPanel.h"
|
2010-02-05 16:51:00 +01:00
|
|
|
#import "DirectoryPanel.h"
|
2010-12-30 13:00:44 +01:00
|
|
|
#import "HSAboutBox.h"
|
2011-01-13 16:20:03 +01:00
|
|
|
#import "HSRecentFiles.h"
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
@interface AppDelegateBase : NSObject
|
|
|
|
{
|
|
|
|
IBOutlet PyDupeGuruBase *py;
|
2011-01-13 16:20:03 +01:00
|
|
|
IBOutlet NSMenu *recentResultsMenu;
|
2011-01-22 16:12:18 +01:00
|
|
|
IBOutlet NSMenu *actionsMenu;
|
2011-01-14 13:56:50 +01:00
|
|
|
IBOutlet NSMenu *columnsMenu;
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-01-14 13:56:50 +01:00
|
|
|
ResultWindowBase *_resultWindow;
|
2010-02-05 17:05:00 +01:00
|
|
|
DirectoryPanel *_directoryPanel;
|
2010-02-05 17:15:45 +01:00
|
|
|
DetailsPanel *_detailsPanel;
|
2011-01-14 14:06:54 +01:00
|
|
|
NSWindowController *_preferencesPanel;
|
2010-12-30 13:00:44 +01:00
|
|
|
HSAboutBox *_aboutBox;
|
2011-01-13 16:20:03 +01:00
|
|
|
HSRecentFiles *_recentResults;
|
2009-06-01 09:55:11 +00:00
|
|
|
}
|
2011-01-14 13:56:50 +01:00
|
|
|
|
|
|
|
/* Virtual */
|
2009-06-01 09:55:11 +00:00
|
|
|
- (PyDupeGuruBase *)py;
|
2011-01-14 13:56:50 +01:00
|
|
|
- (ResultWindowBase *)createResultWindow;
|
|
|
|
- (DirectoryPanel *)createDirectoryPanel;
|
|
|
|
- (DetailsPanel *)createDetailsPanel;
|
|
|
|
- (NSString *)homepageURL;
|
|
|
|
|
|
|
|
/* Public */
|
|
|
|
- (ResultWindowBase *)resultWindow;
|
2010-02-05 17:05:00 +01:00
|
|
|
- (DirectoryPanel *)directoryPanel;
|
2010-02-05 17:15:45 +01:00
|
|
|
- (DetailsPanel *)detailsPanel;
|
2011-01-13 16:20:03 +01:00
|
|
|
- (HSRecentFiles *)recentResults;
|
2011-01-14 13:56:50 +01:00
|
|
|
- (NSMenu *)columnsMenu;
|
2010-12-30 13:00:44 +01:00
|
|
|
|
2011-09-06 10:03:14 -04:00
|
|
|
/* Delegate */
|
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification;
|
|
|
|
- (void)applicationWillBecomeActive:(NSNotification *)aNotification;
|
|
|
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender;
|
|
|
|
- (void)applicationWillTerminate:(NSNotification *)aNotification;
|
|
|
|
- (void)recentFileClicked:(NSString *)path;
|
|
|
|
|
2011-01-14 13:56:50 +01:00
|
|
|
/* Actions */
|
2011-01-14 15:34:10 +01:00
|
|
|
- (IBAction)loadResults:(id)sender;
|
2011-01-12 17:30:57 +01:00
|
|
|
- (IBAction)openWebsite:(id)sender;
|
|
|
|
- (IBAction)openHelp:(id)sender;
|
2011-01-14 15:34:10 +01:00
|
|
|
- (IBAction)showAboutBox:(id)sender;
|
|
|
|
- (IBAction)showDirectoryWindow:(id)sender;
|
2011-01-14 14:06:54 +01:00
|
|
|
- (IBAction)showPreferencesPanel:(id)sender;
|
2011-01-14 15:34:10 +01:00
|
|
|
- (IBAction)showResultWindow:(id)sender;
|
2011-01-14 14:41:43 +01:00
|
|
|
- (IBAction)startScanning:(id)sender;
|
2011-09-21 15:24:26 -04:00
|
|
|
|
|
|
|
/* model --> view */
|
|
|
|
- (void)showExtraFairwareReminder;
|
2009-06-01 09:55:11 +00:00
|
|
|
@end
|