Tools__StringSearchTool.st
author Claus Gittinger <cg@exept.de>
Thu, 17 Jan 2013 12:18:42 +0100
changeset 12118 42920aab102f
parent 9474 a1f93c16b585
child 12401 4714b9640528
child 14393 a24f8a66c004
permissions -rw-r--r--
class: Tools::StringSearchTool changed: #processEvent:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8275
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     1
"
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     2
 COPYRIGHT (c) 2008 by eXept Software AG
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     3
              All Rights Reserved
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     4
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     5
 This software is furnished under a license and may be used
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     6
 only in accordance with the terms of that license and with the
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     8
 be provided or otherwise made available to, or used by, any
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
     9
 other person.  No title to or ownership of the software is
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    10
 hereby transferred.
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    11
"
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    13
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    14
"{ NameSpace: Tools }"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    15
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    16
ApplicationModel subclass:#StringSearchTool
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
    17
	instanceVariableNames:'searchTextHolder searchTextView searchBarImageInfoLabelHolder
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
    18
		searchBarInfoLabelHolder searchTextModifiedHolder matchCaseHolder
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
    19
		closeBlock searchNextBlock searchPreviousBlock restartHolder'
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
    20
	classVariableNames:'LastMatchCase LastRestart'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
    21
	poolDictionaries:''
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
    22
	category:'Interface-Tools'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    23
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    24
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    25
!StringSearchTool class methodsFor:'documentation'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    26
8275
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    27
copyright
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    28
"
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    29
 COPYRIGHT (c) 2008 by eXept Software AG
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    30
              All Rights Reserved
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    31
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    32
 This software is furnished under a license and may be used
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    33
 only in accordance with the terms of that license and with the
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    35
 be provided or otherwise made available to, or used by, any
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    36
 other person.  No title to or ownership of the software is
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    37
 hereby transferred.
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    38
"
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    39
!
cfc1193bd6b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8112
diff changeset
    40
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    41
documentation
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    42
"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    43
    documentation to be added.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    44
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    45
    [author:]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    46
        User (User@FELIXM)
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    47
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    48
    [instance variables:]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    49
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    50
    [class variables:]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    51
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    52
    [see also:]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    53
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    54
"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    55
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    56
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    57
examples
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    58
"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    59
  Starting the application:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    60
                                                                [exBegin]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    61
    Tools::StringSearchTool open
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    62
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    63
                                                                [exEnd]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    64
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    65
  more examples to be added:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    66
                                                                [exBegin]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    67
    ... add code fragment for 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    68
    ... executable example here ...
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    69
                                                                [exEnd]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    70
"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    71
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    72
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    73
!StringSearchTool class methodsFor:'accessing'!
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    74
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
    75
lastMatchCase
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    76
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
    77
    ^ LastMatchCase ? false
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    78
!
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    79
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
    80
lastMatchCase: aBoolean
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    81
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
    82
    LastMatchCase := aBoolean
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    83
!
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    84
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    85
lastRestart
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    86
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    87
    ^ LastRestart ? false
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    88
!
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    89
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    90
lastRestart: aBoolean
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    91
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    92
    LastRestart := aBoolean
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    93
! !
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
    94
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    95
!StringSearchTool class methodsFor:'image specs'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    96
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    97
closeSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    98
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    99
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   100
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   101
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   102
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   103
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   104
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   105
     self closeSearchBar inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   106
     ImageEditor openOnClass:self andSelector:#closeSearchBar
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   107
     Icon flushCachedIcons
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   108
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   109
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   110
    <resource: #image>
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   111
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   112
    ^Icon
