From 00910549fefaaa0954aa080a3ec1be5a4746062b Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 2 Apr 2009 01:23:26 +0000 Subject: - Add a new "gear" action menu underneath the custom query view, including a number of items: - Add menu commands for "Run All" and "Run Selected", with additional keyboard shortcuts - cmd-R for Run all, addressing #137 - Add menu commands for indenting text, outdenting text, and to show autocompletion is available - Add menu commands to toggle autopairing and autoindenting - Also hidden menu commands for history navigation and clearing, not hooked in yet (see #207) - Add a new method to our string additions: lineRangesForRange - Add "shift right" (indent) and "shift left" (outdent) support to CMTextView, including for multiple lines --- Interfaces/English.lproj/DBView.xib | 524 ++++++++++++++++++++++++++++++++++-- 1 file changed, 495 insertions(+), 29 deletions(-) (limited to 'Interfaces/English.lproj') diff --git a/Interfaces/English.lproj/DBView.xib b/Interfaces/English.lproj/DBView.xib index fda5eac2..46020c39 100644 --- a/Interfaces/English.lproj/DBView.xib +++ b/Interfaces/English.lproj/DBView.xib @@ -8,7 +8,6 @@ 353.00 YES - YES @@ -45,7 +44,7 @@ {3.40282e+38, 3.40282e+38} {780, 480} - + 256 YES @@ -175,7 +174,6 @@ {{1, 1}, {194, 393}} - 6 @@ -207,7 +205,6 @@ {196, 395} - 530 @@ -292,7 +289,6 @@ {{1, 1}, {194, 123}} - 4 @@ -319,7 +315,6 @@ {{0, 404}, {196, 125}} - 530 @@ -371,7 +366,7 @@ -2042609409 35 - + NSImage button_action @@ -386,7 +381,10 @@ 1048576 2147483647 - + + NSImage + button_action + _popUpItemAction: @@ -551,7 +549,7 @@ source - + 256 YES @@ -1275,7 +1273,6 @@ {{1, 17}, {625, 289}} - 4 @@ -1308,7 +1305,6 @@ {{1, 0}, {625, 17}} - 4 @@ -1317,7 +1313,6 @@ {{-1, 22}, {627, 307}} - 562 @@ -1751,7 +1746,6 @@ {{1, 17}, {625, 141}} - 4 @@ -1784,7 +1778,6 @@ {{1, 0}, {625, 17}} - 4 @@ -1793,7 +1786,6 @@ {{-1, 22}, {627, 159}} - 562 @@ -1938,6 +1930,7 @@ {{10, 7}, {637, 544}} + Structure @@ -1946,7 +1939,7 @@ content - + 256 YES @@ -2553,7 +2546,6 @@ {{10, 7}, {637, 544}} - Content @@ -2843,7 +2835,7 @@ 268 - {{214, 248}, {186, 22}} + {{251, 248}, {186, 22}} YES @@ -2892,7 +2884,7 @@ 264 - {{17, 248}, {195, 22}} + {{54, 248}, {195, 22}} YES @@ -2993,6 +2985,216 @@ 25 + + + 268 + {{5, 248}, {47, 22}} + + YES + + -2076049856 + 134350848 + + + -2036186881 + 65 + + + + 400 + 75 + + + YES + + + 1048576 + 2147483647 + + NSImage + NSActionTemplate + + + + _popUpItemAction: + + + YES + + Custom Query Actions + + YES + + + + Run All Queries + r + 1048576 + 2147483647 + + + _popUpItemAction: + 1 + + + + + YES + Run Current Query + r + 1572864 + 2147483647 + + + _popUpItemAction: + 2 + + + + + YES + YES + + + 2147483647 + + + _popUpItemAction: + + + + + YES + Previous Query from History + 75yAA + 262144 + 2147483647 + + + _popUpItemAction: + 3 + + + + + YES + Next Query from History + 75yBA + 262144 + 2147483647 + + + _popUpItemAction: + 4 + + + + + YES + Clear History + + 2147483647 + + + _popUpItemAction: + 5 + + + + + YES + YES + + + 2147483647 + + + _popUpItemAction: + + + + + Shift Right + ] + 1048576 + 2147483647 + + + _popUpItemAction: + 6 + + + + + Shift Left + [ + 1048576 + 2147483647 + + + _popUpItemAction: + 7 + + + + + Completion List + Gw + 524288 + 2147483647 + + + _popUpItemAction: + 8 + + + + + YES + YES + + + 2147483647 + + + _popUpItemAction: + + + + + Indent New Lines + + 2147483647 + 1 + + + _popUpItemAction: + 9 + + + + + Auto-pair Characters + + 2147483647 + 1 + + + _popUpItemAction: + 10 + + + + YES + + 8 + YES + 1 + YES + YES + 2 + + {{0, 165}, {627, 269}} @@ -3438,14 +3640,14 @@ - + 134217731 YES YES YES - + @@ -3461,7 +3663,6 @@ {863, 550} - {{0, 0}, {1440, 878}} {780, 502} @@ -11628,6 +11829,110 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 5224 + + + performClick: + + + + 5259 + + + + runSelectionMenuItem + + + + 5260 + + + + performClick: + + + + 5261 + + + + autoindentMenuItem + + + + 5262 + + + + autopairMenuItem + + + + 5263 + + + + gearMenuItemSelected: + + + + 5264 + + + + gearMenuItemSelected: + + + + 5265 + + + + completionListMenuItem + + + + 5266 + + + + shiftLeftMenuItem + + + + 5267 + + + + shiftRightMenuItem + + + + 5268 + + + + gearMenuItemSelected: + + + + 5269 + + + + gearMenuItemSelected: + + + + 5270 + + + + gearMenuItemSelected: + + + + 5271 + @@ -15465,10 +15770,11 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 YES - - + + + @@ -16465,6 +16771,116 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 + + 5242 + + + YES + + + + + + 5243 + + + YES + + + + + + 5244 + + + YES + + + + + + + + + + + + + + + + + + + 5245 + + + + + 5246 + + + + + 5247 + + + + + 5248 + + + + + 5249 + + + + + 5250 + + + + + 5251 + + + + + 5252 + + + + + 5253 + + + + + 5254 + + + + + 5255 + + + + + 5256 + + + + + 5257 + + + + + 5258 + + + @@ -17475,6 +17891,24 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 5201.IBAttributePlaceholdersKey 5201.IBPluginDependency 5202.IBPluginDependency + 5242.IBPluginDependency + 5243.IBPluginDependency + 5244.IBEditorWindowLastContentRect + 5244.IBPluginDependency + 5245.IBPluginDependency + 5246.IBPluginDependency + 5247.IBPluginDependency + 5248.IBPluginDependency + 5249.IBPluginDependency + 5250.IBPluginDependency + 5251.IBPluginDependency + 5252.IBPluginDependency + 5253.IBPluginDependency + 5254.IBPluginDependency + 5255.IBPluginDependency + 5256.IBPluginDependency + 5257.IBPluginDependency + 5258.IBPluginDependency 557.IBPluginDependency 557.ImportedFromIB2 565.IBEditorWindowLastContentRect @@ -17941,7 +18375,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 ToolTip - Run all queries in the editor (Enter or fn-Return) + UnVuIGFsbCBxdWVyaWVzIGluIHRoZSBlZGl0b3IgKOKMmFIsIEVudGVyIG9yIGZuLVJldHVybik com.apple.InterfaceBuilder.CocoaPlugin @@ -18800,8 +19234,8 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{80, 456}, {863, 550}} - {{80, 456}, {863, 550}} + {{80, 306}, {863, 550}} + {{80, 306}, {863, 550}} {{62, 352}, {845, 504}} @@ -18984,6 +19418,24 @@ aGUgYWN0aXZlIHNlbGVjdGlvbiAo4oyl4oyYUik com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + {{286, 465}, {236, 220}} + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{456, 426}, {292, 112}} {{456, 426}, {292, 112}} @@ -19254,7 +19706,7 @@ Y2hhbmdlIHRoZSBvcmRlcg - 5224 + 5271 @@ -19328,6 +19780,7 @@ Y2hhbmdlIHRoZSBvcmRlcg closeQueryFavoritesSheet: closeSheet: copyQueryFavorite: + gearMenuItemSelected: removeQueryFavorite: runAllQueries: runSelectedQueries: @@ -19343,6 +19796,7 @@ Y2hhbmdlIHRoZSBvcmRlcg id id id + id @@ -19350,6 +19804,9 @@ Y2hhbmdlIHRoZSBvcmRlcg YES affectedRowsText + autoindentMenuItem + autopairMenuItem + completionListMenuItem copyQueryFavoriteButton customQueryView errorText @@ -19360,6 +19817,9 @@ Y2hhbmdlIHRoZSBvcmRlcg removeQueryFavoriteButton runAllButton runSelectionButton + runSelectionMenuItem + shiftLeftMenuItem + shiftRightMenuItem tableWindow textView valueSheet @@ -19368,6 +19828,9 @@ Y2hhbmdlIHRoZSBvcmRlcg YES id + NSMenuItem + NSMenuItem + NSMenuItem id CMCopyTable id @@ -19378,8 +19841,11 @@ Y2hhbmdlIHRoZSBvcmRlcg id id id + NSMenuItem + NSMenuItem + NSMenuItem id - id + CMTextView id id -- cgit v1.2.3