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