8485
48c95e955fb8 invalidkeyInImageResourceMethod
Claus Gittinger <cg@exept.de>
parents: 8477
diff changeset
   113
        constantNamed:#'Tools::StringSearchTool class closeSearchBarIcon'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   114
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   115
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@GQ\SD1LSD1LSD1LSD1LWGP@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   116
@ATGA@HA@PDA@PDA@PHDA1T@@@@@@@@TAENG!!(VB XA?_''57QPPT@@@@@@@@E NJ^V)&X%)UTT5IV7 KE @@@@@@@A A"7Q,#&9VS%^MQ$E<DQ @@@@@@@@Z
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   117
@X%-#9NRX52R$80:^1@Z@@@@@@@@F0FHY6>R$9JR$9ION''(PF0@@@@@@@A<A 5ABT)FS$9D=KR13C1<@@@@@@@@)@WUCND*Q$9NQM"T!!XP8)@@@@@@@@K E2
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   118
O4RQ$9FQ$9@2G%8JK @@@@@@@CLA\S2D$9D9M)BS]!!1]BSL@@@@@@@@7@W@5LXP6J2\2]"P"VP 7@@@@@@@@O U+R3@*I2T#HA0&N5 RO @@@@@@@D LPF%(
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   119
YVQ W59]VU 4CD @@@@@@@AGFP4F@PDA@PDA@PDFCQ%G@@@@@@@@K41TUEQTUEQTUEQTUEQLK0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   120
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 167 25 15 170 49 40 171 50 39 174 68 60 176 56 48 176 58 49 183 118 110 184 45 32 184 46 32 184 47 34 184 71 58 184 85 78 184 86 79 185 53 39 186 57 42 186 59 43 186 60 45 186 68 58 190 187 180 192 188 181 193 189 182 194 190 183 195 192 184 197 194 186 202 148 142 202 199 191 205 202 195 207 64 48 207 203 195 208 65 49 208 205 198 209 65 49 209 66 49 209 69 52 210 66 49 210 78 64 211 67 51 211 71 54 212 69 51 212 208 200 212 208 202 213 69 52 213 70 52 213 79 57 215 80 59 215 212 206 217 214 207 218 79 62 218 84 67 219 107 95 219 216 210 221 84 63 221 84 67 221 109 96 221 218 213 222 76 56 222 110 96 222 113 79 223 87 67 223 87 70 223 115 99 224 221 216 225 89 72 225 105 91 225 117 84 227 89 64 227 91 73 227 112 98 227 115 95 227 122 92 227 224 219 227 225 219 228 113 83 228 113 99 229 102 87 229 226 221 230 115 84 230 117 81 230 142 117 231 102 80 231 116 86 231 120 103 231 131 119 231 228 224 232 118 88 232 119 82 233 143 117 234 99 76 234 102 79 234 119 89 234 127 100 234 145 119 235 104 82 235 106 86 236 108 89 236 110 92 236 113 92 236 121 91 236 146 119 237 113 95 237 115 98 237 122 92 237 132 100 238 117 101 238 119 104 238 123 93 238 123 109 238 131 98 238 133 102 238 146 120 238 148 121 239 125 112 239 127 115 239 129 118 239 131 105 239 134 102 240 135 122 240 200 196 242 135 113 242 141 116 242 141 119 242 145 116 242 147 118 242 148 120 243 137 115 243 138 118 243 141 121 243 142 123 243 144 126 243 145 129 243 151 134 243 202 197 244 147 132 244 149 135 244 152 137 244 163 142 244 164 145 245 160 143 245 164 146 245 213 204 246 213 203 248 215 205 249 215 206 252 244 243 253 244 243 253 247 245 255 255 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? @@@@@@@@@@@@') ; yourself); yourself]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   121
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   122
    "Created: / 15-06-2007 / 18:04:38 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   123
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   124
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   125
restartSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   126
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   127
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   128
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   129
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   130
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   131
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   132
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   133
     self restartSearchBarIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   134
     ImageEditor openOnClass:self andSelector:#restartSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   135
     Icon flushCachedIcons
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   136
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   137
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   138
    <resource: #image>
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   139
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   140
    ^Icon
8477
e12a54b40fd9 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8275
diff changeset
   141
        constantNamed:#'Tools::StringSearchTool class restartSearchBarIcon'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   142
        ifAbsentPut:[(Depth24Image new) width: 20; height: 20; photometric:(#rgb); bitsPerSample:(#[8 8 8]); samplesPerPixel:(3); bits:(ByteArray fromPackedString:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   143
@@@@@@@@@@@@@@@@@@@@@@@@?>SX?>''V?>;)?>O!!?>G]?>WY@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?=3\:[>''5;JF/Y-.+XY),(U.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   144
6JZK?=J1?>V<>.+I@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?>?'':+:!!19]U6*-Q?]Y/?>RC?>*!!?>F_>+=939UL2Y!!L>MJT??W[@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   145
@@@@??[-=\^&1IEP=<Q[?>1/?=5$?=52?>NT?=^Q?>BP?>FG>;1]6JEO8;^H?]3I@@@@@@@@@@@@@@@@@@@@?\*95Y-)<+!!$??.F?>)17+-U8,E40Y-.09I)
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   146
:Z1-?=I??=)8?<1.>K597;NL??K,@@@@@@@@@@@@?=#M6I>B>+:@?>2U=,]]5[IN7,^C5LB[<MWL?]#O=,BZ7)=\>;Y[??FP?=>O1YEW8<B$;=WH@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   147
>,"%8Z:A?>N#?>._5KA$9-JW7=+FX6M+V%U3"''*T0Y>V4ZA7595T=;1"?=&D?=&L,W(93IU\:KE9=LBG9[Q9;K1<?=^R:K591*-6??''[@@@@RE%37>7?=?/?
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   148
>^_''3*.M0YAU<K5,?>ZO?=>G?<!!6?<Y6>+U(69YI3:IG?=Z@?>NU5:=19,6%@@@@@@@@OU5*2.+7;O??5-KF2;JS?=*&?>&"?=.E?>2R?=&F?>"X8I-N5)ED
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   149
29$&?>M:?=*F3:E&>]/A@@@@@@@@O5=.7O??5^/(?O++<M.>0I-/;LNE??2)?=&B?>^%,W)A8:14?=FX3)TR?>U/?=Q:3IAZ?=?T@@@@@@@@P5Y68_#?7.70
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   150
??[1??C_:,F%6;A=>MJA?>6":,6+&G91?>+^?>+]79<$?<1\?=:C5IM[?<;F@@@@@@@@Q$1>6N_?<?+?<.W.?>3*??S(=,.(2Z!!#=-:^+9>P4,[P<>''46=O^
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   151
=+MX;Z)O?>^Q:Z]*;+Z''@@@@@@@@TD:O9^/?;/C??>???>/:?>71?>7Z;]^%0+JA7=CI8]O"0+[D8=#&?<&V79="?=2L?\E88[BG@@@@@@@@VU&M=_3?9N''?
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   152
>/C???K??NK/??[1???#9M?B??3;(IV#/[WD;^_5@@@@;KR]<[10?=Q68[9,8,>W@@@@TU9&;/??9__9:.;/?_#<??/?>?[==?79>_?=<_S9T5M[0,WN7^G*
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   153
@@@@@@@@1Y= >=!!>9,]-3[],6]B''TEH=;O_''=O?6>O77>O''=>//?=_+?:O_?:_''?>O??SEM[/<[P6.O,@@@@@@@@8-F%1*%/9[>@?>R(7+VG_%,;\E]CW$=H
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   154
U5AWV5%.U5);R5M:Q5M;S%-=TE]*[GI>):696M;*@@@@@@@@@@@@6\F[2Y914)9.;[VF?L"!!8[^_3J>''0KB:0;?V0,_''-<C),K/(,;7!!+[OI,K[D2=G_9N+8
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   155
@@@@@@@@@@@@@@@@@@@@?\*_7*]>3))5/II9+9FF+9> 0;7I5-#-7NO?7^#?8^/?:/G?7NK07>W3@@@@@@@@@@@@@@@@@@@@@@@@?>N;?>N;?=:9?>7T?>#X
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   156
>^_%=N?6<OK?@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@?@OC?0OO?8O_?<O_?>O???O?????_??>_??>_??>_??>_??>_??>_??__??O???O???G???A??/A? O') ; yourself); yourself]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   157
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   158
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   159
searchNextIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   160
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   161
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   162
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   163
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   164
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   165
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   166
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   167
     self searchNextIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   168
     ImageEditor openOnClass:self andSelector:#searchNextIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   169
     Icon flushCachedIcons
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   170
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   171
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   172
    <resource: #image>
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   173
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   174
    ^Icon
