mirror of
				https://github.com/arsenetar/dupeguru.git
				synced 2025-09-11 17:58:17 +00:00 
			
		
		
		
	Re-organized DetailsPanel across editions in a saner way.
This commit is contained in:
		
							parent
							
								
									922ce5ae36
								
							
						
					
					
						commit
						6416469f78
					
				| @ -21,7 +21,7 @@ http://www.hardcoded.net/licenses/hs_license | ||||
|     IBOutlet ResultWindowBase *result; | ||||
|      | ||||
|     DirectoryPanel *_directoryPanel; | ||||
|     DetailsPanelBase *_detailsPanel; | ||||
|     DetailsPanel *_detailsPanel; | ||||
|     BOOL _savedResults; | ||||
| } | ||||
| - (IBAction)unlockApp:(id)sender; | ||||
| @ -29,6 +29,6 @@ http://www.hardcoded.net/licenses/hs_license | ||||
| - (PyDupeGuruBase *)py; | ||||
| - (RecentDirectories *)recentDirectories; | ||||
| - (DirectoryPanel *)directoryPanel; | ||||
| - (DetailsPanelBase *)detailsPanel; // Virtual
 | ||||
| - (DetailsPanel *)detailsPanel; | ||||
| - (void)saveResults; | ||||
| @end | ||||
|  | ||||
| @ -36,7 +36,12 @@ http://www.hardcoded.net/licenses/hs_license | ||||
|     return _directoryPanel; | ||||
| } | ||||
| 
 | ||||
| - (DetailsPanelBase *)detailsPanel { return nil; } // Virtual | ||||
| - (DetailsPanel *)detailsPanel | ||||
| { | ||||
|     if (!_detailsPanel) | ||||
|         _detailsPanel = [[DetailsPanel alloc] initWithPy:py]; | ||||
|     return _detailsPanel; | ||||
| } | ||||
| 
 | ||||
