author | Claus Gittinger <cg@exept.de> |
Fri, 04 Dec 1998 16:34:37 +0100 | |
changeset 1970 | 57099491a1bc |
parent 1954 | f0a78d543892 |
child 1973 | b9f91a173aa9 |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
879 |
fontSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
880 |
"open a dialog on font related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
881 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
882 |
LauncherDialogs fontSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
883 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
884 |
"Modified: / 31.7.1998 / 15:15:41 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
885 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
886 |
|
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
887 |
javaSettings |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
888 |
"open a dialog on java related settings" |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
889 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
890 |
LauncherDialogs javaSettingsFor:self. |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
891 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
892 |
"Modified: / 9.9.1996 / 22:43:04 / stefan" |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
893 |
"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
|
894 |
"Modified: / 31.7.1998 / 15:15:45 / cg" |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
895 |
! |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
896 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
897 |
keyboardSetting |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
898 |
"open a dialog on keyboard related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
899 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
900 |
LauncherDialogs keyboardSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
901 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
902 |
"Modified: / 9.9.1996 / 22:43:17 / stefan" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
903 |
"Modified: / 31.7.1998 / 15:15:49 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
904 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
905 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
906 |
languageSetting |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
907 |
"open a dialog on language related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
908 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
909 |
LauncherDialogs languageSettingsFor:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
910 |
|
1607 | 911 |
"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
|
912 |
"Modified: / 31.7.1998 / 15:17:32 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
913 |
! |
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 |
memorySettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
916 |
"open a dialog on objectMemory related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
917 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
918 |
LauncherDialogs memorySettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
919 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
920 |
"Modified: / 31.7.1998 / 15:17:42 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
921 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
922 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
923 |
messageSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
924 |
"open a dialog on infoMessage related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
925 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
926 |
LauncherDialogs messageSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
927 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
928 |
"Modified: / 31.7.1998 / 15:17:53 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
929 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
930 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
931 |
miscSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
932 |
"open a dialog on misc other settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
933 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
934 |
LauncherDialogs miscSettingsFor:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
935 |
|
1607 | 936 |
"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
|
937 |
"Modified: / 31.7.1998 / 15:17:56 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
938 |
! |
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 |
printerSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
941 |
"open a dialog on printer related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
942 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
943 |
LauncherDialogs printerSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
944 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
945 |
"Modified: / 9.9.1996 / 22:43:51 / stefan" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
946 |
"Modified: / 31.7.1998 / 15:18:00 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
947 |
! |
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 |
restoreSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
950 |
"restore settings from a settings-file." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
951 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
952 |
LauncherDialogs restoreSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
953 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
954 |
"Modified: / 31.7.1998 / 15:18:03 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
955 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
956 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
957 |
saveSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
958 |
"save settings to a settings-file." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
959 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
960 |
LauncherDialogs saveSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
961 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
962 |
"Modified: / 31.7.1998 / 15:18:06 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
963 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
964 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
965 |
sourceAndDebuggerSettings |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
966 |
"open a dialog on misc other settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
967 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
968 |
LauncherDialogs sourceAndDebuggerSettingsFor:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
969 |
|
1607 | 970 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
971 |
"Created: / 17.1.1997 / 17:39:33 / cg" |
|
972 |
"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
|
973 |
"Modified: / 31.7.1998 / 15:18:09 / cg" |
1599
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 |
|
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
976 |
toolSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
977 |
"open a dialog on tool settings" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
978 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
979 |
LauncherDialogs toolSettingsFor:self. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
980 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
981 |
"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
|
982 |
"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
|
983 |
"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
|
984 |
! |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
985 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
986 |
viewStyleSetting |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
987 |
"open a dialog on viewStyle related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
988 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
989 |
LauncherDialogs viewStyleSettingsFor:self. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
990 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
991 |
"Modified: / 31.7.1998 / 15:18:12 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
992 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
993 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
994 |
!Launcher methodsFor:'actions - tools'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
995 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
996 |
compressingGarbageCollect |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
997 |
"perform a compressing garbageCollect" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
998 |
|
1645
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
999 |
self withWaitCursorDo:[ObjectMemory verboseGarbageCollect] |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1000 |
|
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1001 |
"Created: / 12.5.1996 / 15:30:15 / cg" |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1002 |
"Modified: / 16.5.1998 / 02:44:00 / cg" |
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1005 |
deIconifyAllWindows |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1006 |
|setOfViews| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1007 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1008 |
setOfViews := Project current views asIdentitySet. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1009 |
setOfViews addAll:(Project defaultProject views). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1010 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1011 |
setOfViews do:[:aTopView | |
1910 | 1012 |
aTopView device == Screen current ifTrue:[ |
1013 |
aTopView expand |
|
1014 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1015 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1016 |
|
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 |
Transcript topView application deIconifyAllWindows |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1019 |
" |
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 |
"Modified: 3.3.1997 / 14:13:24 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1022 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1023 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1024 |
findAndDestroyWindow |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1025 |
"find a window (by name) and destroy it" |
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 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1028 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1029 |
v := self findWindow:'select view to close:'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1030 |
v notNil ifTrue:[ |
1910 | 1031 |
v destroy. |
1599
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 |
"Created: 28.10.1996 / 14:39:23 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1035 |
"Modified: 14.10.1997 / 11:25:37 / cg" |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1038 |
findAndRaiseWindow |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1039 |
"find a window (by name) and raise it" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1040 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1041 |
|v| |
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 |
v := self findWindow:'select view to raise deiconified:'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1044 |
v notNil ifTrue:[ |
1910 | 1045 |
v raiseDeiconified. |
1599
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 |
"Modified: 14.10.1997 / 11:25:42 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1049 |
! |
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 |
fullScreenHardcopy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1052 |
"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
|
1053 |
save the contents of the whole screen." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1054 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1055 |
Processor |
1910 | 1056 |
addTimedBlock:[ |
1057 |
self |
|
1058 |
saveScreenImage:(Image fromScreen) |
|
1059 |
defaultName:'screen' |
|
1060 |
] |
|
1061 |
afterSeconds:1 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1062 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1063 |
"Modified: 23.9.1996 / 14:36:14 / cg" |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1066 |
garbageCollect |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1067 |
"perform a non-compressing garbageCollect" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1068 |
|
1645
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1069 |
self withWaitCursorDo:[ObjectMemory reclaimSymbols] |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1070 |
|
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1071 |
"Created: / 12.5.1996 / 15:28:03 / cg" |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1072 |
"Modified: / 16.5.1998 / 02:43:37 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1073 |
! |
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 |
globalGarbageCollect |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1076 |
"perform a non-compressing garbageCollect" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1077 |
|
1645
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1078 |
self withWaitCursorDo:[ObjectMemory reclaimSymbols] |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1079 |
|
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1080 |
"Created: / 12.5.1996 / 15:28:13 / cg" |
a97b331268cb
show a wait cursor during GC
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
1081 |
"Modified: / 16.5.1998 / 02:43:50 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1082 |
! |
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 |
iconifyAllWindows |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1085 |
|setOfViews| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1086 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1087 |
setOfViews := Project current views asIdentitySet. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1088 |
setOfViews addAll:(Project defaultProject views). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1089 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1090 |
setOfViews do:[:aTopView | |
1910 | 1091 |
aTopView device == Screen current ifTrue:[ |
1092 |
aTopView collapse |
|
1093 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1094 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1095 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1096 |
"Created: 1.3.1997 / 20:10:58 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1097 |
"Modified: 3.3.1997 / 14:13:11 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1098 |
! |
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 |
screenHardcopy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1101 |
"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
|
1102 |
let user specify a rectangular area on the screen |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1103 |
and save its contents." |
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 |
|area| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1106 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1107 |
Processor |
1910 | 1108 |
addTimedBlock:[ |
1109 |
[Screen current leftButtonPressed] whileTrue:[Delay waitForSeconds:0.05]. |
|
1110 |
||
1111 |
area := Rectangle fromUser. |
|
1112 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
|
1113 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
|
1114 |
] |
|
1115 |
] |
|
1116 |
afterSeconds:1 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1117 |
|
1840 | 1118 |
"Modified: / 18.8.1998 / 14:59:45 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1119 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1120 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1121 |
startApplication:aSymbol |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1122 |
"start an application, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1123 |
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
|
1124 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1125 |
|app| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1126 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1127 |
app := Smalltalk classNamed:aSymbol. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1128 |
app isBehavior ifTrue:[ |
1910 | 1129 |
app isLoaded ifFalse:[ |
1130 |
Autoload autoloadFailedSignal handle:[:ex| |
|
1131 |
^ self warn:(resources string:'Sorry - cannot load %1' with:app name). |
|
1132 |
] do:[ |
|
1133 |
app autoload. |
|
1134 |
]. |
|
1135 |
]. |
|
1136 |
app open. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1137 |
] ifFalse:[ |
1910 | 1138 |
self warn:(resources |
1139 |
string:'Sorry - %1 is not available in this release' |
|
1140 |
with:aSymbol asString). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1141 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1142 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1143 |
"Created: / 19.12.1997 / 13:00:29 / stefan" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1144 |
"Modified: / 19.12.1997 / 14:09:46 / stefan" |
1831 | 1145 |
"Modified: / 14.8.1998 / 13:04:59 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1146 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1147 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1148 |
startFullWindowTreeView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1149 |
"open a windowTree view (on all views)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1150 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1151 |
WindowTreeView open |
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 |
"Modified: 8.1.1997 / 14:56:04 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1154 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1155 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1156 |
startGUIBuilder |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1157 |
"open a GUIBuilder view" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1158 |
|
1831 | 1159 |
UIPainter isNil ifTrue:[ |
1910 | 1160 |
^ self warn:'The UIPainter is not available in this release.' |
1831 | 1161 |
]. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1162 |
UIPainter open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1163 |
|
1831 | 1164 |
"Created: / 25.7.1997 / 10:56:30 / cg" |
1165 |
"Modified: / 14.8.1998 / 13:05:42 / cg" |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1166 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1167 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1168 |
startNewLauncher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1169 |
"open a real new launcher" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1170 |
|
1831 | 1171 |
NewLauncher isNil ifTrue:[ |
1910 | 1172 |
^ self warn:'The NewLauncher is not available in this release.' |
1831 | 1173 |
]. |
1174 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1175 |
NewLauncher openAt:(self window origin) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1176 |
|
1831 | 1177 |
"Modified: / 14.8.1998 / 13:05:33 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1178 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1179 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1180 |
startStopEventTrace |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1181 |
"start/stop event tracing for a particular view" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1182 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1183 |
|v wg| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1184 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1185 |
v := Screen current viewFromUser. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1186 |
v notNil ifTrue:[ |
1910 | 1187 |
v := v topView. |
1188 |
wg := v windowGroup. |
|
1189 |
wg notNil ifTrue:[ |
|
1190 |
"/ |
|
1191 |
"/ toggle eventTrace in its windowGroup |
|
1192 |
"/ |
|
1193 |
wg traceEvents:(wg preEventHook isNil) |
|
1194 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1195 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1196 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1197 |
"Created: 7.3.1996 / 14:44:22 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1198 |
"Modified: 8.1.1997 / 14:56:44 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1199 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1200 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1201 |
startWindowTreeView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1202 |
"open a windowTree view (on a topView)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1203 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1204 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1205 |
|
1831 | 1206 |
WindowTreeView isNil ifTrue:[ |
1910 | 1207 |
^ self warn:'The WindowTreeView is not available in this release.' |
1831 | 1208 |
]. |
1209 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1210 |
v := self pickAView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1211 |
v notNil ifTrue:[ |
1910 | 1212 |
WindowTreeView openOn:v topView |
1599
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 |
|
1831 | 1215 |
"Modified: / 14.8.1998 / 13:05:58 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1216 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1217 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1218 |
viewDestroy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1219 |
"let user pick a view and destroy it. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1220 |
Even allow destroying non-smalltalk views |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1221 |
(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
|
1222 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1223 |
|device p v id i c| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1224 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1225 |
(Delay forSeconds:1) wait. |
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 |
device := Screen current. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1228 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1229 |
i isNil ifTrue:[ |
1910 | 1230 |
c := Cursor crossHair |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1231 |
] ifFalse:[ |
1910 | 1232 |
c := Cursor fromImage:i |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1233 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1234 |
p := device pointFromUserShowing:c. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1235 |
id := device viewIdFromPoint:p. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1236 |
v := device viewFromId:id. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1237 |
v notNil ifTrue:[ |
1910 | 1238 |
v topView destroy. |
1239 |
^ self |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1240 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1241 |
id = device rootView id ifTrue:[ |
1910 | 1242 |
^ self |
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 |
(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
|
1245 |
ifTrue:[ |
1910 | 1246 |
device destroyView:nil withId:id |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1247 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1248 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1249 |
"Modified: 18.9.1995 / 23:13:32 / claus" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1250 |
"Modified: 19.10.1997 / 03:09:20 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1251 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1252 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1253 |
viewHardcopy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1254 |
"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
|
1255 |
let user specify a view and save its contents." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1256 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1257 |
Processor |
1910 | 1258 |
addTimedBlock:[ |
1259 |
|v| |
|
1260 |
||
1261 |
v := Screen current viewFromUser. |
|
1262 |
v notNil ifTrue:[ |
|
1263 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
|
1264 |
] |
|
1265 |
] |
|
1266 |
afterSeconds:1 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1267 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1268 |
"Modified: 19.10.1997 / 03:09:34 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1269 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1270 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1271 |
viewInspect |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1272 |
"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
|
1273 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1274 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1275 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1276 |
v := self pickAView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1277 |
v notNil ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1278 |
"/ v topView inspect |
1910 | 1279 |
v inspect |
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1282 |
! ! |
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 |
!Launcher methodsFor:'change & update'! |
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 |
update:something with:aParameter from:changedObject |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1287 |
"care for project changes & update my infoView" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1288 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1289 |
((something == #currentProject) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1290 |
or:[changedObject == Project]) ifTrue:[ |
1910 | 1291 |
self updateInfo. |
1292 |
^ self |
|
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1295 |
"Modified: 28.7.1997 / 18:39:39 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1296 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1297 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1298 |
!Launcher methodsFor:'drag & drop'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1299 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1300 |
canDrop:aCollectionOfDropObjects in:aComponent |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1301 |
"I accept fileObjects in the fileBrowser button |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1302 |
and open a fileBrowser ..." |
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 |
aCollectionOfDropObjects size ~~ 1 ifTrue:[^ false]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1305 |
^ aCollectionOfDropObjects first isFileObject |
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 |
"Modified: 11.4.1997 / 12:42:59 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1308 |
! |
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 |
drop:aCollectionOfDropObjects in:aComponent at:aPoint |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1311 |
"I accept fileObjects and will open a fileBrowser ..." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1312 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1313 |
|singleDropObject| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1314 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1315 |
aCollectionOfDropObjects size == 1 ifFalse:[ |
1910 | 1316 |
transcript showCR:'can only drop single objects'. |
1317 |
^ self |
|
1599
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 |
singleDropObject := aCollectionOfDropObjects first. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1320 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1321 |
singleDropObject isFileObject ifTrue:[ |
1910 | 1322 |
FileBrowser openOnFileNamed:(singleDropObject theObject pathName) |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1323 |
]. |
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 |
"Modified: 11.4.1997 / 12:44:29 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1326 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1327 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1328 |
!Launcher methodsFor:'dynamic menus'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1329 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1330 |
addMenu:name withItems:items actions:actions |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1331 |
"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
|
1332 |
This allows applications to install items for themself |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1333 |
dynamically in the launcher." |
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 |
|subMenu| |
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 |
myMenu add:name selector:(name asSymbol) before:#help. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1338 |
subMenu := MenuView forMenu:myMenu. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1339 |
subMenu labels:items. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1340 |
subMenu actions:actions. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1341 |
myMenu at:name putMenu:subMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1342 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1343 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1344 |
|launcher actionBlocks| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1345 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1346 |
actionBlocks := Array new:3. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1347 |
actionBlocks at:1 put:[Transcript showCR:'foo']. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1348 |
actionBlocks at:2 put:[Transcript showCR:'bar']. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1349 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1350 |
launcher := Transcript topView application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1351 |
launcher |
1910 | 1352 |
addMenu:'misc' |
1353 |
withItems:#('foo' 'bar') |
|
1354 |
actions:actionBlocks |
|
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1357 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1358 |
|launcher actionBlocks| |
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 |
actionBlocks := Array new:3. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1361 |
actionBlocks at:1 put:[RDoItServer startServer]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1362 |
actionBlocks at:2 put:[RDoItServer killServer]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1363 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1364 |
launcher := Transcript topView application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1365 |
launcher |
1910 | 1366 |
addMenu:'misc' |
1367 |
withItems:#('start rdoit server' 'stop rdoit server') |
|
1368 |
actions:actionBlocks |
|
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1371 |
"Modified: 5.7.1996 / 11:45:19 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1372 |
! |
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 |
menuAt:nameSymbol |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1375 |
"return a menu by name" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1376 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1377 |
^ myMenu subMenuAt:nameSymbol |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1378 |
|
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 |
|launcher demoMenu| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1381 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1382 |
launcher := Transcript topView application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1383 |
demoMenu := launcher menuAt:#demos. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1384 |
demoMenu |
1910 | 1385 |
addLabels:#('-' 'fooBar') |
1386 |
selectors:#(nil fooBar). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1387 |
demoMenu actionAt:#fooBar put:[Transcript showCR:'fooBar'] |
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 |
"Created: 11.7.1996 / 15:35:13 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1391 |
"Modified: 11.7.1996 / 15:42:25 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1392 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1393 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1394 |
removeMenu:name |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1395 |
"dynamically remove a (user-)menu from the menu panel. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1396 |
This allows applications to de-install items for themself |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1397 |
dynamically in the launcher." |
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 |
myMenu remove:name |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1400 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1401 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1402 |
|launcher actionBlocks| |
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 |
actionBlocks := Array new:3. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1405 |
actionBlocks at:1 put:[Transcript showCR:'foo']. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1406 |
actionBlocks at:2 put:[Transcript showCR:'bar']. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1407 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1408 |
launcher := Transcript topView application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1409 |
launcher |
1910 | 1410 |
addMenu:'misc' |
1411 |
withItems:#('foo' 'bar') |
|
1412 |
actions:actionBlocks. |
|
1599
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 |
Delay waitForSeconds:10. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1415 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1416 |
launcher removeMenu:'misc' |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1419 |
"Created: 5.7.1996 / 11:44:54 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1420 |
"Modified: 5.7.1996 / 11:54:36 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1421 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1422 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1423 |
!Launcher methodsFor:'help'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1424 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1425 |
helpTextFor:aComponent |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1426 |
"activeHelp interface: return some help text for a component" |
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 |
|sel s buttons| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1429 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1430 |
aComponent == transcript ifTrue:[ |
1910 | 1431 |
s := 'TRANSCRIPT_HELP' |
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1434 |
aComponent == infoView ifTrue:[ |
1910 | 1435 |
s := 'INFOVIEW_HELP' |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1436 |
]. |
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 |
buttons := buttonPanel subViews. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1439 |
(buttons notNil and:[buttons includes:aComponent]) ifTrue:[ |
1910 | 1440 |
"kludge: look for its change selector" |
1441 |
sel := aComponent changeMessage. |
|
1442 |
sel == #startSystemBrowser ifTrue:[ |
|
1443 |
s := 'SBROWSER_BUTTON_HELP' |
|
1444 |
]. |
|
1445 |
sel == #startFileBrowser ifTrue:[ |
|
1446 |
s := 'FBROWSER_BUTTON_HELP' |
|
1447 |
]. |
|
1448 |
sel == #startChangesBrowser ifTrue:[ |
|
1449 |
s := 'CBROWSER_BUTTON_HELP' |
|
1450 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1451 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1452 |
s notNil ifTrue:[ |
1910 | 1453 |
^ resources string:s |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1454 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1455 |
^ nil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1456 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1457 |
"Modified: 8.1.1997 / 14:57:34 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1458 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1459 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1460 |
!Launcher methodsFor:'infoview update'! |
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 |
showActivity:someMessage |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1463 |
"some activityNotification to be forwarded to the user; |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1464 |
show it in the transcript here." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1465 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1466 |
transcript showCR:someMessage; endEntry |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1467 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1468 |
"Created: 23.12.1995 / 12:38:29 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1469 |
"Modified: 5.7.1996 / 13:13:15 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1470 |
! |
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 |
updateInfo |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1473 |
"update the infoView from the current project" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1474 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1475 |
|project projectName projectDir packageName defNameSpace msg args| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1476 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1477 |
(Project isNil or:[(project := Project current) isNil]) ifTrue:[ |
1910 | 1478 |
projectName := '* none *'. |
1479 |
projectDir := '.'. |
|
1480 |
packageName := '* none *'. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1481 |
] ifFalse:[ |
1910 | 1482 |
projectName := project name. |
1483 |
projectDir := project directory. |
|
1484 |
packageName := project packageName. |
|
1485 |
defNameSpace := project defaultNameSpace. |
|
1599
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 |
defNameSpace isNil ifTrue:[ |
1910 | 1488 |
defNameSpace := Smalltalk. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1489 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1490 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1491 |
defNameSpace == Smalltalk ifTrue:[ |
1910 | 1492 |
msg := 'project: ''%1'' fileOut to: ''%3'' package: ''%2'''. |
1493 |
args := Array |
|
1494 |
with:projectName |
|
1495 |
with:packageName |
|
1496 |
with:(projectDir contractTo:30). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1497 |
] ifFalse:[ |
1910 | 1498 |
msg := 'project: ''%1'' fileOut to: ''%3'' package: ''%2'' nameSpace: %4'. |
1499 |
args := Array |
|
1500 |
with:projectName |
|
1501 |
with:packageName |
|
1502 |
with:(projectDir contractTo:30) |
|
1503 |
with:defNameSpace name. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1504 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1505 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1506 |
projectInfoHolder value:(resources string:msg withArgs:args) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1507 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1508 |
"Created: 28.7.1997 / 18:39:15 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1509 |
"Modified: 28.7.1997 / 18:42:40 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1510 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1511 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1512 |
!Launcher methodsFor:'initialize - menus'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1513 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1514 |
disableDangerousMenuItemsInRemoteLauncher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1515 |
"if I am a remote launcher (multidisplay operation), |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1516 |
disable menus which are dangerous or affect common state. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1517 |
These operations have to |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1518 |
be performed on the main screen." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1519 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1520 |
isMainLauncher ifFalse:[ |
1910 | 1521 |
(myMenu menuAt:#file) disableAll:#(snapshot snapshotAndExit objectModuleDialog exit). |
1522 |
(myMenu menuAt:#projects) disableAll. |
|
1523 |
(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
|
1524 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1525 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1526 |
"Created: 5.7.1996 / 17:00:50 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1527 |
"Modified: 11.4.1997 / 09:19:51 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1528 |
! |
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 |
setupAboutMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1531 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1532 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1533 |
"setup the about- pulldown menu" |
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 |
myMenu at:#about |
1910 | 1536 |
putLabels:(resources array:#( |
1537 |
'about Smalltalk/X ...' |
|
1538 |
'-' |
|
1539 |
'licence conditions' |
|
1540 |
)) |
|
1541 |
selectors:#( |
|
1542 |
#about |
|
1543 |
nil |
|
1544 |
#showLicenceConditions |
|
1545 |
) |
|
1546 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1547 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1548 |
"Created: / 8.1.1997 / 14:03:20 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1549 |
"Modified: / 29.10.1997 / 03:40:36 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1550 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1551 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1552 |
setupClassesMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1553 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1554 |
|
1745
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1555 |
|m labels selectors| |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1556 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1557 |
"setup the classes- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1558 |
|
1745
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1559 |
labels := #( |
1910 | 1560 |
'system browser' |
1561 |
'class browser ...' |
|
1562 |
'full class browser ...' |
|
1563 |
'class hierarchy browser ...' |
|
1564 |
'class tree' |
|
1565 |
'-' |
|
1566 |
'implementors ...' |
|
1567 |
'senders ...' |
|
1568 |
'special' |
|
1569 |
'-' |
|
1570 |
'change browser' |
|
1571 |
). |
|
1745
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1572 |
|
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1573 |
selectors := #( |
1910 | 1574 |
#startSystemBrowser |
1575 |
#startClassBrowser |
|
1576 |
#startFullClassBrowser |
|
1577 |
#startClassHierarchyBrowser |
|
1578 |
#startClassTreeView |
|
1579 |
nil |
|
1580 |
#browseImplementors |
|
1581 |
#browseSenders |
|
1582 |
#special |
|
1583 |
nil |
|
1584 |
#startChangesBrowser |
|
1585 |
). |
|
1745
337a8b80e297
use new popupmenu creation messages
Claus Gittinger <cg@exept.de>
parents:
1744
diff
changeset
|
1586 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1587 |
myMenu at:#classes |
1910 | 1588 |
putLabels:(resources array:labels) |
1589 |
selectors:selectors |
|
1590 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1591 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1592 |
m := myMenu menuAt:#classes. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1593 |
m subMenuAt:#special |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1594 |
put:(PopUpMenu |
1910 | 1595 |
itemList: #( |
1596 |
('references to undeclared' #browseUndeclared ) |
|
1597 |
('resource methods ...' #browseResources ) |
|
1598 |
('show break/trace points' #browseAllBreakAndTracePoints ) |
|
1599 |
('-' ) |
|
1600 |
('remove all break/trace points' #removeAllBreakAndTracePoints ) |
|
1601 |
) |
|
1602 |
resources:resources |
|
1603 |
). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1604 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1605 |
(JavaBrowser notNil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1606 |
and:[JavaBrowser isLoaded]) ifTrue:[ |
1910 | 1607 |
(myMenu subMenuAt:#classes) |
1608 |
addLabels:(resources array:#('-' 'java browser')) |
|
1609 |
selectors:#(nil startJavaBrowser) |
|
1610 |
after:#startClassTreeView |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1611 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1612 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1613 |
"Created: / 8.1.1997 / 14:05:44 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1614 |
"Modified: / 13.1.1998 / 09:57:46 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1615 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1616 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1617 |
setupDemoMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1618 |
"setup the demo- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1619 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1620 |
<resource: #programMenu> |
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 |
|m| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1623 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1624 |
myMenu at:#demos |
1910 | 1625 |
putLabels:(resources array:#( |
1626 |
'goodies' |
|
1627 |
'games' |
|
1628 |
'geometric designs' |
|
1629 |
'simple animations' |
|
1630 |
'3D graphics' |
|
1631 |
'graphic editors' |
|
1632 |
)) |
|
1633 |
selectors:#( |
|
1634 |
goodies |
|
1635 |
games |
|
1636 |
geometricDesigns |
|
1637 |
simpleAnimations |
|
1638 |
#'3Dgraphics' |
|
1639 |
#graphicEditors |
|
1640 |
) |
|
1641 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1642 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1643 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1644 |
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
|
1645 |
we use labels:selectors:receiver: here: |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1646 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1647 |
m := myMenu menuAt:#demos. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1648 |
m subMenuAt:#games |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1649 |
put:(PopUpMenu |
1910 | 1650 |
itemList:#( |
1651 |
('Tetris' startTetris ) |
|
1652 |
('Tic Tac Toe' startTicTacToe ) |
|
1653 |
('Tic Tac Toe (2 players)' startTicTacToe2 ) |
|
1654 |
) |
|
1655 |
resources:resources). |
|
1599
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 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1658 |
and labels:selector:args:receiver: here: |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1659 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1660 |
m subMenuAt:#geometricDesigns |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1661 |
put:(PopUpMenu |
1910 | 1662 |
itemList:#( |
1663 |
('Pen demo' #openDemo: nil PenDemo ) |
|
1664 |
('Commander demo' #openDemo: nil CommanderDemo ) |
|
1665 |
('-' ) |
|
1666 |
('Mandelbrot demo' #openDemo: nil ComplexIterationView ) |
|
1667 |
('Fractal plants demo' #openDemo: nil FractalPlantsDemo ) |
|
1668 |
('Fractal patterns demo' #openDemo: nil FractalPatternsDemo ) |
|
1669 |
('more fractal patterns demo' #openDemo: nil ArmchairUniverseDemo ) |
|
1670 |
) |
|
1671 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1672 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1673 |
m subMenuAt:#simpleAnimations |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1674 |
put:(PopUpMenu |
1910 | 1675 |
itemList:#( |
1676 |
('Animation' #openDemo: nil Animation ) |
|
1677 |
('Globe demo' #openDemo: nil GlobeDemo ) |
|
1678 |
) |
|
1679 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1680 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1681 |
m subMenuAt:#'3Dgraphics' |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1682 |
put:(PopUpMenu |
1910 | 1683 |
itemList:#( |
1684 |
('plane' #openDemo: nil GLPlaneDemoView2 ) |
|
1685 |
('tetra' #openDemo: nil GLTetraDemoView ) |
|
1686 |
('cube (wireframe)' #openDemo: nil GLWireCubeDemoView ) |
|
1687 |
('cube (solid)' #openDemo: nil GLCubeDemoView ) |
|
1688 |
('sphere (wireframe)' #openDemo: nil GLWireSphereDemoView ) |
|
1689 |
('doughnut (wireframe)' #openDemo: nil GLDoughnutDemoView ) |
|
1690 |
('planet' #openDemo: nil GLPlanetDemoView ) |
|
1691 |
('teapot' #openDemo: nil GLTeapotDemo ) |
|
1692 |
('logo' #openDemo: nil Logo3DView1 ) |
|
1693 |
('rubics cube' #openDemo: nil RubicsCubeView ) |
|
1694 |
('x/y graph' #openDemo: nil GLXYGraph ) |
|
1695 |
('x/y graph widget' #openDemo: nil #'CodingExamples_GUI::GLXYGraph3DDemo' ) |
|
1696 |
('x/y graph animated' #openDemo: nil #'CodingExamples_GUI::AnimatedGLXYGraph3DDemo') |
|
1697 |
('-' ) |
|
1698 |
('cube (light)' #openDemo: nil GLCubeDemoView2 ) |
|
1699 |
('cube (light & texture)' #openDemo: nil GLBrickCubeDemoView ) |
|
1700 |
('sphere (light)' #openDemo: nil GLSphereDemoView2 ) |
|
1701 |
('colored octahedron' #openDemo: nil GLOctaHedronDemoView ) |
|
1702 |
) |
|
1703 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1704 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1705 |
m subMenuAt:#graphicEditors |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1706 |
put:(PopUpMenu |
1910 | 1707 |
itemList:#( |
1708 |
('DrawTool' #openDemo: nil DrawTool ) |
|
1709 |
('LogicTool' #openDemo: nil LogicTool ) |
|
1710 |
('Paint Demo' #openDemo: nil ColorDrawDemo3 ) |
|
1711 |
) |
|
1712 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1713 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1714 |
m subMenuAt:#goodies |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1715 |
put:(PopUpMenu |
1910 | 1716 |
itemList:#( |
1717 |
('clock' #openDemo: nil Clock ) |
|
1718 |
('digital clock' #openDemo: nil DigitalClockView ) |
|
1719 |
('calendar' #openDemo: nil Calendar ) |
|
1720 |
('calculator' #openDemo: nil CalculatorView ) |
|
1721 |
('-' ) |
|
1722 |
('mail tool' #openDemo: nil MailView ) |
|
1723 |
('news tool' #openDemo: nil NewsView ) |
|
1724 |
('ftp tool' #openDemo: nil FTPTool ) |
|
1725 |
('telnet tool' #openDemo: nil TelnetTool ) |
|
1726 |
) |
|
1727 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1728 |
|
1761 | 1729 |
"Modified: / 28.7.1998 / 15:17:12 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1730 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1731 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1732 |
setupFileMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1733 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1734 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1735 |
"setup the file- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1736 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1737 |
|l s| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1738 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1739 |
l := #( |
1910 | 1740 |
'file browser' |
1741 |
'-' |
|
1742 |
'modules ...' |
|
1743 |
'-' |
|
1744 |
'snapshot ...' |
|
1745 |
'snapshot & exit ...' |
|
1746 |
'exit smalltalk ...' |
|
1747 |
). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1748 |
s := #( |
1910 | 1749 |
#startFileBrowser |
1750 |
nil |
|
1751 |
#objectModuleDialog |
|
1752 |
nil |
|
1753 |
#snapshot |
|
1754 |
#snapshotAndExit |
|
1755 |
#exit |
|
1756 |
). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1757 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1758 |
myMenu at:#file |
1910 | 1759 |
putLabels:(resources array:l) |
1760 |
selectors:s |
|
1761 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1762 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1763 |
"Created: / 8.1.1997 / 14:04:15 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1764 |
"Modified: / 29.10.1997 / 03:40:49 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1765 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1766 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1767 |
setupHelpMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1768 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1769 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1770 |
"setup the help- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1771 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1772 |
|l s| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1773 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1774 |
ActiveHelp notNil ifTrue:[ |
1910 | 1775 |
l := #( |
1776 |
'what''s new' |
|
1777 |
'index' |
|
1778 |
'-' |
|
1779 |
'ST/X online documentation' |
|
1780 |
'class documentation' |
|
1781 |
'-' |
|
1782 |
'print documentation ...' |
|
1783 |
'-' |
|
1784 |
'active help \c' |
|
1785 |
). |
|
1786 |
s := #( |
|
1787 |
#startWhatsNewDocumentation |
|
1788 |
#startDocumentationIndex |
|
1789 |
nil |
|
1790 |
#startDocumentationTool |
|
1791 |
#startClassDocumentation |
|
1792 |
nil |
|
1793 |
#showBookPrintDocument |
|
1794 |
nil |
|
1795 |
#toggleActiveHelp: |
|
1796 |
) |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1797 |
] ifFalse:[ |
1910 | 1798 |
l := #( |
1799 |
'what''s new' |
|
1800 |
'index' |
|
1801 |
'-' |
|
1802 |
'ST/X online documentation' |
|
1803 |
'class documentation' |
|
1804 |
'-' |
|
1805 |
'print documentation ...' |
|
1806 |
). |
|
1807 |
s := #( |
|
1808 |
#startWhatsNewDocumentation |
|
1809 |
#startDocumentationIndex |
|
1810 |
nil |
|
1811 |
#startDocumentationTool |
|
1812 |
#startClassDocumentation |
|
1813 |
nil |
|
1814 |
#showBookPrintDocument |
|
1815 |
) |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1816 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1817 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1818 |
myMenu at:#help |
1910 | 1819 |
putLabels:(resources array:l) |
1820 |
selectors:s |
|
1821 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1822 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1823 |
(ActiveHelp notNil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1824 |
and:[ActiveHelp isActive]) ifTrue:[ |
1910 | 1825 |
(myMenu menuAt:#help) checkToggleAt:#toggleActiveHelp: put:true |
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 |
"Created: / 8.1.1997 / 14:08:09 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1829 |
"Modified: / 29.10.1997 / 03:40:53 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1830 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1831 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1832 |
setupMainMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1833 |
"setup the pulldown menus main items. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1834 |
Extracted into a separate method, to allow subclasses to |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1835 |
add their own entries" |
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 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1838 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1839 |
|icon| |
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 |
myMenu labels:(resources array:#( |
1910 | 1842 |
about |
1843 |
file |
|
1844 |
classes |
|
1845 |
tools |
|
1846 |
projects |
|
1847 |
settings |
|
1848 |
demos |
|
1849 |
help)). |
|
1599
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 |
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
|
1852 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1853 |
icon := self class smallAboutIcon. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1854 |
icon notNil ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1855 |
"/ icon := icon on:device. |
1910 | 1856 |
myMenu labels at:1 put:icon. |
1857 |
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
|
1858 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1859 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1860 |
myMenu selectors:#( |
1910 | 1861 |
#about |
1862 |
#file |
|
1863 |
#classes |
|
1864 |
#tools |
|
1865 |
#projects |
|
1866 |
#settings |
|
1867 |
#demos |
|
1868 |
#help). |
|
1599
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 |
"Created: / 8.1.1997 / 13:58:50 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1871 |
"Modified: / 29.10.1997 / 03:41:00 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1872 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1873 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1874 |
setupMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1875 |
"setup the pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1876 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1877 |
|mainItems| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1878 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1879 |
self setupMainMenu. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1880 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1881 |
mainItems := myMenu selectors. |
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 |
(mainItems includes:#about) ifTrue:[ |
1910 | 1884 |
"/ if not redefined without an about-menu ... |
1885 |
self setupAboutMenu |
|
1599
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 includes:#file) ifTrue:[ |
1910 | 1888 |
"/ if not redefined without a file-menu ... |
1889 |
self setupFileMenu |
|
1599
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 includes:#classes) ifTrue:[ |
1910 | 1892 |
"/ if not redefined without a classes-menu ... |
1893 |
self setupClassesMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1894 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1895 |
(mainItems includes:#projects) ifTrue:[ |
1910 | 1896 |
"/ if not redefined without a projects-menu ... |
1897 |
self setupProjectsMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1898 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1899 |
(mainItems includes:#settings) ifTrue:[ |
1910 | 1900 |
"/ if not redefined without a settings-menu ... |
1901 |
self setupSettingsMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1902 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1903 |
(mainItems includes:#tools) ifTrue:[ |
1910 | 1904 |
"/ if not redefined without a tools-menu ... |
1905 |
self setupToolsMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1906 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1907 |
(mainItems includes:#demos) ifTrue:[ |
1910 | 1908 |
"/ if not redefined without a demos-menu ... |
1909 |
self setupDemoMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1910 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1911 |
(mainItems includes:#help) ifTrue:[ |
1910 | 1912 |
"/ if not redefined without a help-menu ... |
1913 |
self setupHelpMenu |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1914 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1915 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1916 |
self disableDangerousMenuItemsInRemoteLauncher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1917 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1918 |
"Modified: 8.1.1997 / 14:09:47 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1919 |
! |
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 |
setupProjectsMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1922 |
"setup the projects- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1923 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1924 |
<resource: #programMenu > |
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 |
myMenu at:#projects |
1910 | 1927 |
putLabels:(resources array:#( |
1928 |
'new project' |
|
1929 |
'-' |
|
1930 |
'select project ...' |
|
1931 |
)) |
|
1932 |
selectors:#( |
|
1933 |
#newProject |
|
1934 |
nil |
|
1935 |
#selectProject |
|
1936 |
) |
|
1937 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1938 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1939 |
"Created: / 8.1.1997 / 14:06:18 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1940 |
"Modified: / 29.10.1997 / 03:41:09 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1941 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1942 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1943 |
setupSettingsMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1944 |
"setup the settings- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1945 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1946 |
<resource: #programMenu > |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1947 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1948 |
myMenu at:#settings |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1949 |
putLabels:(resources array:#( |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1950 |
'language...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1951 |
'show keyboard mappings...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1952 |
'view style...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1953 |
'fonts...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1954 |
'printer...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1955 |
'messages...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1956 |
'compilation...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1957 |
'source & debugger...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1958 |
'tools...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1959 |
'object memory...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1960 |
'screen...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1961 |
"/ 'java...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1962 |
'misc...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1963 |
'=' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1964 |
'save settings...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1965 |
'restore settings...' |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1966 |
)) |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1967 |
selectors:#( |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1968 |
#languageSetting |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1969 |
#keyboardSetting |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1970 |
#viewStyleSetting |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1971 |
#fontSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1972 |
#printerSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1973 |
#messageSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1974 |
#compilerSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1975 |
#sourceAndDebuggerSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1976 |
#toolSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1977 |
#memorySettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1978 |
#displaySettings |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
1979 |
"/ #javaSettings |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1980 |
#miscSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1981 |
nil |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1982 |
#saveSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1983 |
#restoreSettings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1984 |
) |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1985 |
receiver:self. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1986 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1987 |
"Created: / 8.1.1997 / 14:07:00 / cg" |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
1988 |
"Modified: / 13.10.1998 / 15:48:50 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1989 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1990 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1991 |
setupToolsMenu |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1992 |
"setup the tools- pulldown menu" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1993 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1994 |
<resource: #programMenu> |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1995 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1996 |
|m | |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1997 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
1998 |
myMenu at:#tools |
1910 | 1999 |
putLabels:(resources array:#( |
2000 |
'workspace' |
|
2001 |
'-' |
|
2002 |
'GUI builder' |
|
2003 |
'-' |
|
2004 |
'new launcher' |
|
2005 |
'-' |
|
2006 |
'monitors' |
|
2007 |
'-' |
|
2008 |
'views' |
|
2009 |
'-' |
|
2010 |
'hardcopy' |
|
2011 |
'-' |
|
2012 |
'misc' |
|
2013 |
)) |
|
2014 |
selectors:#( |
|
2015 |
#startWorkspace |
|
2016 |
nil |
|
2017 |
#startGUIBuilder |
|
2018 |
nil |
|
2019 |
#startNewLauncher |
|
2020 |
nil |
|
2021 |
#monitors |
|
2022 |
nil |
|
2023 |
#views |
|
2024 |
nil |
|
2025 |
#hardcopy |
|
2026 |
nil |
|
2027 |
#misc |
|
2028 |
) |
|
2029 |
receiver:self. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2030 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2031 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2032 |
m := myMenu menuAt:#tools. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2033 |
m subMenuAt:#monitors |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2034 |
put:(PopUpMenu |
1910 | 2035 |
itemList:#( |
2036 |
('process' #startApplication: nil #ProcessMonitor ) |
|
2037 |
('semaphores' #startApplication: nil #SemaphoreMonitor ) |
|
2038 |
('memory' #startApplication: nil #MemoryMonitor ) |
|
2039 |
('irq latency' #startApplication: nil #InterruptLatencyMonitor ) |
|
2040 |
('event view' #startApplication: nil #EventMonitor ) |
|
2041 |
('event trace' #startApplication: nil #StopEventTrace ) |
|
2042 |
('-' ) |
|
2043 |
('memory usage' #startApplication: nil #MemoryUsageView ) |
|
2044 |
) |
|
2045 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2046 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2047 |
m subMenuAt:#views |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2048 |
put:(PopUpMenu |
1910 | 2049 |
itemList:#( |
2050 |
('iconify all' #iconifyAllWindows ) |
|
2051 |
('de-iconify all' #deIconifyAllWindows ) |
|
2052 |
('-' ) |
|
2053 |
('find & raise ...' #findAndRaiseWindow ) |
|
2054 |
('-' ) |
|
2055 |
('view tree (all views)' #startFullWindowTreeView ) |
|
2056 |
('view tree' #startWindowTreeView ) |
|
2057 |
('-' ) |
|
2058 |
('select & inspect view' #viewInspect ) |
|
2059 |
('-' ) |
|
2060 |
('select & destroy view' #viewDestroy ) |
|
2061 |
('find & destroy ...' #findAndDestroyWindow ) |
|
2062 |
) |
|
2063 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2064 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2065 |
m subMenuAt:#misc |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2066 |
put:(PopUpMenu |
1910 | 2067 |
itemList:#( |
2068 |
('garbage collect' #garbageCollect ) |
|
2069 |
('garbage collect & compress' #compressingGarbageCollect ) |
|
2070 |
) |
|
2071 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2072 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2073 |
m subMenuAt:#hardcopy |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2074 |
put:(PopUpMenu |
1910 | 2075 |
itemList:#( |
2076 |
('screen' #fullScreenHardcopy ) |
|
2077 |
('area' #screenHardcopy ) |
|
2078 |
('view' #viewHardcopy ) |
|
2079 |
) |
|
2080 |
resources:resources). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2081 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2082 |
"Modified: / 31.10.1997 / 16:01:53 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2083 |
"Modified: / 19.12.1997 / 13:15:27 / stefan" |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2086 |
!Launcher methodsFor:'initialize / release'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2087 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2088 |
addTopViewsToCurrentProject |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2089 |
"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
|
2090 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2091 |
^ self |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2092 |
! |
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 |
buttonPanelSpec |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2095 |
"return a spec for the buttons in the panel; |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2096 |
entries consists of selector and bitmap-filename. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2097 |
nil selectors are taken as separators (see setupButtonPanel)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2098 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2099 |
^ #( |
1910 | 2100 |
#(startSystemBrowser 'SBrowser32x32.xbm') |
2101 |
#(startFileBrowser 'FBrowser32x32.xbm') |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2102 |
"/ #(startWorkspace 'Workspace32x32.xbm') |
1910 | 2103 |
#(nil nil) |
2104 |
#(startChangesBrowser 'CBrowser32x32.xbm') |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2105 |
"/ #(nil nil) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2106 |
"/ #(nil nil) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2107 |
"/ #(startDocumentationTool 'book11.ico') |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2108 |
) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2109 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2110 |
"Created: 4.12.1995 / 20:16:18 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2111 |
"Modified: 19.4.1996 / 16:37:46 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2112 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2113 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2114 |
closeDownViews |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2115 |
OpenLaunchers removeIdentical:self ifAbsent:nil. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2116 |
super closeDownViews. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2117 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2118 |
"Created: 5.7.1996 / 13:33:36 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2119 |
"Modified: 1.2.1997 / 12:07:53 / cg" |
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 |
closeRequest |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2123 |
(self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[ |
1910 | 2124 |
super closeRequest |
1599
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 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2127 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2128 |
focusSequence |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2129 |
^ (Array with:myMenu) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2130 |
, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2131 |
(buttonPanel subViews select:[:element | element isKindOf:Button]) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2132 |
"/ , (Array with:Transcript) |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2135 |
openInterface |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2136 |
"sent by my superclass to open up my interface" |
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 |
^ self openInterfaceAt:nil |
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 |
"Modified: / 5.2.1998 / 19:57:39 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2141 |
! |
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 |
openInterfaceAt:aPoint |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2144 |
"sent by my superclass to open up my interface" |
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 |
|top icn w sz| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2147 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2148 |
"/ if there is already a transcript on my device, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2149 |
"/ I am a slave launcher with limited functionality. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2150 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2151 |
Transcript notNil ifTrue:[ |
1910 | 2152 |
Transcript ~~ Stderr ifTrue:[ |
2153 |
isMainLauncher := (Transcript graphicsDevice == device). |
|
2154 |
] ifFalse:[ |
|
2155 |
isMainLauncher := true |
|
2156 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2157 |
] ifFalse:[ |
1910 | 2158 |
isMainLauncher := true |
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2161 |
top := StandardSystemView onDevice:device. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2162 |
top label:'Smalltalk/X'; iconLabel:'ST/X Launcher'. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2163 |
top extent:(400@300 ). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2164 |
aPoint notNil ifTrue:[ |
1910 | 2165 |
top origin:aPoint |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2166 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2167 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2168 |
icn := self class aboutIcon. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2169 |
icn notNil ifTrue:[ |
1910 | 2170 |
icn := icn magnifiedTo:(sz := device preferredIconSize). |
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 |
icn notNil ifTrue:[ |
1910 | 2174 |
(device supportsDeepIcons not |
2175 |
and:[device supportsIconViews |
|
2176 |
and:[device depth > 1]]) ifTrue:[ |
|
2177 |
w := View extent:sz. |
|
2178 |
w viewBackground:icn. |
|
2179 |
top iconView:w |
|
2180 |
] ifFalse:[ |
|
2181 |
top icon:icn. |
|
2182 |
] |
|
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 |
"/ device supportsDeepIcons ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2186 |
"/ icn := self class aboutIcon. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2187 |
"/ icn notNil ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2188 |
"/ icn := icn magnifiedTo:(sz := device preferredIconSize). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2189 |
"/ icn := Depth8Image fromImage:icn. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2190 |
"/ top icon:icn |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2191 |
"/ ]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2192 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2193 |
"/ ] ifFalse:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2194 |
"/ device supportsIconViews ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2195 |
"/ icn := self class aboutIcon. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2196 |
"/ icn notNil ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2197 |
"/ icn := icn magnifiedTo:(sz := device preferredIconSize). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2198 |
"/ w := View extent:sz. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2199 |
"/ w viewBackground:icn. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2200 |
"/ top iconView:w |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2201 |
"/ ]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2202 |
"/ ] |
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 |
|
1707 | 2205 |
self createBuilder. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2206 |
self setupViewsIn:top. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2207 |
top application:self. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2208 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2209 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2210 |
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
|
2211 |
are running ... |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2212 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2213 |
top openWithPriority:(Processor userSchedulingPriority + 1). |
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 |
OpenLaunchers isNil ifTrue:[ |
1910 | 2216 |
OpenLaunchers := OrderedCollection new. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2217 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2218 |
OpenLaunchers add:self. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2219 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2220 |
^ builder |
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 |
"Created: / 5.2.1998 / 19:43:44 / cg" |
1707 | 2223 |
"Modified: / 19.6.1998 / 03:35:41 / cg" |
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2226 |
release |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2227 |
OpenLaunchers removeIdentical:self ifAbsent:nil. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2228 |
super release |
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 |
"Modified: 28.7.1997 / 18:40:55 / cg" |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2233 |
restarted |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2234 |
"image restart - since WindowGroup recreates the process with |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2235 |
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
|
2236 |
Mhmh - this looks like a bug to me ... |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2237 |
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
|
2238 |
be reset to normal." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2239 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2240 |
Processor activeProcess priority:(Processor userSchedulingPriority + 1). |
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 |
super restarted |
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 |
"Modified: 1.6.1996 / 16:58:25 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2245 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2246 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2247 |
saveAndTerminateRequest |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2248 |
"some windowManagers can send this, to shutDown an application |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2249 |
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
|
2250 |
Although I have not yet encountered such a windowManager, |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2251 |
we are already prepared for this ;-)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2252 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2253 |
self snapshot. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2254 |
super saveAndTerminateRequest |
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 |
"Created: 5.7.1996 / 13:07:45 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2257 |
"Modified: 5.7.1996 / 13:08:55 / cg" |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2260 |
setupButtonPanelIn:aTopView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2261 |
"create the buttonPanel" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2262 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2263 |
|spc mh buttonSize| |
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 |
spc := View viewSpacing // 2. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2266 |
buttonPanel := HorizontalPanelView in:aTopView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2267 |
buttonPanel level:-1; borderWidth:0. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2268 |
buttonPanel horizontalLayout:#leftSpace. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2269 |
"/ buttonPanel verticalLayout:#centerSpace. |
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 |
buttonSize := self class buttonImageSize. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2272 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2273 |
"/ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2274 |
"/ the buttonSpec is a collection of: |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2275 |
"/ #( selector iconFileName ) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2276 |
"/ or: |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2277 |
"/ #( selector (className iconQuerySelector) ) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2278 |
"/ or" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2279 |
"/ #( nil ) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2280 |
"/ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2281 |
self buttonPanelSpec do:[:entry | |
1910 | 2282 |
|sel b sep img iconSpec v| |
2283 |
||
2284 |
sel := entry at:1. |
|
2285 |
sel isNil ifTrue:[ |
|
2286 |
sep := View in:buttonPanel. |
|
2287 |
sep extent:32@1; borderWidth:0. |
|
2288 |
] ifFalse:[ |
|
2289 |
iconSpec := entry at:2. |
|
2290 |
iconSpec isArray ifTrue:[ |
|
2291 |
img := (Smalltalk classNamed:(iconSpec at:1)) perform:(iconSpec at:2). |
|
2292 |
] ifFalse:[ |
|
2293 |
img := Image fromFile:iconSpec. |
|
2294 |
]. |
|
2295 |
(img notNil and:[buttonSize notNil]) ifTrue:[ |
|
2296 |
img extent ~= buttonSize ifTrue:[ |
|
2297 |
img := img magnifiedTo:buttonSize |
|
2298 |
] |
|
2299 |
]. |
|
2300 |
||
2301 |
b := Button new. |
|
2302 |
b form:img. |
|
2303 |
b model:self; changeMessage:sel. |
|
2304 |
||
2305 |
b styleSheet name = 'win95' ifTrue:[ |
|
2306 |
||
2307 |
false ifTrue:[ |
|
2308 |
"/ make buttons flat, popping up when entered ... |
|
2309 |
||
2310 |
b enterLevel: 1. |
|
2311 |
b leaveLevel: 0. |
|
2312 |
buttonPanel addSubView:b. |
|
2313 |
||
2314 |
] ifFalse:[ |
|
2315 |
"/ make buttons flat, but given them a 3D frame ... |
|
2316 |
||
2317 |
v := View in:buttonPanel. |
|
2318 |
v addSubView:b. |
|
2319 |
v level:-1. |
|
2320 |
b passiveLevel:1; activeLevel:-1. |
|
2321 |
v extent:(b preferredExtent |
|
2322 |
+ b borderWidth + b borderWidth |
|
2323 |
+ b margin + b margin |
|
2324 |
+ v margin + v margin). |
|
2325 |
v preferredExtent:v extent. |
|
2326 |
b origin:(v margin asPoint). |
|
2327 |
]. |
|
2328 |
b enteredBackgroundColor:(Color grey:80). |
|
2329 |
] ifFalse:[ |
|
2330 |
buttonPanel addSubView:b. |
|
2331 |
]. |
|
2332 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2333 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2334 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2335 |
mh := myMenu height. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2336 |
buttonPanel origin:0.0 @ (mh + spc) |
1910 | 2337 |
corner:(1.0 @ (mh + spc + buttonPanel preferredExtent y)). |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2338 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2339 |
buttonPanel leftInset:spc; rightInset:spc. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2340 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2341 |
"Modified: 26.4.1997 / 21:02:39 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2342 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2343 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2344 |
setupInfoViewIn:topView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2345 |
"create the infoView" |
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 |
|spc halfSpc| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2348 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2349 |
spc := View viewSpacing. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2350 |
infoView := Label label:'' in:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2351 |
infoView adjust:#left; borderWidth:0. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2352 |
infoView level:-1. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2353 |
transcript superView bottomInset:(infoView height + spc). |
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 |
infoView is3D ifTrue:[ |
1910 | 2356 |
halfSpc := spc // 2. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2357 |
] ifFalse:[ |
1910 | 2358 |
halfSpc := 0 |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2359 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2360 |
infoView topInset:(infoView height negated - spc + transcript borderWidth); |
1910 | 2361 |
bottomInset:halfSpc; |
2362 |
leftInset:halfSpc; |
|
2363 |
rightInset:halfSpc. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2364 |
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
|
2365 |
projectInfoHolder := '' asValue. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2366 |
infoView labelChannel:projectInfoHolder. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2367 |
self updateInfo. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2368 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2369 |
Project notNil ifTrue:[ |
1910 | 2370 |
Project addDependent:self. |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2373 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2374 |
Launcher open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2375 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2376 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2377 |
"Modified: 9.9.1996 / 22:44:15 / stefan" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2378 |
"Modified: 28.7.1997 / 18:42:30 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2379 |
! |
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 |
setupOtherViewsIn:aTopView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2382 |
"a hook - allows redefinition in your personal subclass. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2383 |
For example, add a clock:" |
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 |
|sz clock space halfSpace| |
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 |
sz := buttonPanel innerHeight - (buttonPanel level abs*2). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2389 |
space := View viewSpacing. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2390 |
halfSpace := space // 2. |
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 |
buttonPanel rightInset:sz+(space * 2). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2393 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2394 |
clock := ClockView in:buttonPanel topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2395 |
clock borderWidth:1. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2396 |
clock showSeconds:false. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2397 |
clock extent:(sz @ sz). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2398 |
clock origin:(1.0 @ (buttonPanel origin y + halfSpace)). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2399 |
clock leftInset:sz negated - 2 - halfSpace. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2400 |
clock rightInset:halfSpace. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2401 |
clock level:1. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2402 |
" |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2405 |
setupTranscriptIn:aView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2406 |
"create the transcript view" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2407 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2408 |
|v launcher| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2409 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2410 |
"/ 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
|
2411 |
"/ if so, do not close the real launcher. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2412 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2413 |
(Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[ |
1910 | 2414 |
isMainLauncher ifTrue:[ |
2415 |
launcher := Transcript topView application |
|
2416 |
] ifFalse:[ |
|
2417 |
launcher := self class current. |
|
2418 |
(launcher isNil and: [NewLauncher notNil]) ifTrue: [launcher := NewLauncher current]. |
|
2419 |
]. |
|
2420 |
||
2421 |
launcher notNil ifTrue:[ |
|
2422 |
launcher window graphicsDevice == device ifTrue:[ |
|
2423 |
OpenLaunchers notNil ifTrue:[ |
|
2424 |
OpenLaunchers removeIdentical:launcher ifAbsent:nil. |
|
2425 |
]. |
|
2426 |
launcher class = NewLauncher |
|
2427 |
ifTrue: [launcher close] |
|
2428 |
ifFalse: [launcher window destroy] |
|
2429 |
] |
|
2430 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2431 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2432 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2433 |
v := HVScrollableView |
1910 | 2434 |
for:TextCollector |
2435 |
miniScrollerH:true |
|
2436 |
miniScrollerV:false |
|
2437 |
in:aView. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2438 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2439 |
v origin:(0.0 @ (buttonPanel corner y + View viewSpacing)) |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2440 |
corner:(1.0 @ 1.0). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2441 |
transcript := v scrolledView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2442 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2443 |
isMainLauncher ifTrue:[ |
1910 | 2444 |
transcript beTranscript. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2445 |
] ifFalse:[ |
1910 | 2446 |
transcript showCR:'**************** Notice ***********************'. |
2447 |
transcript showCR:'** this is NOT the Transcript **'. |
|
2448 |
transcript showCR:'** The real Transcript is on the main screen **'. |
|
2449 |
transcript showCR:'** **'. |
|
2450 |
transcript showCR:'** Menus affecting common state are disabled **'. |
|
2451 |
transcript showCR:'***********************************************'. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2452 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2453 |
|
1840 | 2454 |
"Modified: / 18.8.1998 / 15:03:54 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2455 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2456 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2457 |
setupViewsIn:topView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2458 |
"create the pulldown menu, buttonPanel and transcript view" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2459 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2460 |
|tFont| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2461 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2462 |
topView model:self. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2463 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2464 |
myMenu := PullDownMenu in:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2465 |
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
|
2466 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2467 |
self setupMenu. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2468 |
self setupButtonPanelIn:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2469 |
self setupTranscriptIn:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2470 |
self setupInfoViewIn:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2471 |
self setupOtherViewsIn:topView. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2472 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2473 |
tFont := transcript font. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2474 |
topView extent:(((tFont widthOf:'3')*60) max:myMenu preferredExtent x) |
1910 | 2475 |
@ |
2476 |
((tFont height) * 20). |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2477 |
|
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 |
Launcher open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2480 |
" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2481 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2482 |
"Modified: 9.9.1996 / 22:44:31 / stefan" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2483 |
! ! |
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 |
!Launcher methodsFor:'private'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2486 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2487 |
findWindow:title |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2488 |
"a helper for find & destroy and find & raise operations; |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2489 |
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
|
2490 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2491 |
|knownTopViews nameList box| |
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 |
knownTopViews := IdentitySet new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2494 |
Screen allScreens do:[:aScreen | |
1910 | 2495 |
aScreen knownViews do:[:aView | |
2496 |
|top showIt wg| |
|
2497 |
||
2498 |
aView notNil ifTrue:[ |
|
2499 |
top := aView topView. |
|
2500 |
(top isKindOf:DebugView) ifTrue:[ |
|
2501 |
"/ although modal, show it. |
|
2502 |
showIt := top realized |
|
2503 |
] ifFalse:[ |
|
2504 |
wg := top windowGroup. |
|
2505 |
showIt := (wg notNil and:[wg isModal not]). |
|
2506 |
]. |
|
2507 |
showIt ifTrue:[ |
|
2508 |
knownTopViews add:top |
|
2509 |
] |
|
2510 |
] |
|
2511 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2512 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2513 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2514 |
knownTopViews := knownTopViews asOrderedCollection. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2515 |
knownTopViews sort:[:v1 :v2 | |l1 l2| |
1910 | 2516 |
l1 := v1 label ? 'aView'. |
2517 |
l2 := v2 label ? 'aView'. |
|
2518 |
l1 < l2 |
|
2519 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2520 |
nameList := knownTopViews collect:[:v | |
1910 | 2521 |
|isDead wg p l| |
2522 |
||
2523 |
l := v label ? 'aView'. |
|
2524 |
((wg := v windowGroup) notNil |
|
2525 |
and:[(p := wg process) notNil |
|
2526 |
and:[p state ~~ #dead]]) ifTrue:[ |
|
2527 |
l |
|
2528 |
] ifFalse:[ |
|
2529 |
l , ' (dead ?)' |
|
2530 |
] |
|
2531 |
]. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2532 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2533 |
box := ListSelectionBox new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2534 |
box noEnterField. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2535 |
box list:nameList. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2536 |
box label:(resources string:'view selection'). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2537 |
box title:(resources string:title) withCRs. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2538 |
box action:[:selection | |
1910 | 2539 |
|v idx| |
2540 |
||
2541 |
(idx := box selectionIndex) notNil ifTrue:[ |
|
2542 |
v := knownTopViews at:idx. |
|
2543 |
]. |
|
2544 |
box destroy. |
|
2545 |
^ v |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2546 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2547 |
box extent:400@300. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2548 |
box showAtPointer. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2549 |
^ nil |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2550 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2551 |
"Created: / 14.10.1997 / 11:24:42 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2552 |
"Modified: / 27.10.1997 / 04:41:08 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2553 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2554 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2555 |
openApplication:className nameSpace:aNameSpace |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2556 |
"open some application, given the classes name. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2557 |
Look for it in Smalltalk and the given nameSpace" |
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 |
self openApplication:className nameSpace:aNameSpace with:#open |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2560 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2561 |
"Modified: 8.1.1997 / 14:59:42 / cg" |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2564 |
openApplication:className nameSpace:aNameSpace with:aSelector |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2565 |
"open some application, given the classes name. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2566 |
Look for it in Smalltalk and the given nameSpace" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2567 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2568 |
|cls| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2569 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2570 |
cls := Smalltalk at:className asSymbol. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2571 |
cls isNil ifTrue:[ |
1910 | 2572 |
"/ look if its in the nameSpace |
2573 |
aNameSpace notNil ifTrue:[ |
|
2574 |
cls := aNameSpace at:className asSymbol |
|
2575 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2576 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2577 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2578 |
cls isNil ifTrue:[ |
1910 | 2579 |
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
|
2580 |
] ifFalse:[ |
1910 | 2581 |
Autoload autoloadFailedSignal handle:[:ex | |
2582 |
self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:className) |
|
2583 |
] do:[ |
|
2584 |
cls perform:aSelector |
|
2585 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2586 |
] |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2587 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2588 |
"Created: 8.1.1997 / 12:52:13 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2589 |
"Modified: 8.1.1997 / 14:59:47 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2590 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2591 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2592 |
pickAView |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2593 |
"let user pick a view and return it" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2594 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2595 |
|v| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2596 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2597 |
(Delay forSeconds:1) wait. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2598 |
v := Screen current viewFromUser. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2599 |
v isNil ifTrue:[ |
1910 | 2600 |
self warn:'Sorry, this is not a smalltalk view'. |
2601 |
^ nil |
|
1599
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 |
^ v |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2604 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2605 |
"Created: 19.10.1997 / 03:04:53 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2606 |
"Modified: 19.10.1997 / 03:42:00 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2607 |
! |
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 |
saveAllViews |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2610 |
"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
|
2611 |
to save its contents." |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2612 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2613 |
ObjectMemory changed:#aboutToExit |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2616 |
saveScreenImage:anImage defaultName:defaultName |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2617 |
"save an image into a file |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2618 |
- ask user for filename using a fileSelectionBox." |
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 |
|fileName| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2621 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2622 |
fileName := Dialog |
1910 | 2623 |
requestFileName:(resources string:'save image in:') |
2624 |
default:(defaultName , '.tiff') |
|
2625 |
ok:(resources string:'save') |
|
2626 |
abort:(resources string:'cancel') |
|
2627 |
pattern:'*.tiff'. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2628 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2629 |
fileName notNil ifTrue:[ |
1910 | 2630 |
anImage saveOn:fileName |
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2633 |
"Modified: 21.2.1996 / 13:09:28 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2634 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2635 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2636 |
!Launcher methodsFor:'private - settings callBacks'! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2637 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2638 |
changeViewStyleTo:newStyle |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2639 |
newStyle notNil ifTrue:[ |
1910 | 2640 |
self withWaitCursorDo:[ |
2641 |
transcript showCR:'change style to ' , newStyle , ' ...'. |
|
2642 |
View defaultStyle:newStyle asSymbol. |
|
2643 |
]. |
|
2644 |
self reopenLauncher. |
|
2645 |
DebugView newDebugger. |
|
1599
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 |
"Created: 20.10.1997 / 15:28:10 / cg" |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2651 |
fontBoxForEncoding:encodingMatch |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2652 |
"open a fontBox, showing fonts which match some encoding |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2653 |
(used when changing to japanese ...)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2654 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2655 |
|box y b |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2656 |
labelDef buttonDef listDef menuDef textDef |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2657 |
models labels allOfThem filter| |
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 |
encodingMatch notNil ifTrue:[ |
1910 | 2660 |
filter := [:f | f encoding notNil |
2661 |
and:[encodingMatch match:f encoding]]. |
|
1599
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2664 |
models := OrderedCollection new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2665 |
labels := OrderedCollection new. |
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 |
models add:(allOfThem := nil asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2668 |
models add:(labelDef := Label defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2669 |
models add:(buttonDef := Button defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2670 |
models add:(listDef := SelectionInListView defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2671 |
models add:(menuDef := MenuView defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2672 |
models add:(textDef := TextView defaultFont asValue). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2673 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2674 |
box := Dialog new. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2675 |
box label:(resources string:'Font settings'). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2676 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2677 |
models |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2678 |
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
|
2679 |
do:[:model :title | |
1910 | 2680 |
|y2 lbl f i| |
2681 |
||
2682 |
f := model value. |
|
2683 |
||
2684 |
(box addTextLabel:title) adjust:#left. |
|
2685 |
||
2686 |
y := box yPosition. |
|
2687 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
|
2688 |
b relativeExtent:nil; extent:(b preferredExtent). |
|
2689 |
y2 := box yPosition. |
|
2690 |
box yPosition:y. |
|
2691 |
i := box leftIndent. |
|
2692 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
|
2693 |
(lbl := box addTextLabel:'') |
|
2694 |
adjust:#left; |
|
2695 |
font:(model value); |
|
2696 |
labelChannel:(BlockValue |
|
2697 |
with:[:v | |f| |
|
2698 |
f := v value. |
|
2699 |
f isNil ifTrue:[ |
|
2700 |
'' |
|
2701 |
] ifFalse:[ |
|
2702 |
f userFriendlyName |
|
2703 |
] |
|
2704 |
] |
|
2705 |
argument:model). |
|
2706 |
labels add:lbl. |
|
2707 |
||
2708 |
box leftIndent:i. |
|
2709 |
box yPosition:(box yPosition max:y2). |
|
2710 |
||
2711 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
2712 |
||
2713 |
b action:[ |
|
2714 |
|f| |
|
2715 |
||
2716 |
f := FontPanel |
|
2717 |
fontFromUserInitial:(model value) |
|
2718 |
title:(resources string:'font for %1' with:title) |
|
2719 |
filter:filter. |
|
2720 |
f notNil ifTrue:[ |
|
2721 |
model == allOfThem ifTrue:[ |
|
2722 |
models do:[:m | m value:f]. |
|
2723 |
labels do:[:l | l font:f] |
|
2724 |
] ifFalse:[ |
|
2725 |
model value:f. |
|
2726 |
lbl font:f. |
|
2727 |
]. |
|
2728 |
] |
|
2729 |
]. |
|
2730 |
model == allOfThem ifTrue:[ |
|
2731 |
box addVerticalSpace |
|
2732 |
] |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2733 |
]. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2734 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2735 |
box addAbortButton; addOkButton. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2736 |
(box addButton:(Button label:(resources string:'defaults')) before:nil) |
1910 | 2737 |
action:[ |
2738 |
"/ fetch defaults |
|
2739 |
View readStyleSheetAndUpdateAllStyleCaches. |
|
2740 |
labelDef value: Label defaultFont. |
|
2741 |
buttonDef value: Button defaultFont. |
|
2742 |
listDef value: SelectionInListView defaultFont. |
|
2743 |
menuDef value: MenuView defaultFont. |
|
2744 |
textDef value: TextView defaultFont. |
|
2745 |
]. |
|
1599
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 open. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2748 |
box accepted ifTrue:[ |
1910 | 2749 |
Label defaultFont:labelDef value. |
2750 |
Button defaultFont:buttonDef value. |
|
2751 |
Toggle defaultFont:buttonDef value. |
|
2752 |
SelectionInListView defaultFont:listDef value. |
|
2753 |
MenuView defaultFont:menuDef value. |
|
2754 |
PullDownMenu defaultFont:menuDef value. |
|
2755 |
TextView defaultFont:textDef value. |
|
2756 |
EditTextView defaultFont:textDef value. |
|
2757 |
CodeView defaultFont:textDef value. |
|
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 destroy. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2760 |
^ box accepted |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2761 |
|
1892 | 2762 |
"Created: / 27.2.1996 / 01:44:16 / cg" |
2763 |
"Modified: / 17.6.1996 / 13:38:48 / stefan" |
|
2764 |
"Modified: / 15.9.1998 / 22:04:42 / cg" |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2765 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2766 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2767 |
reopenLauncher |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2768 |
"reopen a new launcher. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2769 |
for now (since style & language settings currently do |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2770 |
not affect living views ...)" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2771 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2772 |
|contents fontPref enc builder newLauncher| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2773 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2774 |
"/ moved the stuff below to the language-setting |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2775 |
"/ dialog (ask before changing the language, to have |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2776 |
"/ proper texts in the dialogs). |
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 |
"/ 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
|
2779 |
"/ enc := MenuView defaultFont encoding. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2780 |
"/ (fontPref match:enc) ifFalse:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2781 |
"/ (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
|
2782 |
"/ ifTrue:[ |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2783 |
"/ self fontBoxForEncoding:fontPref |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2784 |
"/ ] |
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 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2787 |
contents := transcript endEntry; list. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2788 |
builder := self class openAt:(self window origin). |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2789 |
builder window waitUntilVisible. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2790 |
newLauncher := builder application. |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2791 |
newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2792 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2793 |
"Modified: / 6.2.1998 / 00:00:45 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2794 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2795 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2796 |
!Launcher methodsFor:'queries'! |
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 |
processName |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2799 |
"for monitors only - my name" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2800 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2801 |
^ 'ST/X Launcher' |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2802 |
! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2803 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2804 |
transcript |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2805 |
"my transcript" |
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 |
^ transcript |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2808 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2809 |
"Created: 5.7.1996 / 13:04:36 / cg" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2810 |
! ! |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2811 |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
2812 |
!Launcher::LauncherDialogs class methodsFor:'dialogs'! |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2813 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2814 |
compilerSettingsFor:requestor |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2815 |
"open a dialog on compiler related settings" |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2816 |
|
1312 | 2817 |
|box warnings warnSTX warnUnderscore warnDollar warnOldStyle |
2818 |
allowDollar allowUnderscore immutableArrays |
|
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
2819 |
warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox |
1312 | 2820 |
warnCompatibility warnCompatibilityBox warnDollarBox |
219 | 2821 |
stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions |
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2822 |
stcLibraries stcLibraryPath cc stc ccOptions historyLines fullHistoryUpdate |
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2823 |
catchMethodRedefs catchClassRedefs keepSourceOptions keepSource |
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
2824 |
constantFoldingOptions constantFolding justInTimeCompilation |
782 | 2825 |
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
|
2826 |
y2 fullDebugSupport yMax |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2827 |
compileLazy loadBinaries canLoadBinaries strings idx thisIsADemoVersion |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
2828 |
resources stcSetupButt| |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2829 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
2830 |
resources := requestor class classResources. |
1296
db1d3cdf023a
disbable stc-setting fields if objectfileloading is not possible
Claus Gittinger <cg@exept.de>
parents:
1295
diff
changeset
|
2831 |
|
db1d3cdf023a
disbable stc-setting fields if objectfileloading is not possible
Claus Gittinger <cg@exept.de>
parents:
1295
diff
changeset
|
2832 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2833 |
loadBinaries := Smalltalk loadBinaries asValue. |
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2834 |
compileLazy := Autoload compileLazy asValue. |
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2835 |
|
219 | 2836 |
warnings := Compiler warnings asValue. |
2837 |
||
2838 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
2839 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
1312 | 2840 |
warnDollar := Compiler warnDollarInIdentifier asValue. |
219 | 2841 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
2842 |
warnCommonMistakes := Compiler warnCommonMistakes asValue. |
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
2843 |
warnCompatibility := Compiler warnPossibleIncompatibilities asValue. |
219 | 2844 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
1312 | 2845 |
allowDollar := Compiler allowDollarInIdentifier asValue. |
219 | 2846 |
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
|
2847 |
|
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2848 |
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
|
2849 |
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
|
2850 |
constantFolding selectionIndex:3. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2851 |
|
1584
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2852 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2853 |
thisIsADemoVersion ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2854 |
stcCompilationOptions := #( never). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2855 |
strings := #('never'). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2856 |
idx := 1. |
1584
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2857 |
] ifFalse:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2858 |
stcCompilationOptions := #( always default never). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2859 |
strings := #('always' 'primitive code only' 'never'). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2860 |
idx := 2. |
1584
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2861 |
]. |
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2862 |
|
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2863 |
stcCompilation := SelectionInList new list:(resources array:strings). |
22c6fd8ab7d0
hide compiler options in demo version
Claus Gittinger <cg@exept.de>
parents:
1578
diff
changeset
|
2864 |
stcCompilation selectionIndex:idx. |
1951 | 2865 |
|
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
2866 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) |
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
2867 |
ifTrue:[ |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
2868 |
justInTimeCompilation := ObjectMemory justInTimeCompilation. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
2869 |
fullDebugSupport := ObjectMemory fullSingleStepSupport. |
695 | 2870 |
] ifFalse:[ |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
2871 |
justInTimeCompilation := false. |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2872 |
fullDebugSupport := (Compiler lineNumberInfo == #full) asValue. |
695 | 2873 |
]. |
2874 |
justInTimeCompilation := justInTimeCompilation asValue. |
|
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
2875 |
fullDebugSupport := fullDebugSupport asValue. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2876 |
|
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2877 |
catchMethodRedefs := Class catchMethodRedefinitions asValue. |
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2878 |
catchClassRedefs := Class catchClassRedefinitions asValue. |
1361 | 2879 |
historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]]. |
2880 |
historyLines ifFalse:[ |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2881 |
fullHistoryUpdate := false asValue |
1361 | 2882 |
] ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2883 |
fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue. |
1361 | 2884 |
]. |
2885 |
historyLines := historyLines asValue. |
|
219 | 2886 |
|
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2887 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2888 |
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
|
2889 |
keepSource selectionIndex:1. |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2890 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
2891 |
warnEnabler := [ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2892 |
warnings value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2893 |
warnSTXBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2894 |
warnOldStyleBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2895 |
warnCommonMistakesBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2896 |
warnCompatibilityBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2897 |
allowUnderscore value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2898 |
warnUnderscoreBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2899 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2900 |
warnUnderscoreBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2901 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2902 |
allowDollar value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2903 |
warnDollarBox enable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2904 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2905 |
warnDollarBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2906 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2907 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2908 |
warnSTXBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2909 |
warnUnderscoreBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2910 |
warnDollarBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2911 |
warnOldStyleBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2912 |
warnCommonMistakesBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2913 |
warnCompatibilityBox disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2914 |
]]. |
219 | 2915 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
2916 |
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
|
2917 |
allowUnderscore onChangeSend:#value to:warnEnabler. |
1312 | 2918 |
allowDollar onChangeSend:#value to:warnEnabler. |
219 | 2919 |
|
2920 |
box := DialogBox new. |
|
2921 |
box label:(resources string:'Compiler settings'). |
|
2922 |
||
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2923 |
y := box yPosition. |
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
2924 |
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
|
2925 |
check width:0.5. |
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
2926 |
|
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2927 |
box yPosition:y. |
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2928 |
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
|
2929 |
check left:0.5; width:0.5. |
1691
41764d983be2
added catchClassRedefinitions to settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
2930 |
|
1354 | 2931 |
y := box yPosition. |
219 | 2932 |
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
|
2933 |
check width:0.5. |
219 | 2934 |
HistoryManager isNil ifTrue:[check disable]. |
1354 | 2935 |
box yPosition:y. |
2936 |
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
|
2937 |
check left:0.5; width:0.5. |
1354 | 2938 |
HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines]. |
219 | 2939 |
|
378 | 2940 |
box addPopUpList:(resources string:'fileIn source mode:') on:keepSource. |
359
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2941 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
26ce81391dbb
sourceMode & foldConstant settings
Claus Gittinger <cg@exept.de>
parents:
347
diff
changeset
|
2942 |
|
219 | 2943 |
box addHorizontalLine. |
2944 |
||
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2945 |
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
|
2946 |
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
|
2947 |
canLoadBinaries ifFalse:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2948 |
loadBinaries value:false. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2949 |
check disable |
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2950 |
]. |
698
64cf733533d1
dont show justInTime stuff, if machines does not support it.
Claus Gittinger <cg@exept.de>
parents:
697
diff
changeset
|
2951 |
supportsJustInTimeCompilation ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2952 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2953 |
addCheckBox:(resources string:'just in time compilation to machine code') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2954 |
on:justInTimeCompilation. |
695 | 2955 |
]. |
2956 |
||
1250
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2957 |
box addHorizontalLine. |
a0c335cfb6a9
moved lazyLoading and binaryLoading to compiler sections
Claus Gittinger <cg@exept.de>
parents:
1242
diff
changeset
|
2958 |
|
232 | 2959 |
ObjectFileLoader notNil ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2960 |
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
|
2961 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2962 |
thisIsADemoVersion ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2963 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2964 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2965 |
stcSetupButt := box addComponent:(Button label:(resources string:'stc compilation parameters...') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2966 |
action:[|manager| |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2967 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2968 |
self stcCompilerSettingsFor:requestor. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2969 |
]). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2970 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2971 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2972 |
box addHorizontalLine. |
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 |
"/ if there is no compiler around, |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2975 |
"/ change to compile nothing, and disable the checkBoxes |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2976 |
Compiler canCreateMachineCode ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2977 |
stcCompilation selectionIndex:(3 min:stcCompilationOptions size). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2978 |
compilationList disable. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
2979 |
]. |
219 | 2980 |
]. |
2981 |
||
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
2982 |
y := box yPosition. |
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
2983 |
|
782 | 2984 |
component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore. |
2985 |
component width:0.4. |
|
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
2986 |
|
1312 | 2987 |
component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar. |
2988 |
component width:0.4. |
|
2989 |
||
782 | 2990 |
component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays. |
2991 |
component width:0.4. |
|
2992 |
y2 := box yPosition. |
|
2993 |
||
2994 |
box yPosition:y. |
|
2995 |
box leftIndent:0. |
|
783
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
2996 |
|
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
2997 |
component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding. |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
2998 |
component superView left:0.5; width:0.5. |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
2999 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
0f64a5d1bad2
reorganized compiler-settings dialog
Claus Gittinger <cg@exept.de>
parents:
782
diff
changeset
|
3000 |
|
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3001 |
component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport. |
782 | 3002 |
component left:0.5; width:0.4. |
3003 |
box yPosition:(box yPosition max:y2). |
|
3004 |
||
695 | 3005 |
|
219 | 3006 |
box addHorizontalLine. |
3007 |
||
3008 |
box addCheckBox:(resources string:'warnings') on:warnings. |
|
737 | 3009 |
"/ box addVerticalSpace. |
343 | 3010 |
oldIndent := box leftIndent. |
219 | 3011 |
box leftIndent:30. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
3012 |
|
737 | 3013 |
y := box yPosition. |
3014 |
||
760 | 3015 |
warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX. |
737 | 3016 |
warnSTXBox width:0.4. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
3017 |
|
219 | 3018 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore. |
737 | 3019 |
warnUnderscoreBox width:0.4. |
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3020 |
|
1312 | 3021 |
warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar. |
3022 |
warnDollarBox width:0.4. |
|
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3023 |
|
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3024 |
yMax := box yPosition. |
737 | 3025 |
|
3026 |
box yPosition:y. |
|
3027 |
box leftIndent:0. |
|
219 | 3028 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle. |
737 | 3029 |
warnOldStyleBox left:0.5; width:0.4. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
3030 |
|
679 | 3031 |
warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes. |
737 | 3032 |
warnCommonMistakesBox left:0.5; width:0.4. |
678
3088fddbfb98
added box for common mistakes warnings
Claus Gittinger <cg@exept.de>
parents:
676
diff
changeset
|
3033 |
|
1312 | 3034 |
warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility. |
3035 |
warnCompatibilityBox left:0.5; width:0.4. |
|
3036 |
||
343 | 3037 |
box leftIndent:oldIndent. |
1180
464a3dd1f90a
added compatibility warnings checkBox.
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3038 |
box yPosition:(yMax max: box yPosition). |
219 | 3039 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
3040 |
box |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3041 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3042 |
addAbortButton; |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3043 |
addOkButton. |
219 | 3044 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
3045 |
warnEnabler value. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3046 |
box open. |
219 | 3047 |
|
3048 |
box accepted ifTrue:[ |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3049 |
HistoryManager notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3050 |
HistoryManager fullHistoryUpdate:fullHistoryUpdate value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3051 |
historyLines value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3052 |
HistoryManager activate |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3053 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3054 |
HistoryManager deactivate |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3055 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3056 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3057 |
Class catchMethodRedefinitions:catchMethodRedefs value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3058 |
Class catchClassRedefinitions:catchClassRedefs value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3059 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3060 |
Compiler warnings:warnings value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3061 |
Compiler warnSTXSpecials:warnSTX value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3062 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3063 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3064 |
Compiler warnDollarInIdentifier:warnDollar value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3065 |
Compiler warnCommonMistakes:warnCommonMistakes value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3066 |
Compiler warnPossibleIncompatibilities:warnCompatibility value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3067 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3068 |
Compiler allowDollarInIdentifier:allowDollar value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3069 |
Compiler arraysAreImmutable:immutableArrays value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3070 |
fullDebugSupport value ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3071 |
Compiler lineNumberInfo:#full. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3072 |
] ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3073 |
Compiler lineNumberInfo:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3074 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3075 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3076 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3077 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3078 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3079 |
supportsJustInTimeCompilation ifTrue:[ |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3080 |
justInTimeCompilation := justInTimeCompilation value. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3081 |
justInTimeCompilation ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3082 |
Method allInstancesDo:[:m | m checked:false]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3083 |
]. |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3084 |
ObjectMemory justInTimeCompilation:justInTimeCompilation. |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3085 |
ObjectMemory fullSingleStepSupport:fullDebugSupport value. |
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 |
Autoload compileLazy:compileLazy value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
3088 |
Smalltalk loadBinaries:loadBinaries value. |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3089 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3090 |
box destroy |
219 | 3091 |
|
1354 | 3092 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
3093 |
"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
|
3094 |
"Modified: / 5.11.1998 / 14:25:59 / cg" |
219 | 3095 |
! |
3096 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3097 |
displaySettingsFor:requestor |
921 | 3098 |
"open a dialog on display related settings" |
3099 |
||
1106
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3100 |
|box listOfSizes sizeInfos |
614 | 3101 |
sizes sizeNames sizeList sizeX sizeY deepIcons |
1196 | 3102 |
isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3103 |
y component screen visual clipEncodings clipEncodingSyms clipEncodingList resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3104 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3105 |
resources := requestor class classResources. |
594 | 3106 |
|
1106
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3107 |
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
|
3108 |
listOfSizes == #default ifTrue:[ |
1910 | 3109 |
"/ nothing in resource file; offer at least some. |
3110 |
sizeInfos := #( |
|
3111 |
( '11.3'' (235mm x 175mm) LCD' (235 175) ) |
|
3112 |
( '17'' (325mm x 245mm)' (325 245) ) |
|
3113 |
( '19'' (340mm x 270mm)' (340 270) ) |
|
3114 |
( '20'' (350mm x 280mm)' (350 280) ) |
|
3115 |
( '21'' (365mm x 285mm)' (365 285) ) |
|
3116 |
). |
|
1106
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3117 |
] ifFalse:[ |
1910 | 3118 |
sizeInfos := resources array:listOfSizes. |
1106
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3119 |
]. |
650465f9b173
read offered screen resolution list from resource file.
Claus Gittinger <cg@exept.de>
parents:
1105
diff
changeset
|
3120 |
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
|
3121 |
sizes := sizeInfos collect:[:entry | entry at:2]. |
594 | 3122 |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3123 |
screen := Screen current. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3124 |
visual := screen visualType. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3125 |
|
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3126 |
isColorMonitor := screen hasColors asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3127 |
deepIcons := screen supportsDeepIcons asValue. |
670
7c958acbc5e8
fixColor and ditherColor stuff moved from Color
Claus Gittinger <cg@exept.de>
parents:
668
diff
changeset
|
3128 |
useFixPalette := screen fixColors notNil asValue. |
1196 | 3129 |
useFixGrayPalette := screen fixGrayColors notNil asValue. |
594 | 3130 |
|
3131 |
sizeList := SelectionInList with:sizeNames. |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3132 |
sizeX := screen widthInMillimeter asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3133 |
sizeY := screen heightInMillimeter asValue. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3134 |
|
1220
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3135 |
clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5). |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3136 |
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
|
3137 |
clipEncodingList := SelectionInList new. |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3138 |
clipEncodingList list:clipEncodings. |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3139 |
clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1). |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3140 |
|
1048 | 3141 |
ditherList := SelectionInList new. |
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3142 |
|
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3143 |
(visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[ |
1910 | 3144 |
ditherStyles := #('threshold' 'ordered dither' 'error diffusion'). |
3145 |
ditherSyms := #(threshold ordered floydSteinberg). |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3146 |
] ifFalse:[ |
1910 | 3147 |
visual ~~ #TrueColor ifTrue:[ |
3148 |
ditherStyles := #('nearest color' 'error diffusion'). |
|
3149 |
ditherSyms := #(ordered floydSteinberg). |
|
3150 |
] |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3151 |
]. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3152 |
ditherSyms notNil ifTrue:[ |
1910 | 3153 |
ditherList list:ditherStyles. |
3154 |
ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold). |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3155 |
]. |
594 | 3156 |
|
3157 |
box := DialogBox new. |
|
3158 |
box label:(resources string:'Display screen settings'). |
|
3159 |
||
3160 |
(box addTextLabel:(resources string:'Actual visible screen area:')) |
|
1910 | 3161 |
adjust:#left. |
594 | 3162 |
|
3163 |
(box addPopUpList:(resources string:'common sizes:') on:sizeList) |
|
1910 | 3164 |
label:'monitor size'. |
594 | 3165 |
|
3166 |
idx := sizes findFirst:[:entry | |
|
1910 | 3167 |
((entry at:1) = sizeX value) |
3168 |
and:[((entry at:2) = sizeY value)] |
|
3169 |
]. |
|
594 | 3170 |
idx ~~ 0 ifTrue:[ |
1910 | 3171 |
sizeList selectionIndex:idx |
594 | 3172 |
]. |
3173 |
||
3174 |
sizeList onChangeSend:#value to:[ |
|
1910 | 3175 |
|idx| |
3176 |
||
3177 |
idx := sizeList selectionIndex. |
|
3178 |
sizeX value:((sizes at:idx) at:1). |
|
3179 |
sizeY value:((sizes at:idx) at:2). |
|
3180 |
]. |
|
594 | 3181 |
|
3182 |
y := box yPosition. |
|
3183 |
component := box addTextLabel:(resources string:'screen size:'). |
|
3184 |
component width:0.3; adjust:#right; borderWidth:0. |
|
3185 |
||
3186 |
box yPosition:y. |
|
1129 | 3187 |
component := box addInputFieldOn:nil tabable:true. |
594 | 3188 |
component width:0.25; left:0.3; |
1910 | 3189 |
immediateAccept:false; acceptOnLeave:false; |
3190 |
cursorMovementWhenUpdating:#beginOfLine; |
|
3191 |
converter:(PrintConverter new initForInteger); |
|
3192 |
model:sizeX. |
|
594 | 3193 |
|
3194 |
box yPosition:y. |
|
3195 |
component := box addTextLabel:(' x '). |
|
3196 |
component width:0.1; left:0.55; adjust:#center; borderWidth:0. |
|
3197 |
||
3198 |
box yPosition:y. |
|
1129 | 3199 |
component := box addInputFieldOn:nil tabable:true. |
594 | 3200 |
component width:0.25; left:0.65; |
1910 | 3201 |
immediateAccept:false; acceptOnLeave:false; |
3202 |
cursorMovementWhenUpdating:#beginOfLine; |
|
3203 |
converter:(PrintConverter new initForInteger); |
|
3204 |
model:sizeY. |
|
594 | 3205 |
|
3206 |
box yPosition:y. |
|
3207 |
component := box addTextLabel:('(mm)'). |
|
3208 |
component width:0.1; left:0.9; adjust:#center; borderWidth:0. |
|
3209 |
||
1492 | 3210 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
594 | 3211 |
|
1192 | 3212 |
(box addTextLabel:(resources string:'Screen: depth: %1 visual: %2 (%3)' |
1910 | 3213 |
with:Screen current depth printString |
3214 |
with:Screen current visualType |
|
3215 |
with:Screen current serverVendor)) |
|
3216 |
adjust:#left. |
|
1192 | 3217 |
|
1492 | 3218 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
1192 | 3219 |
|
594 | 3220 |
box addCheckBox:(resources string:'color monitor') on:isColorMonitor. |
3221 |
||
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3222 |
visual == #PseudoColor ifTrue:[ |
1910 | 3223 |
box addVerticalSpace. |
3224 |
component := box addCheckBox:(resources string:'use fix color palette %1' with:'(4x8x4)') on:useFixPalette. |
|
3225 |
||
3226 |
box addVerticalSpace. |
|
3227 |
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
|
3228 |
]. |
594 | 3229 |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3230 |
ditherSyms notNil ifTrue:[ |
1910 | 3231 |
box addVerticalSpace. |
3232 |
component := box addPopUpList:(resources string:'image display:') on:ditherList. |
|
3233 |
component defaultLabel:'image display'. |
|
3234 |
component superView horizontalLayout:#leftSpace. |
|
630
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3235 |
]. |
b5a673d2ba35
added #nearestPaint/#errorDiffusion choice
Claus Gittinger <cg@exept.de>
parents:
624
diff
changeset
|
3236 |
|
614 | 3237 |
box addVerticalSpace. |
3238 |
box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons. |
|
3239 |
||
1492 | 3240 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
1220
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3241 |
|
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3242 |
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
|
3243 |
component superView horizontalLayout:#leftSpace. |
552a2ab14c0a
allow setting of the clipBoards encoding.
Claus Gittinger <cg@exept.de>
parents:
1199
diff
changeset
|
3244 |
|
594 | 3245 |
box |
1910 | 3246 |
addHelpButtonFor:'Launcher/screenSettings.html'; |
3247 |
addAbortButton; addOkButton. |
|
594 | 3248 |
box open. |
3249 |
||
3250 |
box accepted ifTrue:[ |
|
1910 | 3251 |
Image flushDeviceImages. |
3252 |
||
3253 |
screen visualType == #PseudoColor ifTrue:[ |
|
3254 |
useFixPalette value ifTrue:[ |
|
3255 |
Color colorAllocationFailSignal handle:[:ex | |
|
3256 |
self warn:(resources string:'Could not allocate colors.'). |
|
3257 |
] do:[ |
|
3258 |
Color getColorsRed:4 green:8 blue:4 on:screen |
|
3259 |
] |
|
3260 |
] ifFalse:[ |
|
3261 |
screen releaseFixColors |
|
3262 |
]. |
|
3263 |
||
3264 |
useFixGrayPalette value ifTrue:[ |
|
3265 |
Color colorAllocationFailSignal handle:[:ex | |
|
3266 |
self warn:(resources string:'Could not allocate colors.'). |
|
3267 |
] do:[ |
|
3268 |
Color getGrayColors:32 on:screen |
|
3269 |
] |
|
3270 |
] ifFalse:[ |
|
3271 |
screen releaseFixGrayColors |
|
3272 |
] |
|
3273 |
]. |
|
3274 |
screen hasColors:isColorMonitor value. |
|
3275 |
screen widthInMillimeter:sizeX value. |
|
3276 |
screen heightInMillimeter:sizeY value. |
|
3277 |
||
3278 |
screen supportsDeepIcons:deepIcons value. |
|
3279 |
ditherSyms notNil ifTrue:[ |
|
3280 |
Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex). |
|
3281 |
]. |
|
3282 |
||
3283 |
requestor withWaitCursorDo:[ |
|
3284 |
View defaultStyle:(View defaultStyle). |
|
3285 |
]. |
|
3286 |
||
3287 |
screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex). |
|
594 | 3288 |
]. |
3289 |
box destroy |
|
3290 |
||
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
3291 |
"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
|
3292 |
"Modified: 21.7.1997 / 19:26:49 / cg" |
594 | 3293 |
! |
3294 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3295 |
fontSettingsFor:requestor |
921 | 3296 |
"open a dialog on font related settings" |
3297 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3298 |
(self fontBoxForEncoding:nil for:requestor) ifTrue:[ |
1910 | 3299 |
requestor reopenLauncher. |
406 | 3300 |
] |
397
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
3301 |
|
398 | 3302 |
"Created: 26.2.1996 / 22:52:51 / cg" |
921 | 3303 |
"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
|
3304 |
! |
799d6b395675
check for good font when changing language; added defaultFont menu
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
3305 |
|
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3306 |
javaSettingsFor:requestor |
1953 | 3307 |
"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
|
3308 |
|
1943 | 3309 |
|box audio javaHome resources component |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3310 |
extraFileSecurityChecks extraSocketSecurityChecks |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3311 |
supportsJustInTimeCompilation |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3312 |
javaJustInTimeCompilation javaNativeCodeOptimization| |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3313 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3314 |
resources := requestor class classResources. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3315 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3316 |
audio := JavaVM audioEnabled asValue. |
1943 | 3317 |
extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue. |
3318 |
extraSocketSecurityChecks := JavaVM socketConnectConfirmation asValue. |
|
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3319 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) ifTrue:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3320 |
javaJustInTimeCompilation := ObjectMemory javaJustInTimeCompilation asValue. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3321 |
javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3322 |
] ifFalse:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3323 |
javaJustInTimeCompilation := javaNativeCodeOptimization := false |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3324 |
]. |
1943 | 3325 |
|
1916 | 3326 |
javaHome := (Java javaHome ? '') asValue. |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3327 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3328 |
box := DialogBox new. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3329 |
box label:(resources string:'Java'). |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3330 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3331 |
box addCheckBox:(resources string:'Audio Enabled') on:audio. |
1943 | 3332 |
box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks. |
3333 |
box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks. |
|
3334 |
box addHorizontalLine. |
|
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3335 |
supportsJustInTimeCompilation ifTrue:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3336 |
box |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3337 |
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
|
3338 |
on:javaJustInTimeCompilation. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3339 |
box |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3340 |
addCheckBox:(resources string:'optimize native code') |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3341 |
on:javaNativeCodeOptimization. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3342 |
]. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3343 |
box addHorizontalLine. |
1916 | 3344 |
component := box |
3345 |
addLabelledInputField:(resources string:'java home:') |
|
3346 |
adjust:#right |
|
3347 |
on:javaHome |
|
3348 |
tabable:true |
|
3349 |
separateAtX:0.3. |
|
3350 |
component acceptOnLeave:false. |
|
3351 |
||
3352 |
box addVerticalSpace. |
|
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3353 |
box addComponent:(Button |
1916 | 3354 |
label:(resources string:'Reinit VM now') |
1929 | 3355 |
action:[ |
1970 | 3356 |
Java classPath size == 0 ifTrue:[ |
3357 |
Java initialize. |
|
3358 |
]. |
|
1929 | 3359 |
Java classPath size == 0 ifTrue:[ |
3360 |
self warn:'No JDK found'. |
|
3361 |
] ifFalse:[ |
|
3362 |
JavaVM initializeVM |
|
3363 |
] |
|
3364 |
]). |
|
1941 | 3365 |
|
3366 |
box addComponent:(Button |
|
3367 |
label:(resources string:'Remove all Java classes now') |
|
3368 |
action:[ |
|
3369 |
Java flushAllJavaResources |
|
3370 |
]). |
|
3371 |
||
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3372 |
"/ box addHorizontalLine. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3373 |
|
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3374 |
"/ box addHelpButtonFor:'Launcher/javaSettings.html'. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3375 |
box addAbortButton; addOkButton. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3376 |
box open. |
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 |
box accepted ifTrue:[ |
1916 | 3379 |
JavaVM audioEnabled:audio value. |
1944 | 3380 |
JavaVM fileOpenConfirmation: extraFileSecurityChecks value. |
3381 |
JavaVM socketConnectConfirmation: extraSocketSecurityChecks value. |
|
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3382 |
javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3383 |
ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3384 |
javaJustInTimeCompilation value ifTrue:[ |
1954 | 3385 |
JavaMethod allSubInstancesDo:[:m | m checked:false]. |
1952
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3386 |
]. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3387 |
]. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3388 |
javaNativeCodeOptimization value ~~ ObjectMemory javaNativeCodeOptimization ifTrue:[ |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3389 |
ObjectMemory javaNativeCodeOptimization:javaNativeCodeOptimization value. |
a960ecaa5091
move java JIT configuration into java-dialog.
Claus Gittinger <cg@exept.de>
parents:
1951
diff
changeset
|
3390 |
]. |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3391 |
]. |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3392 |
box destroy |
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 |
"Created: / 18.7.1998 / 22:32:58 / cg" |
1970 | 3395 |
"Modified: / 4.12.1998 / 16:17:06 / cg" |
1729
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3396 |
! |
79a4d5dd4c13
added (hidden) java-settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1718
diff
changeset
|
3397 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3398 |
keyboardSettingsFor:requestor |
921 | 3399 |
"open a dialog on keyboard related settings" |
3400 |
||
219 | 3401 |
|mappings listOfRawKeys listOfFunctions |
3402 |
box l |
|
3403 |
list1 list2 listView1 listView2 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3404 |
frame selectionForwarder macroForwarder macroTextView y resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3405 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3406 |
resources := requestor class classResources. |
219 | 3407 |
|
3408 |
mappings := Screen current keyboardMap. |
|
3409 |
||
3410 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
3411 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
3412 |
||
3413 |
selectionForwarder := Plug new. |
|
3414 |
selectionForwarder respondTo:#showFunction |
|
1910 | 3415 |
with:[ |
3416 |
|raw| |
|
3417 |
raw := list1 selection. |
|
3418 |
list2 retractInterestsFor:selectionForwarder. |
|
3419 |
list2 selection:(mappings at:raw asSymbol) asString. |
|
3420 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
3421 |
]. |
|
219 | 3422 |
selectionForwarder respondTo:#showRawKey |
1910 | 3423 |
with:[ |
3424 |
|f raw| |
|
3425 |
||
3426 |
f := list2 selection. |
|
3427 |
list1 retractInterestsFor:selectionForwarder. |
|
3428 |
raw := mappings keyAtValue:f asString. |
|
3429 |
raw isNil ifTrue:[ |
|
3430 |
raw := mappings keyAtValue:f first. |
|
3431 |
raw isNil ifTrue:[ |
|
3432 |
raw := mappings keyAtValue:f asSymbol. |
|
3433 |
] |
|
3434 |
]. |
|
3435 |
list1 selection:raw. |
|
3436 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
3437 |
]. |
|
219 | 3438 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
3439 |
macroForwarder := [ |
1910 | 3440 |
|f macro indent| |
3441 |
f := list2 selection. |
|
3442 |
(f startsWith:'Cmd') ifTrue:[ |
|
3443 |
f := f copyFrom:4 |
|
3444 |
]. |
|
3445 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil. |
|
3446 |
macro notNil ifTrue:[ |
|
3447 |
macro := macro asStringCollection. |
|
3448 |
indent := macro |
|
3449 |
inject:99999 into:[:min :element | |
|
3450 |
|stripped| |
|
3451 |
||
3452 |
stripped := element withoutLeadingSeparators. |
|
3453 |
stripped size == 0 ifTrue:[ |
|
3454 |
min |
|
3455 |
] ifFalse:[ |
|
3456 |
min min:(element size - stripped size) |
|
3457 |
] |
|
3458 |
]. |
|
3459 |
indent ~~ 0 ifTrue:[ |
|
3460 |
macro := macro collect:[:line | |
|
3461 |
line size > indent ifTrue:[ |
|
3462 |
line copyFrom:indent+1 |
|
3463 |
] ifFalse:[ |
|
3464 |
line |
|
3465 |
]. |
|
3466 |
] |
|
3467 |
]. |
|
3468 |
]. |
|
3469 |
macroTextView contents:macro. |
|
3470 |
]. |
|
219 | 3471 |
|
3472 |
list1 := SelectionInList with:listOfRawKeys. |
|
3473 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
3474 |
|
219 | 3475 |
list2 := SelectionInList with:listOfFunctions. |
3476 |
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
|
3477 |
list2 onChangeSend:#value to:macroForwarder. |
219 | 3478 |
|
3479 |
box := Dialog new. |
|
3480 |
box label:(resources string:'Keyboard mappings'). |
|
3481 |
||
1632
faafcf31a690
useful fallBack message for KEYB_MSG
Claus Gittinger <cg@exept.de>
parents:
1631
diff
changeset
|
3482 |
l := box addTextLabel:(resources at:'KEY_MSG' default:'keyboard mapping:') withCRs. |
219 | 3483 |
l adjust:#left; borderWidth:0. |
3484 |
||
3485 |
frame := View new. |
|
3486 |
frame extent:300 @ 300. |
|
3487 |
frame borderWidth:0. |
|
3488 |
||
3489 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
3490 |
listView1 model:list1. |
|
3491 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
3492 |
||
3493 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
3494 |
listView2 model:list2. |
|
3495 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
3496 |
||
3497 |
frame topInset:box yPosition. |
|
3498 |
box addComponent:frame withExtent:350@200. |
|
3499 |
box makeTabable:listView1. |
|
3500 |
box makeTabable:listView2. |
|
3501 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
3502 |
||
3503 |
box addVerticalSpace. |
|
3504 |
||
3505 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
3506 |
l adjust:#left; borderWidth:0. |
|
3507 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
3508 |
l topInset:(View viewSpacing). |
|
3509 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
3510 |
||
3511 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
3512 |
box addComponent:macroTextView tabable:true. |
|
3513 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
3514 |
y := box yPosition. |
|
3515 |
||
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
3516 |
box |
1910 | 3517 |
addHelpButtonFor:'Launcher/keyboardSetting.html'; |
3518 |
"addAbortButton;" |
|
3519 |
addOkButtonLabelled:(resources string:'dismiss'). |
|
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
3520 |
|
219 | 3521 |
macroTextView topInset:(l preferredExtent y + 5). |
3522 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
3523 |
||
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3524 |
box open. |
219 | 3525 |
|
3526 |
box accepted ifTrue:[ |
|
1910 | 3527 |
"no action yet ..." |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3528 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3529 |
box destroy |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
3530 |
|
1632
faafcf31a690
useful fallBack message for KEYB_MSG
Claus Gittinger <cg@exept.de>
parents:
1631
diff
changeset
|
3531 |
"Modified: / 9.9.1996 / 22:43:17 / stefan" |
faafcf31a690
useful fallBack message for KEYB_MSG
Claus Gittinger <cg@exept.de>
parents:
1631
diff
changeset
|
3532 |
"Modified: / 4.5.1998 / 12:40:02 / cg" |
219 | 3533 |
! |
3534 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3535 |
languageSettingsFor:requestor |
921 | 3536 |
"open a dialog on language related settings" |
3537 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3538 |
|listOfLanguages translatedLanguages switch box languageList flags resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3539 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3540 |
resources := requestor class classResources. |
219 | 3541 |
|
3542 |
" |
|
410 | 3543 |
get list of supported languages from the launchers resources ... |
219 | 3544 |
" |
410 | 3545 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
1116 | 3546 |
listOfLanguages := listOfLanguages asOrderedCollection. |
1115
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3547 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
1910 | 3548 |
item := resources at:lang. |
3549 |
item isString ifTrue:[ |
|
3550 |
item |
|
3551 |
] ifFalse:[ |
|
3552 |
item at:1 |
|
3553 |
] |
|
3554 |
]. |
|
1115
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3555 |
flags := listOfLanguages collect:[:lang | |item| |
1910 | 3556 |
item := resources at:lang. |
3557 |
item isArray ifTrue:[ |
|
3558 |
item at:2 |
|
3559 |
] ifFalse:[ |
|
3560 |
nil |
|
3561 |
] |
|
3562 |
]. |
|
1115
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3563 |
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
|
3564 |
|
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3565 |
languageList := translatedLanguages with:flags collect:[:lang :flag | |
1910 | 3566 |
LabelAndIcon icon:flag string:lang. |
3567 |
]. |
|
219 | 3568 |
|
1631
8e46cb066849
useful fallBack message for LANG_MSG
Claus Gittinger <cg@exept.de>
parents:
1621
diff
changeset
|
3569 |
box := ListSelectionBox title:(resources at:'LANG_MSG' default:'select a language') withCRs. |
219 | 3570 |
box label:(resources string:'Language selection'). |
1115
8fc8a7688aec
show flags in language setting ;-)
Claus Gittinger <cg@exept.de>
parents:
1108
diff
changeset
|
3571 |
box list:languageList. |
219 | 3572 |
box initialText:(Language). |
3573 |
box action:[:newLanguage | |
|
1910 | 3574 |
requestor withWaitCursorDo:[ |
3575 |
|fontPref idx language oldLanguage enc answer matchingFonts| |
|
3576 |
||
3577 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
3578 |
idx ~~ 0 ifTrue:[ |
|
3579 |
language := listOfLanguages at:idx |
|
3580 |
] ifFalse:[ |
|
3581 |
language := newLanguage |
|
3582 |
]. |
|
3583 |
||
3584 |
"/ check if the new language needs a differently encoded font; |
|
3585 |
"/ ask user to switch font and allow cancellation. |
|
3586 |
"/ Otherwise, you are left with unreadable menu & button items ... |
|
3587 |
||
3588 |
oldLanguage := Smalltalk language. |
|
3589 |
Smalltalk language:language asSymbol. |
|
3590 |
ResourcePack flushCachedResourcePacks. |
|
3591 |
"/ refetch resources ... |
|
3592 |
resources := requestor class classResources. |
|
3593 |
fontPref := resources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
|
3594 |
Smalltalk language:oldLanguage. |
|
3595 |
||
3596 |
switch := true. |
|
3597 |
enc := MenuView defaultFont encoding. |
|
3598 |
(fontPref match:enc) ifFalse:[ |
|
3599 |
"/ look if there is one at all. |
|
3600 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
3601 |
matchingFonts size == 0 ifTrue:[ |
|
3602 |
"/ flush and try again - just in case, the font path has changed. |
|
3603 |
Screen current flushListOfAvailableFonts. |
|
3604 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
3605 |
]. |
|
3606 |
matchingFonts size == 0 ifTrue:[ |
|
3607 |
(Dialog |
|
3608 |
confirm:(resources |
|
3609 |
string:'Your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
|
3610 |
with:fontPref) withCRs) |
|
3611 |
ifFalse:[ |
|
3612 |
switch := false |
|
3613 |
] |
|
3614 |
] ifFalse:[ |
|
3615 |
answer := Dialog |
|
3616 |
confirmWithCancel:(resources |
|
3617 |
string:'menu font is not %1-encoded.\\Change it ?' |
|
3618 |
with:fontPref) withCRs |
|
3619 |
labels:(resources |
|
3620 |
array:#('cancel' 'no' 'yes')) |
|
3621 |
default:3. |
|
3622 |
answer isNil ifTrue:[ |
|
3623 |
switch := false |
|
3624 |
] ifFalse:[ |
|
3625 |
answer ifTrue:[ |
|
3626 |
switch := (requestor fontBoxForEncoding:fontPref) |
|
3627 |
] |
|
3628 |
]. |
|
3629 |
]. |
|
3630 |
]. |
|
3631 |
||
3632 |
switch ifTrue:[ |
|
3633 |
Transcript showCR:'change language to ' , newLanguage , ' ...'. |
|
3634 |
Smalltalk language:language asSymbol. |
|
3635 |
ResourcePack flushCachedResourcePacks |
|
3636 |
]. |
|
3637 |
]. |
|
3638 |
switch ifTrue:[ |
|
3639 |
requestor reopenLauncher. |
|
3640 |
DebugView newDebugger. |
|
3641 |
] |
|
219 | 3642 |
]. |
421
0af6aa7db321
added help buttons to language & keyboard dialogs
Claus Gittinger <cg@exept.de>
parents:
420
diff
changeset
|
3643 |
box |
1910 | 3644 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3645 |
box open. |
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
3646 |
box destroy |
281
7b73ea8b2faa
more for international language support
Claus Gittinger <cg@exept.de>
parents:
262
diff
changeset
|
3647 |
|
1465 | 3648 |
"Modified: / 9.9.1996 / 22:43:27 / stefan" |
1799 | 3649 |
"Modified: / 4.8.1998 / 16:54:32 / cg" |
219 | 3650 |
! |
3651 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3652 |
memorySettingsFor:requestor |
921 | 3653 |
"open a dialog on objectMemory related settings" |
3654 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
3655 |
|box igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
440 | 3656 |
compressLimit |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3657 |
oldIncr component fields codeLimit codeTrigger stackLimit resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3658 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3659 |
resources := requestor class classResources. |
341 | 3660 |
|
3661 |
"/ |
|
3662 |
"/ extract relevant system settings ... |
|
3663 |
"/ |
|
3664 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
3665 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
3666 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
3667 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
3668 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
440 | 3669 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
774 | 3670 |
codeLimit := ObjectMemory dynamicCodeLimit asValue. |
3671 |
codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue. |
|
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3672 |
stackLimit := Process defaultMaximumStackSize asValue. |
341 | 3673 |
|
3674 |
"/ |
|
3675 |
"/ create a box on those values ... |
|
3676 |
"/ |
|
3677 |
fields := OrderedCollection new. |
|
3678 |
||
3679 |
box := DialogBox new. |
|
3680 |
box label:(resources string:'Memory manager settings'). |
|
3681 |
||
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3682 |
(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
|
3683 |
|
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3684 |
You have been warned.') adjust:#left. |
341 | 3685 |
box addHorizontalLine. |
3686 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3687 |
component := box |
1910 | 3688 |
addLabelledInputField:(resources string:'size of newSpace:') |
3689 |
adjust:#right |
|
3690 |
on:nil "/ newSpaceSize |
|
3691 |
tabable:true |
|
3692 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3693 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3694 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3695 |
component model:newSpaceSize. |
341 | 3696 |
fields add:component. |
3697 |
||
3698 |
box addHorizontalLine. |
|
3699 |
||
3700 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3701 |
component := box |
1910 | 3702 |
addLabelledInputField:(resources string:'incremental GC allocation trigger:') |
3703 |
adjust:#right |
|
3704 |
on:nil "/ igcLimit |
|
3705 |
tabable:true |
|
3706 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3707 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3708 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3709 |
component model:igcLimit. |
341 | 3710 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3711 |
|
345 | 3712 |
box addTextLabel:'(start IGC whenever this amount has been allocated)'. |
341 | 3713 |
box addHorizontalLine. |
3714 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3715 |
component := box |
1910 | 3716 |
addLabelledInputField:(resources string:'incremental GC freespace trigger:') |
3717 |
adjust:#right |
|
3718 |
on:nil "/ igcFreeLimit |
|
3719 |
tabable:true |
|
3720 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3721 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3722 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3723 |
component model:igcFreeLimit. |
341 | 3724 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3725 |
|
341 | 3726 |
box addTextLabel:'(start IGC whenever freespace drops below this)'. |
3727 |
box addHorizontalLine. |
|
3728 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3729 |
component := box |
1910 | 3730 |
addLabelledInputField:(resources string:'incremental GC amount:') |
3731 |
adjust:#right |
|
3732 |
on:nil "/ igcFreeAmount |
|
3733 |
tabable:true |
|
3734 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3735 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3736 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3737 |
component model:igcFreeAmount. |
341 | 3738 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3739 |
|
345 | 3740 |
box addTextLabel:'(try to keep this amount for peak requests)'. |
341 | 3741 |
box addHorizontalLine. |
3742 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3743 |
component := box |
1910 | 3744 |
addLabelledInputField:(resources string:'oldspace increment:') |
3745 |
adjust:#right |
|
3746 |
on:nil "/ oldIncr |
|
3747 |
tabable:true |
|
3748 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3749 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3750 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3751 |
component model:oldIncr. |
341 | 3752 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3753 |
|
345 | 3754 |
box addTextLabel:'(increase oldSpace in chunks of this size)'. |
341 | 3755 |
box addHorizontalLine. |
3756 |
||
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3757 |
component := box |
1910 | 3758 |
addLabelledInputField:(resources string:'oldspace compress limit:') |
3759 |
adjust:#right |
|
3760 |
on:nil "/ compressLimit |
|
3761 |
tabable:true |
|
3762 |
separateAtX:0.7. |
|
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3763 |
component acceptOnLeave:false. |
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3764 |
component converter:(PrintConverter new initForNumber). |
743
dc5a8537b78a
printConverter bug - must set the model after it.
Claus Gittinger <cg@exept.de>
parents:
742
diff
changeset
|
3765 |
component model:compressLimit. |
440 | 3766 |
fields add:component. |
476
8ebba8966f3f
use new Dialog interface to create a labelledInputField ...
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
3767 |
|
440 | 3768 |
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
|
3769 |
box addHorizontalLine. |
440 | 3770 |
|
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3771 |
component := box |
1910 | 3772 |
addLabelledInputField:(resources string:'stack limit:') |
3773 |
adjust:#right |
|
3774 |
on:nil |
|
3775 |
tabable:true |
|
3776 |
separateAtX:0.7. |
|
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3777 |
component acceptOnLeave:false. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3778 |
component converter:(PrintConverter new initForNumber). |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3779 |
component model:stackLimit. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3780 |
fields add:component. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3781 |
|
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3782 |
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
|
3783 |
box addHorizontalLine. |
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3784 |
|
774 | 3785 |
ObjectMemory supportsJustInTimeCompilation ifTrue:[ |
1910 | 3786 |
component := box |
3787 |
addLabelledInputField:(resources string:'dynamic code limit:') |
|
3788 |
adjust:#right |
|
3789 |
on:nil |
|
3790 |
tabable:true |
|
3791 |
separateAtX:0.7. |
|
3792 |
component acceptOnLeave:false. |
|
3793 |
component converter:(PrintConverter new initForNumberOrNil). |
|
3794 |
component model:codeLimit. |
|
3795 |
fields add:component. |
|
3796 |
||
3797 |
box addTextLabel:'(flush dynamic compiled code to stay within this limit)'. |
|
3798 |
box addHorizontalLine. |
|
3799 |
||
3800 |
component := box |
|
3801 |
addLabelledInputField:(resources string:'dynamic code GC trigger:') |
|
3802 |
adjust:#right |
|
3803 |
on:nil |
|
3804 |
tabable:true |
|
3805 |
separateAtX:0.7. |
|
3806 |
component acceptOnLeave:false. |
|
3807 |
component converter:(PrintConverter new initForNumberOrNil). |
|
3808 |
component model:codeTrigger. |
|
3809 |
fields add:component. |
|
3810 |
||
3811 |
box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'. |
|
3812 |
box addHorizontalLine. |
|
774 | 3813 |
]. |
773
98efb7f5e8fa
prepared dynamic-compiler controls
Claus Gittinger <cg@exept.de>
parents:
772
diff
changeset
|
3814 |
|
341 | 3815 |
box addAbortButton; addOkButton. |
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3816 |
box |
1910 | 3817 |
addHelpButtonFor:'Launcher/memorySettings.html'. |
341 | 3818 |
|
3819 |
"/ |
|
3820 |
"/ show the box ... |
|
3821 |
"/ |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3822 |
box open. |
341 | 3823 |
|
3824 |
"/ |
|
3825 |
"/ update system settings |
|
3826 |
"/ |
|
3827 |
box accepted ifTrue:[ |
|
1910 | 3828 |
fields do:[:comp | comp accept]. |
3829 |
||
3830 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
|
3831 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
|
3832 |
]. |
|
3833 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
|
3834 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
|
3835 |
]. |
|
3836 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
|
3837 |
ObjectMemory incrementalGCLimit:igcLimit value. |
|
3838 |
]. |
|
3839 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
|
3840 |
ObjectMemory newSpaceSize:newSpaceSize value. |
|
3841 |
]. |
|
3842 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
|
3843 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
|
3844 |
]. |
|
3845 |
stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[ |
|
3846 |
Process defaultMaximumStackSize:stackLimit value. |
|
3847 |
]. |
|
3848 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
|
3849 |
ObjectMemory dynamicCodeLimit:codeLimit value. |
|
3850 |
ObjectMemory dynamicCodeGCTrigger:codeTrigger value. |
|
341 | 3851 |
]. |
3852 |
box destroy |
|
3853 |
||
1045
9515beec99b3
added stackLimit & help to memorySettings dialog
Claus Gittinger <cg@exept.de>
parents:
1044
diff
changeset
|
3854 |
"Modified: 27.2.1997 / 16:50:12 / cg" |
341 | 3855 |
! |
3856 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3857 |
messageSettingsFor:requestor |
921 | 3858 |
"open a dialog on infoMessage related settings" |
3859 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3860 |
|box vmInfo vmErrors displayErrors classInfos resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3861 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3862 |
resources := requestor class classResources. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3863 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3864 |
vmInfo := ObjectMemory infoPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3865 |
vmErrors := ObjectMemory debugPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3866 |
classInfos := Object infoPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3867 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3868 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3869 |
box := DialogBox new. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3870 |
box label:(resources string:'Messages'). |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3871 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3872 |
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
|
3873 |
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
|
3874 |
box addHorizontalLine. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3875 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3876 |
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
|
3877 |
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
|
3878 |
|
1002
1fff704cea57
help text for message settings
Claus Gittinger <cg@exept.de>
parents:
997
diff
changeset
|
3879 |
box addHelpButtonFor:'Launcher/messageSettings.html'. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3880 |
box addAbortButton; addOkButton. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3881 |
box open. |
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3882 |
|
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3883 |
box accepted ifTrue:[ |
1910 | 3884 |
ObjectMemory infoPrinting:vmInfo value. |
3885 |
ObjectMemory debugPrinting:vmErrors value. |
|
3886 |
Object infoPrinting:classInfos value. |
|
3887 |
DeviceWorkstation errorPrinting:displayErrors value. |
|
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3888 |
]. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3889 |
box destroy |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3890 |
|
1002
1fff704cea57
help text for message settings
Claus Gittinger <cg@exept.de>
parents:
997
diff
changeset
|
3891 |
"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
|
3892 |
! |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
3893 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3894 |
miscSettingsFor:requestor |
921 | 3895 |
"open a dialog on misc other settings" |
3896 |
||
1660 | 3897 |
|box check shadows takeFocus returnFocus hasRDoitServer rDoitsEnabled |
3898 |
rDoitLogging rDoitErrorLogging hostNameInLabel showAccelerators |
|
1907
4bd804e2e90c
added checkBox for activateOnClick (win32 only)
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
3899 |
preemptive dynamicPrios hostNameInLabelHolder st80EditingMode resources y |
4bd804e2e90c
added checkBox for activateOnClick (win32 only)
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
3900 |
activateOnClick| |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3901 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
3902 |
resources := requestor class classResources. |
843 | 3903 |
|
3904 |
"/ |
|
249 | 3905 |
"/ extract relevant system settings ... |
3906 |
"/ |
|
219 | 3907 |
shadows := PopUpView shadows asValue. |
1297 | 3908 |
hostNameInLabel := StandardSystemView includeHostNameInLabel. |
3909 |
hostNameInLabelHolder := hostNameInLabel asValue. |
|
973
bb876b0213e5
added setting for takeFocusWhenMapped
Claus Gittinger <cg@exept.de>
parents:
970
diff
changeset
|
3910 |
returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue. |
bb876b0213e5
added setting for takeFocusWhenMapped
Claus Gittinger <cg@exept.de>
parents:
970
diff
changeset
|
3911 |
takeFocus := StandardSystemView takeFocusWhenMapped asValue. |
1908
a26d18691237
activateOnClick now also supported with XWindow displays
Claus Gittinger <cg@exept.de>
parents:
1907
diff
changeset
|
3912 |
activateOnClick := (Display class activateOnClick:nil) asValue. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
3913 |
|
420
2c169931d1ab
allow turning of of accelerator display
Claus Gittinger <cg@exept.de>
parents:
410
diff
changeset
|
3914 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
3915 |
preemptive := Processor isTimeSlicing asValue. |
1793
77a1d990485e
added support for dynamic priorities in setting menu.
Claus Gittinger <cg@exept.de>
parents:
1790
diff
changeset
|
3916 |
dynamicPrios := Processor supportDynamicPriorities asValue. |
219 | 3917 |
|
1397
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3918 |
st80EditingMode := EditTextView st80Mode asValue. |
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3919 |
|
1660 | 3920 |
rDoitsEnabled := rDoitLogging := rDoitErrorLogging := false. |
3921 |
(hasRDoitServer := RDoItServer notNil) ifTrue:[ |
|
1910 | 3922 |
RDoItServer isLoaded ifTrue:[ |
3923 |
rDoitsEnabled := RDoItServer serverRunning. |
|
3924 |
rDoitLogging := RDoItServer isLogging. |
|
3925 |
rDoitErrorLogging := RDoItServer isErrorLogging. |
|
3926 |
] |
|
1660 | 3927 |
]. |
3928 |
rDoitsEnabled := rDoitsEnabled asValue. |
|
3929 |
rDoitLogging := rDoitLogging asValue. |
|
3930 |
rDoitErrorLogging := rDoitErrorLogging asValue. |
|
3931 |
||
249 | 3932 |
"/ |
3933 |
"/ create a box on those values ... |
|
3934 |
"/ |
|
219 | 3935 |
box := DialogBox new. |
3936 |
box label:(resources string:'Other settings'). |
|
3937 |
||
3938 |
box addCheckBox:(resources string:'shadows under popup views') on:shadows. |
|
327 | 3939 |
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
|
3940 |
box addCheckBox:(resources string:'views catch focus when mapped') on:takeFocus. |
1297 | 3941 |
box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabelHolder. |
443 | 3942 |
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
|
3943 |
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
|
3944 |
|
938
7e9411dba623
added VerboseBacktraceDefault setting
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3945 |
box addHorizontalLine. |
7e9411dba623
added VerboseBacktraceDefault setting
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3946 |
|
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
3947 |
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
|
3948 |
box leftIndent:20. |
77a1d990485e
added support for dynamic priorities in setting menu.
Claus Gittinger <cg@exept.de>
parents:
1790
diff
changeset
|
3949 |
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
|
3950 |
check enableChannel:preemptive. |
77a1d990485e
added support for dynamic priorities in setting menu.
Claus Gittinger <cg@exept.de>
parents:
1790
diff
changeset
|
3951 |
box leftIndent:0. |
219 | 3952 |
|
1397
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3953 |
box addHorizontalLine. |
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3954 |
|
1660 | 3955 |
box addCheckBox:(resources string:'cursor has ST80 line end behavior') on:st80EditingMode. |
3956 |
||
3957 |
box addHorizontalLine. |
|
3958 |
||
3959 |
check := box addCheckBox:(resources string:'remote doits enabled') on:rDoitsEnabled. |
|
3960 |
hasRDoitServer ifFalse:[ |
|
1910 | 3961 |
check disable |
1660 | 3962 |
]. |
3963 |
box leftIndent:20. |
|
3964 |
y := box yPosition. |
|
3965 |
check := box addCheckBox:(resources string:'log errors') on:rDoitErrorLogging. |
|
3966 |
check width:0.4. |
|
3967 |
check enableChannel:rDoitsEnabled. |
|
3968 |
hasRDoitServer ifFalse:[ |
|
1910 | 3969 |
check disable |
1660 | 3970 |
]. |
3971 |
box yPosition:y. |
|
3972 |
check := box addCheckBox:(resources string:'log requests') on:rDoitLogging. |
|
3973 |
check left:0.4; width:0.5. |
|
3974 |
check enableChannel:rDoitsEnabled. |
|
3975 |
hasRDoitServer ifFalse:[ |
|
1910 | 3976 |
check disable |
1660 | 3977 |
]. |
3978 |
box leftIndent:0. |
|
1397
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3979 |
|
364
75f5a7e99eb8
added nice help buttons to compilerSettings & miscSettings (more to comre)
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
3980 |
box |
1910 | 3981 |
addHelpButtonFor:'Launcher/miscSettings.html'; |
3982 |
addAbortButton; |
|
3983 |
addOkButton. |
|
249 | 3984 |
|
3985 |
"/ |
|
3986 |
"/ show the box ... |
|
3987 |
"/ |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
3988 |
box open. |
219 | 3989 |
|
249 | 3990 |
"/ |
3991 |
"/ update system settings |
|
3992 |
"/ |
|
219 | 3993 |
box accepted ifTrue:[ |
1910 | 3994 |
PopUpView shadows:shadows value. |
3995 |
hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ |
|
3996 |
StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value. |
|
3997 |
||
3998 |
Screen allScreens do:[:aDisplay | |
|
3999 |
aDisplay allViewsDo:[:aView | |
|
4000 |
|l| |
|
4001 |
||
4002 |
aView isTopView ifTrue:[ |
|
4003 |
l := aView label. |
|
4004 |
l notNil ifTrue:[ |
|
4005 |
aView label:(l , ' '); label:l. "/ force a change |
|
4006 |
] |
|
4007 |
] |
|
4008 |
] |
|
4009 |
] |
|
4010 |
]. |
|
4011 |
StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value. |
|
4012 |
StandardSystemView takeFocusWhenMapped:takeFocus value. |
|
4013 |
Display class activateOnClick:(activateOnClick value). |
|
4014 |
||
4015 |
MenuView showAcceleratorKeys:showAccelerators value. |
|
4016 |
Processor isTimeSlicing ~~ preemptive value ifTrue:[ |
|
4017 |
preemptive value ifTrue:[ |
|
4018 |
Processor startTimeSlicing |
|
4019 |
] ifFalse:[ |
|
4020 |
Processor stopTimeSlicing |
|
4021 |
] |
|
4022 |
]. |
|
4023 |
Processor supportDynamicPriorities ~~ dynamicPrios value ifTrue:[ |
|
4024 |
Processor supportDynamicPriorities:dynamicPrios value |
|
4025 |
]. |
|
4026 |
||
4027 |
EditTextView st80Mode:(st80EditingMode value). |
|
4028 |
||
4029 |
hasRDoitServer ifTrue:[ |
|
4030 |
(RDoItServer isLoaded |
|
4031 |
or:[rDoitLogging value ~~ false |
|
4032 |
or:[rDoitErrorLogging value ~~ false |
|
4033 |
or:[rDoitsEnabled value ~~ false]]]) ifTrue:[ |
|
4034 |
RDoItServer errorLogging:(rDoitErrorLogging value). |
|
4035 |
rDoitsEnabled := rDoitsEnabled value. |
|
4036 |
rDoitsEnabled ~~ RDoItServer serverRunning ifTrue:[ |
|
4037 |
rDoitsEnabled ifFalse:[ |
|
4038 |
RDoItServer killAll |
|
4039 |
] ifTrue:[ |
|
4040 |
RDoItServer start |
|
4041 |
] |
|
4042 |
]. |
|
4043 |
]. |
|
4044 |
] |
|
238
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
4045 |
]. |
523cc1f36b1d
release boxes - no Workspace button (its ugly)
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
4046 |
box destroy |
219 | 4047 |
|
1397
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
4048 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
1907
4bd804e2e90c
added checkBox for activateOnClick (win32 only)
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
4049 |
"Modified: / 30.9.1998 / 23:40:02 / cg" |
219 | 4050 |
! |
4051 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4052 |
printerSettingsFor:requestor |
921 | 4053 |
"open a dialog on printer related settings" |
4054 |
||
347 | 4055 |
|box |
595 | 4056 |
possiblePrinters possibleTypes printerType printCommand |
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4057 |
pageFormat landscape updater |
601 | 4058 |
formatLabel formatComponent landscapeLabel landscapeComponent |
709 | 4059 |
topMargin leftMargin rightMargin bottomMargin unitList unit |
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4060 |
topMarginComponent leftMarginComponent |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4061 |
rightMarginComponent |
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
4062 |
bottomMarginComponent supportsColor supportsColorComponent |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4063 |
y y1 commandListPop component commandList row resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4064 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4065 |
resources := requestor class classResources. |
347 | 4066 |
|
4067 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
4068 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
4069 |
||
4070 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
4071 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
4072 |
printCommand := Printer printCommand asValue. |
|
4073 |
||
604 | 4074 |
pageFormat := SelectionInList new list:(Printer defaultPageFormats). |
4075 |
pageFormat selection:(Printer pageFormat). |
|
4076 |
landscape := Printer landscape asValue. |
|
4077 |
||
707 | 4078 |
topMargin := Printer topMargin asValue. |
4079 |
leftMargin := Printer leftMargin asValue. |
|
709 | 4080 |
rightMargin := Printer rightMargin asValue. |
707 | 4081 |
bottomMargin := Printer bottomMargin asValue. |
702 | 4082 |
supportsColor := Printer supportsColor asValue. |
601 | 4083 |
|
347 | 4084 |
box := DialogBox new. |
4085 |
box label:(resources string:'Printer settings'). |
|
4086 |
||
726 | 4087 |
"/ either use a popUpList ... |
4088 |
"/ box addPopUpList:(resources string:'printer type:') on:printerType. |
|
4089 |
||
4090 |
"/ or a comboList; |
|
4091 |
"/ which one looks better ? |
|
4092 |
y := box yPosition. |
|
4093 |
component := box addTextLabel:(resources string:'printer type:'). |
|
1044 | 4094 |
component width:0.25; adjust:#right; borderWidth:0. |
726 | 4095 |
box yPosition:y. |
4096 |
component := box addComboListOn:printerType tabable:true. |
|
1047 | 4097 |
component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true. |
1044 | 4098 |
component width:0.75; left:0.25. |
726 | 4099 |
"/ end of question |
347 | 4100 |
|
4101 |
y := box yPosition. |
|
4102 |
component := box addTextLabel:(resources string:'print command:'). |
|
1044 | 4103 |
component width:0.25; adjust:#right; borderWidth:0. |
347 | 4104 |
box yPosition:y. |
598 | 4105 |
commandListPop := box addComboBoxOn:printCommand tabable:true. |
4106 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
1044 | 4107 |
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
|
4108 |
"/ some common print commands ... |
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4109 |
|
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4110 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4111 |
commandList isNil ifTrue:[ |
1910 | 4112 |
commandList := PrinterStream defaultCommands. |
4113 |
commandList isNil ifTrue:[ |
|
4114 |
commandList := #('lpr' |
|
4115 |
'lp' |
|
4116 |
). |
|
4117 |
] |
|
499
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4118 |
]. |
245bba7b9cd3
ask printer for defaultCommands
Claus Gittinger <cg@exept.de>
parents:
497
diff
changeset
|
4119 |
|
598 | 4120 |
commandListPop list:commandList. |
1492 | 4121 |
|
4122 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
595 | 4123 |
|
4124 |
row := OrderedCollection new. |
|
601 | 4125 |
row add:(formatLabel := Label label:(resources string:'page format:')). |
676 | 4126 |
formatLabel borderWidth:0. |
601 | 4127 |
row add:(formatComponent := PopUpList on:pageFormat). |
4128 |
formatComponent label:'unknown'. |
|
4129 |
||
4130 |
row add:(landscapeLabel := Label label:(resources string:'landscape:')). |
|
676 | 4131 |
landscapeLabel borderWidth:0. |
601 | 4132 |
row add:(landscapeComponent := CheckToggle on:landscape). |
595 | 4133 |
|
4134 |
y := box yPosition. |
|
4135 |
box |
|
1910 | 4136 |
addRow:(1 to:2) |
4137 |
fromX:0 |
|
4138 |
toX:0.5 |
|
4139 |
collect:[:idx | row at:idx] |
|
4140 |
tabable:false |
|
4141 |
horizontalLayout:#leftSpace |
|
4142 |
verticalLayout:#center. |
|
595 | 4143 |
y1 := box yPosition. |
4144 |
box yPosition:y. |
|
4145 |
||
4146 |
box |
|
1910 | 4147 |
addRow:(3 to:4) |
4148 |
fromX:0.5 |
|
4149 |
toX:1.0 |
|
4150 |
collect:[:idx | row at:idx] |
|
4151 |
tabable:false |
|
4152 |
horizontalLayout:#leftSpace |
|
4153 |
verticalLayout:#center. |
|
595 | 4154 |
|
4155 |
box yPosition:(box yPosition max:y1). |
|
4156 |
||
601 | 4157 |
box makeTabable:(formatComponent). |
4158 |
box makeTabable:(landscapeComponent). |
|
4159 |
||
1492 | 4160 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
601 | 4161 |
|
4162 |
y := box yPosition. |
|
4163 |
||
707 | 4164 |
topMarginComponent := box |
1910 | 4165 |
addLabelledInputField:(resources string:'top margin:') |
4166 |
adjust:#right |
|
4167 |
on:nil "/ topMargin |
|
4168 |
tabable:true |
|
4169 |
from:0.0 to:0.5 |
|
4170 |
separateAtX:0.6. |
|
707 | 4171 |
topMarginComponent converter:(PrintConverter new initForNumber). |
4172 |
topMarginComponent model:topMargin. |
|
601 | 4173 |
y1 := box yPosition. |
4174 |
||
4175 |
box yPosition:y. |
|
4176 |
unitList := SelectionInList with:#('inch' 'mm'). |
|
4177 |
unitList selectionIndex:1. |
|
4178 |
||
605 | 4179 |
component := box addComponent:(PopUpList on:unitList). |
4180 |
component |
|
1910 | 4181 |
left:0.6; |
4182 |
width:0.3. |
|
601 | 4183 |
|
4184 |
box yPosition:y1. |
|
4185 |
||
707 | 4186 |
leftMarginComponent := box |
1910 | 4187 |
addLabelledInputField:(resources string:'left margin:') |
4188 |
adjust:#right |
|
4189 |
on:nil "/ leftMargin |
|
4190 |
tabable:true |
|
4191 |
from:0.0 to:0.5 |
|
4192 |
separateAtX:0.6. |
|
707 | 4193 |
leftMarginComponent converter:(PrintConverter new initForNumber). |
4194 |
leftMarginComponent model:leftMargin. |
|
4195 |
||
709 | 4196 |
rightMarginComponent := box |
1910 | 4197 |
addLabelledInputField:(resources string:'right margin:') |
4198 |
adjust:#right |
|
4199 |
on:nil "/ rightMargin |
|
4200 |
tabable:true |
|
4201 |
from:0.0 to:0.5 |
|
4202 |
separateAtX:0.6. |
|
709 | 4203 |
rightMarginComponent converter:(PrintConverter new initForNumber). |
4204 |
rightMarginComponent model:rightMargin. |
|
4205 |
||
707 | 4206 |
bottomMarginComponent := box |
1910 | 4207 |
addLabelledInputField:(resources string:'bottom margin:') |
4208 |
adjust:#right |
|
4209 |
on:nil "/ bottomMargin |
|
4210 |
tabable:true |
|
4211 |
from:0.0 to:0.5 |
|
4212 |
separateAtX:0.6. |
|
707 | 4213 |
bottomMarginComponent converter:(PrintConverter new initForNumber). |
4214 |
bottomMarginComponent model:bottomMargin. |
|
601 | 4215 |
|
702 | 4216 |
box addHorizontalLine. |
4217 |
supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor. |
|
4218 |
box addVerticalSpace. |
|
4219 |
||
601 | 4220 |
updater := [ |p fg hasPageSize hasMargins| |
598 | 4221 |
|
1910 | 4222 |
printerType selectionIndex ~~ 0 ifTrue:[ |
4223 |
p := possiblePrinters at:(printerType selectionIndex). |
|
4224 |
hasPageSize := p supportsPageSizes. |
|
4225 |
hasMargins := p supportsMargins. |
|
4226 |
] ifFalse:[ |
|
4227 |
hasPageSize := false. |
|
4228 |
hasMargins := false. |
|
4229 |
]. |
|
4230 |
hasPageSize ifTrue:[ |
|
4231 |
fg := Button new foregroundColor. |
|
4232 |
formatComponent enable. |
|
4233 |
landscapeComponent enable. |
|
4234 |
||
4235 |
formatComponent label:p pageFormat. |
|
4236 |
pageFormat value:(p pageFormat). |
|
4237 |
landscape value:(p landscape). |
|
4238 |
] ifFalse:[ |
|
4239 |
fg := Button new disabledForegroundColor. |
|
4240 |
formatComponent disable. |
|
4241 |
landscapeComponent disable. |
|
4242 |
||
4243 |
formatComponent label:'unknown'. |
|
4244 |
landscape value:nil. |
|
4245 |
]. |
|
4246 |
hasMargins ifTrue:[ |
|
4247 |
unitList selectionIndex == 2 ifTrue:[ |
|
4248 |
unit := #mm |
|
4249 |
] ifFalse:[ |
|
4250 |
unit := #inch |
|
4251 |
]. |
|
4252 |
||
4253 |
topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit). |
|
4254 |
leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit). |
|
4255 |
rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit). |
|
4256 |
bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit). |
|
4257 |
||
4258 |
topMarginComponent enable. |
|
4259 |
leftMarginComponent enable. |
|
4260 |
rightMarginComponent enable. |
|
4261 |
bottomMarginComponent enable. |
|
4262 |
] ifFalse:[ |
|
4263 |
topMarginComponent disable. |
|
4264 |
leftMarginComponent disable. |
|
4265 |
rightMarginComponent disable. |
|
4266 |
bottomMarginComponent disable. |
|
4267 |
]. |
|
4268 |
formatLabel foregroundColor:fg. |
|
4269 |
landscapeLabel foregroundColor:fg. |
|
4270 |
||
4271 |
p notNil ifTrue:[ |
|
4272 |
commandList := p defaultCommands. |
|
4273 |
commandList notNil ifTrue:[ |
|
4274 |
commandListPop list:commandList |
|
4275 |
]. |
|
4276 |
||
4277 |
printCommand value:(p printCommand). |
|
4278 |
]. |
|
4279 |
p supportsPostscript ifFalse:[ |
|
4280 |
supportsColorComponent disable. |
|
4281 |
supportsColor value:false |
|
4282 |
] ifTrue:[ |
|
4283 |
supportsColorComponent enable. |
|
4284 |
supportsColor value:(Printer supportsColor). |
|
4285 |
] |
|
4286 |
]. |
|
601 | 4287 |
unitList onChangeSend:#value to:updater. |
598 | 4288 |
printerType onChangeSend:#value to:updater. |
4289 |
updater value. |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
4290 |
|
608 | 4291 |
box addVerticalSpace; |
1910 | 4292 |
addHelpButtonFor:'Launcher/printerSettings.html'; |
4293 |
addAbortButton; addOkButton. |
|
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
4294 |
box open. |
347 | 4295 |
|
4296 |
box accepted ifTrue:[ |
|
1910 | 4297 |
Printer := possiblePrinters at:(printerType selectionIndex). |
4298 |
Printer printCommand:printCommand value. |
|
4299 |
||
4300 |
Printer supportsPageSizes ifTrue:[ |
|
4301 |
Printer pageFormat:(pageFormat selection). |
|
4302 |
Printer landscape:(landscape value). |
|
4303 |
]. |
|
4304 |
Printer supportsMargins ifTrue:[ |
|
4305 |
unitList selectionIndex == 2 ifTrue:[ |
|
4306 |
unit := #mm |
|
4307 |
] ifFalse:[ |
|
4308 |
unit := #inch |
|
4309 |
]. |
|
4310 |
Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch). |
|
4311 |
Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch). |
|
4312 |
Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch). |
|
4313 |
Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch). |
|
4314 |
]. |
|
4315 |
Printer supportsPostscript ifTrue:[ |
|
4316 |
Printer supportsColor:supportsColor value. |
|
4317 |
]. |
|
347 | 4318 |
]. |
4319 |
box destroy |
|
362
d5d99cdda74c
use new ComboBox for printer setup
Claus Gittinger <cg@exept.de>
parents:
359
diff
changeset
|
4320 |
|
715
476b5b4d0dd0
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
711
diff
changeset
|
4321 |
"Modified: 9.9.1996 / 22:43:51 / stefan" |
1047 | 4322 |
"Modified: 28.2.1997 / 14:00:13 / cg" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4323 |
|
347 | 4324 |
! |
4325 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4326 |
restoreSettingsFor:requestor |
921 | 4327 |
"restore settings from a settings-file." |
4328 |
||
853 | 4329 |
"a temporary kludge - we need a central systemSettings object for this, |
1733 | 4330 |
which can be saved/restored with a single store/read. |
4331 |
Will move entries over to UserPreferences over time; |
|
4332 |
new items should always go there." |
|
853 | 4333 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4334 |
|fileName resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4335 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4336 |
resources := requestor class classResources. |
853 | 4337 |
|
4338 |
fileName := Dialog |
|
1910 | 4339 |
requestFileName:(resources string:'restore settings from:') |
4340 |
default:'settings.stx' |
|
4341 |
ok:(resources string:'restore') |
|
4342 |
abort:(resources string:'cancel') |
|
4343 |
pattern:'*.stx' |
|
4344 |
fromDirectory:nil. |
|
853 | 4345 |
|
4346 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
1910 | 4347 |
"/ canceled |
4348 |
^ self |
|
853 | 4349 |
]. |
4350 |
||
4351 |
self withWaitCursorDo:[ |
|
1910 | 4352 |
Smalltalk fileIn:fileName. |
4353 |
||
4354 |
self reopenLauncher. |
|
853 | 4355 |
]. |
4356 |
||
1733 | 4357 |
"Modified: / 21.7.1998 / 11:37:54 / cg" |
853 | 4358 |
! |
4359 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4360 |
saveSettingsFor:requestor |
921 | 4361 |
"save settings to a settings-file." |
4362 |
||
853 | 4363 |
"a temporary kludge - we need a central systemSettings object for this, |
1733 | 4364 |
which can be saved/restored with a single store/read. |
4365 |
Will move entries over to UserPreferences over time; |
|
4366 |
new items should always go there." |
|
853 | 4367 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4368 |
|s screen fileName resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4369 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4370 |
resources := requestor class classResources. |
853 | 4371 |
|
4372 |
fileName := Dialog |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4373 |
requestFileName:(resources string:'save settings in:') |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4374 |
default:'settings.stx' |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4375 |
ok:(resources string:'save') |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4376 |
abort:(resources string:'cancel') |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4377 |
pattern:'*.stx' |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4378 |
fromDirectory:nil. |
853 | 4379 |
|
4380 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4381 |
"/ canceled |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4382 |
^ self |
853 | 4383 |
]. |
4384 |
||
4385 |
s := fileName asFilename writeStream. |
|
4386 |
s isNil ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4387 |
self warn:'cannot write the ''' , fileName , ''' file'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4388 |
^ self |
853 | 4389 |
]. |
4390 |
||
4391 |
s nextPutLine:'"/ ST/X saved settings'; |
|
4392 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
1184 | 4393 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
853 | 4394 |
nextPutLine:'"/'; |
4395 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
4396 |
nextPutLine:'"/ ''save settings'' function of the Launcher'; |
|
4397 |
nextPutLine:'"/'. |
|
4398 |
s cr. |
|
4399 |
||
4400 |
s nextPutLine:'"/'. |
|
4401 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
4402 |
s nextPutLine:'"/'. |
|
4403 |
s cr. |
|
4404 |
||
4405 |
s nextPutLine:'"/'. |
|
4406 |
s nextPutLine:'"/ Display settings:'. |
|
4407 |
s nextPutLine:'"/'. |
|
4408 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
4409 |
s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['. |
|
4410 |
screen := Screen current. |
|
4411 |
screen fixColors notNil ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4412 |
s nextPutLine:' Image flushDeviceImages.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4413 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4414 |
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
|
4415 |
s nextPutLine:' ].'. |
853 | 4416 |
] ifFalse:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4417 |
s nextPutLine:' Display releaseFixColors.'. |
853 | 4418 |
]. |
4419 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
4420 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
4421 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
4422 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
4423 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
1514 | 4424 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
853 | 4425 |
s nextPutLine:'].'. |
4426 |
s cr. |
|
4427 |
||
4428 |
s nextPutLine:'"/'. |
|
4429 |
s nextPutLine:'"/ Compiler settings:'. |
|
4430 |
s nextPutLine:'"/'. |
|
4431 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
4432 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
4433 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
4434 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
1184 | 4435 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
853 | 4436 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
4437 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
|
4438 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
4439 |
||
4440 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
4441 |
||
4442 |
nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
4443 |
nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
4444 |
nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
4445 |
nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
4446 |
nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4447 |
nextPutLine:'ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.'; |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4448 |
nextPutLine:'ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.'; |
853 | 4449 |
|
4450 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
4451 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
4452 |
||
1354 | 4453 |
HistoryManager notNil ifTrue:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4454 |
HistoryManager isActive ifTrue:[ |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4455 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4456 |
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
|
4457 |
] ifFalse:[ |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4458 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4459 |
]. |
853 | 4460 |
]. |
4461 |
||
4462 |
ObjectFileLoader notNil ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4463 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4464 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
853 | 4465 |
]. |
4466 |
||
4467 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
4468 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
4469 |
||
4470 |
s cr. |
|
4471 |
s nextPutLine:'"/'. |
|
4472 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
4473 |
s nextPutLine:'"/'. |
|
4474 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
4475 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
4476 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
4477 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
4478 |
||
4479 |
||
4480 |
s cr. |
|
4481 |
s nextPutLine:'"/'. |
|
4482 |
s nextPutLine:'"/ Misc settings:'. |
|
4483 |
s nextPutLine:'"/'. |
|
4484 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
4485 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
4486 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
4487 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
4488 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
4489 |
||
4490 |
"/ claus - I dont think its a good idea to save those ... |
|
4491 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
4492 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
4493 |
||
974 | 4494 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
4495 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4496 |
nextPutLine:'Display class activateOnClick: ' , ((Display class activateOnClick:nil) storeString) , '.'; |
853 | 4497 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
1397
a5d84d1398d3
added checkBox for st80EditMode in settings-misc
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
4498 |
nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'; |
1520 | 4499 |
nextPutLine:'UserPreferences current syntaxColoring: ' , (UserPreferences current syntaxColoring storeString) , '.'; |
1733 | 4500 |
nextPutLine:'UserPreferences current useNewInspector: ' , (UserPreferences current useNewInspector storeString) , '.'; |
853 | 4501 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
915 | 4502 |
(Exception emergencyHandler == Launcher notifyingEmergencyHandler) ifTrue:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4503 |
s nextPutLine:'Exception emergencyHandler:(Launcher notifyingEmergencyHandler).'. |
915 | 4504 |
]. |
1801
3c3d9231684c
save the timeSlicer settings.
Claus Gittinger <cg@exept.de>
parents:
1799
diff
changeset
|
4505 |
Processor isTimeSlicing ifTrue:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4506 |
s nextPutLine:'Processor startTimeSlicing.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4507 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
1801
3c3d9231684c
save the timeSlicer settings.
Claus Gittinger <cg@exept.de>
parents:
1799
diff
changeset
|
4508 |
] ifFalse:[ |
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4509 |
s nextPutLine:'Processor stopTimeSlicing.'. |
1801
3c3d9231684c
save the timeSlicer settings.
Claus Gittinger <cg@exept.de>
parents:
1799
diff
changeset
|
4510 |
]. |
853 | 4511 |
|
4512 |
s cr. |
|
4513 |
s nextPutLine:'"/'. |
|
4514 |
s nextPutLine:'"/ Printer settings:'. |
|
4515 |
s nextPutLine:'"/'. |
|
4516 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
4517 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
4518 |
||
4519 |
Printer supportsPageSizes ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4520 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4521 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
853 | 4522 |
]. |
4523 |
Printer supportsMargins ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4524 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4525 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4526 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4527 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
853 | 4528 |
]. |
4529 |
Printer supportsPostscript ifTrue:[ |
|
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4530 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
853 | 4531 |
]. |
4532 |
||
4533 |
s cr. |
|
4534 |
s nextPutLine:'"/'. |
|
4535 |
s nextPutLine:'"/ Font settings:'. |
|
4536 |
s nextPutLine:'"/'. |
|
4537 |
s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
4538 |
s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
4539 |
s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
4540 |
s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
4541 |
s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
4542 |
s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
4543 |
s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
4544 |
s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
4545 |
s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
4546 |
s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
4547 |
||
4548 |
s cr. |
|
4549 |
s nextPutLine:'"/'. |
|
4550 |
s nextPutLine:'"/ Language setting:'. |
|
4551 |
s nextPutLine:'"/'. |
|
4552 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
4553 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
4554 |
s close. |
|
4555 |
||
4556 |
" |
|
4557 |
Transcript topView application saveSettings |
|
4558 |
" |
|
4559 |
||
1921
4eeb2aa2510a
also save linkCommand and linkArgs in settings.
Claus Gittinger <cg@exept.de>
parents:
1916
diff
changeset
|
4560 |
"Modified: / 10.10.1998 / 21:31:30 / cg" |
853 | 4561 |
! |
4562 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4563 |
sourceAndDebuggerSettingsFor:requestor |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4564 |
"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
|
4565 |
|
1785 | 4566 |
|box check butt setupButt logDoits updChanges changeFileName |
4567 |
useManager hasManager cvsIsSetup |
|
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4568 |
repository repositoryHolder localSourceFirst |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4569 |
sourceCacheDir cacheEntry |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4570 |
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
|
4571 |
showErrorNotifier showVerboseStack |
1733 | 4572 |
syntaxColoring resources useNewInspector pos currentUserPrefs| |
4573 |
||
4574 |
currentUserPrefs := UserPreferences current. |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4575 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
4576 |
resources := requestor class classResources. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4577 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4578 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4579 |
"/ extract relevant system settings ... |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4580 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4581 |
logDoits := Smalltalk logDoits asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4582 |
updChanges := Class updatingChanges asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4583 |
changeFileName := ObjectMemory nameForChanges asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4584 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4585 |
hasManager := AbstractSourceCodeManager notNil |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4586 |
and:[AbstractSourceCodeManager isLoaded]. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4587 |
|
1785 | 4588 |
repositoryHolder := '' asValue. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4589 |
hasManager ifTrue:[ |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4590 |
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
|
4591 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4592 |
manager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4593 |
repository := manager repositoryName. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4594 |
repository notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4595 |
repositoryHolder := repository asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4596 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4597 |
repositoryHolder := '' asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4598 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4599 |
cvsIsSetup := true. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4600 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4601 |
cvsIsSetup := false asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4602 |
] |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4603 |
] ifFalse:[ |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4604 |
useManager := false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4605 |
localSourceFirst := false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4606 |
cvsIsSetup := false. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4607 |
]. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4608 |
showErrorNotifier := (Exception emergencyHandler == Launcher notifyingEmergencyHandler) asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4609 |
showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue. |
1733 | 4610 |
syntaxColoring := currentUserPrefs syntaxColoring asValue. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4611 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4612 |
sourceCacheDir := nil asValue. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4613 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4614 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4615 |
"/ create a box on those values ... |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4616 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4617 |
box := DialogBox new. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4618 |
box label:(resources string:'Source & Debugger settings'). |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4619 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4620 |
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
|
4621 |
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
|
4622 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4623 |
component := box |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4624 |
addLabelledInputField:(resources string:'change file name:') |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4625 |
adjust:#right |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4626 |
on:changeFileName |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4627 |
tabable:true |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4628 |
separateAtX:0.4. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4629 |
component immediateAccept:true; acceptOnLeave:false. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4630 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4631 |
"/ y := box yPosition. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4632 |
"/ 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
|
4633 |
"/ 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
|
4634 |
"/ box yPosition:y. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4635 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4636 |
"/ 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
|
4637 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4638 |
box addHorizontalLine. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4639 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4640 |
hasManager ifTrue:[ |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4641 |
pos := box yPosition. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4642 |
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
|
4643 |
check enableChannel:cvsIsSetup. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4644 |
box makeTabable:check. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4645 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4646 |
cvsIsSetup value ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4647 |
AbstractSourceCodeManager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4648 |
check width:0.6. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4649 |
box yPosition:pos. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4650 |
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
|
4651 |
action:[|manager| |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4652 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4653 |
self cvsConfigurationDialogFor:requestor. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4654 |
manager := (Smalltalk at:#SourceCodeManager). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4655 |
cvsIsSetup value:manager notNil. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4656 |
manager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4657 |
repositoryHolder value: manager repositoryName. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4658 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4659 |
setupButt beInvisible. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4660 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4661 |
]). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4662 |
box makeTabable:setupButt. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4663 |
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
|
4664 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4665 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4666 |
oldIndent := box leftIndent. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4667 |
box leftIndent:30. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4668 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4669 |
component := box |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4670 |
addLabelledInputField:(resources string:'repository:') |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4671 |
adjust:#right |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4672 |
on:repositoryHolder |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4673 |
tabable:true |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4674 |
separateAtX:0.4. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4675 |
component immediateAccept:true; acceptOnLeave:false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4676 |
component enableChannel:useManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4677 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4678 |
cacheEntry := box |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4679 |
addLabelledInputField:(resources string:'source cache dir:') |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4680 |
adjust:#right |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4681 |
on:sourceCacheDir |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4682 |
tabable:true |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4683 |
separateAtX:0.4. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4684 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4685 |
cacheEntry enableChannel:useManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4686 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4687 |
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
|
4688 |
localCheck enableChannel:useManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4689 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4690 |
box leftIndent:oldIndent. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4691 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4692 |
(AbstractSourceCodeManager isNil |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4693 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4694 |
useManager value:false. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4695 |
"/ cacheEntry disable. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4696 |
"/ localCheck enable. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4697 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4698 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4699 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4700 |
box addHorizontalLine. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4701 |
]. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4702 |
|
1602 | 4703 |
pos := box yPosition. |
4704 |
check := box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring. |
|
4705 |
check width:0.6. |
|
4706 |
box yPosition:pos. |
|
4707 |
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
|
4708 |
box makeTabable:butt. |
1602 | 4709 |
butt enableChannel:syntaxColoring. |
4710 |
butt left:0.6; width:0.4. |
|
4711 |
||
4712 |
box addHorizontalLine. |
|
4713 |
||
4714 |
||
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4715 |
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
|
4716 |
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
|
4717 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4718 |
box |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4719 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4720 |
addAbortButton; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4721 |
addOkButton. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4722 |
|
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 |
"/ show the box ... |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4725 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4726 |
box open. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4727 |
|
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4728 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4729 |
"/ update system settings |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4730 |
"/ |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4731 |
box accepted ifTrue:[ |
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4732 |
Smalltalk logDoits:logDoits value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4733 |
Class updateChanges:updChanges value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4734 |
ObjectMemory nameForChanges:changeFileName value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4735 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4736 |
(hasManager and:[useManager value]) ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4737 |
manager isNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4738 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4739 |
manager := Smalltalk at:#SourceCodeManager. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4740 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4741 |
Class tryLocalSourceFirst:(localSourceFirst value). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4742 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4743 |
manager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4744 |
localSourceFirst value ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4745 |
nm := sourceCacheDir value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4746 |
nm size > 0 ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4747 |
(fn := nm asFilename) exists ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4748 |
(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
|
4749 |
fn makeDirectory; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4750 |
makeReadableForAll; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4751 |
makeWritableForAll; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4752 |
makeExecutableForAll. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4753 |
] |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4754 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4755 |
(fn exists |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4756 |
and:[fn isDirectory |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4757 |
and:[fn isReadable |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4758 |
and:[fn isWritable]]]) ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4759 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4760 |
] |
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 |
] |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4763 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4764 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4765 |
repositoryHolder notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4766 |
repositoryHolder value size > 0 ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4767 |
manager notNil ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4768 |
manager initializeForRepository:repositoryHolder value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4769 |
] |
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 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4772 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4773 |
Smalltalk at:#SourceCodeManager put:nil |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4774 |
]. |
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 |
showErrorNotifier value ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4777 |
Exception emergencyHandler:nil |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4778 |
] ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4779 |
Exception emergencyHandler:(Launcher notifyingEmergencyHandler) |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4780 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4781 |
DebugView defaultVerboseBacktrace:(showVerboseStack value). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4782 |
currentUserPrefs syntaxColoring:syntaxColoring value. |
968
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4783 |
]. |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4784 |
box destroy |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4785 |
|
1517 | 4786 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
4787 |
"Created: / 17.1.1997 / 17:39:33 / cg" |
|
1548 | 4788 |
"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
|
4789 |
"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
|
4790 |
! |
1c8c87307720
splitted misc-settings into source-related and
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
4791 |
|
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4792 |
stcCompilerSettingsFor:requestor |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4793 |
"open an extra dialog on stc-compiler related settings" |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4794 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4795 |
|box |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4796 |
stcCompilationOptions stcIncludes stcDefines stcOptions |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4797 |
stcLibraries stcLibraryPath cc stc ccOptions |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4798 |
linkCommand linkArgs |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4799 |
component t y y2 yMax |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4800 |
canLoadBinaries strings idx thisIsADemoVersion |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4801 |
resources| |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4802 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4803 |
resources := requestor class classResources. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4804 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4805 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4806 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4807 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4808 |
stcDefines := Compiler stcCompilationDefines asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4809 |
stcOptions := Compiler stcCompilationOptions asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4810 |
ccOptions := Compiler ccCompilationOptions asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4811 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4812 |
cc := Compiler ccPath asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4813 |
stc := Compiler stcPath asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4814 |
linkCommand := ObjectFileLoader linkCommand asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4815 |
linkArgs := ObjectFileLoader linkArgs asValue. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4816 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4817 |
ObjectFileLoader notNil ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4818 |
(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4819 |
stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4820 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4821 |
(t := ObjectFileLoader libPath) notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4822 |
stcLibraryPath := t asValue. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4823 |
] |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4824 |
]. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4825 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4826 |
box := DialogBox new. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4827 |
box label:(resources string:'STC Compilation settings'). |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4828 |
|
1910 | 4829 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4830 |
ObjectFileLoader notNil ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4831 |
thisIsADemoVersion ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4832 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4833 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4834 |
addLabelledInputField:(resources string:'stc command:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4835 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4836 |
on:stc |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4837 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4838 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4839 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4840 |
component preferredExtent:(100 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4841 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4842 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4843 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4844 |
addLabelledInputField:(resources string:'stc options:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4845 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4846 |
on:stcOptions |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4847 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4848 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4849 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4850 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4851 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4852 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4853 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4854 |
addLabelledInputField:(resources string:'cc command:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4855 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4856 |
on:cc |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4857 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4858 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4859 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4860 |
component preferredExtent:(150 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4861 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4862 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4863 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4864 |
addLabelledInputField:(resources string:'cc options:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4865 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4866 |
on:ccOptions |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4867 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4868 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4869 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4870 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4871 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4872 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4873 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4874 |
addLabelledInputField:(resources string:'include directories:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4875 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4876 |
on:stcIncludes |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4877 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4878 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4879 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4880 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4881 |
canLoadBinaries ifFalse:[component disable]. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4882 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4883 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4884 |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4885 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4886 |
addLabelledInputField:(resources string:'defines:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4887 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4888 |
on:stcDefines |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4889 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4890 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4891 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4892 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4893 |
canLoadBinaries ifFalse:[component disable]. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4894 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4895 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4896 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4897 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4898 |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4899 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4900 |
addLabelledInputField:(resources string:'link command:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4901 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4902 |
on:linkCommand |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4903 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4904 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4905 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4906 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4907 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4908 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4909 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4910 |
addLabelledInputField:(resources string:'link args:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4911 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4912 |
on:linkArgs |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4913 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4914 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4915 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4916 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4917 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4918 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4919 |
stcLibraries notNil ifTrue:[ |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4920 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4921 |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4922 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4923 |
addLabelledInputField:(resources string:'C-libraries:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4924 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4925 |
on:stcLibraries |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4926 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4927 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4928 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4929 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4930 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4931 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4932 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4933 |
stcLibraryPath notNil ifTrue:[ |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4934 |
"/ box addVerticalSpace. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4935 |
|
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4936 |
component := box |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4937 |
addLabelledInputField:(resources string:'stc libPath:') |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4938 |
adjust:#right |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4939 |
on:stcLibraryPath |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4940 |
tabable:true |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4941 |
separateAtX:0.3. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4942 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4943 |
component preferredExtent:(250 @ component preferredExtent y). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4944 |
canLoadBinaries ifFalse:[component disable]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4945 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4946 |
]. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4947 |
]. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4948 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4949 |
box |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4950 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4951 |
addAbortButton; |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4952 |
addOkButton. |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4953 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4954 |
box open. |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4955 |
|
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4956 |
box accepted ifTrue:[ |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4957 |
thisIsADemoVersion ifFalse:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4958 |
Compiler stcCompilationIncludes:stcIncludes value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4959 |
Compiler stcCompilationDefines:stcDefines value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4960 |
Compiler stcCompilationOptions:stcOptions value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4961 |
Compiler ccCompilationOptions:ccOptions value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4962 |
Compiler ccPath:cc value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4963 |
stc value ~= Compiler stcPath ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4964 |
Compiler stcPath:stc value |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4965 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4966 |
ObjectFileLoader linkCommand:linkCommand value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4967 |
ObjectFileLoader linkArgs:linkArgs value. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4968 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4969 |
|
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4970 |
ObjectFileLoader notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4971 |
stcLibraries notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4972 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4973 |
]. |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4974 |
stcLibraryPath notNil ifTrue:[ |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4975 |
ObjectFileLoader libPath:(stcLibraryPath value). |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4976 |
] |
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4977 |
]. |
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 destroy |
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 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4982 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4983 |
"Created: / 2.10.1998 / 16:27:49 / cg" |
1947
1e3ccc0b663e
oops - stc compilation parameters
Claus Gittinger <cg@exept.de>
parents:
1944
diff
changeset
|
4984 |
"Modified: / 21.10.1998 / 19:15:10 / cg" |
1909
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4985 |
! |
48e4c47b8cc7
separate stc-compiler options dialog.
Claus Gittinger <cg@exept.de>
parents:
1908
diff
changeset
|
4986 |
|
1923
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4987 |
toolSettingsFor:requestor |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4988 |
"open a dialog on tool settings" |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4989 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4990 |
|box |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4991 |
component |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4992 |
resources useNewInspector useNewChangesBrowser currentUserPrefs| |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4993 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4994 |
currentUserPrefs := UserPreferences current. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4995 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4996 |
resources := requestor class classResources. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4997 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4998 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
4999 |
"/ extract relevant system settings ... |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5000 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5001 |
useNewInspector := currentUserPrefs useNewInspector asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5002 |
useNewChangesBrowser := currentUserPrefs useNewChangesBrowser asValue. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5003 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5004 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5005 |
"/ create a box on those values ... |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5006 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5007 |
box := DialogBox new. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5008 |
box label:(resources string:'Tool settings'). |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5009 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5010 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5011 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5012 |
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
|
5013 |
box addHorizontalLine. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5014 |
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
|
5015 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5016 |
box |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5017 |
addHelpButtonFor:'Launcher/toolSettings.html'; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5018 |
addAbortButton; |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5019 |
addOkButton. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5020 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5021 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5022 |
"/ show the box ... |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5023 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5024 |
box open. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5025 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5026 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5027 |
"/ update system settings |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5028 |
"/ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5029 |
box accepted ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5030 |
currentUserPrefs useNewInspector:useNewInspector value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5031 |
currentUserPrefs useNewChangesBrowser:useNewChangesBrowser value. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5032 |
useNewInspector value ifTrue:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5033 |
Inspector := NewInspector::InspectorView |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5034 |
] ifFalse:[ |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5035 |
Inspector := InspectorView |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5036 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5037 |
]. |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5038 |
box destroy |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5039 |
|
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5040 |
"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
|
5041 |
"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
|
5042 |
"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
|
5043 |
"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
|
5044 |
! |
c1bd25dbfcc1
extra config dialog for tools (new/old changesBrowser ...)
Claus Gittinger <cg@exept.de>
parents:
1921
diff
changeset
|
5045 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5046 |
viewStyleSettingsFor:requestor |
921 | 5047 |
"open a dialog on viewStyle related settings" |
5048 |
||
1610 | 5049 |
| resourceDir dir box |
1350 | 5050 |
list listView scrView infoLabel infoForwarder newStyle |
1610 | 5051 |
someRsrcFile b didApply resources listUpdater showStandardStylesOnly standardStyles| |
5052 |
||
5053 |
showStandardStylesOnly := true asValue. |
|
1662
fff1561497ba
openwin is no longer considered a supported style.
Claus Gittinger <cg@exept.de>
parents:
1660
diff
changeset
|
5054 |
standardStyles := #('iris' 'motif' 'mswindows95' 'next' 'os2' 'st80' 'normal'). |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5055 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5056 |
resources := requestor class classResources. |
219 | 5057 |
|
5058 |
" |
|
5059 |
search resources directory for a list of .style files ... |
|
5060 |
" |
|
1350 | 5061 |
someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style'). |
5062 |
someRsrcFile notNil ifTrue:[ |
|
1910 | 5063 |
resourceDir := someRsrcFile asFilename directoryName |
1350 | 5064 |
] ifFalse:[ |
1910 | 5065 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
1350 | 5066 |
]. |
5067 |
||
219 | 5068 |
resourceDir isNil ifTrue:[ |
1910 | 5069 |
self warn:'no styles found (missing ''resources'' directory)'. |
5070 |
^ self |
|
219 | 5071 |
]. |
1319 | 5072 |
dir := resourceDir asFilename directoryContents. |
219 | 5073 |
|
1610 | 5074 |
list := SelectionInList new. |
5075 |
||
5076 |
listUpdater := [ |
|
1910 | 5077 |
|listOfStyles lastSelection| |
5078 |
||
5079 |
lastSelection := list selection. |
|
5080 |
listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style']. |
|
5081 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name]. |
|
5082 |
Filename isCaseSensitive ifFalse:[ |
|
5083 |
listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase]. |
|
5084 |
]. |
|
5085 |
listOfStyles remove:'generic' ifAbsent:nil; remove:'mswindows3' ifAbsent:nil. |
|
5086 |
showStandardStylesOnly value ifTrue:[ |
|
5087 |
listOfStyles := listOfStyles select:[:aStyleName | standardStyles includes:aStyleName]. |
|
5088 |
]. |
|
5089 |
||
5090 |
listOfStyles sort. |
|
5091 |
list list:listOfStyles. |
|
5092 |
list selection:lastSelection. |
|
1319 | 5093 |
]. |
1610 | 5094 |
listUpdater value. |
5095 |
||
5096 |
showStandardStylesOnly onChangeSend:#value to:listUpdater. |
|
5097 |
||
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
5098 |
infoForwarder := [ |
1910 | 5099 |
|nm sheet comment| |
5100 |
||
5101 |
comment := ''. |
|
5102 |
nm := list selection. |
|
5103 |
nm notNil ifTrue:[ |
|
5104 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
5105 |
comment := (sheet at:#comment ifAbsent:'') withoutSeparators. |
|
5106 |
]. |
|
5107 |
comment := comment withCRs asStringCollection. |
|
5108 |
comment size == 1 ifTrue:[ |
|
5109 |
comment := comment first |
|
5110 |
]. |
|
5111 |
infoLabel label:comment |
|
5112 |
]. |
|
219 | 5113 |
|
596
ad53df643d7e
added query if printer supports pages at all (only PS does)
Claus Gittinger <cg@exept.de>
parents:
595
diff
changeset
|
5114 |
list onChangeSend:#value to:infoForwarder. |
219 | 5115 |
|
5116 |
box := Dialog new. |
|
5117 |
box label:(resources string:'Style selection'). |
|
5118 |
||
1602 | 5119 |
(box addTextLabel:(resources at:'STYLE_MSG' default:'select a style') withCRs) adjust:#left. |
219 | 5120 |
listView := SelectionInListView on:list. |
5121 |
listView doubleClickAction:[:sel | box accept value:true. box hide]. |
|
1610 | 5122 |
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
|
5123 |
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
|
5124 |
|
219 | 5125 |
box addVerticalSpace. |
5126 |
||
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
5127 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
219 | 5128 |
|
1351 | 5129 |
box addAbortButton. |
1610 | 5130 |
|
5131 |
"/ mhmh - the newLauncher does not yet handle apply (without close) correctly |
|
5132 |
"/ b := box addButton:(Button label:(resources string:'apply')). |
|
5133 |
"/ b action:[didApply := true. requestor changeViewStyleTo:(list selection)]. |
|
5134 |
||
1351 | 5135 |
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
|
5136 |
|
a5f4170a3e72
turn off 'standardStyles' if the current one is not in the list.
Claus Gittinger <cg@exept.de>
parents:
1633
diff
changeset
|
5137 |
(standardStyles includes:View defaultStyle) ifFalse:[ |
1910 | 5138 |
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
|
5139 |
]. |
568 | 5140 |
list selection:(View defaultStyle). |
219 | 5141 |
|
342
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
5142 |
box stickAtBottomWithVariableHeight:scrView. |
d4edf4483817
use new Dialog features for viewStyle box
Claus Gittinger <cg@exept.de>
parents:
341
diff
changeset
|
5143 |
box stickAtBottomWithFixHeight:infoLabel. |
582
aca73c710a3b
use new fill-in-the-blank dialogs
Claus Gittinger <cg@exept.de>
parents:
580
diff
changeset
|
5144 |
box open. |
219 | 5145 |
|
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5146 |
box destroy. |
219 | 5147 |
box accepted ifTrue:[ |
1910 | 5148 |
((newStyle := list selection) ~= View defaultStyle |
5149 |
or:[didApply ~~ true]) ifTrue:[ |
|
5150 |
requestor changeViewStyleTo:newStyle. |
|
5151 |
]. |
|
1055
41df6ada2df7
dont deiconify debuggers (i.e. only walk over current project
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
5152 |
]. |
41df6ada2df7
dont deiconify debuggers (i.e. only walk over current project
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
5153 |
|
1051
5d05a5307a7a
added collapse & expand tools-menu items
Claus Gittinger <cg@exept.de>
parents:
1048
diff
changeset
|
5154 |
" |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5155 |
self viewStyleSettingsFor:nil |
1051
5d05a5307a7a
added collapse & expand tools-menu items
Claus Gittinger <cg@exept.de>
parents:
1048
diff
changeset
|
5156 |
" |
5d05a5307a7a
added collapse & expand tools-menu items
Claus Gittinger <cg@exept.de>
parents:
1048
diff
changeset
|
5157 |
|
1886 | 5158 |
"Modified: / 14.9.1998 / 20:33:59 / cg" |
219 | 5159 |
! ! |
5160 |
||
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5161 |
!Launcher::LauncherDialogs class methodsFor:'dialogs - file'! |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5162 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5163 |
objectModuleDialogFor:requestor |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5164 |
"opens a moduleInfo dialog" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5165 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5166 |
<resource: #programMenu > |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5167 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5168 |
|allModules moduleNames |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5169 |
allObjects methodObjects methodNames |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5170 |
cObjects cObjectNames |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5171 |
otherObjects otherObjectNames |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5172 |
box l handles unloadButton unloadAndRemoveButton |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5173 |
list1 list2 listView1 listView2 |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5174 |
y panel |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5175 |
showBuiltIn showModules showMethods showCObjects showOthers |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5176 |
moduleListUpdater check canDoIt menu |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5177 |
resources middleLabel| |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5178 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5179 |
resources := requestor class classResources. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5180 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5181 |
showBuiltIn := true asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5182 |
canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5183 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5184 |
showModules := canDoIt asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5185 |
showMethods := canDoIt asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5186 |
showCObjects := canDoIt asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5187 |
showOthers := canDoIt asValue. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5188 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5189 |
list1 := SelectionInList new. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5190 |
list2 := SelectionInList new. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5191 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5192 |
moduleListUpdater := [ |
1910 | 5193 |
|l| |
5194 |
||
5195 |
list2 list:nil. |
|
5196 |
||
5197 |
l := Array new. |
|
5198 |
handles := Array new. |
|
5199 |
||
5200 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
5201 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
5202 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
5203 |
allModules := allModules select:[:i | |
|
5204 |
|wantToSee| |
|
5205 |
||
5206 |
wantToSee := i dynamic. |
|
5207 |
showBuiltIn value ifTrue:[ |
|
5208 |
wantToSee := wantToSee not |
|
5209 |
]. |
|
5210 |
wantToSee |
|
5211 |
] |
|
5212 |
]. |
|
5213 |
||
5214 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
|
5215 |
allModules sort:[:a :b | (a id) > (b id)]. |
|
5216 |
moduleNames := allModules collect:[:entry | entry name]. |
|
5217 |
l := l , moduleNames. |
|
5218 |
handles := handles , allModules. |
|
5219 |
]. |
|
5220 |
||
5221 |
showMethods value ifTrue:[ |
|
5222 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
5223 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
5224 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
5225 |
'compiled method - removed' " , ' (in ' , mH pathName , ')' " |
|
5226 |
] ifFalse:[ |
|
5227 |
'compiled method ' , mH method whoString " , ' (in ' , mH pathName , ')' " |
|
5228 |
]. |
|
5229 |
]. |
|
5230 |
l := l , methodNames. |
|
5231 |
handles := handles , methodObjects. |
|
5232 |
]. |
|
5233 |
||
5234 |
showCObjects value ifTrue:[ |
|
5235 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
5236 |
cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray. |
|
5237 |
cObjectNames := cObjects collect:[:entry | entry pathName]. |
|
5238 |
l := l , cObjectNames. |
|
5239 |
handles := handles , cObjects. |
|
5240 |
]. |
|
5241 |
||
5242 |
showOthers value ifTrue:[ |
|
5243 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
5244 |
otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle |
|
5245 |
or:[h isMethodHandle |
|
5246 |
or:[h isClassLibHandle]]) not]) asArray. |
|
5247 |
otherObjectNames := otherObjects collect:[:entry | entry pathName]. |
|
5248 |
l := l , otherObjectNames. |
|
5249 |
handles := handles , otherObjects. |
|
5250 |
]. |
|
5251 |
||
5252 |
showBuiltIn value ifTrue:[ |
|
5253 |
l := #('VM') , l. |
|
5254 |
handles := #(VM) , handles. |
|
5255 |
allModules := #(VM) , allModules. |
|
5256 |
]. |
|
5257 |
||
5258 |
list1 list:l. |
|
5259 |
unloadButton disable. |
|
5260 |
unloadAndRemoveButton disable. |
|
5261 |
]. |
|
1779
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 |
showBuiltIn onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5264 |
showModules onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5265 |
showMethods onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5266 |
showCObjects onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5267 |
showOthers onChangeSend:#value to:moduleListUpdater. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5268 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5269 |
box := Dialog new. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5270 |
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
|
5271 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5272 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5273 |
listView1 model:list1. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5274 |
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
|
5275 |
listView1 action:[:sel | |
1910 | 5276 |
|info classNames tabs module| |
5277 |
||
5278 |
listView1 middleButtonMenu:nil. |
|
5279 |
||
5280 |
box withWaitCursorDo:[ |
|
5281 |
|nm fileName addr entry1 entry2 entry3 method l| |
|
5282 |
||
5283 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6 3.5). |
|
5284 |
||
5285 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
5286 |
info := allModules at:sel ifAbsent:nil. |
|
5287 |
]. |
|
5288 |
info isNil ifTrue:[ |
|
5289 |
"/ selected a method, cObject or unknown |
|
5290 |
||
5291 |
module := handles at:sel. |
|
5292 |
fileName := module pathName. |
|
5293 |
||
5294 |
module isMethodHandle ifTrue:[ |
|
5295 |
middleLabel label:'contains method:'. |
|
5296 |
||
5297 |
(method := module method) isNil ifTrue:[ |
|
5298 |
nm := '** removed **'. |
|
5299 |
] ifFalse:[ |
|
5300 |
menu := PopUpMenu |
|
5301 |
labels:#('inspect' 'browse') |
|
5302 |
selectors:#(inspect browse). |
|
5303 |
menu actionAt:#inspect put:[ method inspect ]. |
|
5304 |
menu actionAt:#browse put:[ |who| |
|
5305 |
who := method who. |
|
5306 |
SystemBrowser |
|
5307 |
openInClass:(who methodClass) |
|
5308 |
selector:(who methodSelector) |
|
5309 |
]. |
|
5310 |
listView1 middleButtonMenu:menu. |
|
5311 |
||
5312 |
nm := (method whoString) asText emphasizeAllWith:(#color->Color blue). |
|
5313 |
]. |
|
5314 |
entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5315 |
entry1 colAt:1 put:'compiled method'; colAt:2 put:nm. |
|
5316 |
||
5317 |
entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5318 |
entry2 colAt:1 put:'path'; colAt:2 put:fileName. |
|
5319 |
||
5320 |
entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5321 |
entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code address hexPrintString leftPaddedTo:8 with:$0)). |
|
5322 |
||
5323 |
list2 list:(Array with:entry1 with:entry2 with:entry3). |
|
5324 |
] ifFalse:[ |
|
5325 |
(module isFunctionObjectHandle |
|
5326 |
and:[module functions notEmpty]) ifTrue:[ |
|
5327 |
middleLabel label:'contains function:'. |
|
5328 |
||
5329 |
menu := PopUpMenu |
|
5330 |
labels:#('inspect') |
|
5331 |
selectors:#(inspect). |
|
5332 |
menu actionAt:#inspect put:[ module functions inspect ]. |
|
5333 |
listView1 middleButtonMenu:menu. |
|
5334 |
||
5335 |
list2 list:((module functions select:[:f | f notNil]) |
|
5336 |
collect:[:f | |entry| |
|
5337 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5338 |
entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)). |
|
5339 |
entry colAt:2 put:('address: (16r) ' , (f code address hexPrintString leftPaddedTo:8 with:$0)). |
|
5340 |
entry |
|
5341 |
]). |
|
5342 |
] ifFalse:[ |
|
5343 |
list2 list:#('nothing known about contents (no functions have been extracted)'). |
|
5344 |
] |
|
5345 |
]. |
|
5346 |
||
5347 |
unloadButton enable. |
|
5348 |
unloadAndRemoveButton disable. |
|
5349 |
] ifFalse:[ |
|
5350 |
info == #VM ifTrue:[ |
|
5351 |
"/ dummy entry for VM; |
|
5352 |
"/ show file versions in lower view. |
|
5353 |
||
5354 |
middleLabel label:'contains modules:'. |
|
5355 |
l := (ObjectMemory getVMIdentificationStrings). |
|
5356 |
l := l select:[:entry | entry includesString:'$Header']. |
|
5357 |
l := l select:[:entry | entry includesString:',v']. |
|
5358 |
l := l collect:[:entry | |
|
5359 |
|i1 i2 file revision date listEntry| |
|
5360 |
||
5361 |
listEntry := MultiColListEntry new:3 tabulatorSpecification:tabs. |
|
5362 |
||
5363 |
i1 := entry indexOfSubCollection:'librun'. |
|
5364 |
i1 ~~ 0 ifTrue:[ |
|
5365 |
i2 := entry indexOfSubCollection:',v' startingAt:i1. |
|
5366 |
i2 ~~ 0 ifTrue:[ |
|
5367 |
file := entry copyFrom:i1+7 to:(i2-1). |
|
5368 |
listEntry colAt:1 put:file. |
|
5369 |
||
5370 |
i1 := i2+3. |
|
5371 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
5372 |
revision := entry copyFrom:i1 to:(i2-1). |
|
5373 |
listEntry colAt:2 put:revision. |
|
5374 |
||
5375 |
i1 := i2+1. |
|
5376 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
5377 |
date := entry copyFrom:i1 to:(i2-1). |
|
5378 |
listEntry colAt:3 put:date. |
|
5379 |
]. |
|
5380 |
]. |
|
5381 |
listEntry. |
|
5382 |
"/ entry |
|
5383 |
]. |
|
5384 |
list2 list:l. |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5385 |
|
1910 | 5386 |
unloadButton disable. |
5387 |
unloadAndRemoveButton disable. |
|
5388 |
] ifFalse:[ |
|
5389 |
"/ selected a package |
|
5390 |
||
5391 |
"/ fill bottom list with class-info |
|
5392 |
||
5393 |
middleLabel label:'contains classes:'. |
|
5394 |
classNames := info classNames asSortedCollection. |
|
5395 |
classNames := classNames select:[:cName | |
|
5396 |
|cls| |
|
5397 |
||
5398 |
cls := Smalltalk classNamed:cName. |
|
5399 |
cls isNil ifTrue:[ |
|
5400 |
true "a removed class" |
|
5401 |
] ifFalse:[ |
|
5402 |
cls isPrivate not |
|
5403 |
]. |
|
5404 |
]. |
|
5405 |
||
5406 |
classNames := classNames collect:[:cName | |
|
5407 |
|cls entry rev listEntry| |
|
5408 |
||
5409 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5410 |
listEntry colAt:1 put:cName. |
|
5411 |
||
5412 |
cls := Smalltalk classNamed:cName. |
|
5413 |
cls isNil ifTrue:[ |
|
5414 |
listEntry colAt:2 put:'(class removed)'. |
|
5415 |
] ifFalse:[ |
|
5416 |
rev := cls binaryRevision. |
|
5417 |
rev notNil ifTrue:[ |
|
5418 |
cls isLoaded ifFalse:[ |
|
5419 |
entry := '(stub for: ' , rev. |
|
5420 |
] ifTrue:[ |
|
5421 |
entry :='(bin: ' , rev. |
|
5422 |
]. |
|
5423 |
cls revision ~= rev ifTrue:[ |
|
5424 |
entry := entry , ' / src: ' , cls revision |
|
5425 |
]. |
|
5426 |
listEntry colAt:2 put:entry , ')' |
|
5427 |
] ifFalse:[ |
|
5428 |
cls revision notNil ifTrue:[ |
|
5429 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
|
5430 |
] |
|
5431 |
] |
|
5432 |
]. |
|
5433 |
listEntry |
|
5434 |
]. |
|
5435 |
list2 list:classNames. |
|
5436 |
info dynamic ifTrue:[ |
|
5437 |
unloadButton enable. |
|
5438 |
unloadAndRemoveButton enable. |
|
5439 |
] ifFalse:[ |
|
5440 |
unloadButton disable. |
|
5441 |
unloadAndRemoveButton disable. |
|
5442 |
]. |
|
5443 |
]. |
|
5444 |
] |
|
5445 |
] |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5446 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5447 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5448 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5449 |
panel := HorizontalPanelView new. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5450 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5451 |
panel add:(l := Label label:'show:'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5452 |
l adjust:#left; borderWidth:0. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5453 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5454 |
box makeTabable:check. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5455 |
panel add:(check := CheckBox label:'classLibs' model:showModules). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5456 |
canDoIt ifFalse:[ |
1910 | 5457 |
check disable |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5458 |
] ifTrue:[ |
1910 | 5459 |
box makeTabable:check. |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5460 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5461 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5462 |
canDoIt ifFalse:[ |
1910 | 5463 |
check disable |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5464 |
] ifTrue:[ |
1910 | 5465 |
box makeTabable:check. |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5466 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5467 |
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
|
5468 |
canDoIt ifFalse:[ |
1910 | 5469 |
check disable |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5470 |
] ifTrue:[ |
1910 | 5471 |
box makeTabable:check. |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5472 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5473 |
panel add:(check := CheckBox label:'others' model:showOthers). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5474 |
canDoIt ifFalse:[ |
1910 | 5475 |
check disable |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5476 |
] ifTrue:[ |
1910 | 5477 |
box makeTabable:check. |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5478 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5479 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5480 |
panel horizontalLayout:#fitSpace. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5481 |
"/ panel horizontalLayout:#leftSpace. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5482 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5483 |
box addComponent:panel tabable:false. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5484 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5485 |
box addVerticalSpace. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5486 |
box addComponent:listView1 tabable:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5487 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5488 |
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
|
5489 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5490 |
l := box addTextLabel:(resources string:'contains:'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5491 |
l adjust:#left; borderWidth:0. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5492 |
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
|
5493 |
l topInset:(View viewSpacing). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5494 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5495 |
middleLabel := l. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5496 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5497 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5498 |
listView2 model:list2; printItems:false. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5499 |
box addComponent:listView2 tabable:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5500 |
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
|
5501 |
listView2 disable. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5502 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5503 |
unloadButton := Button label:(resources string:'unload'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5504 |
unloadButton action:[ |
1910 | 5505 |
box withWaitCursorDo:[ |
5506 |
|info idx pathName| |
|
5507 |
||
5508 |
idx := list1 selectionIndex. |
|
5509 |
info := allModules at:idx ifAbsent:nil. |
|
5510 |
||
5511 |
list1 selectionIndex:nil. |
|
5512 |
||
5513 |
info isNil ifTrue:[ |
|
5514 |
"/ selected a method |
|
5515 |
"/ idx := idx - allModules size. |
|
5516 |
pathName := (handles at:idx) pathName. |
|
5517 |
||
5518 |
] ifFalse:[ |
|
5519 |
"/ selected a package |
|
5520 |
pathName := info pathName. |
|
5521 |
]. |
|
5522 |
ObjectFileLoader unloadObjectFile:pathName. |
|
5523 |
moduleListUpdater value. |
|
5524 |
unloadButton disable. |
|
5525 |
] |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5526 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5527 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5528 |
unloadAndRemoveButton := Button label:(resources string:'remove classes & unload'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5529 |
unloadAndRemoveButton action:[ |
1910 | 5530 |
box withWaitCursorDo:[ |
5531 |
|info idx pathName| |
|
5532 |
||
5533 |
idx := list1 selectionIndex. |
|
5534 |
info := allModules at:idx ifAbsent:nil. |
|
5535 |
||
5536 |
list1 selectionIndex:nil. |
|
5537 |
||
5538 |
info isNil ifTrue:[ |
|
5539 |
"/ selected a method |
|
5540 |
"/ idx := idx - allModules size. |
|
5541 |
pathName := (handles at:idx) pathName. |
|
5542 |
||
5543 |
] ifFalse:[ |
|
5544 |
"/ selected a package |
|
5545 |
pathName := info pathName. |
|
5546 |
]. |
|
5547 |
ObjectFileLoader unloadObjectFileAndRemoveClasses:pathName. |
|
5548 |
moduleListUpdater value. |
|
5549 |
unloadAndRemoveButton disable. |
|
5550 |
] |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5551 |
]. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5552 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5553 |
moduleListUpdater value. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5554 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5555 |
box addButton:unloadButton. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5556 |
box addButton:unloadAndRemoveButton. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5557 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5558 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5559 |
y := box yPosition. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5560 |
listView2 topInset:(l preferredExtent y + 5). |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5561 |
listView2 bottomInset:(box preferredExtent y - y). |
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 |
box width:(400 min:(box device width * 2 // 3)); |
1910 | 5564 |
height:(450 min:(box device height - 50)). |
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5565 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5566 |
"/ box sizeFixed:true. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5567 |
box openWithExtent:(600 min:(box device width * 2 // 3)) |
1910 | 5568 |
@ |
5569 |
(500 min:(box device height - 50)) . |
|
1779
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5570 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5571 |
box destroy. |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5572 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5573 |
"Modified: / 17.9.1995 / 16:47:50 / claus" |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5574 |
"Created: / 31.7.1998 / 15:49:45 / cg" |
1821
c8bc04c4ccaa
oops - cursor in moduleDialog
Claus Gittinger <cg@exept.de>
parents:
1801
diff
changeset
|
5575 |
"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
|
5576 |
! ! |
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5577 |
|
95ce518ac6d4
moved moduleDialog to my private class.
Claus Gittinger <cg@exept.de>
parents:
1775
diff
changeset
|
5578 |
!Launcher::LauncherDialogs class methodsFor:'dialogs-private'! |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5579 |
|
1785 | 5580 |
cvsConfigurationDialogFor:requestor |
1829 | 5581 |
|box y cvsRootHolder component resources defaultsList| |
1785 | 5582 |
|
5583 |
resources := requestor class classResources. |
|
5584 |
||
1829 | 5585 |
OperatingSystem isUNIXlike ifTrue:[ |
1910 | 5586 |
defaultsList := #('/files/CVS' '/CVS' 'host:/files/CVS' 'host:/CVS'). |
1829 | 5587 |
] ifFalse:[ |
1910 | 5588 |
OperatingSystem isMSDOSlike ifTrue:[ |
5589 |
defaultsList := #(':local:c:\files\CVS' ':local:c:\CVS' 'host:/files/CVS' 'host:/CVS'). |
|
5590 |
] ifFalse:[ |
|
5591 |
defaultsList := #('host:/files/CVS' 'host:/CVS'). |
|
5592 |
] |
|
1829 | 5593 |
]. |
5594 |
||
1785 | 5595 |
cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'. |
5596 |
cvsRootHolder := cvsRootHolder asValue. |
|
5597 |
||
5598 |
"/ |
|
5599 |
"/ create a box to input the CVSRoot ... |
|
5600 |
"/ |
|
5601 |
box := DialogBox new. |
|
5602 |
box label:(resources string:'CVS Setup'). |
|
5603 |
||
5604 |
component := (box addTextLabel:'CVS SourceCodeManager setup'). |
|
5605 |
component adjust:#left. |
|
5606 |
||
1829 | 5607 |
y := box yPosition. |
5608 |
component := box addTextLabel:(resources string:'CVSRoot:'). |
|
5609 |
component width:0.25; adjust:#right; borderWidth:0. |
|
5610 |
box yPosition:y. |
|
5611 |
component := box addComboBoxOn:nil tabable:true. |
|
5612 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
5613 |
component width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
5614 |
component list:defaultsList. |
|
1785 | 5615 |
component model:cvsRootHolder. |
5616 |
||
1829 | 5617 |
"/ component := box |
5618 |
"/ addLabelledInputField:(resources string:'CVSRoot:') |
|
5619 |
"/ adjust:#right |
|
5620 |
"/ on:nil |
|
5621 |
"/ tabable:true |
|
5622 |
"/ separateAtX:0.5. |
|
5623 |
"/ component acceptOnLeave:false. |
|
5624 |
"/ component model:cvsRootHolder. |
|
5625 |
||
1785 | 5626 |
box |
1910 | 5627 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
5628 |
addAbortButton; |
|
5629 |
addOkButton. |
|
1785 | 5630 |
|
5631 |
"/ |
|
5632 |
"/ show the box ... |
|
5633 |
"/ |
|
5634 |
box extent:400@300. |
|
5635 |
box showAtPointer. |
|
5636 |
||
5637 |
"/ |
|
5638 |
"/ update system settings |
|
5639 |
"/ |
|
5640 |
box accepted ifTrue:[ |
|
1910 | 5641 |
CVSSourceCodeManager initializeForRepository:cvsRootHolder value |
1785 | 5642 |
]. |
5643 |
box destroy |
|
5644 |
||
5645 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
1829 | 5646 |
"Modified: / 12.8.1998 / 17:09:02 / cg" |
1785 | 5647 |
! |
5648 |
||
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5649 |
fontBoxForEncoding:encodingMatch for:requestor |
921 | 5650 |
"open a fontBox, showing fonts which match some encoding |
5651 |
(used when changing to japanese ...)" |
|
5652 |
||
742
2ef5e22d8983
code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents:
740
diff
changeset
|
5653 |
|box y b |
406 | 5654 |
labelDef buttonDef listDef menuDef textDef |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5655 |
models labels allOfThem filter resources| |
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5656 |
|
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5657 |
resources := requestor class classResources. |
406 | 5658 |
|
5659 |
encodingMatch notNil ifTrue:[ |
|
1910 | 5660 |
filter := [:f | f encoding notNil |
5661 |
and:[encodingMatch match:f encoding]]. |
|
406 | 5662 |
]. |
1599
60c649f423e8
moved settingsDialogs into separate class
Claus Gittinger <cg@exept.de>
parents:
1591
diff
changeset
|
5663 |
|
406 | 5664 |
models := OrderedCollection new. |
5665 |
labels := OrderedCollection new. |
|
5666 |
||
5667 |
models add:(allOfThem := nil asValue). |
|
5668 |
models add:(labelDef := Label defaultFont asValue). |
|
5669 |
models add:(buttonDef := Button defaultFont asValue). |
|
5670 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
5671 |
models add:(menuDef := MenuView defaultFont asValue). |
|
5672 |
models add:(textDef := TextView defaultFont asValue). |
|
5673 |
||
5674 |
box := Dialog new. |
|
5675 |
box label:(resources string:'Font settings'). |
|
5676 |
||
5677 |
models |
|
5678 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
|
5679 |
do:[:model :title | |
|
1910 | 5680 |
|y2 lbl f i| |
5681 |
||
5682 |
f := model value. |
|
5683 |
||
5684 |
(box addTextLabel:title) adjust:#left. |
|
5685 |
||
5686 |
y := box yPosition. |
|
5687 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
|
5688 |
b relativeExtent:nil; extent:(b preferredExtent). |
|
5689 |
y2 := box yPosition. |
|
5690 |
box yPosition:y. |
|
5691 |
i := box leftIndent. |
|
5692 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
|
5693 |
(lbl := box addTextLabel:'') |
|
5694 |
adjust:#left; |
|
5695 |
font:(model value); |
|
5696 |
labelChannel:(BlockValue |
|
5697 |
with:[:v | |f| |
|
5698 |
f := v value. |
|
5699 |
f isNil ifTrue:[ |
|
5700 |
'' |
|
5701 |
] ifFalse:[ |
|
5702 |
f userFriendlyName |
|
5703 |
] |
|
5704 |
] |
|
5705 |
argument:model). |
|
5706 |
labels add:lbl. |
|
5707 |
||
5708 |
box leftIndent:i. |
|
5709 |
box yPosition:(box yPosition max:y2). |
|
5710 |
||
5711 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
5712 |
||
5713 |
b action:[ |
|
5714 |
|f| |
|
5715 |
||
5716 |
f := FontPanel |
|
5717 |
fontFromUserInitial:(model value) |
|
5718 |
title:(resources string:'font for %1' with:title) |
|
5719 |
filter:filter. |
|
5720 |
f notNil ifTrue:[ |
|
5721 |
model == allOfThem ifTrue:[ |
|
5722 |
models do:[:m | m value:f]. |
|
5723 |
labels do:[:l | l font:f] |
|
5724 |
] ifFalse:[ |
|
5725 |
model value:f. |
|
5726 |
lbl font:f. |
|
5727 |
]. |
|
5728 |
] |
|
5729 |
]. |
|
5730 |
model == allOfThem ifTrue:[ |
|
5731 |
box addVerticalSpace |
|
5732 |
] |
|
406 | 5733 |
]. |
5734 |
||
5735 |
box addAbortButton; addOkButton. |
|
5736 |
(box addButton:(Button label:(resources string:'defaults')) before:nil) |
|
1910 | 5737 |
action:[ |
5738 |
"/ fetch defaults |
|
5739 |
View readStyleSheetAndUpdateAllStyleCaches. |
|
5740 |
labelDef value: Label defaultFont. |
|
5741 |
buttonDef value: Button defaultFont. |
|
5742 |
listDef value: SelectionInListView defaultFont. |
|
5743 |
menuDef value: MenuView defaultFont. |
|
5744 |
textDef value: TextView defaultFont. |
|
5745 |
]. |
|
406 | 5746 |
|
5747 |
box open. |
|
5748 |
box accepted ifTrue:[ |
|
1910 | 5749 |
Label defaultFont:labelDef value. |
5750 |
Button defaultFont:buttonDef value. |
|
5751 |
Toggle defaultFont:buttonDef value. |
|
5752 |
SelectionInListView defaultFont:listDef value. |
|
5753 |
MenuView defaultFont:menuDef value. |
|
5754 |
PullDownMenu defaultFont:menuDef value. |
|
5755 |
TextView defaultFont:textDef value. |
|
5756 |
EditTextView defaultFont:textDef value. |
|
5757 |
CodeView defaultFont:textDef value. |
|
406 | 5758 |
]. |
592
5a03a69bc5a3
oops - menuAction is now called with arg if there is one
Claus Gittinger <cg@exept.de>
parents:
591
diff
changeset
|
5759 |
box destroy. |
406 | 5760 |
^ box accepted |
5761 |
||
1892 | 5762 |
"Created: / 27.2.1996 / 01:44:16 / cg" |
5763 |
"Modified: / 17.6.1996 / 13:38:48 / stefan" |
|
5764 |
"Modified: / 15.9.1998 / 22:04:51 / cg" |
|
1602 | 5765 |
! |
5766 |
||
5767 |
syntaxColorConfigurationDialogFor:requestor |
|
5768 |
|box frame exampleView |
|
5769 |
component |
|
5770 |
resources exampleText coloredText recolorAction |
|
5771 |
syntaxColor syntaxColors colorMenu oldUserPreferences |
|
5772 |
syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox |
|
5773 |
syntaxEmphasisesBox syntaxColoringResetBox syntaxColoringEnableBlock| |
|
5774 |
||
5775 |
resources := requestor class classResources. |
|
5776 |
||
1717
0a345e0b9cbf
also offer underline styles in syntaxColoring settings.
Claus Gittinger <cg@exept.de>
parents:
1707
diff
changeset
|
5777 |
exampleText := |
0a345e0b9cbf
also offer underline styles in syntaxColoring settings.
Claus Gittinger <cg@exept.de>
parents:
1707
diff
changeset
|
5778 |
'methodSelector:methodArg |
1605 | 5779 |
"method comment: |
5780 |
some stupid code to show the current settings" |
|
1602 | 5781 |
|
5782 |
|methodVar| |
|
5783 |
||
1605 | 5784 |
"/ another comment ... |
1602 | 5785 |
self foo:methodArg. |
5786 |
self bar:methodVar. |
|
1605 | 5787 |
"self bar:methodVar. detect commented code easily" |
1606 | 5788 |
1 to:5 do:[:i | self baz:i + 1]. |
5789 |
Transcript showCR:''some string'' , #someSymbol. |
|
1602 | 5790 |
'. |
5791 |
||
5792 |
coloredText := '' asValue. |
|
5793 |
recolorAction := [ coloredText value:(SyntaxHighlighter formatMethod:exampleText in:nil) ]. |
|
5794 |
recolorAction value. |
|
5795 |
||
5796 |
"/ |
|
5797 |
"/ create a box on those values ... |
|
5798 |
"/ |
|
5799 |
box := DialogBox new. |
|
5800 |
box label:(resources string:'Syntax Colors'). |
|
5801 |
||
5802 |
frame := View new. |
|
1606 | 5803 |
frame extent:1.0 @ 200. |
1602 | 5804 |
frame borderWidth:0. |
5805 |
||
1606 | 5806 |
exampleView := HVScrollableView for:TextView in:frame. |
1602 | 5807 |
exampleView model:coloredText. |
5808 |
exampleView origin:0.0@0.0 corner:1.0@1.0; inset:2. |
|
5809 |
||
5810 |
frame topInset:box yPosition. |
|
1606 | 5811 |
box addComponent:frame withExtent:1.0@200. |
1602 | 5812 |
box makeTabable:exampleView. |
1606 | 5813 |
frame width:1.0. |
1602 | 5814 |
|
5815 |
box addVerticalSpace. |
|
5816 |
||
5817 |
oldUserPreferences := UserPreferences current copy. |
|
5818 |
||
1673
a6999f90d3b2
oops - selectionInList does not like a valueHolder as list.
Claus Gittinger <cg@exept.de>
parents:
1668
diff
changeset
|
5819 |
syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColors initialSelection:1). |
1602 | 5820 |
syntaxColorSelector := [(syntaxColors selection replChar:$ withString: '') asLowercaseFirst asSymbol]. |
5821 |
syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol]. |
|
5822 |
syntaxColor := (UserPreferences current perform: syntaxColorSelector value) asValue. |
|
5823 |
colorMenu := ColorMenu new. |
|
5824 |
colorMenu model: syntaxColor. |
|
5825 |
syntaxColor onChangeSend: #value to: |
|
1910 | 5826 |
[UserPreferences current at: syntaxColorSelector value put: syntaxColor value. |
5827 |
recolorAction value.]. |
|
1602 | 5828 |
syntaxColors onChangeSend: #value to: |
1910 | 5829 |
[syntaxColor value: (UserPreferences current perform:syntaxColorSelector value). |
5830 |
syntaxEmphasises selection: (UserPreferences current perform: syntaxEmphasisSelector value). |
|
5831 |
recolorAction value.]. |
|
1717
0a345e0b9cbf
also offer underline styles in syntaxColoring settings.
Claus Gittinger <cg@exept.de>
parents:
1707
diff
changeset
|
5832 |
syntaxEmphasisesBox := box addComboListOn: (syntaxEmphasises := SelectionInList with:#(normal underline bold boldUnderline italic italicUnderline reverse) initialSelection:1). |
1602 | 5833 |
syntaxEmphasises onChangeSend: #value to: |
1910 | 5834 |
[UserPreferences current at: syntaxEmphasisSelector value put: syntaxEmphasises selection asSymbol. |
5835 |
recolorAction value]. |
|
1602 | 5836 |
syntaxColors changed:#value. "/ to force initial update of emphasis |
5837 |
box addComponent:colorMenu tabable:true. |
|
5838 |
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
|
5839 |
box makeTabable:syntaxColoringResetBox. |
1602 | 5840 |
|
5841 |
syntaxColoringBox enable. colorMenu enable. syntaxEmphasisesBox enable. syntaxColoringResetBox enable. |
|
5842 |
||
5843 |
box |
|
5844 |
"/ addHelpButtonFor:'Launcher/sourceSettings.html'; |
|
1910 | 5845 |
addAbortButton; |
5846 |
addOkButton. |
|
1602 | 5847 |
|
5848 |
"/ |
|
5849 |
"/ show the box ... |
|
5850 |
"/ |
|
1606 | 5851 |
box extent:400@300. |
1602 | 5852 |
box openModal. |
5853 |
||
5854 |
"/ |
|
5855 |
"/ update system settings |
|
5856 |
"/ |
|
5857 |
box accepted ifTrue:[ |
|
5858 |
] ifFalse: [ |
|
1910 | 5859 |
(UserPreferences reset; current) declareAllFrom: oldUserPreferences |
1602 | 5860 |
]. |
5861 |
box destroy |
|
5862 |
||
5863 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
1775
cf2a667e361f
tabable fields in settings dialog.
Claus Gittinger <cg@exept.de>
parents:
1761
diff
changeset
|
5864 |
"Modified: / 31.7.1998 / 01:37:46 / cg" |
90 | 5865 |
! ! |
5866 |
||
760 | 5867 |
!Launcher class methodsFor:'documentation'! |
86 | 5868 |
|
219 | 5869 |
version |
1970 | 5870 |
^ '$Header: /cvs/stx/stx/libtool/Launcher.st,v 1.393 1998-12-04 15:34:37 cg Exp $' |
86 | 5871 |
! ! |