8477
e12a54b40fd9 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8275
diff changeset
   175
        constantNamed:#'Tools::StringSearchTool class searchNextIcon'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   176
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   177
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ZE)ZZ@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   178
@@@@@@AFF XA@PXUQ @@@@@@@@@@@@@@@@@*@Q5G^WX6E0D*@@@@@@@@@@@@@@@,AVQ?\&1#W&X8@20@@@@@@@@@@@A[@U==\F-"VUQOUSLAV0@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   179
G19-D <NCP0KB!!@7D1<@@@@@@@@@  ]MT5JY&Y&Y&Y%RLR4G  @@@@@@@H\A WL $)&Y&Y&RF35B@X\@@@@@@@BK@XA1WA"X&Y&XE#T:P@FK@@@@@@@@# !!H
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   180
]F$<II&YH3H>N2 H# @@@@@@@@@''GG)*Y2$9NRIDO4DQHP@@@@@@@@@@!!@EP[6U]I"UIQTL.@XP@@@@@@@@@@@ALAD-.XE]VS$(/@$0@@@@@@@@@@@@@@EDA
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   181
FSQ!!VC@T@UD@@@@@@@@@@@@@@@@@#R,I@PDIJ84@@@@@@@@@@@@@@@@@@@@@%)^W% @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   182
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 48 54 77 55 63 87 56 64 89 57 67 90 59 67 90 64 69 89 71 74 92 72 76 96 76 81 100 80 89 118 82 90 119 83 91 120 84 92 122 86 94 123 87 96 124 89 97 126 92 104 132 97 106 136 97 110 138 97 112 138 100 102 112 101 107 130 104 118 144 105 113 135 105 124 146 107 109 118 107 116 144 110 127 148 112 126 148 113 129 148 117 119 129 118 130 156 119 123 133 125 140 174 127 131 146 127 132 148 127 146 178 130 151 181 131 132 143 133 149 185 133 152 182 134 134 138 137 140 150 138 138 142 139 156 191 141 160 195 143 164 199 143 169 198 144 157 197 144 158 197 152 173 208 153 184 209 155 167 210 156 180 208 157 179 215 157 180 211 160 162 171 160 173 216 160 174 216 160 182 214 161 173 217 161 174 217 161 176 219 161 179 220 161 180 220 163 182 222 163 184 222 164 182 222 164 184 223 166 164 161 166 189 212 166 194 211 167 190 228 167 194 229 167 200 221 169 170 174 169 195 212 169 196 232 170 181 228 170 203 221 171 171 176 171 173 182 171 193 220 173 182 232 173 192 232 173 200 234 175 206 239 175 210 240 176 188 237 178 175 168 178 175 173 178 202 234 178 206 240 179 195 238 180 205 223 180 214 243 180 216 244 181 193 242 181 195 239 181 204 223 181 212 243 182 206 242 182 209 243 184 180 173 184 211 244 184 215 245 185 198 246 185 200 244 188 215 233 188 225 249 189 226 249 190 206 250 190 219 248 191 209 249 191 217 248 191 222 248 192 188 181 192 221 249 194 190 184 195 191 184 196 226 251 196 232 251 199 196 189 202 198 191 202 226 253 203 199 193 203 229 253 203 237 252 203 237 253 204 202 196 206 202 195 206 205 204 207 203 196 208 204 197 208 205 201 212 208 200 212 208 201 212 208 202 212 209 205 213 210 202 213 212 213 214 211 206 215 212 207 216 213 206 218 215 210 220 221 223 221 219 214 222 219 215 222 220 215 230 228 225 236 235 232 243 243 244 255 255 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@C@@@C@@@C@G C@_8C@?<CA?>CC??CC??CG??#G??#G??#G??#C??CC??CA?>C@?<C@_8C@G C@@@C@@@C@@@C') ; yourself); yourself]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   183
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   184
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   185
searchPreviousIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   186
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   187
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   188
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   189
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   190
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   191
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   192
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   193
     self searchPreviousIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   194
     ImageEditor openOnClass:self andSelector:#searchPreviousIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   195
     Icon flushCachedIcons
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   196
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   197
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   198
    <resource: #image>
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   199
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   200
    ^Icon
