diff options
author | drx777 <david.rekowski@gmx.de> | 2010-04-28 17:11:41 +0000 |
---|---|---|
committer | drx777 <david.rekowski@gmx.de> | 2010-04-28 17:11:41 +0000 |
commit | f36685ae1bee7b9274de27414ab8b64dbc57770f (patch) | |
tree | 269b242812332fab9bfdbe37955fbfbe72a87def /Interfaces/English.lproj/MainMenu.xib | |
parent | 29b42d1c3b751781fb70684f5bb779001d19b1f3 (diff) | |
download | sequelpro-f36685ae1bee7b9274de27414ab8b64dbc57770f.tar.gz sequelpro-f36685ae1bee7b9274de27414ab8b64dbc57770f.tar.bz2 sequelpro-f36685ae1bee7b9274de27414ab8b64dbc57770f.zip |
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
Diffstat (limited to 'Interfaces/English.lproj/MainMenu.xib')
-rw-r--r-- | Interfaces/English.lproj/MainMenu.xib | 89 |
1 files changed, 73 insertions, 16 deletions
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 @@ <reference key="NSOnImage" ref="625762401"/> <reference key="NSMixedImage" ref="315854375"/> </object> + <object class="NSMenuItem" id="820553150"> + <reference key="NSMenu" ref="172963563"/> + <string key="NSTitle">Duplicate Database...</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="625762401"/> + <reference key="NSMixedImage" ref="315854375"/> + </object> + <object class="NSMenuItem" id="97991687"> + <reference key="NSMenu" ref="172963563"/> + <string key="NSTitle">Rename Database...</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="625762401"/> + <reference key="NSMixedImage" ref="315854375"/> + </object> <object class="NSMenuItem" id="602994413"> <reference key="NSMenu" ref="172963563"/> <string key="NSTitle">Delete Database...</string> @@ -1273,13 +1289,12 @@ <reference key="NSOnImage" ref="625762401"/> <reference key="NSMixedImage" ref="315854375"/> </object> - <object class="NSMenuItem" id="788707136"> + <object class="NSMenuItem" id="93508151"> <reference key="NSMenu" ref="172963563"/> <bool key="NSIsDisabled">YES</bool> <bool key="NSIsSeparator">YES</bool> <string key="NSTitle"/> <string key="NSKeyEquiv"/> - <int key="NSKeyEquivModMask">1048576</int> <int key="NSMnemonicLoc">2147483647</int> <reference key="NSOnImage" ref="625762401"/> <reference key="NSMixedImage" ref="315854375"/> @@ -2970,6 +2985,22 @@ </object> <int key="connectionID">1076</int> </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">copyDatabase:</string> + <reference key="source" ref="63651044"/> + <reference key="destination" ref="820553150"/> + </object> + <int key="connectionID">1080</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">renameDatabase:</string> + <reference key="source" ref="63651044"/> + <reference key="destination" ref="97991687"/> + </object> + <int key="connectionID">1083</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -3408,7 +3439,6 @@ <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="653250987"/> <reference ref="602994413"/> - <reference ref="788707136"/> <reference ref="265095049"/> <reference ref="14535230"/> <reference ref="197143231"/> @@ -3418,6 +3448,9 @@ <reference ref="6656160"/> <reference ref="806896137"/> <reference ref="7204100"/> + <reference ref="93508151"/> + <reference ref="820553150"/> + <reference ref="97991687"/> </object> <reference key="parent" ref="693420496"/> </object> @@ -3432,11 +3465,6 @@ <reference key="parent" ref="172963563"/> </object> <object class="IBObjectRecord"> - <int key="objectID">632</int> - <reference key="object" ref="788707136"/> - <reference key="parent" ref="172963563"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">633</int> <reference key="object" ref="265095049"/> <reference key="parent" ref="172963563"/> @@ -4383,6 +4411,21 @@ <reference key="object" ref="853409386"/> <reference key="parent" ref="709725194"/> </object> + <object class="IBObjectRecord"> + <int key="objectID">1077</int> + <reference key="object" ref="820553150"/> + <reference key="parent" ref="172963563"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">1079</int> + <reference key="object" ref="93508151"/> + <reference key="parent" ref="172963563"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">1081</int> + <reference key="object" ref="97991687"/> + <reference key="parent" ref="172963563"/> + </object> </object> </object> <object class="NSMutableDictionary" key="flattenedProperties"> @@ -4417,6 +4460,11 @@ <string>106.editorWindowContentRectSynchronizationRect</string> <string>1061.IBPluginDependency</string> <string>1071.IBPluginDependency</string> + <string>1077.IBPluginDependency</string> + <string>1077.ImportedFromIB2</string> + <string>1079.IBPluginDependency</string> + <string>1081.IBPluginDependency</string> + <string>1081.ImportedFromIB2</string> <string>111.IBPluginDependency</string> <string>111.ImportedFromIB2</string> <string>129.IBPluginDependency</string> @@ -4583,8 +4631,6 @@ <string>629.ImportedFromIB2</string> <string>631.IBPluginDependency</string> <string>631.ImportedFromIB2</string> - <string>632.IBPluginDependency</string> - <string>632.ImportedFromIB2</string> <string>633.IBPluginDependency</string> <string>633.ImportedFromIB2</string> <string>634.IBPluginDependency</string> @@ -4789,6 +4835,11 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <integer value="1"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <integer value="1"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> @@ -4865,7 +4916,7 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>{{449, 1007}, {197, 53}}</string> - <string>{{230, 474}, {511, 20}}</string> + <string>{{318, 1027}, {511, 20}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>{{506, 836}, {511, 20}}</string> @@ -4944,7 +4995,7 @@ <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> - <string>{{472, 271}, {255, 203}}</string> + <string>{{560, 784}, {255, 243}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>{{312, 683}, {231, 153}}</string> @@ -4956,9 +5007,7 @@ <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>{{849, 130}, {276, 423}}</string> + <string>{{815, 44}, {276, 423}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>{{556, 185}, {279, 383}}</string> @@ -5191,7 +5240,7 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">1076</int> + <int key="maxID">1083</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -5890,6 +5939,7 @@ <string>copyChecksumFromSheet:</string> <string>copyCreateTableSyntax:</string> <string>copyCreateTableSyntaxFromSheet:</string> + <string>copyDatabase:</string> <string>export:</string> <string>exportMultipleTables:</string> <string>exportTable:</string> @@ -5970,6 +6020,7 @@ <string>id</string> <string>id</string> <string>id</string> + <string>id</string> </object> </object> <object class="NSMutableDictionary" key="outlets"> @@ -5980,6 +6031,8 @@ <string>chooseDatabaseButton</string> <string>connectionErrorDialog</string> <string>contentViewSplitter</string> + <string>copyDatabaseButton</string> + <string>copyOnlyStructureButton</string> <string>createTableSyntaxTextField</string> <string>createTableSyntaxTextView</string> <string>createTableSyntaxWindow</string> @@ -5988,6 +6041,7 @@ <string>databaseDataInstance</string> <string>databaseEncodingButton</string> <string>databaseNameField</string> + <string>databaseNewSheet</string> <string>databaseSheet</string> <string>dbTablesTableView</string> <string>encodingPopUp</string> @@ -6043,6 +6097,8 @@ <string>id</string> <string>NSWindow</string> <string>NSSplitView</string> + <string>id</string> + <string>id</string> <string>NSTextField</string> <string>NSTextView</string> <string>NSWindow</string> @@ -6052,6 +6108,7 @@ <string>id</string> <string>id</string> <string>id</string> + <string>id</string> <string>NSTableView</string> <string>NSPopUpButton</string> <string>id</string> |