From a62ac5494e570f782ab9bf74270f0ca7a61e033b Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 4 Jun 2009 19:31:00 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added:=20syntax=20highlighting=20to=20the?= =?UTF-8?q?=20HUD=20window=20"Show=20Create=20Syntax"=20=E2=80=A2=20fixed:?= =?UTF-8?q?=20context=20menu=20item=20validation=20for=20"Show=20MySQL=20H?= =?UTF-8?q?elp":=20hide=20it=20when=20no=20connection=20to=20the=20customQ?= =?UTF-8?q?ueryInstance=20is=20found?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Interfaces/English.lproj/DBView.xib | 167 ++++++++++++++++++++++++++++++------ Source/CMTextView.m | 8 ++ Source/TableDocument.m | 2 +- 3 files changed, 151 insertions(+), 26 deletions(-) diff --git a/Interfaces/English.lproj/DBView.xib b/Interfaces/English.lproj/DBView.xib index 8a31c76d..004a0a64 100644 --- a/Interfaces/English.lproj/DBView.xib +++ b/Interfaces/English.lproj/DBView.xib @@ -8,8 +8,6 @@ 353.00 YES - - YES @@ -81,6 +79,7 @@ 4352 {212, 393} + YES @@ -177,6 +176,7 @@ {{1, 1}, {212, 393}} + @@ -192,6 +192,7 @@ -2147483392 {{175, 1}, {15, 481}} + _doScroller: 9.979253e-01 @@ -201,6 +202,7 @@ 256 {{-100, -100}, {141, 11}} + 257 _doScroller: @@ -209,6 +211,7 @@ {214, 395} + 530 @@ -231,6 +234,7 @@ 4352 {212, 123} + YES @@ -294,6 +298,7 @@ {{1, 1}, {212, 123}} + @@ -304,6 +309,7 @@ -2147483392 {{175, 1}, {15, 481}} + _doScroller: 9.979253e-01 @@ -313,6 +319,7 @@ 256 {{-100, -100}, {141, 11}} + 257 _doScroller: @@ -321,6 +328,7 @@ {{0, 404}, {214, 125}} + 530 @@ -331,12 +339,14 @@ {{-1, 22}, {214, 529}} + 292 {{0, -1}, {32, 25}} + YES -2080244224 @@ -365,6 +375,7 @@ 292 {{20, 0}, {46, 25}} + YES -2076049856 @@ -388,10 +399,7 @@ 1048576 2147483647 - - NSImage - button_action - + _popUpItemAction: @@ -475,6 +483,7 @@ {{197, 0}, {15, 23}} + YES 130560 @@ -507,6 +516,7 @@ {{93, 0}, {104, 23}} + YES 130560 @@ -527,6 +537,7 @@ 292 {{61, -1}, {32, 25}} + YES -2080244224 @@ -549,6 +560,7 @@ {212, 550} + NSView @@ -561,12 +573,13 @@ 274 {{-7, -10}, {735, 564}} + YES source - + 256 YES @@ -1921,7 +1934,6 @@ {{10, 7}, {700, 544}} - Structure @@ -2279,8 +2291,8 @@ YES YES - . - , + , + . NO YES NO @@ -2955,7 +2967,7 @@ 1048576 2147483647 - + _popUpItemAction: @@ -3313,7 +3325,7 @@ status - + 256 YES @@ -3340,8 +3352,32 @@ 2322 + + YES + + YES + Apple HTML pasteboard type + Apple PDF pasteboard type + Apple PICT pasteboard type + Apple PNG pasteboard type + Apple URL pasteboard type + CorePasteboardFlavorType 0x6D6F6F76 + CorePasteboardFlavorType 0x75726C20 + NSColor pasteboard type + NSFilenamesPboardType + NSStringPboardType + NeXT Encapsulated PostScript v1.2 pasteboard type + NeXT RTFD pasteboard type + NeXT Rich Text Format v1.0 pasteboard type + NeXT TIFF v4.0 pasteboard type + NeXT font pasteboard type + NeXT ruler pasteboard type + WebURLsWithTitlesPboardType + + {536, 14} + @@ -3405,6 +3441,7 @@ {{1, 1}, {536, 69}} + @@ -3416,6 +3453,7 @@ 256 {{537, 1}, {11, 69}} + 256 _doScroller: @@ -3426,6 +3464,7 @@ 256 {{-100, -100}, {87, 18}} + 1 _doScroller: @@ -3435,6 +3474,7 @@ {{96, 0}, {549, 71}} + 18 @@ -3446,6 +3486,7 @@ 268 {{22, 57}, {69, 14}} + YES 68288064 @@ -3460,6 +3501,7 @@ {645, 71} + NSView @@ -3482,6 +3524,7 @@ 2322 {536, 14} + @@ -3542,6 +3585,7 @@ {{1, 1}, {536, 196}} + @@ -3553,6 +3597,7 @@ 256 {{537, 1}, {11, 196}} + 256 _doScroller: @@ -3563,6 +3608,7 @@ 256 {{-100, -100}, {87, 18}} + 1 _doScroller: @@ -3572,6 +3618,7 @@ {{96, 0}, {549, 198}} + 18 @@ -3583,6 +3630,7 @@ 268 {{10, 184}, {81, 14}} + YES 68288064 @@ -3597,17 +3645,20 @@ {{0, 80}, {645, 198}} + NSView {{24, 30}, {645, 278}} + 268 {{81, 499}, {34, 14}} + YES 68288064 @@ -3624,6 +3675,7 @@ 266 {{305, 473}, {342, 14}} + YES 68288064 @@ -3640,6 +3692,7 @@ 266 {{308, 498}, {339, 14}} + YES 68288064 @@ -3656,6 +3709,7 @@ 268 {{58, 473}, {57, 14}} + YES 68288064 @@ -3672,6 +3726,7 @@ 268 {{59, 448}, {57, 14}} + YES 68288064 @@ -3688,6 +3743,7 @@ 268 {{117, 494}, {161, 22}} + YES -1539178944 @@ -3720,6 +3776,7 @@ 268 {{117, 469}, {161, 22}} + YES -1539178944 @@ -3752,6 +3809,7 @@ 268 {{117, 444}, {161, 22}} + YES -1539178944 @@ -3784,6 +3842,7 @@ 10 {{25, 425}, {644, 5}} + {0, 0} 67239424 @@ -3806,6 +3865,7 @@ 10 {{24, 314}, {644, 5}} + {0, 0} 67239424 @@ -3828,6 +3888,7 @@ 270 {{22, 398}, {256, 14}} + YES 68288064 @@ -3844,6 +3905,7 @@ 270 {{46, 376}, {232, 14}} + YES 68288064 @@ -3860,6 +3922,7 @@ 266 {{23, 354}, {255, 14}} + YES 68288064 @@ -3876,6 +3939,7 @@ 266 {{25, 332}, {253, 14}} + YES 68288064 @@ -3892,6 +3956,7 @@ 270 {{314, 398}, {358, 14}} + YES 68288064 @@ -3908,6 +3973,7 @@ 270 {{290, 376}, {381, 14}} + YES 68288064 @@ -3924,6 +3990,7 @@ 266 {{309, 354}, {362, 14}} + YES 68288064 @@ -3940,6 +4007,7 @@ 266 {{289, 332}, {383, 14}} + YES 68288064 @@ -3953,6 +4021,8 @@ {{10, 7}, {700, 544}} + + Status @@ -4370,30 +4440,33 @@ - + 134217731 YES YES YES - + {{221, 0}, {723, 550}} + NSView {944, 550} + YES DBViewSplitter {944, 550} + {{0, 0}, {1440, 878}} {780, 502} @@ -5614,7 +5687,7 @@ 1 - 10849 + 2049 @@ -5654,11 +5727,10 @@ {588, 316} - 1 - MSAxIDEgMC44MTk5OTk5OQA + MSAxIDEgMC45NDk5OTk5OQA 6 @@ -5686,7 +5758,6 @@ {{0, 34}, {588, 316}} - 528 @@ -9226,6 +9297,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{80, 10}, {171, 22}} + YES -2076049856 @@ -9291,6 +9363,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{29, 15}, {49, 14}} + YES 68288064 @@ -9305,10 +9378,12 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{1, 1}, {266, 40}} + {{17, 231}, {268, 56}} + {0, 0} 67239424 @@ -9342,6 +9417,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{81, 40}, {170, 22}} + YES -2076049856 @@ -9427,6 +9503,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{81, 10}, {170, 22}} + YES -2076049856 @@ -9512,6 +9589,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{15, 45}, {64, 14}} + YES 68288064 @@ -9528,6 +9606,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{19, 15}, {59, 14}} + YES 68288064 @@ -9542,10 +9621,12 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{1, 1}, {266, 71}} + {{17, 49}, {268, 87}} + {0, 0} 67239424 @@ -9579,6 +9660,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{80, 40}, {171, 22}} + YES -2076049856 @@ -9644,6 +9726,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{80, 10}, {171, 22}} + YES -2076049856 @@ -9709,6 +9792,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{123, 87}, {299, 26}} + YES -2076049856 @@ -9774,6 +9858,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{41, 45}, {37, 14}} + YES 68288064 @@ -9790,6 +9875,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{29, 15}, {49, 14}} + YES 68288064 @@ -9804,10 +9890,12 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{1, 1}, {266, 71}} + {{17, 140}, {268, 87}} + {0, 0} 67239424 @@ -9831,6 +9919,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{191, 13}, {96, 28}} + 1 YES @@ -9852,6 +9941,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{97, 13}, {96, 28}} + YES 67239424 @@ -9870,6 +9960,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {302, 307} + {{0, 0}, {1440, 878}} {3.40282e+38, 3.40282e+38} @@ -12125,6 +12216,10 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 NSView + + YES + CustomQueryEditorFont + YES @@ -15717,6 +15812,26 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 5929 + + + font: values.CustomQueryEditorFont + + + + + + font: values.CustomQueryEditorFont + font + values.CustomQueryEditorFont + + NSValueTransformerName + NSUnarchiveFromData + + 2 + + + 5935 + @@ -22933,6 +23048,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 3981.IBViewIntegration.shadowOffsetHeight 3981.IBViewIntegration.shadowOffsetWidth 3981.editorWindowContentRectSynchronizationRect + 3982.CustomClassName 3982.IBPluginDependency 3983.IBPluginDependency 3984.IBPluginDependency @@ -24629,11 +24745,12 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{343, 395}, {320, 180}} + CMTextView com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{427, 509}, {588, 350}} - {{427, 509}, {588, 350}} + {{298, 240}, {588, 350}} + {{298, 240}, {588, 350}} {{115, 214}, {588, 350}} @@ -24962,8 +25079,8 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{310, 234}, {944, 550}} - {{310, 234}, {944, 550}} + {{114, 99}, {944, 550}} + {{114, 99}, {944, 550}} {{62, 352}, {845, 504}} @@ -25357,8 +25474,8 @@ aGUgYWN0aXZlIHNlbGVjdGlvbiAo4oyl4oyYUik com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{847, 374}, {302, 307}} - {{847, 374}, {302, 307}} + {{610, 374}, {302, 307}} + {{610, 374}, {302, 307}} com.apple.InterfaceBuilder.CocoaPlugin @@ -25822,7 +25939,7 @@ Y2hhbmdlIHRoZSBvcmRlcg - 5929 + 5935 diff --git a/Source/CMTextView.m b/Source/CMTextView.m index da6e708b..b8392e30 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -2352,6 +2352,14 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) // Hide "Select Active Query" if self is not editable [[menu itemAtIndex:4] setHidden:![self isEditable]]; + if([[[self window] delegate] valueForKeyPath:@"customQueryInstance"]) { + [[menu itemAtIndex:5] setHidden:NO]; + [[menu itemAtIndex:6] setHidden:NO]; + } else { + [[menu itemAtIndex:5] setHidden:YES]; + [[menu itemAtIndex:6] setHidden:YES]; + } + return menu; } diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 6804e5a4..ca89d597 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -2196,7 +2196,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum if (sshTunnel) [sshTunnel disconnect], [sshTunnel release], sshTunnel = nil; if ([[[SPQueryConsole sharedQueryConsole] window] isVisible]) [self toggleConsole:self]; [[customQueryInstance helpWebViewWindow] release]; - [createTableSyntaxWindow release]; + [createTableSyntaxWindow orderOut:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self]; } -- cgit v1.2.3