| - (void)saveResults | ||||
| { | ||||
|  | ||||
| @ -11,7 +11,7 @@ http://www.hardcoded.net/licenses/hs_license | ||||
| #import "Table.h" | ||||
| 
 | ||||
| 
 | ||||
| @interface DetailsPanelBase : NSWindowController | ||||
| @interface DetailsPanel : NSWindowController | ||||
| { | ||||
|     IBOutlet TableView *detailsTable; | ||||
| } | ||||
|  | ||||
| @ -9,7 +9,7 @@ http://www.hardcoded.net/licenses/hs_license | ||||
| #import "DetailsPanel.h" | ||||
| #import "Consts.h" | ||||
| 
 | ||||
| @implementation DetailsPanelBase | ||||
| @implementation DetailsPanel | ||||
| - (id)initWithPy:(PyApp *)aPy | ||||
| { | ||||
|     self = [super initWithWindowNibName:@"DetailsPanel"]; | ||||
|  | ||||
| @ -516,7 +516,7 @@ | ||||
| 				<bool key="EncodedWithXMLCoder">YES</bool> | ||||
| 				<object class="IBPartialClassDescription"> | ||||
| 					<string key="className">DetailsPanel</string> | ||||
| 					<string key="superclassName">DetailsPanelBase</string> | ||||
| 					<string key="superclassName">NSWindowController</string> | ||||
| 					<object class="IBClassDescriptionSource" key="sourceIdentifier"> | ||||
| 						<string key="majorKey">IBProjectSource</string> | ||||
| 						<string key="minorKey">DetailsPanel.h</string> | ||||
| @ -524,7 +524,7 @@ | ||||
| 				</object> | ||||
| 				<object class="IBPartialClassDescription"> | ||||
| 					<string key="className">DetailsPanel</string> | ||||
| 					<string key="superclassName">DetailsPanelBase</string> | ||||
| 					<string key="superclassName">NSWindowController</string> | ||||
| 					<object class="NSMutableDictionary" key="outlets"> | ||||
| 						<string key="NS.key.0">detailsTable</string> | ||||
| 						<string key="NS.object.0">NSTableView</string> | ||||
| @ -535,7 +535,7 @@ | ||||
| 					</object> | ||||
| 				</object> | ||||
| 				<object class="IBPartialClassDescription"> | ||||
| 					<string key="className">DetailsPanelBase</string> | ||||
| 					<string key="className">DetailsPanel</string> | ||||
| 					<string key="superclassName">NSWindowController</string> | ||||
| 					<object class="NSMutableDictionary" key="outlets"> | ||||
| 						<string key="NS.key.0">detailsTable</string> | ||||
|  | ||||
| @ -66,14 +66,6 @@ http://www.hardcoded.net/licenses/hs_license | ||||
|     [[self directoryPanel] toggleVisible:sender]; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| - (DetailsPanelBase *)detailsPanel | ||||
| { | ||||
|     if (!_detailsPanel) | ||||
|         _detailsPanel = [[DetailsPanel alloc] initWithPy:py]; | ||||
|     return _detailsPanel; | ||||
| } | ||||
| 
 | ||||
| - (DirectoryPanel *)directoryPanel | ||||
| { | ||||
|     if (!_directoryPanel) | ||||
|  | ||||
| @ -1,14 +0,0 @@ | ||||
| /* 
 | ||||
| Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
 | ||||
| 
 | ||||
| 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
 | ||||
| */ | ||||
| 
 | ||||
| #import <Cocoa/Cocoa.h> | ||||
| #import "../base/DetailsPanel.h" | ||||
| 
 | ||||
| 
 | ||||
| @interface DetailsPanel : DetailsPanelBase | ||||
| @end | ||||
| @ -1,12 +0,0 @@ | ||||
| /*  | ||||
| Copyright 2010 Hardcoded Software (http://www.hardcoded.net) | ||||
| 
 | ||||
| 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 | ||||
| */ | ||||
| 
 | ||||
| #import "DetailsPanel.h" | ||||
| 
 | ||||
| @implementation DetailsPanel | ||||
| @end | ||||
| @ -51,8 +51,6 @@ | ||||
| 		CE848A1909DD85810004CB44 /* Consts.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = CE848A1809DD85810004CB44 /* Consts.h */; }; | ||||
| 		CE900AD2109B238600754048 /* Preferences.xib in Resources */ = {isa = PBXBuildFile; fileRef = CE900AD1109B238600754048 /* Preferences.xib */; }; | ||||
| 		CE900AD7109B2A9B00754048 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = CE900AD6109B2A9B00754048 /* MainMenu.xib */; }; | ||||
| 		CECA899C09DB132E00A3D774 /* DetailsPanel.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = CECA899A09DB132E00A3D774 /* DetailsPanel.h */; }; | ||||
| 		CECA899D09DB132E00A3D774 /* DetailsPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = CECA899B09DB132E00A3D774 /* DetailsPanel.m */; }; | ||||
| 		CEEB135209C837A2004D2330 /* dupeguru.icns in Resources */ = {isa = PBXBuildFile; fileRef = CEEB135109C837A2004D2330 /* dupeguru.icns */; }; | ||||
| 		CEFC294609C89E3D00D9F998 /* folder32.png in Resources */ = {isa = PBXBuildFile; fileRef = CEFC294509C89E3D00D9F998 /* folder32.png */; }; | ||||
| 		CEFC295509C89FF200D9F998 /* details32.png in Resources */ = {isa = PBXBuildFile; fileRef = CEFC295309C89FF200D9F998 /* details32.png */; }; | ||||
| @ -67,7 +65,6 @@ | ||||
| 			dstSubfolderSpec = 10; | ||||
| 			files = ( | ||||
| 				CE14259F0AFB719300BD5167 /* Sparkle.framework in CopyFiles */, | ||||
| 				CECA899C09DB132E00A3D774 /* DetailsPanel.h in CopyFiles */, | ||||
| 				CE848A1909DD85810004CB44 /* Consts.h in CopyFiles */, | ||||
| 			); | ||||
| 			runOnlyForDeploymentPostprocessing = 0; | ||||
| @ -402,7 +399,6 @@ | ||||
| 				CE381C9609914ACE003581CE /* AppDelegate.m in Sources */, | ||||
| 				CE381C9C09914ADF003581CE /* ResultWindow.m in Sources */, | ||||
| 				CE68EE6809ABC48000971085 /* DirectoryPanel.m in Sources */, | ||||
| 				CECA899D09DB132E00A3D774 /* DetailsPanel.m in Sources */, | ||||
| 				CE515DF30FC6C12E00EC695D /* Dialogs.m in Sources */, | ||||
| 				CE515DF40FC6C12E00EC695D /* HSErrorReportWindow.m in Sources */, | ||||
| 				CE515DF50FC6C12E00EC695D /* Outline.m in Sources */, | ||||
|  | ||||
| @ -41,10 +41,10 @@ http://www.hardcoded.net/licenses/hs_license | ||||
|     return self; | ||||
| } | ||||
| 
 | ||||