8477
e12a54b40fd9 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8275
diff changeset
   201
        constantNamed:#'Tools::StringSearchTool class searchPreviousIcon'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   202
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   203
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%)^W% @@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   204
@@@@@@BMJ0$A@P$+#P@@@@@@@@@@@@@@@@AQ@Q$4XU 0E@EQ@@@@@@@@@@@@@@ALAD-.XE]VS$(/@$0@@@@@@@@@@@BD@UA/YU4&IT%EP28A!!@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   205
I11:Z&\)NS$"QC=ADRD@@@@@@@@@# !!H]F$<II&YH3H>N2 H# @@@@@@@H,A GE\FI"Y&Y VMS)@@X,@@@@@@@BG@XE3HIJY&Y&Y$!!,=P FG@@@@@@@@  ]M
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   206
T5JY&Y&Y&Y%RLR4G  @@@@@@@@@_G&4RC08MC@,JDC\SG0@@@@@@@@@@V0E__WA+X%%TS5T3@U,@@@@@@@@@@@@,AVQ?\&1#W&X8@20@@@@@@@@@@@@@@B(A
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   207
GT]9]#XW@R(@@@@@@@@@@@@@@@@@Q!!(F@PDFETX@@@@@@@@@@@@@@@@@@@@@ZE)ZZ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   208
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 48 54 77 55 63 87 56 64 89 57 67 90 59 67 90 64 69 89 71 74 92 72 76 96 76 81 100 80 89 118 82 90 119 83 91 120 84 92 122 86 94 123 87 96 124 89 97 126 92 104 132 97 106 136 97 110 138 97 112 138 100 102 112 101 107 130 104 118 144 105 113 135 105 124 146 107 109 118 107 116 144 110 127 148 112 126 148 113 129 148 117 119 129 118 130 156 119 123 133 125 140 174 127 131 146 127 132 148 127 146 178 130 151 181 131 132 143 133 149 185 133 152 182 134 134 138 137 140 150 138 138 142 139 156 191 141 160 195 143 164 199 143 169 198 144 157 197 144 158 197 152 173 208 153 184 209 155 167 210 156 180 208 157 179 215 157 180 211 160 162 171 160 173 216 160 174 216 160 182 214 161 173 217 161 174 217 161 176 219 161 179 220 161 180 220 163 182 222 163 184 222 164 182 222 164 184 223 166 164 161 166 189 212 166 194 211 167 190 228 167 194 229 167 200 221 169 170 174 169 195 212 169 196 232 170 181 228 170 203 221 171 171 176 171 173 182 171 193 220 173 182 232 173 192 232 173 200 234 175 206 239 175 210 240 176 188 237 178 175 168 178 175 173 178 202 234 178 206 240 179 195 238 180 205 223 180 214 243 180 216 244 181 193 242 181 195 239 181 204 223 181 212 243 182 206 242 182 209 243 184 180 173 184 211 244 184 215 245 185 198 246 185 200 244 188 215 233 188 225 249 189 226 249 190 206 250 190 219 248 191 209 249 191 217 248 191 222 248 192 188 181 192 221 249 194 190 184 195 191 184 196 226 251 196 232 251 199 196 189 202 198 191 202 226 253 203 199 193 203 229 253 203 237 252 203 237 253 204 202 196 206 202 195 206 205 204 207 203 196 208 204 197 208 205 201 212 208 200 212 208 201 212 208 202 212 209 205 213 210 202 213 212 213 214 211 206 215 212 207 216 213 206 218 215 210 220 221 223 221 219 214 222 219 215 222 220 215 230 228 225 236 235 232 243 243 244 255 255 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@C@@@C@@@C@G C@_8C@?<CA?>CC??CC??CG??#G??#G??#G??#C??CC??CA?>C@?<C@_8C@G C@@@C@@@C@@@C') ; yourself); yourself]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   209
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   210
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   211
searchToolBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   212
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   213
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   214
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   215
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   216
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   217
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   218
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   219
     self searchToolBarIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   220
     ImageEditor openOnClass:self andSelector:#searchToolBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   221
     Icon flushCachedIcons
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   222
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   223
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   224
    <resource: #image>
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   225
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   226
    ^Icon
