author | Claus Gittinger <cg@exept.de> |
Wed, 17 Jul 2002 18:12:42 +0200 | |
changeset 3738 | fc625b46878b |
parent 3690 | 828698baf5ac |
child 3741 | a9d08a1b0d7d |
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 |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
17 |
instanceVariableNames:'transcript' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
18 |
classVariableNames:'NotifyingEmergencyHandler OpenLaunchers RegisteredMenuHandlers' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
19 |
poolDictionaries:'' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
20 |
category:'Interface-Smalltalk' |
2001 | 21 |
! |
22 |
||
23 |
Object subclass:#LauncherDialogs |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
24 |
instanceVariableNames:'' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
25 |
classVariableNames:'' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
26 |
poolDictionaries:'' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
27 |
privateIn:AbstractLauncherApplication |
2001 | 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 |
||
3079 | 99 |
OpenLaunchers isNil ifTrue:[ |
100 |
OpenLaunchers := IdentitySet new |
|
101 |
]. |
|
102 |
^ OpenLaunchers |
|
2001 | 103 |
! ! |
104 |
||
105 |
!AbstractLauncherApplication class methodsFor:'defaults'! |
|
106 |
||
107 |
notifyingEmergencyHandler |
|
108 |
"return a block (used as an emergency handler |
|
109 |
for exceptions), which does errorNotification before going |
|
110 |
into the debugger." |
|
111 |
||
112 |
"Remember the handlerBlock, to be able to determine if the current |
|
113 |
handler is the notifying one." |
|
114 |
||
115 |
NotifyingEmergencyHandler isNil ifTrue:[ |
|
2316
6a46309a5e43
NotifyingEmergencyHandler moved to NoHandlerError
Stefan Vogel <sv@exept.de>
parents:
2314
diff
changeset
|
116 |
NotifyingEmergencyHandler := NoHandlerError notifyingEmergencyHandler |
2001 | 117 |
]. |
118 |
^ NotifyingEmergencyHandler |
|
119 |
||
120 |
"Created: 7.1.1997 / 22:18:19 / cg" |
|
121 |
"Modified: 15.1.1997 / 21:15:38 / cg" |
|
122 |
! ! |
|
123 |
||
2195 | 124 |
!AbstractLauncherApplication class methodsFor:'queries'! |
125 |
||
126 |
isVisualStartable |
|
2845 | 127 |
"return true, if this application can be started via #open. |
128 |
(to allow start of a change browser via double-click in the browser)" |
|
2195 | 129 |
|
2762 | 130 |
"/ assume all my subclasses can |
131 |
^ self ~~ AbstractLauncherApplication |
|
132 |
||
133 |
" |
|
134 |
AbstractLauncherApplication isVisualStartable |
|
135 |
NewLauncher isVisualStartable |
|
136 |
" |
|
2195 | 137 |
! ! |
138 |
||
2001 | 139 |
!AbstractLauncherApplication methodsFor:'private'! |
140 |
||
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
141 |
findApplicationClass:classOrClassName nameSpace:aNameSpace |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
142 |
"find some application, given the classes name. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
143 |
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
|
144 |
|
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
145 |
|cls| |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
146 |
|
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
147 |
classOrClassName isBehavior ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
148 |
cls := classOrClassName. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
149 |
] ifFalse:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
150 |
cls := Smalltalk at:classOrClassName asSymbol. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
151 |
cls isNil ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
152 |
"/ look if its in the nameSpace |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
153 |
aNameSpace notNil ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
154 |
cls := aNameSpace at:classOrClassName asSymbol |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
155 |
] |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
156 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
157 |
cls isNil ifTrue:[ |
3037 | 158 |
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
|
159 |
^ nil |
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 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
162 |
^ cls |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
163 |
! |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
164 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
165 |
findWindow:title |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
166 |
"a helper for find & destroy and find & raise operations; |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
167 |
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
|
168 |
|
2766 | 169 |
^ self findWindow:title windowGroupFilter:nil |
170 |
||
171 |
! |
|
172 |
||
173 |
findWindow:title windowGroupFilter:windowGroupFilterOrNil |
|
174 |
"a helper for find & destroy and find & raise operations; |
|
175 |
let user choose a view and return it; return nil on cancel" |
|
176 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
177 |
|knownTopViews nameList box| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
178 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
179 |
knownTopViews := IdentitySet new. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
180 |
Screen allScreens do:[:aScreen | |
2766 | 181 |
aScreen knownViews do:[:aView | |
182 |
|top showIt wg| |
|
183 |
||
184 |
aView notNil ifTrue:[ |
|
185 |
top := aView topView. |
|
186 |
(top isKindOf:DebugView) ifTrue:[ |
|
187 |
"/ although modal, show it. |
|
188 |
showIt := top realized |
|
189 |
] ifFalse:[ |
|
190 |
wg := top windowGroup. |
|
191 |
showIt := (wg notNil and:[wg isModal not]). |
|
192 |
showIt ifTrue:[ |
|
193 |
windowGroupFilterOrNil notNil ifTrue:[ |
|
194 |
showIt := windowGroupFilterOrNil includes:wg |
|
195 |
] |
|
196 |
] |
|
197 |
]. |
|
198 |
showIt ifTrue:[ |
|
199 |
knownTopViews add:top |
|
200 |
] |
|
201 |
] |
|
202 |
] |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
203 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
204 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
205 |
knownTopViews := knownTopViews asOrderedCollection. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
206 |
knownTopViews sort:[:v1 :v2 | |l1 l2| |
2766 | 207 |
l1 := v1 label ? 'aView'. |
208 |
l2 := v2 label ? 'aView'. |
|
209 |
l1 < l2 |
|
210 |
]. |
|
2041 | 211 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
212 |
nameList := knownTopViews collect:[:v | |
2766 | 213 |
|isDead wg p l| |
214 |
||
215 |
l := v label ? 'aView'. |
|
216 |
v device == Display ifFalse:[ |
|
217 |
l := l , ' [' , (v device displayName ? '?') , ']' |
|
218 |
]. |
|
219 |
((wg := v windowGroup) notNil |
|
220 |
and:[(p := wg process) notNil |
|
221 |
and:[p state ~~ #dead]]) ifTrue:[ |
|
222 |
l |
|
223 |
] ifFalse:[ |
|
224 |
l , ' (dead ?)' |
|
225 |
] |
|
226 |
]. |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
227 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
228 |
box := ListSelectionBox new. |
2766 | 229 |
box selectionChangeCallback:[:selectionIndex | |v| |
230 |
v := knownTopViews at:box selectionIndex. |
|
231 |
v raise. box raise |
|
232 |
]. |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
233 |
box noEnterField. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
234 |
box list:nameList. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
235 |
box label:(resources string:'view selection'). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
236 |
box title:(resources string:title) withCRs. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
237 |
box action:[:selection | |
2766 | 238 |
|v| |
239 |
||
240 |
v := knownTopViews at:box selectionIndex. |
|
241 |
box destroy. |
|
242 |
^ v |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
243 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
244 |
box extent:400@300. |
3293
d7b925f89a7b
dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents:
3288
diff
changeset
|
245 |
box open. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
246 |
^ nil |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
247 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
248 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
249 |
openApplication: classOrClassName |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
250 |
"open an application, given by the classe name." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
251 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
252 |
self openApplication:classOrClassName nameSpace:nil |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
253 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
254 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
255 |
openApplication:classOrClassName nameSpace:aNameSpace |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
256 |
"open some application, given the classes name. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
257 |
Look for it in Smalltalk and the given nameSpace" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
258 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
259 |
self openApplication:classOrClassName nameSpace:aNameSpace with:#open |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
260 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
261 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
262 |
openApplication:classOrClassName nameSpace:aNameSpace with:aSelector |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
263 |
"open some application, given the classes name. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
264 |
Look for it in Smalltalk and the given nameSpace" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
265 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
266 |
|cls| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
267 |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
268 |
cls := self findApplicationClass:classOrClassName nameSpace:aNameSpace. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
269 |
cls isNil ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
270 |
^ self |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
271 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
272 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
273 |
Autoload autoloadFailedSignal handle:[:ex | |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
274 |
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
|
275 |
] do:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
276 |
self withWaitCursorDo:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
277 |
cls perform:aSelector |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
278 |
] |
2005
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 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
281 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
282 |
pickAView |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
283 |
"let user pick a view and return it" |
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 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
286 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
287 |
(Delay forSeconds:1) wait. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
288 |
v := Screen current viewFromUser. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
289 |
v isNil ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
290 |
self warn:'Sorry, this is not a smalltalk view'. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
291 |
^ nil |
2005
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 |
^ v |
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 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
296 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
297 |
saveScreenImage:anImage defaultName:defaultName |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
298 |
"save an image into a file |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
299 |
- ask user for filename using a fileSelectionBox." |
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| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
302 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
303 |
fileName := Dialog |
3003
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
304 |
requestFileName:(resources string:'save image in:') |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
305 |
default:(defaultName , '.tiff') |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
306 |
ok:(resources string:'save') |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
307 |
abort:(resources string:'cancel') |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
308 |
pattern:'*.tiff' |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
309 |
fromDirectory:nil |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
310 |
whenBoxCreatedEvaluate:[:box | |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
311 |
|editButton| |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
312 |
|
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
313 |
editButton := Button label:(resources string:'edit'). |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
314 |
(DialogBox styleSheet at:'dialogBox.okAtLeft' default:false) ifFalse:[ |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
315 |
box addButton:editButton before:nil |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
316 |
] ifTrue:[ |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
317 |
box addButton:editButton after:nil |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
318 |
]. |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
319 |
editButton |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
320 |
action:[ |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
321 |
box hide; destroy. |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
322 |
ImageEditor openOnImage:anImage. |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
323 |
]. |
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
324 |
]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
325 |
fileName notNil ifTrue:[ |
3003
74e2002951dc
edit button in grab-screen area
Claus Gittinger <cg@exept.de>
parents:
2993
diff
changeset
|
326 |
anImage saveOn:fileName |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
327 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
328 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
329 |
"Modified: / 21.2.1996 / 13:09:28 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
330 |
"Created: / 29.1.1998 / 23:20:36 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
331 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
332 |
|
2001 | 333 |
showDocumentation:aRelativeDocFilePath |
334 |
"open an HTML browser on some document" |
|
335 |
||
336 |
" |
|
337 |
although that one is not yet finished, |
|
338 |
its better than nothing ... |
|
339 |
" |
|
340 |
HTMLDocumentView notNil ifTrue:[ |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
341 |
self withWaitCursorDo:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
342 |
" |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
343 |
temporary kludge; |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
344 |
not all machines can autoload binaries; |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
345 |
however, on my SGI (which can) we want it |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
346 |
to load automatically. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
347 |
" |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
348 |
HTMLDocumentView isLoaded ifFalse:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
349 |
ErrorSignal catch:[HTMLDocumentView autoload] |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
350 |
]. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
351 |
HTMLDocumentView isLoaded ifTrue:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
352 |
HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
353 |
^ self |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
354 |
]. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
355 |
] |
2001 | 356 |
]. |
357 |
||
358 |
self warn:'Sorry, the ST/X HTML reader is not |
|
359 |
included in this release. |
|
360 |
||
361 |
Please use Mosaic, netscape, chimera or any |
|
362 |
other HTML viewer to see the documentation. |
|
363 |
||
364 |
The documentation is found in the ''doc/online'' directory.'. |
|
365 |
||
366 |
"Modified: / 25.2.1998 / 21:24:20 / cg" |
|
367 |
! ! |
|
368 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
369 |
!AbstractLauncherApplication methodsFor:'private - settings callBacks'! |
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 |
changeViewStyleTo:newStyle |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
372 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
373 |
newStyle notNil ifTrue:[ |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
374 |
self withWaitCursorDo:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
375 |
(transcript ? Transcript) showCR:'change style to ' , newStyle , ' ...'. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
376 |
View defaultStyle:newStyle asSymbol. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
377 |
]. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
378 |
self reopenLauncher. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
379 |
DebugView newDebugger. |
2005
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 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
383 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
384 |
fontBoxForEncoding:encodingMatch |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
385 |
"open a fontBox, showing fonts which match some encoding |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
386 |
(used when changing to japanese ...)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
387 |
|
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
388 |
^ LauncherDialogs fontBoxForEncoding:encodingMatch for:self. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
389 |
|
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
390 |
"/ |box y b |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
391 |
"/ labelDef buttonDef listDef menuDef textDef |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
392 |
"/ models labels allOfThem filter| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
393 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
394 |
"/ encodingMatch notNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
395 |
"/ filter := [:f | f encoding notNil |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
396 |
"/ and:[encodingMatch match:f encoding]]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
397 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
398 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
399 |
"/ models := OrderedCollection new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
400 |
"/ labels := OrderedCollection new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
401 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
402 |
"/ models add:(allOfThem := nil asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
403 |
"/ models add:(labelDef := Label defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
404 |
"/ models add:(buttonDef := Button defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
405 |
"/ models add:(listDef := SelectionInListView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
406 |
"/ models add:(menuDef := MenuView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
407 |
"/ models add:(textDef := TextView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
408 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
409 |
"/ box := Dialog new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
410 |
"/ box label:(resources string:'Font settings'). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
411 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
412 |
"/ models |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
413 |
"/ 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
|
414 |
"/ do:[:model :title | |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
415 |
"/ |y2 lbl f i| |
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 |
"/ f := model value. |
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 |
"/ (box addTextLabel:title) adjust:#left. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
420 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
421 |
"/ y := box yPosition. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
422 |
"/ 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
|
423 |
"/ b relativeExtent:nil; extent:(b preferredExtent). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
424 |
"/ y2 := box yPosition. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
425 |
"/ box yPosition:y. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
426 |
"/ i := box leftIndent. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
427 |
"/ box leftIndent:(b widthIncludingBorder + View viewSpacing). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
428 |
"/ (lbl := box addTextLabel:'') |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
429 |
"/ adjust:#left; |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
430 |
"/ font:(model value); |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
431 |
"/ labelChannel:(BlockValue |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
432 |
"/ with:[:v | |f| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
433 |
"/ f := v value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
434 |
"/ f isNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
435 |
"/ '' |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
436 |
"/ ] ifFalse:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
437 |
"/ f userFriendlyName |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
438 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
439 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
440 |
"/ argument:model). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
441 |
"/ labels add:lbl. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
442 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
443 |
"/ box leftIndent:i. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
444 |
"/ box yPosition:(box yPosition max:y2). |
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 |
"/ box addHorizontalLine. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
447 |
"/ box addVerticalSpace. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
448 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
449 |
"/ b action:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
450 |
"/ |f| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
451 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
452 |
"/ f := FontPanel |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
453 |
"/ fontFromUserInitial:(model value) |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
454 |
"/ 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
|
455 |
"/ filter:filter. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
456 |
"/ f notNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
457 |
"/ model == allOfThem ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
458 |
"/ models do:[:m | m value:f]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
459 |
"/ labels do:[:l | l font:f] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
460 |
"/ ] ifFalse:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
461 |
"/ model value:f. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
462 |
"/ lbl font:f. |
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 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
465 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
466 |
"/ model == allOfThem ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
467 |
"/ box addVerticalSpace |
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 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
470 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
471 |
"/ box addAbortButton; addOkButton. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
472 |
"/ (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
|
473 |
"/ action:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
474 |
"/ "/ fetch defaults |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
475 |
"/ View readStyleSheetAndUpdateAllStyleCaches. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
476 |
"/ labelDef value: Label defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
477 |
"/ buttonDef value: Button defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
478 |
"/ listDef value: SelectionInListView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
479 |
"/ menuDef value: MenuView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
480 |
"/ textDef value: TextView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
481 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
482 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
483 |
"/ box open. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
484 |
"/ box accepted ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
485 |
"/ Label defaultFont:labelDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
486 |
"/ Button defaultFont:buttonDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
487 |
"/ Toggle defaultFont:buttonDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
488 |
"/ SelectionInListView defaultFont:listDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
489 |
"/ MenuView defaultFont:menuDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
490 |
"/ PullDownMenu defaultFont:menuDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
491 |
"/ TextView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
492 |
"/ EditTextView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
493 |
"/ CodeView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
494 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
495 |
"/ box destroy. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
496 |
"/ ^ box accepted |
2005
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 |
"Modified: / 15.9.1998 / 22:04:56 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
499 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
500 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
501 |
reopenLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
502 |
"reopen a new launcher. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
503 |
for now (since style & language settings currently do |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
504 |
not affect living views ...) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
505 |
WARNING: bad design: Message known in LauncherDialogs" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
506 |
|
2034
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
507 |
|oldOrigin contents builder newLauncher| |
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
508 |
|
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
509 |
oldOrigin := self window origin. |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
510 |
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
|
511 |
builder := self class openAt:oldOrigin. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
512 |
builder window waitUntilVisible. |
2034
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
513 |
builder window origin:oldOrigin. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
514 |
newLauncher := builder application. |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
515 |
transcript notNil ifTrue:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
516 |
newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
517 |
]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
518 |
^ newLauncher |
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 |
"Modified: / 4.8.1998 / 17:08:33 / cg" |
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 |
! ! |
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 |
!AbstractLauncherApplication methodsFor:'queries'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
525 |
|
3410 | 526 |
bugReporterAvailable |
527 |
^ BugGUI notNil |
|
528 |
! |
|
529 |
||
3120
564ee1530a8e
startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents:
3100
diff
changeset
|
530 |
hasPDALauncher |
564ee1530a8e
startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents:
3100
diff
changeset
|
531 |
^ PDALauncher notNil |
564ee1530a8e
startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents:
3100
diff
changeset
|
532 |
! |
564ee1530a8e
startPDALauncher item invisible for the normal user
Claus Gittinger <cg@exept.de>
parents:
3100
diff
changeset
|
533 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
534 |
processName |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
535 |
"for monitors only - my name" |
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 |
^ 'ST/X Launcher' |
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 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
540 |
|
3575
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
541 |
remoteImageBrowserAvailable |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
542 |
^ SmalltalkShareClient notNil and:[RemoteImage notNil] |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
543 |
! |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
544 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
545 |
transcript |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
546 |
"my transcript" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
547 |
|
3079 | 548 |
transcript isNil ifTrue:[ |
549 |
^ Transcript current |
|
550 |
]. |
|
551 |
^ transcript |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
552 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
553 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
554 |
!AbstractLauncherApplication methodsFor:'startup / release'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
555 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
556 |
addTopViewsToCurrentProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
557 |
"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
|
558 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
559 |
^ self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
560 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
561 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
562 |
|
2314
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
563 |
closeDownViews |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
564 |
OpenLaunchers remove:self ifAbsent:nil. |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
565 |
super closeDownViews |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
566 |
! |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
567 |
|
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
568 |
postBuildWith:aBuilder |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
569 |
super postBuildWith:aBuilder. |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
570 |
|
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
571 |
OpenLaunchers isNil ifTrue:[ |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
572 |
OpenLaunchers := IdentitySet new. |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
573 |
]. |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
574 |
OpenLaunchers add:self |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
575 |
|
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
576 |
! |
7ac730bdb664
OpenLaunchers as IdentitySet methodes modified add and remove
tm
parents:
2311
diff
changeset
|
577 |
|
2040 | 578 |
requestForWindowClose |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
579 |
"close request from windowing system (window close); |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
580 |
confirm and ask if closing of launcher only or |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
581 |
a smalltalk-exit is wanted" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
582 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
583 |
|answer| |
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 |
answer := Dialog |
3738 | 586 |
confirmWithCancel:(resources string:'Close %1 only or Exit Smalltalk (Close all) ?' with:self class name) |
2165 | 587 |
labels:(resources array:#('Cancel' 'Close' 'Exit')) |
588 |
default:3. |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
589 |
answer isNil ifTrue:[ |
2165 | 590 |
"/ cancel |
591 |
^ false |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
592 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
593 |
|
2165 | 594 |
answer == false ifTrue:[ |
595 |
^ true |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
596 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
597 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
598 |
self exit |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
599 |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
600 |
"Modified: / 20.5.1999 / 17:24:47 / cg" |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
601 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
602 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
603 |
saveAndTerminateRequest |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
604 |
"some windowManagers can send this, to shutDown an application |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
605 |
but let it save its state before, for later restart. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
606 |
Although I have not yet encountered such a windowManager, |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
607 |
we are already prepared for this ;-)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
608 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
609 |
self snapshot. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
610 |
super saveAndTerminateRequest |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
611 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
612 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
613 |
|
2001 | 614 |
!AbstractLauncherApplication methodsFor:'user actions - about'! |
615 |
||
616 |
openLicenseConditions |
|
617 |
"open an HTML browser on the 'LICENCE' document" |
|
618 |
||
619 |
self withWaitCursorDo:[ |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
620 |
|lang doc| |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
621 |
|
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
622 |
Smalltalk releaseIdentification = 'ST/X_free_demo_vsn' ifTrue:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
623 |
doc := 'english/LICENCE_DEMO_STX.html' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
624 |
] ifFalse:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
625 |
((lang := Smalltalk language) = 'de' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
626 |
or:[lang = 'german']) ifTrue:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
627 |
doc := 'german/LICENCE_STX.html' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
628 |
] ifFalse:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
629 |
doc := 'english/LICENCE_STX.html' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
630 |
]. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
631 |
]. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
632 |
doc := resources at:'LICENCEFILE' default:doc. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
633 |
self showDocumentation:('../' , doc) |
2001 | 634 |
] |
635 |
||
636 |
"Created: / 5.2.1998 / 21:43:19 / cg" |
|
637 |
"Modified: / 23.4.1998 / 11:45:53 / cg" |
|
638 |
! ! |
|
639 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
640 |
!AbstractLauncherApplication methodsFor:'user actions - classes'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
641 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
642 |
browseAllBreakAndTracePoints |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
643 |
"open a browser showing all breakPointed/traced methods |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
644 |
(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
|
645 |
|
3140 | 646 |
UserPreferences systemBrowserClass |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
647 |
browseMethods:(WrappedMethod allInstances) |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
648 |
title:'all breakPointed/traced methods' |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
649 |
! |
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 |
browseImplementors |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
652 |
"open an implementors- browser after asking for a selector" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
653 |
|
3369
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
654 |
|selector| |
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
655 |
|
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
656 |
selector := Dialog |
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
657 |
requestSelector:(resources at:'Browse implementors of (Tab for completion):') |
3442 | 658 |
okLabel:(resources at:'Browse') |
3369
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
659 |
initialAnswer:''. |
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
660 |
|
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
661 |
selector size > 0 ifTrue:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
662 |
self withWaitCursorDo:[ |
3140 | 663 |
UserPreferences systemBrowserClass |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
664 |
browseImplementorsOf:selector |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
665 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
666 |
]. |
3442 | 667 |
|
668 |
"Modified: / 17.11.2001 / 16:33:28 / cg" |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
669 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
670 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
671 |
browseResources |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
672 |
"open a resource- browser after asking for a resource string" |
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 |
|box resourceHolder valueHolder component rsrc value t anyString| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
675 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
676 |
anyString := resources string:'* any *'. |
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 |
resourceHolder := ValueHolder newString. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
679 |
valueHolder := '*' asValue. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
680 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
681 |
box := DialogBox new. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
682 |
box label:(resources at:'Resource search:'). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
683 |
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
|
684 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
685 |
box addVerticalSpace:10. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
686 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
687 |
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
|
688 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
689 |
component := box addComboBoxOn:resourceHolder tabable:true. |
3014 | 690 |
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
|
691 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
692 |
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
|
693 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
694 |
box addInputFieldOn:valueHolder tabable:true. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
695 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
696 |
box addVerticalSpace:10. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
697 |
box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'. |
2048 | 698 |
box addAbortAndOkButtons. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
699 |
|
3293
d7b925f89a7b
dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents:
3288
diff
changeset
|
700 |
box open. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
701 |
box destroy. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
702 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
703 |
box accepted ifTrue:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
704 |
rsrc := resourceHolder value. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
705 |
value := valueHolder value. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
706 |
|
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
707 |
(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
|
708 |
t := 'methods with any resource'. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
709 |
rsrc := nil |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
710 |
] ifFalse:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
711 |
t := 'methods with #' , rsrc , '-resource'. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
712 |
rsrc := rsrc withoutSeparators asSymbol |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
713 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
714 |
(value size == 0 or:[value = '*']) ifTrue:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
715 |
t := t , ' and any value'. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
716 |
value := nil |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
717 |
] ifFalse:[ |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
718 |
t := t , ' and value ' , value. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
719 |
]. |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
720 |
self withWaitCursorDo:[ |
3140 | 721 |
UserPreferences systemBrowserClass |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
722 |
browseForResource:rsrc |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
723 |
containing:value |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
724 |
in:(Smalltalk allClasses) |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
725 |
title:t |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
726 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
727 |
]. |
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 |
browseSenders |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
731 |
"open a senders- browser after asking for a selector" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
732 |
|
3369
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
733 |
|selector| |
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
734 |
|
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
735 |
selector := Dialog |
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
736 |
requestSelector:(resources at:'Browse senders of (Tab for completion):') |
3442 | 737 |
okLabel:(resources at:'Browse') |
3369
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
738 |
initialAnswer:''. |
ac3ce702451c
senders/implementors: Tab completion
Claus Gittinger <cg@exept.de>
parents:
3362
diff
changeset
|
739 |
selector size > 0 ifTrue:[ |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
740 |
self withWaitCursorDo:[ |
3140 | 741 |
UserPreferences systemBrowserClass |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
742 |
browseAllCallsOn:selector |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
743 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
744 |
]. |
3442 | 745 |
|
746 |
"Modified: / 17.11.2001 / 16:33:42 / cg" |
|
2005
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 |
browseUndeclared |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
750 |
"open a browser on methods refering to undeclared variables" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
751 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
752 |
self withWaitCursorDo:[ |
3140 | 753 |
UserPreferences systemBrowserClass |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
754 |
browseReferendsOf:(Smalltalk underclaredPrefix , '*') |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
755 |
title:(resources string:'references to undeclared variables') |
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
756 |
warnIfNone:true |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
757 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
758 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
759 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
760 |
removeAllBreakAndTracePoints |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
761 |
"remove all break- and trace points" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
762 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
763 |
self withCursor:Cursor execute do:[ MessageTracer cleanup] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
764 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
765 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
766 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
767 |
startClassBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
768 |
"open a classBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
769 |
|
3140 | 770 |
UserPreferences systemBrowserClass askThenBrowseClass |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
771 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
772 |
|
3100
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
773 |
startClassBrowserOnChangedClasses |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
774 |
"open a classBrowser on the changeSet" |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
775 |
|
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
776 |
NewSystemBrowser isNil ifTrue:[ |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
777 |
^ self warn:'This needs the NewSystemBrowser to be loaded.' |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
778 |
]. |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
779 |
NewSystemBrowser openOnClassesInChangeSet |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
780 |
! |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
781 |
|
3100
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
782 |
startClassBrowserOnChangedMethods |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
783 |
"open a classBrowser on the changeSet" |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
784 |
|
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
785 |
NewSystemBrowser isNil ifTrue:[ |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
786 |
^ self warn:'This needs the NewSystemBrowser to be loaded.' |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
787 |
]. |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
788 |
NewSystemBrowser openOnMethodsInChangeSet |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
789 |
! |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
790 |
|
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
791 |
startClassBrowserOnChanges |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
792 |
"open a classBrowser on the changeSet" |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
793 |
|
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
794 |
^ self startClassBrowserOnChangedClasses |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
795 |
! |
8867c882329c
added 'browse changed methods' function.
Claus Gittinger <cg@exept.de>
parents:
3079
diff
changeset
|
796 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
797 |
startClassHierarchyBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
798 |
"open a classHierarchyBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
799 |
|
3140 | 800 |
UserPreferences systemBrowserClass askThenBrowseClassHierarchy |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
801 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
802 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
803 |
startFullClassBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
804 |
"open a fullClass systemBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
805 |
|
3140 | 806 |
UserPreferences systemBrowserClass askThenBrowseFullClassProtocol |
3575
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
807 |
! |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
808 |
|
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
809 |
startRemoteImageBrowser |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
810 |
"open a remoteImage browser; asks for hostname. |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
811 |
The remote host must have an st/x running with remote browsing enabled. |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
812 |
Sorry, for now, only the old browser can be used this way." |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
813 |
|
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
814 |
|hostName| |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
815 |
|
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
816 |
hostName := Dialog request:'Remote Host:'. |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
817 |
SystemBrowser openOnRemoteImageOnHost:hostName port:nil. |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
818 |
! |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
819 |
|
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
820 |
startSnapshotImageBrowser |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
821 |
"open a snapshotImage browser; asks for filename. |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
822 |
Sorry, for now, only the old browser can be used this way." |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
823 |
|
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
824 |
|imageFileName| |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
825 |
|
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
826 |
imageFileName := Dialog requestFileName:'Name of Snapshot Image File:' default:'st.img' pattern:'*.img;*.sav'. |
c35b9ba0092c
snapshotImage and remoteImage browser
Claus Gittinger <cg@exept.de>
parents:
3572
diff
changeset
|
827 |
SystemBrowser openOnSnapShotImage:imageFileName |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
828 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
829 |
|
2038 | 830 |
!AbstractLauncherApplication methodsFor:'user actions - demos'! |
831 |
||
3035 | 832 |
startPDALauncher |
833 |
self startRemoteLauncherWithSetup:[:newDisplay | newDisplay bePDA]. |
|
834 |
! |
|
835 |
||
2038 | 836 |
startRemoteLauncher |
3035 | 837 |
self startRemoteLauncherWithSetup:[:newDisplay | ]. |
838 |
! |
|
839 |
||
840 |
startRemoteLauncherWithSetup:aSetupBlock |
|
2754 | 841 |
|host remoteDisplay remoteDisplayClass| |
2038 | 842 |
|
2620 | 843 |
host := Dialog |
844 |
request:(resources string:'Remote Launcher on which display:') |
|
3215 | 845 |
initialAnswer:'{hostName}:0' |
846 |
initialSelection:(1 to:10). |
|
2038 | 847 |
host size > 0 ifTrue:[ |
2359 | 848 |
(host includes:$:) ifFalse:[ |
849 |
host := (host , ':0') |
|
850 |
]. |
|
2754 | 851 |
|
852 |
remoteDisplayClass := XWorkstation. |
|
853 |
||
2755
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
854 |
"/ "/ 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
|
855 |
"/ "/ (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
|
856 |
"/ "/ 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
|
857 |
"/ |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
858 |
"/ "/ 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
|
859 |
"/ (Screen current supportsGLDrawing |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
860 |
"/ and:[Screen current isTrueGL not]) |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
861 |
"/ ifTrue:[ |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
862 |
"/ remoteDisplayClass := GLXWorkstation. |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
863 |
"/ ]. |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
864 |
|
3664
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
865 |
[ |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
866 |
remoteDisplay := remoteDisplayClass newDispatchingFor:host. |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
867 |
] on:Screen deviceOpenErrorSignal do:[:ex| |
2359 | 868 |
self warn:'Could not connect to display: ''' , host , '''.'. |
869 |
^ self |
|
870 |
]. |
|
3035 | 871 |
aSetupBlock value:remoteDisplay. |
2755
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
872 |
Screen currentScreenQuerySignal |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
873 |
answer:remoteDisplay |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
874 |
do:[ |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
875 |
self class open. |
48769b1546d8
use new utility method to start a remote application
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
876 |
] |
2038 | 877 |
]. |
878 |
||
879 |
"Created: / 10.9.1998 / 11:48:42 / cg" |
|
880 |
! ! |
|
881 |
||
2001 | 882 |
!AbstractLauncherApplication methodsFor:'user actions - file'! |
883 |
||
884 |
objectModuleDialog |
|
885 |
"opens a moduleInfo dialog" |
|
886 |
||
887 |
^ LauncherDialogs objectModuleDialogFor:self |
|
888 |
||
889 |
"Modified: / 31.7.1998 / 17:33:24 / cg" |
|
890 |
! |
|
891 |
||
2490
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
892 |
packageDialog |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
893 |
"opens a package dialog" |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
894 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
895 |
^ LauncherDialogs packageDialogFor:self |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
896 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
897 |
"Modified: / 31.7.1998 / 17:33:24 / cg" |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
898 |
! |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
899 |
|
2001 | 900 |
saveImageAs: aFileName |
901 |
"save image in aFilename" |
|
902 |
||
903 |
aFileName notNil ifTrue:[ |
|
2621 | 904 |
self withCursor:Cursor write do:[ |
905 |
(ObjectMemory snapShotOn:aFileName) ifFalse:[ |
|
906 |
self warn:('Failed to save snapshot image (disk full or not writable)'). |
|
907 |
] |
|
908 |
]. |
|
2001 | 909 |
]. |
910 |
! ! |
|
911 |
||
912 |
!AbstractLauncherApplication methodsFor:'user actions - help'! |
|
913 |
||
914 |
showBookPrintDocument |
|
915 |
"open an HTML browser on the 'book'-printing document" |
|
916 |
||
917 |
self showDocumentation:'BOOK.html' |
|
918 |
! |
|
919 |
||
920 |
startClassDocumentation |
|
921 |
"open an HTML browser on the 'classDoc/TOP' document" |
|
922 |
||
923 |
self showDocumentation:'classDoc/TOP.html' |
|
924 |
||
925 |
! |
|
926 |
||
927 |
startDocumentationIndex |
|
928 |
"open an HTML browser on the 'index' document" |
|
929 |
||
930 |
self showDocumentation:'index.html' |
|
931 |
! |
|
932 |
||
933 |
startDocumentationTool |
|
934 |
"open an HTML browser on the 'TOP' document" |
|
935 |
||
936 |
self showDocumentation:'TOP.html' |
|
937 |
||
938 |
! |
|
939 |
||
940 |
startWhatsNewDocumentation |
|
941 |
"open an HTML browser on the 'whatsNew.html' document" |
|
942 |
||
943 |
self showDocumentation:'whatsNew.html' |
|
944 |
||
2296 | 945 |
! |
946 |
||
947 |
startWhatsNewSTX |
|
948 |
"open an HTML browser on the 'relNotes.html' document" |
|
949 |
||
950 |
self showDocumentation:'newFeatures.html' |
|
951 |
||
2001 | 952 |
! ! |
953 |
||
954 |
!AbstractLauncherApplication methodsFor:'user actions - settings'! |
|
955 |
||
2196 | 956 |
communicationsSettings |
957 |
"open a dialog on misc other settings" |
|
958 |
||
959 |
self settingsDialog:#communicationsSettingsFor: |
|
960 |
||
961 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
962 |
! |
|
963 |
||
2001 | 964 |
compilerSettings |
965 |
"open a dialog on compiler related settings" |
|
966 |
||
967 |
self settingsDialog:#compilerSettingsFor: |
|
968 |
! |
|
969 |
||
970 |
displaySettings |
|
971 |
"open a dialog on display related settings" |
|
972 |
||
973 |
self settingsDialog:#displaySettingsFor: |
|
974 |
||
975 |
"Modified: / 31.7.1998 / 22:45:38 / cg" |
|
976 |
! |
|
977 |
||
978 |
editSettings |
|
979 |
"open a dialog on edit settings" |
|
980 |
||
981 |
self settingsDialog:#editSettingsFor: |
|
982 |
||
983 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
984 |
"Created: / 6.1.1999 / 14:14:48 / cg" |
|
985 |
! |
|
986 |
||
987 |
fontSettings |
|
988 |
"open a dialog on font related settings" |
|
989 |
||
990 |
self settingsDialog:#fontSettingsFor: |
|
991 |
||
992 |
"Modified: / 31.7.1998 / 22:45:44 / cg" |
|
993 |
! |
|
994 |
||
995 |
javaSettings |
|
996 |
"open a dialog on java-subsystem related settings" |
|
997 |
||
998 |
self settingsDialog:#javaSettingsFor: |
|
999 |
||
1000 |
"Modified: / 31.7.1998 / 22:46:13 / cg" |
|
1001 |
! |
|
1002 |
||
1003 |
keyboardSetting |
|
1004 |
"open a dialog on keyboard related settings" |
|
1005 |
||
1006 |
self settingsDialog:#keyboardSettingsFor: |
|
1007 |
||
1008 |
"Modified: / 31.7.1998 / 22:45:56 / cg" |
|
1009 |
! |
|
1010 |
||
1011 |
languageSetting |
|
1012 |
"open a dialog on language related settings" |
|
1013 |
||
1014 |
self settingsDialog:#languageSettingsFor: |
|
1015 |
||
1016 |
"Modified: / 31.7.1998 / 22:46:13 / cg" |
|
1017 |
! |
|
1018 |
||
1019 |
loadSettings |
|
1020 |
"restore settings from a settings-file." |
|
1021 |
||
1022 |
"a temporary kludge - we need a central systemSettings object for this, |
|
1023 |
which can be saved/restored with a single store/read." |
|
1024 |
||
1025 |
|fileName| |
|
1026 |
||
1027 |
fileName := Dialog |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1028 |
requestFileName:(resources string:'load settings from:') |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1029 |
default:'settings.stx' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1030 |
ok:(resources string:'load') |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1031 |
abort:(resources string:'cancel') |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1032 |
pattern:'*.stx' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1033 |
fromDirectory:nil. |
2021 | 1034 |
|
1035 |
(fileName size == 0) ifTrue:[ |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1036 |
"/ canceled |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1037 |
^ self |
2001 | 1038 |
]. |
1039 |
||
1040 |
self withWaitCursorDo:[ |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1041 |
Smalltalk fileIn:fileName. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1042 |
self reOpen |
2001 | 1043 |
]. |
1044 |
||
1045 |
||
1046 |
! |
|
1047 |
||
1048 |
memorySettings |
|
1049 |
"open a dialog on objectMemory related settings" |
|
1050 |
||
1051 |
self settingsDialog:#memorySettingsFor: |
|
1052 |
||
1053 |
"Modified: / 31.7.1998 / 22:46:33 / cg" |
|
1054 |
! |
|
1055 |
||
1056 |
messageSettings |
|
1057 |
"open a dialog on infoMessage related settings" |
|
1058 |
||
1059 |
self settingsDialog:#messageSettingsFor: |
|
1060 |
||
1061 |
"Modified: / 31.7.1998 / 22:46:45 / cg" |
|
1062 |
! |
|
1063 |
||
1064 |
miscSettings |
|
1065 |
"open a dialog on misc other settings" |
|
1066 |
||
1067 |
self settingsDialog:#miscSettingsFor: |
|
1068 |
||
1069 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
1070 |
! |
|
1071 |
||
2993 | 1072 |
mouseSettings |
1073 |
"open a dialog on display related settings" |
|
1074 |
||
1075 |
self settingsDialog:#mouseSettingsFor: |
|
1076 |
||
1077 |
"Modified: / 31.7.1998 / 22:45:38 / cg" |
|
1078 |
! |
|
1079 |
||
2001 | 1080 |
printerSettings |
1081 |
"open a dialog on printer related settings" |
|
1082 |
||
1083 |
self settingsDialog:#printerSettingsFor: |
|
1084 |
||
1085 |
"Modified: / 31.7.1998 / 22:47:05 / cg" |
|
1086 |
! |
|
1087 |
||
1088 |
saveSettings |
|
1089 |
"save settings to a settings-file." |
|
1090 |
||
1091 |
self settingsDialog:#saveSettingsFor: |
|
1092 |
||
1093 |
"Modified: / 31.7.1998 / 22:48:38 / cg" |
|
1094 |
! |
|
1095 |
||
1096 |
settingsDialog:symbol |
|
1097 |
"open a dialog on viewStyle related settings" |
|
1098 |
||
2196 | 1099 |
|handler| |
1100 |
||
1101 |
RegisteredMenuHandlers notNil ifTrue:[ |
|
1102 |
handler := RegisteredMenuHandlers at:symbol ifAbsent:nil. |
|
1103 |
]. |
|
1104 |
handler isNil ifTrue:[ |
|
1105 |
handler := LauncherDialogs |
|
1106 |
]. |
|
1107 |
handler perform:symbol with:self. |
|
2001 | 1108 |
|
1109 |
"Modified: / 31.7.1998 / 22:47:33 / cg" |
|
1110 |
! |
|
1111 |
||
1112 |
sourceAndDebuggerSettings |
|
1113 |
"open a dialog on misc other settings" |
|
1114 |
||
1115 |
self settingsDialog:#sourceAndDebuggerSettingsFor: |
|
1116 |
||
1117 |
"Modified: / 31.7.1998 / 22:47:21 / cg" |
|
1118 |
! |
|
1119 |
||
1120 |
toolSettings |
|
1121 |
"open a dialog on tool settings" |
|
1122 |
||
1123 |
self settingsDialog:#toolSettingsFor: |
|
1124 |
||
1125 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
1126 |
"Created: / 13.10.1998 / 15:50:53 / cg" |
|
1127 |
! |
|
1128 |
||
1129 |
viewStyleSetting |
|
1130 |
"open a dialog on viewStyle related settings" |
|
1131 |
||
1132 |
self settingsDialog:#viewStyleSettingsFor: |
|
1133 |
||
1134 |
"Modified: / 31.7.1998 / 22:47:33 / cg" |
|
1135 |
! ! |
|
1136 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1137 |
!AbstractLauncherApplication methodsFor:'user actions - system'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1138 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1139 |
compressingGarbageCollect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1140 |
"perform a compressing garbageCollect" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1141 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1142 |
self withWaitCursorDo:[ObjectMemory verboseGarbageCollect] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1143 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1144 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1145 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1146 |
garbageCollect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1147 |
"perform a non-compressing garbageCollect" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1148 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1149 |
self withWaitCursorDo:[ObjectMemory reclaimSymbols] |
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 |
! |
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 |
startStopEventTrace |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1154 |
"start/stop event tracing for a particular view" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1155 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1156 |
|v wg| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1157 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1158 |
v := Screen current viewFromUser. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1159 |
v notNil ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1160 |
v := v topView. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1161 |
wg := v windowGroup. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1162 |
wg notNil ifTrue:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1163 |
"/ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1164 |
"/ toggle eventTrace in its windowGroup |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1165 |
"/ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1166 |
wg traceEvents:(wg preEventHook isNil) |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1167 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1168 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1169 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1170 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1171 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1172 |
!AbstractLauncherApplication methodsFor:'user actions - tools'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1173 |
|
2210 | 1174 |
inspectGlobalVariables |
1175 |
"inspect globals" |
|
1176 |
||
1177 |
Smalltalk inspect |
|
1178 |
! |
|
1179 |
||
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1180 |
inspectWorkspaceVariables |
2210 | 1181 |
"inspect workspace variables" |
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1182 |
|
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1183 |
Workspace workspaceVariables inspect |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1184 |
! |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1185 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1186 |
newProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1187 |
"creates a new project & opens a projectView for it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1188 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1189 |
Project notNil ifTrue: [(ProjectView for: Project new) open] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1190 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1191 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1192 |
openTerminal |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1193 |
self openApplication:#VT100TerminalView |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1194 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1195 |
"Created: / 27.7.1998 / 12:48:30 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1196 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1197 |
|
3158 | 1198 |
openWorkspace |
1199 |
WorkspaceApplication notNil ifTrue:[ |
|
1200 |
^ WorkspaceApplication open |
|
1201 |
]. |
|
1202 |
^ self openApplication:Workspace |
|
1203 |
! |
|
1204 |
||
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1205 |
removeAllWorkspaceVariables |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1206 |
"remove workspace variables" |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1207 |
|
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1208 |
Workspace removeAllWorkspaceVariables |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1209 |
! |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1210 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1211 |
selectProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1212 |
"asks for and switch to another project" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1213 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1214 |
|list box| |
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 |
Project notNil ifTrue:[ |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1217 |
list := Project allInstances. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1218 |
box := ListSelectionBox new. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1219 |
box list:(list collect:[:p | p name]). |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1220 |
box title:(resources string:'select a project'). |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1221 |
box action:[:selection | |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1222 |
|project| |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1223 |
|
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1224 |
project := list detect:[:p | p name = selection] ifNone:[nil]. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1225 |
project isNil ifTrue:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1226 |
transcript notNil ifTrue:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1227 |
transcript showCR:'no such project.' |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1228 |
] |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1229 |
] ifFalse:[ |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1230 |
project showViews. |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1231 |
Project current:project |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1232 |
] |
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1233 |
]. |
3293
d7b925f89a7b
dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents:
3288
diff
changeset
|
1234 |
box open. |
2458
3c273283bb84
care for transcript being nil.
Claus Gittinger <cg@exept.de>
parents:
2457
diff
changeset
|
1235 |
box destroy |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1236 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1237 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1238 |
|
3408 | 1239 |
startBugMessages |
1240 |
"open the SUnit test runner" |
|
1241 |
||
1242 |
self openApplication:#BugGUI |
|
1243 |
||
1244 |
"Modified: / 17.10.1998 / 14:38:18 / cg" |
|
1245 |
! |
|
1246 |
||
3362 | 1247 |
startChangeSetBrowser |
1248 |
"open a change Set Browser" |
|
1249 |
||
1250 |
ChangeSetBrowser open |
|
1251 |
||
1252 |
"Created: / 5.11.2001 / 18:04:05 / cg" |
|
1253 |
! |
|
1254 |
||
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1255 |
startChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1256 |
"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
|
1257 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1258 |
self openApplication:(UserPreferences current changesBrowserClass) |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1259 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1260 |
"Modified: / 17.10.1998 / 14:38:18 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1261 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1262 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1263 |
startNewChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1264 |
"opens the new changeBrowser" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1265 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1266 |
self openApplication:#NewChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1267 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1268 |
"Created: / 6.6.1998 / 19:47:26 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1269 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1270 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1271 |
startNewLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1272 |
"opens the new launcher" |
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 |
NewLauncher isNil ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1275 |
^ 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
|
1276 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1277 |
NewLauncher openAt:(self window origin) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1278 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1279 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1280 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1281 |
startOldChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1282 |
"opens the old changeBrowser" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1283 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1284 |
self openApplication:#ChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1285 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1286 |
"Created: / 6.6.1998 / 19:47:26 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1287 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1288 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1289 |
startOldLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1290 |
"opens the old launcher" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1291 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1292 |
Launcher isNil ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1293 |
^ 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
|
1294 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1295 |
Launcher openAt:(self window origin) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1296 |
|
2883 | 1297 |
! |
1298 |
||
1299 |
startSUnitTestRunner |
|
1300 |
"open the SUnit test runner" |
|
1301 |
||
3037 | 1302 |
self openApplication:#TestRunner |
2883 | 1303 |
|
1304 |
"Modified: / 17.10.1998 / 14:38:18 / cg" |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1305 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1306 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1307 |
!AbstractLauncherApplication methodsFor:'user actions - windows'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1308 |
|
2765 | 1309 |
askForAnotherDisplay |
1310 |
"ask for some other display" |
|
1311 |
||
3664
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1312 |
|displayName| |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1313 |
|
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1314 |
displayName := Dialog request:'Display:' initialAnswer:(Screen default displayName). |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1315 |
displayName size == 0 ifTrue:[^ nil]. |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1316 |
|
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1317 |
^ XWorkstation newDispatchingFor:displayName. |
2765 | 1318 |
! |
1319 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1320 |
deIconifyAllWindows |
2144 | 1321 |
|setOfViews currentScreen| |
2005
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 |
setOfViews := Project current views asIdentitySet. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1324 |
setOfViews addAll:(Project defaultProject views). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1325 |
|
2144 | 1326 |
currentScreen := Screen current. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1327 |
setOfViews do:[:aTopView | |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1328 |
aTopView device == currentScreen ifTrue:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1329 |
aTopView expand |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1330 |
]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1331 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1332 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1333 |
" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1334 |
Transcript topView application deIconifyAllWindows |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1335 |
" |
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 |
findAndDestroyWindow |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1340 |
"find a window (by name) and destroy it" |
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 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1343 |
v := self findWindow:'select view to close:'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1344 |
v notNil ifTrue:[v destroy] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1345 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1346 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1347 |
|
2759 | 1348 |
findAndMigrateWindow |
1349 |
"find a window (by name) and migrate it to some other display" |
|
1350 |
||
2766 | 1351 |
|possibleGroups v| |
1352 |
||
1353 |
possibleGroups := WindowGroup allInstances select:[:eachGroup | |
|
3014 | 1354 |
eachGroup graphicsDevice == Screen current |
2766 | 1355 |
and:[eachGroup isModal not |
1356 |
and:[eachGroup topViews size > 0]]]. |
|
1357 |
possibleGroups size == 0 ifTrue:[ |
|
1358 |
self information:'No windows found which could be migrated to some other display.'. |
|
1359 |
^ self |
|
1360 |
]. |
|
1361 |
||
1362 |
v := self findWindow:'Select view to migrate:' windowGroupFilter:possibleGroups. |
|
2759 | 1363 |
v notNil ifTrue:[ |
1364 |
self migrateWindow:v topView |
|
1365 |
] |
|
1366 |
! |
|
1367 |
||
2766 | 1368 |
findAndMigrateWindowBack |
1369 |
"find a window (by name) and migrate it back to this display" |
|
1370 |
||
1371 |
|possibleGroups v| |
|
1372 |
||
1373 |
possibleGroups := WindowGroup allInstances select:[:eachGroup | |
|
3014 | 1374 |
eachGroup graphicsDevice ~~ Screen current |
2766 | 1375 |
and:[eachGroup isModal not |
1376 |
and:[eachGroup topViews size > 0]]]. |
|
1377 |
possibleGroups size == 0 ifTrue:[ |
|
1378 |
self information:'No windows are open on any other display.'. |
|
1379 |
^ self |
|
1380 |
]. |
|
1381 |
||
1382 |
v := self findWindow:'Select view to migrate back:' windowGroupFilter:possibleGroups. |
|
1383 |
v notNil ifTrue:[ |
|
1384 |
v windowGroup migrateTo:(Screen current) |
|
1385 |
] |
|
1386 |
! |
|
1387 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1388 |
findAndRaiseWindow |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1389 |
"find a window (by name) and raise it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1390 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1391 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1392 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1393 |
v := self findWindow:'select view to raise deiconified:'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1394 |
v notNil ifTrue:[v raiseDeiconified] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1395 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1396 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1397 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1398 |
fullScreenHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1399 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1400 |
save the contents of the whole screen." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1401 |
|
3326 | 1402 |
self window sensor ctrlDown ifTrue:[ |
1403 |
^ self fullScreenHardcopyUngrabbed |
|
1404 |
]. |
|
1405 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1406 |
Processor |
3326 | 1407 |
addTimedBlock:[ |
1408 |
self |
|
1409 |
saveScreenImage:(Image fromScreen) |
|
1410 |
defaultName:'screen' |
|
1411 |
] |
|
1412 |
afterSeconds:(self window sensor shiftDown ifTrue:5 ifFalse:1) |
|
1413 |
! |
|
1414 |
||
1415 |
fullScreenHardcopyUngrabbed |
|
1416 |
"after a second (to allow redraw of views under menu ...), |
|
1417 |
save the contents of the whole screen." |
|
1418 |
||
1419 |
Processor |
|
1420 |
addTimedBlock:[ |
|
1421 |
|display image| |
|
1422 |
||
1423 |
display := Screen current. |
|
1424 |
image := Image |
|
1425 |
fromScreen:(0@0 corner:(display extent)) |
|
1426 |
on:display |
|
1427 |
grab:false. |
|
1428 |
||
1429 |
self |
|
1430 |
saveScreenImage:image |
|
1431 |
defaultName:'screen' |
|
1432 |
] |
|
1433 |
afterSeconds:(self window sensor shiftDown ifTrue:5 ifFalse:1) |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1434 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1435 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1436 |
iconifyAllWindows |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1437 |
|setOfViews currentScreen| |
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 |
setOfViews := Project current views asIdentitySet. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1440 |
setOfViews addAll:(Project defaultProject views). |
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 |
currentScreen := Screen current. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1443 |
setOfViews do:[:aTopView | |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1444 |
aTopView device == currentScreen ifTrue:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1445 |
aTopView collapse |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1446 |
] |
2005
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 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1450 |
|
2765 | 1451 |
migrateAllWindows |
1452 |
"migrate all views to some other display" |
|
1453 |
||
1454 |
|anotherDisplay toMigrate| |
|
1455 |
||
3664
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1456 |
[ |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1457 |
anotherDisplay := self askForAnotherDisplay. |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1458 |
anotherDisplay isNil ifTrue:[ |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1459 |
^ self. |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1460 |
]. |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1461 |
] on:Screen deviceOpenErrorSignal do:[:ex| |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1462 |
^ self warn:'cannot open display: ', ex parameter. |
2765 | 1463 |
]. |
1464 |
||
1465 |
toMigrate := WindowGroup allInstances |
|
3664
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1466 |
select:[:each | each graphicsDevice == Screen current |
2765 | 1467 |
and:[each topViews size > 0 |
1468 |
and:[each isModal not]] |
|
1469 |
]. |
|
1470 |
toMigrate do:[:eachGroup | |
|
1471 |
eachGroup migrateTo:anotherDisplay |
|
1472 |
] |
|
1473 |
! |
|
1474 |
||
2759 | 1475 |
migrateWindow:aWindow |
1476 |
"migrate a view to some other display" |
|
1477 |
||
2778
1e4bf8bf1d37
block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents:
2775
diff
changeset
|
1478 |
aWindow windowGroup isModal ifTrue:[ |
1e4bf8bf1d37
block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents:
2775
diff
changeset
|
1479 |
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
|
1480 |
^ self |
1e4bf8bf1d37
block migration of a modalBox
Claus Gittinger <cg@exept.de>
parents:
2775
diff
changeset
|
1481 |
]. |
2775 | 1482 |
self migrateWindow:aWindow withBackOption:(self confirm:'Show ''Return Back'' Button on the other display ?') |
1483 |
||
1484 |
! |
|
1485 |
||
1486 |
migrateWindow:aWindow withBackOption:withBackOption |
|
1487 |
"migrate a view to some other display" |
|
1488 |
||
1489 |
|anotherDisplay wg here b| |
|
2765 | 1490 |
|
2766 | 1491 |
aWindow isTopView ifFalse:[ |
1492 |
self information:'Cannto migrate this view'. |
|
1493 |
^ self |
|
1494 |
]. |
|
1495 |
||
3664
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1496 |
[ |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1497 |
anotherDisplay := self askForAnotherDisplay. |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1498 |
anotherDisplay isNil ifTrue:[ |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1499 |
^ self. |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1500 |
]. |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1501 |
] on:Screen deviceOpenErrorSignal do:[:ex| |
77fb767b5368
Changed Workstation initialization
Stefan Vogel <sv@exept.de>
parents:
3644
diff
changeset
|
1502 |
^ self warn:'cannot open display: ', ex parameter. |
2759 | 1503 |
]. |
1504 |
||
2775 | 1505 |
wg := aWindow windowGroup. |
1506 |
wg migrateTo:anotherDisplay. |
|
1507 |
||
1508 |
withBackOption ifTrue:[ |
|
1509 |
here := Screen current. |
|
1510 |
b := Button onDevice:anotherDisplay. |
|
1511 |
b label:'Return window back to ' , here displayName. |
|
1512 |
b action:[ wg migrateTo:here. b destroy. ]. |
|
1513 |
b origin:0@0. |
|
1514 |
b open. |
|
1515 |
]. |
|
2759 | 1516 |
! |
1517 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1518 |
screenHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1519 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1520 |
let user specify a rectangular area on the screen |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1521 |
and save its contents." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1522 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1523 |
|area| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1524 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1525 |
Processor |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1526 |
addTimedBlock:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1527 |
[Screen current leftButtonPressed] whileTrue:[Delay waitForSeconds:0.05]. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1528 |
|
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1529 |
area := Rectangle fromUser. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1530 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1531 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1532 |
] |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1533 |
] |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1534 |
afterSeconds:1 |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1535 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1536 |
"Modified: / 18.8.1998 / 15:00:42 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1537 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1538 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1539 |
startWindowTreeView |
2371
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1540 |
"open a windowTree (on a picked topView)" |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1541 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1542 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1543 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1544 |
WindowTreeView isNil ifTrue:[ |
2371
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1545 |
^ 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
|
1546 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1547 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1548 |
v := self pickAView. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1549 |
v notNil ifTrue:[ |
2371
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1550 |
WindowTreeView openOn:v topView |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1551 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1552 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1553 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1554 |
|
2371
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1555 |
startWindowTreeViewForAll |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1556 |
"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
|
1557 |
|
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1558 |
|v| |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1559 |
|
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1560 |
WindowTreeView isNil ifTrue:[ |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1561 |
^ 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
|
1562 |
]. |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1563 |
|
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1564 |
WindowTreeView openOnAll |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1565 |
|
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1566 |
! |
7ce8ba08aca1
added windowTree on all views on all screens
Claus Gittinger <cg@exept.de>
parents:
2359
diff
changeset
|
1567 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1568 |
viewDestroy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1569 |
"let user pick a view and destroy it. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1570 |
Even allow destroying non-smalltalk views |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1571 |
(also for views which I forgot due to some error)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1572 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1573 |
|device v id i c| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1574 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1575 |
(Delay forSeconds:1) wait. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1576 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1577 |
device := Screen current. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1578 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1579 |
i isNil ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1580 |
c := Cursor crossHair |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1581 |
] ifFalse:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1582 |
c := Cursor fromImage:i |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1583 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1584 |
id := device viewIdFromPoint:(device pointFromUserShowing:c). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1585 |
(v := device viewFromId:id) notNil ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1586 |
v topView destroy. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1587 |
^ self |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1588 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1589 |
id = device rootView id ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1590 |
^ self |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1591 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1592 |
(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
|
1593 |
ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1594 |
device destroyView:nil withId:id |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1595 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1596 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1597 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1598 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1599 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1600 |
viewHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1601 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1602 |
let user specify a view and save its contents." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1603 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1604 |
Processor |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1605 |
addTimedBlock:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1606 |
|v| |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1607 |
(v := Screen current viewFromUser) notNil ifTrue:[ |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1608 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1609 |
] |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1610 |
] |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1611 |
afterSeconds:1 |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1612 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1613 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1614 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1615 |
viewInspect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1616 |
"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
|
1617 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1618 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1619 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1620 |
(v := self pickAView) notNil ifTrue:[ |
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
1621 |
v inspect |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1622 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1623 |
|
2759 | 1624 |
! |
1625 |
||
1626 |
viewMigrate |
|
1627 |
"let user pick a view and migrate it to some other display" |
|
1628 |
||
1629 |
|v| |
|
1630 |
||
1631 |
(v := self pickAView) notNil ifTrue:[ |
|
1632 |
self migrateWindow:v topView |
|
1633 |
] |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1634 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1635 |
|
2001 | 1636 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs'! |
1637 |
||
2196 | 1638 |
communicationsSettingsFor:requestor |
1639 |
"open a dialog on communications settings" |
|
1640 |
||
2282 | 1641 |
|box check in resources y acceptChannel |
3180 | 1642 |
hasRDoitServer rDoitServerPort |
2196 | 1643 |
rDoitsEnabled rDoitLogging rDoitErrorLogging rDoitErrorDebugging |
3180 | 1644 |
org_rDoitsEnabled org_rDoitLogging org_rDoitErrorLogging org_rDoitErrorDebugging org_rDoitServerPort |
2304 | 1645 |
|
3572 | 1646 |
hasRemoteBrowsingSupport remoteBrowsingEnabled org_remoteBrowsingEnabled |
1647 |
||
2763 | 1648 |
hasWindowMigrationServer windowMigrationAuthenticate windowMigrationPassword |
2759 | 1649 |
windowMigrationEnabled |
2763 | 1650 |
org_windowMigrationEnabled org_windowMigrationAuthenticate org_windowMigrationPassword |
2759 | 1651 |
|
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1652 |
hasHTTPServer httpServerRunning httpServerFileRoot httpServerHomeURL |
2559 | 1653 |
httpServerPort httpServerLogFile hasSwiki swikiEnabled swikiRoot |
2560 | 1654 |
allowEmbedded |
2288 | 1655 |
org_httpServerRunning org_httpServerFileRoot org_httpServerHomeURL |
2559 | 1656 |
org_httpServerPort org_swikiRoot org_swikiEnabled org_httpServerLogFile |
2560 | 1657 |
org_allowEmbedded |
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1658 |
|
2196 | 1659 |
osiACSEPresent osiROSEPresent osiCMISEPresent |
2199 | 1660 |
osiACSEErrorLogging osiACSEConnectionLogging osiACSEDataLogging |
2196 | 1661 |
osiROSEErrorLogging osiROSEResponseLogging osiROSEInvokationLogging |
1662 |
osiCMISEErrorLogging osiCMISEMessageLogging |
|
2304 | 1663 |
| |
2196 | 1664 |
|
2282 | 1665 |
acceptChannel := false asValue. |
1666 |
||
2196 | 1667 |
resources := requestor class classResources. |
1668 |
||
1669 |
"/ |
|
3572 | 1670 |
"/ extract relevant remoteBrowsing settings ... |
1671 |
"/ |
|
1672 |
remoteBrowsingEnabled := false. |
|
1673 |
(hasRemoteBrowsingSupport := SmalltalkShareServer notNil) ifTrue:[ |
|
1674 |
SmalltalkShareServer isLoaded ifTrue:[ |
|
1675 |
remoteBrowsingEnabled := SmalltalkShareServer serverRunning. |
|
1676 |
]. |
|
1677 |
]. |
|
1678 |
org_remoteBrowsingEnabled := remoteBrowsingEnabled. |
|
1679 |
remoteBrowsingEnabled := remoteBrowsingEnabled asValue. |
|
1680 |
||
1681 |
"/ |
|
2759 | 1682 |
"/ extract relevant windowMigration settings ... |
1683 |
"/ |
|
2763 | 1684 |
windowMigrationEnabled := windowMigrationAuthenticate := false. |
2759 | 1685 |
(hasWindowMigrationServer := WindowMigrationServer notNil) ifTrue:[ |
1686 |
WindowMigrationServer isLoaded ifTrue:[ |
|
1687 |
windowMigrationEnabled := WindowMigrationServer serverRunning. |
|
2763 | 1688 |
]. |
1689 |
windowMigrationPassword := WindowMigrationServer password. |
|
1690 |
windowMigrationAuthenticate := windowMigrationPassword notNil. |
|
2759 | 1691 |
]. |
1692 |
org_windowMigrationEnabled := windowMigrationEnabled. |
|
1693 |
windowMigrationEnabled := windowMigrationEnabled asValue. |
|
2763 | 1694 |
org_windowMigrationAuthenticate := windowMigrationAuthenticate. |
1695 |
windowMigrationAuthenticate := windowMigrationAuthenticate asValue. |
|
1696 |
org_windowMigrationPassword := windowMigrationPassword. |
|
1697 |
windowMigrationPassword := windowMigrationPassword asValue. |
|
2759 | 1698 |
|
1699 |
"/ |
|
2196 | 1700 |
"/ extract relevant rdoit settings ... |
1701 |
"/ |
|
1702 |
rDoitsEnabled := rDoitLogging := rDoitErrorLogging := false. |
|
1703 |
(hasRDoitServer := RDoItServer notNil) ifTrue:[ |
|
1704 |
RDoItServer isLoaded ifTrue:[ |
|
1705 |
rDoitsEnabled := RDoItServer serverRunning. |
|
1706 |
rDoitLogging := RDoItServer isLogging. |
|
1707 |
rDoitErrorLogging := RDoItServer isErrorLogging. |
|
1708 |
rDoitErrorDebugging := RDoItServer isErrorCatching not. |
|
3180 | 1709 |
rDoitServerPort := RDoItServer defaultPortNumber. |
2196 | 1710 |
] |
1711 |
]. |
|
1712 |
org_rDoitsEnabled := rDoitsEnabled. |
|
1713 |
org_rDoitLogging := rDoitLogging. |
|
1714 |
org_rDoitErrorLogging := rDoitErrorLogging. |
|
1715 |
org_rDoitErrorDebugging := rDoitErrorDebugging. |
|
3180 | 1716 |
org_rDoitServerPort := rDoitServerPort. |
1717 |
||
1718 |
rDoitServerPort := rDoitServerPort asValue. |
|
2196 | 1719 |
rDoitsEnabled := rDoitsEnabled asValue. |
1720 |
rDoitLogging := rDoitLogging asValue. |
|
1721 |
rDoitErrorLogging := rDoitErrorLogging asValue. |
|
1722 |
rDoitErrorDebugging := rDoitErrorDebugging asValue. |
|
1723 |
||
2759 | 1724 |
"/ |
1725 |
"/ extract http-server settings |
|
1726 |
"/ |
|
2278 | 1727 |
hasHTTPServer := httpServerRunning := false. |
1728 |
(hasHTTPServer := HTTPServer notNil) ifTrue:[ |
|
1729 |
HTTPServer isLoaded ifTrue:[ |
|
2280 | 1730 |
httpServerRunning := HTTPServer isRunning. |
1731 |
httpServerFileRoot := HTTPServer fileRoot. |
|
1732 |
httpServerHomeURL := HTTPServer homeURL. |
|
2304 | 1733 |
httpServerPort := HTTPServer defaultPort. |
2559 | 1734 |
httpServerLogFile := HTTPServer defaultLogFile. |
2278 | 1735 |
]. |
1736 |
]. |
|
1737 |
org_httpServerRunning := httpServerRunning. |
|
1738 |
httpServerRunning := httpServerRunning asValue. |
|
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1739 |
org_httpServerFileRoot := httpServerFileRoot. |
2280 | 1740 |
httpServerFileRoot := httpServerFileRoot asValue. |
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
1741 |
org_httpServerHomeURL := httpServerHomeURL. |
2280 | 1742 |
httpServerHomeURL := httpServerHomeURL asValue. |
2304 | 1743 |
org_httpServerPort := httpServerPort. |
1744 |
httpServerPort := httpServerPort asValue. |
|
2559 | 1745 |
org_httpServerLogFile := httpServerLogFile. |
1746 |
httpServerLogFile := httpServerLogFile asValue. |
|
2278 | 1747 |
|
2306 | 1748 |
httpServerRunning |
2584 | 1749 |
onChangeEvaluate:[ |
2306 | 1750 |
httpServerFileRoot value:(HTTPServer fileRoot). |
1751 |
httpServerHomeURL value:(HTTPServer homeURL). |
|
1752 |
httpServerPort value:(HTTPServer defaultPort). |
|
2559 | 1753 |
httpServerLogFile value:(HTTPServer defaultLogFile) |
2306 | 1754 |
]. |
1755 |
||
2288 | 1756 |
hasSwiki := false. |
1757 |
swikiEnabled := false. |
|
1758 |
||
1759 |
(hasSwiki := PWS::SwikiAction notNil) ifTrue:[ |
|
1760 |
PWS::SwikiAction isLoaded ifTrue:[ |
|
1761 |
(HTTPServer notNil and:[HTTPServer isLoaded]) ifTrue:[ |
|
1762 |
swikiEnabled := HTTPServer hasActionLinkFor:'myswiki'. |
|
1763 |
swikiRoot := PWS::SwikiAction serverDirectory. |
|
1764 |
] |
|
1765 |
]. |
|
1766 |
]. |
|
1767 |
org_swikiRoot := swikiRoot. |
|
1768 |
org_swikiEnabled := swikiEnabled. |
|
1769 |
swikiRoot := swikiRoot asValue. |
|
2289 | 1770 |
swikiEnabled := swikiEnabled asValue. |
2288 | 1771 |
|
2306 | 1772 |
swikiEnabled |
2584 | 1773 |
onChangeEvaluate:[ |
2306 | 1774 |
swikiRoot value:(PWS::SwikiAction serverDirectory). |
1775 |
]. |
|
1776 |
||
2561
6f19bef93a30
avoid autoloading HTTPServer, when dialog is opened
Claus Gittinger <cg@exept.de>
parents:
2560
diff
changeset
|
1777 |
allowEmbedded := HTTPServer isLoaded and:[HTTPServer enableEmbeddedSmalltalk]. |
2560 | 1778 |
org_allowEmbedded := allowEmbedded. |
1779 |
allowEmbedded := allowEmbedded asValue. |
|
1780 |
||
2196 | 1781 |
"/ |
1782 |
"/ osi settings ... |
|
1783 |
"/ |
|
2763 | 1784 |
osiACSEPresent := OSI::ACSE notNil and:[OSI::ACSE isLoaded]. |
1785 |
osiROSEPresent := OSI::ROSE notNil and:[OSI::ROSE isLoaded]. |
|
1786 |
osiCMISEPresent := OSI::CMISE notNil and:[OSI::CMISE isLoaded]. |
|
2196 | 1787 |
|
1788 |
osiACSEPresent ifTrue:[ |
|
2204
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1789 |
osiACSEErrorLogging := OSI::ACSE errorLogging asValue. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1790 |
osiACSEConnectionLogging := OSI::ACSE connectionLogging asValue. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1791 |
osiACSEDataLogging := OSI::ACSE dataLogging asValue. |
2196 | 1792 |
]. |
1793 |
osiROSEPresent ifTrue:[ |
|
1794 |
osiROSEErrorLogging := OSI::ROSE errorLogging asValue. |
|
2218 | 1795 |
osiROSEInvokationLogging := OSI::ROSE invocationLogging asValue. |
2196 | 1796 |
osiROSEResponseLogging := OSI::ROSE responseLogging asValue. |
1797 |
]. |
|
1798 |
osiCMISEPresent ifTrue:[ |
|
1799 |
osiCMISEErrorLogging := OSI::CMISE errorLogging asValue. |
|
1800 |
osiCMISEMessageLogging := OSI::CMISE messageLogging asValue. |
|
1801 |
]. |
|
1802 |
||
1803 |
"/ |
|
1804 |
"/ create a box on those values ... |
|
1805 |
"/ |
|
1806 |
box := DialogBox new. |
|
2809 | 1807 |
box label:(resources string:'Communication settings'). |
1808 |
||
3572 | 1809 |
box addTextLabel:(resources string:'Remote browsing'). |
1810 |
||
1811 |
check := box addCheckBox:(resources string:'Remote browsing enabled') on:remoteBrowsingEnabled. |
|
1812 |
hasRemoteBrowsingSupport ifFalse:[ |
|
1813 |
check disable |
|
1814 |
]. |
|
1815 |
box addHorizontalLine. |
|
1816 |
||
2809 | 1817 |
box addTextLabel:(resources string:'Window migration'). |
2759 | 1818 |
|
1819 |
check := box addCheckBox:(resources string:'Window migration enabled') on:windowMigrationEnabled. |
|
1820 |
hasWindowMigrationServer ifFalse:[ |
|
1821 |
check disable |
|
1822 |
]. |
|
2763 | 1823 |
check := box addCheckBox:(resources string:'Password check') on:windowMigrationAuthenticate. |
1824 |
check enableChannel:windowMigrationEnabled. |
|
1825 |
hasWindowMigrationServer ifFalse:[ |
|
1826 |
check disable |
|
1827 |
]. |
|
1828 |
box leftIndent:20. |
|
1829 |
in := box |
|
1830 |
addLabelledInputField:(resources string:'Password:') |
|
1831 |
adjust:#right |
|
1832 |
on:nil |
|
1833 |
tabable:true |
|
1834 |
separateAtX:0.3. |
|
1835 |
in passwordCharacter:$*. |
|
1836 |
in model:windowMigrationPassword. |
|
1837 |
in acceptChannel:acceptChannel. |
|
1838 |
in enableChannel:windowMigrationAuthenticate. |
|
1839 |
box leftIndent:0. |
|
1840 |
||
2759 | 1841 |
box addHorizontalLine. |
1842 |
||
2279 | 1843 |
box addTextLabel:'RDoIt Server'. |
1844 |
||
2196 | 1845 |
check := box addCheckBox:(resources string:'Remote doits enabled') on:rDoitsEnabled. |
1846 |
hasRDoitServer ifFalse:[ |
|
1847 |
check disable |
|
1848 |
]. |
|
1849 |
box leftIndent:20. |
|
3237 | 1850 |
rDoitsEnabled onChangeEvaluate:[ rDoitsEnabled value ifTrue:[ |
1851 |
rDoitServerPort value isNil ifTrue:[ |
|
1852 |
rDoitServerPort value:(RDoItServer defaultPortNumber). |
|
1853 |
] |
|
1854 |
] |
|
1855 |
]. |
|
3180 | 1856 |
|
1857 |
in := box |
|
1858 |
addLabelledInputField:(resources string:'Port:') |
|
1859 |
adjust:#right |
|
1860 |
on:nil |
|
1861 |
tabable:true |
|
1862 |
separateAtX:0.3. |
|
1863 |
in converter:(PrintConverter new initForNumber). |
|
1864 |
in model:rDoitServerPort. |
|
1865 |
in acceptChannel:acceptChannel. |
|
1866 |
in enableChannel:rDoitsEnabled. |
|
1867 |
||
2196 | 1868 |
y := box yPosition. |
1869 |
check := box addCheckBox:(resources string:'Log errors') on:rDoitErrorLogging. |
|
1870 |
check width:0.4. |
|
1871 |
check enableChannel:rDoitsEnabled. |
|
1872 |
hasRDoitServer ifFalse:[ |
|
1873 |
check disable |
|
1874 |
]. |
|
1875 |
box yPosition:y. |
|
1876 |
check := box addCheckBox:(resources string:'Log requests') on:rDoitLogging. |
|
2281 | 1877 |
check left:0.4; width:0.4. |
2196 | 1878 |
check enableChannel:rDoitsEnabled. |
1879 |
hasRDoitServer ifFalse:[ |
|
1880 |
check disable |
|
1881 |
]. |
|
1882 |
check := box addCheckBox:(resources string:'Debug errors') on:rDoitErrorDebugging. |
|
1883 |
check width:0.4. |
|
1884 |
check enableChannel:rDoitsEnabled. |
|
1885 |
hasRDoitServer ifFalse:[ |
|
1886 |
check disable |
|
1887 |
]. |
|
1888 |
box leftIndent:0. |
|
1889 |
||
1890 |
box addHorizontalLine. |
|
1891 |
||
2278 | 1892 |
box addTextLabel:'HTTP Server'. |
1893 |
||
1894 |
check := box addCheckBox:(resources string:'Serving HTTP Requests') on:httpServerRunning. |
|
1895 |
hasHTTPServer ifFalse:[ |
|
1896 |
check disable |
|
1897 |
]. |
|
2280 | 1898 |
box leftIndent:20. |
1899 |
in := box |
|
2304 | 1900 |
addLabelledInputField:(resources string:'Port:') |
1901 |
adjust:#right |
|
1902 |
on:nil |
|
1903 |
tabable:true |
|
1904 |
separateAtX:0.3. |
|
1905 |
in converter:(PrintConverter new initForNumber). |
|
1906 |
in model:httpServerPort. |
|
1907 |
in acceptChannel:acceptChannel. |
|
1908 |
in enableChannel:httpServerRunning. |
|
1909 |
||
1910 |
in := box |
|
2559 | 1911 |
addLabelledInputField:(resources string:'Log File:') |
1912 |
adjust:#right |
|
1913 |
on:httpServerLogFile |
|
1914 |
tabable:true |
|
1915 |
separateAtX:0.3. |
|
1916 |
in acceptChannel:acceptChannel. |
|
1917 |
in enableChannel:httpServerRunning. |
|
1918 |
||
1919 |
in := box |
|
2280 | 1920 |
addLabelledInputField:(resources string:'File Root:') |
1921 |
adjust:#right |
|
1922 |
on:httpServerFileRoot |
|
1923 |
tabable:true |
|
2288 | 1924 |
separateAtX:0.3. |
2282 | 1925 |
in acceptChannel:acceptChannel. |
2288 | 1926 |
in enableChannel:httpServerRunning. |
2282 | 1927 |
|
2280 | 1928 |
in := box |
1929 |
addLabelledInputField:(resources string:'Home URL:') |
|
1930 |
adjust:#right |
|
1931 |
on:httpServerHomeURL |
|
1932 |
tabable:true |
|
2288 | 1933 |
separateAtX:0.3. |
2282 | 1934 |
in acceptChannel:acceptChannel. |
2288 | 1935 |
in enableChannel:httpServerRunning. |
1936 |
||
1937 |
check := box addCheckBox:(resources string:'Swiki enabled') on:swikiEnabled. |
|
1938 |
hasHTTPServer ifFalse:[ |
|
1939 |
check disable |
|
1940 |
]. |
|
1941 |
check enableChannel:httpServerRunning. |
|
1942 |
||
2304 | 1943 |
"/ box leftIndent:40. |
2288 | 1944 |
|
1945 |
in := box |
|
1946 |
addLabelledInputField:(resources string:'SwikiRoot:') |
|
1947 |
adjust:#right |
|
1948 |
on:swikiRoot |
|
1949 |
tabable:true |
|
1950 |
separateAtX:0.3. |
|
1951 |
in acceptChannel:acceptChannel. |
|
2307 | 1952 |
in enableChannel:(BlockValue forLogical:httpServerRunning and:swikiEnabled). |
2288 | 1953 |
|
2560 | 1954 |
check := box addCheckBox:(resources string:'Allow embedded ST applications') on:allowEmbedded. |
1955 |
hasHTTPServer ifFalse:[ |
|
1956 |
check disable |
|
1957 |
]. |
|
1958 |
check enableChannel:httpServerRunning. |
|
1959 |
||
2288 | 1960 |
box leftIndent:0. |
2278 | 1961 |
box addHorizontalLine. |
1962 |
||
2809 | 1963 |
box addTextLabel:(resources string:'OSI Protocols (addOn package)'). |
1964 |
||
3169 | 1965 |
y := box yPosition. |
1966 |
check := box addCheckBox:(resources string:'Log %1 Errors' with:'ACSE') on:osiACSEErrorLogging. |
|
1967 |
check width:0.33. |
|
2198 | 1968 |
osiACSEPresent ifFalse:[ |
1969 |
check disable |
|
1970 |
]. |
|
3169 | 1971 |
|
1972 |
box yPosition:y. |
|
1973 |
check := box addCheckBox:(resources string:'Connections') on:osiACSEConnectionLogging. |
|
2198 | 1974 |
osiACSEPresent ifFalse:[ |
1975 |
check disable |
|
1976 |
]. |
|
3169 | 1977 |
check left:0.33; width:0.33. |
1978 |
||
1979 |
box yPosition:y. |
|
1980 |
check := box addCheckBox:(resources string:'Data Xfer') on:osiACSEDataLogging. |
|
2198 | 1981 |
osiACSEPresent ifFalse:[ |
1982 |
check disable |
|
1983 |
]. |
|
3169 | 1984 |
check left:0.66; width:0.34. |
1985 |
||
2198 | 1986 |
|
1987 |
box addVerticalSpace. |
|
1988 |
||
3169 | 1989 |
y := box yPosition. |
1990 |
check := box addCheckBox:(resources string:'Log %1 Errors' with:'ROSE') on:osiROSEErrorLogging. |
|
2198 | 1991 |
osiROSEPresent ifFalse:[ |
1992 |
check disable |
|
1993 |
]. |
|
3169 | 1994 |
check width:0.33. |
1995 |
||
1996 |
box yPosition:y. |
|
1997 |
check := box addCheckBox:(resources string:'Invoactions') on:osiROSEInvokationLogging. |
|
2198 | 1998 |
osiROSEPresent ifFalse:[ |
1999 |
check disable |
|
2000 |
]. |
|
3169 | 2001 |
check left:0.33; width:0.33. |
2002 |
||
2003 |
box yPosition:y. |
|
2004 |
check := box addCheckBox:(resources string:'Responses') on:osiROSEResponseLogging. |
|
2198 | 2005 |
osiROSEPresent ifFalse:[ |
2006 |
check disable |
|
2007 |
]. |
|
3169 | 2008 |
check left:0.66; width:0.34. |
2198 | 2009 |
|
2010 |
box addVerticalSpace. |
|
2011 |
||
3169 | 2012 |
y := box yPosition. |
2013 |
check := box addCheckBox:(resources string:'Log %1 Errors' with:'CMISE') on:osiCMISEErrorLogging. |
|
2198 | 2014 |
osiCMISEPresent ifFalse:[ |
2015 |
check disable |
|
2016 |
]. |
|
3169 | 2017 |
check width:0.33. |
2018 |
||
2019 |
box yPosition:y. |
|
2020 |
check := box addCheckBox:(resources string:'Messages') on:osiCMISEMessageLogging. |
|
2198 | 2021 |
osiCMISEPresent ifFalse:[ |
2022 |
check disable |
|
2196 | 2023 |
]. |
3169 | 2024 |
check left:0.33; width:0.33. |
2025 |
||
2196 | 2026 |
|
2807 | 2027 |
box addHorizontalLine. |
2196 | 2028 |
box |
2029 |
addHelpButtonFor:'Launcher/communicationsSettings.html'; |
|
2030 |
addAbortAndOkButtons. |
|
2031 |
||
2032 |
"/ |
|
2033 |
"/ show the box ... |
|
2034 |
"/ |
|
2035 |
box open. |
|
2036 |
||
2037 |
"/ |
|
2038 |
"/ update system settings |
|
2039 |
"/ |
|
2040 |
box accepted ifTrue:[ |
|
2282 | 2041 |
acceptChannel value:false; value:true. |
2042 |
||
3572 | 2043 |
hasRemoteBrowsingSupport ifTrue:[ |
2044 |
remoteBrowsingEnabled := remoteBrowsingEnabled value. |
|
2045 |
(remoteBrowsingEnabled ~~ org_remoteBrowsingEnabled) ifTrue:[ |
|
2046 |
remoteBrowsingEnabled ~~ SmalltalkShareServer serverRunning ifTrue:[ |
|
2047 |
remoteBrowsingEnabled ifFalse:[ |
|
2048 |
SmalltalkShareServer killAll |
|
2049 |
] ifTrue:[ |
|
3576 | 2050 |
SmalltalkShareServer start. |
3572 | 2051 |
"/ must wait a bit; give it a chance to |
2052 |
"/ really start (before checking) |
|
2053 |
Delay waitForSeconds:0.5. |
|
2054 |
SmalltalkShareServer serverRunning ifFalse:[ |
|
2055 |
self warn:'SmalltalkShareServer startup failed (see stderr).' |
|
2056 |
] |
|
2057 |
] |
|
2058 |
]. |
|
2059 |
] |
|
2060 |
]. |
|
2061 |
||
2759 | 2062 |
hasWindowMigrationServer ifTrue:[ |
2063 |
windowMigrationEnabled := windowMigrationEnabled value. |
|
2763 | 2064 |
windowMigrationAuthenticate := windowMigrationAuthenticate value. |
2065 |
windowMigrationPassword := windowMigrationPassword value. |
|
2066 |
(windowMigrationEnabled ~~ org_windowMigrationEnabled |
|
2067 |
or:[windowMigrationAuthenticate ~~ org_windowMigrationAuthenticate |
|
2068 |
or:[windowMigrationPassword ~~ org_windowMigrationPassword]]) ifTrue:[ |
|
2069 |
windowMigrationAuthenticate ~~ org_windowMigrationAuthenticate ifTrue:[ |
|
2070 |
windowMigrationAuthenticate ifFalse:[ |
|
2071 |
WindowMigrationServer password:nil |
|
2072 |
] ifTrue:[ |
|
2073 |
WindowMigrationServer password:windowMigrationPassword |
|
2074 |
]. |
|
2075 |
]. |
|
2759 | 2076 |
windowMigrationEnabled ~~ WindowMigrationServer serverRunning ifTrue:[ |
2077 |
windowMigrationEnabled ifFalse:[ |
|
2078 |
WindowMigrationServer stop |
|
2079 |
] ifTrue:[ |
|
2080 |
WindowMigrationServer start. |
|
2081 |
"/ must wait a bit; give it a chance to |
|
2082 |
"/ really start (before checking) |
|
2083 |
Delay waitForSeconds:0.5. |
|
2084 |
WindowMigrationServer serverRunning ifFalse:[ |
|
2085 |
self warn:'WindowMigrationServer startup failed (see stderr).' |
|
2086 |
] |
|
2087 |
] |
|
2088 |
]. |
|
2089 |
] |
|
2090 |
]. |
|
2091 |
||
2196 | 2092 |
hasRDoitServer ifTrue:[ |
2093 |
(rDoitLogging value ~~ org_rDoitLogging |
|
2094 |
or:[rDoitErrorDebugging value ~~ org_rDoitErrorDebugging |
|
2095 |
or:[rDoitErrorLogging value ~~ org_rDoitErrorLogging |
|
3180 | 2096 |
or:[rDoitsEnabled value ~~ org_rDoitsEnabled |
2097 |
or:[rDoitServerPort value ~~ org_rDoitServerPort]]]]) ifTrue:[ |
|
2196 | 2098 |
RDoItServer autoload. |
3180 | 2099 |
RDoItServer defaultPortNumber:rDoitServerPort value. |
2196 | 2100 |
RDoItServer logging:(rDoitLogging value). |
2101 |
RDoItServer errorLogging:(rDoitErrorLogging value). |
|
2102 |
RDoItServer errorCatching:(rDoitErrorDebugging value not). |
|
2103 |
rDoitsEnabled := rDoitsEnabled value. |
|
2104 |
rDoitsEnabled ~~ RDoItServer serverRunning ifTrue:[ |
|
2105 |
rDoitsEnabled ifFalse:[ |
|
2759 | 2106 |
RDoItServer stop |
2196 | 2107 |
] ifTrue:[ |
2108 |
RDoItServer start. |
|
2109 |
"/ must wait a bit; give it a chance to |
|
2110 |
"/ really start (before checking) |
|
2759 | 2111 |
Delay waitForSeconds:0.5. |
2196 | 2112 |
RDoItServer serverRunning ifFalse:[ |
2113 |
self warn:'RDoit startup failed (see stderr).' |
|
2114 |
] |
|
2115 |
] |
|
2116 |
]. |
|
2117 |
]. |
|
2118 |
]. |
|
2288 | 2119 |
|
2561
6f19bef93a30
avoid autoloading HTTPServer, when dialog is opened
Claus Gittinger <cg@exept.de>
parents:
2560
diff
changeset
|
2120 |
(hasHTTPServer and:[HTTPServer isLoaded]) ifTrue:[ |
2304 | 2121 |
httpServerPort := httpServerPort value. |
2122 |
org_httpServerPort ~= httpServerPort ifTrue:[ |
|
2123 |
HTTPServer defaultPort:httpServerPort. |
|
2124 |
]. |
|
2125 |
||
2282 | 2126 |
httpServerFileRoot := httpServerFileRoot value. |
2127 |
httpServerFileRoot size == 0 ifTrue:[ |
|
2128 |
httpServerFileRoot := nil |
|
2129 |
]. |
|
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
2130 |
org_httpServerFileRoot ~= httpServerFileRoot ifTrue:[ |
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
2131 |
HTTPServer fileRoot:httpServerFileRoot. |
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
2132 |
]. |
2282 | 2133 |
|
2559 | 2134 |
httpServerLogFile := httpServerLogFile value. |
2135 |
httpServerLogFile size == 0 ifTrue:[ |
|
2136 |
httpServerLogFile := nil |
|
2137 |
]. |
|
2138 |
org_httpServerLogFile ~= httpServerLogFile ifTrue:[ |
|
2139 |
HTTPServer defaultLogFile:httpServerLogFile. |
|
2140 |
]. |
|
2141 |
||
2282 | 2142 |
httpServerHomeURL := httpServerHomeURL value. |
2143 |
httpServerHomeURL size == 0 ifTrue:[ |
|
2144 |
httpServerHomeURL := nil |
|
2145 |
]. |
|
2285
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
2146 |
org_httpServerHomeURL ~= httpServerHomeURL ifTrue:[ |
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
2147 |
HTTPServer homeURL:httpServerHomeURL. |
23b173086610
oops - do not accidently autoload HTTPServer
Claus Gittinger <cg@exept.de>
parents:
2282
diff
changeset
|
2148 |
]. |
2282 | 2149 |
|
2278 | 2150 |
httpServerRunning value ~~ org_httpServerRunning ifTrue:[ |
2151 |
httpServerRunning value ifTrue:[ |
|
2152 |
HTTPServer startServer |
|
2153 |
] ifFalse:[ |
|
2154 |
HTTPServer stopServer |
|
2155 |
] |
|
2156 |
]. |
|
2157 |
]. |
|
2288 | 2158 |
|
2159 |
hasSwiki ifTrue:[ |
|
2160 |
swikiRoot := swikiRoot value. |
|
2161 |
swikiRoot size == 0 ifTrue:[ |
|
2162 |
swikiRoot := nil |
|
2163 |
]. |
|
2164 |
org_swikiRoot ~= swikiRoot ifTrue:[ |
|
2165 |
PWS::ServerAction serverDirectory:swikiRoot. |
|
2166 |
]. |
|
2167 |
||
2168 |
swikiEnabled value ~~ org_swikiEnabled ifTrue:[ |
|
2169 |
swikiEnabled value ifTrue:[ |
|
2311 | 2170 |
HTTPServer setupMySwiki |
2288 | 2171 |
] ifFalse:[ |
2172 |
HTTPServer removeActionLinkFor:'myswiki' |
|
2173 |
] |
|
2174 |
]. |
|
2560 | 2175 |
allowEmbedded value ~~ org_allowEmbedded ifTrue:[ |
2176 |
HTTPServer enableEmbeddedSmalltalk:allowEmbedded value |
|
2177 |
]. |
|
2288 | 2178 |
]. |
2179 |
||
2196 | 2180 |
osiACSEPresent ifTrue:[ |
2204
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
2181 |
OSI::ACSE errorLogging:osiACSEErrorLogging value. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
2182 |
OSI::ACSE connectionLogging:osiACSEConnectionLogging value. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
2183 |
OSI::ACSE dataLogging:osiACSEDataLogging value. |
2196 | 2184 |
]. |
2185 |
osiROSEPresent ifTrue:[ |
|
2186 |
OSI::ROSE errorLogging:osiROSEErrorLogging value. |
|
2218 | 2187 |
OSI::ROSE invocationLogging:osiROSEInvokationLogging value. |
2196 | 2188 |
OSI::ROSE responseLogging:osiROSEResponseLogging value. |
2189 |
]. |
|
2190 |
osiCMISEPresent ifTrue:[ |
|
2191 |
OSI::CMISE errorLogging:osiCMISEErrorLogging value. |
|
2192 |
OSI::CMISE messageLogging:osiCMISEMessageLogging value. |
|
2193 |
]. |
|
2194 |
]. |
|
2195 |
box destroy |
|
2196 |
||
2218 | 2197 |
"Modified: / 28.6.1999 / 15:44:35 / stefan" |
2560 | 2198 |
"Modified: / 20.1.2000 / 19:14:18 / cg" |
2196 | 2199 |
! |
2200 |
||
2001 | 2201 |
compilerSettingsFor:requestor |
2202 |
"open a dialog on compiler related settings" |
|
2203 |
||
3054
43a0f825bdb0
new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents:
3037
diff
changeset
|
2204 |
|box warnings warnSTX warnUnderscore warnDollar warnOldStyle warnUnusedVars |
2287 | 2205 |
allowDollar allowUnderscore allowSqueakExtensions allowQualifiedNames |
3643
db6d5eae42b2
allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents:
3603
diff
changeset
|
2206 |
allowDolphinExtensions allowOldStyleAssignment |
2287 | 2207 |
immutableArrays |
2001 | 2208 |
warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox |
3054
43a0f825bdb0
new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents:
3037
diff
changeset
|
2209 |
warnCompatibility warnCompatibilityBox warnDollarBox warnUnusedVarsBox |
2018 | 2210 |
stcCompilation compilationList stcCompilationOptions |
2211 |
historyLines fullHistoryUpdate |
|
2001 | 2212 |
catchMethodRedefs catchClassRedefs keepSourceOptions keepSource |
2213 |
constantFoldingOptions constantFolding justInTimeCompilation |
|
2019 | 2214 |
warnEnabler check component oldIndent supportsJustInTimeCompilation y |
2001 | 2215 |
y2 fullDebugSupport yMax |
2216 |
compileLazy loadBinaries canLoadBinaries strings idx thisIsADemoVersion |
|
2217 |
resources stcSetupButt| |
|
2218 |
||
2219 |
resources := requestor class classResources. |
|
2220 |
||
2221 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
2222 |
loadBinaries := Smalltalk loadBinaries asValue. |
|
2223 |
compileLazy := Autoload compileLazy asValue. |
|
2224 |
||
2225 |
warnings := Compiler warnings asValue. |
|
2226 |
||
2227 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
2228 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
2229 |
warnDollar := Compiler warnDollarInIdentifier asValue. |
|
2230 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
|
2231 |
warnCommonMistakes := Compiler warnCommonMistakes asValue. |
|
2232 |
warnCompatibility := Compiler warnPossibleIncompatibilities asValue. |
|
3054
43a0f825bdb0
new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents:
3037
diff
changeset
|
2233 |
warnUnusedVars := Compiler warnUnusedVars asValue. |
2001 | 2234 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
2235 |
allowDollar := Compiler allowDollarInIdentifier asValue. |
|
2244 | 2236 |
allowSqueakExtensions := Compiler allowSqueakExtensions asValue. |
3479 | 2237 |
allowDolphinExtensions := Compiler allowDolphinExtensions asValue. |
2287 | 2238 |
allowQualifiedNames := Compiler allowQualifiedNames asValue. |
3643
db6d5eae42b2
allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents:
3603
diff
changeset
|
2239 |
allowOldStyleAssignment := Compiler allowOldStyleAssignment asValue. |
2001 | 2240 |
immutableArrays := Compiler arraysAreImmutable asValue. |
2241 |
||
2242 |
constantFoldingOptions := #( nil #level1 #level2 #full ). |
|
2243 |
constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')). |
|
2244 |
constantFolding selectionIndex:3. |
|
2245 |
||
2246 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
|
2247 |
thisIsADemoVersion ifTrue:[ |
|
2244 | 2248 |
stcCompilationOptions := #( never). |
2249 |
strings := #('never'). |
|
2250 |
idx := 1. |
|
2001 | 2251 |
] ifFalse:[ |
2244 | 2252 |
stcCompilationOptions := #( always default never). |
2253 |
strings := #('always' 'primitive code only' 'never'). |
|
2254 |
idx := 2. |
|
2001 | 2255 |
]. |
2256 |
||
2257 |
stcCompilation := SelectionInList new list:(resources array:strings). |
|
2258 |
stcCompilation selectionIndex:idx. |
|
2259 |
||
2260 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) |
|
2261 |
ifTrue:[ |
|
2244 | 2262 |
justInTimeCompilation := ObjectMemory justInTimeCompilation. |
2263 |
fullDebugSupport := ObjectMemory fullSingleStepSupport. |
|
2001 | 2264 |
] ifFalse:[ |
2244 | 2265 |
justInTimeCompilation := false. |
2266 |
fullDebugSupport := (Compiler lineNumberInfo == #full) asValue. |
|
2001 | 2267 |
]. |
2268 |
justInTimeCompilation := justInTimeCompilation asValue. |
|
2269 |
fullDebugSupport := fullDebugSupport asValue. |
|
2270 |
||
2271 |
catchMethodRedefs := Class catchMethodRedefinitions asValue. |
|
2272 |
catchClassRedefs := Class catchClassRedefinitions asValue. |
|
2273 |
historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]]. |
|
2274 |
historyLines ifFalse:[ |
|
2244 | 2275 |
fullHistoryUpdate := false asValue |
2001 | 2276 |
] ifTrue:[ |
2244 | 2277 |
fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue. |
2001 | 2278 |
]. |
2279 |
historyLines := historyLines asValue. |
|
2280 |
||
2281 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2282 |
keepSource := SelectionInList new |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2283 |
list:(resources array:#('Keep as String' 'Reference to Filename' 'Reference to Full Path' 'Append and Ref in `st.src''' 'Discard' )). |
2001 | 2284 |
keepSource selectionIndex:1. |
2285 |
||
2286 |
warnEnabler := [ |
|
2244 | 2287 |
warnings value ifTrue:[ |
2288 |
warnSTXBox enable. |
|
2289 |
warnOldStyleBox enable. |
|
2290 |
warnCommonMistakesBox enable. |
|
2291 |
warnCompatibilityBox enable. |
|
3054
43a0f825bdb0
new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents:
3037
diff
changeset
|
2292 |
warnUnusedVarsBox enable. |
2244 | 2293 |
allowUnderscore value ifTrue:[ |
2294 |
warnUnderscoreBox enable. |
|
2295 |
] ifFalse:[ |
|
2296 |
warnUnderscoreBox disable. |
|
2297 |
]. |
|
2298 |
allowDollar value ifTrue:[ |
|
2299 |
warnDollarBox enable. |
|
2300 |
] ifFalse:[ |
|
2301 |
warnDollarBox disable. |
|
2302 |
]. |
|
2303 |
] ifFalse:[ |
|
2304 |
warnSTXBox disable. |
|
2305 |
warnUnderscoreBox disable. |
|
2306 |
warnDollarBox disable. |
|
2307 |
warnOldStyleBox disable. |
|
2308 |
warnCommonMistakesBox disable. |
|
2309 |
warnCompatibilityBox disable. |
|
3054
43a0f825bdb0
new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents:
3037
diff
changeset
|
2310 |
warnUnusedVarsBox disable. |
2244 | 2311 |
]]. |
2001 | 2312 |
|
2584 | 2313 |
warnings onChangeEvaluate:warnEnabler. |
2314 |
allowUnderscore onChangeEvaluate:warnEnabler. |
|
2315 |
allowDollar onChangeEvaluate:warnEnabler. |
|
2316 |
"/ allowSqueakExtensions onChangeEvaluate:warnEnabler. |
|
2317 |
"/ allowQualifiedNames onChangeEvaluate:warnEnabler. |
|
2001 | 2318 |
|
2319 |
box := DialogBox new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2320 |
box label:(resources string:'Compiler Settings'). |
2001 | 2321 |
|
2322 |
y := box yPosition. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2323 |
check := box addCheckBox:(resources string:'Catch Method Redefinitions') on:catchMethodRedefs. |
2001 | 2324 |
check width:0.5. |
2325 |
||
2326 |
box yPosition:y. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2327 |
check := box addCheckBox:(resources string:'Catch Class Redefinitions') on:catchClassRedefs. |
2001 | 2328 |
check left:0.5; width:0.5. |
2329 |
||
2330 |
y := box yPosition. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2331 |
check := box addCheckBox:(resources string:'Keep History Line in Methods') on:historyLines. |
2001 | 2332 |
check width:0.5. |
2333 |
HistoryManager isNil ifTrue:[check disable]. |
|
2334 |
box yPosition:y. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2335 |
check := box addCheckBox:(resources string:'Keep Full Class History') on:fullHistoryUpdate. |
2001 | 2336 |
check left:0.5; width:0.5. |
2337 |
HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines]. |
|
2338 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2339 |
box addPopUpList:(resources string:'FileIn Source Mode:') on:keepSource. |
2001 | 2340 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
2341 |
||
2342 |
box addHorizontalLine. |
|
2343 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2344 |
box addCheckBox:(resources string:'Lazy Compilation when Autoloading') on:compileLazy. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2345 |
check := box addCheckBox:(resources string:'If Present, Load Binary Objects when Autoloading') on:loadBinaries. |
2001 | 2346 |
canLoadBinaries ifFalse:[ |
2244 | 2347 |
loadBinaries value:false. |
2348 |
check disable |
|
2001 | 2349 |
]. |
2350 |
supportsJustInTimeCompilation ifTrue:[ |
|
2244 | 2351 |
component := box |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2352 |
addCheckBox:(resources string:'Just in Time Compilation to Machine Code') |
2244 | 2353 |
on:justInTimeCompilation. |
2001 | 2354 |
]. |
2355 |
||
2356 |
box addHorizontalLine. |
|
2357 |
||
2358 |
ObjectFileLoader notNil ifTrue:[ |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2359 |
compilationList := box addPopUpList:(resources string:'Stc Compilation to Machine Code') on:stcCompilation. |
2244 | 2360 |
|
2361 |
thisIsADemoVersion ifFalse:[ |
|
2362 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
|
2363 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2364 |
stcSetupButt := box addComponent:(Button label:(resources string:'Stc Compilation Parameters...') |
2244 | 2365 |
action:[|manager| |
2366 |
||
2367 |
self stcCompilerSettingsFor:requestor. |
|
2368 |
]). |
|
2369 |
]. |
|
2370 |
||
2371 |
box addHorizontalLine. |
|
2372 |
||
2373 |
"/ if there is no compiler around, |
|
2374 |
"/ change to compile nothing, and disable the checkBoxes |
|
2375 |
Compiler canCreateMachineCode ifFalse:[ |
|
2376 |
stcCompilation selectionIndex:(3 min:stcCompilationOptions size). |
|
2377 |
compilationList disable. |
|
2378 |
]. |
|
2001 | 2379 |
]. |
2380 |
||
2381 |
y := box yPosition. |
|
2382 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2383 |
component := box addCheckBox:(resources string:'Allow Underscore in Identifiers') on:allowUnderscore. |
2001 | 2384 |
component width:0.4. |
2385 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2386 |
component := box addCheckBox:(resources string:'Allow Dollar in Identifiers') on:allowDollar. |
2001 | 2387 |
component width:0.4. |
2388 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2389 |
component := box addCheckBox:(resources string:'Allow VW3 QualifiedNames') on:allowQualifiedNames. |
2001 | 2390 |
component width:0.4. |
2287 | 2391 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2392 |
component := box addCheckBox:(resources string:'Allow Squeak Extensions') on:allowSqueakExtensions. |
3479 | 2393 |
component width:0.4. |
2394 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2395 |
component := box addCheckBox:(resources string:'Allow Dolphin Extensions') on:allowDolphinExtensions. |
2287 | 2396 |
component width:0.4. |
2397 |
||
2001 | 2398 |
y2 := box yPosition. |
2399 |
||
2400 |
box yPosition:y. |
|
2401 |
box leftIndent:0. |
|
2402 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2403 |
component :=box addPopUpList:(resources string:'Constant Folding:') on:constantFolding. |
2001 | 2404 |
component superView left:0.5; width:0.5. |
2405 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
|
2406 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2407 |
component := box addCheckBox:(resources string:'Allow OldStyle Assignment (_)') on:allowOldStyleAssignment. |
3643
db6d5eae42b2
allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents:
3603
diff
changeset
|
2408 |
component left:0.5; width:0.4. |
db6d5eae42b2
allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents:
3603
diff
changeset
|
2409 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2410 |
component := box addCheckBox:(resources string:'Full Debug Info') on:fullDebugSupport. |
2001 | 2411 |
component left:0.5; width:0.4. |
2244 | 2412 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2413 |
component := box addCheckBox:(resources string:'Literal Arrays are Immutable') on:immutableArrays. |
2244 | 2414 |
component left:0.5; width:0.4. |
2415 |
||
2001 | 2416 |
box yPosition:(box yPosition max:y2). |
2417 |
||
2418 |
||
2419 |
box addHorizontalLine. |
|
2420 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2421 |
box addCheckBox:(resources string:'Warnings') on:warnings. |
2001 | 2422 |
"/ box addVerticalSpace. |
2423 |
oldIndent := box leftIndent. |
|
2424 |
box leftIndent:30. |
|
2425 |
||
2426 |
y := box yPosition. |
|
2427 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2428 |
warnSTXBox := box addCheckBox:(resources string:'ST/X Extensions') on:warnSTX. |
2001 | 2429 |
warnSTXBox width:0.4. |
2430 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2431 |
warnUnderscoreBox := box addCheckBox:(resources string:'Underscores in Identifiers') on:warnUnderscore. |
2001 | 2432 |
warnUnderscoreBox width:0.4. |
2433 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2434 |
warnDollarBox := box addCheckBox:(resources string:'Dollars in Identifiers') on:warnDollar. |
2001 | 2435 |
warnDollarBox width:0.4. |
2436 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2437 |
warnUnusedVarsBox := box addCheckBox:(resources string:'Unused Method Variables') on:warnUnusedVars. |
3054
43a0f825bdb0
new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents:
3037
diff
changeset
|
2438 |
warnUnusedVarsBox width:0.4. |
43a0f825bdb0
new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents:
3037
diff
changeset
|
2439 |
|
2001 | 2440 |
yMax := box yPosition. |
2441 |
||
2442 |
box yPosition:y. |
|
2443 |
box leftIndent:0. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2444 |
warnOldStyleBox := box addCheckBox:(resources string:'OldStyle Assignment') on:warnOldStyle. |
2001 | 2445 |
warnOldStyleBox left:0.5; width:0.4. |
2446 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2447 |
warnCommonMistakesBox := box addCheckBox:(resources string:'Common Mistakes') on:warnCommonMistakes. |
2001 | 2448 |
warnCommonMistakesBox left:0.5; width:0.4. |
2449 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2450 |
warnCompatibilityBox := box addCheckBox:(resources string:'Possible Incompatibilities') on:warnCompatibility. |
2001 | 2451 |
warnCompatibilityBox left:0.5; width:0.4. |
2452 |
||
2453 |
box leftIndent:oldIndent. |
|
2454 |
box yPosition:(yMax max: box yPosition). |
|
2455 |
||
2807 | 2456 |
box addHorizontalLine. |
2001 | 2457 |
box |
2244 | 2458 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
2459 |
addAbortAndOkButtons. |
|
2001 | 2460 |
|
2461 |
warnEnabler value. |
|
2462 |
box open. |
|
2463 |
||
2464 |
box accepted ifTrue:[ |
|
2244 | 2465 |
HistoryManager notNil ifTrue:[ |
2466 |
HistoryManager fullHistoryUpdate:fullHistoryUpdate value. |
|
2467 |
historyLines value ifTrue:[ |
|
2468 |
HistoryManager activate |
|
2469 |
] ifFalse:[ |
|
2470 |
HistoryManager deactivate |
|
2471 |
]. |
|
2472 |
]. |
|
2473 |
Class catchMethodRedefinitions:catchMethodRedefs value. |
|
2474 |
Class catchClassRedefinitions:catchClassRedefs value. |
|
2475 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
|
2476 |
Compiler warnings:warnings value. |
|
2477 |
Compiler warnSTXSpecials:warnSTX value. |
|
2478 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
|
2479 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
|
2480 |
Compiler warnDollarInIdentifier:warnDollar value. |
|
2481 |
Compiler warnCommonMistakes:warnCommonMistakes value. |
|
2482 |
Compiler warnPossibleIncompatibilities:warnCompatibility value. |
|
3054
43a0f825bdb0
new: Warn about unused method vars
Stefan Vogel <sv@exept.de>
parents:
3037
diff
changeset
|
2483 |
Compiler warnUnusedVars:warnUnusedVars value. |
2244 | 2484 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
2485 |
Compiler allowDollarInIdentifier:allowDollar value. |
|
2486 |
Compiler allowSqueakExtensions:allowSqueakExtensions value. |
|
3479 | 2487 |
Compiler allowDolphinExtensions:allowDolphinExtensions value. |
2287 | 2488 |
Compiler allowQualifiedNames:allowQualifiedNames value. |
3643
db6d5eae42b2
allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents:
3603
diff
changeset
|
2489 |
Compiler allowOldStyleAssignment:allowOldStyleAssignment value. |
db6d5eae42b2
allow oldStyleAssignment setting added
Claus Gittinger <cg@exept.de>
parents:
3603
diff
changeset
|
2490 |
|
2244 | 2491 |
Compiler arraysAreImmutable:immutableArrays value. |
2492 |
fullDebugSupport value ifTrue:[ |
|
2493 |
Compiler lineNumberInfo:#full. |
|
2494 |
] ifFalse:[ |
|
2495 |
Compiler lineNumberInfo:true |
|
2496 |
]. |
|
2497 |
||
2498 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
|
2499 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
|
2500 |
||
2501 |
supportsJustInTimeCompilation ifTrue:[ |
|
2502 |
justInTimeCompilation := justInTimeCompilation value. |
|
2503 |
justInTimeCompilation ifTrue:[ |
|
2504 |
Method allInstancesDo:[:m | m checked:false]. |
|
2505 |
]. |
|
2506 |
ObjectMemory justInTimeCompilation:justInTimeCompilation. |
|
2507 |
ObjectMemory fullSingleStepSupport:fullDebugSupport value. |
|
2508 |
]. |
|
2509 |
Autoload compileLazy:compileLazy value. |
|
2510 |
Smalltalk loadBinaries:loadBinaries value. |
|
2001 | 2511 |
]. |
2512 |
box destroy |
|
2513 |
||
2514 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
|
2515 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
|
2516 |
"Modified: / 5.11.1998 / 14:25:59 / cg" |
|
2517 |
! |
|
2518 |
||
2519 |
displaySettingsFor:requestor |
|
2520 |
"open a dialog on display related settings" |
|
2521 |
||
2522 |
|box listOfSizes sizeInfos |
|
2523 |
sizes sizeNames sizeList sizeX sizeY deepIcons |
|
2524 |
isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList |
|
2162 | 2525 |
y component screen visual clipEncodings clipEncodingSyms clipEncodingList resources |
2164 | 2526 |
| |
2001 | 2527 |
|
2528 |
resources := requestor class classResources. |
|
2529 |
||
2530 |
listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default. |
|
2531 |
listOfSizes == #default ifTrue:[ |
|
2162 | 2532 |
"/ nothing in resource file; offer at least some. |
2533 |
sizeInfos := #( |
|
2534 |
( '11.3'' (235mm x 175mm) LCD' (235 175) ) |
|
2535 |
( '17'' (325mm x 245mm)' (325 245) ) |
|
2536 |
( '19'' (340mm x 270mm)' (340 270) ) |
|
2537 |
( '20'' (350mm x 280mm)' (350 280) ) |
|
2538 |
( '21'' (365mm x 285mm)' (365 285) ) |
|
2539 |
). |
|
2001 | 2540 |
] ifFalse:[ |
2162 | 2541 |
sizeInfos := resources array:listOfSizes. |
2001 | 2542 |
]. |
2543 |
sizeNames := sizeInfos collect:[:entry | entry at:1]. |
|
2544 |
sizes := sizeInfos collect:[:entry | entry at:2]. |
|
2545 |
||
2546 |
screen := Screen current. |
|
2547 |
visual := screen visualType. |
|
2548 |
||
2549 |
isColorMonitor := screen hasColors asValue. |
|
2550 |
deepIcons := screen supportsDeepIcons asValue. |
|
2551 |
useFixPalette := screen fixColors notNil asValue. |
|
2552 |
useFixGrayPalette := screen fixGrayColors notNil asValue. |
|
2553 |
||
2554 |
sizeList := SelectionInList with:sizeNames. |
|
2555 |
sizeX := screen widthInMillimeter asValue. |
|
2556 |
sizeY := screen heightInMillimeter asValue. |
|
2557 |
||
2558 |
clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5). |
|
2559 |
clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5'). |
|
2560 |
clipEncodingList := SelectionInList new. |
|
2561 |
clipEncodingList list:clipEncodings. |
|
2562 |
clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1). |
|
2563 |
||
2564 |
ditherList := SelectionInList new. |
|
2565 |
||
2566 |
(visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[ |
|
2162 | 2567 |
ditherStyles := #('threshold' 'ordered dither' 'error diffusion'). |
2568 |
ditherSyms := #(threshold ordered floydSteinberg). |
|
2001 | 2569 |
] ifFalse:[ |
2162 | 2570 |
visual ~~ #TrueColor ifTrue:[ |
2571 |
ditherStyles := #('nearest color' 'error diffusion'). |
|
2572 |
ditherSyms := #(ordered floydSteinberg). |
|
2573 |
] |
|
2001 | 2574 |
]. |
2575 |
ditherSyms notNil ifTrue:[ |
|
2162 | 2576 |
ditherList list:ditherStyles. |
2577 |
ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold). |
|
2001 | 2578 |
]. |
2579 |
||
2580 |
box := DialogBox new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2581 |
box label:(resources string:'Display Screen Settings'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2582 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2583 |
(box addTextLabel:(resources string:'Actual Visible Screen Area:')) |
2162 | 2584 |
adjust:#left. |
2001 | 2585 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2586 |
(box addPopUpList:(resources string:'Common Sizes:') on:sizeList) |
2162 | 2587 |
label:'monitor size'. |
2001 | 2588 |
|
2589 |
idx := sizes findFirst:[:entry | |
|
2162 | 2590 |
((entry at:1) = sizeX value) |
2591 |
and:[((entry at:2) = sizeY value)] |
|
2592 |
]. |
|
2001 | 2593 |
idx ~~ 0 ifTrue:[ |
2162 | 2594 |
sizeList selectionIndex:idx |
2001 | 2595 |
]. |
2596 |
||
2584 | 2597 |
sizeList onChangeEvaluate:[ |
2162 | 2598 |
|idx| |
2599 |
||
2600 |
idx := sizeList selectionIndex. |
|
2601 |
sizeX value:((sizes at:idx) at:1). |
|
2602 |
sizeY value:((sizes at:idx) at:2). |
|
2603 |
]. |
|
2001 | 2604 |
|
2605 |
y := box yPosition. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2606 |
component := box addTextLabel:(resources string:'Screen Size:'). |
2001 | 2607 |
component width:0.3; adjust:#right; borderWidth:0. |
2608 |
||
2609 |
box yPosition:y. |
|
2610 |
component := box addInputFieldOn:nil tabable:true. |
|
2611 |
component width:0.25; left:0.3; |
|
2162 | 2612 |
immediateAccept:false; acceptOnLeave:false; |
2613 |
cursorMovementWhenUpdating:#beginOfLine; |
|
2614 |
converter:(PrintConverter new initForInteger); |
|
2615 |
model:sizeX. |
|
2001 | 2616 |
|
2617 |
box yPosition:y. |
|
2618 |
component := box addTextLabel:(' x '). |
|
2619 |
component width:0.1; left:0.55; adjust:#center; borderWidth:0. |
|
2620 |
||
2621 |
box yPosition:y. |
|
2622 |
component := box addInputFieldOn:nil tabable:true. |
|
2623 |
component width:0.25; left:0.65; |
|
2162 | 2624 |
immediateAccept:false; acceptOnLeave:false; |
2625 |
cursorMovementWhenUpdating:#beginOfLine; |
|
2626 |
converter:(PrintConverter new initForInteger); |
|
2627 |
model:sizeY. |
|
2001 | 2628 |
|
2629 |
box yPosition:y. |
|
2630 |
component := box addTextLabel:('(mm)'). |
|
2631 |
component width:0.1; left:0.9; adjust:#center; borderWidth:0. |
|
2632 |
||
2633 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
2634 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2635 |
(box addTextLabel:(resources string:'Screen: Depth: %1 Visual: %2 (%3)' |
2395 | 2636 |
with:screen depth printString |
2637 |
with:screen visualType |
|
2638 |
with:screen serverVendor)) |
|
2162 | 2639 |
adjust:#left. |
2001 | 2640 |
|
2641 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
2642 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2643 |
box addCheckBox:(resources string:'Color Monitor') on:isColorMonitor. |
2001 | 2644 |
|
2645 |
visual == #PseudoColor ifTrue:[ |
|
2162 | 2646 |
box addVerticalSpace. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2647 |
component := box addCheckBox:(resources string:'Use Fix Color Palette %1' with:'(4x8x4)') on:useFixPalette. |
2162 | 2648 |
|
2649 |
box addVerticalSpace. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2650 |
component := box addCheckBox:(resources string:'Use Fix Gray Color Palette %1' with:'(32)') on:useFixGrayPalette. |
2001 | 2651 |
]. |
2652 |
||
2653 |
ditherSyms notNil ifTrue:[ |
|
2162 | 2654 |
box addVerticalSpace. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2655 |
component := box addPopUpList:(resources string:'Image Display:') on:ditherList. |
2162 | 2656 |
component defaultLabel:'image display'. |
2657 |
component superView horizontalLayout:#leftSpace. |
|
2001 | 2658 |
]. |
2659 |
||
2660 |
box addVerticalSpace. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2661 |
box addCheckBox:(resources string:'Allow Colored/Grayscale Icons') on:deepIcons. |
2162 | 2662 |
|
2001 | 2663 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
2664 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
2665 |
component := box addPopUpList:(resources string:'ClipBoard Encoding:') on:clipEncodingList. |
2001 | 2666 |
component superView horizontalLayout:#leftSpace. |
2667 |
||
2807 | 2668 |
box addHorizontalLine. |
2001 | 2669 |
box |
2162 | 2670 |
addHelpButtonFor:'Launcher/screenSettings.html'; |
2671 |
addAbortAndOkButtons. |
|
2001 | 2672 |
box open. |
2673 |
||
2674 |
box accepted ifTrue:[ |
|
2162 | 2675 |
Image flushDeviceImages. |
2676 |
||
2677 |
screen visualType == #PseudoColor ifTrue:[ |
|
2678 |
useFixPalette value ifTrue:[ |
|
2679 |
Color colorAllocationFailSignal handle:[:ex | |
|
2621 | 2680 |
requestor warn:'Could not allocate colors.'. |
2162 | 2681 |
] do:[ |
2682 |
Color getColorsRed:4 green:8 blue:4 on:screen |
|
2683 |
] |
|
2684 |
] ifFalse:[ |
|
2685 |
screen releaseFixColors |
|
2686 |
]. |
|
2687 |
||
2688 |
useFixGrayPalette value ifTrue:[ |
|
2689 |
Color colorAllocationFailSignal handle:[:ex | |
|
2621 | 2690 |
requestor warn:'Could not allocate colors.'. |
2162 | 2691 |
] do:[ |
2692 |
Color getGrayColors:32 on:screen |
|
2693 |
] |
|
2694 |
] ifFalse:[ |
|
2695 |
screen releaseFixGrayColors |
|
2696 |
] |
|
2697 |
]. |
|
2698 |
screen hasColors:isColorMonitor value. |
|
2699 |
screen widthInMillimeter:sizeX value. |
|
2700 |
screen heightInMillimeter:sizeY value. |
|
2701 |
||
2702 |
screen supportsDeepIcons:deepIcons value. |
|
2703 |
ditherSyms notNil ifTrue:[ |
|
2704 |
Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex). |
|
2705 |
]. |
|
2706 |
||
2707 |
requestor withWaitCursorDo:[ |
|
2708 |
View defaultStyle:(View defaultStyle). |
|
2709 |
]. |
|
2710 |
||
2711 |
screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex). |
|
2001 | 2712 |
]. |
2713 |
box destroy |
|
2714 |
||
2162 | 2715 |
"Modified: / 9.9.1996 / 22:43:04 / stefan" |
2164 | 2716 |
"Modified: / 20.5.1999 / 18:35:21 / cg" |
2001 | 2717 |
! |
2718 |
||
2719 |
editSettingsFor:requestor |
|
2720 |
"open a dialog on edit settings" |
|
2721 |
||
3644 | 2722 |
|box st80EditingMode st80DoubleClickSelectMode resources tabsIs4 prevTabsIs4 searchDialogIsModal| |
2001 | 2723 |
|
2724 |
resources := requestor class classResources. |
|
2725 |
||
2726 |
"/ |
|
2727 |
"/ extract relevant system settings ... |
|
2728 |
"/ |
|
2729 |
st80EditingMode := EditTextView st80Mode asValue. |
|
2730 |
st80DoubleClickSelectMode := TextView st80SelectMode asValue. |
|
3031 | 2731 |
prevTabsIs4 := (ListView userDefaultTabPositions = ListView tab4Positions). |
2732 |
tabsIs4 := prevTabsIs4 asValue. |
|
3644 | 2733 |
searchDialogIsModal := UserPreferences current searchDialogIsModal asValue. |
2001 | 2734 |
"/ |
2735 |
"/ create a box on those values ... |
|
2736 |
"/ |
|
2737 |
box := DialogBox new. |
|
2738 |
box label:(resources string:'Edit settings'). |
|
2739 |
||
3644 | 2740 |
box addCheckBox:(resources string:'Cursor has ST80 line end behavior') on:st80EditingMode. |
2741 |
box addCheckBox:(resources string:'Double click select behavior as in ST80') on:st80DoubleClickSelectMode. |
|
2742 |
box addCheckBox:(resources string:'Tab stops in multiples of 4') on:tabsIs4. |
|
2743 |
box addCheckBox:(resources string:'SearchBox is modal') on:searchDialogIsModal. |
|
2001 | 2744 |
|
2745 |
box addHorizontalLine. |
|
2746 |
||
2747 |
box |
|
3031 | 2748 |
addHelpButtonFor:'Launcher/editSettings.html'; |
2749 |
addAbortAndOkButtons. |
|
2001 | 2750 |
|
2751 |
"/ |
|
2752 |
"/ show the box ... |
|
2753 |
"/ |
|
2754 |
box open. |
|
2755 |
||
2756 |
"/ |
|
2757 |
"/ update system settings |
|
2758 |
"/ |
|
2759 |
box accepted ifTrue:[ |
|
3031 | 2760 |
EditTextView st80Mode:(st80EditingMode value). |
2761 |
TextView st80SelectMode:(st80DoubleClickSelectMode value). |
|
2762 |
tabsIs4 value ~~ prevTabsIs4 ifTrue:[ |
|
2763 |
ListView userDefaultTabPositions:(tabsIs4 value ifTrue:[ListView tab4Positions] ifFalse:[ListView tab8Positions]). |
|
2764 |
ListView allSubInstancesDo:[:eachKindOfListView | |
|
2765 |
tabsIs4 value ifTrue:[eachKindOfListView setTab4] ifFalse:[eachKindOfListView setTab8] |
|
2766 |
]. |
|
2767 |
]. |
|
3644 | 2768 |
UserPreferences current searchDialogIsModal:searchDialogIsModal value. |
2001 | 2769 |
]. |
2770 |
box destroy |
|
2771 |
||
2772 |
"Created: / 6.1.1999 / 14:12:09 / cg" |
|
2773 |
"Modified: / 6.1.1999 / 14:17:51 / cg" |
|
2774 |
! |
|
2775 |
||
2776 |
fontSettingsFor:requestor |
|
2777 |
"open a dialog on font related settings" |
|
2778 |
||
2779 |
(self fontBoxForEncoding:nil for:requestor) ifTrue:[ |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
2780 |
requestor reopenLauncher. |
2001 | 2781 |
] |
2782 |
||
2783 |
"Created: 26.2.1996 / 22:52:51 / cg" |
|
2784 |
"Modified: 8.1.1997 / 14:52:49 / cg" |
|
2785 |
! |
|
2786 |
||
2787 |
javaSettingsFor:requestor |
|
2788 |
"open a dialog on settings related to the java subsystem" |
|
2789 |
||
2609 | 2790 |
|box audio javaHome classPath oldJavaHome oldClassPath resources component |
2001 | 2791 |
extraFileSecurityChecks extraSocketSecurityChecks |
2792 |
supportsJustInTimeCompilation |
|
2793 |
javaJustInTimeCompilation javaNativeCodeOptimization |
|
3288 | 2794 |
showJavaByteCode exceptionDebug nullPointerExceptionDebug pathSep| |
2001 | 2795 |
|
2796 |
resources := requestor class classResources. |
|
2797 |
||
2798 |
audio := JavaVM audioEnabled asValue. |
|
2799 |
extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue. |
|
2800 |
extraSocketSecurityChecks := JavaVM socketConnectConfirmation asValue. |
|
2801 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) ifTrue:[ |
|
2259 | 2802 |
javaJustInTimeCompilation := ObjectMemory javaJustInTimeCompilation asValue. |
2803 |
javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue. |
|
2001 | 2804 |
] ifFalse:[ |
2259 | 2805 |
javaJustInTimeCompilation := javaNativeCodeOptimization := false |
2001 | 2806 |
]. |
2807 |
showJavaByteCode := JavaMethod forceByteCodeDisplay asValue. |
|
2808 |
exceptionDebug := JavaVM exceptionDebug asValue. |
|
2259 | 2809 |
nullPointerExceptionDebug := JavaVM nullPointerExceptionDebug asValue. |
2001 | 2810 |
|
2609 | 2811 |
classPath := (Java classPath ? ''). |
2812 |
OperatingSystem isUNIXlike ifTrue:[ |
|
3288 | 2813 |
pathSep := $;. |
2609 | 2814 |
] ifFalse:[ |
3288 | 2815 |
pathSep := $:. |
2609 | 2816 |
]. |
3288 | 2817 |
classPath := (classPath asStringWith:pathSep) asValue. |
2609 | 2818 |
oldClassPath := classPath copy. |
2819 |
classPath := classPath asValue. |
|
2820 |
||
2821 |
javaHome := (Java javaHome ? ''). |
|
2822 |
oldJavaHome := javaHome copy. |
|
2823 |
javaHome := javaHome asValue. |
|
2001 | 2824 |
|
2825 |
box := DialogBox new. |
|
2826 |
box label:(resources string:'Java'). |
|
2827 |
||
2828 |
box addCheckBox:(resources string:'Audio Enabled') on:audio. |
|
2829 |
box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks. |
|
2830 |
box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks. |
|
2831 |
box addCheckBox:(resources string:'Debug Exceptions') on:exceptionDebug. |
|
2259 | 2832 |
box addCheckBox:(resources string:'Debug Null Pointer Exceptions') on:nullPointerExceptionDebug. |
2001 | 2833 |
box addHorizontalLine. |
2834 |
supportsJustInTimeCompilation ifTrue:[ |
|
2259 | 2835 |
box |
2836 |
addCheckBox:(resources string:'java just in time compilation to machine code') |
|
2837 |
on:javaJustInTimeCompilation. |
|
2838 |
box |
|
2839 |
addCheckBox:(resources string:'optimize native code') |
|
2840 |
on:javaNativeCodeOptimization. |
|
2001 | 2841 |
]. |
2842 |
box addHorizontalLine. |
|
2843 |
box addCheckBox:(resources string:'Display java byteCode (i.e. not source)') on:showJavaByteCode. |
|
2844 |
box addHorizontalLine. |
|
2845 |
component := box |
|
2609 | 2846 |
addLabelledInputField:(resources string:'classPath:') |
2847 |
adjust:#right |
|
2848 |
on:classPath |
|
2849 |
tabable:true |
|
2850 |
separateAtX:0.3. |
|
2851 |
component acceptOnLeave:false. |
|
2852 |
component := box |
|
2259 | 2853 |
addLabelledInputField:(resources string:'java home:') |
2854 |
adjust:#right |
|
2855 |
on:javaHome |
|
2856 |
tabable:true |
|
2857 |
separateAtX:0.3. |
|
2001 | 2858 |
component acceptOnLeave:false. |
2859 |
||
2860 |
box addVerticalSpace. |
|
2861 |
box addComponent:(Button |
|
2259 | 2862 |
label:(resources string:'Reinit VM now') |
2863 |
action:[ |
|
2864 |
box windowGroup withWaitCursorDo:[ |
|
2609 | 2865 |
"/ Java classPath size == 0 ifTrue:[ |
2866 |
"/ Java initialize. |
|
2867 |
"/ ]. |
|
2868 |
"/ Java classPath size == 0 ifTrue:[ |
|
2869 |
"/ self warn:'No JDK found'. |
|
2870 |
"/ ] ifFalse:[ |
|
2259 | 2871 |
JavaVM initializeVM |
2609 | 2872 |
"/ ] |
2259 | 2873 |
] |
2874 |
]). |
|
2001 | 2875 |
|
2876 |
box addComponent:(Button |
|
2259 | 2877 |
label:(resources string:'Remove all Java classes now') |
2878 |
action:[ |
|
2879 |
box windowGroup withWaitCursorDo:[ |
|
2880 |
Java flushAllJavaResources |
|
2881 |
] |
|
2882 |
]). |
|
2001 | 2883 |
|
2884 |
"/ box addHorizontalLine. |
|
2885 |
||
2886 |
"/ box addHelpButtonFor:'Launcher/javaSettings.html'. |
|
2048 | 2887 |
box addAbortAndOkButtons. |
2001 | 2888 |
box open. |
2889 |
||
2890 |
box accepted ifTrue:[ |
|
2609 | 2891 |
classPath value ~= oldClassPath ifTrue:[ |
2892 |
OperatingSystem isUNIXlike ifTrue:[ |
|
2893 |
classPath := (classPath value asCollectionOfSubstringsSeparatedBy:$:) |
|
2894 |
] ifFalse:[ |
|
2895 |
classPath := (classPath value asCollectionOfSubstringsSeparatedBy:$;) |
|
2896 |
]. |
|
2897 |
Java classPath:classPath |
|
2898 |
]. |
|
2899 |
Java javaHome:javaHome value. |
|
2900 |
||
2259 | 2901 |
JavaMethod forceByteCodeDisplay:showJavaByteCode value. |
2902 |
JavaVM audioEnabled:audio value. |
|
2903 |
JavaVM exceptionDebug:exceptionDebug value. |
|
2904 |
JavaVM nullPointerExceptionDebug:nullPointerExceptionDebug value. |
|
2905 |
JavaVM fileOpenConfirmation: extraFileSecurityChecks value. |
|
2906 |
JavaVM socketConnectConfirmation: extraSocketSecurityChecks value. |
|
2609 | 2907 |
|
2259 | 2908 |
javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[ |
2909 |
ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value. |
|
2910 |
javaJustInTimeCompilation value ifTrue:[ |
|
2911 |
JavaMethod allSubInstancesDo:[:m | m checked:false]. |
|
2912 |
]. |
|
2913 |
]. |
|
2914 |
javaNativeCodeOptimization value ~~ ObjectMemory javaNativeCodeOptimization ifTrue:[ |
|
2915 |
ObjectMemory javaNativeCodeOptimization:javaNativeCodeOptimization value. |
|
2916 |
]. |
|
2001 | 2917 |
]. |
2918 |
box destroy |
|
2919 |
||
2920 |
"Created: / 18.7.1998 / 22:32:58 / cg" |
|
2921 |
"Modified: / 27.1.1999 / 20:16:03 / cg" |
|
2922 |
! |
|
2923 |
||
2924 |
keyboardSettingsFor:requestor |
|
2925 |
"open a dialog on keyboard related settings" |
|
2926 |
||
2927 |
|mappings listOfRawKeys listOfFunctions |
|
2928 |
box l |
|
2929 |
list1 list2 listView1 listView2 |
|
2930 |
frame selectionForwarder macroForwarder macroTextView y resources| |
|
2931 |
||
2932 |
resources := requestor class classResources. |
|
2933 |
||
2934 |
mappings := Screen current keyboardMap. |
|
2935 |
||
2936 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
2937 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
2938 |
||
2939 |
selectionForwarder := Plug new. |
|
2940 |
selectionForwarder respondTo:#showFunction |
|
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2941 |
with:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2942 |
|raw| |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2943 |
raw := list1 selection. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2944 |
list2 retractInterestsFor:selectionForwarder. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2945 |
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
|
2946 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2947 |
]. |
2001 | 2948 |
selectionForwarder respondTo:#showRawKey |
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2949 |
with:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2950 |
|f raw| |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2951 |
|
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2952 |
f := list2 selection. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2953 |
list1 retractInterestsFor:selectionForwarder. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2954 |
raw := mappings keyAtValue:f asString. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2955 |
raw isNil ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2956 |
raw := mappings keyAtValue:f first. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2957 |
raw isNil ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2958 |
raw := mappings keyAtValue:f asSymbol. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2959 |
] |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2960 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2961 |
list1 selection:raw. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2962 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2963 |
]. |
2001 | 2964 |
|
2965 |
macroForwarder := [ |
|
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2966 |
|f macro indent| |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2967 |
f := list2 selection. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2968 |
(f startsWith:'Cmd') ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2969 |
f := f copyFrom:4 |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2970 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2971 |
macro := UserPreferences current functionKeySequences |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2972 |
at:(f asSymbol) ifAbsent:nil. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2973 |
macro notNil ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2974 |
macro := macro asStringCollection. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2975 |
indent := macro |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2976 |
inject:99999 into:[:min :element | |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2977 |
|stripped| |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2978 |
|
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2979 |
stripped := element withoutLeadingSeparators. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2980 |
stripped size == 0 ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2981 |
min |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2982 |
] ifFalse:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2983 |
min min:(element size - stripped size) |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2984 |
] |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2985 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2986 |
indent ~~ 0 ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2987 |
macro := macro collect:[:line | |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2988 |
line size > indent ifTrue:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2989 |
line copyFrom:indent+1 |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2990 |
] ifFalse:[ |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2991 |
line |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2992 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2993 |
] |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2994 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2995 |
]. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2996 |
macroTextView contents:macro. |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
2997 |
]. |
2001 | 2998 |
|
2999 |
list1 := SelectionInList with:listOfRawKeys. |
|
3000 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
3001 |
||
3002 |
list2 := SelectionInList with:listOfFunctions. |
|
3003 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
2584 | 3004 |
list2 onChangeEvaluate:macroForwarder. |
2001 | 3005 |
|
3006 |
box := Dialog new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3007 |
box label:(resources string:'Keyboard Mappings'). |
2001 | 3008 |
|
3009 |
l := box addTextLabel:(resources at:'KEY_MSG' default:'keyboard mapping:') withCRs. |
|
3010 |
l adjust:#left; borderWidth:0. |
|
3011 |
||
3012 |
frame := View new. |
|
3013 |
frame extent:300 @ 300. |
|
3014 |
frame borderWidth:0. |
|
3015 |
||
3016 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
3017 |
listView1 model:list1. |
|
3018 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
3019 |
||
3020 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
3021 |
listView2 model:list2. |
|
3022 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
3023 |
||
3024 |
frame topInset:box yPosition. |
|
3025 |
box addComponent:frame withExtent:350@200. |
|
3026 |
box makeTabable:listView1. |
|
3027 |
box makeTabable:listView2. |
|
3028 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
3029 |
||
3030 |
box addVerticalSpace. |
|
3031 |
||
3032 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
3033 |
l adjust:#left; borderWidth:0. |
|
3034 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
3035 |
l topInset:(View viewSpacing). |
|
3036 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
3037 |
||
3038 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
3039 |
box addComponent:macroTextView tabable:true. |
|
3040 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
3041 |
y := box yPosition. |
|
3042 |
||
3043 |
box |
|
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
3044 |
addHelpButtonFor:'Launcher/keyboardSetting.html'; |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
3045 |
"addAbortButton;" |
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
3046 |
addOkButtonLabelled:(resources string:'dismiss'). |
2001 | 3047 |
|
3048 |
macroTextView topInset:(l preferredExtent y + 5). |
|
3049 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
3050 |
||
3051 |
box open. |
|
3052 |
||
3053 |
box accepted ifTrue:[ |
|
2270
89a5fc4c5d78
keep functionKeySequences in UserPrefs (not as a global)
Claus Gittinger <cg@exept.de>
parents:
2269
diff
changeset
|
3054 |
"no action yet ..." |
2001 | 3055 |
]. |
3056 |
box destroy |
|
3057 |
||
3058 |
"Modified: / 9.9.1996 / 22:43:17 / stefan" |
|
3059 |
"Modified: / 4.5.1998 / 12:40:02 / cg" |
|
3060 |
! |
|
3061 |
||
3062 |
languageSettingsFor:requestor |
|
3063 |
"open a dialog on language related settings" |
|
3064 |
||
3065 |
|listOfLanguages translatedLanguages switch box languageList flags resources| |
|
3066 |
||
3067 |
resources := requestor class classResources. |
|
3068 |
||
3069 |
" |
|
3070 |
get list of supported languages from the launchers resources ... |
|
3071 |
" |
|
2845 | 3072 |
|
2001 | 3073 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
3074 |
listOfLanguages := listOfLanguages asOrderedCollection. |
|
2149 | 3075 |
|
2001 | 3076 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
2395 | 3077 |
item := resources at:lang. |
3078 |
item isString ifTrue:[ |
|
3079 |
item |
|
3080 |
] ifFalse:[ |
|
3081 |
item at:1 |
|
3082 |
] |
|
3083 |
]. |
|
2001 | 3084 |
flags := listOfLanguages collect:[:lang | |item| |
2395 | 3085 |
item := resources at:lang. |
3086 |
item isArray ifTrue:[ |
|
3087 |
item at:2 |
|
3088 |
] ifFalse:[ |
|
3089 |
nil |
|
3090 |
] |
|
3091 |
]. |
|
2845 | 3092 |
flags := flags collect:[:nm | |img d| nm notNil ifTrue:[ |
3093 |
img := Image fromFile:nm. |
|
3094 |
img isNil ifTrue:[ |
|
3095 |
d := Smalltalk getPackageDirectoryForPackage:'stx:goodies'. |
|
3096 |
img := Image fromFile:(d construct:nm). |
|
3097 |
]. |
|
3098 |
] ifFalse:[ |
|
3099 |
nil |
|
3100 |
] |
|
3101 |
]. |
|
3102 |
listOfLanguages := listOfLanguages collect:[:nm | nm copyFrom:'LANG_' size + 1]. |
|
3103 |
languageList := translatedLanguages with:flags collect:[:lang :flag | LabelAndIcon icon:flag string:lang.]. |
|
2001 | 3104 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3105 |
box := ListSelectionBox title:(resources at:'LANG_MSG' default:'Select a Language') withCRs. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3106 |
box label:(resources string:'Language Selection'). |
2001 | 3107 |
box list:languageList. |
2149 | 3108 |
box initialText:(Language , '-' , LanguageTerritory). |
2001 | 3109 |
box action:[:newLanguage | |
2395 | 3110 |
requestor withWaitCursorDo:[ |
3111 |
|fontPref idx language oldLanguage territory enc |
|
3112 |
answer matchingFonts l screen| |
|
3113 |
||
3114 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
3115 |
idx ~~ 0 ifTrue:[ |
|
3116 |
language := listOfLanguages at:idx |
|
3117 |
] ifFalse:[ |
|
3118 |
language := newLanguage |
|
3119 |
]. |
|
3120 |
(language includes:$-) ifTrue:[ |
|
3121 |
l := language asCollectionOfSubstringsSeparatedBy:$-. |
|
3122 |
language := l at:1. |
|
3123 |
territory := l at:2. |
|
3124 |
]. |
|
3125 |
territory isNil ifTrue:[ |
|
3126 |
territory := language copyTo:2 |
|
3127 |
]. |
|
3128 |
||
3129 |
"/ check if the new language needs a differently encoded font; |
|
3130 |
"/ ask user to switch font and allow cancellation. |
|
3131 |
"/ Otherwise, you are left with unreadable menu & button items ... |
|
3132 |
||
3133 |
oldLanguage := Smalltalk language. |
|
3134 |
Smalltalk language:language asSymbol. |
|
3135 |
ResourcePack flushCachedResourcePacks. |
|
3136 |
"/ refetch resources ... |
|
3137 |
resources := requestor class classResources. |
|
3138 |
fontPref := resources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
|
3423
6bf5611b8a1c
lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents:
3410
diff
changeset
|
3139 |
fontPref := fontPref asLowercase. |
2395 | 3140 |
Smalltalk language:oldLanguage. |
3141 |
||
3142 |
switch := true. |
|
3143 |
enc := MenuView defaultFont encoding. |
|
3423
6bf5611b8a1c
lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents:
3410
diff
changeset
|
3144 |
(fontPref match:enc asLowercase) ifFalse:[ |
2395 | 3145 |
"/ look if there is one at all. |
3146 |
screen := Screen current. |
|
3423
6bf5611b8a1c
lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents:
3410
diff
changeset
|
3147 |
matchingFonts := screen listOfAvailableFonts select:[:f | fontPref match:f encoding asLowercase]. |
2395 | 3148 |
matchingFonts size == 0 ifTrue:[ |
3149 |
"/ flush and try again - just in case, the font path has changed. |
|
3150 |
screen flushListOfAvailableFonts. |
|
3423
6bf5611b8a1c
lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents:
3410
diff
changeset
|
3151 |
matchingFonts := screen listOfAvailableFonts select:[:f | fontPref match:f encoding asLowercase]. |
2395 | 3152 |
]. |
3153 |
matchingFonts size == 0 ifTrue:[ |
|
3154 |
(Dialog |
|
3155 |
confirm:(resources |
|
3156 |
string:'Your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
|
3157 |
with:fontPref) withCRs) |
|
3158 |
ifFalse:[ |
|
3159 |
switch := false |
|
3160 |
] |
|
3161 |
] ifFalse:[ |
|
3162 |
answer := Dialog |
|
3163 |
confirmWithCancel:(resources |
|
3164 |
string:'menu font is not %1-encoded.\\Change it ?' |
|
3165 |
with:fontPref) withCRs |
|
3166 |
labels:(resources |
|
3167 |
array:#('cancel' 'no' 'yes')) |
|
3168 |
default:3. |
|
3169 |
answer isNil ifTrue:[ |
|
3170 |
switch := false |
|
3171 |
] ifFalse:[ |
|
3172 |
answer ifTrue:[ |
|
3173 |
switch := (requestor fontBoxForEncoding:fontPref) |
|
3174 |
] |
|
3175 |
]. |
|
3176 |
]. |
|
3177 |
]. |
|
3178 |
||
3179 |
switch ifTrue:[ |
|
3180 |
Transcript showCR:'change language to ' , newLanguage , ' ...'. |
|
3181 |
Smalltalk language:language asSymbol. |
|
3182 |
Smalltalk languageTerritory:territory asSymbol. |
|
2838 | 3183 |
"/ ResourcePack flushCachedResourcePacks - already done by language-change |
2395 | 3184 |
]. |
3185 |
]. |
|
3186 |
switch ifTrue:[ |
|
3187 |
requestor reopenLauncher. |
|
3188 |
DebugView newDebugger. |
|
3189 |
] |
|
2001 | 3190 |
]. |
3191 |
box |
|
2395 | 3192 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
2001 | 3193 |
box open. |
3194 |
box destroy |
|
3195 |
||
3196 |
"Modified: / 9.9.1996 / 22:43:27 / stefan" |
|
3423
6bf5611b8a1c
lower case <-> upper case encoding names
Claus Gittinger <cg@exept.de>
parents:
3410
diff
changeset
|
3197 |
"Modified: / 16.11.2001 / 11:51:35 / cg" |
2001 | 3198 |
! |
3199 |
||
3200 |
memorySettingsFor:requestor |
|
3201 |
"open a dialog on objectMemory related settings" |
|
3202 |
||
3203 |
|box igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
|
3204 |
compressLimit |
|
2294 | 3205 |
oldIncr component fields codeLimit codeTrigger stackLimit resources |
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3206 |
fastMoreLimit maxOldSpace models info acceptChannel| |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3207 |
|
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3208 |
acceptChannel := false asValue. |
2001 | 3209 |
|
3210 |
resources := requestor class classResources. |
|
3211 |
||
3212 |
"/ |
|
3213 |
"/ extract relevant system settings ... |
|
3214 |
"/ |
|
3215 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
3216 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
3217 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
3218 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
3219 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
3220 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
|
3221 |
codeLimit := ObjectMemory dynamicCodeLimit asValue. |
|
3222 |
codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue. |
|
3223 |
stackLimit := Process defaultMaximumStackSize asValue. |
|
2294 | 3224 |
fastMoreLimit := (ObjectMemory fastMoreOldSpaceLimit:-1) asValue. |
3225 |
maxOldSpace := ObjectMemory maxOldSpace asValue. |
|
3226 |
||
3227 |
models := OrderedCollection new. |
|
3228 |
info := OrderedCollection new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3229 |
models add:newSpaceSize. info add:#(number 'Size of newSpace where objects are created' 'Size of NewSpace:' ). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3230 |
models add:fastMoreLimit. info add:#(number 'Quickly allocate more memory (suppress GC) up to this limit' 'Quick Allocation Limit:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3231 |
models add:maxOldSpace. info add:#(number 'Never allocate more than this amount of memory' 'Maximum Memory Limit:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3232 |
models add:igcLimit. info add:#(number 'Start IGC whenever this amount has been allocated' 'Incremental GC Allocation Trigger:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3233 |
models add:igcFreeLimit. info add:#(number 'Start IGC whenever freespace drops below this' 'Incremental GC Freespace Trigger:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3234 |
models add:igcFreeAmount. info add:#(number 'Try to keep this amount for peak requests' 'Incremental GC Amount:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3235 |
models add:oldIncr. info add:#(number 'Increase oldSpace in chunks of this size' 'Oldspace Increment:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3236 |
models add:compressLimit. info add:#(number 'Use 2-pass compressing GC if > 0 and more memory is in use' 'Oldspace Compress Limit:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3237 |
models add:stackLimit. info add:#(number 'Trigger recursionInterrupt if more stack is used by a process' 'Stack Limit:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3238 |
models add:codeLimit. info add:#(numberOrNil 'Flush dynamic compiled code to stay within this limit' 'Dynamic code Limit:'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3239 |
models add:codeTrigger. info add:#(numberOrNil 'Start incremental GC whenever this amount of code has been allocated' 'Dynamic Code GC Trigger:'). |
2001 | 3240 |
|
3241 |
"/ |
|
3242 |
"/ create a box on those values ... |
|
3243 |
"/ |
|
3244 |
fields := OrderedCollection new. |
|
3245 |
||
3246 |
box := DialogBox new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3247 |
box label:(resources string:'Memory Manager Settings'). |
2001 | 3248 |
|
3249 |
(box addTextLabel:'Warning - invalid settings may result in failures or poor performance |
|
2866 | 3250 |
' , 'You have been warned' allBold , '.') adjust:#left. |
2001 | 3251 |
box addHorizontalLine. |
3252 |
||
2294 | 3253 |
models with:info do:[:m :i | |
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3254 |
|lbl descr conv| |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3255 |
|
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3256 |
conv := i at:1. |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3257 |
lbl := i at:3. |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3258 |
descr := i at:2. |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3259 |
|
2294 | 3260 |
component := box |
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3261 |
addLabelledInputField:(resources string:lbl) |
2294 | 3262 |
adjust:#right |
3263 |
on:nil "/ newSpaceSize |
|
3264 |
tabable:true |
|
3265 |
separateAtX:0.7. |
|
3266 |
component acceptOnLeave:false. |
|
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3267 |
"/ component converter:(PrintConverter new perform:conv). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3268 |
component model:((TypeConverter on:m) perform:conv). |
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3269 |
component acceptChannel:acceptChannel. |
2294 | 3270 |
fields add:component. |
3271 |
||
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3272 |
(box addTextLabel:descr) adjust:#left. |
2294 | 3273 |
box addHorizontalLine. |
3274 |
]. |
|
3275 |
||
3276 |
ObjectMemory supportsJustInTimeCompilation ifFalse:[ |
|
3277 |
(fields at:9) disable. |
|
3278 |
(fields at:10) disable. |
|
2001 | 3279 |
]. |
3280 |
||
2048 | 3281 |
box addAbortAndOkButtons. |
2001 | 3282 |
box |
2294 | 3283 |
addHelpButtonFor:'Launcher/memorySettings.html'. |
2001 | 3284 |
|
3285 |
"/ |
|
3286 |
"/ show the box ... |
|
3287 |
"/ |
|
3288 |
box open. |
|
3289 |
||
3290 |
"/ |
|
3291 |
"/ update system settings |
|
3292 |
"/ |
|
3293 |
box accepted ifTrue:[ |
|
2318
32dae4e72c7d
fixed converter setup in objectMemory dialog.
Claus Gittinger <cg@exept.de>
parents:
2316
diff
changeset
|
3294 |
acceptChannel value:true. |
2294 | 3295 |
|
3296 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
|
3297 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
|
3298 |
]. |
|
3299 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
|
3300 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
|
3301 |
]. |
|
3302 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
|
3303 |
ObjectMemory incrementalGCLimit:igcLimit value. |
|
3304 |
]. |
|
3305 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
|
3306 |
ObjectMemory newSpaceSize:newSpaceSize value. |
|
3307 |
]. |
|
3308 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
|
3309 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
|
3310 |
]. |
|
3311 |
stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[ |
|
3312 |
Process defaultMaximumStackSize:stackLimit value. |
|
3313 |
]. |
|
3314 |
fastMoreLimit value ~~ (ObjectMemory fastMoreOldSpaceLimit:-1) ifTrue:[ |
|
3315 |
ObjectMemory fastMoreOldSpaceLimit:fastMoreLimit value. |
|
3316 |
]. |
|
3317 |
maxOldSpace value ~~ ObjectMemory maxOldSpace ifTrue:[ |
|
3318 |
ObjectMemory maxOldSpace:maxOldSpace value. |
|
3319 |
]. |
|
3320 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
|
3321 |
ObjectMemory dynamicCodeLimit:codeLimit value. |
|
3322 |
ObjectMemory dynamicCodeGCTrigger:codeTrigger value. |
|
2001 | 3323 |
]. |
3324 |
box destroy |
|
3325 |
||
3326 |
"Modified: 27.2.1997 / 16:50:12 / cg" |
|
3327 |
! |
|
3328 |
||
3329 |
messageSettingsFor:requestor |
|
3330 |
"open a dialog on infoMessage related settings" |
|
3331 |
||
3332 |
|box vmInfo vmErrors displayErrors classInfos resources| |
|
3333 |
||
3334 |
resources := requestor class classResources. |
|
3335 |
||
3336 |
vmInfo := ObjectMemory infoPrinting asValue. |
|
3337 |
vmErrors := ObjectMemory debugPrinting asValue. |
|
3338 |
classInfos := Object infoPrinting asValue. |
|
3339 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
|
3340 |
||
3341 |
box := DialogBox new. |
|
3342 |
box label:(resources string:'Messages'). |
|
3343 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3344 |
box addCheckBox:(resources string:'VM Info Messages') on:vmInfo. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3345 |
box addCheckBox:(resources string:'VM Error Messages') on:vmErrors. |
2001 | 3346 |
box addHorizontalLine. |
3347 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3348 |
box addCheckBox:(resources string:'Display Error Messages (Xlib, Xtlib, WinAPI ...)') on:displayErrors. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3349 |
box addCheckBox:(resources string:'Other Info Messages') on:classInfos. |
2807 | 3350 |
box addHorizontalLine. |
2001 | 3351 |
|
3352 |
box addHelpButtonFor:'Launcher/messageSettings.html'. |
|
2048 | 3353 |
box addAbortAndOkButtons. |
2001 | 3354 |
box open. |
3355 |
||
3356 |
box accepted ifTrue:[ |
|
2807 | 3357 |
ObjectMemory infoPrinting:vmInfo value. |
3358 |
ObjectMemory debugPrinting:vmErrors value. |
|
3359 |
Object infoPrinting:classInfos value. |
|
3360 |
DeviceWorkstation errorPrinting:displayErrors value. |
|
2001 | 3361 |
]. |
3362 |
box destroy |
|
3363 |
||
3364 |
"Modified: 27.1.1997 / 17:46:01 / cg" |
|
3365 |
! |
|
3366 |
||
3367 |
miscSettingsFor:requestor |
|
3368 |
"open a dialog on misc other settings" |
|
3369 |
||
3077 | 3370 |
|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
|
3371 |
hostNameInLabel showAccelerators |
b4412338a603
avoid autoloading RDoitServer in misc-settings.
Claus Gittinger <cg@exept.de>
parents:
2064
diff
changeset
|
3372 |
preemptive dynamicPrios hostNameInLabelHolder resources y |
2977 | 3373 |
activateOnClick opaqueVariablePanelResize opaqueTableColumnResize currentUserPrefs |
3077 | 3374 |
beepEnabled newWindowLabelFormat| |
2001 | 3375 |
|
3376 |
resources := requestor class classResources. |
|
2395 | 3377 |
currentUserPrefs := UserPreferences current. |
2001 | 3378 |
|
3379 |
"/ |
|
3380 |
"/ extract relevant system settings ... |
|
3381 |
"/ |
|
3382 |
shadows := PopUpView shadows asValue. |
|
2461 | 3383 |
beepEnabled := currentUserPrefs beepEnabled asValue. |
3384 |
||
2001 | 3385 |
hostNameInLabel := StandardSystemView includeHostNameInLabel. |
3386 |
hostNameInLabelHolder := hostNameInLabel asValue. |
|
3387 |
returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue. |
|
3388 |
takeFocus := StandardSystemView takeFocusWhenMapped asValue. |
|
2395 | 3389 |
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
|
3390 |
activateOnClick := (Display activateOnClick:nil) asValue. |
2395 | 3391 |
opaqueVariablePanelResize := currentUserPrefs opaqueVariablePanelResizing asValue. |
2977 | 3392 |
opaqueTableColumnResize := currentUserPrefs opaqueTableColumnResizing asValue. |
2001 | 3393 |
|
3394 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
|
3395 |
preemptive := Processor isTimeSlicing asValue. |
|
3396 |
dynamicPrios := Processor supportDynamicPriorities asValue. |
|
3397 |
||
3398 |
"/ |
|
3399 |
"/ create a box on those values ... |
|
3400 |
"/ |
|
3401 |
box := DialogBox new. |
|
3402 |
box label:(resources string:'Other settings'). |
|
3403 |
||
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3404 |
box addCheckBox:(resources string:'Shadows under popup views') on:shadows. |
2461 | 3405 |
box addCheckBox:(resources string:'Beeper enabled') on:beepEnabled. |
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3406 |
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
|
3407 |
box addCheckBox:(resources string:'Views catch focus when mapped') on:takeFocus. |
3077 | 3408 |
pos := box yPosition. |
3409 |
check := box addCheckBox:(resources string:'Hostname in window labels') on:hostNameInLabelHolder. |
|
3410 |
check width:0.6. |
|
3411 |
pos2 := box yPosition. |
|
3412 |
box yPosition:pos. |
|
3413 |
butt := box addComponent:(Button label:(resources string:'Format...') |
|
3414 |
action:[ |
|
3415 |
|newFormat| |
|
3416 |
||
3386 | 3417 |
newFormat := Dialog request:'Define the format of window labels:\\ %1 - label\ %2 - hostname\ %3 - username\ %4 - processId\' withCRs initialAnswer:StandardSystemView windowLabelFormat. |
3077 | 3418 |
newFormat size > 0 ifTrue:[ |
3419 |
newWindowLabelFormat := newFormat |
|
3420 |
]. |
|
3421 |
]). |
|
3422 |
box makeTabable:butt. |
|
3423 |
butt left:0.6; width:0.4. |
|
3424 |
box yPosition:(box yPosition max:pos2). |
|
3425 |
||
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3426 |
box addCheckBox:(resources string:'Show accelerator keys in menus') on:showAccelerators. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3427 |
box addCheckBox:(resources string:'Raise & activate windows on click') on:activateOnClick. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3428 |
box addCheckBox:(resources string:'Focus follows mouse') on:focusFollowsMouse. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3429 |
box addCheckBox:(resources string:'Opaque variable panel resizing') on:opaqueVariablePanelResize. |
2977 | 3430 |
box addCheckBox:(resources string:'Opaque table column resizing') on:opaqueTableColumnResize. |
2001 | 3431 |
|
3432 |
box addHorizontalLine. |
|
3433 |
||
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3434 |
box addCheckBox:(resources string:'Preemptive scheduling') on:preemptive. |
2001 | 3435 |
box leftIndent:20. |
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
3436 |
check := box addCheckBox:(resources string:'Dynamic priorities') on:dynamicPrios. |
2001 | 3437 |
check enableChannel:preemptive. |
3438 |
box leftIndent:0. |
|
3439 |
||
2807 | 3440 |
box addHorizontalLine. |
2001 | 3441 |
box |
2164 | 3442 |
addHelpButtonFor:'Launcher/miscSettings.html'; |
3443 |
addAbortAndOkButtons. |
|
2001 | 3444 |
|
3445 |
"/ |
|
3446 |
"/ show the box ... |
|
3447 |
"/ |
|
3448 |
box open. |
|
3449 |
||
3450 |
"/ |
|
3451 |
"/ update system settings |
|
3452 |
"/ |
|
3453 |
box accepted ifTrue:[ |
|
2164 | 3454 |
PopUpView shadows:shadows value. |
3077 | 3455 |
(hostNameInLabelHolder value ~= hostNameInLabel |
3456 |
or:[newWindowLabelFormat ~= StandardSystemView windowLabelFormat]) ifTrue:[ |
|
2164 | 3457 |
StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value. |
3077 | 3458 |
newWindowLabelFormat notNil ifTrue:[ |
3459 |
StandardSystemView windowLabelFormat:newWindowLabelFormat |
|
3460 |
]. |
|
2164 | 3461 |
|
3462 |
Screen allScreens do:[:aDisplay | |
|
3463 |
aDisplay allViewsDo:[:aView | |
|
3464 |
|l| |
|
3465 |
||
3466 |
aView isTopView ifTrue:[ |
|
3467 |
l := aView label. |
|
3468 |
l notNil ifTrue:[ |
|
3469 |
aView label:(l , ' '); label:l. "/ force a change |
|
3470 |
] |
|
3471 |
] |
|
3472 |
] |
|
3473 |
] |
|
3474 |
]. |
|
3475 |
||
2395 | 3476 |
currentUserPrefs opaqueVariablePanelResizing:opaqueVariablePanelResize value. |
2977 | 3477 |
currentUserPrefs opaqueTableColumnResizing:opaqueTableColumnResize value. |
3478 |
||
2461 | 3479 |
currentUserPrefs beepEnabled:beepEnabled value. |
2164 | 3480 |
|
3481 |
StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value. |
|
3482 |
StandardSystemView takeFocusWhenMapped:takeFocus value. |
|
2395 | 3483 |
currentUserPrefs focusFollowsMouse:focusFollowsMouse value. |
2164 | 3484 |
Screen current activateOnClick:(activateOnClick value). |
3485 |
||
3486 |
MenuView showAcceleratorKeys:showAccelerators value. |
|
3487 |
Processor isTimeSlicing ~~ preemptive value ifTrue:[ |
|
3488 |
preemptive value ifTrue:[ |
|
3489 |
Processor startTimeSlicing |
|
3490 |
] ifFalse:[ |
|
3491 |
Processor stopTimeSlicing |
|
3492 |
] |
|
3493 |
]. |
|
3494 |
Processor supportDynamicPriorities ~~ dynamicPrios value ifTrue:[ |
|
3495 |
Processor supportDynamicPriorities:dynamicPrios value |
|
3496 |
]. |
|
2001 | 3497 |
]. |
3498 |
box destroy |
|
3499 |
||
3500 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
2164 | 3501 |
"Modified: / 20.5.1999 / 18:33:55 / cg" |
2461 | 3502 |
"Modified: / 3.12.1999 / 17:11:38 / ps" |
2001 | 3503 |
! |
3504 |
||
3505 |
printerSettingsFor:requestor |
|
2435 | 3506 |
"open a dialog on printer related settings; returns true if accepted" |
3507 |
||
3508 |
|box accepted |
|
2001 | 3509 |
possiblePrinters possibleTypes printerType printCommand |
3510 |
pageFormat landscape updater |
|
3511 |
formatLabel formatComponent landscapeLabel landscapeComponent |
|
3512 |
topMargin leftMargin rightMargin bottomMargin unitList unit |
|
3513 |
topMarginComponent leftMarginComponent |
|
3514 |
rightMarginComponent |
|
3515 |
bottomMarginComponent supportsColor supportsColorComponent |
|
3516 |
y y1 commandListPop component commandList row resources| |
|
3517 |
||
3518 |
resources := requestor class classResources. |
|
3519 |
||
3520 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
3521 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
3522 |
||
3523 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
3524 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
3525 |
printCommand := Printer printCommand asValue. |
|
3526 |
||
3527 |
pageFormat := SelectionInList new list:(Printer defaultPageFormats). |
|
3528 |
pageFormat selection:(Printer pageFormat). |
|
3529 |
landscape := Printer landscape asValue. |
|
3530 |
||
3531 |
topMargin := Printer topMargin asValue. |
|
3532 |
leftMargin := Printer leftMargin asValue. |
|
3533 |
rightMargin := Printer rightMargin asValue. |
|
3534 |
bottomMargin := Printer bottomMargin asValue. |
|
3535 |
supportsColor := Printer supportsColor asValue. |
|
3536 |
||
3537 |
box := DialogBox new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3538 |
box label:(resources string:'Printer Settings'). |
2001 | 3539 |
|
3540 |
"/ either use a popUpList ... |
|
3541 |
"/ box addPopUpList:(resources string:'printer type:') on:printerType. |
|
3542 |
||
3543 |
"/ or a comboList; |
|
3544 |
"/ which one looks better ? |
|
3545 |
y := box yPosition. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3546 |
component := box addTextLabel:(resources string:'Printer Type:'). |
2001 | 3547 |
component width:0.25; adjust:#right; borderWidth:0. |
3548 |
box yPosition:y. |
|
3549 |
component := box addComboListOn:printerType tabable:true. |
|
3550 |
component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true. |
|
3551 |
component width:0.75; left:0.25. |
|
3552 |
"/ end of question |
|
3553 |
||
3554 |
y := box yPosition. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3555 |
component := box addTextLabel:(resources string:'Print Command:'). |
2001 | 3556 |
component width:0.25; adjust:#right; borderWidth:0. |
3557 |
box yPosition:y. |
|
3558 |
commandListPop := box addComboBoxOn:printCommand tabable:true. |
|
3559 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
3560 |
commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3561 |
"/ some common print commands ... |
|
3562 |
||
3563 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
|
3564 |
commandList isNil ifTrue:[ |
|
2435 | 3565 |
commandList := PrinterStream defaultCommands. |
3566 |
commandList isNil ifTrue:[ |
|
3567 |
commandList := #('lpr' |
|
3568 |
'lp' |
|
3569 |
). |
|
3570 |
] |
|
2001 | 3571 |
]. |
3572 |
||
3573 |
commandListPop list:commandList. |
|
3574 |
||
3575 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
3576 |
||
3577 |
row := OrderedCollection new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3578 |
row add:(formatLabel := Label label:(resources string:'Page format:')). |
2001 | 3579 |
formatLabel borderWidth:0. |
3580 |
row add:(formatComponent := PopUpList on:pageFormat). |
|
3581 |
formatComponent label:'unknown'. |
|
3582 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3583 |
row add:(landscapeLabel := Label label:(resources string:'Landscape:')). |
2001 | 3584 |
landscapeLabel borderWidth:0. |
3585 |
row add:(landscapeComponent := CheckToggle on:landscape). |
|
3586 |
||
3587 |
y := box yPosition. |
|
3588 |
box |
|
2435 | 3589 |
addRow:(1 to:2) |
3590 |
fromX:0 |
|
3591 |
toX:0.5 |
|
3592 |
collect:[:idx | row at:idx] |
|
3593 |
tabable:false |
|
3594 |
horizontalLayout:#leftSpace |
|
3595 |
verticalLayout:#center. |
|
2001 | 3596 |
y1 := box yPosition. |
3597 |
box yPosition:y. |
|
3598 |
||
3599 |
box |
|
2435 | 3600 |
addRow:(3 to:4) |
3601 |
fromX:0.5 |
|
3602 |
toX:1.0 |
|
3603 |
collect:[:idx | row at:idx] |
|
3604 |
tabable:false |
|
3605 |
horizontalLayout:#leftSpace |
|
3606 |
verticalLayout:#center. |
|
2001 | 3607 |
|
3608 |
box yPosition:(box yPosition max:y1). |
|
3609 |
||
3610 |
box makeTabable:(formatComponent). |
|
3611 |
box makeTabable:(landscapeComponent). |
|
3612 |
||
3613 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
3614 |
||
3615 |
y := box yPosition. |
|
3616 |
||
3617 |
topMarginComponent := box |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3618 |
addLabelledInputField:(resources string:'Top Margin:') |
2435 | 3619 |
adjust:#right |
3620 |
on:nil "/ topMargin |
|
3621 |
tabable:true |
|
3622 |
from:0.0 to:0.5 |
|
3623 |
separateAtX:0.6. |
|
2001 | 3624 |
topMarginComponent converter:(PrintConverter new initForNumber). |
3625 |
topMarginComponent model:topMargin. |
|
3626 |
y1 := box yPosition. |
|
3627 |
||
3628 |
box yPosition:y. |
|
3629 |
unitList := SelectionInList with:#('inch' 'mm'). |
|
3630 |
unitList selectionIndex:1. |
|
3631 |
||
3632 |
component := box addComponent:(PopUpList on:unitList). |
|
3633 |
component |
|
2435 | 3634 |
left:0.6; |
3635 |
width:0.3. |
|
2001 | 3636 |
|
3637 |
box yPosition:y1. |
|
3638 |
||
3639 |
leftMarginComponent := box |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3640 |
addLabelledInputField:(resources string:'Left Margin:') |
2435 | 3641 |
adjust:#right |
3642 |
on:nil "/ leftMargin |
|
3643 |
tabable:true |
|
3644 |
from:0.0 to:0.5 |
|
3645 |
separateAtX:0.6. |
|
2001 | 3646 |
leftMarginComponent converter:(PrintConverter new initForNumber). |
3647 |
leftMarginComponent model:leftMargin. |
|
3648 |
||
3649 |
rightMarginComponent := box |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3650 |
addLabelledInputField:(resources string:'Right Margin:') |
2435 | 3651 |
adjust:#right |
3652 |
on:nil "/ rightMargin |
|
3653 |
tabable:true |
|
3654 |
from:0.0 to:0.5 |
|
3655 |
separateAtX:0.6. |
|
2001 | 3656 |
rightMarginComponent converter:(PrintConverter new initForNumber). |
3657 |
rightMarginComponent model:rightMargin. |
|
3658 |
||
3659 |
bottomMarginComponent := box |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3660 |
addLabelledInputField:(resources string:'Bottom Margin:') |
2435 | 3661 |
adjust:#right |
3662 |
on:nil "/ bottomMargin |
|
3663 |
tabable:true |
|
3664 |
from:0.0 to:0.5 |
|
3665 |
separateAtX:0.6. |
|
2001 | 3666 |
bottomMarginComponent converter:(PrintConverter new initForNumber). |
3667 |
bottomMarginComponent model:bottomMargin. |
|
3668 |
||
3669 |
box addHorizontalLine. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
3670 |
supportsColorComponent := box addCheckBox:(resources string:'Color Printer') on:supportsColor. |
2001 | 3671 |
box addVerticalSpace. |
3672 |
||
3673 |
updater := [ |p fg hasPageSize hasMargins| |
|
3674 |
||
2435 | 3675 |
printerType selectionIndex ~~ 0 ifTrue:[ |
3676 |
p := possiblePrinters at:(printerType selectionIndex). |
|
3677 |
hasPageSize := p supportsPageSizes. |
|
3678 |
hasMargins := p supportsMargins. |
|
3679 |
] ifFalse:[ |
|
3680 |
hasPageSize := false. |
|
3681 |
hasMargins := false. |
|
3682 |
]. |
|
3683 |
hasPageSize ifTrue:[ |
|
3684 |
fg := Button new foregroundColor. |
|
3685 |
formatComponent enable. |
|
3686 |
landscapeComponent enable. |
|
3687 |
||
3688 |
formatComponent label:p pageFormat. |
|
3689 |
pageFormat value:(p pageFormat). |
|
3690 |
landscape value:(p landscape). |
|
3691 |
] ifFalse:[ |
|
3692 |
fg := Button new disabledForegroundColor. |
|
3693 |
formatComponent disable. |
|
3694 |
landscapeComponent disable. |
|
3695 |
||
3696 |
formatComponent label:'unknown'. |
|
3697 |
landscape value:nil. |
|
3698 |
]. |
|
3699 |
hasMargins ifTrue:[ |
|
3700 |
unitList selectionIndex == 2 ifTrue:[ |
|
3701 |
unit := #mm |
|
3702 |
] ifFalse:[ |
|
3703 |
unit := #inch |
|
3704 |
]. |
|
3705 |
||
3706 |
topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit). |
|
3707 |
leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit). |
|
3708 |
rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit). |
|
3709 |
bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit). |
|
3710 |
||
3711 |
topMarginComponent enable. |
|
3712 |
leftMarginComponent enable. |
|
3713 |
rightMarginComponent enable. |
|
3714 |
bottomMarginComponent enable. |
|
3715 |
] ifFalse:[ |
|
3716 |
topMarginComponent disable. |
|
3717 |
leftMarginComponent disable. |
|
3718 |
rightMarginComponent disable. |
|
3719 |
bottomMarginComponent disable. |
|
3720 |
]. |
|
3721 |
formatLabel foregroundColor:fg. |
|
3722 |
landscapeLabel foregroundColor:fg. |
|
3723 |
||
3724 |
p notNil ifTrue:[ |
|
3725 |
commandList := p defaultCommands. |
|
3726 |
commandList notNil ifTrue:[ |
|
3727 |
commandListPop list:commandList |
|
3728 |
]. |
|
3729 |
||
3730 |
printCommand value:(p printCommand). |
|
3731 |
]. |
|
3732 |
p supportsPostscript ifFalse:[ |
|
3733 |
supportsColorComponent disable. |
|
3734 |
supportsColor value:false |
|
3735 |
] ifTrue:[ |
|
3736 |
supportsColorComponent enable. |
|
3737 |
supportsColor value:(Printer supportsColor). |
|
3738 |
] |
|
3739 |
]. |
|
2584 | 3740 |
unitList onChangeEvaluate:updater. |
3741 |
printerType onChangeEvaluate:updater. |
|
2001 | 3742 |
updater value. |
3743 |
||
2807 | 3744 |
box addHorizontalLine. |
2001 | 3745 |
box addVerticalSpace; |
2435 | 3746 |
addHelpButtonFor:'Launcher/printerSettings.html'; |
3747 |
addAbortAndOkButtons. |
|
2001 | 3748 |
box open. |
3749 |
||
2435 | 3750 |
(accepted := box accepted) ifTrue:[ |
3751 |
Printer := possiblePrinters at:(printerType selectionIndex). |
|
3752 |
Printer printCommand:printCommand value. |
|
3753 |
||
3754 |
Printer supportsPageSizes ifTrue:[ |
|
3755 |
Printer pageFormat:(pageFormat selection). |
|
3756 |
Printer landscape:(landscape value). |
|
3757 |
]. |
|
3758 |
Printer supportsMargins ifTrue:[ |
|
3759 |
unitList selectionIndex == 2 ifTrue:[ |
|
3760 |
unit := #mm |
|
3761 |
] ifFalse:[ |
|
3762 |
unit := #inch |
|
3763 |
]. |
|
3764 |
Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch). |
|
3765 |
Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch). |
|
3766 |
Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch). |
|
3767 |
Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch). |
|
3768 |
]. |
|
3769 |
Printer supportsPostscript ifTrue:[ |
|
3770 |
Printer supportsColor:supportsColor value. |
|
3771 |
]. |
|
2001 | 3772 |
]. |
2435 | 3773 |
box destroy. |
3774 |
^ accepted |
|
2001 | 3775 |
|
3776 |
"Modified: 9.9.1996 / 22:43:51 / stefan" |
|
3777 |
"Modified: 28.2.1997 / 14:00:13 / cg" |
|
3778 |
! |
|
3779 |
||
3780 |
restoreSettingsFor:requestor |
|
3781 |
"restore settings from a settings-file." |
|
3782 |
||
3783 |
"a temporary kludge - we need a central systemSettings object for this, |
|
3784 |
which can be saved/restored with a single store/read. |
|
3785 |
Will move entries over to UserPreferences over time; |
|
3786 |
new items should always go there." |
|
3787 |
||
3788 |
|fileName resources| |
|
3789 |
||
3790 |
resources := requestor class classResources. |
|
3791 |
||
3792 |
fileName := Dialog |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3793 |
requestFileName:(resources string:'restore settings from:') |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3794 |
default:'settings.stx' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3795 |
ok:(resources string:'restore') |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3796 |
abort:(resources string:'cancel') |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3797 |
pattern:'*.stx' |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3798 |
fromDirectory:nil. |
2021 | 3799 |
|
3800 |
(fileName size == 0) ifTrue:[ |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3801 |
"/ canceled |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3802 |
^ self |
2001 | 3803 |
]. |
3804 |
||
3805 |
self withWaitCursorDo:[ |
|
3219
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3806 |
Smalltalk fileIn:fileName. |
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3807 |
|
2e32f575524c
removed mouseSettings - useless
Claus Gittinger <cg@exept.de>
parents:
3218
diff
changeset
|
3808 |
self reopenLauncher. |
2001 | 3809 |
]. |
3810 |
||
3811 |
"Modified: / 21.7.1998 / 11:37:54 / cg" |
|
3812 |
! |
|
3813 |
||
3814 |
saveSettingsFor:requestor |
|
3815 |
"save settings to a settings-file." |
|
3816 |
||
3817 |
"a temporary kludge - we need a central systemSettings object for this, |
|
3818 |
which can be saved/restored with a single store/read. |
|
3819 |
Will move entries over to UserPreferences over time; |
|
3820 |
new items should always go there." |
|
3821 |
||
2435 | 3822 |
|fileName resources| |
2001 | 3823 |
|
3824 |
resources := requestor class classResources. |
|
3825 |
||
3826 |
fileName := Dialog |
|
2201 | 3827 |
requestFileName:(resources string:'save settings in:') |
3828 |
default:'settings.stx' |
|
3829 |
ok:(resources string:'save') |
|
3830 |
abort:(resources string:'cancel') |
|
3831 |
pattern:'*.stx' |
|
2715 | 3832 |
fromDirectory:'.'. |
2001 | 3833 |
|
2435 | 3834 |
self saveSettingsFor:requestor in:fileName. |
3835 |
! |
|
3836 |
||
3837 |
saveSettingsFor:requestor in:fileName |
|
3838 |
"save settings to a settings-file." |
|
3839 |
||
3840 |
"a temporary kludge - we need a central systemSettings object for this, |
|
3841 |
which can be saved/restored with a single store/read. |
|
3842 |
Will move entries over to UserPreferences over time; |
|
3843 |
new items should always go there." |
|
3844 |
||
3845 |
|s screen currentUserPrefs| |
|
3846 |
||
2021 | 3847 |
(fileName size == 0) ifTrue:[ |
2201 | 3848 |
"/ canceled |
3849 |
^ self |
|
2001 | 3850 |
]. |
3851 |
||
3852 |
s := fileName asFilename writeStream. |
|
3853 |
s isNil ifTrue:[ |
|
2621 | 3854 |
requestor warn:'cannot write the ''' , fileName , ''' file'. |
2201 | 3855 |
^ self |
2001 | 3856 |
]. |
3857 |
||
2435 | 3858 |
currentUserPrefs := UserPreferences current. |
2457 | 3859 |
screen := Screen current. |
2435 | 3860 |
|
2001 | 3861 |
s nextPutLine:'"/ ST/X saved settings'; |
3862 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
3863 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
3864 |
nextPutLine:'"/'; |
|
3865 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
3866 |
nextPutLine:'"/ ''save settings'' function of the Launcher'; |
|
3867 |
nextPutLine:'"/'. |
|
3868 |
s cr. |
|
3869 |
||
3870 |
s nextPutLine:'"/'. |
|
3871 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
3872 |
s nextPutLine:'"/'. |
|
3873 |
s cr. |
|
3874 |
||
3875 |
s nextPutLine:'"/'. |
|
3876 |
s nextPutLine:'"/ Display settings:'. |
|
3877 |
s nextPutLine:'"/'. |
|
3878 |
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
|
3879 |
s nextPutLine:'Display notNil ifTrue:['. |
2457 | 3880 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
2001 | 3881 |
screen fixColors notNil ifTrue:[ |
2201 | 3882 |
s nextPutLine:' Image flushDeviceImages.'. |
3883 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
3884 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
3885 |
s nextPutLine:' ].'. |
|
2001 | 3886 |
] ifFalse:[ |
2201 | 3887 |
s nextPutLine:' Display releaseFixColors.'. |
2001 | 3888 |
]. |
3889 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
3890 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
3891 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
3892 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
3893 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
3894 |
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
|
3895 |
s nextPutLine:' ].'. |
2001 | 3896 |
s nextPutLine:'].'. |
3897 |
s cr. |
|
3898 |
||
3899 |
s nextPutLine:'"/'. |
|
3900 |
s nextPutLine:'"/ Compiler settings:'. |
|
3901 |
s nextPutLine:'"/'. |
|
3902 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
3903 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
3904 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
3905 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
3906 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
|
3907 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
|
3480
7f13d0a4ae1d
save compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents:
3479
diff
changeset
|
3908 |
nextPutLine:'Compiler allowSqueakExtensions: ' , (Compiler allowSqueakExtensions storeString) , '.'; |
7f13d0a4ae1d
save compiler settings (dolphin)
Claus Gittinger <cg@exept.de>
parents:
3479
diff
changeset
|
3909 |
nextPutLine:'Compiler allowDolphinExtensions: ' , (Compiler allowDolphinExtensions storeString) , '.'; |
2001 | 3910 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
3911 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
3912 |
||
3913 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
2596 | 3914 |
nextPutLine:'Compiler stcCompilation: ' , (Compiler stcCompilation storeString) , '.'; |
3915 |
nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:['; |
|
3916 |
nextPutLine:' Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
3917 |
nextPutLine:' Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
3918 |
nextPutLine:' Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
3919 |
nextPutLine:' ' , (Compiler stcModulePath storeString) , ' asFilename exists ifTrue:['; |
|
3920 |
nextPutLine:' Compiler stcModulePath: ' , (Compiler stcModulePath storeString) , '.'; |
|
3921 |
nextPutLine:' ].'; |
|
3922 |
nextPutLine:' Compiler stcPath: ' , (Compiler stcPath storeString) , '.'; |
|
3923 |
nextPutLine:' Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
3924 |
nextPutLine:' Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
3925 |
nextPutLine:' ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.'; |
|
3926 |
nextPutLine:' ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.'; |
|
3927 |
nextPutLine:' ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'; |
|
3928 |
nextPutLine:' ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'; |
|
3929 |
nextPutLine:'].'; |
|
2001 | 3930 |
|
3931 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
3932 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
3933 |
||
3934 |
HistoryManager notNil ifTrue:[ |
|
2201 | 3935 |
HistoryManager isActive ifTrue:[ |
3936 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
3937 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
3938 |
] ifFalse:[ |
|
3939 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
3940 |
]. |
|
2001 | 3941 |
]. |
3942 |
||
3943 |
ObjectFileLoader notNil ifTrue:[ |
|
2201 | 3944 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
3945 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
|
2001 | 3946 |
]. |
3947 |
||
3948 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
3949 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
3950 |
||
3951 |
s cr. |
|
3952 |
s nextPutLine:'"/'. |
|
3953 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
3954 |
s nextPutLine:'"/'. |
|
3955 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
3956 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
3957 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
3958 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
3959 |
||
3960 |
||
3961 |
s cr. |
|
3962 |
s nextPutLine:'"/'. |
|
3963 |
s nextPutLine:'"/ Edit settings:'. |
|
3964 |
s nextPutLine:'"/'. |
|
3965 |
s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
3966 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
|
2395 | 3967 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (currentUserPrefs syntaxColoring storeString) , '.'. |
3032 | 3968 |
(ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[ |
3969 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'. |
|
3970 |
] ifFalse:[ |
|
3971 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'. |
|
3972 |
]. |
|
2719 | 3973 |
|
3974 |
s nextPutLine:'"/'. |
|
3975 |
s nextPutLine:'"/ User preference values:'. |
|
3976 |
s nextPutLine:'"/'. |
|
2395 | 3977 |
currentUserPrefs keysAndValuesDo:[:k :v | |
3587
0364cb87b84c
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
3576
diff
changeset
|
3978 |
(UserPreferences includesSelector:(k , ':') asSymbol) ifTrue:[ |
2719 | 3979 |
s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'. |
3980 |
] ifFalse:[ |
|
3981 |
s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'. |
|
3982 |
] |
|
2201 | 3983 |
]. |
2001 | 3984 |
|
3985 |
s cr. |
|
3986 |
s nextPutLine:'"/'. |
|
3987 |
s nextPutLine:'"/ Misc settings:'. |
|
3988 |
s nextPutLine:'"/'. |
|
3989 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
3990 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
3991 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
3992 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
3993 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
3994 |
||
3995 |
"/ claus - I dont think its a good idea to save those ... |
|
3996 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
3997 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
3998 |
||
3999 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
4000 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
2456
8434c67045db
settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents:
2435
diff
changeset
|
4001 |
nextPutLine:'Display notNil ifTrue:['; |
2457 | 4002 |
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
|
4003 |
nextPutLine:'].'; |
2001 | 4004 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
4005 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
2017 | 4006 |
(Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[ |
2201 | 4007 |
s nextPutLine:'Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'. |
2001 | 4008 |
]. |
4009 |
Processor isTimeSlicing ifTrue:[ |
|
2201 | 4010 |
s nextPutLine:'Processor startTimeSlicing.'. |
4011 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
|
2001 | 4012 |
] ifFalse:[ |
2201 | 4013 |
s nextPutLine:'Processor stopTimeSlicing.'. |
2001 | 4014 |
]. |
4015 |
||
4016 |
s cr. |
|
4017 |
s nextPutLine:'"/'. |
|
4018 |
s nextPutLine:'"/ Printer settings:'. |
|
4019 |
s nextPutLine:'"/'. |
|
4020 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
4021 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
4022 |
||
4023 |
Printer supportsPageSizes ifTrue:[ |
|
2201 | 4024 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
4025 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
2001 | 4026 |
]. |
4027 |
Printer supportsMargins ifTrue:[ |
|
2201 | 4028 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
4029 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
4030 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
4031 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
2001 | 4032 |
]. |
4033 |
Printer supportsPostscript ifTrue:[ |
|
2201 | 4034 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
2001 | 4035 |
]. |
4036 |
||
4037 |
s cr. |
|
4038 |
s nextPutLine:'"/'. |
|
4039 |
s nextPutLine:'"/ Font settings:'. |
|
2785 | 4040 |
s nextPutLine:'"/ (only restored, if image is restarted on the same display)'. |
2001 | 4041 |
s nextPutLine:'"/'. |
2456
8434c67045db
settings code must check for nil Display
Claus Gittinger <cg@exept.de>
parents:
2435
diff
changeset
|
4042 |
s nextPutLine:'Display notNil ifTrue:['. |
2457 | 4043 |
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
|
4044 |
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
|
4045 |
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
|
4046 |
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
|
4047 |
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
|
4048 |
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
|
4049 |
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
|
4050 |
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
|
4051 |
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
|
4052 |
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
|
4053 |
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
|
4054 |
s nextPutLine:' ].'. |
2269
822bf9616e8d
only restore font settings if on the same display
Claus Gittinger <cg@exept.de>
parents:
2259
diff
changeset
|
4055 |
s nextPutLine:'].'. |
2001 | 4056 |
|
4057 |
s cr. |
|
4058 |
s nextPutLine:'"/'. |
|
4059 |
s nextPutLine:'"/ Language setting:'. |
|
4060 |
s nextPutLine:'"/'. |
|
4061 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
4062 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
2785 | 4063 |
|
4064 |
s cr. |
|
4065 |
s nextPutLine:'"/'. |
|
4066 |
s nextPutLine:'"/ SourceCodeManager settings:'. |
|
4067 |
s nextPutLine:'"/ (only restored, if image is restarted on the same host)'. |
|
4068 |
s nextPutLine:'"/'. |
|
4069 |
s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['. |
|
4070 |
s nextPutLine:' Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'. |
|
2786 | 4071 |
(Smalltalk at:#SourceCodeManager) == CVSSourceCodeManager ifTrue:[ |
2788 | 4072 |
s nextPutLine:' Smalltalk at:#SourceCodeManager put: CVSSourceCodeManager.'. |
2786 | 4073 |
s nextPutLine:' AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'. |
3475 | 4074 |
s nextPutLine:' CVSSourceCodeManager cvsBinDirectory:' , CVSSourceCodeManager cvsBinDirectory storeString , '.'. |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4075 |
s nextPutLine:' CVSSourceCodeManager repositoryNamesPerModule:' , CVSSourceCodeManager repositoryNamesPerModule storeString , '.'. |
2786 | 4076 |
s nextPutLine:' CVSSourceCodeManager initializeForRepository:' , CVSSourceCodeManager repositoryName storeString , '.'. |
4077 |
]. |
|
2785 | 4078 |
s nextPutLine:'].'. |
4079 |
||
2001 | 4080 |
s close. |
4081 |
||
4082 |
" |
|
4083 |
Transcript topView application saveSettings |
|
4084 |
" |
|
4085 |
||
2838 | 4086 |
"Modified: / 6.1.1999 / 14:24:16 / cg" |
4087 |
! |
|
2001 | 4088 |
|
4089 |
sourceAndDebuggerSettingsFor:requestor |
|
4090 |
"open a dialog on source&debugger other settings" |
|
4091 |
||
4092 |
|box check butt setupButt logDoits updChanges changeFileName |
|
4093 |
useManager hasManager cvsIsSetup |
|
4094 |
repository repositoryHolder localSourceFirst |
|
4095 |
sourceCacheDir cacheEntry |
|
4096 |
component localCheck oldIndent nm fn manager |
|
4097 |
showErrorNotifier showVerboseStack |
|
2596 | 4098 |
syntaxColoring fullSelectorCheck autoFormat |
3603
7d3120035246
allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents:
3601
diff
changeset
|
4099 |
resources pos currentUserPrefs checkClassesWhenCheckingIn checkClassesBox| |
2001 | 4100 |
|
4101 |
currentUserPrefs := UserPreferences current. |
|
4102 |
||
4103 |
resources := requestor class classResources. |
|
4104 |
||
4105 |
"/ |
|
4106 |
"/ extract relevant system settings ... |
|
4107 |
"/ |
|
4108 |
logDoits := Smalltalk logDoits asValue. |
|
4109 |
updChanges := Class updatingChanges asValue. |
|
4110 |
changeFileName := ObjectMemory nameForChanges asValue. |
|
4111 |
||
4112 |
(AbstractSourceCodeManager notNil |
|
4113 |
and:[AbstractSourceCodeManager isLoaded not]) ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4114 |
AbstractSourceCodeManager autoload. |
2001 | 4115 |
]. |
4116 |
||
4117 |
hasManager := AbstractSourceCodeManager notNil |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4118 |
and:[AbstractSourceCodeManager isLoaded]. |
2001 | 4119 |
|
4120 |
repositoryHolder := '' asValue. |
|
4121 |
hasManager ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4122 |
useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4123 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4124 |
manager notNil ifTrue:[ |
2861
1f6dafaaeb90
remember unaccessable repository modules and disable access.
Claus Gittinger <cg@exept.de>
parents:
2854
diff
changeset
|
4125 |
manager forgetDisabledModules. |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4126 |
repository := manager repositoryName. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4127 |
repository notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4128 |
repositoryHolder := repository asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4129 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4130 |
repositoryHolder := '' asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4131 |
]. |
2976
f0578ab14d13
allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents:
2960
diff
changeset
|
4132 |
]. |
f0578ab14d13
allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents:
2960
diff
changeset
|
4133 |
cvsIsSetup := true. |
2001 | 4134 |
] ifFalse:[ |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4135 |
useManager := false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4136 |
localSourceFirst := false. |
2976
f0578ab14d13
allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents:
2960
diff
changeset
|
4137 |
cvsIsSetup := false. |
2001 | 4138 |
]. |
2976
f0578ab14d13
allow CVS-setup even if CVSRoot is not set initially
Claus Gittinger <cg@exept.de>
parents:
2960
diff
changeset
|
4139 |
cvsIsSetup := cvsIsSetup asValue. |
2037
7f824ca6e61b
removed ref to (old) Launcher class
Claus Gittinger <cg@exept.de>
parents:
2034
diff
changeset
|
4140 |
showErrorNotifier := (Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) asValue. |
2001 | 4141 |
showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue. |
4142 |
syntaxColoring := currentUserPrefs syntaxColoring asValue. |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4143 |
fullSelectorCheck := currentUserPrefs fullSelectorCheck asValue. |
2596 | 4144 |
autoFormat := currentUserPrefs autoFormatting asValue. |
2001 | 4145 |
|
4146 |
sourceCacheDir := nil asValue. |
|
3603
7d3120035246
allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents:
3601
diff
changeset
|
4147 |
checkClassesWhenCheckingIn := (currentUserPrefs at:#checkClassesWhenCheckingIn ifAbsent:true) asValue. |
2001 | 4148 |
|
4149 |
"/ |
|
4150 |
"/ create a box on those values ... |
|
4151 |
"/ |
|
4152 |
box := DialogBox new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4153 |
box label:(resources string:'Source & Debugger Settings'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4154 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4155 |
box addCheckBox:(resources string:'Log compiles in Changefile') on:updChanges. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4156 |
box addCheckBox:(resources string:'Log doIts in Changefile') on:logDoits. |
2001 | 4157 |
|
4158 |
component := box |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4159 |
addLabelledInputField:(resources string:'Changefile Name:') |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4160 |
adjust:#right |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4161 |
on:changeFileName |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4162 |
tabable:true |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4163 |
separateAtX:0.4. |
2001 | 4164 |
component immediateAccept:true; acceptOnLeave:false. |
4165 |
||
4166 |
"/ y := box yPosition. |
|
4167 |
"/ component := box addTextLabel:(resources string:'change file name:'). |
|
4168 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
|
4169 |
"/ box yPosition:y. |
|
4170 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
|
4171 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false. |
|
4172 |
||
4173 |
box addHorizontalLine. |
|
4174 |
||
4175 |
hasManager ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4176 |
pos := box yPosition. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4177 |
check := box addCheckBox:(resources string:'Sourcecode Management') on:useManager. |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4178 |
check enableChannel:cvsIsSetup. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4179 |
box makeTabable:check. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4180 |
|
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4181 |
CVSSourceCodeManager notNil ifTrue:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4182 |
check width:0.6. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4183 |
box yPosition:pos. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4184 |
setupButt := box addComponent:(Button label:(resources string:'Setup...') |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4185 |
action:[|manager| |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4186 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4187 |
self cvsConfigurationDialogFor:requestor. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4188 |
manager := (Smalltalk at:#SourceCodeManager). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4189 |
cvsIsSetup value:manager notNil. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4190 |
manager notNil ifTrue:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4191 |
repositoryHolder value: manager repositoryName. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4192 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4193 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4194 |
]). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4195 |
setupButt enableChannel:useManager. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4196 |
box makeTabable:setupButt. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4197 |
setupButt left:0.6; width:0.4. |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4198 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4199 |
oldIndent := box leftIndent. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4200 |
box leftIndent:30. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4201 |
|
2905 | 4202 |
box addVerticalSpace:10. |
4203 |
"/ component := box |
|
4204 |
"/ addLabelledInputField:(resources string:'CVS repository:') |
|
4205 |
"/ adjust:#right |
|
4206 |
"/ on:repositoryHolder |
|
4207 |
"/ tabable:true |
|
4208 |
"/ separateAtX:0.5. |
|
4209 |
"/ component immediateAccept:true; acceptOnLeave:false. |
|
4210 |
"/ component enableChannel:useManager. |
|
4211 |
"/ component readOnly:true. |
|
4212 |
"/ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4213 |
cacheEntry := box |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4214 |
addLabelledInputField:(resources string:'Source Cache Dir:') |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4215 |
adjust:#right |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4216 |
on:sourceCacheDir |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4217 |
tabable:true |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
4218 |
separateAtX:0.5. |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4219 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4220 |
cacheEntry enableChannel:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4221 |
|
2737
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4222 |
pos := box yPosition. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4223 |
butt := Button label:(resources string:'Flush Cache now'). |
2737
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4224 |
butt action:[ box withWaitCursorDo:[ AbstractSourceCodeManager flushSourceCache ] ]. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4225 |
box addComponent:butt tabable:true. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4226 |
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
|
4227 |
butt enableChannel:useManager. |
2737
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4228 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4229 |
butt := Button label:(resources string:'Condense Cache now'). |
2737
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4230 |
butt action:[ box withWaitCursorDo:[ AbstractSourceCodeManager condenseSourceCache ] ]. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4231 |
box addComponent:butt tabable:true. |
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4232 |
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
|
4233 |
butt enableChannel:useManager. |
2737
8158d426cfa6
added flush & condense sourceCache
Claus Gittinger <cg@exept.de>
parents:
2719
diff
changeset
|
4234 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4235 |
localCheck := box addCheckBox:(resources string:'If Present, Use Local Source (Suppress Checkout)') on:localSourceFirst. |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4236 |
localCheck enableChannel:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4237 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4238 |
checkClassesBox := box addCheckBox:(resources string:'Check for alt/error-Messages when Checking in') on:checkClassesWhenCheckingIn. |
3603
7d3120035246
allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents:
3601
diff
changeset
|
4239 |
checkClassesBox enableChannel:useManager. |
7d3120035246
allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents:
3601
diff
changeset
|
4240 |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4241 |
box leftIndent:oldIndent. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4242 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4243 |
(AbstractSourceCodeManager isNil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4244 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4245 |
useManager value:false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4246 |
"/ cacheEntry disable. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4247 |
"/ localCheck enable. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4248 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4249 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4250 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4251 |
box addHorizontalLine. |
2001 | 4252 |
]. |
4253 |
||
4254 |
pos := box yPosition. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4255 |
check := box addCheckBox:(resources string:'Syntax Coloring') on:syntaxColoring. |
2001 | 4256 |
check width:0.6. |
4257 |
box yPosition:pos. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4258 |
butt := box addComponent:(Button label:(resources string:'Configure...') action:[self syntaxColorConfigurationDialogFor:requestor]). |
2001 | 4259 |
box makeTabable:butt. |
4260 |
butt enableChannel:syntaxColoring. |
|
4261 |
butt left:0.6; width:0.4. |
|
4262 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4263 |
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
|
4264 |
check enableChannel:syntaxColoring. |
2596 | 4265 |
|
4266 |
pos := box yPosition. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4267 |
check := box addCheckBox:(resources string:'Auto Format') on:autoFormat. |
2596 | 4268 |
check width:0.6. |
4269 |
box yPosition:pos. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4270 |
butt := box addComponent:(Button label:(resources string:'Configure...') action:[self formattingConfigurationDialogFor:requestor]). |
2596 | 4271 |
box makeTabable:butt. |
4272 |
butt left:0.6; width:0.4. |
|
4273 |
||
2001 | 4274 |
box addHorizontalLine. |
4275 |
||
4276 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4277 |
box addCheckBox:(resources string:'Show Error Notifier before Opening Debugger') on:showErrorNotifier. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4278 |
box addCheckBox:(resources string:'Verbose Backtrace by Default in Debugger') on:showVerboseStack. |
2001 | 4279 |
|
2807 | 4280 |
box addHorizontalLine. |
2001 | 4281 |
box |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4282 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4283 |
addAbortAndOkButtons. |
2001 | 4284 |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4285 |
box maxExtent:1000@600. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4286 |
|
2001 | 4287 |
"/ |
4288 |
"/ show the box ... |
|
4289 |
"/ |
|
4290 |
box open. |
|
4291 |
||
4292 |
"/ |
|
4293 |
"/ update system settings |
|
4294 |
"/ |
|
4295 |
box accepted ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4296 |
Smalltalk logDoits:logDoits value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4297 |
Class updateChanges:updChanges value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4298 |
ObjectMemory nameForChanges:changeFileName value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4299 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4300 |
(hasManager and:[useManager value]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4301 |
manager isNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4302 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4303 |
manager := Smalltalk at:#SourceCodeManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4304 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4305 |
Class tryLocalSourceFirst:(localSourceFirst value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4306 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4307 |
manager notNil ifTrue:[ |
3078 | 4308 |
"/ localSourceFirst value ifFalse:[ |
4309 |
||
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4310 |
nm := sourceCacheDir value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4311 |
nm size > 0 ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4312 |
(fn := nm asFilename) exists ifFalse:[ |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
4313 |
(self confirm:('CVS cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[ |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4314 |
fn makeDirectory; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4315 |
makeReadableForAll; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4316 |
makeWritableForAll; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4317 |
makeExecutableForAll. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4318 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4319 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4320 |
(fn exists |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4321 |
and:[fn isDirectory |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4322 |
and:[fn isReadable |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4323 |
and:[fn isWritable]]]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4324 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
3078 | 4325 |
] ifFalse:[ |
4326 |
self warn:'Invalid sourceCache directory.' |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4327 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4328 |
] |
3078 | 4329 |
"/ ] |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4330 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4331 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4332 |
repositoryHolder notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4333 |
repositoryHolder value size > 0 ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4334 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4335 |
manager initializeForRepository:repositoryHolder value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4336 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4337 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4338 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4339 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4340 |
Smalltalk at:#SourceCodeManager put:nil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4341 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4342 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4343 |
showErrorNotifier value ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4344 |
Exception emergencyHandler:nil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4345 |
] ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4346 |
Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler) |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4347 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4348 |
DebugView defaultVerboseBacktrace:(showVerboseStack value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4349 |
currentUserPrefs syntaxColoring:syntaxColoring value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4350 |
currentUserPrefs at:#fullSelectorCheck put:fullSelectorCheck value. |
2596 | 4351 |
currentUserPrefs autoFormatting:autoFormat value. |
3603
7d3120035246
allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents:
3601
diff
changeset
|
4352 |
|
7d3120035246
allow check for halt/error to be turned off via userPrefs
Claus Gittinger <cg@exept.de>
parents:
3601
diff
changeset
|
4353 |
UserPreferences current at:#checkClassesWhenCheckingIn put:checkClassesWhenCheckingIn value. |
2001 | 4354 |
]. |
4355 |
box destroy |
|
4356 |
||
4357 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
4358 |
"Created: / 17.1.1997 / 17:39:33 / cg" |
|
4359 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
|
4360 |
"Modified: / 13.10.1998 / 15:47:31 / cg" |
|
4361 |
! |
|
4362 |
||
4363 |
stcCompilerSettingsFor:requestor |
|
4364 |
"open an extra dialog on stc-compiler related settings" |
|
4365 |
||
4366 |
|box |
|
2018 | 4367 |
stcIncludes stcDefines stcOptions |
2001 | 4368 |
stcLibraries stcLibraryPath cc stc ccOptions |
4369 |
linkCommand linkArgs |
|
2019 | 4370 |
component t |
4371 |
canLoadBinaries thisIsADemoVersion |
|
2001 | 4372 |
resources| |
4373 |
||
4374 |
resources := requestor class classResources. |
|
4375 |
||
4376 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
4377 |
||
4378 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
|
4379 |
stcDefines := Compiler stcCompilationDefines asValue. |
|
4380 |
stcOptions := Compiler stcCompilationOptions asValue. |
|
4381 |
ccOptions := Compiler ccCompilationOptions asValue. |
|
4382 |
||
4383 |
cc := Compiler ccPath asValue. |
|
4384 |
stc := Compiler stcPath asValue. |
|
4385 |
linkCommand := ObjectFileLoader linkCommand asValue. |
|
4386 |
linkArgs := ObjectFileLoader linkArgs asValue. |
|
4387 |
||
4388 |
ObjectFileLoader notNil ifTrue:[ |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4389 |
(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[ |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4390 |
stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4391 |
]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4392 |
(t := ObjectFileLoader libPath) notNil ifTrue:[ |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4393 |
stcLibraryPath := t asValue. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4394 |
] |
2001 | 4395 |
]. |
4396 |
||
4397 |
box := DialogBox new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4398 |
box label:(resources string:'STC Compilation Settings'). |
2001 | 4399 |
|
4400 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
|
4401 |
ObjectFileLoader notNil ifTrue:[ |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4402 |
thisIsADemoVersion ifFalse:[ |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4403 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4404 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4405 |
addLabelledInputField:(resources string:'stc Command:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4406 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4407 |
on:stc |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4408 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4409 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4410 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4411 |
component preferredExtent:(100 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4412 |
canLoadBinaries ifFalse:[component disable]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4413 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4414 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4415 |
addLabelledInputField:(resources string:'stc Options:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4416 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4417 |
on:stcOptions |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4418 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4419 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4420 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4421 |
component preferredExtent:(250 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4422 |
canLoadBinaries ifFalse:[component disable]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4423 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4424 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4425 |
addLabelledInputField:(resources string:'cc Command:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4426 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4427 |
on:cc |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4428 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4429 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4430 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4431 |
component preferredExtent:(150 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4432 |
canLoadBinaries ifFalse:[component disable]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4433 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4434 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4435 |
addLabelledInputField:(resources string:'cc Options:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4436 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4437 |
on:ccOptions |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4438 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4439 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4440 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4441 |
component preferredExtent:(250 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4442 |
canLoadBinaries ifFalse:[component disable]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4443 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4444 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4445 |
addLabelledInputField:(resources string:'Include Directories:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4446 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4447 |
on:stcIncludes |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4448 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4449 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4450 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4451 |
component preferredExtent:(250 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4452 |
canLoadBinaries ifFalse:[component disable]. |
2001 | 4453 |
|
4454 |
"/ box addVerticalSpace. |
|
4455 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4456 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4457 |
addLabelledInputField:(resources string:'Defines:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4458 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4459 |
on:stcDefines |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4460 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4461 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4462 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4463 |
component preferredExtent:(250 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4464 |
canLoadBinaries ifFalse:[component disable]. |
2001 | 4465 |
|
4466 |
"/ box addVerticalSpace. |
|
4467 |
||
4468 |
"/ box addVerticalSpace. |
|
4469 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4470 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4471 |
addLabelledInputField:(resources string:'Link Command:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4472 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4473 |
on:linkCommand |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4474 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4475 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4476 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4477 |
component preferredExtent:(250 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4478 |
canLoadBinaries ifFalse:[component disable]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4479 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4480 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4481 |
addLabelledInputField:(resources string:'Link Args:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4482 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4483 |
on:linkArgs |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4484 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4485 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4486 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4487 |
component preferredExtent:(250 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4488 |
canLoadBinaries ifFalse:[component disable]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4489 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4490 |
stcLibraries notNil ifTrue:[ |
2001 | 4491 |
"/ box addVerticalSpace. |
4492 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4493 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4494 |
addLabelledInputField:(resources string:'C-libraries:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4495 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4496 |
on:stcLibraries |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4497 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4498 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4499 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4500 |
component preferredExtent:(250 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4501 |
canLoadBinaries ifFalse:[component disable]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4502 |
]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4503 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4504 |
stcLibraryPath notNil ifTrue:[ |
2001 | 4505 |
"/ box addVerticalSpace. |
4506 |
||
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4507 |
component := box |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4508 |
addLabelledInputField:(resources string:'stc LibPath:') |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4509 |
adjust:#right |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4510 |
on:stcLibraryPath |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4511 |
tabable:true |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4512 |
separateAtX:0.3. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4513 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4514 |
component preferredExtent:(250 @ component preferredExtent y). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4515 |
canLoadBinaries ifFalse:[component disable]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4516 |
]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4517 |
]. |
2001 | 4518 |
]. |
4519 |
||
4520 |
box |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4521 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4522 |
addAbortAndOkButtons. |
2001 | 4523 |
|
4524 |
box open. |
|
4525 |
||
4526 |
box accepted ifTrue:[ |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4527 |
thisIsADemoVersion ifFalse:[ |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4528 |
Compiler stcCompilationIncludes:stcIncludes value. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4529 |
Compiler stcCompilationDefines:stcDefines value. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4530 |
Compiler stcCompilationOptions:stcOptions value. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4531 |
Compiler ccCompilationOptions:ccOptions value. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4532 |
Compiler ccPath:cc value. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4533 |
stc value ~= Compiler stcPath ifTrue:[ |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4534 |
Compiler stcPath:stc value |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4535 |
]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4536 |
ObjectFileLoader linkCommand:linkCommand value. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4537 |
ObjectFileLoader linkArgs:linkArgs value. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4538 |
]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4539 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4540 |
ObjectFileLoader notNil ifTrue:[ |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4541 |
stcLibraries notNil ifTrue:[ |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4542 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4543 |
]. |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4544 |
stcLibraryPath notNil ifTrue:[ |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4545 |
ObjectFileLoader libPath:(stcLibraryPath value). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4546 |
] |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4547 |
]. |
2001 | 4548 |
]. |
4549 |
box destroy |
|
4550 |
||
4551 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
|
4552 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
|
4553 |
"Created: / 2.10.1998 / 16:27:49 / cg" |
|
4554 |
"Modified: / 21.10.1998 / 19:15:10 / cg" |
|
4555 |
! |
|
4556 |
||
4557 |
toolSettingsFor:requestor |
|
4558 |
"open a dialog on tool settings" |
|
4559 |
||
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4560 |
|box resources currentUserPrefs in acceptChannel |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
4561 |
useNewInspector useNewChangesBrowser useNewSystemBrowser useNewVersionDiffBrowser |
2703 | 4562 |
showClockInLauncher showClock launcher transcriptBufferSize useNew| |
2001 | 4563 |
|
4564 |
currentUserPrefs := UserPreferences current. |
|
4565 |
||
4566 |
resources := requestor class classResources. |
|
4567 |
||
4568 |
"/ |
|
4569 |
"/ extract relevant system settings ... |
|
4570 |
"/ |
|
4571 |
useNewInspector := currentUserPrefs useNewInspector asValue. |
|
4572 |
useNewChangesBrowser := currentUserPrefs useNewChangesBrowser asValue. |
|
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
4573 |
useNewSystemBrowser := currentUserPrefs useNewSystemBrowser asValue. |
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4574 |
showClockInLauncher := currentUserPrefs showClockInLauncher asValue. |
2395 | 4575 |
useNewVersionDiffBrowser := currentUserPrefs useNewVersionDiffBrowser asValue. |
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4576 |
transcriptBufferSize := Transcript current lineLimit printString asValue. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4577 |
|
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4578 |
acceptChannel := false asValue. |
2001 | 4579 |
|
4580 |
"/ |
|
4581 |
"/ create a box on those values ... |
|
4582 |
"/ |
|
4583 |
box := DialogBox new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4584 |
box label:(resources string:'Tool Settings'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4585 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4586 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4587 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4588 |
box addCheckBox:(resources string:'Use the New Changes Browser') on:useNewChangesBrowser. |
2001 | 4589 |
box addHorizontalLine. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4590 |
box addCheckBox:(resources string:'Use the New System Browser') on:useNewSystemBrowser. |
2696
bc8ab69f2a56
allow browserClass to be set in preferences
Claus Gittinger <cg@exept.de>
parents:
2689
diff
changeset
|
4591 |
box addHorizontalLine. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4592 |
box addCheckBox:(resources string:'Use the New VersionDiff Browser') on:useNewVersionDiffBrowser. |
2239 | 4593 |
box addHorizontalLine. |
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4594 |
box addCheckBox:(resources string:'Use Hierarchical Inspector') on:useNewInspector. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4595 |
box addHorizontalLine. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4596 |
box addCheckBox:(resources string:'Show Clock in Launcher') on:showClockInLauncher. |
2807 | 4597 |
box addHorizontalLine. |
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4598 |
in := box |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4599 |
addLabelledInputField:(resources string:'Transcripts Buffer Size:') |
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4600 |
adjust:#right |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4601 |
on:transcriptBufferSize |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4602 |
tabable:true |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4603 |
separateAtX:0.6. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4604 |
in acceptChannel:acceptChannel. |
2807 | 4605 |
box addHorizontalLine. |
2001 | 4606 |
|
4607 |
box |
|
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4608 |
addHelpButtonFor:'Launcher/toolSettings.html'; |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4609 |
addAbortAndOkButtons. |
2001 | 4610 |
|
4611 |
"/ |
|
4612 |
"/ show the box ... |
|
4613 |
"/ |
|
4614 |
box open. |
|
4615 |
||
4616 |
"/ |
|
4617 |
"/ update system settings |
|
4618 |
"/ |
|
4619 |
box accepted ifTrue:[ |
|
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4620 |
acceptChannel value:false; value:true. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4621 |
|
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4622 |
currentUserPrefs useNewInspector:useNewInspector value. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4623 |
currentUserPrefs useNewChangesBrowser:useNewChangesBrowser value. |
2703 | 4624 |
currentUserPrefs useNewSystemBrowser:(useNew := useNewSystemBrowser value). |
2239 | 4625 |
currentUserPrefs useNewVersionDiffBrowser:useNewVersionDiffBrowser value. |
2227
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4626 |
|
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4627 |
showClock := showClockInLauncher value. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4628 |
currentUserPrefs showClockInLauncher ~= showClock ifTrue:[ |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4629 |
currentUserPrefs showClockInLauncher:showClock. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4630 |
launcher := Transcript application. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4631 |
(launcher isKindOf:ToolApplicationModel) ifTrue:[ |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4632 |
showClock ifTrue:[ |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4633 |
launcher startClock |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4634 |
] ifFalse:[ |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4635 |
launcher stopClock |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4636 |
] |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4637 |
] |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4638 |
]. |
d81cbdaa0599
#showClockInLauncher setting in tools-dialog
Claus Gittinger <cg@exept.de>
parents:
2218
diff
changeset
|
4639 |
|
3401 | 4640 |
Inspector := currentUserPrefs inspectorClassSetting. |
2553
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4641 |
|
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4642 |
transcriptBufferSize := Integer readFrom:transcriptBufferSize value onError:Transcript current lineLimit. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4643 |
Transcript current lineLimit:transcriptBufferSize. |
915720ed9166
Transcript lineLimit setting
Claus Gittinger <cg@exept.de>
parents:
2531
diff
changeset
|
4644 |
|
2001 | 4645 |
]. |
4646 |
box destroy |
|
4647 |
||
4648 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
4649 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
|
4650 |
"Created: / 13.10.1998 / 15:44:36 / cg" |
|
3401 | 4651 |
"Modified: / 12.11.2001 / 15:48:54 / cg" |
2001 | 4652 |
! |
4653 |
||
4654 |
viewStyleSettingsFor:requestor |
|
4655 |
"open a dialog on viewStyle related settings" |
|
4656 |
||
2019 | 4657 |
|resourceDir dir box |
2001 | 4658 |
list listView scrView infoLabel infoForwarder newStyle |
2019 | 4659 |
someRsrcFile didApply resources listUpdater showStandardStylesOnly standardStyles| |
2001 | 4660 |
|
4661 |
showStandardStylesOnly := true asValue. |
|
2110
ed1910b1dd06
added decWindows to the standard styles
Claus Gittinger <cg@exept.de>
parents:
2097
diff
changeset
|
4662 |
standardStyles := #( |
2462 | 4663 |
'decWindows' |
4664 |
'iris' |
|
4665 |
'motif' |
|
4666 |
'mswindows95' |
|
4667 |
'next' |
|
4668 |
'normal' |
|
4669 |
'os2' |
|
4670 |
'st80' |
|
4671 |
). |
|
2001 | 4672 |
|
4673 |
resources := requestor class classResources. |
|
4674 |
||
4675 |
" |
|
4676 |
search resources directory for a list of .style files ... |
|
4677 |
" |
|
4678 |
someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style'). |
|
2462 | 4679 |
someRsrcFile isNil ifTrue:[ |
4680 |
someRsrcFile := Smalltalk getResourceFileName:'normal.style' forPackage:'stx:libview'. |
|
2528 | 4681 |
someRsrcFile isNil ifTrue:[ |
4682 |
someRsrcFile := Smalltalk getResourceFileName:'styles/normal.style' forPackage:'stx:libview'. |
|
4683 |
]. |
|
2462 | 4684 |
]. |
2001 | 4685 |
someRsrcFile notNil ifTrue:[ |
2462 | 4686 |
resourceDir := someRsrcFile asFilename directoryName |
2001 | 4687 |
] ifFalse:[ |
2462 | 4688 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
2001 | 4689 |
]. |
4690 |
||
4691 |
resourceDir isNil ifTrue:[ |
|
2621 | 4692 |
requestor warn:'no styles found (missing ''resources'' directory)'. |
2462 | 4693 |
^ self |
2001 | 4694 |
]. |
4695 |
dir := resourceDir asFilename directoryContents. |
|
4696 |
||
4697 |
list := SelectionInList new. |
|
4698 |
||
4699 |
listUpdater := [ |
|
2462 | 4700 |
|listOfStyles lastSelection| |
4701 |
||
4702 |
lastSelection := list selection. |
|
4703 |
listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style']. |
|
4704 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name]. |
|
4705 |
Filename isCaseSensitive ifFalse:[ |
|
4706 |
listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase]. |
|
4707 |
]. |
|
4708 |
listOfStyles remove:'generic' ifAbsent:nil; remove:'mswindows3' ifAbsent:nil. |
|
4709 |
showStandardStylesOnly value ifTrue:[ |
|
4710 |
listOfStyles := listOfStyles select:[:aStyleName | standardStyles includes:aStyleName]. |
|
4711 |
]. |
|
4712 |
||
4713 |
listOfStyles sort. |
|
4714 |
list list:listOfStyles. |
|
4715 |
list selection:lastSelection. |
|
2001 | 4716 |
]. |
4717 |
listUpdater value. |
|
4718 |
||
2584 | 4719 |
showStandardStylesOnly onChangeEvaluate:listUpdater. |
2001 | 4720 |
|
4721 |
infoForwarder := [ |
|
2462 | 4722 |
|nm sheet comment| |
4723 |
||
4724 |
comment := ''. |
|
4725 |
nm := list selection. |
|
4726 |
nm notNil ifTrue:[ |
|
4727 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
4728 |
comment := (sheet at:#comment ifAbsent:'') withoutSeparators. |
|
4729 |
]. |
|
4730 |
comment := comment withCRs asStringCollection. |
|
4731 |
comment size == 1 ifTrue:[ |
|
4732 |
comment := comment first |
|
4733 |
]. |
|
4734 |
infoLabel label:comment |
|
4735 |
]. |
|
2001 | 4736 |
|
2584 | 4737 |
list onChangeEvaluate:infoForwarder. |
2001 | 4738 |
|
4739 |
box := Dialog new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4740 |
box label:(resources string:'Style Selection'). |
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4741 |
|
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
4742 |
(box addTextLabel:(resources at:'STYLE_MSG' default:'Select a Style') withCRs) adjust:#left. |
2001 | 4743 |
listView := SelectionInListView on:list. |
2798 | 4744 |
listView doubleClickAction:[:sel | box acceptChannel value:true. box hide]. |
2001 | 4745 |
box addCheckBox:(resources string:'standard styles only') on:showStandardStylesOnly. |
4746 |
scrView := box addComponent:(ScrollableView forView:listView) tabable:true. |
|
4747 |
||
4748 |
box addVerticalSpace. |
|
4749 |
||
4750 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
|
4751 |
||
2048 | 4752 |
box addAbortAndOkButtons. |
2001 | 4753 |
"/ mhmh - the newLauncher does not yet handle apply (without close) correctly |
4754 |
"/ b := box addButton:(Button label:(resources string:'apply')). |
|
4755 |
"/ b action:[didApply := true. requestor changeViewStyleTo:(list selection)]. |
|
4756 |
||
4757 |
(standardStyles includes:View defaultStyle) ifFalse:[ |
|
2462 | 4758 |
showStandardStylesOnly value:false |
2001 | 4759 |
]. |
4760 |
list selection:(View defaultStyle). |
|
4761 |
||
4762 |
box stickAtBottomWithVariableHeight:scrView. |
|
4763 |
box stickAtBottomWithFixHeight:infoLabel. |
|
2019 | 4764 |
didApply := false. |
2001 | 4765 |
box open. |
4766 |
||
4767 |
box destroy. |
|
4768 |
box accepted ifTrue:[ |
|
2462 | 4769 |
((newStyle := list selection) ~= View defaultStyle |
4770 |
or:[didApply ~~ true]) ifTrue:[ |
|
4771 |
requestor changeViewStyleTo:newStyle. |
|
4772 |
]. |
|
2001 | 4773 |
]. |
4774 |
||
4775 |
" |
|
4776 |
self viewStyleSettingsFor:nil |
|
4777 |
" |
|
4778 |
||
4779 |
"Modified: / 14.9.1998 / 20:33:59 / cg" |
|
4780 |
! ! |
|
4781 |
||
4782 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs - file'! |
|
4783 |
||
4784 |
objectModuleDialogFor:requestor |
|
4785 |
"opens a moduleInfo dialog" |
|
4786 |
||
4787 |
<resource: #programMenu > |
|
4788 |
||
4789 |
|allModules moduleNames |
|
4790 |
allObjects methodObjects methodNames |
|
4791 |
cObjects cObjectNames |
|
4792 |
otherObjects otherObjectNames |
|
4793 |
box l handles unloadButton unloadAndRemoveButton |
|
4794 |
list1 list2 listView1 listView2 |
|
4795 |
y panel |
|
4796 |
showBuiltIn showModules showMethods showCObjects showOthers |
|
4797 |
moduleListUpdater check canDoIt menu |
|
4798 |
resources middleLabel| |
|
4799 |
||
4800 |
resources := requestor class classResources. |
|
4801 |
||
4802 |
showBuiltIn := true asValue. |
|
4803 |
canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
4804 |
||
4805 |
showModules := canDoIt asValue. |
|
4806 |
showMethods := canDoIt asValue. |
|
4807 |
showCObjects := canDoIt asValue. |
|
4808 |
showOthers := canDoIt asValue. |
|
4809 |
||
4810 |
list1 := SelectionInList new. |
|
4811 |
list2 := SelectionInList new. |
|
4812 |
||
4813 |
moduleListUpdater := [ |
|
2584 | 4814 |
|l| |
4815 |
||
4816 |
list2 list:nil. |
|
4817 |
||
4818 |
l := Array new. |
|
4819 |
handles := Array new. |
|
4820 |
||
4821 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
4822 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
4823 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
4824 |
allModules := allModules select:[:i | |
|
4825 |
|wantToSee| |
|
4826 |
||
4827 |
wantToSee := i dynamic. |
|
4828 |
showBuiltIn value ifTrue:[ |
|
4829 |
wantToSee := wantToSee not |
|
4830 |
]. |
|
4831 |
wantToSee |
|
4832 |
] |
|
4833 |
]. |
|
4834 |
||
4835 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
|
4836 |
allModules sort:[:a :b | (a id) > (b id)]. |
|
4837 |
moduleNames := allModules collect:[:entry | entry name]. |
|
4838 |
l := l , moduleNames. |
|
4839 |
handles := handles , allModules. |
|
4840 |
]. |
|
4841 |
||
4842 |
showMethods value ifTrue:[ |
|
4843 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
4844 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
4845 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
4846 |
'compiled method - removed' " , ' (in ' , mH pathName , ')' " |
|
4847 |
] ifFalse:[ |
|
4848 |
'compiled method ' , mH method whoString " , ' (in ' , mH pathName , ')' " |
|
4849 |
]. |
|
4850 |
]. |
|
4851 |
l := l , methodNames. |
|
4852 |
handles := handles , methodObjects. |
|
4853 |
]. |
|
4854 |
||
4855 |
showCObjects value ifTrue:[ |
|
4856 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
4857 |
cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray. |
|
4858 |
cObjectNames := cObjects collect:[:entry | entry pathName]. |
|
4859 |
l := l , cObjectNames. |
|
4860 |
handles := handles , cObjects. |
|
4861 |
]. |
|
4862 |
||
4863 |
showOthers value ifTrue:[ |
|
4864 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
4865 |
otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle |
|
4866 |
or:[h isMethodHandle |
|
4867 |
or:[h isClassLibHandle]]) not]) asArray. |
|
4868 |
otherObjectNames := otherObjects collect:[:entry | entry pathName]. |
|
4869 |
l := l , otherObjectNames. |
|
4870 |
handles := handles , otherObjects. |
|
4871 |
]. |
|
4872 |
||
4873 |
showBuiltIn value ifTrue:[ |
|
4874 |
l := #('VM') , l. |
|
4875 |
handles := #(VM) , handles. |
|
4876 |
allModules := #(VM) , allModules. |
|
4877 |
]. |
|
4878 |
||
4879 |
list1 list:l. |
|
4880 |
unloadButton disable. |
|
4881 |
unloadAndRemoveButton disable. |
|
4882 |
]. |
|
4883 |
||
4884 |
showBuiltIn onChangeEvaluate:moduleListUpdater. |
|
4885 |
showModules onChangeEvaluate:moduleListUpdater. |
|
4886 |
showMethods onChangeEvaluate:moduleListUpdater. |
|
4887 |
showCObjects onChangeEvaluate:moduleListUpdater. |
|
4888 |
showOthers onChangeEvaluate:moduleListUpdater. |
|
2001 | 4889 |
|
4890 |
box := Dialog new. |
|
4891 |
box label:(resources string:'ST/X & Module Version information'). |
|
4892 |
||
4893 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
4894 |
listView1 model:list1. |
|
4895 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
4896 |
listView1 action:[:sel | |
|
2584 | 4897 |
|info classNames tabs module| |
4898 |
||
4899 |
listView1 middleButtonMenu:nil. |
|
4900 |
||
4901 |
box withWaitCursorDo:[ |
|
4902 |
|nm fileName addr entry1 entry2 entry3 method l| |
|
4903 |
||
4904 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6 3.5). |
|
4905 |
||
4906 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
4907 |
info := allModules at:sel ifAbsent:nil. |
|
4908 |
]. |
|
4909 |
info isNil ifTrue:[ |
|
4910 |
"/ selected a method, cObject or unknown |
|
4911 |
||
4912 |
module := handles at:sel. |
|
4913 |
fileName := module pathName. |
|
4914 |
||
4915 |
module isMethodHandle ifTrue:[ |
|
4916 |
middleLabel label:'contains method:'. |
|
4917 |
||
4918 |
(method := module method) isNil ifTrue:[ |
|
4919 |
nm := '** removed **'. |
|
4920 |
] ifFalse:[ |
|
4921 |
menu := PopUpMenu |
|
4922 |
labels:#('inspect' 'browse') |
|
4923 |
selectors:#(inspect browse). |
|
4924 |
menu actionAt:#inspect put:[ method inspect ]. |
|
4925 |
menu actionAt:#browse put:[ |who| |
|
4926 |
who := method who. |
|
3140 | 4927 |
UserPreferences systemBrowserClass |
2584 | 4928 |
openInClass:(who methodClass) |
4929 |
selector:(who methodSelector) |
|
4930 |
]. |
|
4931 |
listView1 middleButtonMenu:menu. |
|
4932 |
||
4933 |
nm := (method whoString) asText emphasizeAllWith:(#color->Color blue). |
|
4934 |
]. |
|
4935 |
entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4936 |
entry1 colAt:1 put:'compiled method'; colAt:2 put:nm. |
|
4937 |
||
4938 |
entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4939 |
entry2 colAt:1 put:'path'; colAt:2 put:fileName. |
|
4940 |
||
4941 |
entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4942 |
entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code address hexPrintString leftPaddedTo:8 with:$0)). |
|
4943 |
||
4944 |
list2 list:(Array with:entry1 with:entry2 with:entry3). |
|
4945 |
] ifFalse:[ |
|
4946 |
(module isFunctionObjectHandle |
|
4947 |
and:[module functions notEmpty]) ifTrue:[ |
|
4948 |
middleLabel label:'contains function:'. |
|
4949 |
||
4950 |
menu := PopUpMenu |
|
4951 |
labels:#('inspect') |
|
4952 |
selectors:#(inspect). |
|
4953 |
menu actionAt:#inspect put:[ module functions inspect ]. |
|
4954 |
listView1 middleButtonMenu:menu. |
|
4955 |
||
4956 |
list2 list:((module functions select:[:f | f notNil]) |
|
4957 |
collect:[:f | |entry| |
|
4958 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4959 |
entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)). |
|
4960 |
entry colAt:2 put:('address: (16r) ' , (f code address hexPrintString leftPaddedTo:8 with:$0)). |
|
4961 |
entry |
|
4962 |
]). |
|
4963 |
] ifFalse:[ |
|
4964 |
list2 list:#('nothing known about contents (no functions have been extracted)'). |
|
4965 |
] |
|
4966 |
]. |
|
4967 |
||
4968 |
unloadButton enable. |
|
4969 |
unloadAndRemoveButton disable. |
|
4970 |
] ifFalse:[ |
|
4971 |
info == #VM ifTrue:[ |
|
4972 |
"/ dummy entry for VM; |
|
4973 |
"/ show file versions in lower view. |
|
4974 |
||
4975 |
middleLabel label:'contains modules:'. |
|
4976 |
l := (ObjectMemory getVMIdentificationStrings). |
|
4977 |
l := l select:[:entry | entry includesString:'$Header']. |
|
4978 |
l := l select:[:entry | entry includesString:',v']. |
|
4979 |
l := l collect:[:entry | |
|
4980 |
|i1 i2 file revision date listEntry| |
|
4981 |
||
4982 |
listEntry := MultiColListEntry new:3 tabulatorSpecification:tabs. |
|
4983 |
||
4984 |
i1 := entry indexOfSubCollection:'librun'. |
|
4985 |
i1 ~~ 0 ifTrue:[ |
|
4986 |
i2 := entry indexOfSubCollection:',v' startingAt:i1. |
|
4987 |
i2 ~~ 0 ifTrue:[ |
|
4988 |
file := entry copyFrom:i1+7 to:(i2-1). |
|
4989 |
listEntry colAt:1 put:file. |
|
4990 |
||
4991 |
i1 := i2+3. |
|
4992 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
4993 |
revision := entry copyFrom:i1 to:(i2-1). |
|
4994 |
listEntry colAt:2 put:revision. |
|
4995 |
||
4996 |
i1 := i2+1. |
|
4997 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
4998 |
date := entry copyFrom:i1 to:(i2-1). |
|
4999 |
listEntry colAt:3 put:date. |
|
5000 |
]. |
|
5001 |
]. |
|
5002 |
listEntry. |
|
5003 |
"/ entry |
|
5004 |
]. |
|
5005 |
list2 list:l. |
|
2001 | 5006 |
|
2584 | 5007 |
unloadButton disable. |
5008 |
unloadAndRemoveButton disable. |
|
5009 |
] ifFalse:[ |
|
5010 |
"/ selected a package |
|
5011 |
||
5012 |
"/ fill bottom list with class-info |
|
5013 |
||
5014 |
middleLabel label:'contains classes:'. |
|
5015 |
classNames := info classNames asSortedCollection. |
|
5016 |
classNames := classNames select:[:cName | |
|
5017 |
|cls| |
|
5018 |
||
5019 |
cls := Smalltalk classNamed:cName. |
|
5020 |
cls isNil ifTrue:[ |
|
5021 |
true "a removed class" |
|
5022 |
] ifFalse:[ |
|
5023 |
cls isPrivate not |
|
5024 |
]. |
|
5025 |
]. |
|
5026 |
||
5027 |
classNames := classNames collect:[:cName | |
|
5028 |
|cls entry rev listEntry| |
|
5029 |
||
5030 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
5031 |
listEntry colAt:1 put:cName. |
|
5032 |
||
5033 |
cls := Smalltalk classNamed:cName. |
|
5034 |
cls isNil ifTrue:[ |
|
5035 |
listEntry colAt:2 put:'(class removed)'. |
|
5036 |
] ifFalse:[ |
|
5037 |
rev := cls binaryRevision. |
|
5038 |
rev notNil ifTrue:[ |
|
5039 |
cls isLoaded ifFalse:[ |
|
5040 |
entry := '(stub for: ' , rev. |
|
5041 |
] ifTrue:[ |
|
5042 |
entry :='(bin: ' , rev. |
|
5043 |
]. |
|
5044 |
cls revision ~= rev ifTrue:[ |
|
5045 |
entry := entry , ' / src: ' , (cls revision printString) |
|
5046 |
]. |
|
5047 |
listEntry colAt:2 put:entry , ')' |
|
5048 |
] ifFalse:[ |
|
5049 |
cls revision notNil ifTrue:[ |
|
5050 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
|
5051 |
] |
|
5052 |
] |
|
5053 |
]. |
|
5054 |
listEntry |
|
5055 |
]. |
|
5056 |
list2 list:classNames. |
|
5057 |
info dynamic ifTrue:[ |
|
5058 |
unloadButton enable. |
|
5059 |
unloadAndRemoveButton enable. |
|
5060 |
] ifFalse:[ |
|
5061 |
unloadButton disable. |
|
5062 |
unloadAndRemoveButton disable. |
|
5063 |
]. |
|
5064 |
]. |
|
5065 |
] |
|
5066 |
] |
|
2001 | 5067 |
]. |
5068 |
||
5069 |
||
5070 |
panel := HorizontalPanelView new. |
|
5071 |
||
5072 |
panel add:(l := Label label:'show:'). |
|
5073 |
l adjust:#left; borderWidth:0. |
|
5074 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
|
5075 |
box makeTabable:check. |
|
5076 |
panel add:(check := CheckBox label:'classLibs' model:showModules). |
|
5077 |
canDoIt ifFalse:[ |
|
2584 | 5078 |
check disable |
2001 | 5079 |
] ifTrue:[ |
2584 | 5080 |
box makeTabable:check. |
2001 | 5081 |
]. |
5082 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
|
5083 |
canDoIt ifFalse:[ |
|
2584 | 5084 |
check disable |
2001 | 5085 |
] ifTrue:[ |
2584 | 5086 |
box makeTabable:check. |
2001 | 5087 |
]. |
5088 |
panel add:(check := CheckBox label:'c-objects' model:showCObjects). |
|
5089 |
canDoIt ifFalse:[ |
|
2584 | 5090 |
check disable |
2001 | 5091 |
] ifTrue:[ |
2584 | 5092 |
box makeTabable:check. |
2001 | 5093 |
]. |
5094 |
panel add:(check := CheckBox label:'others' model:showOthers). |
|
5095 |
canDoIt ifFalse:[ |
|
2584 | 5096 |
check disable |
2001 | 5097 |
] ifTrue:[ |
2584 | 5098 |
box makeTabable:check. |
2001 | 5099 |
]. |
5100 |
||
5101 |
panel horizontalLayout:#fitSpace. |
|
5102 |
"/ panel horizontalLayout:#leftSpace. |
|
5103 |
||
5104 |
box addComponent:panel tabable:false. |
|
5105 |
||
5106 |
box addVerticalSpace. |
|
5107 |
box addComponent:listView1 tabable:true. |
|
5108 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
|
5109 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
5110 |
||
5111 |
l := box addTextLabel:(resources string:'contains:'). |
|
5112 |
l adjust:#left; borderWidth:0. |
|
5113 |
l origin:0.0@0.4 corner:1.0@0.4. |
|
5114 |
l topInset:(View viewSpacing). |
|
5115 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
|
5116 |
middleLabel := l. |
|
5117 |
||
5118 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
5119 |
listView2 model:list2; printItems:false. |
|
5120 |
box addComponent:listView2 tabable:true. |
|
5121 |
listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2. |
|
5122 |
listView2 disable. |
|
5123 |
||
5124 |
unloadButton := Button label:(resources string:'unload'). |
|
5125 |
unloadButton action:[ |
|
2584 | 5126 |
box withWaitCursorDo:[ |
5127 |
|info idx pathName| |
|
5128 |
||
5129 |
idx := list1 selectionIndex. |
|
5130 |
info := allModules at:idx ifAbsent:nil. |
|
5131 |
||
5132 |
list1 selectionIndex:nil. |
|
5133 |
||
5134 |
info isNil ifTrue:[ |
|
5135 |
"/ selected a method |
|
5136 |
"/ idx := idx - allModules size. |
|
5137 |
pathName := (handles at:idx) pathName. |
|
5138 |
||
5139 |
] ifFalse:[ |
|
5140 |
"/ selected a package |
|
5141 |
pathName := info pathName. |
|
5142 |
]. |
|
5143 |
ObjectFileLoader unloadObjectFile:pathName. |
|
5144 |
moduleListUpdater value. |
|
5145 |
unloadButton disable. |
|
5146 |
] |
|
2001 | 5147 |
]. |
5148 |
||
5149 |
unloadAndRemoveButton := Button label:(resources string:'remove classes & unload'). |
|
5150 |
unloadAndRemoveButton action:[ |
|
2584 | 5151 |
box withWaitCursorDo:[ |
5152 |
|info idx pathName| |
|
5153 |
||
5154 |
idx := list1 selectionIndex. |
|
5155 |
info := allModules at:idx ifAbsent:nil. |
|
5156 |
||
5157 |
list1 selectionIndex:nil. |
|
5158 |
||
5159 |
info isNil ifTrue:[ |
|
5160 |
"/ selected a method |
|
5161 |
"/ idx := idx - allModules size. |
|
5162 |
pathName := (handles at:idx) pathName. |
|
5163 |
||
5164 |
] ifFalse:[ |
|
5165 |
"/ selected a package |
|
5166 |
pathName := info pathName. |
|
5167 |
]. |
|
5168 |
ObjectFileLoader unloadObjectFileAndRemoveClasses:pathName. |
|
5169 |
moduleListUpdater value. |
|
5170 |
unloadAndRemoveButton disable. |
|
5171 |
] |
|
2001 | 5172 |
]. |
5173 |
||
5174 |
moduleListUpdater value. |
|
5175 |
||
5176 |
box addButton:unloadButton. |
|
5177 |
box addButton:unloadAndRemoveButton. |
|
5178 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
|
5179 |
||
5180 |
y := box yPosition. |
|
5181 |
listView2 topInset:(l preferredExtent y + 5). |
|
5182 |
listView2 bottomInset:(box preferredExtent y - y). |
|
5183 |
||
5184 |
box width:(400 min:(box device width * 2 // 3)); |
|
2584 | 5185 |
height:(450 min:(box device height - 50)). |
2001 | 5186 |
|
5187 |
"/ box sizeFixed:true. |
|
5188 |
box openWithExtent:(600 min:(box device width * 2 // 3)) |
|
2584 | 5189 |
@ |
5190 |
(500 min:(box device height - 50)) . |
|
2001 | 5191 |
|
5192 |
box destroy. |
|
5193 |
||
5194 |
"Modified: / 17.9.1995 / 16:47:50 / claus" |
|
5195 |
"Created: / 31.7.1998 / 15:49:45 / cg" |
|
5196 |
"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
|
5197 |
! |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5198 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5199 |
packageDialogFor:requestor |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5200 |
"opens a package dialog" |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5201 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5202 |
|allPackages packageList packageUpdater |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5203 |
box l listView tabs |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5204 |
y menu resources selectedPackage| |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5205 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5206 |
resources := requestor class classResources. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5207 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5208 |
box := Dialog new. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5209 |
box label:(resources string:'Packages'). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5210 |
|
2493 | 5211 |
allPackages := Set new. |
2490
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5212 |
allPackages addAll:(Smalltalk knownPackages). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5213 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5214 |
Project knownProjects do:[:package | |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5215 |
allPackages add:(package name) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5216 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5217 |
Project loadedProjects do:[:package | |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5218 |
allPackages add:(package name) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5219 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5220 |
allPackages := allPackages asOrderedCollection sort. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5221 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5222 |
packageUpdater := [ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5223 |
tabs := TabulatorSpecification unit:#inch positions:#(0 4). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5224 |
packageList := allPackages collect:[:pName | |pkg entry| |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5225 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5226 |
pkg := Project projectWithId:pName asSymbol. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5227 |
(pkg notNil and:[pkg isLoaded]) ifTrue:[ |
2866 | 5228 |
entry colAt:1 put:pName allBold. |
2490
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5229 |
entry colAt:2 put:'loaded'. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5230 |
] ifFalse:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5231 |
entry colAt:1 put:pName. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5232 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5233 |
(Smalltalk allClasses |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5234 |
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
|
5235 |
ifTrue:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5236 |
(Smalltalk allClasses |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5237 |
contains:[:cls | cls package = pName and:[cls isLoaded]]) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5238 |
ifTrue:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5239 |
entry colAt:2 put:'loaded/autoloaded'. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5240 |
] ifFalse:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5241 |
entry colAt:2 put:'autoloaded'. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5242 |
] |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5243 |
] |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5244 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5245 |
entry |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5246 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5247 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5248 |
packageUpdater value. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5249 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5250 |
listView := HVScrollableView for:SelectionInListView miniScrollerH:true. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5251 |
listView list:packageList. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5252 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5253 |
box addComponent:listView tabable:true. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5254 |
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
|
5255 |
listView bottomInset:40. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5256 |
listView action:[:selIndex | |pkg| |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5257 |
selectedPackage := (allPackages at:selIndex) asSymbol. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5258 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5259 |
pkg := Project projectWithId:selectedPackage. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5260 |
(pkg notNil and:[pkg isLoaded]) ifTrue:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5261 |
menu disable:#load. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5262 |
"/ menu enable:#unload. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5263 |
] ifFalse:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5264 |
"/ menu disable:#unload. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5265 |
menu enable:#load. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5266 |
] |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5267 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5268 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5269 |
menu := PopUpMenu |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5270 |
itemList:#( |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5271 |
('load...' load ) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5272 |
"/ ('-' nil ) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5273 |
"/ ('unload...' unload) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5274 |
) |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5275 |
resources:resources. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5276 |
listView middleButtonMenu:menu. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5277 |
menu actionAt:#load put:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5278 |
box withWaitCursorDo:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5279 |
Smalltalk loadPackage:selectedPackage. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5280 |
packageUpdater value. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5281 |
] |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5282 |
]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5283 |
"/ menu actionAt:#unload put:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5284 |
"/ box withWaitCursorDo:[ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5285 |
"/ Smalltalk unloadPackage:selectedPackage. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5286 |
"/ packageUpdater value. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5287 |
"/ ]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5288 |
"/ ]. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5289 |
menu disable:#load. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5290 |
"/ menu disable:#unload. |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5291 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5292 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5293 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5294 |
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
|
5295 |
height:(450 min:(box device height - 50)). |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5296 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5297 |
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
|
5298 |
@ |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5299 |
(500 min:(box device height - 50)) . |
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5300 |
|
924e607d11d8
first version of a package dialog
Claus Gittinger <cg@exept.de>
parents:
2462
diff
changeset
|
5301 |
box destroy. |
2001 | 5302 |
! ! |
5303 |
||
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5304 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs - private'! |
2001 | 5305 |
|
5306 |
cvsConfigurationDialogFor:requestor |
|
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5307 |
|cvsRootHolder resources defaultsList bindings dialog |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5308 |
listOfModules selectedPerModuleRoot rootsPerModule acceptChannel |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
5309 |
removeEnabled cvsBinDirectoryHolder| |
2001 | 5310 |
|
5311 |
resources := requestor class classResources. |
|
5312 |
||
5313 |
OperatingSystem isUNIXlike ifTrue:[ |
|
3475 | 5314 |
defaultsList := #( |
5315 |
'/files/CVS' |
|
5316 |
'/CVS' |
|
5317 |
'host:/files/CVS' |
|
5318 |
'host:/CVS' |
|
5319 |
':pserver:user@host:/files/CVS' |
|
5320 |
). |
|
2001 | 5321 |
] ifFalse:[ |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5322 |
OperatingSystem isMSDOSlike ifTrue:[ |
3475 | 5323 |
defaultsList := #( |
5324 |
':local:c:\files\CVS' |
|
5325 |
':local:c:\CVS' |
|
5326 |
'host:/files/CVS' |
|
5327 |
'host:/CVS' |
|
5328 |
':pserver:user@host:/files/CVS' |
|
5329 |
). |
|
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5330 |
] ifFalse:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5331 |
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
|
5332 |
] |
2001 | 5333 |
]. |
5334 |
||
5335 |
cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'. |
|
5336 |
cvsRootHolder := cvsRootHolder asValue. |
|
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5337 |
rootsPerModule := Dictionary new declareAllFrom:(CVSSourceCodeManager repositoryNamesPerModule). |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
5338 |
cvsBinDirectoryHolder := CVSSourceCodeManager cvsBinDirectory asValue. |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5339 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5340 |
bindings := IdentityDictionary new. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5341 |
bindings at:#acceptChannel put:(acceptChannel := TriggerValue new). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5342 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5343 |
bindings at:#cvsRootPrototypeList put:defaultsList. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5344 |
bindings at:#cvsRootHolder put:cvsRootHolder. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5345 |
bindings at:#perModuleRootModule put:nil asValue. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5346 |
bindings at:#perModuleRoot put:nil asValue. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5347 |
bindings at:#removeEnabled put:(removeEnabled := false asValue). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5348 |
bindings at:#listOfModules put:(listOfModules := rootsPerModule keys asList). |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
5349 |
bindings at:#cvsBinDirectoryHolder put:cvsBinDirectoryHolder. |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5350 |
listOfModules sort. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5351 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5352 |
bindings at:#selectedPerModuleRoot put:(selectedPerModuleRoot := nil asValue). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5353 |
selectedPerModuleRoot |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5354 |
onChangeEvaluate:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5355 |
|module cvsRoot| |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5356 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5357 |
acceptChannel value:true. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5358 |
module := selectedPerModuleRoot value. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5359 |
removeEnabled value:true. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5360 |
cvsRoot := rootsPerModule at:module ifAbsent:''. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5361 |
(bindings at:#perModuleRootModule) value:module. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5362 |
(bindings at:#perModuleRoot) value:cvsRoot. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5363 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5364 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5365 |
bindings at:#help put:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5366 |
requestor withWaitCursorDo:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5367 |
HTMLDocumentView openFullOnHelpFile:'Launcher/cvsSetup.html' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5368 |
] |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5369 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5370 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5371 |
bindings at:#addPerModuleRoot put:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5372 |
|module cvsRoot| |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5373 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5374 |
acceptChannel value:true. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5375 |
module := (bindings at:#perModuleRootModule) value. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5376 |
cvsRoot := (bindings at:#perModuleRoot) value. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5377 |
(listOfModules includes:module) ifFalse:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5378 |
listOfModules add:module. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5379 |
listOfModules sort. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5380 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5381 |
cvsRoot size > 0 ifTrue:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5382 |
rootsPerModule at:module put:cvsRoot. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5383 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5384 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5385 |
bindings at:#removePerModuleRoot put:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5386 |
|module| |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5387 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5388 |
acceptChannel value:true. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5389 |
module := (bindings at:#perModuleRootModule) value. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5390 |
listOfModules remove:module ifAbsent:nil. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5391 |
rootsPerModule removeKey:module ifAbsent:nil. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5392 |
(bindings at:#perModuleRootModule) value:nil. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5393 |
(bindings at:#perModuleRoot) value:nil. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5394 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5395 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5396 |
dialog := SimpleDialog new. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5397 |
dialog resources:resources. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5398 |
(dialog openSpec:(self cvsSetupSpec) withBindings:bindings) ifFalse:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5399 |
^ self |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5400 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5401 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5402 |
acceptChannel value. |
2001 | 5403 |
|
5404 |
"/ |
|
5405 |
"/ update system settings |
|
5406 |
"/ |
|
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
5407 |
CVSSourceCodeManager cvsBinDirectory:cvsBinDirectoryHolder value. |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5408 |
CVSSourceCodeManager initializeForRepository:cvsRootHolder value. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5409 |
CVSSourceCodeManager repositoryNamesPerModule:rootsPerModule. |
2001 | 5410 |
! |
5411 |
||
5412 |
fontBoxForEncoding:encodingMatch for:requestor |
|
5413 |
"open a fontBox, showing fonts which match some encoding |
|
5414 |
(used when changing to japanese ...)" |
|
5415 |
||
5416 |
|box y b |
|
5417 |
labelDef buttonDef listDef menuDef textDef |
|
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5418 |
models labels allOfThem filter resources defaultButton| |
2001 | 5419 |
|
5420 |
resources := requestor class classResources. |
|
5421 |
||
5422 |
encodingMatch notNil ifTrue:[ |
|
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5423 |
filter := [:f | f encoding notNil |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5424 |
and:[encodingMatch match:f encoding]]. |
2001 | 5425 |
]. |
5426 |
||
5427 |
models := OrderedCollection new. |
|
5428 |
labels := OrderedCollection new. |
|
5429 |
||
5430 |
models add:(allOfThem := nil asValue). |
|
5431 |
models add:(labelDef := Label defaultFont asValue). |
|
5432 |
models add:(buttonDef := Button defaultFont asValue). |
|
5433 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
5434 |
models add:(menuDef := MenuView defaultFont asValue). |
|
5435 |
models add:(textDef := TextView defaultFont asValue). |
|
5436 |
||
5437 |
box := Dialog new. |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
5438 |
box label:(resources string:'Font Settings'). |
2001 | 5439 |
|
5440 |
models |
|
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
5441 |
with:(resources array:#('All' 'Labels' 'Buttons' 'Lists' 'Menus' 'Edited Text')) |
2001 | 5442 |
do:[:model :title | |
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5443 |
|y2 lbl f i| |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5444 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5445 |
f := model value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5446 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5447 |
(box addTextLabel:title) adjust:#left. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5448 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5449 |
y := box yPosition. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
5450 |
b := box addComponent:(Button label:(resources string:'Change ...')) tabable:true. |
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5451 |
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
|
5452 |
y2 := box yPosition. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5453 |
box yPosition:y. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5454 |
i := box leftIndent. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5455 |
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
|
5456 |
(lbl := box addTextLabel:'') |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5457 |
adjust:#left; |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5458 |
font:(model value); |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5459 |
labelChannel:(BlockValue |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5460 |
with:[:v | |f| |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5461 |
f := v value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5462 |
f isNil ifTrue:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5463 |
'' |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5464 |
] ifFalse:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5465 |
f userFriendlyName |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5466 |
] |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5467 |
] |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5468 |
argument:model). |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5469 |
labels add:lbl. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5470 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5471 |
box leftIndent:i. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5472 |
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
|
5473 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5474 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5475 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5476 |
b action:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5477 |
|f| |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5478 |
|
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5479 |
f := FontPanel |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5480 |
fontFromUserInitial:(model value) |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
5481 |
title:(resources string:'Font for %1' with:title) |
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5482 |
filter:filter. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5483 |
f notNil ifTrue:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5484 |
model == allOfThem ifTrue:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5485 |
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
|
5486 |
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
|
5487 |
] ifFalse:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5488 |
model value:f. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5489 |
lbl font:f. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5490 |
]. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5491 |
] |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5492 |
]. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5493 |
model == allOfThem ifTrue:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5494 |
box addVerticalSpace |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5495 |
] |
2001 | 5496 |
]. |
5497 |
||
2048 | 5498 |
box addAbortAndOkButtons. |
3690
828698baf5ac
menu texts: standard headline case
Claus Gittinger <cg@exept.de>
parents:
3664
diff
changeset
|
5499 |
defaultButton := Button label:(resources string:'Defaults'). |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5500 |
|
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5501 |
(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
|
5502 |
box addButton:defaultButton after:nil. |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5503 |
] ifFalse:[ |
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5504 |
box addButton:defaultButton before:nil. |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5505 |
]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
5506 |
defaultButton |
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5507 |
action:[ |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5508 |
"/ fetch defaults |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5509 |
View readStyleSheetAndUpdateAllStyleCaches. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5510 |
labelDef value: Label defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5511 |
buttonDef value: Button defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5512 |
listDef value: SelectionInListView defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5513 |
menuDef value: MenuView defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5514 |
textDef value: TextView defaultFont. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5515 |
]. |
2001 | 5516 |
|
5517 |
box open. |
|
5518 |
box accepted ifTrue:[ |
|
2209
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5519 |
Label defaultFont:labelDef value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5520 |
Button defaultFont:buttonDef value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5521 |
Toggle defaultFont:buttonDef value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5522 |
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
|
5523 |
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
|
5524 |
MenuView defaultFont:menuDef value. |
753b5db1eea5
font change - also tell subclasses of Text- and SelListView
Claus Gittinger <cg@exept.de>
parents:
2207
diff
changeset
|
5525 |
PullDownMenu defaultFont:menuDef value. |
2001 | 5526 |
]. |
5527 |
box destroy. |
|
5528 |
^ box accepted |
|
5529 |
||
5530 |
"Created: / 27.2.1996 / 01:44:16 / cg" |
|
5531 |
"Modified: / 17.6.1996 / 13:38:48 / stefan" |
|
5532 |
"Modified: / 15.9.1998 / 22:04:51 / cg" |
|
5533 |
! |
|
5534 |
||
2596 | 5535 |
formattingConfigurationDialogFor:requestor |
5536 |
|dialog frame exampleView y |
|
5537 |
resources exampleText formattedText reformatAction |
|
2608 | 5538 |
reformatLocked |
2596 | 5539 |
oldUserPreferences |
5540 |
b resetList components |
|
5541 |
resetListBox currentUserPrefs |
|
5542 |
tabIndent |
|
5543 |
spaceAroundTemporaries emptyLineAfterTemporaries |
|
2608 | 5544 |
spaceAfterReturnToken spaceAfterKeywordSelector cStyleBlocks |
5545 |
blockArgumentsOnNewLine |
|
2596 | 5546 |
maxLengthForSingleLineBlocks resetValue bindings| |
5547 |
||
2833 | 5548 |
RBFormatter isNil ifTrue:[ |
5549 |
^ requestor warn:'Sorry, no RBFormatter class'. |
|
2596 | 5550 |
]. |
5551 |
||
2833 | 5552 |
RBFormatter isLoaded ifFalse:[ |
2596 | 5553 |
requestor withWaitCursorDo:[ |
2833 | 5554 |
RBFormatter autoload |
2596 | 5555 |
] |
5556 |
]. |
|
5557 |
||
5558 |
resources := requestor class classResources. |
|
5559 |
currentUserPrefs := UserPreferences current. |
|
5560 |
||
5561 |
exampleText := |
|
5562 |
'methodSelector:methodArg |
|
5563 |
"method comment: |
|
5564 |
some stupid code to show the current settings" |
|
5565 |
||
5566 |
|index| |
|
5567 |
||
5568 |
"/ another comment ... |
|
5569 |
self at:index. "/ a message |
|
5570 |
self at:index put:methodArg. "/ a two arg message |
|
5571 |
self from:1 to:index put:methodArg. "/ a three arg message |
|
5572 |
methodArg ifTrue:[ |
|
5573 |
Transcript showCR:''hello''. "/ condition |
|
5574 |
]. |
|
5575 |
methodArg ifTrue:[ |
|
5576 |
Transcript showCR:''hello''. "/ condition |
|
5577 |
] ifFalse:[ |
|
5578 |
Transcript showCR:''world''. |
|
5579 |
]. |
|
5580 |
[methodArg] whileTrue:[ |
|
5581 |
Transcript showCR:''hello''. "/ looping |
|
5582 |
]. |
|
5583 |
[self aVeryLongConditionBlock and:[self toMakeBlockLonger]] whileTrue:[ |
|
5584 |
Transcript showCR:''hello''. "/ long blocks |
|
5585 |
]. |
|
5586 |
methodArg do:[:element | |
|
5587 |
Transcript showCR:''hello''. "/ looping |
|
5588 |
]. |
|
5589 |
1 to:methodArg size do:[:index | |
|
5590 |
Transcript showCR:''hello''. "/ looping |
|
5591 |
]. |
|
5592 |
methodArg keysAndValuesDo:[:index | |
|
5593 |
Transcript showCR:''hello''. "/ looping |
|
5594 |
]. |
|
5595 |
Object errorSignal handle:[:ex | |
|
5596 |
ex return |
|
5597 |
] do:[ "/ exception handling |
|
5598 |
self someAction "/ blocks |
|
5599 |
]. |
|
5600 |
^ self. |
|
5601 |
'. |
|
5602 |
||
5603 |
formattedText := '' asValue. |
|
2608 | 5604 |
reformatLocked := false. |
2596 | 5605 |
|
5606 |
reformatAction := [ |tree |
|
5607 |
s_tabIndent s_spaceAroundTemporaries s_emptyLineAfterTemporaries |
|
5608 |
s_spaceAfterReturnToken s_spaceAfterKeywordSelector s_cStyleBlocks |
|
2608 | 5609 |
s_maxLengthForSingleLineBlocks s_blockArgumentsOnNewLine| |
5610 |
||
5611 |
reformatLocked ifFalse:[ |
|
5612 |
"/ |
|
2833 | 5613 |
"/ temporary change the RBFormatters settings ... |
2608 | 5614 |
"/ |
2833 | 5615 |
s_tabIndent := RBFormatter tabIndent. |
5616 |
s_spaceAroundTemporaries := RBFormatter spaceAroundTemporaries. |
|
5617 |
s_emptyLineAfterTemporaries := RBFormatter emptyLineAfterTemporaries. |
|
5618 |
s_spaceAfterReturnToken := RBFormatter spaceAfterReturnToken. |
|
5619 |
s_spaceAfterKeywordSelector := RBFormatter spaceAfterKeywordSelector. |
|
5620 |
s_cStyleBlocks := RBFormatter cStyleBlocks. |
|
5621 |
s_blockArgumentsOnNewLine := RBFormatter blockArgumentsOnNewLine. |
|
5622 |
s_maxLengthForSingleLineBlocks := RBFormatter maxLengthForSingleLineBlocks. |
|
5623 |
||
5624 |
RBFormatter |
|
2608 | 5625 |
tabIndent:tabIndent value; |
5626 |
spaceAroundTemporaries:spaceAroundTemporaries value; |
|
5627 |
emptyLineAfterTemporaries:emptyLineAfterTemporaries value; |
|
5628 |
spaceAfterReturnToken:spaceAfterReturnToken value; |
|
5629 |
spaceAfterKeywordSelector:spaceAfterKeywordSelector value; |
|
5630 |
cStyleBlocks:cStyleBlocks value; |
|
5631 |
blockArgumentsOnNewLine:blockArgumentsOnNewLine value; |
|
5632 |
maxLengthForSingleLineBlocks:maxLengthForSingleLineBlocks value. |
|
5633 |
||
2833 | 5634 |
tree := RBParser |
2608 | 5635 |
parseMethod:exampleText |
5636 |
onError: [:aString :position | nil]. |
|
3324 | 5637 |
tree do:[:node | |
5638 |
node ~~ tree ifTrue:[ |
|
5639 |
node parent haltIfNil |
|
5640 |
] |
|
5641 |
]. |
|
2608 | 5642 |
formattedText value:tree printString. |
5643 |
||
2833 | 5644 |
RBFormatter |
2608 | 5645 |
tabIndent:s_tabIndent; |
5646 |
spaceAroundTemporaries:s_spaceAroundTemporaries; |
|
5647 |
emptyLineAfterTemporaries:s_emptyLineAfterTemporaries; |
|
5648 |
spaceAfterReturnToken:s_spaceAfterReturnToken; |
|
5649 |
spaceAfterKeywordSelector:s_spaceAfterKeywordSelector; |
|
5650 |
cStyleBlocks:s_cStyleBlocks; |
|
5651 |
blockArgumentsOnNewLine:s_blockArgumentsOnNewLine; |
|
5652 |
maxLengthForSingleLineBlocks:s_maxLengthForSingleLineBlocks. |
|
5653 |
]. |
|
2596 | 5654 |
]. |
5655 |
||
5656 |
bindings := IdentityDictionary new. |
|
5657 |
bindings at:#formattedText put:formattedText. |
|
5658 |
||
5659 |
oldUserPreferences := currentUserPrefs copy. |
|
5660 |
||
2833 | 5661 |
tabIndent := RBFormatter tabIndent asValue. |
2596 | 5662 |
tabIndent onChangeEvaluate:reformatAction. |
5663 |
bindings at:#tabIndent put:tabIndent. |
|
5664 |
||
2833 | 5665 |
spaceAroundTemporaries := RBFormatter spaceAroundTemporaries asValue. |
2596 | 5666 |
spaceAroundTemporaries onChangeEvaluate:reformatAction. |
5667 |
bindings at:#spaceAroundTemporaries put:spaceAroundTemporaries. |
|
5668 |
||
2833 | 5669 |
emptyLineAfterTemporaries := RBFormatter emptyLineAfterTemporaries asValue. |
2596 | 5670 |
emptyLineAfterTemporaries onChangeEvaluate:reformatAction. |
5671 |
bindings at:#emptyLineAfterTemporaries put:emptyLineAfterTemporaries. |
|
5672 |
||
2833 | 5673 |
spaceAfterReturnToken := RBFormatter spaceAfterReturnToken asValue. |
2596 | 5674 |
spaceAfterReturnToken onChangeEvaluate:reformatAction. |
5675 |
bindings at:#spaceAfterReturnToken put:spaceAfterReturnToken. |
|
5676 |
||
2833 | 5677 |
spaceAfterKeywordSelector := RBFormatter spaceAfterKeywordSelector asValue. |
2596 | 5678 |
spaceAfterKeywordSelector onChangeEvaluate:reformatAction. |
5679 |
bindings at:#spaceAfterKeywordSelector put:spaceAfterKeywordSelector. |
|
5680 |
||
2833 | 5681 |
cStyleBlocks := RBFormatter cStyleBlocks asValue. |
2596 | 5682 |
cStyleBlocks onChangeEvaluate:reformatAction. |
5683 |
bindings at:#cStyleBlocks put:cStyleBlocks. |
|
5684 |
||
2833 | 5685 |
blockArgumentsOnNewLine := RBFormatter blockArgumentsOnNewLine asValue. |
2608 | 5686 |
blockArgumentsOnNewLine onChangeEvaluate:reformatAction. |
5687 |
bindings at:#blockArgumentsOnNewLine put:blockArgumentsOnNewLine. |
|
5688 |
||
2833 | 5689 |
maxLengthForSingleLineBlocks := RBFormatter maxLengthForSingleLineBlocks asValue. |
2596 | 5690 |
maxLengthForSingleLineBlocks onChangeEvaluate:reformatAction. |
5691 |
bindings at:#maxLengthForSingleLineBlocks put:maxLengthForSingleLineBlocks. |
|
5692 |
||
2833 | 5693 |
bindings at:#resetList put:#( 'ST/X default' 'RB default' ). |
2596 | 5694 |
bindings at:#resetValue put:(resetValue := nil asValue). |
5695 |
resetValue onChangeEvaluate: |
|
5696 |
[ |
|
5697 |
resetValue value == 1 ifTrue:[ |
|
5698 |
"/ ST/X defaults |
|
2608 | 5699 |
reformatLocked := true. |
5700 |
tabIndent value: 4. |
|
5701 |
spaceAfterReturnToken value: true. |
|
5702 |
spaceAfterKeywordSelector value: false. |
|
5703 |
spaceAroundTemporaries value: false. |
|
5704 |
emptyLineAfterTemporaries value: true. |
|
5705 |
cStyleBlocks value: true. |
|
5706 |
blockArgumentsOnNewLine value:false. |
|
5707 |
maxLengthForSingleLineBlocks value: 20. |
|
5708 |
reformatLocked := false. |
|
2596 | 5709 |
reformatAction value. |
5710 |
]. |
|
5711 |
resetValue value == 2 ifTrue:[ |
|
2833 | 5712 |
"/ RBParser defaults |
2608 | 5713 |
reformatLocked := true. |
5714 |
tabIndent value: 8. |
|
5715 |
spaceAfterReturnToken value: false. |
|
5716 |
spaceAfterKeywordSelector value: true. |
|
5717 |
spaceAroundTemporaries value: true. |
|
5718 |
emptyLineAfterTemporaries value: false. |
|
5719 |
cStyleBlocks value: false. |
|
5720 |
blockArgumentsOnNewLine value:false. |
|
5721 |
maxLengthForSingleLineBlocks value: 20. |
|
5722 |
reformatLocked := false. |
|
2596 | 5723 |
reformatAction value. |
5724 |
]. |
|
5725 |
resetValue value:nil. "/ to force default label |
|
5726 |
]. |
|
5727 |
||
5728 |
reformatAction value. |
|
5729 |
||
5730 |
"/ |
|
5731 |
"/ create a box on those ... |
|
5732 |
"/ |
|
5733 |
dialog := SimpleDialog new. |
|
5734 |
dialog postBuildBlock:[:builder | |
|
5735 |
(builder componentAt:#sampleTextView) |
|
5736 |
cursorMovementWhenUpdating:nil; |
|
5737 |
scrollWhenUpdating:nil. |
|
5738 |
]. |
|
5739 |
(dialog openFor:nil |
|
5740 |
spec:(self formatterDialogSpec) |
|
5741 |
withBindings:bindings) |
|
5742 |
ifTrue:[ |
|
3601
dafc2f087b78
formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents:
3587
diff
changeset
|
5743 |
currentUserPrefs at:#'formatter.tabIndent' put:tabIndent value. |
dafc2f087b78
formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents:
3587
diff
changeset
|
5744 |
currentUserPrefs at:#'formatter.spaceAroundTemporaries' put:spaceAroundTemporaries value. |
dafc2f087b78
formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents:
3587
diff
changeset
|
5745 |
currentUserPrefs at:#'formatter.emptyLineAfterTemporaries' put:emptyLineAfterTemporaries value. |
dafc2f087b78
formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents:
3587
diff
changeset
|
5746 |
currentUserPrefs at:#'formatter.spaceAfterReturnToken' put:spaceAfterReturnToken value. |
dafc2f087b78
formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents:
3587
diff
changeset
|
5747 |
currentUserPrefs at:#'formatter.spaceAfterKeywordSelector' put:spaceAfterKeywordSelector value. |
dafc2f087b78
formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents:
3587
diff
changeset
|
5748 |
currentUserPrefs at:#'formatter.cStyleBlocks' put:cStyleBlocks value. |
dafc2f087b78
formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents:
3587
diff
changeset
|
5749 |
currentUserPrefs at:#'formatter.blockArgumentsOnNewLine' put:blockArgumentsOnNewLine value. |
dafc2f087b78
formatter settings now in userPrefs
Claus Gittinger <cg@exept.de>
parents:
3587
diff
changeset
|
5750 |
currentUserPrefs at:#'formatter.maxLengthForSingleLineBlocks' put:maxLengthForSingleLineBlocks value. |
2833 | 5751 |
RBFormatter |
2596 | 5752 |
tabIndent:tabIndent value; |
5753 |
spaceAroundTemporaries:spaceAroundTemporaries value; |
|
5754 |
emptyLineAfterTemporaries:emptyLineAfterTemporaries value; |
|
5755 |
spaceAfterReturnToken:spaceAfterReturnToken value; |
|
5756 |
spaceAfterKeywordSelector:spaceAfterKeywordSelector value; |
|
5757 |
cStyleBlocks:cStyleBlocks value; |
|
2608 | 5758 |
blockArgumentsOnNewLine:blockArgumentsOnNewLine value; |
2596 | 5759 |
maxLengthForSingleLineBlocks:maxLengthForSingleLineBlocks value. |
5760 |
] ifFalse: [ |
|
5761 |
(UserPreferences reset; current) declareAllFrom: oldUserPreferences |
|
2838 | 5762 |
]. |
5763 |
! |
|
2596 | 5764 |
|
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5765 |
old_cvsConfigurationDialogFor:requestor |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5766 |
|box y cvsRootHolder component resources defaultsList| |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5767 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5768 |
resources := requestor class classResources. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5769 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5770 |
OperatingSystem isUNIXlike ifTrue:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5771 |
defaultsList := #('/files/CVS' '/CVS' 'host:/files/CVS' 'host:/CVS'). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5772 |
] ifFalse:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5773 |
OperatingSystem isMSDOSlike ifTrue:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5774 |
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
|
5775 |
] ifFalse:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5776 |
defaultsList := #('host:/files/CVS' 'host:/CVS'). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5777 |
] |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5778 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5779 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5780 |
cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5781 |
cvsRootHolder := cvsRootHolder asValue. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5782 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5783 |
"/ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5784 |
"/ create a box to input the CVSRoot ... |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5785 |
"/ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5786 |
box := DialogBox new. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5787 |
box label:(resources string:'CVS Setup'). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5788 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5789 |
component := (box addTextLabel:'CVS SourceCodeManager setup'). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5790 |
component adjust:#left. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5791 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5792 |
y := box yPosition. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5793 |
component := box addTextLabel:(resources string:'CVSRoot:'). |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5794 |
component width:0.25; adjust:#right; borderWidth:0. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5795 |
box yPosition:y. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5796 |
component := box addComboBoxOn:nil tabable:true. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5797 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5798 |
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
|
5799 |
component list:defaultsList. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5800 |
component model:cvsRootHolder. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5801 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5802 |
"/ component := box |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5803 |
"/ addLabelledInputField:(resources string:'CVSRoot:') |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5804 |
"/ adjust:#right |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5805 |
"/ on:nil |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5806 |
"/ tabable:true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5807 |
"/ separateAtX:0.5. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5808 |
"/ component acceptOnLeave:false. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5809 |
"/ component model:cvsRootHolder. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5810 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5811 |
box |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5812 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5813 |
addAbortAndOkButtons. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5814 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5815 |
"/ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5816 |
"/ show the box ... |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5817 |
"/ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5818 |
box extent:400@300. |
3293
d7b925f89a7b
dont use explicit showAtPointer
Claus Gittinger <cg@exept.de>
parents:
3288
diff
changeset
|
5819 |
box open. |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5820 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5821 |
"/ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5822 |
"/ update system settings |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5823 |
"/ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5824 |
box accepted ifTrue:[ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5825 |
CVSSourceCodeManager initializeForRepository:cvsRootHolder value |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5826 |
]. |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5827 |
box destroy |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5828 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5829 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5830 |
"Modified: / 12.8.1998 / 17:09:02 / cg" |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5831 |
! |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
5832 |
|
2001 | 5833 |
syntaxColorConfigurationDialogFor:requestor |
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5834 |
|box frame exampleView y |
2001 | 5835 |
resources exampleText coloredText recolorAction |
5836 |
syntaxColor syntaxColors colorMenu oldUserPreferences |
|
5837 |
syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox |
|
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5838 |
syntaxEmphasisesBox syntaxColoringResetButton b resetList |
2395 | 5839 |
resetListBox currentUserPrefs| |
2001 | 5840 |
|
5841 |
resources := requestor class classResources. |
|
2395 | 5842 |
currentUserPrefs := UserPreferences current. |
2001 | 5843 |
|
5844 |
exampleText := |
|
5845 |
'methodSelector:methodArg |
|
5846 |
"method comment: |
|
5847 |
some stupid code to show the current settings" |
|
5848 |
||
5849 |
|methodVar| |
|
5850 |
||
5851 |
"/ another comment ... |
|
2200 | 5852 |
self at:methodArg. "/ a message |
3238 | 5853 |
self fooBarBaz:methodVar. "/ a bad message |
2045
59dae01315b9
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
2041
diff
changeset
|
5854 |
methodVar := Array new:1. |
2200 | 5855 |
unknonVar := 1. "/ a bad variable |
5856 |
UnknonVar := 1. "/ another bad variable |
|
2001 | 5857 |
"self bar:methodVar. detect commented code easily" |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5858 |
1 to:5 do:[:i | self at:i + 1]. |
2001 | 5859 |
Transcript showCR:''some string'' , #someSymbol. |
2083 | 5860 |
^ self. |
2001 | 5861 |
'. |
5862 |
||
5863 |
coloredText := '' asValue. |
|
5864 |
recolorAction := [ coloredText value:(SyntaxHighlighter formatMethod:exampleText in:nil) ]. |
|
5865 |
recolorAction value. |
|
5866 |
||
5867 |
"/ |
|
5868 |
"/ create a box on those values ... |
|
5869 |
"/ |
|
5870 |
box := DialogBox new. |
|
5871 |
box label:(resources string:'Syntax Colors'). |
|
5872 |
||
5873 |
frame := View new. |
|
5874 |
frame extent:1.0 @ 200. |
|
5875 |
frame borderWidth:0. |
|
5876 |
||
5877 |
exampleView := HVScrollableView for:TextView in:frame. |
|
5878 |
exampleView model:coloredText. |
|
5879 |
exampleView origin:0.0@0.0 corner:1.0@1.0; inset:2. |
|
5880 |
||
5881 |
frame topInset:box yPosition. |
|
5882 |
box addComponent:frame withExtent:1.0@200. |
|
5883 |
box makeTabable:exampleView. |
|
5884 |
frame width:1.0. |
|
5885 |
||
5886 |
box addVerticalSpace. |
|
5887 |
||
2395 | 5888 |
oldUserPreferences := currentUserPrefs copy. |
2001 | 5889 |
|
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5890 |
syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColorNames initialSelection:1). |
2001 | 5891 |
syntaxColorSelector := [(syntaxColors selection replChar:$ withString: '') asLowercaseFirst asSymbol]. |
5892 |
syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol]. |
|
2395 | 5893 |
syntaxColor := (currentUserPrefs perform: syntaxColorSelector value) asValue. |
2001 | 5894 |
colorMenu := ColorMenu new. |
5895 |
colorMenu model: syntaxColor. |
|
2584 | 5896 |
syntaxColor onChangeEvaluate: |
2395 | 5897 |
[currentUserPrefs at: syntaxColorSelector value put: syntaxColor value. |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5898 |
recolorAction value.]. |
2584 | 5899 |
syntaxColors onChangeEvaluate: |
2960 | 5900 |
[|eVal| |
5901 |
syntaxColor value: (currentUserPrefs perform:syntaxColorSelector value). |
|
5902 |
eVal := currentUserPrefs perform: syntaxEmphasisSelector value. |
|
5903 |
eVal isArray ifTrue:[ |
|
5904 |
eVal = (Array with:#underwave with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[ |
|
5905 |
eVal := #'red underwave' |
|
5906 |
]. |
|
5907 |
eVal = (Array with:#bold with:#underwave with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[ |
|
5908 |
eVal := #'bold+red underwave' |
|
5909 |
]. |
|
5910 |
eVal = (Array with:#bold with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[ |
|
5911 |
eVal := #'bold+red underline' |
|
5912 |
]. |
|
5913 |
eVal = (Array with:#italic with:#underwave with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[ |
|
5914 |
eVal := #'italic+red underwave' |
|
5915 |
]. |
|
5916 |
eVal = (Array with:#italic with:#underlineColor->(Color red:100.0 green:0.0 blue:0.0)) ifTrue:[ |
|
5917 |
eVal := #'italic+red underline' |
|
5918 |
]. |
|
5919 |
]. |
|
5920 |
syntaxEmphasises selection: eVal. |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5921 |
recolorAction value.]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5922 |
|
2233 | 5923 |
syntaxEmphasises := SelectionInList |
5924 |
with:#( |
|
5925 |
normal |
|
5926 |
underline |
|
5927 |
#'red underline' |
|
5928 |
underwave |
|
5929 |
#'red underwave' |
|
5930 |
bold |
|
5931 |
boldUnderline |
|
5932 |
#'bold+red underline' |
|
5933 |
boldUnderwave |
|
5934 |
#'bold+red underwave' |
|
5935 |
italic |
|
5936 |
italicUnderline |
|
5937 |
#'italic+red underline' |
|
5938 |
italicUnderwave |
|
5939 |
#'italic+red underwave' |
|
5940 |
reverse |
|
5941 |
) |
|
5942 |
initialSelection:1. |
|
5943 |
syntaxEmphasisesBox := box addComboListOn:syntaxEmphasises. |
|
5944 |
syntaxEmphasises |
|
2584 | 5945 |
onChangeEvaluate:[ |em| |
2569 | 5946 |
em := syntaxEmphasises selection. |
5947 |
em notNil ifTrue:[ |
|
5948 |
em := em asSymbol. |
|
5949 |
em == #'red underline' ifTrue:[ em := Array with:#underline with:(#underlineColor->Color red)]. |
|
5950 |
em == #'red underwave' ifTrue:[ em := Array with:#underwave with:(#underlineColor->Color red)]. |
|
5951 |
em == #'bold+red underline' ifTrue:[ em := Array with:#bold with:#underline with:(#underlineColor->Color red)]. |
|
5952 |
em == #'bold+red underwave' ifTrue:[ em := Array with:#bold with:#underwave with:(#underlineColor->Color red)]. |
|
5953 |
em == #'italic+red underline' ifTrue:[ em := Array with:#italic with:#underline with:(#underlineColor->Color red)]. |
|
5954 |
em == #'italic+red underwave' ifTrue:[ em := Array with:#italic with:#underwave with:(#underlineColor->Color red)]. |
|
5955 |
||
5956 |
currentUserPrefs at: syntaxEmphasisSelector value put:em. |
|
5957 |
]. |
|
2233 | 5958 |
recolorAction value |
5959 |
]. |
|
2001 | 5960 |
syntaxColors changed:#value. "/ to force initial update of emphasis |
5961 |
box addComponent:colorMenu tabable:true. |
|
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5962 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5963 |
y := box yPosition. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5964 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5965 |
b := Button new label: (resources string:'reset to:'). |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5966 |
b action:[ |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5967 |
|resetSelector| |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5968 |
|
3385 | 5969 |
resetSelector := (currentUserPrefs listOfPredefinedSyntaxColoringSchemes |
5970 |
collect:[:eachEntry | eachEntry first]) |
|
5971 |
at:resetList selectionIndex. |
|
2395 | 5972 |
currentUserPrefs perform:resetSelector. |
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5973 |
recolorAction value. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5974 |
]. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5975 |
syntaxColoringResetButton := box addComponent:b. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5976 |
box makeTabable:syntaxColoringResetButton. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5977 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5978 |
box yPosition:y. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5979 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5980 |
resetList := SelectionInList |
3385 | 5981 |
with:(currentUserPrefs listOfPredefinedSyntaxColoringSchemes |
5982 |
collect:[:eachEntry | eachEntry second]) |
|
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5983 |
initialSelection:1. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5984 |
resetListBox := box addComboListOn:resetList. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5985 |
box makeTabable:resetListBox. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5986 |
|
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5987 |
syntaxColoringBox enable. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5988 |
colorMenu enable. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5989 |
syntaxEmphasisesBox enable. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
5990 |
syntaxColoringResetButton enable. |
2001 | 5991 |
|
5992 |
box |
|
5993 |
"/ addHelpButtonFor:'Launcher/sourceSettings.html'; |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5994 |
addAbortAndOkButtons. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5995 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5996 |
box stickAtBottomWithVariableHeight:frame. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5997 |
box stickAtBottomWithFixHeight:syntaxColoringBox. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5998 |
box stickAtBottomWithFixHeight:syntaxEmphasisesBox. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
5999 |
box stickAtBottomWithFixHeight:colorMenu. |
2237
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
6000 |
box stickAtBottomWithFixHeight:syntaxColoringResetButton left:0.0 right:0.5. |
ddd553ff2ed5
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
2234
diff
changeset
|
6001 |
box stickAtBottomWithFixHeight:resetListBox left:0.5 right:1.0. |
2001 | 6002 |
|
6003 |
"/ |
|
6004 |
"/ show the box ... |
|
6005 |
"/ |
|
2234 | 6006 |
box extent:600@400. |
2001 | 6007 |
box openModal. |
6008 |
||
6009 |
"/ |
|
6010 |
"/ update system settings |
|
6011 |
"/ |
|
6012 |
box accepted ifTrue:[ |
|
6013 |
] ifFalse: [ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
6014 |
(UserPreferences reset; current) declareAllFrom: oldUserPreferences |
2001 | 6015 |
]. |
6016 |
box destroy |
|
6017 |
||
6018 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
2234 | 6019 |
"Modified: / 7.7.1999 / 00:27:02 / cg" |
2001 | 6020 |
! ! |
6021 |
||
2596 | 6022 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'interface specs'! |
6023 |
||
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6024 |
cvsSetupSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6025 |
"This resource specification was automatically generated |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6026 |
by the UIPainter of ST/X." |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6027 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6028 |
"Do not manually edit this!! If it is corrupted, |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6029 |
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
|
6030 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6031 |
" |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6032 |
UIPainter new openOnClass:AbstractLauncherApplication::LauncherDialogs andSelector:#cvsSetupSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6033 |
" |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6034 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6035 |
<resource: #canvas> |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6036 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6037 |
^ |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6038 |
#(#FullSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6039 |
#name: #cvsSetupSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6040 |
#window: |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6041 |
#(#WindowSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6042 |
#label: 'CVS Setup' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6043 |
#name: 'CVS Setup' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6044 |
#min: #(#Point 436 316) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6045 |
#max: #(#Point 1280 1024) |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6046 |
#bounds: #(#Rectangle 13 23 449 377) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6047 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6048 |
#component: |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6049 |
#(#SpecCollection |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6050 |
#collection: #( |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6051 |
#(#LabelSpec |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6052 |
#label: 'CVS BinDirectory:' |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6053 |
#name: 'Label1' |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6054 |
#layout: #(#LayoutFrame 0 0.0 36 0 40 0.25 53 0) |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6055 |
#level: 0 |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6056 |
#translateLabel: true |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6057 |
#adjust: #right |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6058 |
) |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6059 |
#(#InputFieldSpec |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6060 |
#name: 'BinDirectoryField' |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6061 |
#layout: #(#LayoutFrame 44 0.25 34 0 -1 1 56 0) |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6062 |
#tabable: true |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6063 |
#model: #cvsBinDirectoryHolder |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6064 |
#acceptChannel: #acceptChannel |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6065 |
#acceptOnPointerLeave: false |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6066 |
) |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6067 |
#(#DividerSpec |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6068 |
#name: 'Separator3' |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6069 |
#layout: #(#LayoutFrame 0 0.0 60 0 0 1.0 64 0) |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6070 |
) |
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6071 |
#(#LabelSpec |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6072 |
#label: 'CVS SourceCodeManager setup' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6073 |
#name: 'label' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6074 |
#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
|
6075 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6076 |
#adjust: #left |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6077 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6078 |
#(#LabelSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6079 |
#label: 'CVSRoot default:' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6080 |
#name: 'defaultCvsRootLabel' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6081 |
#layout: #(#LayoutFrame 0 0.0 71 0 40 0.25 88 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6082 |
#level: 0 |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6083 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6084 |
#adjust: #right |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6085 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6086 |
#(#ComboBoxSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6087 |
#name: 'cvsRootComboBox' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6088 |
#layout: #(#LayoutFrame 44 0.25 71 0 -1 1.0 93 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6089 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6090 |
#model: #cvsRootHolder |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6091 |
#immediateAccept: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6092 |
#acceptOnLeave: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6093 |
#acceptOnReturn: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6094 |
#acceptOnTab: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6095 |
#acceptOnLostFocus: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6096 |
#acceptChannel: #acceptChannel |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6097 |
#acceptOnPointerLeave: false |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6098 |
#comboList: #cvsRootPrototypeList |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6099 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6100 |
#(#DividerSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6101 |
#name: 'Separator1' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6102 |
#layout: #(#LayoutFrame 0 0.0 96 0 0 1.0 100 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6103 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6104 |
#(#LabelSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6105 |
#label: 'CVSRoot per Module:' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6106 |
#name: 'knownModulesLabel' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6107 |
#layout: #(#LayoutFrame 0 0.0 109 0 40 0.25 126 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6108 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6109 |
#adjust: #right |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6110 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6111 |
#(#SequenceViewSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6112 |
#name: 'List1' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6113 |
#layout: #(#LayoutFrame 44 0.25 104 0 -1 1 202 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6114 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6115 |
#model: #selectedPerModuleRoot |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6116 |
#hasHorizontalScrollBar: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6117 |
#hasVerticalScrollBar: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6118 |
#miniScrollerHorizontal: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6119 |
#useIndex: false |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6120 |
#sequenceList: #listOfModules |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6121 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6122 |
#(#LabelSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6123 |
#label: 'Module:' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6124 |
#name: 'moduleLabel' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6125 |
#layout: #(#LayoutFrame 0 0.0 209 0 40 0.25 226 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6126 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6127 |
#adjust: #right |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6128 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6129 |
#(#InputFieldSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6130 |
#name: 'perModuleRootModuleEntryField' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6131 |
#layout: #(#LayoutFrame 44 0.25 205 0 -1 1 227 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6132 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6133 |
#model: #perModuleRootModule |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6134 |
#acceptChannel: #acceptChannel |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6135 |
#acceptOnPointerLeave: false |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6136 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6137 |
#(#LabelSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6138 |
#label: 'CVSRoot:' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6139 |
#name: 'cvsRootLabel' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6140 |
#layout: #(#LayoutFrame 0 0.0 236 0 40 0.25 253 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6141 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6142 |
#adjust: #right |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6143 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6144 |
#(#ComboBoxSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6145 |
#name: 'perModuleRootComboBox' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6146 |
#layout: #(#LayoutFrame 44 0.25 232 0 -1 1.0 254 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6147 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6148 |
#model: #perModuleRoot |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6149 |
#immediateAccept: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6150 |
#acceptOnLeave: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6151 |
#acceptOnReturn: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6152 |
#acceptOnTab: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6153 |
#acceptOnLostFocus: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6154 |
#acceptChannel: #acceptChannel |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6155 |
#acceptOnPointerLeave: false |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6156 |
#comboList: #cvsRootPrototypeList |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6157 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6158 |
#(#HorizontalPanelViewSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6159 |
#name: 'HorizontalPanel1' |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6160 |
#layout: #(#LayoutFrame 44 0.25 258 0 -1 1 289 0) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6161 |
#horizontalLayout: #fitSpace |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6162 |
#verticalLayout: #center |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6163 |
#horizontalSpace: 3 |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6164 |
#verticalSpace: 3 |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6165 |
#component: |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6166 |
#(#SpecCollection |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6167 |
#collection: #( |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6168 |
#(#ActionButtonSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6169 |
#label: 'Add/Apply' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6170 |
#name: 'addButton' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6171 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6172 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6173 |
#model: #addPerModuleRoot |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6174 |
#extent: #(#Point 136 22) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6175 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6176 |
#(#ActionButtonSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6177 |
#label: 'Remove' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6178 |
#name: 'removeButton' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6179 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6180 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6181 |
#model: #removePerModuleRoot |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6182 |
#enableChannel: #removeEnabled |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6183 |
#extent: #(#Point 137 22) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6184 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6185 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6186 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6187 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6188 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6189 |
#(#DividerSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6190 |
#name: 'Separator2' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6191 |
#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
|
6192 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6193 |
#(#HorizontalPanelViewSpec |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6194 |
#name: 'buttonPanel' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6195 |
#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
|
6196 |
#horizontalLayout: #fitSpace |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6197 |
#verticalLayout: #center |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6198 |
#horizontalSpace: 3 |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6199 |
#verticalSpace: 3 |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6200 |
#ignoreInvisibleComponents: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6201 |
#reverseOrderIfOKAtLeft: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6202 |
#component: |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6203 |
#(#SpecCollection |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6204 |
#collection: #( |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6205 |
#(#ActionButtonSpec |
3475 | 6206 |
#label: 'Cancel' |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6207 |
#name: 'cancelButton' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6208 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6209 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6210 |
#model: #cancel |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6211 |
#extent: #(#Point 141 21) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6212 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6213 |
#(#ActionButtonSpec |
3475 | 6214 |
#label: 'Help' |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6215 |
#name: 'helpButton' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6216 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6217 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6218 |
#model: #help |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6219 |
#extent: #(#Point 141 21) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6220 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6221 |
#(#ActionButtonSpec |
3475 | 6222 |
#label: 'OK' |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6223 |
#name: 'okButton' |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6224 |
#translateLabel: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6225 |
#tabable: true |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6226 |
#model: #accept |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6227 |
#isDefault: true |
3468
e45ecf93fcc0
allow for cvsBinDir to be specified in dialog
Claus Gittinger <cg@exept.de>
parents:
3442
diff
changeset
|
6228 |
#extent: #(#Point 142 21) |
2884
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6229 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6230 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6231 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6232 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6233 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6234 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6235 |
|
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6236 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6237 |
) |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6238 |
! |
587baa691c68
fixes & adds for multiple CVSRoots
Claus Gittinger <cg@exept.de>
parents:
2883
diff
changeset
|
6239 |
|
2596 | 6240 |
formatterDialogSpec |
6241 |
"This resource specification was automatically generated |
|
6242 |
by the UIPainter of ST/X." |
|
6243 |
||
6244 |
"Do not manually edit this!! If it is corrupted, |
|
6245 |
the UIPainter may not be able to read the specification." |
|
6246 |
||
6247 |
" |
|
6248 |
UIPainter new openOnClass:AbstractLauncherApplication::LauncherDialogs andSelector:#formatterDialogSpec |
|
6249 |
" |
|
6250 |
||
6251 |
<resource: #canvas> |
|
6252 |
||
6253 |
^ |
|
6254 |
#(#FullSpec |
|
6255 |
#name: #formatterDialogSpec |
|
6256 |
#window: |
|
6257 |
#(#WindowSpec |
|
6258 |
#label: 'Formatting parameters' |
|
6259 |
#name: 'Formatting parameters' |
|
6260 |
#min: #(#Point 10 10) |
|
6261 |
#max: #(#Point 1280 1024) |
|
2608 | 6262 |
#bounds: #(#Rectangle 10 406 606 989) |
2596 | 6263 |
) |
6264 |
#component: |
|
6265 |
#(#SpecCollection |
|
6266 |
#collection: #( |
|
6267 |
#(#LabelSpec |
|
6268 |
#label: 'Sample output:' |
|
6269 |
#name: 'Label2' |
|
6270 |
#layout: #(#LayoutFrame 0 0.0 4 0 0 1.0 26 0) |
|
6271 |
#translateLabel: true |
|
6272 |
#adjust: #left |
|
6273 |
) |
|
6274 |
#(#TextEditorSpec |
|
6275 |
#name: 'sampleTextView' |
|
6276 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 -234 1.0) |
|
6277 |
#level: -1 |
|
6278 |
#model: #formattedText |
|
6279 |
#hasHorizontalScrollBar: true |
|
6280 |
#hasVerticalScrollBar: true |
|
6281 |
) |
|
6282 |
#(#FramedBoxSpec |
|
6283 |
#label: 'Parameters' |
|
6284 |
#name: 'FramedBox1' |
|
6285 |
#layout: #(#LayoutFrame 0 0.0 -225 1 0 1.0 -30 1) |
|
6286 |
#labelPosition: #topLeft |
|
6287 |
#translateLabel: true |
|
6288 |
#component: |
|
6289 |
#(#SpecCollection |
|
6290 |
#collection: #( |
|
6291 |
#(#LabelSpec |
|
6292 |
#label: 'Max length for single line blocks:' |
|
6293 |
#name: 'Label1' |
|
2608 | 6294 |
#layout: #(#LayoutFrame 185 0.0 127 0 66 0.7 153 0) |
2596 | 6295 |
#level: 0 |
6296 |
#adjust: #right |
|
6297 |
) |
|
6298 |
#(#CheckBoxSpec |
|
2601 | 6299 |
#label: 'Space around temporaries ' |
6300 |
#name: 'checkBox' |
|
6301 |
#layout: #(#LayoutFrame 2 0 3 0 260 0 32 0) |
|
2596 | 6302 |
#level: 0 |
2601 | 6303 |
#tabable: true |
6304 |
#model: #spaceAroundTemporaries |
|
2596 | 6305 |
#translateLabel: true |
6306 |
) |
|
6307 |
#(#CheckBoxSpec |
|
6308 |
#label: 'Blank line after local var declaration' |
|
6309 |
#name: 'CheckBox1' |
|
6310 |
#layout: #(#LayoutFrame 267 0 3 0 567 0 32 0) |
|
6311 |
#level: 0 |
|
2601 | 6312 |
#tabable: true |
2596 | 6313 |
#model: #emptyLineAfterTemporaries |
6314 |
#translateLabel: true |
|
6315 |
) |
|
6316 |
#(#CheckBoxSpec |
|
6317 |
#label: 'Space after ''^''' |
|
6318 |
#name: 'CheckBox2' |
|
6319 |
#layout: #(#LayoutFrame 2 0 31 0 260 0 60 0) |
|
6320 |
#level: 0 |
|
2601 | 6321 |
#tabable: true |
2596 | 6322 |
#model: #spaceAfterReturnToken |
6323 |
#translateLabel: true |
|
6324 |
) |
|
6325 |
#(#CheckBoxSpec |
|
6326 |
#label: 'Space after '':'' in keywords' |
|
6327 |
#name: 'CheckBox3' |
|
6328 |
#layout: #(#LayoutFrame 267 0 31 0 567 0 60 0) |
|
6329 |
#level: 0 |
|
2601 | 6330 |
#tabable: true |
2596 | 6331 |
#model: #spaceAfterKeywordSelector |
6332 |
#translateLabel: true |
|
6333 |
) |
|
6334 |
#(#CheckBoxSpec |
|
2601 | 6335 |
#label: 'C-Style blocks' |
6336 |
#name: 'CheckBox4' |
|
6337 |
#layout: #(#LayoutFrame 2 0 59 0 260 0 88 0) |
|
2596 | 6338 |
#level: 0 |
2601 | 6339 |
#tabable: true |
6340 |
#model: #cStyleBlocks |
|
2596 | 6341 |
#translateLabel: true |
6342 |
) |
|
6343 |
#(#InputFieldSpec |
|
6344 |
#name: 'editField' |
|
2608 | 6345 |
#layout: #(#LayoutFrame 74 0.7 93 0 -38 1.0 119 0) |
2596 | 6346 |
#level: -1 |
2601 | 6347 |
#tabable: true |
2596 | 6348 |
#model: #tabIndent |
6349 |
#type: #number |
|
6350 |
#immediateAccept: false |
|
6351 |
#acceptOnLeave: true |
|
6352 |
#acceptOnReturn: true |
|
6353 |
#acceptOnTab: true |
|
6354 |
#acceptOnLostFocus: true |
|
6355 |
#acceptOnPointerLeave: true |
|
6356 |
) |
|
6357 |
#(#LabelSpec |
|
6358 |
#label: 'Indent:' |
|
6359 |
#name: 'label' |
|
2608 | 6360 |
#layout: #(#LayoutFrame 242 0.0 93 0 66 0.7 119 0) |
2596 | 6361 |
#level: 0 |
6362 |
#adjust: #right |
|
6363 |
) |
|
2601 | 6364 |
#(#InputFieldSpec |
6365 |
#name: 'EntryField1' |
|
2608 | 6366 |
#layout: #(#LayoutFrame 74 0.7 127 0 -38 1.0 153 0) |
2601 | 6367 |
#level: -1 |
6368 |
#tabable: true |
|
6369 |
#model: #maxLengthForSingleLineBlocks |
|
6370 |
#type: #number |
|
6371 |
#immediateAccept: false |
|
6372 |
#acceptOnLeave: true |
|
6373 |
#acceptOnReturn: true |
|
6374 |
#acceptOnTab: true |
|
6375 |
#acceptOnLostFocus: true |
|
6376 |
#acceptOnPointerLeave: true |
|
6377 |
) |
|
2596 | 6378 |
#(#PopUpListSpec |
6379 |
#label: 'Reset to...' |
|
6380 |
#name: 'PopUpList1' |
|
2608 | 6381 |
#layout: #(#LayoutFrame 2 0 129 0 127 0 151 0) |
2601 | 6382 |
#tabable: true |
2596 | 6383 |
#model: #resetValue |
6384 |
#menu: #resetList |
|
6385 |
#useIndex: true |
|
6386 |
) |
|
2608 | 6387 |
#(#CheckBoxSpec |
6388 |
#label: 'Block args on new line' |
|
6389 |
#name: 'CheckBox5' |
|
6390 |
#layout: #(#LayoutFrame 267 0 59 0 567 0 88 0) |
|
6391 |
#level: 0 |
|
6392 |
#tabable: true |
|
6393 |
#model: #blockArgumentsOnNewLine |
|
6394 |
#translateLabel: true |
|
6395 |
) |
|
2596 | 6396 |
) |
6397 |
||
6398 |
) |
|
6399 |
) |
|
6400 |
#(#HorizontalPanelViewSpec |
|
6401 |
#name: 'horizontalPanelView' |
|
6402 |
#layout: #(#LayoutFrame 0 0.0 -35 1.0 0 1.0 0 1.0) |
|
6403 |
#level: 0 |
|
6404 |
#horizontalLayout: #fitSpace |
|
6405 |
#verticalLayout: #center |
|
6406 |
#horizontalSpace: 4 |
|
6407 |
#verticalSpace: 4 |
|
6408 |
#ignoreInvisibleComponents: true |
|
6409 |
#component: |
|
6410 |
#(#SpecCollection |
|
6411 |
#collection: #( |
|
6412 |
#(#ActionButtonSpec |
|
3475 | 6413 |
#label: 'Cancel' |
2596 | 6414 |
#name: 'button' |
6415 |
#translateLabel: true |
|
2601 | 6416 |
#tabable: true |
2596 | 6417 |
#model: #cancel |
2601 | 6418 |
#useDefaultExtent: true |
2596 | 6419 |
) |
6420 |
#(#ActionButtonSpec |
|
3475 | 6421 |
#label: 'OK' |
2596 | 6422 |
#name: 'Button1' |
6423 |
#translateLabel: true |
|
2601 | 6424 |
#tabable: true |
2596 | 6425 |
#model: #accept |
6426 |
#isDefault: true |
|
2601 | 6427 |
#useDefaultExtent: true |
2596 | 6428 |
) |
6429 |
) |
|
6430 |
||
6431 |
) |
|
6432 |
) |
|
6433 |
) |
|
6434 |
||
6435 |
) |
|
6436 |
) |
|
6437 |
! ! |
|
6438 |
||
2001 | 6439 |
!AbstractLauncherApplication class methodsFor:'documentation'! |
6440 |
||
6441 |
version |
|
3738 | 6442 |
^ '$Header: /cvs/stx/stx/libtool/AbstractLauncherApplication.st,v 1.198 2002-07-17 16:12:42 cg Exp $' |
2001 | 6443 |
! ! |