author | Claus Gittinger <cg@exept.de> |
Wed, 08 Jan 1997 15:04:08 +0100 | |
changeset 921 | 0189f3d732e2 |
parent 920 | 2b66e8759af5 |
child 922 | c72dae45cf15 |
permissions | -rw-r--r-- |
88 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
864 | 3 |
All Rights Reserved |
88 | 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 |
" |
|
86 | 12 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
13 |
ApplicationModel subclass:#Launcher |
891 | 14 |
instanceVariableNames:'myMenu buttonPanel transcript infoView infoProcess helpIsOn |
15 |
isMainLauncher' |
|
915 | 16 |
classVariableNames:'CachedAboutIcon OpenLaunchers NotifyingEmergencyHandler' |
891 | 17 |
poolDictionaries:'' |
18 |
category:'Interface-Smalltalk' |
|
86 | 19 |
! |
20 |
||
760 | 21 |
!Launcher class methodsFor:'documentation'! |
88 | 22 |
|
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
864 | 26 |
All Rights Reserved |
88 | 27 |
|
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
105 | 37 |
customization |
38 |
" |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
39 |
Of course, it is possible to change the Launcher class itself |
105 | 40 |
as appropriate, however, we suggest you create a subclass (say MyLauncher), |
524 | 41 |
define it as autoloaded in the patches file, and redefine some methods |
42 |
in that class. |
|
43 |
That way, your changes are easier to reintroduce in case of an ST/X upgrade. |
|
105 | 44 |
|
45 |
||
46 |
adding more buttons to the button-panel: |
|
47 |
||
48 |
see the method #buttonPanelSpec; |
|
524 | 49 |
it defines a list of selectors and icons, which is used by |
50 |
#setupButtonPanelIn:. |
|
51 |
There, for each entry, a button with that icon is created, |
|
52 |
which sends a selector-message to the launcher. |
|
53 |
||
54 |
Add entries to that list, and define appropriate methods. |
|
55 |
For example, to add a button which opens a drawTool, |
|
56 |
change #buttonPanelSpec to: |
|
57 |
||
58 |
buttonPanelSpec |
|
59 |
^ #( |
|
60 |
#(startSystemBrowser 'SBrowser32x32.xbm') |
|
61 |
#(startFileBrowser 'FBrowser32x32.xbm') |
|
62 |
#(nil nil) |
|
63 |
#(startChangesBrowser 'CBrowser32x32.xbm') |
|
64 |
#(nil nil) |
|
65 |
#(nil nil) |
|
66 |
#(startDrawTool 'DrawTool.xbm') |
|
67 |
) |
|
68 |
||
69 |
the panel adjusts its height as appropriate - you may want to |
|
70 |
create new (small) icons for a good look. |
|
105 | 71 |
|
72 |
adding an entry to a menu: |
|
73 |
||
524 | 74 |
see the #setupMenu method; either add another top-menu, or |
75 |
add entries to an existing menu. |
|
921 | 76 |
All menu setup has been extracted into separate init-methods, |
77 |
so there is often only a need to redefine one of those |
|
78 |
(for example, to add your own demos, only redefine setupDemoMenu). |
|
79 |
To add a new master-item with its own pullDown, redefine setupMainMenu |
|
80 |
to include another selector and add the correspoonding menu there. |
|
88 | 81 |
" |
219 | 82 |
! |
83 |
||
84 |
documentation |
|
85 |
" |
|
86 |
a new launcher, combining old Launchers menu and transcript into |
|
87 |
one view. (you no longer have to move two views around all the time ...). |
|
88 |
||
89 |
Also, this app makes first use of the new compatibility framework; |
|
90 |
you will notice, that this is a subclass of ApplicationModel. |
|
91 |
New applications will no longer be built as subclasses of standardSystemView. |
|
511 | 92 |
|
921 | 93 |
See #customization for information regarding your own private |
94 |
launcher functions. |
|
95 |
||
511 | 96 |
[author:] |
97 |
Claus Gittinger |
|
921 | 98 |
|
99 |
[see also:] |
|
100 |
Examples_misc::MyLauncher |
|
101 |
||
102 |
[start with:] |
|
103 |
Launcher open |
|
219 | 104 |
" |
88 | 105 |
! ! |
106 |
||
760 | 107 |
!Launcher class methodsFor:'accessing'! |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
108 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
109 |
current |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
110 |
"return the launcher running on the current screen. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
111 |
(for access via addMenu/ removeMenu)" |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
112 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
113 |
OpenLaunchers do:[:aLauncher | |
662
b5efd05fa256
use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents:
661
diff
changeset
|
114 |
aLauncher window graphicsDevice == Screen current ifTrue:[ |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
115 |
^ aLauncher |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
116 |
] |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
117 |
]. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
118 |
^ nil. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
119 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
120 |
" |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
121 |
Launcher current |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
122 |
" |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
123 |
|
662
b5efd05fa256
use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents:
661
diff
changeset
|
124 |
"Modified: 5.7.1996 / 17:55:28 / cg" |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
125 |
"Modified: 9.9.1996 / 22:41:36 / stefan" |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
126 |
! ! |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
127 |
|
760 | 128 |
!Launcher class methodsFor:'defaults'! |
86 | 129 |
|
130 |
aboutIcon |
|
921 | 131 |
"return the icon shown in the about menu-item and used |
132 |
as ST/X about icon" |
|
133 |
||
86 | 134 |
|image| |
135 |
||
136 |
CachedAboutIcon notNil ifTrue:[^ CachedAboutIcon]. |
|
137 |
||
138 |
image := Image fromFile:'SmalltalkX.xbm'. |
|
92 | 139 |
image notNil ifTrue:[ |
580 | 140 |
|green dark| |
141 |
||
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
142 |
Screen current hasColors ifTrue:[ |
580 | 143 |
green := (Color red:0 green:80 blue:20) "darkened". |
144 |
dark := Color gray:10. |
|
145 |
image photometric:#palette. |
|
146 |
] ifFalse:[ |
|
147 |
dark := Color black. |
|
148 |
green := Color white. |
|
149 |
image photometric:#blackIs0. |
|
150 |
]. |
|
151 |
image colorMap:(Array with:dark with:green). |
|
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
152 |
"/ Screen current depth > 2 ifTrue:[ |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
153 |
"/ image := (Image implementorForDepth:Screen current depth) fromImage:image. |
144 | 154 |
"/ ] |
86 | 155 |
]. |
156 |
CachedAboutIcon := image. |
|
157 |
^ image |
|
158 |
||
159 |
" |
|
92 | 160 |
CachedAboutIcon := nil. |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
161 |
Launcher aboutIcon |
92 | 162 |
" |
144 | 163 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
164 |
"Modified: 9.9.1996 / 22:41:23 / stefan" |
921 | 165 |
"Modified: 8.1.1997 / 15:01:30 / cg" |
219 | 166 |
! |
167 |
||
368 | 168 |
buttonImageSize |
490 | 169 |
"images in buttonPanel are sized to this. |
170 |
Can be redefined in subclasses to return nil (no scaling) |
|
171 |
or any other useful size" |
|
172 |
||
173 |
^ 32@32 |
|
174 |
||
175 |
"Modified: 19.4.1996 / 16:36:17 / cg" |
|
368 | 176 |
! |
177 |
||
915 | 178 |
notifyingEmergencyHandler |
921 | 179 |
"return a block (used as an emergency handler |
180 |
for exceptions), which does errorNotification before going |
|
181 |
into the debugger." |
|
182 |
||
915 | 183 |
NotifyingEmergencyHandler isNil ifTrue:[ |
184 |
NotifyingEmergencyHandler := [:ex | nil errorNotify:ex errorString ] |
|
185 |
]. |
|
186 |
^ NotifyingEmergencyHandler |
|
187 |
||
188 |
"Created: 7.1.1997 / 22:18:19 / cg" |
|
921 | 189 |
"Modified: 8.1.1997 / 15:02:46 / cg" |
915 | 190 |
! |
191 |
||
219 | 192 |
smallAboutIcon |
921 | 193 |
"return the icon shown in the about menu-item" |
194 |
||
219 | 195 |
|image| |
196 |
||
197 |
image := self aboutIcon. |
|
198 |
image notNil ifTrue:[ |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
199 |
image := image magnifiedBy:0.4. |
219 | 200 |
]. |
201 |
^ image |
|
202 |
||
203 |
" |
|
204 |
CachedAboutIcon := nil. |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
205 |
Launcher aboutIcon. |
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
206 |
Launcher smallAboutIcon. |
219 | 207 |
" |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
208 |
|
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
209 |
"Modified: 9.9.1996 / 22:42:12 / stefan" |
921 | 210 |
"Modified: 8.1.1997 / 15:02:56 / cg" |
219 | 211 |
! ! |
212 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
213 |
!Launcher methodsFor:'actions - about & help'! |
219 | 214 |
|
215 |
about |
|
921 | 216 |
"show an about box" |
217 |
||
219 | 218 |
|box| |
219 |
||
220 |
box := AboutBox new. |
|
221 |
box autoHideAfter:10 with:[]. |
|
222 |
box showAtCenter |
|
921 | 223 |
|
224 |
"Modified: 8.1.1997 / 14:37:07 / cg" |
|
219 | 225 |
! |
226 |
||
727 | 227 |
showBookPrintDocument |
921 | 228 |
"open an HTML browser on the 'book'-printing document" |
229 |
||
727 | 230 |
self showDocumentation:'BOOK.html' |
231 |
||
232 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
233 |
"Created: 12.9.1996 / 01:53:30 / cg" |
|
921 | 234 |
"Modified: 8.1.1997 / 14:42:59 / cg" |
727 | 235 |
! |
236 |
||
219 | 237 |
showDocumentation:aRelativeDocFilePath |
921 | 238 |
"open an HTML browser on some document" |
239 |
||
219 | 240 |
" |
241 |
although that one is not yet finished, |
|
242 |
its better than nothing ... |
|
243 |
" |
|
555 | 244 |
HTMLDocumentView notNil ifTrue:[ |
245 |
" |
|
246 |
temporary kludge; |
|
247 |
not all machines can autoload binaries; |
|
248 |
however, on my SGI (which can) we want it |
|
249 |
to load automatically. |
|
250 |
" |
|
251 |
HTMLDocumentView isLoaded ifFalse:[ |
|
252 |
ErrorSignal catch:[HTMLDocumentView autoload] |
|
253 |
]. |
|
254 |
HTMLDocumentView isLoaded ifTrue:[ |
|
255 |
HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. |
|
256 |
^ self |
|
257 |
]. |
|
219 | 258 |
]. |
259 |
||
260 |
self warn:'Sorry, the ST/X HTML reader is not (yet) |
|
261 |
included in this architectures release. |
|
262 |
||
263 |
Please use Mosaic, netscape, chimera or any |
|
264 |
other HTML viewer to see the documentation. |
|
265 |
||
266 |
The documentation is found in the ''doc/online'' directory.'. |
|
267 |
||
268 |
"Modified: 31.8.1995 / 13:11:08 / claus" |
|
921 | 269 |
"Modified: 8.1.1997 / 14:42:42 / cg" |
219 | 270 |
! |
271 |
||
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
272 |
showLicenceConditions |
921 | 273 |
"open an HTML browser on the 'LICENCE' document" |
274 |
||
860
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
275 |
|lang doc| |
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
276 |
|
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
277 |
((lang := Smalltalk language) = 'de' |
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
278 |
or:[lang = 'german']) ifTrue:[ |
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
279 |
doc := 'german/LICENCE.STX.html' |
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
280 |
] ifFalse:[ |
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
281 |
doc := 'english/LICENCE.STX.html' |
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
282 |
]. |
864 | 283 |
doc := resources at:'LICENCEFILE' default:doc. |
860
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
284 |
self showDocumentation:('../' , doc) |
739
cce1e1dab15e
Licence is in german/LICENCE.STX.html.
Stefan Vogel <sv@exept.de>
parents:
738
diff
changeset
|
285 |
|
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
286 |
"Created: 14.9.1996 / 12:35:00 / cg" |
739
cce1e1dab15e
Licence is in german/LICENCE.STX.html.
Stefan Vogel <sv@exept.de>
parents:
738
diff
changeset
|
287 |
"Modified: 23.9.1996 / 17:03:15 / stefan" |
921 | 288 |
"Modified: 8.1.1997 / 14:39:57 / cg" |
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
289 |
! |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
290 |
|
496 | 291 |
startClassDocumentation |
921 | 292 |
"open an HTML browser on the 'classDoc/TOP' document" |
293 |
||
496 | 294 |
self showDocumentation:'classDoc/TOP.html' |
295 |
||
296 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
297 |
"Created: 22.4.1996 / 21:03:56 / cg" |
|
921 | 298 |
"Modified: 8.1.1997 / 14:42:04 / cg" |
496 | 299 |
! |
300 |
||
483 | 301 |
startDocumentationIndex |
921 | 302 |
"open an HTML browser on the 'index' document" |
303 |
||
483 | 304 |
self showDocumentation:'index.html' |
305 |
||
306 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
307 |
"Created: 17.4.1996 / 22:08:55 / cg" |
|
921 | 308 |
"Modified: 8.1.1997 / 14:41:23 / cg" |
483 | 309 |
! |
310 |
||
219 | 311 |
startDocumentationTool |
921 | 312 |
"open an HTML browser on the 'TOP' document" |
313 |
||
219 | 314 |
self showDocumentation:'TOP.html' |
315 |
||
316 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
921 | 317 |
"Modified: 8.1.1997 / 14:41:38 / cg" |
219 | 318 |
! |
319 |
||
776 | 320 |
startWhatsNewDocumentation |
921 | 321 |
"open an HTML browser on the 'whatsNew.html' document" |
322 |
||
776 | 323 |
self showDocumentation:'whatsNew.html' |
324 |
||
325 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
326 |
"Created: 18.10.1996 / 14:00:35 / cg" |
|
921 | 327 |
"Modified: 8.1.1997 / 14:39:32 / cg" |
776 | 328 |
! |
329 |
||
219 | 330 |
toggleActiveHelp:aBoolean |
921 | 331 |
"turn on/off active help" |
332 |
||
219 | 333 |
ActiveHelp notNil ifTrue:[ |
864 | 334 |
helpIsOn := aBoolean. |
335 |
helpIsOn ifTrue:[ |
|
336 |
ActiveHelp start |
|
337 |
] ifFalse:[ |
|
338 |
ActiveHelp stop |
|
339 |
] |
|
219 | 340 |
]. |
921 | 341 |
|
342 |
"Modified: 8.1.1997 / 14:37:30 / cg" |
|
219 | 343 |
! ! |
344 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
345 |
!Launcher methodsFor:'actions - classes'! |
219 | 346 |
|
347 |
browseImplementors |
|
921 | 348 |
"open an implementors- browser after asking for a selector" |
349 |
||
219 | 350 |
|enterBox| |
351 |
||
352 |
enterBox := EnterBox title:(resources at:'Browse implementors of:') withCRs. |
|
353 |
enterBox okText:(resources at:'browse'). |
|
354 |
enterBox action:[:selectorName | |
|
864 | 355 |
|cls| |
356 |
||
357 |
self withWaitCursorDo:[SystemBrowser browseImplementorsOf:selectorName] |
|
219 | 358 |
]. |
359 |
enterBox showAtPointer |
|
921 | 360 |
|
361 |
"Modified: 8.1.1997 / 14:44:09 / cg" |
|
219 | 362 |
! |
363 |
||
574 | 364 |
browseResources |
921 | 365 |
"open a resource- browser after asking for a resource string" |
366 |
||
589 | 367 |
|enterBox t| |
574 | 368 |
|
369 |
enterBox := EnterBox title:(resources at:'Resource symbol (nil for any):') withCRs. |
|
370 |
enterBox okText:(resources at:'browse'). |
|
371 |
enterBox action:[:resourceName | |
|
372 |
|rsc| |
|
373 |
||
374 |
(resourceName isNil or:[resourceName isEmpty]) ifTrue:[ |
|
589 | 375 |
t := 'methods with any resource'. |
574 | 376 |
rsc := nil |
377 |
] ifFalse:[ |
|
589 | 378 |
t := 'methods with ' , resourceName , '-resource'. |
574 | 379 |
rsc := resourceName asSymbolIfInterned. |
380 |
]. |
|
381 |
self withWaitCursorDo:[ |
|
382 |
SystemBrowser browseForResource:rsc |
|
383 |
in:(Smalltalk allClasses) |
|
589 | 384 |
title:t |
574 | 385 |
] |
386 |
]. |
|
387 |
enterBox showAtPointer |
|
388 |
||
389 |
"Created: 28.5.1996 / 13:15:16 / cg" |
|
921 | 390 |
"Modified: 8.1.1997 / 14:44:41 / cg" |
574 | 391 |
! |
392 |
||
219 | 393 |
browseSenders |
921 | 394 |
"open a senders- browser after asking for a selector" |
395 |
||
219 | 396 |
|enterBox| |
397 |
||
398 |
enterBox := EnterBox title:(resources at:'Browse senders of:') withCRs. |
|
399 |
enterBox okText:(resources at:'browse'). |
|
400 |
enterBox action:[:selectorName | |
|
864 | 401 |
|cls| |
402 |
||
403 |
self withWaitCursorDo:[SystemBrowser browseAllCallsOn:selectorName] |
|
219 | 404 |
]. |
405 |
enterBox showAtPointer |
|
921 | 406 |
|
407 |
"Modified: 8.1.1997 / 14:46:46 / cg" |
|
219 | 408 |
! |
409 |
||
410 |
startChangesBrowser |
|
921 | 411 |
"open a changebrowser" |
412 |
||
219 | 413 |
self withWaitCursorDo:[ChangesBrowser open] |
921 | 414 |
|
415 |
"Modified: 8.1.1997 / 14:47:07 / cg" |
|
219 | 416 |
! |
417 |
||
418 |
startClassBrowser |
|
921 | 419 |
"open a classBrowser; asks for class" |
420 |
||
219 | 421 |
SystemBrowser askThenBrowseClass |
921 | 422 |
|
423 |
"Modified: 8.1.1997 / 14:48:16 / cg" |
|
219 | 424 |
! |
425 |
||
426 |
startClassHierarchyBrowser |
|
921 | 427 |
"open a classHierarchyBrowser; asks for class" |
428 |
||
219 | 429 |
SystemBrowser askThenBrowseClassHierarchy |
921 | 430 |
|
431 |
"Modified: 8.1.1997 / 14:48:28 / cg" |
|
219 | 432 |
! |
433 |
||
434 |
startClassTreeView |
|
921 | 435 |
"open a classHierarchyTree view" |
436 |
||
219 | 437 |
self withWaitCursorDo:[ClassTreeGraphView open] |
921 | 438 |
|
439 |
"Modified: 8.1.1997 / 14:48:38 / cg" |
|
219 | 440 |
! |
441 |
||
442 |
startFileBrowser |
|
921 | 443 |
"open a fileBrowser" |
444 |
||
219 | 445 |
self withWaitCursorDo:[FileBrowser open] |
921 | 446 |
|
447 |
"Modified: 8.1.1997 / 14:48:47 / cg" |
|
219 | 448 |
! |
449 |
||
450 |
startFullClassBrowser |
|
921 | 451 |
"open a fullClass systemBrowser; asks for class" |
452 |
||
219 | 453 |
SystemBrowser askThenBrowseFullClassProtocol |
921 | 454 |
|
455 |
"Modified: 8.1.1997 / 14:48:06 / cg" |
|
219 | 456 |
! |
457 |
||
490 | 458 |
startJavaBrowser |
921 | 459 |
"open a javaBrowser (not included in the standard distribution)" |
460 |
||
490 | 461 |
JavaBrowser notNil ifTrue:[ |
462 |
self withWaitCursorDo:[JavaBrowser open] |
|
463 |
] |
|
464 |
||
465 |
"Created: 18.4.1996 / 15:55:44 / cg" |
|
921 | 466 |
"Modified: 8.1.1997 / 14:47:31 / cg" |
490 | 467 |
! |
468 |
||
219 | 469 |
startSystemBrowser |
921 | 470 |
"open a systemBrowser" |
471 |
||
219 | 472 |
self withWaitCursorDo:[SystemBrowser open] |
921 | 473 |
|
474 |
"Modified: 8.1.1997 / 14:47:43 / cg" |
|
219 | 475 |
! |
476 |
||
477 |
startWorkspace |
|
921 | 478 |
"open a workspace" |
479 |
||
219 | 480 |
Workspace open |
921 | 481 |
|
482 |
"Modified: 8.1.1997 / 14:47:49 / cg" |
|
219 | 483 |
! ! |
484 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
485 |
!Launcher methodsFor:'actions - demos'! |
219 | 486 |
|
487 |
openDemo:className |
|
921 | 488 |
"open a demo, given its name. |
489 |
Looks in both the Smalltalk- and the Demos-Namespace |
|
490 |
for that class." |
|
491 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
492 |
self openApplication:className nameSpace:Demos |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
493 |
|
921 | 494 |
"Modified: 8.1.1997 / 14:51:02 / cg" |
219 | 495 |
! |
496 |
||
497 |
startTetris |
|
921 | 498 |
"opens a tetris game" |
499 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
500 |
self openDemo:'Tetris' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
501 |
|
921 | 502 |
"Modified: 8.1.1997 / 14:49:15 / cg" |
219 | 503 |
! |
504 |
||
505 |
startTicTacToe |
|
921 | 506 |
"opens a ticTacToe game against the machine" |
507 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
508 |
self openDemo:'TicTacToeGame' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
509 |
|
921 | 510 |
"Modified: 8.1.1997 / 14:49:37 / cg" |
219 | 511 |
! |
512 |
||
513 |
startTicTacToe2 |
|
921 | 514 |
"opens a 2-user ticTacToe game" |
515 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
516 |
self openApplication:'TicTacToeGame' nameSpace:Demos with:#open2UserGame |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
517 |
|
921 | 518 |
"Modified: 8.1.1997 / 14:49:29 / cg" |
219 | 519 |
! ! |
520 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
521 |
!Launcher methodsFor:'actions - file'! |
219 | 522 |
|
523 |
exit |
|
921 | 524 |
"stop ST/X - after asking for confirmation" |
525 |
||
219 | 526 |
(self confirm:(resources string:'Are you certain you want to exit without saving ?')) |
527 |
ifTrue:[ |
|
864 | 528 |
self saveAllViews. |
529 |
Smalltalk exit |
|
219 | 530 |
] |
921 | 531 |
|
532 |
"Modified: 8.1.1997 / 14:50:00 / cg" |
|
219 | 533 |
! |
534 |
||
535 |
objectModuleDialog |
|
921 | 536 |
"opens a moduleInfo dialog" |
537 |
||
219 | 538 |
|allModules moduleNames |
539 |
allObjects methodObjects methodNames |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
540 |
cObjects cObjectNames |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
541 |
otherObjects otherObjectNames |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
542 |
box l handles unloadButton |
219 | 543 |
list1 list2 listView1 listView2 |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
544 |
y panel |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
545 |
showBuiltIn showModules showMethods showCObjects showOthers |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
546 |
moduleListUpdater check canDoIt menu| |
219 | 547 |
|
548 |
showBuiltIn := true asValue. |
|
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
549 |
canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
550 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
551 |
showModules := canDoIt asValue. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
552 |
showMethods := canDoIt asValue. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
553 |
showCObjects := canDoIt asValue. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
554 |
showOthers := canDoIt asValue. |
219 | 555 |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
556 |
list1 := SelectionInList new. |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
557 |
list2 := SelectionInList new. |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
558 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
559 |
moduleListUpdater := [ |
458 | 560 |
|l| |
219 | 561 |
|
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
562 |
list2 list:nil. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
563 |
|
458 | 564 |
l := Array new. |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
565 |
handles := Array new. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
566 |
|
458 | 567 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
568 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
569 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
570 |
allModules := allModules select:[:i | |
|
571 |
|wantToSee| |
|
219 | 572 |
|
821
a81a0fb108d0
changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents:
815
diff
changeset
|
573 |
wantToSee := i dynamic. |
458 | 574 |
showBuiltIn value ifTrue:[ |
575 |
wantToSee := wantToSee not |
|
576 |
]. |
|
577 |
wantToSee |
|
578 |
] |
|
579 |
]. |
|
821
a81a0fb108d0
changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents:
815
diff
changeset
|
580 |
|
458 | 581 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
821
a81a0fb108d0
changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents:
815
diff
changeset
|
582 |
allModules sort:[:a :b | (a id) > (b id)]. |
a81a0fb108d0
changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents:
815
diff
changeset
|
583 |
moduleNames := allModules collect:[:entry | entry name]. |
458 | 584 |
l := l , moduleNames. |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
585 |
handles := handles , allModules. |
458 | 586 |
]. |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
587 |
|
458 | 588 |
showMethods value ifTrue:[ |
589 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
590 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
591 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
592 |
'compiled method - removed' , ' (in ' , mH pathName , ')' |
|
593 |
] ifFalse:[ |
|
594 |
'compiled method ' , mH method whoString , ' (in ' , mH pathName , ')' |
|
595 |
]. |
|
596 |
]. |
|
597 |
l := l , methodNames. |
|
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
598 |
handles := handles , methodObjects. |
458 | 599 |
]. |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
600 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
601 |
showCObjects value ifTrue:[ |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
602 |
allObjects := ObjectFileLoader loadedObjectHandles. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
603 |
cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
604 |
cObjectNames := cObjects collect:[:entry | entry pathName]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
605 |
l := l , cObjectNames. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
606 |
handles := handles , cObjects. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
607 |
]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
608 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
609 |
showOthers value ifTrue:[ |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
610 |
allObjects := ObjectFileLoader loadedObjectHandles. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
611 |
otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
612 |
or:[h isMethodHandle |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
613 |
or:[h isClassLibHandle]]) not]) asArray. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
614 |
otherObjectNames := otherObjects collect:[:entry | entry pathName]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
615 |
l := l , otherObjectNames. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
616 |
handles := handles , otherObjects. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
617 |
]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
618 |
|
458 | 619 |
list1 list:l. |
620 |
unloadButton disable. |
|
621 |
]. |
|
219 | 622 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
623 |
showBuiltIn onChangeSend:#value to:moduleListUpdater. |
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
624 |
showModules onChangeSend:#value to:moduleListUpdater. |
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
625 |
showMethods onChangeSend:#value to:moduleListUpdater. |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
626 |
showCObjects onChangeSend:#value to:moduleListUpdater. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
627 |
showOthers onChangeSend:#value to:moduleListUpdater. |
219 | 628 |
|
629 |
box := Dialog new. |
|
630 |
box label:(resources string:'Module dialog'). |
|
631 |
||
632 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
633 |
listView1 model:list1. |
|
634 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
635 |
listView1 action:[:sel | |
|
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
636 |
|info classNames tabs module| |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
637 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
638 |
listView1 middleButtonMenu:nil. |
219 | 639 |
|
467
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
640 |
box withWaitCursorDo:[ |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
641 |
|nm fileName addr entry1 entry2 entry3 method| |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
642 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
643 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
644 |
|
467
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
645 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
646 |
info := allModules at:sel ifAbsent:nil. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
647 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
648 |
info isNil ifTrue:[ |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
649 |
"/ selected a method, cObject or unknown |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
650 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
651 |
module := handles at:sel. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
652 |
fileName := module pathName. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
653 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
654 |
module isMethodHandle ifTrue:[ |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
655 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
656 |
(method := module method) isNil ifTrue:[ |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
657 |
nm := '** removed **'. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
658 |
] ifFalse:[ |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
659 |
menu := PopUpMenu |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
660 |
labels:#('inspect' 'browse') |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
661 |
selectors:#(inspect browse). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
662 |
menu actionAt:#inspect put:[ method inspect ]. |
827
c74f542ba50b
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
821
diff
changeset
|
663 |
menu actionAt:#browse put:[ |who| |
c74f542ba50b
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
821
diff
changeset
|
664 |
who := method who. |
c74f542ba50b
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
821
diff
changeset
|
665 |
SystemBrowser |
c74f542ba50b
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
821
diff
changeset
|
666 |
openInClass:(who methodClass) |
c74f542ba50b
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
821
diff
changeset
|
667 |
selector:(who methodSelector) |
c74f542ba50b
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
821
diff
changeset
|
668 |
]. |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
669 |
listView1 middleButtonMenu:menu. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
670 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
671 |
nm := (method whoString) asText emphasizeAllWith:(#color->Color blue). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
672 |
]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
673 |
entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
674 |
entry1 colAt:1 put:'compiled method'; colAt:2 put:nm. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
675 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
676 |
entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
677 |
entry2 colAt:1 put:'path'; colAt:2 put:fileName. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
678 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
679 |
entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
680 |
entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code hexPrintString leftPaddedTo:8 with:$0)). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
681 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
682 |
list2 list:(Array with:entry1 with:entry2 with:entry3). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
683 |
] ifFalse:[ |
673 | 684 |
(module isFunctionObjectHandle |
685 |
and:[module functions notEmpty]) ifTrue:[ |
|
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
686 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
687 |
menu := PopUpMenu |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
688 |
labels:#('inspect') |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
689 |
selectors:#(inspect). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
690 |
menu actionAt:#inspect put:[ module functions inspect ]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
691 |
listView1 middleButtonMenu:menu. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
692 |
|
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
693 |
list2 list:((module functions select:[:f | f notNil]) |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
694 |
collect:[:f | |entry| |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
695 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
696 |
entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
697 |
entry colAt:2 put:('address: (16r) ' , (f code hexPrintString leftPaddedTo:8 with:$0)). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
698 |
entry |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
699 |
]). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
700 |
] ifFalse:[ |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
701 |
list2 list:#('nothing known about contents (no functions have been extracted)'). |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
702 |
] |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
703 |
]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
704 |
|
458 | 705 |
unloadButton enable. |
706 |
] ifFalse:[ |
|
467
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
707 |
"/ selected a package |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
708 |
|
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
709 |
"/ fill bottom list with class-info |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
710 |
|
821
a81a0fb108d0
changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents:
815
diff
changeset
|
711 |
classNames := info classNames asSortedCollection. |
467
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
712 |
classNames := classNames collect:[:cName | |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
713 |
|cls entry rev listEntry| |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
714 |
|
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
715 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
716 |
listEntry colAt:1 put:cName. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
717 |
|
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
718 |
cls := Smalltalk classNamed:cName. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
719 |
cls isNil ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
720 |
listEntry colAt:2 put:'(class removed)'. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
721 |
] ifFalse:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
722 |
rev := cls binaryRevision. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
723 |
rev notNil ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
724 |
cls isLoaded ifFalse:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
725 |
entry := '(stub for: ' , rev. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
726 |
] ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
727 |
entry :='(bin: ' , rev. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
728 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
729 |
cls revision ~= rev ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
730 |
entry := entry , ' / src: ' , cls revision |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
731 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
732 |
listEntry colAt:2 put:entry , ')' |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
733 |
] ifFalse:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
734 |
cls revision notNil ifTrue:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
735 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
736 |
] |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
737 |
] |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
738 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
739 |
listEntry |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
740 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
741 |
list2 list:classNames. |
821
a81a0fb108d0
changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents:
815
diff
changeset
|
742 |
info dynamic ifTrue:[ |
467
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
743 |
unloadButton enable. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
744 |
] ifFalse:[ |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
745 |
unloadButton disable. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
746 |
]. |
b07279f33723
show wait cursor while searching for classes in module
Claus Gittinger <cg@exept.de>
parents:
464
diff
changeset
|
747 |
] |
458 | 748 |
] |
219 | 749 |
]. |
750 |
||
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
751 |
|
219 | 752 |
panel := HorizontalPanelView new. |
753 |
||
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
754 |
panel add:(l := Label label:'show:'). |
219 | 755 |
l adjust:#left; borderWidth:0. |
347 | 756 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
757 |
box makeTabable:check. |
|
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
758 |
panel add:(check := CheckBox label:'classLibs' model:showModules). |
690
c3fb26a81b59
disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents:
688
diff
changeset
|
759 |
canDoIt ifFalse:[ |
458 | 760 |
check disable |
690
c3fb26a81b59
disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents:
688
diff
changeset
|
761 |
] ifTrue:[ |
458 | 762 |
box makeTabable:check. |
347 | 763 |
]. |
219 | 764 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
690
c3fb26a81b59
disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents:
688
diff
changeset
|
765 |
canDoIt ifFalse:[ |
458 | 766 |
check disable |
690
c3fb26a81b59
disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents:
688
diff
changeset
|
767 |
] ifTrue:[ |
458 | 768 |
box makeTabable:check. |
347 | 769 |
]. |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
770 |
panel add:(check := CheckBox label:'c-objects' model:showCObjects). |
690
c3fb26a81b59
disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents:
688
diff
changeset
|
771 |
canDoIt ifFalse:[ |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
772 |
check disable |
690
c3fb26a81b59
disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents:
688
diff
changeset
|
773 |
] ifTrue:[ |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
774 |
box makeTabable:check. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
775 |
]. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
776 |
panel add:(check := CheckBox label:'others' model:showOthers). |
690
c3fb26a81b59
disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents:
688
diff
changeset
|
777 |
canDoIt ifFalse:[ |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
778 |
check disable |
690
c3fb26a81b59
disable objectModule buttons, if ObjFileLoader is not functioning
Claus Gittinger <cg@exept.de>
parents:
688
diff
changeset
|
779 |
] ifTrue:[ |
671
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
780 |
box makeTabable:check. |
036972e738ba
much more information in the moduleDialog;
Claus Gittinger <cg@exept.de>
parents:
670
diff
changeset
|
781 |
]. |
219 | 782 |
|
783 |
panel horizontalLayout:#fitSpace. |
|
458 | 784 |
"/ panel horizontalLayout:#leftSpace. |
219 | 785 |
|
347 | 786 |
box addComponent:panel tabable:false. |
219 | 787 |
|
347 | 788 |
box addVerticalSpace. |
219 | 789 |
box addComponent:listView1 tabable:true. |
790 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
|
791 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
792 |
||
793 |
l := box addTextLabel:(resources string:'contained classes/subsets:'). |
|
794 |
l adjust:#left; borderWidth:0. |
|
795 |
l origin:0.0@0.4 corner:1.0@0.4. |
|
796 |
l topInset:(View viewSpacing). |
|
797 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
|
798 |
||
799 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
800 |
listView2 model:list2; printItems:false. |
|
801 |
box addComponent:listView2 tabable:true. |
|
802 |
listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2. |
|
803 |
listView2 disable. |
|
804 |
||
805 |
unloadButton := Button label:(resources string:'unload'). |
|
806 |
unloadButton action:[ |
|
458 | 807 |
self withWaitCursorDo:[ |
808 |
box withWaitCursorDo:[ |
|
809 |
|info idx pathName| |
|
219 | 810 |
|
458 | 811 |
idx := list1 selectionIndex. |
812 |
info := allModules at:idx ifAbsent:nil. |
|
219 | 813 |
|
672 | 814 |
list1 selectionIndex:nil. |
815 |
||
458 | 816 |
info isNil ifTrue:[ |
817 |
"/ selected a method |
|
740
95ef743fb8aa
fixed unload of method-modules
Claus Gittinger <cg@exept.de>
parents:
739
diff
changeset
|
818 |
"/ idx := idx - allModules size. |
672 | 819 |
pathName := (handles at:idx) pathName. |
219 | 820 |
|
458 | 821 |
] ifFalse:[ |
822 |
"/ selected a package |
|
821
a81a0fb108d0
changes for new moduleInfo reply
Claus Gittinger <cg@exept.de>
parents:
815
diff
changeset
|
823 |
pathName := info pathName. |
458 | 824 |
]. |
825 |
ObjectFileLoader unloadObjectFile:pathName. |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
826 |
moduleListUpdater value. |
458 | 827 |
unloadButton disable. |
828 |
] |
|
829 |
] |
|
219 | 830 |
]. |
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
831 |
moduleListUpdater value. |
219 | 832 |
|
833 |
box addButton:unloadButton. |
|
834 |
box addAbortButtonLabelled:(resources string:'close'). |
|
835 |
||
836 |
y := box yPosition. |
|
837 |
listView2 topInset:(l preferredExtent y + 5). |
|
838 |
listView2 bottomInset:(box preferredExtent y - y). |
|
839 |
||
458 | 840 |
"/ box width:(400 min:(box device width * 2 // 3)); |
841 |
"/ height:(450 min:(box device height - 50)); |
|
842 |
"/ sizeFixed:true. |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
843 |
box open. |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
844 |
|
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
845 |
box destroy. |
219 | 846 |
|
847 |
"Modified: 17.9.1995 / 16:47:50 / claus" |
|
921 | 848 |
"Modified: 8.1.1997 / 14:50:15 / cg" |
219 | 849 |
! |
850 |
||
851 |
snapshot |
|
921 | 852 |
"saves a snapshot image, after asking for a fileName" |
853 |
||
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
854 |
|fileName| |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
855 |
|
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
856 |
fileName := DialogBox |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
857 |
request:(resources at:'filename for image:') withCRs |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
858 |
initialAnswer:(ObjectMemory nameForSnapshot) |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
859 |
okLabel:(resources at:'save') |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
860 |
title:(resources string:'save image') |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
861 |
onCancel:nil. |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
862 |
|
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
863 |
fileName notNil ifTrue:[ |
600
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
864 |
self showCursor:Cursor write. |
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
865 |
[ |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
866 |
(ObjectMemory snapShotOn:fileName) ifFalse:[ |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
867 |
" |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
868 |
snapshot failed for some reason (disk full, no permission etc.) |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
869 |
" |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
870 |
self warn:(resources string:'failed to save snapshot image (disk full or not writable)'). |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
871 |
] |
600
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
872 |
] valueNowOrOnUnwindDo:[ |
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
873 |
self restoreCursors. |
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
874 |
]. |
219 | 875 |
]. |
876 |
||
921 | 877 |
"Modified: 8.1.1997 / 14:50:29 / cg" |
219 | 878 |
! |
879 |
||
880 |
snapshotAndExit |
|
921 | 881 |
"saves a snapshot image and exits, after asking for a fileName" |
882 |
||
590 | 883 |
|fileName ok| |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
884 |
|
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
885 |
fileName := DialogBox |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
886 |
request:(resources at:'filename for image:') withCRs |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
887 |
initialAnswer:(ObjectMemory nameForSnapshot) |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
888 |
okLabel:(resources at:'save & exit') |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
889 |
title:(resources string:'save image & exit') |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
890 |
onCancel:nil. |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
891 |
|
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
892 |
fileName notNil ifTrue:[ |
600
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
893 |
self showCursor:Cursor write. |
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
894 |
[ |
590 | 895 |
ok := ObjectMemory snapShotOn:fileName. |
600
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
896 |
] valueNowOrOnUnwindDo:[ |
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
897 |
self restoreCursors. |
590 | 898 |
]. |
600
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
899 |
|
590 | 900 |
ok ifFalse:[ |
901 |
" |
|
902 |
snapshot failed for some reason (disk full, no permission etc.) |
|
903 |
Do NOT exit in this case. |
|
904 |
" |
|
905 |
self warn:(resources string:'failed to save snapshot image (disk full or not writable)'). |
|
906 |
] ifTrue:[ |
|
907 |
" |
|
908 |
saveAllViews tells all views to shutdown neatly |
|
909 |
(i.e. offer a chance to save the contents to a file). |
|
910 |
||
911 |
This is NOT required - all data should be in the snapshot ... |
|
912 |
... however, if remote disks/mountable filesystems are involved, |
|
913 |
which may not be present the next time, it may make sense to |
|
914 |
uncomment it and query for saving - time will show which is better. |
|
915 |
" |
|
916 |
" |
|
917 |
self saveAllViews. |
|
918 |
" |
|
919 |
Smalltalk exit |
|
404 | 920 |
] |
219 | 921 |
]. |
922 |
||
921 | 923 |
"Modified: 8.1.1997 / 14:50:36 / cg" |
219 | 924 |
! ! |
925 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
926 |
!Launcher methodsFor:'actions - goodies'! |
219 | 927 |
|
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
928 |
openGoodie:className |
921 | 929 |
"open a goodie, given its name. |
930 |
Looks in both the Smalltalk- and the Goodies-Namespace |
|
931 |
for that class." |
|
932 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
933 |
self openApplication:className nameSpace:Goodies |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
934 |
|
921 | 935 |
"Modified: 8.1.1997 / 14:51:18 / cg" |
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
936 |
! |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
937 |
|
219 | 938 |
startCalendar |
921 | 939 |
"open a calendar goodie" |
940 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
941 |
self openGoodie:'Calendar' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
942 |
|
921 | 943 |
"Modified: 8.1.1997 / 14:51:29 / cg" |
219 | 944 |
! |
945 |
||
946 |
startClock |
|
921 | 947 |
"open a clock goodie" |
948 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
949 |
self openGoodie:'RoundClock' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
950 |
|
921 | 951 |
"Modified: 8.1.1997 / 14:51:34 / cg" |
219 | 952 |
! |
953 |
||
954 |
startMailTool |
|
921 | 955 |
"open a mailView goodie" |
956 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
957 |
self openGoodie:'MailView' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
958 |
|
921 | 959 |
"Modified: 8.1.1997 / 14:51:42 / cg" |
219 | 960 |
! |
961 |
||
962 |
startNewsTool |
|
921 | 963 |
"open a newsTool goodie" |
964 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
965 |
self openGoodie:'NewsView' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
966 |
|
921 | 967 |
"Modified: 8.1.1997 / 14:51:48 / cg" |
219 | 968 |
! ! |
969 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
970 |
!Launcher methodsFor:'actions - projects'! |
219 | 971 |
|
972 |
newProject |
|
921 | 973 |
"creates a new project & opens a projectView for it" |
974 |
||
219 | 975 |
Project notNil ifTrue:[ |
864 | 976 |
(ProjectView for:(Project new)) open |
219 | 977 |
] |
921 | 978 |
|
979 |
"Modified: 8.1.1997 / 14:52:07 / cg" |
|
219 | 980 |
! |
981 |
||
982 |
selectProject |
|
921 | 983 |
"asks for and switch to another project" |
984 |
||
219 | 985 |
|list box| |
986 |
||
987 |
Project notNil ifTrue:[ |
|
549 | 988 |
list := Project allInstances. |
989 |
box := ListSelectionBox new. |
|
990 |
box list:(list collect:[:p | p name]). |
|
991 |
box title:(resources string:'select a project'). |
|
992 |
box action:[:selection | |
|
993 |
|project| |
|
994 |
||
995 |
project := list detect:[:p | p name = selection] ifNone:[nil]. |
|
996 |
project isNil ifTrue:[ |
|
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
997 |
transcript showCR:'no such project.' |
549 | 998 |
] ifFalse:[ |
999 |
project showViews. |
|
1000 |
Project current:project |
|
1001 |
] |
|
1002 |
]. |
|
1003 |
box showAtPointer. |
|
1004 |
box destroy |
|
219 | 1005 |
] |
549 | 1006 |
|
921 | 1007 |
"Modified: 8.1.1997 / 14:52:20 / cg" |
86 | 1008 |
! ! |
1009 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1010 |
!Launcher methodsFor:'actions - settings'! |
219 | 1011 |
|
1012 |
compilerSettings |
|
921 | 1013 |
"open a dialog on compiler related settings" |
1014 |
||
219 | 1015 |
|box warnings warnSTX warnUnderscore warnOldStyle allowUnderscore immutableArrays |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1016 |
warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox |
219 | 1017 |
stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions |
833
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1018 |
stcLibraries stcLibraryPath cc ccOptions historyLines catchRedefs keepSourceOptions keepSource |
780 | 1019 |
constantFoldingOptions constantFolding justInTimeCompilation fullSingleStep |
782 | 1020 |
warnEnabler check component oldIndent t supportsJustInTimeCompilation y |
1021 |
y2 fullLineNumbers| |
|
219 | 1022 |
|
1023 |
warnings := Compiler warnings asValue. |
|
1024 |
||
1025 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
1026 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
1027 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
|
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1028 |
warnCommonMistakes := Compiler warnCommonMistakes asValue. |
219 | 1029 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
1030 |
immutableArrays := Compiler arraysAreImmutable asValue. |
|
782 | 1031 |
fullLineNumbers := (Compiler lineNumberInfo == #full) asValue. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1032 |
|
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1033 |
constantFoldingOptions := #( nil #level1 #level2 #full ). |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1034 |
constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')). |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1035 |
constantFolding selectionIndex:3. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1036 |
|
219 | 1037 |
stcCompilationOptions := #( always default never). |
695 | 1038 |
stcCompilation := SelectionInList new |
1039 |
list:(resources array:#('always' |
|
1040 |
'primitive code only' |
|
1041 |
'never' |
|
1042 |
)). |
|
219 | 1043 |
stcCompilation selectionIndex:2. |
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1044 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) |
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1045 |
ifTrue:[ |
780 | 1046 |
justInTimeCompilation := ObjectMemory justInTimeCompilation:nil. |
1047 |
fullSingleStep := ObjectMemory fullSingleStepSupport:nil. |
|
695 | 1048 |
] ifFalse:[ |
780 | 1049 |
justInTimeCompilation := false. |
1050 |
fullSingleStep := false. |
|
695 | 1051 |
]. |
1052 |
justInTimeCompilation := justInTimeCompilation asValue. |
|
780 | 1053 |
fullSingleStep := fullSingleStep asValue. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1054 |
|
219 | 1055 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
1056 |
stcDefines := Compiler stcCompilationDefines asValue. |
|
1057 |
stcOptions := Compiler stcCompilationOptions asValue. |
|
833
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1058 |
ccOptions := Compiler ccCompilationOptions asValue. |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1059 |
cc := Compiler ccPath asValue. |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1060 |
|
232 | 1061 |
ObjectFileLoader notNil ifTrue:[ |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1062 |
(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[ |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1063 |
stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue. |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1064 |
]. |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1065 |
(t := ObjectFileLoader libPath) notNil ifTrue:[ |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1066 |
stcLibraryPath := t asValue. |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1067 |
] |
232 | 1068 |
]. |
219 | 1069 |
|
1070 |
catchRedefs := Class catchMethodRedefinitions asValue. |
|
1071 |
historyLines := (HistoryManager notNil and:[HistoryManager isActive]) asValue. |
|
1072 |
||
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1073 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1074 |
keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1075 |
keepSource selectionIndex:1. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1076 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
1077 |
warnEnabler := [ |
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
1078 |
warnings value ifTrue:[ |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1079 |
warnSTXBox enable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1080 |
warnOldStyleBox enable. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1081 |
warnCommonMistakesBox enable. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1082 |
allowUnderscore value ifTrue:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1083 |
warnUnderscoreBox enable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1084 |
] ifFalse:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1085 |
warnUnderscoreBox disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1086 |
]. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1087 |
] ifFalse:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1088 |
warnSTXBox disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1089 |
warnUnderscoreBox disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1090 |
warnOldStyleBox disable. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1091 |
warnCommonMistakesBox disable. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1092 |
]]. |
219 | 1093 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
1094 |
warnings onChangeSend:#value to:warnEnabler. |
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
1095 |
allowUnderscore onChangeSend:#value to:warnEnabler. |
219 | 1096 |
|
1097 |
box := DialogBox new. |
|
1098 |
box label:(resources string:'Compiler settings'). |
|
1099 |
||
1100 |
box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs. |
|
1101 |
check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines. |
|
1102 |
HistoryManager isNil ifTrue:[check disable]. |
|
1103 |
||
378 | 1104 |
box addPopUpList:(resources string:'fileIn source mode:') on:keepSource. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1105 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1106 |
|
219 | 1107 |
box addHorizontalLine. |
1108 |
||
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1109 |
supportsJustInTimeCompilation ifTrue:[ |
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1110 |
component := box |
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1111 |
addCheckBox:(resources string:'just in time compilation to machine code') |
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1112 |
on:justInTimeCompilation. |
780 | 1113 |
|
1114 |
component := box |
|
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1115 |
addCheckBox:(resources string:'detailed single step support') |
780 | 1116 |
on:fullSingleStep. |
1117 |
||
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1118 |
box addHorizontalLine. |
695 | 1119 |
]. |
1120 |
||
232 | 1121 |
ObjectFileLoader notNil ifTrue:[ |
695 | 1122 |
compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1123 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
219 | 1124 |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1125 |
component := box |
833
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1126 |
addLabelledInputField:(resources string:'include directories:') |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1127 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1128 |
on:stcIncludes |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1129 |
tabable:true |
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1130 |
separateAtX:0.3. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1131 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
695 | 1132 |
component preferredExtent:(250 @ component preferredExtent y). |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1133 |
|
737 | 1134 |
"/ box addVerticalSpace. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1135 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1136 |
component := box |
833
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1137 |
addLabelledInputField:(resources string:'defines:') |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1138 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1139 |
on:stcDefines |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1140 |
tabable:true |
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1141 |
separateAtX:0.3. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1142 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
695 | 1143 |
component preferredExtent:(250 @ component preferredExtent y). |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1144 |
|
737 | 1145 |
"/ box addVerticalSpace. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1146 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1147 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1148 |
addLabelledInputField:(resources string:'stc options:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1149 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1150 |
on:stcOptions |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1151 |
tabable:true |
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1152 |
separateAtX:0.3. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1153 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
695 | 1154 |
component preferredExtent:(250 @ component preferredExtent y). |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1155 |
|
833
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1156 |
"/ box addVerticalSpace. |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1157 |
|
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1158 |
component := box |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1159 |
addLabelledInputField:(resources string:'cc command:') |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1160 |
adjust:#right |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1161 |
on:cc |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1162 |
tabable:true |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1163 |
separateAtX:0.3. |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1164 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1165 |
component preferredExtent:(250 @ component preferredExtent y). |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1166 |
|
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1167 |
component := box |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1168 |
addLabelledInputField:(resources string:'cc options:') |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1169 |
adjust:#right |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1170 |
on:ccOptions |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1171 |
tabable:true |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1172 |
separateAtX:0.3. |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1173 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1174 |
component preferredExtent:(250 @ component preferredExtent y). |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1175 |
|
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1176 |
stcLibraries notNil ifTrue:[ |
737 | 1177 |
"/ box addVerticalSpace. |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1178 |
|
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1179 |
component := box |
833
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1180 |
addLabelledInputField:(resources string:'C-libraries:') |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1181 |
adjust:#right |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1182 |
on:stcLibraries |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1183 |
tabable:true |
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1184 |
separateAtX:0.3. |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1185 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
695 | 1186 |
component preferredExtent:(250 @ component preferredExtent y). |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1187 |
]. |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1188 |
|
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1189 |
stcLibraryPath notNil ifTrue:[ |
737 | 1190 |
"/ box addVerticalSpace. |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1191 |
|
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1192 |
component := box |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1193 |
addLabelledInputField:(resources string:'stc libPath:') |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1194 |
adjust:#right |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1195 |
on:stcLibraryPath |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1196 |
tabable:true |
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1197 |
separateAtX:0.3. |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1198 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
695 | 1199 |
component preferredExtent:(250 @ component preferredExtent y). |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1200 |
]. |
219 | 1201 |
|
737 | 1202 |
"/ box addVerticalSpace. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1203 |
box addHorizontalLine. |
219 | 1204 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1205 |
"/ if there is no compiler around, |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1206 |
"/ change to compile nothing, and disable the checkBoxes |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1207 |
Compiler canCreateMachineCode ifFalse:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1208 |
stcCompilation selectionIndex:3. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1209 |
compilationList disable. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1210 |
]. |
219 | 1211 |
]. |
1212 |
||
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1213 |
y := box yPosition. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1214 |
|
737 | 1215 |
"/ box addVerticalSpace. |
782 | 1216 |
component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore. |
1217 |
component width:0.4. |
|
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1218 |
|
737 | 1219 |
"/ box addVerticalSpace. |
782 | 1220 |
component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays. |
1221 |
component width:0.4. |
|
1222 |
y2 := box yPosition. |
|
1223 |
||
1224 |
box yPosition:y. |
|
1225 |
box leftIndent:0. |
|
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1226 |
|
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1227 |
component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding. |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1228 |
component superView left:0.5; width:0.5. |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1229 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
1230 |
|
782 | 1231 |
component := box addCheckBox:(resources string:'full lineNumber info') on:fullLineNumbers. |
1232 |
component left:0.5; width:0.4. |
|
1233 |
box yPosition:(box yPosition max:y2). |
|
1234 |
||
695 | 1235 |
|
219 | 1236 |
box addHorizontalLine. |
1237 |
||
1238 |
box addCheckBox:(resources string:'warnings') on:warnings. |
|
737 | 1239 |
"/ box addVerticalSpace. |
343 | 1240 |
oldIndent := box leftIndent. |
219 | 1241 |
box leftIndent:30. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1242 |
|
737 | 1243 |
y := box yPosition. |
1244 |
||
760 | 1245 |
warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX. |
737 | 1246 |
warnSTXBox width:0.4. |
1247 |
"/ box addVerticalSpace. |
|
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1248 |
|
219 | 1249 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore. |
737 | 1250 |
warnUnderscoreBox width:0.4. |
1251 |
"/ box addVerticalSpace. |
|
1252 |
||
1253 |
box yPosition:y. |
|
1254 |
box leftIndent:0. |
|
219 | 1255 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle. |
737 | 1256 |
warnOldStyleBox left:0.5; width:0.4. |
1257 |
"/ box addVerticalSpace. |
|
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1258 |
|
679 | 1259 |
warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes. |
737 | 1260 |
warnCommonMistakesBox left:0.5; width:0.4. |
1261 |
"/ box addVerticalSpace. |
|
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1262 |
|
343 | 1263 |
box leftIndent:oldIndent. |
219 | 1264 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1265 |
box |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1266 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1267 |
addAbortButton; |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1268 |
addOkButton. |
219 | 1269 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
1270 |
warnEnabler value. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1271 |
box open. |
219 | 1272 |
|
1273 |
box accepted ifTrue:[ |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1274 |
HistoryManager notNil ifTrue:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1275 |
historyLines value ifTrue:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1276 |
HistoryManager activate |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1277 |
] ifFalse:[ |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1278 |
HistoryManager deactivate |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1279 |
]. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1280 |
]. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1281 |
Class catchMethodRedefinitions:catchRedefs value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1282 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1283 |
Compiler warnings:warnings value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1284 |
Compiler warnSTXSpecials:warnSTX value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1285 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1286 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
1287 |
Compiler warnCommonMistakes:warnCommonMistakes value. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1288 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1289 |
Compiler arraysAreImmutable:immutableArrays value. |
782 | 1290 |
fullLineNumbers value ifTrue:[ |
1291 |
Compiler lineNumberInfo:#full. |
|
1292 |
] ifFalse:[ |
|
1293 |
Compiler lineNumberInfo:true |
|
1294 |
]. |
|
1295 |
||
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1296 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1297 |
Compiler stcCompilationIncludes:stcIncludes value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1298 |
Compiler stcCompilationDefines:stcDefines value. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1299 |
Compiler stcCompilationOptions:stcOptions value. |
833
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1300 |
Compiler ccCompilationOptions:ccOptions value. |
f4d9acc94617
more control over cc flags/command
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1301 |
Compiler ccPath:cc value. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
1302 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
700 | 1303 |
|
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1304 |
supportsJustInTimeCompilation ifTrue:[ |
700 | 1305 |
justInTimeCompilation value ifTrue:[ |
1306 |
Method allInstancesDo:[:m | m checked:false]. |
|
1307 |
]. |
|
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1308 |
ObjectMemory justInTimeCompilation:justInTimeCompilation value. |
780 | 1309 |
ObjectMemory fullSingleStepSupport:fullSingleStep value. |
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
1310 |
]. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1311 |
ObjectFileLoader notNil ifTrue:[ |
688
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1312 |
stcLibraries notNil ifTrue:[ |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1313 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1314 |
]. |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1315 |
stcLibraryPath notNil ifTrue:[ |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1316 |
ObjectFileLoader libPath:(stcLibraryPath value). |
b695a9f1a456
dont show loaded-libraries, if the system does not support it.
Claus Gittinger <cg@exept.de>
parents:
686
diff
changeset
|
1317 |
] |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
1318 |
] |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1319 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1320 |
box destroy |
219 | 1321 |
|
1322 |
"Modified: 10.9.1995 / 19:19:18 / claus" |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1323 |
"Modified: 9.9.1996 / 22:42:47 / stefan" |
921 | 1324 |
"Modified: 8.1.1997 / 14:52:36 / cg" |
219 | 1325 |
! |
1326 |
||
594 | 1327 |
displaySettings |
921 | 1328 |
"open a dialog on display related settings" |
1329 |
||
594 | 1330 |
|box |
614 | 1331 |
sizes sizeNames sizeList sizeX sizeY deepIcons |
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
1332 |
isColorMonitor useFixPalette idx ditherStyles ditherSyms ditherList |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
1333 |
y component screen visual| |
594 | 1334 |
|
1335 |
sizeNames := #( |
|
1336 |
'9'' (212mm x 160mm) GAS plasma/LCD' |
|
1337 |
'11.3'' (235mm x 175mm) LCD' |
|
1338 |
'16'' (275mm x 208mm)' |
|
636 | 1339 |
'17'' (315mm x 245mm) SUN ELC' |
594 | 1340 |
'17'' (325mm x 245mm)' |
635 | 1341 |
'19'' (340mm x 270mm) (NCD)' |
594 | 1342 |
'20'' (350mm x 280mm) (SGI)' |
1343 |
'21'' (365mm x 285mm) (Eizo / Nanao)' |
|
1344 |
). |
|
1345 |
sizes := #( (212 160) |
|
1346 |
(235 175) |
|
1347 |
(275 208) |
|
636 | 1348 |
(315 245) |
594 | 1349 |
(325 245) |
635 | 1350 |
(340 270) |
594 | 1351 |
(350 280) |
1352 |
(365 285) |
|
1353 |
). |
|
1354 |
||
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1355 |
screen := Screen current. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1356 |
visual := screen visualType. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1357 |
|
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1358 |
isColorMonitor := screen hasColors asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1359 |
deepIcons := screen supportsDeepIcons asValue. |
670
7c958acbc5e8
fixColor and ditherColor stuff moved from Color
Claus Gittinger <cg@exept.de>
parents:
668
diff
changeset
|
1360 |
useFixPalette := screen fixColors notNil asValue. |
594 | 1361 |
|
1362 |
sizeList := SelectionInList with:sizeNames. |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1363 |
sizeX := screen widthInMillimeter asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1364 |
sizeY := screen heightInMillimeter asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1365 |
|
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1366 |
ditherList := SelectionInList with:sizeNames. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1367 |
|
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1368 |
(visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[ |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1369 |
ditherStyles := #('threshold' 'ordered dither' 'error diffusion'). |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1370 |
ditherSyms := #(threshold ordered floydSteinberg). |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1371 |
] ifFalse:[ |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1372 |
visual ~~ #TrueColor ifTrue:[ |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1373 |
ditherStyles := #('nearest color' 'error diffusion'). |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1374 |
ditherSyms := #(ordered floydSteinberg). |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1375 |
] |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1376 |
]. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1377 |
ditherSyms notNil ifTrue:[ |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1378 |
ditherList list:ditherStyles. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1379 |
ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold). |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1380 |
]. |
594 | 1381 |
|
1382 |
box := DialogBox new. |
|
1383 |
box label:(resources string:'Display screen settings'). |
|
1384 |
||
1385 |
(box addTextLabel:(resources string:'Actual visible screen area:')) |
|
1386 |
adjust:#left. |
|
1387 |
||
1388 |
(box addPopUpList:(resources string:'common sizes:') on:sizeList) |
|
1389 |
label:'monitor size'. |
|
1390 |
||
1391 |
idx := sizes findFirst:[:entry | |
|
1392 |
((entry at:1) = sizeX value) |
|
1393 |
and:[((entry at:2) = sizeY value)] |
|
1394 |
]. |
|
1395 |
idx ~~ 0 ifTrue:[ |
|
1396 |
sizeList selectionIndex:idx |
|
1397 |
]. |
|
1398 |
||
1399 |
sizeList onChangeSend:#value to:[ |
|
1400 |
|idx| |
|
1401 |
||
1402 |
idx := sizeList selectionIndex. |
|
1403 |
sizeX value:((sizes at:idx) at:1). |
|
1404 |
sizeY value:((sizes at:idx) at:2). |
|
1405 |
]. |
|
1406 |
||
1407 |
y := box yPosition. |
|
1408 |
component := box addTextLabel:(resources string:'screen size:'). |
|
1409 |
component width:0.3; adjust:#right; borderWidth:0. |
|
1410 |
||
1411 |
box yPosition:y. |
|
1412 |
component := box addInputFieldOn:sizeX tabable:true. |
|
1413 |
component width:0.25; left:0.3; |
|
595 | 1414 |
immediateAccept:false; acceptOnLeave:false; |
594 | 1415 |
cursorMovementWhenUpdating:#beginOfLine; |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1416 |
converter:(PrintConverter new initForInteger); |
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1417 |
model:sizeX. |
594 | 1418 |
|
1419 |
box yPosition:y. |
|
1420 |
component := box addTextLabel:(' x '). |
|
1421 |
component width:0.1; left:0.55; adjust:#center; borderWidth:0. |
|
1422 |
||
1423 |
box yPosition:y. |
|
1424 |
component := box addInputFieldOn:sizeY tabable:true. |
|
1425 |
component width:0.25; left:0.65; |
|
595 | 1426 |
immediateAccept:false; acceptOnLeave:false; |
594 | 1427 |
cursorMovementWhenUpdating:#beginOfLine; |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1428 |
converter:(PrintConverter new initForInteger); |
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1429 |
model:sizeY. |
594 | 1430 |
|
1431 |
box yPosition:y. |
|
1432 |
component := box addTextLabel:('(mm)'). |
|
1433 |
component width:0.1; left:0.9; adjust:#center; borderWidth:0. |
|
1434 |
||
1435 |
box addVerticalSpace. |
|
1436 |
box addHorizontalLine. |
|
1437 |
box addVerticalSpace. |
|
1438 |
||
1439 |
box addCheckBox:(resources string:'color monitor') on:isColorMonitor. |
|
1440 |
||
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1441 |
visual == #PseudoColor ifTrue:[ |
622
9d02b3440252
ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents:
618
diff
changeset
|
1442 |
box addVerticalSpace. |
9d02b3440252
ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents:
618
diff
changeset
|
1443 |
component := box addCheckBox:(resources string:'use fix color palette (6x6x4)') on:useFixPalette. |
9d02b3440252
ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents:
618
diff
changeset
|
1444 |
]. |
594 | 1445 |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1446 |
ditherSyms notNil ifTrue:[ |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1447 |
box addVerticalSpace. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1448 |
component := box addPopUpList:(resources string:'image display:') on:ditherList. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1449 |
component label:'image display'. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1450 |
component superView horizontalLayout:#leftSpace. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1451 |
]. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1452 |
|
614 | 1453 |
box addVerticalSpace. |
1454 |
box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons. |
|
1455 |
||
594 | 1456 |
box |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1457 |
addHelpButtonFor:'Launcher/screenSettings.html'; |
594 | 1458 |
addAbortButton; addOkButton. |
1459 |
box open. |
|
1460 |
||
1461 |
box accepted ifTrue:[ |
|
632 | 1462 |
Image flushDeviceImages. |
1463 |
||
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1464 |
screen visualType == #PseudoColor ifTrue:[ |
622
9d02b3440252
ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents:
618
diff
changeset
|
1465 |
useFixPalette value ifTrue:[ |
638
5541c2f7836f
warnbox if fixColor allocation fails
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
1466 |
Color colorAllocationFailSignal handle:[:ex | |
5541c2f7836f
warnbox if fixColor allocation fails
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
1467 |
self warn:(resources string:'Could not allocate colors.'). |
5541c2f7836f
warnbox if fixColor allocation fails
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
1468 |
] do:[ |
670
7c958acbc5e8
fixColor and ditherColor stuff moved from Color
Claus Gittinger <cg@exept.de>
parents:
668
diff
changeset
|
1469 |
Color getColorsRed:6 green:6 blue:4 on:screen |
638
5541c2f7836f
warnbox if fixColor allocation fails
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
1470 |
] |
622
9d02b3440252
ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents:
618
diff
changeset
|
1471 |
] ifFalse:[ |
670
7c958acbc5e8
fixColor and ditherColor stuff moved from Color
Claus Gittinger <cg@exept.de>
parents:
668
diff
changeset
|
1472 |
screen releaseFixColors |
622
9d02b3440252
ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents:
618
diff
changeset
|
1473 |
] |
594 | 1474 |
]. |
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1475 |
screen hasColors:isColorMonitor value. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1476 |
screen widthInMillimeter:sizeX value. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1477 |
screen heightInMillimeter:sizeY value. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1478 |
|
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1479 |
screen supportsDeepIcons:deepIcons value. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1480 |
ditherSyms notNil ifTrue:[ |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1481 |
Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex). |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
1482 |
]. |
614 | 1483 |
|
594 | 1484 |
self withWaitCursorDo:[ |
1485 |
View defaultStyle:(View defaultStyle). |
|
1486 |
]. |
|
1487 |
]. |
|
1488 |
box destroy |
|
1489 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1490 |
"Modified: 9.9.1996 / 22:43:04 / stefan" |
921 | 1491 |
"Modified: 8.1.1997 / 14:52:42 / cg" |
594 | 1492 |
! |
1493 |
||
398 | 1494 |
fontSettings |
921 | 1495 |
"open a dialog on font related settings" |
1496 |
||
406 | 1497 |
(self fontBoxForEncoding:nil) ifTrue:[ |
1498 |
self reopenLauncher. |
|
1499 |
] |
|
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
1500 |
|
398 | 1501 |
"Created: 26.2.1996 / 22:52:51 / cg" |
921 | 1502 |
"Modified: 8.1.1997 / 14:52:49 / cg" |
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
1503 |
! |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
1504 |
|
219 | 1505 |
keyboardSetting |
921 | 1506 |
"open a dialog on keyboard related settings" |
1507 |
||
219 | 1508 |
|mappings listOfRawKeys listOfFunctions |
1509 |
box l |
|
1510 |
list1 list2 listView1 listView2 |
|
1511 |
frame selectionForwarder macroForwarder macroTextView y| |
|
1512 |
||
1513 |
mappings := Screen current keyboardMap. |
|
1514 |
||
1515 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
1516 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
1517 |
||
1518 |
selectionForwarder := Plug new. |
|
1519 |
selectionForwarder respondTo:#showFunction |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1520 |
with:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1521 |
|raw| |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1522 |
raw := list1 selection. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1523 |
list2 retractInterestsFor:selectionForwarder. |
568 | 1524 |
list2 selection:(mappings at:raw asSymbol) asString. |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1525 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1526 |
]. |
219 | 1527 |
selectionForwarder respondTo:#showRawKey |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1528 |
with:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1529 |
|f raw| |
219 | 1530 |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1531 |
f := list2 selection. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1532 |
list1 retractInterestsFor:selectionForwarder. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1533 |
raw := mappings keyAtValue:f asString. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1534 |
raw isNil ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1535 |
raw := mappings keyAtValue:f first. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1536 |
raw isNil ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1537 |
raw := mappings keyAtValue:f asSymbol. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1538 |
] |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1539 |
]. |
568 | 1540 |
list1 selection:raw. |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1541 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1542 |
]. |
219 | 1543 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
1544 |
macroForwarder := [ |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1545 |
|f macro indent| |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1546 |
f := list2 selection. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1547 |
(f startsWith:'Cmd') ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1548 |
f := f copyFrom:4 |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1549 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1550 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1551 |
macro notNil ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1552 |
macro := macro asStringCollection. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1553 |
indent := macro |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1554 |
inject:99999 into:[:min :element | |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1555 |
|stripped| |
219 | 1556 |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1557 |
stripped := element withoutLeadingSeparators. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1558 |
stripped size == 0 ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1559 |
min |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1560 |
] ifFalse:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1561 |
min min:(element size - stripped size) |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1562 |
] |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1563 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1564 |
indent ~~ 0 ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1565 |
macro := macro collect:[:line | |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1566 |
line size > indent ifTrue:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1567 |
line copyFrom:indent+1 |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1568 |
] ifFalse:[ |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1569 |
line |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1570 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1571 |
] |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1572 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1573 |
]. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1574 |
macroTextView contents:macro. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1575 |
]. |
219 | 1576 |
|
1577 |
list1 := SelectionInList with:listOfRawKeys. |
|
1578 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
1579 |
|
219 | 1580 |
list2 := SelectionInList with:listOfFunctions. |
1581 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
1582 |
list2 onChangeSend:#value to:macroForwarder. |
219 | 1583 |
|
1584 |
box := Dialog new. |
|
1585 |
box label:(resources string:'Keyboard mappings'). |
|
1586 |
||
1587 |
l := box addTextLabel:(resources string:'KEY_MSG') withCRs. |
|
1588 |
l adjust:#left; borderWidth:0. |
|
1589 |
||
1590 |
frame := View new. |
|
1591 |
frame extent:300 @ 300. |
|
1592 |
frame borderWidth:0. |
|
1593 |
||
1594 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
1595 |
listView1 model:list1. |
|
1596 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
1597 |
||
1598 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
1599 |
listView2 model:list2. |
|
1600 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
1601 |
||
1602 |
frame topInset:box yPosition. |
|
1603 |
box addComponent:frame withExtent:350@200. |
|
1604 |
box makeTabable:listView1. |
|
1605 |
box makeTabable:listView2. |
|
1606 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
1607 |
||
1608 |
box addVerticalSpace. |
|
1609 |
||
1610 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
1611 |
l adjust:#left; borderWidth:0. |
|
1612 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
1613 |
l topInset:(View viewSpacing). |
|
1614 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
1615 |
||
1616 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
1617 |
box addComponent:macroTextView tabable:true. |
|
1618 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
1619 |
y := box yPosition. |
|
1620 |
||
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1621 |
box |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1622 |
addHelpButtonFor:'Launcher/keyboardSetting.html'; |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1623 |
"addAbortButton;" |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1624 |
addOkButton. |
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1625 |
|
219 | 1626 |
macroTextView topInset:(l preferredExtent y + 5). |
1627 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
1628 |
||
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1629 |
box open. |
219 | 1630 |
|
1631 |
box accepted ifTrue:[ |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1632 |
"no action yet ..." |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1633 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1634 |
box destroy |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1635 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1636 |
"Modified: 9.9.1996 / 22:43:17 / stefan" |
921 | 1637 |
"Modified: 8.1.1997 / 14:52:55 / cg" |
219 | 1638 |
! |
1639 |
||
1640 |
languageSetting |
|
921 | 1641 |
"open a dialog on language related settings" |
1642 |
||
777
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1643 |
|listOfLanguages translatedLanguages switch box| |
219 | 1644 |
|
1645 |
" |
|
410 | 1646 |
get list of supported languages from the launchers resources ... |
219 | 1647 |
" |
410 | 1648 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
1649 |
translatedLanguages := resources array:listOfLanguages. |
219 | 1650 |
|
1651 |
box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs. |
|
1652 |
box label:(resources string:'Language selection'). |
|
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
1653 |
box list:translatedLanguages. |
219 | 1654 |
box initialText:(Language). |
1655 |
box action:[:newLanguage | |
|
410 | 1656 |
self withWaitCursorDo:[ |
777
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1657 |
|fontPref idx language oldLanguage enc answer matchingFonts| |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1658 |
|
410 | 1659 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
1660 |
idx ~~ 0 ifTrue:[ |
|
1661 |
language := listOfLanguages at:idx |
|
1662 |
] ifFalse:[ |
|
1663 |
language := newLanguage |
|
1664 |
]. |
|
777
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1665 |
|
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1666 |
"/ check if the new language needs a differently encoded font; |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1667 |
"/ ask user to switch font and allow cancellation. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1668 |
"/ Otherwise, you are left with unreadable menu & button items ... |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1669 |
|
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1670 |
oldLanguage := Smalltalk language. |
514
e48fbcbc358d
do not directly access the Language variable
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
1671 |
Smalltalk language:language asSymbol. |
777
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1672 |
ResourcePack flushCachedResourcePacks. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1673 |
fontPref := self class classResources at:'PREFERRED_FONT_ENCODING'. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1674 |
Smalltalk language:oldLanguage. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1675 |
|
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1676 |
switch := true. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1677 |
enc := MenuView defaultFont encoding. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1678 |
(fontPref match:enc) ifFalse:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1679 |
"/ look if there is one at all. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1680 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1681 |
matchingFonts size == 0 ifTrue:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1682 |
(Dialog |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1683 |
confirm:(resources |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1684 |
string:'your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1685 |
with:fontPref) withCRs) |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1686 |
ifFalse:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1687 |
switch := false |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1688 |
] |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1689 |
] ifFalse:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1690 |
answer := Dialog |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1691 |
confirmWithCancel:(resources |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1692 |
string:'menu font is not %1-encoded.\\Change it ?' |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1693 |
with:fontPref) withCRs |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1694 |
labels:(resources |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1695 |
array:#('cancel' 'no' 'yes')) |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1696 |
default:3. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1697 |
answer isNil ifTrue:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1698 |
switch := false |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1699 |
] ifFalse:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1700 |
answer ifTrue:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1701 |
switch := (self fontBoxForEncoding:fontPref) |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1702 |
] |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1703 |
]. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1704 |
]. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1705 |
]. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1706 |
|
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1707 |
switch ifTrue:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1708 |
transcript showCR:'change language to ' , newLanguage , ' ...'. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1709 |
Smalltalk language:language asSymbol. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1710 |
ResourcePack flushCachedResourcePacks |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1711 |
]. |
410 | 1712 |
]. |
777
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1713 |
switch ifTrue:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1714 |
self reopenLauncher. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
1715 |
] |
219 | 1716 |
]. |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
1717 |
box |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1718 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1719 |
box open. |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
1720 |
box destroy |
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
1721 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
1722 |
"Modified: 9.9.1996 / 22:43:27 / stefan" |
921 | 1723 |
"Modified: 8.1.1997 / 14:53:01 / cg" |
219 | 1724 |
! |
1725 |
||
341 | 1726 |
memorySettings |
921 | 1727 |
"open a dialog on objectMemory related settings" |
1728 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
1729 |
|box igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
440 | 1730 |
compressLimit |
773
98efb7f5e8fa
prepared dynamic-compiler controls
Claus Gittinger <cg@exept.de>
parents:
772
diff
changeset
|
1731 |
oldIncr component fields codeLimit codeTrigger| |
341 | 1732 |
|
1733 |
"/ |
|
1734 |
"/ extract relevant system settings ... |
|
1735 |
"/ |
|
1736 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
1737 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
1738 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
1739 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
1740 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
440 | 1741 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
774 | 1742 |
codeLimit := ObjectMemory dynamicCodeLimit asValue. |
1743 |
codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue. |
|
341 | 1744 |
|
1745 |
"/ |
|
1746 |
"/ create a box on those values ... |
|
1747 |
"/ |
|
1748 |
fields := OrderedCollection new. |
|
1749 |
||
1750 |
box := DialogBox new. |
|
1751 |
box label:(resources string:'Memory manager settings'). |
|
1752 |
||
345 | 1753 |
box addTextLabel:'Warning - invalid settings may result in poor performance. |
341 | 1754 |
|
1755 |
You have been warned.'. |
|
1756 |
box addHorizontalLine. |
|
1757 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1758 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1759 |
addLabelledInputField:(resources string:'size of newSpace:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1760 |
adjust:#right |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1761 |
on:nil "/ newSpaceSize |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1762 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1763 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1764 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1765 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1766 |
component model:newSpaceSize. |
341 | 1767 |
fields add:component. |
1768 |
||
1769 |
box addHorizontalLine. |
|
1770 |
||
1771 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1772 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1773 |
addLabelledInputField:(resources string:'incremental GC allocation trigger:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1774 |
adjust:#right |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1775 |
on:nil "/ igcLimit |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1776 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1777 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1778 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1779 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1780 |
component model:igcLimit. |
341 | 1781 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1782 |
|
345 | 1783 |
box addTextLabel:'(start IGC whenever this amount has been allocated)'. |
341 | 1784 |
box addHorizontalLine. |
1785 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1786 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1787 |
addLabelledInputField:(resources string:'incremental GC freespace trigger:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1788 |
adjust:#right |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1789 |
on:nil "/ igcFreeLimit |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1790 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1791 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1792 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1793 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1794 |
component model:igcFreeLimit. |
341 | 1795 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1796 |
|
341 | 1797 |
box addTextLabel:'(start IGC whenever freespace drops below this)'. |
1798 |
box addHorizontalLine. |
|
1799 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1800 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1801 |
addLabelledInputField:(resources string:'incremental GC amount:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1802 |
adjust:#right |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1803 |
on:nil "/ igcFreeAmount |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1804 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1805 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1806 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1807 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1808 |
component model:igcFreeAmount. |
341 | 1809 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1810 |
|
345 | 1811 |
box addTextLabel:'(try to keep this amount for peak requests)'. |
341 | 1812 |
box addHorizontalLine. |
1813 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1814 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1815 |
addLabelledInputField:(resources string:'oldspace increment:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1816 |
adjust:#right |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1817 |
on:nil "/ oldIncr |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1818 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1819 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1820 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1821 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1822 |
component model:oldIncr. |
341 | 1823 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1824 |
|
345 | 1825 |
box addTextLabel:'(increase oldSpace in chunks of this size)'. |
341 | 1826 |
box addHorizontalLine. |
1827 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1828 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1829 |
addLabelledInputField:(resources string:'oldspace compress limit:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1830 |
adjust:#right |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1831 |
on:nil "/ compressLimit |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1832 |
tabable:true |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1833 |
separateAtX:0.7. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1834 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1835 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
1836 |
component model:compressLimit. |
440 | 1837 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1838 |
|
440 | 1839 |
box addTextLabel:'(suppress compressing GC if more memory is in use)'. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1840 |
box addHorizontalLine. |
440 | 1841 |
|
774 | 1842 |
ObjectMemory supportsJustInTimeCompilation ifTrue:[ |
1843 |
component := box |
|
1844 |
addLabelledInputField:(resources string:'dynamic code limit:') |
|
1845 |
adjust:#right |
|
1846 |
on:nil |
|
1847 |
tabable:true |
|
1848 |
separateAtX:0.7. |
|
1849 |
component acceptOnLeave:false. |
|
1850 |
component converter:(PrintConverter new initForNumberOrNil). |
|
1851 |
component model:codeLimit. |
|
1852 |
fields add:component. |
|
1853 |
||
1854 |
box addTextLabel:'(flush dynamic compiled code to stay within this limit)'. |
|
1855 |
box addHorizontalLine. |
|
1856 |
||
1857 |
component := box |
|
1858 |
addLabelledInputField:(resources string:'dynamic code GC trigger:') |
|
1859 |
adjust:#right |
|
1860 |
on:nil |
|
1861 |
tabable:true |
|
1862 |
separateAtX:0.7. |
|
1863 |
component acceptOnLeave:false. |
|
1864 |
component converter:(PrintConverter new initForNumberOrNil). |
|
1865 |
component model:codeTrigger. |
|
1866 |
fields add:component. |
|
1867 |
||
1868 |
box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'. |
|
1869 |
box addHorizontalLine. |
|
1870 |
]. |
|
773
98efb7f5e8fa
prepared dynamic-compiler controls
Claus Gittinger <cg@exept.de>
parents:
772
diff
changeset
|
1871 |
|
341 | 1872 |
box addAbortButton; addOkButton. |
1873 |
||
1874 |
"/ |
|
1875 |
"/ show the box ... |
|
1876 |
"/ |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1877 |
box open. |
341 | 1878 |
|
1879 |
"/ |
|
1880 |
"/ update system settings |
|
1881 |
"/ |
|
1882 |
box accepted ifTrue:[ |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1883 |
fields do:[:comp | comp accept]. |
341 | 1884 |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1885 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1886 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1887 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1888 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1889 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1890 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1891 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1892 |
ObjectMemory incrementalGCLimit:igcLimit value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1893 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1894 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1895 |
ObjectMemory newSpaceSize:newSpaceSize value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1896 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1897 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1898 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1899 |
]. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1900 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
774 | 1901 |
ObjectMemory dynamicCodeLimit:codeLimit value. |
1902 |
ObjectMemory dynamicCodeGCTrigger:codeTrigger value. |
|
341 | 1903 |
]. |
1904 |
box destroy |
|
1905 |
||
921 | 1906 |
"Modified: 8.1.1997 / 14:53:07 / cg" |
341 | 1907 |
! |
1908 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1909 |
messageSettings |
921 | 1910 |
"open a dialog on infoMessage related settings" |
1911 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1912 |
|box vmInfo vmErrors displayErrors classInfos| |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1913 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1914 |
vmInfo := ObjectMemory infoPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1915 |
vmErrors := ObjectMemory debugPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1916 |
classInfos := Object infoPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1917 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1918 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1919 |
box := DialogBox new. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1920 |
box label:(resources string:'Messages'). |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1921 |
"/ box extent:200@300. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1922 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1923 |
box addCheckBox:(resources string:'VM info messages') on:vmInfo. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1924 |
box addCheckBox:(resources string:'VM error messages') on:vmErrors. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1925 |
box addHorizontalLine. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1926 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1927 |
box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1928 |
box addCheckBox:(resources string:'Other info messages') on:classInfos. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1929 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1930 |
box addAbortButton; addOkButton. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1931 |
box open. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1932 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1933 |
box accepted ifTrue:[ |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1934 |
ObjectMemory infoPrinting:vmInfo value. |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1935 |
ObjectMemory debugPrinting:vmErrors value. |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1936 |
Object infoPrinting:classInfos value. |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1937 |
DeviceWorkstation errorPrinting:displayErrors value. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1938 |
]. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1939 |
box destroy |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
1940 |
|
921 | 1941 |
"Modified: 8.1.1997 / 14:53:14 / cg" |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1942 |
! |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
1943 |
|
219 | 1944 |
miscSettings |
921 | 1945 |
"open a dialog on misc other settings" |
1946 |
||
327 | 1947 |
|box check logDoits shadows updChanges changeFileName returnFocus |
711
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1948 |
loadBinaries compileLazy hostNameInLabel useManager hasManager |
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
1949 |
repository repositoryHolder localSourceFirst |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1950 |
showAccelerators sourceCacheDir cacheEntry |
843 | 1951 |
component localCheck oldIndent nm fn manager |
915 | 1952 |
keepMethodHistory showErrorNotifier| |
843 | 1953 |
|
1954 |
"/ |
|
249 | 1955 |
"/ extract relevant system settings ... |
1956 |
"/ |
|
843 | 1957 |
keepMethodHistory := Class methodHistory notNil asValue. |
219 | 1958 |
logDoits := Smalltalk logDoits asValue. |
1959 |
shadows := PopUpView shadows asValue. |
|
1960 |
hostNameInLabel := StandardSystemView includeHostNameInLabel asValue. |
|
327 | 1961 |
returnFocus := Dialog returnFocusWhenClosingModalBoxes asValue. |
219 | 1962 |
updChanges := Class updatingChanges asValue. |
1963 |
changeFileName := ObjectMemory nameForChanges asValue. |
|
711
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1964 |
|
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1965 |
hasManager := AbstractSourceCodeManager notNil |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1966 |
and:[AbstractSourceCodeManager isLoaded]. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1967 |
|
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1968 |
hasManager ifTrue:[ |
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
1969 |
useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue. |
711
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1970 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
1971 |
manager notNil ifTrue:[ |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
1972 |
repository := manager repositoryName. |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
1973 |
repository notNil ifTrue:[ |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
1974 |
repositoryHolder := repository asValue |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
1975 |
] |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
1976 |
]. |
711
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1977 |
] ifFalse:[ |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1978 |
useManager := false. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1979 |
localSourceFirst := false |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
1980 |
]. |
420
2c169931d1ab
allow turning of of accelerator display
Claus Gittinger <cg@exept.de>
parents:
410
diff
changeset
|
1981 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
915 | 1982 |
showErrorNotifier := (Exception emergencyHandler == Launcher notifyingEmergencyHandler) asValue. |
914
10583a26baad
choice of errorNotification or direct debugger entry
Claus Gittinger <cg@exept.de>
parents:
893
diff
changeset
|
1983 |
|
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
1984 |
sourceCacheDir := nil asValue. |
219 | 1985 |
|
1986 |
loadBinaries := Smalltalk loadBinaries asValue. |
|
1987 |
compileLazy := Autoload compileLazy asValue. |
|
1988 |
||
249 | 1989 |
"/ |
1990 |
"/ create a box on those values ... |
|
1991 |
"/ |
|
219 | 1992 |
box := DialogBox new. |
1993 |
box label:(resources string:'Other settings'). |
|
1994 |
||
845 | 1995 |
box addCheckBox:(resources string:'remember changed methods (for previous method in browser)') on:keepMethodHistory. |
219 | 1996 |
box addCheckBox:(resources string:'log compiles in changes file') on:updChanges. |
1997 |
box addCheckBox:(resources string:'log doIts in changes file') on:logDoits. |
|
249 | 1998 |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
1999 |
component := box |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2000 |
addLabelledInputField:(resources string:'change file name:') |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2001 |
adjust:#right |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2002 |
on:changeFileName |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2003 |
tabable:true |
492 | 2004 |
separateAtX:0.4. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2005 |
component immediateAccept:true; acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2006 |
|
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2007 |
"/ y := box yPosition. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2008 |
"/ component := box addTextLabel:(resources string:'change file name:'). |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2009 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2010 |
"/ box yPosition:y. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2011 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
2012 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false. |
219 | 2013 |
|
2014 |
box addHorizontalLine. |
|
2015 |
||
2016 |
box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy. |
|
2017 |
check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries. |
|
2018 |
ObjectFileLoader isNil ifTrue:[ |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2019 |
loadBinaries value:false. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2020 |
check disable |
219 | 2021 |
]. |
249 | 2022 |
|
711
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2023 |
hasManager ifTrue:[ |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2024 |
check := box addCheckBox:(resources string:'sourcecode from sourcecode management') on:useManager. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2025 |
oldIndent := box leftIndent. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2026 |
box leftIndent:30. |
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2027 |
|
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2028 |
repositoryHolder notNil ifTrue:[ |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2029 |
component := box |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2030 |
addLabelledInputField:(resources string:'repository:') |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2031 |
adjust:#right |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2032 |
on:repositoryHolder |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2033 |
tabable:true |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2034 |
separateAtX:0.4. |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2035 |
component immediateAccept:true; acceptOnLeave:false. |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2036 |
]. |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2037 |
|
711
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2038 |
localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2039 |
localCheck enableChannel:useManager. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2040 |
|
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2041 |
cacheEntry := box |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2042 |
addLabelledInputField:(resources string:'source cache dir:') |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2043 |
adjust:#right |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2044 |
on:sourceCacheDir |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2045 |
tabable:true |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2046 |
separateAtX:0.4. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2047 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2048 |
box leftIndent:oldIndent. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2049 |
cacheEntry enableChannel:useManager. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2050 |
|
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2051 |
(AbstractSourceCodeManager isNil |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2052 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2053 |
useManager value:false. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2054 |
cacheEntry disable. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2055 |
check disable. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2056 |
localCheck enable. |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2057 |
] ifFalse:[ |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2058 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2059 |
]. |
249 | 2060 |
]. |
335
c725e5d99819
localSource-first in misc-settings box
Claus Gittinger <cg@exept.de>
parents:
327
diff
changeset
|
2061 |
|
219 | 2062 |
box addHorizontalLine. |
2063 |
||
2064 |
box addCheckBox:(resources string:'shadows under popup views') on:shadows. |
|
327 | 2065 |
box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus. |
219 | 2066 |
box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabel. |
443 | 2067 |
box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators. |
915 | 2068 |
box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier. |
219 | 2069 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2070 |
box |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
2071 |
addHelpButtonFor:'Launcher/miscSettings.html'; |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2072 |
addAbortButton; |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2073 |
addOkButton. |
249 | 2074 |
|
2075 |
"/ |
|
2076 |
"/ show the box ... |
|
2077 |
"/ |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
2078 |
box open. |
219 | 2079 |
|
249 | 2080 |
"/ |
2081 |
"/ update system settings |
|
2082 |
"/ |
|
219 | 2083 |
box accepted ifTrue:[ |
843 | 2084 |
Class keepMethodHistory:keepMethodHistory value. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2085 |
Smalltalk logDoits:logDoits value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2086 |
PopUpView shadows:shadows value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2087 |
Class updateChanges:updChanges value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2088 |
Autoload compileLazy:compileLazy value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2089 |
Smalltalk loadBinaries:loadBinaries value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2090 |
StandardSystemView includeHostNameInLabel:hostNameInLabel value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2091 |
ObjectMemory nameForChanges:changeFileName value. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2092 |
Dialog returnFocusWhenClosingModalBoxes:returnFocus value. |
420
2c169931d1ab
allow turning of of accelerator display
Claus Gittinger <cg@exept.de>
parents:
410
diff
changeset
|
2093 |
MenuView showAcceleratorKeys:showAccelerators value. |
327 | 2094 |
|
711
748349e59632
only show sourceCodeManager items, if its present
Claus Gittinger <cg@exept.de>
parents:
709
diff
changeset
|
2095 |
(hasManager and:[useManager value]) ifTrue:[ |
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2096 |
manager isNil ifTrue:[ |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2097 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager). |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2098 |
manager := Smalltalk at:#SourceCodeManager. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2099 |
]. |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2100 |
Class tryLocalSourceFirst:(localSourceFirst value). |
491
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2101 |
nm := sourceCacheDir value. |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2102 |
(fn := nm asFilename) exists ifFalse:[ |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2103 |
(self confirm:(nm , ' does not exists\create ?' withCRs)) ifTrue:[ |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2104 |
fn makeDirectory; |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2105 |
makeReadableForAll; |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2106 |
makeWritableForAll; |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2107 |
makeExecutableForAll. |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2108 |
] |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2109 |
]. |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2110 |
(fn exists |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2111 |
and:[fn isDirectory |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2112 |
and:[fn isReadable |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2113 |
and:[fn isWritable]]]) ifTrue:[ |
8c30fe86b0e9
allow change of the source cache directory
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
2114 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2115 |
]. |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2116 |
repositoryHolder notNil ifTrue:[ |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2117 |
manager repositoryName:repositoryHolder value. |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2118 |
manager initialize |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
2119 |
]. |
914
10583a26baad
choice of errorNotification or direct debugger entry
Claus Gittinger <cg@exept.de>
parents:
893
diff
changeset
|
2120 |
|
915 | 2121 |
showErrorNotifier value ifFalse:[ |
914
10583a26baad
choice of errorNotification or direct debugger entry
Claus Gittinger <cg@exept.de>
parents:
893
diff
changeset
|
2122 |
Exception emergencyHandler:nil |
10583a26baad
choice of errorNotification or direct debugger entry
Claus Gittinger <cg@exept.de>
parents:
893
diff
changeset
|
2123 |
] ifTrue:[ |
915 | 2124 |
Exception emergencyHandler:(Launcher notifyingEmergencyHandler) |
914
10583a26baad
choice of errorNotification or direct debugger entry
Claus Gittinger <cg@exept.de>
parents:
893
diff
changeset
|
2125 |
] |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2126 |
] ifFalse:[ |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2127 |
Smalltalk at:#SourceCodeManager put:nil |
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2128 |
] |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
2129 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
2130 |
box destroy |
219 | 2131 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
2132 |
"Modified: 9.9.1996 / 22:43:36 / stefan" |
921 | 2133 |
"Modified: 8.1.1997 / 14:53:22 / cg" |
219 | 2134 |
! |
2135 |
||
347 | 2136 |
printerSettings |
921 | 2137 |
"open a dialog on printer related settings" |
2138 |
||
347 | 2139 |
|box |
595 | 2140 |
possiblePrinters possibleTypes printerType printCommand |
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
2141 |
pageFormat landscape updater |
601 | 2142 |
formatLabel formatComponent landscapeLabel landscapeComponent |
709 | 2143 |
topMargin leftMargin rightMargin bottomMargin unitList unit |
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
2144 |
topMarginComponent leftMarginComponent |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
2145 |
rightMarginComponent |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
2146 |
bottomMarginComponent supportsColor supportsColorComponent |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
2147 |
y y1 commandListPop component commandList row| |
347 | 2148 |
|
2149 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
2150 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
2151 |
||
2152 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
2153 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
2154 |
printCommand := Printer printCommand asValue. |
|
2155 |
||
604 | 2156 |
pageFormat := SelectionInList new list:(Printer defaultPageFormats). |
2157 |
pageFormat selection:(Printer pageFormat). |
|
2158 |
landscape := Printer landscape asValue. |
|
2159 |
||
707 | 2160 |
topMargin := Printer topMargin asValue. |
2161 |
leftMargin := Printer leftMargin asValue. |
|
709 | 2162 |
rightMargin := Printer rightMargin asValue. |
707 | 2163 |
bottomMargin := Printer bottomMargin asValue. |
702 | 2164 |
supportsColor := Printer supportsColor asValue. |
601 | 2165 |
|
347 | 2166 |
box := DialogBox new. |
2167 |
box label:(resources string:'Printer settings'). |
|
2168 |
||
726 | 2169 |
"/ either use a popUpList ... |
2170 |
"/ box addPopUpList:(resources string:'printer type:') on:printerType. |
|
2171 |
||
2172 |
"/ or a comboList; |
|
2173 |
"/ which one looks better ? |
|
2174 |
y := box yPosition. |
|
2175 |
component := box addTextLabel:(resources string:'printer type:'). |
|
2176 |
component width:0.3; adjust:#right; borderWidth:0. |
|
2177 |
box yPosition:y. |
|
2178 |
component := box addComboListOn:printerType tabable:true. |
|
2179 |
component changeMessage:#selectionIndex:; useIndex:true. |
|
2180 |
component width:0.7; left:0.3. |
|
2181 |
"/ end of question |
|
347 | 2182 |
|
2183 |
y := box yPosition. |
|
2184 |
component := box addTextLabel:(resources string:'print command:'). |
|
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2185 |
component width:0.3; adjust:#right; borderWidth:0. |
347 | 2186 |
box yPosition:y. |
598 | 2187 |
commandListPop := box addComboBoxOn:printCommand tabable:true. |
2188 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
2189 |
commandListPop width:0.7; left:0.3; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2190 |
"/ some common print commands ... |
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2191 |
|
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2192 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2193 |
commandList isNil ifTrue:[ |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2194 |
commandList := PrinterStream defaultCommands. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2195 |
commandList isNil ifTrue:[ |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2196 |
commandList := #('lpr' |
598 | 2197 |
'lp' |
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2198 |
). |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2199 |
] |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2200 |
]. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
2201 |
|
598 | 2202 |
commandListPop list:commandList. |
347 | 2203 |
box addVerticalSpace. |
595 | 2204 |
box addHorizontalLine. |
2205 |
box addVerticalSpace. |
|
2206 |
||
2207 |
row := OrderedCollection new. |
|
601 | 2208 |
row add:(formatLabel := Label label:(resources string:'page format:')). |
676 | 2209 |
formatLabel borderWidth:0. |
601 | 2210 |
row add:(formatComponent := PopUpList on:pageFormat). |
2211 |
formatComponent label:'unknown'. |
|
2212 |
||
2213 |
row add:(landscapeLabel := Label label:(resources string:'landscape:')). |
|
676 | 2214 |
landscapeLabel borderWidth:0. |
601 | 2215 |
row add:(landscapeComponent := CheckToggle on:landscape). |
595 | 2216 |
|
2217 |
y := box yPosition. |
|
2218 |
box |
|
2219 |
addRow:(1 to:2) |
|
2220 |
fromX:0 |
|
2221 |
toX:0.5 |
|
2222 |
collect:[:idx | row at:idx] |
|
2223 |
tabable:false |
|
2224 |
horizontalLayout:#leftSpace |
|
2225 |
verticalLayout:#center. |
|
2226 |
y1 := box yPosition. |
|
2227 |
box yPosition:y. |
|
2228 |
||
2229 |
box |
|
2230 |
addRow:(3 to:4) |
|
2231 |
fromX:0.5 |
|
2232 |
toX:1.0 |
|
2233 |
collect:[:idx | row at:idx] |
|
2234 |
tabable:false |
|
2235 |
horizontalLayout:#leftSpace |
|
2236 |
verticalLayout:#center. |
|
2237 |
||
2238 |
box yPosition:(box yPosition max:y1). |
|
2239 |
||
601 | 2240 |
box makeTabable:(formatComponent). |
2241 |
box makeTabable:(landscapeComponent). |
|
2242 |
||
2243 |
box addVerticalSpace. |
|
2244 |
box addHorizontalLine. |
|
2245 |
box addVerticalSpace. |
|
2246 |
||
2247 |
y := box yPosition. |
|
2248 |
||
707 | 2249 |
topMarginComponent := box |
603 | 2250 |
addLabelledInputField:(resources string:'top margin:') |
601 | 2251 |
adjust:#right |
707 | 2252 |
on:nil "/ topMargin |
601 | 2253 |
tabable:true |
2254 |
from:0.0 to:0.5 |
|
2255 |
separateAtX:0.6. |
|
707 | 2256 |
topMarginComponent converter:(PrintConverter new initForNumber). |
2257 |
topMarginComponent model:topMargin. |
|
601 | 2258 |
y1 := box yPosition. |
2259 |
||
2260 |
box yPosition:y. |
|
2261 |
unitList := SelectionInList with:#('inch' 'mm'). |
|
2262 |
unitList selectionIndex:1. |
|
2263 |
||
605 | 2264 |
component := box addComponent:(PopUpList on:unitList). |
2265 |
component |
|
603 | 2266 |
left:0.6; |
2267 |
width:0.3. |
|
601 | 2268 |
|
2269 |
box yPosition:y1. |
|
2270 |
||
707 | 2271 |
leftMarginComponent := box |
603 | 2272 |
addLabelledInputField:(resources string:'left margin:') |
601 | 2273 |
adjust:#right |
707 | 2274 |
on:nil "/ leftMargin |
601 | 2275 |
tabable:true |
2276 |
from:0.0 to:0.5 |
|
2277 |
separateAtX:0.6. |
|
707 | 2278 |
leftMarginComponent converter:(PrintConverter new initForNumber). |
2279 |
leftMarginComponent model:leftMargin. |
|
2280 |
||
709 | 2281 |
rightMarginComponent := box |
2282 |
addLabelledInputField:(resources string:'right margin:') |
|
2283 |
adjust:#right |
|
2284 |
on:nil "/ rightMargin |
|
2285 |
tabable:true |
|
2286 |
from:0.0 to:0.5 |
|
2287 |
separateAtX:0.6. |
|
2288 |
rightMarginComponent converter:(PrintConverter new initForNumber). |
|
2289 |
rightMarginComponent model:rightMargin. |
|
2290 |
||
707 | 2291 |
bottomMarginComponent := box |
603 | 2292 |
addLabelledInputField:(resources string:'bottom margin:') |
601 | 2293 |
adjust:#right |
707 | 2294 |
on:nil "/ bottomMargin |
601 | 2295 |
tabable:true |
2296 |
from:0.0 to:0.5 |
|
2297 |
separateAtX:0.6. |
|
707 | 2298 |
bottomMarginComponent converter:(PrintConverter new initForNumber). |
2299 |
bottomMarginComponent model:bottomMargin. |
|
601 | 2300 |
|
702 | 2301 |
box addHorizontalLine. |
2302 |
supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor. |
|
2303 |
box addVerticalSpace. |
|
2304 |
||
601 | 2305 |
updater := [ |p fg hasPageSize hasMargins| |
598 | 2306 |
|
2307 |
printerType selectionIndex ~~ 0 ifTrue:[ |
|
2308 |
p := possiblePrinters at:(printerType selectionIndex). |
|
601 | 2309 |
hasPageSize := p supportsPageSizes. |
604 | 2310 |
hasMargins := p supportsMargins. |
598 | 2311 |
] ifFalse:[ |
601 | 2312 |
hasPageSize := false. |
2313 |
hasMargins := false. |
|
598 | 2314 |
]. |
601 | 2315 |
hasPageSize ifTrue:[ |
597 | 2316 |
fg := Button new foregroundColor. |
601 | 2317 |
formatComponent enable. |
2318 |
landscapeComponent enable. |
|
2319 |
||
2320 |
formatComponent label:p pageFormat. |
|
2321 |
pageFormat value:(p pageFormat). |
|
2322 |
landscape value:(p landscape). |
|
597 | 2323 |
] ifFalse:[ |
2324 |
fg := Button new disabledForegroundColor. |
|
601 | 2325 |
formatComponent disable. |
2326 |
landscapeComponent disable. |
|
2327 |
||
2328 |
formatComponent label:'unknown'. |
|
2329 |
landscape value:nil. |
|
597 | 2330 |
]. |
601 | 2331 |
hasMargins ifTrue:[ |
2332 |
unitList selectionIndex == 2 ifTrue:[ |
|
2333 |
unit := #mm |
|
2334 |
] ifFalse:[ |
|
2335 |
unit := #inch |
|
2336 |
]. |
|
2337 |
||
707 | 2338 |
topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit). |
2339 |
leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit). |
|
709 | 2340 |
rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit). |
707 | 2341 |
bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit). |
2342 |
||
2343 |
topMarginComponent enable. |
|
2344 |
leftMarginComponent enable. |
|
709 | 2345 |
rightMarginComponent enable. |
707 | 2346 |
bottomMarginComponent enable. |
601 | 2347 |
] ifFalse:[ |
707 | 2348 |
topMarginComponent disable. |
2349 |
leftMarginComponent disable. |
|
709 | 2350 |
rightMarginComponent disable. |
707 | 2351 |
bottomMarginComponent disable. |
601 | 2352 |
]. |
2353 |
formatLabel foregroundColor:fg. |
|
2354 |
landscapeLabel foregroundColor:fg. |
|
2355 |
||
598 | 2356 |
p notNil ifTrue:[ |
2357 |
commandList := p defaultCommands. |
|
2358 |
commandList notNil ifTrue:[ |
|
2359 |
commandListPop list:commandList |
|
2360 |
]. |
|
2361 |
||
2362 |
printCommand value:(p printCommand). |
|
702 | 2363 |
]. |
2364 |
p supportsPostscript ifFalse:[ |
|
2365 |
supportsColorComponent disable. |
|
2366 |
supportsColor value:false |
|
2367 |
] ifTrue:[ |
|
2368 |
supportsColorComponent enable. |
|
2369 |
supportsColor value:(Printer supportsColor). |
|
598 | 2370 |
] |
597 | 2371 |
]. |
601 | 2372 |
unitList onChangeSend:#value to:updater. |
598 | 2373 |
printerType onChangeSend:#value to:updater. |
2374 |
updater value. |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
2375 |
|
608 | 2376 |
box addVerticalSpace; |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
2377 |
addHelpButtonFor:'Launcher/printerSettings.html'; |
608 | 2378 |
addAbortButton; addOkButton. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
2379 |
box open. |
347 | 2380 |
|
2381 |
box accepted ifTrue:[ |
|
598 | 2382 |
Printer := possiblePrinters at:(printerType selectionIndex). |
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2383 |
Printer printCommand:printCommand value. |
595 | 2384 |
|
601 | 2385 |
Printer supportsPageSizes ifTrue:[ |
2386 |
Printer pageFormat:(pageFormat selection). |
|
2387 |
Printer landscape:(landscape value). |
|
2388 |
]. |
|
2389 |
Printer supportsMargins ifTrue:[ |
|
2390 |
unitList selectionIndex == 2 ifTrue:[ |
|
2391 |
unit := #mm |
|
2392 |
] ifFalse:[ |
|
2393 |
unit := #inch |
|
2394 |
]. |
|
707 | 2395 |
Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch). |
2396 |
Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch). |
|
709 | 2397 |
Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch). |
707 | 2398 |
Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch). |
601 | 2399 |
]. |
702 | 2400 |
Printer supportsPostscript ifTrue:[ |
2401 |
Printer supportsColor:supportsColor value. |
|
2402 |
]. |
|
347 | 2403 |
]. |
2404 |
box destroy |
|
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
2405 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
2406 |
"Modified: 9.9.1996 / 22:43:51 / stefan" |
921 | 2407 |
"Modified: 8.1.1997 / 14:53:31 / cg" |
347 | 2408 |
! |
2409 |
||
853 | 2410 |
restoreSettings |
921 | 2411 |
"restore settings from a settings-file." |
2412 |
||
853 | 2413 |
"a temporary kludge - we need a central systemSettings object for this, |
2414 |
which can be saved/restored with a single store/read." |
|
2415 |
||
2416 |
|fileName| |
|
2417 |
||
2418 |
fileName := Dialog |
|
855 | 2419 |
requestFileName:(resources string:'restore settings from:') |
853 | 2420 |
default:'settings.stx' |
2421 |
ok:(resources string:'restore') |
|
2422 |
abort:(resources string:'cancel') |
|
2423 |
pattern:'*.stx' |
|
2424 |
fromDirectory:nil. |
|
2425 |
||
2426 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
2427 |
"/ canceled |
|
2428 |
^ self |
|
2429 |
]. |
|
2430 |
||
2431 |
self withWaitCursorDo:[ |
|
2432 |
Smalltalk fileIn:fileName. |
|
2433 |
||
2434 |
self reopenLauncher. |
|
2435 |
]. |
|
2436 |
||
921 | 2437 |
"Modified: 8.1.1997 / 14:53:52 / cg" |
853 | 2438 |
! |
2439 |
||
2440 |
saveSettings |
|
921 | 2441 |
"save settings to a settings-file." |
2442 |
||
853 | 2443 |
"a temporary kludge - we need a central systemSettings object for this, |
2444 |
which can be saved/restored with a single store/read." |
|
2445 |
||
2446 |
|s screen fileName| |
|
2447 |
||
2448 |
fileName := Dialog |
|
855 | 2449 |
requestFileName:(resources string:'save settings in:') |
853 | 2450 |
default:'settings.stx' |
2451 |
ok:(resources string:'save') |
|
2452 |
abort:(resources string:'cancel') |
|
2453 |
pattern:'*.stx' |
|
2454 |
fromDirectory:nil. |
|
2455 |
||
2456 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
2457 |
"/ canceled |
|
2458 |
^ self |
|
2459 |
]. |
|
2460 |
||
2461 |
s := fileName asFilename writeStream. |
|
2462 |
s isNil ifTrue:[ |
|
2463 |
self warn:'cannot write the ''' , fileName , ''' file'. |
|
2464 |
^ self |
|
2465 |
]. |
|
2466 |
||
2467 |
s nextPutLine:'"/ ST/X saved settings'; |
|
2468 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
2469 |
nextPutLine:'"/'; |
|
2470 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
2471 |
nextPutLine:'"/ ''save settings'' function of the Launcher'; |
|
2472 |
nextPutLine:'"/'. |
|
2473 |
s cr. |
|
2474 |
||
2475 |
s nextPutLine:'"/'. |
|
2476 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
2477 |
s nextPutLine:'"/'. |
|
2478 |
s cr. |
|
2479 |
||
2480 |
s nextPutLine:'"/'. |
|
2481 |
s nextPutLine:'"/ Display settings:'. |
|
2482 |
s nextPutLine:'"/'. |
|
2483 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
2484 |
s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['. |
|
2485 |
screen := Screen current. |
|
2486 |
screen fixColors notNil ifTrue:[ |
|
2487 |
s nextPutLine:' Image flushDeviceImages.'. |
|
2488 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
2489 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
2490 |
s nextPutLine:' ].'. |
|
2491 |
] ifFalse:[ |
|
2492 |
s nextPutLine:' Display releaseFixColors.'. |
|
2493 |
]. |
|
2494 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
2495 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
2496 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
2497 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
2498 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
2499 |
s nextPutLine:' View defaultStyle:(View defaultStyle). "/ to flush any device images'. |
|
2500 |
s nextPutLine:'].'. |
|
2501 |
s cr. |
|
2502 |
||
2503 |
s nextPutLine:'"/'. |
|
2504 |
s nextPutLine:'"/ Compiler settings:'. |
|
2505 |
s nextPutLine:'"/'. |
|
2506 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
2507 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
2508 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
2509 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
2510 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
|
2511 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
|
2512 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
2513 |
||
2514 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
2515 |
||
2516 |
nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
2517 |
nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
2518 |
nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
2519 |
nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
2520 |
nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
2521 |
||
2522 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
2523 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
2524 |
||
2525 |
HistoryManager isActive ifTrue:[ |
|
2526 |
s nextPutLine:'HistoryManager activate.'. |
|
2527 |
] ifFalse:[ |
|
2528 |
s nextPutLine:'HistoryManager deactivate.'. |
|
2529 |
]. |
|
2530 |
||
2531 |
ObjectFileLoader notNil ifTrue:[ |
|
2532 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
|
2533 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
|
2534 |
]. |
|
2535 |
||
2536 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
2537 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
2538 |
||
2539 |
s cr. |
|
2540 |
s nextPutLine:'"/'. |
|
2541 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
2542 |
s nextPutLine:'"/'. |
|
2543 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
2544 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
2545 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
2546 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
2547 |
||
2548 |
||
2549 |
s cr. |
|
2550 |
s nextPutLine:'"/'. |
|
2551 |
s nextPutLine:'"/ Misc settings:'. |
|
2552 |
s nextPutLine:'"/'. |
|
2553 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
2554 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
2555 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
2556 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
2557 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
2558 |
||
2559 |
"/ claus - I dont think its a good idea to save those ... |
|
2560 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
2561 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
2562 |
||
2563 |
nextPutLine:'Dialog returnFocusWhenClosingModalBoxes: ' , (Dialog returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
2564 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
|
2565 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
915 | 2566 |
(Exception emergencyHandler == Launcher notifyingEmergencyHandler) ifTrue:[ |
2567 |
s nextPutLine:'Exception emergencyHandler:(Launcher notifyingEmergencyHandler).'. |
|
2568 |
]. |
|
853 | 2569 |
|
2570 |
s cr. |
|
2571 |
s nextPutLine:'"/'. |
|
2572 |
s nextPutLine:'"/ Printer settings:'. |
|
2573 |
s nextPutLine:'"/'. |
|
2574 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
2575 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
2576 |
||
2577 |
Printer supportsPageSizes ifTrue:[ |
|
2578 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
|
2579 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
2580 |
]. |
|
2581 |
Printer supportsMargins ifTrue:[ |
|
2582 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
|
2583 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
2584 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
2585 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
2586 |
]. |
|
2587 |
Printer supportsPostscript ifTrue:[ |
|
2588 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
|
2589 |
]. |
|
2590 |
||
2591 |
s cr. |
|
2592 |
s nextPutLine:'"/'. |
|
2593 |
s nextPutLine:'"/ Font settings:'. |
|
2594 |
s nextPutLine:'"/'. |
|
2595 |
s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
2596 |
s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
2597 |
s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
2598 |
s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
2599 |
s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
2600 |
s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
2601 |
s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
2602 |
s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
2603 |
s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
2604 |
s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
2605 |
||
2606 |
s cr. |
|
2607 |
s nextPutLine:'"/'. |
|
2608 |
s nextPutLine:'"/ Language setting:'. |
|
2609 |
s nextPutLine:'"/'. |
|
2610 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
2611 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
2612 |
s close. |
|
2613 |
||
2614 |
" |
|
2615 |
Transcript topView application saveSettings |
|
2616 |
" |
|
2617 |
||
921 | 2618 |
"Modified: 8.1.1997 / 14:54:00 / cg" |
853 | 2619 |
! |
2620 |
||
219 | 2621 |
viewStyleSetting |
921 | 2622 |
"open a dialog on viewStyle related settings" |
2623 |
||
219 | 2624 |
|listOfStyles resourceDir dir box |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
2625 |
list listView scrView infoLabel infoForwarder newStyle| |
219 | 2626 |
|
2627 |
" |
|
2628 |
search resources directory for a list of .style files ... |
|
2629 |
" |
|
2630 |
||
2631 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
|
2632 |
resourceDir isNil ifTrue:[ |
|
549 | 2633 |
self warn:'no styles found (missing ''resources'' directory)'. |
2634 |
^ self |
|
219 | 2635 |
]. |
2636 |
dir := FileDirectory directoryNamed:resourceDir. |
|
2637 |
||
2638 |
listOfStyles := dir select:[:aFileName | aFileName endsWith:'.style']. |
|
2639 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName copyWithoutLast:6]. |
|
2640 |
listOfStyles sort. |
|
2641 |
||
2642 |
"/ old code: used a standard ListSelectionBox |
|
2643 |
"/ changed to intercept selection and add info-output. |
|
2644 |
||
2645 |
"/ box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs. |
|
2646 |
"/ box label:(resources string:'Style selection'). |
|
2647 |
"/ box list:listOfStyles. |
|
2648 |
"/ box initialText:View defaultStyle. |
|
2649 |
"/ box selectAction:[:newStyle | |
|
2650 |
"/ ]. |
|
2651 |
"/ box action:[:newStyle | |
|
2652 |
"/ transcript topView withCursor:Cursor wait do:[ |
|
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
2653 |
"/ transcript showCR:'change style to ' , newStyle , ' ...'. |
219 | 2654 |
"/ View defaultStyle:newStyle asSymbol. |
2655 |
"/ ] |
|
2656 |
"/ ]. |
|
2657 |
"/ box showAtPointer |
|
2658 |
||
2659 |
"/ new code: build box 'by 'hand' |
|
2660 |
"/ |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
2661 |
infoForwarder := [ |
549 | 2662 |
|nm sheet comment| |
2663 |
nm := list selection. |
|
2664 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
2665 |
comment := sheet at:#comment ifAbsent:''. |
|
2666 |
infoLabel label:comment withCRs asStringCollection |
|
2667 |
]. |
|
219 | 2668 |
|
2669 |
list := SelectionInList with:listOfStyles. |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
2670 |
list onChangeSend:#value to:infoForwarder. |
219 | 2671 |
|
2672 |
box := Dialog new. |
|
2673 |
box label:(resources string:'Style selection'). |
|
2674 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
2675 |
(box addTextLabel:(resources string:'STYLE_MSG') withCRs) adjust:#left. |
219 | 2676 |
listView := SelectionInListView on:list. |
2677 |
listView doubleClickAction:[:sel | box accept value:true. box hide]. |
|
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
2678 |
scrView := box addComponent:(ScrollableView forView:listView) tabable:true. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
2679 |
|
219 | 2680 |
box addVerticalSpace. |
2681 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
2682 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
219 | 2683 |
|
2684 |
box addAbortButton; addOkButton. |
|
568 | 2685 |
list selection:(View defaultStyle). |
219 | 2686 |
|
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
2687 |
box stickAtBottomWithVariableHeight:scrView. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
2688 |
box stickAtBottomWithFixHeight:infoLabel. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
2689 |
box open. |
219 | 2690 |
|
2691 |
box accepted ifTrue:[ |
|
549 | 2692 |
newStyle := list selection. |
2693 |
newStyle notNil ifTrue:[ |
|
2694 |
self withWaitCursorDo:[ |
|
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
2695 |
transcript showCR:'change style to ' , newStyle , ' ...'. |
549 | 2696 |
View defaultStyle:newStyle asSymbol. |
2697 |
]. |
|
2698 |
self reopenLauncher. |
|
2699 |
] |
|
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
2700 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
2701 |
box destroy |
549 | 2702 |
|
921 | 2703 |
"Modified: 8.1.1997 / 14:54:08 / cg" |
219 | 2704 |
! ! |
2705 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
2706 |
!Launcher methodsFor:'actions - tools'! |
219 | 2707 |
|
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2708 |
compressingGarbageCollect |
921 | 2709 |
"perform a compressing garbageCollect" |
2710 |
||
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2711 |
ObjectMemory verboseGarbageCollect |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2712 |
|
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2713 |
"Created: 12.5.1996 / 15:30:15 / cg" |
921 | 2714 |
"Modified: 8.1.1997 / 14:54:21 / cg" |
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2715 |
! |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2716 |
|
815 | 2717 |
findAndDestroyWindow |
921 | 2718 |
"find a window (by name) and destroy it" |
2719 |
||
815 | 2720 |
|v| |
2721 |
||
2722 |
v := self findWindow. |
|
2723 |
v notNil ifTrue:[ |
|
2724 |
v destroy. |
|
2725 |
]. |
|
2726 |
||
2727 |
"Created: 28.10.1996 / 14:39:23 / cg" |
|
921 | 2728 |
"Modified: 8.1.1997 / 14:54:52 / cg" |
815 | 2729 |
! |
2730 |
||
765
9dafe5b26f77
moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents:
760
diff
changeset
|
2731 |
findAndRaiseWindow |
921 | 2732 |
"find a window (by name) and raise it" |
2733 |
||
815 | 2734 |
|v| |
2735 |
||
2736 |
v := self findWindow. |
|
2737 |
v notNil ifTrue:[ |
|
2738 |
v raiseDeiconified. |
|
2739 |
]. |
|
2740 |
||
921 | 2741 |
"Modified: 8.1.1997 / 14:54:59 / cg" |
765
9dafe5b26f77
moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents:
760
diff
changeset
|
2742 |
! |
9dafe5b26f77
moved view operations onto separate submenu;
Claus Gittinger <cg@exept.de>
parents:
760
diff
changeset
|
2743 |
|
219 | 2744 |
fullScreenHardcopy |
2745 |
"after a second (to allow redraw of views under menu ...), |
|
2746 |
save the contents of the whole screen." |
|
2747 |
||
738 | 2748 |
Processor |
2749 |
addTimedBlock:[ |
|
2750 |
self |
|
2751 |
saveScreenImage:(Image fromScreen) |
|
2752 |
defaultName:'screen' |
|
2753 |
] |
|
2754 |
afterSeconds:1 |
|
2755 |
||
2756 |
"Modified: 23.9.1996 / 14:36:14 / cg" |
|
219 | 2757 |
! |
99 | 2758 |
|
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2759 |
garbageCollect |
921 | 2760 |
"perform a non-compressing garbageCollect" |
2761 |
||
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2762 |
ObjectMemory reclaimSymbols |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2763 |
|
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2764 |
"Created: 12.5.1996 / 15:28:03 / cg" |
921 | 2765 |
"Modified: 8.1.1997 / 14:54:29 / cg" |
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2766 |
! |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2767 |
|
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2768 |
globalGarbageCollect |
921 | 2769 |
"perform a non-compressing garbageCollect" |
2770 |
||
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2771 |
ObjectMemory reclaimSymbols |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2772 |
|
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2773 |
"Created: 12.5.1996 / 15:28:13 / cg" |
921 | 2774 |
"Modified: 8.1.1997 / 14:54:36 / cg" |
537
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2775 |
! |
9af64613ec8c
added garbageCollect to tools menu
Claus Gittinger <cg@exept.de>
parents:
536
diff
changeset
|
2776 |
|
219 | 2777 |
removeAllBreakAndTracePoints |
921 | 2778 |
"remove all break- and trace points" |
2779 |
||
219 | 2780 |
MessageTracer cleanup |
921 | 2781 |
|
2782 |
"Modified: 8.1.1997 / 14:55:27 / cg" |
|
219 | 2783 |
! |
2784 |
||
2785 |
screenHardcopy |
|
2786 |
"after a second (to allow redraw of views under menu ...), |
|
2787 |
let user specify a rectangular area on the screen |
|
2788 |
and save its contents." |
|
2789 |
||
2790 |
|area| |
|
2791 |
||
738 | 2792 |
Processor |
2793 |
addTimedBlock:[ |
|
2794 |
area := Rectangle fromUser. |
|
2795 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
|
2796 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
|
2797 |
] |
|
2798 |
] |
|
2799 |
afterSeconds:1 |
|
2800 |
||
2801 |
"Modified: 23.9.1996 / 14:36:28 / cg" |
|
219 | 2802 |
! |
2803 |
||
2804 |
startEventMonitor |
|
921 | 2805 |
"open an eventMonitor view" |
2806 |
||
219 | 2807 |
EventMonitor open |
921 | 2808 |
|
2809 |
"Modified: 8.1.1997 / 14:55:40 / cg" |
|
219 | 2810 |
! |
2811 |
||
2812 |
startFullWindowTreeView |
|
921 | 2813 |
"open a windowTree view (on all views)" |
2814 |
||
219 | 2815 |
WindowTreeView open |
921 | 2816 |
|
2817 |
"Modified: 8.1.1997 / 14:56:04 / cg" |
|
219 | 2818 |
! |
2819 |
||
2820 |
startMemoryMonitor |
|
921 | 2821 |
"open a memoryMonitor view" |
2822 |
||
219 | 2823 |
MemoryMonitor open |
921 | 2824 |
|
2825 |
"Modified: 8.1.1997 / 14:56:14 / cg" |
|
219 | 2826 |
! |
2827 |
||
2828 |
startMemoryUsageView |
|
921 | 2829 |
"open a memoryUsage view" |
2830 |
||
219 | 2831 |
MemoryUsageView open |
921 | 2832 |
|
2833 |
"Modified: 8.1.1997 / 14:56:21 / cg" |
|
219 | 2834 |
! |
2835 |
||
2836 |
startProcessMonitor |
|
921 | 2837 |
"open a processMonitor view" |
2838 |
||
219 | 2839 |
ProcessMonitor open |
921 | 2840 |
|
2841 |
"Modified: 8.1.1997 / 14:56:27 / cg" |
|
219 | 2842 |
! |
2843 |
||
434 | 2844 |
startStopEventTrace |
921 | 2845 |
"start/stop event tracing for a particular view" |
2846 |
||
503 | 2847 |
|v wg| |
434 | 2848 |
|
2849 |
v := Screen current viewFromUser. |
|
2850 |
v notNil ifTrue:[ |
|
2851 |
v := v topView. |
|
503 | 2852 |
wg := v windowGroup. |
2853 |
wg notNil ifTrue:[ |
|
2854 |
"/ |
|
2855 |
"/ toggle eventTrace in its windowGroup |
|
2856 |
"/ |
|
2857 |
wg traceEvents:(wg preEventHook isNil) |
|
434 | 2858 |
] |
2859 |
] |
|
2860 |
||
2861 |
"Created: 7.3.1996 / 14:44:22 / cg" |
|
921 | 2862 |
"Modified: 8.1.1997 / 14:56:44 / cg" |
434 | 2863 |
! |
2864 |
||
219 | 2865 |
startWindowTreeView |
921 | 2866 |
"open a windowTree view (on a topView)" |
2867 |
||
219 | 2868 |
|v| |
2869 |
||
2870 |
v := self pickAView. |
|
2871 |
v notNil ifTrue:[ |
|
864 | 2872 |
WindowTreeView openOn:v topView |
219 | 2873 |
] |
921 | 2874 |
|
2875 |
"Modified: 8.1.1997 / 14:55:59 / cg" |
|
219 | 2876 |
! |
2877 |
||
2878 |
viewDestroy |
|
2879 |
"let user pick a view and destroy it. |
|
2880 |
Even allow destroying non-smalltalk views |
|
2881 |
(also for views which I forgot due to some error)" |
|
2882 |
||
2883 |
|device p v id| |
|
2884 |
||
2885 |
(Delay forSeconds:1) wait. |
|
2886 |
||
2887 |
device := Screen current. |
|
2888 |
p := device pointFromUser. |
|
2889 |
id := device viewIdFromPoint:p. |
|
2890 |
v := device viewFromId:id. |
|
2891 |
v notNil ifTrue:[ |
|
864 | 2892 |
v topView destroy. |
2893 |
^ self |
|
219 | 2894 |
]. |
2895 |
id = device rootView id ifTrue:[ |
|
864 | 2896 |
^ self |
219 | 2897 |
]. |
298 | 2898 |
(Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs) |
219 | 2899 |
ifTrue:[ |
864 | 2900 |
device destroyView:nil withId:id |
219 | 2901 |
]. |
2902 |
||
2903 |
"Modified: 18.9.1995 / 23:13:32 / claus" |
|
298 | 2904 |
"Modified: 14.12.1995 / 22:02:26 / cg" |
219 | 2905 |
! |
2906 |
||
2907 |
viewHardcopy |
|
2908 |
"after a second (to allow redraw of views under menu ...), |
|
2909 |
let user specify a view and save its contents." |
|
2910 |
||
738 | 2911 |
Processor |
2912 |
addTimedBlock:[ |
|
2913 |
|v| |
|
2914 |
||
2915 |
v := Screen current viewFromUser. |
|
2916 |
v notNil ifTrue:[ |
|
2917 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
|
2918 |
] |
|
2919 |
] |
|
2920 |
afterSeconds:1 |
|
2921 |
||
2922 |
"Modified: 23.9.1996 / 14:36:48 / cg" |
|
219 | 2923 |
! |
2924 |
||
2925 |
viewInspect |
|
2926 |
"let user pick a view and inspect it. Only smalltalk views are allowed" |
|
2927 |
||
2928 |
|v| |
|
2929 |
||
2930 |
v := self pickAView. |
|
2931 |
v notNil ifTrue:[ |
|
226 | 2932 |
"/ v topView inspect |
864 | 2933 |
v inspect |
219 | 2934 |
] |
2935 |
||
2936 |
! ! |
|
2937 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
2938 |
!Launcher methodsFor:'change & update'! |
219 | 2939 |
|
2940 |
update:something with:aParameter from:changedObject |
|
921 | 2941 |
"care for project changes & update my infoView" |
2942 |
||
219 | 2943 |
((something == #currentProject) |
2944 |
or:[changedObject == Project]) ifTrue:[ |
|
864 | 2945 |
self changed:#info. |
2946 |
^ self |
|
219 | 2947 |
]. |
921 | 2948 |
|
2949 |
"Modified: 8.1.1997 / 14:57:07 / cg" |
|
219 | 2950 |
! ! |
2951 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
2952 |
!Launcher methodsFor:'dynamic menus'! |
658 | 2953 |
|
2954 |
addMenu:name withItems:items actions:actions |
|
2955 |
"dynamically add a new (user-)menu to the menu panel. |
|
2956 |
This allows applications to install items for themself |
|
2957 |
dynamically in the launcher." |
|
2958 |
||
2959 |
|subMenu| |
|
2960 |
||
2961 |
myMenu add:name selector:(name asSymbol) before:#help. |
|
2962 |
subMenu := MenuView forMenu:myMenu. |
|
2963 |
subMenu labels:items. |
|
2964 |
subMenu actions:actions. |
|
2965 |
myMenu at:name putMenu:subMenu |
|
2966 |
||
2967 |
" |
|
2968 |
|launcher actionBlocks| |
|
2969 |
||
2970 |
actionBlocks := Array new:3. |
|
2971 |
actionBlocks at:1 put:[Transcript showCR:'foo']. |
|
2972 |
actionBlocks at:2 put:[Transcript showCR:'bar']. |
|
2973 |
||
2974 |
launcher := Transcript topView application. |
|
2975 |
launcher |
|
2976 |
addMenu:'misc' |
|
2977 |
withItems:#('foo' 'bar') |
|
2978 |
actions:actionBlocks |
|
2979 |
" |
|
2980 |
||
2981 |
" |
|
2982 |
|launcher actionBlocks| |
|
2983 |
||
2984 |
actionBlocks := Array new:3. |
|
2985 |
actionBlocks at:1 put:[RDoItServer startServer]. |
|
2986 |
actionBlocks at:2 put:[RDoItServer killServer]. |
|
2987 |
||
2988 |
launcher := Transcript topView application. |
|
2989 |
launcher |
|
2990 |
addMenu:'misc' |
|
2991 |
withItems:#('start rdoit server' 'stop rdoit server') |
|
2992 |
actions:actionBlocks |
|
2993 |
" |
|
2994 |
||
2995 |
"Modified: 5.7.1996 / 11:45:19 / cg" |
|
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
2996 |
! |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
2997 |
|
668 | 2998 |
menuAt:nameSymbol |
2999 |
"return a menu by name" |
|
3000 |
||
3001 |
^ myMenu subMenuAt:nameSymbol |
|
3002 |
||
3003 |
" |
|
3004 |
|launcher demoMenu| |
|
3005 |
||
3006 |
launcher := Transcript topView application. |
|
3007 |
demoMenu := launcher menuAt:#demos. |
|
3008 |
demoMenu |
|
3009 |
addLabels:#('-' 'fooBar') |
|
3010 |
selectors:#(nil fooBar). |
|
3011 |
demoMenu actionAt:#fooBar put:[Transcript showCR:'fooBar'] |
|
3012 |
" |
|
3013 |
||
3014 |
"Created: 11.7.1996 / 15:35:13 / cg" |
|
3015 |
"Modified: 11.7.1996 / 15:42:25 / cg" |
|
3016 |
! |
|
3017 |
||
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3018 |
removeMenu:name |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3019 |
"dynamically remove a (user-)menu from the menu panel. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3020 |
This allows applications to de-install items for themself |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3021 |
dynamically in the launcher." |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3022 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3023 |
myMenu remove:name |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3024 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3025 |
" |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3026 |
|launcher actionBlocks| |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3027 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3028 |
actionBlocks := Array new:3. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3029 |
actionBlocks at:1 put:[Transcript showCR:'foo']. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3030 |
actionBlocks at:2 put:[Transcript showCR:'bar']. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3031 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3032 |
launcher := Transcript topView application. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3033 |
launcher |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3034 |
addMenu:'misc' |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3035 |
withItems:#('foo' 'bar') |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3036 |
actions:actionBlocks. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3037 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3038 |
Delay waitForSeconds:10. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3039 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3040 |
launcher removeMenu:'misc' |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3041 |
" |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3042 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3043 |
"Created: 5.7.1996 / 11:44:54 / cg" |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3044 |
"Modified: 5.7.1996 / 11:54:36 / cg" |
658 | 3045 |
! ! |
3046 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3047 |
!Launcher methodsFor:'help'! |
219 | 3048 |
|
3049 |
helpTextFor:aComponent |
|
921 | 3050 |
"activeHelp interface: return some help text for a component" |
3051 |
||
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3052 |
|sel s buttons| |
219 | 3053 |
|
3054 |
aComponent == transcript ifTrue:[ |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3055 |
s := 'TRANSCRIPT_HELP' |
219 | 3056 |
]. |
3057 |
||
3058 |
aComponent == infoView ifTrue:[ |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3059 |
s := 'INFOVIEW_HELP' |
219 | 3060 |
]. |
3061 |
||
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3062 |
buttons := buttonPanel subViews. |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3063 |
(buttons notNil and:[buttons includes:aComponent]) ifTrue:[ |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3064 |
"kludge: look for its change selector" |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3065 |
sel := aComponent changeMessage. |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3066 |
sel == #startSystemBrowser ifTrue:[ |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3067 |
s := 'SBROWSER_BUTTON_HELP' |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3068 |
]. |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3069 |
sel == #startFileBrowser ifTrue:[ |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3070 |
s := 'FBROWSER_BUTTON_HELP' |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3071 |
]. |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3072 |
sel == #startChangesBrowser ifTrue:[ |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3073 |
s := 'CBROWSER_BUTTON_HELP' |
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3074 |
]. |
219 | 3075 |
]. |
3076 |
s notNil ifTrue:[ |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3077 |
^ resources string:s |
219 | 3078 |
]. |
3079 |
^ nil |
|
399
c75f23ad674c
handle helptext-query while destroying; changed check-mark position in active help
Claus Gittinger <cg@exept.de>
parents:
398
diff
changeset
|
3080 |
|
921 | 3081 |
"Modified: 8.1.1997 / 14:57:34 / cg" |
219 | 3082 |
! ! |
3083 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3084 |
!Launcher methodsFor:'infoview update'! |
219 | 3085 |
|
3086 |
info |
|
921 | 3087 |
"update the infoView from the current project" |
3088 |
||
893 | 3089 |
|project projectName projectDir packageName defNameSpace msg args| |
219 | 3090 |
|
3091 |
(Project isNil or:[(project := Project current) isNil]) ifTrue:[ |
|
864 | 3092 |
projectName := '* none *'. |
3093 |
projectDir := '.'. |
|
3094 |
packageName := '* none *'. |
|
219 | 3095 |
] ifFalse:[ |
864 | 3096 |
projectName := project name. |
3097 |
projectDir := project directory. |
|
3098 |
packageName := project packageName. |
|
891 | 3099 |
defNameSpace := project defaultNameSpace. |
3100 |
]. |
|
3101 |
defNameSpace isNil ifTrue:[ |
|
3102 |
defNameSpace := Smalltalk. |
|
219 | 3103 |
]. |
3104 |
||
893 | 3105 |
defNameSpace == Smalltalk ifTrue:[ |
3106 |
msg := 'project: ''%1'' fileOut to: ''%3'' package: ''%2'''. |
|
3107 |
args := Array |
|
3108 |
with:projectName |
|
3109 |
with:packageName |
|
3110 |
with:(projectDir contractTo:30). |
|
3111 |
] ifFalse:[ |
|
3112 |
msg := 'project: ''%1'' fileOut to: ''%3'' package: ''%2'' nameSpace: %4'. |
|
3113 |
args := Array |
|
864 | 3114 |
with:projectName |
3115 |
with:packageName |
|
891 | 3116 |
with:(projectDir contractTo:30) |
893 | 3117 |
with:defNameSpace name. |
3118 |
]. |
|
3119 |
||
3120 |
^ resources string:msg withArgs:args |
|
3121 |
||
921 | 3122 |
"Modified: 8.1.1997 / 14:57:47 / cg" |
319
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
3123 |
! |
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
3124 |
|
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
3125 |
showActivity:someMessage |
500 | 3126 |
"some activityNotification to be forwarded to the user; |
3127 |
show it in the transcript here." |
|
3128 |
||
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3129 |
transcript showCR:someMessage; endEntry |
319
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
3130 |
|
a39350103cb2
forward activity notifications to Transcript
Claus Gittinger <cg@exept.de>
parents:
304
diff
changeset
|
3131 |
"Created: 23.12.1995 / 12:38:29 / cg" |
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3132 |
"Modified: 5.7.1996 / 13:13:15 / cg" |
99 | 3133 |
! ! |
3134 |
||
921 | 3135 |
!Launcher methodsFor:'initialize - menus'! |
3136 |
||
3137 |
disableDangerousMenuItemsInRemoteLauncher |
|
3138 |
"if I am a remote launcher (multidisplay operation), |
|
3139 |
disable menus which are dangerous or affect common state. |
|
3140 |
These operations have to |
|
3141 |
be performed on the main screen." |
|
3142 |
||
3143 |
isMainLauncher ifFalse:[ |
|
3144 |
(myMenu menuAt:#file) disableAll:#(snapshot snapshotAndExit objectModuleDialog exit). |
|
3145 |
(myMenu menuAt:#projects) disableAll. |
|
3146 |
(myMenu menuAt:#settings) disableAll. |
|
3147 |
]. |
|
3148 |
||
3149 |
"Created: 5.7.1996 / 17:00:50 / cg" |
|
3150 |
"Modified: 5.7.1996 / 17:01:30 / cg" |
|
3151 |
! |
|
3152 |
||
3153 |
setupAboutMenu |
|
3154 |
"setup the about- pulldown menu" |
|
3155 |
||
3156 |
myMenu at:#about |
|
3157 |
putLabels:(resources array:#( |
|
3158 |
'about Smalltalk/X ...' |
|
3159 |
'-' |
|
3160 |
'licence conditions' |
|
3161 |
)) |
|
3162 |
selectors:#( |
|
3163 |
#about |
|
3164 |
nil |
|
3165 |
#showLicenceConditions |
|
3166 |
) |
|
3167 |
receiver:self. |
|
3168 |
||
3169 |
"Created: 8.1.1997 / 14:03:20 / cg" |
|
3170 |
"Modified: 8.1.1997 / 14:04:19 / cg" |
|
3171 |
! |
|
3172 |
||
3173 |
setupClassesMenu |
|
3174 |
"setup the classes- pulldown menu" |
|
3175 |
||
3176 |
myMenu at:#classes |
|
3177 |
putLabels:(resources array:#( |
|
3178 |
'system browser' |
|
3179 |
'class browser ...' |
|
3180 |
'full class browser ...' |
|
3181 |
'class hierarchy browser ...' |
|
3182 |
'class tree' |
|
3183 |
'-' |
|
3184 |
'implementors ...' |
|
3185 |
'senders ...' |
|
3186 |
'resource ...' |
|
3187 |
'-' |
|
3188 |
'change browser' |
|
3189 |
)) |
|
3190 |
selectors:#( |
|
3191 |
#startSystemBrowser |
|
3192 |
#startClassBrowser |
|
3193 |
#startFullClassBrowser |
|
3194 |
#startClassHierarchyBrowser |
|
3195 |
#startClassTreeView |
|
3196 |
nil |
|
3197 |
#browseImplementors |
|
3198 |
#browseSenders |
|
3199 |
#browseResources |
|
3200 |
nil |
|
3201 |
#startChangesBrowser |
|
3202 |
) |
|
3203 |
receiver:self. |
|
3204 |
||
3205 |
JavaBrowser notNil ifTrue:[ |
|
3206 |
(myMenu subMenuAt:#classes) |
|
3207 |
addLabels:(resources array:#('-' 'java browser')) |
|
3208 |
selectors:#(nil startJavaBrowser) |
|
3209 |
after:#startClassTreeView |
|
3210 |
]. |
|
3211 |
||
3212 |
"Created: 8.1.1997 / 14:05:44 / cg" |
|
3213 |
! |
|
3214 |
||
3215 |
setupDemoMenu |
|
3216 |
"setup the demo- pulldown menu" |
|
3217 |
||
3218 |
|m| |
|
3219 |
||
3220 |
myMenu at:#demos |
|
3221 |
putLabels:(resources array:#( |
|
3222 |
'goodies' |
|
3223 |
'games' |
|
3224 |
'geometric designs' |
|
3225 |
'simple animations' |
|
3226 |
'3D graphics' |
|
3227 |
'graphic editors' |
|
3228 |
)) |
|
3229 |
selectors:#( |
|
3230 |
goodies |
|
3231 |
games |
|
3232 |
geometricDesigns |
|
3233 |
simpleAnimations |
|
3234 |
#'3Dgraphics' |
|
3235 |
#graphicEditors |
|
3236 |
) |
|
3237 |
receiver:self. |
|
3238 |
||
3239 |
" |
|
3240 |
only to show two different ways of defining a popUpMenu, |
|
3241 |
we use labels:selectors:receiver: here: |
|
3242 |
" |
|
3243 |
m := myMenu menuAt:#demos. |
|
3244 |
m subMenuAt:#games |
|
3245 |
put:(PopUpMenu |
|
3246 |
labels:(resources array:#( |
|
3247 |
'Tetris' |
|
3248 |
'Tic Tac Toe' |
|
3249 |
'Tic Tac Toe (2 players)' |
|
3250 |
)) |
|
3251 |
selectors:#( |
|
3252 |
startTetris |
|
3253 |
startTicTacToe |
|
3254 |
startTicTacToe2 |
|
3255 |
) |
|
3256 |
receiver:self). |
|
3257 |
||
3258 |
" |
|
3259 |
and labels:selector:args:receiver: here: |
|
3260 |
" |
|
3261 |
m subMenuAt:#geometricDesigns |
|
3262 |
put:(PopUpMenu |
|
3263 |
labels:(resources array:#( |
|
3264 |
'Pen demo' |
|
3265 |
'Commander demo' |
|
3266 |
'-' |
|
3267 |
'Fractal plants demo' |
|
3268 |
'Fractal patterns demo' |
|
3269 |
'more fractal patterns demo' |
|
3270 |
)) |
|
3271 |
selector:#openDemo: |
|
3272 |
args:#( |
|
3273 |
PenDemo |
|
3274 |
CommanderDemo |
|
3275 |
nil |
|
3276 |
FractalPlantsDemo |
|
3277 |
FractalPatternsDemo |
|
3278 |
ArmchairUniverseDemo |
|
3279 |
) |
|
3280 |
receiver:self). |
|
3281 |
||
3282 |
m subMenuAt:#simpleAnimations |
|
3283 |
put:(PopUpMenu |
|
3284 |
labels:(resources array:#( |
|
3285 |
'Animation' |
|
3286 |
'Globe demo' |
|
3287 |
)) |
|
3288 |
selector:#openDemo: |
|
3289 |
args:#( |
|
3290 |
Animation |
|
3291 |
GlobeDemo |
|
3292 |
) |
|
3293 |
receiver:self). |
|
3294 |
||
3295 |
m subMenuAt:#'3Dgraphics' |
|
3296 |
put:(PopUpMenu |
|
3297 |
labels:(resources |
|
3298 |
array:#( |
|
3299 |
'plane' |
|
3300 |
'tetra' |
|
3301 |
'cube (wireframe)' |
|
3302 |
'cube (solid)' |
|
3303 |
'sphere (wireframe)' |
|
3304 |
'doughnut (wireframe)' |
|
3305 |
'planet' |
|
3306 |
'teapot' |
|
3307 |
'logo' |
|
3308 |
'rubics cube' |
|
3309 |
'x/y graph' |
|
3310 |
'-' |
|
3311 |
'cube (light)' |
|
3312 |
'cube (light & texture)' |
|
3313 |
'sphere (light)' |
|
3314 |
'colored octahedron' |
|
3315 |
)) |
|
3316 |
selector:#openDemo: |
|
3317 |
args:#( |
|
3318 |
GLPlaneDemoView2 |
|
3319 |
GLTetraDemoView |
|
3320 |
GLWireCubeDemoView |
|
3321 |
GLCubeDemoView |
|
3322 |
GLWireSphereDemoView |
|
3323 |
GLDoughnutDemoView |
|
3324 |
GLPlanetDemoView |
|
3325 |
GLTeapotDemo |
|
3326 |
Logo3DView1 |
|
3327 |
RubicsCubeView |
|
3328 |
GLXYGraph |
|
3329 |
nil |
|
3330 |
GLCubeDemoView2 |
|
3331 |
GLBrickCubeDemoView |
|
3332 |
GLSphereDemoView2 |
|
3333 |
GLOctaHedronDemoView |
|
3334 |
) |
|
3335 |
receiver:self). |
|
3336 |
||
3337 |
m subMenuAt:#graphicEditors |
|
3338 |
put:(PopUpMenu |
|
3339 |
labels:(resources array:#( |
|
3340 |
'DrawTool' |
|
3341 |
'LogicTool' |
|
3342 |
'Paint Demo' |
|
3343 |
)) |
|
3344 |
selector:#openDemo: |
|
3345 |
args:#( |
|
3346 |
DrawTool |
|
3347 |
LogicTool |
|
3348 |
ColorDrawDemo3 |
|
3349 |
) |
|
3350 |
receiver:self). |
|
3351 |
||
3352 |
m subMenuAt:#goodies |
|
3353 |
put:(PopUpMenu |
|
3354 |
labels:(resources array:#( |
|
3355 |
'clock' |
|
3356 |
'calendar' |
|
3357 |
'calculator' |
|
3358 |
'-' |
|
3359 |
'mail tool' |
|
3360 |
'news tool' |
|
3361 |
)) |
|
3362 |
selector:#openDemo: |
|
3363 |
args:#( |
|
3364 |
Clock |
|
3365 |
Calendar |
|
3366 |
CalculatorView |
|
3367 |
nil |
|
3368 |
MailView |
|
3369 |
NewsView |
|
3370 |
) |
|
3371 |
receiver:self). |
|
3372 |
||
3373 |
"Modified: 8.1.1997 / 14:04:22 / cg" |
|
3374 |
! |
|
3375 |
||
3376 |
setupFileMenu |
|
3377 |
"setup the file- pulldown menu" |
|
3378 |
||
3379 |
|l s| |
|
3380 |
||
3381 |
l := #( |
|
3382 |
'file browser' |
|
3383 |
'-' |
|
3384 |
'modules ...' |
|
3385 |
'-' |
|
3386 |
'snapshot ...' |
|
3387 |
'snapshot & exit ...' |
|
3388 |
'exit smalltalk ...' |
|
3389 |
). |
|
3390 |
s := #( |
|
3391 |
#startFileBrowser |
|
3392 |
nil |
|
3393 |
#objectModuleDialog |
|
3394 |
nil |
|
3395 |
#snapshot |
|
3396 |
#snapshotAndExit |
|
3397 |
#exit |
|
3398 |
). |
|
3399 |
||
3400 |
myMenu at:#file |
|
3401 |
putLabels:(resources array:l) |
|
3402 |
selectors:s |
|
3403 |
receiver:self. |
|
3404 |
||
3405 |
"Created: 8.1.1997 / 14:04:15 / cg" |
|
3406 |
! |
|
3407 |
||
3408 |
setupHelpMenu |
|
3409 |
"setup the help- pulldown menu" |
|
3410 |
||
3411 |
|l s| |
|
3412 |
||
3413 |
ActiveHelp notNil ifTrue:[ |
|
3414 |
l := #( |
|
3415 |
'what''s new' |
|
3416 |
'index' |
|
3417 |
'-' |
|
3418 |
'ST/X online documentation' |
|
3419 |
'class documentation' |
|
3420 |
'-' |
|
3421 |
'print documentation ...' |
|
3422 |
'-' |
|
3423 |
'active help \c' |
|
3424 |
). |
|
3425 |
s := #( |
|
3426 |
#startWhatsNewDocumentation |
|
3427 |
#startDocumentationIndex |
|
3428 |
nil |
|
3429 |
#startDocumentationTool |
|
3430 |
#startClassDocumentation |
|
3431 |
nil |
|
3432 |
#showBookPrintDocument |
|
3433 |
nil |
|
3434 |
#toggleActiveHelp: |
|
3435 |
) |
|
3436 |
] ifFalse:[ |
|
3437 |
l := #( |
|
3438 |
'what''s new' |
|
3439 |
'index' |
|
3440 |
'-' |
|
3441 |
'ST/X online documentation' |
|
3442 |
'class documentation' |
|
3443 |
'-' |
|
3444 |
'print documentation ...' |
|
3445 |
). |
|
3446 |
s := #( |
|
3447 |
#startWhatsNewDocumentation |
|
3448 |
#startDocumentationIndex |
|
3449 |
nil |
|
3450 |
#startDocumentationTool |
|
3451 |
#startClassDocumentation |
|
3452 |
nil |
|
3453 |
#showBookPrintDocument |
|
3454 |
) |
|
3455 |
]. |
|
3456 |
||
3457 |
myMenu at:#help |
|
3458 |
putLabels:(resources array:l) |
|
3459 |
selectors:s |
|
3460 |
receiver:self. |
|
3461 |
||
3462 |
(ActiveHelp notNil |
|
3463 |
and:[ActiveHelp isActive]) ifTrue:[ |
|
3464 |
(myMenu menuAt:#help) checkToggleAt:#toggleActiveHelp: put:true |
|
3465 |
]. |
|
3466 |
||
3467 |
"Created: 8.1.1997 / 14:08:09 / cg" |
|
3468 |
! |
|
3469 |
||
3470 |
setupMainMenu |
|
3471 |
"setup the pulldown menus main items. |
|
3472 |
Extracted into a separate method, to allow subclasses to |
|
3473 |
add their own entries" |
|
3474 |
||
3475 |
|l s icon| |
|
3476 |
||
3477 |
myMenu labels:(resources array:#( |
|
3478 |
about |
|
3479 |
file |
|
3480 |
classes |
|
3481 |
tools |
|
3482 |
projects |
|
3483 |
settings |
|
3484 |
demos |
|
3485 |
help)). |
|
3486 |
" |
|
3487 |
if there is a bitmap, change 'about' to the ST/X icon |
|
3488 |
" |
|
3489 |
icon := self class smallAboutIcon. |
|
3490 |
icon notNil ifTrue:[ |
|
3491 |
myMenu labels at:1 put:icon. |
|
3492 |
myMenu height:(myMenu height max:(icon height + (View viewSpacing * 2))) |
|
3493 |
]. |
|
3494 |
||
3495 |
myMenu selectors:#( |
|
3496 |
#about |
|
3497 |
#file |
|
3498 |
#classes |
|
3499 |
#tools |
|
3500 |
#projects |
|
3501 |
#settings |
|
3502 |
#demos |
|
3503 |
#help). |
|
3504 |
||
3505 |
"Created: 8.1.1997 / 13:58:50 / cg" |
|
3506 |
! |
|
3507 |
||
3508 |
setupMenu |
|
3509 |
"setup the pulldown menu" |
|
3510 |
||
3511 |
|mainItems| |
|
3512 |
||
3513 |
self setupMainMenu. |
|
3514 |
||
3515 |
mainItems := myMenu selectors. |
|
3516 |
||
3517 |
(mainItems includes:#about) ifTrue:[ |
|
3518 |
"/ if not redefined without an about-menu ... |
|
3519 |
self setupAboutMenu |
|
3520 |
]. |
|
3521 |
(mainItems includes:#file) ifTrue:[ |
|
3522 |
"/ if not redefined without a file-menu ... |
|
3523 |
self setupFileMenu |
|
3524 |
]. |
|
3525 |
(mainItems includes:#classes) ifTrue:[ |
|
3526 |
"/ if not redefined without a classes-menu ... |
|
3527 |
self setupClassesMenu |
|
3528 |
]. |
|
3529 |
(mainItems includes:#projects) ifTrue:[ |
|
3530 |
"/ if not redefined without a projects-menu ... |
|
3531 |
self setupProjectsMenu |
|
3532 |
]. |
|
3533 |
(mainItems includes:#settings) ifTrue:[ |
|
3534 |
"/ if not redefined without a settings-menu ... |
|
3535 |
self setupSettingsMenu |
|
3536 |
]. |
|
3537 |
(mainItems includes:#tools) ifTrue:[ |
|
3538 |
"/ if not redefined without a tools-menu ... |
|
3539 |
self setupToolsMenu |
|
3540 |
]. |
|
3541 |
(mainItems includes:#demos) ifTrue:[ |
|
3542 |
"/ if not redefined without a demos-menu ... |
|
3543 |
self setupDemoMenu |
|
3544 |
]. |
|
3545 |
(mainItems includes:#help) ifTrue:[ |
|
3546 |
"/ if not redefined without a help-menu ... |
|
3547 |
self setupHelpMenu |
|
3548 |
]. |
|
3549 |
||
3550 |
self disableDangerousMenuItemsInRemoteLauncher |
|
3551 |
||
3552 |
"Modified: 8.1.1997 / 14:09:47 / cg" |
|
3553 |
! |
|
3554 |
||
3555 |
setupProjectsMenu |
|
3556 |
"setup the projects- pulldown menu" |
|
3557 |
||
3558 |
myMenu at:#projects |
|
3559 |
putLabels:(resources array:#( |
|
3560 |
'new project' |
|
3561 |
'-' |
|
3562 |
'select project ...' |
|
3563 |
)) |
|
3564 |
selectors:#( |
|
3565 |
#newProject |
|
3566 |
nil |
|
3567 |
#selectProject |
|
3568 |
) |
|
3569 |
receiver:self. |
|
3570 |
||
3571 |
"Created: 8.1.1997 / 14:06:18 / cg" |
|
3572 |
! |
|
3573 |
||
3574 |
setupSettingsMenu |
|
3575 |
"setup the settings- pulldown menu" |
|
3576 |
||
3577 |
myMenu at:#settings |
|
3578 |
putLabels:(resources array:#( |
|
3579 |
'language ...' |
|
3580 |
'show keyboard mappings ...' |
|
3581 |
'view style ...' |
|
3582 |
'fonts ...' |
|
3583 |
'printer ...' |
|
3584 |
'messages ...' |
|
3585 |
'compilation ...' |
|
3586 |
'object memory ...' |
|
3587 |
'screen ...' |
|
3588 |
'misc ...' |
|
3589 |
'=' |
|
3590 |
'save settings ...' |
|
3591 |
'restore settings ...' |
|
3592 |
)) |
|
3593 |
selectors:#( |
|
3594 |
#languageSetting |
|
3595 |
#keyboardSetting |
|
3596 |
#viewStyleSetting |
|
3597 |
#fontSettings |
|
3598 |
#printerSettings |
|
3599 |
#messageSettings |
|
3600 |
#compilerSettings |
|
3601 |
#memorySettings |
|
3602 |
#displaySettings |
|
3603 |
#miscSettings |
|
3604 |
nil |
|
3605 |
#saveSettings |
|
3606 |
#restoreSettings |
|
3607 |
) |
|
3608 |
receiver:self. |
|
3609 |
||
3610 |
"Created: 8.1.1997 / 14:07:00 / cg" |
|
3611 |
! |
|
3612 |
||
3613 |
setupToolsMenu |
|
3614 |
"setup the tools- pulldown menu" |
|
3615 |
||
3616 |
|m| |
|
3617 |
||
3618 |
myMenu at:#tools |
|
3619 |
putLabels:(resources array:#( |
|
3620 |
'workspace' |
|
3621 |
'-' |
|
3622 |
'monitors' |
|
3623 |
'-' |
|
3624 |
'views' |
|
3625 |
'-' |
|
3626 |
'hardcopy' |
|
3627 |
'-' |
|
3628 |
'misc' |
|
3629 |
)) |
|
3630 |
selectors:#( |
|
3631 |
#startWorkspace |
|
3632 |
nil |
|
3633 |
#monitors |
|
3634 |
nil |
|
3635 |
#views |
|
3636 |
nil |
|
3637 |
#hardcopy |
|
3638 |
nil |
|
3639 |
#misc |
|
3640 |
) |
|
3641 |
receiver:self. |
|
3642 |
||
3643 |
||
3644 |
m := myMenu menuAt:#tools. |
|
3645 |
m subMenuAt:#monitors |
|
3646 |
put:(PopUpMenu |
|
3647 |
labels:(resources array:#( |
|
3648 |
'process' |
|
3649 |
'memory' |
|
3650 |
'event view' |
|
3651 |
'event trace' |
|
3652 |
'-' |
|
3653 |
'memory usage' |
|
3654 |
)) |
|
3655 |
selectors:#( |
|
3656 |
#startProcessMonitor |
|
3657 |
#startMemoryMonitor |
|
3658 |
#startEventMonitor |
|
3659 |
#startStopEventTrace |
|
3660 |
nil |
|
3661 |
#startMemoryUsageView |
|
3662 |
) |
|
3663 |
receiver:self). |
|
3664 |
||
3665 |
m subMenuAt:#views |
|
3666 |
put:(PopUpMenu |
|
3667 |
labels:(resources array:#( |
|
3668 |
'find & raise ...' |
|
3669 |
'-' |
|
3670 |
'view tree (all views)' |
|
3671 |
'view tree' |
|
3672 |
'select & inspect view' |
|
3673 |
'select & destroy view' |
|
3674 |
'find & destroy ...' |
|
3675 |
)) |
|
3676 |
selectors:#( |
|
3677 |
#findAndRaiseWindow |
|
3678 |
nil |
|
3679 |
#startFullWindowTreeView |
|
3680 |
#startWindowTreeView |
|
3681 |
#viewInspect |
|
3682 |
#viewDestroy |
|
3683 |
#findAndDestroyWindow |
|
3684 |
) |
|
3685 |
receiver:self). |
|
3686 |
||
3687 |
m subMenuAt:#misc |
|
3688 |
put:(PopUpMenu |
|
3689 |
labels:(resources array:#( |
|
3690 |
'garbage collect' |
|
3691 |
'garbage collect & compress' |
|
3692 |
'-' |
|
3693 |
'remove all break/trace points' |
|
3694 |
)) |
|
3695 |
selectors:#( |
|
3696 |
#garbageCollect |
|
3697 |
#compressingGarbageCollect |
|
3698 |
nil |
|
3699 |
#removeAllBreakAndTracePoints |
|
3700 |
) |
|
3701 |
receiver:self). |
|
3702 |
||
3703 |
m subMenuAt:#hardcopy |
|
3704 |
put:(PopUpMenu |
|
3705 |
labels:(resources array:#( |
|
3706 |
'screen' |
|
3707 |
'area' |
|
3708 |
'view' |
|
3709 |
)) |
|
3710 |
selectors:#( |
|
3711 |
#fullScreenHardcopy |
|
3712 |
#screenHardcopy |
|
3713 |
#viewHardcopy |
|
3714 |
) |
|
3715 |
receiver:self). |
|
3716 |
||
3717 |
"Modified: 8.1.1997 / 14:04:25 / cg" |
|
3718 |
! ! |
|
3719 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3720 |
!Launcher methodsFor:'initialize / release'! |
86 | 3721 |
|
219 | 3722 |
addTopViewsToCurrentProject |
3723 |
"ignored here - the launcher is always global (i.e. not project private)." |
|
3724 |
||
3725 |
^ self |
|
3726 |
! |
|
3727 |
||
3728 |
buttonPanelSpec |
|
3729 |
"return a spec for the buttons in the panel; |
|
3730 |
entries consists of selector and bitmap-filename. |
|
3731 |
nil selectors are taken as separators (see setupButtonPanel)" |
|
98 | 3732 |
|
219 | 3733 |
^ #( |
490 | 3734 |
#(startSystemBrowser 'SBrowser32x32.xbm') |
3735 |
#(startFileBrowser 'FBrowser32x32.xbm') |
|
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3736 |
"/ #(startWorkspace 'Workspace32x32.xbm') |
490 | 3737 |
#(nil nil) |
3738 |
#(startChangesBrowser 'CBrowser32x32.xbm') |
|
219 | 3739 |
"/ #(nil nil) |
3740 |
"/ #(nil nil) |
|
3741 |
"/ #(startDocumentationTool 'book11.ico') |
|
3742 |
) |
|
230 | 3743 |
|
3744 |
"Created: 4.12.1995 / 20:16:18 / cg" |
|
490 | 3745 |
"Modified: 19.4.1996 / 16:37:46 / cg" |
219 | 3746 |
! |
3747 |
||
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3748 |
closeDownViews |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3749 |
OpenLaunchers remove:self ifAbsent:nil. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3750 |
super closeDownViews. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3751 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3752 |
"Created: 5.7.1996 / 13:33:36 / cg" |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3753 |
! |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3754 |
|
219 | 3755 |
closeRequest |
3756 |
(self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[ |
|
864 | 3757 |
super closeRequest |
219 | 3758 |
] |
3759 |
! |
|
3760 |
||
3761 |
focusSequence |
|
3762 |
^ (Array with:myMenu) |
|
3763 |
, |
|
3764 |
(buttonPanel subViews select:[:element | element isKindOf:Button]) |
|
3765 |
"/ , (Array with:Transcript) |
|
98 | 3766 |
! |
3767 |
||
93 | 3768 |
openInterface |
98 | 3769 |
"sent by my superclass to open up my interface" |
93 | 3770 |
|
615 | 3771 |
|top icn w scrn sz| |
86 | 3772 |
|
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3773 |
"/ if there is already a transcript on my device, |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3774 |
"/ I am a slave launcher with limited functionality. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3775 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3776 |
Transcript notNil ifTrue:[ |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3777 |
Transcript ~~ Stderr ifTrue:[ |
662
b5efd05fa256
use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents:
661
diff
changeset
|
3778 |
isMainLauncher := (Transcript graphicsDevice == device). |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3779 |
] ifFalse:[ |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3780 |
isMainLauncher := true |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3781 |
] |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3782 |
] ifFalse:[ |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3783 |
isMainLauncher := true |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3784 |
]. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3785 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3786 |
top := StandardSystemView onDevice:device. |
205 | 3787 |
top label:'Smalltalk/X'; iconLabel:'ST/X Launcher'. |
86 | 3788 |
top extent:(400@300 ). |
3789 |
||
615 | 3790 |
icn := self class aboutIcon. |
686 | 3791 |
icn notNil ifTrue:[ |
3792 |
icn := icn magnifiedTo:(sz := Screen current preferredIconSize). |
|
3793 |
]. |
|
616 | 3794 |
|
3795 |
((scrn := Screen current) supportsDeepIcons not |
|
617 | 3796 |
and:[scrn supportsIconViews |
3797 |
and:[scrn depth > 1]]) ifTrue:[ |
|
616 | 3798 |
w := View extent:sz. |
3799 |
w viewBackground:icn. |
|
3800 |
top iconView:w |
|
3801 |
] ifFalse:[ |
|
3802 |
top icon:icn. |
|
3803 |
]. |
|
615 | 3804 |
|
3805 |
"/ (scrn := Screen current) supportsDeepIcons ifTrue:[ |
|
3806 |
"/ icn := self class aboutIcon. |
|
3807 |
"/ icn notNil ifTrue:[ |
|
3808 |
"/ icn := icn magnifiedTo:(sz := scrn preferredIconSize). |
|
3809 |
"/ icn := Depth8Image fromImage:icn. |
|
3810 |
"/ top icon:icn |
|
3811 |
"/ ]. |
|
3812 |
||
3813 |
"/ ] ifFalse:[ |
|
3814 |
"/ scrn supportsIconViews ifTrue:[ |
|
3815 |
"/ icn := self class aboutIcon. |
|
3816 |
"/ icn notNil ifTrue:[ |
|
3817 |
"/ icn := icn magnifiedTo:(sz := scrn preferredIconSize). |
|
3818 |
"/ w := View extent:sz. |
|
3819 |
"/ w viewBackground:icn. |
|
3820 |
"/ top iconView:w |
|
3821 |
"/ ]. |
|
3822 |
"/ ] |
|
3823 |
"/ ]. |
|
92 | 3824 |
|
93 | 3825 |
self setupViewsIn:top. |
98 | 3826 |
|
3827 |
top application:self. |
|
86 | 3828 |
|
3829 |
" |
|
92 | 3830 |
open with higher prio to allow interaction even while things |
3831 |
are running ... |
|
86 | 3832 |
" |
92 | 3833 |
top openWithPriority:(Processor userSchedulingPriority + 1). |
490 | 3834 |
|
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3835 |
OpenLaunchers isNil ifTrue:[ |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3836 |
OpenLaunchers := OrderedCollection new. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3837 |
]. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3838 |
OpenLaunchers add:self. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3839 |
|
686 | 3840 |
"Modified: 25.7.1996 / 21:12:09 / cg" |
93 | 3841 |
! |
86 | 3842 |
|
219 | 3843 |
release |
3844 |
infoProcess notNil ifTrue:[ |
|
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3845 |
infoProcess terminate. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3846 |
infoProcess := nil. |
219 | 3847 |
]. |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3848 |
OpenLaunchers remove:self ifAbsent:nil. |
219 | 3849 |
super release |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3850 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3851 |
"Modified: 5.7.1996 / 11:48:56 / cg" |
86 | 3852 |
! |
3853 |
||
219 | 3854 |
restarted |
3855 |
"image restart - since WindowGroup recreates the process with |
|
600
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
3856 |
the default priority, we have to raise the prio again. |
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
3857 |
Mhmh - this looks like a bug to me ... |
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
3858 |
Also, the cursor (which was stored as a write or waitCursor) must |
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
3859 |
be reset to normal." |
86 | 3860 |
|
219 | 3861 |
Processor activeProcess priority:(Processor userSchedulingPriority + 1). |
600
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
3862 |
|
219 | 3863 |
super restarted |
600
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
3864 |
|
7c4fa93d814a
cursor handling during snapshot
Claus Gittinger <cg@exept.de>
parents:
598
diff
changeset
|
3865 |
"Modified: 1.6.1996 / 16:58:25 / cg" |
86 | 3866 |
! |
3867 |
||
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3868 |
saveAndTerminateRequest |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3869 |
"some windowManagers can send this, to shutDown an application |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3870 |
but let it save its state before, for later restart. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3871 |
Although I have not yet encountered such a windowManager, |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3872 |
we are already prepared for this ;-)" |
86 | 3873 |
|
219 | 3874 |
self snapshot. |
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3875 |
super saveAndTerminateRequest |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3876 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3877 |
"Created: 5.7.1996 / 13:07:45 / cg" |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
3878 |
"Modified: 5.7.1996 / 13:08:55 / cg" |
103 | 3879 |
! |
3880 |
||
86 | 3881 |
setupButtonPanelIn:aTopView |
3882 |
"create the buttonPanel" |
|
3883 |
||
368 | 3884 |
|spc mh buttonSize| |
86 | 3885 |
|
3886 |
spc := View viewSpacing // 2. |
|
3887 |
buttonPanel := HorizontalPanelView in:aTopView. |
|
3888 |
buttonPanel level:-1; borderWidth:0. |
|
3889 |
buttonPanel horizontalLayout:#leftSpace. |
|
3890 |
||
368 | 3891 |
buttonSize := self class buttonImageSize. |
3892 |
||
490 | 3893 |
"/ |
3894 |
"/ the buttonSpec is a collection of: |
|
3895 |
"/ #( selector iconFileName ) |
|
3896 |
"/ or: |
|
3897 |
"/ #( selector (className iconQuerySelector) ) |
|
3898 |
"/ or" |
|
3899 |
"/ #( nil ) |
|
3900 |
"/ |
|
90 | 3901 |
self buttonPanelSpec do:[:entry | |
490 | 3902 |
|sel b sep img iconSpec| |
86 | 3903 |
|
368 | 3904 |
sel := entry at:1. |
3905 |
sel isNil ifTrue:[ |
|
3906 |
sep := View in:buttonPanel. |
|
3907 |
sep extent:32@1; borderWidth:0. |
|
3908 |
] ifFalse:[ |
|
3909 |
b := Button in:buttonPanel. |
|
490 | 3910 |
iconSpec := entry at:2. |
3911 |
iconSpec isArray ifTrue:[ |
|
3912 |
img := (Smalltalk classNamed:(iconSpec at:1)) perform:(iconSpec at:2). |
|
3913 |
] ifFalse:[ |
|
3914 |
img := Image fromFile:iconSpec. |
|
3915 |
]. |
|
591 | 3916 |
(img notNil and:[buttonSize notNil]) ifTrue:[ |
3917 |
img extent ~= buttonSize ifTrue:[ |
|
3918 |
img := img magnifiedTo:buttonSize |
|
3919 |
] |
|
368 | 3920 |
]. |
3921 |
b form:img. |
|
3922 |
b model:self; changeMessage:sel |
|
3923 |
] |
|
86 | 3924 |
]. |
3925 |
||
100 | 3926 |
mh := myMenu height. |
3927 |
buttonPanel origin:0.0 @ (mh + spc) |
|
368 | 3928 |
corner:(1.0 @ (mh + spc + buttonPanel preferredExtent y)). |
86 | 3929 |
|
3930 |
buttonPanel leftInset:spc; rightInset:spc. |
|
490 | 3931 |
|
591 | 3932 |
"Modified: 29.5.1996 / 19:23:04 / cg" |
86 | 3933 |
! |
3934 |
||
219 | 3935 |
setupInfoViewIn:topView |
921 | 3936 |
"create the infoView" |
3937 |
||
219 | 3938 |
|spc halfSpc| |
3939 |
||
3940 |
spc := View viewSpacing. |
|
3941 |
infoView := Label label:'' in:topView. |
|
3942 |
infoView adjust:#left; borderWidth:0. |
|
3943 |
infoView level:-1. |
|
3944 |
transcript superView bottomInset:(infoView height + spc). |
|
90 | 3945 |
|
219 | 3946 |
infoView is3D ifTrue:[ |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3947 |
halfSpc := spc // 2. |
219 | 3948 |
] ifFalse:[ |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3949 |
halfSpc := 0 |
219 | 3950 |
]. |
3951 |
infoView topInset:(infoView height negated - spc + transcript borderWidth); |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3952 |
bottomInset:halfSpc; |
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3953 |
leftInset:halfSpc; |
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3954 |
rightInset:halfSpc. |
219 | 3955 |
infoView origin:0.0 @ 1.0 corner:1.0 @ 1.0. |
3956 |
infoView model:self; aspect:#info; labelMessage:#info. |
|
3957 |
||
3958 |
Project notNil ifTrue:[ |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3959 |
Project addDependent:self. |
219 | 3960 |
] |
3961 |
||
3962 |
" |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3963 |
Launcher open |
219 | 3964 |
" |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3965 |
|
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3966 |
"Modified: 9.9.1996 / 22:44:15 / stefan" |
921 | 3967 |
"Modified: 8.1.1997 / 14:58:22 / cg" |
93 | 3968 |
! |
3969 |
||
219 | 3970 |
setupOtherViewsIn:aTopView |
3971 |
"a hook - allows redefinition in your personal subclass. |
|
3972 |
For example, add a clock:" |
|
3973 |
||
3974 |
" |
|
3975 |
|sz clock space halfSpace| |
|
3976 |
||
3977 |
sz := buttonPanel innerHeight - (buttonPanel level abs*2). |
|
3978 |
space := View viewSpacing. |
|
3979 |
halfSpace := space // 2. |
|
93 | 3980 |
|
219 | 3981 |
buttonPanel rightInset:sz+(space * 2). |
93 | 3982 |
|
219 | 3983 |
clock := ClockView in:buttonPanel topView. |
3984 |
clock borderWidth:1. |
|
3985 |
clock showSeconds:false. |
|
3986 |
clock extent:(sz @ sz). |
|
3987 |
clock origin:(1.0 @ (buttonPanel origin y + halfSpace)). |
|
3988 |
clock leftInset:sz negated - 2 - halfSpace. |
|
3989 |
clock rightInset:halfSpace. |
|
3990 |
clock level:1. |
|
3991 |
" |
|
93 | 3992 |
! |
3993 |
||
219 | 3994 |
setupTranscriptIn:aView |
921 | 3995 |
"create the transcript view" |
3996 |
||
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3997 |
|v launcher| |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3998 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
3999 |
"/ check if this is an additional launcher on a remote display. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4000 |
"/ if so, do not close the real launcher. |
107 | 4001 |
|
219 | 4002 |
(Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[ |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4003 |
isMainLauncher ifTrue:[ |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4004 |
launcher := Transcript topView application |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4005 |
] ifFalse:[ |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4006 |
launcher := self class current. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4007 |
]. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4008 |
launcher notNil ifTrue:[ |
662
b5efd05fa256
use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents:
661
diff
changeset
|
4009 |
launcher window graphicsDevice == device ifTrue:[ |
661 | 4010 |
OpenLaunchers remove:launcher ifAbsent:nil. |
4011 |
launcher window destroy. |
|
4012 |
] |
|
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4013 |
] |
110 | 4014 |
]. |
4015 |
||
219 | 4016 |
v := HVScrollableView |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4017 |
for:TextCollector |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4018 |
miniScrollerH:true |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4019 |
miniScrollerV:false |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4020 |
in:aView. |
93 | 4021 |
|
219 | 4022 |
v origin:(0.0 @ (buttonPanel corner y + View viewSpacing)) |
4023 |
corner:(1.0 @ 1.0). |
|
4024 |
transcript := v scrolledView. |
|
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4025 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4026 |
isMainLauncher ifTrue:[ |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4027 |
transcript beTranscript. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4028 |
] ifFalse:[ |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4029 |
transcript showCR:'**************** Notice ***********************'. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4030 |
transcript showCR:'** this is NOT the Transcript **'. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4031 |
transcript showCR:'** The real Transcript is on the main screen **'. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4032 |
transcript showCR:'** **'. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4033 |
transcript showCR:'** Menus affecting common state are disabled **'. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4034 |
transcript showCR:'***********************************************'. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4035 |
] |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
4036 |
|
921 | 4037 |
"Modified: 8.1.1997 / 14:58:32 / cg" |
94 | 4038 |
! |
4039 |
||
219 | 4040 |
setupViewsIn:topView |
4041 |
"create the pulldown menu, buttonPanel and transcript view" |
|
86 | 4042 |
|
219 | 4043 |
|tFont| |
131 | 4044 |
|
219 | 4045 |
topView model:self. |
86 | 4046 |
|
219 | 4047 |
myMenu := PullDownMenu in:topView. |
4048 |
myMenu origin:0.0 @ 0.0 corner:(1.0 @ myMenu height). |
|
86 | 4049 |
|
219 | 4050 |
self setupMenu. |
4051 |
self setupButtonPanelIn:topView. |
|
4052 |
self setupTranscriptIn:topView. |
|
4053 |
self setupInfoViewIn:topView. |
|
4054 |
self setupOtherViewsIn:topView. |
|
118 | 4055 |
|
219 | 4056 |
tFont := transcript font. |
4057 |
topView extent:(((tFont widthOf:'3')*60) max:myMenu preferredExtent x) |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4058 |
@ |
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4059 |
((tFont height) * 20). |
118 | 4060 |
|
219 | 4061 |
" |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4062 |
Launcher open |
219 | 4063 |
" |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4064 |
|
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4065 |
"Modified: 9.9.1996 / 22:44:31 / stefan" |
86 | 4066 |
! ! |
4067 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4068 |
!Launcher methodsFor:'private'! |
86 | 4069 |
|
921 | 4070 |
findWindow |
4071 |
"a helper for find & destroy and find & raise operations; |
|
4072 |
let user choose a view and return it; return nil on cancel" |
|
4073 |
||
4074 |
|knownTopViews nameList box| |
|
4075 |
||
4076 |
knownTopViews := IdentitySet new. |
|
4077 |
Screen allScreens do:[:aScreen | |
|
4078 |
aScreen knownViews do:[:aView | |
|
4079 |
aView notNil ifTrue:[ |
|
4080 |
knownTopViews add:aView topView |
|
4081 |
] |
|
4082 |
] |
|
4083 |
]. |
|
4084 |
||
4085 |
knownTopViews := knownTopViews select:[:aView | aView windowGroup notNil |
|
4086 |
and:[aView windowGroup isModal not]]. |
|
4087 |
||
4088 |
knownTopViews := knownTopViews asOrderedCollection. |
|
4089 |
knownTopViews sort:[:v1 :v2 | v1 label < v2 label]. |
|
4090 |
nameList := knownTopViews collect:[:v | |
|
4091 |
|isDead wg p| |
|
4092 |
||
4093 |
((wg := v windowGroup) notNil |
|
4094 |
and:[(p := wg process) notNil |
|
4095 |
and:[p state ~~ #dead]]) ifTrue:[ |
|
4096 |
v label |
|
4097 |
] ifFalse:[ |
|
4098 |
v label , ' (dead ?)' |
|
4099 |
] |
|
4100 |
]. |
|
4101 |
||
4102 |
box := ListSelectionBox new. |
|
4103 |
box noEnterField. |
|
4104 |
box list:nameList. |
|
4105 |
box label:(resources string:'view selection'). |
|
4106 |
box title:(resources string:'select a view to raise deiconified:') withCRs. |
|
4107 |
box action:[:selection | |
|
4108 |
|v| |
|
4109 |
||
4110 |
v := knownTopViews at:box selectionIndex. |
|
4111 |
box destroy. |
|
4112 |
^ v |
|
4113 |
]. |
|
4114 |
box extent:400@300. |
|
4115 |
box showAtPointer. |
|
4116 |
^ nil |
|
4117 |
||
4118 |
"Modified: 16.10.1996 / 12:41:39 / cg" |
|
4119 |
"Created: 28.10.1996 / 14:38:41 / cg" |
|
4120 |
! |
|
4121 |
||
406 | 4122 |
fontBoxForEncoding:encodingMatch |
921 | 4123 |
"open a fontBox, showing fonts which match some encoding |
4124 |
(used when changing to japanese ...)" |
|
4125 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4126 |
|box y b |
406 | 4127 |
labelDef buttonDef listDef menuDef textDef |
4128 |
models labels allOfThem filter| |
|
4129 |
||
4130 |
encodingMatch notNil ifTrue:[ |
|
4131 |
filter := [:f | f encoding notNil |
|
4132 |
and:[encodingMatch match:f encoding]]. |
|
4133 |
]. |
|
4134 |
||
4135 |
models := OrderedCollection new. |
|
4136 |
labels := OrderedCollection new. |
|
4137 |
||
4138 |
models add:(allOfThem := nil asValue). |
|
4139 |
models add:(labelDef := Label defaultFont asValue). |
|
4140 |
models add:(buttonDef := Button defaultFont asValue). |
|
4141 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
4142 |
models add:(menuDef := MenuView defaultFont asValue). |
|
4143 |
models add:(textDef := TextView defaultFont asValue). |
|
4144 |
||
4145 |
box := Dialog new. |
|
4146 |
box label:(resources string:'Font settings'). |
|
4147 |
||
4148 |
models |
|
4149 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
|
4150 |
do:[:model :title | |
|
427 | 4151 |
|y2 lbl f i| |
406 | 4152 |
|
4153 |
f := model value. |
|
4154 |
||
4155 |
(box addTextLabel:title) adjust:#left. |
|
4156 |
||
4157 |
y := box yPosition. |
|
631
76013574eb04
Settings.Fonts menu: Add ... to Change button labels.
Stefan Vogel <sv@exept.de>
parents:
630
diff
changeset
|
4158 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
406 | 4159 |
b relativeExtent:nil; extent:(b preferredExtent). |
4160 |
y2 := box yPosition. |
|
4161 |
box yPosition:y. |
|
427 | 4162 |
i := box leftIndent. |
406 | 4163 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
4164 |
(lbl := box addTextLabel:'') |
|
4165 |
adjust:#left; |
|
4166 |
font:(model value); |
|
4167 |
labelChannel:(BlockValue |
|
4168 |
with:[:v | |f| |
|
4169 |
f := v value. |
|
4170 |
f isNil ifTrue:[ |
|
4171 |
'' |
|
4172 |
] ifFalse:[ |
|
4173 |
f userFriendlyName |
|
4174 |
] |
|
4175 |
] |
|
4176 |
argument:model). |
|
4177 |
labels add:lbl. |
|
4178 |
||
427 | 4179 |
box leftIndent:i. |
406 | 4180 |
box yPosition:(box yPosition max:y2). |
4181 |
box addVerticalSpace. |
|
4182 |
box addHorizontalLine. |
|
4183 |
box addVerticalSpace. |
|
4184 |
||
4185 |
b action:[ |
|
4186 |
|f| |
|
4187 |
||
4188 |
f := FontPanel |
|
4189 |
fontFromUserInitial:(model value) |
|
4190 |
title:(resources string:'font for %1' with:title) |
|
4191 |
filter:filter. |
|
4192 |
f notNil ifTrue:[ |
|
4193 |
model == allOfThem ifTrue:[ |
|
4194 |
models do:[:m | m value:f]. |
|
4195 |
labels do:[:l | l font:f] |
|
4196 |
] ifFalse:[ |
|
4197 |
model value:f. |
|
4198 |
lbl font:f. |
|
4199 |
]. |
|
4200 |
] |
|
4201 |
]. |
|
4202 |
model == allOfThem ifTrue:[ |
|
4203 |
box addVerticalSpace |
|
4204 |
] |
|
4205 |
]. |
|
4206 |
||
4207 |
box addAbortButton; addOkButton. |
|
4208 |
(box addButton:(Button label:(resources string:'defaults')) before:nil) |
|
4209 |
action:[ |
|
4210 |
"/ fetch defaults |
|
4211 |
View updateAllStyleCaches. |
|
4212 |
labelDef value: Label defaultFont. |
|
4213 |
buttonDef value: Button defaultFont. |
|
4214 |
listDef value: SelectionInListView defaultFont. |
|
4215 |
menuDef value: MenuView defaultFont. |
|
4216 |
textDef value: TextView defaultFont. |
|
4217 |
]. |
|
4218 |
||
4219 |
box open. |
|
4220 |
box accepted ifTrue:[ |
|
4221 |
Label defaultFont:labelDef value. |
|
4222 |
Button defaultFont:buttonDef value. |
|
4223 |
Toggle defaultFont:buttonDef value. |
|
4224 |
SelectionInListView defaultFont:listDef value. |
|
4225 |
MenuView defaultFont:menuDef value. |
|
4226 |
PullDownMenu defaultFont:menuDef value. |
|
4227 |
TextView defaultFont:textDef value. |
|
4228 |
EditTextView defaultFont:textDef value. |
|
4229 |
CodeView defaultFont:textDef value. |
|
4230 |
]. |
|
592
5a03a69bc5a3
oops - menuAction is now called with arg if there is one
Claus Gittinger <cg@exept.de>
parents:
591
diff
changeset
|
4231 |
box destroy. |
406 | 4232 |
^ box accepted |
4233 |
||
4234 |
"Created: 27.2.1996 / 01:44:16 / cg" |
|
631
76013574eb04
Settings.Fonts menu: Add ... to Change button labels.
Stefan Vogel <sv@exept.de>
parents:
630
diff
changeset
|
4235 |
"Modified: 17.6.1996 / 13:38:48 / stefan" |
921 | 4236 |
"Modified: 8.1.1997 / 14:59:11 / cg" |
406 | 4237 |
! |
4238 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4239 |
openApplication:className nameSpace:aNameSpace |
921 | 4240 |
"open some application, given the classes name. |
4241 |
Look for it in Smalltalk and the given nameSpace" |
|
4242 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4243 |
self openApplication:className nameSpace:aNameSpace with:#open |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4244 |
|
921 | 4245 |
"Modified: 8.1.1997 / 14:59:42 / cg" |
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4246 |
! |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4247 |
|
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4248 |
openApplication:className nameSpace:aNameSpace with:aSelector |
921 | 4249 |
"open some application, given the classes name. |
4250 |
Look for it in Smalltalk and the given nameSpace" |
|
4251 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4252 |
|cls| |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4253 |
|
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4254 |
cls := Smalltalk at:className asSymbol. |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4255 |
cls isNil ifTrue:[ |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4256 |
"/ look if its in the nameSpace |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4257 |
aNameSpace notNil ifTrue:[ |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4258 |
cls := aNameSpace at:className asSymbol |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4259 |
] |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4260 |
]. |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4261 |
|
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4262 |
cls isNil ifTrue:[ |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4263 |
self warn:(resources string:'sorry, the %1 class is not available.' with:className). |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4264 |
] ifFalse:[ |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4265 |
Autoload autoloadFailedSignal handle:[:ex | |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4266 |
self warn:(resources string:'sorry, the %1 class seems to be not available.' with:className) |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4267 |
] do:[ |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4268 |
cls perform:aSelector |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4269 |
] |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4270 |
] |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4271 |
|
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4272 |
"Created: 8.1.1997 / 12:52:13 / cg" |
921 | 4273 |
"Modified: 8.1.1997 / 14:59:47 / cg" |
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4274 |
! |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
4275 |
|
219 | 4276 |
pickAView |
921 | 4277 |
"let user pick a view and return it" |
4278 |
||
219 | 4279 |
|v| |
4280 |
||
4281 |
(Delay forSeconds:1) wait. |
|
4282 |
v := Screen current viewFromUser. |
|
4283 |
v isNil ifTrue:[ |
|
864 | 4284 |
self warn:'sorry, this is not a smalltalk view'. |
4285 |
^ nil |
|
219 | 4286 |
]. |
4287 |
^ v |
|
921 | 4288 |
|
4289 |
"Modified: 8.1.1997 / 14:59:57 / cg" |
|
219 | 4290 |
! |
4291 |
||
106 | 4292 |
reopenLauncher |
921 | 4293 |
"reopen a new launcher. |
4294 |
for now (since style & language settings currently do |
|
106 | 4295 |
not affect living views ...)" |
4296 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4297 |
|contents fontPref enc newLauncher| |
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
4298 |
|
777
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4299 |
"/ moved the stuff below to the language-setting |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4300 |
"/ dialog (ask before changing the language, to have |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4301 |
"/ proper texts in the dialogs). |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4302 |
"/ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4303 |
"/ fontPref := self class classResources at:'PREFERRED_FONT_ENCODING'. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4304 |
"/ enc := MenuView defaultFont encoding. |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4305 |
"/ (fontPref match:enc) ifFalse:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4306 |
"/ (self confirm:'menu font is not ' , fontPref , '-encoded.\\Change it ?' withCRs) |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4307 |
"/ ifTrue:[ |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4308 |
"/ self fontBoxForEncoding:fontPref |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4309 |
"/ ] |
f00fc8691802
check for required font encoding BEFORE changing the
Claus Gittinger <cg@exept.de>
parents:
776
diff
changeset
|
4310 |
"/ ]. |
106 | 4311 |
|
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4312 |
contents := transcript endEntry; list. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4313 |
newLauncher := self class open. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4314 |
newLauncher window waitUntilVisible. |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4315 |
newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4316 |
|
921 | 4317 |
"Modified: 8.1.1997 / 15:00:15 / cg" |
106 | 4318 |
! |
4319 |
||
100 | 4320 |
saveAllViews |
86 | 4321 |
"tell each topview that we are going to terminate and give it chance |
4322 |
to save its contents." |
|
4323 |
||
4324 |
ObjectMemory changed:#aboutToExit |
|
4325 |
! |
|
4326 |
||
93 | 4327 |
saveScreenImage:anImage defaultName:defaultName |
4328 |
"save an image into a file |
|
4329 |
- ask user for filename using a fileSelectionBox." |
|
4330 |
||
4331 |
|fileName| |
|
4332 |
||
4333 |
fileName := Dialog |
|
382 | 4334 |
requestFileName:(resources string:'save image in:') |
4335 |
default:(defaultName , '.tiff') |
|
4336 |
ok:(resources string:'save') |
|
4337 |
abort:(resources string:'cancel') |
|
4338 |
pattern:'*.tiff'. |
|
93 | 4339 |
|
4340 |
fileName notNil ifTrue:[ |
|
382 | 4341 |
anImage saveOn:fileName |
93 | 4342 |
]. |
382 | 4343 |
|
4344 |
"Modified: 21.2.1996 / 13:09:28 / cg" |
|
86 | 4345 |
! ! |
4346 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4347 |
!Launcher methodsFor:'queries'! |
90 | 4348 |
|
219 | 4349 |
processName |
4350 |
"for monitors only - my name" |
|
142 | 4351 |
|
219 | 4352 |
^ 'ST/X Launcher' |
659
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4353 |
! |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4354 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4355 |
transcript |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4356 |
"my transcript" |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4357 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4358 |
^ transcript |
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4359 |
|
324b82dad016
access transcript via my local; use current screen for aboutIcon setup
Claus Gittinger <cg@exept.de>
parents:
658
diff
changeset
|
4360 |
"Created: 5.7.1996 / 13:04:36 / cg" |
90 | 4361 |
! ! |
4362 |
||
760 | 4363 |
!Launcher class methodsFor:'documentation'! |
86 | 4364 |
|
219 | 4365 |
version |
921 | 4366 |
^ '$Header: /cvs/stx/stx/libtool/Launcher.st,v 1.224 1997-01-08 14:04:08 cg Exp $' |
86 | 4367 |
! ! |