2009-06-01 09:55:11 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "Outline.h"
|
|
|
|
#import "DirectoryPanel.h"
|
|
|
|
#import "PyDupeGuru.h"
|
|
|
|
|
|
|
|
@interface MatchesView : OutlineView
|
|
|
|
- (void)keyDown:(NSEvent *)theEvent;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface ResultWindowBase : NSWindowController
|
|
|
|
{
|
|
|
|
@protected
|
|
|
|
IBOutlet PyDupeGuruBase *py;
|
|
|
|
IBOutlet id app;
|
|
|
|
IBOutlet NSView *actionMenuView;
|
|
|
|
IBOutlet NSSegmentedControl *deltaSwitch;
|
|
|
|
IBOutlet NSView *deltaSwitchView;
|
|
|
|
IBOutlet NSView *filterFieldView;
|
|
|
|
IBOutlet MatchesView *matches;
|
2009-06-16 08:04:23 +00:00
|
|
|
IBOutlet NSSegmentedControl *pmSwitch;
|
2009-06-01 09:55:11 +00:00
|
|
|
IBOutlet NSView *pmSwitchView;
|
2009-06-14 15:13:11 +00:00
|
|
|
IBOutlet NSTextField *stats;
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
BOOL _powerMode;
|
|
|
|
BOOL _displayDelta;
|
|
|
|
}
|
2009-06-14 14:48:47 +00:00
|
|
|
/* Override */
|
2009-06-01 09:55:11 +00:00
|
|
|
- (NSString *)logoImageName;
|
2009-06-14 14:48:47 +00:00
|
|
|
|
|
|
|
/* Helpers */
|
|
|
|
- (NSArray *)getSelected:(BOOL)aDupesOnly;
|
|
|
|
- (NSArray *)getSelectedPaths:(BOOL)aDupesOnly;
|
2009-06-16 09:07:33 +00:00
|
|
|
- (void)updatePySelection;
|
2009-06-14 14:48:47 +00:00
|
|
|
- (void)performPySelection:(NSArray *)aIndexPaths;
|
2009-06-14 15:13:11 +00:00
|
|
|
- (void)refreshStats;
|
2009-06-14 14:48:47 +00:00
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
/* Actions */
|
|
|
|
- (IBAction)changeDelta:(id)sender;
|
2009-06-16 08:04:23 +00:00
|
|
|
- (IBAction)changePowerMarker:(id)sender;
|
2009-06-01 09:55:11 +00:00
|
|
|
- (IBAction)copyMarked:(id)sender;
|
|
|
|
- (IBAction)deleteMarked:(id)sender;
|
|
|
|
- (IBAction)expandAll:(id)sender;
|
|
|
|
- (IBAction)moveMarked:(id)sender;
|
2009-06-14 14:48:47 +00:00
|
|
|
- (IBAction)switchSelected:(id)sender;
|
2009-06-16 08:04:23 +00:00
|
|
|
- (IBAction)togglePowerMarker:(id)sender;
|
2009-06-14 14:48:47 +00:00
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
/* Notifications */
|
|
|
|
- (void)jobCompleted:(NSNotification *)aNotification;
|
|
|
|
@end
|