mirror of
				https://github.com/arsenetar/dupeguru.git
				synced 2025-09-11 17:58:17 +00:00 
			
		
		
		
	dgse cocoa: Adjusted to the dgme change (applicationDidFinishLaunching: pushed down and column removal in xib).
--HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40234
This commit is contained in:
		
							parent
							
								
									06859fe9cd
								
							
						
					
					
						commit
						024e3c380f
					
				| @ -8,14 +8,11 @@ http://www.hardcoded.net/licenses/hs_license | |||||||
| 
 | 
 | ||||||
| #import <Cocoa/Cocoa.h> | #import <Cocoa/Cocoa.h> | ||||||
| #import "dgbase/AppDelegate.h" | #import "dgbase/AppDelegate.h" | ||||||
| #import "ResultWindow.h" |  | ||||||
| #import "DirectoryPanel.h" | #import "DirectoryPanel.h" | ||||||
| #import "PyDupeGuru.h" | #import "PyDupeGuru.h" | ||||||
| 
 | 
 | ||||||
| @interface AppDelegate : AppDelegateBase | @interface AppDelegate : AppDelegateBase | ||||||
| { | { | ||||||
|     IBOutlet ResultWindow *result; |  | ||||||
|      |  | ||||||
|     DirectoryPanel *_directoryPanel; |     DirectoryPanel *_directoryPanel; | ||||||
| } | } | ||||||
| - (IBAction)openWebsite:(id)sender; | - (IBAction)openWebsite:(id)sender; | ||||||
|  | |||||||
| @ -65,23 +65,6 @@ http://www.hardcoded.net/licenses/hs_license | |||||||
| - (PyDupeGuru *)py { return (PyDupeGuru *)py; } | - (PyDupeGuru *)py { return (PyDupeGuru *)py; } | ||||||
| 
 | 
 | ||||||
| //Delegate | //Delegate | ||||||
| - (void)applicationDidFinishLaunching:(NSNotification *)aNotification |  | ||||||
| { |  | ||||||
|     [[ProgressController mainProgressController] setWorker:py]; |  | ||||||
|     NSUserDefaults *ud = [NSUserDefaults standardUserDefaults]; |  | ||||||
|     //Restore Columns |  | ||||||
|     NSArray *columnsOrder = [ud arrayForKey:@"columnsOrder"]; |  | ||||||
|     NSDictionary *columnsWidth = [ud dictionaryForKey:@"columnsWidth"]; |  | ||||||
|     if ([columnsOrder count]) |  | ||||||
|         [result restoreColumnsPosition:columnsOrder widths:columnsWidth]; |  | ||||||
|     //Reg stuff |  | ||||||
|     if ([RegistrationInterface showNagWithApp:[self py] name:APPNAME limitDescription:LIMIT_DESC]) |  | ||||||
|         [unlockMenuItem setTitle:@"Thanks for buying dupeGuru!"]; |  | ||||||
|     //Restore results |  | ||||||
|     [py loadIgnoreList]; |  | ||||||
|     [py loadResults]; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| - (void)applicationWillBecomeActive:(NSNotification *)aNotification | - (void)applicationWillBecomeActive:(NSNotification *)aNotification | ||||||
| { | { | ||||||
|     if (![[result window] isVisible]) |     if (![[result window] isVisible]) | ||||||
|  | |||||||
| @ -216,12 +216,14 @@ http://www.hardcoded.net/licenses/hs_license | |||||||
|     NSTableColumn *refCol = [matches tableColumnWithIdentifier:@"0"]; |     NSTableColumn *refCol = [matches tableColumnWithIdentifier:@"0"]; | ||||||
|     _resultColumns = [[NSMutableArray alloc] init]; |     _resultColumns = [[NSMutableArray alloc] init]; | ||||||
|     [_resultColumns addObject:[matches tableColumnWithIdentifier:@"0"]]; // File Name |     [_resultColumns addObject:[matches tableColumnWithIdentifier:@"0"]]; // File Name | ||||||
|     [_resultColumns addObject:[matches tableColumnWithIdentifier:@"1"]]; // Directory |     [_resultColumns addObject:[self getColumnForIdentifier:1 title:@"Directory" width:120 refCol:refCol]]; | ||||||
|     [_resultColumns addObject:[matches tableColumnWithIdentifier:@"2"]]; // Size |     NSTableColumn *sizeCol = [self getColumnForIdentifier:2 title:@"Size (KB)" width:63 refCol:refCol]; | ||||||
|  |     [[sizeCol dataCell] setAlignment:NSRightTextAlignment]; | ||||||
|  |     [_resultColumns addObject:sizeCol]; | ||||||
|     [_resultColumns addObject:[self getColumnForIdentifier:3 title:@"Kind" width:40 refCol:refCol]]; |     [_resultColumns addObject:[self getColumnForIdentifier:3 title:@"Kind" width:40 refCol:refCol]]; | ||||||
|     [_resultColumns addObject:[self getColumnForIdentifier:4 title:@"Creation" width:120 refCol:refCol]]; |     [_resultColumns addObject:[self getColumnForIdentifier:4 title:@"Creation" width:120 refCol:refCol]]; | ||||||
|     [_resultColumns addObject:[self getColumnForIdentifier:5 title:@"Modification" width:120 refCol:refCol]]; |     [_resultColumns addObject:[self getColumnForIdentifier:5 title:@"Modification" width:120 refCol:refCol]]; | ||||||
|     [_resultColumns addObject:[matches tableColumnWithIdentifier:@"6"]]; // Match % |     [_resultColumns addObject:[self getColumnForIdentifier:6 title:@"Match %" width:60 refCol:refCol]]; | ||||||
|     [_resultColumns addObject:[self getColumnForIdentifier:7 title:@"Words Used" width:120 refCol:refCol]]; |     [_resultColumns addObject:[self getColumnForIdentifier:7 title:@"Words Used" width:120 refCol:refCol]]; | ||||||
|     [_resultColumns addObject:[self getColumnForIdentifier:8 title:@"Dupe Count" width:80 refCol:refCol]]; |     [_resultColumns addObject:[self getColumnForIdentifier:8 title:@"Dupe Count" width:80 refCol:refCol]]; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user