2009-08-05 08:59:46 +00:00
|
|
|
/*
|
2010-01-01 20:11:34 +00:00
|
|
|
Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
|
|
|
|
This software is licensed under the "HS" 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/hs_license
|
|
|
|
*/
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "Outline.h"
|
|
|
|
#import "PyDupeGuru.h"
|
|
|
|
|
|
|
|
@interface MatchesView : OutlineView
|
|
|
|
- (void)keyDown:(NSEvent *)theEvent;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface ResultWindowBase : NSWindowController
|
|
|
|
{
|
|
|
|
@protected
|
|
|
|
IBOutlet PyDupeGuruBase *py;
|
|
|
|
IBOutlet id app;
|
|
|
|
IBOutlet NSSegmentedControl *deltaSwitch;
|
|
|
|
IBOutlet MatchesView *matches;
|
2009-06-16 08:04:23 +00:00
|
|
|
IBOutlet NSSegmentedControl *pmSwitch;
|
2009-06-14 15:13:11 +00:00
|
|
|
IBOutlet NSTextField *stats;
|
2009-10-30 12:56:05 +00:00
|
|
|
IBOutlet NSMenu *columnsMenu;
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
BOOL _powerMode;
|
|
|
|
BOOL _displayDelta;
|
2009-10-30 12:56:05 +00:00
|
|
|
NSMutableArray *_resultColumns;
|
|
|
|
NSWindowController *preferencesPanel;
|
2009-06-01 09:55:11 +00:00
|
|
|
}
|
2009-06-14 14:48:47 +00:00
|
|
|
/* Helpers */
|
2009-10-30 12:56:05 +00:00
|
|
|
- (void)fillColumnsMenu;
|
2010-01-15 10:19:24 +00:00
|
|
|
- (NSTableColumn *)getColumnForIdentifier:(NSInteger)aIdentifier title:(NSString *)aTitle width:(NSInteger)aWidth refCol:(NSTableColumn *)aColumn;
|
2009-09-01 14:05:00 +00:00
|
|
|
- (NSArray *)getColumnsOrder;
|
|
|
|
- (NSDictionary *)getColumnsWidth;
|
2009-06-14 14:48:47 +00:00
|
|
|
- (NSArray *)getSelected:(BOOL)aDupesOnly;
|
|
|
|
- (NSArray *)getSelectedPaths:(BOOL)aDupesOnly;
|
2009-10-30 12:56:05 +00:00
|
|
|
- (void)initResultColumns;
|
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-10-30 12:56:05 +00:00
|
|
|
- (void)restoreColumnsPosition:(NSArray *)aColumnsOrder widths:(NSDictionary *)aColumnsWidth;
|
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;
|
2009-09-01 14:05:00 +00:00
|
|
|
- (IBAction)exportToXHTML:(id)sender;
|
2009-06-01 09:55:11 +00:00
|
|
|
- (IBAction)moveMarked:(id)sender;
|
2009-10-30 14:40:17 +00:00
|
|
|
- (IBAction)resetColumnsToDefault:(id)sender;
|
2009-10-30 12:56:05 +00:00
|
|
|
- (IBAction)showPreferencesPanel:(id)sender;
|
2009-06-14 14:48:47 +00:00
|
|
|
- (IBAction)switchSelected:(id)sender;
|
2009-10-30 12:56:05 +00:00
|
|
|
- (IBAction)toggleColumn:(id)sender;
|
2009-11-02 15:16:34 +00:00
|
|
|
- (IBAction)toggleDetailsPanel:(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
|