mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-10 17:59:02 +00:00
6a7af81685
--HG-- branch : xibless rename : cocoa/base/AppDelegate.h => cocoa/base/AppDelegateBase.h rename : cocoa/base/AppDelegate.m => cocoa/base/AppDelegateBase.m
79 lines
2.2 KiB
Objective-C
79 lines
2.2 KiB
Objective-C
/*
|
|
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
|
|
|
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
which should be included with this package. The terms are also available at
|
|
http://www.hardcoded.net/licenses/bsd_license
|
|
*/
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <Sparkle/SUUpdater.h>
|
|
#import "PyDupeGuru.h"
|
|
#import "ResultWindow.h"
|
|
#import "DetailsPanel.h"
|
|
#import "DirectoryPanel.h"
|
|
#import "IgnoreListDialog.h"
|
|
#import "HSAboutBox.h"
|
|
#import "HSRecentFiles.h"
|
|
|
|
@interface AppDelegateBase : NSObject
|
|
{
|
|
NSMenu *recentResultsMenu;
|
|
NSMenu *actionsMenu;
|
|
NSMenu *columnsMenu;
|
|
SUUpdater *updater;
|
|
|
|
PyDupeGuru *model;
|
|
ResultWindowBase *_resultWindow;
|
|
DirectoryPanel *_directoryPanel;
|
|
DetailsPanel *_detailsPanel;
|
|
IgnoreListDialog *_ignoreListDialog;
|
|
NSWindowController *_preferencesPanel;
|
|
HSAboutBox *_aboutBox;
|
|
HSRecentFiles *_recentResults;
|
|
}
|
|
|
|
@property (readwrite, retain) NSMenu *recentResultsMenu;
|
|
@property (readwrite, retain) NSMenu *actionsMenu;
|
|
@property (readwrite, retain) NSMenu *columnsMenu;
|
|
@property (readwrite, retain) SUUpdater *updater;
|
|
|
|
/* Virtual */
|
|
- (PyDupeGuru *)model;
|
|
- (ResultWindowBase *)createResultWindow;
|
|
- (DirectoryPanel *)createDirectoryPanel;
|
|
- (DetailsPanel *)createDetailsPanel;
|
|
- (NSString *)homepageURL;
|
|
|
|
/* Public */
|
|
- (void)finalizeInit;
|
|
- (ResultWindowBase *)resultWindow;
|
|
- (DirectoryPanel *)directoryPanel;
|
|
- (DetailsPanel *)detailsPanel;
|
|
- (HSRecentFiles *)recentResults;
|
|
|
|
/* Delegate */
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification;
|
|
- (void)applicationWillBecomeActive:(NSNotification *)aNotification;
|
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender;
|
|
- (void)applicationWillTerminate:(NSNotification *)aNotification;
|
|
- (void)recentFileClicked:(NSString *)path;
|
|
|
|
/* Actions */
|
|
- (void)loadResults;
|
|
- (void)openWebsite;
|
|
- (void)openHelp;
|
|
- (void)showAboutBox;
|
|
- (void)showDirectoryWindow;
|
|
- (void)showPreferencesPanel;
|
|
- (void)showResultWindow;
|
|
- (void)showIgnoreList;
|
|
- (void)startScanning;
|
|
|
|
/* model --> view */
|
|
- (void)showMessage:(NSString *)msg;
|
|
- (void)setupAsRegistered;
|
|
- (void)showFairwareNagWithPrompt:(NSString *)prompt;
|
|
- (void)showDemoNagWithPrompt:(NSString *)prompt;
|
|
@end
|