From d5100f8e96f9ea96f0660e6b21b55fb221002f84 Mon Sep 17 00:00:00 2001 From: avenjamin Date: Sat, 15 Nov 2008 16:09:15 +0000 Subject: Some initial setup for new import system --- English.lproj/MainMenu.xib | 123 ++++++--------------------------------------- TableDocument.h | 1 - TableDocument.m | 7 +-- 3 files changed, 17 insertions(+), 114 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 7dc4e9d7..de716930 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -8,7 +8,7 @@ 352.00 YES - + YES @@ -264,50 +264,12 @@ - Import + SW1wb3J04oCmA 1048576 2147483647 - submenuAction: - - Import - - YES - - - TXlTUUwgZHVtcOKApg - - 1048576 - 2147483647 - - - 1 - - - - YES - YES - - - 1048576 - 2147483647 - - - - - - Q1NWIGZpbGXigKY - - 1048576 - 2147483647 - - - 2 - - - @@ -3225,14 +3187,6 @@ 321 - - - import: - - - - 425 - export: @@ -3649,14 +3603,6 @@ 677 - - - importCSV: - - - - 678 - exportTable: @@ -3825,6 +3771,14 @@ 810 + + + import: + + + + 811 + @@ -4087,36 +4041,9 @@ YES - - - 370 - - - YES - - - - - - - - 371 - - - - - 375 - - - - - 379 - - - 372 @@ -6002,26 +5929,16 @@ 324.ImportedFromIB2 369.IBPluginDependency 369.ImportedFromIB2 - 370.IBEditorWindowLastContentRect - 370.IBPluginDependency - 370.ImportedFromIB2 - 370.editorWindowContentRectSynchronizationRect - 371.IBPluginDependency - 371.ImportedFromIB2 372.IBPluginDependency 372.ImportedFromIB2 373.IBEditorWindowLastContentRect 373.IBPluginDependency 373.ImportedFromIB2 373.editorWindowContentRectSynchronizationRect - 375.IBPluginDependency - 375.ImportedFromIB2 377.IBPluginDependency 377.ImportedFromIB2 378.IBPluginDependency 378.ImportedFromIB2 - 379.IBPluginDependency - 379.ImportedFromIB2 385.IBPluginDependency 385.ImportedFromIB2 386.IBEditorWindowLastContentRect @@ -6568,7 +6485,7 @@ Y2hhbmdlIHRoZSBvcmRlcg com.apple.InterfaceBuilder.CocoaPlugin - {{123, 602}, {511, 20}} + {{244, 424}, {511, 20}} com.apple.InterfaceBuilder.CocoaPlugin {{506, 836}, {511, 20}} @@ -6596,15 +6513,9 @@ Y2hhbmdlIHRoZSBvcmRlcg com.apple.InterfaceBuilder.CocoaPlugin - {{442, 370}, {172, 53}} - com.apple.InterfaceBuilder.CocoaPlugin - - {{399, 525}, {172, 53}} - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - {{442, 340}, {213, 93}} + {{434, 429}, {213, 93}} com.apple.InterfaceBuilder.CocoaPlugin {{399, 465}, {213, 93}} @@ -6614,10 +6525,6 @@ Y2hhbmdlIHRoZSBvcmRlcg com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - {{655, 360}, {136, 43}} com.apple.InterfaceBuilder.CocoaPlugin @@ -6892,7 +6799,7 @@ Y2hhbmdlIHRoZSBvcmRlcg com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{237, 330}, {205, 153}} + {{350, 271}, {205, 153}} com.apple.InterfaceBuilder.CocoaPlugin {{180, 535}, {182, 253}} @@ -6924,7 +6831,7 @@ Y2hhbmdlIHRoZSBvcmRlcg - 810 + 811 @@ -7157,6 +7064,7 @@ Y2hhbmdlIHRoZSBvcmRlcg YES addDatabase: analyzeTable: + cancelConnectSheet: checkTable: checksumTable: chooseDatabase: @@ -7222,6 +7130,7 @@ Y2hhbmdlIHRoZSBvcmRlcg id id id + id diff --git a/TableDocument.h b/TableDocument.h index fe0ee0eb..e1e4afe9 100644 --- a/TableDocument.h +++ b/TableDocument.h @@ -173,7 +173,6 @@ //menu methods - (BOOL)validateMenuItem:(NSMenuItem *)anItem; - (IBAction)import:(id)sender; -- (IBAction)importCSV:(id)sender; - (IBAction)export:(id)sender; - (IBAction)exportTable:(id)sender; - (IBAction)exportMultipleTables:(id)sender; diff --git a/TableDocument.m b/TableDocument.m index 968a9480..f473dfd2 100644 --- a/TableDocument.m +++ b/TableDocument.m @@ -1099,12 +1099,7 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa passes the request to the tableDump object */ { - [tableDumpInstance importFile:[sender tag]]; -} - -- (IBAction)importCSV:(id)sender -{ - return [self import:sender]; + [tableDumpInstance importFile]; } - (IBAction)export:(id)sender -- cgit v1.2.3