author | Claus Gittinger <cg@exept.de> |
Sat, 26 Jun 1999 16:07:24 +0200 | |
changeset 2207 | 84d23e553268 |
parent 2206 | 43e55bfbf3fc |
child 2209 | 753b5db1eea5 |
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 |
||
2001 | 14 |
ToolApplicationModel subclass:#AbstractLauncherApplication |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
15 |
instanceVariableNames:'transcript' |
2196 | 16 |
classVariableNames:'NotifyingEmergencyHandler OpenLaunchers RegisteredMenuHandlers' |
2001 | 17 |
poolDictionaries:'' |
18 |
category:'Interface-Smalltalk' |
|
19 |
! |
|
20 |
||
21 |
Object subclass:#LauncherDialogs |
|
22 |
instanceVariableNames:'' |
|
23 |
classVariableNames:'' |
|
24 |
poolDictionaries:'' |
|
25 |
privateIn:AbstractLauncherApplication |
|
26 |
! |
|
27 |
||
2195 | 28 |
!AbstractLauncherApplication class methodsFor:'documentation'! |
29 |
||
30 |
copyright |
|
31 |
" |
|
32 |
COPYRIGHT (c) 1997 by eXept Software AG |
|
33 |
All Rights Reserved |
|
34 |
||
35 |
This software is furnished under a license and may be used |
|
36 |
only in accordance with the terms of that license and with the |
|
37 |
inclusion of the above copyright notice. This software may not |
|
38 |
be provided or otherwise made available to, or used by, any |
|
39 |
other person. No title to or ownership of the software is |
|
40 |
hereby transferred. |
|
41 |
" |
|
42 |
||
43 |
! |
|
44 |
||
45 |
documentation |
|
46 |
" |
|
47 |
This is an abstract class, providing mechanisms and common functionality |
|
48 |
for launcher-type applications. Subclasses may implement their GUI either |
|
49 |
with or without the UIPainter framework, and still use the common functions |
|
50 |
provided here. |
|
51 |
||
52 |
[author:] |
|
53 |
Claus Gittinger, eXept Software AG |
|
54 |
" |
|
55 |
||
56 |
||
57 |
! ! |
|
2001 | 58 |
|
59 |
!AbstractLauncherApplication class methodsFor:'accessing'! |
|
60 |
||
61 |
current |
|
62 |
"return the launcher running on the current screen. |
|
63 |
(for access via addMenu/ removeMenu)" |
|
64 |
||
65 |
|currentScreen| |
|
66 |
||
67 |
OpenLaunchers size > 0 ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
68 |
currentScreen := Screen current. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
69 |
OpenLaunchers do:[:aLauncher | |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
70 |
aLauncher graphicsDevice == currentScreen ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
71 |
^ aLauncher |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
72 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
73 |
] |
2001 | 74 |
]. |
75 |
^ nil. |
|
76 |
||
77 |
" |
|
78 |
Launcher current |
|
79 |
" |
|
80 |
||
81 |
"Modified: / 9.9.1996 / 22:41:36 / stefan" |
|
82 |
"Modified: / 13.10.1998 / 16:09:50 / cg" |
|
83 |
! |
|
84 |
||
85 |
openLaunchers |
|
86 |
"return all opened launchers" |
|
87 |
||
88 |
^OpenLaunchers ? (OpenLaunchers := OrderedCollection new) |
|
89 |
! ! |
|
90 |
||
91 |
!AbstractLauncherApplication class methodsFor:'defaults'! |
|
92 |
||
93 |
notifyingEmergencyHandler |
|
94 |
"return a block (used as an emergency handler |
|
95 |
for exceptions), which does errorNotification before going |
|
96 |
into the debugger." |
|
97 |
||
98 |
"Remember the handlerBlock, to be able to determine if the current |
|
99 |
handler is the notifying one." |
|
100 |
||
101 |
NotifyingEmergencyHandler isNil ifTrue:[ |
|
102 |
NotifyingEmergencyHandler := Exception notifyingEmergencyHandler |
|
103 |
]. |
|
104 |
^ NotifyingEmergencyHandler |
|
105 |
||
106 |
"Created: 7.1.1997 / 22:18:19 / cg" |
|
107 |
"Modified: 15.1.1997 / 21:15:38 / cg" |
|
108 |
! ! |
|
109 |
||
2195 | 110 |
!AbstractLauncherApplication class methodsFor:'queries'! |
111 |
||
112 |
isVisualStartable |
|
113 |
"return true, if this application can be started via #open" |
|
114 |
||
115 |
^ self isSubclassOf:AbstractLauncherApplication |
|
116 |
||
117 |
||
118 |
! ! |
|
119 |
||
2001 | 120 |
!AbstractLauncherApplication methodsFor:'private'! |
121 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
122 |
findWindow:title |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
123 |
"a helper for find & destroy and find & raise operations; |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
124 |
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
|
125 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
126 |
|knownTopViews nameList box| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
127 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
128 |
knownTopViews := IdentitySet new. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
129 |
Screen allScreens do:[:aScreen | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
130 |
aScreen knownViews do:[:aView | |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
131 |
|top showIt wg| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
132 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
133 |
aView notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
134 |
top := aView topView. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
135 |
(top isKindOf:DebugView) ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
136 |
"/ although modal, show it. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
137 |
showIt := top realized |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
138 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
139 |
wg := top windowGroup. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
140 |
showIt := (wg notNil and:[wg isModal not]). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
141 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
142 |
showIt ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
143 |
knownTopViews add:top |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
144 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
145 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
146 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
147 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
148 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
149 |
knownTopViews := knownTopViews asOrderedCollection. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
150 |
knownTopViews sort:[:v1 :v2 | |l1 l2| |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
151 |
l1 := v1 label ? 'aView'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
152 |
l2 := v2 label ? 'aView'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
153 |
l1 < l2 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
154 |
]. |
2041 | 155 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
156 |
nameList := knownTopViews collect:[:v | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
157 |
|isDead wg p l| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
158 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
159 |
l := v label ? 'aView'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
160 |
v device == Display ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
161 |
l := l , ' [' , (v device displayName ? '?') , ']' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
162 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
163 |
((wg := v windowGroup) notNil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
164 |
and:[(p := wg process) notNil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
165 |
and:[p state ~~ #dead]]) ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
166 |
l |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
167 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
168 |
l , ' (dead ?)' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
169 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
170 |
]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
171 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
172 |
box := ListSelectionBox new. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
173 |
box noEnterField. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
174 |
box list:nameList. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
175 |
box label:(resources string:'view selection'). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
176 |
box title:(resources string:title) withCRs. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
177 |
box action:[:selection | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
178 |
|v| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
179 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
180 |
v := knownTopViews at:box selectionIndex. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
181 |
box destroy. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
182 |
^ v |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
183 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
184 |
box extent:400@300. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
185 |
box showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
186 |
^ nil |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
187 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
188 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
189 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
190 |
openApplication: classOrClassName |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
191 |
"open an application, given by the classe name." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
192 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
193 |
self openApplication:classOrClassName nameSpace:nil |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
194 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
195 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
196 |
openApplication:classOrClassName nameSpace:aNameSpace |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
197 |
"open some application, given the classes name. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
198 |
Look for it in Smalltalk and the given nameSpace" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
199 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
200 |
self openApplication:classOrClassName nameSpace:aNameSpace with:#open |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
201 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
202 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
203 |
openApplication:classOrClassName nameSpace:aNameSpace with:aSelector |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
204 |
"open some application, given the classes name. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
205 |
Look for it in Smalltalk and the given nameSpace" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
206 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
207 |
|cls| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
208 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
209 |
classOrClassName isBehavior ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
210 |
cls := classOrClassName. |
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
211 |
] ifFalse:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
212 |
cls := Smalltalk at:classOrClassName asSymbol. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
213 |
cls isNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
214 |
"/ look if its in the nameSpace |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
215 |
aNameSpace notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
216 |
cls := aNameSpace at:classOrClassName asSymbol |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
217 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
218 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
219 |
cls isNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
220 |
self warn:(resources string:'Sorry, the %1 class is not available.' with:classOrClassName). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
221 |
^ self |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
222 |
]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
223 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
224 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
225 |
Autoload autoloadFailedSignal handle:[:ex | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
226 |
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
|
227 |
] do:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
228 |
self withWaitCursorDo:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
229 |
cls perform:aSelector |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
230 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
231 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
232 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
233 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
234 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
235 |
pickAView |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
236 |
"let user pick a view and return it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
237 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
238 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
239 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
240 |
(Delay forSeconds:1) wait. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
241 |
v := Screen current viewFromUser. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
242 |
v isNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
243 |
self warn:'Sorry, this is not a smalltalk view'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
244 |
^ nil |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
245 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
246 |
^ v |
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 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
249 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
250 |
saveScreenImage:anImage defaultName:defaultName |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
251 |
"save an image into a file |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
252 |
- ask user for filename using a fileSelectionBox." |
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 |
|fileName| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
255 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
256 |
fileName := Dialog |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
257 |
requestFileName:(resources string:'save image in:') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
258 |
default:(defaultName , '.tiff') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
259 |
ok:(resources string:'save') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
260 |
abort:(resources string:'cancel') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
261 |
pattern:'*.tiff'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
262 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
263 |
fileName notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
264 |
anImage saveOn:fileName |
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 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
267 |
"Modified: / 21.2.1996 / 13:09:28 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
268 |
"Created: / 29.1.1998 / 23:20:36 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
269 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
270 |
|
2001 | 271 |
showDocumentation:aRelativeDocFilePath |
272 |
"open an HTML browser on some document" |
|
273 |
||
274 |
" |
|
275 |
although that one is not yet finished, |
|
276 |
its better than nothing ... |
|
277 |
" |
|
278 |
HTMLDocumentView notNil ifTrue:[ |
|
279 |
self withWaitCursorDo:[ |
|
280 |
" |
|
281 |
temporary kludge; |
|
282 |
not all machines can autoload binaries; |
|
283 |
however, on my SGI (which can) we want it |
|
284 |
to load automatically. |
|
285 |
" |
|
286 |
HTMLDocumentView isLoaded ifFalse:[ |
|
287 |
ErrorSignal catch:[HTMLDocumentView autoload] |
|
288 |
]. |
|
289 |
HTMLDocumentView isLoaded ifTrue:[ |
|
290 |
HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. |
|
291 |
^ self |
|
292 |
]. |
|
293 |
] |
|
294 |
]. |
|
295 |
||
296 |
self warn:'Sorry, the ST/X HTML reader is not |
|
297 |
included in this release. |
|
298 |
||
299 |
Please use Mosaic, netscape, chimera or any |
|
300 |
other HTML viewer to see the documentation. |
|
301 |
||
302 |
The documentation is found in the ''doc/online'' directory.'. |
|
303 |
||
304 |
"Modified: / 25.2.1998 / 21:24:20 / cg" |
|
305 |
! ! |
|
306 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
307 |
!AbstractLauncherApplication methodsFor:'private - settings callBacks'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
308 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
309 |
changeViewStyleTo:newStyle |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
310 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
311 |
newStyle notNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
312 |
self withWaitCursorDo:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
313 |
transcript showCR:'change style to ' , newStyle , ' ...'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
314 |
View defaultStyle:newStyle asSymbol. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
315 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
316 |
self reopenLauncher. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
317 |
DebugView newDebugger. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
318 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
319 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
320 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
321 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
322 |
fontBoxForEncoding:encodingMatch |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
323 |
"open a fontBox, showing fonts which match some encoding |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
324 |
(used when changing to japanese ...)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
325 |
|
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
326 |
^ LauncherDialogs fontBoxForEncoding:encodingMatch for:self. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
327 |
|
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
328 |
"/ |box y b |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
329 |
"/ labelDef buttonDef listDef menuDef textDef |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
330 |
"/ models labels allOfThem filter| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
331 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
332 |
"/ encodingMatch notNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
333 |
"/ filter := [:f | f encoding notNil |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
334 |
"/ and:[encodingMatch match:f encoding]]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
335 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
336 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
337 |
"/ models := OrderedCollection new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
338 |
"/ labels := OrderedCollection new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
339 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
340 |
"/ models add:(allOfThem := nil asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
341 |
"/ models add:(labelDef := Label defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
342 |
"/ models add:(buttonDef := Button defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
343 |
"/ models add:(listDef := SelectionInListView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
344 |
"/ models add:(menuDef := MenuView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
345 |
"/ models add:(textDef := TextView defaultFont asValue). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
346 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
347 |
"/ box := Dialog new. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
348 |
"/ box label:(resources string:'Font settings'). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
349 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
350 |
"/ models |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
351 |
"/ 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
|
352 |
"/ do:[:model :title | |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
353 |
"/ |y2 lbl f i| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
354 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
355 |
"/ f := model value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
356 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
357 |
"/ (box addTextLabel:title) adjust:#left. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
358 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
359 |
"/ y := box yPosition. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
360 |
"/ 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
|
361 |
"/ b relativeExtent:nil; extent:(b preferredExtent). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
362 |
"/ y2 := box yPosition. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
363 |
"/ box yPosition:y. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
364 |
"/ i := box leftIndent. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
365 |
"/ box leftIndent:(b widthIncludingBorder + View viewSpacing). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
366 |
"/ (lbl := box addTextLabel:'') |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
367 |
"/ adjust:#left; |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
368 |
"/ font:(model value); |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
369 |
"/ labelChannel:(BlockValue |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
370 |
"/ with:[:v | |f| |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
371 |
"/ f := v value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
372 |
"/ f isNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
373 |
"/ '' |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
374 |
"/ ] ifFalse:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
375 |
"/ f userFriendlyName |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
376 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
377 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
378 |
"/ argument:model). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
379 |
"/ labels add:lbl. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
380 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
381 |
"/ box leftIndent:i. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
382 |
"/ box yPosition:(box yPosition max:y2). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
383 |
"/ box addVerticalSpace. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
384 |
"/ box addHorizontalLine. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
385 |
"/ box addVerticalSpace. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
386 |
"/ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
387 |
"/ b action:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
388 |
"/ |f| |
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 |
"/ f := FontPanel |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
391 |
"/ fontFromUserInitial:(model value) |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
392 |
"/ 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
|
393 |
"/ filter:filter. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
394 |
"/ f notNil ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
395 |
"/ model == allOfThem ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
396 |
"/ models do:[:m | m value:f]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
397 |
"/ labels do:[:l | l font:f] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
398 |
"/ ] ifFalse:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
399 |
"/ model value:f. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
400 |
"/ lbl font:f. |
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 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
403 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
404 |
"/ model == allOfThem ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
405 |
"/ box addVerticalSpace |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
406 |
"/ ] |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
407 |
"/ ]. |
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 addAbortButton; addOkButton. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
410 |
"/ (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
|
411 |
"/ action:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
412 |
"/ "/ fetch defaults |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
413 |
"/ View readStyleSheetAndUpdateAllStyleCaches. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
414 |
"/ labelDef value: Label defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
415 |
"/ buttonDef value: Button defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
416 |
"/ listDef value: SelectionInListView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
417 |
"/ menuDef value: MenuView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
418 |
"/ textDef value: TextView defaultFont. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
419 |
"/ ]. |
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 |
"/ box open. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
422 |
"/ box accepted ifTrue:[ |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
423 |
"/ Label defaultFont:labelDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
424 |
"/ Button defaultFont:buttonDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
425 |
"/ Toggle defaultFont:buttonDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
426 |
"/ SelectionInListView defaultFont:listDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
427 |
"/ MenuView defaultFont:menuDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
428 |
"/ PullDownMenu defaultFont:menuDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
429 |
"/ TextView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
430 |
"/ EditTextView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
431 |
"/ CodeView defaultFont:textDef value. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
432 |
"/ ]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
433 |
"/ box destroy. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
434 |
"/ ^ box accepted |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
435 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
436 |
"Modified: / 15.9.1998 / 22:04:56 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
437 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
438 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
439 |
reopenLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
440 |
"reopen a new launcher. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
441 |
for now (since style & language settings currently do |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
442 |
not affect living views ...) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
443 |
WARNING: bad design: Message known in LauncherDialogs" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
444 |
|
2034
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
445 |
|oldOrigin contents builder newLauncher| |
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
446 |
|
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
447 |
oldOrigin := self window origin. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
448 |
contents := transcript endEntry; list. |
2034
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
449 |
builder := self class openAt:oldOrigin. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
450 |
builder window waitUntilVisible. |
2034
b3537f805381
force reopen at same position (fvwm & mwm)
Claus Gittinger <cg@exept.de>
parents:
2021
diff
changeset
|
451 |
builder window origin:oldOrigin. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
452 |
newLauncher := builder application. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
453 |
newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
454 |
^ newLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
455 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
456 |
"Modified: / 4.8.1998 / 17:08:33 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
457 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
458 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
459 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
460 |
!AbstractLauncherApplication methodsFor:'queries'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
461 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
462 |
processName |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
463 |
"for monitors only - my name" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
464 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
465 |
^ 'ST/X Launcher' |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
466 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
467 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
468 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
469 |
transcript |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
470 |
"my transcript" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
471 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
472 |
^ transcript |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
473 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
474 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
475 |
!AbstractLauncherApplication methodsFor:'startup / release'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
476 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
477 |
addTopViewsToCurrentProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
478 |
"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
|
479 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
480 |
^ self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
481 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
482 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
483 |
|
2040 | 484 |
requestForWindowClose |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
485 |
"close request from windowing system (window close); |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
486 |
confirm and ask if closing of launcher only or |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
487 |
a smalltalk-exit is wanted" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
488 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
489 |
|answer| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
490 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
491 |
answer := Dialog |
2165 | 492 |
confirmWithCancel:(resources string:'Close %1 only or exit Smalltalk (close all)?' with:self class name) |
493 |
labels:(resources array:#('Cancel' 'Close' 'Exit')) |
|
494 |
default:3. |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
495 |
answer isNil ifTrue:[ |
2165 | 496 |
"/ cancel |
497 |
^ false |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
498 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
499 |
|
2165 | 500 |
answer == false ifTrue:[ |
501 |
^ true |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
502 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
503 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
504 |
self exit |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
505 |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
506 |
"Modified: / 20.5.1999 / 17:24:47 / cg" |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
507 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
508 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
509 |
saveAndTerminateRequest |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
510 |
"some windowManagers can send this, to shutDown an application |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
511 |
but let it save its state before, for later restart. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
512 |
Although I have not yet encountered such a windowManager, |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
513 |
we are already prepared for this ;-)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
514 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
515 |
self snapshot. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
516 |
super saveAndTerminateRequest |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
517 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
518 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
519 |
|
2001 | 520 |
!AbstractLauncherApplication methodsFor:'user actions - about'! |
521 |
||
522 |
openLicenseConditions |
|
523 |
"open an HTML browser on the 'LICENCE' document" |
|
524 |
||
525 |
self withWaitCursorDo:[ |
|
526 |
|lang doc| |
|
527 |
||
528 |
Smalltalk releaseIdentification = 'ST/X_free_demo_vsn' ifTrue:[ |
|
529 |
doc := 'english/LICENCE_DEMO_STX.html' |
|
530 |
] ifFalse:[ |
|
531 |
((lang := Smalltalk language) = 'de' |
|
532 |
or:[lang = 'german']) ifTrue:[ |
|
533 |
doc := 'german/LICENCE_STX.html' |
|
534 |
] ifFalse:[ |
|
535 |
doc := 'english/LICENCE_STX.html' |
|
536 |
]. |
|
537 |
]. |
|
538 |
doc := resources at:'LICENCEFILE' default:doc. |
|
539 |
self showDocumentation:('../' , doc) |
|
540 |
] |
|
541 |
||
542 |
"Created: / 5.2.1998 / 21:43:19 / cg" |
|
543 |
"Modified: / 23.4.1998 / 11:45:53 / cg" |
|
544 |
! ! |
|
545 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
546 |
!AbstractLauncherApplication methodsFor:'user actions - classes'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
547 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
548 |
browseAllBreakAndTracePoints |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
549 |
"open a browser showing all breakPointed/traced methods |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
550 |
(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
|
551 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
552 |
SystemBrowser |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
553 |
browseMethods: WrappedMethod allInstances |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
554 |
title:'all breakPointed/traced methods' |
2005
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 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
557 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
558 |
browseImplementors |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
559 |
"open an implementors- browser after asking for a selector" |
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 |
|enterBox selector| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
562 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
563 |
enterBox := EnterBox |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
564 |
title:(resources at:'Browse implementors of:') withCRs |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
565 |
okText:(resources at:'browse') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
566 |
action:[:acceptedString | selector := acceptedString]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
567 |
enterBox showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
568 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
569 |
selector notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
570 |
self withWaitCursorDo:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
571 |
SystemBrowser browseImplementorsOf:selector |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
572 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
573 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
574 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
575 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
576 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
577 |
browseResources |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
578 |
"open a resource- browser after asking for a resource string" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
579 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
580 |
|box resourceHolder valueHolder component rsrc value t anyString| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
581 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
582 |
anyString := resources string:'* any *'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
583 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
584 |
resourceHolder := ValueHolder newString. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
585 |
valueHolder := '*' asValue. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
586 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
587 |
box := DialogBox new. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
588 |
box label:(resources at:'Resource search:'). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
589 |
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
|
590 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
591 |
box addVerticalSpace:10. |
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 |
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
|
594 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
595 |
component := box addComboBoxOn:resourceHolder tabable:true. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
596 |
component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' nil 'needsFix')). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
597 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
598 |
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
|
599 |
component adjust:#left. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
600 |
box addInputFieldOn:valueHolder tabable:true. |
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 |
box addVerticalSpace:10. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
603 |
box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'. |
2048 | 604 |
box addAbortAndOkButtons. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
605 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
606 |
box showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
607 |
box destroy. |
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 |
box accepted ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
610 |
rsrc := resourceHolder value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
611 |
value := valueHolder value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
612 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
613 |
(rsrc size == 0 or:[rsrc = '*' or:[rsrc = anyString]]) ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
614 |
t := 'methods with any resource'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
615 |
rsrc := nil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
616 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
617 |
t := 'methods with #' , rsrc , '-resource'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
618 |
rsrc := rsrc withoutSeparators asSymbol |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
619 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
620 |
(value size == 0 or:[value = '*']) ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
621 |
t := t , ' and any value'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
622 |
value := nil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
623 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
624 |
t := t , ' and value ' , value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
625 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
626 |
self withWaitCursorDo:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
627 |
SystemBrowser browseForResource:rsrc |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
628 |
containing:value |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
629 |
in:(Smalltalk allClasses) |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
630 |
title:t |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
631 |
] |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
632 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
633 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
634 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
635 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
636 |
browseSenders |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
637 |
"open a senders- browser after asking for a selector" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
638 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
639 |
|enterBox selector| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
640 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
641 |
enterBox := EnterBox |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
642 |
title:(resources at:'Browse senders of:') withCRs |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
643 |
okText:(resources at:'browse') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
644 |
action:[:acceptedString | selector := acceptedString]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
645 |
enterBox showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
646 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
647 |
selector notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
648 |
self withWaitCursorDo:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
649 |
SystemBrowser browseAllCallsOn:selector |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
650 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
651 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
652 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
653 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
654 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
655 |
browseUndeclared |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
656 |
"open a browser on methods refering to undeclared variables" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
657 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
658 |
self withWaitCursorDo:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
659 |
SystemBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
660 |
browseReferendsOf:(Smalltalk underclaredPrefix , '*') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
661 |
title:(resources string:'references to undeclared variables') |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
662 |
warnIfNone:true |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
663 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
664 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
665 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
666 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
667 |
removeAllBreakAndTracePoints |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
668 |
"remove all break- and trace points" |
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 |
self withCursor:Cursor execute do:[ MessageTracer cleanup] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
671 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
672 |
! |
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 |
startClassBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
675 |
"open a classBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
676 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
677 |
SystemBrowser askThenBrowseClass |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
678 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
679 |
! |
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 |
startClassHierarchyBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
682 |
"open a classHierarchyBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
683 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
684 |
SystemBrowser askThenBrowseClassHierarchy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
685 |
|
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 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
688 |
startFullClassBrowser |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
689 |
"open a fullClass systemBrowser; asks for class" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
690 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
691 |
SystemBrowser askThenBrowseFullClassProtocol |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
692 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
693 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
694 |
|
2038 | 695 |
!AbstractLauncherApplication methodsFor:'user actions - demos'! |
696 |
||
697 |
startRemoteLauncher |
|
698 |
|host remoteDisplay| |
|
699 |
||
700 |
host := Dialog request:'Remote Launcher on which display:'. |
|
701 |
host size > 0 ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
702 |
(host includes:$:) ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
703 |
host := (host , ':0') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
704 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
705 |
remoteDisplay := XWorkstation new. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
706 |
remoteDisplay := remoteDisplay initializeFor:host. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
707 |
remoteDisplay isNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
708 |
self warn:'Could not connect to display: ''' , host , '''.'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
709 |
^ self |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
710 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
711 |
remoteDisplay startDispatch. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
712 |
remoteDisplay keyboardMap:(Screen current keyboardMap). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
713 |
DeviceWorkstation currentScreenQuerySignal answer:remoteDisplay |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
714 |
do:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
715 |
self class open. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
716 |
] |
2038 | 717 |
]. |
718 |
||
719 |
"Created: / 10.9.1998 / 11:48:42 / cg" |
|
720 |
! ! |
|
721 |
||
2001 | 722 |
!AbstractLauncherApplication methodsFor:'user actions - file'! |
723 |
||
724 |
objectModuleDialog |
|
725 |
"opens a moduleInfo dialog" |
|
726 |
||
727 |
^ LauncherDialogs objectModuleDialogFor:self |
|
728 |
||
729 |
"Modified: / 31.7.1998 / 17:33:24 / cg" |
|
730 |
! |
|
731 |
||
732 |
saveImageAs: aFileName |
|
733 |
"save image in aFilename" |
|
734 |
||
735 |
aFileName notNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
736 |
self withCursor:Cursor write do:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
737 |
(ObjectMemory snapShotOn:aFileName) ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
738 |
self warn:(resources string:'Failed to save snapshot image (disk full or not writable)'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
739 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
740 |
]. |
2001 | 741 |
]. |
742 |
! ! |
|
743 |
||
744 |
!AbstractLauncherApplication methodsFor:'user actions - help'! |
|
745 |
||
746 |
showBookPrintDocument |
|
747 |
"open an HTML browser on the 'book'-printing document" |
|
748 |
||
749 |
self showDocumentation:'BOOK.html' |
|
750 |
! |
|
751 |
||
752 |
startClassDocumentation |
|
753 |
"open an HTML browser on the 'classDoc/TOP' document" |
|
754 |
||
755 |
self showDocumentation:'classDoc/TOP.html' |
|
756 |
||
757 |
! |
|
758 |
||
759 |
startDocumentationIndex |
|
760 |
"open an HTML browser on the 'index' document" |
|
761 |
||
762 |
self showDocumentation:'index.html' |
|
763 |
! |
|
764 |
||
765 |
startDocumentationTool |
|
766 |
"open an HTML browser on the 'TOP' document" |
|
767 |
||
768 |
self showDocumentation:'TOP.html' |
|
769 |
||
770 |
! |
|
771 |
||
772 |
startWhatsNewDocumentation |
|
773 |
"open an HTML browser on the 'whatsNew.html' document" |
|
774 |
||
775 |
self showDocumentation:'whatsNew.html' |
|
776 |
||
777 |
! ! |
|
778 |
||
779 |
!AbstractLauncherApplication methodsFor:'user actions - settings'! |
|
780 |
||
2196 | 781 |
communicationsSettings |
782 |
"open a dialog on misc other settings" |
|
783 |
||
784 |
self settingsDialog:#communicationsSettingsFor: |
|
785 |
||
786 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
787 |
! |
|
788 |
||
2001 | 789 |
compilerSettings |
790 |
"open a dialog on compiler related settings" |
|
791 |
||
792 |
self settingsDialog:#compilerSettingsFor: |
|
793 |
! |
|
794 |
||
795 |
displaySettings |
|
796 |
"open a dialog on display related settings" |
|
797 |
||
798 |
self settingsDialog:#displaySettingsFor: |
|
799 |
||
800 |
"Modified: / 31.7.1998 / 22:45:38 / cg" |
|
801 |
! |
|
802 |
||
803 |
editSettings |
|
804 |
"open a dialog on edit settings" |
|
805 |
||
806 |
self settingsDialog:#editSettingsFor: |
|
807 |
||
808 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
809 |
"Created: / 6.1.1999 / 14:14:48 / cg" |
|
810 |
! |
|
811 |
||
812 |
fontSettings |
|
813 |
"open a dialog on font related settings" |
|
814 |
||
815 |
self settingsDialog:#fontSettingsFor: |
|
816 |
||
817 |
"Modified: / 31.7.1998 / 22:45:44 / cg" |
|
818 |
! |
|
819 |
||
820 |
javaSettings |
|
821 |
"open a dialog on java-subsystem related settings" |
|
822 |
||
823 |
self settingsDialog:#javaSettingsFor: |
|
824 |
||
825 |
"Modified: / 31.7.1998 / 22:46:13 / cg" |
|
826 |
! |
|
827 |
||
828 |
keyboardSetting |
|
829 |
"open a dialog on keyboard related settings" |
|
830 |
||
831 |
self settingsDialog:#keyboardSettingsFor: |
|
832 |
||
833 |
"Modified: / 31.7.1998 / 22:45:56 / cg" |
|
834 |
! |
|
835 |
||
836 |
languageSetting |
|
837 |
"open a dialog on language related settings" |
|
838 |
||
839 |
self settingsDialog:#languageSettingsFor: |
|
840 |
||
841 |
"Modified: / 31.7.1998 / 22:46:13 / cg" |
|
842 |
! |
|
843 |
||
844 |
loadSettings |
|
845 |
"restore settings from a settings-file." |
|
846 |
||
847 |
"a temporary kludge - we need a central systemSettings object for this, |
|
848 |
which can be saved/restored with a single store/read." |
|
849 |
||
850 |
|fileName| |
|
851 |
||
852 |
fileName := Dialog |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
853 |
requestFileName:(resources string:'load settings from:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
854 |
default:'settings.stx' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
855 |
ok:(resources string:'load') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
856 |
abort:(resources string:'cancel') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
857 |
pattern:'*.stx' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
858 |
fromDirectory:nil. |
2021 | 859 |
|
860 |
(fileName size == 0) ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
861 |
"/ canceled |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
862 |
^ self |
2001 | 863 |
]. |
864 |
||
865 |
self withWaitCursorDo:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
866 |
Smalltalk fileIn:fileName. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
867 |
self reOpen |
2001 | 868 |
]. |
869 |
||
870 |
||
871 |
! |
|
872 |
||
873 |
memorySettings |
|
874 |
"open a dialog on objectMemory related settings" |
|
875 |
||
876 |
self settingsDialog:#memorySettingsFor: |
|
877 |
||
878 |
"Modified: / 31.7.1998 / 22:46:33 / cg" |
|
879 |
! |
|
880 |
||
881 |
messageSettings |
|
882 |
"open a dialog on infoMessage related settings" |
|
883 |
||
884 |
self settingsDialog:#messageSettingsFor: |
|
885 |
||
886 |
"Modified: / 31.7.1998 / 22:46:45 / cg" |
|
887 |
! |
|
888 |
||
889 |
miscSettings |
|
890 |
"open a dialog on misc other settings" |
|
891 |
||
892 |
self settingsDialog:#miscSettingsFor: |
|
893 |
||
894 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
895 |
! |
|
896 |
||
897 |
printerSettings |
|
898 |
"open a dialog on printer related settings" |
|
899 |
||
900 |
self settingsDialog:#printerSettingsFor: |
|
901 |
||
902 |
"Modified: / 31.7.1998 / 22:47:05 / cg" |
|
903 |
! |
|
904 |
||
905 |
saveSettings |
|
906 |
"save settings to a settings-file." |
|
907 |
||
908 |
self settingsDialog:#saveSettingsFor: |
|
909 |
||
910 |
"Modified: / 31.7.1998 / 22:48:38 / cg" |
|
911 |
! |
|
912 |
||
913 |
settingsDialog:symbol |
|
914 |
"open a dialog on viewStyle related settings" |
|
915 |
||
2196 | 916 |
|handler| |
917 |
||
918 |
RegisteredMenuHandlers notNil ifTrue:[ |
|
919 |
handler := RegisteredMenuHandlers at:symbol ifAbsent:nil. |
|
920 |
]. |
|
921 |
handler isNil ifTrue:[ |
|
922 |
handler := LauncherDialogs |
|
923 |
]. |
|
924 |
handler perform:symbol with:self. |
|
2001 | 925 |
|
926 |
"Modified: / 31.7.1998 / 22:47:33 / cg" |
|
927 |
! |
|
928 |
||
929 |
sourceAndDebuggerSettings |
|
930 |
"open a dialog on misc other settings" |
|
931 |
||
932 |
self settingsDialog:#sourceAndDebuggerSettingsFor: |
|
933 |
||
934 |
"Modified: / 31.7.1998 / 22:47:21 / cg" |
|
935 |
! |
|
936 |
||
937 |
toolSettings |
|
938 |
"open a dialog on tool settings" |
|
939 |
||
940 |
self settingsDialog:#toolSettingsFor: |
|
941 |
||
942 |
"Modified: / 31.7.1998 / 22:46:56 / cg" |
|
943 |
"Created: / 13.10.1998 / 15:50:53 / cg" |
|
944 |
! |
|
945 |
||
946 |
viewStyleSetting |
|
947 |
"open a dialog on viewStyle related settings" |
|
948 |
||
949 |
self settingsDialog:#viewStyleSettingsFor: |
|
950 |
||
951 |
"Modified: / 31.7.1998 / 22:47:33 / cg" |
|
952 |
! ! |
|
953 |
||
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
954 |
!AbstractLauncherApplication methodsFor:'user actions - system'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
955 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
956 |
compressingGarbageCollect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
957 |
"perform a compressing garbageCollect" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
958 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
959 |
self withWaitCursorDo:[ObjectMemory verboseGarbageCollect] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
960 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
961 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
962 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
963 |
garbageCollect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
964 |
"perform a non-compressing garbageCollect" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
965 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
966 |
self withWaitCursorDo:[ObjectMemory reclaimSymbols] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
967 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
968 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
969 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
970 |
startStopEventTrace |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
971 |
"start/stop event tracing for a particular view" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
972 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
973 |
|v wg| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
974 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
975 |
v := Screen current viewFromUser. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
976 |
v notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
977 |
v := v topView. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
978 |
wg := v windowGroup. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
979 |
wg notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
980 |
"/ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
981 |
"/ toggle eventTrace in its windowGroup |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
982 |
"/ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
983 |
wg traceEvents:(wg preEventHook isNil) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
984 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
985 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
986 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
987 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
988 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
989 |
!AbstractLauncherApplication methodsFor:'user actions - tools'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
990 |
|
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
991 |
inspectWorkspaceVariables |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
992 |
"remove workspace variables" |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
993 |
|
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
994 |
Workspace workspaceVariables inspect |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
995 |
! |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
996 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
997 |
newProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
998 |
"creates a new project & opens a projectView for it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
999 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1000 |
Project notNil ifTrue: [(ProjectView for: Project new) open] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1001 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1002 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1003 |
openTerminal |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1004 |
self openApplication:#VT100TerminalView |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1005 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1006 |
"Created: / 27.7.1998 / 12:48:30 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1007 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1008 |
|
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1009 |
removeAllWorkspaceVariables |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1010 |
"remove workspace variables" |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1011 |
|
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1012 |
Workspace removeAllWorkspaceVariables |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1013 |
! |
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
1014 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1015 |
selectProject |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1016 |
"asks for and switch to another project" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1017 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1018 |
|list box| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1019 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1020 |
Project notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1021 |
list := Project allInstances. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1022 |
box := ListSelectionBox new. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1023 |
box list:(list collect:[:p | p name]). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1024 |
box title:(resources string:'select a project'). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1025 |
box action:[:selection | |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1026 |
|project| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1027 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1028 |
project := list detect:[:p | p name = selection] ifNone:[nil]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1029 |
project isNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1030 |
transcript showCR:'no such project.' |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1031 |
] ifFalse:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1032 |
project showViews. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1033 |
Project current:project |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1034 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1035 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1036 |
box showAtPointer. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1037 |
box destroy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1038 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1039 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1040 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1041 |
startChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1042 |
"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
|
1043 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1044 |
self openApplication:(UserPreferences current changesBrowserClass) |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1045 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1046 |
"Modified: / 17.10.1998 / 14:38:18 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1047 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1048 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1049 |
startNewChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1050 |
"opens the new changeBrowser" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1051 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1052 |
self openApplication:#NewChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1053 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1054 |
"Created: / 6.6.1998 / 19:47:26 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1055 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1056 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1057 |
startNewLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1058 |
"opens the new launcher" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1059 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1060 |
NewLauncher isNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1061 |
^ 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
|
1062 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1063 |
NewLauncher openAt:(self window origin) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1064 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1065 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1066 |
|
2111
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1067 |
startOldChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1068 |
"opens the old changeBrowser" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1069 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1070 |
self openApplication:#ChangesBrowser |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1071 |
|
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1072 |
"Created: / 6.6.1998 / 19:47:26 / cg" |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1073 |
! |
b36bdfb0af38
moved startChangesBrowser from NewLauncher to here.
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
1074 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1075 |
startOldLauncher |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1076 |
"opens the old launcher" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1077 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1078 |
Launcher isNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1079 |
^ 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
|
1080 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1081 |
Launcher openAt:(self window origin) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1082 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1083 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1084 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1085 |
!AbstractLauncherApplication methodsFor:'user actions - windows'! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1086 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1087 |
deIconifyAllWindows |
2144 | 1088 |
|setOfViews currentScreen| |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1089 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1090 |
setOfViews := Project current views asIdentitySet. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1091 |
setOfViews addAll:(Project defaultProject views). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1092 |
|
2144 | 1093 |
currentScreen := Screen current. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1094 |
setOfViews do:[:aTopView | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1095 |
aTopView device == currentScreen ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1096 |
aTopView expand |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1097 |
]. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1098 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1099 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1100 |
" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1101 |
Transcript topView application deIconifyAllWindows |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1102 |
" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1103 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1104 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1105 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1106 |
findAndDestroyWindow |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1107 |
"find a window (by name) and destroy it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1108 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1109 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1110 |
v := self findWindow:'select view to close:'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1111 |
v notNil ifTrue:[v destroy] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1112 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1113 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1114 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1115 |
findAndRaiseWindow |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1116 |
"find a window (by name) and raise it" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1117 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1118 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1119 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1120 |
v := self findWindow:'select view to raise deiconified:'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1121 |
v notNil ifTrue:[v raiseDeiconified] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1122 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1123 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1124 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1125 |
fullScreenHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1126 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1127 |
save the contents of the whole screen." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1128 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1129 |
Processor |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1130 |
addTimedBlock:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1131 |
self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1132 |
saveScreenImage:(Image fromScreen) |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1133 |
defaultName:'screen' |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1134 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1135 |
afterSeconds:1 |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1136 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1137 |
! |
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 |
iconifyAllWindows |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1140 |
|setOfViews currentScreen| |
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 |
setOfViews := Project current views asIdentitySet. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1143 |
setOfViews addAll:(Project defaultProject views). |
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 |
currentScreen := Screen current. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1146 |
setOfViews do:[:aTopView | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1147 |
aTopView device == currentScreen ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1148 |
aTopView collapse |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1149 |
] |
2005
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 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1154 |
screenHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1155 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1156 |
let user specify a rectangular area on the screen |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1157 |
and save its contents." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1158 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1159 |
|area| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1160 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1161 |
Processor |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1162 |
addTimedBlock:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1163 |
[Screen current leftButtonPressed] whileTrue:[Delay waitForSeconds:0.05]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1164 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1165 |
area := Rectangle fromUser. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1166 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1167 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
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 |
afterSeconds:1 |
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 |
"Modified: / 18.8.1998 / 15:00:42 / cg" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1173 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1174 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1175 |
startWindowTreeView |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1176 |
"open a windowTree view (on a topView)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1177 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1178 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1179 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1180 |
WindowTreeView isNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1181 |
^ 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
|
1182 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1183 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1184 |
v := self pickAView. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1185 |
v notNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1186 |
WindowTreeView openOn:v topView |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1187 |
] |
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 |
! |
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 |
viewDestroy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1192 |
"let user pick a view and destroy it. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1193 |
Even allow destroying non-smalltalk views |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1194 |
(also for views which I forgot due to some error)" |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1195 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1196 |
|device v id i c| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1197 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1198 |
(Delay forSeconds:1) wait. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1199 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1200 |
device := Screen current. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1201 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1202 |
i isNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1203 |
c := Cursor crossHair |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1204 |
] ifFalse:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1205 |
c := Cursor fromImage:i |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1206 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1207 |
id := device viewIdFromPoint:(device pointFromUserShowing:c). |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1208 |
(v := device viewFromId:id) notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1209 |
v topView destroy. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1210 |
^ self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1211 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1212 |
id = device rootView id ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1213 |
^ self |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1214 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1215 |
(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
|
1216 |
ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1217 |
device destroyView:nil withId:id |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1218 |
]. |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1219 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1220 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1221 |
! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1222 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1223 |
viewHardcopy |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1224 |
"after a second (to allow redraw of views under menu ...), |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1225 |
let user specify a view and save its contents." |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1226 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1227 |
Processor |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1228 |
addTimedBlock:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1229 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1230 |
(v := Screen current viewFromUser) notNil ifTrue:[ |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1231 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1232 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1233 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1234 |
afterSeconds:1 |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1235 |
|
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 |
viewInspect |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1239 |
"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
|
1240 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1241 |
|v| |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1242 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1243 |
(v := self pickAView) notNil ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1244 |
v inspect |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1245 |
] |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1246 |
|
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1247 |
! ! |
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
1248 |
|
2001 | 1249 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs'! |
1250 |
||
2196 | 1251 |
communicationsSettingsFor:requestor |
1252 |
"open a dialog on communications settings" |
|
1253 |
||
1254 |
|box check hasRDoitServer |
|
1255 |
rDoitsEnabled rDoitLogging rDoitErrorLogging rDoitErrorDebugging |
|
1256 |
org_rDoitsEnabled org_rDoitLogging org_rDoitErrorLogging org_rDoitErrorDebugging |
|
1257 |
resources y |
|
1258 |
osiACSEPresent osiROSEPresent osiCMISEPresent |
|
2199 | 1259 |
osiACSEErrorLogging osiACSEConnectionLogging osiACSEDataLogging |
2196 | 1260 |
osiROSEErrorLogging osiROSEResponseLogging osiROSEInvokationLogging |
1261 |
osiCMISEErrorLogging osiCMISEMessageLogging |
|
1262 |
| |
|
1263 |
||
1264 |
resources := requestor class classResources. |
|
1265 |
||
1266 |
"/ |
|
1267 |
"/ extract relevant rdoit settings ... |
|
1268 |
"/ |
|
1269 |
rDoitsEnabled := rDoitLogging := rDoitErrorLogging := false. |
|
1270 |
(hasRDoitServer := RDoItServer notNil) ifTrue:[ |
|
1271 |
RDoItServer isLoaded ifTrue:[ |
|
1272 |
rDoitsEnabled := RDoItServer serverRunning. |
|
1273 |
rDoitLogging := RDoItServer isLogging. |
|
1274 |
rDoitErrorLogging := RDoItServer isErrorLogging. |
|
1275 |
rDoitErrorDebugging := RDoItServer isErrorCatching not. |
|
1276 |
] |
|
1277 |
]. |
|
1278 |
org_rDoitsEnabled := rDoitsEnabled. |
|
1279 |
org_rDoitLogging := rDoitLogging. |
|
1280 |
org_rDoitErrorLogging := rDoitErrorLogging. |
|
1281 |
org_rDoitErrorDebugging := rDoitErrorDebugging. |
|
1282 |
||
1283 |
rDoitsEnabled := rDoitsEnabled asValue. |
|
1284 |
rDoitLogging := rDoitLogging asValue. |
|
1285 |
rDoitErrorLogging := rDoitErrorLogging asValue. |
|
1286 |
rDoitErrorDebugging := rDoitErrorDebugging asValue. |
|
1287 |
||
1288 |
"/ |
|
1289 |
"/ osi settings ... |
|
1290 |
"/ |
|
2204
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1291 |
osiACSEPresent := OSI::ACSE notNil |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1292 |
and:[OSI::ACSE isLoaded]. |
2196 | 1293 |
osiROSEPresent := OSI::ROSE notNil |
1294 |
and:[OSI::ROSE isLoaded]. |
|
1295 |
osiCMISEPresent := OSI::CMISE notNil |
|
1296 |
and:[OSI::CMISE isLoaded]. |
|
1297 |
||
1298 |
osiACSEPresent ifTrue:[ |
|
2204
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1299 |
osiACSEErrorLogging := OSI::ACSE errorLogging asValue. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1300 |
osiACSEConnectionLogging := OSI::ACSE connectionLogging asValue. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1301 |
osiACSEDataLogging := OSI::ACSE dataLogging asValue. |
2196 | 1302 |
]. |
1303 |
osiROSEPresent ifTrue:[ |
|
1304 |
osiROSEErrorLogging := OSI::ROSE errorLogging asValue. |
|
1305 |
osiROSEInvokationLogging := OSI::ROSE invokationLogging asValue. |
|
1306 |
osiROSEResponseLogging := OSI::ROSE responseLogging asValue. |
|
1307 |
]. |
|
1308 |
osiCMISEPresent ifTrue:[ |
|
1309 |
osiCMISEErrorLogging := OSI::CMISE errorLogging asValue. |
|
1310 |
osiCMISEMessageLogging := OSI::CMISE messageLogging asValue. |
|
1311 |
]. |
|
1312 |
||
1313 |
"/ |
|
1314 |
"/ create a box on those values ... |
|
1315 |
"/ |
|
1316 |
box := DialogBox new. |
|
1317 |
box label:(resources string:'Communications settings'). |
|
1318 |
||
1319 |
check := box addCheckBox:(resources string:'Remote doits enabled') on:rDoitsEnabled. |
|
1320 |
hasRDoitServer ifFalse:[ |
|
1321 |
check disable |
|
1322 |
]. |
|
1323 |
box leftIndent:20. |
|
1324 |
y := box yPosition. |
|
1325 |
check := box addCheckBox:(resources string:'Log errors') on:rDoitErrorLogging. |
|
1326 |
check width:0.4. |
|
1327 |
check enableChannel:rDoitsEnabled. |
|
1328 |
hasRDoitServer ifFalse:[ |
|
1329 |
check disable |
|
1330 |
]. |
|
1331 |
box yPosition:y. |
|
1332 |
check := box addCheckBox:(resources string:'Log requests') on:rDoitLogging. |
|
1333 |
check left:0.4; width:0.5. |
|
1334 |
check enableChannel:rDoitsEnabled. |
|
1335 |
hasRDoitServer ifFalse:[ |
|
1336 |
check disable |
|
1337 |
]. |
|
1338 |
check := box addCheckBox:(resources string:'Debug errors') on:rDoitErrorDebugging. |
|
1339 |
check width:0.4. |
|
1340 |
check enableChannel:rDoitsEnabled. |
|
1341 |
hasRDoitServer ifFalse:[ |
|
1342 |
check disable |
|
1343 |
]. |
|
1344 |
box leftIndent:0. |
|
1345 |
||
1346 |
box addHorizontalLine. |
|
1347 |
||
2205 | 1348 |
box addTextLabel:'OSI Protocols (addOn package)'. |
2196 | 1349 |
|
2198 | 1350 |
y := box yPosition. |
1351 |
check := box addCheckBox:(resources string:'Log OSI-ACSE errors') on:osiACSEErrorLogging. |
|
1352 |
osiACSEPresent ifFalse:[ |
|
1353 |
check disable |
|
1354 |
]. |
|
1355 |
y := box yPosition. |
|
2199 | 1356 |
check := box addCheckBox:(resources string:'Log OSI-ACSE connection') on:osiACSEConnectionLogging. |
2198 | 1357 |
osiACSEPresent ifFalse:[ |
1358 |
check disable |
|
1359 |
]. |
|
1360 |
y := box yPosition. |
|
1361 |
check := box addCheckBox:(resources string:'Log OSI-ACSE data xfers') on:osiACSEDataLogging. |
|
1362 |
osiACSEPresent ifFalse:[ |
|
1363 |
check disable |
|
1364 |
]. |
|
1365 |
||
1366 |
box addVerticalSpace. |
|
1367 |
||
1368 |
y := box yPosition. |
|
1369 |
check := box addCheckBox:(resources string:'Log OSI-ROSE errors') on:osiROSEErrorLogging. |
|
1370 |
osiROSEPresent ifFalse:[ |
|
1371 |
check disable |
|
1372 |
]. |
|
1373 |
y := box yPosition. |
|
1374 |
check := box addCheckBox:(resources string:'Log OSI-ROSE invokations') on:osiROSEInvokationLogging. |
|
1375 |
osiROSEPresent ifFalse:[ |
|
1376 |
check disable |
|
1377 |
]. |
|
1378 |
y := box yPosition. |
|
1379 |
check := box addCheckBox:(resources string:'Log OSI-ROSE responses') on:osiROSEResponseLogging. |
|
1380 |
osiROSEPresent ifFalse:[ |
|
1381 |
check disable |
|
1382 |
]. |
|
1383 |
||
1384 |
box addVerticalSpace. |
|
1385 |
||
1386 |
y := box yPosition. |
|
1387 |
check := box addCheckBox:(resources string:'Log OSI-CMISE errors') on:osiCMISEErrorLogging. |
|
1388 |
osiCMISEPresent ifFalse:[ |
|
1389 |
check disable |
|
1390 |
]. |
|
1391 |
y := box yPosition. |
|
1392 |
check := box addCheckBox:(resources string:'Log OSI-CMISE messages') on:osiCMISEMessageLogging. |
|
1393 |
osiCMISEPresent ifFalse:[ |
|
1394 |
check disable |
|
2196 | 1395 |
]. |
1396 |
||
1397 |
box |
|
1398 |
addHelpButtonFor:'Launcher/communicationsSettings.html'; |
|
1399 |
addAbortAndOkButtons. |
|
1400 |
||
1401 |
"/ |
|
1402 |
"/ show the box ... |
|
1403 |
"/ |
|
1404 |
box open. |
|
1405 |
||
1406 |
"/ |
|
1407 |
"/ update system settings |
|
1408 |
"/ |
|
1409 |
box accepted ifTrue:[ |
|
1410 |
hasRDoitServer ifTrue:[ |
|
1411 |
(rDoitLogging value ~~ org_rDoitLogging |
|
1412 |
or:[rDoitErrorDebugging value ~~ org_rDoitErrorDebugging |
|
1413 |
or:[rDoitErrorLogging value ~~ org_rDoitErrorLogging |
|
1414 |
or:[rDoitsEnabled value ~~ org_rDoitsEnabled]]]) ifTrue:[ |
|
1415 |
RDoItServer autoload. |
|
1416 |
RDoItServer logging:(rDoitLogging value). |
|
1417 |
RDoItServer errorLogging:(rDoitErrorLogging value). |
|
1418 |
RDoItServer errorCatching:(rDoitErrorDebugging value not). |
|
1419 |
rDoitsEnabled := rDoitsEnabled value. |
|
1420 |
rDoitsEnabled ~~ RDoItServer serverRunning ifTrue:[ |
|
1421 |
rDoitsEnabled ifFalse:[ |
|
1422 |
RDoItServer killAll |
|
1423 |
] ifTrue:[ |
|
1424 |
RDoItServer start. |
|
1425 |
"/ must wait a bit; give it a chance to |
|
1426 |
"/ really start (before checking) |
|
1427 |
Delay waitForSeconds:0.2. |
|
1428 |
RDoItServer serverRunning ifFalse:[ |
|
1429 |
self warn:'RDoit startup failed (see stderr).' |
|
1430 |
] |
|
1431 |
] |
|
1432 |
]. |
|
1433 |
]. |
|
1434 |
]. |
|
1435 |
osiACSEPresent ifTrue:[ |
|
2204
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1436 |
OSI::ACSE errorLogging:osiACSEErrorLogging value. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1437 |
OSI::ACSE connectionLogging:osiACSEConnectionLogging value. |
5e6c36eaba35
replaced ApliConnection by ACSE
Claus Gittinger <cg@exept.de>
parents:
2203
diff
changeset
|
1438 |
OSI::ACSE dataLogging:osiACSEDataLogging value. |
2196 | 1439 |
]. |
1440 |
osiROSEPresent ifTrue:[ |
|
1441 |
OSI::ROSE errorLogging:osiROSEErrorLogging value. |
|
1442 |
OSI::ROSE invokationLogging:osiROSEInvokationLogging value. |
|
1443 |
OSI::ROSE responseLogging:osiROSEResponseLogging value. |
|
1444 |
]. |
|
1445 |
osiCMISEPresent ifTrue:[ |
|
1446 |
OSI::CMISE errorLogging:osiCMISEErrorLogging value. |
|
1447 |
OSI::CMISE messageLogging:osiCMISEMessageLogging value. |
|
1448 |
]. |
|
1449 |
]. |
|
1450 |
box destroy |
|
1451 |
||
1452 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
1453 |
"Modified: / 20.5.1999 / 18:33:55 / cg" |
|
1454 |
! |
|
1455 |
||
2001 | 1456 |
compilerSettingsFor:requestor |
1457 |
"open a dialog on compiler related settings" |
|
1458 |
||
1459 |
|box warnings warnSTX warnUnderscore warnDollar warnOldStyle |
|
1460 |
allowDollar allowUnderscore immutableArrays |
|
1461 |
warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox |
|
1462 |
warnCompatibility warnCompatibilityBox warnDollarBox |
|
2018 | 1463 |
stcCompilation compilationList stcCompilationOptions |
1464 |
historyLines fullHistoryUpdate |
|
2001 | 1465 |
catchMethodRedefs catchClassRedefs keepSourceOptions keepSource |
1466 |
constantFoldingOptions constantFolding justInTimeCompilation |
|
2019 | 1467 |
warnEnabler check component oldIndent supportsJustInTimeCompilation y |
2001 | 1468 |
y2 fullDebugSupport yMax |
1469 |
compileLazy loadBinaries canLoadBinaries strings idx thisIsADemoVersion |
|
1470 |
resources stcSetupButt| |
|
1471 |
||
1472 |
resources := requestor class classResources. |
|
1473 |
||
1474 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
1475 |
loadBinaries := Smalltalk loadBinaries asValue. |
|
1476 |
compileLazy := Autoload compileLazy asValue. |
|
1477 |
||
1478 |
warnings := Compiler warnings asValue. |
|
1479 |
||
1480 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
1481 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
1482 |
warnDollar := Compiler warnDollarInIdentifier asValue. |
|
1483 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
|
1484 |
warnCommonMistakes := Compiler warnCommonMistakes asValue. |
|
1485 |
warnCompatibility := Compiler warnPossibleIncompatibilities asValue. |
|
1486 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
|
1487 |
allowDollar := Compiler allowDollarInIdentifier asValue. |
|
1488 |
immutableArrays := Compiler arraysAreImmutable asValue. |
|
1489 |
||
1490 |
constantFoldingOptions := #( nil #level1 #level2 #full ). |
|
1491 |
constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')). |
|
1492 |
constantFolding selectionIndex:3. |
|
1493 |
||
1494 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
|
1495 |
thisIsADemoVersion ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1496 |
stcCompilationOptions := #( never). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1497 |
strings := #('never'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1498 |
idx := 1. |
2001 | 1499 |
] ifFalse:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1500 |
stcCompilationOptions := #( always default never). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1501 |
strings := #('always' 'primitive code only' 'never'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1502 |
idx := 2. |
2001 | 1503 |
]. |
1504 |
||
1505 |
stcCompilation := SelectionInList new list:(resources array:strings). |
|
1506 |
stcCompilation selectionIndex:idx. |
|
1507 |
||
1508 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) |
|
1509 |
ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1510 |
justInTimeCompilation := ObjectMemory justInTimeCompilation. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1511 |
fullDebugSupport := ObjectMemory fullSingleStepSupport. |
2001 | 1512 |
] ifFalse:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1513 |
justInTimeCompilation := false. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1514 |
fullDebugSupport := (Compiler lineNumberInfo == #full) asValue. |
2001 | 1515 |
]. |
1516 |
justInTimeCompilation := justInTimeCompilation asValue. |
|
1517 |
fullDebugSupport := fullDebugSupport asValue. |
|
1518 |
||
1519 |
catchMethodRedefs := Class catchMethodRedefinitions asValue. |
|
1520 |
catchClassRedefs := Class catchClassRedefinitions asValue. |
|
1521 |
historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]]. |
|
1522 |
historyLines ifFalse:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1523 |
fullHistoryUpdate := false asValue |
2001 | 1524 |
] ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1525 |
fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue. |
2001 | 1526 |
]. |
1527 |
historyLines := historyLines asValue. |
|
1528 |
||
1529 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
|
1530 |
keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )). |
|
1531 |
keepSource selectionIndex:1. |
|
1532 |
||
1533 |
warnEnabler := [ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1534 |
warnings value ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1535 |
warnSTXBox enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1536 |
warnOldStyleBox enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1537 |
warnCommonMistakesBox enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1538 |
warnCompatibilityBox enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1539 |
allowUnderscore value ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1540 |
warnUnderscoreBox enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1541 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1542 |
warnUnderscoreBox disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1543 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1544 |
allowDollar value ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1545 |
warnDollarBox enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1546 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1547 |
warnDollarBox disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1548 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1549 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1550 |
warnSTXBox disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1551 |
warnUnderscoreBox disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1552 |
warnDollarBox disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1553 |
warnOldStyleBox disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1554 |
warnCommonMistakesBox disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1555 |
warnCompatibilityBox disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1556 |
]]. |
2001 | 1557 |
|
1558 |
warnings onChangeSend:#value to:warnEnabler. |
|
1559 |
allowUnderscore onChangeSend:#value to:warnEnabler. |
|
1560 |
allowDollar onChangeSend:#value to:warnEnabler. |
|
1561 |
||
1562 |
box := DialogBox new. |
|
1563 |
box label:(resources string:'Compiler settings'). |
|
1564 |
||
1565 |
y := box yPosition. |
|
1566 |
check := box addCheckBox:(resources string:'catch method redefinitions') on:catchMethodRedefs. |
|
1567 |
check width:0.5. |
|
1568 |
||
1569 |
box yPosition:y. |
|
1570 |
check := box addCheckBox:(resources string:'catch class redefinitions') on:catchClassRedefs. |
|
1571 |
check left:0.5; width:0.5. |
|
1572 |
||
1573 |
y := box yPosition. |
|
1574 |
check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines. |
|
1575 |
check width:0.5. |
|
1576 |
HistoryManager isNil ifTrue:[check disable]. |
|
1577 |
box yPosition:y. |
|
1578 |
check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate. |
|
1579 |
check left:0.5; width:0.5. |
|
1580 |
HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines]. |
|
1581 |
||
1582 |
box addPopUpList:(resources string:'fileIn source mode:') on:keepSource. |
|
1583 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
|
1584 |
||
1585 |
box addHorizontalLine. |
|
1586 |
||
1587 |
box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy. |
|
1588 |
check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries. |
|
1589 |
canLoadBinaries ifFalse:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1590 |
loadBinaries value:false. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1591 |
check disable |
2001 | 1592 |
]. |
1593 |
supportsJustInTimeCompilation ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1594 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1595 |
addCheckBox:(resources string:'just in time compilation to machine code') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1596 |
on:justInTimeCompilation. |
2001 | 1597 |
]. |
1598 |
||
1599 |
box addHorizontalLine. |
|
1600 |
||
1601 |
ObjectFileLoader notNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1602 |
compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1603 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1604 |
thisIsADemoVersion ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1605 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1606 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1607 |
stcSetupButt := box addComponent:(Button label:(resources string:'stc compilation parameters...') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1608 |
action:[|manager| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1609 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1610 |
self stcCompilerSettingsFor:requestor. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1611 |
]). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1612 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1613 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1614 |
box addHorizontalLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1615 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1616 |
"/ if there is no compiler around, |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1617 |
"/ change to compile nothing, and disable the checkBoxes |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1618 |
Compiler canCreateMachineCode ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1619 |
stcCompilation selectionIndex:(3 min:stcCompilationOptions size). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1620 |
compilationList disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1621 |
]. |
2001 | 1622 |
]. |
1623 |
||
1624 |
y := box yPosition. |
|
1625 |
||
1626 |
component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore. |
|
1627 |
component width:0.4. |
|
1628 |
||
1629 |
component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar. |
|
1630 |
component width:0.4. |
|
1631 |
||
1632 |
component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays. |
|
1633 |
component width:0.4. |
|
1634 |
y2 := box yPosition. |
|
1635 |
||
1636 |
box yPosition:y. |
|
1637 |
box leftIndent:0. |
|
1638 |
||
1639 |
component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding. |
|
1640 |
component superView left:0.5; width:0.5. |
|
1641 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
|
1642 |
||
1643 |
component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport. |
|
1644 |
component left:0.5; width:0.4. |
|
1645 |
box yPosition:(box yPosition max:y2). |
|
1646 |
||
1647 |
||
1648 |
box addHorizontalLine. |
|
1649 |
||
1650 |
box addCheckBox:(resources string:'warnings') on:warnings. |
|
1651 |
"/ box addVerticalSpace. |
|
1652 |
oldIndent := box leftIndent. |
|
1653 |
box leftIndent:30. |
|
1654 |
||
1655 |
y := box yPosition. |
|
1656 |
||
1657 |
warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX. |
|
1658 |
warnSTXBox width:0.4. |
|
1659 |
||
1660 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore. |
|
1661 |
warnUnderscoreBox width:0.4. |
|
1662 |
||
1663 |
warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar. |
|
1664 |
warnDollarBox width:0.4. |
|
1665 |
||
1666 |
yMax := box yPosition. |
|
1667 |
||
1668 |
box yPosition:y. |
|
1669 |
box leftIndent:0. |
|
1670 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle. |
|
1671 |
warnOldStyleBox left:0.5; width:0.4. |
|
1672 |
||
1673 |
warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes. |
|
1674 |
warnCommonMistakesBox left:0.5; width:0.4. |
|
1675 |
||
1676 |
warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility. |
|
1677 |
warnCompatibilityBox left:0.5; width:0.4. |
|
1678 |
||
1679 |
box leftIndent:oldIndent. |
|
1680 |
box yPosition:(yMax max: box yPosition). |
|
1681 |
||
1682 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1683 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1684 |
addAbortAndOkButtons. |
2001 | 1685 |
|
1686 |
warnEnabler value. |
|
1687 |
box open. |
|
1688 |
||
1689 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1690 |
HistoryManager notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1691 |
HistoryManager fullHistoryUpdate:fullHistoryUpdate value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1692 |
historyLines value ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1693 |
HistoryManager activate |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1694 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1695 |
HistoryManager deactivate |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1696 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1697 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1698 |
Class catchMethodRedefinitions:catchMethodRedefs value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1699 |
Class catchClassRedefinitions:catchClassRedefs value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1700 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1701 |
Compiler warnings:warnings value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1702 |
Compiler warnSTXSpecials:warnSTX value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1703 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1704 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1705 |
Compiler warnDollarInIdentifier:warnDollar value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1706 |
Compiler warnCommonMistakes:warnCommonMistakes value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1707 |
Compiler warnPossibleIncompatibilities:warnCompatibility value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1708 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1709 |
Compiler allowDollarInIdentifier:allowDollar value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1710 |
Compiler arraysAreImmutable:immutableArrays value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1711 |
fullDebugSupport value ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1712 |
Compiler lineNumberInfo:#full. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1713 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1714 |
Compiler lineNumberInfo:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1715 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1716 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1717 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1718 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1719 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1720 |
supportsJustInTimeCompilation ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1721 |
justInTimeCompilation := justInTimeCompilation value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1722 |
justInTimeCompilation ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1723 |
Method allInstancesDo:[:m | m checked:false]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1724 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1725 |
ObjectMemory justInTimeCompilation:justInTimeCompilation. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1726 |
ObjectMemory fullSingleStepSupport:fullDebugSupport value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1727 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1728 |
Autoload compileLazy:compileLazy value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1729 |
Smalltalk loadBinaries:loadBinaries value. |
2001 | 1730 |
]. |
1731 |
box destroy |
|
1732 |
||
1733 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
|
1734 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
|
1735 |
"Modified: / 5.11.1998 / 14:25:59 / cg" |
|
1736 |
! |
|
1737 |
||
1738 |
displaySettingsFor:requestor |
|
1739 |
"open a dialog on display related settings" |
|
1740 |
||
1741 |
|box listOfSizes sizeInfos |
|
1742 |
sizes sizeNames sizeList sizeX sizeY deepIcons |
|
1743 |
isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList |
|
2162 | 1744 |
y component screen visual clipEncodings clipEncodingSyms clipEncodingList resources |
2164 | 1745 |
| |
2001 | 1746 |
|
1747 |
resources := requestor class classResources. |
|
1748 |
||
1749 |
listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default. |
|
1750 |
listOfSizes == #default ifTrue:[ |
|
2162 | 1751 |
"/ nothing in resource file; offer at least some. |
1752 |
sizeInfos := #( |
|
1753 |
( '11.3'' (235mm x 175mm) LCD' (235 175) ) |
|
1754 |
( '17'' (325mm x 245mm)' (325 245) ) |
|
1755 |
( '19'' (340mm x 270mm)' (340 270) ) |
|
1756 |
( '20'' (350mm x 280mm)' (350 280) ) |
|
1757 |
( '21'' (365mm x 285mm)' (365 285) ) |
|
1758 |
). |
|
2001 | 1759 |
] ifFalse:[ |
2162 | 1760 |
sizeInfos := resources array:listOfSizes. |
2001 | 1761 |
]. |
1762 |
sizeNames := sizeInfos collect:[:entry | entry at:1]. |
|
1763 |
sizes := sizeInfos collect:[:entry | entry at:2]. |
|
1764 |
||
1765 |
screen := Screen current. |
|
1766 |
visual := screen visualType. |
|
1767 |
||
1768 |
isColorMonitor := screen hasColors asValue. |
|
1769 |
deepIcons := screen supportsDeepIcons asValue. |
|
1770 |
useFixPalette := screen fixColors notNil asValue. |
|
1771 |
useFixGrayPalette := screen fixGrayColors notNil asValue. |
|
1772 |
||
1773 |
sizeList := SelectionInList with:sizeNames. |
|
1774 |
sizeX := screen widthInMillimeter asValue. |
|
1775 |
sizeY := screen heightInMillimeter asValue. |
|
1776 |
||
1777 |
clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5). |
|
1778 |
clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5'). |
|
1779 |
clipEncodingList := SelectionInList new. |
|
1780 |
clipEncodingList list:clipEncodings. |
|
1781 |
clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1). |
|
1782 |
||
1783 |
ditherList := SelectionInList new. |
|
1784 |
||
1785 |
(visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[ |
|
2162 | 1786 |
ditherStyles := #('threshold' 'ordered dither' 'error diffusion'). |
1787 |
ditherSyms := #(threshold ordered floydSteinberg). |
|
2001 | 1788 |
] ifFalse:[ |
2162 | 1789 |
visual ~~ #TrueColor ifTrue:[ |
1790 |
ditherStyles := #('nearest color' 'error diffusion'). |
|
1791 |
ditherSyms := #(ordered floydSteinberg). |
|
1792 |
] |
|
2001 | 1793 |
]. |
1794 |
ditherSyms notNil ifTrue:[ |
|
2162 | 1795 |
ditherList list:ditherStyles. |
1796 |
ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold). |
|
2001 | 1797 |
]. |
1798 |
||
1799 |
box := DialogBox new. |
|
1800 |
box label:(resources string:'Display screen settings'). |
|
1801 |
||
1802 |
(box addTextLabel:(resources string:'Actual visible screen area:')) |
|
2162 | 1803 |
adjust:#left. |
2001 | 1804 |
|
1805 |
(box addPopUpList:(resources string:'common sizes:') on:sizeList) |
|
2162 | 1806 |
label:'monitor size'. |
2001 | 1807 |
|
1808 |
idx := sizes findFirst:[:entry | |
|
2162 | 1809 |
((entry at:1) = sizeX value) |
1810 |
and:[((entry at:2) = sizeY value)] |
|
1811 |
]. |
|
2001 | 1812 |
idx ~~ 0 ifTrue:[ |
2162 | 1813 |
sizeList selectionIndex:idx |
2001 | 1814 |
]. |
1815 |
||
1816 |
sizeList onChangeSend:#value to:[ |
|
2162 | 1817 |
|idx| |
1818 |
||
1819 |
idx := sizeList selectionIndex. |
|
1820 |
sizeX value:((sizes at:idx) at:1). |
|
1821 |
sizeY value:((sizes at:idx) at:2). |
|
1822 |
]. |
|
2001 | 1823 |
|
1824 |
y := box yPosition. |
|
2162 | 1825 |
component := box addTextLabel:(resources string:'Screen size:'). |
2001 | 1826 |
component width:0.3; adjust:#right; borderWidth:0. |
1827 |
||
1828 |
box yPosition:y. |
|
1829 |
component := box addInputFieldOn:nil tabable:true. |
|
1830 |
component width:0.25; left:0.3; |
|
2162 | 1831 |
immediateAccept:false; acceptOnLeave:false; |
1832 |
cursorMovementWhenUpdating:#beginOfLine; |
|
1833 |
converter:(PrintConverter new initForInteger); |
|
1834 |
model:sizeX. |
|
2001 | 1835 |
|
1836 |
box yPosition:y. |
|
1837 |
component := box addTextLabel:(' x '). |
|
1838 |
component width:0.1; left:0.55; adjust:#center; borderWidth:0. |
|
1839 |
||
1840 |
box yPosition:y. |
|
1841 |
component := box addInputFieldOn:nil tabable:true. |
|
1842 |
component width:0.25; left:0.65; |
|
2162 | 1843 |
immediateAccept:false; acceptOnLeave:false; |
1844 |
cursorMovementWhenUpdating:#beginOfLine; |
|
1845 |
converter:(PrintConverter new initForInteger); |
|
1846 |
model:sizeY. |
|
2001 | 1847 |
|
1848 |
box yPosition:y. |
|
1849 |
component := box addTextLabel:('(mm)'). |
|
1850 |
component width:0.1; left:0.9; adjust:#center; borderWidth:0. |
|
1851 |
||
1852 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
1853 |
||
1854 |
(box addTextLabel:(resources string:'Screen: depth: %1 visual: %2 (%3)' |
|
2162 | 1855 |
with:Screen current depth printString |
1856 |
with:Screen current visualType |
|
1857 |
with:Screen current serverVendor)) |
|
1858 |
adjust:#left. |
|
2001 | 1859 |
|
1860 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
1861 |
||
2162 | 1862 |
box addCheckBox:(resources string:'Color monitor') on:isColorMonitor. |
2001 | 1863 |
|
1864 |
visual == #PseudoColor ifTrue:[ |
|
2162 | 1865 |
box addVerticalSpace. |
1866 |
component := box addCheckBox:(resources string:'Use fix color palette %1' with:'(4x8x4)') on:useFixPalette. |
|
1867 |
||
1868 |
box addVerticalSpace. |
|
1869 |
component := box addCheckBox:(resources string:'Use fix gray color palette %1' with:'(32)') on:useFixGrayPalette. |
|
2001 | 1870 |
]. |
1871 |
||
1872 |
ditherSyms notNil ifTrue:[ |
|
2162 | 1873 |
box addVerticalSpace. |
1874 |
component := box addPopUpList:(resources string:'Amage display:') on:ditherList. |
|
1875 |
component defaultLabel:'image display'. |
|
1876 |
component superView horizontalLayout:#leftSpace. |
|
2001 | 1877 |
]. |
1878 |
||
1879 |
box addVerticalSpace. |
|
2162 | 1880 |
box addCheckBox:(resources string:'Allow colored/grayscale icons') on:deepIcons. |
1881 |
||
2001 | 1882 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
1883 |
||
2162 | 1884 |
component := box addPopUpList:(resources string:'ClipBoard encoding:') on:clipEncodingList. |
2001 | 1885 |
component superView horizontalLayout:#leftSpace. |
1886 |
||
1887 |
box |
|
2162 | 1888 |
addHelpButtonFor:'Launcher/screenSettings.html'; |
1889 |
addAbortAndOkButtons. |
|
2001 | 1890 |
box open. |
1891 |
||
1892 |
box accepted ifTrue:[ |
|
2162 | 1893 |
Image flushDeviceImages. |
1894 |
||
1895 |
screen visualType == #PseudoColor ifTrue:[ |
|
1896 |
useFixPalette value ifTrue:[ |
|
1897 |
Color colorAllocationFailSignal handle:[:ex | |
|
1898 |
self warn:(resources string:'Could not allocate colors.'). |
|
1899 |
] do:[ |
|
1900 |
Color getColorsRed:4 green:8 blue:4 on:screen |
|
1901 |
] |
|
1902 |
] ifFalse:[ |
|
1903 |
screen releaseFixColors |
|
1904 |
]. |
|
1905 |
||
1906 |
useFixGrayPalette value ifTrue:[ |
|
1907 |
Color colorAllocationFailSignal handle:[:ex | |
|
1908 |
self warn:(resources string:'Could not allocate colors.'). |
|
1909 |
] do:[ |
|
1910 |
Color getGrayColors:32 on:screen |
|
1911 |
] |
|
1912 |
] ifFalse:[ |
|
1913 |
screen releaseFixGrayColors |
|
1914 |
] |
|
1915 |
]. |
|
1916 |
screen hasColors:isColorMonitor value. |
|
1917 |
screen widthInMillimeter:sizeX value. |
|
1918 |
screen heightInMillimeter:sizeY value. |
|
1919 |
||
1920 |
screen supportsDeepIcons:deepIcons value. |
|
1921 |
ditherSyms notNil ifTrue:[ |
|
1922 |
Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex). |
|
1923 |
]. |
|
1924 |
||
1925 |
requestor withWaitCursorDo:[ |
|
1926 |
View defaultStyle:(View defaultStyle). |
|
1927 |
]. |
|
1928 |
||
1929 |
screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex). |
|
2001 | 1930 |
]. |
1931 |
box destroy |
|
1932 |
||
2162 | 1933 |
"Modified: / 9.9.1996 / 22:43:04 / stefan" |
2164 | 1934 |
"Modified: / 20.5.1999 / 18:35:21 / cg" |
2001 | 1935 |
! |
1936 |
||
1937 |
editSettingsFor:requestor |
|
1938 |
"open a dialog on edit settings" |
|
1939 |
||
2019 | 1940 |
|box st80EditingMode st80DoubleClickSelectMode resources| |
2001 | 1941 |
|
1942 |
resources := requestor class classResources. |
|
1943 |
||
1944 |
"/ |
|
1945 |
"/ extract relevant system settings ... |
|
1946 |
"/ |
|
1947 |
st80EditingMode := EditTextView st80Mode asValue. |
|
1948 |
st80DoubleClickSelectMode := TextView st80SelectMode asValue. |
|
1949 |
||
1950 |
"/ |
|
1951 |
"/ create a box on those values ... |
|
1952 |
"/ |
|
1953 |
box := DialogBox new. |
|
1954 |
box label:(resources string:'Edit settings'). |
|
1955 |
||
1956 |
box addCheckBox:(resources string:'cursor has ST80 line end behavior') on:st80EditingMode. |
|
1957 |
box addCheckBox:(resources string:'double click select behavior as in ST80') on:st80DoubleClickSelectMode. |
|
1958 |
||
1959 |
box addHorizontalLine. |
|
1960 |
||
1961 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1962 |
addHelpButtonFor:'Launcher/editSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1963 |
addAbortAndOkButtons. |
2001 | 1964 |
|
1965 |
"/ |
|
1966 |
"/ show the box ... |
|
1967 |
"/ |
|
1968 |
box open. |
|
1969 |
||
1970 |
"/ |
|
1971 |
"/ update system settings |
|
1972 |
"/ |
|
1973 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1974 |
EditTextView st80Mode:(st80EditingMode value). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
1975 |
TextView st80SelectMode:(st80DoubleClickSelectMode value). |
2001 | 1976 |
]. |
1977 |
box destroy |
|
1978 |
||
1979 |
"Created: / 6.1.1999 / 14:12:09 / cg" |
|
1980 |
"Modified: / 6.1.1999 / 14:17:51 / cg" |
|
1981 |
! |
|
1982 |
||
1983 |
fontSettingsFor:requestor |
|
1984 |
"open a dialog on font related settings" |
|
1985 |
||
1986 |
(self fontBoxForEncoding:nil for:requestor) ifTrue:[ |
|
1987 |
requestor reopenLauncher. |
|
1988 |
] |
|
1989 |
||
1990 |
"Created: 26.2.1996 / 22:52:51 / cg" |
|
1991 |
"Modified: 8.1.1997 / 14:52:49 / cg" |
|
1992 |
! |
|
1993 |
||
1994 |
javaSettingsFor:requestor |
|
1995 |
"open a dialog on settings related to the java subsystem" |
|
1996 |
||
1997 |
|box audio javaHome resources component |
|
1998 |
extraFileSecurityChecks extraSocketSecurityChecks |
|
1999 |
supportsJustInTimeCompilation |
|
2000 |
javaJustInTimeCompilation javaNativeCodeOptimization |
|
2001 |
showJavaByteCode exceptionDebug| |
|
2002 |
||
2003 |
resources := requestor class classResources. |
|
2004 |
||
2005 |
audio := JavaVM audioEnabled asValue. |
|
2006 |
extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue. |
|
2007 |
extraSocketSecurityChecks := JavaVM socketConnectConfirmation asValue. |
|
2008 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2009 |
javaJustInTimeCompilation := ObjectMemory javaJustInTimeCompilation asValue. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2010 |
javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue. |
2001 | 2011 |
] ifFalse:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2012 |
javaJustInTimeCompilation := javaNativeCodeOptimization := false |
2001 | 2013 |
]. |
2014 |
showJavaByteCode := JavaMethod forceByteCodeDisplay asValue. |
|
2015 |
exceptionDebug := JavaVM exceptionDebug asValue. |
|
2016 |
||
2017 |
javaHome := (Java javaHome ? '') asValue. |
|
2018 |
||
2019 |
box := DialogBox new. |
|
2020 |
box label:(resources string:'Java'). |
|
2021 |
||
2022 |
box addCheckBox:(resources string:'Audio Enabled') on:audio. |
|
2023 |
box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks. |
|
2024 |
box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks. |
|
2025 |
box addCheckBox:(resources string:'Debug Exceptions') on:exceptionDebug. |
|
2026 |
box addHorizontalLine. |
|
2027 |
supportsJustInTimeCompilation ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2028 |
box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2029 |
addCheckBox:(resources string:'java just in time compilation to machine code') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2030 |
on:javaJustInTimeCompilation. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2031 |
box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2032 |
addCheckBox:(resources string:'optimize native code') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2033 |
on:javaNativeCodeOptimization. |
2001 | 2034 |
]. |
2035 |
box addHorizontalLine. |
|
2036 |
box addCheckBox:(resources string:'Display java byteCode (i.e. not source)') on:showJavaByteCode. |
|
2037 |
box addHorizontalLine. |
|
2038 |
component := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2039 |
addLabelledInputField:(resources string:'java home:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2040 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2041 |
on:javaHome |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2042 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2043 |
separateAtX:0.3. |
2001 | 2044 |
component acceptOnLeave:false. |
2045 |
||
2046 |
box addVerticalSpace. |
|
2047 |
box addComponent:(Button |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2048 |
label:(resources string:'Reinit VM now') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2049 |
action:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2050 |
box windowGroup withWaitCursorDo:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2051 |
Java classPath size == 0 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2052 |
Java initialize. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2053 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2054 |
Java classPath size == 0 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2055 |
self warn:'No JDK found'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2056 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2057 |
JavaVM initializeVM |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2058 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2059 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2060 |
]). |
2001 | 2061 |
|
2062 |
box addComponent:(Button |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2063 |
label:(resources string:'Remove all Java classes now') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2064 |
action:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2065 |
box windowGroup withWaitCursorDo:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2066 |
Java flushAllJavaResources |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2067 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2068 |
]). |
2001 | 2069 |
|
2070 |
"/ box addHorizontalLine. |
|
2071 |
||
2072 |
"/ box addHelpButtonFor:'Launcher/javaSettings.html'. |
|
2048 | 2073 |
box addAbortAndOkButtons. |
2001 | 2074 |
box open. |
2075 |
||
2076 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2077 |
JavaMethod forceByteCodeDisplay:showJavaByteCode value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2078 |
JavaVM audioEnabled:audio value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2079 |
JavaVM exceptionDebug:exceptionDebug value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2080 |
JavaVM fileOpenConfirmation: extraFileSecurityChecks value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2081 |
JavaVM socketConnectConfirmation: extraSocketSecurityChecks value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2082 |
javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2083 |
ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2084 |
javaJustInTimeCompilation value ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2085 |
JavaMethod allSubInstancesDo:[:m | m checked:false]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2086 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2087 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2088 |
javaNativeCodeOptimization value ~~ ObjectMemory javaNativeCodeOptimization ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2089 |
ObjectMemory javaNativeCodeOptimization:javaNativeCodeOptimization value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2090 |
]. |
2001 | 2091 |
]. |
2092 |
box destroy |
|
2093 |
||
2094 |
"Created: / 18.7.1998 / 22:32:58 / cg" |
|
2095 |
"Modified: / 27.1.1999 / 20:16:03 / cg" |
|
2096 |
! |
|
2097 |
||
2098 |
keyboardSettingsFor:requestor |
|
2099 |
"open a dialog on keyboard related settings" |
|
2100 |
||
2101 |
|mappings listOfRawKeys listOfFunctions |
|
2102 |
box l |
|
2103 |
list1 list2 listView1 listView2 |
|
2104 |
frame selectionForwarder macroForwarder macroTextView y resources| |
|
2105 |
||
2106 |
resources := requestor class classResources. |
|
2107 |
||
2108 |
mappings := Screen current keyboardMap. |
|
2109 |
||
2110 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
2111 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
2112 |
||
2113 |
selectionForwarder := Plug new. |
|
2114 |
selectionForwarder respondTo:#showFunction |
|
2115 |
with:[ |
|
2116 |
|raw| |
|
2117 |
raw := list1 selection. |
|
2118 |
list2 retractInterestsFor:selectionForwarder. |
|
2119 |
list2 selection:(mappings at:raw asSymbol) asString. |
|
2120 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
2121 |
]. |
|
2122 |
selectionForwarder respondTo:#showRawKey |
|
2123 |
with:[ |
|
2124 |
|f raw| |
|
2125 |
||
2126 |
f := list2 selection. |
|
2127 |
list1 retractInterestsFor:selectionForwarder. |
|
2128 |
raw := mappings keyAtValue:f asString. |
|
2129 |
raw isNil ifTrue:[ |
|
2130 |
raw := mappings keyAtValue:f first. |
|
2131 |
raw isNil ifTrue:[ |
|
2132 |
raw := mappings keyAtValue:f asSymbol. |
|
2133 |
] |
|
2134 |
]. |
|
2135 |
list1 selection:raw. |
|
2136 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
2137 |
]. |
|
2138 |
||
2139 |
macroForwarder := [ |
|
2140 |
|f macro indent| |
|
2141 |
f := list2 selection. |
|
2142 |
(f startsWith:'Cmd') ifTrue:[ |
|
2143 |
f := f copyFrom:4 |
|
2144 |
]. |
|
2145 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil. |
|
2146 |
macro notNil ifTrue:[ |
|
2147 |
macro := macro asStringCollection. |
|
2148 |
indent := macro |
|
2149 |
inject:99999 into:[:min :element | |
|
2150 |
|stripped| |
|
2151 |
||
2152 |
stripped := element withoutLeadingSeparators. |
|
2153 |
stripped size == 0 ifTrue:[ |
|
2154 |
min |
|
2155 |
] ifFalse:[ |
|
2156 |
min min:(element size - stripped size) |
|
2157 |
] |
|
2158 |
]. |
|
2159 |
indent ~~ 0 ifTrue:[ |
|
2160 |
macro := macro collect:[:line | |
|
2161 |
line size > indent ifTrue:[ |
|
2162 |
line copyFrom:indent+1 |
|
2163 |
] ifFalse:[ |
|
2164 |
line |
|
2165 |
]. |
|
2166 |
] |
|
2167 |
]. |
|
2168 |
]. |
|
2169 |
macroTextView contents:macro. |
|
2170 |
]. |
|
2171 |
||
2172 |
list1 := SelectionInList with:listOfRawKeys. |
|
2173 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
2174 |
||
2175 |
list2 := SelectionInList with:listOfFunctions. |
|
2176 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
2177 |
list2 onChangeSend:#value to:macroForwarder. |
|
2178 |
||
2179 |
box := Dialog new. |
|
2180 |
box label:(resources string:'Keyboard mappings'). |
|
2181 |
||
2182 |
l := box addTextLabel:(resources at:'KEY_MSG' default:'keyboard mapping:') withCRs. |
|
2183 |
l adjust:#left; borderWidth:0. |
|
2184 |
||
2185 |
frame := View new. |
|
2186 |
frame extent:300 @ 300. |
|
2187 |
frame borderWidth:0. |
|
2188 |
||
2189 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
2190 |
listView1 model:list1. |
|
2191 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
2192 |
||
2193 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
2194 |
listView2 model:list2. |
|
2195 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
2196 |
||
2197 |
frame topInset:box yPosition. |
|
2198 |
box addComponent:frame withExtent:350@200. |
|
2199 |
box makeTabable:listView1. |
|
2200 |
box makeTabable:listView2. |
|
2201 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
2202 |
||
2203 |
box addVerticalSpace. |
|
2204 |
||
2205 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
2206 |
l adjust:#left; borderWidth:0. |
|
2207 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
2208 |
l topInset:(View viewSpacing). |
|
2209 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
2210 |
||
2211 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
2212 |
box addComponent:macroTextView tabable:true. |
|
2213 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
2214 |
y := box yPosition. |
|
2215 |
||
2216 |
box |
|
2217 |
addHelpButtonFor:'Launcher/keyboardSetting.html'; |
|
2218 |
"addAbortButton;" |
|
2219 |
addOkButtonLabelled:(resources string:'dismiss'). |
|
2220 |
||
2221 |
macroTextView topInset:(l preferredExtent y + 5). |
|
2222 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
2223 |
||
2224 |
box open. |
|
2225 |
||
2226 |
box accepted ifTrue:[ |
|
2227 |
"no action yet ..." |
|
2228 |
]. |
|
2229 |
box destroy |
|
2230 |
||
2231 |
"Modified: / 9.9.1996 / 22:43:17 / stefan" |
|
2232 |
"Modified: / 4.5.1998 / 12:40:02 / cg" |
|
2233 |
! |
|
2234 |
||
2235 |
languageSettingsFor:requestor |
|
2236 |
"open a dialog on language related settings" |
|
2237 |
||
2238 |
|listOfLanguages translatedLanguages switch box languageList flags resources| |
|
2239 |
||
2240 |
resources := requestor class classResources. |
|
2241 |
||
2242 |
" |
|
2243 |
get list of supported languages from the launchers resources ... |
|
2244 |
" |
|
2245 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
|
2246 |
listOfLanguages := listOfLanguages asOrderedCollection. |
|
2149 | 2247 |
|
2001 | 2248 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2249 |
item := resources at:lang. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2250 |
item isString ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2251 |
item |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2252 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2253 |
item at:1 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2254 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2255 |
]. |
2001 | 2256 |
flags := listOfLanguages collect:[:lang | |item| |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2257 |
item := resources at:lang. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2258 |
item isArray ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2259 |
item at:2 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2260 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2261 |
nil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2262 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2263 |
]. |
2001 | 2264 |
flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]]. |
2265 |
||
2266 |
languageList := translatedLanguages with:flags collect:[:lang :flag | |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2267 |
LabelAndIcon icon:flag string:lang. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2268 |
]. |
2001 | 2269 |
|
2270 |
box := ListSelectionBox title:(resources at:'LANG_MSG' default:'select a language') withCRs. |
|
2271 |
box label:(resources string:'Language selection'). |
|
2272 |
box list:languageList. |
|
2149 | 2273 |
box initialText:(Language , '-' , LanguageTerritory). |
2001 | 2274 |
box action:[:newLanguage | |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2275 |
requestor withWaitCursorDo:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2276 |
|fontPref idx language oldLanguage territory enc answer matchingFonts l| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2277 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2278 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2279 |
idx ~~ 0 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2280 |
language := listOfLanguages at:idx |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2281 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2282 |
language := newLanguage |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2283 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2284 |
(language includes:$-) ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2285 |
l := language asCollectionOfSubstringsSeparatedBy:$-. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2286 |
language := l at:1. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2287 |
territory := l at:2. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2288 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2289 |
territory isNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2290 |
territory := language copyTo:2 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2291 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2292 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2293 |
"/ check if the new language needs a differently encoded font; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2294 |
"/ ask user to switch font and allow cancellation. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2295 |
"/ Otherwise, you are left with unreadable menu & button items ... |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2296 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2297 |
oldLanguage := Smalltalk language. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2298 |
Smalltalk language:language asSymbol. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2299 |
ResourcePack flushCachedResourcePacks. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2300 |
"/ refetch resources ... |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2301 |
resources := requestor class classResources. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2302 |
fontPref := resources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2303 |
Smalltalk language:oldLanguage. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2304 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2305 |
switch := true. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2306 |
enc := MenuView defaultFont encoding. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2307 |
(fontPref match:enc) ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2308 |
"/ look if there is one at all. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2309 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2310 |
matchingFonts size == 0 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2311 |
"/ flush and try again - just in case, the font path has changed. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2312 |
Screen current flushListOfAvailableFonts. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2313 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2314 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2315 |
matchingFonts size == 0 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2316 |
(Dialog |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2317 |
confirm:(resources |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2318 |
string:'Your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2319 |
with:fontPref) withCRs) |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2320 |
ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2321 |
switch := false |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2322 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2323 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2324 |
answer := Dialog |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2325 |
confirmWithCancel:(resources |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2326 |
string:'menu font is not %1-encoded.\\Change it ?' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2327 |
with:fontPref) withCRs |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2328 |
labels:(resources |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2329 |
array:#('cancel' 'no' 'yes')) |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2330 |
default:3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2331 |
answer isNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2332 |
switch := false |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2333 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2334 |
answer ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2335 |
switch := (requestor fontBoxForEncoding:fontPref) |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2336 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2337 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2338 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2339 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2340 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2341 |
switch ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2342 |
Transcript showCR:'change language to ' , newLanguage , ' ...'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2343 |
Smalltalk language:language asSymbol. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2344 |
Smalltalk languageTerritory:territory asSymbol. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2345 |
ResourcePack flushCachedResourcePacks |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2346 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2347 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2348 |
switch ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2349 |
requestor reopenLauncher. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2350 |
DebugView newDebugger. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2351 |
] |
2001 | 2352 |
]. |
2353 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2354 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
2001 | 2355 |
box open. |
2356 |
box destroy |
|
2357 |
||
2358 |
"Modified: / 9.9.1996 / 22:43:27 / stefan" |
|
2359 |
"Modified: / 4.8.1998 / 16:54:32 / cg" |
|
2360 |
! |
|
2361 |
||
2362 |
memorySettingsFor:requestor |
|
2363 |
"open a dialog on objectMemory related settings" |
|
2364 |
||
2365 |
|box igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
|
2366 |
compressLimit |
|
2367 |
oldIncr component fields codeLimit codeTrigger stackLimit resources| |
|
2368 |
||
2369 |
resources := requestor class classResources. |
|
2370 |
||
2371 |
"/ |
|
2372 |
"/ extract relevant system settings ... |
|
2373 |
"/ |
|
2374 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
2375 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
2376 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
2377 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
2378 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
2379 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
|
2380 |
codeLimit := ObjectMemory dynamicCodeLimit asValue. |
|
2381 |
codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue. |
|
2382 |
stackLimit := Process defaultMaximumStackSize asValue. |
|
2383 |
||
2384 |
"/ |
|
2385 |
"/ create a box on those values ... |
|
2386 |
"/ |
|
2387 |
fields := OrderedCollection new. |
|
2388 |
||
2389 |
box := DialogBox new. |
|
2390 |
box label:(resources string:'Memory manager settings'). |
|
2391 |
||
2392 |
(box addTextLabel:'Warning - invalid settings may result in failures or poor performance |
|
2393 |
||
2394 |
You have been warned.') adjust:#left. |
|
2395 |
box addHorizontalLine. |
|
2396 |
||
2397 |
component := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2398 |
addLabelledInputField:(resources string:'size of newSpace:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2399 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2400 |
on:nil "/ newSpaceSize |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2401 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2402 |
separateAtX:0.7. |
2001 | 2403 |
component acceptOnLeave:false. |
2404 |
component converter:(PrintConverter new initForNumber). |
|
2405 |
component model:newSpaceSize. |
|
2406 |
fields add:component. |
|
2407 |
||
2408 |
box addHorizontalLine. |
|
2409 |
||
2410 |
||
2411 |
component := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2412 |
addLabelledInputField:(resources string:'incremental GC allocation trigger:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2413 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2414 |
on:nil "/ igcLimit |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2415 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2416 |
separateAtX:0.7. |
2001 | 2417 |
component acceptOnLeave:false. |
2418 |
component converter:(PrintConverter new initForNumber). |
|
2419 |
component model:igcLimit. |
|
2420 |
fields add:component. |
|
2421 |
||
2422 |
box addTextLabel:'(start IGC whenever this amount has been allocated)'. |
|
2423 |
box addHorizontalLine. |
|
2424 |
||
2425 |
component := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2426 |
addLabelledInputField:(resources string:'incremental GC freespace trigger:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2427 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2428 |
on:nil "/ igcFreeLimit |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2429 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2430 |
separateAtX:0.7. |
2001 | 2431 |
component acceptOnLeave:false. |
2432 |
component converter:(PrintConverter new initForNumber). |
|
2433 |
component model:igcFreeLimit. |
|
2434 |
fields add:component. |
|
2435 |
||
2436 |
box addTextLabel:'(start IGC whenever freespace drops below this)'. |
|
2437 |
box addHorizontalLine. |
|
2438 |
||
2439 |
component := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2440 |
addLabelledInputField:(resources string:'incremental GC amount:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2441 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2442 |
on:nil "/ igcFreeAmount |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2443 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2444 |
separateAtX:0.7. |
2001 | 2445 |
component acceptOnLeave:false. |
2446 |
component converter:(PrintConverter new initForNumber). |
|
2447 |
component model:igcFreeAmount. |
|
2448 |
fields add:component. |
|
2449 |
||
2450 |
box addTextLabel:'(try to keep this amount for peak requests)'. |
|
2451 |
box addHorizontalLine. |
|
2452 |
||
2453 |
component := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2454 |
addLabelledInputField:(resources string:'oldspace increment:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2455 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2456 |
on:nil "/ oldIncr |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2457 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2458 |
separateAtX:0.7. |
2001 | 2459 |
component acceptOnLeave:false. |
2460 |
component converter:(PrintConverter new initForNumber). |
|
2461 |
component model:oldIncr. |
|
2462 |
fields add:component. |
|
2463 |
||
2464 |
box addTextLabel:'(increase oldSpace in chunks of this size)'. |
|
2465 |
box addHorizontalLine. |
|
2466 |
||
2467 |
component := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2468 |
addLabelledInputField:(resources string:'oldspace compress limit:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2469 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2470 |
on:nil "/ compressLimit |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2471 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2472 |
separateAtX:0.7. |
2001 | 2473 |
component acceptOnLeave:false. |
2474 |
component converter:(PrintConverter new initForNumber). |
|
2475 |
component model:compressLimit. |
|
2476 |
fields add:component. |
|
2477 |
||
2478 |
box addTextLabel:'(suppress compressing GC if more memory is in use)'. |
|
2479 |
box addHorizontalLine. |
|
2480 |
||
2481 |
component := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2482 |
addLabelledInputField:(resources string:'stack limit:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2483 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2484 |
on:nil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2485 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2486 |
separateAtX:0.7. |
2001 | 2487 |
component acceptOnLeave:false. |
2488 |
component converter:(PrintConverter new initForNumber). |
|
2489 |
component model:stackLimit. |
|
2490 |
fields add:component. |
|
2491 |
||
2492 |
box addTextLabel:'(trigger recursionInterrupt if more stack is used by a process)'. |
|
2493 |
box addHorizontalLine. |
|
2494 |
||
2495 |
ObjectMemory supportsJustInTimeCompilation ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2496 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2497 |
addLabelledInputField:(resources string:'dynamic code limit:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2498 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2499 |
on:nil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2500 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2501 |
separateAtX:0.7. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2502 |
component acceptOnLeave:false. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2503 |
component converter:(PrintConverter new initForNumberOrNil). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2504 |
component model:codeLimit. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2505 |
fields add:component. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2506 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2507 |
box addTextLabel:'(flush dynamic compiled code to stay within this limit)'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2508 |
box addHorizontalLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2509 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2510 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2511 |
addLabelledInputField:(resources string:'dynamic code GC trigger:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2512 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2513 |
on:nil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2514 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2515 |
separateAtX:0.7. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2516 |
component acceptOnLeave:false. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2517 |
component converter:(PrintConverter new initForNumberOrNil). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2518 |
component model:codeTrigger. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2519 |
fields add:component. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2520 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2521 |
box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2522 |
box addHorizontalLine. |
2001 | 2523 |
]. |
2524 |
||
2048 | 2525 |
box addAbortAndOkButtons. |
2001 | 2526 |
box |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2527 |
addHelpButtonFor:'Launcher/memorySettings.html'. |
2001 | 2528 |
|
2529 |
"/ |
|
2530 |
"/ show the box ... |
|
2531 |
"/ |
|
2532 |
box open. |
|
2533 |
||
2534 |
"/ |
|
2535 |
"/ update system settings |
|
2536 |
"/ |
|
2537 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2538 |
fields do:[:comp | comp accept]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2539 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2540 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2541 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2542 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2543 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2544 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2545 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2546 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2547 |
ObjectMemory incrementalGCLimit:igcLimit value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2548 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2549 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2550 |
ObjectMemory newSpaceSize:newSpaceSize value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2551 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2552 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2553 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2554 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2555 |
stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2556 |
Process defaultMaximumStackSize:stackLimit value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2557 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2558 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2559 |
ObjectMemory dynamicCodeLimit:codeLimit value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2560 |
ObjectMemory dynamicCodeGCTrigger:codeTrigger value. |
2001 | 2561 |
]. |
2562 |
box destroy |
|
2563 |
||
2564 |
"Modified: 27.2.1997 / 16:50:12 / cg" |
|
2565 |
! |
|
2566 |
||
2567 |
messageSettingsFor:requestor |
|
2568 |
"open a dialog on infoMessage related settings" |
|
2569 |
||
2570 |
|box vmInfo vmErrors displayErrors classInfos resources| |
|
2571 |
||
2572 |
resources := requestor class classResources. |
|
2573 |
||
2574 |
vmInfo := ObjectMemory infoPrinting asValue. |
|
2575 |
vmErrors := ObjectMemory debugPrinting asValue. |
|
2576 |
classInfos := Object infoPrinting asValue. |
|
2577 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
|
2578 |
||
2579 |
box := DialogBox new. |
|
2580 |
box label:(resources string:'Messages'). |
|
2581 |
||
2582 |
box addCheckBox:(resources string:'VM info messages') on:vmInfo. |
|
2583 |
box addCheckBox:(resources string:'VM error messages') on:vmErrors. |
|
2584 |
box addHorizontalLine. |
|
2585 |
||
2586 |
box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors. |
|
2587 |
box addCheckBox:(resources string:'Other info messages') on:classInfos. |
|
2588 |
||
2589 |
box addHelpButtonFor:'Launcher/messageSettings.html'. |
|
2048 | 2590 |
box addAbortAndOkButtons. |
2001 | 2591 |
box open. |
2592 |
||
2593 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2594 |
ObjectMemory infoPrinting:vmInfo value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2595 |
ObjectMemory debugPrinting:vmErrors value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2596 |
Object infoPrinting:classInfos value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2597 |
DeviceWorkstation errorPrinting:displayErrors value. |
2001 | 2598 |
]. |
2599 |
box destroy |
|
2600 |
||
2601 |
"Modified: 27.1.1997 / 17:46:01 / cg" |
|
2602 |
! |
|
2603 |
||
2604 |
miscSettingsFor:requestor |
|
2605 |
"open a dialog on misc other settings" |
|
2606 |
||
2196 | 2607 |
|box check shadows takeFocus focusFollowsMouse returnFocus |
2069
b4412338a603
avoid autoloading RDoitServer in misc-settings.
Claus Gittinger <cg@exept.de>
parents:
2064
diff
changeset
|
2608 |
hostNameInLabel showAccelerators |
b4412338a603
avoid autoloading RDoitServer in misc-settings.
Claus Gittinger <cg@exept.de>
parents:
2064
diff
changeset
|
2609 |
preemptive dynamicPrios hostNameInLabelHolder resources y |
2070 | 2610 |
activateOnClick opaqueVariablePanelResize| |
2001 | 2611 |
|
2612 |
resources := requestor class classResources. |
|
2613 |
||
2614 |
"/ |
|
2615 |
"/ extract relevant system settings ... |
|
2616 |
"/ |
|
2617 |
shadows := PopUpView shadows asValue. |
|
2618 |
hostNameInLabel := StandardSystemView includeHostNameInLabel. |
|
2619 |
hostNameInLabelHolder := hostNameInLabel asValue. |
|
2620 |
returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue. |
|
2621 |
takeFocus := StandardSystemView takeFocusWhenMapped asValue. |
|
2089
acdd1feb6bf7
focusFollowsMouse is default
Claus Gittinger <cg@exept.de>
parents:
2083
diff
changeset
|
2622 |
focusFollowsMouse := (UserPreferences current focusFollowsMouse ? true) asValue. |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2623 |
activateOnClick := (Display activateOnClick:nil) asValue. |
2070 | 2624 |
opaqueVariablePanelResize := (VariablePanelController opaqueResize ? false) asValue. |
2001 | 2625 |
|
2626 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
|
2627 |
preemptive := Processor isTimeSlicing asValue. |
|
2628 |
dynamicPrios := Processor supportDynamicPriorities asValue. |
|
2629 |
||
2630 |
"/ |
|
2631 |
"/ create a box on those values ... |
|
2632 |
"/ |
|
2633 |
box := DialogBox new. |
|
2634 |
box label:(resources string:'Other settings'). |
|
2635 |
||
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2636 |
box addCheckBox:(resources string:'Shadows under popup views') on:shadows. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2637 |
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
|
2638 |
box addCheckBox:(resources string:'Views catch focus when mapped') on:takeFocus. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2639 |
box addCheckBox:(resources string:'Hostname in window labels') on:hostNameInLabelHolder. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2640 |
box addCheckBox:(resources string:'Show accelerator keys in menus') on:showAccelerators. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2641 |
box addCheckBox:(resources string:'Raise & activate windows on click') on:activateOnClick. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2642 |
box addCheckBox:(resources string:'Focus follows mouse') on:focusFollowsMouse. |
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2643 |
box addCheckBox:(resources string:'Opaque variable panel resizing') on:opaqueVariablePanelResize. |
2001 | 2644 |
|
2645 |
box addHorizontalLine. |
|
2646 |
||
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2647 |
box addCheckBox:(resources string:'Preemptive scheduling') on:preemptive. |
2001 | 2648 |
box leftIndent:20. |
2081
a5a01188c030
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
2070
diff
changeset
|
2649 |
check := box addCheckBox:(resources string:'Dynamic priorities') on:dynamicPrios. |
2001 | 2650 |
check enableChannel:preemptive. |
2651 |
box leftIndent:0. |
|
2652 |
||
2653 |
box |
|
2164 | 2654 |
addHelpButtonFor:'Launcher/miscSettings.html'; |
2655 |
addAbortAndOkButtons. |
|
2001 | 2656 |
|
2657 |
"/ |
|
2658 |
"/ show the box ... |
|
2659 |
"/ |
|
2660 |
box open. |
|
2661 |
||
2662 |
"/ |
|
2663 |
"/ update system settings |
|
2664 |
"/ |
|
2665 |
box accepted ifTrue:[ |
|
2164 | 2666 |
PopUpView shadows:shadows value. |
2667 |
hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ |
|
2668 |
StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value. |
|
2669 |
||
2670 |
Screen allScreens do:[:aDisplay | |
|
2671 |
aDisplay allViewsDo:[:aView | |
|
2672 |
|l| |
|
2673 |
||
2674 |
aView isTopView ifTrue:[ |
|
2675 |
l := aView label. |
|
2676 |
l notNil ifTrue:[ |
|
2677 |
aView label:(l , ' '); label:l. "/ force a change |
|
2678 |
] |
|
2679 |
] |
|
2680 |
] |
|
2681 |
] |
|
2682 |
]. |
|
2683 |
||
2684 |
VariablePanelController opaqueResize:opaqueVariablePanelResize value. |
|
2685 |
||
2686 |
StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value. |
|
2687 |
StandardSystemView takeFocusWhenMapped:takeFocus value. |
|
2688 |
UserPreferences current focusFollowsMouse:focusFollowsMouse value. |
|
2689 |
Screen current activateOnClick:(activateOnClick value). |
|
2690 |
||
2691 |
MenuView showAcceleratorKeys:showAccelerators value. |
|
2692 |
Processor isTimeSlicing ~~ preemptive value ifTrue:[ |
|
2693 |
preemptive value ifTrue:[ |
|
2694 |
Processor startTimeSlicing |
|
2695 |
] ifFalse:[ |
|
2696 |
Processor stopTimeSlicing |
|
2697 |
] |
|
2698 |
]. |
|
2699 |
Processor supportDynamicPriorities ~~ dynamicPrios value ifTrue:[ |
|
2700 |
Processor supportDynamicPriorities:dynamicPrios value |
|
2701 |
]. |
|
2001 | 2702 |
]. |
2703 |
box destroy |
|
2704 |
||
2705 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
2164 | 2706 |
"Modified: / 20.5.1999 / 18:33:55 / cg" |
2001 | 2707 |
! |
2708 |
||
2709 |
printerSettingsFor:requestor |
|
2710 |
"open a dialog on printer related settings" |
|
2711 |
||
2712 |
|box |
|
2713 |
possiblePrinters possibleTypes printerType printCommand |
|
2714 |
pageFormat landscape updater |
|
2715 |
formatLabel formatComponent landscapeLabel landscapeComponent |
|
2716 |
topMargin leftMargin rightMargin bottomMargin unitList unit |
|
2717 |
topMarginComponent leftMarginComponent |
|
2718 |
rightMarginComponent |
|
2719 |
bottomMarginComponent supportsColor supportsColorComponent |
|
2720 |
y y1 commandListPop component commandList row resources| |
|
2721 |
||
2722 |
resources := requestor class classResources. |
|
2723 |
||
2724 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
2725 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
2726 |
||
2727 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
2728 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
2729 |
printCommand := Printer printCommand asValue. |
|
2730 |
||
2731 |
pageFormat := SelectionInList new list:(Printer defaultPageFormats). |
|
2732 |
pageFormat selection:(Printer pageFormat). |
|
2733 |
landscape := Printer landscape asValue. |
|
2734 |
||
2735 |
topMargin := Printer topMargin asValue. |
|
2736 |
leftMargin := Printer leftMargin asValue. |
|
2737 |
rightMargin := Printer rightMargin asValue. |
|
2738 |
bottomMargin := Printer bottomMargin asValue. |
|
2739 |
supportsColor := Printer supportsColor asValue. |
|
2740 |
||
2741 |
box := DialogBox new. |
|
2742 |
box label:(resources string:'Printer settings'). |
|
2743 |
||
2744 |
"/ either use a popUpList ... |
|
2745 |
"/ box addPopUpList:(resources string:'printer type:') on:printerType. |
|
2746 |
||
2747 |
"/ or a comboList; |
|
2748 |
"/ which one looks better ? |
|
2749 |
y := box yPosition. |
|
2750 |
component := box addTextLabel:(resources string:'printer type:'). |
|
2751 |
component width:0.25; adjust:#right; borderWidth:0. |
|
2752 |
box yPosition:y. |
|
2753 |
component := box addComboListOn:printerType tabable:true. |
|
2754 |
component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true. |
|
2755 |
component width:0.75; left:0.25. |
|
2756 |
"/ end of question |
|
2757 |
||
2758 |
y := box yPosition. |
|
2759 |
component := box addTextLabel:(resources string:'print command:'). |
|
2760 |
component width:0.25; adjust:#right; borderWidth:0. |
|
2761 |
box yPosition:y. |
|
2762 |
commandListPop := box addComboBoxOn:printCommand tabable:true. |
|
2763 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
2764 |
commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
2765 |
"/ some common print commands ... |
|
2766 |
||
2767 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
|
2768 |
commandList isNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2769 |
commandList := PrinterStream defaultCommands. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2770 |
commandList isNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2771 |
commandList := #('lpr' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2772 |
'lp' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2773 |
). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2774 |
] |
2001 | 2775 |
]. |
2776 |
||
2777 |
commandListPop list:commandList. |
|
2778 |
||
2779 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
2780 |
||
2781 |
row := OrderedCollection new. |
|
2782 |
row add:(formatLabel := Label label:(resources string:'page format:')). |
|
2783 |
formatLabel borderWidth:0. |
|
2784 |
row add:(formatComponent := PopUpList on:pageFormat). |
|
2785 |
formatComponent label:'unknown'. |
|
2786 |
||
2787 |
row add:(landscapeLabel := Label label:(resources string:'landscape:')). |
|
2788 |
landscapeLabel borderWidth:0. |
|
2789 |
row add:(landscapeComponent := CheckToggle on:landscape). |
|
2790 |
||
2791 |
y := box yPosition. |
|
2792 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2793 |
addRow:(1 to:2) |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2794 |
fromX:0 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2795 |
toX:0.5 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2796 |
collect:[:idx | row at:idx] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2797 |
tabable:false |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2798 |
horizontalLayout:#leftSpace |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2799 |
verticalLayout:#center. |
2001 | 2800 |
y1 := box yPosition. |
2801 |
box yPosition:y. |
|
2802 |
||
2803 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2804 |
addRow:(3 to:4) |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2805 |
fromX:0.5 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2806 |
toX:1.0 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2807 |
collect:[:idx | row at:idx] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2808 |
tabable:false |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2809 |
horizontalLayout:#leftSpace |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2810 |
verticalLayout:#center. |
2001 | 2811 |
|
2812 |
box yPosition:(box yPosition max:y1). |
|
2813 |
||
2814 |
box makeTabable:(formatComponent). |
|
2815 |
box makeTabable:(landscapeComponent). |
|
2816 |
||
2817 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
|
2818 |
||
2819 |
y := box yPosition. |
|
2820 |
||
2821 |
topMarginComponent := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2822 |
addLabelledInputField:(resources string:'top margin:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2823 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2824 |
on:nil "/ topMargin |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2825 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2826 |
from:0.0 to:0.5 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2827 |
separateAtX:0.6. |
2001 | 2828 |
topMarginComponent converter:(PrintConverter new initForNumber). |
2829 |
topMarginComponent model:topMargin. |
|
2830 |
y1 := box yPosition. |
|
2831 |
||
2832 |
box yPosition:y. |
|
2833 |
unitList := SelectionInList with:#('inch' 'mm'). |
|
2834 |
unitList selectionIndex:1. |
|
2835 |
||
2836 |
component := box addComponent:(PopUpList on:unitList). |
|
2837 |
component |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2838 |
left:0.6; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2839 |
width:0.3. |
2001 | 2840 |
|
2841 |
box yPosition:y1. |
|
2842 |
||
2843 |
leftMarginComponent := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2844 |
addLabelledInputField:(resources string:'left margin:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2845 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2846 |
on:nil "/ leftMargin |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2847 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2848 |
from:0.0 to:0.5 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2849 |
separateAtX:0.6. |
2001 | 2850 |
leftMarginComponent converter:(PrintConverter new initForNumber). |
2851 |
leftMarginComponent model:leftMargin. |
|
2852 |
||
2853 |
rightMarginComponent := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2854 |
addLabelledInputField:(resources string:'right margin:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2855 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2856 |
on:nil "/ rightMargin |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2857 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2858 |
from:0.0 to:0.5 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2859 |
separateAtX:0.6. |
2001 | 2860 |
rightMarginComponent converter:(PrintConverter new initForNumber). |
2861 |
rightMarginComponent model:rightMargin. |
|
2862 |
||
2863 |
bottomMarginComponent := box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2864 |
addLabelledInputField:(resources string:'bottom margin:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2865 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2866 |
on:nil "/ bottomMargin |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2867 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2868 |
from:0.0 to:0.5 |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2869 |
separateAtX:0.6. |
2001 | 2870 |
bottomMarginComponent converter:(PrintConverter new initForNumber). |
2871 |
bottomMarginComponent model:bottomMargin. |
|
2872 |
||
2873 |
box addHorizontalLine. |
|
2874 |
supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor. |
|
2875 |
box addVerticalSpace. |
|
2876 |
||
2877 |
updater := [ |p fg hasPageSize hasMargins| |
|
2878 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2879 |
printerType selectionIndex ~~ 0 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2880 |
p := possiblePrinters at:(printerType selectionIndex). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2881 |
hasPageSize := p supportsPageSizes. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2882 |
hasMargins := p supportsMargins. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2883 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2884 |
hasPageSize := false. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2885 |
hasMargins := false. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2886 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2887 |
hasPageSize ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2888 |
fg := Button new foregroundColor. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2889 |
formatComponent enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2890 |
landscapeComponent enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2891 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2892 |
formatComponent label:p pageFormat. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2893 |
pageFormat value:(p pageFormat). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2894 |
landscape value:(p landscape). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2895 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2896 |
fg := Button new disabledForegroundColor. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2897 |
formatComponent disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2898 |
landscapeComponent disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2899 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2900 |
formatComponent label:'unknown'. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2901 |
landscape value:nil. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2902 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2903 |
hasMargins ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2904 |
unitList selectionIndex == 2 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2905 |
unit := #mm |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2906 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2907 |
unit := #inch |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2908 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2909 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2910 |
topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2911 |
leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2912 |
rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2913 |
bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2914 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2915 |
topMarginComponent enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2916 |
leftMarginComponent enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2917 |
rightMarginComponent enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2918 |
bottomMarginComponent enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2919 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2920 |
topMarginComponent disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2921 |
leftMarginComponent disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2922 |
rightMarginComponent disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2923 |
bottomMarginComponent disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2924 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2925 |
formatLabel foregroundColor:fg. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2926 |
landscapeLabel foregroundColor:fg. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2927 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2928 |
p notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2929 |
commandList := p defaultCommands. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2930 |
commandList notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2931 |
commandListPop list:commandList |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2932 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2933 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2934 |
printCommand value:(p printCommand). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2935 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2936 |
p supportsPostscript ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2937 |
supportsColorComponent disable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2938 |
supportsColor value:false |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2939 |
] ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2940 |
supportsColorComponent enable. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2941 |
supportsColor value:(Printer supportsColor). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2942 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2943 |
]. |
2001 | 2944 |
unitList onChangeSend:#value to:updater. |
2945 |
printerType onChangeSend:#value to:updater. |
|
2946 |
updater value. |
|
2947 |
||
2948 |
box addVerticalSpace; |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2949 |
addHelpButtonFor:'Launcher/printerSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2950 |
addAbortAndOkButtons. |
2001 | 2951 |
box open. |
2952 |
||
2953 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2954 |
Printer := possiblePrinters at:(printerType selectionIndex). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2955 |
Printer printCommand:printCommand value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2956 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2957 |
Printer supportsPageSizes ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2958 |
Printer pageFormat:(pageFormat selection). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2959 |
Printer landscape:(landscape value). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2960 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2961 |
Printer supportsMargins ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2962 |
unitList selectionIndex == 2 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2963 |
unit := #mm |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2964 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2965 |
unit := #inch |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2966 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2967 |
Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2968 |
Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2969 |
Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2970 |
Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2971 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2972 |
Printer supportsPostscript ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2973 |
Printer supportsColor:supportsColor value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2974 |
]. |
2001 | 2975 |
]. |
2976 |
box destroy |
|
2977 |
||
2978 |
"Modified: 9.9.1996 / 22:43:51 / stefan" |
|
2979 |
"Modified: 28.2.1997 / 14:00:13 / cg" |
|
2980 |
||
2981 |
! |
|
2982 |
||
2983 |
restoreSettingsFor:requestor |
|
2984 |
"restore settings from a settings-file." |
|
2985 |
||
2986 |
"a temporary kludge - we need a central systemSettings object for this, |
|
2987 |
which can be saved/restored with a single store/read. |
|
2988 |
Will move entries over to UserPreferences over time; |
|
2989 |
new items should always go there." |
|
2990 |
||
2991 |
|fileName resources| |
|
2992 |
||
2993 |
resources := requestor class classResources. |
|
2994 |
||
2995 |
fileName := Dialog |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2996 |
requestFileName:(resources string:'restore settings from:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2997 |
default:'settings.stx' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2998 |
ok:(resources string:'restore') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
2999 |
abort:(resources string:'cancel') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3000 |
pattern:'*.stx' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3001 |
fromDirectory:nil. |
2021 | 3002 |
|
3003 |
(fileName size == 0) ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3004 |
"/ canceled |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3005 |
^ self |
2001 | 3006 |
]. |
3007 |
||
3008 |
self withWaitCursorDo:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3009 |
Smalltalk fileIn:fileName. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3010 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3011 |
self reopenLauncher. |
2001 | 3012 |
]. |
3013 |
||
3014 |
"Modified: / 21.7.1998 / 11:37:54 / cg" |
|
3015 |
! |
|
3016 |
||
3017 |
saveSettingsFor:requestor |
|
3018 |
"save settings to a settings-file." |
|
3019 |
||
3020 |
"a temporary kludge - we need a central systemSettings object for this, |
|
3021 |
which can be saved/restored with a single store/read. |
|
3022 |
Will move entries over to UserPreferences over time; |
|
3023 |
new items should always go there." |
|
3024 |
||
3025 |
|s screen fileName resources| |
|
3026 |
||
3027 |
resources := requestor class classResources. |
|
3028 |
||
3029 |
fileName := Dialog |
|
2201 | 3030 |
requestFileName:(resources string:'save settings in:') |
3031 |
default:'settings.stx' |
|
3032 |
ok:(resources string:'save') |
|
3033 |
abort:(resources string:'cancel') |
|
3034 |
pattern:'*.stx' |
|
3035 |
fromDirectory:nil. |
|
2001 | 3036 |
|
2021 | 3037 |
(fileName size == 0) ifTrue:[ |
2201 | 3038 |
"/ canceled |
3039 |
^ self |
|
2001 | 3040 |
]. |
3041 |
||
3042 |
s := fileName asFilename writeStream. |
|
3043 |
s isNil ifTrue:[ |
|
2201 | 3044 |
self warn:'cannot write the ''' , fileName , ''' file'. |
3045 |
^ self |
|
2001 | 3046 |
]. |
3047 |
||
3048 |
s nextPutLine:'"/ ST/X saved settings'; |
|
3049 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
3050 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
3051 |
nextPutLine:'"/'; |
|
3052 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
3053 |
nextPutLine:'"/ ''save settings'' function of the Launcher'; |
|
3054 |
nextPutLine:'"/'. |
|
3055 |
s cr. |
|
3056 |
||
3057 |
s nextPutLine:'"/'. |
|
3058 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
3059 |
s nextPutLine:'"/'. |
|
3060 |
s cr. |
|
3061 |
||
3062 |
s nextPutLine:'"/'. |
|
3063 |
s nextPutLine:'"/ Display settings:'. |
|
3064 |
s nextPutLine:'"/'. |
|
3065 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
3066 |
s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['. |
|
3067 |
screen := Screen current. |
|
3068 |
screen fixColors notNil ifTrue:[ |
|
2201 | 3069 |
s nextPutLine:' Image flushDeviceImages.'. |
3070 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
3071 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
3072 |
s nextPutLine:' ].'. |
|
2001 | 3073 |
] ifFalse:[ |
2201 | 3074 |
s nextPutLine:' Display releaseFixColors.'. |
2001 | 3075 |
]. |
3076 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
3077 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
3078 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
3079 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
3080 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
3081 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
|
3082 |
s nextPutLine:'].'. |
|
3083 |
s cr. |
|
3084 |
||
3085 |
s nextPutLine:'"/'. |
|
3086 |
s nextPutLine:'"/ Compiler settings:'. |
|
3087 |
s nextPutLine:'"/'. |
|
3088 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
3089 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
3090 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
3091 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
3092 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
|
3093 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
|
3094 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
|
3095 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
3096 |
||
3097 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
3098 |
||
3099 |
nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
3100 |
nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
3101 |
nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
3102 |
nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
3103 |
nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
3104 |
nextPutLine:'ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.'; |
|
3105 |
nextPutLine:'ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.'; |
|
3106 |
||
3107 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
3108 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
3109 |
||
3110 |
HistoryManager notNil ifTrue:[ |
|
2201 | 3111 |
HistoryManager isActive ifTrue:[ |
3112 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
3113 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
3114 |
] ifFalse:[ |
|
3115 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
3116 |
]. |
|
2001 | 3117 |
]. |
3118 |
||
3119 |
ObjectFileLoader notNil ifTrue:[ |
|
2201 | 3120 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
3121 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
|
2001 | 3122 |
]. |
3123 |
||
3124 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
3125 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
3126 |
||
3127 |
s cr. |
|
3128 |
s nextPutLine:'"/'. |
|
3129 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
3130 |
s nextPutLine:'"/'. |
|
3131 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
3132 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
3133 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
3134 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
3135 |
||
3136 |
||
3137 |
s cr. |
|
3138 |
s nextPutLine:'"/'. |
|
3139 |
s nextPutLine:'"/ Edit settings:'. |
|
3140 |
s nextPutLine:'"/'. |
|
3141 |
s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
3142 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
|
3143 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (UserPreferences current syntaxColoring storeString) , '.'. |
|
2201 | 3144 |
UserPreferences current keysAndValuesDo:[:k :v | |
2203 | 3145 |
s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'. |
2201 | 3146 |
]. |
2001 | 3147 |
|
3148 |
s cr. |
|
3149 |
s nextPutLine:'"/'. |
|
3150 |
s nextPutLine:'"/ Tool settings:'. |
|
3151 |
s nextPutLine:'"/'. |
|
3152 |
s nextPutLine:'UserPreferences current useNewInspector: ' , (UserPreferences current useNewInspector storeString) , '.'. |
|
3153 |
s nextPutLine:'UserPreferences current useNewChangesBrowser: ' , (UserPreferences current useNewChangesBrowser storeString) , '.'. |
|
3154 |
||
3155 |
s cr. |
|
3156 |
s nextPutLine:'"/'. |
|
3157 |
s nextPutLine:'"/ Misc settings:'. |
|
3158 |
s nextPutLine:'"/'. |
|
3159 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
3160 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
3161 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
3162 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
3163 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
3164 |
||
3165 |
"/ claus - I dont think its a good idea to save those ... |
|
3166 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
3167 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
3168 |
||
3169 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
3170 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
2090
2be63e632db1
save and restore focusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
2089
diff
changeset
|
3171 |
nextPutLine:'UserPreferences current focusFollowsMouse: ' , (UserPreferences current focusFollowsMouse ? true) storeString , '.'; |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3172 |
nextPutLine:'Display activateOnClick: ' , ((Display activateOnClick:nil) storeString) , '.'; |
2001 | 3173 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
3174 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
2017 | 3175 |
(Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[ |
2201 | 3176 |
s nextPutLine:'Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'. |
2001 | 3177 |
]. |
3178 |
Processor isTimeSlicing ifTrue:[ |
|
2201 | 3179 |
s nextPutLine:'Processor startTimeSlicing.'. |
3180 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
|
2001 | 3181 |
] ifFalse:[ |
2201 | 3182 |
s nextPutLine:'Processor stopTimeSlicing.'. |
2001 | 3183 |
]. |
3184 |
||
3185 |
s cr. |
|
3186 |
s nextPutLine:'"/'. |
|
3187 |
s nextPutLine:'"/ Printer settings:'. |
|
3188 |
s nextPutLine:'"/'. |
|
3189 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
3190 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
3191 |
||
3192 |
Printer supportsPageSizes ifTrue:[ |
|
2201 | 3193 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
3194 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
2001 | 3195 |
]. |
3196 |
Printer supportsMargins ifTrue:[ |
|
2201 | 3197 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
3198 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
3199 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
3200 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
2001 | 3201 |
]. |
3202 |
Printer supportsPostscript ifTrue:[ |
|
2201 | 3203 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
2001 | 3204 |
]. |
3205 |
||
3206 |
s cr. |
|
3207 |
s nextPutLine:'"/'. |
|
3208 |
s nextPutLine:'"/ Font settings:'. |
|
3209 |
s nextPutLine:'"/'. |
|
3210 |
s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
3211 |
s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
3212 |
s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
3213 |
s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
3214 |
s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
3215 |
s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
3216 |
s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
3217 |
s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
3218 |
s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
3219 |
s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
3220 |
||
3221 |
s cr. |
|
3222 |
s nextPutLine:'"/'. |
|
3223 |
s nextPutLine:'"/ Language setting:'. |
|
3224 |
s nextPutLine:'"/'. |
|
3225 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
3226 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
3227 |
s close. |
|
3228 |
||
3229 |
" |
|
3230 |
Transcript topView application saveSettings |
|
3231 |
" |
|
3232 |
||
3233 |
"Modified: / 6.1.1999 / 14:24:16 / cg" |
|
3234 |
! |
|
3235 |
||
3236 |
sourceAndDebuggerSettingsFor:requestor |
|
3237 |
"open a dialog on source&debugger other settings" |
|
3238 |
||
3239 |
|box check butt setupButt logDoits updChanges changeFileName |
|
3240 |
useManager hasManager cvsIsSetup |
|
3241 |
repository repositoryHolder localSourceFirst |
|
3242 |
sourceCacheDir cacheEntry |
|
3243 |
component localCheck oldIndent nm fn manager |
|
3244 |
showErrorNotifier showVerboseStack |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3245 |
syntaxColoring fullSelectorCheck |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3246 |
resources pos currentUserPrefs| |
2001 | 3247 |
|
3248 |
currentUserPrefs := UserPreferences current. |
|
3249 |
||
3250 |
resources := requestor class classResources. |
|
3251 |
||
3252 |
"/ |
|
3253 |
"/ extract relevant system settings ... |
|
3254 |
"/ |
|
3255 |
logDoits := Smalltalk logDoits asValue. |
|
3256 |
updChanges := Class updatingChanges asValue. |
|
3257 |
changeFileName := ObjectMemory nameForChanges asValue. |
|
3258 |
||
3259 |
(AbstractSourceCodeManager notNil |
|
3260 |
and:[AbstractSourceCodeManager isLoaded not]) ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3261 |
AbstractSourceCodeManager autoload. |
2001 | 3262 |
]. |
3263 |
||
3264 |
hasManager := AbstractSourceCodeManager notNil |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3265 |
and:[AbstractSourceCodeManager isLoaded]. |
2001 | 3266 |
|
3267 |
repositoryHolder := '' asValue. |
|
3268 |
hasManager ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3269 |
useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3270 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3271 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3272 |
repository := manager repositoryName. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3273 |
repository notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3274 |
repositoryHolder := repository asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3275 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3276 |
repositoryHolder := '' asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3277 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3278 |
cvsIsSetup := true. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3279 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3280 |
cvsIsSetup := false asValue. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3281 |
] |
2001 | 3282 |
] ifFalse:[ |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3283 |
useManager := false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3284 |
localSourceFirst := false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3285 |
cvsIsSetup := false. |
2001 | 3286 |
]. |
2037
7f824ca6e61b
removed ref to (old) Launcher class
Claus Gittinger <cg@exept.de>
parents:
2034
diff
changeset
|
3287 |
showErrorNotifier := (Exception emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) asValue. |
2001 | 3288 |
showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue. |
3289 |
syntaxColoring := currentUserPrefs syntaxColoring asValue. |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3290 |
fullSelectorCheck := currentUserPrefs fullSelectorCheck asValue. |
2001 | 3291 |
|
3292 |
sourceCacheDir := nil asValue. |
|
3293 |
||
3294 |
"/ |
|
3295 |
"/ create a box on those values ... |
|
3296 |
"/ |
|
3297 |
box := DialogBox new. |
|
3298 |
box label:(resources string:'Source & Debugger settings'). |
|
3299 |
||
3300 |
box addCheckBox:(resources string:'log compiles in changes file') on:updChanges. |
|
3301 |
box addCheckBox:(resources string:'log doIts in changes file') on:logDoits. |
|
3302 |
||
3303 |
component := box |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3304 |
addLabelledInputField:(resources string:'change file name:') |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3305 |
adjust:#right |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3306 |
on:changeFileName |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3307 |
tabable:true |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3308 |
separateAtX:0.4. |
2001 | 3309 |
component immediateAccept:true; acceptOnLeave:false. |
3310 |
||
3311 |
"/ y := box yPosition. |
|
3312 |
"/ component := box addTextLabel:(resources string:'change file name:'). |
|
3313 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
|
3314 |
"/ box yPosition:y. |
|
3315 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
|
3316 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false. |
|
3317 |
||
3318 |
box addHorizontalLine. |
|
3319 |
||
3320 |
hasManager ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3321 |
pos := box yPosition. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3322 |
check := box addCheckBox:(resources string:'sourcecode management') on:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3323 |
check enableChannel:cvsIsSetup. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3324 |
box makeTabable:check. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3325 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3326 |
cvsIsSetup value ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3327 |
AbstractSourceCodeManager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3328 |
check width:0.6. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3329 |
box yPosition:pos. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3330 |
setupButt := box addComponent:(Button label:(resources string:'setup...') |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3331 |
action:[|manager| |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3332 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3333 |
self cvsConfigurationDialogFor:requestor. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3334 |
manager := (Smalltalk at:#SourceCodeManager). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3335 |
cvsIsSetup value:manager notNil. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3336 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3337 |
repositoryHolder value: manager repositoryName. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3338 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3339 |
setupButt beInvisible. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3340 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3341 |
]). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3342 |
box makeTabable:setupButt. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3343 |
setupButt left:0.6; width:0.4. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3344 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3345 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3346 |
oldIndent := box leftIndent. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3347 |
box leftIndent:30. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3348 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3349 |
component := box |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3350 |
addLabelledInputField:(resources string:'repository:') |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3351 |
adjust:#right |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3352 |
on:repositoryHolder |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3353 |
tabable:true |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3354 |
separateAtX:0.4. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3355 |
component immediateAccept:true; acceptOnLeave:false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3356 |
component enableChannel:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3357 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3358 |
cacheEntry := box |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3359 |
addLabelledInputField:(resources string:'source cache dir:') |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3360 |
adjust:#right |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3361 |
on:sourceCacheDir |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3362 |
tabable:true |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3363 |
separateAtX:0.4. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3364 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3365 |
cacheEntry enableChannel:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3366 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3367 |
localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3368 |
localCheck enableChannel:useManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3369 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3370 |
box leftIndent:oldIndent. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3371 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3372 |
(AbstractSourceCodeManager isNil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3373 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3374 |
useManager value:false. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3375 |
"/ cacheEntry disable. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3376 |
"/ localCheck enable. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3377 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3378 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3379 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3380 |
box addHorizontalLine. |
2001 | 3381 |
]. |
3382 |
||
3383 |
pos := box yPosition. |
|
3384 |
check := box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring. |
|
3385 |
check width:0.6. |
|
3386 |
box yPosition:pos. |
|
3387 |
butt := box addComponent:(Button label:(resources string:'configure...') action:[self syntaxColorConfigurationDialogFor:requestor]). |
|
3388 |
box makeTabable:butt. |
|
3389 |
butt enableChannel:syntaxColoring. |
|
3390 |
butt left:0.6; width:0.4. |
|
3391 |
||
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3392 |
check := box addCheckBox:(resources string:'immediate Selector check') on:fullSelectorCheck. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3393 |
check enableChannel:syntaxColoring. |
2001 | 3394 |
box addHorizontalLine. |
3395 |
||
3396 |
||
3397 |
box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier. |
|
3398 |
box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack. |
|
3399 |
||
3400 |
box |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3401 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3402 |
addAbortAndOkButtons. |
2001 | 3403 |
|
3404 |
"/ |
|
3405 |
"/ show the box ... |
|
3406 |
"/ |
|
3407 |
box open. |
|
3408 |
||
3409 |
"/ |
|
3410 |
"/ update system settings |
|
3411 |
"/ |
|
3412 |
box accepted ifTrue:[ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3413 |
Smalltalk logDoits:logDoits value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3414 |
Class updateChanges:updChanges value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3415 |
ObjectMemory nameForChanges:changeFileName value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3416 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3417 |
(hasManager and:[useManager value]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3418 |
manager isNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3419 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3420 |
manager := Smalltalk at:#SourceCodeManager. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3421 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3422 |
Class tryLocalSourceFirst:(localSourceFirst value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3423 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3424 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3425 |
localSourceFirst value ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3426 |
nm := sourceCacheDir value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3427 |
nm size > 0 ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3428 |
(fn := nm asFilename) exists ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3429 |
(self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3430 |
fn makeDirectory; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3431 |
makeReadableForAll; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3432 |
makeWritableForAll; |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3433 |
makeExecutableForAll. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3434 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3435 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3436 |
(fn exists |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3437 |
and:[fn isDirectory |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3438 |
and:[fn isReadable |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3439 |
and:[fn isWritable]]]) ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3440 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3441 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3442 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3443 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3444 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3445 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3446 |
repositoryHolder notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3447 |
repositoryHolder value size > 0 ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3448 |
manager notNil ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3449 |
manager initializeForRepository:repositoryHolder value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3450 |
] |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3451 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3452 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3453 |
] ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3454 |
Smalltalk at:#SourceCodeManager put:nil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3455 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3456 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3457 |
showErrorNotifier value ifFalse:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3458 |
Exception emergencyHandler:nil |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3459 |
] ifTrue:[ |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3460 |
Exception emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler) |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3461 |
]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3462 |
DebugView defaultVerboseBacktrace:(showVerboseStack value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3463 |
currentUserPrefs syntaxColoring:syntaxColoring value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
3464 |
currentUserPrefs at:#fullSelectorCheck put:fullSelectorCheck value. |
2001 | 3465 |
]. |
3466 |
box destroy |
|
3467 |
||
3468 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
3469 |
"Created: / 17.1.1997 / 17:39:33 / cg" |
|
3470 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
|
3471 |
"Modified: / 13.10.1998 / 15:47:31 / cg" |
|
3472 |
! |
|
3473 |
||
3474 |
stcCompilerSettingsFor:requestor |
|
3475 |
"open an extra dialog on stc-compiler related settings" |
|
3476 |
||
3477 |
|box |
|
2018 | 3478 |
stcIncludes stcDefines stcOptions |
2001 | 3479 |
stcLibraries stcLibraryPath cc stc ccOptions |
3480 |
linkCommand linkArgs |
|
2019 | 3481 |
component t |
3482 |
canLoadBinaries thisIsADemoVersion |
|
2001 | 3483 |
resources| |
3484 |
||
3485 |
resources := requestor class classResources. |
|
3486 |
||
3487 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
3488 |
||
3489 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
|
3490 |
stcDefines := Compiler stcCompilationDefines asValue. |
|
3491 |
stcOptions := Compiler stcCompilationOptions asValue. |
|
3492 |
ccOptions := Compiler ccCompilationOptions asValue. |
|
3493 |
||
3494 |
cc := Compiler ccPath asValue. |
|
3495 |
stc := Compiler stcPath asValue. |
|
3496 |
linkCommand := ObjectFileLoader linkCommand asValue. |
|
3497 |
linkArgs := ObjectFileLoader linkArgs asValue. |
|
3498 |
||
3499 |
ObjectFileLoader notNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3500 |
(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3501 |
stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3502 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3503 |
(t := ObjectFileLoader libPath) notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3504 |
stcLibraryPath := t asValue. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3505 |
] |
2001 | 3506 |
]. |
3507 |
||
3508 |
box := DialogBox new. |
|
3509 |
box label:(resources string:'STC Compilation settings'). |
|
3510 |
||
3511 |
thisIsADemoVersion := (Smalltalk releaseIdentification = 'ST/X_free_demo_vsn'). |
|
3512 |
ObjectFileLoader notNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3513 |
thisIsADemoVersion ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3514 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3515 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3516 |
addLabelledInputField:(resources string:'stc command:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3517 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3518 |
on:stc |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3519 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3520 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3521 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3522 |
component preferredExtent:(100 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3523 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3524 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3525 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3526 |
addLabelledInputField:(resources string:'stc options:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3527 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3528 |
on:stcOptions |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3529 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3530 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3531 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3532 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3533 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3534 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3535 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3536 |
addLabelledInputField:(resources string:'cc command:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3537 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3538 |
on:cc |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3539 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3540 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3541 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3542 |
component preferredExtent:(150 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3543 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3544 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3545 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3546 |
addLabelledInputField:(resources string:'cc options:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3547 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3548 |
on:ccOptions |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3549 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3550 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3551 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3552 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3553 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3554 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3555 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3556 |
addLabelledInputField:(resources string:'include directories:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3557 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3558 |
on:stcIncludes |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3559 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3560 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3561 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3562 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3563 |
canLoadBinaries ifFalse:[component disable]. |
2001 | 3564 |
|
3565 |
"/ box addVerticalSpace. |
|
3566 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3567 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3568 |
addLabelledInputField:(resources string:'defines:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3569 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3570 |
on:stcDefines |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3571 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3572 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3573 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3574 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3575 |
canLoadBinaries ifFalse:[component disable]. |
2001 | 3576 |
|
3577 |
"/ box addVerticalSpace. |
|
3578 |
||
3579 |
"/ box addVerticalSpace. |
|
3580 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3581 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3582 |
addLabelledInputField:(resources string:'link command:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3583 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3584 |
on:linkCommand |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3585 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3586 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3587 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3588 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3589 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3590 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3591 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3592 |
addLabelledInputField:(resources string:'link args:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3593 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3594 |
on:linkArgs |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3595 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3596 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3597 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3598 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3599 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3600 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3601 |
stcLibraries notNil ifTrue:[ |
2001 | 3602 |
"/ box addVerticalSpace. |
3603 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3604 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3605 |
addLabelledInputField:(resources string:'C-libraries:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3606 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3607 |
on:stcLibraries |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3608 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3609 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3610 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3611 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3612 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3613 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3614 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3615 |
stcLibraryPath notNil ifTrue:[ |
2001 | 3616 |
"/ box addVerticalSpace. |
3617 |
||
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3618 |
component := box |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3619 |
addLabelledInputField:(resources string:'stc libPath:') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3620 |
adjust:#right |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3621 |
on:stcLibraryPath |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3622 |
tabable:true |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3623 |
separateAtX:0.3. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3624 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3625 |
component preferredExtent:(250 @ component preferredExtent y). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3626 |
canLoadBinaries ifFalse:[component disable]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3627 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3628 |
]. |
2001 | 3629 |
]. |
3630 |
||
3631 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3632 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3633 |
addAbortAndOkButtons. |
2001 | 3634 |
|
3635 |
box open. |
|
3636 |
||
3637 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3638 |
thisIsADemoVersion ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3639 |
Compiler stcCompilationIncludes:stcIncludes value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3640 |
Compiler stcCompilationDefines:stcDefines value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3641 |
Compiler stcCompilationOptions:stcOptions value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3642 |
Compiler ccCompilationOptions:ccOptions value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3643 |
Compiler ccPath:cc value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3644 |
stc value ~= Compiler stcPath ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3645 |
Compiler stcPath:stc value |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3646 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3647 |
ObjectFileLoader linkCommand:linkCommand value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3648 |
ObjectFileLoader linkArgs:linkArgs value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3649 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3650 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3651 |
ObjectFileLoader notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3652 |
stcLibraries notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3653 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3654 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3655 |
stcLibraryPath notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3656 |
ObjectFileLoader libPath:(stcLibraryPath value). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3657 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3658 |
]. |
2001 | 3659 |
]. |
3660 |
box destroy |
|
3661 |
||
3662 |
"Modified: / 10.9.1995 / 19:19:18 / claus" |
|
3663 |
"Modified: / 9.9.1996 / 22:42:47 / stefan" |
|
3664 |
"Created: / 2.10.1998 / 16:27:49 / cg" |
|
3665 |
"Modified: / 21.10.1998 / 19:15:10 / cg" |
|
3666 |
! |
|
3667 |
||
3668 |
toolSettingsFor:requestor |
|
3669 |
"open a dialog on tool settings" |
|
3670 |
||
2019 | 3671 |
|box resources useNewInspector useNewChangesBrowser currentUserPrefs| |
2001 | 3672 |
|
3673 |
currentUserPrefs := UserPreferences current. |
|
3674 |
||
3675 |
resources := requestor class classResources. |
|
3676 |
||
3677 |
"/ |
|
3678 |
"/ extract relevant system settings ... |
|
3679 |
"/ |
|
3680 |
useNewInspector := currentUserPrefs useNewInspector asValue. |
|
3681 |
useNewChangesBrowser := currentUserPrefs useNewChangesBrowser asValue. |
|
3682 |
||
3683 |
"/ |
|
3684 |
"/ create a box on those values ... |
|
3685 |
"/ |
|
3686 |
box := DialogBox new. |
|
3687 |
box label:(resources string:'Tool settings'). |
|
3688 |
||
3689 |
||
3690 |
||
3691 |
box addCheckBox:(resources string:'Use the new Changes Browser') on:useNewChangesBrowser. |
|
3692 |
box addHorizontalLine. |
|
3693 |
box addCheckBox:(resources string:'Use hierarchical inspector') on:useNewInspector. |
|
3694 |
||
3695 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3696 |
addHelpButtonFor:'Launcher/toolSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3697 |
addAbortAndOkButtons. |
2001 | 3698 |
|
3699 |
"/ |
|
3700 |
"/ show the box ... |
|
3701 |
"/ |
|
3702 |
box open. |
|
3703 |
||
3704 |
"/ |
|
3705 |
"/ update system settings |
|
3706 |
"/ |
|
3707 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3708 |
currentUserPrefs useNewInspector:useNewInspector value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3709 |
currentUserPrefs useNewChangesBrowser:useNewChangesBrowser value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3710 |
useNewInspector value ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3711 |
Inspector := NewInspector::InspectorView |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3712 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3713 |
Inspector := InspectorView |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3714 |
]. |
2001 | 3715 |
]. |
3716 |
box destroy |
|
3717 |
||
3718 |
"Modified: / 9.9.1996 / 22:43:36 / stefan" |
|
3719 |
"Modified: / 16.4.1998 / 17:18:47 / ca" |
|
3720 |
"Created: / 13.10.1998 / 15:44:36 / cg" |
|
3721 |
"Modified: / 13.10.1998 / 16:03:43 / cg" |
|
3722 |
! |
|
3723 |
||
3724 |
viewStyleSettingsFor:requestor |
|
3725 |
"open a dialog on viewStyle related settings" |
|
3726 |
||
2019 | 3727 |
|resourceDir dir box |
2001 | 3728 |
list listView scrView infoLabel infoForwarder newStyle |
2019 | 3729 |
someRsrcFile didApply resources listUpdater showStandardStylesOnly standardStyles| |
2001 | 3730 |
|
3731 |
showStandardStylesOnly := true asValue. |
|
2110
ed1910b1dd06
added decWindows to the standard styles
Claus Gittinger <cg@exept.de>
parents:
2097
diff
changeset
|
3732 |
standardStyles := #( |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3733 |
'decWindows' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3734 |
'iris' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3735 |
'motif' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3736 |
'mswindows95' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3737 |
'next' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3738 |
'normal' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3739 |
'os2' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3740 |
'st80' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3741 |
). |
2001 | 3742 |
|
3743 |
resources := requestor class classResources. |
|
3744 |
||
3745 |
" |
|
3746 |
search resources directory for a list of .style files ... |
|
3747 |
" |
|
3748 |
someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style'). |
|
3749 |
someRsrcFile notNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3750 |
resourceDir := someRsrcFile asFilename directoryName |
2001 | 3751 |
] ifFalse:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3752 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
2001 | 3753 |
]. |
3754 |
||
3755 |
resourceDir isNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3756 |
self warn:(resources string:'no styles found (missing ''resources'' directory)'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3757 |
^ self |
2001 | 3758 |
]. |
3759 |
dir := resourceDir asFilename directoryContents. |
|
3760 |
||
3761 |
list := SelectionInList new. |
|
3762 |
||
3763 |
listUpdater := [ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3764 |
|listOfStyles lastSelection| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3765 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3766 |
lastSelection := list selection. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3767 |
listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style']. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3768 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3769 |
Filename isCaseSensitive ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3770 |
listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3771 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3772 |
listOfStyles remove:'generic' ifAbsent:nil; remove:'mswindows3' ifAbsent:nil. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3773 |
showStandardStylesOnly value ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3774 |
listOfStyles := listOfStyles select:[:aStyleName | standardStyles includes:aStyleName]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3775 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3776 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3777 |
listOfStyles sort. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3778 |
list list:listOfStyles. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3779 |
list selection:lastSelection. |
2001 | 3780 |
]. |
3781 |
listUpdater value. |
|
3782 |
||
3783 |
showStandardStylesOnly onChangeSend:#value to:listUpdater. |
|
3784 |
||
3785 |
infoForwarder := [ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3786 |
|nm sheet comment| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3787 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3788 |
comment := ''. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3789 |
nm := list selection. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3790 |
nm notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3791 |
sheet := ViewStyle fromFile:(nm , '.style'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3792 |
comment := (sheet at:#comment ifAbsent:'') withoutSeparators. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3793 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3794 |
comment := comment withCRs asStringCollection. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3795 |
comment size == 1 ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3796 |
comment := comment first |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3797 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3798 |
infoLabel label:comment |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3799 |
]. |
2001 | 3800 |
|
3801 |
list onChangeSend:#value to:infoForwarder. |
|
3802 |
||
3803 |
box := Dialog new. |
|
3804 |
box label:(resources string:'Style selection'). |
|
3805 |
||
3806 |
(box addTextLabel:(resources at:'STYLE_MSG' default:'select a style') withCRs) adjust:#left. |
|
3807 |
listView := SelectionInListView on:list. |
|
3808 |
listView doubleClickAction:[:sel | box accept value:true. box hide]. |
|
3809 |
box addCheckBox:(resources string:'standard styles only') on:showStandardStylesOnly. |
|
3810 |
scrView := box addComponent:(ScrollableView forView:listView) tabable:true. |
|
3811 |
||
3812 |
box addVerticalSpace. |
|
3813 |
||
3814 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
|
3815 |
||
2048 | 3816 |
box addAbortAndOkButtons. |
2001 | 3817 |
"/ mhmh - the newLauncher does not yet handle apply (without close) correctly |
3818 |
"/ b := box addButton:(Button label:(resources string:'apply')). |
|
3819 |
"/ b action:[didApply := true. requestor changeViewStyleTo:(list selection)]. |
|
3820 |
||
3821 |
(standardStyles includes:View defaultStyle) ifFalse:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3822 |
showStandardStylesOnly value:false |
2001 | 3823 |
]. |
3824 |
list selection:(View defaultStyle). |
|
3825 |
||
3826 |
box stickAtBottomWithVariableHeight:scrView. |
|
3827 |
box stickAtBottomWithFixHeight:infoLabel. |
|
2019 | 3828 |
didApply := false. |
2001 | 3829 |
box open. |
3830 |
||
3831 |
box destroy. |
|
3832 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3833 |
((newStyle := list selection) ~= View defaultStyle |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3834 |
or:[didApply ~~ true]) ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3835 |
requestor changeViewStyleTo:newStyle. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
3836 |
]. |
2001 | 3837 |
]. |
3838 |
||
3839 |
" |
|
3840 |
self viewStyleSettingsFor:nil |
|
3841 |
" |
|
3842 |
||
3843 |
"Modified: / 14.9.1998 / 20:33:59 / cg" |
|
3844 |
! ! |
|
3845 |
||
3846 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs - file'! |
|
3847 |
||
3848 |
objectModuleDialogFor:requestor |
|
3849 |
"opens a moduleInfo dialog" |
|
3850 |
||
3851 |
<resource: #programMenu > |
|
3852 |
||
3853 |
|allModules moduleNames |
|
3854 |
allObjects methodObjects methodNames |
|
3855 |
cObjects cObjectNames |
|
3856 |
otherObjects otherObjectNames |
|
3857 |
box l handles unloadButton unloadAndRemoveButton |
|
3858 |
list1 list2 listView1 listView2 |
|
3859 |
y panel |
|
3860 |
showBuiltIn showModules showMethods showCObjects showOthers |
|
3861 |
moduleListUpdater check canDoIt menu |
|
3862 |
resources middleLabel| |
|
3863 |
||
3864 |
resources := requestor class classResources. |
|
3865 |
||
3866 |
showBuiltIn := true asValue. |
|
3867 |
canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
3868 |
||
3869 |
showModules := canDoIt asValue. |
|
3870 |
showMethods := canDoIt asValue. |
|
3871 |
showCObjects := canDoIt asValue. |
|
3872 |
showOthers := canDoIt asValue. |
|
3873 |
||
3874 |
list1 := SelectionInList new. |
|
3875 |
list2 := SelectionInList new. |
|
3876 |
||
3877 |
moduleListUpdater := [ |
|
3878 |
|l| |
|
3879 |
||
3880 |
list2 list:nil. |
|
3881 |
||
3882 |
l := Array new. |
|
3883 |
handles := Array new. |
|
3884 |
||
3885 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
3886 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
3887 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
3888 |
allModules := allModules select:[:i | |
|
3889 |
|wantToSee| |
|
3890 |
||
3891 |
wantToSee := i dynamic. |
|
3892 |
showBuiltIn value ifTrue:[ |
|
3893 |
wantToSee := wantToSee not |
|
3894 |
]. |
|
3895 |
wantToSee |
|
3896 |
] |
|
3897 |
]. |
|
3898 |
||
3899 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
|
3900 |
allModules sort:[:a :b | (a id) > (b id)]. |
|
3901 |
moduleNames := allModules collect:[:entry | entry name]. |
|
3902 |
l := l , moduleNames. |
|
3903 |
handles := handles , allModules. |
|
3904 |
]. |
|
3905 |
||
3906 |
showMethods value ifTrue:[ |
|
3907 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
3908 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
3909 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
3910 |
'compiled method - removed' " , ' (in ' , mH pathName , ')' " |
|
3911 |
] ifFalse:[ |
|
3912 |
'compiled method ' , mH method whoString " , ' (in ' , mH pathName , ')' " |
|
3913 |
]. |
|
3914 |
]. |
|
3915 |
l := l , methodNames. |
|
3916 |
handles := handles , methodObjects. |
|
3917 |
]. |
|
3918 |
||
3919 |
showCObjects value ifTrue:[ |
|
3920 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
3921 |
cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray. |
|
3922 |
cObjectNames := cObjects collect:[:entry | entry pathName]. |
|
3923 |
l := l , cObjectNames. |
|
3924 |
handles := handles , cObjects. |
|
3925 |
]. |
|
3926 |
||
3927 |
showOthers value ifTrue:[ |
|
3928 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
3929 |
otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle |
|
3930 |
or:[h isMethodHandle |
|
3931 |
or:[h isClassLibHandle]]) not]) asArray. |
|
3932 |
otherObjectNames := otherObjects collect:[:entry | entry pathName]. |
|
3933 |
l := l , otherObjectNames. |
|
3934 |
handles := handles , otherObjects. |
|
3935 |
]. |
|
3936 |
||
3937 |
showBuiltIn value ifTrue:[ |
|
3938 |
l := #('VM') , l. |
|
3939 |
handles := #(VM) , handles. |
|
3940 |
allModules := #(VM) , allModules. |
|
3941 |
]. |
|
3942 |
||
3943 |
list1 list:l. |
|
3944 |
unloadButton disable. |
|
3945 |
unloadAndRemoveButton disable. |
|
3946 |
]. |
|
3947 |
||
3948 |
showBuiltIn onChangeSend:#value to:moduleListUpdater. |
|
3949 |
showModules onChangeSend:#value to:moduleListUpdater. |
|
3950 |
showMethods onChangeSend:#value to:moduleListUpdater. |
|
3951 |
showCObjects onChangeSend:#value to:moduleListUpdater. |
|
3952 |
showOthers onChangeSend:#value to:moduleListUpdater. |
|
3953 |
||
3954 |
box := Dialog new. |
|
3955 |
box label:(resources string:'ST/X & Module Version information'). |
|
3956 |
||
3957 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
3958 |
listView1 model:list1. |
|
3959 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
3960 |
listView1 action:[:sel | |
|
3961 |
|info classNames tabs module| |
|
3962 |
||
3963 |
listView1 middleButtonMenu:nil. |
|
3964 |
||
3965 |
box withWaitCursorDo:[ |
|
3966 |
|nm fileName addr entry1 entry2 entry3 method l| |
|
3967 |
||
3968 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6 3.5). |
|
3969 |
||
3970 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
3971 |
info := allModules at:sel ifAbsent:nil. |
|
3972 |
]. |
|
3973 |
info isNil ifTrue:[ |
|
3974 |
"/ selected a method, cObject or unknown |
|
3975 |
||
3976 |
module := handles at:sel. |
|
3977 |
fileName := module pathName. |
|
3978 |
||
3979 |
module isMethodHandle ifTrue:[ |
|
3980 |
middleLabel label:'contains method:'. |
|
3981 |
||
3982 |
(method := module method) isNil ifTrue:[ |
|
3983 |
nm := '** removed **'. |
|
3984 |
] ifFalse:[ |
|
3985 |
menu := PopUpMenu |
|
3986 |
labels:#('inspect' 'browse') |
|
3987 |
selectors:#(inspect browse). |
|
3988 |
menu actionAt:#inspect put:[ method inspect ]. |
|
3989 |
menu actionAt:#browse put:[ |who| |
|
3990 |
who := method who. |
|
3991 |
SystemBrowser |
|
3992 |
openInClass:(who methodClass) |
|
3993 |
selector:(who methodSelector) |
|
3994 |
]. |
|
3995 |
listView1 middleButtonMenu:menu. |
|
3996 |
||
3997 |
nm := (method whoString) asText emphasizeAllWith:(#color->Color blue). |
|
3998 |
]. |
|
3999 |
entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4000 |
entry1 colAt:1 put:'compiled method'; colAt:2 put:nm. |
|
4001 |
||
4002 |
entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4003 |
entry2 colAt:1 put:'path'; colAt:2 put:fileName. |
|
4004 |
||
4005 |
entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4006 |
entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code address hexPrintString leftPaddedTo:8 with:$0)). |
|
4007 |
||
4008 |
list2 list:(Array with:entry1 with:entry2 with:entry3). |
|
4009 |
] ifFalse:[ |
|
4010 |
(module isFunctionObjectHandle |
|
4011 |
and:[module functions notEmpty]) ifTrue:[ |
|
4012 |
middleLabel label:'contains function:'. |
|
4013 |
||
4014 |
menu := PopUpMenu |
|
4015 |
labels:#('inspect') |
|
4016 |
selectors:#(inspect). |
|
4017 |
menu actionAt:#inspect put:[ module functions inspect ]. |
|
4018 |
listView1 middleButtonMenu:menu. |
|
4019 |
||
4020 |
list2 list:((module functions select:[:f | f notNil]) |
|
4021 |
collect:[:f | |entry| |
|
4022 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4023 |
entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)). |
|
4024 |
entry colAt:2 put:('address: (16r) ' , (f code address hexPrintString leftPaddedTo:8 with:$0)). |
|
4025 |
entry |
|
4026 |
]). |
|
4027 |
] ifFalse:[ |
|
4028 |
list2 list:#('nothing known about contents (no functions have been extracted)'). |
|
4029 |
] |
|
4030 |
]. |
|
4031 |
||
4032 |
unloadButton enable. |
|
4033 |
unloadAndRemoveButton disable. |
|
4034 |
] ifFalse:[ |
|
4035 |
info == #VM ifTrue:[ |
|
4036 |
"/ dummy entry for VM; |
|
4037 |
"/ show file versions in lower view. |
|
4038 |
||
4039 |
middleLabel label:'contains modules:'. |
|
4040 |
l := (ObjectMemory getVMIdentificationStrings). |
|
4041 |
l := l select:[:entry | entry includesString:'$Header']. |
|
4042 |
l := l select:[:entry | entry includesString:',v']. |
|
4043 |
l := l collect:[:entry | |
|
4044 |
|i1 i2 file revision date listEntry| |
|
4045 |
||
4046 |
listEntry := MultiColListEntry new:3 tabulatorSpecification:tabs. |
|
4047 |
||
4048 |
i1 := entry indexOfSubCollection:'librun'. |
|
4049 |
i1 ~~ 0 ifTrue:[ |
|
4050 |
i2 := entry indexOfSubCollection:',v' startingAt:i1. |
|
4051 |
i2 ~~ 0 ifTrue:[ |
|
4052 |
file := entry copyFrom:i1+7 to:(i2-1). |
|
4053 |
listEntry colAt:1 put:file. |
|
4054 |
||
4055 |
i1 := i2+3. |
|
4056 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
4057 |
revision := entry copyFrom:i1 to:(i2-1). |
|
4058 |
listEntry colAt:2 put:revision. |
|
4059 |
||
4060 |
i1 := i2+1. |
|
4061 |
i2 := entry indexOfSeparatorStartingAt:i1. |
|
4062 |
date := entry copyFrom:i1 to:(i2-1). |
|
4063 |
listEntry colAt:3 put:date. |
|
4064 |
]. |
|
4065 |
]. |
|
4066 |
listEntry. |
|
4067 |
"/ entry |
|
4068 |
]. |
|
4069 |
list2 list:l. |
|
4070 |
||
4071 |
unloadButton disable. |
|
4072 |
unloadAndRemoveButton disable. |
|
4073 |
] ifFalse:[ |
|
4074 |
"/ selected a package |
|
4075 |
||
4076 |
"/ fill bottom list with class-info |
|
4077 |
||
4078 |
middleLabel label:'contains classes:'. |
|
4079 |
classNames := info classNames asSortedCollection. |
|
4080 |
classNames := classNames select:[:cName | |
|
4081 |
|cls| |
|
4082 |
||
4083 |
cls := Smalltalk classNamed:cName. |
|
4084 |
cls isNil ifTrue:[ |
|
4085 |
true "a removed class" |
|
4086 |
] ifFalse:[ |
|
4087 |
cls isPrivate not |
|
4088 |
]. |
|
4089 |
]. |
|
4090 |
||
4091 |
classNames := classNames collect:[:cName | |
|
4092 |
|cls entry rev listEntry| |
|
4093 |
||
4094 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
4095 |
listEntry colAt:1 put:cName. |
|
4096 |
||
4097 |
cls := Smalltalk classNamed:cName. |
|
4098 |
cls isNil ifTrue:[ |
|
4099 |
listEntry colAt:2 put:'(class removed)'. |
|
4100 |
] ifFalse:[ |
|
4101 |
rev := cls binaryRevision. |
|
4102 |
rev notNil ifTrue:[ |
|
4103 |
cls isLoaded ifFalse:[ |
|
4104 |
entry := '(stub for: ' , rev. |
|
4105 |
] ifTrue:[ |
|
4106 |
entry :='(bin: ' , rev. |
|
4107 |
]. |
|
4108 |
cls revision ~= rev ifTrue:[ |
|
4109 |
entry := entry , ' / src: ' , cls revision |
|
4110 |
]. |
|
4111 |
listEntry colAt:2 put:entry , ')' |
|
4112 |
] ifFalse:[ |
|
4113 |
cls revision notNil ifTrue:[ |
|
4114 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
|
4115 |
] |
|
4116 |
] |
|
4117 |
]. |
|
4118 |
listEntry |
|
4119 |
]. |
|
4120 |
list2 list:classNames. |
|
4121 |
info dynamic ifTrue:[ |
|
4122 |
unloadButton enable. |
|
4123 |
unloadAndRemoveButton enable. |
|
4124 |
] ifFalse:[ |
|
4125 |
unloadButton disable. |
|
4126 |
unloadAndRemoveButton disable. |
|
4127 |
]. |
|
4128 |
]. |
|
4129 |
] |
|
4130 |
] |
|
4131 |
]. |
|
4132 |
||
4133 |
||
4134 |
panel := HorizontalPanelView new. |
|
4135 |
||
4136 |
panel add:(l := Label label:'show:'). |
|
4137 |
l adjust:#left; borderWidth:0. |
|
4138 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
|
4139 |
box makeTabable:check. |
|
4140 |
panel add:(check := CheckBox label:'classLibs' model:showModules). |
|
4141 |
canDoIt ifFalse:[ |
|
4142 |
check disable |
|
4143 |
] ifTrue:[ |
|
4144 |
box makeTabable:check. |
|
4145 |
]. |
|
4146 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
|
4147 |
canDoIt ifFalse:[ |
|
4148 |
check disable |
|
4149 |
] ifTrue:[ |
|
4150 |
box makeTabable:check. |
|
4151 |
]. |
|
4152 |
panel add:(check := CheckBox label:'c-objects' model:showCObjects). |
|
4153 |
canDoIt ifFalse:[ |
|
4154 |
check disable |
|
4155 |
] ifTrue:[ |
|
4156 |
box makeTabable:check. |
|
4157 |
]. |
|
4158 |
panel add:(check := CheckBox label:'others' model:showOthers). |
|
4159 |
canDoIt ifFalse:[ |
|
4160 |
check disable |
|
4161 |
] ifTrue:[ |
|
4162 |
box makeTabable:check. |
|
4163 |
]. |
|
4164 |
||
4165 |
panel horizontalLayout:#fitSpace. |
|
4166 |
"/ panel horizontalLayout:#leftSpace. |
|
4167 |
||
4168 |
box addComponent:panel tabable:false. |
|
4169 |
||
4170 |
box addVerticalSpace. |
|
4171 |
box addComponent:listView1 tabable:true. |
|
4172 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
|
4173 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
4174 |
||
4175 |
l := box addTextLabel:(resources string:'contains:'). |
|
4176 |
l adjust:#left; borderWidth:0. |
|
4177 |
l origin:0.0@0.4 corner:1.0@0.4. |
|
4178 |
l topInset:(View viewSpacing). |
|
4179 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
|
4180 |
middleLabel := l. |
|
4181 |
||
4182 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
4183 |
listView2 model:list2; printItems:false. |
|
4184 |
box addComponent:listView2 tabable:true. |
|
4185 |
listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2. |
|
4186 |
listView2 disable. |
|
4187 |
||
4188 |
unloadButton := Button label:(resources string:'unload'). |
|
4189 |
unloadButton action:[ |
|
4190 |
box withWaitCursorDo:[ |
|
4191 |
|info idx pathName| |
|
4192 |
||
4193 |
idx := list1 selectionIndex. |
|
4194 |
info := allModules at:idx ifAbsent:nil. |
|
4195 |
||
4196 |
list1 selectionIndex:nil. |
|
4197 |
||
4198 |
info isNil ifTrue:[ |
|
4199 |
"/ selected a method |
|
4200 |
"/ idx := idx - allModules size. |
|
4201 |
pathName := (handles at:idx) pathName. |
|
4202 |
||
4203 |
] ifFalse:[ |
|
4204 |
"/ selected a package |
|
4205 |
pathName := info pathName. |
|
4206 |
]. |
|
4207 |
ObjectFileLoader unloadObjectFile:pathName. |
|
4208 |
moduleListUpdater value. |
|
4209 |
unloadButton disable. |
|
4210 |
] |
|
4211 |
]. |
|
4212 |
||
4213 |
unloadAndRemoveButton := Button label:(resources string:'remove classes & unload'). |
|
4214 |
unloadAndRemoveButton action:[ |
|
4215 |
box withWaitCursorDo:[ |
|
4216 |
|info idx pathName| |
|
4217 |
||
4218 |
idx := list1 selectionIndex. |
|
4219 |
info := allModules at:idx ifAbsent:nil. |
|
4220 |
||
4221 |
list1 selectionIndex:nil. |
|
4222 |
||
4223 |
info isNil ifTrue:[ |
|
4224 |
"/ selected a method |
|
4225 |
"/ idx := idx - allModules size. |
|
4226 |
pathName := (handles at:idx) pathName. |
|
4227 |
||
4228 |
] ifFalse:[ |
|
4229 |
"/ selected a package |
|
4230 |
pathName := info pathName. |
|
4231 |
]. |
|
4232 |
ObjectFileLoader unloadObjectFileAndRemoveClasses:pathName. |
|
4233 |
moduleListUpdater value. |
|
4234 |
unloadAndRemoveButton disable. |
|
4235 |
] |
|
4236 |
]. |
|
4237 |
||
4238 |
moduleListUpdater value. |
|
4239 |
||
4240 |
box addButton:unloadButton. |
|
4241 |
box addButton:unloadAndRemoveButton. |
|
4242 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
|
4243 |
||
4244 |
y := box yPosition. |
|
4245 |
listView2 topInset:(l preferredExtent y + 5). |
|
4246 |
listView2 bottomInset:(box preferredExtent y - y). |
|
4247 |
||
4248 |
box width:(400 min:(box device width * 2 // 3)); |
|
4249 |
height:(450 min:(box device height - 50)). |
|
4250 |
||
4251 |
"/ box sizeFixed:true. |
|
4252 |
box openWithExtent:(600 min:(box device width * 2 // 3)) |
|
4253 |
@ |
|
4254 |
(500 min:(box device height - 50)) . |
|
4255 |
||
4256 |
box destroy. |
|
4257 |
||
4258 |
"Modified: / 17.9.1995 / 16:47:50 / claus" |
|
4259 |
"Created: / 31.7.1998 / 15:49:45 / cg" |
|
4260 |
"Modified: / 10.8.1998 / 11:33:22 / cg" |
|
4261 |
! ! |
|
4262 |
||
4263 |
!AbstractLauncherApplication::LauncherDialogs class methodsFor:'dialogs-private'! |
|
4264 |
||
4265 |
cvsConfigurationDialogFor:requestor |
|
4266 |
|box y cvsRootHolder component resources defaultsList| |
|
4267 |
||
4268 |
resources := requestor class classResources. |
|
4269 |
||
4270 |
OperatingSystem isUNIXlike ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4271 |
defaultsList := #('/files/CVS' '/CVS' 'host:/files/CVS' 'host:/CVS'). |
2001 | 4272 |
] ifFalse:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4273 |
OperatingSystem isMSDOSlike ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4274 |
defaultsList := #(':local:c:\files\CVS' ':local:c:\CVS' 'host:/files/CVS' 'host:/CVS'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4275 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4276 |
defaultsList := #('host:/files/CVS' 'host:/CVS'). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4277 |
] |
2001 | 4278 |
]. |
4279 |
||
4280 |
cvsRootHolder := CVSSourceCodeManager repositoryName ? '/files/CVS'. |
|
4281 |
cvsRootHolder := cvsRootHolder asValue. |
|
4282 |
||
4283 |
"/ |
|
4284 |
"/ create a box to input the CVSRoot ... |
|
4285 |
"/ |
|
4286 |
box := DialogBox new. |
|
4287 |
box label:(resources string:'CVS Setup'). |
|
4288 |
||
4289 |
component := (box addTextLabel:'CVS SourceCodeManager setup'). |
|
4290 |
component adjust:#left. |
|
4291 |
||
4292 |
y := box yPosition. |
|
4293 |
component := box addTextLabel:(resources string:'CVSRoot:'). |
|
4294 |
component width:0.25; adjust:#right; borderWidth:0. |
|
4295 |
box yPosition:y. |
|
4296 |
component := box addComboBoxOn:nil tabable:true. |
|
4297 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
4298 |
component width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
4299 |
component list:defaultsList. |
|
4300 |
component model:cvsRootHolder. |
|
4301 |
||
4302 |
"/ component := box |
|
4303 |
"/ addLabelledInputField:(resources string:'CVSRoot:') |
|
4304 |
"/ adjust:#right |
|
4305 |
"/ on:nil |
|
4306 |
"/ tabable:true |
|
4307 |
"/ separateAtX:0.5. |
|
4308 |
"/ component acceptOnLeave:false. |
|
4309 |
"/ component model:cvsRootHolder. |
|
4310 |
||
4311 |
box |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4312 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4313 |
addAbortAndOkButtons. |
2001 | 4314 |
|
4315 |
"/ |
|
4316 |
"/ show the box ... |
|
4317 |
"/ |
|
4318 |
box extent:400@300. |
|
4319 |
box showAtPointer. |
|
4320 |
||
4321 |
"/ |
|
4322 |
"/ update system settings |
|
4323 |
"/ |
|
4324 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4325 |
CVSSourceCodeManager initializeForRepository:cvsRootHolder value |
2001 | 4326 |
]. |
4327 |
box destroy |
|
4328 |
||
4329 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
4330 |
"Modified: / 12.8.1998 / 17:09:02 / cg" |
|
4331 |
! |
|
4332 |
||
4333 |
fontBoxForEncoding:encodingMatch for:requestor |
|
4334 |
"open a fontBox, showing fonts which match some encoding |
|
4335 |
(used when changing to japanese ...)" |
|
4336 |
||
4337 |
|box y b |
|
4338 |
labelDef buttonDef listDef menuDef textDef |
|
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
4339 |
models labels allOfThem filter resources defaultButton| |
2001 | 4340 |
|
4341 |
resources := requestor class classResources. |
|
4342 |
||
4343 |
encodingMatch notNil ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4344 |
filter := [:f | f encoding notNil |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4345 |
and:[encodingMatch match:f encoding]]. |
2001 | 4346 |
]. |
4347 |
||
4348 |
models := OrderedCollection new. |
|
4349 |
labels := OrderedCollection new. |
|
4350 |
||
4351 |
models add:(allOfThem := nil asValue). |
|
4352 |
models add:(labelDef := Label defaultFont asValue). |
|
4353 |
models add:(buttonDef := Button defaultFont asValue). |
|
4354 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
4355 |
models add:(menuDef := MenuView defaultFont asValue). |
|
4356 |
models add:(textDef := TextView defaultFont asValue). |
|
4357 |
||
4358 |
box := Dialog new. |
|
4359 |
box label:(resources string:'Font settings'). |
|
4360 |
||
4361 |
models |
|
4362 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
|
4363 |
do:[:model :title | |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4364 |
|y2 lbl f i| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4365 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4366 |
f := model value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4367 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4368 |
(box addTextLabel:title) adjust:#left. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4369 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4370 |
y := box yPosition. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4371 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4372 |
b relativeExtent:nil; extent:(b preferredExtent). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4373 |
y2 := box yPosition. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4374 |
box yPosition:y. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4375 |
i := box leftIndent. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4376 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4377 |
(lbl := box addTextLabel:'') |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4378 |
adjust:#left; |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4379 |
font:(model value); |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4380 |
labelChannel:(BlockValue |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4381 |
with:[:v | |f| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4382 |
f := v value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4383 |
f isNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4384 |
'' |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4385 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4386 |
f userFriendlyName |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4387 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4388 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4389 |
argument:model). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4390 |
labels add:lbl. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4391 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4392 |
box leftIndent:i. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4393 |
box yPosition:(box yPosition max:y2). |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4394 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4395 |
box addVerticalSpace; addHorizontalLine; addVerticalSpace. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4396 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4397 |
b action:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4398 |
|f| |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4399 |
|
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4400 |
f := FontPanel |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4401 |
fontFromUserInitial:(model value) |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4402 |
title:(resources string:'font for %1' with:title) |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4403 |
filter:filter. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4404 |
f notNil ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4405 |
model == allOfThem ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4406 |
models do:[:m | m value:f]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4407 |
labels do:[:l | l font:f] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4408 |
] ifFalse:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4409 |
model value:f. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4410 |
lbl font:f. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4411 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4412 |
] |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4413 |
]. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4414 |
model == allOfThem ifTrue:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4415 |
box addVerticalSpace |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4416 |
] |
2001 | 4417 |
]. |
4418 |
||
2048 | 4419 |
box addAbortAndOkButtons. |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
4420 |
defaultButton := Button label:(resources string:'defaults'). |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
4421 |
|
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
4422 |
(DialogBox styleSheet at:'dialogBox.okAtLeft') ifTrue:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4423 |
box addButton:defaultButton after:nil. |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
4424 |
] ifFalse:[ |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4425 |
box addButton:defaultButton before:nil. |
2047
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
4426 |
]. |
bb2070a26bd2
care for styleSheets right-to-left button order.
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
4427 |
defaultButton |
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4428 |
action:[ |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4429 |
"/ fetch defaults |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4430 |
View readStyleSheetAndUpdateAllStyleCaches. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4431 |
labelDef value: Label defaultFont. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4432 |
buttonDef value: Button defaultFont. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4433 |
listDef value: SelectionInListView defaultFont. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4434 |
menuDef value: MenuView defaultFont. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4435 |
textDef value: TextView defaultFont. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4436 |
]. |
2001 | 4437 |
|
4438 |
box open. |
|
4439 |
box accepted ifTrue:[ |
|
2160
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4440 |
Label defaultFont:labelDef value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4441 |
Button defaultFont:buttonDef value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4442 |
Toggle defaultFont:buttonDef value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4443 |
SelectionInListView defaultFont:listDef value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4444 |
MenuView defaultFont:menuDef value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4445 |
PullDownMenu defaultFont:menuDef value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4446 |
TextView defaultFont:textDef value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4447 |
EditTextView defaultFont:textDef value. |
028c1d5740e5
exit smalltalk is now the default, when closing the launcher.
Claus Gittinger <cg@exept.de>
parents:
2149
diff
changeset
|
4448 |
CodeView defaultFont:textDef value. |
2001 | 4449 |
]. |
4450 |
box destroy. |
|
4451 |
^ box accepted |
|
4452 |
||
4453 |
"Created: / 27.2.1996 / 01:44:16 / cg" |
|
4454 |
"Modified: / 17.6.1996 / 13:38:48 / stefan" |
|
4455 |
"Modified: / 15.9.1998 / 22:04:51 / cg" |
|
4456 |
! |
|
4457 |
||
4458 |
syntaxColorConfigurationDialogFor:requestor |
|
4459 |
|box frame exampleView |
|
4460 |
resources exampleText coloredText recolorAction |
|
4461 |
syntaxColor syntaxColors colorMenu oldUserPreferences |
|
4462 |
syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox |
|
2019 | 4463 |
syntaxEmphasisesBox syntaxColoringResetBox| |
2001 | 4464 |
|
4465 |
resources := requestor class classResources. |
|
4466 |
||
4467 |
exampleText := |
|
4468 |
'methodSelector:methodArg |
|
4469 |
"method comment: |
|
4470 |
some stupid code to show the current settings" |
|
4471 |
||
4472 |
|methodVar| |
|
4473 |
||
4474 |
"/ another comment ... |
|
2200 | 4475 |
self at:methodArg. "/ a message |
4476 |
self bar:methodVar. "/ a bad message |
|
2045
59dae01315b9
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
2041
diff
changeset
|
4477 |
methodVar := Array new:1. |
2200 | 4478 |
unknonVar := 1. "/ a bad variable |
4479 |
UnknonVar := 1. "/ another bad variable |
|
2001 | 4480 |
"self bar:methodVar. detect commented code easily" |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4481 |
1 to:5 do:[:i | self at:i + 1]. |
2001 | 4482 |
Transcript showCR:''some string'' , #someSymbol. |
2083 | 4483 |
^ self. |
2001 | 4484 |
'. |
4485 |
||
4486 |
coloredText := '' asValue. |
|
4487 |
recolorAction := [ coloredText value:(SyntaxHighlighter formatMethod:exampleText in:nil) ]. |
|
4488 |
recolorAction value. |
|
4489 |
||
4490 |
"/ |
|
4491 |
"/ create a box on those values ... |
|
4492 |
"/ |
|
4493 |
box := DialogBox new. |
|
4494 |
box label:(resources string:'Syntax Colors'). |
|
4495 |
||
4496 |
frame := View new. |
|
4497 |
frame extent:1.0 @ 200. |
|
4498 |
frame borderWidth:0. |
|
4499 |
||
4500 |
exampleView := HVScrollableView for:TextView in:frame. |
|
4501 |
exampleView model:coloredText. |
|
4502 |
exampleView origin:0.0@0.0 corner:1.0@1.0; inset:2. |
|
4503 |
||
4504 |
frame topInset:box yPosition. |
|
4505 |
box addComponent:frame withExtent:1.0@200. |
|
4506 |
box makeTabable:exampleView. |
|
4507 |
frame width:1.0. |
|
4508 |
||
4509 |
box addVerticalSpace. |
|
4510 |
||
4511 |
oldUserPreferences := UserPreferences current copy. |
|
4512 |
||
4513 |
syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColors initialSelection:1). |
|
4514 |
syntaxColorSelector := [(syntaxColors selection replChar:$ withString: '') asLowercaseFirst asSymbol]. |
|
4515 |
syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol]. |
|
4516 |
syntaxColor := (UserPreferences current perform: syntaxColorSelector value) asValue. |
|
4517 |
colorMenu := ColorMenu new. |
|
4518 |
colorMenu model: syntaxColor. |
|
4519 |
syntaxColor onChangeSend: #value to: |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4520 |
[UserPreferences current at: syntaxColorSelector value put: syntaxColor value. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4521 |
recolorAction value.]. |
2001 | 4522 |
syntaxColors onChangeSend: #value to: |
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4523 |
[syntaxColor value: (UserPreferences current perform:syntaxColorSelector value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4524 |
syntaxEmphasises selection: (UserPreferences current perform: syntaxEmphasisSelector value). |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4525 |
recolorAction value.]. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4526 |
|
2001 | 4527 |
syntaxEmphasisesBox := box addComboListOn: (syntaxEmphasises := SelectionInList with:#(normal underline bold boldUnderline italic italicUnderline reverse) initialSelection:1). |
4528 |
syntaxEmphasises onChangeSend: #value to: |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4529 |
[UserPreferences current at: syntaxEmphasisSelector value put: syntaxEmphasises selection asSymbol. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4530 |
recolorAction value]. |
2001 | 4531 |
syntaxColors changed:#value. "/ to force initial update of emphasis |
4532 |
box addComponent:colorMenu tabable:true. |
|
4533 |
syntaxColoringResetBox := box addComponent:(Button new label: (resources string:'reset'); action: [UserPreferences reset. syntaxColor value: (UserPreferences current perform:syntaxColorSelector value)]). |
|
4534 |
box makeTabable:syntaxColoringResetBox. |
|
4535 |
||
4536 |
syntaxColoringBox enable. colorMenu enable. syntaxEmphasisesBox enable. syntaxColoringResetBox enable. |
|
4537 |
||
4538 |
box |
|
4539 |
"/ addHelpButtonFor:'Launcher/sourceSettings.html'; |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4540 |
addAbortAndOkButtons. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4541 |
|
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4542 |
box stickAtBottomWithVariableHeight:frame. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4543 |
box stickAtBottomWithFixHeight:syntaxColoringBox. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4544 |
box stickAtBottomWithFixHeight:syntaxEmphasisesBox. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4545 |
box stickAtBottomWithFixHeight:colorMenu. |
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4546 |
box stickAtBottomWithFixHeight:syntaxColoringResetBox. |
2001 | 4547 |
|
4548 |
"/ |
|
4549 |
"/ show the box ... |
|
4550 |
"/ |
|
4551 |
box extent:400@300. |
|
4552 |
box openModal. |
|
4553 |
||
4554 |
"/ |
|
4555 |
"/ update system settings |
|
4556 |
"/ |
|
4557 |
box accepted ifTrue:[ |
|
4558 |
] ifFalse: [ |
|
2194
e95ad72c0f46
added immedate selector check option
Claus Gittinger <cg@exept.de>
parents:
2165
diff
changeset
|
4559 |
(UserPreferences reset; current) declareAllFrom: oldUserPreferences |
2001 | 4560 |
]. |
4561 |
box destroy |
|
4562 |
||
4563 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
|
2083 | 4564 |
"Modified: / 5.1.1980 / 00:47:03 / cg" |
2001 | 4565 |
! ! |
4566 |
||
4567 |
!AbstractLauncherApplication class methodsFor:'documentation'! |
|
4568 |
||
4569 |
version |
|
2207
84d23e553268
support for workspace variables
Claus Gittinger <cg@exept.de>
parents:
2206
diff
changeset
|
4570 |
^ '$Header: /cvs/stx/stx/libtool/AbstractLauncherApplication.st,v 1.45 1999-06-26 14:07:15 cg Exp $' |
2001 | 4571 |
! ! |