author | tz |
Tue, 27 Jan 1998 14:31:52 +0100 | |
changeset 776 | b533fbcadb8c |
parent 772 | 6164c303afde |
child 778 | 251895a3f266 |
permissions | -rw-r--r-- |
756 | 1 |
" |
2 |
COPYRIGHT (c) 1997 by eXept Software AG / Thomas Zwick |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
753 | 15 |
ApplicationModel subclass:#ToolApplicationModel |
16 |
instanceVariableNames:'activeHelp timeBlock' |
|
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-Advanced-Tools' |
|
20 |
! |
|
21 |
||
756 | 22 |
ToolApplicationModel class instanceVariableNames:'history clipboard' |
753 | 23 |
|
24 |
" |
|
25 |
The following class instance variables are inherited by this class: |
|
26 |
||
27 |
ApplicationModel - ClassResources |
|
28 |
Model - |
|
29 |
Object - |
|
30 |
" |
|
31 |
! |
|
32 |
||
33 |
!ToolApplicationModel class methodsFor:'documentation'! |
|
34 |
||
756 | 35 |
copyright |
36 |
" |
|
37 |
COPYRIGHT (c) 1997 by eXept Software AG / Thomas Zwick |
|
38 |
All Rights Reserved |
|
39 |
||
40 |
This software is furnished under a license and may be used |
|
41 |
only in accordance with the terms of that license and with the |
|
42 |
inclusion of the above copyright notice. This software may not |
|
43 |
be provided or otherwise made available to, or used by, any |
|
44 |
other person. No title to or ownership of the software is |
|
45 |
hereby transferred. |
|
46 |
" |
|
47 |
||
48 |
||
49 |
! |
|
50 |
||
753 | 51 |
documentation |
52 |
" |
|
53 |
Standard framework for tools; provides hooks for history management, |
|
54 |
about menu, help menu etc. |
|
55 |
See concrete subclasses for examples. |
|
56 |
||
57 |
[author:] |
|
58 |
Thomas Zwick |
|
59 |
" |
|
756 | 60 |
! |
61 |
||
62 |
history |
|
63 |
"Created: / 10.1.1998 / 11:01:21 / tz" |
|
753 | 64 |
! ! |
65 |
||
66 |
!ToolApplicationModel class methodsFor:'accessing'! |
|
67 |
||
68 |
author |
|
69 |
||
70 |
^((((self class withAllSuperclasses detect: [:metacls| metacls implements:#documentation])) |
|
71 |
compiledMethodAt: #documentation) source readStream upToAll: '[author:]'; nextLine; nextLine) trimBlanks |
|
72 |
||
73 |
! |
|
74 |
||
75 |
label |
|
76 |
||
77 |
|label| |
|
78 |
label := ''. |
|
79 |
self name do: |
|
80 |
[:c| |
|
81 |
c isUppercase ifTrue: [label := label, $ ]. |
|
82 |
label := label, c |
|
83 |
]. |
|
84 |
^label trimBlanks |
|
85 |
! ! |
|
86 |
||
756 | 87 |
!ToolApplicationModel class methodsFor:'clipboard'! |
88 |
||
89 |
clipboard |
|
90 |
||
91 |
^clipboard |
|
92 |
! |
|
93 |
||
94 |
clipboard: anEditObject |
|
95 |
||
96 |
clipboard := anEditObject |
|
97 |
! ! |
|
98 |
||
762 | 99 |
!ToolApplicationModel class methodsFor:'help specs'! |
100 |
||
101 |
helpSpec |
|
102 |
"return a dictionary filled with helpKey -> helptext associations. |
|
103 |
These are used by the activeHelp tool." |
|
104 |
||
105 |
" |
|
106 |
UIHelpTool openOnClass:ToolApplicationModel |
|
107 |
" |
|
108 |
||
109 |
^ super helpSpec addPairsFrom:#( |
|
110 |
||
111 |
#aboutSTX |
|
763 | 112 |
'Opens an InfoBox about running ST/X.' |
762 | 113 |
|
114 |
#aboutThisAppliaction |
|
763 | 115 |
'Opens an InfoBox about release and author of current application.' |
762 | 116 |
|
117 |
#fileExit |
|
763 | 118 |
'Exits current application.' |
762 | 119 |
|
120 |
#helpClassDocumentation |
|
763 | 121 |
'Opens a HTML-browser with a class documentation for current application.' |
762 | 122 |
|
123 |
#helpProgrammersGuide |
|
763 | 124 |
'Opens a HTML-browser with a programmers guide.' |
762 | 125 |
|
126 |
#helpShowHelp |
|
763 | 127 |
'Toggles on/off displaying help texts.' |
762 | 128 |
|
129 |
#helpTutorial |
|
763 | 130 |
'Opens a HTML-browser with a tutorial for beginners.' |
762 | 131 |
|
132 |
) |
|
133 |
! ! |
|
134 |
||
753 | 135 |
!ToolApplicationModel class methodsFor:'history'! |
136 |
||
137 |
getHistory |
|
138 |
||
761
cc0404f8aec6
#getHistory changed because here #? doesn't work correctly
tz
parents:
760
diff
changeset
|
139 |
history isNil ifTrue: [history := OrderedCollection new]. |
cc0404f8aec6
#getHistory changed because here #? doesn't work correctly
tz
parents:
760
diff
changeset
|
140 |
^history |
753 | 141 |
|
142 |
! |
|
143 |
||
144 |
historyMaxSize |
|
145 |
||
146 |
^10 |
|
147 |
||
148 |
! ! |
|
149 |
||
150 |
!ToolApplicationModel class methodsFor:'interface specs'! |
|
151 |
||
152 |
menuAbout |
|
153 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
154 |
||
155 |
"do not manually edit this - the builder may not be able to |
|
156 |
handle the specification if its corrupted." |
|
157 |
||
158 |
" |
|
159 |
MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuAbout |
|
160 |
(Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuAbout)) startUp |
|
161 |
" |
|
162 |
||
163 |
<resource: #menu> |
|
164 |
||
165 |
^ |
|
166 |
||
167 |
#(#Menu |
|
168 |
||
169 |
#( |
|
170 |
#(#MenuItem |
|
171 |
#'label:' 'About Smalltalk/X...' |
|
172 |
#'value:' #openAbout |
|
762 | 173 |
#'activeHelpKey:' #aboutSTX |
753 | 174 |
) |
175 |
#(#MenuItem |
|
176 |
#'label:' '-' |
|
177 |
) |
|
178 |
#(#MenuItem |
|
179 |
#'label:' 'About This Application...' |
|
180 |
#'value:' #openAboutThisApplication |
|
762 | 181 |
#'activeHelpKey:' #aboutThisAppliaction |
753 | 182 |
) |
183 |
) nil |
|
184 |
nil |
|
185 |
) |
|
186 |
! |
|
187 |
||
188 |
menuHelp |
|
189 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
190 |
||
191 |
"do not manually edit this - the builder may not be able to |
|
192 |
handle the specification if its corrupted." |
|
193 |
||
194 |
" |
|
195 |
MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuHelp |
|
196 |
(Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuHelp)) startUp |
|
197 |
" |
|
198 |
||
199 |
<resource: #menu> |
|
200 |
||
201 |
^ |
|
202 |
||
203 |
#(#Menu |
|
204 |
||
205 |
#( |
|
206 |
#(#MenuItem |
|
207 |
#'label:' 'Tutorial' |
|
208 |
#'value:' #openTutorial |
|
762 | 209 |
#'activeHelpKey:' #helpTutorial |
753 | 210 |
) |
211 |
#(#MenuItem |
|
212 |
#'label:' 'Programmer''s Guide' |
|
213 |
#'value:' #openProgrammersGuide |
|
762 | 214 |
#'activeHelpKey:' #helpProgrammersGuide |
753 | 215 |
) |
216 |
#(#MenuItem |
|
217 |
#'label:' '-' |
|
218 |
) |
|
219 |
#(#MenuItem |
|
220 |
#'label:' 'Class Documentation' |
|
221 |
#'value:' #openClassDocumentation |
|
762 | 222 |
#'activeHelpKey:' #helpClassDocumentation |
753 | 223 |
) |
224 |
#(#MenuItem |
|
225 |
#'label:' '-' |
|
226 |
) |
|
227 |
#(#MenuItem |
|
762 | 228 |
#'label:' 'Show Help' |
753 | 229 |
#'value:' #'activeHelp:' |
762 | 230 |
#'activeHelpKey:' #helpShowHelp |
753 | 231 |
#'indication:' #activeHelp |
232 |
) |
|
233 |
) nil |
|
234 |
nil |
|
235 |
) |
|
236 |
! |
|
237 |
||
238 |
menuSettings |
|
239 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
240 |
||
241 |
"do not manually edit this - the builder may not be able to |
|
242 |
handle the specification if its corrupted." |
|
243 |
||
244 |
" |
|
245 |
MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuSettings |
|
246 |
(Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuSettings)) startUp |
|
247 |
" |
|
248 |
||
249 |
<resource: #menu> |
|
250 |
||
251 |
^ |
|
252 |
||
253 |
#(#Menu |
|
254 |
||
255 |
#( |
|
256 |
#(#MenuItem |
|
257 |
#'label:' 'Language' |
|
258 |
#'value:' #languageSetting |
|
259 |
) |
|
260 |
) nil |
|
261 |
nil |
|
262 |
) |
|
758 | 263 |
! |
264 |
||
265 |
windowSpecForCommit |
|
266 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
267 |
||
268 |
"do not manually edit this - the painter/builder may not be able to |
|
269 |
handle the specification if its corrupted." |
|
270 |
||
271 |
" |
|
272 |
UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommit |
|
273 |
ToolApplicationModel new openInterface:#windowSpecForCommit |
|
274 |
" |
|
275 |
||
276 |
<resource: #canvas> |
|
277 |
||
278 |
^ |
|
279 |
||
280 |
#(#FullSpec |
|
281 |
#'window:' |
|
282 |
#(#WindowSpec |
|
283 |
#'name:' 'unnamed canvas' |
|
769 | 284 |
#'layout:' #(#LayoutFrame 325 0 361 0 624 0 420 0) |
758 | 285 |
#'label:' 'unnamed canvas' |
286 |
#'min:' #(#Point 100 22) |
|
287 |
#'max:' #(#Point 1152 900) |
|
769 | 288 |
#'bounds:' #(#Rectangle 325 361 625 421) |
758 | 289 |
#'usePreferredExtent:' false |
290 |
) |
|
291 |
#'component:' |
|
292 |
#(#SpecCollection |
|
293 |
#'collection:' |
|
294 |
#( |
|
295 |
#(#ActionButtonSpec |
|
296 |
#'name:' 'cancelButton' |
|
297 |
#'layout:' #(#LayoutFrame 5 0 0 0 -2 0.5 0 1) |
|
298 |
#'label:' 'Cancel' |
|
769 | 299 |
#'tabable:' true |
758 | 300 |
#'model:' #cancel |
301 |
#'enableChannel:' #valueOfEnablingCommitButtons |
|
302 |
) |
|
303 |
#(#ActionButtonSpec |
|
304 |
#'name:' 'okButton' |
|
305 |
#'layout:' #(#LayoutFrame 2 0.5 0 0.0 -5 1 0 1.0) |
|
306 |
#'label:' 'OK' |
|
769 | 307 |
#'tabable:' true |
758 | 308 |
#'model:' #accept |
309 |
#'enableChannel:' #valueOfEnablingCommitButtons |
|
310 |
) |
|
311 |
) |
|
312 |
) |
|
313 |
) |
|
760 | 314 |
! |
315 |
||
316 |
windowSpecForCommitWithoutChannels |
|
317 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
318 |
||
319 |
"do not manually edit this - the painter/builder may not be able to |
|
320 |
handle the specification if its corrupted." |
|
321 |
||
322 |
" |
|
323 |
UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommitWithoutChannels |
|
324 |
ToolApplicationModel new openInterface:#windowSpecForCommitWithoutChannels |
|
325 |
" |
|
326 |
||
327 |
<resource: #canvas> |
|
328 |
||
329 |
^ |
|
330 |
||
331 |
#(#FullSpec |
|
332 |
#'window:' |
|
333 |
#(#WindowSpec |
|
334 |
#'name:' 'unnamed canvas' |
|
769 | 335 |
#'layout:' #(#LayoutFrame 418 0 386 0 717 0 445 0) |
760 | 336 |
#'label:' 'unnamed canvas' |
337 |
#'min:' #(#Point 100 22) |
|
338 |
#'max:' #(#Point 1152 900) |
|
769 | 339 |
#'bounds:' #(#Rectangle 418 386 718 446) |
760 | 340 |
#'usePreferredExtent:' false |
341 |
) |
|
342 |
#'component:' |
|
343 |
#(#SpecCollection |
|
344 |
#'collection:' |
|
345 |
#( |
|
346 |
#(#ActionButtonSpec |
|
347 |
#'name:' 'cancelButton' |
|
348 |
#'layout:' #(#LayoutFrame 5 0 0 0 -2 0.5 0 1) |
|
349 |
#'label:' 'Cancel' |
|
769 | 350 |
#'tabable:' true |
760 | 351 |
#'model:' #cancel |
352 |
) |
|
353 |
#(#ActionButtonSpec |
|
354 |
#'name:' 'okButton' |
|
355 |
#'layout:' #(#LayoutFrame 2 0.5 0 0.0 -5 1 0 1.0) |
|
356 |
#'label:' 'OK' |
|
769 | 357 |
#'tabable:' true |
760 | 358 |
#'model:' #accept |
359 |
) |
|
360 |
) |
|
361 |
) |
|
362 |
) |
|
776 | 363 |
! |
364 |
||
365 |
windowSpecForInfoBar |
|
366 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
367 |
||
368 |
"do not manually edit this - the painter/builder may not be able to |
|
369 |
handle the specification if its corrupted." |
|
370 |
||
371 |
" |
|
372 |
UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBar |
|
373 |
ToolApplicationModel new openInterface:#windowSpecForInfoBar |
|
374 |
" |
|
375 |
||
376 |
<resource: #canvas> |
|
377 |
||
378 |
^ |
|
379 |
||
380 |
#(#FullSpec |
|
381 |
#'window:' |
|
382 |
#(#WindowSpec |
|
383 |
#'name:' 'Image Editor' |
|
384 |
#'layout:' #(#LayoutFrame 173 0 418 0 672 0 763 0) |
|
385 |
#'label:' 'Image Editor' |
|
386 |
#'min:' #(#Point 400 320) |
|
387 |
#'max:' #(#Point 1152 900) |
|
388 |
#'bounds:' #(#Rectangle 173 418 673 764) |
|
389 |
#'menu:' #menu |
|
390 |
#'usePreferredExtent:' false |
|
391 |
) |
|
392 |
#'component:' |
|
393 |
#(#SpecCollection |
|
394 |
#'collection:' |
|
395 |
#( |
|
396 |
#(#LabelSpec |
|
397 |
#'name:' 'infoLabel' |
|
398 |
#'layout:' #(#LayoutFrame 0 0 0 0.0 -80 1 0 1.0) |
|
399 |
#'labelChannel:' #valueOfInfoLabel |
|
400 |
#'level:' 1 |
|
401 |
#'adjust:' #left |
|
402 |
) |
|
403 |
#(#LabelSpec |
|
404 |
#'name:' 'timeLabel' |
|
405 |
#'layout:' #(#LayoutFrame -80 1 0 0.0 0 1.0 0 1.0) |
|
406 |
#'labelChannel:' #valueOfTimeLabel |
|
407 |
#'level:' 1 |
|
408 |
#'adjust:' #right |
|
409 |
) |
|
410 |
) |
|
411 |
) |
|
412 |
) |
|
753 | 413 |
! ! |
414 |
||
415 |
!ToolApplicationModel class methodsFor:'resources'! |
|
416 |
||
417 |
downIcon |
|
418 |
"ImageEditor openOnClass:self andSelector:#downIcon" |
|
419 |
||
420 |
<resource: #image> |
|
772 | 421 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUT@AUUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUT@*$AUPUT***%UPUU***UUPUUZ*)UUPUUV*%UUPUUU*UUUPUUUYUUUP') ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@A?>@A?>@@?<@@_8@@O0@@G @@C@@') ; yourself); yourself! |
753 | 422 |
|
423 |
downLeftIcon |
|
424 |
"ImageEditor openOnClass:self andSelector:#downLeftIcon" |
|
425 |
||
426 |
<resource: #image> |
|
772 | 427 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUUUUUUPUUUUU@@PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUAUUJ)PUT%UUJ)PUR%UUJ)PUJ$@@J)PT*****)PR*****)PV*****)PU*****)PUZ%UUUUPUV%UUUUPUU%UUUUPUUUUUUUP') ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@G8@@G8@@G8@@G8@@G8@@G8@@G8@@G8@@G8@0G8A0G8C0G8G??8O??8_??8_??8O??8G??8C0@@A0@@@0@@') ; yourself); yourself! |
753 | 428 |
|
429 |
downRightIcon |
|
430 |
"ImageEditor openOnClass:self andSelector:#downRightIcon" |
|
431 |
||
432 |
<resource: #image> |
|
772 | 433 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUUUUUUPP@EUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUTEUPR*UUT!!UPR*UUT(UPR*P@@*EPR*****!!PR*****(PR*****)PR*****%PQUUUU*UPUUUUT)UPUUUUT%UPUUUUTUUP') ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@_ @@_ @@_ @@_ @@_ @@_ @@_ @@_ @@_ @@_ L@_ N@_ O@_?? _??0_??8_??8_??0_?? @@O@@@N@@@L@') ; yourself); yourself! |
753 | 434 |
|
435 |
fileOutIcon |
|
436 |
"ImageEditor openOnClass:self andSelector:#fileOutIcon" |
|
437 |
||
438 |
<resource: #image> |
|
772 | 439 |
^(Depth2Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@@@@@@@B @@@@@@*(@@@@@BB @@@@@BB@@@@@@B@@@@@@@B@@@@@@@B@@@@@@@B@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@@@@@D@@AQDEADQAAADDADQA@AD@ADQAAQDEADQAAADDADQAAA@@@PAAAAEE@@DA') ; colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@A@A.A%BDG2ADI%@$I@SDH@@@H@@@H@@@H@@@H@@@@@@@@@@@Z&KW_7_;[6_;[6_;_7_;[6_;[6L+I[@Q') ; yourself); yourself! |
753 | 440 |
|
441 |
garbageCollectIcon |
|
442 |
"ImageEditor openOnClass:self andSelector:#garbageCollectIcon" |
|
443 |
||
444 |
<resource: #image> |
|
772 | 445 |
^(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'DQD@@@.;.1D[DQDQD@@QDP@@.;.;,[,@@ADP@ADQ@@.;@@.;.1@@@A@@DQD@B;@@@[.;DCH@D@@QDP@K,@@K.;,Q@2@P@ADQ@K.;@@DQDQDPL @@DQDKB;B0@QDQ@@@C@@@QD[B0B0,ADP@"H"@@@ADQ@@@@@@DQ@P@@@0@@DQ@@@@C 8@@ADQL3@@@Q@@@@;.;.@@DCL0H@@@@@@@@NC @@@PLC@ @@@@@@C.;.8@@A@0LB@@@@@@@@8N@@@@DC@0H@@@@@B (@@AD@@PLC@ @@@@****@LG@@A@0LB@@@@@JB CL3L0@DC@0H@@@B***(@0L@Q@SLCL @@@@(J@L3L3AD@L"H @@@@@QDQC@0QDQD@@@DP@@@ADQD@@@@QD@@@@@@@@ @B@ @B@@HB@ H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@@H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@@@@@b') ; colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:49.9962); add:(Color grey:66.9978); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9977 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9977 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9977); add:(Color red:0.0 green:49.9977 blue:49.9977); add:(Color red:49.9977 green:49.9977 blue:0.0); add:(Color red:49.9977 green:0.0 blue:49.9977); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@G1@@@C>0@@A1=0@@XO^@@FG30@C0@^@AZ@? @)P?8@@@O>@@B#? @C<?8@@TO>@@_#? @B ?8@E@O>@G9S? @)>?8@?JO>@EO3? @APO @@@@@@]7]7\DUUUDAEUUQ@U7]5\EUUUTAUUUU@]U]W\@@a') ; yourself); yourself! |
753 | 446 |
|
447 |
icon |
|
448 |
||
772 | 449 |
^self stxIcon |
753 | 450 |
! |
451 |
||
452 |
leftDownIcon |
|
453 |
"ImageEditor openOnClass:self andSelector:#leftDownIcon" |
|
454 |
||
455 |
<resource: #image> |
|
772 | 456 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUUUUUUPU@@@@@@PUJ****)PUJ****)PUJ****)PUJ****)PUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUP@J*@UUUPJ**)UUUPR**%UUUPT**UUUUPUJ)UUUUPUR%UUUUPUTUUUUUPUUUUUUUP') ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@G??8G??8G??8G??8G??8G??8G8@@G8@@G8@@G8@@G8@@G8@@G8@@??@@??@@_>@@O<@@G8@@C0@@A @@@@@@') ; yourself); yourself |
457 |
! |
|
753 | 458 |
|
459 |
leftIcon |
|
460 |
"ImageEditor openOnClass:self andSelector:#leftIcon" |
|
461 |
||
462 |
<resource: #image> |
|
772 | 463 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUTUUUUUPURUUUUUPUJUUUUUPT*P@@@@PR******PJ******PZ******PV******PU*UUUUUPUZUUUUUPUVUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP') ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@@@@@A @@C @@G @@O??<_??<???<???<_??<O??<G @@C @@A @@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself |
464 |
! |
|
753 | 465 |
|
466 |
leftUpIcon |
|
467 |
"ImageEditor openOnClass:self andSelector:#leftUpIcon" |
|
468 |
||
469 |
<resource: #image> |
|
772 | 470 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUUUUUUPUTUUUUUPUR%UUUUPUJ)UUUUPT**UUUUPR**%UUUPJ**)UUUP%Z)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)@@@@PUJ****)PUJ****)PUJ****)PUJ****)PUEUUUUUPUUUUUUUP') ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@A @@C0@@G8@@O<@@_>@@??@@??@@G8@@G8@@G8@@G8@@G8@@G8@@G8@@G??8G??8G??8G??8G??8G??8@@@@') ; yourself); yourself! |
753 | 471 |
|
472 |
loadIcon |
|
473 |
"ImageEditor openOnClass:self andSelector:#loadIcon" |
|
474 |
||
475 |
<resource: #image> |
|
772 | 476 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUUUUUUPUUUUU?UPUUUUW*5PU???>*/PU:****)PUUUUUUZPP@@@@@EPS?????&PS?????%PS?????&PS?????%PT?????9PT?????9PT?????9PT?????9PT?????9PT?????9PUO????>PUO????>PUO????>PU:*****PUUUUUUUP') ; colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@G@@@O G??8O??<O??<_??<???<???<???<???<???<_??<_??<_??<_??<_??<_??<O??<O??<O??<O??<O??<') ; yourself); yourself! |
753 | 477 |
|
478 |
newIcon |
|
479 |
"ImageEditor openOnClass:self andSelector:#newIcon" |
|
480 |
||
481 |
<resource: #image> |
|
772 | 482 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@AUUUUP@@A????2@@A????2 @A????0@@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@C*****(@@@@@@@@@') ; colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '_?>@_??@_?? _??0_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8') ; yourself); yourself! |
753 | 483 |
|
484 |
removeIcon |
|
485 |
"ImageEditor openOnClass:self andSelector:#removeIcon" |
|
486 |
||
487 |
<resource: #image> |
|
772 | 488 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@BUUUUP@@B/???2@@B+???2 @A*???0@@A:/??*8@A>+?>+8@A?*?:/8@A?:/*?8@A?>*+?8@A??*/?8@A??*/?8@A?>*+?8@A?:/*?8@A?*?:/8@A>+?>+8@A:/??*8@A*???:(@B+???>(@B/????(@B*****(@@@@@@@@@') ; colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '_?>@_??@_?? _??0_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8') ; yourself); yourself! |
489 |
||
490 |
reviseAllButtonIcon |
|
491 |
"ImageEditor openOnClass:self andSelector:#reviseAllButtonIcon" |
|
492 |
||
493 |
<resource: #image> |
|
494 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'EUUU@@@@UVUY@@@@UY?6@@@@UW0=@@@@UWO=AUUPUWO-@@@@UW>=AUUPEY?6A@@P@BUXUUTP@A @P@DP@IPEUUDP@F@D@ADP@%@DEADP@X@DPQDPBT@DPADPA @DDADPEP@DAADPFP@D@QEPAP@DPQD@@P@DEAT@@@@D@A@@@@@EUU@@') ; colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@A>@@C?@@C?@@C?@@C?@@C?O<C?O<A>?<A ?<CC?<CC?<FC?<FC?<LC?<LC?<XC?<HC?<@C?0@C?0@C?@@C?@') ; yourself); yourself! |
|
753 | 495 |
|
496 |
rightIcon |
|
497 |
"ImageEditor openOnClass:self andSelector:#rightIcon" |
|
498 |
||
499 |
<resource: #image> |
|
772 | 500 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUEUPUUUUUIUPUUUUUJUP@@@@@J%PJ*****)PJ******PJ******PJ*****)PEUUUUZ%PUUUUUJUPUUUUUIUPUUUUUEUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP') ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@@@@@@@F@@@G@@@G ???0???8???<???<???8???0@@G @@G@@@F@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself! |
753 | 501 |
|
756 | 502 |
runIcon |
503 |
"ImageEditor openOnClass:self andSelector:#runIcon" |
|
504 |
||
505 |
<resource: #image> |
|
772 | 506 |
^(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@@N8@@@@@@@@@@@@N<^@@@@@@@@@@@@;.;.;.;.@@@@@@C/G @@@@8^@@@@@N<^@@@@@A@@@@@@;18@@@@@D@@@@@C.;.;.; @P@@@@@N<^@@@@@@@@@@@@;18@@@C!!G.@@@@C/G @@@@G>@@@@@N;.;.; @_8@@@@@;18@@@@A? @@@@C/G @@@@G>@@@@@N<^@@@@@_8@@@@@;.;.;.@A? @@@@C/G @@@@G>@@@@@N<^@@@@@_8@@@@@;18@@@@@@@@@@@C.; @@@@DQ@@@@C ; 8@@@A&X@@@C 8@8N@@@"H"@@@b') ; colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); add:(Color grey:49.9962); add:(Color grey:66.9978); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@C@D@G D@G?<@G N@G N@G N@G?.@G N@G _@G _@G?_@G _@G _@G _@G?_@G ? G!!?0G!!?0G!!.PKQNPT(_@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself! |
756 | 507 |
|
753 | 508 |
saveIcon |
509 |
"ImageEditor openOnClass:self andSelector:#saveIcon" |
|
510 |
||
511 |
<resource: #image> |
|
772 | 512 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'AL3L3L@PM3L3L0?PML3L3L=PM3L3L0=PML3L3L?PM3L3L0?PML3L3L?PM3L3L0?PML3L3L?PM3L3L0?PML3L3L?PM@@@@@?PO??????PO??????PO??????PO=UUUU?PO=???[?PO=5O?Z?PO=6O?Z?PO=6O?Z?PO=0O?Z?P5U***U5P') ; colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???8') ; yourself); yourself! |
513 |
||
514 |
saveImageIcon |
|
515 |
"ImageEditor openOnClass:self andSelector:#saveImageIcon" |
|
516 |
||
517 |
<resource: #image> |
|
518 |
^(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UPSL3L0A@ET7L3L0?PAUML3L3OT@US\3L3C5@ET43L3L?PAUM3L3LO4@USSL3L3=@ET7L3L0?PAUML3L3O4@US\3L3C=@ET43L3L?PAUM@@@@O4@US?????=@ET?UUUU?PAUO7??6?4@US=T?=+=@ET?ZO?Z?PAUO4C?6/4@U]U**)WU@ET@@@@@@@AUUUUUUUUU%Y%UUUTE%%UUUUTU)UEUUUUEUUUUUUVYUUTEUTUUUUDUAUUUUUUQUPUUVUUUUUTU%P@a'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C??>@@@@@@@@@@@@;*9R<H*(W)BJ*E:@S.9R,B)HT)@*REJP:$9R<@@a'); yourself); yourself! |
|
753 | 519 |
|
520 |
searchIcon |
|
521 |
"ImageEditor openOnClass:self andSelector:#searchIcon" |
|
522 |
||
523 |
<resource: #image> |
|
772 | 524 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@CV*@MZ(@@@@@@@@@CV*@MZ(@CV*@MZ(@CV*@MZ(@CV*@MZ(@CV*@MZ(@CV*@MZ(@CV*JMZ(@CV(@AZ(@CV(6!!Z(@CV(@AZ(@CV*@MZ(@@@@@@@@@@MZ 5Z@@@@@@@@@@@A(@A(@@@@@@@@@@@M*@M*@@@@@@@@@@') ; colorMap:((OrderedCollection new add:(Color black); add:(Color grey:74.5083); add:(Color grey:49.9962); add:(Color white); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@_<?8_<?8_<?8_<?8_<?8_<?8_<?8_<?8_??8_??8_??8_??8_??8_??8_??8G?? G?? C8_@C8_@G<? G<? ') ; yourself); yourself! |
753 | 525 |
|
762 | 526 |
startChangesBrowserIcon |
527 |
"ImageEditor openOnClass:self andSelector:#startChangesBrowserIcon" |
|
528 |
||
529 |
<resource: #image> |
|
772 | 530 |
^(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@B****@@@@@@@@@ @@@B****H@@@@@@@@"@@@C????H @@@@@@@2H@@C????L"@@@@@@@3H@@AUUUUL2@@@@@@@SL@@AUUUUD3@@@_=UUQL@@@EUUUTS@@@A]7UUD@@@@U7]5Q@@@@E7]5T@@@@AUUUU@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH@@@@@@@@LB@L@@@@@@@@@@@@@@@@J@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@a') ; colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@??8@@O?>@@O?? @C??8@C??>@@??? @???8@O??>@O??? C??? C???8@???8@O??>@C??>@@??? @O?? @C??8@@??8@@O?>@@@@@@@@@@@@@Z.$7LH+-YDBJ+TQ@#.=WHH*+UABJ*5PPZ*$7X@@a') ; yourself); yourself! |
762 | 531 |
|
753 | 532 |
startFileBrowserIcon |
533 |
"ImageEditor openOnClass:self andSelector:#startFileBrowserIcon" |
|
534 |
||
535 |
<resource: #image> |
|
772 | 536 |
^(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@CLA&Y&Y&Y&X@@@@@@@@L0F@@@@@@A @@@@@@@@3@XN;.;.8F@@@@@@@@CLA ;.@@@@@@@@@@@@@L0FC.8O[6=/[0@@@@@@3@X@; [6=/[6@@@@@@CLA DNC6<@@F<@@@@@@L0F@A@F= [0= @@@@@@3@X@@P=/[6=/@@@@@@CLA @@A/[6=/X@@@@@@L0FC0@O[6=/[0@@@@@@3@XF<@@@@@@@@@@@@@CLA = @@@@@@@@@@@@@L0FA/[6=/A @@@@@@@@3@XO[6=/XF@@@@@@@@CLA @@@@@@X@@@@@@@@L0FY&Y&Y&Y @@@@@@@@C@Y&Y&Y&Y&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C @b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); add:(Color grey:49.9962); add:(Color grey:66.9978); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A??<@@_??@@G??0@A??<@@_??8@G??>@A??? @_??8@G??>@A??? @_??8@G??>@A??? @_??@@G??0@A??<@@_??@@G??0@@??<@@G??@@@@@@@G.P=0AADHP@PQBD@GDP8 AADHD@PQBA@DN^=0@@a'); yourself); yourself! |
753 | 537 |
|
538 |
startImageEditorIcon |
|
539 |
"ImageEditor openOnClass:self andSelector:#startImageEditorIcon" |
|
540 |
||
541 |
<resource: #image> |
|
772 | 542 |
^(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@M7]7]7]7]7]7]@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"HDQEUVY @@@@@BH"H3L QDUUY&@@@@@@HA@#L2ADQUU&X@@@@@@"H"H"HH"I&W]0@@@@@BL3L3L "H&Y]7@@@@@@H"H"H"BH"Y%7\@@@@@@#L3L3HDQEUVY @@@@@BH"H"H QDUUY&@@@@@@H3L3L2ADQUU&X@@@@@@"H"H"HH"I&W]0@@@@@BL#L3L "H&Y]7@@@@@@H2L3L2BH"Y%7\@@@@@@"H"H"HBH"H"H @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@0@0@0L@L@@@@@@@@@@0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@L@@@@@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''0???90O??>TC??? ???8HO??>AC??? P???8@O??>@C??? @???8@@@@@@@@@@@@;[7/@D>%J@AJ)P @RK5.@D"%J@AH)R @:JW/@@@a'); yourself); yourself! |
753 | 543 |
|
544 |
startMenuEditorIcon |
|
545 |
"ImageEditor openOnClass:self andSelector:#startMenuEditorIcon" |
|
546 |
||
547 |
<resource: #image> |
|
772 | 548 |
^(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@DQDQDQDQDQDQD@@@@@@@@@@@@@@@@@@@@@@@@@QH"H DQHQD"H @@@@@ATBH"@RHBH H"@@@@@@H@H"HAT%UUUUT@@@@@@%H"H D%IRT%IP@@@@@BUQIU@UIRT%IR@@@@@@IRHBHAIRT%IRT@@@@@@%H"H ERT%IRT @@@@@BUQIU@RT%IRT%@@@@@@IRHBHAT%IRT%H@@@@@@%H"H D%IRT%IP@@@@@BUQIU@UIRT%IR@@@@@@H"HBHAIRT%IRT@@@@@@"H"H IRT%IRT @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@APT@@@@@@@@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@T@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''0???90O??>TC??? ???8HO??>AC??? P???8@O??>@C??? @???8@@@@@@@@@@@@6=D$@O(YI@B*GRP@"9T$@H(WI@BJD2P@"=D<@@@a'); yourself); yourself! |
549 |
||
550 |
startNewChangesBrowserIcon |
|
551 |
"ImageEditor openOnClass:self andSelector:#startNewChangesBrowserIcon" |
|
552 |
||
553 |
<resource: #image> |
|
554 |
^(Depth2Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@B****** @@@@@@@@B******PB??????PB??????PBUUUUUUP@@@@@@@@B******PB??????PB??????PB??????PBUUUUUUP@@@@@@@@@@@@@@@@ @H$@ @HMDSDQMQSDDQDADAAD@PDAH@JDDQDADQPDDQDQDQ@ DQDQ PBADQDQEQQ') ; colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@_??>_??>_??>_??>_??>_??>_??>_??>_??>_??>_??>_??>_??>_??>@@@@5_W[????7?>[7??[7??=7??97??;J*+-') ; yourself); yourself! |
|
753 | 555 |
|
556 |
startSourceCodeBrowserIcon |
|
557 |
"ImageEditor openOnClass:self andSelector:#startSourceCodeBrowserIcon" |
|
558 |
||
559 |
<resource: #image> |
|
772 | 560 |
^(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0LL@@CL@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@CLL00@L@@@@a') ; colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color grey:49.9962); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@;4/\8H%JT(BIR%B@RT.P8B%JTH@)R%J@;7)\8@@a') ; yourself); yourself! |
753 | 561 |
|
562 |
startSystemBrowserIcon |
|
563 |
"ImageEditor openOnClass:self andSelector:#startSystemBrowserIcon" |
|
564 |
||
565 |
<resource: #image> |
|
772 | 566 |
^(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@ADQDQDQG0@@@@@@@@@@D"H"H"H.@@@@@@@@@@@RH"H"H"8@@@@@@@@@@O;.;.;.; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@SL3L3L>@@@@@@@@@@@O;.;.;.8@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@VY&Y&Y.@@@@@@@@@@@O;.;.;.8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@N@NC @@8@@@C @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@8@C @@@@8b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); add:(Color grey:49.9962); add:(Color grey:66.9978); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@?? A0O?8@_??>@G@?? @ O?8@H@@@@B@?? A0O?8@_??>@G@?? @@O?8@@@@@@@@@@@9O\7\IRTQDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a'); yourself); yourself! |
762 | 567 |
|
568 |
startUIPainterIcon |
|
569 |
"ImageEditor openOnClass:self andSelector:#startUIPainterIcon" |
|
570 |
||
571 |
<resource: #image> |
|
772 | 572 |
^(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@DQDQDQDQDQDQD@@@@@@@@@@@@@@@@@@@@@@@@@3H"H DQHQD"H @@@@@CLBH"@RHBH H"@@@@@@H@H"HAT%UUUUT@@@@@@%H"H D%IRT%IP@@@@@BUSMU@UIRT%IR@@@@@@IRLBHAIRT%IRT@@@@@@%H"H ERT%IRT @@@@@BUSMU@RT%IRT%@@@@@@IRLBHAT%IRT%H@@@@@@%H"H D%IRT%IP@@@@@BUSMU@UIRT%IR@@@@@@H"LBHAIRT%IRT@@@@@@"H"H IRT%IRT @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@AP@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@@@AP@E@@@@@@@@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9977 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''8???90O??>TC??? ???8HO??>A#??? X???8@O??>@C??? @???8@@@@@@@@@@@@>QN@@H$Q@@BADP@@.QD@@H$Q@@BIDP@@>_N@@@@a'); yourself); yourself! |
573 |
||
574 |
startWorkspaceIcon |
|
575 |
"ImageEditor openOnClass:self andSelector:#startWorkspaceIcon" |
|
576 |
||
577 |
<resource: #image> |
|
578 |
^(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@M7]7]7]7]7]7]7]@@@@@@@@@@@@@@@@@@@@@@@QDQDQDQDQDQDQ@0@@@AUPUUUUAUAQDQDB@@@@EUAUUUTE@@DQDPH@@@@P@E@@UPUPTQDQ@ @@@AAPTEAUAUAQDQDB@@@@D@AP@ETET@DQDPH@@@@QDQDQDQDQEADQ@ @@@ADQDQDQDQDTPQDB@@@@DQDQDQDQDQQDDPH@@@@QDQDQDQDQEDDQ@ @@@ADQDQDQDQDQEADB@@@@DQDQDQDQDQDTDPH@@@@QDQDQDQDQDQDQ@0@@@@@@@@@@@@@@@@@@@@@@L"H"H"H"H"H"H0L@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@L@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@L@@@@@@@@@@b'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); yourself)); mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@@@@@@@@@@@@ //R@HJJT BB"%P@$(/X@IJJU@BR"%H@[O)R@@@a'); yourself); yourself! |
|
753 | 579 |
|
580 |
stxIcon |
|
581 |
"ImageEditor openOnClass:self andSelector:#stxIcon" |
|
582 |
||
583 |
<resource: #image> |
|
772 | 584 |
^(Depth2Image new) width: 19; height: 19; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@@@@@@L@@@@@@@@@@@@@@@T@@D@@AP@APP@AP@@@@@E@E@@@@EA@@@@@TT@C@@@U@@@@@AP@@@@@U@@@@@EA@@L@APA@@@@T@D@@@U@@@@@AT@@D@0@@@@@A@@@@@@@b') ; colorMap:((OrderedCollection new add:(Color grey:9.41024); add:(Color red:0.0 green:80.7828 blue:18.8205); add:(Color black); add:(Color white); yourself)); yourself |
585 |
! |
|
753 | 586 |
|
587 |
upIcon |
|
588 |
"ImageEditor openOnClass:self andSelector:#upIcon" |
|
589 |
||
590 |
<resource: #image> |
|
772 | 591 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: 'UUUQUUUPUUUJUUUPUUT*%UUPUUR*)UUPUUJ**UUPUT***%UPUTV*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUTUUUUP') ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString: '@C@@@G @@O0@@_8@@?<@A?>@A?>@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@') ; yourself); yourself! |
753 | 592 |
|
593 |
upRightIcon |
|
594 |
"ImageEditor openOnClass:self andSelector:#upRightIcon" |
|
595 |
||
596 |
<resource: #image> |
|
772 | 597 |
^(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUTUUPUUUUT%UPUUUUT)UPP@@@@*UPR*****%PR*****)PR*****)PR*****%PR*UUU*UPR*UUT)UPR*UUT%UPR*UUTUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPQUUUUUUPUUUUUUUP'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@L@@@N@@@O@_?? _??0_??8_??8_??0_?? _ O@_ N@_ L@_ @@_ @@_ @@_ @@_ @@_ @@_ @@_ @@_ @@@@@@'); yourself); yourself! ! |
753 | 598 |
|
599 |
!ToolApplicationModel methodsFor:'accessing - views'! |
|
600 |
||
601 |
menuToolbarView |
|
602 |
||
603 |
^builder componentAt: #menuToolbarView |
|
604 |
! |
|
605 |
||
606 |
preferredExtent |
|
760 | 607 |
"preferred extent of my window; top menu and top toolbar (named by 'menuToolbar') |
608 |
will be considered" |
|
753 | 609 |
|
760 | 610 |
|window menuPanel menuToolbarView preferredExtentOfWindow| |
611 |
||
612 |
window := self builder window. |
|
613 |
menuPanel := window subViews first. |
|
614 |
menuToolbarView := self menuToolbarView. |
|
753 | 615 |
|
760 | 616 |
preferredExtentOfWindow := window extent. |
617 |
menuPanel class = MenuPanel ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menuPanel preferredExtent]. |
|
618 |
menuToolbarView notNil ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menuToolbarView preferredExtent]. |
|
619 |
||
620 |
^window minExtent max: (preferredExtentOfWindow min: window maxExtent) |
|
753 | 621 |
! ! |
622 |
||
623 |
!ToolApplicationModel methodsFor:'action - settings'! |
|
624 |
||
625 |
languageSetting |
|
626 |
"open a dialog on language related settings" |
|
627 |
||
628 |
|listOfLanguages translatedLanguages switch box languageList flags| |
|
629 |
||
630 |
" |
|
631 |
get list of supported languages from the launchers resources ... |
|
632 |
" |
|
633 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
|
634 |
listOfLanguages := listOfLanguages asOrderedCollection. |
|
635 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
|
636 |
item := resources at:lang. |
|
637 |
item isString ifTrue:[ |
|
638 |
item |
|
639 |
] ifFalse:[ |
|
640 |
item at:1 |
|
641 |
] |
|
642 |
]. |
|
643 |
flags := listOfLanguages collect:[:lang | |item| |
|
644 |
item := resources at:lang. |
|
645 |
item isArray ifTrue:[ |
|
646 |
item at:2 |
|
647 |
] ifFalse:[ |
|
648 |
nil |
|
649 |
] |
|
650 |
]. |
|
651 |
flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]]. |
|
652 |
||
653 |
languageList := translatedLanguages with:flags collect:[:lang :flag | |
|
654 |
LabelAndIcon icon:flag string:lang. |
|
655 |
]. |
|
656 |
||
657 |
box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs. |
|
658 |
box label:(resources string:'Language selection'). |
|
659 |
box list:languageList. |
|
660 |
box initialText:(Language). |
|
661 |
box action:[:newLanguage | |
|
662 |
self withWaitCursorDo:[ |
|
663 |
|fontPref idx language oldLanguage enc answer matchingFonts| |
|
664 |
||
665 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
666 |
idx ~~ 0 ifTrue:[ |
|
667 |
language := listOfLanguages at:idx |
|
668 |
] ifFalse:[ |
|
669 |
language := newLanguage |
|
670 |
]. |
|
671 |
||
672 |
"/ check if the new language needs a differently encoded font; |
|
673 |
"/ ask user to switch font and allow cancellation. |
|
674 |
"/ Otherwise, you are left with unreadable menu & button items ... |
|
675 |
||
676 |
oldLanguage := Smalltalk language. |
|
677 |
Smalltalk language:language asSymbol. |
|
678 |
ResourcePack flushCachedResourcePacks. |
|
679 |
fontPref := self class classResources at:'PREFERRED_FONT_ENCODING'. |
|
680 |
Smalltalk language:oldLanguage. |
|
681 |
||
682 |
switch := true. |
|
683 |
enc := MenuView defaultFont encoding. |
|
684 |
(fontPref match:enc) ifFalse:[ |
|
685 |
"/ look if there is one at all. |
|
686 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
687 |
matchingFonts size == 0 ifTrue:[ |
|
688 |
(Dialog |
|
689 |
confirm:(resources |
|
690 |
string:'your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
|
691 |
with:fontPref) withCRs) |
|
692 |
ifFalse:[ |
|
693 |
switch := false |
|
694 |
] |
|
695 |
] ifFalse:[ |
|
696 |
answer := Dialog |
|
697 |
confirmWithCancel:(resources |
|
698 |
string:'menu font is not %1-encoded.\\Change it ?' |
|
699 |
with:fontPref) withCRs |
|
700 |
labels:(resources |
|
701 |
array:#('cancel' 'no' 'yes')) |
|
702 |
default:3. |
|
703 |
answer isNil ifTrue:[ |
|
704 |
switch := false |
|
705 |
] ifFalse:[ |
|
706 |
answer ifTrue:[ |
|
707 |
switch := (self fontBoxForEncoding:fontPref) |
|
708 |
] |
|
709 |
]. |
|
710 |
]. |
|
711 |
]. |
|
712 |
||
713 |
switch ifTrue:[ |
|
714 |
Smalltalk language:language asSymbol. |
|
715 |
ResourcePack flushCachedResourcePacks |
|
716 |
]. |
|
717 |
]. |
|
718 |
switch ifTrue:[ |
|
719 |
self reOpen |
|
720 |
] |
|
721 |
]. |
|
722 |
box |
|
723 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
|
724 |
box open. |
|
725 |
box destroy |
|
726 |
||
727 |
||
728 |
||
729 |
! ! |
|
730 |
||
762 | 731 |
!ToolApplicationModel methodsFor:'active help'! |
753 | 732 |
|
733 |
activeHelp |
|
734 |
"Answer whether active help is turned on/off" |
|
735 |
||
736 |
^activeHelp |
|
737 |
! |
|
738 |
||
739 |
activeHelp: aValue |
|
740 |
"toggle active help" |
|
741 |
||
742 |
(activeHelp := aValue) |
|
743 |
ifTrue: [ActiveHelp startFor: self] |
|
744 |
ifFalse: [ActiveHelp stopFor: self] |
|
745 |
! |
|
746 |
||
762 | 747 |
defaultInfoLabel |
748 |
||
749 |
^'' |
|
750 |
! |
|
751 |
||
753 | 752 |
openAbout |
753 |
"show an about box" |
|
754 |
||
755 |
|box| |
|
756 |
||
757 |
box := AboutBox new. |
|
758 |
box autoHideAfter:10 with:[]. |
|
759 |
box showAtCenter |
|
760 |
||
761 |
! |
|
762 |
||
763 |
openAboutThisApplication |
|
764 |
"show an about this application box" |
|
765 |
||
766 |
|rev box| |
|
767 |
rev := ''. |
|
768 |
self class revision notNil ifTrue: [rev := ' (rev: ', self class revision printString, ')']. |
|
769 |
box := AboutBox title: |
|
770 |
'\The application\\' withCRs, |
|
771 |
(Text string: self class label emphasis: #bold), rev, |
|
772 |
'\\has been designed and implemented by \' withCRs,self class author,', eXept Software AG, Germany. \\' withCRs. |
|
773 |
||
774 |
box label:'About This Application'. |
|
775 |
box autoHideAfter:10 with:[]. |
|
776 |
box showAtCenter. |
|
777 |
! |
|
778 |
||
779 |
openClassDocumentation |
|
780 |
||
781 |
Autoload autoloadFailedSignal handle:[:ex | |
|
782 |
self warn:'autoload failed. |
|
783 |
||
784 |
Check your source directory and/or |
|
785 |
the abbreviation file for the classes (correct) shortened name.'. |
|
786 |
ex return. |
|
787 |
] do:[ |
|
788 |
|text v| |
|
789 |
||
790 |
text := self class htmlDocumentation. |
|
791 |
text notNil ifTrue:[ |
|
792 |
v := HTMLDocumentView |
|
793 |
openFullOnText:text |
|
794 |
inDirectory:(Smalltalk getSystemFileName:'doc/online/english/classDoc'). |
|
795 |
v nameSpaceForExecution: self class nameSpace. |
|
796 |
] |
|
797 |
] |
|
798 |
||
799 |
||
800 |
! |
|
801 |
||
802 |
openProgrammersGuide |
|
803 |
||
804 |
|dir| |
|
805 |
((dir := Smalltalk getSystemFileName: 'doc/online/english/programming/TOP.html') asFilename exists) |
|
806 |
ifTrue: |
|
807 |
[ |
|
808 |
^HTMLDocumentView openFullOnFile: dir |
|
809 |
] |
|
810 |
! |
|
811 |
||
812 |
openTutorial |
|
813 |
||
814 |
|dir| |
|
815 |
((dir := Smalltalk getSystemFileName: 'doc/online/english/getstart/tutorial.html') asFilename exists) |
|
816 |
ifTrue: |
|
817 |
[ |
|
818 |
^HTMLDocumentView openFullOnFile: dir |
|
819 |
] |
|
762 | 820 |
! |
821 |
||
822 |
showHelp:aHelpText for:view |
|
823 |
"display aHelpText in the info label or if present detour to masterApplication." |
|
824 |
||
825 |
self masterApplication notNil |
|
826 |
ifTrue: |
|
827 |
[ |
|
828 |
^masterApplication showHelp: aHelpText for:view |
|
829 |
] |
|
830 |
ifFalse: |
|
831 |
[ |
|
832 |
aHelpText isNil |
|
833 |
ifTrue: [self valueOfInfoLabel value: self defaultInfoLabel] |
|
834 |
ifFalse: [self valueOfInfoLabel value: (aHelpText asString printString upTo: Character cr)]. |
|
835 |
||
836 |
^true |
|
837 |
] |
|
838 |
! ! |
|
839 |
||
840 |
!ToolApplicationModel methodsFor:'aspects'! |
|
841 |
||
842 |
valueOfEnablingCommitButtons |
|
843 |
||
844 |
|holder| |
|
845 |
(holder := builder bindingAt:#valueOfEnablingCommitButtons) isNil ifTrue:[ |
|
846 |
builder aspectAt:#valueOfEnablingCommitButtons put:(holder := false asValue). |
|
847 |
]. |
|
848 |
^ holder |
|
849 |
||
850 |
! |
|
851 |
||
852 |
valueOfHavingClipboard |
|
853 |
||
854 |
|holder| |
|
855 |
(holder := builder bindingAt:#valueOfHavingClipboard) isNil ifTrue:[ |
|
856 |
builder aspectAt:#valueOfHavingClipboard put:(holder := self class clipboard notNil asValue). |
|
857 |
]. |
|
858 |
^ holder |
|
859 |
||
860 |
! |
|
861 |
||
862 |
valueOfInfoLabel |
|
863 |
||
864 |
|holder| |
|
865 |
(holder := builder bindingAt:#valueOfInfoLabel) isNil ifTrue:[ |
|
866 |
builder aspectAt:#valueOfInfoLabel put:(holder := ValueHolder new). |
|
867 |
]. |
|
868 |
^ holder |
|
869 |
||
870 |
! |
|
871 |
||
872 |
valueOfTimeLabel |
|
873 |
||
874 |
|holder| |
|
875 |
(holder := builder bindingAt:#valueOfTimeLabel) isNil ifTrue:[ |
|
876 |
builder aspectAt:#valueOfTimeLabel put:(holder := ValueHolder new). |
|
877 |
]. |
|
878 |
^ holder |
|
879 |
||
880 |
! ! |
|
881 |
||
882 |
!ToolApplicationModel methodsFor:'clipboard'! |
|
883 |
||
884 |
clipboard: anEditObject |
|
885 |
||
886 |
self class clipboard: anEditObject. |
|
887 |
||
888 |
self valueOfHavingClipboard value: anEditObject notNil |
|
753 | 889 |
! ! |
890 |
||
891 |
!ToolApplicationModel methodsFor:'history'! |
|
892 |
||
893 |
addToHistory: aHistoryEntry |
|
894 |
||
895 |
self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil. |
|
896 |
self history addFirst: aHistoryEntry. |
|
897 |
[self history size > self class historyMaxSize] whileTrue: [self history removeLast] |
|
898 |
! |
|
899 |
||
900 |
emptyHistory |
|
901 |
||
902 |
^self history removeAll |
|
903 |
! |
|
904 |
||
905 |
history |
|
906 |
||
907 |
^self class getHistory |
|
908 |
! |
|
909 |
||
910 |
menuHistory |
|
911 |
||
912 |
|menu a| |
|
913 |
menu := Menu new receiver: self. |
|
914 |
(self history collect: [:histEntry| histEntry value]) asSet asOrderedCollection do: |
|
915 |
[:historyEntryType| |
|
916 |
menu addItemGroup: ((a := self history select: [:histEntry| histEntry value = historyEntryType]) collect: [:histEntry| MenuItem new label: histEntry key printString; value: histEntry value; argument: histEntry key]). |
|
917 |
]. |
|
918 |
menu addItem: (MenuItem new label: 'Empty History'; value: #emptyHistory). |
|
919 |
||
920 |
^menu |
|
921 |
! |
|
922 |
||
923 |
removeFromHistory: aHistoryEntry |
|
924 |
||
925 |
self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil. |
|
926 |
[self history size > self class historyMaxSize] whileTrue: [self history removeLast] |
|
927 |
! ! |
|
928 |
||
929 |
!ToolApplicationModel methodsFor:'startup / release'! |
|
930 |
||
931 |
close |
|
932 |
||
756 | 933 |
self uninitialize. |
934 |
||
753 | 935 |
super close |
936 |
! |
|
937 |
||
938 |
closeRequest |
|
939 |
||
756 | 940 |
self uninitialize. |
941 |
||
753 | 942 |
super closeRequest |
943 |
! |
|
944 |
||
945 |
initialize |
|
946 |
||
762 | 947 |
self activeHelp: true. |
753 | 948 |
timeBlock := nil. |
949 |
timeBlock := [self showTime]. |
|
950 |
self showTime |
|
951 |
! |
|
952 |
||
953 |
open |
|
954 |
||
955 |
super open. |
|
756 | 956 |
|
957 |
self class allInstances size = 1 |
|
958 |
ifTrue: |
|
959 |
[ |
|
960 |
self class classResources: nil. |
|
961 |
self clipboard: nil |
|
962 |
]. |
|
753 | 963 |
builder window label: self class label |
964 |
||
965 |
! |
|
966 |
||
967 |
openInterface |
|
968 |
||
969 |
super openInterface. |
|
970 |
||
971 |
self builder window extent: self preferredExtent |
|
972 |
! |
|
973 |
||
974 |
reOpen |
|
975 |
||
976 |
self close. |
|
977 |
||
978 |
self class open |
|
979 |
! |
|
980 |
||
760 | 981 |
removeAllTemporalViews |
982 |
||
983 |
self builder namedComponents keys copy do: |
|
984 |
[:comp| |
|
985 |
(comp includesString: '_Temporal') ifTrue: [self builder namedComponents removeKey: comp] |
|
986 |
] |
|
987 |
! |
|
988 |
||
753 | 989 |
restarted |
990 |
||
991 |
self initialize |
|
756 | 992 |
! |
993 |
||
994 |
uninitialize |
|
995 |
||
996 |
self class allInstances size = 1 ifTrue: [self clipboard: nil]. |
|
997 |
activeHelp ifTrue: [ActiveHelp stopFor: self]. |
|
998 |
Processor removeTimedBlock:timeBlock. |
|
999 |
timeBlock := nil. |
|
753 | 1000 |
! ! |
1001 |
||
1002 |
!ToolApplicationModel methodsFor:'window events'! |
|
1003 |
||
1004 |
showTime |
|
1005 |
||
1006 |
|hours minutes suffix| |
|
1007 |
suffix := ' am '. |
|
1008 |
(hours := Time now hours) > 12 ifTrue: [hours := hours - 12]. |
|
1009 |
Time now hours >= 12 ifTrue: [suffix := ' pm ']. |
|
1010 |
(minutes := Time now minutes printString) size = 1 ifTrue: [minutes := '0', minutes printString]. |
|
1011 |
self valueOfTimeLabel value: hours printString, ':', minutes, suffix. |
|
1012 |
Processor addTimedBlock: timeBlock afterSeconds: 1 |
|
1013 |
||
1014 |
! ! |
|
1015 |
||
1016 |
!ToolApplicationModel class methodsFor:'documentation'! |
|
1017 |
||
1018 |
version |
|
776 | 1019 |
^ '$Header: /cvs/stx/stx/libview2/ToolApplicationModel.st,v 1.16 1998-01-27 13:31:52 tz Exp $' |
753 | 1020 |
! ! |