| - (DetailsPanelBase *)detailsPanel | ||||
| - (DetailsPanel *)detailsPanel | ||||
| { | ||||
|     if (!_detailsPanel) | ||||
|         _detailsPanel = [[DetailsPanel alloc] initWithPy:py]; | ||||
|         _detailsPanel = [[DetailsPanelPE alloc] initWithPy:py]; | ||||
|     return _detailsPanel; | ||||
| } | ||||
| 
 | ||||
|  | ||||
| @ -9,7 +9,7 @@ http://www.hardcoded.net/licenses/hs_license | ||||
| #import <Cocoa/Cocoa.h> | ||||
| #import "../base/DetailsPanel.h" | ||||
| 
 | ||||
| @interface DetailsPanel : DetailsPanelBase | ||||
| @interface DetailsPanelPE : DetailsPanel | ||||
| { | ||||
|     IBOutlet NSImageView *dupeImage; | ||||
|     IBOutlet NSProgressIndicator *dupeProgressIndicator; | ||||
|  | ||||
| @ -13,7 +13,7 @@ http://www.hardcoded.net/licenses/hs_license | ||||
| #import "DetailsPanel.h" | ||||
| #import "Consts.h" | ||||
| 
 | ||||
| @implementation DetailsPanel | ||||
| @implementation DetailsPanelPE | ||||
| - (id)initWithPy:(PyApp *)aPy | ||||
| { | ||||
|     self = [super initWithPy:aPy]; | ||||
|  | ||||
| @ -30,7 +30,7 @@ | ||||
| 		<object class="NSMutableArray" key="IBDocument.RootObjects" id="433298071"> | ||||
| 			<bool key="EncodedWithXMLCoder">YES</bool> | ||||
| 			<object class="NSCustomObject" id="449950342"> | ||||
| 				<string key="NSClassName">DetailsPanel</string> | ||||
| 				<string key="NSClassName">DetailsPanelPE</string> | ||||
| 			</object> | ||||
| 			<object class="NSCustomObject" id="175405098"> | ||||
| 				<string key="NSClassName">FirstResponder</string> | ||||
| @ -854,8 +854,8 @@ | ||||
| 			<object class="NSMutableArray" key="referencedPartialClassDescriptions"> | ||||
| 				<bool key="EncodedWithXMLCoder">YES</bool> | ||||
| 				<object class="IBPartialClassDescription"> | ||||
| 					<string key="className">DetailsPanel</string> | ||||
| 					<string key="superclassName">DetailsPanelBase</string> | ||||
| 					<string key="className">DetailsPanelPE</string> | ||||
| 					<string key="superclassName">DetailsPanel</string> | ||||
| 					<object class="NSMutableDictionary" key="outlets"> | ||||
| 						<bool key="EncodedWithXMLCoder">YES</bool> | ||||
| 						<object class="NSArray" key="dict.sortedKeys"> | ||||
| @ -879,8 +879,8 @@ | ||||
| 					</object> | ||||
| 				</object> | ||||
| 				<object class="IBPartialClassDescription"> | ||||
| 					<string key="className">DetailsPanel</string> | ||||
| 					<string key="superclassName">DetailsPanelBase</string> | ||||
| 					<string key="className">DetailsPanelPE</string> | ||||
| 					<string key="superclassName">DetailsPanel</string> | ||||
| 					<object class="NSMutableDictionary" key="outlets"> | ||||
| 						<string key="NS.key.0">detailsTable</string> | ||||
| 						<string key="NS.object.0">NSTableView</string> | ||||
| @ -891,7 +891,7 @@ | ||||
| 					</object> | ||||
| 				</object> | ||||
| 				<object class="IBPartialClassDescription"> | ||||
| 					<string key="className">DetailsPanelBase</string> | ||||
| 					<string key="className">DetailsPanel</string> | ||||
| 					<string key="superclassName">NSWindowController</string> | ||||
| 					<object class="NSMutableDictionary" key="outlets"> | ||||
| 						<string key="NS.key.0">detailsTable</string> | ||||
|  | ||||
| @ -57,12 +57,5 @@ http://www.hardcoded.net/licenses/hs_license | ||||
|     [[self directoryPanel] toggleVisible:sender]; | ||||
| } | ||||
| 
 | ||||
| - (DetailsPanelBase *)detailsPanel | ||||
| { | ||||
|     if (!_detailsPanel) | ||||
|         _detailsPanel = [[DetailsPanel alloc] initWithPy:py]; | ||||
|     return _detailsPanel; | ||||
| } | ||||
| 
 | ||||
| - (PyDupeGuru *)py { return (PyDupeGuru *)py; } | ||||
| @end | ||||
|  | ||||
| @ -1,13 +0,0 @@ | ||||
| /* 
 | ||||
| Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
 | ||||
| 
 | ||||
| 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
 | ||||
| */ | ||||
| 
 | ||||
| #import <Cocoa/Cocoa.h> | ||||
| #import "../base/DetailsPanel.h" | ||||
| 
 | ||||
| @interface DetailsPanel : DetailsPanelBase | ||||
| @end | ||||
| @ -1,12 +0,0 @@ | ||||
| /*  | ||||
| Copyright 2010 Hardcoded Software (http://www.hardcoded.net) | ||||
| 
 | ||||
| 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 | ||||
| */ | ||||
| 
 | ||||
| #import "DetailsPanel.h" | ||||
| 
 | ||||
| @implementation DetailsPanel | ||||
| @end | ||||
| @ -21,8 +21,6 @@ | ||||
| 		CE4557B40AE3BC50005A9546 /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = CE45579A0AE3BC2B005A9546 /* Sparkle.framework */; }; | ||||
| 		CE6E0DFE1054E9EF008D9390 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = CE6E0DFD1054E9EF008D9390 /* dsa_pub.pem */; }; | ||||
| 		CEAC6811109B0B7E00B43C85 /* Preferences.xib in Resources */ = {isa = PBXBuildFile; fileRef = CEAC6810109B0B7E00B43C85 /* Preferences.xib */; }; | ||||
| 		CECA899C09DB132E00A3D774 /* DetailsPanel.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = CECA899A09DB132E00A3D774 /* DetailsPanel.h */; }; | ||||
| 		CECA899D09DB132E00A3D774 /* DetailsPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = CECA899B09DB132E00A3D774 /* DetailsPanel.m */; }; | ||||
| 		CEDD92DA0FDD01640031C7B7 /* BRSingleLineFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = CEDD92D70FDD01640031C7B7 /* BRSingleLineFormatter.m */; }; | ||||
| 		CEE7EA130FE675C80004E467 /* DetailsPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = CEE7EA120FE675C80004E467 /* DetailsPanel.m */; }; | ||||
| 		CEEB135209C837A2004D2330 /* dupeguru.icns in Resources */ = {isa = PBXBuildFile; fileRef = CEEB135109C837A2004D2330 /* dupeguru.icns */; }; | ||||
| @ -53,7 +51,6 @@ | ||||
| 			dstSubfolderSpec = 10; | ||||
| 			files = ( | ||||
| 				CE4557B40AE3BC50005A9546 /* Sparkle.framework in CopyFiles */, | ||||
| 				CECA899C09DB132E00A3D774 /* DetailsPanel.h in CopyFiles */, | ||||
| 			); | ||||
| 			runOnlyForDeploymentPostprocessing = 0; | ||||
| 		}; | ||||
| @ -80,8 +77,6 @@ | ||||
| 		CE45579A0AE3BC2B005A9546 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = /Library/Frameworks/Sparkle.framework; sourceTree = "<absolute>"; }; | ||||
| 		CE6E0DFD1054E9EF008D9390 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = dsa_pub.pem; path = ../base/dsa_pub.pem; sourceTree = "<group>"; }; | ||||
| 		CEAC6810109B0B7E00B43C85 /* Preferences.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Preferences.xib; path = xib/Preferences.xib; sourceTree = "<group>"; }; | ||||
| 		CECA899A09DB132E00A3D774 /* DetailsPanel.h */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.h; path = DetailsPanel.h; sourceTree = "<group>"; }; | ||||
| 		CECA899B09DB132E00A3D774 /* DetailsPanel.m */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.objc; path = DetailsPanel.m; sourceTree = "<group>"; }; | ||||
| 		CEDD92D60FDD01640031C7B7 /* BRSingleLineFormatter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BRSingleLineFormatter.h; path = ../../cocoalib/brsinglelineformatter/BRSingleLineFormatter.h; sourceTree = SOURCE_ROOT; }; | ||||
| 		CEDD92D70FDD01640031C7B7 /* BRSingleLineFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BRSingleLineFormatter.m; path = ../../cocoalib/brsinglelineformatter/BRSingleLineFormatter.m; sourceTree = SOURCE_ROOT; }; | ||||
| 		CEE7EA110FE675C80004E467 /* DetailsPanel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DetailsPanel.h; path = ../base/DetailsPanel.h; sourceTree = SOURCE_ROOT; }; | ||||
| @ -141,8 +136,6 @@ | ||||
| 			children = ( | ||||
| 				CE381C9509914ACE003581CE /* AppDelegate.h */, | ||||
| 				CE381C9409914ACE003581CE /* AppDelegate.m */, | ||||
| 				CECA899A09DB132E00A3D774 /* DetailsPanel.h */, | ||||
| 				CECA899B09DB132E00A3D774 /* DetailsPanel.m */, | ||||
| 				CEFF18A009A4D387005E6321 /* PyDupeGuru.h */, | ||||
| 				CE381C9B09914ADF003581CE /* ResultWindow.h */, | ||||
| 				CE381C9A09914ADF003581CE /* ResultWindow.m */, | ||||
| @ -376,7 +369,6 @@ | ||||
| 				8D11072D0486CEB800E47090 /* main.m in Sources */, | ||||
| 				CE381C9609914ACE003581CE /* AppDelegate.m in Sources */, | ||||
| 				CE381C9C09914ADF003581CE /* ResultWindow.m in Sources */, | ||||
| 				CECA899D09DB132E00A3D774 /* DetailsPanel.m in Sources */, | ||||
| 				CEFC7F9E0FC9517500CD5728 /* Dialogs.m in Sources */, | ||||
| 				CEFC7F9F0FC9517500CD5728 /* HSErrorReportWindow.m in Sources */, | ||||
| 				CEFC7FA00FC9517500CD5728 /* Outline.m in Sources */, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user