From c06c5fe8261183d5f154edb1866608e8013ebbaa Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 29 Jul 2012 21:40:15 +0000 Subject: - Remove the last BWToolKit view items from the main nib (DBView) by redesigning the advanced Content Filter window - Tweak SPTextView to support translucent views, or views which are set not to draw their background - Fix Lion compatibility for advanced content filter default operator (Issue #1255) --- Interfaces/English.lproj/DBView.xib | 2568 +++++++++++++++++------------------ Source/SPContentFilterManager.h | 2 +- Source/SPTableContent.h | 12 +- Source/SPTableContent.m | 25 +- Source/SPTextView.m | 7 +- 5 files changed, 1270 insertions(+), 1344 deletions(-) diff --git a/Interfaces/English.lproj/DBView.xib b/Interfaces/English.lproj/DBView.xib index 1985ecc5..e52bcecf 100644 --- a/Interfaces/English.lproj/DBView.xib +++ b/Interfaces/English.lproj/DBView.xib @@ -23,7 +23,6 @@ YES - YES @@ -47,7 +46,7 @@ NSApplication - + 274 YES @@ -203,7 +202,6 @@ {{1, 1}, {218, 38}} - 6 @@ -235,7 +233,6 @@ {{-1, -13}, {220, 40}} - 133122 @@ -400,7 +397,6 @@ {214, 352} - 4 @@ -428,7 +424,6 @@ {214, 352} - 133648 @@ -532,7 +527,6 @@ {216, 146} - 6 @@ -559,7 +553,6 @@ {{-1, 0}, {216, 146}} - 133648 @@ -645,7 +638,6 @@ {214, 146} - 6 @@ -673,7 +665,6 @@ {214, 146} - 133632 @@ -1072,7 +1063,7 @@ source - + 256 YES @@ -2510,7 +2501,6 @@ {{10, 7}, {705, 544}} - Structure @@ -3520,7 +3510,7 @@ - {{1, 1}, {693, 141}} + {{1.5, 1}, {693, 141}} @@ -3645,7 +3635,7 @@ 1 - {{1, 17}, {693, 197}} + {{1.5, 17}, {693, 197}} @@ -3678,7 +3668,7 @@ YES - {{1, 0}, {693, 17}} + {{1.5, 0}, {693, 17}} @@ -4361,7 +4351,7 @@ 2322 - {{0, 6}, {222, 14}} + {222, 14} @@ -5305,7 +5295,7 @@ 1048576 2147483647 1 - + NSImage NSAdvanced @@ -5523,7 +5513,7 @@ relations - + 256 YES @@ -5540,13 +5530,13 @@ 4352 - {694, 454} + {693, 454} YES 256 - {694, 17} + {693, 17} @@ -5559,7 +5549,7 @@ YES name - 136 + 135 8 1000 @@ -5739,9 +5729,8 @@ 1 - {{1, 17}, {694, 454}} + {{1.5, 17}, {693, 454}} - 2 @@ -5772,17 +5761,15 @@ YES - {{1, 0}, {694, 17}} + {{1.5, 0}, {693, 17}} - 4 - {{6, 33}, {696, 472}} + {{6, 33}, {695, 472}} - 133682 @@ -5868,7 +5855,7 @@ NeXT TIFF v4.0 pasteboard type - {{100, 11}, {602, 23}} + {{100, 11}, {601, 23}} YES @@ -5885,7 +5872,7 @@ 266 - {{14, 515}, {687, 14}} + {{14, 515}, {686, 14}} YES @@ -5899,7 +5886,8 @@ - {{10, 7}, {706, 544}} + {{10, 7}, {705, 544}} + Relations @@ -6345,14 +6333,14 @@ - + 134217731 YES YES YES - + @@ -6368,7 +6356,6 @@ {943, 549} - NSView @@ -8672,7 +8659,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 -2038284033 1 - + LucidaGrande 13 16 @@ -9731,215 +9718,68 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 MYSQL_HELP_WINDOW YES - + 139 2 - {{131, 160}, {480, 269}} + {{162, 162}, {752, 317}} -461896704 - Filter + Advanced Filter NSPanel - {1.7976931348623157e+308, 1.7976931348623157e+308} - {380, 170} - - - 274 + {600, 317} + + + 256 YES - - - 4386 - - YES - - - 2304 - - YES - - - 4352 - {478, 1002} - - YES - - - -2147483392 - {{-26, 0}, {16, 17}} - - - YES - - 475 - 40 - 1000 - - 75628096 - 2048 - - - - 3 - MC4zMzMzMzI5ODU2AA - - - - - 337772096 - 33556480 - Text Cell - - - - - 1 - MSAxIDEAA - - - 3 - YES - YES - - - - 3 - 2 - - - 1000 - 1388314624 - - - 4 - 15 - 0 - NO - 0 - 1 - - - {{1, 1}, {478, 53}} - - - - 4 - MSAwLjE0MDAwMDAwMDYAA - - 4 - - - - -2147483392 - {{-100, -100}, {15, 120}} - - YES - 2 - - _doScroller: - 0.99253731966018677 - - - - -2147483392 - {{-100, -100}, {225, 15}} - - 1 - - _doScroller: - 0.57142859697341919 - - - {480, 55} - - 133185 - - - - QSAAAEEgAABEeoAARHqAAA - - - - 289 - {{380, 8}, {81, 28}} - - YES - - 67239424 - 134348800 - Filter - - - -2038284033 - 268435585 - - f - 200 - 25 - - - - - 289 - {{293, 9}, {81, 28}} - - YES - - 67239424 - 134348800 - Clear - - - -2038284033 - 268435585 - -  - 200 - 25 - - - - + + 274 YES - - - 272 + + + 274 YES - - + + 274 YES - - + + 2304 YES - - + + 274 - {480, 87} - + {752, 125} + + + _NS:1843 YES - - + + 256 - {480, 17} - - + {752, 17} + + + _NS:1845 + -2147483392 - {{464, 0}, {16, 17}} + {{224, 0}, {16, 17}} + _NS:1848 YES - - 477 + + 748.921875 40 1000 @@ -9953,33 +9793,30 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 - + 337772096 - 133120 + 2048 Text Cell - - + + 3 YES YES - + 3 2 - - 4 - MQA - + - 16 - -893353984 + 17 + -893386752 - 1 + 2 15 0 YES @@ -9988,396 +9825,508 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 1 - {{1, 17}, {480, 87}} - - - - 4 - MQA - + {{0, 17}, {752, 125}} + + + + _NS:1841 + + 4 - - + + -2147483392 - {{464, 17}, {15, 72}} - - + {{224, 17}, {15, 102}} + + + _NS:1860 + _doScroller: - 0.98275864124298096 + 37 + 0.1947367936372757 - - + + -2147483392 - {{1, 89}, {463, 15}} - + {{1, 95.8515625}, {751.61328125, 15}} + + + _NS:1862 1 - + _doScroller: - 0.99382716417312622 + 0.92517006802721091 - - + + 2304 YES - + - {{1, 0}, {480, 17}} - - + {752, 17} + + + + _NS:1846 + 4 - {482, 105} - - 133682 - - - - - QSAAAEEgAABBkAAAQZAAAA + {752, 142} + + + + _NS:1839 + 133680 + + + + + QSAAAEEgAABBmAAAQZgAAA - {482, 106} - + {752, 141} + + + _NS:1082 + NSView - - - 272 + + + 274 YES - - - 274 + + + 265 + {{554, 19}, {181, 14}} + + + _NS:4068 + YES + + 68288064 + 272761856 + LIKE '%@%' + + _NS:4068 + + + + 6 + System + disabledControlTextColor + + 3 + MC4zMzMzMzMzMzMzAA + + + + + + + 265 + {{678, 35}, {55, 16}} + + + _NS:610 + YES + + 67239424 + 134479872 + Edit + + LucidaGrande + 9 + 3600 + + _NS:610 + + -2038284033 + 402653313 + + o + 200 + 25 + + + + + 265 + {{537, 37}, {137, 14}} + + + _NS:4068 + YES + + 68288064 + 272761856 + Default operator: + + _NS:4068 + + + + + + + + 265 + {{537, 59}, {197, 18}} + + + _NS:682 + YES + + 67239424 + 131072 + Select distinct + + _NS:682 + + 1211912703 + 268435458 + + + + d + 200 + 25 + + + + + 265 + {{537, 79}, {197, 18}} + + + _NS:682 + YES + + 67239424 + 131072 + Negate clause + + _NS:682 + + 1211912703 + 268435458 + + + + n + 200 + 25 + + + + + 265 + {{537, 99}, {197, 18}} + + + _NS:682 + YES + + 67239424 + 131072 + Search while typing + + _NS:682 + + 1211912703 + 268435458 + + + + t + 200 + 25 + + + + + 18 YES - - - 2304 + + + 274 YES - - - 2322 - {480, 14} - - - - - - - - - - + + + 274 + + YES + + + 2304 + YES - + + + 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 + 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 + public.url + + + {480, 14} + + + + + + + + + + + + YES + + + 134 + + + + 480 + 1 + + + 100675303 + 0 + + + + YES + + YES + NSBackgroundColor + NSColor + + + YES + + + + + + + YES + + YES + NSColor + NSCursor + NSUnderline + + + YES + + + + + + + + 1 + + 6 + {513, 10000000} + {197, 4} + + - 134 - + {480, 71} + + + + + + + 2 - - 480 - 1 - - - 100675559 - 0 - - - - YES - - YES - NSBackgroundColor - NSColor - - - YES - - - + + + -2147483392 + {{464, 1}, {15, 91}} + + + + _doScroller: + 1 + 0.85256409645080566 - - - YES - - YES - NSColor - NSCursor - NSUnderline - - - YES - - - - + + + -2147483392 + {{1, 57.015625}, {481.71875, 15}} + + + 1 + + _doScroller: + 1 + 0.94565218687057495 - - - 1 - 6 - {480, 10000000} - {197, 4} - + {{18, 14}, {480, 71}} + + + + 133680 + + + - {{1, 1}, {480, 106}} - - - - - 4 - - - - -2147483392 - {{464, 1}, {15, 91}} - - - _doScroller: - 1 - 0.85256409645080566 + {{1, 1}, {516, 95}} + + + _NS:21 - - - -2147483392 - {{1, 92}, {463, 15}} - - 1 - - _doScroller: - 1 - 0.94565218687057495 + + {{17, 16}, {518, 111}} + + + _NS:18 + {0, 0} + + 67239424 + 0 + WHERE query + + + + 3 + MCAwLjgwMDAwMDAxMTkAA - {482, 108} - - 133682 - - - + + 1 + 0 + 2 + NO - {{0, 107}, {482, 108}} - + {{0, 142}, {752, 135}} + + + _NS:1084 + NSView - {{-1, 55}, {482, 215}} - + {{0, 40}, {752, 277}} + + + _NS:1080 2 - - NO - - YES - - YES - - - - - YES - - - - - - YES - - - YES - - - - YES - - YES - - - - - YES - - - - - - YES - - YES - - - - - YES - - - - - 0 - NO - - - 292 - {{68, 28}, {207, 18}} - + + + 289 + {{595, 12}, {143, 32}} + + + _NS:610 YES - + 67239424 - 131072 - Negate Clause - - - 1211912703 - 268435458 - - + 134217728 + Filter + + _NS:610 + + -2038284033 + 268435585 + - n + f 200 25 - - + + 292 - {{68, 10}, {207, 18}} - + {{14, 12}, {216, 32}} + + + _NS:610 YES - + 67239424 - 131072 - Search while typing - - - 1211912703 - 268435458 - - + 134217728 + Search all fields + + _NS:610 + + -2038284033 + 402653313 + - t + a 200 25 - - - 292 - {{10, 11}, {32, 32}} - + + + 289 + {{452, 12}, {143, 32}} + + + _NS:610 YES - - -2076049856 - 2048 + + 67239424 + 134217728 + Clear - - -2042609409 - 70 + _NS:610 + + -2038284033 + 268435585 + - - 400 - 75 - - - YES - - - 2147483647 - 1 - - - - _popUpItemAction: - - - YES - - OtherViews - - YES - - - - Set Default Operator… - o - 1572864 - 2147483647 - - - _popUpItemAction: - - - - - Search in all Fields - a - 1572864 - 2147483647 - - - _popUpItemAction: - 1 - - - - - Select Distinct - d - 1048576 - 2147483647 - - - _popUpItemAction: - - - - - YES - YES - - - 2147483647 - - - _popUpItemAction: - - - - - YES - Swap Table - s - 1572864 - 2147483647 - - - _popUpItemAction: - 2 - - - - YES - - - YES - 1 - YES - YES +  + 200 + 25 - {480, 269} + {752, 317} + + + _NS:103 - {{0, 0}, {1280, 778}} - {380, 192} + {{0, 0}, {1440, 878}} + {600, 339} {1.7976931348623157e+308, 1.7976931348623157e+308} SPTableFilterPanel - YES + NO 1 @@ -10391,15 +10340,16 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {251, 102} {251, 102} - + 256 YES - 268 + 289 {{140, 13}, {96, 28}} + 1 YES @@ -10418,9 +10368,10 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 - 268 + 257 {{46, 13}, {96, 28}} + YES 67239424 @@ -10441,6 +10392,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{17, 76}, {208, 14}} + YES 68288064 @@ -10454,9 +10406,10 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 - 268 + 266 {{20, 51}, {214, 22}} + YES 343014976 @@ -10530,9 +10483,10 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 - 268 + 292 {{17, 14}, {25, 25}} + YES 67239424 @@ -10550,6 +10504,8 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {251, 102} + + {{0, 0}, {1920, 1058}} {251, 124} @@ -10972,15 +10928,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 - - 6 - System - disabledControlTextColor - - 3 - MC4zMzMzMzMzMzMzAA - - + @@ -11352,6 +11300,10 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 NSView + + YES + FilterTableDefaultOperator + YES @@ -15727,142 +15679,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 7501 - - - tableFilterClear: - - - - 7526 - - - - filterTableWhereClause - - - - 7529 - - - - dataSource - - - - 7530 - - - - delegate - - - - 7531 - - - - filterTableView - - - - 7532 - - - - initialFirstResponder - - - - 7536 - - - - filterTableNegateCheckbox - - - - 7571 - - - - setDefaultOperator: - - - - 7572 - - - - toggleLookAllFieldsMode: - - - - 7573 - - - - filterTableGearLookAllFields - - - - 7574 - - - - swapFilterTable: - - - - 7575 - - - - toggleNegateClause: - - - - 7576 - - - - filterTable: - - - - 7580 - - - - filterTableFilterButton - - - - 7581 - - - - filterTableLiveSearchCheckbox - - - - 7587 - - - - delegate - - - - 7588 - - - - filterTableWindow - - - - 7608 - closeSheet: @@ -15895,22 +15711,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 7632 - - - toggleDistinctSelect: - - - - 7635 - - - - filterTableDistinctMenuItem - - - - 7636 - editTrigger: @@ -16543,6 +16343,182 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 8067 + + + delegate + + + + 8156 + + + + dataSource + + + + 8157 + + + + delegate + + + + 8158 + + + + initialFirstResponder + + + + 8159 + + + + filterTableView + + + + 8160 + + + + filterTableWindow + + + + 8161 + + + + filterTableWhereClause + + + + 8162 + + + + setDefaultOperator: + + + + 8163 + + + + value: values.FilterTableDefaultOperator + + + + + + value: values.FilterTableDefaultOperator + value + values.FilterTableDefaultOperator + 2 + + + 8167 + + + + toggleLookAllFieldsMode: + + + + 8168 + + + + filterTableSearchAllFields + + + + 8169 + + + + toggleDistinctSelect: + + + + 8170 + + + + filterTableDistinctCheckbox + + + + 8171 + + + + toggleNegateClause: + + + + 8172 + + + + filterTableNegateCheckbox + + + + 8173 + + + + filterTableLiveSearchCheckbox + + + + 8174 + + + + tableFilterClear: + + + + 8175 + + + + filterTable: + + + + 8176 + + + + filterTableFilterButton + + + + 8177 + + + + filterTableSplitView + + + + 8178 + + + + filterTableQueryBox + + + + 8179 + @@ -19209,384 +19185,98 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 - 7000 - - - - - 7001 - - - - - 7002 - - - - - 7043 - - - YES - - - - Master DB View - - - 7051 - - - YES - - - - - - 7056 - - - - - 7073 - - - SPIndexesController - - - 7467 - - - YES - - - - - - - - Table Custom Query Menu - - - 7468 - - - - - 7469 - - - - - 7470 - - - - - 7473 - - - - - 7472 - - - - - 7499 - - - - - 7500 - - - - - 7502 - - - YES - - - - Filter Table Window - - - 7503 - - - YES - - - - - - - - - - - - 7504 - - - YES - - - - - - - 7505 - - - YES - - - - - - 7506 - - - YES - - - - - - 7511 - - - - - 7512 - - - - - 7513 - - - YES - - - - - - 7514 - - - YES - - - - - - 7515 - - - YES - - - - - - - - - 7516 - - - - - 7517 - - - - - 7518 - - - YES - - - - - - 7519 - - - - - 7520 - - - YES - - - - - - 7521 - - - - - 7522 - - - YES - - - - - - - - 7523 - - - - - 7524 - - - - - 7525 - - - - - 7537 - - - YES - - - + 7000 + + - 7538 - - + 7001 + + - 7563 - - - YES - - - + 7002 + + - 7564 - + 7043 + YES - + - + + Master DB View - 7565 - + 7051 + YES - - - - - - + - - - - 7570 - - - - - 7569 - - - - - 7568 - - + - 7567 - - + 7056 + + - 7566 - - + 7073 + + + SPIndexesController - 7583 - + 7467 + YES - + + + + + - + + Table Custom Query Menu - 7584 - - + 7468 + + - 7602 - - - YES - - - - - + 7469 + + - 7603 - - + 7470 + + - 7604 - - + 7473 + + - 7605 - - - YES - - - + 7472 + + - 7606 - - - YES - - - + 7499 + + - 7607 - - + 7500 + + 7609 @@ -19667,11 +19357,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 - - 7633 - - - 7668 @@ -23264,6 +22949,274 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 + + 8068 + + + YES + + + + Advanced Filter Table Window + + + 8069 + + + YES + + + + + + + Filter Table Window + + + 8079 + + + YES + + + + + + + 8080 + + + YES + + + + + + 8081 + + + YES + + + + + + + + + + + + 8082 + + + YES + + + + + + 8083 + + + YES + + + + + + 8084 + + + + + 8085 + + + YES + + + + + + 8086 + + + + + 8127 + + + YES + + + + + + 8128 + + + + + 8129 + + + YES + + + + + + 8130 + + + + + 8131 + + + YES + + + + + + 8132 + + + + + 8133 + + + YES + + + + + + 8134 + + + + + 8135 + + + YES + + + + + + 8136 + + + + + 8137 + + + YES + + + + + + 8138 + + + + + 8139 + + + YES + + + + + + 8140 + + + + + 8141 + + + YES + + + + + + + + + 8142 + + + + + 8143 + + + + + 8144 + + + YES + + + + + + 8145 + + + + + 8146 + + + YES + + + + + + 8149 + + + + + 8152 + + + YES + + + + + + + + 8153 + + + + + 8154 + + + + + 8155 + + + @@ -23559,6 +23512,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 514.IBPluginDependency 514.ImportedFromIB2 5148.IBPluginDependency + 5148.IBViewBoundsToFrameTransform 5149.IBPluginDependency 515.IBPluginDependency 515.IBViewBoundsToFrameTransform @@ -24459,58 +24413,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 7494.IBPluginDependency 7499.IBPluginDependency 7500.IBPluginDependency - 7502.IBEditorWindowLastContentRect - 7502.IBPluginDependency - 7502.IBWindowTemplateEditedContentRect - 7502.NSWindowTemplate.visibleAtLaunch - 7502.windowTemplate.hasMinSize - 7502.windowTemplate.minSize - 7503.IBPluginDependency - 7504.IBPluginDependency - 7505.IBAttributePlaceholdersKey - 7505.IBPluginDependency - 7506.IBAttributePlaceholdersKey - 7506.IBPluginDependency - 7511.IBPluginDependency - 7512.IBPluginDependency - 7513.IBPluginDependency - 7514.IBPluginDependency - 7515.IBPluginDependency - 7516.IBPluginDependency - 7517.IBPluginDependency - 7518.CustomClassName - 7518.IBPluginDependency - 7519.IBPluginDependency - 7520.IBPluginDependency - 7521.IBPluginDependency - 7522.IBPluginDependency - 7523.CustomClassName - 7523.IBPluginDependency - 7524.IBPluginDependency - 7525.IBPluginDependency - 7537.IBAttributePlaceholdersKey - 7537.IBPluginDependency - 7538.IBPluginDependency - 7563.IBPluginDependency - 7564.IBPluginDependency - 7565.IBEditorWindowLastContentRect - 7565.IBPluginDependency - 7566.IBPluginDependency - 7567.IBAttributePlaceholdersKey - 7567.IBPluginDependency - 7568.IBAttributePlaceholdersKey - 7568.IBPluginDependency - 7569.IBPluginDependency - 7570.IBPluginDependency - 7583.IBAttributePlaceholdersKey - 7583.IBPluginDependency - 7584.IBPluginDependency - 7602.IBPluginDependency - 7603.IBPluginDependency - 7604.IBPluginDependency - 7605.IBPluginDependency - 7606.IBPluginDependency - 7607.IBPluginDependency 7609.IBEditorWindowLastContentRect 7609.IBPluginDependency 7609.IBWindowTemplateEditedContentRect @@ -24528,8 +24430,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 7620.IBPluginDependency 7629.IBPluginDependency 7630.IBPluginDependency - 7633.IBAttributePlaceholdersKey - 7633.IBPluginDependency 7668.IBPluginDependency 7683.IBPluginDependency 7691.IBPluginDependency @@ -24663,6 +24563,65 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 8058.IBPluginDependency 8059.IBPluginDependency 8060.IBPluginDependency + 8068.IBEditorWindowLastContentRect + 8068.IBPluginDependency + 8068.IBWindowTemplateEditedContentRect + 8068.NSWindowTemplate.visibleAtLaunch + 8068.windowTemplate.hasMinSize + 8068.windowTemplate.minSize + 8069.IBPluginDependency + 8079.CustomClassName + 8079.IBPluginDependency + 8080.IBPluginDependency + 8081.IBPluginDependency + 8082.IBPluginDependency + 8083.IBAttributePlaceholdersKey + 8083.IBPluginDependency + 8083.IBViewBoundsToFrameTransform + 8084.IBPluginDependency + 8085.IBAttributePlaceholdersKey + 8085.IBPluginDependency + 8085.IBViewBoundsToFrameTransform + 8086.IBPluginDependency + 8127.IBAttributePlaceholdersKey + 8127.IBPluginDependency + 8127.IBViewBoundsToFrameTransform + 8128.IBPluginDependency + 8129.IBAttributePlaceholdersKey + 8129.IBPluginDependency + 8129.IBViewBoundsToFrameTransform + 8130.IBPluginDependency + 8131.IBAttributePlaceholdersKey + 8131.IBPluginDependency + 8131.IBViewBoundsToFrameTransform + 8132.IBPluginDependency + 8133.IBAttributePlaceholdersKey + 8133.IBPluginDependency + 8133.IBViewBoundsToFrameTransform + 8134.IBPluginDependency + 8135.IBPluginDependency + 8136.IBPluginDependency + 8137.IBAttributePlaceholdersKey + 8137.IBPluginDependency + 8137.IBViewBoundsToFrameTransform + 8138.IBPluginDependency + 8139.IBPluginDependency + 8140.IBPluginDependency + 8141.IBPluginDependency + 8141.IBViewBoundsToFrameTransform + 8142.IBPluginDependency + 8143.IBPluginDependency + 8144.CustomClassName + 8144.IBPluginDependency + 8145.IBPluginDependency + 8146.IBPluginDependency + 8149.IBPluginDependency + 8152.IBPluginDependency + 8152.IBViewBoundsToFrameTransform + 8153.IBPluginDependency + 8154.IBPluginDependency + 8155.CustomClassName + 8155.IBPluginDependency 858.IBPluginDependency 858.ImportedFromIB2 959.IBEditorWindowLastContentRect @@ -25046,6 +25005,9 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + AUK6AAA/gAAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -26271,137 +26233,43 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - ToolTip - - ToolTip - - Reveal the collapsed indexes pane - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - {{584, 533}, {228, 93}} - 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 - {{339, 775}, {694, 4}} - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - {{339, 727}, {694, 6}} - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - {{389, 475}, {480, 269}} - com.apple.InterfaceBuilder.CocoaPlugin - {{389, 475}, {480, 269}} - - - {380, 170} - com.apple.InterfaceBuilder.CocoaPlugin - com.brandonwalkin.BWToolkit - - ToolTip - - ToolTip - - Clear all Filter Criterias (⌘⌫) - - - com.brandonwalkin.BWToolkit + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin ToolTip ToolTip - - Apply Filter to current Table (⌘F) + + Reveal the collapsed indexes pane - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + {{584, 533}, {228, 93}} com.apple.InterfaceBuilder.CocoaPlugin - SPCopyTable com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - SPTextView com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - ToolTip - - ToolTip - - If set negate entire WHERE clause (⌘N) - - - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{84, 271}, {243, 113}} com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin - - ToolTip - - ToolTip - - Set default operator which should be used if pattern doen't begin with an operator - - + {{339, 775}, {694, 4}} com.apple.InterfaceBuilder.CocoaPlugin - - ToolTip - - ToolTip - - Create a WHERE clause to search for the last typed pattern in all fields - - + com.apple.InterfaceBuilder.CocoaPlugin + {{339, 727}, {694, 6}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - ToolTip - - ToolTip - - Perform filter while typing (⌘T) - - - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit {{576, 577}, {251, 102}} com.apple.InterfaceBuilder.CocoaPlugin {{576, 577}, {251, 102}} @@ -26419,15 +26287,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - ToolTip - - ToolTip - - Perform filtering by using SELECT DISTINCT - - - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -26656,6 +26515,132 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + {{276, 480}, {752, 317}} + com.apple.InterfaceBuilder.CocoaPlugin + {{276, 480}, {752, 317}} + + + {600, 317} + com.apple.InterfaceBuilder.CocoaPlugin + SPSplitView + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + Apply Filter to current Table (⌘F) + + + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABEFMAAwigAAA + + com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + Clear all Filter Criterias (⌘⌫) + + + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABD4gAAwigAAA + + com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + Create a WHERE clause to search for the last typed pattern in all fields + + + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABEFgAAwhQAAA + + com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + Perform filter while typing (⌘T) + + + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABEBkAAwuYAAA + + com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + If set negate entire WHERE clause (⌘N) + + + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABEBkAAwr4AAA + + com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + Perform filtering by using SELECT DISTINCT + + + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABEBkAAwvAAAA + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + Set default operator which should be used if pattern doen't begin with an operator + + + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABEIEAAwlwAAA + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAAAAAAAAwwUAAA + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + SPCopyTable + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBAAAAwrAAAA + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + SPTextView + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin {{265, 489}, {405, 267}} @@ -26694,7 +26679,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 - 8067 + 8179 @@ -30698,13 +30683,15 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 fieldField filterButton filterTableClearButton - filterTableDistinctMenuItem + filterTableDistinctCheckbox filterTableFilterButton - filterTableGearLookAllFields filterTableLiveSearchCheckbox filterTableNegateCheckbox + filterTableQueryBox + filterTableSearchAllFields filterTableSetDefaultOperatorSheet filterTableSetDefaultOperatorValue + filterTableSplitView filterTableView filterTableWhereClause filterTableWindow @@ -30742,13 +30729,15 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 NSPopUpButton id NSButton - NSMenuItem NSButton - NSMenuItem NSButton NSButton + NSButton + NSBox + NSButton NSPanel NSComboBox + SPSplitView SPCopyTable SPTextView NSPanel @@ -30789,13 +30778,15 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 fieldField filterButton filterTableClearButton - filterTableDistinctMenuItem + filterTableDistinctCheckbox filterTableFilterButton - filterTableGearLookAllFields filterTableLiveSearchCheckbox filterTableNegateCheckbox + filterTableQueryBox + filterTableSearchAllFields filterTableSetDefaultOperatorSheet filterTableSetDefaultOperatorValue + filterTableSplitView filterTableView filterTableWhereClause filterTableWindow @@ -30864,17 +30855,13 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 NSButton - filterTableDistinctMenuItem - NSMenuItem + filterTableDistinctCheckbox + NSButton filterTableFilterButton NSButton - - filterTableGearLookAllFields - NSMenuItem - filterTableLiveSearchCheckbox NSButton @@ -30883,6 +30870,14 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 filterTableNegateCheckbox NSButton + + filterTableQueryBox + NSBox + + + filterTableSearchAllFields + NSButton + filterTableSetDefaultOperatorSheet NSPanel @@ -30891,6 +30886,10 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 filterTableSetDefaultOperatorValue NSComboBox + + filterTableSplitView + SPSplitView + filterTableView SPCopyTable @@ -32448,89 +32447,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h - - BWSplitView - NSSplitView - - toggleCollapse: - id - - - toggleCollapse: - - toggleCollapse: - id - - - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWSplitView.h - - - - BWTransparentButton - NSButton - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWTransparentButton.h - - - - BWTransparentButtonCell - NSButtonCell - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h - - - - BWTransparentCheckbox - NSButton - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h - - - - BWTransparentCheckboxCell - NSButtonCell - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h - - - - BWTransparentScrollView - NSScrollView - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWTransparentScrollView.h - - - - BWTransparentScroller - NSScroller - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWTransparentScroller.h - - - - BWTransparentTableView - NSTableView - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWTransparentTableView.h - - - - BWTransparentTableViewCell - NSTextFieldCell - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h - - NSActionCell NSCell diff --git a/Source/SPContentFilterManager.h b/Source/SPContentFilterManager.h index 9f1d06a6..88eda63c 100644 --- a/Source/SPContentFilterManager.h +++ b/Source/SPContentFilterManager.h @@ -62,7 +62,7 @@ IBOutlet id resultingClauseLabel; IBOutlet id resultingClauseContentLabel; IBOutlet id insertPlaceholderButton; - IBOutlet id suppressLeadingFiledPlaceholderCheckbox; + IBOutlet NSButton *suppressLeadingFiledPlaceholderCheckbox; IBOutlet BWAnchoredButtonBar *splitViewButtonBar; diff --git a/Source/SPTableContent.h b/Source/SPTableContent.h index 7be0a415..71ae4a43 100644 --- a/Source/SPTableContent.h +++ b/Source/SPTableContent.h @@ -47,6 +47,9 @@ @class SPTableStructure; @class SPTableList; @class SPContentFilterManager; +#ifndef SP_REFACTOR +@class SPSplitView; +#endif @interface SPTableContent : NSObject #ifdef SP_REFACTOR @@ -98,15 +101,17 @@ IBOutlet SPCopyTable *filterTableView; IBOutlet NSPanel *filterTableWindow; + IBOutlet SPSplitView *filterTableSplitView; + IBOutlet NSBox *filterTableQueryBox; IBOutlet NSButton *filterTableFilterButton; IBOutlet NSButton *filterTableClearButton; IBOutlet SPTextView *filterTableWhereClause; IBOutlet NSButton *filterTableNegateCheckbox; - IBOutlet NSMenuItem *filterTableDistinctMenuItem; + IBOutlet NSButton *filterTableDistinctCheckbox; IBOutlet NSButton *filterTableLiveSearchCheckbox; - IBOutlet NSMenuItem *filterTableGearLookAllFields; + IBOutlet NSButton *filterTableSearchAllFields; IBOutlet NSPanel *filterTableSetDefaultOperatorSheet; - IBOutlet NSComboBox* filterTableSetDefaultOperatorValue; + IBOutlet NSComboBox *filterTableSetDefaultOperatorValue; #endif SPMySQLConnection *mySQLConnection; @@ -239,7 +244,6 @@ - (IBAction)toggleNegateClause:(id)sender; - (IBAction)toggleDistinctSelect:(id)sender; - (IBAction)setDefaultOperator:(id)sender; -- (IBAction)swapFilterTable:(id)sender; - (IBAction)toggleLookAllFieldsMode:(id)sender; - (IBAction)closeSheet:(id)sender; - (IBAction)showDefaultOperaterHelp:(id)sender; diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 7cc7ffe3..a024e09f 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -45,6 +45,7 @@ #import "SPTextAndLinkCell.h" #ifndef SP_REFACTOR #import "QLPreviewPanel.h" +#import "SPSplitView.h" #endif #import "SPFieldEditorController.h" #import "SPTooltip.h" @@ -229,13 +230,16 @@ paginationViewFrame.size.height = 0; [paginationView setFrame:paginationViewFrame]; [contentViewPane addSubview:paginationView]; + + // Modify the filter table split view sizes + [filterTableSplitView setMinSize:135 ofSubviewAtIndex:1]; #endif [tableContentView setFieldEditorSelectedRange:NSMakeRange(0,0)]; #ifndef SP_REFACTOR // Init Filter Table GUI - [filterTableDistinctMenuItem setState:(filterTableDistinct) ? NSOnState : NSOffState]; + [filterTableDistinctCheckbox setState:(filterTableDistinct) ? NSOnState : NSOffState]; [filterTableNegateCheckbox setState:(filterTableNegate) ? NSOnState : NSOffState]; [filterTableLiveSearchCheckbox setState:NSOffState]; #endif @@ -3591,6 +3595,12 @@ #ifndef SP_REFACTOR filterTableNegate = !filterTableNegate; + if (filterTableNegate) { + [filterTableQueryBox setTitle:NSLocalizedString(@"WHERE NOT query", @"Title of filter preview area when the query WHERE is negated")]; + } else { + [filterTableQueryBox setTitle:NSLocalizedString(@"WHERE query", @"Title of filter preview area when the query WHERE is normal")]; + } + // If live search is set perform filtering if([filterTableLiveSearchCheckbox state] == NSOnState) [self filterTable:filterTableFilterButton]; @@ -3606,7 +3616,7 @@ #ifndef SP_REFACTOR filterTableDistinct = !filterTableDistinct; - [filterTableDistinctMenuItem setState:(filterTableDistinct) ? NSOnState : NSOffState]; + [filterTableDistinctCheckbox setState:(filterTableDistinct) ? NSOnState : NSOffState]; // If live search is set perform filtering if([filterTableLiveSearchCheckbox state] == NSOnState) @@ -3647,11 +3657,6 @@ } -- (IBAction)swapFilterTable:(id)sender -{ - NSLog(@"SWAP"); -} - /** * Generate WHERE clause to look for last typed pattern in all fields */ @@ -4226,14 +4231,14 @@ NSMutableString *newOp = [[[NSMutableString alloc] initWithCapacity:[anOperator length]] autorelease]; [newOp setString:anOperator]; [newOp replaceOccurrencesOfRegex:@"%" withString:@"%%"]; - [newOp replaceOccurrencesOfRegex:@"(?