Tools__StringSearchTool.st
author fm
Mon, 12 Oct 2009 15:00:35 +0200
changeset 8955 b9229ea79b82
parent 8926 6e136b0d4ab9
child 8957 5e522ada7fbb
permissions -rw-r--r--
*** empty log message ***
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
          max: (Point 1024 768)
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   308
          bounds: (Rectangle 0 0 801 27)
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   309
        )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   310
        component: 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   311
       (SpecCollection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   312
          collection: (
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   313
           (ViewSpec
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   314
              name: 'SearchBox'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   315
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   316
              level: -1
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   317
              component: 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   318
             (SpecCollection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   319
                collection: (
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   320
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   321
                    label: 'closeSearchBarIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   322
                    name: 'hideSearchBarButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   323
                    layout: (LayoutFrame 4 0 2 0 25 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   324
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   325
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   326
                    model: hideSearchBar
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   327
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   328
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   329
                    label: 'Search:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   330
                    name: 'SearchLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   331
                    layout: (LayoutFrame 30 0 1 0 81 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   332
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   333
                    adjust: right
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   334
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   335
                 (InputFieldSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   336
                    name: 'SearchEntryField'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   337
                    layout: (LayoutFrame 87 0 1 0 298 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   338
                    model: searchTextHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   339
                    immediateAccept: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   340
                    acceptOnReturn: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   341
                    acceptOnTab: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   342
                    acceptOnLostFocus: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   343
                    modifiedChannel: searchTextModifiedHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   344
                    acceptOnPointerLeave: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   345
                    postBuildCallback: postBuildSearchTextView:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   346
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   347
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   348
                    label: 'searchNextIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   349
                    name: 'SearchNextButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   350
                    layout: (LayoutFrame 302 0 1 0 323 0 22 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   351
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   352
                    translateLabel: true
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   353
                    model: searchNextTextButtonPressed
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   354
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   355
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   356
                    label: 'searchPreviousIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   357
                    name: 'searchPreviousButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   358
                    layout: (LayoutFrame 330 0 1 0 351 0 22 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   359
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   360
                    translateLabel: true
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   361
                    model: searchPreviousTextButtonPressed
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   362
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   363
                 (CheckBoxSpec
8926
6e136b0d4ab9 case toggle reversed
Claus Gittinger <cg@exept.de>
parents: 8914
diff changeset
   364
                    label: 'Case'
6e136b0d4ab9 case toggle reversed
Claus Gittinger <cg@exept.de>
parents: 8914
diff changeset
   365
                    name: 'DoNotIgnoreCaseCheckBox'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   366
                    layout: (LayoutFrame 360 0 1 0 553 0 23 0)
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   367
                    model: matchCaseHolder
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   368
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   369
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   370
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   371
                    label: 'SearchBarImageInfoLabel'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   372
                    name: 'SearchBarImageInfoLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   373
                    layout: (LayoutFrame 557 0 1 0 581 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   374
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   375
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   376
                    labelChannel: searchBarImageInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   377
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   378
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   379
                    label: 'SearchBarInfoLabel'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   380
                    name: 'SearchBarInfoLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   381
                    layout: (LayoutFrame 584 0 1 0 862 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   382
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   383
                    labelChannel: searchBarInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   384
                    adjust: left
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
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   396
!StringSearchTool methodsFor:'accessing'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   397
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   398
closeBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   399
    ^ closeBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   400
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   401
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   402
closeBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   403
    closeBlock := something.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   404
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   405
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   406
ignoreCase
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   407
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   408
    ^ self matchCaseHolder value not
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   409
!
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   410
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   411
initialSearchString: aString  
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   412
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   413
    self searchTextHolder value: aString.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   414
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   415
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   416
matchCheckboxVisible
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   417
    ^ false
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   418
!
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   419
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   420
restartSearch
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   421
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   422
    ^ self restartHolder value
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   423
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   424
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   425
searchNextBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   426
    ^ searchNextBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   427
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   428
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   429
searchNextBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   430
    searchNextBlock := something.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   431
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   432
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   433
searchPreviousBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   434
    ^ searchPreviousBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   435
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   436
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   437
searchPreviousBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   438
    searchPreviousBlock := something.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   439
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   440
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   441
!StringSearchTool methodsFor:'aspects'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   442
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   443
matchCaseHolder
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   444
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   445
    matchCaseHolder isNil ifTrue:[
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   446
        matchCaseHolder := self class lastMatchCase asValue.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   447
"/ 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
   448
"/       matchCaseHolder addDependent:self.
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   449
        matchCaseHolder onChangeSend:#matchCaseHolderChanged to:self.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   450
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   451
    ].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   452
    ^ matchCaseHolder.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   453
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   454
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   455
restartHolder
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   456
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   457
    restartHolder isNil ifTrue:[
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
   458
        restartHolder := self class lastRestart asValue.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   459
"/ if your app needs to be notified of changes, uncomment one of the lines below:
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   460
"/       restartHolder addDependent:self.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   461
        restartHolder onChangeSend:#restartHolderChanged to:self.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   462
    ].
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   463
    ^ restartHolder.
8069
3c4426cb3174 changed #matchCheckboxVisible
Claus Gittinger <cg@exept.de>
parents: 8061
diff changeset
   464
!
3c4426cb3174 changed #matchCheckboxVisible
Claus Gittinger <cg@exept.de>
parents: 8061
diff changeset
   465
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   466
searchBarImageInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   467
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   468
    searchBarImageInfoLabelHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   469
        searchBarImageInfoLabelHolder := nil asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   470
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   471
    ^ searchBarImageInfoLabelHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   472
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   473
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   474
searchBarInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   475
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   476
    searchBarInfoLabelHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   477
        searchBarInfoLabelHolder := '' asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   478
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   479
    ^ searchBarInfoLabelHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   480
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   481
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   482
searchTextHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   483
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   484
    searchTextHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   485
        searchTextHolder := ValueHolder new.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   486
"/ if your app needs to be notified of changes, uncomment one of the lines below:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   487
"/       userSelectedHolder addDependent:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   488
"/       userSelectedHolder onChangeSend:#searchTextHolderChanged to:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   489
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   490
    ^ searchTextHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   491
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   492
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   493
searchTextModifiedHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   494
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   495
    searchTextModifiedHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   496
        searchTextModifiedHolder := false asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   497
"/ if your app needs to be notified of changes, uncomment one of the lines below:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   498
"/       searchTextModifiedHolder addDependent:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   499
       searchTextModifiedHolder onChangeSend:#searchTextModifiedHolderChanged to:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   500
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   501
    ^ searchTextModifiedHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   502
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   503
    "Created: / 15-06-2007 / 18:07:19 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   504
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   505
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   506
!StringSearchTool methodsFor:'change & update'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   507
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   508
matchCaseHolderChanged
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   509
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   510
    self searchNextTextIncludingCurrentSelection: true.
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   511
    self setFocusToSearchTextView.
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   512
    self class lastMatchCase: self matchCaseHolder value. 
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   513
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   514
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   515
processEvent:anEvent
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   516
    searchTextView hasFocus ifFalse:[^ false].
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   517
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   518
    anEvent isKeyPressEvent ifTrue:[
8080
086cdba62ab5 changed #processEvent:
fm
parents: 8077
diff changeset
   519
"/        Transcript showCR: anEvent key printString.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   520
"/        anEvent key == #Find ifTrue:[
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   521
"/            self halt.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   522
"/            self searchNextText.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   523
"/            ^ true
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   524
"/        ].
8084
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   525
        anEvent key == #Escape ifTrue:[
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   526
            self escapePressed.
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   527
            ^ true
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   528
        ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   529
        anEvent key == #FindNext ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   530
            self searchNextText.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   531
            ^ true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   532
        ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   533
        anEvent key == #FindPrev ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   534
            self searchPreviousText.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   535
            ^ true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   536
        ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   537
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   538
    ^ false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   539
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   540
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   541
restartHolderChanged
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   542
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   543
    self setFocusToSearchTextView.
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
   544
    self class lastRestart: self restartHolder value.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   545
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   546
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   547
searchTextModifiedHolderChanged
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   548
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   549
    |previousRestart|
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   550
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   551
    "Always restart when looking for a typed string"
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   552
    previousRestart := self restartSearch.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   553
    self restartHolder setValue: true.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   554
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   555
    self searchNextTextIncludingCurrentSelection: true.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   556
    self searchTextModifiedHolder setValue: false.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   557
    self restartHolder setValue: previousRestart.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   558
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   559
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   560
"/Transcript showCR: 'searchTextModifiedHolderChanged: ',(self searchTextHolder value ? '').
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   561
"/Transcript showCR: 'searchTextView contents: ',(searchTextView contents ? '').
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   562
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   563
    "Created: / 15-06-2007 / 18:07:57 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   564
    "Modified: / 16-06-2007 / 09:21:27 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   565
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   566
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   567
!StringSearchTool methodsFor:'images'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   568
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   569
restartSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   570
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   571
    ^ self class restartSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   572
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   573
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   574
warningSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   575
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   576
    ^ self class warningSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   577
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   578
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   579
!StringSearchTool methodsFor:'initialization & release'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   580
8059
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   581
commonPostOpen
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   582
    self windowGroup addPreEventHook:self.
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   583
    super commonPostOpen
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   584
!
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   585
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   586
postBuildSearchTextView: anEditFieldView
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   587
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   588
    searchTextView := anEditFieldView
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   589
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   590
    "Created: / 15-06-2007 / 18:17:15 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   591
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   592
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   593
!StringSearchTool methodsFor:'private'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   594
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   595
searchReachEndOrBeginningIcon
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   596
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   597
    ^ self restartSearch 
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   598
        ifTrue:[self restartSearchBarIcon.]
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   599
        ifFalse:[self warningSearchBarIcon.].
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   600
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   601
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   602
searchTextRestarted: message
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   603
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   604
    self searchBarImageInfoLabelHolder value: self searchReachEndOrBeginningIcon.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   605
    self searchBarInfoLabelHolder value: message.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   606
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   607
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   608
setSearchTextFoundColors
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   609
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   610
    searchTextView foregroundColor: Color black.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   611
    searchTextView backgroundColor: Color white.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   612
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   613
    "Created: / 16-06-2007 / 06:28:32 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   614
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   615
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   616
setSearchTextNotFoundColors
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   617
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   618
    searchTextView foregroundColor: Color white.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   619
    searchTextView backgroundColor: Color lightRed.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   620
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   621
    "Created: / 16-06-2007 / 06:29:00 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   622
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   623
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   624
!StringSearchTool methodsFor:'public'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   625
8084
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   626
escapePressed
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   627
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   628
    self hideSearchBar.
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   629
!
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   630
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   631
searchBarOpened
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   632
8112
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   633
    self setFocusToSearchTextView.
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   634
    self selectAllInSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   635
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   636
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   637
searchNextTextReachEnd
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   638
    |message|
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   639
    message := 'End of text reached'.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   640
    self searchTextRestarted: message.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   641
    Smalltalk beep.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   642
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   643
    self restartSearch ifTrue:[
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   644
        message := message, ', starting from the beginning'.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   645
        self searchTextRestarted: message.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   646
        self searchNextTextFromBeginning.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   647
    ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   648
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   649
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   650
searchPreviousTextReachBeginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   651
    |message|
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   652
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   653
    message := 'Beginning of text reached'.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   654
    self searchTextRestarted: message.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   655
    Smalltalk beep.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   656
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   657
    self restartSearch ifTrue:[
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   658
        message := message, ', starting from the end'.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   659
        self searchTextRestarted: message.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   660
        self searchPreviousTextFromEnd
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   661
    ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   662
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   663
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   664
searchTextNotFound
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   665
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   666
    self searchTextNotFound: 'Text not found'.
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   667
!
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   668
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   669
searchTextNotFound: aMessage
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   670
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   671
    self searchBarImageInfoLabelHolder value: self warningSearchBarIcon.
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   672
    self searchBarInfoLabelHolder value: aMessage.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   673
    self setSearchTextNotFoundColors.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   674
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   675
    "Created: / 16-06-2007 / 06:51:01 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   676
    "Modified: / 16-06-2007 / 11:43:53 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   677
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   678
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   679
searchTextStarted
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   680
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   681
    self searchBarImageInfoLabelHolder value: nil.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   682
    self searchBarInfoLabelHolder value: ''.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   683
    self setSearchTextFoundColors.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   684
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   685
    "Created: / 16-06-2007 / 06:54:03 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   686
    "Modified: / 16-06-2007 / 10:07:06 / Administrador"
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   687
!
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   688
8112
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   689
selectAllInSearchTextView
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   690
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   691
    searchTextView selectAll.
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   692
!
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   693
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   694
setFocusToSearchTextView
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   695
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   696
    searchTextView requestFocus.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   697
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   698
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   699
!StringSearchTool methodsFor:'searching'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   700
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   701
hideSearchBar
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   702
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   703
    closeBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   704
    closeBlock value
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   705
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   706
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   707
searchNextText
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   708
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   709
    self searchNextTextIncludingCurrentSelection: false.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   710
"/    self setFocusToSearchTextView.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   711
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   712
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   713
searchNextTextButtonPressed
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   714
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   715
    self searchNextText.
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   716
    self setFocusToSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   717
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   718
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   719
searchNextTextFromBeginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   720
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   721
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   722
    searchText := searchTextView contents.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   723
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   724
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   725
    searchNextBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   726
    searchNextBlock value: self value: searchText value: ignoreCase value: #beginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   727
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   728
"/    self parent
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   729
"/            searchNextTextFromBeginning: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   730
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   731
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   732
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   733
searchNextTextIncludingCurrentSelection: includeCurrentSelection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   734
    |searchText ignoreCase startPlace|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   735
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   736
    self searchTextStarted.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   737
    searchText := searchTextView contents.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   738
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   739
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   740
    searchNextBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   741
    startPlace := includeCurrentSelection ifTrue:[#current] ifFalse:[#includingCurrent].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   742
    searchNextBlock value: self value: searchText value: ignoreCase value: startPlace 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   743
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   744
"/    self parent 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   745
"/            searchNextText: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   746
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   747
"/            includingCurrentSelection: includeCurrentSelection.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   748
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   749
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   750
searchPreviousText
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   751
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   752
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   753
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   754
    self searchTextStarted.
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   755
    searchText := searchTextView contents.      
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   756
"/    self setFocusToSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   757
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   758
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   759
    searchPreviousBlock isNil ifTrue:[^ self].
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   760
    searchPreviousBlock value: self value: searchText value: ignoreCase value: #current.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   761
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   762
"/    self parent 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   763
"/            searchPreviousText: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   764
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   765
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   766
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   767
searchPreviousTextButtonPressed
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   768
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   769
    self searchPreviousText.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   770
    self setFocusToSearchTextView.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   771
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   772
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   773
searchPreviousTextFromEnd
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   774
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   775
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   776
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   777
    searchText := searchTextView contents.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   778
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   779
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   780
    searchPreviousBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   781
    searchPreviousBlock value: self value: searchText value: ignoreCase value: #end
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   782
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   783
"/    self parent
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   784
"/            searchPreviousTextFromEnd: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   785
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   786
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   787
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   788
!StringSearchTool class methodsFor:'documentation'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   789
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   790
version
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   791
    ^ '$Header: /cvs/stx/stx/libtool/Tools__StringSearchTool.st,v 1.16 2009-10-12 13:00:35 fm Exp $'
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   792
!
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   793
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   794
version_CVS
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   795
    ^ '$Header: /cvs/stx/stx/libtool/Tools__StringSearchTool.st,v 1.16 2009-10-12 13:00:35 fm Exp $'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   796
! !