Tools__StringSearchTool.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 01 Apr 2015 10:38:01 +0100
branchjv
changeset 15566 184cea584be5
parent 12431 9f0c59c742d5
parent 14393 a24f8a66c004
child 15769 b62e96d5d327
permissions -rw-r--r--
Merged 25c2a13f00c5 and e6512d88f1ab (branch default - CVS HEAD)
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
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
    98
    <resource: #image>
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
    99
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   100
     by the ImageEditor of ST/X."
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
     self closeSearchBar inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   105
     ImageEditor openOnClass:self andSelector:#closeSearchBar
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   106
     Icon flushCachedIcons"
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   107
    
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   108
    ^ Icon constantNamed:#'Tools::StringSearchTool class closeSearchBarIcon'
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   109
        ifAbsentPut:[
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   110
            (Depth8Image new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   111
                width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   112
                height:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   113
                photometric:(#palette);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   114
                bitsPerSample:(#[ 8 ]);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   115
                samplesPerPixel:(1);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   116
                bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   117
                            fromPackedString:'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   118
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@GQ\SD1LSD1LSD1LSD1LWGP@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   119
@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
   120
@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
   121
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
   122
YVQ W59]VU 4CD @@@@@@@AGFP4F@PDA@PDA@PDFCQ%G@@@@@@@@K41TUEQTUEQTUEQTUEQLK0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   123
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   124
                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 ];
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   125
                mask:((ImageMask new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   126
                            width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   127
                            height:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   128
                            bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   129
                                        fromPackedString:'@@@@@@@@@@@@G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? G?? @@@@@@@@@@@@');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   130
                            yourself);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   131
                yourself
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   132
        ]
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   133
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   134
    "Created: / 15-06-2007 / 18:04:38 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   135
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   136
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   137
restartSearchBarIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   138
    <resource: #image>
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   139
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   140
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   141
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   142
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   143
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   144
     self restartSearchBarIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   145
     ImageEditor openOnClass:self andSelector:#restartSearchBarIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   146
     Icon flushCachedIcons"
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   147
    
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   148
    ^ Icon 
8477
e12a54b40fd9 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8275
diff changeset
   149
        constantNamed:#'Tools::StringSearchTool class restartSearchBarIcon'
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   150
        ifAbsentPut:[
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   151
            (Depth24Image new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   152
                width:20;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   153
                height:20;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   154
                photometric:(#rgb);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   155
                bitsPerSample:(#[ 8 8 8 ]);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   156
                samplesPerPixel:(3);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   157
                bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   158
                            fromPackedString:'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   159
@@@@@@@@@@@@@@@@@@@@@@@@?>SX?>''V?>;)?>O!!?>G]?>WY@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?=3\:[>''5;JF/Y-.+XY),(U.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   160
6JZK?=J1?>V<>.+I@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?>?'':+:!!19]U6*-Q?]Y/?>RC?>*!!?>F_>+=939UL2Y!!L>MJT??W[@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   161
@@@@??[-=\^&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
   162
: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
   163
>,"%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
   164
>^_''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
   165
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
   166
??[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
   167
=+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
   168
>/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
   169
@@@@@@@@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
   170
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
   171
@@@@@@@@@@@@@@@@@@@@?\*_7*]>3))5/II9+9FF+9> 0;7I5-#-7NO?7^#?8^/?:/G?7NK07>W3@@@@@@@@@@@@@@@@@@@@@@@@?>N;?>N;?=:9?>7T?>#X
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   172
>^_%=N?6<OK?@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   173
                mask:((ImageMask new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   174
                            width:20;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   175
                            height:20;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   176
                            bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   177
                                        fromPackedString:'@?@OC?0OO?8O_?<O_?>O???O?????_??>_??>_??>_??>_??>_??>_??__??O???O???G???A??/A? O');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   178
                            yourself);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   179
                yourself
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   180
        ]
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   181
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   182
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   183
searchNextIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   184
    <resource: #image>
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   185
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   186
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   187
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   188
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   189
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   190
     self searchNextIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   191
     ImageEditor openOnClass:self andSelector:#searchNextIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   192
     Icon flushCachedIcons"
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   193
    
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   194
    ^ Icon constantNamed:#'Tools::StringSearchTool class searchNextIcon'
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   195
        ifAbsentPut:[
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   196
            (Depth8Image new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   197
                width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   198
                height:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   199
                photometric:(#palette);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   200
                bitsPerSample:(#[ 8 ]);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   201
                samplesPerPixel:(1);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   202
                bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   203
                            fromPackedString:'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   204
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ZE)ZZ@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   205
@@@@@@AFF XA@PXUQ @@@@@@@@@@@@@@@@@*@Q5G^WX6E0D*@@@@@@@@@@@@@@@,AVQ?\&1#W&X8@20@@@@@@@@@@@A[@U==\F-"VUQOUSLAV0@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   206
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
   207
]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
   208
FSQ!!VC@T@UD@@@@@@@@@@@@@@@@@#R,I@PDIJ84@@@@@@@@@@@@@@@@@@@@@%)^W% @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   209
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   210
                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 ];
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   211
                mask:((ImageMask new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   212
                            width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   213
                            height:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   214
                            bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   215
                                        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');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   216
                            yourself);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   217
                yourself
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   218
        ]
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   219
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   220
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   221
searchPreviousIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   222
    <resource: #image>
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   223
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   224
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   225
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   226
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   227
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   228
     self searchPreviousIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   229
     ImageEditor openOnClass:self andSelector:#searchPreviousIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   230
     Icon flushCachedIcons"
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   231
    
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   232
    ^ Icon constantNamed:#'Tools::StringSearchTool class searchPreviousIcon'
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   233
        ifAbsentPut:[
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   234
            (Depth8Image new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   235
                width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   236
                height:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   237
                photometric:(#palette);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   238
                bitsPerSample:(#[ 8 ]);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   239
                samplesPerPixel:(1);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   240
                bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   241
                            fromPackedString:'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   242
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%)^W% @@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   243
@@@@@@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
   244
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
   245
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
   246
GT]9]#XW@R(@@@@@@@@@@@@@@@@@Q!!(F@PDFETX@@@@@@@@@@@@@@@@@@@@@ZE)ZZ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   247
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   248
                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 ];
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   249
                mask:((ImageMask new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   250
                            width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   251
                            height:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   252
                            bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   253
                                        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');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   254
                            yourself);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   255
                yourself
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   256
        ]
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   257
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   258
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   259
searchToolBarIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   260
    <resource: #image>
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   261
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   262
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   263
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   264
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   265
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   266
     self searchToolBarIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   267
     ImageEditor openOnClass:self andSelector:#searchToolBarIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   268
     Icon flushCachedIcons"
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   269
    
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   270
    ^ Icon constantNamed:#'Tools::StringSearchTool class searchToolBarIcon'
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   271
        ifAbsentPut:[
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   272
            (Depth24Image new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   273
                width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   274
                height:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   275
                photometric:(#rgb);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   276
                bitsPerSample:(#[ 8 8 8 ]);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   277
                samplesPerPixel:(3);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   278
                bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   279
                            fromPackedString:'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   280
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   281
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   282
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@4][>4][>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   283
@@@@@@@@@@@@@@@@@@@@@@@@@@@@;>#8/L#+!!:KS!!:KS/,'',;>''9@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@2];>^)WH
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   284
NE:+KU*:J5&9NE6*_I#K4^S>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@4][>RV3DLER"SWR6$K#0#;[.SGJ4L5"''UG_N4][>@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   285
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*K''\JT*,U6Z7:^S?>/C*;.3,6>C>RFF(KEZ"3-_-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   286
@@@@@@@@@@@@&Z''HFTF &Z7">N#:7NK?7NK?6=W>!!Y''YH4N -+3T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%I>;FDV)#ZWU??''57NK?
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   287
7NK?:>_?\8WKFCN".K#T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1L;.A#V[O5")3=W;=/[4</W:1,??K$JVI4Z\7-''4@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   288
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?-,[1E#:&C"ZZH3F U6_EU63FHS^XHS.K JOX7-''4@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   289
,K_*O5ZTCRBLPU&0FCBHDB&RDR6RH$NI Y#I4][>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?-;#%ND&KC">BYV.*4=;>7.+>-<K!!,K/!!7NK?
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   290
:^C;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?/K3^PT%<CBI/NE>==O;8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   291
@@@@@@@@@@@@7NK? (J9GB1SZV>W:M3?@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@5MS&++3H6M/#@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   292
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7NK?@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   293
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   294
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   295
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   296
@@@@@@@@@@@@@@@@');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   297
                mask:((ImageMask new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   298
                            width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   299
                            height:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   300
                            bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   301
                                        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');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   302
                            yourself);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   303
                yourself
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   304
        ]
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   305
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   306
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   307
warningSearchBarIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   308
    <resource: #image>
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   309
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   310
     by the ImageEditor of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   311
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   312
     the ImageEditor may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   313
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   314
     self warningSearchBarIcon inspect
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   315
     ImageEditor openOnClass:self andSelector:#warningSearchBarIcon
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   316
     Icon flushCachedIcons"
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   317
    
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   318
    ^ Icon 
8477
e12a54b40fd9 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8275
diff changeset
   319
        constantNamed:#'Tools::StringSearchTool class warningSearchBarIcon'
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   320
        ifAbsentPut:[
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   321
            (Depth24Image new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   322
                width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   323
                height:19;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   324
                photometric:(#rgb);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   325
                bitsPerSample:(#[ 8 8 8 ]);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   326
                samplesPerPixel:(3);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   327
                bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   328
                            fromPackedString:'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   329
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?:.+<Y"P??C\@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@>_;?@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   330
@@@@?]SZ)5]X.6!! -HM2??''*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?>39-7*B4H&G>[N+%%MJ>\#A@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   331
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<+R?*U1&?=CN?>W^4HJ@+FY$?>+"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   332
@@@@@@@@@@@@@@@@@@@@?>G_)U!!^>Z^->,B><+"4?*^-%C8?;;Z+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@??#1-(E;.65+?<#H
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   333
?=_T?=GP?::65W-=(EQF?>WQ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?\#D*VAY?;61<;"0;,C@6J^+;*"0>ZN$&CX)6(-:@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   334
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?>#+/7Q148E6?<"4<L&:W#(:G@@@392!!48^G9WM(%24_?=WN@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   335
??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
   336
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
   337
@@@@@@@@@@@@@@@@@@@@?<;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
   338
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
   339
;.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
   340
?>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
   341
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
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   342
(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');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   343
                mask:((ImageMask new)
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   344
                            width:22;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   345
                            height:19;
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   346
                            bits:(ByteArray 
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   347
                                        fromPackedString:'@C G@G0C@O0C@O8C@_8C@?<C@?<CA?>CC??CC??CC??#G??#O??3O??3_??;????????????????');
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   348
                            yourself);
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   349
                yourself
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   350
        ]
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   351
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   352
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   353
!StringSearchTool class methodsFor:'interface specs'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   354
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   355
windowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   356
    "This resource specification was automatically generated
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   357
     by the UIPainter of ST/X."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   358
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   359
    "Do not manually edit this!! If it is corrupted,
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   360
     the UIPainter may not be able to read the specification."
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   361
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   362
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   363
     UIPainter new openOnClass:Tools::StringSearchTool andSelector:#windowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   364
     Tools::StringSearchTool new openInterface:#windowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   365
     Tools::StringSearchTool open
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   366
    "
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   367
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   368
    <resource: #canvas>
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   369
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   370
    ^ 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   371
     #(FullSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   372
        name: windowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   373
        window: 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   374
       (WindowSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   375
          label: 'Tools::StringSearchTool'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   376
          name: 'Tools::StringSearchTool'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   377
          min: (Point 10 10)
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   378
          bounds: (Rectangle 0 0 801 27)
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   379
        )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   380
        component: 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   381
       (SpecCollection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   382
          collection: (
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   383
           (ViewSpec
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   384
              name: 'SearchBox'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   385
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   386
              level: -1
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   387
              component: 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   388
             (SpecCollection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   389
                collection: (
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   390
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   391
                    label: 'closeSearchBarIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   392
                    name: 'hideSearchBarButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   393
                    layout: (LayoutFrame 4 0 2 0 25 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   394
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   395
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   396
                    model: hideSearchBar
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   397
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   398
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   399
                    label: 'Search:'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   400
                    name: 'SearchLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   401
                    layout: (LayoutFrame 30 0 1 0 81 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   402
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   403
                    adjust: right
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   404
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   405
                 (InputFieldSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   406
                    name: 'SearchEntryField'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   407
                    layout: (LayoutFrame 87 0 1 0 298 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   408
                    model: searchTextHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   409
                    immediateAccept: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   410
                    acceptOnReturn: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   411
                    acceptOnTab: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   412
                    acceptOnLostFocus: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   413
                    modifiedChannel: searchTextModifiedHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   414
                    acceptOnPointerLeave: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   415
                    postBuildCallback: postBuildSearchTextView:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   416
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   417
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   418
                    label: 'searchNextIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   419
                    name: 'SearchNextButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   420
                    layout: (LayoutFrame 302 0 1 0 323 0 22 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   421
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   422
                    translateLabel: true
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   423
                    model: searchNextTextButtonPressed
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   424
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   425
                 (ActionButtonSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   426
                    label: 'searchPreviousIcon'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   427
                    name: 'searchPreviousButton'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   428
                    layout: (LayoutFrame 330 0 1 0 351 0 22 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   429
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   430
                    translateLabel: true
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   431
                    model: searchPreviousTextButtonPressed
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   432
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   433
                 (CheckBoxSpec
8926
6e136b0d4ab9 case toggle reversed
Claus Gittinger <cg@exept.de>
parents: 8914
diff changeset
   434
                    label: 'Case'
6e136b0d4ab9 case toggle reversed
Claus Gittinger <cg@exept.de>
parents: 8914
diff changeset
   435
                    name: 'DoNotIgnoreCaseCheckBox'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   436
                    layout: (LayoutFrame 360 0 1 0 553 0 23 0)
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   437
                    model: matchCaseHolder
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   438
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   439
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   440
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   441
                    label: 'SearchBarImageInfoLabel'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   442
                    name: 'SearchBarImageInfoLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   443
                    layout: (LayoutFrame 557 0 1 0 581 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   444
                    hasCharacterOrientedLabel: false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   445
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   446
                    labelChannel: searchBarImageInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   447
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   448
                 (LabelSpec
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   449
                    label: 'SearchBarInfoLabel'
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   450
                    name: 'SearchBarInfoLabel'
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   451
                    layout: (LayoutFrame 584 0 1 0 862 0 23 0)
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   452
                    translateLabel: true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   453
                    labelChannel: searchBarInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   454
                    adjust: left
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   455
                  )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   456
                 )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   457
               
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   458
              )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   459
            )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   460
           )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   461
         
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   462
        )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   463
      )
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   464
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   465
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   466
!StringSearchTool methodsFor:'accessing'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   467
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   468
closeBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   469
    ^ closeBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   470
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   471
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   472
closeBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   473
    closeBlock := something.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   474
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   475
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   476
ignoreCase
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   477
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   478
    ^ self matchCaseHolder value not
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   479
!
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   480
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   481
initialSearchString: aString  
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   482
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   483
    self searchTextHolder value: aString.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   484
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   485
8077
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   486
matchCheckboxVisible
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   487
    ^ false
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   488
!
d8ae29860f78 changed #matchCheckboxVisible
fm
parents: 8076
diff changeset
   489
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   490
restartSearch
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   491
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   492
    ^ self restartHolder value
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   493
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   494
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   495
searchNextBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   496
    ^ searchNextBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   497
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   498
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   499
searchNextBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   500
    searchNextBlock := something.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   501
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   502
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   503
searchPreviousBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   504
    ^ searchPreviousBlock
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   505
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   506
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   507
searchPreviousBlock:something
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   508
    searchPreviousBlock := something.
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   509
!
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   510
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   511
searchText
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   512
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   513
    ^ searchTextView contents
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   514
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   515
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   516
!StringSearchTool methodsFor:'aspects'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   517
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   518
matchCaseHolder
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   519
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   520
    matchCaseHolder isNil ifTrue:[
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   521
        matchCaseHolder := self class lastMatchCase asValue.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   522
"/ 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
   523
"/       matchCaseHolder addDependent:self.
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   524
        matchCaseHolder onChangeSend:#matchCaseHolderChanged to:self.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   525
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   526
    ].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   527
    ^ matchCaseHolder.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   528
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   529
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   530
restartHolder
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   531
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   532
    restartHolder isNil ifTrue:[
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
   533
        restartHolder := self class lastRestart asValue.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   534
"/ if your app needs to be notified of changes, uncomment one of the lines below:
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   535
"/       restartHolder addDependent:self.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   536
        restartHolder onChangeSend:#restartHolderChanged to:self.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   537
    ].
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   538
    ^ restartHolder.
8069
3c4426cb3174 changed #matchCheckboxVisible
Claus Gittinger <cg@exept.de>
parents: 8061
diff changeset
   539
!
3c4426cb3174 changed #matchCheckboxVisible
Claus Gittinger <cg@exept.de>
parents: 8061
diff changeset
   540
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   541
searchBarImageInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   542
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   543
    searchBarImageInfoLabelHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   544
        searchBarImageInfoLabelHolder := nil asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   545
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   546
    ^ searchBarImageInfoLabelHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   547
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   548
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   549
searchBarInfoLabelHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   550
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   551
    searchBarInfoLabelHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   552
        searchBarInfoLabelHolder := '' asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   553
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   554
    ^ searchBarInfoLabelHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   555
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   556
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   557
searchTextHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   558
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   559
    searchTextHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   560
        searchTextHolder := ValueHolder new.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   561
"/ if your app needs to be notified of changes, uncomment one of the lines below:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   562
"/       userSelectedHolder addDependent:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   563
"/       userSelectedHolder onChangeSend:#searchTextHolderChanged to:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   564
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   565
    ^ searchTextHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   566
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   567
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   568
searchTextModifiedHolder
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   569
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   570
    searchTextModifiedHolder isNil ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   571
        searchTextModifiedHolder := false asValue .
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   572
"/ if your app needs to be notified of changes, uncomment one of the lines below:
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   573
"/       searchTextModifiedHolder addDependent:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   574
       searchTextModifiedHolder onChangeSend:#searchTextModifiedHolderChanged to:self.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   575
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   576
    ^ searchTextModifiedHolder.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   577
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   578
    "Created: / 15-06-2007 / 18:07:19 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   579
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   580
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   581
!StringSearchTool methodsFor:'change & update'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   582
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   583
matchCaseHolderChanged
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   584
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   585
    self searchNextTextIncludingCurrentSelection: true.
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   586
    self setFocusToSearchTextView.
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   587
    self class lastMatchCase: self matchCaseHolder value. 
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   588
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   589
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   590
processEvent:anEvent
12118
42920aab102f class: Tools::StringSearchTool
Claus Gittinger <cg@exept.de>
parents: 9474
diff changeset
   591
    <resource: #keyboard (#Escape #FindNext #FindPrev)>
42920aab102f class: Tools::StringSearchTool
Claus Gittinger <cg@exept.de>
parents: 9474
diff changeset
   592
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   593
    searchTextView hasFocus ifFalse:[^ false].
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   594
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   595
    anEvent isKeyPressEvent ifTrue:[
8080
086cdba62ab5 changed #processEvent:
fm
parents: 8077
diff changeset
   596
"/        Transcript showCR: anEvent key printString.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   597
"/        anEvent key == #Find ifTrue:[
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   598
"/            self halt.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   599
"/            self searchNextText.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   600
"/            ^ true
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   601
"/        ].
8084
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   602
        anEvent key == #Escape ifTrue:[
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   603
            self escapePressed.
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   604
            ^ true
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   605
        ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   606
        anEvent key == #FindNext ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   607
            self searchNextText.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   608
            ^ true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   609
        ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   610
        anEvent key == #FindPrev ifTrue:[
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   611
            self searchPreviousText.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   612
            ^ true
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   613
        ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   614
    ].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   615
    ^ false
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   616
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   617
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   618
restartHolderChanged
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   619
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   620
    self setFocusToSearchTextView.
8914
d7e2ac543146 *** empty log message ***
fm
parents: 8911
diff changeset
   621
    self class lastRestart: self restartHolder value.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   622
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   623
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   624
searchTextModifiedHolderChanged
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   625
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   626
    |previousRestart|
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   627
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   628
    "Always restart when looking for a typed string"
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   629
    previousRestart := self restartSearch.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   630
    self restartHolder setValue: true.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   631
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   632
    self searchNextTextIncludingCurrentSelection: true.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   633
    self searchTextModifiedHolder setValue: false.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   634
    self restartHolder setValue: previousRestart.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   635
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   636
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   637
"/Transcript showCR: 'searchTextModifiedHolderChanged: ',(self searchTextHolder value ? '').
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   638
"/Transcript showCR: 'searchTextView contents: ',(self searchText ? '').
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   639
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   640
    "Created: / 15-06-2007 / 18:07:57 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   641
    "Modified: / 16-06-2007 / 09:21:27 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   642
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   643
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   644
!StringSearchTool methodsFor:'images'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   645
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   646
restartSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   647
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   648
    ^ self class restartSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   649
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   650
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   651
warningSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   652
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   653
    ^ self class warningSearchBarIcon
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   654
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   655
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   656
!StringSearchTool methodsFor:'initialization & release'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   657
8059
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   658
commonPostOpen
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   659
    self windowGroup addPreEventHook:self.
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   660
    super commonPostOpen
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   661
!
c7135647e846 *** empty log message ***
fm
parents: 8048
diff changeset
   662
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   663
postBuildSearchTextView: anEditFieldView
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   664
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   665
    searchTextView := anEditFieldView
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   666
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   667
    "Created: / 15-06-2007 / 18:17:15 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   668
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   669
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   670
!StringSearchTool methodsFor:'private'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   671
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   672
searchReachEndOrBeginningIcon
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   673
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   674
    ^ self restartSearch 
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   675
        ifTrue:[self restartSearchBarIcon.]
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   676
        ifFalse:[self warningSearchBarIcon.].
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   677
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   678
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   679
searchTextRestarted: message
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   680
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   681
    self searchBarImageInfoLabelHolder value: self searchReachEndOrBeginningIcon.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   682
    self searchBarInfoLabelHolder value: message.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   683
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   684
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   685
setSearchTextFoundColors
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   686
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   687
    searchTextView foregroundColor: Color black.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   688
    searchTextView backgroundColor: Color white.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   689
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   690
    "Created: / 16-06-2007 / 06:28:32 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   691
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   692
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   693
setSearchTextNotFoundColors
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   694
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   695
    searchTextView foregroundColor: Color white.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   696
    searchTextView backgroundColor: Color lightRed.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   697
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   698
    "Created: / 16-06-2007 / 06:29:00 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   699
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   700
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   701
!StringSearchTool methodsFor:'public'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   702
8084
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   703
escapePressed
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   704
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   705
    self hideSearchBar.
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   706
!
411aeb42a6c1 return focus and hide after pressing #Escape
fm
parents: 8080
diff changeset
   707
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   708
searchBarOpened
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   709
8112
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   710
    self setFocusToSearchTextView.
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   711
    self selectAllInSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   712
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   713
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   714
searchNextTextReachEnd
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   715
    |message|
8957
fm
parents: 8955
diff changeset
   716
    message := (resources string: 'End of text reached').
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   717
    self searchTextRestarted: message.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   718
    Smalltalk beep.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   719
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   720
    self restartSearch ifTrue:[
8957
fm
parents: 8955
diff changeset
   721
        message := message, (resources string: ', starting from the beginning').
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   722
        self searchTextRestarted: message.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   723
        self searchNextTextFromBeginning.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   724
    ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   725
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   726
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   727
searchPreviousTextReachBeginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   728
    |message|
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   729
8957
fm
parents: 8955
diff changeset
   730
    message := (resources string: 'Beginning of text reached').
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   731
    self searchTextRestarted: message.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   732
    Smalltalk beep.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   733
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   734
    self restartSearch ifTrue:[
8957
fm
parents: 8955
diff changeset
   735
        message := message, (resources string: ', starting from the end').
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   736
        self searchTextRestarted: message.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   737
        self searchPreviousTextFromEnd
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   738
    ].
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   739
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   740
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   741
searchTextNotFound
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   742
8957
fm
parents: 8955
diff changeset
   743
    self searchTextNotFound: (resources string: 'Text not found').
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   744
!
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   745
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   746
searchTextNotFound: aMessage
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   747
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   748
    self searchBarImageInfoLabelHolder value: self warningSearchBarIcon.
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   749
    self searchBarInfoLabelHolder value: aMessage.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   750
    self setSearchTextNotFoundColors.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   751
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   752
    "Created: / 16-06-2007 / 06:51:01 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   753
    "Modified: / 16-06-2007 / 11:43:53 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   754
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   755
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   756
searchTextStarted
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   757
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   758
    self searchBarImageInfoLabelHolder value: nil.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   759
    self searchBarInfoLabelHolder value: ''.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   760
    self setSearchTextFoundColors.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   761
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   762
    "Created: / 16-06-2007 / 06:54:03 / Administrador"
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   763
    "Modified: / 16-06-2007 / 10:07:06 / Administrador"
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   764
!
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   765
8112
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   766
selectAllInSearchTextView
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   767
9244
6bcb7d03910b changed: #selectAllInSearchTextView
Claus Gittinger <cg@exept.de>
parents: 8996
diff changeset
   768
    searchTextView selectAllInitially.
8112
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   769
!
de6cb31af659 select text when focus goes into search-field
Claus Gittinger <cg@exept.de>
parents: 8084
diff changeset
   770
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   771
setFocusToSearchTextView
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   772
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   773
    searchTextView requestFocus.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   774
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   775
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   776
!StringSearchTool methodsFor:'searching'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   777
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   778
hideSearchBar
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   779
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   780
    closeBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   781
    closeBlock value
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   782
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   783
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   784
searchNextText
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   785
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   786
    self searchNextTextIncludingCurrentSelection: false.
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   787
"/    self setFocusToSearchTextView.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   788
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   789
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   790
searchNextTextButtonPressed
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   791
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   792
    self searchNextText.
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   793
    self setFocusToSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   794
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   795
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   796
searchNextTextFromBeginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   797
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   798
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   799
    searchText := self searchText.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   800
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   801
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   802
    searchNextBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   803
    searchNextBlock value: self value: searchText value: ignoreCase value: #beginning
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   804
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   805
"/    self parent
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   806
"/            searchNextTextFromBeginning: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   807
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   808
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   809
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   810
searchNextTextIncludingCurrentSelection: includeCurrentSelection
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   811
    |searchText ignoreCase startPlace|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   812
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   813
    self searchTextStarted.
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   814
    searchText := self searchText.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   815
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   816
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   817
    searchNextBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   818
    startPlace := includeCurrentSelection ifTrue:[#current] ifFalse:[#includingCurrent].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   819
    searchNextBlock value: self value: searchText value: ignoreCase value: startPlace 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   820
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   821
"/    self parent 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   822
"/            searchNextText: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   823
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   824
"/            includingCurrentSelection: includeCurrentSelection.
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   825
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   826
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   827
searchPreviousText
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   828
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   829
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   830
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   831
    self searchTextStarted.
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   832
    searchText := self searchText.      
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   833
"/    self setFocusToSearchTextView.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   834
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   835
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   836
    searchPreviousBlock isNil ifTrue:[^ self].
8061
4efeccdc0f1d searchString without showing searchBar
fm
parents: 8059
diff changeset
   837
    searchPreviousBlock value: self value: searchText value: ignoreCase value: #current.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   838
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   839
"/    self parent 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   840
"/            searchPreviousText: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   841
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   842
!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   843
8076
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   844
searchPreviousTextButtonPressed
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   845
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   846
    self searchPreviousText.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   847
    self setFocusToSearchTextView.
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   848
!
6c23c777d44d restartSearch
fm
parents: 8069
diff changeset
   849
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   850
searchPreviousTextFromEnd
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   851
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   852
    |searchText ignoreCase|
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   853
8996
261868e9cc34 fixes in searchBar
fm
parents: 8957
diff changeset
   854
    searchText := self searchText.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   855
    searchText isEmptyOrNil ifTrue:[^self].
8955
b9229ea79b82 *** empty log message ***
fm
parents: 8926
diff changeset
   856
    ignoreCase := self ignoreCase.
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   857
    searchPreviousBlock isNil ifTrue:[^ self].
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   858
    searchPreviousBlock value: self value: searchText value: ignoreCase value: #end
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   859
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   860
"/    self parent
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   861
"/            searchPreviousTextFromEnd: searchText 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   862
"/            ignoreCase: ignoreCase 
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   863
! !
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   864
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   865
!StringSearchTool class methodsFor:'documentation'!
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   866
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   867
version
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   868
    ^ '$Header: /cvs/stx/stx/libtool/Tools__StringSearchTool.st,v 1.22 2014-05-23 08:14:51 stefan Exp $'
8911
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   869
!
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   870
b23fd42e0da7 added: #searchTextNotFound:
fm
parents: 8485
diff changeset
   871
version_CVS
14393
a24f8a66c004 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 12118
diff changeset
   872
    ^ '$Header: /cvs/stx/stx/libtool/Tools__StringSearchTool.st,v 1.22 2014-05-23 08:14:51 stefan Exp $'
8048
a2f6465887e1 initial checkin
fm
parents:
diff changeset
   873
! !
12118
42920aab102f class: Tools::StringSearchTool
Claus Gittinger <cg@exept.de>
parents: 9474
diff changeset
   874