aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-08-24 09:53:32 +0000
committerBibiko <bibiko@eva.mpg.de>2010-08-24 09:53:32 +0000
commitc4bd975b837184ed6742968982e1298d3f9ead7f (patch)
tree6e758af6ea7d9d8db187b3b664b4ee7a0c17d85f
parent8e737837b17f564e9c04f336858d1bea4d1a13a5 (diff)
downloadsequelpro-c4bd975b837184ed6742968982e1298d3f9ead7f.tar.gz
sequelpro-c4bd975b837184ed6742968982e1298d3f9ead7f.tar.bz2
sequelpro-c4bd975b837184ed6742968982e1298d3f9ead7f.zip
• added context menu for Copy, Copy with Header, Copy as SQL Insert to Custom Query table
-rw-r--r--Interfaces/English.lproj/DBView.xib150
-rw-r--r--Source/SPCustomQuery.h2
-rw-r--r--Source/SPCustomQuery.m1
3 files changed, 149 insertions, 4 deletions
diff --git a/Interfaces/English.lproj/DBView.xib b/Interfaces/English.lproj/DBView.xib
index d35fb900..256df5df 100644
--- a/Interfaces/English.lproj/DBView.xib
+++ b/Interfaces/English.lproj/DBView.xib
@@ -23,7 +23,9 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="7168"/>
+ <integer value="6225"/>
+ <integer value="7223"/>
+ <integer value="7467"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -10184,6 +10186,59 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string>
</object>
</object>
</object>
+ <object class="NSMenu" id="527545451">
+ <string key="NSTitle"/>
+ <object class="NSMutableArray" key="NSMenuItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMenuItem" id="301167516">
+ <reference key="NSMenu" ref="527545451"/>
+ <string key="NSTitle">Copy</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="450876295"/>
+ <reference key="NSMixedImage" ref="414351669"/>
+ <int key="NSTag">2001</int>
+ </object>
+ <object class="NSMenuItem" id="771032846">
+ <reference key="NSMenu" ref="527545451"/>
+ <string key="NSTitle">Copy with Column Names</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="450876295"/>
+ <reference key="NSMixedImage" ref="414351669"/>
+ <int key="NSTag">2002</int>
+ </object>
+ <object class="NSMenuItem" id="231084647">
+ <reference key="NSMenu" ref="527545451"/>
+ <string key="NSTitle">Copy as SQL INSERT</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="450876295"/>
+ <reference key="NSMixedImage" ref="414351669"/>
+ <int key="NSTag">2003</int>
+ </object>
+ <object class="NSMenuItem" id="726011785">
+ <reference key="NSMenu" ref="527545451"/>
+ <bool key="NSIsDisabled">YES</bool>
+ <bool key="NSIsSeparator">YES</bool>
+ <bool key="NSIsHidden">YES</bool>
+ <string key="NSTitle"/>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="450876295"/>
+ <reference key="NSMixedImage" ref="414351669"/>
+ </object>
+ <object class="NSMenuItem" id="275038138">
+ <reference key="NSMenu" ref="527545451"/>
+ <bool key="NSIsHidden">YES</bool>
+ <string key="NSTitle">Delete Row</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="450876295"/>
+ <reference key="NSMixedImage" ref="414351669"/>
+ </object>
+ </object>
+ </object>
<object class="NSMenu" id="294501108">
<string key="NSTitle"/>
<object class="NSMutableArray" key="NSMenuItems">
@@ -14570,6 +14625,38 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string>
</object>
<int key="connectionID">7466</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">menu</string>
+ <reference key="source" ref="7005793"/>
+ <reference key="destination" ref="527545451"/>
+ </object>
+ <int key="connectionID">7479</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">copy:</string>
+ <reference key="source" ref="444826705"/>
+ <reference key="destination" ref="301167516"/>
+ </object>
+ <int key="connectionID">7481</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">copy:</string>
+ <reference key="source" ref="444826705"/>
+ <reference key="destination" ref="771032846"/>
+ </object>
+ <int key="connectionID">7482</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">copy:</string>
+ <reference key="source" ref="444826705"/>
+ <reference key="destination" ref="231084647"/>
+ </object>
+ <int key="connectionID">7483</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -20477,6 +20564,45 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string>
<reference key="object" ref="527038904"/>
<reference key="parent" ref="67603994"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7467</int>
+ <reference key="object" ref="527545451"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="301167516"/>
+ <reference ref="771032846"/>
+ <reference ref="231084647"/>
+ <reference ref="275038138"/>
+ <reference ref="726011785"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Table Custom Query Menu</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7468</int>
+ <reference key="object" ref="301167516"/>
+ <reference key="parent" ref="527545451"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7469</int>
+ <reference key="object" ref="771032846"/>
+ <reference key="parent" ref="527545451"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7470</int>
+ <reference key="object" ref="231084647"/>
+ <reference key="parent" ref="527545451"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7473</int>
+ <reference key="object" ref="275038138"/>
+ <reference key="parent" ref="527545451"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7472</int>
+ <reference key="object" ref="726011785"/>
+ <reference key="parent" ref="527545451"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -21665,6 +21791,15 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string>
<string>7463.IBAttributePlaceholdersKey</string>
<string>7463.IBPluginDependency</string>
<string>7464.IBPluginDependency</string>
+ <string>7467.IBEditorWindowLastContentRect</string>
+ <string>7467.IBPluginDependency</string>
+ <string>7468.IBPluginDependency</string>
+ <string>7468.ImportedFromIB2</string>
+ <string>7469.IBPluginDependency</string>
+ <string>7469.ImportedFromIB2</string>
+ <string>7470.IBPluginDependency</string>
+ <string>7472.IBPluginDependency</string>
+ <string>7473.IBPluginDependency</string>
<string>748.IBPluginDependency</string>
<string>748.ImportedFromIB2</string>
<string>749.IBPluginDependency</string>
@@ -23001,7 +23136,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{337, 160}, {943, 549}}</string>
+ <string>{{-142, 249}, {943, 549}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -23291,6 +23426,15 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string>
</object>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>{{584, 533}, {228, 93}}</string>
+ <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>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -23333,7 +23477,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string>
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">7466</int>
+ <int key="maxID">7483</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
diff --git a/Source/SPCustomQuery.h b/Source/SPCustomQuery.h
index 0081ce5c..e2333c2d 100644
--- a/Source/SPCustomQuery.h
+++ b/Source/SPCustomQuery.h
@@ -47,7 +47,7 @@
#define SP_HISTORY_SAVE_MENUITEM_TAG 300001
#define SP_HISTORY_CLEAR_MENUITEM_TAG 300002
-@class SPQueryFavoriteManager, SPDataStorage, BWSplitView;
+@class SPCopyTable, SPQueryFavoriteManager, SPDataStorage, BWSplitView;
@interface SPCustomQuery : NSObject
{
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index 8c2d7e83..01ff517b 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -44,6 +44,7 @@
#import "SPDataStorage.h"
#import "SPAlertSheets.h"
#import "SPMainThreadTrampoline.h"
+#import "SPCopyTable.h"
#import <BWToolkitFramework/BWToolkitFramework.h>