author | Claus Gittinger <cg@exept.de> |
Sat, 23 Jan 1999 15:20:04 +0100 | |
changeset 1984 | 234c397b8b00 |
parent 1982 | ef1e7a141694 |
child 1987 | f1a91528fe70 |
permissions | -rw-r--r-- |
88 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
1910 | 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 |
1257
672d8110c8a3
use a valueHolder for the projectInfo
Claus Gittinger <cg@exept.de>
parents:
1252
diff
changeset
|
14 |
instanceVariableNames:'myMenu buttonPanel transcript infoView projectInfoHolder helpIsOn |
1199 | 15 |
isMainLauncher' |
16 |
classVariableNames:'CachedAboutIcon OpenLaunchers NotifyingEmergencyHandler' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Interface-Smalltalk' |
|
86 | 19 |
! |
20 |
||
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
21 |
Object subclass:#LauncherDialogs |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
22 |
instanceVariableNames:'' |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
23 |
classVariableNames:'' |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
24 |
poolDictionaries:'' |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
25 |
privateIn:Launcher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
26 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
27 |
|
760 | 28 |
!Launcher class methodsFor:'documentation'! |
88 | 29 |
|
30 |
copyright |
|
31 |
" |
|
32 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
1910 | 33 |
All Rights Reserved |
88 | 34 |
|
35 |
This software is furnished under a license and may be used |
|
36 |
only in accordance with the terms of that license and with the |
|
37 |
inclusion of the above copyright notice. This software may not |
|
38 |
be provided or otherwise made available to, or used by, any |
|
39 |
other person. No title to or ownership of the software is |
|
40 |
hereby transferred. |
|
41 |
" |
|
42 |
! |
|
43 |
||
105 | 44 |
customization |
45 |
" |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
46 |
Of course, it is possible to change the Launcher class itself |
105 | 47 |
as appropriate, however, we suggest you create a subclass (say MyLauncher), |
524 | 48 |
define it as autoloaded in the patches file, and redefine some methods |
49 |
in that class. |
|
50 |
That way, your changes are easier to reintroduce in case of an ST/X upgrade. |
|
105 | 51 |
|
52 |
||
53 |
adding more buttons to the button-panel: |
|
54 |
||
55 |
see the method #buttonPanelSpec; |
|
1910 | 56 |
it defines a list of selectors and icons, which is used by |
57 |
#setupButtonPanelIn:. |
|
58 |
There, for each entry, a button with that icon is created, |
|
59 |
which sends a selector-message to the launcher. |
|
60 |
||
61 |
Add entries to that list, and define appropriate methods. |
|
62 |
For example, to add a button which opens a drawTool, |
|
63 |
change #buttonPanelSpec to: |
|
64 |
||
65 |
buttonPanelSpec |
|
66 |
^ #( |
|
67 |
#(startSystemBrowser 'SBrowser32x32.xbm') |
|
68 |
#(startFileBrowser 'FBrowser32x32.xbm') |
|
69 |
#(nil nil) |
|
70 |
#(startChangesBrowser 'CBrowser32x32.xbm') |
|
71 |
#(nil nil) |
|
72 |
#(nil nil) |
|
73 |
#(startDrawTool 'DrawTool.xbm') |
|
74 |
) |
|
75 |
||
76 |
the panel adjusts its height as appropriate - you may want to |
|
77 |
create new (small) icons for a good look. |
|
105 | 78 |
|
79 |
adding an entry to a menu: |
|
80 |
||
1910 | 81 |
see the #setupMenu method; either add another top-menu, or |
82 |
add entries to an existing menu. |
|
83 |
All menu setup has been extracted into separate init-methods, |
|
84 |
so there is often only a need to redefine one of those |
|
85 |
(for example, to add your own demos, only redefine setupDemoMenu). |
|
86 |
To add a new master-item with its own pullDown, redefine setupMainMenu |
|
87 |
to include another selector and add the correspoonding menu there. |
|
88 | 88 |
" |
219 | 89 |
! |
90 |
||
91 |
documentation |
|
92 |
" |
|
1615 | 93 |
Used to be a new launcher (w.r.t. the old menu-launcher), |
94 |
combining the old Launchers menu and transcript into |
|
219 | 95 |
one view. (you no longer have to move two views around all the time ...). |
96 |
||
1615 | 97 |
Also, this is the first app to make use of the new compatibility framework; |
219 | 98 |
you will notice, that this is a subclass of ApplicationModel. |
99 |
New applications will no longer be built as subclasses of standardSystemView. |
|
511 | 100 |
|
921 | 101 |
See #customization for information regarding your own private |
102 |
launcher functions. |
|
103 |
||
954
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
104 |
Notice: |
1910 | 105 |
Since there can only be one SystemTranscript, opening a new launcher |
106 |
will automatically close the current one (except for a remote launcher, |
|
107 |
opened on another display). |
|
954
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
108 |
|
1615 | 109 |
Notice2: |
1910 | 110 |
By the time you read this, this 'new launcher' is already old again; |
111 |
we have written a completely new newLauncher, using the GUI painter tools, |
|
112 |
which provides the same functionality, but has all of its GUI, menus and |
|
113 |
icon bitmaps been generated using convenient tools. |
|
114 |
Look into NewLauncher if you need coding examples on GUI programming. |
|
1615 | 115 |
|
511 | 116 |
[author:] |
1910 | 117 |
Claus Gittinger |
921 | 118 |
|
119 |
[see also:] |
|
1910 | 120 |
Examples_misc::MyLauncher |
921 | 121 |
|
122 |
[start with:] |
|
1910 | 123 |
Launcher open |
219 | 124 |
" |
954
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
125 |
! |
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
126 |
|
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
127 |
examples |
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
128 |
" |
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
129 |
As ST/X can handle multiple screens, there is nothing (except fear ;-) |
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
130 |
from preventing you to work with your friend in the same image. |
965 | 131 |
To do this, evaluate (replace localhost by whatever): |
1910 | 132 |
[exBegin] |
133 |
|display2| |
|
134 |
||
135 |
display2 := XWorkstation new initializeFor:'localhost:0'. |
|
136 |
display2 isNil ifTrue:[ |
|
137 |
self warn:'cannot connect.'. |
|
138 |
] ifFalse:[ |
|
139 |
display2 startDispatch. |
|
140 |
display2 keyboardMap:(Display keyboardMap). |
|
141 |
Launcher openOnDevice:display2. |
|
142 |
] |
|
143 |
[exEnd] |
|
954
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
144 |
But you should be somewhat careful, the other guy may change things so |
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
145 |
that you are blocked (start high prio processes, change classes etc.) |
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
146 |
Anyway, a nice demo .... |
664cb25ee914
added documentation on remoteLauncher;
Claus Gittinger <cg@exept.de>
parents:
951
diff
changeset
|
147 |
" |
88 | 148 |
! ! |
149 |
||
760 | 150 |
!Launcher class methodsFor:'accessing'! |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
151 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
152 |
current |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
153 |
"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
|
154 |
(for access via addMenu/ removeMenu)" |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
155 |
|
1925 | 156 |
|currentScreen| |
157 |
||
1839 | 158 |
OpenLaunchers size > 0 ifTrue:[ |
1925 | 159 |
currentScreen := Screen current. |
160 |
OpenLaunchers do:[:aLauncher | |
|
161 |
aLauncher window graphicsDevice == currentScreen ifTrue:[ |
|
162 |
^ aLauncher |
|
163 |
] |
|
164 |
] |
|
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
165 |
]. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
166 |
^ nil. |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
167 |
|
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
168 |
" |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
169 |
Launcher current |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
170 |
" |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
171 |
|
1839 | 172 |
"Modified: / 9.9.1996 / 22:41:36 / stefan" |
1925 | 173 |
"Modified: / 13.10.1998 / 16:09:50 / cg" |
1458
ae0900d4dce6
start newLauncher at same position as oldLauncher
Claus Gittinger <cg@exept.de>
parents:
1433
diff
changeset
|
174 |
! |
ae0900d4dce6
start newLauncher at same position as oldLauncher
Claus Gittinger <cg@exept.de>
parents:
1433
diff
changeset
|
175 |
|
ae0900d4dce6
start newLauncher at same position as oldLauncher
Claus Gittinger <cg@exept.de>
parents:
1433
diff
changeset
|
176 |
openLaunchers |
ae0900d4dce6
start newLauncher at same position as oldLauncher
Claus Gittinger <cg@exept.de>
parents:
1433
diff
changeset
|
177 |
"return all opened launchers" |
ae0900d4dce6
start newLauncher at same position as oldLauncher
Claus Gittinger <cg@exept.de>
parents:
1433
diff
changeset
|
178 |
|
ae0900d4dce6
start newLauncher at same position as oldLauncher
Claus Gittinger <cg@exept.de>
parents:
1433
diff
changeset
|
179 |
^OpenLaunchers ? (OpenLaunchers := OrderedCollection new) |
660
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
180 |
! ! |
cb5a90c05873
in multiscreen applications: allow slaveLaunchers with stripped
Claus Gittinger <cg@exept.de>
parents:
659
diff
changeset
|
181 |
|
760 | 182 |
!Launcher class methodsFor:'defaults'! |
86 | 183 |
|
184 |
aboutIcon |
|
921 | 185 |
"return the icon shown in the about menu-item and used |
186 |
as ST/X about icon" |
|
187 |
||
86 | 188 |
|image| |
189 |
||
190 |
CachedAboutIcon notNil ifTrue:[^ CachedAboutIcon]. |
|
191 |
||
192 |
image := Image fromFile:'SmalltalkX.xbm'. |
|
92 | 193 |
image notNil ifTrue:[ |
1910 | 194 |
|green dark| |
195 |
||
196 |
Screen current hasColors ifTrue:[ |
|
197 |
green := (Color redPercent:0 greenPercent:80 bluePercent:20) "darkened". |
|
198 |
dark := Color grayPercent:10. |
|
199 |
image photometric:#palette. |
|
200 |
] ifFalse:[ |
|
201 |
dark := Color black. |
|
202 |
green := Color white. |
|
203 |
image photometric:#blackIs0. |
|
204 |
]. |
|
205 |
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
|
206 |
"/ 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
|
207 |
"/ image := (Image implementorForDepth:Screen current depth) fromImage:image. |
144 | 208 |
"/ ] |
86 | 209 |
]. |
210 |
CachedAboutIcon := image. |
|
211 |
^ image |
|
212 |
||
213 |
" |
|
92 | 214 |
CachedAboutIcon := nil. |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
215 |
Launcher aboutIcon |
92 | 216 |
" |
144 | 217 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
218 |
"Modified: 9.9.1996 / 22:41:23 / stefan" |
921 | 219 |
"Modified: 8.1.1997 / 15:01:30 / cg" |
219 | 220 |
! |
221 |
||
368 | 222 |
buttonImageSize |
490 | 223 |
"images in buttonPanel are sized to this. |
224 |
Can be redefined in subclasses to return nil (no scaling) |
|
225 |
or any other useful size" |
|
226 |
||
1357 | 227 |
<resource: #style (#'launcher.buttonSize')> |
228 |
||
229 |
^ View styleSheet at:'launcher.buttonSize' default:(32@32) |
|
230 |
||
231 |
"Modified: / 26.10.1997 / 17:07:40 / cg" |
|
368 | 232 |
! |
233 |
||
915 | 234 |
notifyingEmergencyHandler |
921 | 235 |
"return a block (used as an emergency handler |
236 |
for exceptions), which does errorNotification before going |
|
237 |
into the debugger." |
|
238 |
||
960 | 239 |
"Remember the handlerBlock, to be able to determine if the current |
240 |
handler is the notifying one." |
|
241 |
||
915 | 242 |
NotifyingEmergencyHandler isNil ifTrue:[ |
1910 | 243 |
NotifyingEmergencyHandler := Exception notifyingEmergencyHandler |
915 | 244 |
]. |
245 |
^ NotifyingEmergencyHandler |
|
246 |
||
247 |
"Created: 7.1.1997 / 22:18:19 / cg" |
|
960 | 248 |
"Modified: 15.1.1997 / 21:15:38 / cg" |
915 | 249 |
! |
250 |
||
219 | 251 |
smallAboutIcon |
921 | 252 |
"return the icon shown in the about menu-item" |
253 |
||
219 | 254 |
|image| |
255 |
||
256 |
image := self aboutIcon. |
|
257 |
image notNil ifTrue:[ |
|
1910 | 258 |
image := image magnifiedBy:0.4. |
219 | 259 |
]. |
260 |
^ image |
|
261 |
||
262 |
" |
|
263 |
CachedAboutIcon := nil. |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
264 |
Launcher aboutIcon. |
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
265 |
Launcher smallAboutIcon. |
219 | 266 |
" |
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
267 |
|
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
268 |
"Modified: 9.9.1996 / 22:42:12 / stefan" |
921 | 269 |
"Modified: 8.1.1997 / 15:02:56 / cg" |
219 | 270 |
! ! |
271 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
272 |
!Launcher methodsFor:'actions - about & help'! |
219 | 273 |
|
274 |
about |
|
921 | 275 |
"show an about box" |
276 |
||
219 | 277 |
|box| |
278 |
||
279 |
box := AboutBox new. |
|
280 |
box autoHideAfter:10 with:[]. |
|
281 |
box showAtCenter |
|
921 | 282 |
|
283 |
"Modified: 8.1.1997 / 14:37:07 / cg" |
|
219 | 284 |
! |
285 |
||
727 | 286 |
showBookPrintDocument |
921 | 287 |
"open an HTML browser on the 'book'-printing document" |
288 |
||
727 | 289 |
self showDocumentation:'BOOK.html' |
290 |
||
291 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
292 |
"Created: 12.9.1996 / 01:53:30 / cg" |
|
921 | 293 |
"Modified: 8.1.1997 / 14:42:59 / cg" |
727 | 294 |
! |
295 |
||
219 | 296 |
showDocumentation:aRelativeDocFilePath |
921 | 297 |
"open an HTML browser on some document" |
298 |
||
219 | 299 |
" |
300 |
although that one is not yet finished, |
|
301 |
its better than nothing ... |
|
302 |
" |
|
555 | 303 |
HTMLDocumentView notNil ifTrue:[ |
1910 | 304 |
" |
305 |
temporary kludge; |
|
306 |
not all machines can autoload binaries; |
|
307 |
however, on my SGI (which can) we want it |
|
308 |
to load automatically. |
|
309 |
" |
|
310 |
HTMLDocumentView isLoaded ifFalse:[ |
|
311 |
ErrorSignal catch:[HTMLDocumentView autoload] |
|
312 |
]. |
|
313 |
HTMLDocumentView isLoaded ifTrue:[ |
|
314 |
HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. |
|
315 |
^ self |
|
316 |
]. |
|
219 | 317 |
]. |
318 |
||
1312 | 319 |
self warn:'Sorry, the ST/X HTML reader is not |
320 |
included in this release. |
|
219 | 321 |
|
322 |
Please use Mosaic, netscape, chimera or any |
|
323 |
other HTML viewer to see the documentation. |
|
324 |
||
325 |
The documentation is found in the ''doc/online'' directory.'. |
|
326 |
||
327 |
"Modified: 31.8.1995 / 13:11:08 / claus" |
|
921 | 328 |
"Modified: 8.1.1997 / 14:42:42 / cg" |
219 | 329 |
! |
330 |
||
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
331 |
showLicenceConditions |
921 | 332 |
"open an HTML browser on the 'LICENCE' document" |
333 |
||
860
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
334 |
|lang doc| |
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
335 |
|
1578 | 336 |
Smalltalk releaseIdentification = 'ST/X_free_demo_vsn' ifTrue:[ |
1910 | 337 |
doc := 'english/LICENCE_DEMO_STX.html' |
860
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
338 |
] ifFalse:[ |
1910 | 339 |
((lang := Smalltalk language) = 'de' |
340 |
or:[lang = 'german']) ifTrue:[ |
|
341 |
doc := 'german/LICENCE_STX.html' |
|
342 |
] ifFalse:[ |
|
343 |
doc := 'english/LICENCE_STX.html' |
|
344 |
]. |
|
860
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
345 |
]. |
864 | 346 |
doc := resources at:'LICENCEFILE' default:doc. |
860
fa31564f3072
changes for nationel licence texts
Claus Gittinger <cg@exept.de>
parents:
855
diff
changeset
|
347 |
self showDocumentation:('../' , doc) |
739
cce1e1dab15e
Licence is in german/LICENCE.STX.html.
Stefan Vogel <sv@exept.de>
parents:
738
diff
changeset
|
348 |
|
1578 | 349 |
"Created: / 14.9.1996 / 12:35:00 / cg" |
350 |
"Modified: / 23.9.1996 / 17:03:15 / stefan" |
|
351 |
"Modified: / 23.4.1998 / 11:42:26 / cg" |
|
733
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
352 |
! |
1cd5a9644c57
added licence-display menu-item;
Claus Gittinger <cg@exept.de>
parents:
727
diff
changeset
|
353 |
|
496 | 354 |
startClassDocumentation |
921 | 355 |
"open an HTML browser on the 'classDoc/TOP' document" |
356 |
||
496 | 357 |
self showDocumentation:'classDoc/TOP.html' |
358 |
||
359 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
360 |
"Created: 22.4.1996 / 21:03:56 / cg" |
|
921 | 361 |
"Modified: 8.1.1997 / 14:42:04 / cg" |
496 | 362 |
! |
363 |
||
483 | 364 |
startDocumentationIndex |
921 | 365 |
"open an HTML browser on the 'index' document" |
366 |
||
483 | 367 |
self showDocumentation:'index.html' |
368 |
||
369 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
370 |
"Created: 17.4.1996 / 22:08:55 / cg" |
|
921 | 371 |
"Modified: 8.1.1997 / 14:41:23 / cg" |
483 | 372 |
! |
373 |
||
219 | 374 |
startDocumentationTool |
921 | 375 |
"open an HTML browser on the 'TOP' document" |
376 |
||
219 | 377 |
self showDocumentation:'TOP.html' |
378 |
||
379 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
921 | 380 |
"Modified: 8.1.1997 / 14:41:38 / cg" |
219 | 381 |
! |
382 |
||
1366 | 383 |
startLauncherHelp |
384 |
"open an HTML browser on the 'launcher-help' document" |
|
385 |
||
386 |
self showDocumentation:'help/launcher/launcher.html' |
|
387 |
||
388 |
"Modified: / 31.8.1995 / 13:11:28 / claus" |
|
389 |
"Modified: / 8.1.1997 / 14:41:23 / cg" |
|
390 |
"Created: / 31.10.1997 / 15:59:28 / cg" |
|
391 |
! |
|
392 |
||
776 | 393 |
startWhatsNewDocumentation |
921 | 394 |
"open an HTML browser on the 'whatsNew.html' document" |
395 |
||
776 | 396 |
self showDocumentation:'whatsNew.html' |
397 |
||
398 |
"Modified: 31.8.1995 / 13:11:28 / claus" |
|
399 |
"Created: 18.10.1996 / 14:00:35 / cg" |
|
921 | 400 |
"Modified: 8.1.1997 / 14:39:32 / cg" |
776 | 401 |
! |
402 |
||
219 | 403 |
toggleActiveHelp:aBoolean |
921 | 404 |
"turn on/off active help" |
405 |
||
219 | 406 |
ActiveHelp notNil ifTrue:[ |
1910 | 407 |
helpIsOn := aBoolean. |
408 |
helpIsOn ifTrue:[ |
|
409 |
ActiveHelp start |
|
410 |
] ifFalse:[ |
|
411 |
ActiveHelp stop |
|
412 |
] |
|
219 | 413 |
]. |
921 | 414 |
|
415 |
"Modified: 8.1.1997 / 14:37:30 / cg" |
|
219 | 416 |
! ! |
417 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
418 |
!Launcher methodsFor:'actions - classes'! |
219 | 419 |
|
1366 | 420 |
browseAllBreakAndTracePoints |
421 |
"open a browser showing all breakPointed/traced methods |
|
422 |
(but, to get rid of them, there is also a menu itme to remove them all)" |
|
423 |
||
424 |
|methods| |
|
425 |
||
426 |
methods := WrappedMethod allInstances. |
|
427 |
SystemBrowser browseMethods:methods title:'all breakPointed/traced methods' |
|
428 |
||
429 |
"Modified: 14.1.1997 / 12:51:17 / cg" |
|
430 |
"Created: 14.1.1997 / 12:55:23 / cg" |
|
431 |
! |
|
432 |
||
219 | 433 |
browseImplementors |
921 | 434 |
"open an implementors- browser after asking for a selector" |
435 |
||
1366 | 436 |
|enterBox selector| |
437 |
||
438 |
enterBox := EnterBox |
|
1910 | 439 |
title:(resources at:'Browse implementors of:') withCRs |
440 |
okText:(resources at:'browse') |
|
441 |
action:[:acceptedString | selector := acceptedString]. |
|
1366 | 442 |
enterBox showAtPointer. |
443 |
||
444 |
selector notNil ifTrue:[ |
|
1910 | 445 |
self withWaitCursorDo:[ |
446 |
SystemBrowser browseImplementorsOf:selector |
|
447 |
] |
|
219 | 448 |
]. |
1366 | 449 |
|
450 |
"Modified: / 31.10.1997 / 15:43:45 / cg" |
|
219 | 451 |
! |
452 |
||
574 | 453 |
browseResources |
921 | 454 |
"open a resource- browser after asking for a resource string" |
455 |
||
1234
8cbd3a1ab97d
added help to resource-search dialog.
Claus Gittinger <cg@exept.de>
parents:
1220
diff
changeset
|
456 |
|box resourceHolder valueHolder component rsrc value t anyString| |
8cbd3a1ab97d
added help to resource-search dialog.
Claus Gittinger <cg@exept.de>
parents:
1220
diff
changeset
|
457 |
|
8cbd3a1ab97d
added help to resource-search dialog.
Claus Gittinger <cg@exept.de>
parents:
1220
diff
changeset
|
458 |
anyString := resources string:'* any *'. |
930 | 459 |
|
964 | 460 |
resourceHolder := ValueHolder newString. |
1663 | 461 |
valueHolder := (ValueHolder with:'*'). |
930 | 462 |
|
463 |
box := DialogBox new. |
|
464 |
box label:(resources at:'Resource search:'). |
|
465 |
component := box addTextLabel:(resources at:'Search for methods which contain a\particular resource specification') withCRs. |
|
466 |
component adjust:#left. |
|
467 |
box addVerticalSpace:10. |
|
468 |
||
1034 | 469 |
component := box addTextLabel:(resources at:'Resource symbol (empty for any; no matchPattern allowed):') withCRs. |
932
d370fa068ade
allow button size to be specified in the styleSheet
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
470 |
component adjust:#left. |
970
4d14ab7bd326
better browse-resource dialog
Claus Gittinger <cg@exept.de>
parents:
968
diff
changeset
|
471 |
component := box addComboBoxOn:resourceHolder tabable:true. |
1234
8cbd3a1ab97d
added help to resource-search dialog.
Claus Gittinger <cg@exept.de>
parents:
1220
diff
changeset
|
472 |
component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' nil 'needsFix')). |
1034 | 473 |
|
474 |
component := box addTextLabel:(resources at:'Resource value (* for any; matchPattern is allowed):') withCRs. |
|
932
d370fa068ade
allow button size to be specified in the styleSheet
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
475 |
component adjust:#left. |
d370fa068ade
allow button size to be specified in the styleSheet
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
476 |
box addInputFieldOn:valueHolder tabable:true. |
930 | 477 |
|
478 |
box addVerticalSpace:10. |
|
1234
8cbd3a1ab97d
added help to resource-search dialog.
Claus Gittinger <cg@exept.de>
parents:
1220
diff
changeset
|
479 |
box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'. |
930 | 480 |
box addAbortButton; addOkButton. |
481 |
||
482 |
box showAtPointer. |
|
483 |
box destroy. |
|
484 |
||
485 |
box accepted ifTrue:[ |
|
1910 | 486 |
rsrc := resourceHolder value. |
487 |
value := valueHolder value. |
|
488 |
||
489 |
(rsrc isNil or:[rsrc isEmpty or:[rsrc = '*' or:[rsrc = anyString]]]) ifTrue:[ |
|
490 |
t := 'methods with any resource'. |
|
491 |
rsrc := nil |
|
492 |
] ifFalse:[ |
|
493 |
t := 'methods with #' , rsrc , '-resource'. |
|
494 |
rsrc := rsrc withoutSeparators asSymbol |
|
495 |
]. |
|
496 |
(value isNil or:[value isEmpty or:[value = '*']]) ifTrue:[ |
|
497 |
t := t , ' and any value'. |
|
498 |
value := nil |
|
499 |
] ifFalse:[ |
|
500 |
t := t , ' and value ' , value. |
|
501 |
]. |
|
502 |
self withWaitCursorDo:[ |
|
503 |
SystemBrowser browseForResource:rsrc |
|
504 |
containing:value |
|
505 |
in:(Smalltalk allClasses) |
|
506 |
title:t |
|
507 |
] |
|
574 | 508 |
]. |
509 |
||
1663 | 510 |
"Created: / 28.5.1996 / 13:15:16 / cg" |
511 |
"Modified: / 21.5.1998 / 03:15:04 / cg" |
|
574 | 512 |
! |
513 |
||
219 | 514 |
browseSenders |
921 | 515 |
"open a senders- browser after asking for a selector" |
516 |
||
1366 | 517 |
|enterBox selector| |
518 |
||
519 |
enterBox := EnterBox |
|
1910 | 520 |
title:(resources at:'Browse senders of:') withCRs |
521 |
okText:(resources at:'browse') |
|
522 |
action:[:acceptedString | selector := acceptedString]. |
|
1366 | 523 |
enterBox showAtPointer. |
524 |
||
525 |
selector notNil ifTrue:[ |
|
1910 | 526 |
self withWaitCursorDo:[ |
527 |
SystemBrowser browseAllCallsOn:selector |
|
528 |
] |
|
219 | 529 |
]. |
1366 | 530 |
|
531 |
"Modified: / 31.10.1997 / 15:44:11 / cg" |
|
532 |
! |
|
533 |
||
534 |
browseUndeclared |
|
535 |
"open a browser on methods refering to undeclared variables" |
|
536 |
||
537 |
self withWaitCursorDo:[ |
|
1910 | 538 |
SystemBrowser |
539 |
browseReferendsOf:(Smalltalk underclaredPrefix , '*') |
|
540 |
title:(resources string:'references to undeclared variables') |
|
541 |
warnIfNone:true |
|
1366 | 542 |
] |
543 |
||
544 |
"Modified: / 31.10.1997 / 15:43:18 / cg" |
|
545 |
! |
|
546 |
||
547 |
removeAllBreakAndTracePoints |
|
548 |
"remove all break- and trace points" |
|
549 |
||
550 |
MessageTracer cleanup |
|
551 |
||
552 |
"Modified: 8.1.1997 / 14:55:27 / cg" |
|
219 | 553 |
! |
554 |
||
555 |
startChangesBrowser |
|
921 | 556 |
"open a changebrowser" |
557 |
||
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
558 |
self withWaitCursorDo:[ |
1940
9d26d15e24e4
ask UserPrefs for changesBrowserClass.
Claus Gittinger <cg@exept.de>
parents:
1929
diff
changeset
|
559 |
UserPreferences current changesBrowserClass open |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
560 |
] |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
561 |
|
1940
9d26d15e24e4
ask UserPrefs for changesBrowserClass.
Claus Gittinger <cg@exept.de>
parents:
1929
diff
changeset
|
562 |
"Modified: / 17.10.1998 / 14:38:18 / cg" |
219 | 563 |
! |
564 |
||
565 |
startClassBrowser |
|
921 | 566 |
"open a classBrowser; asks for class" |
567 |
||
219 | 568 |
SystemBrowser askThenBrowseClass |
921 | 569 |
|
570 |
"Modified: 8.1.1997 / 14:48:16 / cg" |
|
219 | 571 |
! |
572 |
||
573 |
startClassHierarchyBrowser |
|
921 | 574 |
"open a classHierarchyBrowser; asks for class" |
575 |
||
219 | 576 |
SystemBrowser askThenBrowseClassHierarchy |
921 | 577 |
|
578 |
"Modified: 8.1.1997 / 14:48:28 / cg" |
|
219 | 579 |
! |
580 |
||
581 |
startClassTreeView |
|
921 | 582 |
"open a classHierarchyTree view" |
583 |
||
219 | 584 |
self withWaitCursorDo:[ClassTreeGraphView open] |
921 | 585 |
|
586 |
"Modified: 8.1.1997 / 14:48:38 / cg" |
|
219 | 587 |
! |
588 |
||
589 |
startFileBrowser |
|
921 | 590 |
"open a fileBrowser" |
591 |
||
219 | 592 |
self withWaitCursorDo:[FileBrowser open] |
921 | 593 |
|
594 |
"Modified: 8.1.1997 / 14:48:47 / cg" |
|
219 | 595 |
! |
596 |
||
597 |
startFullClassBrowser |
|
921 | 598 |
"open a fullClass systemBrowser; asks for class" |
599 |
||
219 | 600 |
SystemBrowser askThenBrowseFullClassProtocol |
921 | 601 |
|
602 |
"Modified: 8.1.1997 / 14:48:06 / cg" |
|
219 | 603 |
! |
604 |
||
490 | 605 |
startJavaBrowser |
921 | 606 |
"open a javaBrowser (not included in the standard distribution)" |
607 |
||
490 | 608 |
JavaBrowser notNil ifTrue:[ |
1910 | 609 |
self withWaitCursorDo:[JavaBrowser open] |
490 | 610 |
] |
611 |
||
612 |
"Created: 18.4.1996 / 15:55:44 / cg" |
|
921 | 613 |
"Modified: 8.1.1997 / 14:47:31 / cg" |
490 | 614 |
! |
615 |
||
219 | 616 |
startSystemBrowser |
921 | 617 |
"open a systemBrowser" |
618 |
||
219 | 619 |
self withWaitCursorDo:[SystemBrowser open] |
921 | 620 |
|
621 |
"Modified: 8.1.1997 / 14:47:43 / cg" |
|
219 | 622 |
! |
623 |
||
624 |
startWorkspace |
|
921 | 625 |
"open a workspace" |
626 |
||
219 | 627 |
Workspace open |
921 | 628 |
|
629 |
"Modified: 8.1.1997 / 14:47:49 / cg" |
|
219 | 630 |
! ! |
631 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
632 |
!Launcher methodsFor:'actions - demos'! |
219 | 633 |
|
634 |
openDemo:className |
|
921 | 635 |
"open a demo, given its name. |
636 |
Looks in both the Smalltalk- and the Demos-Namespace |
|
637 |
for that class." |
|
638 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
639 |
self openApplication:className nameSpace:Demos |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
640 |
|
921 | 641 |
"Modified: 8.1.1997 / 14:51:02 / cg" |
219 | 642 |
! |
643 |
||
1008 | 644 |
openGame:className |
645 |
"open a game, given its name. |
|
646 |
Looks in both the Smalltalk- and the Games-Namespace |
|
647 |
for that class." |
|
648 |
||
649 |
self openApplication:className nameSpace:Games |
|
650 |
||
651 |
"Modified: 8.1.1997 / 14:51:18 / cg" |
|
652 |
"Created: 28.1.1997 / 00:49:21 / cg" |
|
653 |
! |
|
654 |
||
219 | 655 |
startTetris |
921 | 656 |
"opens a tetris game" |
657 |
||
1008 | 658 |
self openGame:'Tetris' |
659 |
||
660 |
"Modified: 28.1.1997 / 00:49:40 / cg" |
|
219 | 661 |
! |
662 |
||
663 |
startTicTacToe |
|
921 | 664 |
"opens a ticTacToe game against the machine" |
665 |
||
1008 | 666 |
self openGame:'TicTacToeGame' |
667 |
||
668 |
"Modified: 28.1.1997 / 00:49:44 / cg" |
|
219 | 669 |
! |
670 |
||
671 |
startTicTacToe2 |
|
921 | 672 |
"opens a 2-user ticTacToe game" |
673 |
||
1008 | 674 |
self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame |
675 |
||
676 |
"Modified: 28.1.1997 / 00:49:50 / cg" |
|
219 | 677 |
! ! |
678 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
679 |
!Launcher methodsFor:'actions - file'! |
219 | 680 |
|
681 |
exit |
|
921 | 682 |
"stop ST/X - after asking for confirmation" |
683 |
||
219 | 684 |
(self confirm:(resources string:'Are you certain you want to exit without saving ?')) |
685 |
ifTrue:[ |
|
1910 | 686 |
self saveAllViews. |
687 |
Smalltalk exit |
|
219 | 688 |
] |
921 | 689 |
|
690 |
"Modified: 8.1.1997 / 14:50:00 / cg" |
|
219 | 691 |
! |
692 |
||
693 |
objectModuleDialog |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
694 |
^ LauncherDialogs objectModuleDialogFor:self |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
695 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
696 |
"Created: / 31.7.1998 / 15:50:37 / cg" |
219 | 697 |
! |
698 |
||
699 |
snapshot |
|
921 | 700 |
"saves a snapshot image, after asking for a fileName" |
701 |
||
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
702 |
|fileName| |
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
703 |
|
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
704 |
fileName := DialogBox |
1910 | 705 |
request:(resources at:'filename for image:') withCRs |
706 |
initialAnswer:(ObjectMemory nameForSnapshot) |
|
707 |
okLabel:(resources at:'save') |
|
708 |
title:(resources string:'save image') |
|
709 |
onCancel:nil. |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
710 |
|
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
711 |
fileName notNil ifTrue:[ |
1910 | 712 |
self showCursor:Cursor write. |
713 |
[ |
|
714 |
(ObjectMemory snapShotOn:fileName) ifFalse:[ |
|
715 |
" |
|
716 |
snapshot failed for some reason (disk full, no permission etc.) |
|
717 |
" |
|
718 |
self warn:(resources string:'failed to save snapshot image (disk full or not writable)'). |
|
719 |
] |
|
720 |
] valueNowOrOnUnwindDo:[ |
|
721 |
self restoreCursors. |
|
722 |
]. |
|
219 | 723 |
]. |
724 |
||
921 | 725 |
"Modified: 8.1.1997 / 14:50:29 / cg" |
219 | 726 |
! |
727 |
||
728 |
snapshotAndExit |
|
921 | 729 |
"saves a snapshot image and exits, after asking for a fileName" |
730 |
||
590 | 731 |
|fileName ok| |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
732 |
|
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
733 |
fileName := DialogBox |
1910 | 734 |
request:(resources at:'filename for image:') withCRs |
735 |
initialAnswer:(ObjectMemory nameForSnapshot) |
|
736 |
okLabel:(resources at:'save & exit') |
|
737 |
title:(resources string:'save image & exit') |
|
738 |
onCancel:nil. |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
739 |
|
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
740 |
fileName notNil ifTrue:[ |
1910 | 741 |
self showCursor:Cursor write. |
742 |
[ |
|
743 |
ok := ObjectMemory snapShotOn:fileName. |
|
744 |
] valueNowOrOnUnwindDo:[ |
|
745 |
self restoreCursors. |
|
746 |
]. |
|
747 |
||
748 |
ok ifFalse:[ |
|
749 |
" |
|
750 |
snapshot failed for some reason (disk full, no permission etc.) |
|
751 |
Do NOT exit in this case. |
|
752 |
" |
|
753 |
self warn:(resources string:'failed to save snapshot image (disk full or not writable)'). |
|
754 |
] ifTrue:[ |
|
755 |
" |
|
756 |
saveAllViews tells all views to shutdown neatly |
|
757 |
(i.e. offer a chance to save the contents to a file). |
|
758 |
||
759 |
This is NOT required - all data should be in the snapshot ... |
|
760 |
... however, if remote disks/mountable filesystems are involved, |
|
761 |
which may not be present the next time, it may make sense to |
|
762 |
uncomment it and query for saving - time will show which is better. |
|
763 |
" |
|
590 | 764 |
" |
1910 | 765 |
self saveAllViews. |
590 | 766 |
" |
1910 | 767 |
Smalltalk exit |
768 |
] |
|
219 | 769 |
]. |
770 |
||
921 | 771 |
"Modified: 8.1.1997 / 14:50:36 / cg" |
219 | 772 |
! ! |
773 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
774 |
!Launcher methodsFor:'actions - goodies'! |
219 | 775 |
|
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
776 |
openGoodie:className |
921 | 777 |
"open a goodie, given its name. |
778 |
Looks in both the Smalltalk- and the Goodies-Namespace |
|
779 |
for that class." |
|
780 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
781 |
self openApplication:className nameSpace:Goodies |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
782 |
|
921 | 783 |
"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
|
784 |
! |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
785 |
|
219 | 786 |
startCalendar |
921 | 787 |
"open a calendar goodie" |
788 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
789 |
self openGoodie:'Calendar' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
790 |
|
921 | 791 |
"Modified: 8.1.1997 / 14:51:29 / cg" |
219 | 792 |
! |
793 |
||
794 |
startClock |
|
921 | 795 |
"open a clock goodie" |
796 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
797 |
self openGoodie:'RoundClock' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
798 |
|
921 | 799 |
"Modified: 8.1.1997 / 14:51:34 / cg" |
219 | 800 |
! |
801 |
||
802 |
startMailTool |
|
921 | 803 |
"open a mailView goodie" |
804 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
805 |
self openGoodie:'MailView' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
806 |
|
921 | 807 |
"Modified: 8.1.1997 / 14:51:42 / cg" |
219 | 808 |
! |
809 |
||
810 |
startNewsTool |
|
921 | 811 |
"open a newsTool goodie" |
812 |
||
920
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
813 |
self openGoodie:'NewsView' |
2b66e8759af5
look in some other namespace for demos & goodies
Claus Gittinger <cg@exept.de>
parents:
919
diff
changeset
|
814 |
|
921 | 815 |
"Modified: 8.1.1997 / 14:51:48 / cg" |
219 | 816 |
! ! |
817 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
818 |
!Launcher methodsFor:'actions - projects'! |
219 | 819 |
|
820 |
newProject |
|
921 | 821 |
"creates a new project & opens a projectView for it" |
822 |
||
219 | 823 |
Project notNil ifTrue:[ |
1910 | 824 |
(ProjectView for:(Project new)) open |
219 | 825 |
] |
921 | 826 |
|
827 |
"Modified: 8.1.1997 / 14:52:07 / cg" |
|
219 | 828 |
! |
829 |
||
830 |
selectProject |
|
921 | 831 |
"asks for and switch to another project" |
832 |
||
219 | 833 |
|list box| |
834 |
||
835 |
Project notNil ifTrue:[ |
|
1910 | 836 |
list := Project allInstances. |
837 |
box := ListSelectionBox new. |
|
838 |
box list:(list collect:[:p | p name]). |
|
839 |
box title:(resources string:'select a project'). |
|
840 |
box action:[:selection | |
|
841 |
|project| |
|
842 |
||
843 |
project := list detect:[:p | p name = selection] ifNone:[nil]. |
|
844 |
project isNil ifTrue:[ |
|
845 |
transcript showCR:'no such project.' |
|
846 |
] ifFalse:[ |
|
847 |
project showViews. |
|
848 |
Project current:project |
|
849 |
] |
|
850 |
]. |
|
851 |
box showAtPointer. |
|
852 |
box destroy |
|
219 | 853 |
] |
549 | 854 |
|
921 | 855 |
"Modified: 8.1.1997 / 14:52:20 / cg" |
86 | 856 |
! ! |
857 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
858 |
!Launcher methodsFor:'actions - settings'! |
219 | 859 |
|
860 |
compilerSettings |
|
921 | 861 |
"open a dialog on compiler related settings" |
862 |
||
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
863 |
LauncherDialogs compilerSettingsFor:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
864 |
|
1607 | 865 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
866 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
867 |
"Modified: / 31.7.1998 / 15:15:33 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
868 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
869 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
870 |
displaySettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
871 |
"open a dialog on display related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
872 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
873 |
LauncherDialogs displaySettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
874 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
875 |
"Modified: / 9.9.1996 / 22:43:04 / stefan" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
876 |
"Modified: / 31.7.1998 / 15:15:37 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
877 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
878 |
|
1977 | 879 |
editSettings |
880 |
"open a dialog on edit settings" |
|
881 |
||
882 |
LauncherDialogs editSettingsFor:self. |
|
883 |
||
884 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
885 |
"Modified: / 31.7.1998 / 15:17:56 / cg" |
|
886 |
"Created: / 6.1.1999 / 14:14:16 / cg" |
|
887 |
! |
|
888 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
889 |
fontSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
890 |
"open a dialog on font related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
891 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
892 |
LauncherDialogs fontSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
893 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
894 |
"Modified: / 31.7.1998 / 15:15:41 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
895 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
896 |
|
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
897 |
javaSettings |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
898 |
"open a dialog on java related settings" |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
899 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
900 |
LauncherDialogs javaSettingsFor:self. |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
901 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
902 |
"Modified: / 9.9.1996 / 22:43:04 / stefan" |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
903 |
"Created: / 18.7.1998 / 22:33:15 / cg" |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
904 |
"Modified: / 31.7.1998 / 15:15:45 / cg" |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
905 |
! |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
906 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
907 |
keyboardSetting |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
908 |
"open a dialog on keyboard related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
909 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
910 |
LauncherDialogs keyboardSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
911 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
912 |
"Modified: / 9.9.1996 / 22:43:17 / stefan" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
913 |
"Modified: / 31.7.1998 / 15:15:49 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
914 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
915 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
916 |
languageSetting |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
917 |
"open a dialog on language related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
918 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
919 |
LauncherDialogs languageSettingsFor:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
920 |
|
1607 | 921 |
"Modified: / 9.9.1996 / 22:43:27 / stefan" |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
922 |
"Modified: / 31.7.1998 / 15:17:32 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
923 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
924 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
925 |
memorySettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
926 |
"open a dialog on objectMemory related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
927 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
928 |
LauncherDialogs memorySettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
929 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
930 |
"Modified: / 31.7.1998 / 15:17:42 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
931 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
932 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
933 |
messageSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
934 |
"open a dialog on infoMessage related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
935 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
936 |
LauncherDialogs messageSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
937 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
938 |
"Modified: / 31.7.1998 / 15:17:53 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
939 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
940 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
941 |
miscSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
942 |
"open a dialog on misc other settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
943 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
944 |
LauncherDialogs miscSettingsFor:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
945 |
|
1607 | 946 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
947 |
"Modified: / 31.7.1998 / 15:17:56 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
948 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
949 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
950 |
printerSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
951 |
"open a dialog on printer related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
952 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
953 |
LauncherDialogs printerSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
954 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
955 |
"Modified: / 9.9.1996 / 22:43:51 / stefan" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
956 |
"Modified: / 31.7.1998 / 15:18:00 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
957 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
958 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
959 |
restoreSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
960 |
"restore settings from a settings-file." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
961 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
962 |
LauncherDialogs restoreSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
963 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
964 |
"Modified: / 31.7.1998 / 15:18:03 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
965 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
966 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
967 |
saveSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
968 |
"save settings to a settings-file." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
969 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
970 |
LauncherDialogs saveSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
971 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
972 |
"Modified: / 31.7.1998 / 15:18:06 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
973 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
974 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
975 |
sourceAndDebuggerSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
976 |
"open a dialog on misc other settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
977 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
978 |
LauncherDialogs sourceAndDebuggerSettingsFor:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
979 |
|
1607 | 980 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
981 |
"Created: / 17.1.1997 / 17:39:33 / cg" |
|
982 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
983 |
"Modified: / 31.7.1998 / 15:18:09 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
984 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
985 |
|
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
986 |
toolSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
987 |
"open a dialog on tool settings" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
988 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
989 |
LauncherDialogs toolSettingsFor:self. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
990 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
991 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
992 |
"Modified: / 31.7.1998 / 15:17:56 / cg" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
993 |
"Created: / 13.10.1998 / 15:49:08 / cg" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
994 |
! |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
995 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
996 |
viewStyleSetting |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
997 |
"open a dialog on viewStyle related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
998 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
999 |
LauncherDialogs viewStyleSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
1000 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
1001 |
"Modified: / 31.7.1998 / 15:18:12 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1002 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1003 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1004 |
!Launcher methodsFor:'actions - tools'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1005 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1006 |
compressingGarbageCollect |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1007 |
"perform a compressing garbageCollect" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1008 |
|
1645
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1009 |
self withWaitCursorDo:[ObjectMemory verboseGarbageCollect] |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1010 |
|
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1011 |
"Created: / 12.5.1996 / 15:30:15 / cg" |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1012 |
"Modified: / 16.5.1998 / 02:44:00 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1013 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1014 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1015 |
deIconifyAllWindows |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1016 |
|setOfViews| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1017 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1018 |
setOfViews := Project current views asIdentitySet. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1019 |
setOfViews addAll:(Project defaultProject views). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1020 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1021 |
setOfViews do:[:aTopView | |
1910 | 1022 |
aTopView device == Screen current ifTrue:[ |
1023 |
aTopView expand |
|
1024 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1025 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1026 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1027 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1028 |
Transcript topView application deIconifyAllWindows |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1029 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1030 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1031 |
"Modified: 3.3.1997 / 14:13:24 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1032 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1033 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1034 |
findAndDestroyWindow |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1035 |
"find a window (by name) and destroy it" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1036 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1037 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1038 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1039 |
v := self findWindow:'select view to close:'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1040 |
v notNil ifTrue:[ |
1910 | 1041 |
v destroy. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1042 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1043 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1044 |
"Created: 28.10.1996 / 14:39:23 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1045 |
"Modified: 14.10.1997 / 11:25:37 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1046 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1047 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1048 |
findAndRaiseWindow |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1049 |
"find a window (by name) and raise it" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1050 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1051 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1052 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1053 |
v := self findWindow:'select view to raise deiconified:'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1054 |
v notNil ifTrue:[ |
1910 | 1055 |
v raiseDeiconified. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1056 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1057 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1058 |
"Modified: 14.10.1997 / 11:25:42 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1059 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1060 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1061 |
fullScreenHardcopy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1062 |
"after a second (to allow redraw of views under menu ...), |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1063 |
save the contents of the whole screen." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1064 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1065 |
Processor |
1910 | 1066 |
addTimedBlock:[ |
1067 |
self |
|
1068 |
saveScreenImage:(Image fromScreen) |
|
1069 |
defaultName:'screen' |
|
1070 |
] |
|
1071 |
afterSeconds:1 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1072 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1073 |
"Modified: 23.9.1996 / 14:36:14 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1074 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1075 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1076 |
garbageCollect |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1077 |
"perform a non-compressing garbageCollect" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1078 |
|
1645
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1079 |
self withWaitCursorDo:[ObjectMemory reclaimSymbols] |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1080 |
|
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1081 |
"Created: / 12.5.1996 / 15:28:03 / cg" |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1082 |
"Modified: / 16.5.1998 / 02:43:37 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1083 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1084 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1085 |
globalGarbageCollect |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1086 |
"perform a non-compressing garbageCollect" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1087 |
|
1645
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1088 |
self withWaitCursorDo:[ObjectMemory reclaimSymbols] |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1089 |
|
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1090 |
"Created: / 12.5.1996 / 15:28:13 / cg" |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1091 |
"Modified: / 16.5.1998 / 02:43:50 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1092 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1093 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1094 |
iconifyAllWindows |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1095 |
|setOfViews| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1096 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1097 |
setOfViews := Project current views asIdentitySet. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1098 |
setOfViews addAll:(Project defaultProject views). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1099 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1100 |
setOfViews do:[:aTopView | |
1910 | 1101 |
aTopView device == Screen current ifTrue:[ |
1102 |
aTopView collapse |
|
1103 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1104 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1105 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1106 |
"Created: 1.3.1997 / 20:10:58 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1107 |
"Modified: 3.3.1997 / 14:13:11 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1108 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1109 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1110 |
screenHardcopy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1111 |
"after a second (to allow redraw of views under menu ...), |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1112 |
let user specify a rectangular area on the screen |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1113 |
and save its contents." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1114 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1115 |
|area| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1116 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1117 |
Processor |
1910 | 1118 |
addTimedBlock:[ |
1119 |
[Screen current leftButtonPressed] whileTrue:[Delay waitForSeconds:0.05]. |
|
1120 |
||
1121 |
area := Rectangle fromUser. |
|
1122 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
|
1123 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
|
1124 |
] |
|
1125 |
] |
|
1126 |
afterSeconds:1 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1127 |
|
1840 | 1128 |
"Modified: / 18.8.1998 / 14:59:45 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1129 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1130 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1131 |
startApplication:aSymbol |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1132 |
"start an application, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1133 |
popup warnbox if application is not present or autoload failed" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1134 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1135 |
|app| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1136 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1137 |
app := Smalltalk classNamed:aSymbol. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1138 |
app isBehavior ifTrue:[ |
1910 | 1139 |
app isLoaded ifFalse:[ |
1140 |
Autoload autoloadFailedSignal handle:[:ex| |
|
1141 |
^ self warn:(resources string:'Sorry - cannot load %1' with:app name). |
|
1142 |
] do:[ |
|
1143 |
app autoload. |
|
1144 |
]. |
|
1145 |
]. |
|
1146 |
app open. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1147 |
] ifFalse:[ |
1910 | 1148 |
self warn:(resources |
1149 |
string:'Sorry - %1 is not available in this release' |
|
1150 |
with:aSymbol asString). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1151 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1152 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1153 |
"Created: / 19.12.1997 / 13:00:29 / stefan" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1154 |
"Modified: / 19.12.1997 / 14:09:46 / stefan" |
1831 | 1155 |
"Modified: / 14.8.1998 / 13:04:59 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1156 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1157 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1158 |
startFullWindowTreeView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1159 |
"open a windowTree view (on all views)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1160 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1161 |
WindowTreeView open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1162 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1163 |
"Modified: 8.1.1997 / 14:56:04 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1164 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1165 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1166 |
startGUIBuilder |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1167 |
"open a GUIBuilder view" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1168 |
|
1831 | 1169 |
UIPainter isNil ifTrue:[ |
1910 | 1170 |
^ self warn:'The UIPainter is not available in this release.' |
1831 | 1171 |
]. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1172 |
UIPainter open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1173 |
|
1831 | 1174 |
"Created: / 25.7.1997 / 10:56:30 / cg" |
1175 |
"Modified: / 14.8.1998 / 13:05:42 / cg" |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1176 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1177 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1178 |
startNewLauncher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1179 |
"open a real new launcher" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1180 |
|
1831 | 1181 |
NewLauncher isNil ifTrue:[ |
1910 | 1182 |
^ self warn:'The NewLauncher is not available in this release.' |
1831 | 1183 |
]. |
1184 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1185 |
NewLauncher openAt:(self window origin) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1186 |
|
1831 | 1187 |
"Modified: / 14.8.1998 / 13:05:33 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1188 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1189 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1190 |
startStopEventTrace |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1191 |
"start/stop event tracing for a particular view" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1192 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1193 |
|v wg| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1194 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1195 |
v := Screen current viewFromUser. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1196 |
v notNil ifTrue:[ |
1910 | 1197 |
v := v topView. |
1198 |
wg := v windowGroup. |
|
1199 |
wg notNil ifTrue:[ |
|
1200 |
"/ |
|
1201 |
"/ toggle eventTrace in its windowGroup |
|
1202 |
"/ |
|
1203 |
wg traceEvents:(wg preEventHook isNil) |
|
1204 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1205 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1206 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1207 |
"Created: 7.3.1996 / 14:44:22 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1208 |
"Modified: 8.1.1997 / 14:56:44 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1209 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1210 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1211 |
startWindowTreeView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1212 |
"open a windowTree view (on a topView)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1213 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1214 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1215 |
|
1831 | 1216 |
WindowTreeView isNil ifTrue:[ |
1910 | 1217 |
^ self warn:'The WindowTreeView is not available in this release.' |
1831 | 1218 |
]. |
1219 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1220 |
v := self pickAView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1221 |
v notNil ifTrue:[ |
1910 | 1222 |
WindowTreeView openOn:v topView |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1223 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1224 |
|
1831 | 1225 |
"Modified: / 14.8.1998 / 13:05:58 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1226 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1227 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1228 |
viewDestroy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1229 |
"let user pick a view and destroy it. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1230 |
Even allow destroying non-smalltalk views |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1231 |
(also for views which I forgot due to some error)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1232 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1233 |
|device p v id i c| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1234 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1235 |
(Delay forSeconds:1) wait. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1236 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1237 |
device := Screen current. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1238 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1239 |
i isNil ifTrue:[ |
1910 | 1240 |
c := Cursor crossHair |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1241 |
] ifFalse:[ |
1910 | 1242 |
c := Cursor fromImage:i |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1243 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1244 |
p := device pointFromUserShowing:c. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1245 |
id := device viewIdFromPoint:p. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1246 |
v := device viewFromId:id. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1247 |
v notNil ifTrue:[ |
1910 | 1248 |
v topView destroy. |
1249 |
^ self |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1250 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1251 |
id = device rootView id ifTrue:[ |
1910 | 1252 |
^ self |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1253 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1254 |
(Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1255 |
ifTrue:[ |
1910 | 1256 |
device destroyView:nil withId:id |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1257 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1258 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1259 |
"Modified: 18.9.1995 / 23:13:32 / claus" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1260 |
"Modified: 19.10.1997 / 03:09:20 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1261 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1262 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1263 |
viewHardcopy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1264 |
"after a second (to allow redraw of views under menu ...), |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1265 |
let user specify a view and save its contents." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1266 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1267 |
Processor |
1910 | 1268 |
addTimedBlock:[ |
1269 |
|v| |
|
1270 |
||
1271 |
v := Screen current viewFromUser. |
|
1272 |
v notNil ifTrue:[ |
|
1273 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
|
1274 |
] |
|
1275 |
] |
|
1276 |
afterSeconds:1 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1277 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1278 |
"Modified: 19.10.1997 / 03:09:34 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1279 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1280 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1281 |
viewInspect |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1282 |
"let user pick a view and inspect it. Only smalltalk views are allowed" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1283 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1284 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1285 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1286 |
v := self pickAView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1287 |
v notNil ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1288 |
"/ v topView inspect |
1910 | 1289 |
v inspect |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1290 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1291 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1292 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1293 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1294 |
!Launcher methodsFor:'change & update'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1295 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1296 |
update:something with:aParameter from:changedObject |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1297 |
"care for project changes & update my infoView" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1298 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1299 |
((something == #currentProject) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1300 |
or:[changedObject == Project]) ifTrue:[ |
1910 | 1301 |
self updateInfo. |
1302 |
^ self |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1303 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1304 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1305 |
"Modified: 28.7.1997 / 18:39:39 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1306 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1307 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1308 |
!Launcher methodsFor:'drag & drop'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1309 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1310 |
canDrop:aCollectionOfDropObjects in:aComponent |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1311 |
"I accept fileObjects in the fileBrowser button |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1312 |
and open a fileBrowser ..." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1313 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1314 |
aCollectionOfDropObjects size ~~ 1 ifTrue:[^ false]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1315 |
^ aCollectionOfDropObjects first isFileObject |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1316 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1317 |
"Modified: 11.4.1997 / 12:42:59 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1318 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1319 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1320 |
drop:aCollectionOfDropObjects in:aComponent at:aPoint |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1321 |
"I accept fileObjects and will open a fileBrowser ..." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1322 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1323 |
|singleDropObject| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1324 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1325 |
aCollectionOfDropObjects size == 1 ifFalse:[ |
1910 | 1326 |
transcript showCR:'can only drop single objects'. |
1327 |
^ self |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1328 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1329 |
singleDropObject := aCollectionOfDropObjects first. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1330 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1331 |
singleDropObject isFileObject ifTrue:[ |
1910 | 1332 |
FileBrowser openOnFileNamed:(singleDropObject theObject pathName) |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1333 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1334 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1335 |
"Modified: 11.4.1997 / 12:44:29 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1336 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1337 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1338 |
!Launcher methodsFor:'dynamic menus'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1339 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1340 |
addMenu:name withItems:items actions:actions |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1341 |
"dynamically add a new (user-)menu to the menu panel. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1342 |
This allows applications to install items for themself |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1343 |
dynamically in the launcher." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1344 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1345 |
|subMenu| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1346 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1347 |
myMenu add:name selector:(name asSymbol) before:#help. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1348 |
subMenu := MenuView forMenu:myMenu. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1349 |
subMenu labels:items. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1350 |
subMenu actions:actions. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1351 |
myMenu at:name putMenu:subMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1352 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1353 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1354 |
|launcher actionBlocks| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1355 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1356 |
actionBlocks := Array new:3. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1357 |
actionBlocks at:1 put:[Transcript showCR:'foo']. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1358 |
actionBlocks at:2 put:[Transcript showCR:'bar']. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1359 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1360 |
launcher := Transcript topView application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1361 |
launcher |
1910 | 1362 |
addMenu:'misc' |
1363 |
withItems:#('foo' 'bar') |
|
1364 |
actions:actionBlocks |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1365 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1366 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1367 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1368 |
|launcher actionBlocks| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1369 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1370 |
actionBlocks := Array new:3. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1371 |
actionBlocks at:1 put:[RDoItServer startServer]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1372 |
actionBlocks at:2 put:[RDoItServer killServer]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1373 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1374 |
launcher := Transcript topView application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1375 |
launcher |
1910 | 1376 |
addMenu:'misc' |
1377 |
withItems:#('start rdoit server' 'stop rdoit server') |
|
1378 |
actions:actionBlocks |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1379 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1380 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1381 |
"Modified: 5.7.1996 / 11:45:19 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1382 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1383 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1384 |
menuAt:nameSymbol |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1385 |
"return a menu by name" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1386 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1387 |
^ myMenu subMenuAt:nameSymbol |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1388 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1389 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1390 |
|launcher demoMenu| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1391 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1392 |
launcher := Transcript topView application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1393 |
demoMenu := launcher menuAt:#demos. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1394 |
demoMenu |
1910 | 1395 |
addLabels:#('-' 'fooBar') |
1396 |
selectors:#(nil fooBar). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1397 |
demoMenu actionAt:#fooBar put:[Transcript showCR:'fooBar'] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1398 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1399 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1400 |
"Created: 11.7.1996 / 15:35:13 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1401 |
"Modified: 11.7.1996 / 15:42:25 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1402 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1403 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1404 |
removeMenu:name |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1405 |
"dynamically remove a (user-)menu from the menu panel. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1406 |
This allows applications to de-install items for themself |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1407 |
dynamically in the launcher." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1408 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1409 |
myMenu remove:name |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1410 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1411 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1412 |
|launcher actionBlocks| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1413 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1414 |
actionBlocks := Array new:3. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1415 |
actionBlocks at:1 put:[Transcript showCR:'foo']. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1416 |
actionBlocks at:2 put:[Transcript showCR:'bar']. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1417 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1418 |
launcher := Transcript topView application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1419 |
launcher |
1910 | 1420 |
addMenu:'misc' |
1421 |
withItems:#('foo' 'bar') |
|
1422 |
actions:actionBlocks. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1423 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1424 |
Delay waitForSeconds:10. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1425 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1426 |
launcher removeMenu:'misc' |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1427 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1428 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1429 |
"Created: 5.7.1996 / 11:44:54 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1430 |
"Modified: 5.7.1996 / 11:54:36 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1431 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1432 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1433 |
!Launcher methodsFor:'help'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1434 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1435 |
helpTextFor:aComponent |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1436 |
"activeHelp interface: return some help text for a component" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1437 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1438 |
|sel s buttons| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1439 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1440 |
aComponent == transcript ifTrue:[ |
1910 | 1441 |
s := 'TRANSCRIPT_HELP' |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1442 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1443 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1444 |
aComponent == infoView ifTrue:[ |
1910 | 1445 |
s := 'INFOVIEW_HELP' |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1446 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1447 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1448 |
buttons := buttonPanel subViews. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1449 |
(buttons notNil and:[buttons includes:aComponent]) ifTrue:[ |
1910 | 1450 |
"kludge: look for its change selector" |
1451 |
sel := aComponent changeMessage. |
|
1452 |
sel == #startSystemBrowser ifTrue:[ |
|
1453 |
s := 'SBROWSER_BUTTON_HELP' |
|
1454 |
]. |
|
1455 |
sel == #startFileBrowser ifTrue:[ |
|
1456 |
s := 'FBROWSER_BUTTON_HELP' |
|
1457 |
]. |
|
1458 |
sel == #startChangesBrowser ifTrue:[ |
|
1459 |
s := 'CBROWSER_BUTTON_HELP' |
|
1460 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1461 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1462 |
s notNil ifTrue:[ |
1910 | 1463 |
^ resources string:s |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1464 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1465 |
^ nil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1466 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1467 |
"Modified: 8.1.1997 / 14:57:34 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1468 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1469 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1470 |
!Launcher methodsFor:'infoview update'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1471 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1472 |
showActivity:someMessage |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1473 |
"some activityNotification to be forwarded to the user; |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1474 |
show it in the transcript here." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1475 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1476 |
transcript showCR:someMessage; endEntry |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1477 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1478 |
"Created: 23.12.1995 / 12:38:29 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1479 |
"Modified: 5.7.1996 / 13:13:15 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1480 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1481 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1482 |
updateInfo |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1483 |
"update the infoView from the current project" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1484 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1485 |
|project projectName projectDir packageName defNameSpace msg args| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1486 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1487 |
(Project isNil or:[(project := Project current) isNil]) ifTrue:[ |
1910 | 1488 |
projectName := '* none *'. |
1489 |
projectDir := '.'. |
|
1490 |
packageName := '* none *'. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1491 |
] ifFalse:[ |
1910 | 1492 |
projectName := project name. |
1493 |
projectDir := project directory. |
|
1494 |
packageName := project packageName. |
|
1495 |
defNameSpace := project defaultNameSpace. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1496 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1497 |
defNameSpace isNil ifTrue:[ |
1910 | 1498 |
defNameSpace := Smalltalk. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1499 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1500 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1501 |
defNameSpace == Smalltalk ifTrue:[ |
1910 | 1502 |
msg := 'project: ''%1'' fileOut to: ''%3'' package: ''%2'''. |
1503 |
args := Array |
|
1504 |
with:projectName |
|
1505 |
with:packageName |
|
1506 |
with:(projectDir contractTo:30). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1507 |
] ifFalse:[ |
1910 | 1508 |
msg := 'project: ''%1'' fileOut to: ''%3'' package: ''%2'' nameSpace: %4'. |
1509 |
args := Array |
|
1510 |
with:projectName |
|
1511 |
with:packageName |
|
1512 |
with:(projectDir contractTo:30) |
|
1513 |
with:defNameSpace name. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1514 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1515 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1516 |
projectInfoHolder value:(resources string:msg withArgs:args) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1517 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1518 |
"Created: 28.7.1997 / 18:39:15 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1519 |
"Modified: 28.7.1997 / 18:42:40 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1520 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1521 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1522 |
!Launcher methodsFor:'initialize - menus'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1523 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1524 |
disableDangerousMenuItemsInRemoteLauncher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1525 |
"if I am a remote launcher (multidisplay operation), |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1526 |
disable menus which are dangerous or affect common state. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1527 |
These operations have to |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1528 |
be performed on the main screen." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1529 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1530 |
isMainLauncher ifFalse:[ |
1910 | 1531 |
(myMenu menuAt:#file) disableAll:#(snapshot snapshotAndExit objectModuleDialog exit). |
1532 |
(myMenu menuAt:#projects) disableAll. |
|
1533 |
(myMenu menuAt:#settings) disableAll:#(languageSetting viewStyleSetting fontSettings printerSettings messageSettings compilerSettings sourceAndDebuggerSettings memorySettings miscSettings saveSettings restoreSettings). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1534 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1535 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1536 |
"Created: 5.7.1996 / 17:00:50 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1537 |
"Modified: 11.4.1997 / 09:19:51 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1538 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1539 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1540 |
setupAboutMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1541 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1542 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1543 |
"setup the about- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1544 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1545 |
myMenu at:#about |
1910 | 1546 |
putLabels:(resources array:#( |
1547 |
'about Smalltalk/X ...' |
|
1548 |
'-' |
|
1549 |
'licence conditions' |
|
1550 |
)) |
|
1551 |
selectors:#( |
|
1552 |
#about |
|
1553 |
nil |
|
1554 |
#showLicenceConditions |
|
1555 |
) |
|
1556 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1557 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1558 |
"Created: / 8.1.1997 / 14:03:20 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1559 |
"Modified: / 29.10.1997 / 03:40:36 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1560 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1561 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1562 |
setupClassesMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1563 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1564 |
|
1745
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1565 |
|m labels selectors| |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1566 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1567 |
"setup the classes- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1568 |
|
1745
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1569 |
labels := #( |
1910 | 1570 |
'system browser' |
1571 |
'class browser ...' |
|
1572 |
'full class browser ...' |
|
1573 |
'class hierarchy browser ...' |
|
1574 |
'class tree' |
|
1575 |
'-' |
|
1576 |
'implementors ...' |
|
1577 |
'senders ...' |
|
1578 |
'special' |
|
1579 |
'-' |
|
1580 |
'change browser' |
|
1581 |
). |
|
1745
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1582 |
|
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1583 |
selectors := #( |
1910 | 1584 |
#startSystemBrowser |
1585 |
#startClassBrowser |
|
1586 |
#startFullClassBrowser |
|
1587 |
#startClassHierarchyBrowser |
|
1588 |
#startClassTreeView |
|
1589 |
nil |
|
1590 |
#browseImplementors |
|
1591 |
#browseSenders |
|
1592 |
#special |
|
1593 |
nil |
|
1594 |
#startChangesBrowser |
|
1595 |
). |
|
1745
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1596 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1597 |
myMenu at:#classes |
1910 | 1598 |
putLabels:(resources array:labels) |
1599 |
selectors:selectors |
|
1600 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1601 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1602 |
m := myMenu menuAt:#classes. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1603 |
m subMenuAt:#special |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1604 |
put:(PopUpMenu |
1910 | 1605 |
itemList: #( |
1606 |
('references to undeclared' #browseUndeclared ) |
|
1607 |
('resource methods ...' #browseResources ) |
|
1608 |
('show break/trace points' #browseAllBreakAndTracePoints ) |
|
1609 |
('-' ) |
|
1610 |
('remove all break/trace points' #removeAllBreakAndTracePoints ) |
|
1611 |
) |
|
1612 |
resources:resources |
|
1613 |
). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1614 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1615 |
(JavaBrowser notNil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1616 |
and:[JavaBrowser isLoaded]) ifTrue:[ |
1910 | 1617 |
(myMenu subMenuAt:#classes) |
1618 |
addLabels:(resources array:#('-' 'java browser')) |
|
1619 |
selectors:#(nil startJavaBrowser) |
|
1620 |
after:#startClassTreeView |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1621 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1622 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1623 |
"Created: / 8.1.1997 / 14:05:44 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1624 |
"Modified: / 13.1.1998 / 09:57:46 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1625 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1626 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1627 |
setupDemoMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1628 |
"setup the demo- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1629 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1630 |
<resource: #programMenu> |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1631 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1632 |
|m| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1633 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1634 |
myMenu at:#demos |
1910 | 1635 |
putLabels:(resources array:#( |
1636 |
'goodies' |
|
1637 |
'games' |
|
1638 |
'geometric designs' |
|
1639 |
'simple animations' |
|
1640 |
'3D graphics' |
|
1641 |
'graphic editors' |
|
1642 |
)) |
|
1643 |
selectors:#( |
|
1644 |
goodies |
|
1645 |
games |
|
1646 |
geometricDesigns |
|
1647 |
simpleAnimations |
|
1648 |
#'3Dgraphics' |
|
1649 |
#graphicEditors |
|
1650 |
) |
|
1651 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1652 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1653 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1654 |
only to show two different ways of defining a popUpMenu, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1655 |
we use labels:selectors:receiver: here: |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1656 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1657 |
m := myMenu menuAt:#demos. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1658 |
m subMenuAt:#games |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1659 |
put:(PopUpMenu |
1910 | 1660 |
itemList:#( |
1661 |
('Tetris' startTetris ) |
|
1662 |
('Tic Tac Toe' startTicTacToe ) |
|
1663 |
('Tic Tac Toe (2 players)' startTicTacToe2 ) |
|
1664 |
) |
|
1665 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1666 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1667 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1668 |
and labels:selector:args:receiver: here: |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1669 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1670 |
m subMenuAt:#geometricDesigns |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1671 |
put:(PopUpMenu |
1910 | 1672 |
itemList:#( |
1673 |
('Pen demo' #openDemo: nil PenDemo ) |
|
1674 |
('Commander demo' #openDemo: nil CommanderDemo ) |
|
1675 |
('-' ) |
|
1676 |
('Mandelbrot demo' #openDemo: nil ComplexIterationView ) |
|
1677 |
('Fractal plants demo' #openDemo: nil FractalPlantsDemo ) |
|
1678 |
('Fractal patterns demo' #openDemo: nil FractalPatternsDemo ) |
|
1679 |
('more fractal patterns demo' #openDemo: nil ArmchairUniverseDemo ) |
|
1680 |
) |
|
1681 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1682 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1683 |
m subMenuAt:#simpleAnimations |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1684 |
put:(PopUpMenu |
1910 | 1685 |
itemList:#( |
1686 |
('Animation' #openDemo: nil Animation ) |
|
1687 |
('Globe demo' #openDemo: nil GlobeDemo ) |
|
1688 |
) |
|
1689 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1690 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1691 |
m subMenuAt:#'3Dgraphics' |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1692 |
put:(PopUpMenu |
1910 | 1693 |
itemList:#( |
1694 |
('plane' #openDemo: nil GLPlaneDemoView2 ) |
|
1695 |
('tetra' #openDemo: nil GLTetraDemoView ) |
|
1696 |
('cube (wireframe)' #openDemo: nil GLWireCubeDemoView ) |
|
1697 |
('cube (solid)' #openDemo: nil GLCubeDemoView ) |
|
1698 |
('sphere (wireframe)' #openDemo: nil GLWireSphereDemoView ) |
|
1699 |
('doughnut (wireframe)' #openDemo: nil GLDoughnutDemoView ) |
|
1700 |
('planet' #openDemo: nil GLPlanetDemoView ) |
|
1701 |
('teapot' #openDemo: nil GLTeapotDemo ) |
|
1702 |
('logo' #openDemo: nil Logo3DView1 ) |
|
1703 |
('rubics cube' #openDemo: nil RubicsCubeView ) |
|
1704 |
('x/y graph' #openDemo: nil GLXYGraph ) |
|
1705 |
('x/y graph widget' #openDemo: nil #'CodingExamples_GUI::GLXYGraph3DDemo' ) |
|
1706 |
('x/y graph animated' #openDemo: nil #'CodingExamples_GUI::AnimatedGLXYGraph3DDemo') |
|
1707 |
('-' ) |
|
1708 |
('cube (light)' #openDemo: nil GLCubeDemoView2 ) |
|
1709 |
('cube (light & texture)' #openDemo: nil GLBrickCubeDemoView ) |
|
1710 |
('sphere (light)' #openDemo: nil GLSphereDemoView2 ) |
|
1711 |
('colored octahedron' #openDemo: nil GLOctaHedronDemoView ) |
|
1712 |
) |
|
1713 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1714 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1715 |
m subMenuAt:#graphicEditors |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1716 |
put:(PopUpMenu |
1910 | 1717 |
itemList:#( |
1718 |
('DrawTool' #openDemo: nil DrawTool ) |
|
1719 |
('LogicTool' #openDemo: nil LogicTool ) |
|
1720 |
('Paint Demo' #openDemo: nil ColorDrawDemo3 ) |
|
1721 |
) |
|
1722 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1723 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1724 |
m subMenuAt:#goodies |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1725 |
put:(PopUpMenu |
1910 | 1726 |
itemList:#( |
1727 |
('clock' #openDemo: nil Clock ) |
|
1728 |
('digital clock' #openDemo: nil DigitalClockView ) |
|
1729 |
('calendar' #openDemo: nil Calendar ) |
|
1730 |
('calculator' #openDemo: nil CalculatorView ) |
|
1731 |
('-' ) |
|
1732 |
('mail tool' #openDemo: nil MailView ) |
|
1733 |
('news tool' #openDemo: nil NewsView ) |
|
1734 |
('ftp tool' #openDemo: nil FTPTool ) |
|
1735 |
('telnet tool' #openDemo: nil TelnetTool ) |
|
1736 |
) |
|
1737 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1738 |
|
1761 | 1739 |
"Modified: / 28.7.1998 / 15:17:12 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1740 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1741 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1742 |
setupFileMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1743 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1744 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1745 |
"setup the file- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1746 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1747 |
|l s| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1748 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1749 |
l := #( |
1910 | 1750 |
'file browser' |
1751 |
'-' |
|
1752 |
'modules ...' |
|
1753 |
'-' |
|
1754 |
'snapshot ...' |
|
1755 |
'snapshot & exit ...' |
|
1756 |
'exit smalltalk ...' |
|
1757 |
). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1758 |
s := #( |
1910 | 1759 |
#startFileBrowser |
1760 |
nil |
|
1761 |
#objectModuleDialog |
|
1762 |
nil |
|
1763 |
#snapshot |
|
1764 |
#snapshotAndExit |
|
1765 |
#exit |
|
1766 |
). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1767 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1768 |
myMenu at:#file |
1910 | 1769 |
putLabels:(resources array:l) |
1770 |
selectors:s |
|
1771 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1772 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1773 |
"Created: / 8.1.1997 / 14:04:15 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1774 |
"Modified: / 29.10.1997 / 03:40:49 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1775 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1776 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1777 |
setupHelpMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1778 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1779 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1780 |
"setup the help- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1781 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1782 |
|l s| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1783 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1784 |
ActiveHelp notNil ifTrue:[ |
1910 | 1785 |
l := #( |
1786 |
'what''s new' |
|
1787 |
'index' |
|
1788 |
'-' |
|
1789 |
'ST/X online documentation' |
|
1790 |
'class documentation' |
|
1791 |
'-' |
|
1792 |
'print documentation ...' |
|
1793 |
'-' |
|
1794 |
'active help \c' |
|
1795 |
). |
|
1796 |
s := #( |
|
1797 |
#startWhatsNewDocumentation |
|
1798 |
#startDocumentationIndex |
|
1799 |
nil |
|
1800 |
#startDocumentationTool |
|
1801 |
#startClassDocumentation |
|
1802 |
nil |
|
1803 |
#showBookPrintDocument |
|
1804 |
nil |
|
1805 |
#toggleActiveHelp: |
|
1806 |
) |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1807 |
] ifFalse:[ |
1910 | 1808 |
l := #( |
1809 |
'what''s new' |
|
1810 |
'index' |
|
1811 |
'-' |
|
1812 |
'ST/X online documentation' |
|
1813 |
'class documentation' |
|
1814 |
'-' |
|
1815 |
'print documentation ...' |
|
1816 |
). |
|
1817 |
s := #( |
|
1818 |
#startWhatsNewDocumentation |
|
1819 |
#startDocumentationIndex |
|
1820 |
nil |
|
1821 |
#startDocumentationTool |
|
1822 |
#startClassDocumentation |
|
1823 |
nil |
|
1824 |
#showBookPrintDocument |
|
1825 |
) |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1826 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1827 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1828 |
myMenu at:#help |
1910 | 1829 |
putLabels:(resources array:l) |
1830 |
selectors:s |
|
1831 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1832 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1833 |
(ActiveHelp notNil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1834 |
and:[ActiveHelp isActive]) ifTrue:[ |
1910 | 1835 |
(myMenu menuAt:#help) checkToggleAt:#toggleActiveHelp: put:true |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1836 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1837 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1838 |
"Created: / 8.1.1997 / 14:08:09 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1839 |
"Modified: / 29.10.1997 / 03:40:53 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1840 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1841 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1842 |
setupMainMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1843 |
"setup the pulldown menus main items. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1844 |
Extracted into a separate method, to allow subclasses to |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1845 |
add their own entries" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1846 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1847 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1848 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1849 |
|icon| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1850 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1851 |
myMenu labels:(resources array:#( |
1910 | 1852 |
about |
1853 |
file |
|
1854 |
classes |
|
1855 |
tools |
|
1856 |
projects |
|
1857 |
settings |
|
1858 |
demos |
|
1859 |
help)). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1860 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1861 |
if there is a bitmap, change 'about' to the ST/X icon |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1862 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1863 |
icon := self class smallAboutIcon. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1864 |
icon notNil ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1865 |
"/ icon := icon on:device. |
1910 | 1866 |
myMenu labels at:1 put:icon. |
1867 |
myMenu height:(myMenu height max:(icon height + (View viewSpacing * 2))) |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1868 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1869 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1870 |
myMenu selectors:#( |
1910 | 1871 |
#about |
1872 |
#file |
|
1873 |
#classes |
|
1874 |
#tools |
|
1875 |
#projects |
|
1876 |
#settings |
|
1877 |
#demos |
|
1878 |
#help). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1879 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1880 |
"Created: / 8.1.1997 / 13:58:50 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1881 |
"Modified: / 29.10.1997 / 03:41:00 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1882 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1883 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1884 |
setupMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1885 |
"setup the pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1886 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1887 |
|mainItems| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1888 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1889 |
self setupMainMenu. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1890 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1891 |
mainItems := myMenu selectors. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1892 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1893 |
(mainItems includes:#about) ifTrue:[ |
1910 | 1894 |
"/ if not redefined without an about-menu ... |
1895 |
self setupAboutMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1896 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1897 |
(mainItems includes:#file) ifTrue:[ |
1910 | 1898 |
"/ if not redefined without a file-menu ... |
1899 |
self setupFileMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1900 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1901 |
(mainItems includes:#classes) ifTrue:[ |
1910 | 1902 |
"/ if not redefined without a classes-menu ... |
1903 |
self setupClassesMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1904 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1905 |
(mainItems includes:#projects) ifTrue:[ |
1910 | 1906 |
"/ if not redefined without a projects-menu ... |
1907 |
self setupProjectsMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1908 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1909 |
(mainItems includes:#settings) ifTrue:[ |
1910 | 1910 |
"/ if not redefined without a settings-menu ... |
1911 |
self setupSettingsMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1912 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1913 |
(mainItems includes:#tools) ifTrue:[ |
1910 | 1914 |
"/ if not redefined without a tools-menu ... |
1915 |
self setupToolsMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1916 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1917 |
(mainItems includes:#demos) ifTrue:[ |
1910 | 1918 |
"/ if not redefined without a demos-menu ... |
1919 |
self setupDemoMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1920 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1921 |
(mainItems includes:#help) ifTrue:[ |
1910 | 1922 |
"/ if not redefined without a help-menu ... |
1923 |
self setupHelpMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1924 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1925 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1926 |
self disableDangerousMenuItemsInRemoteLauncher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1927 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1928 |
"Modified: 8.1.1997 / 14:09:47 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1929 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1930 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1931 |
setupProjectsMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1932 |
"setup the projects- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1933 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1934 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1935 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1936 |
myMenu at:#projects |
1910 | 1937 |
putLabels:(resources array:#( |
1938 |
'new project' |
|
1939 |
'-' |
|
1940 |
'select project ...' |
|
1941 |
)) |
|
1942 |
selectors:#( |
|
1943 |
#newProject |
|
1944 |
nil |
|
1945 |
#selectProject |
|
1946 |
) |
|
1947 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1948 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1949 |
"Created: / 8.1.1997 / 14:06:18 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1950 |
"Modified: / 29.10.1997 / 03:41:09 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1951 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1952 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1953 |
setupSettingsMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1954 |
"setup the settings- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1955 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1956 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1957 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1958 |
myMenu at:#settings |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1959 |
putLabels:(resources array:#( |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1960 |
'language...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1961 |
'show keyboard mappings...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1962 |
'view style...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1963 |
'fonts...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1964 |
'printer...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1965 |
'messages...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1966 |
'compilation...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1967 |
'source & debugger...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1968 |
'tools...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1969 |
'object memory...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1970 |
'screen...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1971 |
"/ 'java...' |
1977 | 1972 |
'editing...' |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1973 |
'misc...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1974 |
'=' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1975 |
'save settings...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1976 |
'restore settings...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1977 |
)) |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1978 |
selectors:#( |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1979 |
#languageSetting |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1980 |
#keyboardSetting |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1981 |
#viewStyleSetting |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1982 |
#fontSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1983 |
#printerSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1984 |
#messageSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1985 |
#compilerSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1986 |
#sourceAndDebuggerSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1987 |
#toolSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1988 |
#memorySettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1989 |
#displaySettings |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
1990 |
"/ #javaSettings |
1977 | 1991 |
#editSettings |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1992 |
#miscSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1993 |
nil |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1994 |
#saveSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1995 |
#restoreSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1996 |
) |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1997 |
receiver:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1998 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1999 |
"Created: / 8.1.1997 / 14:07:00 / cg" |
1977 | 2000 |
"Modified: / 6.1.1999 / 14:13:57 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2001 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2002 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2003 |
setupToolsMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2004 |
"setup the tools- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2005 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2006 |
<resource: #programMenu> |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2007 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2008 |
|m | |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2009 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2010 |
myMenu at:#tools |
1910 | 2011 |
putLabels:(resources array:#( |
2012 |
'workspace' |
|
2013 |
'-' |
|
2014 |
'GUI builder' |
|
2015 |
'-' |
|
2016 |
'new launcher' |
|
2017 |
'-' |
|
2018 |
'monitors' |
|
2019 |
'-' |
|
2020 |
'views' |
|
2021 |
'-' |
|
2022 |
'hardcopy' |
|
2023 |
'-' |
|
2024 |
'misc' |
|
2025 |
)) |
|
2026 |
selectors:#( |
|
2027 |
#startWorkspace |
|
2028 |
nil |
|
2029 |
#startGUIBuilder |
|
2030 |
nil |
|
2031 |
#startNewLauncher |
|
2032 |
nil |
|
2033 |
#monitors |
|
2034 |
nil |
|
2035 |
#views |
|
2036 |
nil |
|
2037 |
#hardcopy |
|
2038 |
nil |
|
2039 |
#misc |
|
2040 |
) |
|
2041 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2042 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2043 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2044 |
m := myMenu menuAt:#tools. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2045 |
m subMenuAt:#monitors |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2046 |
put:(PopUpMenu |
1910 | 2047 |
itemList:#( |
2048 |
('process' #startApplication: nil #ProcessMonitor ) |
|
2049 |
('semaphores' #startApplication: nil #SemaphoreMonitor ) |
|
2050 |
('memory' #startApplication: nil #MemoryMonitor ) |
|
2051 |
('irq latency' #startApplication: nil #InterruptLatencyMonitor ) |
|
2052 |
('event view' #startApplication: nil #EventMonitor ) |
|
2053 |
('event trace' #startApplication: nil #StopEventTrace ) |
|
2054 |
('-' ) |
|
2055 |
('memory usage' #startApplication: nil #MemoryUsageView ) |
|
2056 |
) |
|
2057 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2058 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2059 |
m subMenuAt:#views |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2060 |
put:(PopUpMenu |
1910 | 2061 |
itemList:#( |
2062 |
('iconify all' #iconifyAllWindows ) |
|
2063 |
('de-iconify all' #deIconifyAllWindows ) |
|
2064 |
('-' ) |
|
2065 |
('find & raise ...' #findAndRaiseWindow ) |
|
2066 |
('-' ) |
|
2067 |
('view tree (all views)' #startFullWindowTreeView ) |
|
2068 |
('view tree' #startWindowTreeView ) |
|
2069 |
('-' ) |
|
2070 |
('select & inspect view' #viewInspect ) |
|
2071 |
('-' ) |
|
2072 |
('select & destroy view' #viewDestroy ) |
|
2073 |
('find & destroy ...' #findAndDestroyWindow ) |
|
2074 |
) |
|
2075 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2076 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2077 |
m subMenuAt:#misc |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2078 |
put:(PopUpMenu |
1910 | 2079 |
itemList:#( |
2080 |
('garbage collect' #garbageCollect ) |
|
2081 |
('garbage collect & compress' #compressingGarbageCollect ) |
|
2082 |
) |
|
2083 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2084 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2085 |
m subMenuAt:#hardcopy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2086 |
put:(PopUpMenu |
1910 | 2087 |
itemList:#( |
2088 |
('screen' #fullScreenHardcopy ) |
|
2089 |
('area' #screenHardcopy ) |
|
2090 |
('view' #viewHardcopy ) |
|
2091 |
) |
|
2092 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2093 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2094 |
"Modified: / 31.10.1997 / 16:01:53 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2095 |
"Modified: / 19.12.1997 / 13:15:27 / stefan" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2096 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2097 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2098 |
!Launcher methodsFor:'initialize / release'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2099 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2100 |
addTopViewsToCurrentProject |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2101 |
"ignored here - the launcher is always global (i.e. not project private)." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2102 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2103 |
^ self |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2104 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2105 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2106 |
buttonPanelSpec |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2107 |
"return a spec for the buttons in the panel; |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2108 |
entries consists of selector and bitmap-filename. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2109 |
nil selectors are taken as separators (see setupButtonPanel)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2110 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2111 |
^ #( |
1910 | 2112 |
#(startSystemBrowser 'SBrowser32x32.xbm') |
2113 |
#(startFileBrowser 'FBrowser32x32.xbm') |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2114 |
"/ #(startWorkspace 'Workspace32x32.xbm') |
1910 | 2115 |
#(nil nil) |
2116 |
#(startChangesBrowser 'CBrowser32x32.xbm') |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2117 |
"/ #(nil nil) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2118 |
"/ #(nil nil) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2119 |
"/ #(startDocumentationTool 'book11.ico') |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2120 |
) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2121 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2122 |
"Created: 4.12.1995 / 20:16:18 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2123 |
"Modified: 19.4.1996 / 16:37:46 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2124 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2125 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2126 |
closeDownViews |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2127 |
OpenLaunchers removeIdentical:self ifAbsent:nil. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2128 |
super closeDownViews. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2129 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2130 |
"Created: 5.7.1996 / 13:33:36 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2131 |
"Modified: 1.2.1997 / 12:07:53 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2132 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2133 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2134 |
closeRequest |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2135 |
(self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[ |
1910 | 2136 |
super closeRequest |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2137 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2138 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2139 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2140 |
focusSequence |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2141 |
^ (Array with:myMenu) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2142 |
, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2143 |
(buttonPanel subViews select:[:element | element isKindOf:Button]) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2144 |
"/ , (Array with:Transcript) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2145 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2146 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2147 |
openInterface |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2148 |
"sent by my superclass to open up my interface" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2149 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2150 |
^ self openInterfaceAt:nil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2151 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2152 |
"Modified: / 5.2.1998 / 19:57:39 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2153 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2154 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2155 |
openInterfaceAt:aPoint |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2156 |
"sent by my superclass to open up my interface" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2157 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2158 |
|top icn w sz| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2159 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2160 |
"/ if there is already a transcript on my device, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2161 |
"/ I am a slave launcher with limited functionality. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2162 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2163 |
Transcript notNil ifTrue:[ |
1910 | 2164 |
Transcript ~~ Stderr ifTrue:[ |
2165 |
isMainLauncher := (Transcript graphicsDevice == device). |
|
2166 |
] ifFalse:[ |
|
2167 |
isMainLauncher := true |
|
2168 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2169 |
] ifFalse:[ |
1910 | 2170 |
isMainLauncher := true |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2171 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2172 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2173 |
top := StandardSystemView onDevice:device. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2174 |
top label:'Smalltalk/X'; iconLabel:'ST/X Launcher'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2175 |
top extent:(400@300 ). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2176 |
aPoint notNil ifTrue:[ |
1910 | 2177 |
top origin:aPoint |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2178 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2179 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2180 |
icn := self class aboutIcon. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2181 |
icn notNil ifTrue:[ |
1910 | 2182 |
icn := icn magnifiedTo:(sz := device preferredIconSize). |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2183 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2184 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2185 |
icn notNil ifTrue:[ |
1910 | 2186 |
(device supportsDeepIcons not |
2187 |
and:[device supportsIconViews |
|
2188 |
and:[device depth > 1]]) ifTrue:[ |
|
2189 |
w := View extent:sz. |
|
2190 |
w viewBackground:icn. |
|
2191 |
top iconView:w |
|
2192 |
] ifFalse:[ |
|
2193 |
top icon:icn. |
|
2194 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2195 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2196 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2197 |
"/ device supportsDeepIcons ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2198 |
"/ icn := self class aboutIcon. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2199 |
"/ icn notNil ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2200 |
"/ icn := icn magnifiedTo:(sz := device preferredIconSize). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2201 |
"/ icn := Depth8Image fromImage:icn. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2202 |
"/ top icon:icn |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2203 |
"/ ]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2204 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2205 |
"/ ] ifFalse:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2206 |
"/ device supportsIconViews ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2207 |
"/ icn := self class aboutIcon. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2208 |
"/ icn notNil ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2209 |
"/ icn := icn magnifiedTo:(sz := device preferredIconSize). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2210 |
"/ w := View extent:sz. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2211 |
"/ w viewBackground:icn. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2212 |
"/ top iconView:w |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2213 |
"/ ]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2214 |
"/ ] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2215 |
"/ ]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2216 |
|
1707 | 2217 |
self createBuilder. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2218 |
self setupViewsIn:top. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2219 |
top application:self. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2220 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2221 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2222 |
open with higher prio to allow interaction even while things |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2223 |
are running ... |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2224 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2225 |
top openWithPriority:(Processor userSchedulingPriority + 1). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2226 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2227 |
OpenLaunchers isNil ifTrue:[ |
1910 | 2228 |
OpenLaunchers := OrderedCollection new. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2229 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2230 |
OpenLaunchers add:self. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2231 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2232 |
^ builder |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2233 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2234 |
"Created: / 5.2.1998 / 19:43:44 / cg" |
1707 | 2235 |
"Modified: / 19.6.1998 / 03:35:41 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2236 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2237 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2238 |
release |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2239 |
OpenLaunchers removeIdentical:self ifAbsent:nil. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2240 |
super release |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2241 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2242 |
"Modified: 28.7.1997 / 18:40:55 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2243 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2244 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2245 |
restarted |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2246 |
"image restart - since WindowGroup recreates the process with |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2247 |
the default priority, we have to raise the prio again. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2248 |
Mhmh - this looks like a bug to me ... |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2249 |
Also, the cursor (which was stored as a write or waitCursor) must |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2250 |
be reset to normal." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2251 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2252 |
Processor activeProcess priority:(Processor userSchedulingPriority + 1). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2253 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2254 |
super restarted |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2255 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2256 |
"Modified: 1.6.1996 / 16:58:25 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2257 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2258 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2259 |
saveAndTerminateRequest |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2260 |
"some windowManagers can send this, to shutDown an application |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2261 |
but let it save its state before, for later restart. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2262 |
Although I have not yet encountered such a windowManager, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2263 |
we are already prepared for this ;-)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2264 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2265 |
self snapshot. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2266 |
super saveAndTerminateRequest |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2267 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2268 |
"Created: 5.7.1996 / 13:07:45 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2269 |
"Modified: 5.7.1996 / 13:08:55 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2270 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2271 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2272 |
setupButtonPanelIn:aTopView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2273 |
"create the buttonPanel" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2274 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2275 |
|spc mh buttonSize| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2276 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2277 |
spc := View viewSpacing // 2. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2278 |
buttonPanel := HorizontalPanelView in:aTopView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2279 |
buttonPanel level:-1; borderWidth:0. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2280 |
buttonPanel horizontalLayout:#leftSpace. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2281 |
"/ buttonPanel verticalLayout:#centerSpace. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2282 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2283 |
buttonSize := self class buttonImageSize. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2284 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2285 |
"/ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2286 |
"/ the buttonSpec is a collection of: |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2287 |
"/ #( selector iconFileName ) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2288 |
"/ or: |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2289 |
"/ #( selector (className iconQuerySelector) ) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2290 |
"/ or" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2291 |
"/ #( nil ) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2292 |
"/ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2293 |
self buttonPanelSpec do:[:entry | |
1910 | 2294 |
|sel b sep img iconSpec v| |
2295 |
||
2296 |
sel := entry at:1. |
|
2297 |
sel isNil ifTrue:[ |
|
2298 |
sep := View in:buttonPanel. |
|
2299 |
sep extent:32@1; borderWidth:0. |
|
2300 |
] ifFalse:[ |
|
2301 |
iconSpec := entry at:2. |
|
2302 |
iconSpec isArray ifTrue:[ |
|
2303 |
img := (Smalltalk classNamed:(iconSpec at:1)) perform:(iconSpec at:2). |
|
2304 |
] ifFalse:[ |
|
2305 |
img := Image fromFile:iconSpec. |
|
2306 |
]. |
|
2307 |
(img notNil and:[buttonSize notNil]) ifTrue:[ |
|
2308 |
img extent ~= buttonSize ifTrue:[ |
|
2309 |
img := img magnifiedTo:buttonSize |
|
2310 |
] |
|
2311 |
]. |
|
2312 |
||
2313 |
b := Button new. |
|
2314 |
b form:img. |
|
2315 |
b model:self; changeMessage:sel. |
|
2316 |
||
2317 |
b styleSheet name = 'win95' ifTrue:[ |
|
2318 |
||
2319 |
false ifTrue:[ |
|
2320 |
"/ make buttons flat, popping up when entered ... |
|
2321 |
||
2322 |
b enterLevel: 1. |
|
2323 |
b leaveLevel: 0. |
|
2324 |
buttonPanel addSubView:b. |
|
2325 |
||
2326 |
] ifFalse:[ |
|
2327 |
"/ make buttons flat, but given them a 3D frame ... |
|
2328 |
||
2329 |
v := View in:buttonPanel. |
|
2330 |
v addSubView:b. |
|
2331 |
v level:-1. |
|
2332 |
b passiveLevel:1; activeLevel:-1. |
|
2333 |
v extent:(b preferredExtent |
|
2334 |
+ b borderWidth + b borderWidth |
|
2335 |
+ b margin + b margin |
|
2336 |
+ v margin + v margin). |
|
2337 |
v preferredExtent:v extent. |
|
2338 |
b origin:(v margin asPoint). |
|
2339 |
]. |
|
2340 |
b enteredBackgroundColor:(Color grey:80). |
|
2341 |
] ifFalse:[ |
|
2342 |
buttonPanel addSubView:b. |
|
2343 |
]. |
|
2344 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2345 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2346 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2347 |
mh := myMenu height. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2348 |
buttonPanel origin:0.0 @ (mh + spc) |
1910 | 2349 |
corner:(1.0 @ (mh + spc + buttonPanel preferredExtent y)). |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2350 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2351 |
buttonPanel leftInset:spc; rightInset:spc. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2352 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2353 |
"Modified: 26.4.1997 / 21:02:39 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2354 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2355 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2356 |
setupInfoViewIn:topView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2357 |
"create the infoView" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2358 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2359 |
|spc halfSpc| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2360 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2361 |
spc := View viewSpacing. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2362 |
infoView := Label label:'' in:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2363 |
infoView adjust:#left; borderWidth:0. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2364 |
infoView level:-1. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2365 |
transcript superView bottomInset:(infoView height + spc). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2366 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2367 |
infoView is3D ifTrue:[ |
1910 | 2368 |
halfSpc := spc // 2. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2369 |
] ifFalse:[ |
1910 | 2370 |
halfSpc := 0 |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2371 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2372 |
infoView topInset:(infoView height negated - spc + transcript borderWidth); |
1910 | 2373 |
bottomInset:halfSpc; |
2374 |
leftInset:halfSpc; |
|
2375 |
rightInset:halfSpc. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2376 |
infoView origin:0.0 @ 1.0 corner:1.0 @ 1.0. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2377 |
projectInfoHolder := '' asValue. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2378 |
infoView labelChannel:projectInfoHolder. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2379 |
self updateInfo. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2380 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2381 |
Project notNil ifTrue:[ |
1910 | 2382 |
Project addDependent:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2383 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2384 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2385 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2386 |
Launcher open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2387 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2388 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2389 |
"Modified: 9.9.1996 / 22:44:15 / stefan" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2390 |
"Modified: 28.7.1997 / 18:42:30 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2391 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2392 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2393 |
setupOtherViewsIn:aTopView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2394 |
"a hook - allows redefinition in your personal subclass. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2395 |
For example, add a clock:" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2396 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2397 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2398 |
|sz clock space halfSpace| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2399 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2400 |
sz := buttonPanel innerHeight - (buttonPanel level abs*2). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2401 |
space := View viewSpacing. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2402 |
halfSpace := space // 2. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2403 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2404 |
buttonPanel rightInset:sz+(space * 2). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2405 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2406 |
clock := ClockView in:buttonPanel topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2407 |
clock borderWidth:1. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2408 |
clock showSeconds:false. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2409 |
clock extent:(sz @ sz). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2410 |
clock origin:(1.0 @ (buttonPanel origin y + halfSpace)). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2411 |
clock leftInset:sz negated - 2 - halfSpace. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2412 |
clock rightInset:halfSpace. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2413 |
clock level:1. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2414 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2415 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2416 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2417 |
setupTranscriptIn:aView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2418 |
"create the transcript view" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2419 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2420 |
|v launcher| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2421 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2422 |
"/ check if this is an additional launcher on a remote display. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2423 |
"/ if so, do not close the real launcher. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2424 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2425 |
(Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[ |
1910 | 2426 |
isMainLauncher ifTrue:[ |
2427 |
launcher := Transcript topView application |
|
2428 |
] ifFalse:[ |
|
2429 |
launcher := self class current. |
|
2430 |
(launcher isNil and: [NewLauncher notNil]) ifTrue: [launcher := NewLauncher current]. |
|
2431 |
]. |
|
2432 |
||
2433 |
launcher notNil ifTrue:[ |
|
2434 |
launcher window graphicsDevice == device ifTrue:[ |
|
2435 |
OpenLaunchers notNil ifTrue:[ |
|
2436 |
OpenLaunchers removeIdentical:launcher ifAbsent:nil. |
|
2437 |
]. |
|
2438 |
launcher class = NewLauncher |
|
2439 |
ifTrue: [launcher close] |
|
2440 |
ifFalse: [launcher window destroy] |
|
2441 |
] |
|
2442 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2443 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2444 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2445 |
v := HVScrollableView |
1910 | 2446 |
for:TextCollector |
2447 |
miniScrollerH:true |
|
2448 |
miniScrollerV:false |
|
2449 |
in:aView. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2450 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2451 |
v origin:(0.0 @ (buttonPanel corner y + View viewSpacing)) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2452 |
corner:(1.0 @ 1.0). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2453 |
transcript := v scrolledView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2454 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2455 |
isMainLauncher ifTrue:[ |
1910 | 2456 |
transcript beTranscript. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2457 |
] ifFalse:[ |
1910 | 2458 |
transcript showCR:'**************** Notice ***********************'. |
2459 |
transcript showCR:'** this is NOT the Transcript **'. |
|
2460 |
transcript showCR:'** The real Transcript is on the main screen **'. |
|
2461 |
transcript showCR:'** **'. |
|
2462 |
transcript showCR:'** Menus affecting common state are disabled **'. |
|
2463 |
transcript showCR:'***********************************************'. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2464 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2465 |
|
1840 | 2466 |
"Modified: / 18.8.1998 / 15:03:54 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2467 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2468 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2469 |
setupViewsIn:topView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2470 |
"create the pulldown menu, buttonPanel and transcript view" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2471 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2472 |
|tFont| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2473 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2474 |
topView model:self. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2475 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2476 |
myMenu := PullDownMenu in:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2477 |
myMenu origin:0.0 @ 0.0 corner:(1.0 @ myMenu height). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2478 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2479 |
self setupMenu. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2480 |
self setupButtonPanelIn:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2481 |
self setupTranscriptIn:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2482 |
self setupInfoViewIn:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2483 |
self setupOtherViewsIn:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2484 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2485 |
tFont := transcript font. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2486 |
topView extent:(((tFont widthOf:'3')*60) max:myMenu preferredExtent x) |
1910 | 2487 |
@ |
2488 |
((tFont height) * 20). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2489 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2490 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2491 |
Launcher open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2492 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2493 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2494 |
"Modified: 9.9.1996 / 22:44:31 / stefan" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2495 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2496 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2497 |
!Launcher methodsFor:'private'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2498 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2499 |
findWindow:title |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2500 |
"a helper for find & destroy and find & raise operations; |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2501 |
let user choose a view and return it; return nil on cancel" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2502 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2503 |
|knownTopViews nameList box| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2504 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2505 |
knownTopViews := IdentitySet new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2506 |
Screen allScreens do:[:aScreen | |
1910 | 2507 |
aScreen knownViews do:[:aView | |
2508 |
|top showIt wg| |
|
2509 |
||
2510 |
aView notNil ifTrue:[ |
|
2511 |
top := aView topView. |
|
2512 |
(top isKindOf:DebugView) ifTrue:[ |
|
2513 |
"/ although modal, show it. |
|
2514 |
showIt := top realized |
|
2515 |
] ifFalse:[ |
|
2516 |
wg := top windowGroup. |
|
2517 |
showIt := (wg notNil and:[wg isModal not]). |
|
2518 |
]. |
|
2519 |
showIt ifTrue:[ |
|
2520 |
knownTopViews add:top |
|
2521 |
] |
|
2522 |
] |
|
2523 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2524 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2525 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2526 |
knownTopViews := knownTopViews asOrderedCollection. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2527 |
knownTopViews sort:[:v1 :v2 | |l1 l2| |
1910 | 2528 |
l1 := v1 label ? 'aView'. |
2529 |
l2 := v2 label ? 'aView'. |
|
2530 |
l1 < l2 |
|
2531 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2532 |
nameList := knownTopViews collect:[:v | |
1910 | 2533 |
|isDead wg p l| |
2534 |
||
2535 |
l := v label ? 'aView'. |
|
2536 |
((wg := v windowGroup) notNil |
|
2537 |
and:[(p := wg process) notNil |
|
2538 |
and:[p state ~~ #dead]]) ifTrue:[ |
|
2539 |
l |
|
2540 |
] ifFalse:[ |
|
2541 |
l , ' (dead ?)' |
|
2542 |
] |
|
2543 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2544 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2545 |
box := ListSelectionBox new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2546 |
box noEnterField. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2547 |
box list:nameList. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2548 |
box label:(resources string:'view selection'). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2549 |
box title:(resources string:title) withCRs. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2550 |
box action:[:selection | |
1910 | 2551 |
|v idx| |
2552 |
||
2553 |
(idx := box selectionIndex) notNil ifTrue:[ |
|
2554 |
v := knownTopViews at:idx. |
|
2555 |
]. |
|
2556 |
box destroy. |
|
2557 |
^ v |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2558 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2559 |
box extent:400@300. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2560 |
box showAtPointer. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2561 |
^ nil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2562 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2563 |
"Created: / 14.10.1997 / 11:24:42 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2564 |
"Modified: / 27.10.1997 / 04:41:08 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2565 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2566 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2567 |
openApplication:className nameSpace:aNameSpace |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2568 |
"open some application, given the classes name. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2569 |
Look for it in Smalltalk and the given nameSpace" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2570 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2571 |
self openApplication:className nameSpace:aNameSpace with:#open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2572 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2573 |
"Modified: 8.1.1997 / 14:59:42 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2574 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2575 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2576 |
openApplication:className nameSpace:aNameSpace with:aSelector |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2577 |
"open some application, given the classes name. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2578 |
Look for it in Smalltalk and the given nameSpace" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2579 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2580 |
|cls| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2581 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2582 |
cls := Smalltalk at:className asSymbol. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2583 |
cls isNil ifTrue:[ |
1910 | 2584 |
"/ look if its in the nameSpace |
2585 |
aNameSpace notNil ifTrue:[ |
|
2586 |
cls := aNameSpace at:className asSymbol |
|
2587 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2588 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2589 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2590 |
cls isNil ifTrue:[ |
1910 | 2591 |
self warn:(resources string:'Sorry, the %1 class is not available.' with:className). |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2592 |
] ifFalse:[ |
1910 | 2593 |
Autoload autoloadFailedSignal handle:[:ex | |
2594 |
self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:className) |
|
2595 |
] do:[ |
|
2596 |
cls perform:aSelector |
|
2597 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2598 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2599 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2600 |
"Created: 8.1.1997 / 12:52:13 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2601 |
"Modified: 8.1.1997 / 14:59:47 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2602 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2603 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2604 |
pickAView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2605 |
"let user pick a view and return it" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2606 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2607 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2608 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2609 |
(Delay forSeconds:1) wait. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2610 |
v := Screen current viewFromUser. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2611 |
v isNil ifTrue:[ |
1910 | 2612 |
self warn:'Sorry, this is not a smalltalk view'. |
2613 |
^ nil |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2614 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2615 |
^ v |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2616 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2617 |
"Created: 19.10.1997 / 03:04:53 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2618 |
"Modified: 19.10.1997 / 03:42:00 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2619 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2620 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2621 |
saveAllViews |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2622 |
"tell each topview that we are going to terminate and give it chance |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2623 |
to save its contents." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2624 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2625 |
ObjectMemory changed:#aboutToExit |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2626 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2627 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2628 |
saveScreenImage:anImage defaultName:defaultName |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2629 |
"save an image into a file |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2630 |
- ask user for filename using a fileSelectionBox." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2631 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2632 |
|fileName| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2633 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2634 |
fileName := Dialog |
1910 | 2635 |
requestFileName:(resources string:'save image in:') |
2636 |
default:(defaultName , '.tiff') |
|
2637 |
ok:(resources string:'save') |
|
2638 |
abort:(resources string:'cancel') |
|
2639 |
pattern:'*.tiff'. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2640 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2641 |
fileName notNil ifTrue:[ |
1910 | 2642 |
anImage saveOn:fileName |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2643 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2644 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2645 |
"Modified: 21.2.1996 / 13:09:28 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2646 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2647 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2648 |
!Launcher methodsFor:'private - settings callBacks'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2649 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2650 |
changeViewStyleTo:newStyle |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2651 |
newStyle notNil ifTrue:[ |
1910 | 2652 |
self withWaitCursorDo:[ |
2653 |
transcript showCR:'change style to ' , newStyle , ' ...'. |
|
2654 |
View defaultStyle:newStyle asSymbol. |
|
2655 |
]. |
|
2656 |
self reopenLauncher. |
|
2657 |
DebugView newDebugger. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2658 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2659 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2660 |
"Created: 20.10.1997 / 15:28:10 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2661 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2662 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2663 |
fontBoxForEncoding:encodingMatch |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2664 |
"open a fontBox, showing fonts which match some encoding |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2665 |
(used when changing to japanese ...)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2666 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2667 |
|box y b |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2668 |
labelDef buttonDef listDef menuDef textDef |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2669 |
models labels allOfThem filter| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2670 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2671 |
encodingMatch notNil ifTrue:[ |
1910 | 2672 |
filter := [:f | f encoding notNil |
2673 |
and:[encodingMatch match:f encoding]]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2674 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2675 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2676 |
models := OrderedCollection new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2677 |
labels := OrderedCollection new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2678 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2679 |
models add:(allOfThem := nil asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2680 |
models add:(labelDef := Label defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2681 |
models add:(buttonDef := Button defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2682 |
models add:(listDef := SelectionInListView defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2683 |
models add:(menuDef := MenuView defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2684 |
models add:(textDef := TextView defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2685 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2686 |
box := Dialog new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2687 |
box label:(resources string:'Font settings'). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2688 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2689 |
models |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2690 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2691 |
do:[:model :title | |
1910 | 2692 |
|y2 lbl f i| |
2693 |
||
2694 |
f := model value. |
|
2695 |
||
2696 |
(box addTextLabel:title) adjust:#left. |
|
2697 |
||
2698 |
y := box yPosition. |
|
2699 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
|
2700 |
b relativeExtent:nil; extent:(b preferredExtent). |
|
2701 |
y2 := box yPosition. |
|
2702 |
box yPosition:y. |
|
2703 |
i := box leftIndent. |
|
2704 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
|
2705 |
(lbl := box addTextLabel:'') |
|
2706 |
adjust:#left; |
|
2707 |
font:(model value); |
|
2708 |
labelChannel:(BlockValue |
|
2709 |
with:[:v | |f| |
|
2710 |
f := v value. |
|
2711 |
f isNil ifTrue:[ |
|
2712 |
'' |
|
2713 |
] ifFalse:[ |
|
2714 |
f userFriendlyName |
|
2715 |
] |
|
2716 |
] |
|
2717 |
argument:model). |
|
2718 |
labels add:lbl. |
|
2719 |
||
2720 |
box leftIndent:i. |
|
2721 |
box yPosition:(box yPosition max:y2). |
|
2722 |
||
2723 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
2724 |
||
2725 |
b action:[ |
|
2726 |
|f| |
|
2727 |
||
2728 |
f := FontPanel |
|
2729 |
fontFromUserInitial:(model value) |
|
2730 |
title:(resources string:'font for %1' with:title) |
|
2731 |
filter:filter. |
|
2732 |
f notNil ifTrue:[ |
|
2733 |
model == allOfThem ifTrue:[ |
|
2734 |
models do:[:m | m value:f]. |
|
2735 |
labels do:[:l | l font:f] |
|
2736 |
] ifFalse:[ |
|
2737 |
model value:f. |
|
2738 |
lbl font:f. |
|
2739 |
]. |
|
2740 |
] |
|
2741 |
]. |
|
2742 |
model == allOfThem ifTrue:[ |
|
2743 |
box addVerticalSpace |
|
2744 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2745 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2746 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2747 |
box addAbortButton; addOkButton. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2748 |
(box addButton:(Button label:(resources string:'defaults')) before:nil) |
1910 | 2749 |
action:[ |
2750 |
"/ fetch defaults |
|
2751 |
View readStyleSheetAndUpdateAllStyleCaches. |
|
2752 |
labelDef value: Label defaultFont. |
|
2753 |
buttonDef value: Button defaultFont. |
|
2754 |
listDef value: SelectionInListView defaultFont. |
|
2755 |
menuDef value: MenuView defaultFont. |
|
2756 |
textDef value: TextView defaultFont. |
|
2757 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2758 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2759 |
box open. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2760 |
box accepted ifTrue:[ |
1910 | 2761 |
Label defaultFont:labelDef value. |
2762 |
Button defaultFont:buttonDef value. |
|
2763 |
Toggle defaultFont:buttonDef value. |
|
2764 |
SelectionInListView defaultFont:listDef value. |
|
2765 |
MenuView defaultFont:menuDef value. |
|
2766 |
PullDownMenu defaultFont:menuDef value. |
|
2767 |
TextView defaultFont:textDef value. |
|
2768 |
EditTextView defaultFont:textDef value. |
|
2769 |
CodeView defaultFont:textDef value. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2770 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2771 |
box destroy. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2772 |
^ box accepted |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2773 |
|
1892 | 2774 |
"Created: / 27.2.1996 / 01:44:16 / cg" |
2775 |
"Modified: / 17.6.1996 / 13:38:48 / stefan" |
|
2776 |
"Modified: / 15.9.1998 / 22:04:42 / cg" |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2777 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2778 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2779 |
reopenLauncher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2780 |
"reopen a new launcher. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2781 |
for now (since style & language settings currently do |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2782 |
not affect living views ...)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2783 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2784 |
|contents fontPref enc builder newLauncher| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2785 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2786 |
"/ moved the stuff below to the language-setting |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2787 |
"/ dialog (ask before changing the language, to have |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2788 |
"/ proper texts in the dialogs). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2789 |
"/ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2790 |
"/ fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2791 |
"/ enc := MenuView defaultFont encoding. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2792 |
"/ (fontPref match:enc) ifFalse:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2793 |
"/ (self confirm:'menu font is not ' , fontPref , '-encoded.\\Change it ?' withCRs) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2794 |
"/ ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2795 |
"/ self fontBoxForEncoding:fontPref |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2796 |
"/ ] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2797 |
"/ ]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2798 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2799 |
contents := transcript endEntry; list. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2800 |
builder := self class openAt:(self window origin). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2801 |
builder window waitUntilVisible. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2802 |
newLauncher := builder application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2803 |
newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2804 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2805 |
"Modified: / 6.2.1998 / 00:00:45 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2806 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2807 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2808 |
!Launcher methodsFor:'queries'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2809 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2810 |
processName |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2811 |
"for monitors only - my name" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2812 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2813 |
^ 'ST/X Launcher' |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2814 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2815 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2816 |
transcript |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2817 |
"my transcript" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2818 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2819 |
^ transcript |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2820 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2821 |
"Created: 5.7.1996 / 13:04:36 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2822 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2823 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
2824 |
!Launcher::LauncherDialogs class methodsFor:'dialogs'! |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2825 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2826 |
compilerSettingsFor:requestor |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2827 |
"open a dialog on compiler related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2828 |
|
1312 | 2829 |
|box warnings warnSTX warnUnderscore warnDollar warnOldStyle |
2830 |
allowDollar allowUnderscore immutableArrays |
|
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
2831 |
warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox |
1312 | 2832 |
warnCompatibility warnCompatibilityBox warnDollarBox |
219 | 2833 |
stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions |
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2834 |
stcLibraries stcLibraryPath cc stc ccOptions historyLines fullHistoryUpdate |
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2835 |
catchMethodRedefs catchClassRedefs keepSourceOptions keepSource |
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
2836 |
constantFoldingOptions constantFolding justInTimeCompilation |
782 | 2837 |
warnEnabler check component oldIndent t supportsJustInTimeCompilation y |
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2838 |
y2 fullDebugSupport yMax |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2839 |
compileLazy loadBinaries canLoadBinaries strings idx thisIsADemoVersion |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
2840 |
resources stcSetupButt| |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2841 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2842 |
resources := requestor class classResources. |
1296
db1d3cdf023a
disbable stc-setting fields if objectfileloading is not possible
Claus Gittinger <cg@exept.de>
parents:
1295
diff
changeset
|
2843 |
|
db1d3cdf023a
disbable stc-setting fields if objectfileloading is not possible
Claus Gittinger <cg@exept.de>
parents:
1295
diff
changeset
|
2844 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2845 |
loadBinaries := Smalltalk loadBinaries asValue. |
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2846 |
compileLazy := Autoload compileLazy asValue. |
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2847 |
|
219 | 2848 |
warnings := Compiler warnings asValue. |
2849 |
||
2850 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
2851 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
1312 | 2852 |
warnDollar := Compiler warnDollarInIdentifier asValue. |
219 | 2853 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
2854 |
warnCommonMistakes := Compiler warnCommonMistakes asValue. |
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
2855 |
warnCompatibility := Compiler warnPossibleIncompatibilities asValue. |
219 | 2856 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
1312 | 2857 |
allowDollar := Compiler allowDollarInIdentifier asValue. |
219 | 2858 |
immutableArrays := Compiler arraysAreImmutable asValue. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2859 |
|
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2860 |
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
|
2861 |
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
|
2862 |
constantFolding selectionIndex:3. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2863 |
|
1584
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2864 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2865 |
thisIsADemoVersion ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2866 |
stcCompilationOptions := #( never). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2867 |
strings := #('never'). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2868 |
idx := 1. |
1584
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2869 |
] ifFalse:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2870 |
stcCompilationOptions := #( always default never). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2871 |
strings := #('always' 'primitive code only' 'never'). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2872 |
idx := 2. |
1584
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2873 |
]. |
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2874 |
|
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2875 |
stcCompilation := SelectionInList new list:(resources array:strings). |
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2876 |
stcCompilation selectionIndex:idx. |
1951 | 2877 |
|
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
2878 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) |
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
2879 |
ifTrue:[ |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
2880 |
justInTimeCompilation := ObjectMemory justInTimeCompilation. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
2881 |
fullDebugSupport := ObjectMemory fullSingleStepSupport. |
695 | 2882 |
] ifFalse:[ |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
2883 |
justInTimeCompilation := false. |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2884 |
fullDebugSupport := (Compiler lineNumberInfo == #full) asValue. |
695 | 2885 |
]. |
2886 |
justInTimeCompilation := justInTimeCompilation asValue. |
|
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
2887 |
fullDebugSupport := fullDebugSupport asValue. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2888 |
|
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2889 |
catchMethodRedefs := Class catchMethodRedefinitions asValue. |
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2890 |
catchClassRedefs := Class catchClassRedefinitions asValue. |
1361 | 2891 |
historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]]. |
2892 |
historyLines ifFalse:[ |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2893 |
fullHistoryUpdate := false asValue |
1361 | 2894 |
] ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2895 |
fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue. |
1361 | 2896 |
]. |
2897 |
historyLines := historyLines asValue. |
|
219 | 2898 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2899 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2900 |
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
|
2901 |
keepSource selectionIndex:1. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2902 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
2903 |
warnEnabler := [ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2904 |
warnings value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2905 |
warnSTXBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2906 |
warnOldStyleBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2907 |
warnCommonMistakesBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2908 |
warnCompatibilityBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2909 |
allowUnderscore value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2910 |
warnUnderscoreBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2911 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2912 |
warnUnderscoreBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2913 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2914 |
allowDollar value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2915 |
warnDollarBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2916 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2917 |
warnDollarBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2918 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2919 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2920 |
warnSTXBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2921 |
warnUnderscoreBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2922 |
warnDollarBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2923 |
warnOldStyleBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2924 |
warnCommonMistakesBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2925 |
warnCompatibilityBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2926 |
]]. |
219 | 2927 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
2928 |
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
|
2929 |
allowUnderscore onChangeSend:#value to:warnEnabler. |
1312 | 2930 |
allowDollar onChangeSend:#value to:warnEnabler. |
219 | 2931 |
|
2932 |
box := DialogBox new. |
|
2933 |
box label:(resources string:'Compiler settings'). |
|
2934 |
||
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2935 |
y := box yPosition. |
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
2936 |
check := box addCheckBox:(resources string:'catch method redefinitions') on:catchMethodRedefs. |
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
2937 |
check width:0.5. |
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
2938 |
|
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2939 |
box yPosition:y. |
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2940 |
check := box addCheckBox:(resources string:'catch class redefinitions') on:catchClassRedefs. |
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
2941 |
check left:0.5; width:0.5. |
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2942 |
|
1354 | 2943 |
y := box yPosition. |
219 | 2944 |
check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines. |
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
2945 |
check width:0.5. |
219 | 2946 |
HistoryManager isNil ifTrue:[check disable]. |
1354 | 2947 |
box yPosition:y. |
2948 |
check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate. |
|
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
2949 |
check left:0.5; width:0.5. |
1354 | 2950 |
HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines]. |
219 | 2951 |
|
378 | 2952 |
box addPopUpList:(resources string:'fileIn source mode:') on:keepSource. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2953 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2954 |
|
219 | 2955 |
box addHorizontalLine. |
2956 |
||
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2957 |
box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy. |
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2958 |
check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries. |
1296
db1d3cdf023a
disbable stc-setting fields if objectfileloading is not possible
Claus Gittinger <cg@exept.de>
parents:
1295
diff
changeset
|
2959 |
canLoadBinaries ifFalse:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2960 |
loadBinaries value:false. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2961 |
check disable |
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2962 |
]. |
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
2963 |
supportsJustInTimeCompilation ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2964 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2965 |
addCheckBox:(resources string:'just in time compilation to machine code') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2966 |
on:justInTimeCompilation. |
695 | 2967 |
]. |
2968 |
||
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2969 |
box addHorizontalLine. |
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2970 |
|
232 | 2971 |
ObjectFileLoader notNil ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2972 |
compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2973 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2974 |
thisIsADemoVersion ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2975 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2976 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2977 |
stcSetupButt := box addComponent:(Button label:(resources string:'stc compilation parameters...') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2978 |
action:[|manager| |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2979 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2980 |
self stcCompilerSettingsFor:requestor. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2981 |
]). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2982 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2983 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2984 |
box addHorizontalLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2985 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2986 |
"/ if there is no compiler around, |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2987 |
"/ change to compile nothing, and disable the checkBoxes |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2988 |
Compiler canCreateMachineCode ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2989 |
stcCompilation selectionIndex:(3 min:stcCompilationOptions size). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2990 |
compilationList disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2991 |
]. |
219 | 2992 |
]. |
2993 |
||
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
2994 |
y := box yPosition. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2995 |
|
782 | 2996 |
component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore. |
2997 |
component width:0.4. |
|
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
2998 |
|
1312 | 2999 |
component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar. |
3000 |
component width:0.4. |
|
3001 |
||
782 | 3002 |
component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays. |
3003 |
component width:0.4. |
|
3004 |
y2 := box yPosition. |
|
3005 |
||
3006 |
box yPosition:y. |
|
3007 |
box leftIndent:0. |
|
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
3008 |
|
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
3009 |
component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding. |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
3010 |
component superView left:0.5; width:0.5. |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
3011 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
3012 |
|
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3013 |
component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport. |
782 | 3014 |
component left:0.5; width:0.4. |
3015 |
box yPosition:(box yPosition max:y2). |
|
3016 |
||
695 | 3017 |
|
219 | 3018 |
box addHorizontalLine. |
3019 |
||
3020 |
box addCheckBox:(resources string:'warnings') on:warnings. |
|
737 | 3021 |
"/ box addVerticalSpace. |
343 | 3022 |
oldIndent := box leftIndent. |
219 | 3023 |
box leftIndent:30. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
3024 |
|
737 | 3025 |
y := box yPosition. |
3026 |
||
760 | 3027 |
warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX. |
737 | 3028 |
warnSTXBox width:0.4. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
3029 |
|
219 | 3030 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore. |
737 | 3031 |
warnUnderscoreBox width:0.4. |
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3032 |
|
1312 | 3033 |
warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar. |
3034 |
warnDollarBox width:0.4. |
|
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3035 |
|
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3036 |
yMax := box yPosition. |
737 | 3037 |
|
3038 |
box yPosition:y. |
|
3039 |
box leftIndent:0. |
|
219 | 3040 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle. |
737 | 3041 |
warnOldStyleBox left:0.5; width:0.4. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
3042 |
|
679 | 3043 |
warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes. |
737 | 3044 |
warnCommonMistakesBox left:0.5; width:0.4. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
3045 |
|
1312 | 3046 |
warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility. |
3047 |
warnCompatibilityBox left:0.5; width:0.4. |
|
3048 |
||
343 | 3049 |
box leftIndent:oldIndent. |
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3050 |
box yPosition:(yMax max: box yPosition). |
219 | 3051 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
3052 |
box |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3053 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3054 |
addAbortButton; |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3055 |
addOkButton. |
219 | 3056 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
3057 |
warnEnabler value. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3058 |
box open. |
219 | 3059 |
|
3060 |
box accepted ifTrue:[ |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3061 |
HistoryManager notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3062 |
HistoryManager fullHistoryUpdate:fullHistoryUpdate value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3063 |
historyLines value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3064 |
HistoryManager activate |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3065 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3066 |
HistoryManager deactivate |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3067 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3068 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3069 |
Class catchMethodRedefinitions:catchMethodRedefs value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3070 |
Class catchClassRedefinitions:catchClassRedefs value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3071 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3072 |
Compiler warnings:warnings value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3073 |
Compiler warnSTXSpecials:warnSTX value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3074 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3075 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3076 |
Compiler warnDollarInIdentifier:warnDollar value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3077 |
Compiler warnCommonMistakes:warnCommonMistakes value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3078 |
Compiler warnPossibleIncompatibilities:warnCompatibility value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3079 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3080 |
Compiler allowDollarInIdentifier:allowDollar value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3081 |
Compiler arraysAreImmutable:immutableArrays value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3082 |
fullDebugSupport value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3083 |
Compiler lineNumberInfo:#full. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3084 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3085 |
Compiler lineNumberInfo:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3086 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3087 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3088 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3089 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3090 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3091 |
supportsJustInTimeCompilation ifTrue:[ |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3092 |
justInTimeCompilation := justInTimeCompilation value. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3093 |
justInTimeCompilation ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3094 |
Method allInstancesDo:[:m | m checked:false]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3095 |
]. |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3096 |
ObjectMemory justInTimeCompilation:justInTimeCompilation. |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3097 |
ObjectMemory fullSingleStepSupport:fullDebugSupport value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3098 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3099 |
Autoload compileLazy:compileLazy value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3100 |
Smalltalk loadBinaries:loadBinaries value. |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3101 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3102 |
box destroy |
219 | 3103 |
|
1354 | 3104 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
3105 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
|
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3106 |
"Modified: / 5.11.1998 / 14:25:59 / cg" |
219 | 3107 |
! |
3108 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3109 |
displaySettingsFor:requestor |
921 | 3110 |
"open a dialog on display related settings" |
3111 |
||
1106
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3112 |
|box listOfSizes sizeInfos |
614 | 3113 |
sizes sizeNames sizeList sizeX sizeY deepIcons |
1196 | 3114 |
isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3115 |
y component screen visual clipEncodings clipEncodingSyms clipEncodingList resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3116 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3117 |
resources := requestor class classResources. |
594 | 3118 |
|
1106
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3119 |
listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default. |
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3120 |
listOfSizes == #default ifTrue:[ |
1910 | 3121 |
"/ nothing in resource file; offer at least some. |
3122 |
sizeInfos := #( |
|
3123 |
( '11.3'' (235mm x 175mm) LCD' (235 175) ) |
|
3124 |
( '17'' (325mm x 245mm)' (325 245) ) |
|
3125 |
( '19'' (340mm x 270mm)' (340 270) ) |
|
3126 |
( '20'' (350mm x 280mm)' (350 280) ) |
|
3127 |
( '21'' (365mm x 285mm)' (365 285) ) |
|
3128 |
). |
|
1106
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3129 |
] ifFalse:[ |
1910 | 3130 |
sizeInfos := resources array:listOfSizes. |
1106
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3131 |
]. |
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3132 |
sizeNames := sizeInfos collect:[:entry | entry at:1]. |
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3133 |
sizes := sizeInfos collect:[:entry | entry at:2]. |
594 | 3134 |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3135 |
screen := Screen current. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3136 |
visual := screen visualType. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3137 |
|
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3138 |
isColorMonitor := screen hasColors asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3139 |
deepIcons := screen supportsDeepIcons asValue. |
670
7c958acbc5e8
fixColor and ditherColor stuff moved from Color
Claus Gittinger <cg@exept.de>
parents:
668
diff
changeset
|
3140 |
useFixPalette := screen fixColors notNil asValue. |
1196 | 3141 |
useFixGrayPalette := screen fixGrayColors notNil asValue. |
594 | 3142 |
|
3143 |
sizeList := SelectionInList with:sizeNames. |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3144 |
sizeX := screen widthInMillimeter asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3145 |
sizeY := screen heightInMillimeter asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3146 |
|
1220
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3147 |
clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5). |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3148 |
clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5'). |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3149 |
clipEncodingList := SelectionInList new. |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3150 |
clipEncodingList list:clipEncodings. |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3151 |
clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1). |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3152 |
|
1048 | 3153 |
ditherList := SelectionInList new. |
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3154 |
|
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3155 |
(visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[ |
1910 | 3156 |
ditherStyles := #('threshold' 'ordered dither' 'error diffusion'). |
3157 |
ditherSyms := #(threshold ordered floydSteinberg). |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3158 |
] ifFalse:[ |
1910 | 3159 |
visual ~~ #TrueColor ifTrue:[ |
3160 |
ditherStyles := #('nearest color' 'error diffusion'). |
|
3161 |
ditherSyms := #(ordered floydSteinberg). |
|
3162 |
] |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3163 |
]. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3164 |
ditherSyms notNil ifTrue:[ |
1910 | 3165 |
ditherList list:ditherStyles. |
3166 |
ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold). |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3167 |
]. |
594 | 3168 |
|
3169 |
box := DialogBox new. |
|
3170 |
box label:(resources string:'Display screen settings'). |
|
3171 |
||
3172 |
(box addTextLabel:(resources string:'Actual visible screen area:')) |
|
1910 | 3173 |
adjust:#left. |
594 | 3174 |
|
3175 |
(box addPopUpList:(resources string:'common sizes:') on:sizeList) |
|
1910 | 3176 |
label:'monitor size'. |
594 | 3177 |
|
3178 |
idx := sizes findFirst:[:entry | |
|
1910 | 3179 |
((entry at:1) = sizeX value) |
3180 |
and:[((entry at:2) = sizeY value)] |
|
3181 |
]. |
|
594 | 3182 |
idx ~~ 0 ifTrue:[ |
1910 | 3183 |
sizeList selectionIndex:idx |
594 | 3184 |
]. |
3185 |
||
3186 |
sizeList onChangeSend:#value to:[ |
|
1910 | 3187 |
|idx| |
3188 |
||
3189 |
idx := sizeList selectionIndex. |
|
3190 |
sizeX value:((sizes at:idx) at:1). |
|
3191 |
sizeY value:((sizes at:idx) at:2). |
|
3192 |
]. |
|
594 | 3193 |
|
3194 |
y := box yPosition. |
|
3195 |
component := box addTextLabel:(resources string:'screen size:'). |
|
3196 |
component width:0.3; adjust:#right; borderWidth:0. |
|
3197 |
||
3198 |
box yPosition:y. |
|
1129 | 3199 |
component := box addInputFieldOn:nil tabable:true. |
594 | 3200 |
component width:0.25; left:0.3; |
1910 | 3201 |
immediateAccept:false; acceptOnLeave:false; |
3202 |
cursorMovementWhenUpdating:#beginOfLine; |
|
3203 |
converter:(PrintConverter new initForInteger); |
|
3204 |
model:sizeX. |
|
594 | 3205 |
|
3206 |
box yPosition:y. |
|
3207 |
component := box addTextLabel:(' x '). |
|
3208 |
component width:0.1; left:0.55; adjust:#center; borderWidth:0. |
|
3209 |
||
3210 |
box yPosition:y. |
|
1129 | 3211 |
component := box addInputFieldOn:nil tabable:true. |
594 | 3212 |
component width:0.25; left:0.65; |
1910 | 3213 |
immediateAccept:false; acceptOnLeave:false; |
3214 |
cursorMovementWhenUpdating:#beginOfLine; |
|
3215 |
converter:(PrintConverter new initForInteger); |
|
3216 |
model:sizeY. |
|
594 | 3217 |
|
3218 |
box yPosition:y. |
|
3219 |
component := box addTextLabel:('(mm)'). |
|
3220 |
component width:0.1; left:0.9; adjust:#center; borderWidth:0. |
|
3221 |
||
1492 | 3222 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
594 | 3223 |
|
1192 | 3224 |
(box addTextLabel:(resources string:'Screen: depth: %1 visual: %2 (%3)' |
1910 | 3225 |
with:Screen current depth printString |
3226 |
with:Screen current visualType |
|
3227 |
with:Screen current serverVendor)) |
|
3228 |
adjust:#left. |
|
1192 | 3229 |
|
1492 | 3230 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
1192 | 3231 |
|
594 | 3232 |
box addCheckBox:(resources string:'color monitor') on:isColorMonitor. |
3233 |
||
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3234 |
visual == #PseudoColor ifTrue:[ |
1910 | 3235 |
box addVerticalSpace. |
3236 |
component := box addCheckBox:(resources string:'use fix color palette %1' with:'(4x8x4)') on:useFixPalette. |
|
3237 |
||
3238 |
box addVerticalSpace. |
|
3239 |
component := box addCheckBox:(resources string:'use fix gray color palette %1' with:'(32)') on:useFixGrayPalette. |
|
622
9d02b3440252
ommit fixColors-checkBox on TrueColor systems
Claus Gittinger <cg@exept.de>
parents:
618
diff
changeset
|
3240 |
]. |
594 | 3241 |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3242 |
ditherSyms notNil ifTrue:[ |
1910 | 3243 |
box addVerticalSpace. |
3244 |
component := box addPopUpList:(resources string:'image display:') on:ditherList. |
|
3245 |
component defaultLabel:'image display'. |
|
3246 |
component superView horizontalLayout:#leftSpace. |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3247 |
]. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3248 |
|
614 | 3249 |
box addVerticalSpace. |
3250 |
box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons. |
|
3251 |
||
1492 | 3252 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
1220
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3253 |
|
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3254 |
component := box addPopUpList:(resources string:'clipBoard encoding:') on:clipEncodingList. |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3255 |
component superView horizontalLayout:#leftSpace. |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3256 |
|
594 | 3257 |
box |
1910 | 3258 |
addHelpButtonFor:'Launcher/screenSettings.html'; |
3259 |
addAbortButton; addOkButton. |
|
594 | 3260 |
box open. |
3261 |
||
3262 |
box accepted ifTrue:[ |
|
1910 | 3263 |
Image flushDeviceImages. |
3264 |
||
3265 |
screen visualType == #PseudoColor ifTrue:[ |
|
3266 |
useFixPalette value ifTrue:[ |
|
3267 |
Color colorAllocationFailSignal handle:[:ex | |
|
3268 |
self warn:(resources string:'Could not allocate colors.'). |
|
3269 |
] do:[ |
|
3270 |
Color getColorsRed:4 green:8 blue:4 on:screen |
|
3271 |
] |
|
3272 |
] ifFalse:[ |
|
3273 |
screen releaseFixColors |
|
3274 |
]. |
|
3275 |
||
3276 |
useFixGrayPalette value ifTrue:[ |
|
3277 |
Color colorAllocationFailSignal handle:[:ex | |
|
3278 |
self warn:(resources string:'Could not allocate colors.'). |
|
3279 |
] do:[ |
|
3280 |
Color getGrayColors:32 on:screen |
|
3281 |
] |
|
3282 |
] ifFalse:[ |
|
3283 |
screen releaseFixGrayColors |
|
3284 |
] |
|
3285 |
]. |
|
3286 |
screen hasColors:isColorMonitor value. |
|
3287 |
screen widthInMillimeter:sizeX value. |
|
3288 |
screen heightInMillimeter:sizeY value. |
|
3289 |
||
3290 |
screen supportsDeepIcons:deepIcons value. |
|
3291 |
ditherSyms notNil ifTrue:[ |
|
3292 |
Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex). |
|
3293 |
]. |
|
3294 |
||
3295 |
requestor withWaitCursorDo:[ |
|
3296 |
View defaultStyle:(View defaultStyle). |
|
3297 |
]. |
|
3298 |
||
3299 |
screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex). |
|
594 | 3300 |
]. |
3301 |
box destroy |
|
3302 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3303 |
"Modified: 9.9.1996 / 22:43:04 / stefan" |
1242
78421182813d
use 4x8x4 (instead of 6x8x4) colorMap
Claus Gittinger <cg@exept.de>
parents:
1234
diff
changeset
|
3304 |
"Modified: 21.7.1997 / 19:26:49 / cg" |
594 | 3305 |
! |
3306 |
||
1977 | 3307 |
editSettingsFor:requestor |
3308 |
"open a dialog on edit settings" |
|
3309 |
||
3310 |
|box |
|
3311 |
st80EditingMode st80DoubleClickSelectMode resources y |
|
3312 |
| |
|
3313 |
||
3314 |
resources := requestor class classResources. |
|
3315 |
||
3316 |
"/ |
|
3317 |
"/ extract relevant system settings ... |
|
3318 |
"/ |
|
3319 |
st80EditingMode := EditTextView st80Mode asValue. |
|
3320 |
st80DoubleClickSelectMode := TextView st80SelectMode asValue. |
|
3321 |
||
3322 |
"/ |
|
3323 |
"/ create a box on those values ... |
|
3324 |
"/ |
|
3325 |
box := DialogBox new. |
|
3326 |
box label:(resources string:'Edit settings'). |
|
3327 |
||
3328 |
box addCheckBox:(resources string:'cursor has ST80 line end behavior') on:st80EditingMode. |
|
3329 |
box addCheckBox:(resources string:'double click select behavior as in ST80') on:st80DoubleClickSelectMode. |
|
3330 |
||
3331 |
box addHorizontalLine. |
|
3332 |
||
3333 |
box |
|
3334 |
addHelpButtonFor:'Launcher/editSettings.html'; |
|
3335 |
addAbortButton; |
|
3336 |
addOkButton. |
|
3337 |
||
3338 |
"/ |
|
3339 |
"/ show the box ... |
|
3340 |
"/ |
|
3341 |
box open. |
|
3342 |
||
3343 |
"/ |
|
3344 |
"/ update system settings |
|
3345 |
"/ |
|
3346 |
box accepted ifTrue:[ |
|
3347 |
EditTextView st80Mode:(st80EditingMode value). |
|
3348 |
TextView st80SelectMode:(st80DoubleClickSelectMode value). |
|
3349 |
]. |
|
3350 |
box destroy |
|
3351 |
||
3352 |
"Created: / 6.1.1999 / 14:12:09 / cg" |
|
3353 |
"Modified: / 6.1.1999 / 14:17:51 / cg" |
|
3354 |
! |
|
3355 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3356 |
fontSettingsFor:requestor |
921 | 3357 |
"open a dialog on font related settings" |
3358 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3359 |
(self fontBoxForEncoding:nil for:requestor) ifTrue:[ |
1910 | 3360 |
requestor reopenLauncher. |
406 | 3361 |
] |
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
3362 |
|
398 | 3363 |
"Created: 26.2.1996 / 22:52:51 / cg" |
921 | 3364 |
"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
|
3365 |
! |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
3366 |
|
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3367 |
javaSettingsFor:requestor |
1953 | 3368 |
"open a dialog on settings related to the java subsystem" |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3369 |
|
1943 | 3370 |
|box audio javaHome resources component |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3371 |
extraFileSecurityChecks extraSocketSecurityChecks |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3372 |
supportsJustInTimeCompilation |
1973 | 3373 |
javaJustInTimeCompilation javaNativeCodeOptimization |
3374 |
showJavaByteCode| |
|
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3375 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3376 |
resources := requestor class classResources. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3377 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3378 |
audio := JavaVM audioEnabled asValue. |
1943 | 3379 |
extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue. |
3380 |
extraSocketSecurityChecks := JavaVM socketConnectConfirmation asValue. |
|
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3381 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) ifTrue:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3382 |
javaJustInTimeCompilation := ObjectMemory javaJustInTimeCompilation asValue. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3383 |
javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3384 |
] ifFalse:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3385 |
javaJustInTimeCompilation := javaNativeCodeOptimization := false |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3386 |
]. |
1973 | 3387 |
showJavaByteCode := JavaMethod forceByteCodeDisplay asValue. |
1943 | 3388 |
|
1916 | 3389 |
javaHome := (Java javaHome ? '') asValue. |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3390 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3391 |
box := DialogBox new. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3392 |
box label:(resources string:'Java'). |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3393 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3394 |
box addCheckBox:(resources string:'Audio Enabled') on:audio. |
1943 | 3395 |
box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks. |
3396 |
box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks. |
|
3397 |
box addHorizontalLine. |
|
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3398 |
supportsJustInTimeCompilation ifTrue:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3399 |
box |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3400 |
addCheckBox:(resources string:'java just in time compilation to machine code') |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3401 |
on:javaJustInTimeCompilation. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3402 |
box |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3403 |
addCheckBox:(resources string:'optimize native code') |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3404 |
on:javaNativeCodeOptimization. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3405 |
]. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3406 |
box addHorizontalLine. |
1973 | 3407 |
box addCheckBox:(resources string:'Display java byteCode (i.e. not source)') on:showJavaByteCode. |
3408 |
box addHorizontalLine. |
|
1916 | 3409 |
component := box |
3410 |
addLabelledInputField:(resources string:'java home:') |
|
3411 |
adjust:#right |
|
3412 |
on:javaHome |
|
3413 |
tabable:true |
|
3414 |
separateAtX:0.3. |
|
3415 |
component acceptOnLeave:false. |
|
3416 |
||
3417 |
box addVerticalSpace. |
|
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3418 |
box addComponent:(Button |
1916 | 3419 |
label:(resources string:'Reinit VM now') |
1929 | 3420 |
action:[ |
1970 | 3421 |
Java classPath size == 0 ifTrue:[ |
3422 |
Java initialize. |
|
3423 |
]. |
|
1929 | 3424 |
Java classPath size == 0 ifTrue:[ |
3425 |
self warn:'No JDK found'. |
|
3426 |
] ifFalse:[ |
|
3427 |
JavaVM initializeVM |
|
3428 |
] |
|
3429 |
]). |
|
1941 | 3430 |
|
3431 |
box addComponent:(Button |
|
3432 |
label:(resources string:'Remove all Java classes now') |
|
3433 |
action:[ |
|
3434 |
Java flushAllJavaResources |
|
3435 |
]). |
|
3436 |
||
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3437 |
"/ box addHorizontalLine. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3438 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3439 |
"/ box addHelpButtonFor:'Launcher/javaSettings.html'. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3440 |
box addAbortButton; addOkButton. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3441 |
box open. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3442 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3443 |
box accepted ifTrue:[ |
1973 | 3444 |
JavaMethod forceByteCodeDisplay:showJavaByteCode value. |
1916 | 3445 |
JavaVM audioEnabled:audio value. |
1944 | 3446 |
JavaVM fileOpenConfirmation: extraFileSecurityChecks value. |
3447 |
JavaVM socketConnectConfirmation: extraSocketSecurityChecks value. |
|
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3448 |
javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3449 |
ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3450 |
javaJustInTimeCompilation value ifTrue:[ |
1954 | 3451 |
JavaMethod allSubInstancesDo:[:m | m checked:false]. |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3452 |
]. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3453 |
]. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3454 |
javaNativeCodeOptimization value ~~ ObjectMemory javaNativeCodeOptimization ifTrue:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3455 |
ObjectMemory javaNativeCodeOptimization:javaNativeCodeOptimization value. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3456 |
]. |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3457 |
]. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3458 |
box destroy |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3459 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3460 |
"Created: / 18.7.1998 / 22:32:58 / cg" |
1973 | 3461 |
"Modified: / 16.12.1998 / 13:09:06 / cg" |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3462 |
! |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3463 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3464 |
keyboardSettingsFor:requestor |
921 | 3465 |
"open a dialog on keyboard related settings" |
3466 |
||
219 | 3467 |
|mappings listOfRawKeys listOfFunctions |
3468 |
box l |
|
3469 |
list1 list2 listView1 listView2 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3470 |
frame selectionForwarder macroForwarder macroTextView y resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3471 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3472 |
resources := requestor class classResources. |
219 | 3473 |
|
3474 |
mappings := Screen current keyboardMap. |
|
3475 |
||
3476 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
3477 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
3478 |
||
3479 |
selectionForwarder := Plug new. |
|
3480 |
selectionForwarder respondTo:#showFunction |
|
1910 | 3481 |
with:[ |
3482 |
|raw| |
|
3483 |
raw := list1 selection. |
|
3484 |
list2 retractInterestsFor:selectionForwarder. |
|
3485 |
list2 selection:(mappings at:raw asSymbol) asString. |
|
3486 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
3487 |
]. |
|
219 | 3488 |
selectionForwarder respondTo:#showRawKey |
1910 | 3489 |
with:[ |
3490 |
|f raw| |
|
3491 |
||
3492 |
f := list2 selection. |
|
3493 |
list1 retractInterestsFor:selectionForwarder. |
|
3494 |
raw := mappings keyAtValue:f asString. |
|
3495 |
raw isNil ifTrue:[ |
|
3496 |
raw := mappings keyAtValue:f first. |
|
3497 |
raw isNil ifTrue:[ |
|
3498 |
raw := mappings keyAtValue:f asSymbol. |
|
3499 |
] |
|
3500 |
]. |
|
3501 |
list1 selection:raw. |
|
3502 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
3503 |
]. |
|
219 | 3504 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
3505 |
macroForwarder := [ |
1910 | 3506 |
|f macro indent| |
3507 |
f := list2 selection. |
|
3508 |
(f startsWith:'Cmd') ifTrue:[ |
|
3509 |
f := f copyFrom:4 |
|
3510 |
]. |
|
3511 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil. |
|
3512 |
macro notNil ifTrue:[ |
|
3513 |
macro := macro asStringCollection. |
|
3514 |
indent := macro |
|
3515 |
inject:99999 into:[:min :element | |
|
3516 |
|stripped| |
|
3517 |
||
3518 |
stripped := element withoutLeadingSeparators. |
|
3519 |
stripped size == 0 ifTrue:[ |
|
3520 |
min |
|
3521 |
] ifFalse:[ |
|
3522 |
min min:(element size - stripped size) |
|
3523 |
] |
|
3524 |
]. |
|
3525 |
indent ~~ 0 ifTrue:[ |
|
3526 |
macro := macro collect:[:line | |
|
3527 |
line size > indent ifTrue:[ |
|
3528 |
line copyFrom:indent+1 |
|
3529 |
] ifFalse:[ |
|
3530 |
line |
|
3531 |
]. |
|
3532 |
] |
|
3533 |
]. |
|
3534 |
]. |
|
3535 |
macroTextView contents:macro. |
|
3536 |
]. |
|
219 | 3537 |
|
3538 |
list1 := SelectionInList with:listOfRawKeys. |
|
3539 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
3540 |
|
219 | 3541 |
list2 := SelectionInList with:listOfFunctions. |
3542 |
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
|
3543 |
list2 onChangeSend:#value to:macroForwarder. |
219 | 3544 |
|
3545 |
box := Dialog new. |
|
3546 |
box label:(resources string:'Keyboard mappings'). |
|
3547 |
||
1632
faafcf31a690
useful fallBack message for KEYB_MSG
Claus Gittinger <cg@exept.de>
parents:
1631
diff
changeset
|
3548 |
l := box addTextLabel:(resources at:'KEY_MSG' default:'keyboard mapping:') withCRs. |
219 | 3549 |
l adjust:#left; borderWidth:0. |
3550 |
||
3551 |
frame := View new. |
|
3552 |
frame extent:300 @ 300. |
|
3553 |
frame borderWidth:0. |
|
3554 |
||
3555 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
3556 |
listView1 model:list1. |
|
3557 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
3558 |
||
3559 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
3560 |
listView2 model:list2. |
|
3561 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
3562 |
||
3563 |
frame topInset:box yPosition. |
|
3564 |
box addComponent:frame withExtent:350@200. |
|
3565 |
box makeTabable:listView1. |
|
3566 |
box makeTabable:listView2. |
|
3567 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
3568 |
||
3569 |
box addVerticalSpace. |
|
3570 |
||
3571 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
3572 |
l adjust:#left; borderWidth:0. |
|
3573 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
3574 |
l topInset:(View viewSpacing). |
|
3575 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
3576 |
||
3577 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
3578 |
box addComponent:macroTextView tabable:true. |
|
3579 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
3580 |
y := box yPosition. |
|
3581 |
||
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
3582 |
box |
1910 | 3583 |
addHelpButtonFor:'Launcher/keyboardSetting.html'; |
3584 |
"addAbortButton;" |
|
3585 |
addOkButtonLabelled:(resources string:'dismiss'). |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
3586 |
|
219 | 3587 |
macroTextView topInset:(l preferredExtent y + 5). |
3588 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
3589 |
||
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3590 |
box open. |
219 | 3591 |
|
3592 |
box accepted ifTrue:[ |
|
1910 | 3593 |
"no action yet ..." |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3594 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3595 |
box destroy |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
3596 |
|
1632
faafcf31a690
useful fallBack message for KEYB_MSG
Claus Gittinger <cg@exept.de>
parents:
1631
diff
changeset
|
3597 |
"Modified: / 9.9.1996 / 22:43:17 / stefan" |
faafcf31a690
useful fallBack message for KEYB_MSG
Claus Gittinger <cg@exept.de>
parents:
1631
diff
changeset
|
3598 |
"Modified: / 4.5.1998 / 12:40:02 / cg" |
219 | 3599 |
! |
3600 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3601 |
languageSettingsFor:requestor |
921 | 3602 |
"open a dialog on language related settings" |
3603 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3604 |
|listOfLanguages translatedLanguages switch box languageList flags resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3605 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3606 |
resources := requestor class classResources. |
219 | 3607 |
|
3608 |
" |
|
410 | 3609 |
get list of supported languages from the launchers resources ... |
219 | 3610 |
" |
410 | 3611 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
1116 | 3612 |
listOfLanguages := listOfLanguages asOrderedCollection. |
1115
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3613 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
1910 | 3614 |
item := resources at:lang. |
3615 |
item isString ifTrue:[ |
|
3616 |
item |
|
3617 |
] ifFalse:[ |
|
3618 |
item at:1 |
|
3619 |
] |
|
3620 |
]. |
|
1115
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3621 |
flags := listOfLanguages collect:[:lang | |item| |
1910 | 3622 |
item := resources at:lang. |
3623 |
item isArray ifTrue:[ |
|
3624 |
item at:2 |
|
3625 |
] ifFalse:[ |
|
3626 |
nil |
|
3627 |
] |
|
3628 |
]. |
|
1115
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3629 |
flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]]. |
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3630 |
|
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3631 |
languageList := translatedLanguages with:flags collect:[:lang :flag | |
1910 | 3632 |
LabelAndIcon icon:flag string:lang. |
3633 |
]. |
|
219 | 3634 |
|
1631
8e46cb066849
useful fallBack message for LANG_MSG
Claus Gittinger <cg@exept.de>
parents:
1621
diff
changeset
|
3635 |
box := ListSelectionBox title:(resources at:'LANG_MSG' default:'select a language') withCRs. |
219 | 3636 |
box label:(resources string:'Language selection'). |
1115
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3637 |
box list:languageList. |
219 | 3638 |
box initialText:(Language). |
3639 |
box action:[:newLanguage | |
|
1910 | 3640 |
requestor withWaitCursorDo:[ |
3641 |
|fontPref idx language oldLanguage enc answer matchingFonts| |
|
3642 |
||
3643 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
3644 |
idx ~~ 0 ifTrue:[ |
|
3645 |
language := listOfLanguages at:idx |
|
3646 |
] ifFalse:[ |
|
3647 |
language := newLanguage |
|
3648 |
]. |
|
3649 |
||
3650 |
"/ check if the new language needs a differently encoded font; |
|
3651 |
"/ ask user to switch font and allow cancellation. |
|
3652 |
"/ Otherwise, you are left with unreadable menu & button items ... |
|
3653 |
||
3654 |
oldLanguage := Smalltalk language. |
|
3655 |
Smalltalk language:language asSymbol. |
|
3656 |
ResourcePack flushCachedResourcePacks. |
|
3657 |
"/ refetch resources ... |
|
3658 |
resources := requestor class classResources. |
|
3659 |
fontPref := resources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
|
3660 |
Smalltalk language:oldLanguage. |
|
3661 |
||
3662 |
switch := true. |
|
3663 |
enc := MenuView defaultFont encoding. |
|
3664 |
(fontPref match:enc) ifFalse:[ |
|
3665 |
"/ look if there is one at all. |
|
3666 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
3667 |
matchingFonts size == 0 ifTrue:[ |
|
3668 |
"/ flush and try again - just in case, the font path has changed. |
|
3669 |
Screen current flushListOfAvailableFonts. |
|
3670 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
3671 |
]. |
|
3672 |
matchingFonts size == 0 ifTrue:[ |
|
3673 |
(Dialog |
|
3674 |
confirm:(resources |
|
3675 |
string:'Your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
|
3676 |
with:fontPref) withCRs) |
|
3677 |
ifFalse:[ |
|
3678 |
switch := false |
|
3679 |
] |
|
3680 |
] ifFalse:[ |
|
3681 |
answer := Dialog |
|
3682 |
confirmWithCancel:(resources |
|
3683 |
string:'menu font is not %1-encoded.\\Change it ?' |
|
3684 |
with:fontPref) withCRs |
|
3685 |
labels:(resources |
|
3686 |
array:#('cancel' 'no' 'yes')) |
|
3687 |
default:3. |
|
3688 |
answer isNil ifTrue:[ |
|
3689 |
switch := false |
|
3690 |
] ifFalse:[ |
|
3691 |
answer ifTrue:[ |
|
3692 |
switch := (requestor fontBoxForEncoding:fontPref) |
|
3693 |
] |
|
3694 |
]. |
|
3695 |
]. |
|
3696 |
]. |
|
3697 |
||
3698 |
switch ifTrue:[ |
|
3699 |
Transcript showCR:'change language to ' , newLanguage , ' ...'. |
|
3700 |
Smalltalk language:language asSymbol. |
|
3701 |
ResourcePack flushCachedResourcePacks |
|
3702 |
]. |
|
3703 |
]. |
|
3704 |
switch ifTrue:[ |
|
3705 |
requestor reopenLauncher. |
|
3706 |
DebugView newDebugger. |
|
3707 |
] |
|
219 | 3708 |
]. |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
3709 |
box |
1910 | 3710 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3711 |
box open. |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3712 |
box destroy |
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
3713 |
|
1465 | 3714 |
"Modified: / 9.9.1996 / 22:43:27 / stefan" |
1799 | 3715 |
"Modified: / 4.8.1998 / 16:54:32 / cg" |
219 | 3716 |
! |
3717 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3718 |
memorySettingsFor:requestor |
921 | 3719 |
"open a dialog on objectMemory related settings" |
3720 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
3721 |
|box igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
440 | 3722 |
compressLimit |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3723 |
oldIncr component fields codeLimit codeTrigger stackLimit resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3724 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3725 |
resources := requestor class classResources. |
341 | 3726 |
|
3727 |
"/ |
|
3728 |
"/ extract relevant system settings ... |
|
3729 |
"/ |
|
3730 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
3731 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
3732 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
3733 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
3734 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
440 | 3735 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
774 | 3736 |
codeLimit := ObjectMemory dynamicCodeLimit asValue. |
3737 |
codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue. |
|
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3738 |
stackLimit := Process defaultMaximumStackSize asValue. |
341 | 3739 |
|
3740 |
"/ |
|
3741 |
"/ create a box on those values ... |
|
3742 |
"/ |
|
3743 |
fields := OrderedCollection new. |
|
3744 |
||
3745 |
box := DialogBox new. |
|
3746 |
box label:(resources string:'Memory manager settings'). |
|
3747 |
||
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3748 |
(box addTextLabel:'Warning - invalid settings may result in failures or poor performance |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3749 |
|
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3750 |
You have been warned.') adjust:#left. |
341 | 3751 |
box addHorizontalLine. |
3752 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3753 |
component := box |
1910 | 3754 |
addLabelledInputField:(resources string:'size of newSpace:') |
3755 |
adjust:#right |
|
3756 |
on:nil "/ newSpaceSize |
|
3757 |
tabable:true |
|
3758 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3759 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3760 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3761 |
component model:newSpaceSize. |
341 | 3762 |
fields add:component. |
3763 |
||
3764 |
box addHorizontalLine. |
|
3765 |
||
3766 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3767 |
component := box |
1910 | 3768 |
addLabelledInputField:(resources string:'incremental GC allocation trigger:') |
3769 |
adjust:#right |
|
3770 |
on:nil "/ igcLimit |
|
3771 |
tabable:true |
|
3772 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3773 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3774 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3775 |
component model:igcLimit. |
341 | 3776 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3777 |
|
345 | 3778 |
box addTextLabel:'(start IGC whenever this amount has been allocated)'. |
341 | 3779 |
box addHorizontalLine. |
3780 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3781 |
component := box |
1910 | 3782 |
addLabelledInputField:(resources string:'incremental GC freespace trigger:') |
3783 |
adjust:#right |
|
3784 |
on:nil "/ igcFreeLimit |
|
3785 |
tabable:true |
|
3786 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3787 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3788 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3789 |
component model:igcFreeLimit. |
341 | 3790 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3791 |
|
341 | 3792 |
box addTextLabel:'(start IGC whenever freespace drops below this)'. |
3793 |
box addHorizontalLine. |
|
3794 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3795 |
component := box |
1910 | 3796 |
addLabelledInputField:(resources string:'incremental GC amount:') |
3797 |
adjust:#right |
|
3798 |
on:nil "/ igcFreeAmount |
|
3799 |
tabable:true |
|
3800 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3801 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3802 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3803 |
component model:igcFreeAmount. |
341 | 3804 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3805 |
|
345 | 3806 |
box addTextLabel:'(try to keep this amount for peak requests)'. |
341 | 3807 |
box addHorizontalLine. |
3808 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3809 |
component := box |
1910 | 3810 |
addLabelledInputField:(resources string:'oldspace increment:') |
3811 |
adjust:#right |
|
3812 |
on:nil "/ oldIncr |
|
3813 |
tabable:true |
|
3814 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3815 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3816 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3817 |
component model:oldIncr. |
341 | 3818 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3819 |
|
345 | 3820 |
box addTextLabel:'(increase oldSpace in chunks of this size)'. |
341 | 3821 |
box addHorizontalLine. |
3822 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3823 |
component := box |
1910 | 3824 |
addLabelledInputField:(resources string:'oldspace compress limit:') |
3825 |
adjust:#right |
|
3826 |
on:nil "/ compressLimit |
|
3827 |
tabable:true |
|
3828 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3829 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3830 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3831 |
component model:compressLimit. |
440 | 3832 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3833 |
|
440 | 3834 |
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
|
3835 |
box addHorizontalLine. |
440 | 3836 |
|
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3837 |
component := box |
1910 | 3838 |
addLabelledInputField:(resources string:'stack limit:') |
3839 |
adjust:#right |
|
3840 |
on:nil |
|
3841 |
tabable:true |
|
3842 |
separateAtX:0.7. |
|
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3843 |
component acceptOnLeave:false. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3844 |
component converter:(PrintConverter new initForNumber). |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3845 |
component model:stackLimit. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3846 |
fields add:component. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3847 |
|
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3848 |
box addTextLabel:'(trigger recursionInterrupt if more stack is used by a process)'. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3849 |
box addHorizontalLine. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3850 |
|
774 | 3851 |
ObjectMemory supportsJustInTimeCompilation ifTrue:[ |
1910 | 3852 |
component := box |
3853 |
addLabelledInputField:(resources string:'dynamic code limit:') |
|
3854 |
adjust:#right |
|
3855 |
on:nil |
|
3856 |
tabable:true |
|
3857 |
separateAtX:0.7. |
|
3858 |
component acceptOnLeave:false. |
|
3859 |
component converter:(PrintConverter new initForNumberOrNil). |
|
3860 |
component model:codeLimit. |
|
3861 |
fields add:component. |
|
3862 |
||
3863 |
box addTextLabel:'(flush dynamic compiled code to stay within this limit)'. |
|
3864 |
box addHorizontalLine. |
|
3865 |
||
3866 |
component := box |
|
3867 |
addLabelledInputField:(resources string:'dynamic code GC trigger:') |
|
3868 |
adjust:#right |
|
3869 |
on:nil |
|
3870 |
tabable:true |
|
3871 |
separateAtX:0.7. |
|
3872 |
component acceptOnLeave:false. |
|
3873 |
component converter:(PrintConverter new initForNumberOrNil). |
|
3874 |
component model:codeTrigger. |
|
3875 |
fields add:component. |
|
3876 |
||
3877 |
box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'. |
|
3878 |
box addHorizontalLine. |
|
774 | 3879 |
]. |
773
98efb7f5e8fa
prepared dynamic-compiler controls
Claus Gittinger <cg@exept.de>
parents:
772
diff
changeset
|
3880 |
|
341 | 3881 |
box addAbortButton; addOkButton. |
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3882 |
box |
1910 | 3883 |
addHelpButtonFor:'Launcher/memorySettings.html'. |
341 | 3884 |
|
3885 |
"/ |
|
3886 |
"/ show the box ... |
|
3887 |
"/ |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3888 |
box open. |
341 | 3889 |
|
3890 |
"/ |
|
3891 |
"/ update system settings |
|
3892 |
"/ |
|
3893 |
box accepted ifTrue:[ |
|
1910 | 3894 |
fields do:[:comp | comp accept]. |
3895 |
||
3896 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
|
3897 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
|
3898 |
]. |
|
3899 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
|
3900 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
|
3901 |
]. |
|
3902 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
|
3903 |
ObjectMemory incrementalGCLimit:igcLimit value. |
|
3904 |
]. |
|
3905 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
|
3906 |
ObjectMemory newSpaceSize:newSpaceSize value. |
|
3907 |
]. |
|
3908 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
|
3909 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
|
3910 |
]. |
|
3911 |
stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[ |
|
3912 |
Process defaultMaximumStackSize:stackLimit value. |
|
3913 |
]. |
|
3914 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
|
3915 |
ObjectMemory dynamicCodeLimit:codeLimit value. |
|
3916 |
ObjectMemory dynamicCodeGCTrigger:codeTrigger value. |
|
341 | 3917 |
]. |
3918 |
box destroy |
|
3919 |
||
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3920 |
"Modified: 27.2.1997 / 16:50:12 / cg" |
341 | 3921 |
! |
3922 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3923 |
messageSettingsFor:requestor |
921 | 3924 |
"open a dialog on infoMessage related settings" |
3925 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3926 |
|box vmInfo vmErrors displayErrors classInfos resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3927 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3928 |
resources := requestor class classResources. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3929 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3930 |
vmInfo := ObjectMemory infoPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3931 |
vmErrors := ObjectMemory debugPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3932 |
classInfos := Object infoPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3933 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3934 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3935 |
box := DialogBox new. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3936 |
box label:(resources string:'Messages'). |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3937 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3938 |
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
|
3939 |
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
|
3940 |
box addHorizontalLine. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3941 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3942 |
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
|
3943 |
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
|
3944 |
|
1002
1fff704cea57
help text for message settings
Claus Gittinger <cg@exept.de>
parents:
997
diff
changeset
|
3945 |
box addHelpButtonFor:'Launcher/messageSettings.html'. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3946 |
box addAbortButton; addOkButton. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3947 |
box open. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3948 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3949 |
box accepted ifTrue:[ |
1910 | 3950 |
ObjectMemory infoPrinting:vmInfo value. |
3951 |
ObjectMemory debugPrinting:vmErrors value. |
|
3952 |
Object infoPrinting:classInfos value. |
|
3953 |
DeviceWorkstation errorPrinting:displayErrors value. |
|
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3954 |
]. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3955 |
box destroy |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3956 |
|
1002
1fff704cea57
help text for message settings
Claus Gittinger <cg@exept.de>
parents:
997
diff
changeset
|
3957 |
"Modified: 27.1.1997 / 17:46:01 / cg" |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3958 |
! |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3959 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3960 |
miscSettingsFor:requestor |
921 | 3961 |
"open a dialog on misc other settings" |
3962 |
||
1660 | 3963 |
|box check shadows takeFocus returnFocus hasRDoitServer rDoitsEnabled |
1982
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
3964 |
rDoitLogging rDoitErrorLogging rDoitErrorDebugging hostNameInLabel showAccelerators |
1907
4bd804e2e90c
added checkBox for activateOnClick (win32 only)
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
3965 |
preemptive dynamicPrios hostNameInLabelHolder st80EditingMode resources y |
4bd804e2e90c
added checkBox for activateOnClick (win32 only)
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
3966 |
activateOnClick| |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3967 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3968 |
resources := requestor class classResources. |
843 | 3969 |
|
3970 |
"/ |
|
249 | 3971 |
"/ extract relevant system settings ... |
3972 |
"/ |
|
219 | 3973 |
shadows := PopUpView shadows asValue. |
1297 | 3974 |
hostNameInLabel := StandardSystemView includeHostNameInLabel. |
3975 |
hostNameInLabelHolder := hostNameInLabel asValue. |
|
973
bb876b0213e5
added setting for takeFocusWhenMapped
Claus Gittinger <cg@exept.de>
parents:
970
diff
changeset
|
3976 |
returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue. |
bb876b0213e5
added setting for takeFocusWhenMapped
Claus Gittinger <cg@exept.de>
parents:
970
diff
changeset
|
3977 |
takeFocus := StandardSystemView takeFocusWhenMapped asValue. |
1908
a26d18691237
activateOnClick now also supported with XWindow displays
Claus Gittinger <cg@exept.de>
parents:
1907
diff
changeset
|
3978 |
activateOnClick := (Display class activateOnClick:nil) asValue. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
3979 |
|
420
2c169931d1ab
allow turning of of accelerator display
Claus Gittinger <cg@exept.de>
parents:
410
diff
changeset
|
3980 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
3981 |
preemptive := Processor isTimeSlicing asValue. |
1793
77a1d990485e
added support for dynamic priorities in setting menu.
Claus Gittinger <cg@exept.de>
parents:
1790
diff
changeset
|
3982 |
dynamicPrios := Processor supportDynamicPriorities asValue. |
219 | 3983 |
|
1660 | 3984 |
rDoitsEnabled := rDoitLogging := rDoitErrorLogging := false. |
3985 |
(hasRDoitServer := RDoItServer notNil) ifTrue:[ |
|
1977 | 3986 |
RDoItServer isLoaded ifTrue:[ |
3987 |
rDoitsEnabled := RDoItServer serverRunning. |
|
3988 |
rDoitLogging := RDoItServer isLogging. |
|
3989 |
rDoitErrorLogging := RDoItServer isErrorLogging. |
|
1982
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
3990 |
rDoitErrorDebugging := RDoItServer isErrorCatching not. |
1977 | 3991 |
] |
1660 | 3992 |
]. |
3993 |
rDoitsEnabled := rDoitsEnabled asValue. |
|
3994 |
rDoitLogging := rDoitLogging asValue. |
|
3995 |
rDoitErrorLogging := rDoitErrorLogging asValue. |
|
1982
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
3996 |
rDoitErrorDebugging := rDoitErrorDebugging asValue. |
1660 | 3997 |
|
249 | 3998 |
"/ |
3999 |
"/ create a box on those values ... |
|
4000 |
"/ |
|
219 | 4001 |
box := DialogBox new. |
4002 |
box label:(resources string:'Other settings'). |
|
4003 |
||
4004 |
box addCheckBox:(resources string:'shadows under popup views') on:shadows. |
|
327 | 4005 |
box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus. |
973
bb876b0213e5
added setting for takeFocusWhenMapped
Claus Gittinger <cg@exept.de>
parents:
970
diff
changeset
|
4006 |
box addCheckBox:(resources string:'views catch focus when mapped') on:takeFocus. |
1297 | 4007 |
box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabelHolder. |
443 | 4008 |
box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators. |
1908
a26d18691237
activateOnClick now also supported with XWindow displays
Claus Gittinger <cg@exept.de>
parents:
1907
diff
changeset
|
4009 |
box addCheckBox:(resources string:'raise & activate windows on click') on:activateOnClick. |
a26d18691237
activateOnClick now also supported with XWindow displays
Claus Gittinger <cg@exept.de>
parents:
1907
diff
changeset
|
4010 |
|
938
7e9411dba623
added VerboseBacktraceDefault setting
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
4011 |
box addHorizontalLine. |
7e9411dba623
added VerboseBacktraceDefault setting
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
4012 |
|
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4013 |
box addCheckBox:(resources string:'preemptive scheduling') on:preemptive. |
1793
77a1d990485e
added support for dynamic priorities in setting menu.
Claus Gittinger <cg@exept.de>
parents:
1790
diff
changeset
|
4014 |
box leftIndent:20. |
77a1d990485e
added support for dynamic priorities in setting menu.
Claus Gittinger <cg@exept.de>
parents:
1790
diff
changeset
|
4015 |
check := box addCheckBox:(resources string:'dynamic priorities') on:dynamicPrios. |
77a1d990485e
added support for dynamic priorities in setting menu.
Claus Gittinger <cg@exept.de>
parents:
1790
diff
changeset
|
4016 |
check enableChannel:preemptive. |
77a1d990485e
added support for dynamic priorities in setting menu.
Claus Gittinger <cg@exept.de>
parents:
1790
diff
changeset
|
4017 |
box leftIndent:0. |
219 | 4018 |
|
1397
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
4019 |
box addHorizontalLine. |
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
4020 |
|
1660 | 4021 |
check := box addCheckBox:(resources string:'remote doits enabled') on:rDoitsEnabled. |
4022 |
hasRDoitServer ifFalse:[ |
|
1977 | 4023 |
check disable |
1660 | 4024 |
]. |
4025 |
box leftIndent:20. |
|
4026 |
y := box yPosition. |
|
4027 |
check := box addCheckBox:(resources string:'log errors') on:rDoitErrorLogging. |
|
4028 |
check width:0.4. |
|
4029 |
check enableChannel:rDoitsEnabled. |
|
4030 |
hasRDoitServer ifFalse:[ |
|
1977 | 4031 |
check disable |
1660 | 4032 |
]. |
4033 |
box yPosition:y. |
|
4034 |
check := box addCheckBox:(resources string:'log requests') on:rDoitLogging. |
|
4035 |
check left:0.4; width:0.5. |
|
4036 |
check enableChannel:rDoitsEnabled. |
|
4037 |
hasRDoitServer ifFalse:[ |
|
1977 | 4038 |
check disable |
1660 | 4039 |
]. |
1982
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4040 |
check := box addCheckBox:(resources string:'debug errors') on:rDoitErrorDebugging. |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4041 |
check width:0.4. |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4042 |
check enableChannel:rDoitsEnabled. |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4043 |
hasRDoitServer ifFalse:[ |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4044 |
check disable |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4045 |
]. |
1660 | 4046 |
box leftIndent:0. |
1397
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
4047 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
4048 |
box |
1977 | 4049 |
addHelpButtonFor:'Launcher/miscSettings.html'; |
4050 |
addAbortButton; |
|
4051 |
addOkButton. |
|
249 | 4052 |
|
4053 |
"/ |
|
4054 |
"/ show the box ... |
|
4055 |
"/ |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
4056 |
box open. |
219 | 4057 |
|
249 | 4058 |
"/ |
4059 |
"/ update system settings |
|
4060 |
"/ |
|
219 | 4061 |
box accepted ifTrue:[ |
1977 | 4062 |
PopUpView shadows:shadows value. |
4063 |
hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ |
|
4064 |
StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value. |
|
4065 |
||
4066 |
Screen allScreens do:[:aDisplay | |
|
4067 |
aDisplay allViewsDo:[:aView | |
|
4068 |
|l| |
|
4069 |
||
4070 |
aView isTopView ifTrue:[ |
|
4071 |
l := aView label. |
|
4072 |
l notNil ifTrue:[ |
|
4073 |
aView label:(l , ' '); label:l. "/ force a change |
|
4074 |
] |
|
4075 |
] |
|
4076 |
] |
|
4077 |
] |
|
4078 |
]. |
|
4079 |
StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value. |
|
4080 |
StandardSystemView takeFocusWhenMapped:takeFocus value. |
|
4081 |
Display class activateOnClick:(activateOnClick value). |
|
4082 |
||
4083 |
MenuView showAcceleratorKeys:showAccelerators value. |
|
4084 |
Processor isTimeSlicing ~~ preemptive value ifTrue:[ |
|
4085 |
preemptive value ifTrue:[ |
|
4086 |
Processor startTimeSlicing |
|
4087 |
] ifFalse:[ |
|
4088 |
Processor stopTimeSlicing |
|
4089 |
] |
|
4090 |
]. |
|
4091 |
Processor supportDynamicPriorities ~~ dynamicPrios value ifTrue:[ |
|
4092 |
Processor supportDynamicPriorities:dynamicPrios value |
|
4093 |
]. |
|
4094 |
||
4095 |
hasRDoitServer ifTrue:[ |
|
4096 |
(RDoItServer isLoaded |
|
1982
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4097 |
or:[rDoitLogging value ~~ RDoItServer isLogging |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4098 |
or:[rDoitErrorDebugging value ~~ RDoItServer isErrorCatching not |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4099 |
or:[rDoitErrorLogging value ~~ RDoItServer isErrorLogging |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4100 |
or:[rDoitsEnabled value ~~ false]]]]) ifTrue:[ |
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4101 |
RDoItServer logging:(rDoitLogging value). |
1977 | 4102 |
RDoItServer errorLogging:(rDoitErrorLogging value). |
1982
ef1e7a141694
added error-debugging flag to rdoit settings
Claus Gittinger <cg@exept.de>
parents:
1977
diff
changeset
|
4103 |
RDoItServer errorCatching:(rDoitErrorDebugging value not). |
1977 | 4104 |
rDoitsEnabled := rDoitsEnabled value. |
4105 |
rDoitsEnabled ~~ RDoItServer serverRunning ifTrue:[ |
|
4106 |
rDoitsEnabled ifFalse:[ |
|
4107 |
RDoItServer killAll |
|
4108 |
] ifTrue:[ |
|
1984 | 4109 |
RDoItServer start. |
4110 |
RDoItServer serverRunning ifFalse:[ |
|
4111 |
self warn:'RDoit startup failed (see stderr).' |
|
4112 |
] |
|
1977 | 4113 |
] |
4114 |
]. |
|
4115 |
]. |
|
4116 |
] |
|
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
4117 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
4118 |
box destroy |
219 | 4119 |
|
1397
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
4120 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
1977 | 4121 |
"Modified: / 6.1.1999 / 14:15:53 / cg" |
219 | 4122 |
! |
4123 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4124 |
printerSettingsFor:requestor |
921 | 4125 |
"open a dialog on printer related settings" |
4126 |
||
347 | 4127 |
|box |
595 | 4128 |
possiblePrinters possibleTypes printerType printCommand |
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4129 |
pageFormat landscape updater |
601 | 4130 |
formatLabel formatComponent landscapeLabel landscapeComponent |
709 | 4131 |
topMargin leftMargin rightMargin bottomMargin unitList unit |
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4132 |
topMarginComponent leftMarginComponent |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4133 |
rightMarginComponent |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4134 |
bottomMarginComponent supportsColor supportsColorComponent |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4135 |
y y1 commandListPop component commandList row resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4136 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4137 |
resources := requestor class classResources. |
347 | 4138 |
|
4139 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
4140 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
4141 |
||
4142 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
4143 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
4144 |
printCommand := Printer printCommand asValue. |
|
4145 |
||
604 | 4146 |
pageFormat := SelectionInList new list:(Printer defaultPageFormats). |
4147 |
pageFormat selection:(Printer pageFormat). |
|
4148 |
landscape := Printer landscape asValue. |
|
4149 |
||
707 | 4150 |
topMargin := Printer topMargin asValue. |
4151 |
leftMargin := Printer leftMargin asValue. |
|
709 | 4152 |
rightMargin := Printer rightMargin asValue. |
707 | 4153 |
bottomMargin := Printer bottomMargin asValue. |
702 | 4154 |
supportsColor := Printer supportsColor asValue. |
601 | 4155 |
|
347 | 4156 |
box := DialogBox new. |
4157 |
box label:(resources string:'Printer settings'). |
|
4158 |
||
726 | 4159 |
"/ either use a popUpList ... |
4160 |
"/ box addPopUpList:(resources string:'printer type:') on:printerType. |
|
4161 |
||
4162 |
"/ or a comboList; |
|
4163 |
"/ which one looks better ? |
|
4164 |
y := box yPosition. |
|
4165 |
component := box addTextLabel:(resources string:'printer type:'). |
|
1044 | 4166 |
component width:0.25; adjust:#right; borderWidth:0. |
726 | 4167 |
box yPosition:y. |
4168 |
component := box addComboListOn:printerType tabable:true. |
|
1047 | 4169 |
component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true. |
1044 | 4170 |
component width:0.75; left:0.25. |
726 | 4171 |
"/ end of question |
347 | 4172 |
|
4173 |
y := box yPosition. |
|
4174 |
component := box addTextLabel:(resources string:'print command:'). |
|
1044 | 4175 |
component width:0.25; adjust:#right; borderWidth:0. |
347 | 4176 |
box yPosition:y. |
598 | 4177 |
commandListPop := box addComboBoxOn:printCommand tabable:true. |
4178 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
1044 | 4179 |
commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
4180 |
"/ some common print commands ... |
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4181 |
|
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4182 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4183 |
commandList isNil ifTrue:[ |
1910 | 4184 |
commandList := PrinterStream defaultCommands. |
4185 |
commandList isNil ifTrue:[ |
|
4186 |
commandList := #('lpr' |
|
4187 |
'lp' |
|
4188 |
). |
|
4189 |
] |
|
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4190 |
]. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4191 |
|
598 | 4192 |
commandListPop list:commandList. |
1492 | 4193 |
|
4194 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
595 | 4195 |
|
4196 |
row := OrderedCollection new. |
|
601 | 4197 |
row add:(formatLabel := Label label:(resources string:'page format:')). |
676 | 4198 |
formatLabel borderWidth:0. |
601 | 4199 |
row add:(formatComponent := PopUpList on:pageFormat). |
4200 |
formatComponent label:'unknown'. |
|
4201 |
||
4202 |
row add:(landscapeLabel := Label label:(resources string:'landscape:')). |
|
676 | 4203 |
landscapeLabel borderWidth:0. |
601 | 4204 |
row add:(landscapeComponent := CheckToggle on:landscape). |
595 | 4205 |
|
4206 |
y := box yPosition. |
|
4207 |
box |
|
1910 | 4208 |
addRow:(1 to:2) |
4209 |
fromX:0 |
|
4210 |
toX:0.5 |
|
4211 |
collect:[:idx | row at:idx] |
|
4212 |
tabable:false |
|
4213 |
horizontalLayout:#leftSpace |
|
4214 |
verticalLayout:#center. |
|
595 | 4215 |
y1 := box yPosition. |
4216 |
box yPosition:y. |
|
4217 |
||
4218 |
box |
|
1910 | 4219 |
addRow:(3 to:4) |
4220 |
fromX:0.5 |
|
4221 |
toX:1.0 |
|
4222 |
collect:[:idx | row at:idx] |
|
4223 |
tabable:false |
|
4224 |
horizontalLayout:#leftSpace |
|
4225 |
verticalLayout:#center. |
|
595 | 4226 |
|
4227 |
box yPosition:(box yPosition max:y1). |
|
4228 |
||
601 | 4229 |
box makeTabable:(formatComponent). |
4230 |
box makeTabable:(landscapeComponent). |
|
4231 |
||
1492 | 4232 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
601 | 4233 |
|
4234 |
y := box yPosition. |
|
4235 |
||
707 | 4236 |
topMarginComponent := box |
1910 | 4237 |
addLabelledInputField:(resources string:'top margin:') |
4238 |
adjust:#right |
|
4239 |
on:nil "/ topMargin |
|
4240 |
tabable:true |
|
4241 |
from:0.0 to:0.5 |
|
4242 |
separateAtX:0.6. |
|
707 | 4243 |
topMarginComponent converter:(PrintConverter new initForNumber). |
4244 |
topMarginComponent model:topMargin. |
|
601 | 4245 |
y1 := box yPosition. |
4246 |
||
4247 |
box yPosition:y. |
|
4248 |
unitList := SelectionInList with:#('inch' 'mm'). |
|
4249 |
unitList selectionIndex:1. |
|
4250 |
||
605 | 4251 |
component := box addComponent:(PopUpList on:unitList). |
4252 |
component |
|
1910 | 4253 |
left:0.6; |
4254 |
width:0.3. |
|
601 | 4255 |
|
4256 |
box yPosition:y1. |
|
4257 |
||
707 | 4258 |
leftMarginComponent := box |
1910 | 4259 |
addLabelledInputField:(resources string:'left margin:') |
4260 |
adjust:#right |
|
4261 |
on:nil "/ leftMargin |
|
4262 |
tabable:true |
|
4263 |
from:0.0 to:0.5 |
|
4264 |
separateAtX:0.6. |
|
707 | 4265 |
leftMarginComponent converter:(PrintConverter new initForNumber). |
4266 |
leftMarginComponent model:leftMargin. |
|
4267 |
||
709 | 4268 |
rightMarginComponent := box |
1910 | 4269 |
addLabelledInputField:(resources string:'right margin:') |
4270 |
adjust:#right |
|
4271 |
on:nil "/ rightMargin |
|
4272 |
tabable:true |
|
4273 |
from:0.0 to:0.5 |
|
4274 |
separateAtX:0.6. |
|
709 | 4275 |
rightMarginComponent converter:(PrintConverter new initForNumber). |
4276 |
rightMarginComponent model:rightMargin. |
|
4277 |
||
707 | 4278 |
bottomMarginComponent := box |
1910 | 4279 |
addLabelledInputField:(resources string:'bottom margin:') |
4280 |
adjust:#right |
|
4281 |
on:nil "/ bottomMargin |
|
4282 |
tabable:true |
|
4283 |
from:0.0 to:0.5 |
|
4284 |
separateAtX:0.6. |
|
707 | 4285 |
bottomMarginComponent converter:(PrintConverter new initForNumber). |
4286 |
bottomMarginComponent model:bottomMargin. |
|
601 | 4287 |
|
702 | 4288 |
box addHorizontalLine. |
4289 |
supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor. |
|
4290 |
box addVerticalSpace. |
|
4291 |
||
601 | 4292 |
updater := [ |p fg hasPageSize hasMargins| |
598 | 4293 |
|
1910 | 4294 |
printerType selectionIndex ~~ 0 ifTrue:[ |
4295 |
p := possiblePrinters at:(printerType selectionIndex). |
|
4296 |
hasPageSize := p supportsPageSizes. |
|
4297 |
hasMargins := p supportsMargins. |
|
4298 |
] ifFalse:[ |
|
4299 |
hasPageSize := false. |
|
4300 |
hasMargins := false. |
|
4301 |
]. |
|
4302 |
hasPageSize ifTrue:[ |
|
4303 |
fg := Button new foregroundColor. |
|
4304 |
formatComponent enable. |
|
4305 |
landscapeComponent enable. |
|
4306 |
||
4307 |
formatComponent label:p pageFormat. |
|
4308 |
pageFormat value:(p pageFormat). |
|
4309 |
landscape value:(p landscape). |
|
4310 |
] ifFalse:[ |
|
4311 |
fg := Button new disabledForegroundColor. |
|
4312 |
formatComponent disable. |
|
4313 |
landscapeComponent disable. |
|
4314 |
||
4315 |
formatComponent label:'unknown'. |
|
4316 |
landscape value:nil. |
|
4317 |
]. |
|
4318 |
hasMargins ifTrue:[ |
|
4319 |
unitList selectionIndex == 2 ifTrue:[ |
|
4320 |
unit := #mm |
|
4321 |
] ifFalse:[ |
|
4322 |
unit := #inch |
|
4323 |
]. |
|
4324 |
||
4325 |
topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit). |
|
4326 |
leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit). |
|
4327 |
rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit). |
|
4328 |
bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit). |
|
4329 |
||
4330 |
topMarginComponent enable. |
|
4331 |
leftMarginComponent enable. |
|
4332 |
rightMarginComponent enable. |
|
4333 |
bottomMarginComponent enable. |
|
4334 |
] ifFalse:[ |
|
4335 |
topMarginComponent disable. |
|
4336 |
leftMarginComponent disable. |
|
4337 |
rightMarginComponent disable. |
|
4338 |
bottomMarginComponent disable. |
|
4339 |
]. |
|
4340 |
formatLabel foregroundColor:fg. |
|
4341 |
landscapeLabel foregroundColor:fg. |
|
4342 |
||
4343 |
p notNil ifTrue:[ |
|
4344 |
commandList := p defaultCommands. |
|
4345 |
commandList notNil ifTrue:[ |
|
4346 |
commandListPop list:commandList |
|
4347 |
]. |
|
4348 |
||
4349 |
printCommand value:(p printCommand). |
|
4350 |
]. |
|
4351 |
p supportsPostscript ifFalse:[ |
|
4352 |
supportsColorComponent disable. |
|
4353 |
supportsColor value:false |
|
4354 |
] ifTrue:[ |
|
4355 |
supportsColorComponent enable. |
|
4356 |
supportsColor value:(Printer supportsColor). |
|
4357 |
] |
|
4358 |
]. |
|
601 | 4359 |
unitList onChangeSend:#value to:updater. |
598 | 4360 |
printerType onChangeSend:#value to:updater. |
4361 |
updater value. |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
4362 |
|
608 | 4363 |
box addVerticalSpace; |
1910 | 4364 |
addHelpButtonFor:'Launcher/printerSettings.html'; |
4365 |
addAbortButton; addOkButton. |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
4366 |
box open. |
347 | 4367 |
|
4368 |
box accepted ifTrue:[ |
|
1910 | 4369 |
Printer := possiblePrinters at:(printerType selectionIndex). |
4370 |
Printer printCommand:printCommand value. |
|
4371 |
||
4372 |
Printer supportsPageSizes ifTrue:[ |
|
4373 |
Printer pageFormat:(pageFormat selection). |
|
4374 |
Printer landscape:(landscape value). |
|
4375 |
]. |
|
4376 |
Printer supportsMargins ifTrue:[ |
|
4377 |
unitList selectionIndex == 2 ifTrue:[ |
|
4378 |
unit := #mm |
|
4379 |
] ifFalse:[ |
|
4380 |
unit := #inch |
|
4381 |
]. |
|
4382 |
Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch). |
|
4383 |
Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch). |
|
4384 |
Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch). |
|
4385 |
Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch). |
|
4386 |
]. |
|
4387 |
Printer supportsPostscript ifTrue:[ |
|
4388 |
Printer supportsColor:supportsColor value. |
|
4389 |
]. |
|
347 | 4390 |
]. |
4391 |
box destroy |
|
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
4392 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4393 |
"Modified: 9.9.1996 / 22:43:51 / stefan" |
1047 | 4394 |
"Modified: 28.2.1997 / 14:00:13 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4395 |
|
347 | 4396 |
! |
4397 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4398 |
restoreSettingsFor:requestor |
921 | 4399 |
"restore settings from a settings-file." |
4400 |
||
853 | 4401 |
"a temporary kludge - we need a central systemSettings object for this, |
1733 | 4402 |
which can be saved/restored with a single store/read. |
4403 |
Will move entries over to UserPreferences over time; |
|
4404 |
new items should always go there." |
|
853 | 4405 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4406 |
|fileName resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4407 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4408 |
resources := requestor class classResources. |
853 | 4409 |
|
4410 |
fileName := Dialog |
|
1910 | 4411 |
requestFileName:(resources string:'restore settings from:') |
4412 |
default:'settings.stx' |
|
4413 |
ok:(resources string:'restore') |
|
4414 |
abort:(resources string:'cancel') |
|
4415 |
pattern:'*.stx' |
|
4416 |
fromDirectory:nil. |
|
853 | 4417 |
|
4418 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
1910 | 4419 |
"/ canceled |
4420 |
^ self |
|
853 | 4421 |
]. |
4422 |
||
4423 |
self withWaitCursorDo:[ |
|
1910 | 4424 |
Smalltalk fileIn:fileName. |
4425 |
||
4426 |
self reopenLauncher. |
|
853 | 4427 |
]. |
4428 |
||
1733 | 4429 |
"Modified: / 21.7.1998 / 11:37:54 / cg" |
853 | 4430 |
! |
4431 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4432 |
saveSettingsFor:requestor |
921 | 4433 |
"save settings to a settings-file." |
4434 |
||
853 | 4435 |
"a temporary kludge - we need a central systemSettings object for this, |
1733 | 4436 |
which can be saved/restored with a single store/read. |
4437 |
Will move entries over to UserPreferences over time; |
|
4438 |
new items should always go there." |
|
853 | 4439 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4440 |
|s screen fileName resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4441 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4442 |
resources := requestor class classResources. |
853 | 4443 |
|
4444 |
fileName := Dialog |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4445 |
requestFileName:(resources string:'save settings in:') |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4446 |
default:'settings.stx' |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4447 |
ok:(resources string:'save') |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4448 |
abort:(resources string:'cancel') |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4449 |
pattern:'*.stx' |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4450 |
fromDirectory:nil. |
853 | 4451 |
|
4452 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4453 |
"/ canceled |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4454 |
^ self |
853 | 4455 |
]. |
4456 |
||
4457 |
s := fileName asFilename writeStream. |
|
4458 |
s isNil ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4459 |
self warn:'cannot write the ''' , fileName , ''' file'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4460 |
^ self |
853 | 4461 |
]. |
4462 |
||
4463 |
s nextPutLine:'"/ ST/X saved settings'; |
|
4464 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
1184 | 4465 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
853 | 4466 |
nextPutLine:'"/'; |
4467 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
4468 |
nextPutLine:'"/ ''save settings'' function of the Launcher'; |
|
4469 |
nextPutLine:'"/'. |
|
4470 |
s cr. |
|
4471 |
||
4472 |
s nextPutLine:'"/'. |
|
4473 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
4474 |
s nextPutLine:'"/'. |
|
4475 |
s cr. |
|
4476 |
||
4477 |
s nextPutLine:'"/'. |
|
4478 |
s nextPutLine:'"/ Display settings:'. |
|
4479 |
s nextPutLine:'"/'. |
|
4480 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
4481 |
s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['. |
|
4482 |
screen := Screen current. |
|
4483 |
screen fixColors notNil ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4484 |
s nextPutLine:' Image flushDeviceImages.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4485 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4486 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4487 |
s nextPutLine:' ].'. |
853 | 4488 |
] ifFalse:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4489 |
s nextPutLine:' Display releaseFixColors.'. |
853 | 4490 |
]. |
4491 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
4492 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
4493 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
4494 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
4495 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
1514 | 4496 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
853 | 4497 |
s nextPutLine:'].'. |
4498 |
s cr. |
|
4499 |
||
4500 |
s nextPutLine:'"/'. |
|
4501 |
s nextPutLine:'"/ Compiler settings:'. |
|
4502 |
s nextPutLine:'"/'. |
|
4503 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
4504 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
4505 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
4506 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
1184 | 4507 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
853 | 4508 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
4509 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
|
4510 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
4511 |
||
4512 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
4513 |
||
4514 |
nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
4515 |
nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
4516 |
nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
4517 |
nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
4518 |
nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4519 |
nextPutLine:'ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.'; |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4520 |
nextPutLine:'ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.'; |
853 | 4521 |
|
4522 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
4523 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
4524 |
||
1354 | 4525 |
HistoryManager notNil ifTrue:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4526 |
HistoryManager isActive ifTrue:[ |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4527 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4528 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4529 |
] ifFalse:[ |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4530 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4531 |
]. |
853 | 4532 |
]. |
4533 |
||
4534 |
ObjectFileLoader notNil ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4535 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4536 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
853 | 4537 |
]. |
4538 |
||
4539 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
4540 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
4541 |
||
4542 |
s cr. |
|
4543 |
s nextPutLine:'"/'. |
|
4544 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
4545 |
s nextPutLine:'"/'. |
|
4546 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
4547 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
4548 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
4549 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
4550 |
||
4551 |
||
4552 |
s cr. |
|
4553 |
s nextPutLine:'"/'. |
|
1977 | 4554 |
s nextPutLine:'"/ Edit settings:'. |
4555 |
s nextPutLine:'"/'. |
|
4556 |
s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
4557 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
|
4558 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (UserPreferences current syntaxColoring storeString) , '.'. |
|
4559 |
||
4560 |
s cr. |
|
4561 |
s nextPutLine:'"/'. |
|
4562 |
s nextPutLine:'"/ Tool settings:'. |
|
4563 |
s nextPutLine:'"/'. |
|
4564 |
s nextPutLine:'UserPreferences current useNewInspector: ' , (UserPreferences current useNewInspector storeString) , '.'. |
|
4565 |
s nextPutLine:'UserPreferences current useNewChangesBrowser: ' , (UserPreferences current useNewChangesBrowser storeString) , '.'. |
|
4566 |
||
4567 |
s cr. |
|
4568 |
s nextPutLine:'"/'. |
|
853 | 4569 |
s nextPutLine:'"/ Misc settings:'. |
4570 |
s nextPutLine:'"/'. |
|
4571 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
4572 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
4573 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
4574 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
4575 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
4576 |
||
4577 |
"/ claus - I dont think its a good idea to save those ... |
|
4578 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
4579 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
4580 |
||
974 | 4581 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
4582 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4583 |
nextPutLine:'Display class activateOnClick: ' , ((Display class activateOnClick:nil) storeString) , '.'; |
853 | 4584 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
4585 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
915 | 4586 |
(Exception emergencyHandler == Launcher notifyingEmergencyHandler) ifTrue:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4587 |
s nextPutLine:'Exception emergencyHandler:(Launcher notifyingEmergencyHandler).'. |
915 | 4588 |
]. |
1801
3c3d9231684c
save the timeSlicer settings.
Claus Gittinger <cg@exept.de>
parents:
1799
diff
changeset
|
4589 |
Processor isTimeSlicing ifTrue:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4590 |
s nextPutLine:'Processor startTimeSlicing.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4591 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
1801
3c3d9231684c
save the timeSlicer settings.
Claus Gittinger <cg@exept.de>
parents:
1799
diff
changeset
|
4592 |
] ifFalse:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4593 |
s nextPutLine:'Processor stopTimeSlicing.'. |
1801
3c3d9231684c
save the timeSlicer settings.
Claus Gittinger <cg@exept.de>
parents:
1799
diff
changeset
|
4594 |
]. |
853 | 4595 |
|
4596 |
s cr. |
|
4597 |
s nextPutLine:'"/'. |
|
4598 |
s nextPutLine:'"/ Printer settings:'. |
|
4599 |
s nextPutLine:'"/'. |
|
4600 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
4601 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
4602 |
||
4603 |
Printer supportsPageSizes ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4604 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4605 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
853 | 4606 |
]. |
4607 |
Printer supportsMargins ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4608 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4609 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4610 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4611 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
853 | 4612 |
]. |
4613 |
Printer supportsPostscript ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4614 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
853 | 4615 |
]. |
4616 |
||
4617 |
s cr. |
|
4618 |
s nextPutLine:'"/'. |
|
4619 |
s nextPutLine:'"/ Font settings:'. |
|
4620 |
s nextPutLine:'"/'. |
|
4621 |
s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
4622 |
s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
4623 |
s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
4624 |
s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
4625 |
s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
4626 |
s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
4627 |
s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
4628 |
s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
4629 |
s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
4630 |
s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
4631 |
||
4632 |
s cr. |
|
4633 |
s nextPutLine:'"/'. |
|
4634 |
s nextPutLine:'"/ Language setting:'. |
|
4635 |
s nextPutLine:'"/'. |
|
4636 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
4637 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
4638 |
s close. |
|
4639 |
||
4640 |
" |
|
4641 |
Transcript topView application saveSettings |
|
4642 |
" |
|
4643 |
||
1977 | 4644 |
"Modified: / 6.1.1999 / 14:24:16 / cg" |
853 | 4645 |
! |
4646 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4647 |
sourceAndDebuggerSettingsFor:requestor |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4648 |
"open a dialog on source&debugger other settings" |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4649 |
|
1785 | 4650 |
|box check butt setupButt logDoits updChanges changeFileName |
4651 |
useManager hasManager cvsIsSetup |
|
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4652 |
repository repositoryHolder localSourceFirst |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4653 |
sourceCacheDir cacheEntry |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4654 |
component localCheck oldIndent nm fn manager |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4655 |
showErrorNotifier showVerboseStack |
1733 | 4656 |
syntaxColoring resources useNewInspector pos currentUserPrefs| |
4657 |
||
4658 |
currentUserPrefs := UserPreferences current. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4659 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4660 |
resources := requestor class classResources. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4661 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4662 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4663 |
"/ extract relevant system settings ... |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4664 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4665 |
logDoits := Smalltalk logDoits asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4666 |
updChanges := Class updatingChanges asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4667 |
changeFileName := ObjectMemory nameForChanges asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4668 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4669 |
hasManager := AbstractSourceCodeManager notNil |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4670 |
and:[AbstractSourceCodeManager isLoaded]. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4671 |
|
1785 | 4672 |
repositoryHolder := '' asValue. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4673 |
hasManager ifTrue:[ |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4674 |
useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4675 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4676 |
manager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4677 |
repository := manager repositoryName. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4678 |
repository notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4679 |
repositoryHolder := repository asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4680 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4681 |
repositoryHolder := '' asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4682 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4683 |
cvsIsSetup := true. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4684 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4685 |
cvsIsSetup := false asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4686 |
] |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4687 |
] ifFalse:[ |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4688 |
useManager := false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4689 |
localSourceFirst := false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4690 |
cvsIsSetup := false. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4691 |
]. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4692 |
showErrorNotifier := (Exception emergencyHandler == Launcher notifyingEmergencyHandler) asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4693 |
showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue. |
1733 | 4694 |
syntaxColoring := currentUserPrefs syntaxColoring asValue. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4695 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4696 |
sourceCacheDir := nil asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4697 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4698 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4699 |
"/ create a box on those values ... |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4700 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4701 |
box := DialogBox new. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4702 |
box label:(resources string:'Source & Debugger settings'). |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4703 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4704 |
box addCheckBox:(resources string:'log compiles in changes file') on:updChanges. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4705 |
box addCheckBox:(resources string:'log doIts in changes file') on:logDoits. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4706 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4707 |
component := box |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4708 |
addLabelledInputField:(resources string:'change file name:') |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4709 |
adjust:#right |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4710 |
on:changeFileName |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4711 |
tabable:true |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4712 |
separateAtX:0.4. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4713 |
component immediateAccept:true; acceptOnLeave:false. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4714 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4715 |
"/ y := box yPosition. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4716 |
"/ component := box addTextLabel:(resources string:'change file name:'). |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4717 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4718 |
"/ box yPosition:y. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4719 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4720 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4721 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4722 |
box addHorizontalLine. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4723 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4724 |
hasManager ifTrue:[ |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4725 |
pos := box yPosition. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4726 |
check := box addCheckBox:(resources string:'sourcecode management') on:useManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4727 |
check enableChannel:cvsIsSetup. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4728 |
box makeTabable:check. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4729 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4730 |
cvsIsSetup value ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4731 |
AbstractSourceCodeManager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4732 |
check width:0.6. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4733 |
box yPosition:pos. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4734 |
setupButt := box addComponent:(Button label:(resources string:'setup...') |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4735 |
action:[|manager| |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4736 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4737 |
self cvsConfigurationDialogFor:requestor. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4738 |
manager := (Smalltalk at:#SourceCodeManager). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4739 |
cvsIsSetup value:manager notNil. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4740 |
manager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4741 |
repositoryHolder value: manager repositoryName. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4742 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4743 |
setupButt beInvisible. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4744 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4745 |
]). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4746 |
box makeTabable:setupButt. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4747 |
setupButt left:0.6; width:0.4. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4748 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4749 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4750 |
oldIndent := box leftIndent. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4751 |
box leftIndent:30. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4752 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4753 |
component := box |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4754 |
addLabelledInputField:(resources string:'repository:') |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4755 |
adjust:#right |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4756 |
on:repositoryHolder |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4757 |
tabable:true |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4758 |
separateAtX:0.4. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4759 |
component immediateAccept:true; acceptOnLeave:false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4760 |
component enableChannel:useManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4761 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4762 |
cacheEntry := box |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4763 |
addLabelledInputField:(resources string:'source cache dir:') |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4764 |
adjust:#right |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4765 |
on:sourceCacheDir |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4766 |
tabable:true |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4767 |
separateAtX:0.4. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4768 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4769 |
cacheEntry enableChannel:useManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4770 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4771 |
localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4772 |
localCheck enableChannel:useManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4773 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4774 |
box leftIndent:oldIndent. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4775 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4776 |
(AbstractSourceCodeManager isNil |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4777 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4778 |
useManager value:false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4779 |
"/ cacheEntry disable. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4780 |
"/ localCheck enable. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4781 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4782 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4783 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4784 |
box addHorizontalLine. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4785 |
]. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4786 |
|
1602 | 4787 |
pos := box yPosition. |
4788 |
check := box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring. |
|
4789 |
check width:0.6. |
|
4790 |
box yPosition:pos. |
|
4791 |
butt := box addComponent:(Button label:(resources string:'configure...') action:[self syntaxColorConfigurationDialogFor:requestor]). |
|
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
4792 |
box makeTabable:butt. |
1602 | 4793 |
butt enableChannel:syntaxColoring. |
4794 |
butt left:0.6; width:0.4. |
|
4795 |
||
4796 |
box addHorizontalLine. |
|
4797 |
||
4798 |
||
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4799 |
box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4800 |
box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4801 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4802 |
box |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4803 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4804 |
addAbortButton; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4805 |
addOkButton. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4806 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4807 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4808 |
"/ show the box ... |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4809 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4810 |
box open. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4811 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4812 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4813 |
"/ update system settings |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4814 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4815 |
box accepted ifTrue:[ |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4816 |
Smalltalk logDoits:logDoits value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4817 |
Class updateChanges:updChanges value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4818 |
ObjectMemory nameForChanges:changeFileName value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4819 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4820 |
(hasManager and:[useManager value]) ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4821 |
manager isNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4822 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4823 |
manager := Smalltalk at:#SourceCodeManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4824 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4825 |
Class tryLocalSourceFirst:(localSourceFirst value). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4826 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4827 |
manager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4828 |
localSourceFirst value ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4829 |
nm := sourceCacheDir value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4830 |
nm size > 0 ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4831 |
(fn := nm asFilename) exists ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4832 |
(self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4833 |
fn makeDirectory; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4834 |
makeReadableForAll; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4835 |
makeWritableForAll; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4836 |
makeExecutableForAll. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4837 |
] |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4838 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4839 |
(fn exists |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4840 |
and:[fn isDirectory |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4841 |
and:[fn isReadable |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4842 |
and:[fn isWritable]]]) ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4843 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4844 |
] |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4845 |
] |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4846 |
] |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4847 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4848 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4849 |
repositoryHolder notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4850 |
repositoryHolder value size > 0 ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4851 |
manager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4852 |
manager initializeForRepository:repositoryHolder value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4853 |
] |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4854 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4855 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4856 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4857 |
Smalltalk at:#SourceCodeManager put:nil |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4858 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4859 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4860 |
showErrorNotifier value ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4861 |
Exception emergencyHandler:nil |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4862 |
] ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4863 |
Exception emergencyHandler:(Launcher notifyingEmergencyHandler) |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4864 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4865 |
DebugView defaultVerboseBacktrace:(showVerboseStack value). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4866 |
currentUserPrefs syntaxColoring:syntaxColoring value. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4867 |
]. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4868 |
box destroy |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4869 |
|
1517 | 4870 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
4871 |
"Created: / 17.1.1997 / 17:39:33 / cg" |
|
1548 | 4872 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4873 |
"Modified: / 13.10.1998 / 15:47:31 / cg" |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4874 |
! |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4875 |
|
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4876 |
stcCompilerSettingsFor:requestor |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4877 |
"open an extra dialog on stc-compiler related settings" |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4878 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4879 |
|box |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4880 |
stcCompilationOptions stcIncludes stcDefines stcOptions |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4881 |
stcLibraries stcLibraryPath cc stc ccOptions |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4882 |
linkCommand linkArgs |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4883 |
component t y y2 yMax |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4884 |
canLoadBinaries strings idx thisIsADemoVersion |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4885 |
resources| |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4886 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4887 |
resources := requestor class classResources. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4888 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4889 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4890 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4891 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4892 |
stcDefines := Compiler stcCompilationDefines asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4893 |
stcOptions := Compiler stcCompilationOptions asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4894 |
ccOptions := Compiler ccCompilationOptions asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4895 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4896 |
cc := Compiler ccPath asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4897 |
stc := Compiler stcPath asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4898 |
linkCommand := ObjectFileLoader linkCommand asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4899 |
linkArgs := ObjectFileLoader linkArgs asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4900 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4901 |
ObjectFileLoader notNil ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4902 |
(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4903 |
stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4904 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4905 |
(t := ObjectFileLoader libPath) notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4906 |
stcLibraryPath := t asValue. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4907 |
] |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4908 |
]. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4909 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4910 |
box := DialogBox new. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4911 |
box label:(resources string:'STC Compilation settings'). |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4912 |
|
1910 | 4913 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4914 |
ObjectFileLoader notNil ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4915 |
thisIsADemoVersion ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4916 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4917 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4918 |
addLabelledInputField:(resources string:'stc command:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4919 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4920 |
on:stc |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4921 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4922 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4923 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4924 |
component preferredExtent:(100 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4925 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4926 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4927 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4928 |
addLabelledInputField:(resources string:'stc options:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4929 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4930 |
on:stcOptions |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4931 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4932 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4933 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4934 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4935 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4936 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4937 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4938 |
addLabelledInputField:(resources string:'cc command:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4939 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4940 |
on:cc |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4941 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4942 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4943 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4944 |
component preferredExtent:(150 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4945 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4946 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4947 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4948 |
addLabelledInputField:(resources string:'cc options:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4949 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4950 |
on:ccOptions |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4951 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4952 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4953 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4954 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4955 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4956 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4957 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4958 |
addLabelledInputField:(resources string:'include directories:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4959 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4960 |
on:stcIncludes |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4961 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4962 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4963 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4964 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4965 |
canLoadBinaries ifFalse:[component disable]. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4966 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4967 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4968 |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4969 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4970 |
addLabelledInputField:(resources string:'defines:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4971 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4972 |
on:stcDefines |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4973 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4974 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4975 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4976 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4977 |
canLoadBinaries ifFalse:[component disable]. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4978 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4979 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4980 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4981 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4982 |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4983 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4984 |
addLabelledInputField:(resources string:'link command:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4985 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4986 |
on:linkCommand |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4987 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4988 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4989 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4990 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4991 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4992 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4993 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4994 |
addLabelledInputField:(resources string:'link args:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4995 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4996 |
on:linkArgs |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4997 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4998 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4999 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5000 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5001 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5002 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5003 |
stcLibraries notNil ifTrue:[ |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5004 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5005 |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5006 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5007 |
addLabelledInputField:(resources string:'C-libraries:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5008 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5009 |
on:stcLibraries |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5010 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5011 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5012 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5013 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5014 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5015 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5016 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5017 |
stcLibraryPath notNil ifTrue:[ |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5018 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5019 |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5020 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5021 |
addLabelledInputField:(resources string:'stc libPath:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5022 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5023 |
on:stcLibraryPath |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5024 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5025 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5026 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5027 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5028 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5029 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5030 |
]. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5031 |
]. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5032 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5033 |
box |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5034 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5035 |
addAbortButton; |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5036 |
addOkButton. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5037 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5038 |
box open. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5039 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5040 |
box accepted ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5041 |
thisIsADemoVersion ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5042 |
Compiler stcCompilationIncludes:stcIncludes value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5043 |
Compiler stcCompilationDefines:stcDefines value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5044 |
Compiler stcCompilationOptions:stcOptions value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5045 |
Compiler ccCompilationOptions:ccOptions value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5046 |
Compiler ccPath:cc value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5047 |
stc value ~= Compiler stcPath ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5048 |
Compiler stcPath:stc value |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5049 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5050 |
ObjectFileLoader linkCommand:linkCommand value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5051 |
ObjectFileLoader linkArgs:linkArgs value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5052 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5053 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5054 |
ObjectFileLoader notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5055 |
stcLibraries notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5056 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5057 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5058 |
stcLibraryPath notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5059 |
ObjectFileLoader libPath:(stcLibraryPath value). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5060 |
] |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5061 |
]. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5062 |
]. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5063 |
box destroy |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5064 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5065 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5066 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5067 |
"Created: / 2.10.1998 / 16:27:49 / cg" |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
5068 |
"Modified: / 21.10.1998 / 19:15:10 / cg" |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5069 |
! |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
5070 |
|
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5071 |
toolSettingsFor:requestor |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5072 |
"open a dialog on tool settings" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5073 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5074 |
|box |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5075 |
component |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5076 |
resources useNewInspector useNewChangesBrowser currentUserPrefs| |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5077 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5078 |
currentUserPrefs := UserPreferences current. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5079 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5080 |
resources := requestor class classResources. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5081 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5082 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5083 |
"/ extract relevant system settings ... |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5084 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5085 |
useNewInspector := currentUserPrefs useNewInspector asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5086 |
useNewChangesBrowser := currentUserPrefs useNewChangesBrowser asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5087 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5088 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5089 |
"/ create a box on those values ... |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5090 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5091 |
box := DialogBox new. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5092 |
box label:(resources string:'Tool settings'). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5093 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5094 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5095 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5096 |
box addCheckBox:(resources string:'Use the new Changes Browser') on:useNewChangesBrowser. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5097 |
box addHorizontalLine. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5098 |
box addCheckBox:(resources string:'Use hierarchical inspector') on:useNewInspector. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5099 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5100 |
box |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5101 |
addHelpButtonFor:'Launcher/toolSettings.html'; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5102 |
addAbortButton; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5103 |
addOkButton. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5104 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5105 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5106 |
"/ show the box ... |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5107 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5108 |
box open. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5109 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5110 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5111 |
"/ update system settings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5112 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5113 |
box accepted ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5114 |
currentUserPrefs useNewInspector:useNewInspector value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5115 |
currentUserPrefs useNewChangesBrowser:useNewChangesBrowser value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5116 |
useNewInspector value ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5117 |
Inspector := NewInspector::InspectorView |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5118 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5119 |
Inspector := InspectorView |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5120 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5121 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5122 |
box destroy |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5123 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5124 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5125 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5126 |
"Created: / 13.10.1998 / 15:44:36 / cg" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5127 |
"Modified: / 13.10.1998 / 16:03:43 / cg" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5128 |
! |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5129 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5130 |
viewStyleSettingsFor:requestor |
921 | 5131 |
"open a dialog on viewStyle related settings" |
5132 |
||
1610 | 5133 |
| resourceDir dir box |
1350 | 5134 |
list listView scrView infoLabel infoForwarder newStyle |
1610 | 5135 |
someRsrcFile b didApply resources listUpdater showStandardStylesOnly standardStyles| |
5136 |
||
5137 |
showStandardStylesOnly := true asValue. |
|
1662
fff1561497ba
openwin is no longer considered a supported style.
Claus Gittinger <cg@exept.de>
parents:
1660
diff
changeset
|
5138 |
standardStyles := #('iris' 'motif' 'mswindows95' 'next' 'os2' 'st80' 'normal'). |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5139 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5140 |
resources := requestor class classResources. |
219 | 5141 |
|
5142 |
" |
|
5143 |
search resources directory for a list of .style files ... |
|
5144 |
" |
|
1350 | 5145 |
someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style'). |
5146 |
someRsrcFile notNil ifTrue:[ |
|
1910 | 5147 |
resourceDir := someRsrcFile asFilename directoryName |
1350 | 5148 |
] ifFalse:[ |
1910 | 5149 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
1350 | 5150 |
]. |
5151 |
||
219 | 5152 |
resourceDir isNil ifTrue:[ |
1910 | 5153 |
self warn:'no styles found (missing ''resources'' directory)'. |
5154 |
^ self |
|
219 | 5155 |
]. |
1319 | 5156 |
dir := resourceDir asFilename directoryContents. |
219 | 5157 |
|
1610 | 5158 |
list := SelectionInList new. |
5159 |
||
5160 |
listUpdater := [ |
|
1910 | 5161 |
|listOfStyles lastSelection| |
5162 |
||
5163 |
lastSelection := list selection. |
|
5164 |
listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style']. |
|
5165 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name]. |
|
5166 |
Filename isCaseSensitive ifFalse:[ |
|
5167 |
listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase]. |
|
5168 |
]. |
|
5169 |
listOfStyles remove:'generic' ifAbsent:nil; remove:'mswindows3' ifAbsent:nil. |
|
5170 |
showStandardStylesOnly value ifTrue:[ |
|
5171 |
listOfStyles := listOfStyles select:[:aStyleName | standardStyles includes:aStyleName]. |
|
5172 |
]. |
|
5173 |
||
5174 |
listOfStyles sort. |
|
5175 |
list list:listOfStyles. |
|
5176 |
list selection:lastSelection. |
|
1319 | 5177 |
]. |
1610 | 5178 |
listUpdater value. |
5179 |
||
5180 |
showStandardStylesOnly onChangeSend:#value to:listUpdater. |
|
5181 |
||
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
5182 |
infoForwarder := [ |
1910 | 5183 |
|nm sheet comment| |
5184 |
||
5185 |
comment := ''. |
|
5186 |
nm := list selection. |
|
5187 |
nm notNil ifTrue:[ |
|
5188 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
5189 |
comment := (sheet at:#comment ifAbsent:'') withoutSeparators. |
|
5190 |
]. |
|
5191 |
comment := comment withCRs asStringCollection. |
|
5192 |
comment size == 1 ifTrue:[ |
|
5193 |
comment := comment first |
|
5194 |
]. |
|
5195 |
infoLabel label:comment |
|
5196 |
]. |
|
219 | 5197 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
5198 |
list onChangeSend:#value to:infoForwarder. |
219 | 5199 |
|
5200 |
box := Dialog new. |
|
5201 |
box label:(resources string:'Style selection'). |
|
5202 |
||
1602 | 5203 |
(box addTextLabel:(resources at:'STYLE_MSG' default:'select a style') withCRs) adjust:#left. |
219 | 5204 |
listView := SelectionInListView on:list. |
5205 |
listView doubleClickAction:[:sel | box accept value:true. box hide]. |
|
1610 | 5206 |
box addCheckBox:(resources string:'standard styles only') on:showStandardStylesOnly. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
5207 |
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
|
5208 |
|
219 | 5209 |
box addVerticalSpace. |
5210 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
5211 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
219 | 5212 |
|
1351 | 5213 |
box addAbortButton. |
1610 | 5214 |
|
5215 |
"/ mhmh - the newLauncher does not yet handle apply (without close) correctly |
|
5216 |
"/ b := box addButton:(Button label:(resources string:'apply')). |
|
5217 |
"/ b action:[didApply := true. requestor changeViewStyleTo:(list selection)]. |
|
5218 |
||
1351 | 5219 |
box addOkButton. |
1638
a5f4170a3e72
turn off 'standardStyles' if the current one is not in the list.
Claus Gittinger <cg@exept.de>
parents:
1633
diff
changeset
|
5220 |
|
a5f4170a3e72
turn off 'standardStyles' if the current one is not in the list.
Claus Gittinger <cg@exept.de>
parents:
1633
diff
changeset
|
5221 |
(standardStyles includes:View defaultStyle) ifFalse:[ |
1910 | 5222 |
showStandardStylesOnly value:false |
1638
a5f4170a3e72
turn off 'standardStyles' if the current one is not in the list.
Claus Gittinger <cg@exept.de>
parents:
1633
diff
changeset
|
5223 |
]. |
568 | 5224 |
list selection:(View defaultStyle). |
219 | 5225 |
|
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
5226 |
box stickAtBottomWithVariableHeight:scrView. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
5227 |
box stickAtBottomWithFixHeight:infoLabel. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
5228 |
box open. |
219 | 5229 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5230 |
box destroy. |
219 | 5231 |
box accepted ifTrue:[ |
1910 | 5232 |
((newStyle := list selection) ~= View defaultStyle |
5233 |
or:[didApply ~~ true]) ifTrue:[ |
|
5234 |
requestor changeViewStyleTo:newStyle. |
|
5235 |
]. |
|
1055
41df6ada2df7
dont deiconify debuggers (i.e. only walk over current project
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
5236 |
]. |
41df6ada2df7
dont deiconify debuggers (i.e. only walk over current project
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
5237 |
|
1051
5d05a5307a7a
added collapse & expand tools-menu items
Claus Gittinger <cg@exept.de>
parents:
1048
diff
changeset
|
5238 |
" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5239 |
self viewStyleSettingsFor:nil |
1051
5d05a5307a7a
added collapse & expand tools-menu items
Claus Gittinger <cg@exept.de>
parents:
1048
diff
changeset
|
5240 |
" |
5d05a5307a7a
added collapse & expand tools-menu items
Claus Gittinger <cg@exept.de>
parents:
1048
diff
changeset
|
5241 |
|
1886 | 5242 |
"Modified: / 14.9.1998 / 20:33:59 / cg" |
219 | 5243 |
! ! |
5244 |
||
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5245 |
!Launcher::LauncherDialogs class methodsFor:'dialogs - file'! |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5246 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5247 |
objectModuleDialogFor:requestor |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5248 |
"opens a moduleInfo dialog" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5249 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5250 |
<resource: #programMenu > |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5251 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5252 |
|allModules moduleNames |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5253 |
allObjects methodObjects methodNames |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5254 |
cObjects cObjectNames |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5255 |
otherObjects otherObjectNames |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5256 |
box l handles unloadButton unloadAndRemoveButton |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5257 |
list1 list2 listView1 listView2 |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5258 |
y panel |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5259 |
showBuiltIn showModules showMethods showCObjects showOthers |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5260 |
moduleListUpdater check canDoIt menu |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5261 |
resources middleLabel| |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5262 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5263 |
resources := requestor class classResources. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5264 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5265 |
showBuiltIn := true asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5266 |
canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5267 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5268 |
showModules := canDoIt asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5269 |
showMethods := canDoIt asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5270 |
showCObjects := canDoIt asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5271 |
showOthers := canDoIt asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5272 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5273 |
list1 := SelectionInList new. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5274 |
list2 := SelectionInList new. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5275 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5276 |
moduleListUpdater := [ |
1910 | 5277 |
|l| |
5278 |
||
5279 |
list2 list:nil. |
|
5280 |
||
5281 |
l := Array new. |
|
5282 |
handles := Array new. |
|
5283 |
||
5284 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
5285 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
5286 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
5287 |
allModules := allModules select:[:i | |
|
5288 |
|wantToSee| |
|
5289 |
||
5290 |
wantToSee := i dynamic. |
|
5291 |
showBuiltIn value ifTrue:[ |
|
5292 |
wantToSee := wantToSee not |
|
5293 |
]. |
|
5294 |
wantToSee |
|
5295 |
] |
|
5296 |
]. |
|
5297 |
||
5298 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
|
5299 |
allModules sort:[:a :b | (a id) > (b id)]. |
|
5300 |
moduleNames := allModules collect:[:entry | entry name]. |
|
5301 |
l := l , moduleNames. |
|
5302 |
handles := handles , allModules. |
|
5303 |
]. |
|
5304 |
||
5305 |
showMethods value ifTrue:[ |
|
5306 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
5307 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
5308 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
5309 |
'compiled method - removed' " , ' (in ' , mH pathName , ')' " |
|
5310 |
] ifFalse:[ |
|
5311 |
'compiled method ' , mH method whoString " , ' (in ' , mH pathName , ')' " |
|
5312 |
]. |
|
5313 |
]. |
|
5314 |
l := l , methodNames. |
|
5315 |
handles := handles , methodObjects. |
|
5316 |
]. |
|
5317 |
||
5318 |
showCObjects value ifTrue:[ |
|
5319 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
5320 |
cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray. |
|
5321 |
cObjectNames := cObjects collect:[:entry | entry pathName]. |
|
5322 |
l := l , cObjectNames. |
|
5323 |
handles := handles , cObjects. |
|
5324 |
]. |
|
5325 |
||
5326 |
showOthers value ifTrue:[ |
|
5327 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
5328 |
otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle |
|
5329 |
or:[h isMethodHandle |
|
5330 |
or:[h isClassLibHandle]]) not]) asArray. |
|
5331 |
otherObjectNames := otherObjects collect:[:entry | entry pathName]. |
|
5332 |
l := l , otherObjectNames. |
|
5333 |
handles := handles , otherObjects. |
|
5334 |
]. |
|
5335 |
||
5336 |
showBuiltIn value ifTrue:[ |
|
5337 |
l := #('VM') , l. |
|
5338 |
handles := #(VM) , handles. |
|
5339 |
allModules := #(VM) , allModules. |
|
5340 |
]. |
|
5341 |
||
5342 |
list1 list:l. |
|
5343 |
unloadButton disable. |
|
5344 |
unloadAndRemoveButton disable. |
|
5345 |
]. |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5346 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5347 |
showBuiltIn onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5348 |
showModules onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5349 |
showMethods onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5350 |
showCObjects onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5351 |
showOthers onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5352 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5353 |
box := Dialog new. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5354 |
box label:(resources string:'ST/X & Module Version information'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5355 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5356 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5357 |
listView1 model:list1. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5358 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5359 |
listView1 action:[:sel | |
1910 | 5360 |
|info classNames tabs module| |
5361 |
||
5362 |
listView1 middleButtonMenu:nil. |
|
5363 |
||
5364 |
box withWaitCursorDo:[ |
|
5365 |
|nm fileName addr entry1 entry2 entry3 method l| |
|
5366 |
||
5367 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6 3.5). |
|
5368 |
||
5369 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
5370 |
info := allModules at:sel ifAbsent:nil. |
|
5371 |
]. |
|
5372 |
info isNil ifTrue:[ |
|
5373 |
"/ selected a method, cObject or unknown |
|
5374 |
||
5375 |
module := handles at:sel. |
|
5376 |
fileName := module pathName. |
|
5377 |
||
5378 |
module isMethodHandle ifTrue:[ |
|
5379 |
middleLabel label:'contains method:'. |
|
5380 |
||
5381 |
(method := module method) isNil ifTrue:[ |
|
5382 |
nm := '** removed **'. |
|
5383 |
] ifFalse:[ |
|
5384 |
menu := PopUpMenu |
|
5385 |
labels:#('inspect' 'browse') |
|
5386 |
selectors:#(inspect browse). |
|
5387 |
menu actionAt:#inspect put:[ method inspect ]. |
|
5388 |
menu actionAt:#browse put:[ |who| |
|
5389 |
who := method who. |
|
5390 |
SystemBrowser |
|
5391 |
openInClass:(who methodClass) |
|
5392 |
selector:(who methodSelector) |
|
5393 |
]. |
|
5394 |
listView1 middleButtonMenu:menu. |
|
5395 |
||
5396 |
nm := (method whoString) asText emphasizeAllWith:(#color->Color blue). |
|
5397 |
]. |
|
5398 |
entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5399 |
entry1 colAt:1 put:'compiled method'; colAt:2 put:nm. |
|
5400 |
||
5401 |
entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5402 |
entry2 colAt:1 put:'path'; colAt:2 put:fileName. |
|
5403 |
||
5404 |
entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5405 |
entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code address hexPrintString leftPaddedTo:8 with:$0)). |
|
5406 |
||
5407 |
list2 list:(Array with:entry1 with:entry2 with:entry3). |
|
5408 |
] ifFalse:[ |
|
5409 |
(module isFunctionObjectHandle |
|
5410 |
and:[module functions notEmpty]) ifTrue:[ |
|
5411 |
middleLabel label:'contains function:'. |
|
5412 |
||
5413 |
menu := PopUpMenu |
|
5414 |
labels:#('inspect') |
|
5415 |
selectors:#(inspect). |
|
5416 |
menu actionAt:#inspect put:[ module functions inspect ]. |
|
5417 |
listView1 middleButtonMenu:menu. |
|
5418 |
||
5419 |
list2 list:((module functions select:[:f | f notNil]) |
|
5420 |
collect:[:f | |entry| |
|
5421 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5422 |
entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)). |
|
5423 |
entry colAt:2 put:('address: (16r) ' , (f code address hexPrintString leftPaddedTo:8 with:$0)). |
|
5424 |
entry |
|
5425 |
]). |
|
5426 |
] ifFalse:[ |
|
5427 |
list2 list:#('nothing known about contents (no functions have been extracted)'). |
|
5428 |
] |
|
5429 |
]. |
|
5430 |
||
5431 |
unloadButton enable. |
|
5432 |
unloadAndRemoveButton disable. |
|
5433 |
] ifFalse:[ |
|
5434 |
info == #VM ifTrue:[ |
|
5435 |
"/ dummy entry for VM; |
|
5436 |
"/ show file versions in lower view. |
|
5437 |
||
5438 |
middleLabel label:'contains modules:'. |
|
5439 |
l := (ObjectMemory getVMIdentificationStrings). |
|
5440 |
l := l select:[:entry | entry includesString:'$Header']. |
|
5441 |
l := l select:[:entry | entry includesString:',v']. |
|
5442 |
l := l collect:[:entry | |
|
5443 |
|i1 i2 file revision date listEntry| |
|
5444 |
||
5445 |
listEntry := MultiColListEntry new:3 tabulatorSpecification:tabs. |
|
5446 |
||
5447 |
i1 := entry indexOfSubCollection:'librun'. |
|
5448 |
i1 ~~ 0 ifTrue:[ |
|
5449 |
i2 := entry indexOfSubCollection:',v' startingAt:i1. |
|
5450 |
i2 ~~ 0 ifTrue:[ |
|
5451 |
file := entry copyFrom:i1+7 to:(i2-1). |
|
5452 |
listEntry colAt:1 put:file. |
|
5453 |
||
5454 |
i1 := i2+3. |
|
5455 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
5456 |
revision := entry copyFrom:i1 to:(i2-1). |
|
5457 |
listEntry colAt:2 put:revision. |
|
5458 |
||
5459 |
i1 := i2+1. |
|
5460 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
5461 |
date := entry copyFrom:i1 to:(i2-1). |
|
5462 |
listEntry colAt:3 put:date. |
|
5463 |
]. |
|
5464 |
]. |
|
5465 |
listEntry. |
|
5466 |
"/ entry |
|
5467 |
]. |
|
5468 |
list2 list:l. |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5469 |
|
1910 | 5470 |
unloadButton disable. |
5471 |
unloadAndRemoveButton disable. |
|
5472 |
] ifFalse:[ |
|
5473 |
"/ selected a package |
|
5474 |
||
5475 |
"/ fill bottom list with class-info |
|
5476 |
||
5477 |
middleLabel label:'contains classes:'. |
|
5478 |
classNames := info classNames asSortedCollection. |
|
5479 |
classNames := classNames select:[:cName | |
|
5480 |
|cls| |
|
5481 |
||
5482 |
cls := Smalltalk classNamed:cName. |
|
5483 |
cls isNil ifTrue:[ |
|
5484 |
true "a removed class" |
|
5485 |
] ifFalse:[ |
|
5486 |
cls isPrivate not |
|
5487 |
]. |
|
5488 |
]. |
|
5489 |
||
5490 |
classNames := classNames collect:[:cName | |
|
5491 |
|cls entry rev listEntry| |
|
5492 |
||
5493 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5494 |
listEntry colAt:1 put:cName. |
|
5495 |
||
5496 |
cls := Smalltalk classNamed:cName. |
|
5497 |
cls isNil ifTrue:[ |
|
5498 |
listEntry colAt:2 put:'(class removed)'. |
|
5499 |
] ifFalse:[ |
|
5500 |
rev := cls binaryRevision. |
|
5501 |
rev notNil ifTrue:[ |
|
5502 |
cls isLoaded ifFalse:[ |
|
5503 |
entry := '(stub for: ' , rev. |
|
5504 |
] ifTrue:[ |
|
5505 |
entry :='(bin: ' , rev. |
|
5506 |
]. |
|
5507 |
cls revision ~= rev ifTrue:[ |
|
5508 |
entry := entry , ' / src: ' , cls revision |
|
5509 |
]. |
|
5510 |
listEntry colAt:2 put:entry , ')' |
|
5511 |
] ifFalse:[ |
|
5512 |
cls revision notNil ifTrue:[ |
|
5513 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
|
5514 |
] |
|
5515 |
] |
|
5516 |
]. |
|
5517 |
listEntry |
|
5518 |
]. |
|
5519 |
list2 list:classNames. |
|
5520 |
info dynamic ifTrue:[ |
|
5521 |
unloadButton enable. |
|
5522 |
unloadAndRemoveButton enable. |
|
5523 |
] ifFalse:[ |
|
5524 |
unloadButton disable. |
|
5525 |
unloadAndRemoveButton disable. |
|
5526 |
]. |
|
5527 |
]. |
|
5528 |
] |
|
5529 |
] |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5530 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5531 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5532 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5533 |
panel := HorizontalPanelView new. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5534 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5535 |
panel add:(l := Label label:'show:'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5536 |
l adjust:#left; borderWidth:0. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5537 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5538 |
box makeTabable:check. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5539 |
panel add:(check := CheckBox label:'classLibs' model:showModules). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5540 |
canDoIt ifFalse:[ |
1910 | 5541 |
check disable |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5542 |
] ifTrue:[ |
1910 | 5543 |
box makeTabable:check. |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5544 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5545 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5546 |
canDoIt ifFalse:[ |
1910 | 5547 |
check disable |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5548 |
] ifTrue:[ |
1910 | 5549 |
box makeTabable:check. |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5550 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5551 |
panel add:(check := CheckBox label:'c-objects' model:showCObjects). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5552 |
canDoIt ifFalse:[ |
1910 | 5553 |
check disable |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5554 |
] ifTrue:[ |
1910 | 5555 |
box makeTabable:check. |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5556 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5557 |
panel add:(check := CheckBox label:'others' model:showOthers). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5558 |
canDoIt ifFalse:[ |
1910 | 5559 |
check disable |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5560 |
] ifTrue:[ |
1910 | 5561 |
box makeTabable:check. |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5562 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5563 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5564 |
panel horizontalLayout:#fitSpace. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5565 |
"/ panel horizontalLayout:#leftSpace. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5566 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5567 |
box addComponent:panel tabable:false. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5568 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5569 |
box addVerticalSpace. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5570 |
box addComponent:listView1 tabable:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5571 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5572 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5573 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5574 |
l := box addTextLabel:(resources string:'contains:'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5575 |
l adjust:#left; borderWidth:0. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5576 |
l origin:0.0@0.4 corner:1.0@0.4. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5577 |
l topInset:(View viewSpacing). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5578 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5579 |
middleLabel := l. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5580 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5581 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5582 |
listView2 model:list2; printItems:false. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5583 |
box addComponent:listView2 tabable:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5584 |
listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5585 |
listView2 disable. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5586 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5587 |
unloadButton := Button label:(resources string:'unload'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5588 |
unloadButton action:[ |
1910 | 5589 |
box withWaitCursorDo:[ |
5590 |
|info idx pathName| |
|
5591 |
||
5592 |
idx := list1 selectionIndex. |
|
5593 |
info := allModules at:idx ifAbsent:nil. |
|
5594 |
||
5595 |
list1 selectionIndex:nil. |
|
5596 |
||
5597 |
info isNil ifTrue:[ |
|
5598 |
"/ selected a method |
|
5599 |
"/ idx := idx - allModules size. |
|
5600 |
pathName := (handles at:idx) pathName. |
|
5601 |
||
5602 |
] ifFalse:[ |
|
5603 |
"/ selected a package |
|
5604 |
pathName := info pathName. |
|
5605 |
]. |
|
5606 |
ObjectFileLoader unloadObjectFile:pathName. |
|
5607 |
moduleListUpdater value. |
|
5608 |
unloadButton disable. |
|
5609 |
] |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5610 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5611 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5612 |
unloadAndRemoveButton := Button label:(resources string:'remove classes & unload'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5613 |
unloadAndRemoveButton action:[ |
1910 | 5614 |
box withWaitCursorDo:[ |
5615 |
|info idx pathName| |
|
5616 |
||
5617 |
idx := list1 selectionIndex. |
|
5618 |
info := allModules at:idx ifAbsent:nil. |
|
5619 |
||
5620 |
list1 selectionIndex:nil. |
|
5621 |
||
5622 |
info isNil ifTrue:[ |
|
5623 |
"/ selected a method |
|
5624 |
"/ idx := idx - allModules size. |
|
5625 |
pathName := (handles at:idx) pathName. |
|
5626 |
||
5627 |
] ifFalse:[ |
|
5628 |
"/ selected a package |
|
5629 |
pathName := info pathName. |
|
5630 |
]. |
|
5631 |
ObjectFileLoader unloadObjectFileAndRemoveClasses:pathName. |
|
5632 |
moduleListUpdater value. |
|
5633 |
unloadAndRemoveButton disable. |
|
5634 |
] |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5635 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5636 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5637 |
moduleListUpdater value. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5638 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5639 |
box addButton:unloadButton. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5640 |
box addButton:unloadAndRemoveButton. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5641 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5642 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5643 |
y := box yPosition. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5644 |
listView2 topInset:(l preferredExtent y + 5). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5645 |
listView2 bottomInset:(box preferredExtent y - y). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5646 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5647 |
box width:(400 min:(box device width * 2 // 3)); |
1910 | 5648 |
height:(450 min:(box device height - 50)). |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5649 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5650 |
"/ box sizeFixed:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5651 |
box openWithExtent:(600 min:(box device width * 2 // 3)) |
1910 | 5652 |
@ |
5653 |
(500 min:(box device height - 50)) . |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5654 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5655 |
box destroy. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5656 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5657 |
"Modified: / 17.9.1995 / 16:47:50 / claus" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5658 |
"Created: / 31.7.1998 / 15:49:45 / cg" |
1821
c8bc04c4ccaa
oops - cursor in moduleDialog
Claus Gittinger <cg@exept.de>
parents:
1801
diff
changeset
|
5659 |
"Modified: / 10.8.1998 / 11:33:22 / cg" |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5660 |
! ! |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5661 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5662 |
!Launcher::LauncherDialogs class methodsFor:'dialogs-private'! |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5663 |
|
1785 | 5664 |
cvsConfigurationDialogFor:requestor |
1829 | 5665 |
|box y cvsRootHolder component resources defaultsList| |
1785 | 5666 |
|
5667 |
resources := requestor class classResources. |
|
5668 |
||
1829 | 5669 |
OperatingSystem isUNIXlike ifTrue:[ |
1910 | 5670 |
defaultsList := #('/files/CVS' '/CVS' 'host:/files/CVS' 'host:/CVS'). |
1829 | 5671 |
] ifFalse:[ |
1910 | 5672 |
OperatingSystem isMSDOSlike ifTrue:[ |
5673 |
defaultsList := #(':local:c:\files\CVS' ':local:c:\CVS' 'host:/files/CVS' 'host:/CVS'). |
|
5674 |
] ifFalse:[ |
|
5675 |
defaultsList := #('host:/files/CVS' 'host:/CVS'). |
|
5676 |
] |
|
1829 | 5677 |
]. |
5678 |
||
1785 | 5679 |
cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'. |
5680 |
cvsRootHolder := cvsRootHolder asValue. |
|
5681 |
||
5682 |
"/ |
|
5683 |
"/ create a box to input the CVSRoot ... |
|
5684 |
"/ |
|
5685 |
box := DialogBox new. |
|
5686 |
box label:(resources string:'CVS Setup'). |
|
5687 |
||
5688 |
component := (box addTextLabel:'CVS SourceCodeManager setup'). |
|
5689 |
component adjust:#left. |
|
5690 |
||
1829 | 5691 |
y := box yPosition. |
5692 |
component := box addTextLabel:(resources string:'CVSRoot:'). |
|
5693 |
component width:0.25; adjust:#right; borderWidth:0. |
|
5694 |
box yPosition:y. |
|
5695 |
component := box addComboBoxOn:nil tabable:true. |
|
5696 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
5697 |
component width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
5698 |
component list:defaultsList. |
|
1785 | 5699 |
component model:cvsRootHolder. |
5700 |
||
1829 | 5701 |
"/ component := box |
5702 |
"/ addLabelledInputField:(resources string:'CVSRoot:') |
|
5703 |
"/ adjust:#right |
|
5704 |
"/ on:nil |
|
5705 |
"/ tabable:true |
|
5706 |
"/ separateAtX:0.5. |
|
5707 |
"/ component acceptOnLeave:false. |
|
5708 |
"/ component model:cvsRootHolder. |
|
5709 |
||
1785 | 5710 |
box |
1910 | 5711 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
5712 |
addAbortButton; |
|
5713 |
addOkButton. |
|
1785 | 5714 |
|
5715 |
"/ |
|
5716 |
"/ show the box ... |
|
5717 |
"/ |
|
5718 |
box extent:400@300. |
|
5719 |
box showAtPointer. |
|
5720 |
||
5721 |
"/ |
|
5722 |
"/ update system settings |
|
5723 |
"/ |
|
5724 |
box accepted ifTrue:[ |
|
1910 | 5725 |
CVSSourceCodeManager initializeForRepository:cvsRootHolder value |
1785 | 5726 |
]. |
5727 |
box destroy |
|
5728 |
||
5729 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
1829 | 5730 |
"Modified: / 12.8.1998 / 17:09:02 / cg" |
1785 | 5731 |
! |
5732 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5733 |
fontBoxForEncoding:encodingMatch for:requestor |
921 | 5734 |
"open a fontBox, showing fonts which match some encoding |
5735 |
(used when changing to japanese ...)" |
|
5736 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
5737 |
|box y b |
406 | 5738 |
labelDef buttonDef listDef menuDef textDef |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5739 |
models labels allOfThem filter resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5740 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5741 |
resources := requestor class classResources. |
406 | 5742 |
|
5743 |
encodingMatch notNil ifTrue:[ |
|
1910 | 5744 |
filter := [:f | f encoding notNil |
5745 |
and:[encodingMatch match:f encoding]]. |
|
406 | 5746 |
]. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5747 |
|
406 | 5748 |
models := OrderedCollection new. |
5749 |
labels := OrderedCollection new. |
|
5750 |
||
5751 |
models add:(allOfThem := nil asValue). |
|
5752 |
models add:(labelDef := Label defaultFont asValue). |
|
5753 |
models add:(buttonDef := Button defaultFont asValue). |
|
5754 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
5755 |
models add:(menuDef := MenuView defaultFont asValue). |
|
5756 |
models add:(textDef := TextView defaultFont asValue). |
|
5757 |
||
5758 |
box := Dialog new. |
|
5759 |
box label:(resources string:'Font settings'). |
|
5760 |
||
5761 |
models |
|
5762 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
|
5763 |
do:[:model :title | |
|
1910 | 5764 |
|y2 lbl f i| |
5765 |
||
5766 |
f := model value. |
|
5767 |
||
5768 |
(box addTextLabel:title) adjust:#left. |
|
5769 |
||
5770 |
y := box yPosition. |
|
5771 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
|
5772 |
b relativeExtent:nil; extent:(b preferredExtent). |
|
5773 |
y2 := box yPosition. |
|
5774 |
box yPosition:y. |
|
5775 |
i := box leftIndent. |
|
5776 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
|
5777 |
(lbl := box addTextLabel:'') |
|
5778 |
adjust:#left; |
|
5779 |
font:(model value); |
|
5780 |
labelChannel:(BlockValue |
|
5781 |
with:[:v | |f| |
|
5782 |
f := v value. |
|
5783 |
f isNil ifTrue:[ |
|
5784 |
'' |
|
5785 |
] ifFalse:[ |
|
5786 |
f userFriendlyName |
|
5787 |
] |
|
5788 |
] |
|
5789 |
argument:model). |
|
5790 |
labels add:lbl. |
|
5791 |
||
5792 |
box leftIndent:i. |
|
5793 |
box yPosition:(box yPosition max:y2). |
|
5794 |
||
5795 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
5796 |
||
5797 |
b action:[ |
|
5798 |
|f| |
|
5799 |
||
5800 |
f := FontPanel |
|
5801 |
fontFromUserInitial:(model value) |
|
5802 |
title:(resources string:'font for %1' with:title) |
|
5803 |
filter:filter. |
|
5804 |
f notNil ifTrue:[ |
|
5805 |
model == allOfThem ifTrue:[ |
|
5806 |
models do:[:m | m value:f]. |
|
5807 |
labels do:[:l | l font:f] |
|
5808 |
] ifFalse:[ |
|
5809 |
model value:f. |
|
5810 |
lbl font:f. |
|
5811 |
]. |
|
5812 |
] |
|
5813 |
]. |
|
5814 |
model == allOfThem ifTrue:[ |
|
5815 |
box addVerticalSpace |
|
5816 |
] |
|
406 | 5817 |
]. |
5818 |
||
5819 |
box addAbortButton; addOkButton. |
|
5820 |
(box addButton:(Button label:(resources string:'defaults')) before:nil) |
|
1910 | 5821 |
action:[ |
5822 |
"/ fetch defaults |
|
5823 |
View readStyleSheetAndUpdateAllStyleCaches. |
|
5824 |
labelDef value: Label defaultFont. |
|
5825 |
buttonDef value: Button defaultFont. |
|
5826 |
listDef value: SelectionInListView defaultFont. |
|
5827 |
menuDef value: MenuView defaultFont. |
|
5828 |
textDef value: TextView defaultFont. |
|
5829 |
]. |
|
406 | 5830 |
|
5831 |
box open. |
|
5832 |
box accepted ifTrue:[ |
|
1910 | 5833 |
Label defaultFont:labelDef value. |
5834 |
Button defaultFont:buttonDef value. |
|
5835 |
Toggle defaultFont:buttonDef value. |
|
5836 |
SelectionInListView defaultFont:listDef value. |
|
5837 |
MenuView defaultFont:menuDef value. |
|
5838 |
PullDownMenu defaultFont:menuDef value. |
|
5839 |
TextView defaultFont:textDef value. |
|
5840 |
EditTextView defaultFont:textDef value. |
|
5841 |
CodeView defaultFont:textDef value. |
|
406 | 5842 |
]. |
592
5a03a69bc5a3
oops - menuAction is now called with arg if there is one
Claus Gittinger <cg@exept.de>
parents:
591
diff
changeset
|
5843 |
box destroy. |
406 | 5844 |
^ box accepted |
5845 |
||
1892 | 5846 |
"Created: / 27.2.1996 / 01:44:16 / cg" |
5847 |
"Modified: / 17.6.1996 / 13:38:48 / stefan" |
|
5848 |
"Modified: / 15.9.1998 / 22:04:51 / cg" |
|
1602 | 5849 |
! |
5850 |
||
5851 |
syntaxColorConfigurationDialogFor:requestor |
|
5852 |
|box frame exampleView |
|
5853 |
component |
|
5854 |
resources exampleText coloredText recolorAction |
|
5855 |
syntaxColor syntaxColors colorMenu oldUserPreferences |
|
5856 |
syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox |
|
5857 |
syntaxEmphasisesBox syntaxColoringResetBox syntaxColoringEnableBlock| |
|
5858 |
||
5859 |
resources := requestor class classResources. |
|
5860 |
||
1717
0a345e0b9cbf
also offer underline styles in syntaxColoring settings.
Claus Gittinger <cg@exept.de>
parents:
1707
diff
changeset
|
5861 |
exampleText := |
0a345e0b9cbf
also offer underline styles in syntaxColoring settings.
Claus Gittinger <cg@exept.de>
parents:
1707
diff
changeset
|
5862 |
'methodSelector:methodArg |
1605 | 5863 |
"method comment: |
5864 |
some stupid code to show the current settings" |
|
1602 | 5865 |
|
5866 |
|methodVar| |
|
5867 |
||
1605 | 5868 |
"/ another comment ... |
1602 | 5869 |
self foo:methodArg. |
5870 |
self bar:methodVar. |
|
1605 | 5871 |
"self bar:methodVar. detect commented code easily" |
1606 | 5872 |
1 to:5 do:[:i | self baz:i + 1]. |
5873 |
Transcript showCR:''some string'' , #someSymbol. |
|
1602 | 5874 |
'. |
5875 |
||
5876 |
coloredText := '' asValue. |
|
5877 |
recolorAction := [ coloredText value:(SyntaxHighlighter formatMethod:exampleText in:nil) ]. |
|
5878 |
recolorAction value. |
|
5879 |
||
5880 |
"/ |
|
5881 |
"/ create a box on those values ... |
|
5882 |
"/ |
|
5883 |
box := DialogBox new. |
|
5884 |
box label:(resources string:'Syntax Colors'). |
|
5885 |
||
5886 |
frame := View new. |
|
1606 | 5887 |
frame extent:1.0 @ 200. |
1602 | 5888 |
frame borderWidth:0. |
5889 |
||
1606 | 5890 |
exampleView := HVScrollableView for:TextView in:frame. |
1602 | 5891 |
exampleView model:coloredText. |
5892 |
exampleView origin:0.0@0.0 corner:1.0@1.0; inset:2. |
|
5893 |
||
5894 |
frame topInset:box yPosition. |
|
1606 | 5895 |
box addComponent:frame withExtent:1.0@200. |
1602 | 5896 |
box makeTabable:exampleView. |
1606 | 5897 |
frame width:1.0. |
1602 | 5898 |
|
5899 |
box addVerticalSpace. |
|
5900 |
||
5901 |
oldUserPreferences := UserPreferences current copy. |
|
5902 |
||
1673
a6999f90d3b2
oops - selectionInList does not like a valueHolder as list.
Claus Gittinger <cg@exept.de>
parents:
1668
diff
changeset
|
5903 |
syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColors initialSelection:1). |
1602 | 5904 |
syntaxColorSelector := [(syntaxColors selection replChar:$ withString: '') asLowercaseFirst asSymbol]. |
5905 |
syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol]. |
|
5906 |
syntaxColor := (UserPreferences current perform: syntaxColorSelector value) asValue. |
|
5907 |
colorMenu := ColorMenu new. |
|
5908 |
colorMenu model: syntaxColor. |
|
5909 |
syntaxColor onChangeSend: #value to: |
|
1910 | 5910 |
[UserPreferences current at: syntaxColorSelector value put: syntaxColor value. |
5911 |
recolorAction value.]. |
|
1602 | 5912 |
syntaxColors onChangeSend: #value to: |
1910 | 5913 |
[syntaxColor value: (UserPreferences current perform:syntaxColorSelector value). |
5914 |
syntaxEmphasises selection: (UserPreferences current perform: syntaxEmphasisSelector value). |
|
5915 |
recolorAction value.]. |
|
1717
0a345e0b9cbf
also offer underline styles in syntaxColoring settings.
Claus Gittinger <cg@exept.de>
parents:
1707
diff
changeset
|
5916 |
syntaxEmphasisesBox := box addComboListOn: (syntaxEmphasises := SelectionInList with:#(normal underline bold boldUnderline italic italicUnderline reverse) initialSelection:1). |
1602 | 5917 |
syntaxEmphasises onChangeSend: #value to: |
1910 | 5918 |
[UserPreferences current at: syntaxEmphasisSelector value put: syntaxEmphasises selection asSymbol. |
5919 |
recolorAction value]. |
|
1602 | 5920 |
syntaxColors changed:#value. "/ to force initial update of emphasis |
5921 |
box addComponent:colorMenu tabable:true. |
|
5922 |
syntaxColoringResetBox := box addComponent:(Button new label: (resources string:'reset'); action: [UserPreferences reset. syntaxColor value: (UserPreferences current perform:syntaxColorSelector value)]). |
|
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
5923 |
box makeTabable:syntaxColoringResetBox. |
1602 | 5924 |
|
5925 |
syntaxColoringBox enable. colorMenu enable. syntaxEmphasisesBox enable. syntaxColoringResetBox enable. |
|
5926 |
||
5927 |
box |
|
5928 |
"/ addHelpButtonFor:'Launcher/sourceSettings.html'; |
|
1910 | 5929 |
addAbortButton; |
5930 |
addOkButton. |
|
1602 | 5931 |
|
5932 |
"/ |
|
5933 |
"/ show the box ... |
|
5934 |
"/ |
|
1606 | 5935 |
box extent:400@300. |
1602 | 5936 |
box openModal. |
5937 |
||
5938 |
"/ |
|
5939 |
"/ update system settings |
|
5940 |
"/ |
|
5941 |
box accepted ifTrue:[ |
|
5942 |
] ifFalse: [ |
|
1910 | 5943 |
(UserPreferences reset; current) declareAllFrom: oldUserPreferences |
1602 | 5944 |
]. |
5945 |
box destroy |
|
5946 |
||
5947 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
5948 |
"Modified: / 31.7.1998 / 01:37:46 / cg" |
90 | 5949 |
! ! |
5950 |
||
760 | 5951 |
!Launcher class methodsFor:'documentation'! |
86 | 5952 |
|
219 | 5953 |
version |
1984 | 5954 |
^ '$Header: /cvs/stx/stx/libtool/Launcher.st,v 1.397 1999-01-23 14:20:04 cg Exp $' |
86 | 5955 |
! ! |