From f36685ae1bee7b9274de27414ab8b64dbc57770f Mon Sep 17 00:00:00 2001 From: drx777 Date: Wed, 28 Apr 2010 17:11:41 +0000 Subject: This changeset implements renaming and duplicating databases on a server. Details as follows: * altered MCPConnection listTablesFromDB:like: to return NSArray * altered MCPConnection listFieldsFromTable:like: to use backtick quoted strings for table and fieldnames * added MCPConnection listTablesFromDB for a complete table list * added SPStringAdditions.h to various files to prevent warnings * added sheets for duplicate/rename DB in DBView.xib * added duplicate/rename menu items to MainMenu.xib * added outlets in TableDocument: databaseNewSheet databaseRenameSheet databaseCopyNameField databaseRenameNameField copyOnlyStructureButton copyDatabaseButton renameDatabaseButton * added methods in TableDocument: getConnection, copyDatabase, renameDatabase, _copyDatabase, _renameDatabase * added OCMock Framework for object mocking in tests * added group Others/DatabaseActions --- Interfaces/English.lproj/MainMenu.xib | 89 ++++++++++++++++++++++++++++------- 1 file changed, 73 insertions(+), 16 deletions(-) (limited to 'Interfaces/English.lproj/MainMenu.xib') diff --git a/Interfaces/English.lproj/MainMenu.xib b/Interfaces/English.lproj/MainMenu.xib index 73ac41f5..b37bd0ad 100644 --- a/Interfaces/English.lproj/MainMenu.xib +++ b/Interfaces/English.lproj/MainMenu.xib @@ -1264,6 +1264,22 @@ + + + Duplicate Database... + + 2147483647 + + + + + + Rename Database... + + 2147483647 + + + Delete Database... @@ -1273,13 +1289,12 @@ - + YES YES - 1048576 2147483647 @@ -2970,6 +2985,22 @@ 1076 + + + copyDatabase: + + + + 1080 + + + + renameDatabase: + + + + 1083 + @@ -3408,7 +3439,6 @@ YES - @@ -3418,6 +3448,9 @@ + + + @@ -3431,11 +3464,6 @@ - - 632 - - - 633 @@ -4383,6 +4411,21 @@ + + 1077 + + + + + 1079 + + + + + 1081 + + + @@ -4417,6 +4460,11 @@ 106.editorWindowContentRectSynchronizationRect 1061.IBPluginDependency 1071.IBPluginDependency + 1077.IBPluginDependency + 1077.ImportedFromIB2 + 1079.IBPluginDependency + 1081.IBPluginDependency + 1081.ImportedFromIB2 111.IBPluginDependency 111.ImportedFromIB2 129.IBPluginDependency @@ -4583,8 +4631,6 @@ 629.ImportedFromIB2 631.IBPluginDependency 631.ImportedFromIB2 - 632.IBPluginDependency - 632.ImportedFromIB2 633.IBPluginDependency 633.ImportedFromIB2 634.IBPluginDependency @@ -4789,6 +4835,11 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -4865,7 +4916,7 @@ com.apple.InterfaceBuilder.CocoaPlugin {{449, 1007}, {197, 53}} - {{230, 474}, {511, 20}} + {{318, 1027}, {511, 20}} com.apple.InterfaceBuilder.CocoaPlugin {{506, 836}, {511, 20}} @@ -4944,7 +4995,7 @@ com.apple.InterfaceBuilder.CocoaPlugin - {{472, 271}, {255, 203}} + {{560, 784}, {255, 243}} com.apple.InterfaceBuilder.CocoaPlugin {{312, 683}, {231, 153}} @@ -4956,9 +5007,7 @@ com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - {{849, 130}, {276, 423}} + {{815, 44}, {276, 423}} com.apple.InterfaceBuilder.CocoaPlugin {{556, 185}, {279, 383}} @@ -5191,7 +5240,7 @@ - 1076 + 1083 @@ -5890,6 +5939,7 @@ copyChecksumFromSheet: copyCreateTableSyntax: copyCreateTableSyntaxFromSheet: + copyDatabase: export: exportMultipleTables: exportTable: @@ -5970,6 +6020,7 @@ id id id + id @@ -5980,6 +6031,8 @@ chooseDatabaseButton connectionErrorDialog contentViewSplitter + copyDatabaseButton + copyOnlyStructureButton createTableSyntaxTextField createTableSyntaxTextView createTableSyntaxWindow @@ -5988,6 +6041,7 @@ databaseDataInstance databaseEncodingButton databaseNameField + databaseNewSheet databaseSheet dbTablesTableView encodingPopUp @@ -6043,6 +6097,8 @@ id NSWindow NSSplitView + id + id NSTextField NSTextView NSWindow @@ -6052,6 +6108,7 @@ id id id + id NSTableView NSPopUpButton id -- cgit v1.2.3