8477
e12a54b40fd9 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8275
diff changeset
   227
        constantNamed:#'Tools::StringSearchTool class searchToolBarIcon'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   228
        ifAbsentPut:[(Depth24Image new) width: 22; height: 22; photometric:(#rgb); bitsPerSample:(#[8 8 8]); samplesPerPixel:(3); bits:(ByteArray fromPackedString:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   229
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   230
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   231
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@4][>4][>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   232
@@@@@@@@@@@@@@@@@@@@@@@@@@@@;>#8/L#+!!:KS!!:KS/,'',;>''9@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@2];>^)WH
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   233
NE:+KU*:J5&9NE6*_I#K4^S>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@4][>RV3DLER"SWR6$K#0#;[.SGJ4L5"''UG_N4][>@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   234
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*K''\JT*,U6Z7:^S?>/C*;.3,6>C>RFF(KEZ"3-_-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   235
@@@@@@@@@@@@&Z''HFTF &Z7">N#:7NK?7NK?6=W>!!Y''YH4N -+3T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%I>;FDV)#ZWU??''57NK?
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   236
7NK?:>_?\8WKFCN".K#T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1L;.A#V[O5")3=W;=/[4</W:1,??K$JVI4Z\7-''4@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   237
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?-,[1E#:&C"ZZH3F U6_EU63FHS^XHS.K JOX7-''4@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   238
,K_*O5ZTCRBLPU&0FCBHDB&RDR6RH$NI Y#I4][>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?-;#%ND&KC">BYV.*4=;>7.+>-<K!!,K/!!7NK?
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   239
:^C;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?/K3^PT%<CBI/NE>==O;8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   240
@@@@@@@@@@@@7NK? (J9GB1SZV>W:M3?@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@5MS&++3H6M/#@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   241
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   242
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   243
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   244
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   245
@@@@@@@@@@@@@@@@') ; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@C@@@C@@@C@A C@G8C@O<C@_>C@_>C@_>C@_>C@_>C@?>CA?<CC?8CG8@CG0@CC @CA@@C@@@C@@@C@@@C@@@C') ; yourself); yourself]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   246
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   247
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   248
warningSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   249
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   250
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   251
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   252
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   253
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   254
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   255
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   256
     self warningSearchBarIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   257
     ImageEditor openOnClass:self andSelector:#warningSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   258
     Icon flushCachedIcons
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   259
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   260
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   261
    <resource: #image>
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   262
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   263
    ^Icon
8477
e12a54b40fd9 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8275
diff changeset
   264
        constantNamed:#'Tools::StringSearchTool class warningSearchBarIcon'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   265
        ifAbsentPut:[(Depth24Image new) width: 22; height: 19; photometric:(#rgb); bitsPerSample:(#[8 8 8]); samplesPerPixel:(3); bits:(ByteArray fromPackedString:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   266
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?:.+<Y"P??C\@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@>_;?@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   267
@@@@?]SZ)5]X.6!! -HM2??''*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?>39-7*B4H&G>[N+%%MJ>\#A@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   268
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<+R?*U1&?=CN?>W^4HJ@+FY$?>+"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   269
@@@@@@@@@@@@@@@@@@@@?>G_)U!!^>Z^->,B><+"4?*^-%C8?;;Z+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@??#1-(E;.65+?<#H
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   270
?=_T?=GP?::65W-=(EQF?>WQ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?\#D*VAY?;61<;"0;,C@6J^+;*"0>ZN$&CX)6(-:@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   271
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?>#+/7Q148E6?<"4<L&:W#(:G@@@392!!48^G9WM(%24_?=WN@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   272
??C?7Y&$.E5\?;V*=<:8??K_R3X5DP@@4+R49ZZ!!7VIZ/#85)%UR??G/@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?=7.2&)6=IJQ?;..=]W@??7*PS$7E@,N
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   273
4<OC?>K^>(M=1S8;)$ID8Y6^@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@;HNR4U%%<)&S?<^9??_(??;3REEN@P,J2<[C??K/?:R!!/C8?&R(0(T-N?>GZ@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   274
@@@@@@@@@@@@@@@@@@@@?<;H,31B3T9U2'')1?L3@?>3&=^7*XWE0@@<M7=;\??S3?=_U46-,#Q(!!$B,/18"A@@@@@@@@@@@@@@@@@@@@??G&1G!!*,S03)SP,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   275
3()?>=WL??_:<>33[G:@D2T%;^/,??#8??K19Y6^&R(0!!QPX#S8:;K22@@@@@@@@@@@@@@@@<*RZ+5I@*$D+*T48<[N&?>C_7,+U??3?7N''/(J.-?/+;??W5
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   276
;.O!!?>G_3&]+ 0(O#B8.(U9X@@@@@@@@@@@@?<?Y/%MM.487%$P^7I)7?<&=?=+ <^W3;?C?YV]3JR .-*60=/W35.[#<>W"?:*+*3@3$R\)^R ''2)^T@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   277
?>K2;(ZO2DQ@-SP!!,5H/?<F!!?<V=?;3B?=_"?>7:)72EUBT+<,GD?>?,<M;Z>]GO?<#J8VM& P4P_A0^ C(:?>+''?:"+34%H13L/02("13T(13\,5$H>3S<=
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   278
1TMC0DQD/$IB/D@>.S4;-S,8,C(:,C 9-3X:(A4""@4R_1DT RH&/6%*?82D/S8503873C<85C<923H,23@+/RP\-"HX,"HW+"DX*"@V)10U)1(S)!!XU)AXU
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   279
(Q0_$1XZ#1X["A(]^QPX&34>?;&).&-Z/6]Y06MU1&AR/5UG15-N0EYF1&EO0&EN/&EP.6AN.%5N.5-M.5%P/UYQ.$)I.4)L0UQW/U-\+5YX5XFA') ; mask:((Depth1Image new) width: 22; height: 19; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@C G@G0C@O0C@O8C@_8C@?<C@?<CA?>CC??CC??CC??#G??#O??3O??3_??;????????????????') ; yourself); yourself]
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   280
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   281
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   282
!StringSearchTool class methodsFor:'interface specs'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   283
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   284
windowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   285
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   286
     by the UIPainter of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   287
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   288
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   289
     the UIPainter may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   290
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   291
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   292
     UIPainter new openOnClass:Tools::StringSearchTool andSelector:#windowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   293
     Tools::StringSearchTool new openInterface:#windowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   294
     Tools::StringSearchTool open
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   295
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   296
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   297
    <resource: #canvas>
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   298
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   299
    ^ 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   300
     #(FullSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   301
        name: windowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   302
        window: 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   303
       (WindowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   304
          label: 'Tools::StringSearchTool'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   305
          name: 'Tools::StringSearchTool'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   306
          min: (Point 10 10)
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   307
          bounds: (Rectangle 0 0 801 27)
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   308
        )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   309
        component: 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   310
       (SpecCollection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   311
          collection: (
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   312
           (ViewSpec
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   313
              name: 'SearchBox'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   314
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   315
              level: -1
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   316
              component: 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   317
             (SpecCollection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   318
                collection: (
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   319
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   320
                    label: 'closeSearchBarIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   321
                    name: 'hideSearchBarButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   322
                    layout: (LayoutFrame 4 0 2 0 25 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   323
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   324
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   325
                    model: hideSearchBar
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   326
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   327
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   328
                    label: 'Search:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   329
                    name: 'SearchLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   330
                    layout: (LayoutFrame 30 0 1 0 81 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   331
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   332
                    adjust: right
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   333
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   334
                 (InputFieldSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   335
                    name: 'SearchEntryField'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   336
                    layout: (LayoutFrame 87 0 1 0 298 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   337
                    model: searchTextHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   338
                    immediateAccept: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   339
                    acceptOnReturn: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   340
                    acceptOnTab: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   341
                    acceptOnLostFocus: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   342
                    modifiedChannel: searchTextModifiedHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   343
                    acceptOnPointerLeave: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   344
                    postBuildCallback: postBuildSearchTextView:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   345
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   346
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   347
                    label: 'searchNextIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   348
                    name: 'SearchNextButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   349
                    layout: (LayoutFrame 302 0 1 0 323 0 22 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   350
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   351
                    translateLabel: true
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   352
                    model: searchNextTextButtonPressed
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   353
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   354
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   355
                    label: 'searchPreviousIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   356
                    name: 'searchPreviousButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   357
                    layout: (LayoutFrame 330 0 1 0 351 0 22 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   358
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   359
                    translateLabel: true
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   360
                    model: searchPreviousTextButtonPressed
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   361
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   362
                 (CheckBoxSpec
8926
6e136b0d4ab9 case toggle reversed
Claus Gittinger <cg@exept.de>
parents: 8914
diff changeset
   363
                    label: 'Case'
6e136b0d4ab9 case toggle reversed
Claus Gittinger <cg@exept.de>
parents: 8914
diff changeset
   364
                    name: 'DoNotIgnoreCaseCheckBox'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   365
                    layout: (LayoutFrame 360 0 1 0 553 0 23 0)
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   366
                    model: matchCaseHolder
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   367
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   368
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   369
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   370
                    label: 'SearchBarImageInfoLabel'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   371
                    name: 'SearchBarImageInfoLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   372
                    layout: (LayoutFrame 557 0 1 0 581 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   373
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   374
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   375
                    labelChannel: searchBarImageInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   376
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   377
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   378
                    label: 'SearchBarInfoLabel'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   379
                    name: 'SearchBarInfoLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   380
                    layout: (LayoutFrame 584 0 1 0 862 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   381
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   382
                    labelChannel: searchBarInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   383
                    adjust: left
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   384
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   385
                 )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   386
               
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   387
              )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   388
            )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   389
           )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   390
         
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   391
        )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   392
      )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   393
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   394
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   395
!StringSearchTool methodsFor:'accessing'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   396
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   397
closeBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   398
    ^ closeBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   399
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   400
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   401
closeBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   402
    closeBlock := something.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   403
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   404
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   405
ignoreCase
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   406
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   407
    ^ self matchCaseHolder value not
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   408
!
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   409
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   410
initialSearchString: aString  
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   411
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   412
    self searchTextHolder value: aString.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   413
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   414
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   415
matchCheckboxVisible
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   416
    ^ false
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   417
!
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   418
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   419
restartSearch
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   420
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   421
    ^ self restartHolder value
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   422
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   423
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   424
searchNextBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   425
    ^ searchNextBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   426
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   427
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   428
searchNextBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   429
    searchNextBlock := something.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   430
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   431
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   432
searchPreviousBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   433
    ^ searchPreviousBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   434
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   435
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   436
searchPreviousBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   437
    searchPreviousBlock := something.
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   438
!
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   439
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   440
searchText
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   441
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   442
    ^ searchTextView contents
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   443
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   444
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   445
!StringSearchTool methodsFor:'aspects'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   446
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   447
matchCaseHolder
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   448
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   449
    matchCaseHolder isNil ifTrue:[
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   450
        matchCaseHolder := self class lastMatchCase asValue.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   451
"/ if your app needs to be notified of changes, uncomment one of the lines below:
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   452
"/       matchCaseHolder addDependent:self.
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   453
        matchCaseHolder onChangeSend:#matchCaseHolderChanged to:self.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   454
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   455
    ].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   456
    ^ matchCaseHolder.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   457
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   458
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   459
restartHolder
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   460
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   461
    restartHolder isNil ifTrue:[
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
   462
        restartHolder := self class lastRestart asValue.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   463
"/ if your app needs to be notified of changes, uncomment one of the lines below:
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   464
"/       restartHolder addDependent:self.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   465
        restartHolder onChangeSend:#restartHolderChanged to:self.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   466
    ].
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   467
    ^ restartHolder.
8069
3c4426cb3174 changed #matchCheckboxVisible
Claus Gittinger <cg@exept.de>
parents: 8061
diff changeset
   468
!
3c4426cb3174 changed #matchCheckboxVisible
Claus Gittinger <cg@exept.de>
parents: 8061
diff changeset
   469
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   470
searchBarImageInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   471
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   472
    searchBarImageInfoLabelHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   473
        searchBarImageInfoLabelHolder := nil asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   474
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   475
    ^ searchBarImageInfoLabelHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   476
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   477
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   478
searchBarInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   479
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   480
    searchBarInfoLabelHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   481
        searchBarInfoLabelHolder := '' asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   482
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   483
    ^ searchBarInfoLabelHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   484
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   485
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   486
searchTextHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   487
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   488
    searchTextHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   489
        searchTextHolder := ValueHolder new.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   490
"/ if your app needs to be notified of changes, uncomment one of the lines below:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   491
"/       userSelectedHolder addDependent:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   492
"/       userSelectedHolder onChangeSend:#searchTextHolderChanged to:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   493
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   494
    ^ searchTextHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   495
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   496
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   497
searchTextModifiedHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   498
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   499
    searchTextModifiedHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   500
        searchTextModifiedHolder := false asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   501
"/ if your app needs to be notified of changes, uncomment one of the lines below:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   502
"/       searchTextModifiedHolder addDependent:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   503
       searchTextModifiedHolder onChangeSend:#searchTextModifiedHolderChanged to:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   504
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   505
    ^ searchTextModifiedHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   506
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   507
    "Created: / 15-06-2007 / 18:07:19 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   508
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   509
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   510
!StringSearchTool methodsFor:'change & update'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   511
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   512
matchCaseHolderChanged
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   513
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   514
    self searchNextTextIncludingCurrentSelection: true.
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   515
    self setFocusToSearchTextView.
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   516
    self class lastMatchCase: self matchCaseHolder value. 
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   517
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   518
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   519
processEvent:anEvent
12118
42920aab102f class: Tools::StringSearchTool
Claus Gittinger <cg@exept.de>
parents: 9474
diff changeset
   520
    <resource: #keyboard (#Escape #FindNext #FindPrev)>
42920aab102f class: Tools::StringSearchTool
Claus Gittinger <cg@exept.de>
parents: 9474
diff changeset
   521
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   522
    searchTextView hasFocus ifFalse:[^ false].
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   523
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   524
    anEvent isKeyPressEvent ifTrue:[
8080
086cdba62ab5 changed #processEvent:
fm
parents: 8077
diff changeset
   525
"/        Transcript showCR: anEvent key printString.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   526
"/        anEvent key == #Find ifTrue:[
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   527
"/            self halt.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   528
"/            self searchNextText.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   529
"/            ^ true
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   530
"/        ].
8084
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   531
        anEvent key == #Escape ifTrue:[
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   532
            self escapePressed.
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   533
            ^ true
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   534
        ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   535
        anEvent key == #FindNext ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   536
            self searchNextText.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   537
            ^ true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   538
        ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   539
        anEvent key == #FindPrev ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   540
            self searchPreviousText.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   541
            ^ true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   542
        ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   543
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   544
    ^ false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   545
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   546
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   547
restartHolderChanged
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   548
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   549
    self setFocusToSearchTextView.
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
   550
    self class lastRestart: self restartHolder value.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   551
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   552
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   553
searchTextModifiedHolderChanged
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   554
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   555
    |previousRestart|
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   556
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   557
    "Always restart when looking for a typed string"
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   558
    previousRestart := self restartSearch.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   559
    self restartHolder setValue: true.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   560
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   561
    self searchNextTextIncludingCurrentSelection: true.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   562
    self searchTextModifiedHolder setValue: false.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   563
    self restartHolder setValue: previousRestart.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   564
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   565
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   566
"/Transcript showCR: 'searchTextModifiedHolderChanged: ',(self searchTextHolder value ? '').
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   567
"/Transcript showCR: 'searchTextView contents: ',(self searchText ? '').
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   568
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   569
    "Created: / 15-06-2007 / 18:07:57 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   570
    "Modified: / 16-06-2007 / 09:21:27 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   571
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   572
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   573
!StringSearchTool methodsFor:'images'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   574
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   575
restartSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   576
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   577
    ^ self class restartSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   578
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   579
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   580
warningSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   581
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   582
    ^ self class warningSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   583
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   584
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   585
!StringSearchTool methodsFor:'initialization & release'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   586
8059
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   587
commonPostOpen
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   588
    self windowGroup addPreEventHook:self.
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   589
    super commonPostOpen
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   590
!
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   591
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   592
postBuildSearchTextView: anEditFieldView
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   593
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   594
    searchTextView := anEditFieldView
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   595
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   596
    "Created: / 15-06-2007 / 18:17:15 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   597
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   598
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   599
!StringSearchTool methodsFor:'private'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   600
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   601
searchReachEndOrBeginningIcon
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   602
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   603
    ^ self restartSearch 
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   604
        ifTrue:[self restartSearchBarIcon.]
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   605
        ifFalse:[self warningSearchBarIcon.].
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   606
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   607
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   608
searchTextRestarted: message
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   609
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   610
    self searchBarImageInfoLabelHolder value: self searchReachEndOrBeginningIcon.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   611
    self searchBarInfoLabelHolder value: message.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   612
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   613
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   614
setSearchTextFoundColors
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   615
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   616
    searchTextView foregroundColor: Color black.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   617
    searchTextView backgroundColor: Color white.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   618
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   619
    "Created: / 16-06-2007 / 06:28:32 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   620
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   621
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   622
setSearchTextNotFoundColors
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   623
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   624
    searchTextView foregroundColor: Color white.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   625
    searchTextView backgroundColor: Color lightRed.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   626
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   627
    "Created: / 16-06-2007 / 06:29:00 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   628
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   629
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   630
!StringSearchTool methodsFor:'public'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   631
8084
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   632
escapePressed
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   633
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   634
    self hideSearchBar.
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   635
!
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   636
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   637
searchBarOpened
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   638
8112
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   639
    self setFocusToSearchTextView.
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   640
    self selectAllInSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   641
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   642
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   643
searchNextTextReachEnd
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   644
    |message|
8957
fm
parents: 8955
diff changeset
   645
    message := (resources string: 'End of text reached').
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   646
    self searchTextRestarted: message.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   647
    Smalltalk beep.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   648
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   649
    self restartSearch ifTrue:[
8957
fm
parents: 8955
diff changeset
   650
        message := message, (resources string: ', starting from the beginning').
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   651
        self searchTextRestarted: message.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   652
        self searchNextTextFromBeginning.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   653
    ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   654
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   655
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   656
searchPreviousTextReachBeginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   657
    |message|
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   658
8957
fm
parents: 8955
diff changeset
   659
    message := (resources string: 'Beginning of text reached').
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   660
    self searchTextRestarted: message.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   661
    Smalltalk beep.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   662
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   663
    self restartSearch ifTrue:[
8957
fm
parents: 8955
diff changeset
   664
        message := message, (resources string: ', starting from the end').
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   665
        self searchTextRestarted: message.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   666
        self searchPreviousTextFromEnd
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   667
    ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   668
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   669
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   670
searchTextNotFound
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   671
8957
fm
parents: 8955
diff changeset
   672
    self searchTextNotFound: (resources string: 'Text not found').
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   673
!
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   674
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   675
searchTextNotFound: aMessage
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   676
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   677
    self searchBarImageInfoLabelHolder value: self warningSearchBarIcon.
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   678
    self searchBarInfoLabelHolder value: aMessage.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   679
    self setSearchTextNotFoundColors.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   680
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   681
    "Created: / 16-06-2007 / 06:51:01 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   682
    "Modified: / 16-06-2007 / 11:43:53 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   683
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   684
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   685
searchTextStarted
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   686
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   687
    self searchBarImageInfoLabelHolder value: nil.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   688
    self searchBarInfoLabelHolder value: ''.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   689
    self setSearchTextFoundColors.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   690
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   691
    "Created: / 16-06-2007 / 06:54:03 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   692
    "Modified: / 16-06-2007 / 10:07:06 / Administrador"
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   693
!
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   694
8112
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   695
selectAllInSearchTextView
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   696
9244
6bcb7d03910b changed: #selectAllInSearchTextView
Claus Gittinger <cg@exept.de>
parents: 8996
diff changeset
   697
    searchTextView selectAllInitially.
8112
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   698
!
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   699
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   700
setFocusToSearchTextView
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   701
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   702
    searchTextView requestFocus.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   703
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   704
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   705
!StringSearchTool methodsFor:'searching'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   706
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   707
hideSearchBar
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   708
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   709
    closeBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   710
    closeBlock value
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   711
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   712
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   713
searchNextText
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   714
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   715
    self searchNextTextIncludingCurrentSelection: false.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   716
"/    self setFocusToSearchTextView.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   717
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   718
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   719
searchNextTextButtonPressed
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   720
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   721
    self searchNextText.
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   722
    self setFocusToSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   723
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   724
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   725
searchNextTextFromBeginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   726
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   727
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   728
    searchText := self searchText.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   729
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   730
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   731
    searchNextBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   732
    searchNextBlock value: self value: searchText value: ignoreCase value: #beginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   733
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   734
"/    self parent
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   735
"/            searchNextTextFromBeginning: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   736
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   737
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   738
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   739
searchNextTextIncludingCurrentSelection: includeCurrentSelection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   740
    |searchText ignoreCase startPlace|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   741
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   742
    self searchTextStarted.
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   743
    searchText := self searchText.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   744
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   745
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   746
    searchNextBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   747
    startPlace := includeCurrentSelection ifTrue:[#current] ifFalse:[#includingCurrent].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   748
    searchNextBlock value: self value: searchText value: ignoreCase value: startPlace 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   749
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   750
"/    self parent 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   751
"/            searchNextText: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   752
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   753
"/            includingCurrentSelection: includeCurrentSelection.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   754
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   755
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   756
searchPreviousText
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   757
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   758
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   759
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   760
    self searchTextStarted.
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   761
    searchText := self searchText.      
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   762
"/    self setFocusToSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   763
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   764
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   765
    searchPreviousBlock isNil ifTrue:[^ self].
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   766
    searchPreviousBlock value: self value: searchText value: ignoreCase value: #current.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   767
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   768
"/    self parent 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   769
"/            searchPreviousText: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   770
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   771
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   772
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   773
searchPreviousTextButtonPressed
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   774
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   775
    self searchPreviousText.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   776
    self setFocusToSearchTextView.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   777
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   778
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   779
searchPreviousTextFromEnd
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   780
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   781
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   782
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   783
    searchText := self searchText.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   784
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   785
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   786
    searchPreviousBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   787
    searchPreviousBlock value: self value: searchText value: ignoreCase value: #end
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   788
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   789
"/    self parent
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   790
"/            searchPreviousTextFromEnd: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   791
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   792
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   793
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   794
!StringSearchTool class methodsFor:'documentation'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   795
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   796
version
12118
42920aab102f class: Tools::StringSearchTool
Claus Gittinger <cg@exept.de>
parents: 9474
diff changeset
   797
    ^ '$Header: /cvs/stx/stx/libtool/Tools__StringSearchTool.st,v 1.21 2013-01-17 11:18:42 cg Exp $'
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   798
!
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   799
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   800
version_CVS
12118
42920aab102f class: Tools::StringSearchTool
Claus Gittinger <cg@exept.de>
parents: 9474
diff changeset
   801
    ^ '$Header: /cvs/stx/stx/libtool/Tools__StringSearchTool.st,v 1.21 2013-01-17 11:18:42 cg Exp $'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   802
! !
12118
42920aab102f class: Tools::StringSearchTool
Claus Gittinger <cg@exept.de>
parents: 9474
diff changeset
   803