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>
|
2010-02-11 16:52:18 +00:00
|
|
|
#import "HSOutlineView.h"
|
2010-02-11 19:54:06 +00:00
|
|
|
#import "StatsLabel.h"
|
2010-02-11 16:52:18 +00:00
|
|
|
#import "ResultOutline.h"
|
2010-04-12 10:21:01 +00:00
|
|
|
#import "ProblemDialog.h"
|
2009-06-01 09:55:11 +00:00
|
|
|
#import "PyDupeGuru.h"
|
|
|
|
|
|
|
|
@interface ResultWindowBase : NSWindowController
|
|
|
|
{
|
|
|
|
@protected
|
|
|
|
IBOutlet PyDupeGuruBase *py;
|
|
|
|
IBOutlet id app;
|
|
|
|
IBOutlet NSSegmentedControl *deltaSwitch;
|
2010-02-12 16:15:48 +00:00
|
|
|
IBOutlet HSOutlineView *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;
|
2010-02-06 10:40:10 +00:00
|
|
|
IBOutlet NSSearchField *filterField;
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2009-10-30 12:56:05 +00:00
|
|
|
NSMutableArray *_resultColumns;
|
|
|
|
NSWindowController *preferencesPanel;
|
2010-02-11 16:52:18 +00:00
|
|
|
ResultOutline *outline;
|
2010-02-11 19:54:06 +00:00
|
|
|
StatsLabel *statsLabel;
|
2010-04-12 10:21:01 +00:00
|
|
|
ProblemDialog *problemDialog;
|
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-10-30 12:56:05 +00:00
|
|
|
- (void)initResultColumns;
|
|
|
|
- (void)restoreColumnsPosition:(NSArray *)aColumnsOrder widths:(NSDictionary *)aColumnsWidth;
|
2009-06-14 14:48:47 +00:00
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
/* Actions */
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)clearIgnoreList:(id)sender;
|
2009-06-01 09:55:11 +00:00
|
|
|
- (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;
|
2009-09-01 14:05:00 +00:00
|
|
|
- (IBAction)exportToXHTML:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)filter:(id)sender;
|
|
|
|
- (IBAction)ignoreSelected:(id)sender;
|
2010-04-12 15:43:24 +00:00
|
|
|
- (IBAction)invokeCustomCommand:(id)sender;
|
2010-08-13 11:06:18 +00:00
|
|
|
- (IBAction)loadResults:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)markAll:(id)sender;
|
|
|
|
- (IBAction)markInvert:(id)sender;
|
|
|
|
- (IBAction)markNone:(id)sender;
|
|
|
|
- (IBAction)markSelected:(id)sender;
|
2009-06-01 09:55:11 +00:00
|
|
|
- (IBAction)moveMarked:(id)sender;
|
2010-02-09 13:55:51 +00:00
|
|
|
- (IBAction)openClicked:(id)sender;
|
|
|
|
- (IBAction)openSelected:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)removeMarked:(id)sender;
|
|
|
|
- (IBAction)removeSelected:(id)sender;
|
|
|
|
- (IBAction)renameSelected:(id)sender;
|
2009-10-30 14:40:17 +00:00
|
|
|
- (IBAction)resetColumnsToDefault:(id)sender;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)revealSelected:(id)sender;
|
2010-08-13 11:06:18 +00:00
|
|
|
- (IBAction)saveResults:(id)sender;
|
2009-10-30 12:56:05 +00:00
|
|
|
- (IBAction)showPreferencesPanel:(id)sender;
|
2010-02-12 16:15:48 +00:00
|
|
|
- (IBAction)startDuplicateScan:(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;
|
2010-02-06 10:40:10 +00:00
|
|
|
- (IBAction)toggleDelta:(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
|