author | Claus Gittinger <cg@exept.de> |
Wed, 15 Nov 2000 13:36:59 +0100 | |
changeset 2845 | e7d49909cab3 |
parent 2838 | 141a4b203b92 |
child 2854 | ac97ea47bb08 |
permissions | -rw-r--r-- |
2195 | 1 |
" |
2 |
COPYRIGHT (c) 1997 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
2689
602cbcd0feb3
Fix comment on oldSpace compress limit
Stefan Vogel <sv@exept.de>
parents:
2621
diff
changeset
|
14 |
"{ Package: 'stx:libtool' }" |
602cbcd0feb3
Fix comment on oldSpace compress limit
Stefan Vogel <sv@exept.de>
parents:
2621
diff
changeset
|
15 |
|
2001 | 16 |
ToolApplicationModel subclass:#AbstractLauncherApplication |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
17 |
instanceVariableNames:'transcript' |
2196 | 18 |
classVariableNames:'NotifyingEmergencyHandler OpenLaunchers RegisteredMenuHandlers' |
2001 | 19 |
poolDictionaries:'' |
20 |
category:'Interface-Smalltalk' |
|
21 |
! |
|
22 |
||
23 |
Object subclass:#LauncherDialogs |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
privateIn:AbstractLauncherApplication |
|
28 |
! |
|
29 |
||
2195 | 30 |
!AbstractLauncherApplication class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1997 by eXept Software AG |
|
35 |
All Rights Reserved |
|
36 |
||
37 |
This software is furnished under a license and may be used |
|
38 |
only in accordance with the terms of that license and with the |
|
39 |
inclusion of the above copyright notice. This software may not |
|
40 |
be provided or otherwise made available to, or used by, any |
|
41 |
other person. No title to or ownership of the software is |
|
42 |
hereby transferred. |
|
43 |
" |
|
44 |
||
45 |
! |
|
46 |
||
47 |
documentation |
|
48 |
" |
|
49 |
This is an abstract class, providing mechanisms and common functionality |
|
50 |
for launcher-type applications. Subclasses may implement their GUI either |
|
51 |
with or without the UIPainter framework, and still use the common functions |
|
52 |
provided here. |
|
53 |
||
54 |
[author:] |
|
55 |
Claus Gittinger, eXept Software AG |
|
56 |
" |
|
57 |
||
58 |
||
59 |
! ! |
|
2001 | 60 |
|
61 |
!AbstractLauncherApplication class methodsFor:'accessing'! |
|
62 |
||
2761 | 63 |
closeAllLaunchers |
64 |
"close all opened launchers" |
|
65 |
||
66 |
self openLaunchers copy do:[:eachLauncher | |
|
67 |
eachLauncher closeRequest |
|
68 |
]. |
|
69 |
||
70 |
" |
|
71 |
self closeAllLaunchers. |
|
72 |
NewLauncher open |
|
73 |
" |
|
74 |
! |
|
75 |
||
2001 | 76 |
current |
77 |
"return the launcher running on the current screen. |
|
78 |
(for access via addMenu/ removeMenu)" |
|
79 |
||
80 |
|currentScreen| |
|
81 |
||
82 |
OpenLaunchers size > 0 ifTrue:[ |
|
2761 | 83 |
currentScreen := Screen current. |
2762 | 84 |
^ OpenLaunchers detect:[:eachLauncher | eachLauncher graphicsDevice == currentScreen] ifNone:nil |
2001 | 85 |
]. |
86 |
^ nil. |
|
87 |
||
88 |
" |
|
2761 | 89 |
NewLauncher current |
2001 | 90 |
" |
91 |
||
92 |
"Modified: / 9.9.1996 / 22:41:36 / stefan" |
|
93 |
"Modified: / 13.10.1998 / 16:09:50 / cg" |
|
94 |
! |
|
95 |
||
96 |
openLaunchers |
|
97 |
"return all opened launchers" |
|
98 |
||
2331 | 99 |
^OpenLaunchers ifNil:[ (OpenLaunchers := IdentitySet new) ]. |
2001 | 100 |
! ! |
101 |
||
102 |
!AbstractLauncherApplication class methodsFor:'defaults'! |
|
103 |
||
104 |
notifyingEmergencyHandler |
|
105 |
"return a block (used as an emergency handler |
|
106 |
for exceptions), which does errorNotification before going |
|
107 |
into the debugger." |
|
108 |
||
109 |
"Remember the handlerBlock, to be able to determine if the current |
|
110 |
handler is the notifying one." |
|
111 |
||
112 |
NotifyingEmergencyHandler isNil ifTrue:[ |
|
2316
6a46309a5e43
NotifyingEmergencyHandler moved to NoHandlerError
Stefan Vogel <sv@exept.de>
parents:
2314
diff
changeset
|
113 |
NotifyingEmergencyHandler := NoHandlerError notifyingEmergencyHandler |
2001 | 114 |
]. |
115 |
^ NotifyingEmergencyHandler |
|
116 |
||
117 |
"Created: 7.1.1997 / 22:18:19 / cg" |
|
118 |
"Modified: 15.1.1997 / 21:15:38 / cg" |
|
119 |
! ! |
|
120 |
||
2195 | 121 |
!AbstractLauncherApplication class methodsFor:'queries'! |
122 |
||
123 |
isVisualStartable |
|
2845 | 124 |
"return true, if this application can be started via #open. |
125 |
(to allow start of a change browser via double-click in the browser)" |
|
2195 | 126 |
|
2762 | 127 |
"/ assume all my subclasses can |
128 |
^ self ~~ AbstractLauncherApplication |
|
129 |
||
130 |
" |
|
131 |
AbstractLauncherApplication isVisualStartable |
|
132 |
NewLauncher isVisualStartable |
|
133 |
" |
|
2195 | 134 |
! ! |
135 |
||
2001 | 136 |
!AbstractLauncherApplication methodsFor:'private'! |
137 |
||
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
138 |
findApplicationClass:classOrClassName nameSpace:aNameSpace |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
139 |
"find some application, given the classes name. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
140 |
Look for it in Smalltalk and the given nameSpace" |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
141 |
|
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
142 |
|cls| |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
143 |
|
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
144 |
classOrClassName isBehavior ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
145 |
cls := classOrClassName. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
146 |
] ifFalse:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
147 |
cls := Smalltalk at:classOrClassName asSymbol. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
148 |
cls isNil ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
149 |
"/ look if its in the nameSpace |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
150 |
aNameSpace notNil ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
151 |
cls := aNameSpace at:classOrClassName asSymbol |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
152 |
] |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
153 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
154 |
cls isNil ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
155 |
self warn:(resources string:'Sorry, the %1 class is not available.' with:classOrClassName). |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
156 |
^ nil |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
157 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
158 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
159 |
^ cls |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
160 |
! |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
161 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
162 |
findWindow:title |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
163 |
"a helper for find & destroy and find & raise operations; |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
164 |
let user choose a view and return it; return nil on cancel" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
165 |
|
2766 | 166 |
^ self findWindow:title windowGroupFilter:nil |
167 |
||
168 |
! |
|
169 |
||
170 |
findWindow:title windowGroupFilter:windowGroupFilterOrNil |
|
171 |
"a helper for find & destroy and find & raise operations; |
|
172 |
let user choose a view and return it; return nil on cancel" |
|
173 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
174 |
|knownTopViews nameList box| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
175 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
176 |
knownTopViews := IdentitySet new. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
177 |
Screen allScreens do:[:aScreen | |
2766 | 178 |
aScreen knownViews do:[:aView | |
179 |
|top showIt wg| |
|
180 |
||
181 |
aView notNil ifTrue:[ |
|
182 |
top := aView topView. |
|
183 |
(top isKindOf:DebugView) ifTrue:[ |
|
184 |
"/ although modal, show it. |
|
185 |
showIt := top realized |
|
186 |
] ifFalse:[ |
|
187 |
wg := top windowGroup. |
|
188 |
showIt := (wg notNil and:[wg isModal not]). |
|
189 |
showIt ifTrue:[ |
|
190 |
windowGroupFilterOrNil notNil ifTrue:[ |
|
191 |
showIt := windowGroupFilterOrNil includes:wg |
|
192 |
] |
|
193 |
] |
|
194 |
]. |
|
195 |
showIt ifTrue:[ |
|
196 |
knownTopViews add:top |
|
197 |
] |
|
198 |
] |
|
199 |
] |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
200 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
201 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
202 |
knownTopViews := knownTopViews asOrderedCollection. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
203 |
knownTopViews sort:[:v1 :v2 | |l1 l2| |
2766 | 204 |
l1 := v1 label ? 'aView'. |
205 |
l2 := v2 label ? 'aView'. |
|
206 |
l1 < l2 |
|
207 |
]. |
|
2041 | 208 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
209 |
nameList := knownTopViews collect:[:v | |
2766 | 210 |
|isDead wg p l| |
211 |
||
212 |
l := v label ? 'aView'. |
|
213 |
v device == Display ifFalse:[ |
|
214 |
l := l , ' [' , (v device displayName ? '?') , ']' |
|
215 |
]. |
|
216 |
((wg := v windowGroup) notNil |
|
217 |
and:[(p := wg process) notNil |
|
218 |
and:[p state ~~ #dead]]) ifTrue:[ |
|
219 |
l |
|
220 |
] ifFalse:[ |
|
221 |
l , ' (dead ?)' |
|
222 |
] |
|
223 |
]. |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
224 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
225 |
box := ListSelectionBox new. |
2766 | 226 |
box selectionChangeCallback:[:selectionIndex | |v| |
227 |
v := knownTopViews at:box selectionIndex. |
|
228 |
v raise. box raise |
|
229 |
]. |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
230 |
box noEnterField. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
231 |
box list:nameList. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
232 |
box label:(resources string:'view selection'). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
233 |
box title:(resources string:title) withCRs. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
234 |
box action:[:selection | |
2766 | 235 |
|v| |
236 |
||
237 |
v := knownTopViews at:box selectionIndex. |
|
238 |
box destroy. |
|
239 |
^ v |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
240 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
241 |
box extent:400@300. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
242 |
box showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
243 |
^ nil |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
244 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
245 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
246 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
247 |
openApplication: classOrClassName |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
248 |
"open an application, given by the classe name." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
249 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
250 |
self openApplication:classOrClassName nameSpace:nil |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
251 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
252 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
253 |
openApplication:classOrClassName nameSpace:aNameSpace |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
254 |
"open some application, given the classes name. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
255 |
Look for it in Smalltalk and the given nameSpace" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
256 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
257 |
self openApplication:classOrClassName nameSpace:aNameSpace with:#open |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
258 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
259 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
260 |
openApplication:classOrClassName nameSpace:aNameSpace with:aSelector |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
261 |
"open some application, given the classes name. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
262 |
Look for it in Smalltalk and the given nameSpace" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
263 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
264 |
|cls| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
265 |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
266 |
cls := self findApplicationClass:classOrClassName nameSpace:aNameSpace. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
267 |
cls isNil ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
268 |
^ self |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
269 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
270 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
271 |
Autoload autoloadFailedSignal handle:[:ex | |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
272 |
self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:cls name) |
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
273 |
] do:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
274 |
self withWaitCursorDo:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
275 |
cls perform:aSelector |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
276 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
277 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
278 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
279 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
280 |
pickAView |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
281 |
"let user pick a view and return it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
282 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
283 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
284 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
285 |
(Delay forSeconds:1) wait. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
286 |
v := Screen current viewFromUser. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
287 |
v isNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
288 |
self warn:'Sorry, this is not a smalltalk view'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
289 |
^ nil |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
290 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
291 |
^ v |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
292 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
293 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
294 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
295 |
saveScreenImage:anImage defaultName:defaultName |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
296 |
"save an image into a file |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
297 |
- ask user for filename using a fileSelectionBox." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
298 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
299 |
|fileName| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
300 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
301 |
fileName := Dialog |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
302 |
requestFileName:(resources string:'save image in:') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
303 |
default:(defaultName , '.tiff') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
304 |
ok:(resources string:'save') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
305 |
abort:(resources string:'cancel') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
306 |
pattern:'*.tiff'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
307 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
308 |
fileName notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
309 |
anImage saveOn:fileName |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
310 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
311 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
312 |
"Modified: / 21.2.1996 / 13:09:28 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
313 |
"Created: / 29.1.1998 / 23:20:36 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
314 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
315 |
|
2001 | 316 |
showDocumentation:aRelativeDocFilePath |
317 |
"open an HTML browser on some document" |
|
318 |
||
319 |
" |
|
320 |
although that one is not yet finished, |
|
321 |
its better than nothing ... |
|
322 |
" |
|
323 |
HTMLDocumentView notNil ifTrue:[ |
|
324 |
self withWaitCursorDo:[ |
|
325 |
" |
|
326 |
temporary kludge; |
|
327 |
not all machines can autoload binaries; |
|
328 |
however, on my SGI (which can) we want it |
|
329 |
to load automatically. |
|
330 |
" |
|
331 |
HTMLDocumentView isLoaded ifFalse:[ |
|
332 |
ErrorSignal catch:[HTMLDocumentView autoload] |
|
333 |
]. |
|
334 |
HTMLDocumentView isLoaded ifTrue:[ |
|
335 |
HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. |
|
336 |
^ self |
|
337 |
]. |
|
338 |
] |
|
339 |
]. |
|
340 |
||
341 |
self warn:'Sorry, the ST/X HTML reader is not |
|
342 |
included in this release. |
|
343 |
||
344 |
Please use Mosaic, netscape, chimera or any |
|
345 |
other HTML viewer to see the documentation. |
|
346 |
||
347 |
The documentation is found in the ''doc/online'' directory.'. |
|
348 |
||
349 |
"Modified: / 25.2.1998 / 21:24:20 / cg" |
|
350 |
! ! |
|
351 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
352 |
!AbstractLauncherApplication methodsFor:'private - settings callBacks'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
353 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
354 |
changeViewStyleTo:newStyle |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
355 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
356 |
newStyle notNil ifTrue:[ |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
357 |
self withWaitCursorDo:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
358 |
(transcript ? Transcript) showCR:'change style to ' , newStyle , ' ...'. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
359 |
View defaultStyle:newStyle asSymbol. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
360 |
]. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
361 |
self reopenLauncher. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
362 |
DebugView newDebugger. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
363 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
364 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
365 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
366 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
367 |
fontBoxForEncoding:encodingMatch |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
368 |
"open a fontBox, showing fonts which match some encoding |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
369 |
(used when changing to japanese ...)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
370 |
|
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
371 |
^ LauncherDialogs fontBoxForEncoding:encodingMatch for:self. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
372 |
|
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
373 |
"/ |box y b |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
374 |
"/ labelDef buttonDef listDef menuDef textDef |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
375 |
"/ models labels allOfThem filter| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
376 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
377 |
"/ encodingMatch notNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
378 |
"/ filter := [:f | f encoding notNil |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
379 |
"/ and:[encodingMatch match:f encoding]]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
380 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
381 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
382 |
"/ models := OrderedCollection new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
383 |
"/ labels := OrderedCollection new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
384 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
385 |
"/ models add:(allOfThem := nil asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
386 |
"/ models add:(labelDef := Label defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
387 |
"/ models add:(buttonDef := Button defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
388 |
"/ models add:(listDef := SelectionInListView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
389 |
"/ models add:(menuDef := MenuView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
390 |
"/ models add:(textDef := TextView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
391 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
392 |
"/ box := Dialog new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
393 |
"/ box label:(resources string:'Font settings'). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
394 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
395 |
"/ models |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
396 |
"/ with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
397 |
"/ do:[:model :title | |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
398 |
"/ |y2 lbl f i| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
399 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
400 |
"/ f := model value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
401 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
402 |
"/ (box addTextLabel:title) adjust:#left. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
403 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
404 |
"/ y := box yPosition. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
405 |
"/ b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
406 |
"/ b relativeExtent:nil; extent:(b preferredExtent). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
407 |
"/ y2 := box yPosition. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
408 |
"/ box yPosition:y. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
409 |
"/ i := box leftIndent. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
410 |
"/ box leftIndent:(b widthIncludingBorder + View viewSpacing). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
411 |
"/ (lbl := box addTextLabel:'') |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
412 |
"/ adjust:#left; |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
413 |
"/ font:(model value); |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
414 |
"/ labelChannel:(BlockValue |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
415 |
"/ with:[:v | |f| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
416 |
"/ f := v value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
417 |
"/ f isNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
418 |
"/ '' |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
419 |
"/ ] ifFalse:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
420 |
"/ f userFriendlyName |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
421 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
422 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
423 |
"/ argument:model). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
424 |
"/ labels add:lbl. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
425 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
426 |
"/ box leftIndent:i. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
427 |
"/ box yPosition:(box yPosition max:y2). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
428 |
"/ box addVerticalSpace. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
429 |
"/ box addHorizontalLine. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
430 |
"/ box addVerticalSpace. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
431 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
432 |
"/ b action:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
433 |
"/ |f| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
434 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
435 |
"/ f := FontPanel |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
436 |
"/ fontFromUserInitial:(model value) |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
437 |
"/ title:(resources string:'font for %1' with:title) |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
438 |
"/ filter:filter. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
439 |
"/ f notNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
440 |
"/ model == allOfThem ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
441 |
"/ models do:[:m | m value:f]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
442 |
"/ labels do:[:l | l font:f] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
443 |
"/ ] ifFalse:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
444 |
"/ model value:f. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
445 |
"/ lbl font:f. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
446 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
447 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
448 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
449 |
"/ model == allOfThem ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
450 |
"/ box addVerticalSpace |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
451 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
452 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
453 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
454 |
"/ box addAbortButton; addOkButton. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
455 |
"/ (box addButton:(Button label:(resources string:'defaults')) before:nil) |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
456 |
"/ action:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
457 |
"/ "/ fetch defaults |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
458 |
"/ View readStyleSheetAndUpdateAllStyleCaches. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
459 |
"/ labelDef value: Label defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
460 |
"/ buttonDef value: Button defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
461 |
"/ listDef value: SelectionInListView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
462 |
"/ menuDef value: MenuView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
463 |
"/ textDef value: TextView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
464 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
465 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
466 |
"/ box open. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
467 |
"/ box accepted ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
468 |
"/ Label defaultFont:labelDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
469 |
"/ Button defaultFont:buttonDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
470 |
"/ Toggle defaultFont:buttonDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
471 |
"/ SelectionInListView defaultFont:listDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
472 |
"/ MenuView defaultFont:menuDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
473 |
"/ PullDownMenu defaultFont:menuDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
474 |
"/ TextView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
475 |
"/ EditTextView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
476 |
"/ CodeView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
477 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
478 |
"/ box destroy. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
479 |
"/ ^ box accepted |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
480 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
481 |
"Modified: / 15.9.1998 / 22:04:56 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
482 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
483 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
484 |
reopenLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
485 |
"reopen a new launcher. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
486 |
for now (since style & language settings currently do |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
487 |
not affect living views ...) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
488 |
WARNING: bad design: Message known in LauncherDialogs" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
489 |
|
2034
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
490 |
|oldOrigin contents builder newLauncher| |
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
491 |
|
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
492 |
oldOrigin := self window origin. |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
493 |
transcript notNil ifTrue:[contents := transcript endEntry; list]. |
2034
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
494 |
builder := self class openAt:oldOrigin. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
495 |
builder window waitUntilVisible. |
2034
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
496 |
builder window origin:oldOrigin. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
497 |
newLauncher := builder application. |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
498 |
transcript notNil ifTrue:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
499 |
newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
500 |
]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
501 |
^ newLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
502 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
503 |
"Modified: / 4.8.1998 / 17:08:33 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
504 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
505 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
506 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
507 |
!AbstractLauncherApplication methodsFor:'queries'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
508 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
509 |
processName |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
510 |
"for monitors only - my name" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
511 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
512 |
^ 'ST/X Launcher' |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
513 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
514 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
515 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
516 |
transcript |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
517 |
"my transcript" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
518 |
|
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
519 |
^ transcript ifNil:[Transcript current] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
520 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
521 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
522 |
!AbstractLauncherApplication methodsFor:'startup / release'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
523 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
524 |
addTopViewsToCurrentProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
525 |
"ignored here - the launcher is always global (i.e. not project private)." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
526 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
527 |
^ self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
528 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
529 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
530 |
|
2314
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
531 |
closeDownViews |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
532 |
OpenLaunchers remove:self ifAbsent:nil. |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
533 |
super closeDownViews |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
534 |
! |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
535 |
|
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
536 |
postBuildWith:aBuilder |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
537 |
super postBuildWith:aBuilder. |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
538 |
|
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
539 |
OpenLaunchers isNil ifTrue:[ |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
540 |
OpenLaunchers := IdentitySet new. |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
541 |
]. |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
542 |
OpenLaunchers add:self |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
543 |
|
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
544 |
! |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
545 |
|
2040 | 546 |
requestForWindowClose |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
547 |
"close request from windowing system (window close); |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
548 |
confirm and ask if closing of launcher only or |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
549 |
a smalltalk-exit is wanted" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
550 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
551 |
|answer| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
552 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
553 |
answer := Dialog |
2165 | 554 |
confirmWithCancel:(resources string:'Close %1 only or exit Smalltalk (close all)?' with:self class name) |
555 |
labels:(resources array:#('Cancel' 'Close' 'Exit')) |
|
556 |
default:3. |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
557 |
answer isNil ifTrue:[ |
2165 | 558 |
"/ cancel |
559 |
^ false |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
560 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
561 |
|
2165 | 562 |
answer == false ifTrue:[ |
563 |
^ true |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
564 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
565 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
566 |
self exit |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
567 |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
568 |
"Modified: / 20.5.1999 / 17:24:47 / cg" |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
569 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
570 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
571 |
saveAndTerminateRequest |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
572 |
"some windowManagers can send this, to shutDown an application |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
573 |
but let it save its state before, for later restart. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
574 |
Although I have not yet encountered such a windowManager, |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
575 |
we are already prepared for this ;-)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
576 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
577 |
self snapshot. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
578 |
super saveAndTerminateRequest |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
579 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
580 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
581 |
|
2001 | 582 |
!AbstractLauncherApplication methodsFor:'user actions - about'! |
583 |
||
584 |
openLicenseConditions |
|
585 |
"open an HTML browser on the 'LICENCE' document" |
|
586 |
||
587 |
self withWaitCursorDo:[ |
|
588 |
|lang doc| |
|
589 |
||
590 |
Smalltalk releaseIdentification = 'ST/X_free_demo_vsn' ifTrue:[ |
|
591 |
doc := 'english/LICENCE_DEMO_STX.html' |
|
592 |
] ifFalse:[ |
|
593 |
((lang := Smalltalk language) = 'de' |
|
594 |
or:[lang = 'german']) ifTrue:[ |
|
595 |
doc := 'german/LICENCE_STX.html' |
|
596 |
] ifFalse:[ |
|
597 |
doc := 'english/LICENCE_STX.html' |
|
598 |
]. |
|
599 |
]. |
|
600 |
doc := resources at:'LICENCEFILE' default:doc. |
|
601 |
self showDocumentation:('../' , doc) |
|
602 |
] |
|
603 |
||
604 |
"Created: / 5.2.1998 / 21:43:19 / cg" |
|
605 |
"Modified: / 23.4.1998 / 11:45:53 / cg" |
|
606 |
! ! |
|
607 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
608 |
!AbstractLauncherApplication methodsFor:'user actions - classes'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
609 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
610 |
browseAllBreakAndTracePoints |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
611 |
"open a browser showing all breakPointed/traced methods |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
612 |
(but, to get rid of them, there is also a menu itme to remove them all)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
613 |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
614 |
UserPreferences current systemBrowserClass |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
615 |
browseMethods:(WrappedMethod allInstances) |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
616 |
title:'all breakPointed/traced methods' |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
617 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
618 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
619 |
browseImplementors |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
620 |
"open an implementors- browser after asking for a selector" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
621 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
622 |
|enterBox selector| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
623 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
624 |
enterBox := EnterBox |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
625 |
title:(resources at:'Browse implementors of:') withCRs |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
626 |
okText:(resources at:'browse') |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
627 |
action:[:acceptedString | selector := acceptedString]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
628 |
enterBox showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
629 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
630 |
selector notNil ifTrue:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
631 |
self withWaitCursorDo:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
632 |
UserPreferences current systemBrowserClass |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
633 |
browseImplementorsOf:selector |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
634 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
635 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
636 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
637 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
638 |
browseResources |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
639 |
"open a resource- browser after asking for a resource string" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
640 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
641 |
|box resourceHolder valueHolder component rsrc value t anyString| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
642 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
643 |
anyString := resources string:'* any *'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
644 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
645 |
resourceHolder := ValueHolder newString. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
646 |
valueHolder := '*' asValue. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
647 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
648 |
box := DialogBox new. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
649 |
box label:(resources at:'Resource search:'). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
650 |
component := box addTextLabel:(resources at:'Search for methods which contain a\particular resource specification') withCRs. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
651 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
652 |
box addVerticalSpace:10. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
653 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
654 |
component := box addTextLabel:(resources at:'Resource symbol (empty for any; no matchPattern allowed):') withCRs. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
655 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
656 |
component := box addComboBoxOn:resourceHolder tabable:true. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
657 |
component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' nil 'needsFix')). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
658 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
659 |
component := box addTextLabel:(resources at:'Resource value (* for any; matchPattern is allowed):') withCRs. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
660 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
661 |
box addInputFieldOn:valueHolder tabable:true. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
662 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
663 |
box addVerticalSpace:10. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
664 |
box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'. |
2048 | 665 |
box addAbortAndOkButtons. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
666 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
667 |
box showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
668 |
box destroy. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
669 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
670 |
box accepted ifTrue:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
671 |
rsrc := resourceHolder value. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
672 |
value := valueHolder value. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
673 |
|
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
674 |
(rsrc size == 0 or:[rsrc = '*' or:[rsrc = anyString]]) ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
675 |
t := 'methods with any resource'. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
676 |
rsrc := nil |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
677 |
] ifFalse:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
678 |
t := 'methods with #' , rsrc , '-resource'. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
679 |
rsrc := rsrc withoutSeparators asSymbol |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
680 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
681 |
(value size == 0 or:[value = '*']) ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
682 |
t := t , ' and any value'. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
683 |
value := nil |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
684 |
] ifFalse:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
685 |
t := t , ' and value ' , value. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
686 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
687 |
self withWaitCursorDo:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
688 |
UserPreferences current systemBrowserClass |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
689 |
browseForResource:rsrc |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
690 |
containing:value |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
691 |
in:(Smalltalk allClasses) |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
692 |
title:t |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
693 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
694 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
695 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
696 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
697 |
browseSenders |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
698 |
"open a senders- browser after asking for a selector" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
699 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
700 |
|enterBox selector| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
701 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
702 |
enterBox := EnterBox |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
703 |
title:(resources at:'Browse senders of:') withCRs |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
704 |
okText:(resources at:'browse') |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
705 |
action:[:acceptedString | selector := acceptedString]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
706 |
enterBox showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
707 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
708 |
selector notNil ifTrue:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
709 |
self withWaitCursorDo:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
710 |
UserPreferences current systemBrowserClass |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
711 |
browseAllCallsOn:selector |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
712 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
713 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
714 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
715 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
716 |
browseUndeclared |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
717 |
"open a browser on methods refering to undeclared variables" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
718 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
719 |
self withWaitCursorDo:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
720 |
UserPreferences current systemBrowserClass |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
721 |
browseReferendsOf:(Smalltalk underclaredPrefix , '*') |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
722 |
title:(resources string:'references to undeclared variables') |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
723 |
warnIfNone:true |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
724 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
725 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
726 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
727 |
removeAllBreakAndTracePoints |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
728 |
"remove all break- and trace points" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
729 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
730 |
self withCursor:Cursor execute do:[ MessageTracer cleanup] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
731 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
732 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
733 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
734 |
startClassBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
735 |
"open a classBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
736 |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
737 |
UserPreferences current systemBrowserClass askThenBrowseClass |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
738 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
739 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
740 |
startClassHierarchyBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
741 |
"open a classHierarchyBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
742 |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
743 |
UserPreferences current systemBrowserClass askThenBrowseClassHierarchy |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
744 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
745 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
746 |
startFullClassBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
747 |
"open a fullClass systemBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
748 |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
749 |
UserPreferences current systemBrowserClass askThenBrowseFullClassProtocol |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
750 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
751 |
|
2038 | 752 |
!AbstractLauncherApplication methodsFor:'user actions - demos'! |
753 |
||
754 |
startRemoteLauncher |
|
2754 | 755 |
|host remoteDisplay remoteDisplayClass| |
2038 | 756 |
|
2620 | 757 |
host := Dialog |
758 |
request:(resources string:'Remote Launcher on which display:') |
|
759 |
initialAnswer:'<hostName>:0'. |
|
2038 | 760 |
host size > 0 ifTrue:[ |
2359 | 761 |
(host includes:$:) ifFalse:[ |
762 |
host := (host , ':0') |
|
763 |
]. |
|
2754 | 764 |
|
765 |
remoteDisplayClass := XWorkstation. |
|
766 |
||
2755
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
767 |
"/ "/ Q: should we allow GL graphics on the remote display |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
768 |
"/ "/ (Problem: the GL library is not threadsafe, when multiple-display connections |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
769 |
"/ "/ are open - leading to mixing output between views ...) |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
770 |
"/ |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
771 |
"/ "/ only simulated GL can be done remote (i.e. not on SGI) |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
772 |
"/ (Screen current supportsGLDrawing |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
773 |
"/ and:[Screen current isTrueGL not]) |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
774 |
"/ ifTrue:[ |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
775 |
"/ remoteDisplayClass := GLXWorkstation. |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
776 |
"/ ]. |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
777 |
|
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
778 |
remoteDisplay := remoteDisplayClass newDispatchingFor:host. |
2359 | 779 |
remoteDisplay isNil ifTrue:[ |
780 |
self warn:'Could not connect to display: ''' , host , '''.'. |
|
781 |
^ self |
|
782 |
]. |
|
2755
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
783 |
Screen currentScreenQuerySignal |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
784 |
answer:remoteDisplay |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
785 |
do:[ |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
786 |
self class open. |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
787 |
] |
2038 | 788 |
]. |
789 |
||
790 |
"Created: / 10.9.1998 / 11:48:42 / cg" |
|
791 |
! ! |
|
792 |
||
2001 | 793 |
!AbstractLauncherApplication methodsFor:'user actions - file'! |
794 |
||
795 |
objectModuleDialog |
|
796 |
"opens a moduleInfo dialog" |
|
797 |
||
798 |
^ LauncherDialogs objectModuleDialogFor:self |
|
799 |
||
800 |
"Modified: / 31.7.1998 / 17:33:24 / cg" |
|
801 |
! |
|
802 |
||
2490
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
803 |
packageDialog |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
804 |
"opens a package dialog" |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
805 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
806 |
^ LauncherDialogs packageDialogFor:self |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
807 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
808 |
"Modified: / 31.7.1998 / 17:33:24 / cg" |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
809 |
! |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
810 |
|
2001 | 811 |
saveImageAs: aFileName |
812 |
"save image in aFilename" |
|
813 |
||
814 |
aFileName notNil ifTrue:[ |
|
2621 | 815 |
self withCursor:Cursor write do:[ |
816 |
(ObjectMemory snapShotOn:aFileName) ifFalse:[ |
|
817 |
self warn:('Failed to save snapshot image (disk full or not writable)'). |
|
818 |
] |
|
819 |
]. |
|
2001 | 820 |
]. |
821 |
! ! |
|
822 |
||
823 |
!AbstractLauncherApplication methodsFor:'user actions - help'! |
|
824 |
||
825 |
showBookPrintDocument |
|
826 |
"open an HTML browser on the 'book'-printing document" |
|
827 |
||
828 |
self showDocumentation:'BOOK.html' |
|
829 |
! |
|
830 |
||
831 |
startClassDocumentation |
|
832 |
"open an HTML browser on the 'classDoc/TOP' document" |
|
833 |
||
834 |
self showDocumentation:'classDoc/TOP.html' |
|
835 |
||
836 |
! |
|
837 |
||
838 |
startDocumentationIndex |
|
839 |
"open an HTML browser on the 'index' document" |
|
840 |
||
841 |
self showDocumentation:'index.html' |
|
842 |
! |
|
843 |
||
844 |
startDocumentationTool |
|
845 |
"open an HTML browser on the 'TOP' document" |
|
846 |
||
847 |
self showDocumentation:'TOP.html' |
|
848 |
||
849 |
! |
|
850 |
||
851 |
startWhatsNewDocumentation |
|
852 |
"open an HTML browser on the 'whatsNew.html' document" |
|
853 |
||
854 |
self showDocumentation:'whatsNew.html' |
|
855 |
||
2296 | 856 |
! |
857 |
||
858 |
startWhatsNewSTX |
|
859 |
"open an HTML browser on the 'relNotes.html' document" |
|
860 |
||
861 |
self showDocumentation:'newFeatures.html' |
|
862 |
||
2001 | 863 |
! ! |
864 |
||
865 |
!AbstractLauncherApplication methodsFor:'user actions - settings'! |
|
866 |
||
2196 | 867 |
communicationsSettings |
868 |
"open a dialog on misc other settings" |
|
869 |
||
870 |
self settingsDialog:#communicationsSettingsFor: |
|
871 |
||
872 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
873 |
! |
|
874 |
||
2001 | 875 |
compilerSettings |
876 |
"open a dialog on compiler related settings" |
|
877 |
||
878 |
self settingsDialog:#compilerSettingsFor: |
|
879 |
! |
|
880 |
||
881 |
displaySettings |
|
882 |
"open a dialog on display related settings" |
|
883 |
||
884 |
self settingsDialog:#displaySettingsFor: |
|
885 |
||
886 |
"Modified: / 31.7.1998 / 22:45:38 / cg" |
|
887 |
! |
|
888 |
||
889 |
editSettings |
|
890 |
"open a dialog on edit settings" |
|
891 |
||
892 |
self settingsDialog:#editSettingsFor: |
|
893 |
||
894 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
895 |
"Created: / 6.1.1999 / 14:14:48 / cg" |
|
896 |
! |
|
897 |
||
898 |
fontSettings |
|
899 |
"open a dialog on font related settings" |
|
900 |
||
901 |
self settingsDialog:#fontSettingsFor: |
|
902 |
||
903 |
"Modified: / 31.7.1998 / 22:45:44 / cg" |
|
904 |
! |
|
905 |
||
906 |
javaSettings |
|
907 |
"open a dialog on java-subsystem related settings" |
|
908 |
||
909 |
self settingsDialog:#javaSettingsFor: |
|
910 |
||
911 |
"Modified: / 31.7.1998 / 22:46:13 / cg" |
|
912 |
! |
|
913 |
||
914 |
keyboardSetting |
|
915 |
"open a dialog on keyboard related settings" |
|
916 |
||
917 |
self settingsDialog:#keyboardSettingsFor: |
|
918 |
||
919 |
"Modified: / 31.7.1998 / 22:45:56 / cg" |
|
920 |
! |
|
921 |
||
922 |
languageSetting |
|
923 |
"open a dialog on language related settings" |
|
924 |
||
925 |
self settingsDialog:#languageSettingsFor: |
|
926 |
||
927 |
"Modified: / 31.7.1998 / 22:46:13 / cg" |
|
928 |
! |
|
929 |
||
930 |
loadSettings |
|
931 |
"restore settings from a settings-file." |
|
932 |
||
933 |
"a temporary kludge - we need a central systemSettings object for this, |
|
934 |
which can be saved/restored with a single store/read." |
|
935 |
||
936 |
|fileName| |
|
937 |
||
938 |
fileName := Dialog |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
939 |
requestFileName:(resources string:'load settings from:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
940 |
default:'settings.stx' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
941 |
ok:(resources string:'load') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
942 |
abort:(resources string:'cancel') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
943 |
pattern:'*.stx' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
944 |
fromDirectory:nil. |
2021 | 945 |
|
946 |
(fileName size == 0) ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
947 |
"/ canceled |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
948 |
^ self |
2001 | 949 |
]. |
950 |
||
951 |
self withWaitCursorDo:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
952 |
Smalltalk fileIn:fileName. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
953 |
self reOpen |
2001 | 954 |
]. |
955 |
||
956 |
||
957 |
! |
|
958 |
||
959 |
memorySettings |
|
960 |
"open a dialog on objectMemory related settings" |
|
961 |
||
962 |
self settingsDialog:#memorySettingsFor: |
|
963 |
||
964 |
"Modified: / 31.7.1998 / 22:46:33 / cg" |
|
965 |
! |
|
966 |
||
967 |
messageSettings |
|
968 |
"open a dialog on infoMessage related settings" |
|
969 |
||
970 |
self settingsDialog:#messageSettingsFor: |
|
971 |
||
972 |
"Modified: / 31.7.1998 / 22:46:45 / cg" |
|
973 |
! |
|
974 |
||
975 |
miscSettings |
|
976 |
"open a dialog on misc other settings" |
|
977 |
||
978 |
self settingsDialog:#miscSettingsFor: |
|
979 |
||
980 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
981 |
! |
|
982 |
||
983 |
printerSettings |
|
984 |
"open a dialog on printer related settings" |
|
985 |
||
986 |
self settingsDialog:#printerSettingsFor: |
|
987 |
||
988 |
"Modified: / 31.7.1998 / 22:47:05 / cg" |
|
989 |
! |
|
990 |
||
991 |
saveSettings |
|
992 |
"save settings to a settings-file." |
|
993 |
||
994 |
self settingsDialog:#saveSettingsFor: |
|
995 |
||
996 |
"Modified: / 31.7.1998 / 22:48:38 / cg" |
|
997 |
! |
|
998 |
||
999 |
settingsDialog:symbol |
|
1000 |
"open a dialog on viewStyle related settings" |
|
1001 |
||
2196 | 1002 |
|handler| |
1003 |
||
1004 |
RegisteredMenuHandlers notNil ifTrue:[ |
|
1005 |
handler := RegisteredMenuHandlers at:symbol ifAbsent:nil. |
|
1006 |
]. |
|
1007 |
handler isNil ifTrue:[ |
|
1008 |
handler := LauncherDialogs |
|
1009 |
]. |
|
1010 |
handler perform:symbol with:self. |
|
2001 | 1011 |
|
1012 |
"Modified: / 31.7.1998 / 22:47:33 / cg" |
|
1013 |
! |
|
1014 |
||
1015 |
sourceAndDebuggerSettings |
|
1016 |
"open a dialog on misc other settings" |
|
1017 |
||
1018 |
self settingsDialog:#sourceAndDebuggerSettingsFor: |
|
1019 |
||
1020 |
"Modified: / 31.7.1998 / 22:47:21 / cg" |
|
1021 |
! |
|
1022 |
||
1023 |
toolSettings |
|
1024 |
"open a dialog on tool settings" |
|
1025 |
||
1026 |
self settingsDialog:#toolSettingsFor: |
|
1027 |
||
1028 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
1029 |
"Created: / 13.10.1998 / 15:50:53 / cg" |
|
1030 |
! |
|
1031 |
||
1032 |
viewStyleSetting |
|
1033 |
"open a dialog on viewStyle related settings" |
|
1034 |
||
1035 |
self settingsDialog:#viewStyleSettingsFor: |
|
1036 |
||
1037 |
"Modified: / 31.7.1998 / 22:47:33 / cg" |
|
1038 |
! ! |
|
1039 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1040 |
!AbstractLauncherApplication methodsFor:'user actions - system'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1041 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1042 |
compressingGarbageCollect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1043 |
"perform a compressing garbageCollect" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1044 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1045 |
self withWaitCursorDo:[ObjectMemory verboseGarbageCollect] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1046 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1047 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1048 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1049 |
garbageCollect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1050 |
"perform a non-compressing garbageCollect" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1051 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1052 |
self withWaitCursorDo:[ObjectMemory reclaimSymbols] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1053 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1054 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1055 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1056 |
startStopEventTrace |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1057 |
"start/stop event tracing for a particular view" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1058 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1059 |
|v wg| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1060 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1061 |
v := Screen current viewFromUser. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1062 |
v notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1063 |
v := v topView. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1064 |
wg := v windowGroup. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1065 |
wg notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1066 |
"/ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1067 |
"/ toggle eventTrace in its windowGroup |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1068 |
"/ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1069 |
wg traceEvents:(wg preEventHook isNil) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1070 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1071 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1072 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1073 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1074 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1075 |
!AbstractLauncherApplication methodsFor:'user actions - tools'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1076 |
|
2210 | 1077 |
inspectGlobalVariables |
1078 |
"inspect globals" |
|
1079 |
||
1080 |
Smalltalk inspect |
|
1081 |
! |
|
1082 |
||
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1083 |
inspectWorkspaceVariables |
2210 | 1084 |
"inspect workspace variables" |
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1085 |
|
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1086 |
Workspace workspaceVariables inspect |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1087 |
! |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1088 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1089 |
newProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1090 |
"creates a new project & opens a projectView for it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1091 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1092 |
Project notNil ifTrue: [(ProjectView for: Project new) open] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1093 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1094 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1095 |
openTerminal |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1096 |
self openApplication:#VT100TerminalView |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1097 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1098 |
"Created: / 27.7.1998 / 12:48:30 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1099 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1100 |
|
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1101 |
removeAllWorkspaceVariables |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1102 |
"remove workspace variables" |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1103 |
|
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1104 |
Workspace removeAllWorkspaceVariables |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1105 |
! |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1106 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1107 |
selectProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1108 |
"asks for and switch to another project" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1109 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1110 |
|list box| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1111 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1112 |
Project notNil ifTrue:[ |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1113 |
list := Project allInstances. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1114 |
box := ListSelectionBox new. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1115 |
box list:(list collect:[:p | p name]). |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1116 |
box title:(resources string:'select a project'). |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1117 |
box action:[:selection | |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1118 |
|project| |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1119 |
|
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1120 |
project := list detect:[:p | p name = selection] ifNone:[nil]. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1121 |
project isNil ifTrue:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1122 |
transcript notNil ifTrue:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1123 |
transcript showCR:'no such project.' |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1124 |
] |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1125 |
] ifFalse:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1126 |
project showViews. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1127 |
Project current:project |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1128 |
] |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1129 |
]. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1130 |
box showAtPointer. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1131 |
box destroy |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1132 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1133 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1134 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1135 |
startChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1136 |
"open a changebrowser - either new or old GUI, depending on userPrefs" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1137 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1138 |
self openApplication:(UserPreferences current changesBrowserClass) |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1139 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1140 |
"Modified: / 17.10.1998 / 14:38:18 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1141 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1142 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1143 |
startNewChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1144 |
"opens the new changeBrowser" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1145 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1146 |
self openApplication:#NewChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1147 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1148 |
"Created: / 6.6.1998 / 19:47:26 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1149 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1150 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1151 |
startNewLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1152 |
"opens the new launcher" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1153 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1154 |
NewLauncher isNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1155 |
^ self warn:'The NewLauncher is not available in this release.' |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1156 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1157 |
NewLauncher openAt:(self window origin) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1158 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1159 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1160 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1161 |
startOldChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1162 |
"opens the old changeBrowser" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1163 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1164 |
self openApplication:#ChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1165 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1166 |
"Created: / 6.6.1998 / 19:47:26 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1167 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1168 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1169 |
startOldLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1170 |
"opens the old launcher" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1171 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1172 |
Launcher isNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1173 |
^ self warn:'The (Old)Launcher is not available in this release.' |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1174 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1175 |
Launcher openAt:(self window origin) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1176 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1177 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1178 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1179 |
!AbstractLauncherApplication methodsFor:'user actions - windows'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1180 |
|
2765 | 1181 |
askForAnotherDisplay |
1182 |
"ask for some other display" |
|
1183 |
||
1184 |
|host anotherDisplay| |
|
1185 |
||
1186 |
host := Dialog request:'Display:' initialAnswer:'dawn:0'. |
|
2775 | 1187 |
host size == 0 ifTrue:[^ nil]. |
2765 | 1188 |
|
1189 |
anotherDisplay := XWorkstation newDispatchingFor:host. |
|
1190 |
anotherDisplay isNil ifTrue:[ |
|
1191 |
self warn:'Could not connect to remote display'. |
|
1192 |
^ nil |
|
1193 |
]. |
|
2775 | 1194 |
|
2765 | 1195 |
^ anotherDisplay |
1196 |
! |
|
1197 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1198 |
deIconifyAllWindows |
2144 | 1199 |
|setOfViews currentScreen| |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1200 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1201 |
setOfViews := Project current views asIdentitySet. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1202 |
setOfViews addAll:(Project defaultProject views). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1203 |
|
2144 | 1204 |
currentScreen := Screen current. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1205 |
setOfViews do:[:aTopView | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1206 |
aTopView device == currentScreen ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1207 |
aTopView expand |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1208 |
]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1209 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1210 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1211 |
" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1212 |
Transcript topView application deIconifyAllWindows |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1213 |
" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1214 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1215 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1216 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1217 |
findAndDestroyWindow |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1218 |
"find a window (by name) and destroy it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1219 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1220 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1221 |
v := self findWindow:'select view to close:'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1222 |
v notNil ifTrue:[v destroy] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1223 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1224 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1225 |
|
2759 | 1226 |
findAndMigrateWindow |
1227 |
"find a window (by name) and migrate it to some other display" |
|
1228 |
||
2766 | 1229 |
|possibleGroups v| |
1230 |
||
1231 |
possibleGroups := WindowGroup allInstances select:[:eachGroup | |
|
1232 |
eachGroup device == Screen current |
|
1233 |
and:[eachGroup isModal not |
|
1234 |
and:[eachGroup topViews size > 0]]]. |
|
1235 |
possibleGroups size == 0 ifTrue:[ |
|
1236 |
self information:'No windows found which could be migrated to some other display.'. |
|
1237 |
^ self |
|
1238 |
]. |
|
1239 |
||
1240 |
v := self findWindow:'Select view to migrate:' windowGroupFilter:possibleGroups. |
|
2759 | 1241 |
v notNil ifTrue:[ |
1242 |
self migrateWindow:v topView |
|
1243 |
] |
|
1244 |
! |
|
1245 |
||
2766 | 1246 |
findAndMigrateWindowBack |
1247 |
"find a window (by name) and migrate it back to this display" |
|
1248 |
||
1249 |
|possibleGroups v| |
|
1250 |
||
1251 |
possibleGroups := WindowGroup allInstances select:[:eachGroup | |
|
1252 |
eachGroup device ~~ Screen current |
|
1253 |
and:[eachGroup isModal not |
|
1254 |
and:[eachGroup topViews size > 0]]]. |
|
1255 |
possibleGroups size == 0 ifTrue:[ |
|
1256 |
self information:'No windows are open on any other display.'. |
|
1257 |
^ self |
|
1258 |
]. |
|
1259 |
||
1260 |
v := self findWindow:'Select view to migrate back:' windowGroupFilter:possibleGroups. |
|
1261 |
v notNil ifTrue:[ |
|
1262 |
v windowGroup migrateTo:(Screen current) |
|
1263 |
] |
|
1264 |
! |
|
1265 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1266 |
findAndRaiseWindow |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1267 |
"find a window (by name) and raise it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1268 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1269 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1270 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1271 |
v := self findWindow:'select view to raise deiconified:'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1272 |
v notNil ifTrue:[v raiseDeiconified] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1273 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1274 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1275 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1276 |
fullScreenHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1277 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1278 |
save the contents of the whole screen." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1279 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1280 |
Processor |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1281 |
addTimedBlock:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1282 |
self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1283 |
saveScreenImage:(Image fromScreen) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1284 |
defaultName:'screen' |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1285 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1286 |
afterSeconds:1 |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1287 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1288 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1289 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1290 |
iconifyAllWindows |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1291 |
|setOfViews currentScreen| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1292 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1293 |
setOfViews := Project current views asIdentitySet. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1294 |
setOfViews addAll:(Project defaultProject views). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1295 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1296 |
currentScreen := Screen current. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1297 |
setOfViews do:[:aTopView | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1298 |
aTopView device == currentScreen ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1299 |
aTopView collapse |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1300 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1301 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1302 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1303 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1304 |
|
2765 | 1305 |
migrateAllWindows |
1306 |
"migrate all views to some other display" |
|
1307 |
||
1308 |
|anotherDisplay toMigrate| |
|
1309 |
||
1310 |
anotherDisplay := self askForAnotherDisplay. |
|
1311 |
anotherDisplay isNil ifTrue:[ |
|
1312 |
^ self |
|
1313 |
]. |
|
1314 |
||
1315 |
toMigrate := WindowGroup allInstances |
|
1316 |
select:[:each | each device == Screen current |
|
1317 |
and:[each topViews size > 0 |
|
1318 |
and:[each isModal not]] |
|
1319 |
]. |
|
1320 |
toMigrate do:[:eachGroup | |
|
1321 |
eachGroup migrateTo:anotherDisplay |
|
1322 |
] |
|
1323 |
! |
|
1324 |
||
2759 | 1325 |
migrateWindow:aWindow |
1326 |
"migrate a view to some other display" |
|
1327 |
||
2778
1e4bf8bf1d37
block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents:
2775
diff
changeset
|
1328 |
aWindow windowGroup isModal ifTrue:[ |
1e4bf8bf1d37
block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents:
2775
diff
changeset
|
1329 |
self warn:'Sorry - I cannot migrate a modalBox; please migrate the owning View.'. |
1e4bf8bf1d37
block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents:
2775
diff
changeset
|
1330 |
^ self |
1e4bf8bf1d37
block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents:
2775
diff
changeset
|
1331 |
]. |
2775 | 1332 |
self migrateWindow:aWindow withBackOption:(self confirm:'Show ''Return Back'' Button on the other display ?') |
1333 |
||
1334 |
! |
|
1335 |
||
1336 |
migrateWindow:aWindow withBackOption:withBackOption |
|
1337 |
"migrate a view to some other display" |
|
1338 |
||
1339 |
|anotherDisplay wg here b| |
|
2765 | 1340 |
|
2766 | 1341 |
aWindow isTopView ifFalse:[ |
1342 |
self information:'Cannto migrate this view'. |
|
1343 |
^ self |
|
1344 |
]. |
|
1345 |
||
2765 | 1346 |
anotherDisplay := self askForAnotherDisplay. |
2759 | 1347 |
anotherDisplay isNil ifTrue:[ |
1348 |
^ self |
|
1349 |
]. |
|
1350 |
||
2775 | 1351 |
wg := aWindow windowGroup. |
1352 |
wg migrateTo:anotherDisplay. |
|
1353 |
||
1354 |
withBackOption ifTrue:[ |
|
1355 |
here := Screen current. |
|
1356 |
b := Button onDevice:anotherDisplay. |
|
1357 |
b label:'Return window back to ' , here displayName. |
|
1358 |
b action:[ wg migrateTo:here. b destroy. ]. |
|
1359 |
b origin:0@0. |
|
1360 |
b open. |
|
1361 |
]. |
|
2759 | 1362 |
! |
1363 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1364 |
screenHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1365 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1366 |
let user specify a rectangular area on the screen |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1367 |
and save its contents." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1368 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1369 |
|area| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1370 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1371 |
Processor |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1372 |
addTimedBlock:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1373 |
[Screen current leftButtonPressed] whileTrue:[Delay waitForSeconds:0.05]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1374 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1375 |
area := Rectangle fromUser. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1376 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1377 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1378 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1379 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1380 |
afterSeconds:1 |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1381 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1382 |
"Modified: / 18.8.1998 / 15:00:42 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1383 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1384 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1385 |
startWindowTreeView |
2371
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1386 |
"open a windowTree (on a picked topView)" |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1387 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1388 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1389 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1390 |
WindowTreeView isNil ifTrue:[ |
2371
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1391 |
^ self warn:'The WindowTreeView is not available in this release.' |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1392 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1393 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1394 |
v := self pickAView. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1395 |
v notNil ifTrue:[ |
2371
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1396 |
WindowTreeView openOn:v topView |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1397 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1398 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1399 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1400 |
|
2371
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1401 |
startWindowTreeViewForAll |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1402 |
"open a windowTree on all views in the system" |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1403 |
|
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1404 |
|v| |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1405 |
|
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1406 |
WindowTreeView isNil ifTrue:[ |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1407 |
^ self warn:'The WindowTreeView is not available in this release.' |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1408 |
]. |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1409 |
|
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1410 |
WindowTreeView openOnAll |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1411 |
|
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1412 |
! |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1413 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1414 |
viewDestroy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1415 |
"let user pick a view and destroy it. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1416 |
Even allow destroying non-smalltalk views |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1417 |
(also for views which I forgot due to some error)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1418 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1419 |
|device v id i c| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1420 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1421 |
(Delay forSeconds:1) wait. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1422 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1423 |
device := Screen current. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1424 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1425 |
i isNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1426 |
c := Cursor crossHair |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1427 |
] ifFalse:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1428 |
c := Cursor fromImage:i |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1429 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1430 |
id := device viewIdFromPoint:(device pointFromUserShowing:c). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1431 |
(v := device viewFromId:id) notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1432 |
v topView destroy. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1433 |
^ self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1434 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1435 |
id = device rootView id ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1436 |
^ self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1437 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1438 |
(Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1439 |
ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1440 |
device destroyView:nil withId:id |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1441 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1442 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1443 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1444 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1445 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1446 |
viewHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1447 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1448 |
let user specify a view and save its contents." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1449 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1450 |
Processor |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1451 |
addTimedBlock:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1452 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1453 |
(v := Screen current viewFromUser) notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1454 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1455 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1456 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1457 |
afterSeconds:1 |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1458 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1459 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1460 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1461 |
viewInspect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1462 |
"let user pick a view and inspect it. Only smalltalk views are allowed" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1463 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1464 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1465 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1466 |
(v := self pickAView) notNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1467 |
v inspect |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1468 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1469 |
|
2759 | 1470 |
! |
1471 |
||
1472 |
viewMigrate |
|
1473 |
"let user pick a view and migrate it to some other display" |
|
1474 |
||
1475 |
|v| |
|
1476 |
||
1477 |
(v := self pickAView) notNil ifTrue:[ |
|
1478 |
self migrateWindow:v topView |
|
1479 |
] |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1480 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1481 |
|
2001 | 1482 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs'! |
1483 |
||
2196 | 1484 |
communicationsSettingsFor:requestor |
1485 |
"open a dialog on communications settings" |
|
1486 |
||
2282 | 1487 |
|box check in resources y acceptChannel |
2278 | 1488 |
hasRDoitServer |
2196 | 1489 |
rDoitsEnabled rDoitLogging rDoitErrorLogging rDoitErrorDebugging |
1490 |
org_rDoitsEnabled org_rDoitLogging org_rDoitErrorLogging org_rDoitErrorDebugging |
|
2304 | 1491 |
|
2763 | 1492 |
hasWindowMigrationServer windowMigrationAuthenticate windowMigrationPassword |
2759 | 1493 |
windowMigrationEnabled |
2763 | 1494 |
org_windowMigrationEnabled org_windowMigrationAuthenticate org_windowMigrationPassword |
2759 | 1495 |
|
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1496 |
hasHTTPServer httpServerRunning httpServerFileRoot httpServerHomeURL |
2559 | 1497 |
httpServerPort httpServerLogFile hasSwiki swikiEnabled swikiRoot |
2560 | 1498 |
allowEmbedded |
2288 | 1499 |
org_httpServerRunning org_httpServerFileRoot org_httpServerHomeURL |
2559 | 1500 |
org_httpServerPort org_swikiRoot org_swikiEnabled org_httpServerLogFile |
2560 | 1501 |
org_allowEmbedded |
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1502 |
|
2196 | 1503 |
osiACSEPresent osiROSEPresent osiCMISEPresent |
2199 | 1504 |
osiACSEErrorLogging osiACSEConnectionLogging osiACSEDataLogging |
2196 | 1505 |
osiROSEErrorLogging osiROSEResponseLogging osiROSEInvokationLogging |
1506 |
osiCMISEErrorLogging osiCMISEMessageLogging |
|
2304 | 1507 |
| |
2196 | 1508 |
|
2282 | 1509 |
acceptChannel := false asValue. |
1510 |
||
2196 | 1511 |
resources := requestor class classResources. |
1512 |
||
1513 |
"/ |
|
2759 | 1514 |
"/ extract relevant windowMigration settings ... |
1515 |
"/ |
|
2763 | 1516 |
windowMigrationEnabled := windowMigrationAuthenticate := false. |
2759 | 1517 |
(hasWindowMigrationServer := WindowMigrationServer notNil) ifTrue:[ |
1518 |
WindowMigrationServer isLoaded ifTrue:[ |
|
1519 |
windowMigrationEnabled := WindowMigrationServer serverRunning. |
|
2763 | 1520 |
]. |
1521 |
windowMigrationPassword := WindowMigrationServer password. |
|
1522 |
windowMigrationAuthenticate := windowMigrationPassword notNil. |
|
2759 | 1523 |
]. |
1524 |
org_windowMigrationEnabled := windowMigrationEnabled. |
|
1525 |
windowMigrationEnabled := windowMigrationEnabled asValue. |
|
2763 | 1526 |
org_windowMigrationAuthenticate := windowMigrationAuthenticate. |
1527 |
windowMigrationAuthenticate := windowMigrationAuthenticate asValue. |
|
1528 |
org_windowMigrationPassword := windowMigrationPassword. |
|
1529 |
windowMigrationPassword := windowMigrationPassword asValue. |
|
2759 | 1530 |
|
1531 |
"/ |
|
2196 | 1532 |
"/ extract relevant rdoit settings ... |
1533 |
"/ |
|
1534 |
rDoitsEnabled := rDoitLogging := rDoitErrorLogging := false. |
|
1535 |
(hasRDoitServer := RDoItServer notNil) ifTrue:[ |
|
1536 |
RDoItServer isLoaded ifTrue:[ |
|
1537 |
rDoitsEnabled := RDoItServer serverRunning. |
|
1538 |
rDoitLogging := RDoItServer isLogging. |
|
1539 |
rDoitErrorLogging := RDoItServer isErrorLogging. |
|
1540 |
rDoitErrorDebugging := RDoItServer isErrorCatching not. |
|
1541 |
] |
|
1542 |
]. |
|
1543 |
org_rDoitsEnabled := rDoitsEnabled. |
|
1544 |
org_rDoitLogging := rDoitLogging. |
|
1545 |
org_rDoitErrorLogging := rDoitErrorLogging. |
|
1546 |
org_rDoitErrorDebugging := rDoitErrorDebugging. |
|
1547 |
||
1548 |
rDoitsEnabled := rDoitsEnabled asValue. |
|
1549 |
rDoitLogging := rDoitLogging asValue. |
|
1550 |
rDoitErrorLogging := rDoitErrorLogging asValue. |
|
1551 |
rDoitErrorDebugging := rDoitErrorDebugging asValue. |
|
1552 |
||
2759 | 1553 |
"/ |
1554 |
"/ extract http-server settings |
|
1555 |
"/ |
|
2278 | 1556 |
hasHTTPServer := httpServerRunning := false. |
1557 |
(hasHTTPServer := HTTPServer notNil) ifTrue:[ |
|
1558 |
HTTPServer isLoaded ifTrue:[ |
|
2280 | 1559 |
httpServerRunning := HTTPServer isRunning. |
1560 |
httpServerFileRoot := HTTPServer fileRoot. |
|
1561 |
httpServerHomeURL := HTTPServer homeURL. |
|
2304 | 1562 |
httpServerPort := HTTPServer defaultPort. |
2559 | 1563 |
httpServerLogFile := HTTPServer defaultLogFile. |
2278 | 1564 |
]. |
1565 |
]. |
|
1566 |
org_httpServerRunning := httpServerRunning. |
|
1567 |
httpServerRunning := httpServerRunning asValue. |
|
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1568 |
org_httpServerFileRoot := httpServerFileRoot. |
2280 | 1569 |
httpServerFileRoot := httpServerFileRoot asValue. |
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1570 |
org_httpServerHomeURL := httpServerHomeURL. |
2280 | 1571 |
httpServerHomeURL := httpServerHomeURL asValue. |
2304 | 1572 |
org_httpServerPort := httpServerPort. |
1573 |
httpServerPort := httpServerPort asValue. |
|
2559 | 1574 |
org_httpServerLogFile := httpServerLogFile. |
1575 |
httpServerLogFile := httpServerLogFile asValue. |
|
2278 | 1576 |
|
2306 | 1577 |
httpServerRunning |
2584 | 1578 |
onChangeEvaluate:[ |
2306 | 1579 |
httpServerFileRoot value:(HTTPServer fileRoot). |
1580 |
httpServerHomeURL value:(HTTPServer homeURL). |
|
1581 |
httpServerPort value:(HTTPServer defaultPort). |
|
2559 | 1582 |
httpServerLogFile value:(HTTPServer defaultLogFile) |
2306 | 1583 |
]. |
1584 |
||
2288 | 1585 |
hasSwiki := false. |
1586 |
swikiEnabled := false. |
|
1587 |
||
1588 |
(hasSwiki := PWS::SwikiAction notNil) ifTrue:[ |
|
1589 |
PWS::SwikiAction isLoaded ifTrue:[ |
|
1590 |
(HTTPServer notNil and:[HTTPServer isLoaded]) ifTrue:[ |
|
1591 |
swikiEnabled := HTTPServer hasActionLinkFor:'myswiki'. |
|
1592 |
swikiRoot := PWS::SwikiAction serverDirectory. |
|
1593 |
] |
|
1594 |
]. |
|
1595 |
]. |
|
1596 |
org_swikiRoot := swikiRoot. |
|
1597 |
org_swikiEnabled := swikiEnabled. |
|
1598 |
swikiRoot := swikiRoot asValue. |
|
2289 | 1599 |
swikiEnabled := swikiEnabled asValue. |
2288 | 1600 |
|
2306 | 1601 |
swikiEnabled |
2584 | 1602 |
onChangeEvaluate:[ |
2306 | 1603 |
swikiRoot value:(PWS::SwikiAction serverDirectory). |
1604 |
]. |
|
1605 |
||
2561
6f19bef93a30
avoid autoloading HTTPServer, when dialog is opened
Claus Gittinger <cg@exept.de>
parents:
2560
diff
changeset
|
1606 |
allowEmbedded := HTTPServer isLoaded and:[HTTPServer enableEmbeddedSmalltalk]. |
2560 | 1607 |
org_allowEmbedded := allowEmbedded. |
1608 |
allowEmbedded := allowEmbedded asValue. |
|
1609 |
||
2196 | 1610 |
"/ |
1611 |
"/ osi settings ... |
|
1612 |
"/ |
|
2763 | 1613 |
osiACSEPresent := OSI::ACSE notNil and:[OSI::ACSE isLoaded]. |
1614 |
osiROSEPresent := OSI::ROSE notNil and:[OSI::ROSE isLoaded]. |
|
1615 |
osiCMISEPresent := OSI::CMISE notNil and:[OSI::CMISE isLoaded]. |
|
2196 | 1616 |
|
1617 |
osiACSEPresent ifTrue:[ |
|
2204
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1618 |
osiACSEErrorLogging := OSI::ACSE errorLogging asValue. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1619 |
osiACSEConnectionLogging := OSI::ACSE connectionLogging asValue. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1620 |
osiACSEDataLogging := OSI::ACSE dataLogging asValue. |
2196 | 1621 |
]. |
1622 |
osiROSEPresent ifTrue:[ |
|
1623 |
osiROSEErrorLogging := OSI::ROSE errorLogging asValue. |
|
2218 | 1624 |
osiROSEInvokationLogging := OSI::ROSE invocationLogging asValue. |
2196 | 1625 |
osiROSEResponseLogging := OSI::ROSE responseLogging asValue. |
1626 |
]. |
|
1627 |
osiCMISEPresent ifTrue:[ |
|
1628 |
osiCMISEErrorLogging := OSI::CMISE errorLogging asValue. |
|
1629 |
osiCMISEMessageLogging := OSI::CMISE messageLogging asValue. |
|
1630 |
]. |
|
1631 |
||
1632 |
"/ |
|
1633 |
"/ create a box on those values ... |
|
1634 |
"/ |
|
1635 |
box := DialogBox new. |
|
2809 | 1636 |
box label:(resources string:'Communication settings'). |
1637 |
||
1638 |
box addTextLabel:(resources string:'Window migration'). |
|
2759 | 1639 |
|
1640 |
check := box addCheckBox:(resources string:'Window migration enabled') on:windowMigrationEnabled. |
|
1641 |
hasWindowMigrationServer ifFalse:[ |
|
1642 |
check disable |
|
1643 |
]. |
|
2763 | 1644 |
check := box addCheckBox:(resources string:'Password check') on:windowMigrationAuthenticate. |
1645 |
check enableChannel:windowMigrationEnabled. |
|
1646 |
hasWindowMigrationServer ifFalse:[ |
|
1647 |
check disable |
|
1648 |
]. |
|
1649 |
box leftIndent:20. |
|
1650 |
in := box |
|
1651 |
addLabelledInputField:(resources string:'Password:') |
|
1652 |
adjust:#right |
|
1653 |
on:nil |
|
1654 |
tabable:true |
|
1655 |
separateAtX:0.3. |
|
1656 |
in passwordCharacter:$*. |
|
1657 |
in model:windowMigrationPassword. |
|
1658 |
in acceptChannel:acceptChannel. |
|
1659 |
in enableChannel:windowMigrationAuthenticate. |
|
1660 |
box leftIndent:0. |
|
1661 |
||
2759 | 1662 |
box addHorizontalLine. |
1663 |
||
2279 | 1664 |
box addTextLabel:'RDoIt Server'. |
1665 |
||
2196 | 1666 |
check := box addCheckBox:(resources string:'Remote doits enabled') on:rDoitsEnabled. |
1667 |
hasRDoitServer ifFalse:[ |
|
1668 |
check disable |
|
1669 |
]. |
|
1670 |
box leftIndent:20. |
|
1671 |
y := box yPosition. |
|
1672 |
check := box addCheckBox:(resources string:'Log errors') on:rDoitErrorLogging. |
|
1673 |
check width:0.4. |
|
1674 |
check enableChannel:rDoitsEnabled. |
|
1675 |
hasRDoitServer ifFalse:[ |
|
1676 |
check disable |
|
1677 |
]. |
|
1678 |
box yPosition:y. |
|
1679 |
check := box addCheckBox:(resources string:'Log requests') on:rDoitLogging. |
|
2281 | 1680 |
check left:0.4; width:0.4. |
2196 | 1681 |
check enableChannel:rDoitsEnabled. |
1682 |
hasRDoitServer ifFalse:[ |
|
1683 |
check disable |
|
1684 |
]. |
|
1685 |
check := box addCheckBox:(resources string:'Debug errors') on:rDoitErrorDebugging. |
|
1686 |
check width:0.4. |
|
1687 |
check enableChannel:rDoitsEnabled. |
|
1688 |
hasRDoitServer ifFalse:[ |
|
1689 |
check disable |
|
1690 |
]. |
|
1691 |
box leftIndent:0. |
|
1692 |
||
1693 |
box addHorizontalLine. |
|
1694 |
||
2278 | 1695 |
box addTextLabel:'HTTP Server'. |
1696 |
||
1697 |
check := box addCheckBox:(resources string:'Serving HTTP Requests') on:httpServerRunning. |
|
1698 |
hasHTTPServer ifFalse:[ |
|
1699 |
check disable |
|
1700 |
]. |
|
2280 | 1701 |
box leftIndent:20. |
1702 |
in := box |
|
2304 | 1703 |
addLabelledInputField:(resources string:'Port:') |
1704 |
adjust:#right |
|
1705 |
on:nil |
|
1706 |
tabable:true |
|
1707 |
separateAtX:0.3. |
|
1708 |
in converter:(PrintConverter new initForNumber). |
|
1709 |
in model:httpServerPort. |
|
1710 |
in acceptChannel:acceptChannel. |
|
1711 |
in enableChannel:httpServerRunning. |
|
1712 |
||
1713 |
in := box |
|
2559 | 1714 |
addLabelledInputField:(resources string:'Log File:') |
1715 |
adjust:#right |
|
1716 |
on:httpServerLogFile |
|
1717 |
tabable:true |
|
1718 |
separateAtX:0.3. |
|
1719 |
in acceptChannel:acceptChannel. |
|
1720 |
in enableChannel:httpServerRunning. |
|
1721 |
||
1722 |
in := box |
|
2280 | 1723 |
addLabelledInputField:(resources string:'File Root:') |
1724 |
adjust:#right |
|
1725 |
on:httpServerFileRoot |
|
1726 |
tabable:true |
|
2288 | 1727 |
separateAtX:0.3. |
2282 | 1728 |
in acceptChannel:acceptChannel. |
2288 | 1729 |
in enableChannel:httpServerRunning. |
2282 | 1730 |
|
2280 | 1731 |
in := box |
1732 |
addLabelledInputField:(resources string:'Home URL:') |
|
1733 |
adjust:#right |
|
1734 |
on:httpServerHomeURL |
|
1735 |
tabable:true |
|
2288 | 1736 |
separateAtX:0.3. |
2282 | 1737 |
in acceptChannel:acceptChannel. |
2288 | 1738 |
in enableChannel:httpServerRunning. |
1739 |
||
1740 |
check := box addCheckBox:(resources string:'Swiki enabled') on:swikiEnabled. |
|
1741 |
hasHTTPServer ifFalse:[ |
|
1742 |
check disable |
|
1743 |
]. |
|
1744 |
check enableChannel:httpServerRunning. |
|
1745 |
||
2304 | 1746 |
"/ box leftIndent:40. |
2288 | 1747 |
|
1748 |
in := box |
|
1749 |
addLabelledInputField:(resources string:'SwikiRoot:') |
|
1750 |
adjust:#right |
|
1751 |
on:swikiRoot |
|
1752 |
tabable:true |
|
1753 |
separateAtX:0.3. |
|
1754 |
in acceptChannel:acceptChannel. |
|
2307 | 1755 |
in enableChannel:(BlockValue forLogical:httpServerRunning and:swikiEnabled). |
2288 | 1756 |
|
2560 | 1757 |
check := box addCheckBox:(resources string:'Allow embedded ST applications') on:allowEmbedded. |
1758 |
hasHTTPServer ifFalse:[ |
|
1759 |
check disable |
|
1760 |
]. |
|
1761 |
check enableChannel:httpServerRunning. |
|
1762 |
||
2288 | 1763 |
box leftIndent:0. |
2278 | 1764 |
box addHorizontalLine. |
1765 |
||
2809 | 1766 |
box addTextLabel:(resources string:'OSI Protocols (addOn package)'). |
1767 |
||
1768 |
check := box addCheckBox:(resources string:'Log %1 errors' with:'OSI-ACSE') on:osiACSEErrorLogging. |
|
2198 | 1769 |
osiACSEPresent ifFalse:[ |
1770 |
check disable |
|
1771 |
]. |
|
2809 | 1772 |
check := box addCheckBox:(resources string:'Log %1 connection' with:'OSI-ACSE') on:osiACSEConnectionLogging. |
2198 | 1773 |
osiACSEPresent ifFalse:[ |
1774 |
check disable |
|
1775 |
]. |
|
2809 | 1776 |
check := box addCheckBox:(resources string:'Log %1 data xfers' with:'OSI-ACSE') on:osiACSEDataLogging. |
2198 | 1777 |
osiACSEPresent ifFalse:[ |
1778 |
check disable |
|
1779 |
]. |
|
1780 |
||
1781 |
box addVerticalSpace. |
|
1782 |
||
2809 | 1783 |
check := box addCheckBox:(resources string:'Log %1 errors' with:'OSI-ROSE') on:osiROSEErrorLogging. |
2198 | 1784 |
osiROSEPresent ifFalse:[ |
1785 |
check disable |
|
1786 |
]. |
|
2809 | 1787 |
check := box addCheckBox:(resources string:'Log %1 invokations' with:'OSI-ROSE') on:osiROSEInvokationLogging. |
2198 | 1788 |
osiROSEPresent ifFalse:[ |
1789 |
check disable |
|
1790 |
]. |
|
2809 | 1791 |
check := box addCheckBox:(resources string:'Log %1 responses' with:'OSI-ROSE') on:osiROSEResponseLogging. |
2198 | 1792 |
osiROSEPresent ifFalse:[ |
1793 |
check disable |
|
1794 |
]. |
|
1795 |
||
1796 |
box addVerticalSpace. |
|
1797 |
||
2809 | 1798 |
check := box addCheckBox:(resources string:'Log %1 errors' with:'OSI-CMISE') on:osiCMISEErrorLogging. |
2198 | 1799 |
osiCMISEPresent ifFalse:[ |
1800 |
check disable |
|
1801 |
]. |
|
2809 | 1802 |
check := box addCheckBox:(resources string:'Log %1 messages' with:'OSI-CMISE') on:osiCMISEMessageLogging. |
2198 | 1803 |
osiCMISEPresent ifFalse:[ |
1804 |
check disable |
|
2196 | 1805 |
]. |
1806 |
||
2807 | 1807 |
box addHorizontalLine. |
2196 | 1808 |
box |
1809 |
addHelpButtonFor:'Launcher/communicationsSettings.html'; |
|
1810 |
addAbortAndOkButtons. |
|
1811 |
||
1812 |
"/ |
|
1813 |
"/ show the box ... |
|
1814 |
"/ |
|
1815 |
box open. |
|
1816 |
||
1817 |
"/ |
|
1818 |
"/ update system settings |
|
1819 |
"/ |
|
1820 |
box accepted ifTrue:[ |
|
2282 | 1821 |
acceptChannel value:false; value:true. |
1822 |
||
2759 | 1823 |
hasWindowMigrationServer ifTrue:[ |
1824 |
windowMigrationEnabled := windowMigrationEnabled value. |
|
2763 | 1825 |
windowMigrationAuthenticate := windowMigrationAuthenticate value. |
1826 |
windowMigrationPassword := windowMigrationPassword value. |
|
1827 |
(windowMigrationEnabled ~~ org_windowMigrationEnabled |
|
1828 |
or:[windowMigrationAuthenticate ~~ org_windowMigrationAuthenticate |
|
1829 |
or:[windowMigrationPassword ~~ org_windowMigrationPassword]]) ifTrue:[ |
|
1830 |
windowMigrationAuthenticate ~~ org_windowMigrationAuthenticate ifTrue:[ |
|
1831 |
windowMigrationAuthenticate ifFalse:[ |
|
1832 |
WindowMigrationServer password:nil |
|
1833 |
] ifTrue:[ |
|
1834 |
WindowMigrationServer password:windowMigrationPassword |
|
1835 |
]. |
|
1836 |
]. |
|
2759 | 1837 |
windowMigrationEnabled ~~ WindowMigrationServer serverRunning ifTrue:[ |
1838 |
windowMigrationEnabled ifFalse:[ |
|
1839 |
WindowMigrationServer stop |
|
1840 |
] ifTrue:[ |
|
1841 |
WindowMigrationServer start. |
|
1842 |
"/ must wait a bit; give it a chance to |
|
1843 |
"/ really start (before checking) |
|
1844 |
Delay waitForSeconds:0.5. |
|
1845 |
WindowMigrationServer serverRunning ifFalse:[ |
|
1846 |
self warn:'WindowMigrationServer startup failed (see stderr).' |
|
1847 |
] |
|
1848 |
] |
|
1849 |
]. |
|
1850 |
] |
|
1851 |
]. |
|
1852 |
||
2196 | 1853 |
hasRDoitServer ifTrue:[ |
1854 |
(rDoitLogging value ~~ org_rDoitLogging |
|
1855 |
or:[rDoitErrorDebugging value ~~ org_rDoitErrorDebugging |
|
1856 |
or:[rDoitErrorLogging value ~~ org_rDoitErrorLogging |
|
1857 |
or:[rDoitsEnabled value ~~ org_rDoitsEnabled]]]) ifTrue:[ |
|
1858 |
RDoItServer autoload. |
|
1859 |
RDoItServer logging:(rDoitLogging value). |
|
1860 |
RDoItServer errorLogging:(rDoitErrorLogging value). |
|
1861 |
RDoItServer errorCatching:(rDoitErrorDebugging value not). |
|
1862 |
rDoitsEnabled := rDoitsEnabled value. |
|
1863 |
rDoitsEnabled ~~ RDoItServer serverRunning ifTrue:[ |
|
1864 |
rDoitsEnabled ifFalse:[ |
|
2759 | 1865 |
RDoItServer stop |
2196 | 1866 |
] ifTrue:[ |
1867 |
RDoItServer start. |
|
1868 |
"/ must wait a bit; give it a chance to |
|
1869 |
"/ really start (before checking) |
|
2759 | 1870 |
Delay waitForSeconds:0.5. |
2196 | 1871 |
RDoItServer serverRunning ifFalse:[ |
1872 |
self warn:'RDoit startup failed (see stderr).' |
|
1873 |
] |
|
1874 |
] |
|
1875 |
]. |
|
1876 |
]. |
|
1877 |
]. |
|
2288 | 1878 |
|
2561
6f19bef93a30
avoid autoloading HTTPServer, when dialog is opened
Claus Gittinger <cg@exept.de>
parents:
2560
diff
changeset
|
1879 |
(hasHTTPServer and:[HTTPServer isLoaded]) ifTrue:[ |
2304 | 1880 |
httpServerPort := httpServerPort value. |
1881 |
org_httpServerPort ~= httpServerPort ifTrue:[ |
|
1882 |
HTTPServer defaultPort:httpServerPort. |
|
1883 |
]. |
|
1884 |
||
2282 | 1885 |
httpServerFileRoot := httpServerFileRoot value. |
1886 |
httpServerFileRoot size == 0 ifTrue:[ |
|
1887 |
httpServerFileRoot := nil |
|
1888 |
]. |
|
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1889 |
org_httpServerFileRoot ~= httpServerFileRoot ifTrue:[ |
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1890 |
HTTPServer fileRoot:httpServerFileRoot. |
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1891 |
]. |
2282 | 1892 |
|
2559 | 1893 |
httpServerLogFile := httpServerLogFile value. |
1894 |
httpServerLogFile size == 0 ifTrue:[ |
|
1895 |
httpServerLogFile := nil |
|
1896 |
]. |
|
1897 |
org_httpServerLogFile ~= httpServerLogFile ifTrue:[ |
|
1898 |
HTTPServer defaultLogFile:httpServerLogFile. |
|
1899 |
]. |
|
1900 |
||
2282 | 1901 |
httpServerHomeURL := httpServerHomeURL value. |
1902 |
httpServerHomeURL size == 0 ifTrue:[ |
|
1903 |
httpServerHomeURL := nil |
|
1904 |
]. |
|
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1905 |
org_httpServerHomeURL ~= httpServerHomeURL ifTrue:[ |
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1906 |
HTTPServer homeURL:httpServerHomeURL. |
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1907 |
]. |
2282 | 1908 |
|
2278 | 1909 |
httpServerRunning value ~~ org_httpServerRunning ifTrue:[ |
1910 |
httpServerRunning value ifTrue:[ |
|
1911 |
HTTPServer startServer |
|
1912 |
] ifFalse:[ |
|
1913 |
HTTPServer stopServer |
|
1914 |
] |
|
1915 |
]. |
|
1916 |
]. |
|
2288 | 1917 |
|
1918 |
hasSwiki ifTrue:[ |
|
1919 |
swikiRoot := swikiRoot value. |
|
1920 |
swikiRoot size == 0 ifTrue:[ |
|
1921 |
swikiRoot := nil |
|
1922 |
]. |
|
1923 |
org_swikiRoot ~= swikiRoot ifTrue:[ |
|
1924 |
PWS::ServerAction serverDirectory:swikiRoot. |
|
1925 |
]. |
|
1926 |
||
1927 |
swikiEnabled value ~~ org_swikiEnabled ifTrue:[ |
|
1928 |
swikiEnabled value ifTrue:[ |
|
2311 | 1929 |
HTTPServer setupMySwiki |
2288 | 1930 |
] ifFalse:[ |
1931 |
HTTPServer removeActionLinkFor:'myswiki' |
|
1932 |
] |
|
1933 |
]. |
|
2560 | 1934 |
allowEmbedded value ~~ org_allowEmbedded ifTrue:[ |
1935 |
HTTPServer enableEmbeddedSmalltalk:allowEmbedded value |
|
1936 |
]. |
|
2288 | 1937 |
]. |
1938 |
||
2196 | 1939 |
osiACSEPresent ifTrue:[ |
2204
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1940 |
OSI::ACSE errorLogging:osiACSEErrorLogging value. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1941 |
OSI::ACSE connectionLogging:osiACSEConnectionLogging value. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1942 |
OSI::ACSE dataLogging:osiACSEDataLogging value. |
2196 | 1943 |
]. |
1944 |
osiROSEPresent ifTrue:[ |
|
1945 |
OSI::ROSE errorLogging:osiROSEErrorLogging value. |
|
2218 | 1946 |
OSI::ROSE invocationLogging:osiROSEInvokationLogging value. |
2196 | 1947 |
OSI::ROSE responseLogging:osiROSEResponseLogging value. |
1948 |
]. |
|
1949 |
osiCMISEPresent ifTrue:[ |
|
1950 |
OSI::CMISE errorLogging:osiCMISEErrorLogging value. |
|
1951 |
OSI::CMISE messageLogging:osiCMISEMessageLogging value. |
|
1952 |
]. |
|
1953 |
]. |
|
1954 |
box destroy |
|
1955 |
||
2218 | 1956 |
"Modified: / 28.6.1999 / 15:44:35 / stefan" |
2560 | 1957 |
"Modified: / 20.1.2000 / 19:14:18 / cg" |
2196 | 1958 |
! |
1959 |
||
2001 | 1960 |
compilerSettingsFor:requestor |
1961 |
"open a dialog on compiler related settings" |
|
1962 |
||
1963 |
|box warnings warnSTX warnUnderscore warnDollar warnOldStyle |
|
2287 | 1964 |
allowDollar allowUnderscore allowSqueakExtensions allowQualifiedNames |
1965 |
immutableArrays |
|
2001 | 1966 |
warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox |
1967 |
warnCompatibility warnCompatibilityBox warnDollarBox |
|
2018 | 1968 |
stcCompilation compilationList stcCompilationOptions |
1969 |
historyLines fullHistoryUpdate |
|
2001 | 1970 |
catchMethodRedefs catchClassRedefs keepSourceOptions keepSource |
1971 |
constantFoldingOptions constantFolding justInTimeCompilation |
|
2019 | 1972 |
warnEnabler check component oldIndent supportsJustInTimeCompilation y |
2001 | 1973 |
y2 fullDebugSupport yMax |
1974 |
compileLazy loadBinaries canLoadBinaries strings idx thisIsADemoVersion |
|
1975 |
resources stcSetupButt| |
|
1976 |
||
1977 |
resources := requestor class classResources. |
|
1978 |
||
1979 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
1980 |
loadBinaries := Smalltalk loadBinaries asValue. |
|
1981 |
compileLazy := Autoload compileLazy asValue. |
|
1982 |
||
1983 |
warnings := Compiler warnings asValue. |
|
1984 |
||
1985 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
1986 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
1987 |
warnDollar := Compiler warnDollarInIdentifier asValue. |
|
1988 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
|
1989 |
warnCommonMistakes := Compiler warnCommonMistakes asValue. |
|
1990 |
warnCompatibility := Compiler warnPossibleIncompatibilities asValue. |
|
1991 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
|
1992 |
allowDollar := Compiler allowDollarInIdentifier asValue. |
|
2244 | 1993 |
allowSqueakExtensions := Compiler allowSqueakExtensions asValue. |
2287 | 1994 |
allowQualifiedNames := Compiler allowQualifiedNames asValue. |
2001 | 1995 |
immutableArrays := Compiler arraysAreImmutable asValue. |
1996 |
||
1997 |
constantFoldingOptions := #( nil #level1 #level2 #full ). |
|
1998 |
constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')). |
|
1999 |
constantFolding selectionIndex:3. |
|
2000 |
||
2001 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
|
2002 |
thisIsADemoVersion ifTrue:[ |
|
2244 | 2003 |
stcCompilationOptions := #( never). |
2004 |
strings := #('never'). |
|
2005 |
idx := 1. |
|
2001 | 2006 |
] ifFalse:[ |
2244 | 2007 |
stcCompilationOptions := #( always default never). |
2008 |
strings := #('always' 'primitive code only' 'never'). |
|
2009 |
idx := 2. |
|
2001 | 2010 |
]. |
2011 |
||
2012 |
stcCompilation := SelectionInList new list:(resources array:strings). |
|
2013 |
stcCompilation selectionIndex:idx. |
|
2014 |
||
2015 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) |
|
2016 |
ifTrue:[ |
|
2244 | 2017 |
justInTimeCompilation := ObjectMemory justInTimeCompilation. |
2018 |
fullDebugSupport := ObjectMemory fullSingleStepSupport. |
|
2001 | 2019 |
] ifFalse:[ |
2244 | 2020 |
justInTimeCompilation := false. |
2021 |
fullDebugSupport := (Compiler lineNumberInfo == #full) asValue. |
|
2001 | 2022 |
]. |
2023 |
justInTimeCompilation := justInTimeCompilation asValue. |
|
2024 |
fullDebugSupport := fullDebugSupport asValue. |
|
2025 |
||
2026 |
catchMethodRedefs := Class catchMethodRedefinitions asValue. |
|
2027 |
catchClassRedefs := Class catchClassRedefinitions asValue. |
|
2028 |
historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]]. |
|
2029 |
historyLines ifFalse:[ |
|
2244 | 2030 |
fullHistoryUpdate := false asValue |
2001 | 2031 |
] ifTrue:[ |
2244 | 2032 |
fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue. |
2001 | 2033 |
]. |
2034 |
historyLines := historyLines asValue. |
|
2035 |
||
2036 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
|
2037 |
keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )). |
|
2038 |
keepSource selectionIndex:1. |
|
2039 |
||
2040 |
warnEnabler := [ |
|
2244 | 2041 |
warnings value ifTrue:[ |
2042 |
warnSTXBox enable. |
|
2043 |
warnOldStyleBox enable. |
|
2044 |
warnCommonMistakesBox enable. |
|
2045 |
warnCompatibilityBox enable. |
|
2046 |
allowUnderscore value ifTrue:[ |
|
2047 |
warnUnderscoreBox enable. |
|
2048 |
] ifFalse:[ |
|
2049 |
warnUnderscoreBox disable. |
|
2050 |
]. |
|
2051 |
allowDollar value ifTrue:[ |
|
2052 |
warnDollarBox enable. |
|
2053 |
] ifFalse:[ |
|
2054 |
warnDollarBox disable. |
|
2055 |
]. |
|
2056 |
] ifFalse:[ |
|
2057 |
warnSTXBox disable. |
|
2058 |
warnUnderscoreBox disable. |
|
2059 |
warnDollarBox disable. |
|
2060 |
warnOldStyleBox disable. |
|
2061 |
warnCommonMistakesBox disable. |
|
2062 |
warnCompatibilityBox disable. |
|
2063 |
]]. |
|
2001 | 2064 |
|
2584 | 2065 |
warnings onChangeEvaluate:warnEnabler. |
2066 |
allowUnderscore onChangeEvaluate:warnEnabler. |
|
2067 |
allowDollar onChangeEvaluate:warnEnabler. |
|
2068 |
"/ allowSqueakExtensions onChangeEvaluate:warnEnabler. |
|
2069 |
"/ allowQualifiedNames onChangeEvaluate:warnEnabler. |
|
2001 | 2070 |
|
2071 |
box := DialogBox new. |
|
2072 |
box label:(resources string:'Compiler settings'). |
|
2073 |
||
2074 |
y := box yPosition. |
|
2075 |
check := box addCheckBox:(resources string:'catch method redefinitions') on:catchMethodRedefs. |
|
2076 |
check width:0.5. |
|
2077 |
||
2078 |
box yPosition:y. |
|
2079 |
check := box addCheckBox:(resources string:'catch class redefinitions') on:catchClassRedefs. |
|
2080 |
check left:0.5; width:0.5. |
|
2081 |
||
2082 |
y := box yPosition. |
|
2083 |
check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines. |
|
2084 |
check width:0.5. |
|
2085 |
HistoryManager isNil ifTrue:[check disable]. |
|
2086 |
box yPosition:y. |
|
2087 |
check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate. |
|
2088 |
check left:0.5; width:0.5. |
|
2089 |
HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines]. |
|
2090 |
||
2091 |
box addPopUpList:(resources string:'fileIn source mode:') on:keepSource. |
|
2092 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
|
2093 |
||
2094 |
box addHorizontalLine. |
|
2095 |
||
2096 |
box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy. |
|
2097 |
check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries. |
|
2098 |
canLoadBinaries ifFalse:[ |
|
2244 | 2099 |
loadBinaries value:false. |
2100 |
check disable |
|
2001 | 2101 |
]. |
2102 |
supportsJustInTimeCompilation ifTrue:[ |
|
2244 | 2103 |
component := box |
2104 |
addCheckBox:(resources string:'just in time compilation to machine code') |
|
2105 |
on:justInTimeCompilation. |
|
2001 | 2106 |
]. |
2107 |
||
2108 |
box addHorizontalLine. |
|
2109 |
||
2110 |
ObjectFileLoader notNil ifTrue:[ |
|
2244 | 2111 |
compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation. |
2112 |
||
2113 |
thisIsADemoVersion ifFalse:[ |
|
2114 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
|
2115 |
||
2116 |
stcSetupButt := box addComponent:(Button label:(resources string:'stc compilation parameters...') |
|
2117 |
action:[|manager| |
|
2118 |
||
2119 |
self stcCompilerSettingsFor:requestor. |
|
2120 |
]). |
|
2121 |
]. |
|
2122 |
||
2123 |
box addHorizontalLine. |
|
2124 |
||
2125 |
"/ if there is no compiler around, |
|
2126 |
"/ change to compile nothing, and disable the checkBoxes |
|
2127 |
Compiler canCreateMachineCode ifFalse:[ |
|
2128 |
stcCompilation selectionIndex:(3 min:stcCompilationOptions size). |
|
2129 |
compilationList disable. |
|
2130 |
]. |
|
2001 | 2131 |
]. |
2132 |
||
2133 |
y := box yPosition. |
|
2134 |
||
2135 |
component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore. |
|
2136 |
component width:0.4. |
|
2137 |
||
2138 |
component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar. |
|
2139 |
component width:0.4. |
|
2140 |
||
2244 | 2141 |
component := box addCheckBox:(resources string:'allow squeak syntax extensions') on:allowSqueakExtensions. |
2001 | 2142 |
component width:0.4. |
2287 | 2143 |
|
2144 |
component := box addCheckBox:(resources string:'allow vw3 qualifiedNames') on:allowQualifiedNames. |
|
2145 |
component width:0.4. |
|
2146 |
||
2001 | 2147 |
y2 := box yPosition. |
2148 |
||
2149 |
box yPosition:y. |
|
2150 |
box leftIndent:0. |
|
2151 |
||
2152 |
component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding. |
|
2153 |
component superView left:0.5; width:0.5. |
|
2154 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
|
2155 |
||
2156 |
component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport. |
|
2157 |
component left:0.5; width:0.4. |
|
2244 | 2158 |
|
2159 |
component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays. |
|
2160 |
component left:0.5; width:0.4. |
|
2161 |
||
2001 | 2162 |
box yPosition:(box yPosition max:y2). |
2163 |
||
2164 |
||
2165 |
box addHorizontalLine. |
|
2166 |
||
2167 |
box addCheckBox:(resources string:'warnings') on:warnings. |
|
2168 |
"/ box addVerticalSpace. |
|
2169 |
oldIndent := box leftIndent. |
|
2170 |
box leftIndent:30. |
|
2171 |
||
2172 |
y := box yPosition. |
|
2173 |
||
2174 |
warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX. |
|
2175 |
warnSTXBox width:0.4. |
|
2176 |
||
2177 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore. |
|
2178 |
warnUnderscoreBox width:0.4. |
|
2179 |
||
2180 |
warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar. |
|
2181 |
warnDollarBox width:0.4. |
|
2182 |
||
2183 |
yMax := box yPosition. |
|
2184 |
||
2185 |
box yPosition:y. |
|
2186 |
box leftIndent:0. |
|
2187 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle. |
|
2188 |
warnOldStyleBox left:0.5; width:0.4. |
|
2189 |
||
2190 |
warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes. |
|
2191 |
warnCommonMistakesBox left:0.5; width:0.4. |
|
2192 |
||
2193 |
warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility. |
|
2194 |
warnCompatibilityBox left:0.5; width:0.4. |
|
2195 |
||
2196 |
box leftIndent:oldIndent. |
|
2197 |
box yPosition:(yMax max: box yPosition). |
|
2198 |
||
2807 | 2199 |
box addHorizontalLine. |
2001 | 2200 |
box |
2244 | 2201 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
2202 |
addAbortAndOkButtons. |
|
2001 | 2203 |
|
2204 |
warnEnabler value. |
|
2205 |
box open. |
|
2206 |
||
2207 |
box accepted ifTrue:[ |
|
2244 | 2208 |
HistoryManager notNil ifTrue:[ |
2209 |
HistoryManager fullHistoryUpdate:fullHistoryUpdate value. |
|
2210 |
historyLines value ifTrue:[ |
|
2211 |
HistoryManager activate |
|
2212 |
] ifFalse:[ |
|
2213 |
HistoryManager deactivate |
|
2214 |
]. |
|
2215 |
]. |
|
2216 |
Class catchMethodRedefinitions:catchMethodRedefs value. |
|
2217 |
Class catchClassRedefinitions:catchClassRedefs value. |
|
2218 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
|
2219 |
Compiler warnings:warnings value. |
|
2220 |
Compiler warnSTXSpecials:warnSTX value. |
|
2221 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
|
2222 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
|
2223 |
Compiler warnDollarInIdentifier:warnDollar value. |
|
2224 |
Compiler warnCommonMistakes:warnCommonMistakes value. |
|
2225 |
Compiler warnPossibleIncompatibilities:warnCompatibility value. |
|
2226 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
|
2227 |
Compiler allowDollarInIdentifier:allowDollar value. |
|
2228 |
Compiler allowSqueakExtensions:allowSqueakExtensions value. |
|
2287 | 2229 |
Compiler allowQualifiedNames:allowQualifiedNames value. |
2244 | 2230 |
Compiler arraysAreImmutable:immutableArrays value. |
2231 |
fullDebugSupport value ifTrue:[ |
|
2232 |
Compiler lineNumberInfo:#full. |
|
2233 |
] ifFalse:[ |
|
2234 |
Compiler lineNumberInfo:true |
|
2235 |
]. |
|
2236 |
||
2237 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
|
2238 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
|
2239 |
||
2240 |
supportsJustInTimeCompilation ifTrue:[ |
|
2241 |
justInTimeCompilation := justInTimeCompilation value. |
|
2242 |
justInTimeCompilation ifTrue:[ |
|
2243 |
Method allInstancesDo:[:m | m checked:false]. |
|
2244 |
]. |
|
2245 |
ObjectMemory justInTimeCompilation:justInTimeCompilation. |
|
2246 |
ObjectMemory fullSingleStepSupport:fullDebugSupport value. |
|
2247 |
]. |
|
2248 |
Autoload compileLazy:compileLazy value. |
|
2249 |
Smalltalk loadBinaries:loadBinaries value. |
|
2001 | 2250 |
]. |
2251 |
box destroy |
|
2252 |
||
2253 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
|
2254 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
|
2255 |
"Modified: / 5.11.1998 / 14:25:59 / cg" |
|
2256 |
! |
|
2257 |
||
2258 |
displaySettingsFor:requestor |
|
2259 |
"open a dialog on display related settings" |
|
2260 |
||
2261 |
|box listOfSizes sizeInfos |
|
2262 |
sizes sizeNames sizeList sizeX sizeY deepIcons |
|
2263 |
isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList |
|
2162 | 2264 |
y component screen visual clipEncodings clipEncodingSyms clipEncodingList resources |
2164 | 2265 |
| |
2001 | 2266 |
|
2267 |
resources := requestor class classResources. |
|
2268 |
||
2269 |
listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default. |
|
2270 |
listOfSizes == #default ifTrue:[ |
|
2162 | 2271 |
"/ nothing in resource file; offer at least some. |
2272 |
sizeInfos := #( |
|
2273 |
( '11.3'' (235mm x 175mm) LCD' (235 175) ) |
|
2274 |
( '17'' (325mm x 245mm)' (325 245) ) |
|
2275 |
( '19'' (340mm x 270mm)' (340 270) ) |
|
2276 |
( '20'' (350mm x 280mm)' (350 280) ) |
|
2277 |
( '21'' (365mm x 285mm)' (365 285) ) |
|
2278 |
). |
|
2001 | 2279 |
] ifFalse:[ |
2162 | 2280 |
sizeInfos := resources array:listOfSizes. |
2001 | 2281 |
]. |
2282 |
sizeNames := sizeInfos collect:[:entry | entry at:1]. |
|
2283 |
sizes := sizeInfos collect:[:entry | entry at:2]. |
|
2284 |
||
2285 |
screen := Screen current. |
|
2286 |
visual := screen visualType. |
|
2287 |
||
2288 |
isColorMonitor := screen hasColors asValue. |
|
2289 |
deepIcons := screen supportsDeepIcons asValue. |
|
2290 |
useFixPalette := screen fixColors notNil asValue. |
|
2291 |
useFixGrayPalette := screen fixGrayColors notNil asValue. |
|
2292 |
||
2293 |
sizeList := SelectionInList with:sizeNames. |
|
2294 |
sizeX := screen widthInMillimeter asValue. |
|
2295 |
sizeY := screen heightInMillimeter asValue. |
|
2296 |
||
2297 |
clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5). |
|
2298 |
clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5'). |
|
2299 |
clipEncodingList := SelectionInList new. |
|
2300 |
clipEncodingList list:clipEncodings. |
|
2301 |
clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1). |
|
2302 |
||
2303 |
ditherList := SelectionInList new. |
|
2304 |
||
2305 |
(visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[ |
|
2162 | 2306 |
ditherStyles := #('threshold' 'ordered dither' 'error diffusion'). |
2307 |
ditherSyms := #(threshold ordered floydSteinberg). |
|
2001 | 2308 |
] ifFalse:[ |
2162 | 2309 |
visual ~~ #TrueColor ifTrue:[ |
2310 |
ditherStyles := #('nearest color' 'error diffusion'). |
|
2311 |
ditherSyms := #(ordered floydSteinberg). |
|
2312 |
] |
|
2001 | 2313 |
]. |
2314 |
ditherSyms notNil ifTrue:[ |
|
2162 | 2315 |
ditherList list:ditherStyles. |
2316 |
ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold). |
|
2001 | 2317 |
]. |
2318 |
||
2319 |
box := DialogBox new. |
|
2320 |
box label:(resources string:'Display screen settings'). |
|
2321 |
||
2322 |
(box addTextLabel:(resources string:'Actual visible screen area:')) |
|
2162 | 2323 |
adjust:#left. |
2001 | 2324 |
|
2325 |
(box addPopUpList:(resources string:'common sizes:') on:sizeList) |
|
2162 | 2326 |
label:'monitor size'. |
2001 | 2327 |
|
2328 |
idx := sizes findFirst:[:entry | |
|
2162 | 2329 |
((entry at:1) = sizeX value) |
2330 |
and:[((entry at:2) = sizeY value)] |
|
2331 |
]. |
|
2001 | 2332 |
idx ~~ 0 ifTrue:[ |
2162 | 2333 |
sizeList selectionIndex:idx |
2001 | 2334 |
]. |
2335 |
||
2584 | 2336 |
sizeList onChangeEvaluate:[ |
2162 | 2337 |
|idx| |
2338 |
||
2339 |
idx := sizeList selectionIndex. |
|
2340 |
sizeX value:((sizes at:idx) at:1). |
|
2341 |
sizeY value:((sizes at:idx) at:2). |
|
2342 |
]. |
|
2001 | 2343 |
|
2344 |
y := box yPosition. |
|
2162 | 2345 |
component := box addTextLabel:(resources string:'Screen size:'). |
2001 | 2346 |
component width:0.3; adjust:#right; borderWidth:0. |
2347 |
||
2348 |
box yPosition:y. |
|
2349 |
component := box addInputFieldOn:nil tabable:true. |
|
2350 |
component width:0.25; left:0.3; |
|
2162 | 2351 |
immediateAccept:false; acceptOnLeave:false; |
2352 |
cursorMovementWhenUpdating:#beginOfLine; |
|
2353 |
converter:(PrintConverter new initForInteger); |
|
2354 |
model:sizeX. |
|
2001 | 2355 |
|
2356 |
box yPosition:y. |
|
2357 |
component := box addTextLabel:(' x '). |
|
2358 |
component width:0.1; left:0.55; adjust:#center; borderWidth:0. |
|
2359 |
||
2360 |
box yPosition:y. |
|
2361 |
component := box addInputFieldOn:nil tabable:true. |
|
2362 |
component width:0.25; left:0.65; |
|
2162 | 2363 |
immediateAccept:false; acceptOnLeave:false; |
2364 |
cursorMovementWhenUpdating:#beginOfLine; |
|
2365 |
converter:(PrintConverter new initForInteger); |
|
2366 |
model:sizeY. |
|
2001 | 2367 |
|
2368 |
box yPosition:y. |
|
2369 |
component := box addTextLabel:('(mm)'). |
|
2370 |
component width:0.1; left:0.9; adjust:#center; borderWidth:0. |
|
2371 |
||
2372 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
2373 |
||
2374 |
(box addTextLabel:(resources string:'Screen: depth: %1 visual: %2 (%3)' |
|
2395 | 2375 |
with:screen depth printString |
2376 |
with:screen visualType |
|
2377 |
with:screen serverVendor)) |
|
2162 | 2378 |
adjust:#left. |
2001 | 2379 |
|
2380 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
2381 |
||
2162 | 2382 |
box addCheckBox:(resources string:'Color monitor') on:isColorMonitor. |
2001 | 2383 |
|
2384 |
visual == #PseudoColor ifTrue:[ |
|
2162 | 2385 |
box addVerticalSpace. |
2386 |
component := box addCheckBox:(resources string:'Use fix color palette %1' with:'(4x8x4)') on:useFixPalette. |
|
2387 |
||
2388 |
box addVerticalSpace. |
|
2389 |
component := box addCheckBox:(resources string:'Use fix gray color palette %1' with:'(32)') on:useFixGrayPalette. |
|
2001 | 2390 |
]. |
2391 |
||
2392 |
ditherSyms notNil ifTrue:[ |
|
2162 | 2393 |
box addVerticalSpace. |
2394 |
component := box addPopUpList:(resources string:'Amage display:') on:ditherList. |
|
2395 |
component defaultLabel:'image display'. |
|
2396 |
component superView horizontalLayout:#leftSpace. |
|
2001 | 2397 |
]. |
2398 |
||
2399 |
box addVerticalSpace. |
|
2162 | 2400 |
box addCheckBox:(resources string:'Allow colored/grayscale icons') on:deepIcons. |
2401 |
||
2001 | 2402 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
2403 |
||
2162 | 2404 |
component := box addPopUpList:(resources string:'ClipBoard encoding:') on:clipEncodingList. |
2001 | 2405 |
component superView horizontalLayout:#leftSpace. |
2406 |
||
2807 | 2407 |
box addHorizontalLine. |
2001 | 2408 |
box |
2162 | 2409 |
addHelpButtonFor:'Launcher/screenSettings.html'; |
2410 |
addAbortAndOkButtons. |
|
2001 | 2411 |
box open. |
2412 |
||
2413 |
box accepted ifTrue:[ |
|
2162 | 2414 |
Image flushDeviceImages. |
2415 |
||
2416 |
screen visualType == #PseudoColor ifTrue:[ |
|
2417 |
useFixPalette value ifTrue:[ |
|
2418 |
Color colorAllocationFailSignal handle:[:ex | |
|
2621 | 2419 |
requestor warn:'Could not allocate colors.'. |
2162 | 2420 |
] do:[ |
2421 |
Color getColorsRed:4 green:8 blue:4 on:screen |
|
2422 |
] |
|
2423 |
] ifFalse:[ |
|
2424 |
screen releaseFixColors |
|
2425 |
]. |
|
2426 |
||
2427 |
useFixGrayPalette value ifTrue:[ |
|
2428 |
Color colorAllocationFailSignal handle:[:ex | |
|
2621 | 2429 |
requestor warn:'Could not allocate colors.'. |
2162 | 2430 |
] do:[ |
2431 |
Color getGrayColors:32 on:screen |
|
2432 |
] |
|
2433 |
] ifFalse:[ |
|
2434 |
screen releaseFixGrayColors |
|
2435 |
] |
|
2436 |
]. |
|
2437 |
screen hasColors:isColorMonitor value. |
|
2438 |
screen widthInMillimeter:sizeX value. |
|
2439 |
screen heightInMillimeter:sizeY value. |
|
2440 |
||
2441 |
screen supportsDeepIcons:deepIcons value. |
|
2442 |
ditherSyms notNil ifTrue:[ |
|
2443 |
Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex). |
|
2444 |
]. |
|
2445 |
||
2446 |
requestor withWaitCursorDo:[ |
|
2447 |
View defaultStyle:(View defaultStyle). |
|
2448 |
]. |
|
2449 |
||
2450 |
screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex). |
|
2001 | 2451 |
]. |
2452 |
box destroy |
|
2453 |
||
2162 | 2454 |
"Modified: / 9.9.1996 / 22:43:04 / stefan" |
2164 | 2455 |
"Modified: / 20.5.1999 / 18:35:21 / cg" |
2001 | 2456 |
! |
2457 |
||
2458 |
editSettingsFor:requestor |
|
2459 |
"open a dialog on edit settings" |
|
2460 |
||
2019 | 2461 |
|box st80EditingMode st80DoubleClickSelectMode resources| |
2001 | 2462 |
|
2463 |
resources := requestor class classResources. |
|
2464 |
||
2465 |
"/ |
|
2466 |
"/ extract relevant system settings ... |
|
2467 |
"/ |
|
2468 |
st80EditingMode := EditTextView st80Mode asValue. |
|
2469 |
st80DoubleClickSelectMode := TextView st80SelectMode asValue. |
|
2470 |
||
2471 |
"/ |
|
2472 |
"/ create a box on those values ... |
|
2473 |
"/ |
|
2474 |
box := DialogBox new. |
|
2475 |
box label:(resources string:'Edit settings'). |
|
2476 |
||
2477 |
box addCheckBox:(resources string:'cursor has ST80 line end behavior') on:st80EditingMode. |
|
2478 |
box addCheckBox:(resources string:'double click select behavior as in ST80') on:st80DoubleClickSelectMode. |
|
2479 |
||
2480 |
box addHorizontalLine. |
|
2481 |
||
2482 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2483 |
addHelpButtonFor:'Launcher/editSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2484 |
addAbortAndOkButtons. |
2001 | 2485 |
|
2486 |
"/ |
|
2487 |
"/ show the box ... |
|
2488 |
"/ |
|
2489 |
box open. |
|
2490 |
||
2491 |
"/ |
|
2492 |
"/ update system settings |
|
2493 |
"/ |
|
2494 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2495 |
EditTextView st80Mode:(st80EditingMode value). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2496 |
TextView st80SelectMode:(st80DoubleClickSelectMode value). |
2001 | 2497 |
]. |
2498 |
box destroy |
|
2499 |
||
2500 |
"Created: / 6.1.1999 / 14:12:09 / cg" |
|
2501 |
"Modified: / 6.1.1999 / 14:17:51 / cg" |
|
2502 |
! |
|
2503 |
||
2504 |
fontSettingsFor:requestor |
|
2505 |
"open a dialog on font related settings" |
|
2506 |
||
2507 |
(self fontBoxForEncoding:nil for:requestor) ifTrue:[ |
|
2508 |
requestor reopenLauncher. |
|
2509 |
] |
|
2510 |
||
2511 |
"Created: 26.2.1996 / 22:52:51 / cg" |
|
2512 |
"Modified: 8.1.1997 / 14:52:49 / cg" |
|
2513 |
! |
|
2514 |
||
2515 |
javaSettingsFor:requestor |
|
2516 |
"open a dialog on settings related to the java subsystem" |
|
2517 |
||
2609 | 2518 |
|box audio javaHome classPath oldJavaHome oldClassPath resources component |
2001 | 2519 |
extraFileSecurityChecks extraSocketSecurityChecks |
2520 |
supportsJustInTimeCompilation |
|
2521 |
javaJustInTimeCompilation javaNativeCodeOptimization |
|
2259 | 2522 |
showJavaByteCode exceptionDebug nullPointerExceptionDebug| |
2001 | 2523 |
|
2524 |
resources := requestor class classResources. |
|
2525 |
||
2526 |
audio := JavaVM audioEnabled asValue. |
|
2527 |
extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue. |
|
2528 |
extraSocketSecurityChecks := JavaVM socketConnectConfirmation asValue. |
|
2529 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) ifTrue:[ |
|
2259 | 2530 |
javaJustInTimeCompilation := ObjectMemory javaJustInTimeCompilation asValue. |
2531 |
javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue. |
|
2001 | 2532 |
] ifFalse:[ |
2259 | 2533 |
javaJustInTimeCompilation := javaNativeCodeOptimization := false |
2001 | 2534 |
]. |
2535 |
showJavaByteCode := JavaMethod forceByteCodeDisplay asValue. |
|
2536 |
exceptionDebug := JavaVM exceptionDebug asValue. |
|
2259 | 2537 |
nullPointerExceptionDebug := JavaVM nullPointerExceptionDebug asValue. |
2001 | 2538 |
|
2609 | 2539 |
classPath := (Java classPath ? ''). |
2540 |
OperatingSystem isUNIXlike ifTrue:[ |
|
2541 |
classPath := (classPath asStringWith:$;) asValue. |
|
2542 |
] ifFalse:[ |
|
2543 |
classPath := (classPath asStringWith:$:) asValue. |
|
2544 |
]. |
|
2545 |
oldClassPath := classPath copy. |
|
2546 |
classPath := classPath asValue. |
|
2547 |
||
2548 |
javaHome := (Java javaHome ? ''). |
|
2549 |
oldJavaHome := javaHome copy. |
|
2550 |
javaHome := javaHome asValue. |
|
2001 | 2551 |
|
2552 |
box := DialogBox new. |
|
2553 |
box label:(resources string:'Java'). |
|
2554 |
||
2555 |
box addCheckBox:(resources string:'Audio Enabled') on:audio. |
|
2556 |
box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks. |
|
2557 |
box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks. |
|
2558 |
box addCheckBox:(resources string:'Debug Exceptions') on:exceptionDebug. |
|
2259 | 2559 |
box addCheckBox:(resources string:'Debug Null Pointer Exceptions') on:nullPointerExceptionDebug. |
2001 | 2560 |
box addHorizontalLine. |
2561 |
supportsJustInTimeCompilation ifTrue:[ |
|
2259 | 2562 |
box |
2563 |
addCheckBox:(resources string:'java just in time compilation to machine code') |
|
2564 |
on:javaJustInTimeCompilation. |
|
2565 |
box |
|
2566 |
addCheckBox:(resources string:'optimize native code') |
|
2567 |
on:javaNativeCodeOptimization. |
|
2001 | 2568 |
]. |
2569 |
box addHorizontalLine. |
|
2570 |
box addCheckBox:(resources string:'Display java byteCode (i.e. not source)') on:showJavaByteCode. |
|
2571 |
box addHorizontalLine. |
|
2572 |
component := box |
|
2609 | 2573 |
addLabelledInputField:(resources string:'classPath:') |
2574 |
adjust:#right |
|
2575 |
on:classPath |
|
2576 |
tabable:true |
|
2577 |
separateAtX:0.3. |
|
2578 |
component acceptOnLeave:false. |
|
2579 |
component := box |
|
2259 | 2580 |
addLabelledInputField:(resources string:'java home:') |
2581 |
adjust:#right |
|
2582 |
on:javaHome |
|
2583 |
tabable:true |
|
2584 |
separateAtX:0.3. |
|
2001 | 2585 |
component acceptOnLeave:false. |
2586 |
||
2587 |
box addVerticalSpace. |
|
2588 |
box addComponent:(Button |
|
2259 | 2589 |
label:(resources string:'Reinit VM now') |
2590 |
action:[ |
|
2591 |
box windowGroup withWaitCursorDo:[ |
|
2609 | 2592 |
"/ Java classPath size == 0 ifTrue:[ |
2593 |
"/ Java initialize. |
|
2594 |
"/ ]. |
|
2595 |
"/ Java classPath size == 0 ifTrue:[ |
|
2596 |
"/ self warn:'No JDK found'. |
|
2597 |
"/ ] ifFalse:[ |
|
2259 | 2598 |
JavaVM initializeVM |
2609 | 2599 |
"/ ] |
2259 | 2600 |
] |
2601 |
]). |
|
2001 | 2602 |
|
2603 |
box addComponent:(Button |
|
2259 | 2604 |
label:(resources string:'Remove all Java classes now') |
2605 |
action:[ |
|
2606 |
box windowGroup withWaitCursorDo:[ |
|
2607 |
Java flushAllJavaResources |
|
2608 |
] |
|
2609 |
]). |
|
2001 | 2610 |
|
2611 |
"/ box addHorizontalLine. |
|
2612 |
||
2613 |
"/ box addHelpButtonFor:'Launcher/javaSettings.html'. |
|
2048 | 2614 |
box addAbortAndOkButtons. |
2001 | 2615 |
box open. |
2616 |
||
2617 |
box accepted ifTrue:[ |
|
2609 | 2618 |
classPath value ~= oldClassPath ifTrue:[ |
2619 |
OperatingSystem isUNIXlike ifTrue:[ |
|
2620 |
classPath := (classPath value asCollectionOfSubstringsSeparatedBy:$:) |
|
2621 |
] ifFalse:[ |
|
2622 |
classPath := (classPath value asCollectionOfSubstringsSeparatedBy:$;) |
|
2623 |
]. |
|
2624 |
Java classPath:classPath |
|
2625 |
]. |
|
2626 |
Java javaHome:javaHome value. |
|
2627 |
||
2259 | 2628 |
JavaMethod forceByteCodeDisplay:showJavaByteCode value. |
2629 |
JavaVM audioEnabled:audio value. |
|
2630 |
JavaVM exceptionDebug:exceptionDebug value. |
|
2631 |
JavaVM nullPointerExceptionDebug:nullPointerExceptionDebug value. |
|
2632 |
JavaVM fileOpenConfirmation: extraFileSecurityChecks value. |
|
2633 |
JavaVM socketConnectConfirmation: extraSocketSecurityChecks value. |
|
2609 | 2634 |
|
2259 | 2635 |
javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[ |
2636 |
ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value. |
|
2637 |
javaJustInTimeCompilation value ifTrue:[ |
|
2638 |
JavaMethod allSubInstancesDo:[:m | m checked:false]. |
|
2639 |
]. |
|
2640 |
]. |
|
2641 |
javaNativeCodeOptimization value ~~ ObjectMemory javaNativeCodeOptimization ifTrue:[ |
|
2642 |
ObjectMemory javaNativeCodeOptimization:javaNativeCodeOptimization value. |
|
2643 |
]. |
|
2001 | 2644 |
]. |
2645 |
box destroy |
|
2646 |
||
2647 |
"Created: / 18.7.1998 / 22:32:58 / cg" |
|
2648 |
"Modified: / 27.1.1999 / 20:16:03 / cg" |
|
2649 |
! |
|
2650 |
||
2651 |
keyboardSettingsFor:requestor |
|
2652 |
"open a dialog on keyboard related settings" |
|
2653 |
||
2654 |
|mappings listOfRawKeys listOfFunctions |
|
2655 |
box l |
|
2656 |
list1 list2 listView1 listView2 |
|
2657 |
frame selectionForwarder macroForwarder macroTextView y resources| |
|
2658 |
||
2659 |
resources := requestor class classResources. |
|
2660 |
||
2661 |
mappings := Screen current keyboardMap. |
|
2662 |
||
2663 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
2664 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
2665 |
||
2666 |
selectionForwarder := Plug new. |
|
2667 |
selectionForwarder respondTo:#showFunction |
|
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2668 |
with:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2669 |
|raw| |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2670 |
raw := list1 selection. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2671 |
list2 retractInterestsFor:selectionForwarder. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2672 |
list2 selection:(mappings at:raw asSymbol) asString. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2673 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2674 |
]. |
2001 | 2675 |
selectionForwarder respondTo:#showRawKey |
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2676 |
with:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2677 |
|f raw| |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2678 |
|
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2679 |
f := list2 selection. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2680 |
list1 retractInterestsFor:selectionForwarder. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2681 |
raw := mappings keyAtValue:f asString. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2682 |
raw isNil ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2683 |
raw := mappings keyAtValue:f first. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2684 |
raw isNil ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2685 |
raw := mappings keyAtValue:f asSymbol. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2686 |
] |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2687 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2688 |
list1 selection:raw. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2689 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2690 |
]. |
2001 | 2691 |
|
2692 |
macroForwarder := [ |
|
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2693 |
|f macro indent| |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2694 |
f := list2 selection. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2695 |
(f startsWith:'Cmd') ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2696 |
f := f copyFrom:4 |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2697 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2698 |
macro := UserPreferences current functionKeySequences |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2699 |
at:(f asSymbol) ifAbsent:nil. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2700 |
macro notNil ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2701 |
macro := macro asStringCollection. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2702 |
indent := macro |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2703 |
inject:99999 into:[:min :element | |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2704 |
|stripped| |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2705 |
|
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2706 |
stripped := element withoutLeadingSeparators. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2707 |
stripped size == 0 ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2708 |
min |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2709 |
] ifFalse:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2710 |
min min:(element size - stripped size) |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2711 |
] |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2712 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2713 |
indent ~~ 0 ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2714 |
macro := macro collect:[:line | |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2715 |
line size > indent ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2716 |
line copyFrom:indent+1 |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2717 |
] ifFalse:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2718 |
line |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2719 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2720 |
] |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2721 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2722 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2723 |
macroTextView contents:macro. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2724 |
]. |
2001 | 2725 |
|
2726 |
list1 := SelectionInList with:listOfRawKeys. |
|
2727 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
2728 |
||
2729 |
list2 := SelectionInList with:listOfFunctions. |
|
2730 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
2584 | 2731 |
list2 onChangeEvaluate:macroForwarder. |
2001 | 2732 |
|
2733 |
box := Dialog new. |
|
2734 |
box label:(resources string:'Keyboard mappings'). |
|
2735 |
||
2736 |
l := box addTextLabel:(resources at:'KEY_MSG' default:'keyboard mapping:') withCRs. |
|
2737 |
l adjust:#left; borderWidth:0. |
|
2738 |
||
2739 |
frame := View new. |
|
2740 |
frame extent:300 @ 300. |
|
2741 |
frame borderWidth:0. |
|
2742 |
||
2743 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
2744 |
listView1 model:list1. |
|
2745 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
2746 |
||
2747 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
2748 |
listView2 model:list2. |
|
2749 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
2750 |
||
2751 |
frame topInset:box yPosition. |
|
2752 |
box addComponent:frame withExtent:350@200. |
|
2753 |
box makeTabable:listView1. |
|
2754 |
box makeTabable:listView2. |
|
2755 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
2756 |
||
2757 |
box addVerticalSpace. |
|
2758 |
||
2759 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
2760 |
l adjust:#left; borderWidth:0. |
|
2761 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
2762 |
l topInset:(View viewSpacing). |
|
2763 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
2764 |
||
2765 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
2766 |
box addComponent:macroTextView tabable:true. |
|
2767 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
2768 |
y := box yPosition. |
|
2769 |
||
2770 |
box |
|
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2771 |
addHelpButtonFor:'Launcher/keyboardSetting.html'; |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2772 |
"addAbortButton;" |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2773 |
addOkButtonLabelled:(resources string:'dismiss'). |
2001 | 2774 |
|
2775 |
macroTextView topInset:(l preferredExtent y + 5). |
|
2776 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
2777 |
||
2778 |
box open. |
|
2779 |
||
2780 |
box accepted ifTrue:[ |
|
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2781 |
"no action yet ..." |
2001 | 2782 |
]. |
2783 |
box destroy |
|
2784 |
||
2785 |
"Modified: / 9.9.1996 / 22:43:17 / stefan" |
|
2786 |
"Modified: / 4.5.1998 / 12:40:02 / cg" |
|
2787 |
! |
|
2788 |
||
2789 |
languageSettingsFor:requestor |
|
2790 |
"open a dialog on language related settings" |
|
2791 |
||
2792 |
|listOfLanguages translatedLanguages switch box languageList flags resources| |
|
2793 |
||
2794 |
resources := requestor class classResources. |
|
2795 |
||
2796 |
" |
|
2797 |
get list of supported languages from the launchers resources ... |
|
2798 |
" |
|
2845 | 2799 |
|
2001 | 2800 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
2801 |
listOfLanguages := listOfLanguages asOrderedCollection. |
|
2149 | 2802 |
|
2001 | 2803 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
2395 | 2804 |
item := resources at:lang. |
2805 |
item isString ifTrue:[ |
|
2806 |
item |
|
2807 |
] ifFalse:[ |
|
2808 |
item at:1 |
|
2809 |
] |
|
2810 |
]. |
|
2001 | 2811 |
flags := listOfLanguages collect:[:lang | |item| |
2395 | 2812 |
item := resources at:lang. |
2813 |
item isArray ifTrue:[ |
|
2814 |
item at:2 |
|
2815 |
] ifFalse:[ |
|
2816 |
nil |
|
2817 |
] |
|
2818 |
]. |
|
2845 | 2819 |
flags := flags collect:[:nm | |img d| nm notNil ifTrue:[ |
2820 |
img := Image fromFile:nm. |
|
2821 |
img isNil ifTrue:[ |
|
2822 |
d := Smalltalk getPackageDirectoryForPackage:'stx:goodies'. |
|
2823 |
img := Image fromFile:(d construct:nm). |
|
2824 |
]. |
|
2825 |
] ifFalse:[ |
|
2826 |
nil |
|
2827 |
] |
|
2828 |
]. |
|
2829 |
listOfLanguages := listOfLanguages collect:[:nm | nm copyFrom:'LANG_' size + 1]. |
|
2830 |
languageList := translatedLanguages with:flags collect:[:lang :flag | LabelAndIcon icon:flag string:lang.]. |
|
2001 | 2831 |
|
2832 |
box := ListSelectionBox title:(resources at:'LANG_MSG' default:'select a language') withCRs. |
|
2833 |
box label:(resources string:'Language selection'). |
|
2834 |
box list:languageList. |
|
2149 | 2835 |
box initialText:(Language , '-' , LanguageTerritory). |
2001 | 2836 |
box action:[:newLanguage | |
2395 | 2837 |
requestor withWaitCursorDo:[ |
2838 |
|fontPref idx language oldLanguage territory enc |
|
2839 |
answer matchingFonts l screen| |
|
2840 |
||
2841 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
2842 |
idx ~~ 0 ifTrue:[ |
|
2843 |
language := listOfLanguages at:idx |
|
2844 |
] ifFalse:[ |
|
2845 |
language := newLanguage |
|
2846 |
]. |
|
2847 |
(language includes:$-) ifTrue:[ |
|
2848 |
l := language asCollectionOfSubstringsSeparatedBy:$-. |
|
2849 |
language := l at:1. |
|
2850 |
territory := l at:2. |
|
2851 |
]. |
|
2852 |
territory isNil ifTrue:[ |
|
2853 |
territory := language copyTo:2 |
|
2854 |
]. |
|
2855 |
||
2856 |
"/ check if the new language needs a differently encoded font; |
|
2857 |
"/ ask user to switch font and allow cancellation. |
|
2858 |
"/ Otherwise, you are left with unreadable menu & button items ... |
|
2859 |
||
2860 |
oldLanguage := Smalltalk language. |
|
2861 |
Smalltalk language:language asSymbol. |
|
2862 |
ResourcePack flushCachedResourcePacks. |
|
2863 |
"/ refetch resources ... |
|
2864 |
resources := requestor class classResources. |
|
2865 |
fontPref := resources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
|
2866 |
Smalltalk language:oldLanguage. |
|
2867 |
||
2868 |
switch := true. |
|
2869 |
enc := MenuView defaultFont encoding. |
|
2870 |
(fontPref match:enc) ifFalse:[ |
|
2871 |
"/ look if there is one at all. |
|
2872 |
screen := Screen current. |
|
2873 |
matchingFonts := screen listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
2874 |
matchingFonts size == 0 ifTrue:[ |
|
2875 |
"/ flush and try again - just in case, the font path has changed. |
|
2876 |
screen flushListOfAvailableFonts. |
|
2877 |
matchingFonts := screen listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
2878 |
]. |
|
2879 |
matchingFonts size == 0 ifTrue:[ |
|
2880 |
(Dialog |
|
2881 |
confirm:(resources |
|
2882 |
string:'Your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
|
2883 |
with:fontPref) withCRs) |
|
2884 |
ifFalse:[ |
|
2885 |
switch := false |
|
2886 |
] |
|
2887 |
] ifFalse:[ |
|
2888 |
answer := Dialog |
|
2889 |
confirmWithCancel:(resources |
|
2890 |
string:'menu font is not %1-encoded.\\Change it ?' |
|
2891 |
with:fontPref) withCRs |
|
2892 |
labels:(resources |
|
2893 |
array:#('cancel' 'no' 'yes')) |
|
2894 |
default:3. |
|
2895 |
answer isNil ifTrue:[ |
|
2896 |
switch := false |
|
2897 |
] ifFalse:[ |
|
2898 |
answer ifTrue:[ |
|
2899 |
switch := (requestor fontBoxForEncoding:fontPref) |
|
2900 |
] |
|
2901 |
]. |
|
2902 |
]. |
|
2903 |
]. |
|
2904 |
||
2905 |
switch ifTrue:[ |
|
2906 |
Transcript showCR:'change language to ' , newLanguage , ' ...'. |
|
2907 |
Smalltalk language:language asSymbol. |
|
2908 |
Smalltalk languageTerritory:territory asSymbol. |
|
2838 | 2909 |
"/ ResourcePack flushCachedResourcePacks - already done by language-change |
2395 | 2910 |
]. |
2911 |
]. |
|
2912 |
switch ifTrue:[ |
|
2913 |
requestor reopenLauncher. |
|
2914 |
DebugView newDebugger. |
|
2915 |
] |
|
2001 | 2916 |
]. |
2917 |
box |
|
2395 | 2918 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
2001 | 2919 |
box open. |
2920 |
box destroy |
|
2921 |
||
2922 |
"Modified: / 9.9.1996 / 22:43:27 / stefan" |
|
2923 |
"Modified: / 4.8.1998 / 16:54:32 / cg" |
|
2924 |
! |
|
2925 |
||
2926 |
memorySettingsFor:requestor |
|
2927 |
"open a dialog on objectMemory related settings" |
|
2928 |
||
2929 |
|box igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
|
2930 |
compressLimit |
|
2294 | 2931 |
oldIncr component fields codeLimit codeTrigger stackLimit resources |
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2932 |
fastMoreLimit maxOldSpace models info acceptChannel| |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2933 |
|
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2934 |
acceptChannel := false asValue. |
2001 | 2935 |
|
2936 |
resources := requestor class classResources. |
|
2937 |
||
2938 |
"/ |
|
2939 |
"/ extract relevant system settings ... |
|
2940 |
"/ |
|
2941 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
2942 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
2943 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
2944 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
2945 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
2946 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
|
2947 |
codeLimit := ObjectMemory dynamicCodeLimit asValue. |
|
2948 |
codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue. |
|
2949 |
stackLimit := Process defaultMaximumStackSize asValue. |
|
2294 | 2950 |
fastMoreLimit := (ObjectMemory fastMoreOldSpaceLimit:-1) asValue. |
2951 |
maxOldSpace := ObjectMemory maxOldSpace asValue. |
|
2952 |
||
2953 |
models := OrderedCollection new. |
|
2954 |
info := OrderedCollection new. |
|
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2955 |
models add:newSpaceSize. info add:#(number 'size of newSpace where objects are created' 'size of newSpace:' ). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2956 |
models add:fastMoreLimit. info add:#(number 'quickly allocate more memory (suppress GC) up to this limit' 'quick allocate limit:'). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2957 |
models add:maxOldSpace. info add:#(number 'never allocate more than this amount of memory' 'maximum memory limit:'). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2958 |
models add:igcLimit. info add:#(number 'start IGC whenever this amount has been allocated' 'incremental GC allocation trigger:'). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2959 |
models add:igcFreeLimit. info add:#(number 'start IGC whenever freespace drops below this' 'incremental GC freespace trigger:'). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2960 |
models add:igcFreeAmount. info add:#(number 'try to keep this amount for peak requests' 'incremental GC amount:'). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2961 |
models add:oldIncr. info add:#(number 'increase oldSpace in chunks of this size' 'oldspace increment:'). |
2689
602cbcd0feb3
Fix comment on oldSpace compress limit
Stefan Vogel <sv@exept.de>
parents:
2621
diff
changeset
|
2962 |
models add:compressLimit. info add:#(number 'use 2-pass compressing GC if > 0 and more memory is in use' 'oldspace compress limit:'). |
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2963 |
models add:stackLimit. info add:#(number 'trigger recursionInterrupt if more stack is used by a process' 'stack limit:'). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2964 |
models add:codeLimit. info add:#(numberOrNil 'flush dynamic compiled code to stay within this limit' 'dynamic code limit:'). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2965 |
models add:codeTrigger. info add:#(numberOrNil 'start incremental GC whenever this amount of code has been allocated' 'dynamic code GC trigger:'). |
2001 | 2966 |
|
2967 |
"/ |
|
2968 |
"/ create a box on those values ... |
|
2969 |
"/ |
|
2970 |
fields := OrderedCollection new. |
|
2971 |
||
2972 |
box := DialogBox new. |
|
2973 |
box label:(resources string:'Memory manager settings'). |
|
2974 |
||
2975 |
(box addTextLabel:'Warning - invalid settings may result in failures or poor performance |
|
2294 | 2976 |
' , 'You have been warned' asText allBold , '.') adjust:#left. |
2001 | 2977 |
box addHorizontalLine. |
2978 |
||
2294 | 2979 |
models with:info do:[:m :i | |
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2980 |
|lbl descr conv| |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2981 |
|
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2982 |
conv := i at:1. |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2983 |
lbl := i at:3. |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2984 |
descr := i at:2. |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2985 |
|
2294 | 2986 |
component := box |
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2987 |
addLabelledInputField:(resources string:lbl) |
2294 | 2988 |
adjust:#right |
2989 |
on:nil "/ newSpaceSize |
|
2990 |
tabable:true |
|
2991 |
separateAtX:0.7. |
|
2992 |
component acceptOnLeave:false. |
|
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2993 |
"/ component converter:(PrintConverter new perform:conv). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2994 |
component model:((TypeConverter on:m) perform:conv). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2995 |
component acceptChannel:acceptChannel. |
2294 | 2996 |
fields add:component. |
2997 |
||
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
2998 |
(box addTextLabel:descr) adjust:#left. |
2294 | 2999 |
box addHorizontalLine. |
3000 |
]. |
|
3001 |
||
3002 |
ObjectMemory supportsJustInTimeCompilation ifFalse:[ |
|
3003 |
(fields at:9) disable. |
|
3004 |
(fields at:10) disable. |
|
2001 | 3005 |
]. |
3006 |
||
2048 | 3007 |
box addAbortAndOkButtons. |
2001 | 3008 |
box |
2294 | 3009 |
addHelpButtonFor:'Launcher/memorySettings.html'. |
2001 | 3010 |
|
3011 |
"/ |
|
3012 |
"/ show the box ... |
|
3013 |
"/ |
|
3014 |
box open. |
|
3015 |
||
3016 |
"/ |
|
3017 |
"/ update system settings |
|
3018 |
"/ |
|
3019 |
box accepted ifTrue:[ |
|
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3020 |
acceptChannel value:true. |
2294 | 3021 |
|
3022 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
|
3023 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
|
3024 |
]. |
|
3025 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
|
3026 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
|
3027 |
]. |
|
3028 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
|
3029 |
ObjectMemory incrementalGCLimit:igcLimit value. |
|
3030 |
]. |
|
3031 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
|
3032 |
ObjectMemory newSpaceSize:newSpaceSize value. |
|
3033 |
]. |
|
3034 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
|
3035 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
|
3036 |
]. |
|
3037 |
stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[ |
|
3038 |
Process defaultMaximumStackSize:stackLimit value. |
|
3039 |
]. |
|
3040 |
fastMoreLimit value ~~ (ObjectMemory fastMoreOldSpaceLimit:-1) ifTrue:[ |
|
3041 |
ObjectMemory fastMoreOldSpaceLimit:fastMoreLimit value. |
|
3042 |
]. |
|
3043 |
maxOldSpace value ~~ ObjectMemory maxOldSpace ifTrue:[ |
|
3044 |
ObjectMemory maxOldSpace:maxOldSpace value. |
|
3045 |
]. |
|
3046 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
|
3047 |
ObjectMemory dynamicCodeLimit:codeLimit value. |
|
3048 |
ObjectMemory dynamicCodeGCTrigger:codeTrigger value. |
|
2001 | 3049 |
]. |
3050 |
box destroy |
|
3051 |
||
3052 |
"Modified: 27.2.1997 / 16:50:12 / cg" |
|
3053 |
! |
|
3054 |
||
3055 |
messageSettingsFor:requestor |
|
3056 |
"open a dialog on infoMessage related settings" |
|
3057 |
||
3058 |
|box vmInfo vmErrors displayErrors classInfos resources| |
|
3059 |
||
3060 |
resources := requestor class classResources. |
|
3061 |
||
3062 |
vmInfo := ObjectMemory infoPrinting asValue. |
|
3063 |
vmErrors := ObjectMemory debugPrinting asValue. |
|
3064 |
classInfos := Object infoPrinting asValue. |
|
3065 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
|
3066 |
||
3067 |
box := DialogBox new. |
|
3068 |
box label:(resources string:'Messages'). |
|
3069 |
||
3070 |
box addCheckBox:(resources string:'VM info messages') on:vmInfo. |
|
3071 |
box addCheckBox:(resources string:'VM error messages') on:vmErrors. |
|
3072 |
box addHorizontalLine. |
|
3073 |
||
3074 |
box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors. |
|
3075 |
box addCheckBox:(resources string:'Other info messages') on:classInfos. |
|
2807 | 3076 |
box addHorizontalLine. |
2001 | 3077 |
|
3078 |
box addHelpButtonFor:'Launcher/messageSettings.html'. |
|
2048 | 3079 |
box addAbortAndOkButtons. |
2001 | 3080 |
box open. |
3081 |
||
3082 |
box accepted ifTrue:[ |
|
2807 | 3083 |
ObjectMemory infoPrinting:vmInfo value. |
3084 |
ObjectMemory debugPrinting:vmErrors value. |
|
3085 |
Object infoPrinting:classInfos value. |
|
3086 |
DeviceWorkstation errorPrinting:displayErrors value. |
|
2001 | 3087 |
]. |
3088 |
box destroy |
|
3089 |
||
3090 |
"Modified: 27.1.1997 / 17:46:01 / cg" |
|
3091 |
! |
|
3092 |
||
3093 |
miscSettingsFor:requestor |
|
3094 |
"open a dialog on misc other settings" |
|
3095 |
||
2196 | 3096 |
|box check shadows takeFocus focusFollowsMouse returnFocus |
2069
b4412338a603
avoid autoloading RDoitServer in misc-settings.
Claus Gittinger <cg@exept.de>
parents:
2064
diff
changeset
|
3097 |
hostNameInLabel showAccelerators |
b4412338a603
avoid autoloading RDoitServer in misc-settings.
Claus Gittinger <cg@exept.de>
parents:
2064
diff
changeset
|
3098 |
preemptive dynamicPrios hostNameInLabelHolder resources y |
2461 | 3099 |
activateOnClick opaqueVariablePanelResize currentUserPrefs |
3100 |
beepEnabled| |
|
2001 | 3101 |
|
3102 |
resources := requestor class classResources. |
|
2395 | 3103 |
currentUserPrefs := UserPreferences current. |
2001 | 3104 |
|
3105 |
"/ |
|
3106 |
"/ extract relevant system settings ... |
|
3107 |
"/ |
|
3108 |
shadows := PopUpView shadows asValue. |
|
2461 | 3109 |
beepEnabled := currentUserPrefs beepEnabled asValue. |
3110 |
||
2001 | 3111 |
hostNameInLabel := StandardSystemView includeHostNameInLabel. |
3112 |
hostNameInLabelHolder := hostNameInLabel asValue. |
|
3113 |
returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue. |
|
3114 |
takeFocus := StandardSystemView takeFocusWhenMapped asValue. |
|
2395 | 3115 |
focusFollowsMouse := (currentUserPrefs focusFollowsMouse ? true) asValue. |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3116 |
activateOnClick := (Display activateOnClick:nil) asValue. |
2395 | 3117 |
opaqueVariablePanelResize := currentUserPrefs opaqueVariablePanelResizing asValue. |
2001 | 3118 |
|
3119 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
|
3120 |
preemptive := Processor isTimeSlicing asValue. |
|
3121 |
dynamicPrios := Processor supportDynamicPriorities asValue. |
|
3122 |
||
3123 |
"/ |
|
3124 |
"/ create a box on those values ... |
|
3125 |
"/ |
|
3126 |
box := DialogBox new. |
|
3127 |
box label:(resources string:'Other settings'). |
|
3128 |
||
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3129 |
box addCheckBox:(resources string:'Shadows under popup views') on:shadows. |
2461 | 3130 |
box addCheckBox:(resources string:'Beeper enabled') on:beepEnabled. |
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3131 |
box addCheckBox:(resources string:'Boxes return focus to previously active view') on:returnFocus. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3132 |
box addCheckBox:(resources string:'Views catch focus when mapped') on:takeFocus. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3133 |
box addCheckBox:(resources string:'Hostname in window labels') on:hostNameInLabelHolder. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3134 |
box addCheckBox:(resources string:'Show accelerator keys in menus') on:showAccelerators. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3135 |
box addCheckBox:(resources string:'Raise & activate windows on click') on:activateOnClick. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3136 |
box addCheckBox:(resources string:'Focus follows mouse') on:focusFollowsMouse. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3137 |
box addCheckBox:(resources string:'Opaque variable panel resizing') on:opaqueVariablePanelResize. |
2001 | 3138 |
|
3139 |
box addHorizontalLine. |
|
3140 |
||
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3141 |
box addCheckBox:(resources string:'Preemptive scheduling') on:preemptive. |
2001 | 3142 |
box leftIndent:20. |
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3143 |
check := box addCheckBox:(resources string:'Dynamic priorities') on:dynamicPrios. |
2001 | 3144 |
check enableChannel:preemptive. |
3145 |
box leftIndent:0. |
|
3146 |
||
2807 | 3147 |
box addHorizontalLine. |
2001 | 3148 |
box |
2164 | 3149 |
addHelpButtonFor:'Launcher/miscSettings.html'; |
3150 |
addAbortAndOkButtons. |
|
2001 | 3151 |
|
3152 |
"/ |
|
3153 |
"/ show the box ... |
|
3154 |
"/ |
|
3155 |
box open. |
|
3156 |
||
3157 |
"/ |
|
3158 |
"/ update system settings |
|
3159 |
"/ |
|
3160 |
box accepted ifTrue:[ |
|
2164 | 3161 |
PopUpView shadows:shadows value. |
3162 |
hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ |
|
3163 |
StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value. |
|
3164 |
||
3165 |
Screen allScreens do:[:aDisplay | |
|
3166 |
aDisplay allViewsDo:[:aView | |
|
3167 |
|l| |
|
3168 |
||
3169 |
aView isTopView ifTrue:[ |
|
3170 |
l := aView label. |
|
3171 |
l notNil ifTrue:[ |
|
3172 |
aView label:(l , ' '); label:l. "/ force a change |
|
3173 |
] |
|
3174 |
] |
|
3175 |
] |
|
3176 |
] |
|
3177 |
]. |
|
3178 |
||
2395 | 3179 |
currentUserPrefs opaqueVariablePanelResizing:opaqueVariablePanelResize value. |
2461 | 3180 |
currentUserPrefs beepEnabled:beepEnabled value. |
2164 | 3181 |
|
3182 |
StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value. |
|
3183 |
StandardSystemView takeFocusWhenMapped:takeFocus value. |
|
2395 | 3184 |
currentUserPrefs focusFollowsMouse:focusFollowsMouse value. |
2164 | 3185 |
Screen current activateOnClick:(activateOnClick value). |
3186 |
||
3187 |
MenuView showAcceleratorKeys:showAccelerators value. |
|
3188 |
Processor isTimeSlicing ~~ preemptive value ifTrue:[ |
|
3189 |
preemptive value ifTrue:[ |
|
3190 |
Processor startTimeSlicing |
|
3191 |
] ifFalse:[ |
|
3192 |
Processor stopTimeSlicing |
|
3193 |
] |
|
3194 |
]. |
|
3195 |
Processor supportDynamicPriorities ~~ dynamicPrios value ifTrue:[ |
|
3196 |
Processor supportDynamicPriorities:dynamicPrios value |
|
3197 |
]. |
|
2001 | 3198 |
]. |
3199 |
box destroy |
|
3200 |
||
3201 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
2164 | 3202 |
"Modified: / 20.5.1999 / 18:33:55 / cg" |
2461 | 3203 |
"Modified: / 3.12.1999 / 17:11:38 / ps" |
2001 | 3204 |
! |
3205 |
||
3206 |
printerSettingsFor:requestor |
|
2435 | 3207 |
"open a dialog on printer related settings; returns true if accepted" |
3208 |
||
3209 |
|box accepted |
|
2001 | 3210 |
possiblePrinters possibleTypes printerType printCommand |
3211 |
pageFormat landscape updater |
|
3212 |
formatLabel formatComponent landscapeLabel landscapeComponent |
|
3213 |
topMargin leftMargin rightMargin bottomMargin unitList unit |
|
3214 |
topMarginComponent leftMarginComponent |
|
3215 |
rightMarginComponent |
|
3216 |
bottomMarginComponent supportsColor supportsColorComponent |
|
3217 |
y y1 commandListPop component commandList row resources| |
|
3218 |
||
3219 |
resources := requestor class classResources. |
|
3220 |
||
3221 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
3222 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
3223 |
||
3224 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
3225 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
3226 |
printCommand := Printer printCommand asValue. |
|
3227 |
||
3228 |
pageFormat := SelectionInList new list:(Printer defaultPageFormats). |
|
3229 |
pageFormat selection:(Printer pageFormat). |
|
3230 |
landscape := Printer landscape asValue. |
|
3231 |
||
3232 |
topMargin := Printer topMargin asValue. |
|
3233 |
leftMargin := Printer leftMargin asValue. |
|
3234 |
rightMargin := Printer rightMargin asValue. |
|
3235 |
bottomMargin := Printer bottomMargin asValue. |
|
3236 |
supportsColor := Printer supportsColor asValue. |
|
3237 |
||
3238 |
box := DialogBox new. |
|
3239 |
box label:(resources string:'Printer settings'). |
|
3240 |
||
3241 |
"/ either use a popUpList ... |
|
3242 |
"/ box addPopUpList:(resources string:'printer type:') on:printerType. |
|
3243 |
||
3244 |
"/ or a comboList; |
|
3245 |
"/ which one looks better ? |
|
3246 |
y := box yPosition. |
|
3247 |
component := box addTextLabel:(resources string:'printer type:'). |
|
3248 |
component width:0.25; adjust:#right; borderWidth:0. |
|
3249 |
box yPosition:y. |
|
3250 |
component := box addComboListOn:printerType tabable:true. |
|
3251 |
component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true. |
|
3252 |
component width:0.75; left:0.25. |
|
3253 |
"/ end of question |
|
3254 |
||
3255 |
y := box yPosition. |
|
3256 |
component := box addTextLabel:(resources string:'print command:'). |
|
3257 |
component width:0.25; adjust:#right; borderWidth:0. |
|
3258 |
box yPosition:y. |
|
3259 |
commandListPop := box addComboBoxOn:printCommand tabable:true. |
|
3260 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
3261 |
commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3262 |
"/ some common print commands ... |
|
3263 |
||
3264 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
|
3265 |
commandList isNil ifTrue:[ |
|
2435 | 3266 |
commandList := PrinterStream defaultCommands. |
3267 |
commandList isNil ifTrue:[ |
|
3268 |
commandList := #('lpr' |
|
3269 |
'lp' |
|
3270 |
). |
|
3271 |
] |
|
2001 | 3272 |
]. |
3273 |
||
3274 |
commandListPop list:commandList. |
|
3275 |
||
3276 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
3277 |
||
3278 |
row := OrderedCollection new. |
|
3279 |
row add:(formatLabel := Label label:(resources string:'page format:')). |
|
3280 |
formatLabel borderWidth:0. |
|
3281 |
row add:(formatComponent := PopUpList on:pageFormat). |
|
3282 |
formatComponent label:'unknown'. |
|
3283 |
||
3284 |
row add:(landscapeLabel := Label label:(resources string:'landscape:')). |
|
3285 |
landscapeLabel borderWidth:0. |
|
3286 |
row add:(landscapeComponent := CheckToggle on:landscape). |
|
3287 |
||
3288 |
y := box yPosition. |
|
3289 |
box |
|
2435 | 3290 |
addRow:(1 to:2) |
3291 |
fromX:0 |
|
3292 |
toX:0.5 |
|
3293 |
collect:[:idx | row at:idx] |
|
3294 |
tabable:false |
|
3295 |
horizontalLayout:#leftSpace |
|
3296 |
verticalLayout:#center. |
|
2001 | 3297 |
y1 := box yPosition. |
3298 |
box yPosition:y. |
|
3299 |
||
3300 |
box |
|
2435 | 3301 |
addRow:(3 to:4) |
3302 |
fromX:0.5 |
|
3303 |
toX:1.0 |
|
3304 |
collect:[:idx | row at:idx] |
|
3305 |
tabable:false |
|
3306 |
horizontalLayout:#leftSpace |
|
3307 |
verticalLayout:#center. |
|
2001 | 3308 |
|
3309 |
box yPosition:(box yPosition max:y1). |
|
3310 |
||
3311 |
box makeTabable:(formatComponent). |
|
3312 |
box makeTabable:(landscapeComponent). |
|
3313 |
||
3314 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
3315 |
||
3316 |
y := box yPosition. |
|
3317 |
||
3318 |
topMarginComponent := box |
|
2435 | 3319 |
addLabelledInputField:(resources string:'top margin:') |
3320 |
adjust:#right |
|
3321 |
on:nil "/ topMargin |
|
3322 |
tabable:true |
|
3323 |
from:0.0 to:0.5 |
|
3324 |
separateAtX:0.6. |
|
2001 | 3325 |
topMarginComponent converter:(PrintConverter new initForNumber). |
3326 |
topMarginComponent model:topMargin. |
|
3327 |
y1 := box yPosition. |
|
3328 |
||
3329 |
box yPosition:y. |
|
3330 |
unitList := SelectionInList with:#('inch' 'mm'). |
|
3331 |
unitList selectionIndex:1. |
|
3332 |
||
3333 |
component := box addComponent:(PopUpList on:unitList). |
|
3334 |
component |
|
2435 | 3335 |
left:0.6; |
3336 |
width:0.3. |
|
2001 | 3337 |
|
3338 |
box yPosition:y1. |
|
3339 |
||
3340 |
leftMarginComponent := box |
|
2435 | 3341 |
addLabelledInputField:(resources string:'left margin:') |
3342 |
adjust:#right |
|
3343 |
on:nil "/ leftMargin |
|
3344 |
tabable:true |
|
3345 |
from:0.0 to:0.5 |
|
3346 |
separateAtX:0.6. |
|
2001 | 3347 |
leftMarginComponent converter:(PrintConverter new initForNumber). |
3348 |
leftMarginComponent model:leftMargin. |
|
3349 |
||
3350 |
rightMarginComponent := box |
|
2435 | 3351 |
addLabelledInputField:(resources string:'right margin:') |
3352 |
adjust:#right |
|
3353 |
on:nil "/ rightMargin |
|
3354 |
tabable:true |
|
3355 |
from:0.0 to:0.5 |
|
3356 |
separateAtX:0.6. |
|
2001 | 3357 |
rightMarginComponent converter:(PrintConverter new initForNumber). |
3358 |
rightMarginComponent model:rightMargin. |
|
3359 |
||
3360 |
bottomMarginComponent := box |
|
2435 | 3361 |
addLabelledInputField:(resources string:'bottom margin:') |
3362 |
adjust:#right |
|
3363 |
on:nil "/ bottomMargin |
|
3364 |
tabable:true |
|
3365 |
from:0.0 to:0.5 |
|
3366 |
separateAtX:0.6. |
|
2001 | 3367 |
bottomMarginComponent converter:(PrintConverter new initForNumber). |
3368 |
bottomMarginComponent model:bottomMargin. |
|
3369 |
||
3370 |
box addHorizontalLine. |
|
3371 |
supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor. |
|
3372 |
box addVerticalSpace. |
|
3373 |
||
3374 |
updater := [ |p fg hasPageSize hasMargins| |
|
3375 |
||
2435 | 3376 |
printerType selectionIndex ~~ 0 ifTrue:[ |
3377 |
p := possiblePrinters at:(printerType selectionIndex). |
|
3378 |
hasPageSize := p supportsPageSizes. |
|
3379 |
hasMargins := p supportsMargins. |
|
3380 |
] ifFalse:[ |
|
3381 |
hasPageSize := false. |
|
3382 |
hasMargins := false. |
|
3383 |
]. |
|
3384 |
hasPageSize ifTrue:[ |
|
3385 |
fg := Button new foregroundColor. |
|
3386 |
formatComponent enable. |
|
3387 |
landscapeComponent enable. |
|
3388 |
||
3389 |
formatComponent label:p pageFormat. |
|
3390 |
pageFormat value:(p pageFormat). |
|
3391 |
landscape value:(p landscape). |
|
3392 |
] ifFalse:[ |
|
3393 |
fg := Button new disabledForegroundColor. |
|
3394 |
formatComponent disable. |
|
3395 |
landscapeComponent disable. |
|
3396 |
||
3397 |
formatComponent label:'unknown'. |
|
3398 |
landscape value:nil. |
|
3399 |
]. |
|
3400 |
hasMargins ifTrue:[ |
|
3401 |
unitList selectionIndex == 2 ifTrue:[ |
|
3402 |
unit := #mm |
|
3403 |
] ifFalse:[ |
|
3404 |
unit := #inch |
|
3405 |
]. |
|
3406 |
||
3407 |
topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit). |
|
3408 |
leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit). |
|
3409 |
rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit). |
|
3410 |
bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit). |
|
3411 |
||
3412 |
topMarginComponent enable. |
|
3413 |
leftMarginComponent enable. |
|
3414 |
rightMarginComponent enable. |
|
3415 |
bottomMarginComponent enable. |
|
3416 |
] ifFalse:[ |
|
3417 |
topMarginComponent disable. |
|
3418 |
leftMarginComponent disable. |
|
3419 |
rightMarginComponent disable. |
|
3420 |
bottomMarginComponent disable. |
|
3421 |
]. |
|
3422 |
formatLabel foregroundColor:fg. |
|
3423 |
landscapeLabel foregroundColor:fg. |
|
3424 |
||
3425 |
p notNil ifTrue:[ |
|
3426 |
commandList := p defaultCommands. |
|
3427 |
commandList notNil ifTrue:[ |
|
3428 |
commandListPop list:commandList |
|
3429 |
]. |
|
3430 |
||
3431 |
printCommand value:(p printCommand). |
|
3432 |
]. |
|
3433 |
p supportsPostscript ifFalse:[ |
|
3434 |
supportsColorComponent disable. |
|
3435 |
supportsColor value:false |
|
3436 |
] ifTrue:[ |
|
3437 |
supportsColorComponent enable. |
|
3438 |
supportsColor value:(Printer supportsColor). |
|
3439 |
] |
|
3440 |
]. |
|
2584 | 3441 |
unitList onChangeEvaluate:updater. |
3442 |
printerType onChangeEvaluate:updater. |
|
2001 | 3443 |
updater value. |
3444 |
||
2807 | 3445 |
box addHorizontalLine. |
2001 | 3446 |
box addVerticalSpace; |
2435 | 3447 |
addHelpButtonFor:'Launcher/printerSettings.html'; |
3448 |
addAbortAndOkButtons. |
|
2001 | 3449 |
box open. |
3450 |
||
2435 | 3451 |
(accepted := box accepted) ifTrue:[ |
3452 |
Printer := possiblePrinters at:(printerType selectionIndex). |
|
3453 |
Printer printCommand:printCommand value. |
|
3454 |
||
3455 |
Printer supportsPageSizes ifTrue:[ |
|
3456 |
Printer pageFormat:(pageFormat selection). |
|
3457 |
Printer landscape:(landscape value). |
|
3458 |
]. |
|
3459 |
Printer supportsMargins ifTrue:[ |
|
3460 |
unitList selectionIndex == 2 ifTrue:[ |
|
3461 |
unit := #mm |
|
3462 |
] ifFalse:[ |
|
3463 |
unit := #inch |
|
3464 |
]. |
|
3465 |
Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch). |
|
3466 |
Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch). |
|
3467 |
Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch). |
|
3468 |
Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch). |
|
3469 |
]. |
|
3470 |
Printer supportsPostscript ifTrue:[ |
|
3471 |
Printer supportsColor:supportsColor value. |
|
3472 |
]. |
|
2001 | 3473 |
]. |
2435 | 3474 |
box destroy. |
3475 |
^ accepted |
|
2001 | 3476 |
|
3477 |
"Modified: 9.9.1996 / 22:43:51 / stefan" |
|
3478 |
"Modified: 28.2.1997 / 14:00:13 / cg" |
|
3479 |
||
3480 |
! |
|
3481 |
||
3482 |
restoreSettingsFor:requestor |
|
3483 |
"restore settings from a settings-file." |
|
3484 |
||
3485 |
"a temporary kludge - we need a central systemSettings object for this, |
|
3486 |
which can be saved/restored with a single store/read. |
|
3487 |
Will move entries over to UserPreferences over time; |
|
3488 |
new items should always go there." |
|
3489 |
||
3490 |
|fileName resources| |
|
3491 |
||
3492 |
resources := requestor class classResources. |
|
3493 |
||
3494 |
fileName := Dialog |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3495 |
requestFileName:(resources string:'restore settings from:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3496 |
default:'settings.stx' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3497 |
ok:(resources string:'restore') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3498 |
abort:(resources string:'cancel') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3499 |
pattern:'*.stx' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3500 |
fromDirectory:nil. |
2021 | 3501 |
|
3502 |
(fileName size == 0) ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3503 |
"/ canceled |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3504 |
^ self |
2001 | 3505 |
]. |
3506 |
||
3507 |
self withWaitCursorDo:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3508 |
Smalltalk fileIn:fileName. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3509 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3510 |
self reopenLauncher. |
2001 | 3511 |
]. |
3512 |
||
3513 |
"Modified: / 21.7.1998 / 11:37:54 / cg" |
|
3514 |
! |
|
3515 |
||
3516 |
saveSettingsFor:requestor |
|
3517 |
"save settings to a settings-file." |
|
3518 |
||
3519 |
"a temporary kludge - we need a central systemSettings object for this, |
|
3520 |
which can be saved/restored with a single store/read. |
|
3521 |
Will move entries over to UserPreferences over time; |
|
3522 |
new items should always go there." |
|
3523 |
||
2435 | 3524 |
|fileName resources| |
2001 | 3525 |
|
3526 |
resources := requestor class classResources. |
|
3527 |
||
3528 |
fileName := Dialog |
|
2201 | 3529 |
requestFileName:(resources string:'save settings in:') |
3530 |
default:'settings.stx' |
|
3531 |
ok:(resources string:'save') |
|
3532 |
abort:(resources string:'cancel') |
|
3533 |
pattern:'*.stx' |
|
2715 | 3534 |
fromDirectory:'.'. |
2001 | 3535 |
|
2435 | 3536 |
self saveSettingsFor:requestor in:fileName. |
3537 |
! |
|
3538 |
||
3539 |
saveSettingsFor:requestor in:fileName |
|
3540 |
"save settings to a settings-file." |
|
3541 |
||
3542 |
"a temporary kludge - we need a central systemSettings object for this, |
|
3543 |
which can be saved/restored with a single store/read. |
|
3544 |
Will move entries over to UserPreferences over time; |
|
3545 |
new items should always go there." |
|
3546 |
||
3547 |
|s screen currentUserPrefs| |
|
3548 |
||
2021 | 3549 |
(fileName size == 0) ifTrue:[ |
2201 | 3550 |
"/ canceled |
3551 |
^ self |
|
2001 | 3552 |
]. |
3553 |
||
3554 |
s := fileName asFilename writeStream. |
|
3555 |
s isNil ifTrue:[ |
|
2621 | 3556 |
requestor warn:'cannot write the ''' , fileName , ''' file'. |
2201 | 3557 |
^ self |
2001 | 3558 |
]. |
3559 |
||
2435 | 3560 |
currentUserPrefs := UserPreferences current. |
2457 | 3561 |
screen := Screen current. |
2435 | 3562 |
|
2001 | 3563 |
s nextPutLine:'"/ ST/X saved settings'; |
3564 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
3565 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
3566 |
nextPutLine:'"/'; |
|
3567 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
3568 |
nextPutLine:'"/ ''save settings'' function of the Launcher'; |
|
3569 |
nextPutLine:'"/'. |
|
3570 |
s cr. |
|
3571 |
||
3572 |
s nextPutLine:'"/'. |
|
3573 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
3574 |
s nextPutLine:'"/'. |
|
3575 |
s cr. |
|
3576 |
||
3577 |
s nextPutLine:'"/'. |
|
3578 |
s nextPutLine:'"/ Display settings:'. |
|
3579 |
s nextPutLine:'"/'. |
|
3580 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
2456
8434c67045db
settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents:
2435
diff
changeset
|
3581 |
s nextPutLine:'Display notNil ifTrue:['. |
2457 | 3582 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
2001 | 3583 |
screen fixColors notNil ifTrue:[ |
2201 | 3584 |
s nextPutLine:' Image flushDeviceImages.'. |
3585 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
3586 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
3587 |
s nextPutLine:' ].'. |
|
2001 | 3588 |
] ifFalse:[ |
2201 | 3589 |
s nextPutLine:' Display releaseFixColors.'. |
2001 | 3590 |
]. |
3591 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
3592 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
3593 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
3594 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
3595 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
3596 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
|
2456
8434c67045db
settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents:
2435
diff
changeset
|
3597 |
s nextPutLine:' ].'. |
2001 | 3598 |
s nextPutLine:'].'. |
3599 |
s cr. |
|
3600 |
||
3601 |
s nextPutLine:'"/'. |
|
3602 |
s nextPutLine:'"/ Compiler settings:'. |
|
3603 |
s nextPutLine:'"/'. |
|
3604 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
3605 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
3606 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
3607 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
3608 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
|
3609 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
|
3610 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
|
3611 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
3612 |
||
3613 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
2596 | 3614 |
nextPutLine:'Compiler stcCompilation: ' , (Compiler stcCompilation storeString) , '.'; |
3615 |
nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:['; |
|
3616 |
nextPutLine:' Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
3617 |
nextPutLine:' Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
3618 |
nextPutLine:' Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
3619 |
nextPutLine:' ' , (Compiler stcModulePath storeString) , ' asFilename exists ifTrue:['; |
|
3620 |
nextPutLine:' Compiler stcModulePath: ' , (Compiler stcModulePath storeString) , '.'; |
|
3621 |
nextPutLine:' ].'; |
|
3622 |
nextPutLine:' Compiler stcPath: ' , (Compiler stcPath storeString) , '.'; |
|
3623 |
nextPutLine:' Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
3624 |
nextPutLine:' Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
3625 |
nextPutLine:' ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.'; |
|
3626 |
nextPutLine:' ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.'; |
|
3627 |
nextPutLine:' ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'; |
|
3628 |
nextPutLine:' ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'; |
|
3629 |
nextPutLine:'].'; |
|
2001 | 3630 |
|
3631 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
3632 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
3633 |
||
3634 |
HistoryManager notNil ifTrue:[ |
|
2201 | 3635 |
HistoryManager isActive ifTrue:[ |
3636 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
3637 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
3638 |
] ifFalse:[ |
|
3639 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
3640 |
]. |
|
2001 | 3641 |
]. |
3642 |
||
3643 |
ObjectFileLoader notNil ifTrue:[ |
|
2201 | 3644 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
3645 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
|
2001 | 3646 |
]. |
3647 |
||
3648 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
3649 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
3650 |
||
3651 |
s cr. |
|
3652 |
s nextPutLine:'"/'. |
|
3653 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
3654 |
s nextPutLine:'"/'. |
|
3655 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
3656 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
3657 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
3658 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
3659 |
||
3660 |
||
3661 |
s cr. |
|
3662 |
s nextPutLine:'"/'. |
|
3663 |
s nextPutLine:'"/ Edit settings:'. |
|
3664 |
s nextPutLine:'"/'. |
|
3665 |
s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
3666 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
|
2395 | 3667 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (currentUserPrefs syntaxColoring storeString) , '.'. |
2719 | 3668 |
|
3669 |
s nextPutLine:'"/'. |
|
3670 |
s nextPutLine:'"/ User preference values:'. |
|
3671 |
s nextPutLine:'"/'. |
|
2395 | 3672 |
currentUserPrefs keysAndValuesDo:[:k :v | |
2719 | 3673 |
(UserPreferences implements:(k , ':') asSymbol) ifTrue:[ |
3674 |
s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'. |
|
3675 |
] ifFalse:[ |
|
3676 |
s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'. |
|
3677 |
] |
|
2201 | 3678 |
]. |
2833 | 3679 |
(RBFormatter notNil and:[RBFormatter isLoaded]) ifTrue:[ |
3680 |
s nextPutLine:'RBFormatter notNil ifTrue:[ '. |
|
3681 |
s nextPutLine:' RBFormatter tabIndent: ' , (RBFormatter tabIndent storeString) , '.'. |
|
3682 |
s nextPutLine:' RBFormatter spaceAfterReturnToken: ' , (RBFormatter spaceAfterReturnToken storeString) , '.'. |
|
3683 |
s nextPutLine:' RBFormatter spaceAfterKeywordSelector: ' , (RBFormatter spaceAfterKeywordSelector storeString) , '.'. |
|
3684 |
s nextPutLine:' RBFormatter spaceAroundTemporaries: ' , (RBFormatter spaceAroundTemporaries storeString) , '.'. |
|
3685 |
s nextPutLine:' RBFormatter emptyLineAfterTemporaries: ' , (RBFormatter emptyLineAfterTemporaries storeString) , '.'. |
|
3686 |
s nextPutLine:' RBFormatter cStyleBlocks: ' , (RBFormatter cStyleBlocks storeString) , '.'. |
|
3687 |
s nextPutLine:' RBFormatter blockArgumentsOnNewLine: ' , (RBFormatter blockArgumentsOnNewLine storeString) , '.'. |
|
3688 |
s nextPutLine:' RBFormatter maxLengthForSingleLineBlocks: ' , (RBFormatter maxLengthForSingleLineBlocks storeString) , '.'. |
|
2596 | 3689 |
s nextPutLine:'].'. |
3690 |
]. |
|
2001 | 3691 |
|
3692 |
s cr. |
|
3693 |
s nextPutLine:'"/'. |
|
3694 |
s nextPutLine:'"/ Misc settings:'. |
|
3695 |
s nextPutLine:'"/'. |
|
3696 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
3697 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
3698 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
3699 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
3700 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
3701 |
||
3702 |
"/ claus - I dont think its a good idea to save those ... |
|
3703 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
3704 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
3705 |
||
3706 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
3707 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
2456
8434c67045db
settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents:
2435
diff
changeset
|
3708 |
nextPutLine:'Display notNil ifTrue:['; |
2457 | 3709 |
nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.'; |
2456
8434c67045db
settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents:
2435
diff
changeset
|
3710 |
nextPutLine:'].'; |
2001 | 3711 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
3712 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
2017 | 3713 |
(Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[ |
2201 | 3714 |
s nextPutLine:'Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'. |
2001 | 3715 |
]. |
3716 |
Processor isTimeSlicing ifTrue:[ |
|
2201 | 3717 |
s nextPutLine:'Processor startTimeSlicing.'. |
3718 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
|
2001 | 3719 |
] ifFalse:[ |
2201 | 3720 |
s nextPutLine:'Processor stopTimeSlicing.'. |
2001 | 3721 |
]. |
3722 |
||
3723 |
s cr. |
|
3724 |
s nextPutLine:'"/'. |
|
3725 |
s nextPutLine:'"/ Printer settings:'. |
|
3726 |
s nextPutLine:'"/'. |
|
3727 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
3728 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
3729 |
||
3730 |
Printer supportsPageSizes ifTrue:[ |
|
2201 | 3731 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
3732 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
2001 | 3733 |
]. |
3734 |
Printer supportsMargins ifTrue:[ |
|
2201 | 3735 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
3736 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
3737 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
3738 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
2001 | 3739 |
]. |
3740 |
Printer supportsPostscript ifTrue:[ |
|
2201 | 3741 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
2001 | 3742 |
]. |
3743 |
||
3744 |
s cr. |
|
3745 |
s nextPutLine:'"/'. |
|
3746 |
s nextPutLine:'"/ Font settings:'. |
|
2785 | 3747 |
s nextPutLine:'"/ (only restored, if image is restarted on the same display)'. |
2001 | 3748 |
s nextPutLine:'"/'. |
2456
8434c67045db
settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents:
2435
diff
changeset
|
3749 |
s nextPutLine:'Display notNil ifTrue:['. |
2457 | 3750 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
2269
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3751 |
s nextPutLine:' View defaultFont: ' , (View defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3752 |
s nextPutLine:' Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3753 |
s nextPutLine:' Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3754 |
s nextPutLine:' Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3755 |
s nextPutLine:' SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3756 |
s nextPutLine:' MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3757 |
s nextPutLine:' PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3758 |
s nextPutLine:' TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3759 |
s nextPutLine:' EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3760 |
s nextPutLine:' CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
2456
8434c67045db
settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents:
2435
diff
changeset
|
3761 |
s nextPutLine:' ].'. |
2269
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
3762 |
s nextPutLine:'].'. |
2001 | 3763 |
|
3764 |
s cr. |
|
3765 |
s nextPutLine:'"/'. |
|
3766 |
s nextPutLine:'"/ Language setting:'. |
|
3767 |
s nextPutLine:'"/'. |
|
3768 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
3769 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
2785 | 3770 |
|
3771 |
s cr. |
|
3772 |
s nextPutLine:'"/'. |
|
3773 |
s nextPutLine:'"/ SourceCodeManager settings:'. |
|
3774 |
s nextPutLine:'"/ (only restored, if image is restarted on the same host)'. |
|
3775 |
s nextPutLine:'"/'. |
|
3776 |
s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['. |
|
3777 |
s nextPutLine:' Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'. |
|
2786 | 3778 |
(Smalltalk at:#SourceCodeManager) == CVSSourceCodeManager ifTrue:[ |
2788 | 3779 |
s nextPutLine:' Smalltalk at:#SourceCodeManager put: CVSSourceCodeManager.'. |
2786 | 3780 |
s nextPutLine:' AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'. |
3781 |
s nextPutLine:' CVSSourceCodeManager initializeForRepository:' , CVSSourceCodeManager repositoryName storeString , '.'. |
|
3782 |
]. |
|
2785 | 3783 |
s nextPutLine:'].'. |
3784 |
||
2001 | 3785 |
s close. |
3786 |
||
3787 |
" |
|
3788 |
Transcript topView application saveSettings |
|
3789 |
" |
|
3790 |
||
2838 | 3791 |
"Modified: / 6.1.1999 / 14:24:16 / cg" |
3792 |
! |
|
2001 | 3793 |
|
3794 |
sourceAndDebuggerSettingsFor:requestor |
|
3795 |
"open a dialog on source&debugger other settings" |
|
3796 |
||
3797 |
|box check butt setupButt logDoits updChanges changeFileName |
|
3798 |
useManager hasManager cvsIsSetup |
|
3799 |
repository repositoryHolder localSourceFirst |
|
3800 |
sourceCacheDir cacheEntry |
|
3801 |
component localCheck oldIndent nm fn manager |
|
3802 |
showErrorNotifier showVerboseStack |
|
2596 | 3803 |
syntaxColoring fullSelectorCheck autoFormat |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3804 |
resources pos currentUserPrefs| |
2001 | 3805 |
|
3806 |
currentUserPrefs := UserPreferences current. |
|
3807 |
||
3808 |
resources := requestor class classResources. |
|
3809 |
||
3810 |
"/ |
|
3811 |
"/ extract relevant system settings ... |
|
3812 |
"/ |
|
3813 |
logDoits := Smalltalk logDoits asValue. |
|
3814 |
updChanges := Class updatingChanges asValue. |
|
3815 |
changeFileName := ObjectMemory nameForChanges asValue. |
|
3816 |
||
3817 |
(AbstractSourceCodeManager notNil |
|
3818 |
and:[AbstractSourceCodeManager isLoaded not]) ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3819 |
AbstractSourceCodeManager autoload. |
2001 | 3820 |
]. |
3821 |
||
3822 |
hasManager := AbstractSourceCodeManager notNil |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3823 |
and:[AbstractSourceCodeManager isLoaded]. |
2001 | 3824 |
|
3825 |
repositoryHolder := '' asValue. |
|
3826 |
hasManager ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3827 |
useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3828 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3829 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3830 |
repository := manager repositoryName. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3831 |
repository notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3832 |
repositoryHolder := repository asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3833 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3834 |
repositoryHolder := '' asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3835 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3836 |
cvsIsSetup := true. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3837 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3838 |
cvsIsSetup := false asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3839 |
] |
2001 | 3840 |
] ifFalse:[ |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3841 |
useManager := false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3842 |
localSourceFirst := false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3843 |
cvsIsSetup := false. |
2001 | 3844 |
]. |
2037
7f824ca6e61b
removed ref to (old) Launcher class
Claus Gittinger <cg@exept.de>
parents:
2034
diff
changeset
|
3845 |
showErrorNotifier := (Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) asValue. |
2001 | 3846 |
showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue. |
3847 |
syntaxColoring := currentUserPrefs syntaxColoring asValue. |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3848 |
fullSelectorCheck := currentUserPrefs fullSelectorCheck asValue. |
2596 | 3849 |
autoFormat := currentUserPrefs autoFormatting asValue. |
2001 | 3850 |
|
3851 |
sourceCacheDir := nil asValue. |
|
3852 |
||
3853 |
"/ |
|
3854 |
"/ create a box on those values ... |
|
3855 |
"/ |
|
3856 |
box := DialogBox new. |
|
3857 |
box label:(resources string:'Source & Debugger settings'). |
|
3858 |
||
3859 |
box addCheckBox:(resources string:'log compiles in changes file') on:updChanges. |
|
3860 |
box addCheckBox:(resources string:'log doIts in changes file') on:logDoits. |
|
3861 |
||
3862 |
component := box |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3863 |
addLabelledInputField:(resources string:'change file name:') |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3864 |
adjust:#right |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3865 |
on:changeFileName |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3866 |
tabable:true |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3867 |
separateAtX:0.4. |
2001 | 3868 |
component immediateAccept:true; acceptOnLeave:false. |
3869 |
||
3870 |
"/ y := box yPosition. |
|
3871 |
"/ component := box addTextLabel:(resources string:'change file name:'). |
|
3872 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
|
3873 |
"/ box yPosition:y. |
|
3874 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
|
3875 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false. |
|
3876 |
||
3877 |
box addHorizontalLine. |
|
3878 |
||
3879 |
hasManager ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3880 |
pos := box yPosition. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3881 |
check := box addCheckBox:(resources string:'sourcecode management') on:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3882 |
check enableChannel:cvsIsSetup. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3883 |
box makeTabable:check. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3884 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3885 |
cvsIsSetup value ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3886 |
AbstractSourceCodeManager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3887 |
check width:0.6. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3888 |
box yPosition:pos. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3889 |
setupButt := box addComponent:(Button label:(resources string:'setup...') |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3890 |
action:[|manager| |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3891 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3892 |
self cvsConfigurationDialogFor:requestor. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3893 |
manager := (Smalltalk at:#SourceCodeManager). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3894 |
cvsIsSetup value:manager notNil. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3895 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3896 |
repositoryHolder value: manager repositoryName. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3897 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3898 |
setupButt beInvisible. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3899 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3900 |
]). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3901 |
box makeTabable:setupButt. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3902 |
setupButt left:0.6; width:0.4. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3903 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3904 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3905 |
oldIndent := box leftIndent. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3906 |
box leftIndent:30. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3907 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3908 |
component := box |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3909 |
addLabelledInputField:(resources string:'repository:') |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3910 |
adjust:#right |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3911 |
on:repositoryHolder |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3912 |
tabable:true |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3913 |
separateAtX:0.4. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3914 |
component immediateAccept:true; acceptOnLeave:false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3915 |
component enableChannel:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3916 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3917 |
cacheEntry := box |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3918 |
addLabelledInputField:(resources string:'source cache dir:') |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3919 |
adjust:#right |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3920 |
on:sourceCacheDir |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3921 |
tabable:true |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3922 |
separateAtX:0.4. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3923 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3924 |
cacheEntry enableChannel:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3925 |
|
2737
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3926 |
pos := box yPosition. |
2807 | 3927 |
butt := Button label:(resources string:'flush cache now'). |
2737
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3928 |
butt action:[ box withWaitCursorDo:[ AbstractSourceCodeManager flushSourceCache ] ]. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3929 |
box addComponent:butt tabable:true. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3930 |
butt left:0.6; width:0.4; leftInset:0. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3931 |
|
2807 | 3932 |
butt := Button label:(resources string:'condense cache now'). |
2737
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3933 |
butt action:[ box withWaitCursorDo:[ AbstractSourceCodeManager condenseSourceCache ] ]. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3934 |
box addComponent:butt tabable:true. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3935 |
butt left:0.6; width:0.4; leftInset:0. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
3936 |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3937 |
localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3938 |
localCheck enableChannel:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3939 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3940 |
box leftIndent:oldIndent. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3941 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3942 |
(AbstractSourceCodeManager isNil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3943 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3944 |
useManager value:false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3945 |
"/ cacheEntry disable. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3946 |
"/ localCheck enable. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3947 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3948 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3949 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3950 |
box addHorizontalLine. |
2001 | 3951 |
]. |
3952 |
||
3953 |
pos := box yPosition. |
|
3954 |
check := box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring. |
|
3955 |
check width:0.6. |
|
3956 |
box yPosition:pos. |
|
3957 |
butt := box addComponent:(Button label:(resources string:'configure...') action:[self syntaxColorConfigurationDialogFor:requestor]). |
|
3958 |
box makeTabable:butt. |
|
3959 |
butt enableChannel:syntaxColoring. |
|
3960 |
butt left:0.6; width:0.4. |
|
3961 |
||
2807 | 3962 |
check := box addCheckBox:(resources string:'immediate selector check') on:fullSelectorCheck. |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3963 |
check enableChannel:syntaxColoring. |
2596 | 3964 |
|
3965 |
pos := box yPosition. |
|
3966 |
check := box addCheckBox:(resources string:'auto format') on:autoFormat. |
|
3967 |
check width:0.6. |
|
3968 |
box yPosition:pos. |
|
3969 |
butt := box addComponent:(Button label:(resources string:'configure...') action:[self formattingConfigurationDialogFor:requestor]). |
|
3970 |
box makeTabable:butt. |
|
3971 |
butt enableChannel:autoFormat. |
|
3972 |
butt left:0.6; width:0.4. |
|
3973 |
||
2001 | 3974 |
box addHorizontalLine. |
3975 |
||
3976 |
||
3977 |
box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier. |
|
3978 |
box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack. |
|
3979 |
||
2807 | 3980 |
box addHorizontalLine. |
2001 | 3981 |
box |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3982 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3983 |
addAbortAndOkButtons. |
2001 | 3984 |
|
3985 |
"/ |
|
3986 |
"/ show the box ... |
|
3987 |
"/ |
|
3988 |
box open. |
|
3989 |
||
3990 |
"/ |
|
3991 |
"/ update system settings |
|
3992 |
"/ |
|
3993 |
box accepted ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3994 |
Smalltalk logDoits:logDoits value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3995 |
Class updateChanges:updChanges value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3996 |
ObjectMemory nameForChanges:changeFileName value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3997 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3998 |
(hasManager and:[useManager value]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3999 |
manager isNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4000 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4001 |
manager := Smalltalk at:#SourceCodeManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4002 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4003 |
Class tryLocalSourceFirst:(localSourceFirst value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4004 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4005 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4006 |
localSourceFirst value ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4007 |
nm := sourceCacheDir value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4008 |
nm size > 0 ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4009 |
(fn := nm asFilename) exists ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4010 |
(self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4011 |
fn makeDirectory; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4012 |
makeReadableForAll; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4013 |
makeWritableForAll; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4014 |
makeExecutableForAll. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4015 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4016 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4017 |
(fn exists |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4018 |
and:[fn isDirectory |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4019 |
and:[fn isReadable |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4020 |
and:[fn isWritable]]]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4021 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4022 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4023 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4024 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4025 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4026 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4027 |
repositoryHolder notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4028 |
repositoryHolder value size > 0 ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4029 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4030 |
manager initializeForRepository:repositoryHolder value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4031 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4032 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4033 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4034 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4035 |
Smalltalk at:#SourceCodeManager put:nil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4036 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4037 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4038 |
showErrorNotifier value ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4039 |
Exception emergencyHandler:nil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4040 |
] ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4041 |
Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler) |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4042 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4043 |
DebugView defaultVerboseBacktrace:(showVerboseStack value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4044 |
currentUserPrefs syntaxColoring:syntaxColoring value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4045 |
currentUserPrefs at:#fullSelectorCheck put:fullSelectorCheck value. |
2596 | 4046 |
currentUserPrefs autoFormatting:autoFormat value. |
2001 | 4047 |
]. |
4048 |
box destroy |
|
4049 |
||
4050 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
4051 |
"Created: / 17.1.1997 / 17:39:33 / cg" |
|
4052 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
|
4053 |
"Modified: / 13.10.1998 / 15:47:31 / cg" |
|
4054 |
! |
|
4055 |
||
4056 |
stcCompilerSettingsFor:requestor |
|
4057 |
"open an extra dialog on stc-compiler related settings" |
|
4058 |
||
4059 |
|box |
|
2018 | 4060 |
stcIncludes stcDefines stcOptions |
2001 | 4061 |
stcLibraries stcLibraryPath cc stc ccOptions |
4062 |
linkCommand linkArgs |
|
2019 | 4063 |
component t |
4064 |
canLoadBinaries thisIsADemoVersion |
|
2001 | 4065 |
resources| |
4066 |
||
4067 |
resources := requestor class classResources. |
|
4068 |
||
4069 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
4070 |
||
4071 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
|
4072 |
stcDefines := Compiler stcCompilationDefines asValue. |
|
4073 |
stcOptions := Compiler stcCompilationOptions asValue. |
|
4074 |
ccOptions := Compiler ccCompilationOptions asValue. |
|
4075 |
||
4076 |
cc := Compiler ccPath asValue. |
|
4077 |
stc := Compiler stcPath asValue. |
|
4078 |
linkCommand := ObjectFileLoader linkCommand asValue. |
|
4079 |
linkArgs := ObjectFileLoader linkArgs asValue. |
|
4080 |
||
4081 |
ObjectFileLoader notNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4082 |
(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4083 |
stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4084 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4085 |
(t := ObjectFileLoader libPath) notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4086 |
stcLibraryPath := t asValue. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4087 |
] |
2001 | 4088 |
]. |
4089 |
||
4090 |
box := DialogBox new. |
|
4091 |
box label:(resources string:'STC Compilation settings'). |
|
4092 |
||
4093 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
|
4094 |
ObjectFileLoader notNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4095 |
thisIsADemoVersion ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4096 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4097 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4098 |
addLabelledInputField:(resources string:'stc command:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4099 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4100 |
on:stc |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4101 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4102 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4103 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4104 |
component preferredExtent:(100 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4105 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4106 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4107 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4108 |
addLabelledInputField:(resources string:'stc options:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4109 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4110 |
on:stcOptions |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4111 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4112 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4113 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4114 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4115 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4116 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4117 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4118 |
addLabelledInputField:(resources string:'cc command:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4119 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4120 |
on:cc |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4121 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4122 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4123 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4124 |
component preferredExtent:(150 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4125 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4126 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4127 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4128 |
addLabelledInputField:(resources string:'cc options:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4129 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4130 |
on:ccOptions |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4131 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4132 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4133 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4134 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4135 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4136 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4137 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4138 |
addLabelledInputField:(resources string:'include directories:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4139 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4140 |
on:stcIncludes |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4141 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4142 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4143 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4144 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4145 |
canLoadBinaries ifFalse:[component disable]. |
2001 | 4146 |
|
4147 |
"/ box addVerticalSpace. |
|
4148 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4149 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4150 |
addLabelledInputField:(resources string:'defines:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4151 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4152 |
on:stcDefines |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4153 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4154 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4155 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4156 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4157 |
canLoadBinaries ifFalse:[component disable]. |
2001 | 4158 |
|
4159 |
"/ box addVerticalSpace. |
|
4160 |
||
4161 |
"/ box addVerticalSpace. |
|
4162 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4163 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4164 |
addLabelledInputField:(resources string:'link command:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4165 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4166 |
on:linkCommand |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4167 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4168 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4169 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4170 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4171 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4172 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4173 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4174 |
addLabelledInputField:(resources string:'link args:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4175 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4176 |
on:linkArgs |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4177 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4178 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4179 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4180 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4181 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4182 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4183 |
stcLibraries notNil ifTrue:[ |
2001 | 4184 |
"/ box addVerticalSpace. |
4185 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4186 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4187 |
addLabelledInputField:(resources string:'C-libraries:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4188 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4189 |
on:stcLibraries |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4190 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4191 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4192 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4193 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4194 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4195 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4196 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4197 |
stcLibraryPath notNil ifTrue:[ |
2001 | 4198 |
"/ box addVerticalSpace. |
4199 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4200 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4201 |
addLabelledInputField:(resources string:'stc libPath:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4202 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4203 |
on:stcLibraryPath |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4204 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4205 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4206 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4207 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4208 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4209 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4210 |
]. |
2001 | 4211 |
]. |
4212 |
||
4213 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4214 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4215 |
addAbortAndOkButtons. |
2001 | 4216 |
|
4217 |
box open. |
|
4218 |
||
4219 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4220 |
thisIsADemoVersion ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4221 |
Compiler stcCompilationIncludes:stcIncludes value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4222 |
Compiler stcCompilationDefines:stcDefines value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4223 |
Compiler stcCompilationOptions:stcOptions value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4224 |
Compiler ccCompilationOptions:ccOptions value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4225 |
Compiler ccPath:cc value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4226 |
stc value ~= Compiler stcPath ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4227 |
Compiler stcPath:stc value |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4228 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4229 |
ObjectFileLoader linkCommand:linkCommand value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4230 |
ObjectFileLoader linkArgs:linkArgs value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4231 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4232 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4233 |
ObjectFileLoader notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4234 |
stcLibraries notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4235 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4236 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4237 |
stcLibraryPath notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4238 |
ObjectFileLoader libPath:(stcLibraryPath value). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4239 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4240 |
]. |
2001 | 4241 |
]. |
4242 |
box destroy |
|
4243 |
||
4244 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
|
4245 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
|
4246 |
"Created: / 2.10.1998 / 16:27:49 / cg" |
|
4247 |
"Modified: / 21.10.1998 / 19:15:10 / cg" |
|
4248 |
! |
|
4249 |
||
4250 |
toolSettingsFor:requestor |
|
4251 |
"open a dialog on tool settings" |
|
4252 |
||
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4253 |
|box resources currentUserPrefs in acceptChannel |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
4254 |
useNewInspector useNewChangesBrowser useNewSystemBrowser useNewVersionDiffBrowser |
2703 | 4255 |
showClockInLauncher showClock launcher transcriptBufferSize useNew| |
2001 | 4256 |
|
4257 |
currentUserPrefs := UserPreferences current. |
|
4258 |
||
4259 |
resources := requestor class classResources. |
|
4260 |
||
4261 |
"/ |
|
4262 |
"/ extract relevant system settings ... |
|
4263 |
"/ |
|
4264 |
useNewInspector := currentUserPrefs useNewInspector asValue. |
|
4265 |
useNewChangesBrowser := currentUserPrefs useNewChangesBrowser asValue. |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
4266 |
useNewSystemBrowser := currentUserPrefs useNewSystemBrowser asValue. |
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4267 |
showClockInLauncher := currentUserPrefs showClockInLauncher asValue. |
2395 | 4268 |
useNewVersionDiffBrowser := currentUserPrefs useNewVersionDiffBrowser asValue. |
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4269 |
transcriptBufferSize := Transcript current lineLimit printString asValue. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4270 |
|
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4271 |
acceptChannel := false asValue. |
2001 | 4272 |
|
4273 |
"/ |
|
4274 |
"/ create a box on those values ... |
|
4275 |
"/ |
|
4276 |
box := DialogBox new. |
|
4277 |
box label:(resources string:'Tool settings'). |
|
4278 |
||
4279 |
||
4280 |
||
4281 |
box addCheckBox:(resources string:'Use the new Changes Browser') on:useNewChangesBrowser. |
|
4282 |
box addHorizontalLine. |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
4283 |
box addCheckBox:(resources string:'Use the new System Browser') on:useNewSystemBrowser. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
4284 |
box addHorizontalLine. |
2239 | 4285 |
box addCheckBox:(resources string:'Use the new VersionDiff Browser') on:useNewVersionDiffBrowser. |
4286 |
box addHorizontalLine. |
|
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4287 |
box addCheckBox:(resources string:'Use Hierarchical Inspector') on:useNewInspector. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4288 |
box addHorizontalLine. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4289 |
box addCheckBox:(resources string:'Show Clock in Launcher') on:showClockInLauncher. |
2807 | 4290 |
box addHorizontalLine. |
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4291 |
in := box |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4292 |
addLabelledInputField:(resources string:'Transcript Buffer Size:') |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4293 |
adjust:#right |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4294 |
on:transcriptBufferSize |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4295 |
tabable:true |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4296 |
separateAtX:0.6. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4297 |
in acceptChannel:acceptChannel. |
2807 | 4298 |
box addHorizontalLine. |
2001 | 4299 |
|
4300 |
box |
|
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4301 |
addHelpButtonFor:'Launcher/toolSettings.html'; |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4302 |
addAbortAndOkButtons. |
2001 | 4303 |
|
4304 |
"/ |
|
4305 |
"/ show the box ... |
|
4306 |
"/ |
|
4307 |
box open. |
|
4308 |
||
4309 |
"/ |
|
4310 |
"/ update system settings |
|
4311 |
"/ |
|
4312 |
box accepted ifTrue:[ |
|
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4313 |
acceptChannel value:false; value:true. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4314 |
|
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4315 |
currentUserPrefs useNewInspector:useNewInspector value. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4316 |
currentUserPrefs useNewChangesBrowser:useNewChangesBrowser value. |
2703 | 4317 |
currentUserPrefs useNewSystemBrowser:(useNew := useNewSystemBrowser value). |
2239 | 4318 |
currentUserPrefs useNewVersionDiffBrowser:useNewVersionDiffBrowser value. |
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4319 |
|
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4320 |
showClock := showClockInLauncher value. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4321 |
currentUserPrefs showClockInLauncher ~= showClock ifTrue:[ |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4322 |
currentUserPrefs showClockInLauncher:showClock. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4323 |
launcher := Transcript application. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4324 |
(launcher isKindOf:ToolApplicationModel) ifTrue:[ |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4325 |
showClock ifTrue:[ |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4326 |
launcher startClock |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4327 |
] ifFalse:[ |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4328 |
launcher stopClock |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4329 |
] |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4330 |
] |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4331 |
]. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4332 |
|
2718 | 4333 |
Inspector := UserPreferences current inspectorClass. |
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4334 |
|
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4335 |
transcriptBufferSize := Integer readFrom:transcriptBufferSize value onError:Transcript current lineLimit. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4336 |
Transcript current lineLimit:transcriptBufferSize. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4337 |
|
2001 | 4338 |
]. |
4339 |
box destroy |
|
4340 |
||
4341 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
4342 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
|
4343 |
"Created: / 13.10.1998 / 15:44:36 / cg" |
|
4344 |
"Modified: / 13.10.1998 / 16:03:43 / cg" |
|
4345 |
! |
|
4346 |
||
4347 |
viewStyleSettingsFor:requestor |
|
4348 |
"open a dialog on viewStyle related settings" |
|
4349 |
||
2019 | 4350 |
|resourceDir dir box |
2001 | 4351 |
list listView scrView infoLabel infoForwarder newStyle |
2019 | 4352 |
someRsrcFile didApply resources listUpdater showStandardStylesOnly standardStyles| |
2001 | 4353 |
|
4354 |
showStandardStylesOnly := true asValue. |
|
2110
ed1910b1dd06
added decWindows to the standard styles
Claus Gittinger <cg@exept.de>
parents:
2097
diff
changeset
|
4355 |
standardStyles := #( |
2462 | 4356 |
'decWindows' |
4357 |
'iris' |
|
4358 |
'motif' |
|
4359 |
'mswindows95' |
|
4360 |
'next' |
|
4361 |
'normal' |
|
4362 |
'os2' |
|
4363 |
'st80' |
|
4364 |
). |
|
2001 | 4365 |
|
4366 |
resources := requestor class classResources. |
|
4367 |
||
4368 |
" |
|
4369 |
search resources directory for a list of .style files ... |
|
4370 |
" |
|
4371 |
someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style'). |
|
2462 | 4372 |
someRsrcFile isNil ifTrue:[ |
4373 |
someRsrcFile := Smalltalk getResourceFileName:'normal.style' forPackage:'stx:libview'. |
|
2528 | 4374 |
someRsrcFile isNil ifTrue:[ |
4375 |
someRsrcFile := Smalltalk getResourceFileName:'styles/normal.style' forPackage:'stx:libview'. |
|
4376 |
]. |
|
2462 | 4377 |
]. |
2001 | 4378 |
someRsrcFile notNil ifTrue:[ |
2462 | 4379 |
resourceDir := someRsrcFile asFilename directoryName |
2001 | 4380 |
] ifFalse:[ |
2462 | 4381 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
2001 | 4382 |
]. |
4383 |
||
4384 |
resourceDir isNil ifTrue:[ |
|
2621 | 4385 |
requestor warn:'no styles found (missing ''resources'' directory)'. |
2462 | 4386 |
^ self |
2001 | 4387 |
]. |
4388 |
dir := resourceDir asFilename directoryContents. |
|
4389 |
||
4390 |
list := SelectionInList new. |
|
4391 |
||
4392 |
listUpdater := [ |
|
2462 | 4393 |
|listOfStyles lastSelection| |
4394 |
||
4395 |
lastSelection := list selection. |
|
4396 |
listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style']. |
|
4397 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name]. |
|
4398 |
Filename isCaseSensitive ifFalse:[ |
|
4399 |
listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase]. |
|
4400 |
]. |
|
4401 |
listOfStyles remove:'generic' ifAbsent:nil; remove:'mswindows3' ifAbsent:nil. |
|
4402 |
showStandardStylesOnly value ifTrue:[ |
|
4403 |
listOfStyles := listOfStyles select:[:aStyleName | standardStyles includes:aStyleName]. |
|
4404 |
]. |
|
4405 |
||
4406 |
listOfStyles sort. |
|
4407 |
list list:listOfStyles. |
|
4408 |
list selection:lastSelection. |
|
2001 | 4409 |
]. |
4410 |
listUpdater value. |
|
4411 |
||
2584 | 4412 |
showStandardStylesOnly onChangeEvaluate:listUpdater. |
2001 | 4413 |
|
4414 |
infoForwarder := [ |
|
2462 | 4415 |
|nm sheet comment| |
4416 |
||
4417 |
comment := ''. |
|
4418 |
nm := list selection. |
|
4419 |
nm notNil ifTrue:[ |
|
4420 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
4421 |
comment := (sheet at:#comment ifAbsent:'') withoutSeparators. |
|
4422 |
]. |
|
4423 |
comment := comment withCRs asStringCollection. |
|
4424 |
comment size == 1 ifTrue:[ |
|
4425 |
comment := comment first |
|
4426 |
]. |
|
4427 |
infoLabel label:comment |
|
4428 |
]. |
|
2001 | 4429 |
|
2584 | 4430 |
list onChangeEvaluate:infoForwarder. |
2001 | 4431 |
|
4432 |
box := Dialog new. |
|
4433 |
box label:(resources string:'Style selection'). |
|
4434 |
||
4435 |
(box addTextLabel:(resources at:'STYLE_MSG' default:'select a style') withCRs) adjust:#left. |
|
4436 |
listView := SelectionInListView on:list. |
|
2798 | 4437 |
listView doubleClickAction:[:sel | box acceptChannel value:true. box hide]. |
2001 | 4438 |
box addCheckBox:(resources string:'standard styles only') on:showStandardStylesOnly. |
4439 |
scrView := box addComponent:(ScrollableView forView:listView) tabable:true. |
|
4440 |
||
4441 |
box addVerticalSpace. |
|
4442 |
||
4443 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
|
4444 |
||
2048 | 4445 |
box addAbortAndOkButtons. |
2001 | 4446 |
"/ mhmh - the newLauncher does not yet handle apply (without close) correctly |
4447 |
"/ b := box addButton:(Button label:(resources string:'apply')). |
|
4448 |
"/ b action:[didApply := true. requestor changeViewStyleTo:(list selection)]. |
|
4449 |
||
4450 |
(standardStyles includes:View defaultStyle) ifFalse:[ |
|
2462 | 4451 |
showStandardStylesOnly value:false |
2001 | 4452 |
]. |
4453 |
list selection:(View defaultStyle). |
|
4454 |
||
4455 |
box stickAtBottomWithVariableHeight:scrView. |
|
4456 |
box stickAtBottomWithFixHeight:infoLabel. |
|
2019 | 4457 |
didApply := false. |
2001 | 4458 |
box open. |
4459 |
||
4460 |
box destroy. |
|
4461 |
box accepted ifTrue:[ |
|
2462 | 4462 |
((newStyle := list selection) ~= View defaultStyle |
4463 |
or:[didApply ~~ true]) ifTrue:[ |
|
4464 |
requestor changeViewStyleTo:newStyle. |
|
4465 |
]. |
|
2001 | 4466 |
]. |
4467 |
||
4468 |
" |
|
4469 |
self viewStyleSettingsFor:nil |
|
4470 |
" |
|
4471 |
||
4472 |
"Modified: / 14.9.1998 / 20:33:59 / cg" |
|
4473 |
! ! |
|
4474 |
||
4475 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs - file'! |
|
4476 |
||
4477 |
objectModuleDialogFor:requestor |
|
4478 |
"opens a moduleInfo dialog" |
|
4479 |
||
4480 |
<resource: #programMenu > |
|
4481 |
||
4482 |
|allModules moduleNames |
|
4483 |
allObjects methodObjects methodNames |
|
4484 |
cObjects cObjectNames |
|
4485 |
otherObjects otherObjectNames |
|
4486 |
box l handles unloadButton unloadAndRemoveButton |
|
4487 |
list1 list2 listView1 listView2 |
|
4488 |
y panel |
|
4489 |
showBuiltIn showModules showMethods showCObjects showOthers |
|
4490 |
moduleListUpdater check canDoIt menu |
|
4491 |
resources middleLabel| |
|
4492 |
||
4493 |
resources := requestor class classResources. |
|
4494 |
||
4495 |
showBuiltIn := true asValue. |
|
4496 |
canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
4497 |
||
4498 |
showModules := canDoIt asValue. |
|
4499 |
showMethods := canDoIt asValue. |
|
4500 |
showCObjects := canDoIt asValue. |
|
4501 |
showOthers := canDoIt asValue. |
|
4502 |
||
4503 |
list1 := SelectionInList new. |
|
4504 |
list2 := SelectionInList new. |
|
4505 |
||
4506 |
moduleListUpdater := [ |
|
2584 | 4507 |
|l| |
4508 |
||
4509 |
list2 list:nil. |
|
4510 |
||
4511 |
l := Array new. |
|
4512 |
handles := Array new. |
|
4513 |
||
4514 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
4515 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
4516 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
4517 |
allModules := allModules select:[:i | |
|
4518 |
|wantToSee| |
|
4519 |
||
4520 |
wantToSee := i dynamic. |
|
4521 |
showBuiltIn value ifTrue:[ |
|
4522 |
wantToSee := wantToSee not |
|
4523 |
]. |
|
4524 |
wantToSee |
|
4525 |
] |
|
4526 |
]. |
|
4527 |
||
4528 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
|
4529 |
allModules sort:[:a :b | (a id) > (b id)]. |
|
4530 |
moduleNames := allModules collect:[:entry | entry name]. |
|
4531 |
l := l , moduleNames. |
|
4532 |
handles := handles , allModules. |
|
4533 |
]. |
|
4534 |
||
4535 |
showMethods value ifTrue:[ |
|
4536 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
4537 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
4538 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
4539 |
'compiled method - removed' " , ' (in ' , mH pathName , ')' " |
|
4540 |
] ifFalse:[ |
|
4541 |
'compiled method ' , mH method whoString " , ' (in ' , mH pathName , ')' " |
|
4542 |
]. |
|
4543 |
]. |
|
4544 |
l := l , methodNames. |
|
4545 |
handles := handles , methodObjects. |
|
4546 |
]. |
|
4547 |
||
4548 |
showCObjects value ifTrue:[ |
|
4549 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
4550 |
cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray. |
|
4551 |
cObjectNames := cObjects collect:[:entry | entry pathName]. |
|
4552 |
l := l , cObjectNames. |
|
4553 |
handles := handles , cObjects. |
|
4554 |
]. |
|
4555 |
||
4556 |
showOthers value ifTrue:[ |
|
4557 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
4558 |
otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle |
|
4559 |
or:[h isMethodHandle |
|
4560 |
or:[h isClassLibHandle]]) not]) asArray. |
|
4561 |
otherObjectNames := otherObjects collect:[:entry | entry pathName]. |
|
4562 |
l := l , otherObjectNames. |
|
4563 |
handles := handles , otherObjects. |
|
4564 |
]. |
|
4565 |
||
4566 |
showBuiltIn value ifTrue:[ |
|
4567 |
l := #('VM') , l. |
|
4568 |
handles := #(VM) , handles. |
|
4569 |
allModules := #(VM) , allModules. |
|
4570 |
]. |
|
4571 |
||
4572 |
list1 list:l. |
|
4573 |
unloadButton disable. |
|
4574 |
unloadAndRemoveButton disable. |
|
4575 |
]. |
|
4576 |
||
4577 |
showBuiltIn onChangeEvaluate:moduleListUpdater. |
|
4578 |
showModules onChangeEvaluate:moduleListUpdater. |
|
4579 |
showMethods onChangeEvaluate:moduleListUpdater. |
|
4580 |
showCObjects onChangeEvaluate:moduleListUpdater. |
|
4581 |
showOthers onChangeEvaluate:moduleListUpdater. |
|
2001 | 4582 |
|
4583 |
box := Dialog new. |
|
4584 |
box label:(resources string:'ST/X & Module Version information'). |
|
4585 |
||
4586 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
4587 |
listView1 model:list1. |
|
4588 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
4589 |
listView1 action:[:sel | |
|
2584 | 4590 |
|info classNames tabs module| |
4591 |
||
4592 |
listView1 middleButtonMenu:nil. |
|
4593 |
||
4594 |
box withWaitCursorDo:[ |
|
4595 |
|nm fileName addr entry1 entry2 entry3 method l| |
|
4596 |
||
4597 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6 3.5). |
|
4598 |
||
4599 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
4600 |
info := allModules at:sel ifAbsent:nil. |
|
4601 |
]. |
|
4602 |
info isNil ifTrue:[ |
|
4603 |
"/ selected a method, cObject or unknown |
|
4604 |
||
4605 |
module := handles at:sel. |
|
4606 |
fileName := module pathName. |
|
4607 |
||
4608 |
module isMethodHandle ifTrue:[ |
|
4609 |
middleLabel label:'contains method:'. |
|
4610 |
||
4611 |
(method := module method) isNil ifTrue:[ |
|
4612 |
nm := '** removed **'. |
|
4613 |
] ifFalse:[ |
|
4614 |
menu := PopUpMenu |
|
4615 |
labels:#('inspect' 'browse') |
|
4616 |
selectors:#(inspect browse). |
|
4617 |
menu actionAt:#inspect put:[ method inspect ]. |
|
4618 |
menu actionAt:#browse put:[ |who| |
|
4619 |
who := method who. |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
4620 |
UserPreferences current systemBrowserClass |
2584 | 4621 |
openInClass:(who methodClass) |
4622 |
selector:(who methodSelector) |
|
4623 |
]. |
|
4624 |
listView1 middleButtonMenu:menu. |
|
4625 |
||
4626 |
nm := (method whoString) asText emphasizeAllWith:(#color->Color blue). |
|
4627 |
]. |
|
4628 |
entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4629 |
entry1 colAt:1 put:'compiled method'; colAt:2 put:nm. |
|
4630 |
||
4631 |
entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4632 |
entry2 colAt:1 put:'path'; colAt:2 put:fileName. |
|
4633 |
||
4634 |
entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4635 |
entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code address hexPrintString leftPaddedTo:8 with:$0)). |
|
4636 |
||
4637 |
list2 list:(Array with:entry1 with:entry2 with:entry3). |
|
4638 |
] ifFalse:[ |
|
4639 |
(module isFunctionObjectHandle |
|
4640 |
and:[module functions notEmpty]) ifTrue:[ |
|
4641 |
middleLabel label:'contains function:'. |
|
4642 |
||
4643 |
menu := PopUpMenu |
|
4644 |
labels:#('inspect') |
|
4645 |
selectors:#(inspect). |
|
4646 |
menu actionAt:#inspect put:[ module functions inspect ]. |
|
4647 |
listView1 middleButtonMenu:menu. |
|
4648 |
||
4649 |
list2 list:((module functions select:[:f | f notNil]) |
|
4650 |
collect:[:f | |entry| |
|
4651 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4652 |
entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)). |
|
4653 |
entry colAt:2 put:('address: (16r) ' , (f code address hexPrintString leftPaddedTo:8 with:$0)). |
|
4654 |
entry |
|
4655 |
]). |
|
4656 |
] ifFalse:[ |
|
4657 |
list2 list:#('nothing known about contents (no functions have been extracted)'). |
|
4658 |
] |
|
4659 |
]. |
|
4660 |
||
4661 |
unloadButton enable. |
|
4662 |
unloadAndRemoveButton disable. |
|
4663 |
] ifFalse:[ |
|
4664 |
info == #VM ifTrue:[ |
|
4665 |
"/ dummy entry for VM; |
|
4666 |
"/ show file versions in lower view. |
|
4667 |
||
4668 |
middleLabel label:'contains modules:'. |
|
4669 |
l := (ObjectMemory getVMIdentificationStrings). |
|
4670 |
l := l select:[:entry | entry includesString:'$Header']. |
|
4671 |
l := l select:[:entry | entry includesString:',v']. |
|
4672 |
l := l collect:[:entry | |
|
4673 |
|i1 i2 file revision date listEntry| |
|
4674 |
||
4675 |
listEntry := MultiColListEntry new:3 tabulatorSpecification:tabs. |
|
4676 |
||
4677 |
i1 := entry indexOfSubCollection:'librun'. |
|
4678 |
i1 ~~ 0 ifTrue:[ |
|
4679 |
i2 := entry indexOfSubCollection:',v' startingAt:i1. |
|
4680 |
i2 ~~ 0 ifTrue:[ |
|
4681 |
file := entry copyFrom:i1+7 to:(i2-1). |
|
4682 |
listEntry colAt:1 put:file. |
|
4683 |
||
4684 |
i1 := i2+3. |
|
4685 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
4686 |
revision := entry copyFrom:i1 to:(i2-1). |
|
4687 |
listEntry colAt:2 put:revision. |
|
4688 |
||
4689 |
i1 := i2+1. |
|
4690 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
4691 |
date := entry copyFrom:i1 to:(i2-1). |
|
4692 |
listEntry colAt:3 put:date. |
|
4693 |
]. |
|
4694 |
]. |
|
4695 |
listEntry. |
|
4696 |
"/ entry |
|
4697 |
]. |
|
4698 |
list2 list:l. |
|
2001 | 4699 |
|
2584 | 4700 |
unloadButton disable. |
4701 |
unloadAndRemoveButton disable. |
|
4702 |
] ifFalse:[ |
|
4703 |
"/ selected a package |
|
4704 |
||
4705 |
"/ fill bottom list with class-info |
|
4706 |
||
4707 |
middleLabel label:'contains classes:'. |
|
4708 |
classNames := info classNames asSortedCollection. |
|
4709 |
classNames := classNames select:[:cName | |
|
4710 |
|cls| |
|
4711 |
||
4712 |
cls := Smalltalk classNamed:cName. |
|
4713 |
cls isNil ifTrue:[ |
|
4714 |
true "a removed class" |
|
4715 |
] ifFalse:[ |
|
4716 |
cls isPrivate not |
|
4717 |
]. |
|
4718 |
]. |
|
4719 |
||
4720 |
classNames := classNames collect:[:cName | |
|
4721 |
|cls entry rev listEntry| |
|
4722 |
||
4723 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4724 |
listEntry colAt:1 put:cName. |
|
4725 |
||
4726 |
cls := Smalltalk classNamed:cName. |
|
4727 |
cls isNil ifTrue:[ |
|
4728 |
listEntry colAt:2 put:'(class removed)'. |
|
4729 |
] ifFalse:[ |
|
4730 |
rev := cls binaryRevision. |
|
4731 |
rev notNil ifTrue:[ |
|
4732 |
cls isLoaded ifFalse:[ |
|
4733 |
entry := '(stub for: ' , rev. |
|
4734 |
] ifTrue:[ |
|
4735 |
entry :='(bin: ' , rev. |
|
4736 |
]. |
|
4737 |
cls revision ~= rev ifTrue:[ |
|
4738 |
entry := entry , ' / src: ' , (cls revision printString) |
|
4739 |
]. |
|
4740 |
listEntry colAt:2 put:entry , ')' |
|
4741 |
] ifFalse:[ |
|
4742 |
cls revision notNil ifTrue:[ |
|
4743 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
|
4744 |
] |
|
4745 |
] |
|
4746 |
]. |
|
4747 |
listEntry |
|
4748 |
]. |
|
4749 |
list2 list:classNames. |
|
4750 |
info dynamic ifTrue:[ |
|
4751 |
unloadButton enable. |
|
4752 |
unloadAndRemoveButton enable. |
|
4753 |
] ifFalse:[ |
|
4754 |
unloadButton disable. |
|
4755 |
unloadAndRemoveButton disable. |
|
4756 |
]. |
|
4757 |
]. |
|
4758 |
] |
|
4759 |
] |
|
2001 | 4760 |
]. |
4761 |
||
4762 |
||
4763 |
panel := HorizontalPanelView new. |
|
4764 |
||
4765 |
panel add:(l := Label label:'show:'). |
|
4766 |
l adjust:#left; borderWidth:0. |
|
4767 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
|
4768 |
box makeTabable:check. |
|
4769 |
panel add:(check := CheckBox label:'classLibs' model:showModules). |
|
4770 |
canDoIt ifFalse:[ |
|
2584 | 4771 |
check disable |
2001 | 4772 |
] ifTrue:[ |
2584 | 4773 |
box makeTabable:check. |
2001 | 4774 |
]. |
4775 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
|
4776 |
canDoIt ifFalse:[ |
|
2584 | 4777 |
check disable |
2001 | 4778 |
] ifTrue:[ |
2584 | 4779 |
box makeTabable:check. |
2001 | 4780 |
]. |
4781 |
panel add:(check := CheckBox label:'c-objects' model:showCObjects). |
|
4782 |
canDoIt ifFalse:[ |
|
2584 | 4783 |
check disable |
2001 | 4784 |
] ifTrue:[ |
2584 | 4785 |
box makeTabable:check. |
2001 | 4786 |
]. |
4787 |
panel add:(check := CheckBox label:'others' model:showOthers). |
|
4788 |
canDoIt ifFalse:[ |
|
2584 | 4789 |
check disable |
2001 | 4790 |
] ifTrue:[ |
2584 | 4791 |
box makeTabable:check. |
2001 | 4792 |
]. |
4793 |
||
4794 |
panel horizontalLayout:#fitSpace. |
|
4795 |
"/ panel horizontalLayout:#leftSpace. |
|
4796 |
||
4797 |
box addComponent:panel tabable:false. |
|
4798 |
||
4799 |
box addVerticalSpace. |
|
4800 |
box addComponent:listView1 tabable:true. |
|
4801 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
|
4802 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
4803 |
||
4804 |
l := box addTextLabel:(resources string:'contains:'). |
|
4805 |
l adjust:#left; borderWidth:0. |
|
4806 |
l origin:0.0@0.4 corner:1.0@0.4. |
|
4807 |
l topInset:(View viewSpacing). |
|
4808 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
|
4809 |
middleLabel := l. |
|
4810 |
||
4811 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
4812 |
listView2 model:list2; printItems:false. |
|
4813 |
box addComponent:listView2 tabable:true. |
|
4814 |
listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2. |
|
4815 |
listView2 disable. |
|
4816 |
||
4817 |
unloadButton := Button label:(resources string:'unload'). |
|
4818 |
unloadButton action:[ |
|
2584 | 4819 |
box withWaitCursorDo:[ |
4820 |
|info idx pathName| |
|
4821 |
||
4822 |
idx := list1 selectionIndex. |
|
4823 |
info := allModules at:idx ifAbsent:nil. |
|
4824 |
||
4825 |
list1 selectionIndex:nil. |
|
4826 |
||
4827 |
info isNil ifTrue:[ |
|
4828 |
"/ selected a method |
|
4829 |
"/ idx := idx - allModules size. |
|
4830 |
pathName := (handles at:idx) pathName. |
|
4831 |
||
4832 |
] ifFalse:[ |
|
4833 |
"/ selected a package |
|
4834 |
pathName := info pathName. |
|
4835 |
]. |
|
4836 |
ObjectFileLoader unloadObjectFile:pathName. |
|
4837 |
moduleListUpdater value. |
|
4838 |
unloadButton disable. |
|
4839 |
] |
|
2001 | 4840 |
]. |
4841 |
||
4842 |
unloadAndRemoveButton := Button label:(resources string:'remove classes & unload'). |
|
4843 |
unloadAndRemoveButton action:[ |
|
2584 | 4844 |
box withWaitCursorDo:[ |
4845 |
|info idx pathName| |
|
4846 |
||
4847 |
idx := list1 selectionIndex. |
|
4848 |
info := allModules at:idx ifAbsent:nil. |
|
4849 |
||
4850 |
list1 selectionIndex:nil. |
|
4851 |
||
4852 |
info isNil ifTrue:[ |
|
4853 |
"/ selected a method |
|
4854 |
"/ idx := idx - allModules size. |
|
4855 |
pathName := (handles at:idx) pathName. |
|
4856 |
||
4857 |
] ifFalse:[ |
|
4858 |
"/ selected a package |
|
4859 |
pathName := info pathName. |
|
4860 |
]. |
|
4861 |
ObjectFileLoader unloadObjectFileAndRemoveClasses:pathName. |
|
4862 |
moduleListUpdater value. |
|
4863 |
unloadAndRemoveButton disable. |
|
4864 |
] |
|
2001 | 4865 |
]. |
4866 |
||
4867 |
moduleListUpdater value. |
|
4868 |
||
4869 |
box addButton:unloadButton. |
|
4870 |
box addButton:unloadAndRemoveButton. |
|
4871 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
|
4872 |
||
4873 |
y := box yPosition. |
|
4874 |
listView2 topInset:(l preferredExtent y + 5). |
|
4875 |
listView2 bottomInset:(box preferredExtent y - y). |
|
4876 |
||
4877 |
box width:(400 min:(box device width * 2 // 3)); |
|
2584 | 4878 |
height:(450 min:(box device height - 50)). |
2001 | 4879 |
|
4880 |
"/ box sizeFixed:true. |
|
4881 |
box openWithExtent:(600 min:(box device width * 2 // 3)) |
|
2584 | 4882 |
@ |
4883 |
(500 min:(box device height - 50)) . |
|
2001 | 4884 |
|
4885 |
box destroy. |
|
4886 |
||
4887 |
"Modified: / 17.9.1995 / 16:47:50 / claus" |
|
4888 |
"Created: / 31.7.1998 / 15:49:45 / cg" |
|
4889 |
"Modified: / 10.8.1998 / 11:33:22 / cg" |
|
2490
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4890 |
! |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4891 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4892 |
packageDialogFor:requestor |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4893 |
"opens a package dialog" |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4894 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4895 |
|allPackages packageList packageUpdater |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4896 |
box l listView tabs |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4897 |
y menu resources selectedPackage| |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4898 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4899 |
resources := requestor class classResources. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4900 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4901 |
box := Dialog new. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4902 |
box label:(resources string:'Packages'). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4903 |
|
2493 | 4904 |
allPackages := Set new. |
2490
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4905 |
allPackages addAll:(Smalltalk knownPackages). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4906 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4907 |
Project knownProjects do:[:package | |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4908 |
allPackages add:(package name) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4909 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4910 |
Project loadedProjects do:[:package | |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4911 |
allPackages add:(package name) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4912 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4913 |
allPackages := allPackages asOrderedCollection sort. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4914 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4915 |
packageUpdater := [ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4916 |
tabs := TabulatorSpecification unit:#inch positions:#(0 4). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4917 |
packageList := allPackages collect:[:pName | |pkg entry| |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4918 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4919 |
pkg := Project projectWithId:pName asSymbol. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4920 |
(pkg notNil and:[pkg isLoaded]) ifTrue:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4921 |
entry colAt:1 put:pName asText allBold. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4922 |
entry colAt:2 put:'loaded'. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4923 |
] ifFalse:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4924 |
entry colAt:1 put:pName. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4925 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4926 |
(Smalltalk allClasses |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4927 |
contains:[:cls | cls package = pName and:[cls isLoaded not]]) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4928 |
ifTrue:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4929 |
(Smalltalk allClasses |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4930 |
contains:[:cls | cls package = pName and:[cls isLoaded]]) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4931 |
ifTrue:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4932 |
entry colAt:2 put:'loaded/autoloaded'. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4933 |
] ifFalse:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4934 |
entry colAt:2 put:'autoloaded'. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4935 |
] |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4936 |
] |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4937 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4938 |
entry |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4939 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4940 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4941 |
packageUpdater value. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4942 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4943 |
listView := HVScrollableView for:SelectionInListView miniScrollerH:true. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4944 |
listView list:packageList. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4945 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4946 |
box addComponent:listView tabable:true. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4947 |
listView origin:0.0@0.0 corner:1.0@1.0. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4948 |
listView bottomInset:40. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4949 |
listView action:[:selIndex | |pkg| |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4950 |
selectedPackage := (allPackages at:selIndex) asSymbol. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4951 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4952 |
pkg := Project projectWithId:selectedPackage. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4953 |
(pkg notNil and:[pkg isLoaded]) ifTrue:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4954 |
menu disable:#load. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4955 |
"/ menu enable:#unload. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4956 |
] ifFalse:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4957 |
"/ menu disable:#unload. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4958 |
menu enable:#load. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4959 |
] |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4960 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4961 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4962 |
menu := PopUpMenu |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4963 |
itemList:#( |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4964 |
('load...' load ) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4965 |
"/ ('-' nil ) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4966 |
"/ ('unload...' unload) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4967 |
) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4968 |
resources:resources. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4969 |
listView middleButtonMenu:menu. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4970 |
menu actionAt:#load put:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4971 |
box withWaitCursorDo:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4972 |
Smalltalk loadPackage:selectedPackage. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4973 |
packageUpdater value. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4974 |
] |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4975 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4976 |
"/ menu actionAt:#unload put:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4977 |
"/ box withWaitCursorDo:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4978 |
"/ Smalltalk unloadPackage:selectedPackage. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4979 |
"/ packageUpdater value. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4980 |
"/ ]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4981 |
"/ ]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4982 |
menu disable:#load. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4983 |
"/ menu disable:#unload. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4984 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4985 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4986 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4987 |
box width:(400 min:(box device width * 2 // 3)); |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4988 |
height:(450 min:(box device height - 50)). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4989 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4990 |
box openWithExtent:(600 min:(box device width * 2 // 3)) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4991 |
@ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4992 |
(500 min:(box device height - 50)) . |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4993 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4994 |
box destroy. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
4995 |
|
2001 | 4996 |
! ! |
4997 |
||
4998 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs-private'! |
|
4999 |
||
5000 |
cvsConfigurationDialogFor:requestor |
|
5001 |
|box y cvsRootHolder component resources defaultsList| |
|
5002 |
||
5003 |
resources := requestor class classResources. |
|
5004 |
||
5005 |
OperatingSystem isUNIXlike ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5006 |
defaultsList := #('/files/CVS' '/CVS' 'host:/files/CVS' 'host:/CVS'). |
2001 | 5007 |
] ifFalse:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5008 |
OperatingSystem isMSDOSlike ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5009 |
defaultsList := #(':local:c:\files\CVS' ':local:c:\CVS' 'host:/files/CVS' 'host:/CVS'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5010 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5011 |
defaultsList := #('host:/files/CVS' 'host:/CVS'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5012 |
] |
2001 | 5013 |
]. |
5014 |
||
5015 |
cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'. |
|
5016 |
cvsRootHolder := cvsRootHolder asValue. |
|
5017 |
||
5018 |
"/ |
|
5019 |
"/ create a box to input the CVSRoot ... |
|
5020 |
"/ |
|
5021 |
box := DialogBox new. |
|
5022 |
box label:(resources string:'CVS Setup'). |
|
5023 |
||
5024 |
component := (box addTextLabel:'CVS SourceCodeManager setup'). |
|
5025 |
component adjust:#left. |
|
5026 |
||
5027 |
y := box yPosition. |
|
5028 |
component := box addTextLabel:(resources string:'CVSRoot:'). |
|
5029 |
component width:0.25; adjust:#right; borderWidth:0. |
|
5030 |
box yPosition:y. |
|
5031 |
component := box addComboBoxOn:nil tabable:true. |
|
5032 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
5033 |
component width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
5034 |
component list:defaultsList. |
|
5035 |
component model:cvsRootHolder. |
|
5036 |
||
5037 |
"/ component := box |
|
5038 |
"/ addLabelledInputField:(resources string:'CVSRoot:') |
|
5039 |
"/ adjust:#right |
|
5040 |
"/ on:nil |
|
5041 |
"/ tabable:true |
|
5042 |
"/ separateAtX:0.5. |
|
5043 |
"/ component acceptOnLeave:false. |
|
5044 |
"/ component model:cvsRootHolder. |
|
5045 |
||
5046 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5047 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5048 |
addAbortAndOkButtons. |
2001 | 5049 |
|
5050 |
"/ |
|
5051 |
"/ show the box ... |
|
5052 |
"/ |
|
5053 |
box extent:400@300. |
|
5054 |
box showAtPointer. |
|
5055 |
||
5056 |
"/ |
|
5057 |
"/ update system settings |
|
5058 |
"/ |
|
5059 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
5060 |
CVSSourceCodeManager initializeForRepository:cvsRootHolder value |
2001 | 5061 |
]. |
5062 |
box destroy |
|
5063 |
||
5064 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
5065 |
"Modified: / 12.8.1998 / 17:09:02 / cg" |
|
5066 |
! |
|
5067 |
||
5068 |
fontBoxForEncoding:encodingMatch for:requestor |
|
5069 |
"open a fontBox, showing fonts which match some encoding |
|
5070 |
(used when changing to japanese ...)" |
|
5071 |
||
5072 |
|box y b |
|
5073 |
labelDef buttonDef listDef menuDef textDef |
|
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5074 |
models labels allOfThem filter resources defaultButton| |
2001 | 5075 |
|
5076 |
resources := requestor class classResources. |
|
5077 |
||
5078 |
encodingMatch notNil ifTrue:[ |
|
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5079 |
filter := [:f | f encoding notNil |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5080 |
and:[encodingMatch match:f encoding]]. |
2001 | 5081 |
]. |
5082 |
||
5083 |
models := OrderedCollection new. |
|
5084 |
labels := OrderedCollection new. |
|
5085 |
||
5086 |
models add:(allOfThem := nil asValue). |
|
5087 |
models add:(labelDef := Label defaultFont asValue). |
|
5088 |
models add:(buttonDef := Button defaultFont asValue). |
|
5089 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
5090 |
models add:(menuDef := MenuView defaultFont asValue). |
|
5091 |
models add:(textDef := TextView defaultFont asValue). |
|
5092 |
||
5093 |
box := Dialog new. |
|
5094 |
box label:(resources string:'Font settings'). |
|
5095 |
||
5096 |
models |
|
5097 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
|
5098 |
do:[:model :title | |
|
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5099 |
|y2 lbl f i| |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5100 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5101 |
f := model value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5102 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5103 |
(box addTextLabel:title) adjust:#left. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5104 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5105 |
y := box yPosition. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5106 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5107 |
b relativeExtent:nil; extent:(b preferredExtent). |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5108 |
y2 := box yPosition. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5109 |
box yPosition:y. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5110 |
i := box leftIndent. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5111 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5112 |
(lbl := box addTextLabel:'') |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5113 |
adjust:#left; |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5114 |
font:(model value); |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5115 |
labelChannel:(BlockValue |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5116 |
with:[:v | |f| |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5117 |
f := v value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5118 |
f isNil ifTrue:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5119 |
'' |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5120 |
] ifFalse:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5121 |
f userFriendlyName |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5122 |
] |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5123 |
] |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5124 |
argument:model). |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5125 |
labels add:lbl. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5126 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5127 |
box leftIndent:i. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5128 |
box yPosition:(box yPosition max:y2). |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5129 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5130 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5131 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5132 |
b action:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5133 |
|f| |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5134 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5135 |
f := FontPanel |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5136 |
fontFromUserInitial:(model value) |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5137 |
title:(resources string:'font for %1' with:title) |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5138 |
filter:filter. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5139 |
f notNil ifTrue:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5140 |
model == allOfThem ifTrue:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5141 |
models do:[:m | m value:f]. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5142 |
labels do:[:l | l font:f] |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5143 |
] ifFalse:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5144 |
model value:f. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5145 |
lbl font:f. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5146 |
]. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5147 |
] |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5148 |
]. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5149 |
model == allOfThem ifTrue:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5150 |
box addVerticalSpace |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5151 |
] |
2001 | 5152 |
]. |
5153 |
||
2048 | 5154 |
box addAbortAndOkButtons. |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5155 |
defaultButton := Button label:(resources string:'defaults'). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5156 |
|
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5157 |
(DialogBox styleSheet at:'dialogBox.okAtLeft') ifTrue:[ |
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5158 |
box addButton:defaultButton after:nil. |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5159 |
] ifFalse:[ |
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5160 |
box addButton:defaultButton before:nil. |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5161 |
]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5162 |
defaultButton |
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5163 |
action:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5164 |
"/ fetch defaults |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5165 |
View readStyleSheetAndUpdateAllStyleCaches. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5166 |
labelDef value: Label defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5167 |
buttonDef value: Button defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5168 |
listDef value: SelectionInListView defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5169 |
menuDef value: MenuView defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5170 |
textDef value: TextView defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5171 |
]. |
2001 | 5172 |
|
5173 |
box open. |
|
5174 |
box accepted ifTrue:[ |
|
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5175 |
Label defaultFont:labelDef value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5176 |
Button defaultFont:buttonDef value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5177 |
Toggle defaultFont:buttonDef value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5178 |
TextView withAllSubclasses do:[:cls | cls defaultFont:textDef value]. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5179 |
SelectionInListView withAllSubclasses do:[:cls | cls defaultFont:listDef value]. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5180 |
MenuView defaultFont:menuDef value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5181 |
PullDownMenu defaultFont:menuDef value. |
2001 | 5182 |
]. |
5183 |
box destroy. |
|
5184 |
^ box accepted |
|
5185 |
||
5186 |
"Created: / 27.2.1996 / 01:44:16 / cg" |
|
5187 |
"Modified: / 17.6.1996 / 13:38:48 / stefan" |
|
5188 |
"Modified: / 15.9.1998 / 22:04:51 / cg" |
|
5189 |
! |
|
5190 |
||
2596 | 5191 |
formattingConfigurationDialogFor:requestor |
5192 |
|dialog frame exampleView y |
|
5193 |
resources exampleText formattedText reformatAction |
|
2608 | 5194 |
reformatLocked |
2596 | 5195 |
oldUserPreferences |
5196 |
b resetList components |
|
5197 |
resetListBox currentUserPrefs |
|
5198 |
tabIndent |
|
5199 |
spaceAroundTemporaries emptyLineAfterTemporaries |
|
2608 | 5200 |
spaceAfterReturnToken spaceAfterKeywordSelector cStyleBlocks |
5201 |
blockArgumentsOnNewLine |
|
2596 | 5202 |
maxLengthForSingleLineBlocks resetValue bindings| |
5203 |
||
2833 | 5204 |
RBFormatter isNil ifTrue:[ |
5205 |
^ requestor warn:'Sorry, no RBFormatter class'. |
|
2596 | 5206 |
]. |
5207 |
||
2833 | 5208 |
RBFormatter isLoaded ifFalse:[ |
2596 | 5209 |
requestor withWaitCursorDo:[ |
2833 | 5210 |
RBFormatter autoload |
2596 | 5211 |
] |
5212 |
]. |
|
5213 |
||
5214 |
resources := requestor class classResources. |
|
5215 |
currentUserPrefs := UserPreferences current. |
|
5216 |
||
5217 |
exampleText := |
|
5218 |
'methodSelector:methodArg |
|
5219 |
"method comment: |
|
5220 |
some stupid code to show the current settings" |
|
5221 |
||
5222 |
|index| |
|
5223 |
||
5224 |
"/ another comment ... |
|
5225 |
self at:index. "/ a message |
|
5226 |
self at:index put:methodArg. "/ a two arg message |
|
5227 |
self from:1 to:index put:methodArg. "/ a three arg message |
|
5228 |
methodArg ifTrue:[ |
|
5229 |
Transcript showCR:''hello''. "/ condition |
|
5230 |
]. |
|
5231 |
methodArg ifTrue:[ |
|
5232 |
Transcript showCR:''hello''. "/ condition |
|
5233 |
] ifFalse:[ |
|
5234 |
Transcript showCR:''world''. |
|
5235 |
]. |
|
5236 |
[methodArg] whileTrue:[ |
|
5237 |
Transcript showCR:''hello''. "/ looping |
|
5238 |
]. |
|
5239 |
[self aVeryLongConditionBlock and:[self toMakeBlockLonger]] whileTrue:[ |
|
5240 |
Transcript showCR:''hello''. "/ long blocks |
|
5241 |
]. |
|
5242 |
methodArg do:[:element | |
|
5243 |
Transcript showCR:''hello''. "/ looping |
|
5244 |
]. |
|
5245 |
1 to:methodArg size do:[:index | |
|
5246 |
Transcript showCR:''hello''. "/ looping |
|
5247 |
]. |
|
5248 |
methodArg keysAndValuesDo:[:index | |
|
5249 |
Transcript showCR:''hello''. "/ looping |
|
5250 |
]. |
|
5251 |
Object errorSignal handle:[:ex | |
|
5252 |
ex return |
|
5253 |
] do:[ "/ exception handling |
|
5254 |
self someAction "/ blocks |
|
5255 |
]. |
|
5256 |
^ self. |
|
5257 |
'. |
|
5258 |
||
5259 |
formattedText := '' asValue. |
|
2608 | 5260 |
reformatLocked := false. |
2596 | 5261 |
|
5262 |
reformatAction := [ |tree |
|
5263 |
s_tabIndent s_spaceAroundTemporaries s_emptyLineAfterTemporaries |
|
5264 |
s_spaceAfterReturnToken s_spaceAfterKeywordSelector s_cStyleBlocks |
|
2608 | 5265 |
s_maxLengthForSingleLineBlocks s_blockArgumentsOnNewLine| |
5266 |
||
5267 |
reformatLocked ifFalse:[ |
|
5268 |
"/ |
|
2833 | 5269 |
"/ temporary change the RBFormatters settings ... |
2608 | 5270 |
"/ |
2833 | 5271 |
s_tabIndent := RBFormatter tabIndent. |
5272 |
s_spaceAroundTemporaries := RBFormatter spaceAroundTemporaries. |
|
5273 |
s_emptyLineAfterTemporaries := RBFormatter emptyLineAfterTemporaries. |
|
5274 |
s_spaceAfterReturnToken := RBFormatter spaceAfterReturnToken. |
|
5275 |
s_spaceAfterKeywordSelector := RBFormatter spaceAfterKeywordSelector. |
|
5276 |
s_cStyleBlocks := RBFormatter cStyleBlocks. |
|
5277 |
s_blockArgumentsOnNewLine := RBFormatter blockArgumentsOnNewLine. |
|
5278 |
s_maxLengthForSingleLineBlocks := RBFormatter maxLengthForSingleLineBlocks. |
|
5279 |
||
5280 |
RBFormatter |
|
2608 | 5281 |
tabIndent:tabIndent value; |
5282 |
spaceAroundTemporaries:spaceAroundTemporaries value; |
|
5283 |
emptyLineAfterTemporaries:emptyLineAfterTemporaries value; |
|
5284 |
spaceAfterReturnToken:spaceAfterReturnToken value; |
|
5285 |
spaceAfterKeywordSelector:spaceAfterKeywordSelector value; |
|
5286 |
cStyleBlocks:cStyleBlocks value; |
|
5287 |
blockArgumentsOnNewLine:blockArgumentsOnNewLine value; |
|
5288 |
maxLengthForSingleLineBlocks:maxLengthForSingleLineBlocks value. |
|
5289 |
||
2833 | 5290 |
tree := RBParser |
2608 | 5291 |
parseMethod:exampleText |
5292 |
onError: [:aString :position | nil]. |
|
5293 |
||
5294 |
formattedText value:tree printString. |
|
5295 |
||
2833 | 5296 |
RBFormatter |
2608 | 5297 |
tabIndent:s_tabIndent; |
5298 |
spaceAroundTemporaries:s_spaceAroundTemporaries; |
|
5299 |
emptyLineAfterTemporaries:s_emptyLineAfterTemporaries; |
|
5300 |
spaceAfterReturnToken:s_spaceAfterReturnToken; |
|
5301 |
spaceAfterKeywordSelector:s_spaceAfterKeywordSelector; |
|
5302 |
cStyleBlocks:s_cStyleBlocks; |
|
5303 |
blockArgumentsOnNewLine:s_blockArgumentsOnNewLine; |
|
5304 |
maxLengthForSingleLineBlocks:s_maxLengthForSingleLineBlocks. |
|
5305 |
]. |
|
2596 | 5306 |
]. |
5307 |
||
5308 |
bindings := IdentityDictionary new. |
|
5309 |
bindings at:#formattedText put:formattedText. |
|
5310 |
||
5311 |
oldUserPreferences := currentUserPrefs copy. |
|
5312 |
||
2833 | 5313 |
tabIndent := RBFormatter tabIndent asValue. |
2596 | 5314 |
tabIndent onChangeEvaluate:reformatAction. |
5315 |
bindings at:#tabIndent put:tabIndent. |
|
5316 |
||
2833 | 5317 |
spaceAroundTemporaries := RBFormatter spaceAroundTemporaries asValue. |
2596 | 5318 |
spaceAroundTemporaries onChangeEvaluate:reformatAction. |
5319 |
bindings at:#spaceAroundTemporaries put:spaceAroundTemporaries. |
|
5320 |
||
2833 | 5321 |
emptyLineAfterTemporaries := RBFormatter emptyLineAfterTemporaries asValue. |
2596 | 5322 |
emptyLineAfterTemporaries onChangeEvaluate:reformatAction. |
5323 |
bindings at:#emptyLineAfterTemporaries put:emptyLineAfterTemporaries. |
|
5324 |
||
2833 | 5325 |
spaceAfterReturnToken := RBFormatter spaceAfterReturnToken asValue. |
2596 | 5326 |
spaceAfterReturnToken onChangeEvaluate:reformatAction. |
5327 |
bindings at:#spaceAfterReturnToken put:spaceAfterReturnToken. |
|
5328 |
||
2833 | 5329 |
spaceAfterKeywordSelector := RBFormatter spaceAfterKeywordSelector asValue. |
2596 | 5330 |
spaceAfterKeywordSelector onChangeEvaluate:reformatAction. |
5331 |
bindings at:#spaceAfterKeywordSelector put:spaceAfterKeywordSelector. |
|
5332 |
||
2833 | 5333 |
cStyleBlocks := RBFormatter cStyleBlocks asValue. |
2596 | 5334 |
cStyleBlocks onChangeEvaluate:reformatAction. |
5335 |
bindings at:#cStyleBlocks put:cStyleBlocks. |
|
5336 |
||
2833 | 5337 |
blockArgumentsOnNewLine := RBFormatter blockArgumentsOnNewLine asValue. |
2608 | 5338 |
blockArgumentsOnNewLine onChangeEvaluate:reformatAction. |
5339 |
bindings at:#blockArgumentsOnNewLine put:blockArgumentsOnNewLine. |
|
5340 |
||
2833 | 5341 |
maxLengthForSingleLineBlocks := RBFormatter maxLengthForSingleLineBlocks asValue. |
2596 | 5342 |
maxLengthForSingleLineBlocks onChangeEvaluate:reformatAction. |
5343 |
bindings at:#maxLengthForSingleLineBlocks put:maxLengthForSingleLineBlocks. |
|
5344 |
||
2833 | 5345 |
bindings at:#resetList put:#( 'ST/X default' 'RB default' ). |
2596 | 5346 |
bindings at:#resetValue put:(resetValue := nil asValue). |
5347 |
resetValue onChangeEvaluate: |
|
5348 |
[ |
|
5349 |
resetValue value == 1 ifTrue:[ |
|
5350 |
"/ ST/X defaults |
|
2608 | 5351 |
reformatLocked := true. |
5352 |
tabIndent value: 4. |
|
5353 |
spaceAfterReturnToken value: true. |
|
5354 |
spaceAfterKeywordSelector value: false. |
|
5355 |
spaceAroundTemporaries value: false. |
|
5356 |
emptyLineAfterTemporaries value: true. |
|
5357 |
cStyleBlocks value: true. |
|
5358 |
blockArgumentsOnNewLine value:false. |
|
5359 |
maxLengthForSingleLineBlocks value: 20. |
|
5360 |
reformatLocked := false. |
|
2596 | 5361 |
reformatAction value. |
5362 |
]. |
|
5363 |
resetValue value == 2 ifTrue:[ |
|
2833 | 5364 |
"/ RBParser defaults |
2608 | 5365 |
reformatLocked := true. |
5366 |
tabIndent value: 8. |
|
5367 |
spaceAfterReturnToken value: false. |
|
5368 |
spaceAfterKeywordSelector value: true. |
|
5369 |
spaceAroundTemporaries value: true. |
|
5370 |
emptyLineAfterTemporaries value: false. |
|
5371 |
cStyleBlocks value: false. |
|
5372 |
blockArgumentsOnNewLine value:false. |
|
5373 |
maxLengthForSingleLineBlocks value: 20. |
|
5374 |
reformatLocked := false. |
|
2596 | 5375 |
reformatAction value. |
5376 |
]. |
|
5377 |
resetValue value:nil. "/ to force default label |
|
5378 |
]. |
|
5379 |
||
5380 |
reformatAction value. |
|
5381 |
||
5382 |
"/ |
|
5383 |
"/ create a box on those ... |
|
5384 |
"/ |
|
5385 |
dialog := SimpleDialog new. |
|
5386 |
dialog postBuildBlock:[:builder | |
|
5387 |
(builder componentAt:#sampleTextView) |
|
5388 |
cursorMovementWhenUpdating:nil; |
|
5389 |
scrollWhenUpdating:nil. |
|
5390 |
]. |
|
5391 |
(dialog openFor:nil |
|
5392 |
spec:(self formatterDialogSpec) |
|
5393 |
withBindings:bindings) |
|
5394 |
ifTrue:[ |
|
2833 | 5395 |
RBFormatter |
2596 | 5396 |
tabIndent:tabIndent value; |
5397 |
spaceAroundTemporaries:spaceAroundTemporaries value; |
|
5398 |
emptyLineAfterTemporaries:emptyLineAfterTemporaries value; |
|
5399 |
spaceAfterReturnToken:spaceAfterReturnToken value; |
|
5400 |
spaceAfterKeywordSelector:spaceAfterKeywordSelector value; |
|
5401 |
cStyleBlocks:cStyleBlocks value; |
|
2608 | 5402 |
blockArgumentsOnNewLine:blockArgumentsOnNewLine value; |
2596 | 5403 |
maxLengthForSingleLineBlocks:maxLengthForSingleLineBlocks value. |
5404 |
] ifFalse: [ |
|
5405 |
(UserPreferences reset; current) declareAllFrom: oldUserPreferences |
|
2838 | 5406 |
]. |
5407 |
! |
|
2596 | 5408 |
|
2001 | 5409 |
syntaxColorConfigurationDialogFor:requestor |
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5410 |
|box frame exampleView y |
2001 | 5411 |
resources exampleText coloredText recolorAction |
5412 |
syntaxColor syntaxColors colorMenu oldUserPreferences |
|
5413 |
syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox |
|
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5414 |
syntaxEmphasisesBox syntaxColoringResetButton b resetList |
2395 | 5415 |
resetListBox currentUserPrefs| |
2001 | 5416 |
|
5417 |
resources := requestor class classResources. |
|
2395 | 5418 |
currentUserPrefs := UserPreferences current. |
2001 | 5419 |
|
5420 |
exampleText := |
|
5421 |
'methodSelector:methodArg |
|
5422 |
"method comment: |
|
5423 |
some stupid code to show the current settings" |
|
5424 |
||
5425 |
|methodVar| |
|
5426 |
||
5427 |
"/ another comment ... |
|
2200 | 5428 |
self at:methodArg. "/ a message |
5429 |
self bar:methodVar. "/ a bad message |
|
2045
59dae01315b9
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
2041
diff
changeset
|
5430 |
methodVar := Array new:1. |
2200 | 5431 |
unknonVar := 1. "/ a bad variable |
5432 |
UnknonVar := 1. "/ another bad variable |
|
2001 | 5433 |
"self bar:methodVar. detect commented code easily" |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5434 |
1 to:5 do:[:i | self at:i + 1]. |
2001 | 5435 |
Transcript showCR:''some string'' , #someSymbol. |
2083 | 5436 |
^ self. |
2001 | 5437 |
'. |
5438 |
||
5439 |
coloredText := '' asValue. |
|
5440 |
recolorAction := [ coloredText value:(SyntaxHighlighter formatMethod:exampleText in:nil) ]. |
|
5441 |
recolorAction value. |
|
5442 |
||
5443 |
"/ |
|
5444 |
"/ create a box on those values ... |
|
5445 |
"/ |
|
5446 |
box := DialogBox new. |
|
5447 |
box label:(resources string:'Syntax Colors'). |
|
5448 |
||
5449 |
frame := View new. |
|
5450 |
frame extent:1.0 @ 200. |
|
5451 |
frame borderWidth:0. |
|
5452 |
||
5453 |
exampleView := HVScrollableView for:TextView in:frame. |
|
5454 |
exampleView model:coloredText. |
|
5455 |
exampleView origin:0.0@0.0 corner:1.0@1.0; inset:2. |
|
5456 |
||
5457 |
frame topInset:box yPosition. |
|
5458 |
box addComponent:frame withExtent:1.0@200. |
|
5459 |
box makeTabable:exampleView. |
|
5460 |
frame width:1.0. |
|
5461 |
||
5462 |
box addVerticalSpace. |
|
5463 |
||
2395 | 5464 |
oldUserPreferences := currentUserPrefs copy. |
2001 | 5465 |
|
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5466 |
syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColorNames initialSelection:1). |
2001 | 5467 |
syntaxColorSelector := [(syntaxColors selection replChar:$ withString: '') asLowercaseFirst asSymbol]. |
5468 |
syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol]. |
|
2395 | 5469 |
syntaxColor := (currentUserPrefs perform: syntaxColorSelector value) asValue. |
2001 | 5470 |
colorMenu := ColorMenu new. |
5471 |
colorMenu model: syntaxColor. |
|
2584 | 5472 |
syntaxColor onChangeEvaluate: |
2395 | 5473 |
[currentUserPrefs at: syntaxColorSelector value put: syntaxColor value. |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5474 |
recolorAction value.]. |
2584 | 5475 |
syntaxColors onChangeEvaluate: |
2395 | 5476 |
[syntaxColor value: (currentUserPrefs perform:syntaxColorSelector value). |
5477 |
syntaxEmphasises selection: (currentUserPrefs perform: syntaxEmphasisSelector value). |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5478 |
recolorAction value.]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5479 |
|
2233 | 5480 |
syntaxEmphasises := SelectionInList |
5481 |
with:#( |
|
5482 |
normal |
|
5483 |
underline |
|
5484 |
#'red underline' |
|
5485 |
underwave |
|
5486 |
#'red underwave' |
|
5487 |
bold |
|
5488 |
boldUnderline |
|
5489 |
#'bold+red underline' |
|
5490 |
boldUnderwave |
|
5491 |
#'bold+red underwave' |
|
5492 |
italic |
|
5493 |
italicUnderline |
|
5494 |
#'italic+red underline' |
|
5495 |
italicUnderwave |
|
5496 |
#'italic+red underwave' |
|
5497 |
reverse |
|
5498 |
) |
|
5499 |
initialSelection:1. |
|
5500 |
syntaxEmphasisesBox := box addComboListOn:syntaxEmphasises. |
|
5501 |
syntaxEmphasises |
|
2584 | 5502 |
onChangeEvaluate:[ |em| |
2569 | 5503 |
em := syntaxEmphasises selection. |
5504 |
em notNil ifTrue:[ |
|
5505 |
em := em asSymbol. |
|
5506 |
em == #'red underline' ifTrue:[ em := Array with:#underline with:(#underlineColor->Color red)]. |
|
5507 |
em == #'red underwave' ifTrue:[ em := Array with:#underwave with:(#underlineColor->Color red)]. |
|
5508 |
em == #'bold+red underline' ifTrue:[ em := Array with:#bold with:#underline with:(#underlineColor->Color red)]. |
|
5509 |
em == #'bold+red underwave' ifTrue:[ em := Array with:#bold with:#underwave with:(#underlineColor->Color red)]. |
|
5510 |
em == #'italic+red underline' ifTrue:[ em := Array with:#italic with:#underline with:(#underlineColor->Color red)]. |
|
5511 |
em == #'italic+red underwave' ifTrue:[ em := Array with:#italic with:#underwave with:(#underlineColor->Color red)]. |
|
5512 |
||
5513 |
currentUserPrefs at: syntaxEmphasisSelector value put:em. |
|
5514 |
]. |
|
2233 | 5515 |
recolorAction value |
5516 |
]. |
|
2001 | 5517 |
syntaxColors changed:#value. "/ to force initial update of emphasis |
5518 |
box addComponent:colorMenu tabable:true. |
|
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5519 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5520 |
y := box yPosition. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5521 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5522 |
b := Button new label: (resources string:'reset to:'). |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5523 |
b action:[ |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5524 |
|resetSelector| |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5525 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5526 |
resetSelector := #( |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5527 |
#resetSyntaxColors |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5528 |
#resetSyntaxColorsGreenComments |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5529 |
#resetSyntaxColorsAllBlackExceptBadIDs |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5530 |
) at:resetList selectionIndex. |
2395 | 5531 |
currentUserPrefs perform:resetSelector. |
5532 |
syntaxColor value:(currentUserPrefs perform:syntaxColorSelector value). |
|
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5533 |
recolorAction value. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5534 |
]. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5535 |
syntaxColoringResetButton := box addComponent:b. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5536 |
box makeTabable:syntaxColoringResetButton. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5537 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5538 |
box yPosition:y. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5539 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5540 |
resetList := SelectionInList |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5541 |
with:#( |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5542 |
'default' |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5543 |
'default, but green comments' |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5544 |
'no colors, but highlight errors' |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5545 |
"/ add more here ... |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5546 |
) |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5547 |
initialSelection:1. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5548 |
resetListBox := box addComboListOn:resetList. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5549 |
box makeTabable:resetListBox. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5550 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5551 |
syntaxColoringBox enable. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5552 |
colorMenu enable. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5553 |
syntaxEmphasisesBox enable. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5554 |
syntaxColoringResetButton enable. |
2001 | 5555 |
|
5556 |
box |
|
5557 |
"/ addHelpButtonFor:'Launcher/sourceSettings.html'; |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5558 |
addAbortAndOkButtons. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5559 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5560 |
box stickAtBottomWithVariableHeight:frame. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5561 |
box stickAtBottomWithFixHeight:syntaxColoringBox. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5562 |
box stickAtBottomWithFixHeight:syntaxEmphasisesBox. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5563 |
box stickAtBottomWithFixHeight:colorMenu. |
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5564 |
box stickAtBottomWithFixHeight:syntaxColoringResetButton left:0.0 right:0.5. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5565 |
box stickAtBottomWithFixHeight:resetListBox left:0.5 right:1.0. |
2001 | 5566 |
|
5567 |
"/ |
|
5568 |
"/ show the box ... |
|
5569 |
"/ |
|
2234 | 5570 |
box extent:600@400. |
2001 | 5571 |
box openModal. |
5572 |
||
5573 |
"/ |
|
5574 |
"/ update system settings |
|
5575 |
"/ |
|
5576 |
box accepted ifTrue:[ |
|
5577 |
] ifFalse: [ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5578 |
(UserPreferences reset; current) declareAllFrom: oldUserPreferences |
2001 | 5579 |
]. |
5580 |
box destroy |
|
5581 |
||
5582 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
2234 | 5583 |
"Modified: / 7.7.1999 / 00:27:02 / cg" |
2001 | 5584 |
! ! |
5585 |
||
2596 | 5586 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'interface specs'! |
5587 |
||
5588 |
formatterDialogSpec |
|
5589 |
"This resource specification was automatically generated |
|
5590 |
by the UIPainter of ST/X." |
|
5591 |
||
5592 |
"Do not manually edit this!! If it is corrupted, |
|
5593 |
the UIPainter may not be able to read the specification." |
|
5594 |
||
5595 |
" |
|
5596 |
UIPainter new openOnClass:AbstractLauncherApplication::LauncherDialogs andSelector:#formatterDialogSpec |
|
5597 |
" |
|
5598 |
||
5599 |
<resource: #canvas> |
|
5600 |
||
5601 |
^ |
|
5602 |
#(#FullSpec |
|
5603 |
#name: #formatterDialogSpec |
|
5604 |
#window: |
|
5605 |
#(#WindowSpec |
|
5606 |
#label: 'Formatting parameters' |
|
5607 |
#name: 'Formatting parameters' |
|
5608 |
#min: #(#Point 10 10) |
|
5609 |
#max: #(#Point 1280 1024) |
|
2608 | 5610 |
#bounds: #(#Rectangle 10 406 606 989) |
2596 | 5611 |
) |
5612 |
#component: |
|
5613 |
#(#SpecCollection |
|
5614 |
#collection: #( |
|
5615 |
#(#LabelSpec |
|
5616 |
#label: 'Sample output:' |
|
5617 |
#name: 'Label2' |
|
5618 |
#layout: #(#LayoutFrame 0 0.0 4 0 0 1.0 26 0) |
|
5619 |
#translateLabel: true |
|
5620 |
#adjust: #left |
|
5621 |
) |
|
5622 |
#(#TextEditorSpec |
|
5623 |
#name: 'sampleTextView' |
|
5624 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 -234 1.0) |
|
5625 |
#level: -1 |
|
5626 |
#model: #formattedText |
|
5627 |
#hasHorizontalScrollBar: true |
|
5628 |
#hasVerticalScrollBar: true |
|
5629 |
) |
|
5630 |
#(#FramedBoxSpec |
|
5631 |
#label: 'Parameters' |
|
5632 |
#name: 'FramedBox1' |
|
5633 |
#layout: #(#LayoutFrame 0 0.0 -225 1 0 1.0 -30 1) |
|
5634 |
#labelPosition: #topLeft |
|
5635 |
#translateLabel: true |
|
5636 |
#component: |
|
5637 |
#(#SpecCollection |
|
5638 |
#collection: #( |
|
5639 |
#(#LabelSpec |
|
5640 |
#label: 'Max length for single line blocks:' |
|
5641 |
#name: 'Label1' |
|
2608 | 5642 |
#layout: #(#LayoutFrame 185 0.0 127 0 66 0.7 153 0) |
2596 | 5643 |
#level: 0 |
5644 |
#adjust: #right |
|
5645 |
) |
|
5646 |
#(#CheckBoxSpec |
|
2601 | 5647 |
#label: 'Space around temporaries ' |
5648 |
#name: 'checkBox' |
|
5649 |
#layout: #(#LayoutFrame 2 0 3 0 260 0 32 0) |
|
2596 | 5650 |
#level: 0 |
2601 | 5651 |
#tabable: true |
5652 |
#model: #spaceAroundTemporaries |
|
2596 | 5653 |
#translateLabel: true |
5654 |
) |
|
5655 |
#(#CheckBoxSpec |
|
5656 |
#label: 'Blank line after local var declaration' |
|
5657 |
#name: 'CheckBox1' |
|
5658 |
#layout: #(#LayoutFrame 267 0 3 0 567 0 32 0) |
|
5659 |
#level: 0 |
|
2601 | 5660 |
#tabable: true |
2596 | 5661 |
#model: #emptyLineAfterTemporaries |
5662 |
#translateLabel: true |
|
5663 |
) |
|
5664 |
#(#CheckBoxSpec |
|
5665 |
#label: 'Space after ''^''' |
|
5666 |
#name: 'CheckBox2' |
|
5667 |
#layout: #(#LayoutFrame 2 0 31 0 260 0 60 0) |
|
5668 |
#level: 0 |
|
2601 | 5669 |
#tabable: true |
2596 | 5670 |
#model: #spaceAfterReturnToken |
5671 |
#translateLabel: true |
|
5672 |
) |
|
5673 |
#(#CheckBoxSpec |
|
5674 |
#label: 'Space after '':'' in keywords' |
|
5675 |
#name: 'CheckBox3' |
|
5676 |
#layout: #(#LayoutFrame 267 0 31 0 567 0 60 0) |
|
5677 |
#level: 0 |
|
2601 | 5678 |
#tabable: true |
2596 | 5679 |
#model: #spaceAfterKeywordSelector |
5680 |
#translateLabel: true |
|
5681 |
) |
|
5682 |
#(#CheckBoxSpec |
|
2601 | 5683 |
#label: 'C-Style blocks' |
5684 |
#name: 'CheckBox4' |
|
5685 |
#layout: #(#LayoutFrame 2 0 59 0 260 0 88 0) |
|
2596 | 5686 |
#level: 0 |
2601 | 5687 |
#tabable: true |
5688 |
#model: #cStyleBlocks |
|
2596 | 5689 |
#translateLabel: true |
5690 |
) |
|
5691 |
#(#InputFieldSpec |
|
5692 |
#name: 'editField' |
|
2608 | 5693 |
#layout: #(#LayoutFrame 74 0.7 93 0 -38 1.0 119 0) |
2596 | 5694 |
#level: -1 |
2601 | 5695 |
#tabable: true |
2596 | 5696 |
#model: #tabIndent |
5697 |
#type: #number |
|
5698 |
#immediateAccept: false |
|
5699 |
#acceptOnLeave: true |
|
5700 |
#acceptOnReturn: true |
|
5701 |
#acceptOnTab: true |
|
5702 |
#acceptOnLostFocus: true |
|
5703 |
#acceptOnPointerLeave: true |
|
5704 |
) |
|
5705 |
#(#LabelSpec |
|
5706 |
#label: 'Indent:' |
|
5707 |
#name: 'label' |
|
2608 | 5708 |
#layout: #(#LayoutFrame 242 0.0 93 0 66 0.7 119 0) |
2596 | 5709 |
#level: 0 |
5710 |
#adjust: #right |
|
5711 |
) |
|
2601 | 5712 |
#(#InputFieldSpec |
5713 |
#name: 'EntryField1' |
|
2608 | 5714 |
#layout: #(#LayoutFrame 74 0.7 127 0 -38 1.0 153 0) |
2601 | 5715 |
#level: -1 |
5716 |
#tabable: true |
|
5717 |
#model: #maxLengthForSingleLineBlocks |
|
5718 |
#type: #number |
|
5719 |
#immediateAccept: false |
|
5720 |
#acceptOnLeave: true |
|
5721 |
#acceptOnReturn: true |
|
5722 |
#acceptOnTab: true |
|
5723 |
#acceptOnLostFocus: true |
|
5724 |
#acceptOnPointerLeave: true |
|
5725 |
) |
|
2596 | 5726 |
#(#PopUpListSpec |
5727 |
#label: 'Reset to...' |
|
5728 |
#name: 'PopUpList1' |
|
2608 | 5729 |
#layout: #(#LayoutFrame 2 0 129 0 127 0 151 0) |
2601 | 5730 |
#tabable: true |
2596 | 5731 |
#model: #resetValue |
5732 |
#menu: #resetList |
|
5733 |
#useIndex: true |
|
5734 |
) |
|
2608 | 5735 |
#(#CheckBoxSpec |
5736 |
#label: 'Block args on new line' |
|
5737 |
#name: 'CheckBox5' |
|
5738 |
#layout: #(#LayoutFrame 267 0 59 0 567 0 88 0) |
|
5739 |
#level: 0 |
|
5740 |
#tabable: true |
|
5741 |
#model: #blockArgumentsOnNewLine |
|
5742 |
#translateLabel: true |
|
5743 |
) |
|
2596 | 5744 |
) |
5745 |
||
5746 |
) |
|
5747 |
) |
|
5748 |
#(#HorizontalPanelViewSpec |
|
5749 |
#name: 'horizontalPanelView' |
|
5750 |
#layout: #(#LayoutFrame 0 0.0 -35 1.0 0 1.0 0 1.0) |
|
5751 |
#level: 0 |
|
5752 |
#horizontalLayout: #fitSpace |
|
5753 |
#verticalLayout: #center |
|
5754 |
#horizontalSpace: 4 |
|
5755 |
#verticalSpace: 4 |
|
5756 |
#ignoreInvisibleComponents: true |
|
5757 |
#component: |
|
5758 |
#(#SpecCollection |
|
5759 |
#collection: #( |
|
5760 |
#(#ActionButtonSpec |
|
5761 |
#label: 'cancel' |
|
5762 |
#name: 'button' |
|
5763 |
#translateLabel: true |
|
2601 | 5764 |
#tabable: true |
2596 | 5765 |
#model: #cancel |
2601 | 5766 |
#useDefaultExtent: true |
2596 | 5767 |
) |
5768 |
#(#ActionButtonSpec |
|
5769 |
#label: 'ok' |
|
5770 |
#name: 'Button1' |
|
5771 |
#translateLabel: true |
|
2601 | 5772 |
#tabable: true |
2596 | 5773 |
#model: #accept |
5774 |
#isDefault: true |
|
2601 | 5775 |
#useDefaultExtent: true |
2596 | 5776 |
) |
5777 |
) |
|
5778 |
||
5779 |
) |
|
5780 |
) |
|
5781 |
) |
|
5782 |
||
5783 |
) |
|
5784 |
) |
|
5785 |
! ! |
|
5786 |
||
2001 | 5787 |
!AbstractLauncherApplication class methodsFor:'documentation'! |
5788 |
||
5789 |
version |
|
2845 | 5790 |
^ '$Header: /cvs/stx/stx/libtool/AbstractLauncherApplication.st,v 1.134 2000-11-15 12:36:59 cg Exp $' |
2001 | 5791 |
! ! |