author | Claus Gittinger <cg@exept.de> |
Thu, 16 Apr 1998 17:22:15 +0200 | |
changeset 1549 | 9ee0dae8bdf1 |
parent 1547 | c0798d0ca18e |
child 1576 | 534ad27a7b4a |
permissions | -rw-r--r-- |
1406 | 1 |
" |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
1406 | 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 |
||
14 |
||
15 |
ToolApplicationModel subclass:#NewLauncher |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
16 |
instanceVariableNames:'transcript isMainLauncher helpIsOn' |
1406 | 17 |
classVariableNames:'OpenLaunchers NotifyingEmergencyHandler' |
18 |
poolDictionaries:'' |
|
1469 | 19 |
category:'Interface-Smalltalk' |
1406 | 20 |
! |
21 |
||
22 |
!NewLauncher class methodsFor:'documentation'! |
|
23 |
||
24 |
copyright |
|
25 |
" |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
26 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
1406 | 27 |
All Rights Reserved |
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
||
37 |
||
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
1411 | 42 |
The future launcher. |
43 |
||
44 |
[start with:] |
|
45 |
NewLauncher open |
|
46 |
||
47 |
[see also:] |
|
48 |
Launcher |
|
49 |
||
50 |
[author:] |
|
1453 | 51 |
Thomas Zwick, eXept Software AG |
1406 | 52 |
" |
53 |
! ! |
|
54 |
||
55 |
!NewLauncher class methodsFor:'accessing'! |
|
56 |
||
57 |
current |
|
58 |
"return the launcher running on the current screen. |
|
59 |
(for access via addMenu/ removeMenu)" |
|
60 |
||
1434 | 61 |
OpenLaunchers notNil ifTrue:[ |
62 |
OpenLaunchers do:[:aLauncher | |
|
63 |
aLauncher window graphicsDevice == Screen current ifTrue:[ |
|
64 |
^ aLauncher |
|
65 |
] |
|
66 |
]. |
|
1406 | 67 |
]. |
68 |
^ nil |
|
69 |
||
1434 | 70 |
"Modified: / 29.1.1998 / 22:08:12 / cg" |
1406 | 71 |
! |
72 |
||
73 |
label |
|
74 |
||
75 |
^'Launcher' |
|
76 |
||
77 |
||
1434 | 78 |
! |
79 |
||
80 |
openLaunchers |
|
81 |
||
82 |
^OpenLaunchers ? (OpenLaunchers := OrderedCollection new) |
|
1406 | 83 |
! ! |
84 |
||
85 |
!NewLauncher class methodsFor:'defaults'! |
|
86 |
||
87 |
notifyingEmergencyHandler |
|
88 |
"return a block (used as an emergency handler |
|
89 |
for exceptions), which does errorNotification before going |
|
90 |
into the debugger." |
|
91 |
||
92 |
"Remember the handlerBlock, to be able to determine if the current |
|
93 |
handler is the notifying one." |
|
94 |
||
95 |
^ NotifyingEmergencyHandler ? (NotifyingEmergencyHandler := Exception notifyingEmergencyHandler) |
|
96 |
! ! |
|
97 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
98 |
!NewLauncher class methodsFor:'help specs'! |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
99 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
100 |
helpSpec |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
101 |
"This resource specification was automatically generated |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
102 |
by the UIHelpTool of ST/X." |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
103 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
104 |
"Do not manually edit this!! If it is corrupted, |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
105 |
the UIHelpTool may not be able to read the specification." |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
106 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
107 |
" |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
108 |
UIHelpTool openOnClass:NewLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
109 |
" |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
110 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
111 |
<resource: #help> |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
112 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
113 |
^super helpSpec addPairsFrom:#( |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
114 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
115 |
#aboutLicenseConditions |
1544 | 116 |
'Opens a HTML-Browser on the license conditions of ST/X.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
117 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
118 |
#classes |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
119 |
'Classes functions.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
120 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
121 |
#classesClassBrowser |
1544 | 122 |
'Opens a dia log for defining and opening a Class Browser on a class.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
123 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
124 |
#classesClassHierarchyBrowser |
1544 | 125 |
'Opens a dialog for defining and opening a Class Hierarchy Browser on a class.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
126 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
127 |
#classesClassTreeBrowser |
1544 | 128 |
'Opens a Class Tree on the classes of ST/X.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
129 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
130 |
#classesFullClassBrowser |
1544 | 131 |
'Opens a dialog for defining and opening a Full Class Browser on a class.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
132 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
133 |
#classesImplementors |
1544 | 134 |
'Opens a dialog for defining a selector and listing all methods implementing that selector.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
135 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
136 |
#classesRemoveAllTracePoints |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
137 |
'Removes all trace points set in methods.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
138 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
139 |
#classesResourceMethods |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
140 |
'Opens a dialog for searching resource methods.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
141 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
142 |
#classesSenders |
1544 | 143 |
'Opens a dialog for defining a selector and listing all methods sending that selector.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
144 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
145 |
#classesShowTracePoints |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
146 |
'Opens a list showing all trace points set in methods.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
147 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
148 |
#classesSpecial |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
149 |
'Special class functions.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
150 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
151 |
#classesSpecialReferencesToUndeclared |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
152 |
'Opens a list of methods refering to undeclared variables.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
153 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
154 |
#classesSystemBrowser |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
155 |
'Opens a System Browser for editing sources of the classes.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
156 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
157 |
#classesSystemBrowserOnClass |
1544 | 158 |
'Opens a System Browser on the selected class.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
159 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
160 |
#demos |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
161 |
'Demos functions.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
162 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
163 |
#fileApplicationBuilder |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
164 |
'Opens a Application Builder for building stand alone ST/X-applications.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
165 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
166 |
#fileFileBrowser |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
167 |
'Opens a File Browser for loading, saving, and editing source files, etc.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
168 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
169 |
#fileLibraryBuilder |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
170 |
'Opens a Library Builder for building class libraries.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
171 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
172 |
#fileModules |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
173 |
'Opens a dialog for showing (and unloading) class libraries and other modules.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
174 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
175 |
#fileSaveImage |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
176 |
'Saves the current image of ST/X.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
177 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
178 |
#fileSaveImageAs |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
179 |
'Opens a dialog for selecting a file in order to save the current image of ST/X.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
180 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
181 |
#helpClassDocumentation |
1544 | 182 |
'Opens a HTML-Browser with the documentation of the classes in ST/X.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
183 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
184 |
#helpIndex |
1544 | 185 |
'Opens a HTML-Browser with the index of the documentation of ST/X.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
186 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
187 |
#helpPrintDocumentation |
1544 | 188 |
'Opens a HTML-Browser with a manual for a printing of the documentation of ST/X.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
189 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
190 |
#helpSTXOnlineDocumentation |
1544 | 191 |
'Opens a HTML-Browser with the online documentation of ST/X.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
192 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
193 |
#helpWhatsNew |
1544 | 194 |
'Opens a HTML-Browser with the last brand new features of ST/X.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
195 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
196 |
#settingsCompilation |
1544 | 197 |
'Opens a dialog for changing the settings of the compilation of smalltalk sources.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
198 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
199 |
#settingsFonts |
1544 | 200 |
'Opens a dialog for changing of the font styles for the view classes.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
201 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
202 |
#settingsKeyboardMappings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
203 |
'Opens a dialog for inspecting the mappings of the keyboard.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
204 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
205 |
#settingsLanguage |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
206 |
'Opens a dialog for changing the national language.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
207 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
208 |
#settingsLoadSettings |
1544 | 209 |
'Opens a dialog for loading stored values of settings.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
210 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
211 |
#settingsMessages |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
212 |
'Opens a dialog for changing the settings for reporting infos/errors.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
213 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
214 |
#settingsMisc |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
215 |
'Opens a dialog for changing other settings.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
216 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
217 |
#settingsObjectMemory |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
218 |
'Opens a dialog for changing the settings of the object memories.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
219 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
220 |
#settingsPrinter |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
221 |
'Opens a dialog for changing the settings for the printer.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
222 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
223 |
#settingsSaveSettings |
1544 | 224 |
'Opens a dialog for saving values of the current settings.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
225 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
226 |
#settingsScreen |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
227 |
'Opens a dialog for changing the settings for the screen.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
228 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
229 |
#settingsSourceAndDebugger |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
230 |
'Opens a dialog for changing the settings of the source code management.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
231 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
232 |
#settingsViewStyle |
1544 | 233 |
'Opens a dialog for changing the current view style.' |
234 |
||
235 |
#system |
|
236 |
'System functions.' |
|
237 |
||
238 |
#systemEventTrace |
|
239 |
'Changes the mouse cursor to a cross hair for moving it to a view in order to turn on/off an event trace.' |
|
240 |
||
241 |
#systemEventView |
|
242 |
'Opens a view for outputting view events on a xterm.' |
|
243 |
||
244 |
#systemGarbageCollect |
|
245 |
'Destroys all objects having no references to other objects.' |
|
246 |
||
247 |
#systemGarbageCollectAndCompress |
|
248 |
'Destroys all objects having no references to other objects and compresses the memory.' |
|
249 |
||
250 |
#systemInterruptLatency |
|
251 |
'Opens a Interrupt Latency Monitor for showing methods which block interrupts for longer than a given time goal.' |
|
252 |
||
253 |
#systemMemory |
|
254 |
'Opens a Memory Monitor for showing (graphically) the memory segments in ST/X.' |
|
255 |
||
256 |
#systemMemoryUsage |
|
257 |
'Opens a list showing the memory usages of the classes.' |
|
258 |
||
259 |
#systemProcesses |
|
260 |
'Opens a Process Monitor for showing (and editing) current running processes in ST/X.' |
|
261 |
||
262 |
#systemSemaphores |
|
263 |
'Opens a Semaphores Monitor for showing (and editing) current running semaphores in ST/X.' |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
264 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
265 |
#tools |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
266 |
'Tools functions.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
267 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
268 |
#toolsChangesBrowser |
1544 | 269 |
'Opens a Changes Browser containing all changes of the smalltalk source code made by the user.' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
270 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
271 |
#toolsGUIPainter |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
272 |
'Opens a GUI Painter for building graphical user interfaces.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
273 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
274 |
#toolsImageEditor |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
275 |
'Opens a Image Editor for building bitmap images used by buttons, tool bars, etc.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
276 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
277 |
#toolsMenuEditor |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
278 |
'Opens a Menu Editor for building menu bars, popup menus, and tool bars.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
279 |
|
1544 | 280 |
#toolsMisc |
281 |
'Tools misc functions.' |
|
282 |
||
283 |
#toolsMiscNewLauncher |
|
284 |
'Reopens a new launcher.' |
|
285 |
||
286 |
#toolsMiscOldLauncher |
|
287 |
'Opens an old launcher.' |
|
288 |
||
289 |
#toolsMiscProjects |
|
290 |
'Projects functions.' |
|
291 |
||
292 |
#toolsMiscProjectsNewProject |
|
293 |
'Creates a new project for working in a separate environment.' |
|
294 |
||
295 |
#toolsMiscProjectsSelectProject |
|
296 |
'Select an existing project for working in that environment.' |
|
297 |
||
298 |
#toolsProjects |
|
299 |
'' |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
300 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
301 |
#toolsWorkspace |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
302 |
'Opens a Workspace for evaluating smalltalk expressions.' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
303 |
|
1544 | 304 |
#windows |
305 |
'Windows functions.' |
|
306 |
||
307 |
#windowsDeiconifyAll |
|
308 |
'Opens all icons on the desktop of ST/X to their windows.' |
|
309 |
||
310 |
#windowsFindAndDestroy |
|
311 |
'Opens a dialog for selecting a window of ST/X by label and for destroying it.' |
|
312 |
||
313 |
#windowsFindAndRaise |
|
314 |
'Opens dialog for selecting a window of ST/X by label and for raising it.' |
|
315 |
||
316 |
#windowsGrapScreen |
|
317 |
'Opens a dialog for saving the contents of the screen as a bitmap.' |
|
318 |
||
319 |
#windowsGrapScreenArea |
|
320 |
'Changes the mouse cursor for selecting an area of the screen and opens a dialog for saving that area as a bitmap.' |
|
321 |
||
322 |
#windowsGrapWindow |
|
323 |
'Changes the mouse cursor for selecting a window of ST/X and opens a dialog for saving the contents of the window as a bitmap.' |
|
324 |
||
325 |
#windowsIconifyAll |
|
326 |
'Closes all windows of ST/X to their icons on the desktop.' |
|
327 |
||
328 |
#windowsSelectAndDestroy |
|
329 |
'Changes the mouse cursor to a cross hair for moving it over a window of ST/X in order to destroy it.' |
|
330 |
||
331 |
#windowsSelectAndInspect |
|
332 |
'Changes the mouse cursor to a cross hair for moving it over a window of ST/X in order to inspect it.' |
|
333 |
||
334 |
#windowsViewTree |
|
335 |
'Changes the mouse cursor to a cross hair for moving it over a window of ST/X in order to inspect the view tree of it.' |
|
336 |
||
337 |
#windowsViewTreeAllViews |
|
338 |
'Opens an inspector showing the view trees of all windows of ST/X.' |
|
339 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
340 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
341 |
! ! |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
342 |
|
1406 | 343 |
!NewLauncher class methodsFor:'interface specs'! |
344 |
||
345 |
windowSpec |
|
1527 | 346 |
"This resource specification was automatically generated |
347 |
by the UIPainter of ST/X." |
|
348 |
||
349 |
"Do not manually edit this!! If it is corrupted, |
|
350 |
the UIPainter may not be able to read the specification." |
|
1406 | 351 |
|
352 |
" |
|
353 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpec |
|
354 |
NewLauncher new openInterface:#windowSpec |
|
1527 | 355 |
NewLauncher open |
1406 | 356 |
" |
357 |
||
358 |
<resource: #canvas> |
|
359 |
||
360 |
^ |
|
361 |
||
362 |
#(#FullSpec |
|
1527 | 363 |
#window: |
1406 | 364 |
#(#WindowSpec |
1527 | 365 |
#name: 'Launcher' |
366 |
#layout: #(#LayoutFrame 407 0 353 0 697 0 554 0) |
|
367 |
#label: 'Launcher' |
|
368 |
#min: #(#Point 374 240) |
|
369 |
#max: #(#Point 1152 900) |
|
370 |
#bounds: #(#Rectangle 407 353 698 555) |
|
371 |
#menu: #menu |
|
372 |
#usePreferredExtent: false |
|
373 |
#icon: #stxIcon |
|
1406 | 374 |
) |
1527 | 375 |
#component: |
1406 | 376 |
#(#SpecCollection |
1527 | 377 |
#collection: |
1406 | 378 |
#( |
379 |
#(#MenuPanelSpec |
|
1527 | 380 |
#name: 'menuToolbarView' |
381 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 38 0) |
|
382 |
#menu: #menuToolbar |
|
383 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
1406 | 384 |
) |
385 |
#(#ArbitraryComponentSpec |
|
1527 | 386 |
#name: 'transcriptView' |
387 |
#layout: #(#LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0) |
|
388 |
#hasHorizontalScrollBar: true |
|
389 |
#hasVerticalScrollBar: true |
|
390 |
#miniScrollerHorizontal: true |
|
391 |
#component: #TextCollector |
|
392 |
#hasBorder: false |
|
1406 | 393 |
) |
1422
bd1798d4454c
exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents:
1420
diff
changeset
|
394 |
#(#UISubSpecification |
1527 | 395 |
#name: 'infoBarSubSpec' |
396 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
397 |
#majorKey: #ToolApplicationModel |
|
398 |
#minorKey: #windowSpecForInfoBarWithClock |
|
1406 | 399 |
) |
400 |
) |
|
401 |
) |
|
402 |
) |
|
403 |
! ! |
|
404 |
||
1441 | 405 |
!NewLauncher class methodsFor:'menu specs'! |
406 |
||
407 |
menu |
|
1515 | 408 |
"This resource specification was automatically generated |
409 |
by the MenuEditor of ST/X." |
|
410 |
||
411 |
"Do not manually edit this!! If it is corrupted, |
|
412 |
the MenuEditor may not be able to read the specification." |
|
1441 | 413 |
|
414 |
" |
|
415 |
MenuEditor new openOnClass:NewLauncher andSelector:#menu |
|
416 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menu)) startUp |
|
417 |
" |
|
418 |
||
419 |
<resource: #menu> |
|
420 |
||
421 |
^ |
|
422 |
||
423 |
#(#Menu |
|
424 |
||
425 |
#( |
|
426 |
#(#MenuItem |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
427 |
#label: 'About' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
428 |
#activeHelpKey: #about |
1479 | 429 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
430 |
#submenu: |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
431 |
#(#Menu |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
432 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
433 |
#( |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
434 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
435 |
#label: 'About Smalltalk/X...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
436 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
437 |
#value: #openAbout |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
438 |
#activeHelpKey: #aboutSTX |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
439 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
440 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
441 |
#label: 'License Conditions' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
442 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
443 |
#value: #openLicenseConditions |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
444 |
#activeHelpKey: #aboutLicenseConditions |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
445 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
446 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
447 |
#label: '-' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
448 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
449 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
450 |
#label: 'About This Application...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
451 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
452 |
#value: #openAboutThisApplication |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
453 |
#activeHelpKey: #aboutThisAppliaction |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
454 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
455 |
) nil |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
456 |
nil |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
457 |
) |
1441 | 458 |
) |
459 |
#(#MenuItem |
|
1479 | 460 |
#label: 'File' |
461 |
#translateLabel: true |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
462 |
#activeHelpKey: #file |
1479 | 463 |
#submenu: |
1441 | 464 |
#(#Menu |
465 |
||
466 |
#( |
|
467 |
#(#MenuItem |
|
1479 | 468 |
#label: 'File Browser' |
469 |
#translateLabel: true |
|
470 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
471 |
#activeHelpKey: #fileFileBrowser |
1479 | 472 |
#argument: 'FileBrowser' |
473 |
#labelImage: #(#ResourceRetriever nil #startFileBrowserIcon 'File Browser') |
|
1441 | 474 |
) |
475 |
#(#MenuItem |
|
1479 | 476 |
#label: '-' |
1441 | 477 |
) |
478 |
#(#MenuItem |
|
1479 | 479 |
#label: 'Modules...' |
480 |
#translateLabel: true |
|
481 |
#value: #objectModuleDialog |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
482 |
#activeHelpKey: #fileModules |
1479 | 483 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
1441 | 484 |
) |
485 |
#(#MenuItem |
|
1527 | 486 |
#label: '-' |
487 |
) |
|
488 |
#(#MenuItem |
|
1531 | 489 |
#label: 'Library Builder' |
1479 | 490 |
#translateLabel: true |
491 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
492 |
#activeHelpKey: #fileLibraryBuilder |
1479 | 493 |
#argument: 'LibraryBuilder' |
1441 | 494 |
) |
495 |
#(#MenuItem |
|
1531 | 496 |
#label: 'Application Builder' |
1479 | 497 |
#translateLabel: true |
1515 | 498 |
#value: #openApplication: |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
499 |
#activeHelpKey: #fileApplicationBuilder |
1515 | 500 |
#argument: 'ApplicationBuilder' |
1441 | 501 |
) |
502 |
#(#MenuItem |
|
1479 | 503 |
#label: '-' |
1441 | 504 |
) |
505 |
#(#MenuItem |
|
1479 | 506 |
#label: 'Save Image' |
507 |
#translateLabel: true |
|
508 |
#value: #saveImage |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
509 |
#activeHelpKey: #fileSaveImage |
1479 | 510 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
1441 | 511 |
) |
512 |
#(#MenuItem |
|
1479 | 513 |
#label: 'Save Image As...' |
514 |
#translateLabel: true |
|
515 |
#value: #saveImageAs |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
516 |
#activeHelpKey: #fileSaveImageAs |
1479 | 517 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
1441 | 518 |
) |
519 |
#(#MenuItem |
|
1479 | 520 |
#label: '-' |
1441 | 521 |
) |
522 |
#(#MenuItem |
|
1479 | 523 |
#label: 'Exit...' |
524 |
#translateLabel: true |
|
525 |
#value: #exit |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
526 |
#activeHelpKey: #fileExit |
1479 | 527 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
1441 | 528 |
) |
529 |
) nil |
|
530 |
nil |
|
531 |
) |
|
532 |
) |
|
533 |
#(#MenuItem |
|
1479 | 534 |
#label: 'Classes' |
535 |
#translateLabel: true |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
536 |
#activeHelpKey: #classes |
1479 | 537 |
#submenu: |
1441 | 538 |
#(#Menu |
539 |
||
540 |
#( |
|
541 |
#(#MenuItem |
|
1479 | 542 |
#label: 'System Browser' |
543 |
#translateLabel: true |
|
544 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
545 |
#activeHelpKey: #classesSystemBrowser |
1479 | 546 |
#argument: 'SystemBrowser' |
547 |
#labelImage: #(#ResourceRetriever nil #startSystemBrowserIcon 'System Browser') |
|
1441 | 548 |
) |
549 |
#(#MenuItem |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
550 |
#label: 'System Browser On Class' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
551 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
552 |
#activeHelpKey: #classesSystemBrowserOnClass |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
553 |
#labelImage: #(#ResourceRetriever nil #startSystemBrowserOnHistoryClassIcon 'System Browser On Class') |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
554 |
#submenuChannel: #menuClassHistory |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
555 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
556 |
#(#MenuItem |
1479 | 557 |
#label: '-' |
1441 | 558 |
) |
559 |
#(#MenuItem |
|
1479 | 560 |
#label: 'Class Browser...' |
561 |
#translateLabel: true |
|
562 |
#value: #startClassBrowser |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
563 |
#activeHelpKey: #classesClassBrowser |
1441 | 564 |
) |
565 |
#(#MenuItem |
|
1479 | 566 |
#label: 'Full Class Browser...' |
567 |
#translateLabel: true |
|
568 |
#value: #startFullClassBrowser |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
569 |
#activeHelpKey: #classesFullClassBrowser |
1441 | 570 |
) |
571 |
#(#MenuItem |
|
1479 | 572 |
#label: 'Class Hierarchy Browser...' |
573 |
#translateLabel: true |
|
574 |
#value: #startClassHierarchyBrowser |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
575 |
#activeHelpKey: #classesClassHierarchyBrowser |
1441 | 576 |
) |
577 |
#(#MenuItem |
|
1479 | 578 |
#label: 'Class Tree' |
579 |
#translateLabel: true |
|
580 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
581 |
#activeHelpKey: #classesClassTreeBrowser |
1479 | 582 |
#argument: 'ClassTreeGraphView' |
1441 | 583 |
) |
584 |
#(#MenuItem |
|
1479 | 585 |
#label: '-' |
1441 | 586 |
) |
587 |
#(#MenuItem |
|
1479 | 588 |
#label: 'Implementors...' |
589 |
#translateLabel: true |
|
590 |
#value: #browseImplementors |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
591 |
#activeHelpKey: #classesImplementors |
1441 | 592 |
) |
593 |
#(#MenuItem |
|
1479 | 594 |
#label: 'Senders...' |
595 |
#translateLabel: true |
|
596 |
#value: #browseSenders |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
597 |
#activeHelpKey: #classesSenders |
1441 | 598 |
) |
599 |
#(#MenuItem |
|
1479 | 600 |
#label: '-' |
1441 | 601 |
) |
602 |
#(#MenuItem |
|
1479 | 603 |
#label: 'Special' |
604 |
#translateLabel: true |
|
605 |
#value: #special |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
606 |
#activeHelpKey: #classesSpecial |
1479 | 607 |
#submenu: |
1441 | 608 |
#(#Menu |
609 |
||
610 |
#( |
|
611 |
#(#MenuItem |
|
1479 | 612 |
#label: 'References To Undeclared' |
613 |
#translateLabel: true |
|
614 |
#value: #browseUndeclared |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
615 |
#activeHelpKey: #classesSpecialReferencesToUndeclared |
1441 | 616 |
) |
617 |
#(#MenuItem |
|
1479 | 618 |
#label: 'Resource Methods...' |
619 |
#translateLabel: true |
|
620 |
#value: #browseResources |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
621 |
#activeHelpKey: #classesResourceMethods |
1441 | 622 |
) |
623 |
#(#MenuItem |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
624 |
#label: 'Show Trace Points' |
1479 | 625 |
#translateLabel: true |
626 |
#value: #browseAllBreakAndTracePoints |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
627 |
#activeHelpKey: #classesShowTracePoints |
1441 | 628 |
) |
629 |
#(#MenuItem |
|
1479 | 630 |
#label: '-' |
1441 | 631 |
) |
632 |
#(#MenuItem |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
633 |
#label: 'Remove All Trace Points' |
1479 | 634 |
#translateLabel: true |
635 |
#value: #removeAllBreakAndTracePoints |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
636 |
#activeHelpKey: #classesRemoveAllTracePoints |
1441 | 637 |
) |
638 |
) nil |
|
639 |
nil |
|
640 |
) |
|
641 |
) |
|
642 |
) nil |
|
643 |
nil |
|
644 |
) |
|
645 |
) |
|
646 |
#(#MenuItem |
|
1479 | 647 |
#label: 'Tools' |
648 |
#translateLabel: true |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
649 |
#activeHelpKey: #tools |
1479 | 650 |
#submenu: |
1441 | 651 |
#(#Menu |
652 |
||
653 |
#( |
|
654 |
#(#MenuItem |
|
1479 | 655 |
#label: 'Workspace' |
656 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
657 |
#activeHelpKey: #toolsWorkspace |
1479 | 658 |
#argument: 'Workspace' |
659 |
#labelImage: #(#ResourceRetriever nil #startWorkspaceIcon 'Workspace') |
|
1441 | 660 |
) |
661 |
#(#MenuItem |
|
1479 | 662 |
#label: '-' |
1441 | 663 |
) |
664 |
#(#MenuItem |
|
1480 | 665 |
#label: 'GUI Painter' |
1479 | 666 |
#value: #openApplication: |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
667 |
#activeHelpKey: #toolsGUIPainter |
1479 | 668 |
#argument: 'UIPainter' |
1480 | 669 |
#labelImage: #(#ResourceRetriever nil #startUIPainterIcon 'GUI Painter') |
1441 | 670 |
) |
671 |
#(#MenuItem |
|
1479 | 672 |
#label: 'Menu Editor' |
673 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
674 |
#activeHelpKey: #toolsMenuEditor |
1479 | 675 |
#argument: 'MenuEditor' |
676 |
#labelImage: #(#ResourceRetriever nil #startMenuEditorIcon 'Menu Editor') |
|
1441 | 677 |
) |
678 |
#(#MenuItem |
|
1479 | 679 |
#label: 'Image Editor' |
680 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
681 |
#activeHelpKey: #toolsImageEditor |
1479 | 682 |
#argument: 'ImageEditor' |
683 |
#labelImage: #(#ResourceRetriever nil #startImageEditorIcon 'Image Editor') |
|
1441 | 684 |
) |
685 |
#(#MenuItem |
|
1479 | 686 |
#label: '-' |
1441 | 687 |
) |
688 |
#(#MenuItem |
|
1479 | 689 |
#label: 'Changes Browser' |
690 |
#translateLabel: true |
|
691 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
692 |
#activeHelpKey: #toolsChangesBrowser |
1479 | 693 |
#argument: 'ChangesBrowser' |
694 |
#labelImage: #(#ResourceRetriever nil #startChangesBrowserIcon 'Changes Browser') |
|
1441 | 695 |
) |
696 |
#(#MenuItem |
|
1479 | 697 |
#label: '-' |
1441 | 698 |
) |
699 |
#(#MenuItem |
|
1544 | 700 |
#label: 'Misc' |
1479 | 701 |
#translateLabel: true |
1544 | 702 |
#activeHelpKey: #toolsMisc |
1479 | 703 |
#submenu: |
1441 | 704 |
#(#Menu |
705 |
||
706 |
#( |
|
707 |
#(#MenuItem |
|
1544 | 708 |
#label: 'Projects' |
1479 | 709 |
#translateLabel: true |
1544 | 710 |
#activeHelpKey: #toolsMiscProjects |
711 |
#submenu: |
|
712 |
#(#Menu |
|
713 |
||
714 |
#( |
|
715 |
#(#MenuItem |
|
716 |
#label: 'New Project' |
|
717 |
#translateLabel: true |
|
718 |
#value: #newProject |
|
719 |
#activeHelpKey: #toolsMiscProjectsNewProject |
|
720 |
) |
|
721 |
#(#MenuItem |
|
722 |
#label: '-' |
|
723 |
) |
|
724 |
#(#MenuItem |
|
725 |
#label: 'Select Project...' |
|
726 |
#translateLabel: true |
|
727 |
#value: #selectProject |
|
728 |
#activeHelpKey: #toolsMiscProjectsSelectProject |
|
729 |
) |
|
730 |
) nil |
|
731 |
nil |
|
732 |
) |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
733 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
734 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
735 |
#label: '-' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
736 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
737 |
#(#MenuItem |
1544 | 738 |
#label: 'New Launcher' |
1479 | 739 |
#translateLabel: true |
1544 | 740 |
#value: #startNewLauncher |
741 |
#activeHelpKey: #toolsMiscNewLauncher |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
742 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
743 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
744 |
#label: 'Old Launcher' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
745 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
746 |
#value: #startOldLauncher |
1544 | 747 |
#activeHelpKey: #toolsMiscOldLauncher |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
748 |
) |
1441 | 749 |
) nil |
750 |
nil |
|
751 |
) |
|
752 |
) |
|
753 |
) nil |
|
754 |
nil |
|
755 |
) |
|
756 |
) |
|
757 |
#(#MenuItem |
|
1544 | 758 |
#label: 'System' |
1479 | 759 |
#translateLabel: true |
1544 | 760 |
#activeHelpKey: #system |
1479 | 761 |
#submenu: |
1441 | 762 |
#(#Menu |
763 |
||
764 |
#( |
|
765 |
#(#MenuItem |
|
1544 | 766 |
#label: 'Memory' |
767 |
#translateLabel: true |
|
768 |
#value: #openApplication: |
|
769 |
#activeHelpKey: #systemMemory |
|
770 |
#argument: 'MemoryMonitor' |
|
771 |
) |
|
772 |
#(#MenuItem |
|
773 |
#label: 'Memory Usage' |
|
1479 | 774 |
#translateLabel: true |
1544 | 775 |
#value: #openApplication: |
776 |
#activeHelpKey: #systemMemoryUsage |
|
777 |
#argument: 'MemoryUsageView' |
|
778 |
) |
|
779 |
#(#MenuItem |
|
780 |
#label: '-' |
|
781 |
) |
|
782 |
#(#MenuItem |
|
783 |
#label: 'Processes' |
|
784 |
#translateLabel: true |
|
785 |
#value: #openApplication: |
|
786 |
#activeHelpKey: #systemProcesses |
|
787 |
#argument: 'ProcessMonitor' |
|
788 |
) |
|
789 |
#(#MenuItem |
|
790 |
#label: 'Semaphores' |
|
791 |
#translateLabel: true |
|
792 |
#value: #openApplication: |
|
793 |
#activeHelpKey: #systemSemaphores |
|
794 |
#argument: 'SemaphoreMonitor' |
|
1441 | 795 |
) |
796 |
#(#MenuItem |
|
1479 | 797 |
#label: '-' |
1441 | 798 |
) |
799 |
#(#MenuItem |
|
1544 | 800 |
#label: 'Interrupt Latency' |
801 |
#translateLabel: true |
|
802 |
#value: #startLatencyMonitor |
|
803 |
#activeHelpKey: #systemInterruptLatency |
|
804 |
) |
|
805 |
#(#MenuItem |
|
806 |
#label: '-' |
|
807 |
) |
|
808 |
#(#MenuItem |
|
809 |
#label: 'Event View' |
|
810 |
#translateLabel: true |
|
811 |
#value: #openApplication: |
|
812 |
#activeHelpKey: #systemEventView |
|
813 |
#argument: 'EventMonitor' |
|
814 |
) |
|
815 |
#(#MenuItem |
|
816 |
#label: 'Event Trace' |
|
1479 | 817 |
#translateLabel: true |
1544 | 818 |
#value: #startStopEventTrace |
819 |
#activeHelpKey: #systemEventTrace |
|
820 |
) |
|
821 |
#(#MenuItem |
|
822 |
#label: '-' |
|
823 |
) |
|
824 |
#(#MenuItem |
|
825 |
#label: 'Collect Garbage' |
|
826 |
#translateLabel: true |
|
827 |
#value: #garbageCollect |
|
828 |
#activeHelpKey: #systemGarbageCollect |
|
829 |
#labelImage: #(#ResourceRetriever nil #garbageCollectIcon 'Collect Garbage') |
|
830 |
) |
|
831 |
#(#MenuItem |
|
832 |
#label: 'Collect Garbage And Compress' |
|
833 |
#translateLabel: true |
|
834 |
#value: #compressingGarbageCollect |
|
835 |
#activeHelpKey: #systemGarbageCollectAndCompress |
|
836 |
#labelImage: #(#ResourceRetriever nil #garbageCollectIcon 'Collect Garbage And Compress') |
|
837 |
) |
|
838 |
#(#MenuItem |
|
839 |
#label: '-' |
|
840 |
#isVisible: #javaSupportPresent |
|
841 |
) |
|
842 |
#(#MenuItem |
|
843 |
#label: 'Reinit Java VM' |
|
844 |
#isVisible: #javaSupportPresent |
|
845 |
#value: #initJavaVM |
|
1441 | 846 |
) |
847 |
) nil |
|
848 |
nil |
|
849 |
) |
|
850 |
) |
|
851 |
#(#MenuItem |
|
1479 | 852 |
#label: 'Settings' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
853 |
#activeHelpKey: #settings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
854 |
#submenu: |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
855 |
#(#Menu |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
856 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
857 |
#( |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
858 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
859 |
#label: 'View Style...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
860 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
861 |
#value: #viewStyleSetting |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
862 |
#activeHelpKey: #settingsViewStyle |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
863 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
864 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
865 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
866 |
#label: 'Fonts...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
867 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
868 |
#value: #fontSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
869 |
#activeHelpKey: #settingsFonts |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
870 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
871 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
872 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
873 |
#label: 'Language...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
874 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
875 |
#value: #languageSetting |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
876 |
#activeHelpKey: #settingsLanguage |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
877 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
878 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
879 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
880 |
#label: 'Keyboard Mappings...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
881 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
882 |
#value: #keyboardSetting |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
883 |
#activeHelpKey: #settingsKeyboardMappings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
884 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
885 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
886 |
#label: '-' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
887 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
888 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
889 |
#label: 'Messages...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
890 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
891 |
#value: #messageSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
892 |
#activeHelpKey: #settingsMessages |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
893 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
894 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
895 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
896 |
#label: 'Compilation...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
897 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
898 |
#value: #compilerSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
899 |
#activeHelpKey: #settingsCompilation |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
900 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
901 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
902 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
903 |
#label: 'Object Memory...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
904 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
905 |
#value: #memorySettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
906 |
#activeHelpKey: #settingsObjectMemory |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
907 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
908 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
909 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
910 |
#label: 'Source And Debugger...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
911 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
912 |
#value: #sourceAndDebuggerSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
913 |
#activeHelpKey: #settingsSourceAndDebugger |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
914 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
915 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
916 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
917 |
#label: '-' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
918 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
919 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
920 |
#label: 'Printer...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
921 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
922 |
#value: #printerSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
923 |
#activeHelpKey: #settingsPrinter |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
924 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
925 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
926 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
927 |
#label: 'Screen...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
928 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
929 |
#value: #displaySettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
930 |
#activeHelpKey: #settingsScreen |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
931 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
932 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
933 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
934 |
#label: '-' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
935 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
936 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
937 |
#label: 'Misc...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
938 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
939 |
#value: #miscSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
940 |
#activeHelpKey: #settingsMisc |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
941 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
942 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
943 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
944 |
#label: '-' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
945 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
946 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
947 |
#label: 'Save Settings...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
948 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
949 |
#value: #saveSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
950 |
#activeHelpKey: #settingsSaveSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
951 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
952 |
#(#MenuItem |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
953 |
#label: 'Load Settings...' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
954 |
#translateLabel: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
955 |
#value: #loadSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
956 |
#activeHelpKey: #settingsLoadSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
957 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
958 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
959 |
) nil |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
960 |
nil |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
961 |
) |
1441 | 962 |
) |
963 |
#(#MenuItem |
|
1544 | 964 |
#label: 'Windows' |
965 |
#translateLabel: true |
|
966 |
#activeHelpKey: #windows |
|
967 |
#submenu: |
|
968 |
#(#Menu |
|
969 |
||
970 |
#( |
|
971 |
#(#MenuItem |
|
972 |
#label: 'Iconify All' |
|
973 |
#translateLabel: true |
|
974 |
#value: #iconifyAllWindows |
|
975 |
#activeHelpKey: #windowsIconifyAll |
|
976 |
) |
|
977 |
#(#MenuItem |
|
978 |
#label: 'De-iconify All' |
|
979 |
#translateLabel: true |
|
980 |
#value: #deIconifyAllWindows |
|
981 |
#activeHelpKey: #windowsDeiconifyAll |
|
982 |
) |
|
983 |
#(#MenuItem |
|
984 |
#label: '-' |
|
985 |
) |
|
986 |
#(#MenuItem |
|
987 |
#label: 'View Tree' |
|
988 |
#translateLabel: true |
|
989 |
#value: #startWindowTreeView |
|
990 |
#activeHelpKey: #windowsViewTree |
|
991 |
) |
|
992 |
#(#MenuItem |
|
993 |
#label: 'View Tree (all windows)' |
|
994 |
#translateLabel: true |
|
995 |
#value: #openApplication: |
|
996 |
#activeHelpKey: #windowsViewTreeAllViews |
|
997 |
#argument: 'WindowTreeView' |
|
998 |
) |
|
999 |
#(#MenuItem |
|
1000 |
#label: '-' |
|
1001 |
) |
|
1002 |
#(#MenuItem |
|
1003 |
#label: 'Select And Inspect' |
|
1004 |
#translateLabel: true |
|
1005 |
#value: #viewInspect |
|
1006 |
#activeHelpKey: #windowsSelectAndInspect |
|
1007 |
) |
|
1008 |
#(#MenuItem |
|
1009 |
#label: 'Select And Destroy' |
|
1010 |
#translateLabel: true |
|
1011 |
#value: #viewDestroy |
|
1012 |
#activeHelpKey: #windowsSelectAndDestroy |
|
1013 |
) |
|
1014 |
#(#MenuItem |
|
1015 |
#label: '-' |
|
1016 |
) |
|
1017 |
#(#MenuItem |
|
1018 |
#label: 'Find And Raise...' |
|
1019 |
#translateLabel: true |
|
1020 |
#value: #findAndRaiseWindow |
|
1021 |
#activeHelpKey: #windowsFindAndRaise |
|
1022 |
) |
|
1023 |
#(#MenuItem |
|
1024 |
#label: 'Find And Destroy...' |
|
1025 |
#translateLabel: true |
|
1026 |
#value: #findAndDestroyWindow |
|
1027 |
#activeHelpKey: #windowsFindAndDestroy |
|
1028 |
) |
|
1029 |
#(#MenuItem |
|
1030 |
#label: '-' |
|
1031 |
) |
|
1032 |
#(#MenuItem |
|
1033 |
#label: 'Grab Window...' |
|
1034 |
#translateLabel: true |
|
1035 |
#value: #viewHardcopy |
|
1036 |
#activeHelpKey: #windowsGrapWindow |
|
1037 |
) |
|
1038 |
#(#MenuItem |
|
1039 |
#label: 'Grab Screen...' |
|
1040 |
#translateLabel: true |
|
1041 |
#value: #fullScreenHardcopy |
|
1042 |
#activeHelpKey: #windowsGrapScreen |
|
1043 |
) |
|
1044 |
#(#MenuItem |
|
1045 |
#label: 'Grab Screen Area...' |
|
1046 |
#translateLabel: true |
|
1047 |
#value: #screenHardcopy |
|
1048 |
#activeHelpKey: #windowsGrapScreenArea |
|
1049 |
) |
|
1050 |
) nil |
|
1051 |
nil |
|
1052 |
) |
|
1053 |
) |
|
1054 |
#(#MenuItem |
|
1479 | 1055 |
#label: 'Demos' |
1056 |
#translateLabel: true |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1057 |
#activeHelpKey: #demos |
1479 | 1058 |
#submenu: |
1441 | 1059 |
#(#Menu |
1060 |
||
1061 |
#( |
|
1062 |
#(#MenuItem |
|
1479 | 1063 |
#label: 'Goodies' |
1064 |
#translateLabel: true |
|
1065 |
#submenu: |
|
1441 | 1066 |
#(#Menu |
1067 |
||
1068 |
#( |
|
1069 |
#(#MenuItem |
|
1479 | 1070 |
#label: 'Clock' |
1071 |
#translateLabel: true |
|
1072 |
#value: #openDemo: |
|
1073 |
#argument: 'Clock' |
|
1441 | 1074 |
) |
1075 |
#(#MenuItem |
|
1479 | 1076 |
#label: 'Digital Clock' |
1077 |
#translateLabel: true |
|
1078 |
#value: #openDemo: |
|
1079 |
#argument: 'DigitalClockView' |
|
1441 | 1080 |
) |
1081 |
#(#MenuItem |
|
1479 | 1082 |
#label: 'Calendar' |
1083 |
#translateLabel: true |
|
1084 |
#value: #openDemo: |
|
1085 |
#argument: 'Calendar' |
|
1441 | 1086 |
) |
1087 |
#(#MenuItem |
|
1479 | 1088 |
#label: 'Calculator' |
1089 |
#translateLabel: true |
|
1090 |
#value: #openDemo: |
|
1091 |
#argument: 'CalculatorView' |
|
1441 | 1092 |
) |
1093 |
#(#MenuItem |
|
1479 | 1094 |
#label: '-' |
1441 | 1095 |
) |
1096 |
#(#MenuItem |
|
1479 | 1097 |
#label: 'Mail Tool' |
1098 |
#translateLabel: true |
|
1099 |
#value: #openDemo: |
|
1100 |
#argument: 'MailView' |
|
1441 | 1101 |
) |
1102 |
#(#MenuItem |
|
1479 | 1103 |
#label: 'News Tool' |
1104 |
#translateLabel: true |
|
1105 |
#value: #openDemo: |
|
1106 |
#argument: 'NewsView' |
|
1441 | 1107 |
) |
1108 |
#(#MenuItem |
|
1479 | 1109 |
#label: 'FTP Tool' |
1110 |
#translateLabel: true |
|
1111 |
#value: #openDemo: |
|
1112 |
#argument: 'FTPTool' |
|
1441 | 1113 |
) |
1114 |
) nil |
|
1115 |
nil |
|
1116 |
) |
|
1117 |
) |
|
1118 |
#(#MenuItem |
|
1479 | 1119 |
#label: 'Games' |
1120 |
#translateLabel: true |
|
1121 |
#submenu: |
|
1441 | 1122 |
#(#Menu |
1123 |
||
1124 |
#( |
|
1125 |
#(#MenuItem |
|
1479 | 1126 |
#label: 'Tetris' |
1127 |
#translateLabel: true |
|
1128 |
#value: #openDemo: |
|
1129 |
#argument: 'Games::Tetris' |
|
1441 | 1130 |
) |
1131 |
#(#MenuItem |
|
1479 | 1132 |
#label: 'Tic Tac Toe' |
1133 |
#translateLabel: true |
|
1134 |
#value: #openDemo: |
|
1135 |
#argument: 'TicTacToeGame' |
|
1441 | 1136 |
) |
1137 |
#(#MenuItem |
|
1479 | 1138 |
#label: 'Tic Tac Toe (2 players)' |
1139 |
#translateLabel: true |
|
1140 |
#value: #startTicTacToe2 |
|
1441 | 1141 |
) |
1142 |
) nil |
|
1143 |
nil |
|
1144 |
) |
|
1145 |
) |
|
1146 |
#(#MenuItem |
|
1479 | 1147 |
#label: 'Geometric Designs' |
1148 |
#translateLabel: true |
|
1149 |
#submenu: |
|
1441 | 1150 |
#(#Menu |
1151 |
||
1152 |
#( |
|
1153 |
#(#MenuItem |
|
1479 | 1154 |
#label: 'Pen Demo' |
1155 |
#translateLabel: true |
|
1156 |
#value: #openDemo: |
|
1157 |
#argument: 'PenDemo' |
|
1441 | 1158 |
) |
1159 |
#(#MenuItem |
|
1479 | 1160 |
#label: 'Commander Demo' |
1161 |
#translateLabel: true |
|
1162 |
#value: #openDemo: |
|
1163 |
#argument: 'CommanderDemo' |
|
1441 | 1164 |
) |
1165 |
#(#MenuItem |
|
1479 | 1166 |
#label: '-' |
1441 | 1167 |
) |
1168 |
#(#MenuItem |
|
1479 | 1169 |
#label: 'Fractal Plants Demo' |
1170 |
#translateLabel: true |
|
1171 |
#value: #openDemo: |
|
1172 |
#argument: 'FractalPlantsDemo' |
|
1441 | 1173 |
) |
1174 |
#(#MenuItem |
|
1479 | 1175 |
#label: 'Fractal Patterns Demo' |
1176 |
#translateLabel: true |
|
1177 |
#value: #openDemo: |
|
1178 |
#argument: 'FractalPatternsDemo' |
|
1441 | 1179 |
) |
1180 |
#(#MenuItem |
|
1479 | 1181 |
#label: 'More Fractal Patterns Demo' |
1182 |
#translateLabel: true |
|
1183 |
#value: #openDemo: |
|
1184 |
#argument: 'ArmchairUniverseDemo' |
|
1441 | 1185 |
) |
1186 |
) nil |
|
1187 |
nil |
|
1188 |
) |
|
1189 |
) |
|
1190 |
#(#MenuItem |
|
1479 | 1191 |
#label: 'Simple Animations' |
1192 |
#translateLabel: true |
|
1193 |
#submenu: |
|
1441 | 1194 |
#(#Menu |
1195 |
||
1196 |
#( |
|
1197 |
#(#MenuItem |
|
1479 | 1198 |
#label: 'Walking Man' |
1199 |
#translateLabel: true |
|
1200 |
#value: #openDemo: |
|
1201 |
#argument: 'Animation' |
|
1441 | 1202 |
) |
1203 |
#(#MenuItem |
|
1479 | 1204 |
#label: 'Globe Demo' |
1205 |
#translateLabel: true |
|
1206 |
#value: #openDemo: |
|
1207 |
#argument: 'GlobeDemo' |
|
1441 | 1208 |
) |
1209 |
) nil |
|
1210 |
nil |
|
1211 |
) |
|
1212 |
) |
|
1213 |
#(#MenuItem |
|
1479 | 1214 |
#label: '3D Graphics' |
1215 |
#translateLabel: true |
|
1216 |
#submenu: |
|
1441 | 1217 |
#(#Menu |
1218 |
||
1219 |
#( |
|
1220 |
#(#MenuItem |
|
1479 | 1221 |
#label: 'Plane' |
1222 |
#translateLabel: true |
|
1223 |
#value: #openDemo: |
|
1224 |
#argument: 'GLPlaneDemoView2' |
|
1441 | 1225 |
) |
1226 |
#(#MenuItem |
|
1479 | 1227 |
#label: 'Tetra' |
1228 |
#translateLabel: true |
|
1229 |
#value: #openDemo: |
|
1230 |
#argument: 'GLTetraDemoView' |
|
1441 | 1231 |
) |
1232 |
#(#MenuItem |
|
1479 | 1233 |
#label: 'Cube (wireframe)' |
1234 |
#translateLabel: true |
|
1235 |
#value: #openDemo: |
|
1236 |
#argument: 'GLWireCubeDemoView' |
|
1441 | 1237 |
) |
1238 |
#(#MenuItem |
|
1479 | 1239 |
#label: 'Cube (solid)' |
1240 |
#translateLabel: true |
|
1241 |
#value: #openDemo: |
|
1242 |
#argument: 'GLCubeDemoView' |
|
1441 | 1243 |
) |
1244 |
#(#MenuItem |
|
1479 | 1245 |
#label: 'Sphere (wireframe)' |
1246 |
#translateLabel: true |
|
1247 |
#value: #openDemo: |
|
1248 |
#argument: 'GLWireSphereDemoView' |
|
1441 | 1249 |
) |
1250 |
#(#MenuItem |
|
1479 | 1251 |
#label: 'Doughnut (wireframe)' |
1252 |
#translateLabel: true |
|
1253 |
#value: #openDemo: |
|
1254 |
#argument: 'GLDoughnutDemoView' |
|
1441 | 1255 |
) |
1256 |
#(#MenuItem |
|
1479 | 1257 |
#label: 'Planet' |
1258 |
#translateLabel: true |
|
1259 |
#value: #openDemo: |
|
1260 |
#argument: 'GLPlanetDemoView' |
|
1441 | 1261 |
) |
1262 |
#(#MenuItem |
|
1479 | 1263 |
#label: 'Teapot' |
1264 |
#translateLabel: true |
|
1265 |
#value: #openDemo: |
|
1266 |
#argument: 'GLTeapotDemo' |
|
1441 | 1267 |
) |
1268 |
#(#MenuItem |
|
1479 | 1269 |
#label: 'Logo' |
1270 |
#translateLabel: true |
|
1271 |
#value: #openDemo: |
|
1272 |
#argument: 'Logo3DView1' |
|
1441 | 1273 |
) |
1274 |
#(#MenuItem |
|
1479 | 1275 |
#label: 'Rubics Cube' |
1276 |
#translateLabel: true |
|
1277 |
#value: #openDemo: |
|
1278 |
#argument: 'RubicsCubeView' |
|
1441 | 1279 |
) |
1280 |
#(#MenuItem |
|
1479 | 1281 |
#label: 'X/Y Graph' |
1282 |
#translateLabel: true |
|
1283 |
#value: #openDemo: |
|
1284 |
#argument: 'GLXYGraph' |
|
1441 | 1285 |
) |
1286 |
#(#MenuItem |
|
1479 | 1287 |
#label: '-' |
1441 | 1288 |
) |
1289 |
#(#MenuItem |
|
1479 | 1290 |
#label: 'Cube (light)' |
1291 |
#translateLabel: true |
|
1292 |
#value: #openDemo: |
|
1293 |
#argument: 'GLCubeDemoView2' |
|
1441 | 1294 |
) |
1295 |
#(#MenuItem |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1296 |
#label: 'Cube (light and texture)' |
1479 | 1297 |
#translateLabel: true |
1298 |
#value: #openDemo: |
|
1299 |
#argument: 'GLBrickCubeDemoView' |
|
1441 | 1300 |
) |
1301 |
#(#MenuItem |
|
1479 | 1302 |
#label: 'Sphere (light)' |
1303 |
#translateLabel: true |
|
1304 |
#value: #openDemo: |
|
1305 |
#argument: 'GLSphereDemoView2' |
|
1441 | 1306 |
) |
1307 |
#(#MenuItem |
|
1479 | 1308 |
#label: 'Colored Octahedron' |
1309 |
#translateLabel: true |
|
1310 |
#value: #openDemo: |
|
1311 |
#argument: 'GLOctaHedronDemoView' |
|
1441 | 1312 |
) |
1313 |
) nil |
|
1314 |
nil |
|
1315 |
) |
|
1316 |
) |
|
1317 |
#(#MenuItem |
|
1479 | 1318 |
#label: 'Graphic Editors' |
1319 |
#translateLabel: true |
|
1320 |
#submenu: |
|
1441 | 1321 |
#(#Menu |
1322 |
||
1323 |
#( |
|
1324 |
#(#MenuItem |
|
1479 | 1325 |
#label: 'Draw Tool' |
1326 |
#translateLabel: true |
|
1327 |
#value: #openDemo: |
|
1328 |
#argument: 'DrawTool' |
|
1441 | 1329 |
) |
1330 |
#(#MenuItem |
|
1479 | 1331 |
#label: 'Logic Tool' |
1332 |
#translateLabel: true |
|
1333 |
#value: #openDemo: |
|
1334 |
#argument: 'LogicTool' |
|
1441 | 1335 |
) |
1336 |
#(#MenuItem |
|
1479 | 1337 |
#label: 'Paint Demo' |
1338 |
#translateLabel: true |
|
1339 |
#value: #openDemo: |
|
1340 |
#argument: 'ColorDrawDemo3' |
|
1441 | 1341 |
) |
1342 |
) nil |
|
1343 |
nil |
|
1344 |
) |
|
1345 |
) |
|
1346 |
#(#MenuItem |
|
1479 | 1347 |
#label: 'GUI' |
1348 |
#translateLabel: true |
|
1349 |
#submenu: |
|
1441 | 1350 |
#(#Menu |
1351 |
||
1352 |
#( |
|
1353 |
#(#MenuItem |
|
1479 | 1354 |
#label: 'Widget Gallery' |
1355 |
#translateLabel: true |
|
1356 |
#value: #openDemo: |
|
1357 |
#argument: 'CodingExamples_GUI::GUIDemo' |
|
1441 | 1358 |
) |
1359 |
#(#MenuItem |
|
1479 | 1360 |
#label: '-' |
1441 | 1361 |
) |
1362 |
#(#MenuItem |
|
1479 | 1363 |
#label: 'Calculator' |
1364 |
#translateLabel: true |
|
1365 |
#value: #openDemo: |
|
1366 |
#argument: 'CodingExamples_GUI::GUIDemoCalculator' |
|
1441 | 1367 |
) |
1368 |
) nil |
|
1369 |
nil |
|
1370 |
) |
|
1371 |
) |
|
1372 |
) nil |
|
1373 |
nil |
|
1374 |
) |
|
1375 |
) |
|
1376 |
#(#MenuItem |
|
1479 | 1377 |
#label: 'Help' |
1378 |
#translateLabel: true |
|
1379 |
#startGroup: #right |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1380 |
#activeHelpKey: #help |
1479 | 1381 |
#submenu: |
1441 | 1382 |
#(#Menu |
1383 |
||
1384 |
#( |
|
1385 |
#(#MenuItem |
|
1479 | 1386 |
#label: 'What''s New' |
1387 |
#translateLabel: true |
|
1388 |
#value: #startWhatsNewDocumentation |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1389 |
#activeHelpKey: #helpWhatsNew |
1441 | 1390 |
) |
1391 |
#(#MenuItem |
|
1479 | 1392 |
#label: 'Index' |
1393 |
#translateLabel: true |
|
1394 |
#value: #startDocumentationIndex |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1395 |
#activeHelpKey: #helpIndex |
1441 | 1396 |
) |
1397 |
#(#MenuItem |
|
1479 | 1398 |
#label: '-' |
1441 | 1399 |
) |
1400 |
#(#MenuItem |
|
1479 | 1401 |
#label: 'ST/X Online Documentation' |
1402 |
#translateLabel: true |
|
1403 |
#value: #startDocumentationTool |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1404 |
#activeHelpKey: #helpSTXOnlineDocumentation |
1441 | 1405 |
) |
1406 |
#(#MenuItem |
|
1479 | 1407 |
#label: 'Class Documentation' |
1408 |
#translateLabel: true |
|
1409 |
#value: #startClassDocumentation |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1410 |
#activeHelpKey: #helpClassDocumentation |
1441 | 1411 |
) |
1412 |
#(#MenuItem |
|
1479 | 1413 |
#label: '-' |
1441 | 1414 |
) |
1415 |
#(#MenuItem |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1416 |
#label: 'Print Documentation' |
1479 | 1417 |
#translateLabel: true |
1418 |
#value: #showBookPrintDocument |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1419 |
#activeHelpKey: #helpPrintDocumentation |
1441 | 1420 |
) |
1421 |
#(#MenuItem |
|
1479 | 1422 |
#label: '-' |
1441 | 1423 |
) |
1424 |
#(#MenuItem |
|
1479 | 1425 |
#label: 'Active Help' |
1426 |
#translateLabel: true |
|
1427 |
#value: #toggleActiveHelp: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1428 |
#activeHelpKey: #helpShowHelp |
1479 | 1429 |
#indication: #activeHelp |
1441 | 1430 |
) |
1431 |
) nil |
|
1432 |
nil |
|
1433 |
) |
|
1434 |
) |
|
1435 |
) nil |
|
1436 |
nil |
|
1437 |
) |
|
1438 |
! |
|
1439 |
||
1440 |
menuToolbar |
|
1527 | 1441 |
"This resource specification was automatically generated |
1442 |
by the MenuEditor of ST/X." |
|
1443 |
||
1444 |
"Do not manually edit this!! If it is corrupted, |
|
1445 |
the MenuEditor may not be able to read the specification." |
|
1441 | 1446 |
|
1447 |
" |
|
1448 |
MenuEditor new openOnClass:NewLauncher andSelector:#menuToolbar |
|
1449 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menuToolbar)) startUp |
|
1450 |
" |
|
1451 |
||
1452 |
<resource: #menu> |
|
1453 |
||
1454 |
^ |
|
1455 |
||
1456 |
#(#Menu |
|
1457 |
||
1458 |
#( |
|
1459 |
#(#MenuItem |
|
1527 | 1460 |
#label: 'open workspace' |
1461 |
#isButton: true |
|
1462 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1463 |
#activeHelpKey: #toolsWorkspace |
1527 | 1464 |
#argument: 'Workspace' |
1465 |
#labelImage: #(#ResourceRetriever nil #startWorkspaceIcon) |
|
1441 | 1466 |
) |
1467 |
#(#MenuItem |
|
1527 | 1468 |
#label: 'open file browser' |
1469 |
#isButton: true |
|
1470 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1471 |
#activeHelpKey: #fileFileBrowser |
1527 | 1472 |
#argument: 'FileBrowser' |
1473 |
#labelImage: #(#ResourceRetriever nil #startFileBrowserIcon) |
|
1441 | 1474 |
) |
1475 |
#(#MenuItem |
|
1527 | 1476 |
#label: 'save image' |
1477 |
#isButton: true |
|
1478 |
#value: #saveImageAs |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1479 |
#activeHelpKey: #fileSaveImageAs |
1527 | 1480 |
#labelImage: #(#ResourceRetriever nil #saveImageIcon) |
1441 | 1481 |
) |
1482 |
#(#MenuItem |
|
1527 | 1483 |
#label: '' |
1441 | 1484 |
) |
1485 |
#(#MenuItem |
|
1527 | 1486 |
#label: 'open system browser' |
1487 |
#isButton: true |
|
1488 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1489 |
#activeHelpKey: #classesSystemBrowser |
1527 | 1490 |
#argument: 'SystemBrowser' |
1491 |
#labelImage: #(#ResourceRetriever nil #startSystemBrowserIcon) |
|
1441 | 1492 |
) |
1493 |
#(#MenuItem |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1494 |
#label: 'System Browser On Class' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1495 |
#isButton: true |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1496 |
#activeHelpKey: #classesSystemBrowserOnClass |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1497 |
#labelImage: #(#ResourceRetriever nil #startSystemBrowserOnHistoryClassIcon) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1498 |
#submenuChannel: #menuClassHistory |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1499 |
) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1500 |
#(#MenuItem |
1527 | 1501 |
#label: 'open changes browser' |
1502 |
#isButton: true |
|
1503 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1504 |
#activeHelpKey: #toolsChangesBrowser |
1527 | 1505 |
#argument: 'ChangesBrowser' |
1506 |
#labelImage: #(#ResourceRetriever nil #startChangesBrowserIcon) |
|
1441 | 1507 |
) |
1508 |
#(#MenuItem |
|
1527 | 1509 |
#label: '' |
1441 | 1510 |
) |
1511 |
#(#MenuItem |
|
1527 | 1512 |
#label: 'open GUI Builder' |
1513 |
#isButton: true |
|
1514 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1515 |
#activeHelpKey: #toolsGUIPainter |
1527 | 1516 |
#argument: 'UIPainter' |
1517 |
#labelImage: #(#ResourceRetriever nil #startUIPainterIcon) |
|
1441 | 1518 |
) |
1519 |
#(#MenuItem |
|
1527 | 1520 |
#label: 'open menu editor' |
1521 |
#isButton: true |
|
1522 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1523 |
#activeHelpKey: #toolsMenuEditor |
1527 | 1524 |
#argument: 'MenuEditor' |
1525 |
#labelImage: #(#ResourceRetriever nil #startMenuEditorIcon) |
|
1441 | 1526 |
) |
1527 |
#(#MenuItem |
|
1527 | 1528 |
#label: 'open image editor' |
1529 |
#isButton: true |
|
1530 |
#value: #openApplication: |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1531 |
#activeHelpKey: #toolsImageEditor |
1527 | 1532 |
#argument: 'ImageEditor' |
1533 |
#labelImage: #(#ResourceRetriever nil #startImageEditorIcon) |
|
1441 | 1534 |
) |
1535 |
#(#MenuItem |
|
1527 | 1536 |
#label: '' |
1441 | 1537 |
) |
1538 |
#(#MenuItem |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1539 |
#label: 'garbage collect and compress' |
1527 | 1540 |
#isButton: true |
1541 |
#value: #compressingGarbageCollect |
|
1544 | 1542 |
#activeHelpKey: #systemGarbageCollectAndCompress |
1527 | 1543 |
#labelImage: #(#ResourceRetriever nil #garbageCollectIcon) |
1441 | 1544 |
) |
1545 |
) nil |
|
1546 |
nil |
|
1547 |
) |
|
1548 |
! ! |
|
1549 |
||
1424 | 1550 |
!NewLauncher class methodsFor:'resources'! |
1551 |
||
1552 |
garbageCollectIcon |
|
1527 | 1553 |
"This resource specification was automatically generated |
1554 |
by the ImageEditor of ST/X." |
|
1555 |
||
1556 |
"Do not manually edit this!! If it is corrupted, |
|
1557 |
the ImageEditor may not be able to read the specification." |
|
1558 |
||
1424 | 1559 |
" |
1527 | 1560 |
ImageEditor openOnClass:self andSelector:#garbageCollectIcon |
1424 | 1561 |
" |
1562 |
||
1563 |
<resource: #image> |
|
1564 |
||
1565 |
^Icon |
|
1566 |
constantNamed:#'NewLauncher garbageCollectIcon' |
|
1527 | 1567 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'DQD@@@.;.1D[DQDQD@@QDP@@.;.;,[,@@ADP@ADQ@@.;@@.;.1@@@A@@DQD@B;@@@[.;DCH@D@@QDP@K,@@K.;,Q@2@P@ADQ@K.;@@DQDQDPL @@DQDKB;B0@QDQ@@@C@@@QD[B0B0,ADP@"H"@@@ADQ@@@@@@DQ@P@@@0@@DQ@@@@C 8@@ADQL3@@@Q@@@@;.;.@@DCL0H@@@@@@@@NC @@@PLC@ @@@@@@C.;.8@@A@0LB@@@@@@@@8N@@@@DC@0H@@@@@B (@@AD@@PLC@ @@@@****@LG@@A@0LB@@@@@JB CL3L0@DC@0H@@@B***(@0L@Q@SLCL @@@@(J@L3L3AD@L"H @@@@@QDQC@0QDQD@@@DP@@@ADQD@@@@QD@@@@@@@@ @B@ @B@@HB@ H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@@H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@H@@@H@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@G1@@@C>0@@A1=0@@XO^@@FG30@C0@^@AZ@? @)P?8@@@O>@@B#? @C<?8@@TO>@@_#? @B ?8@E@O>@G9S? @)>?8@?JO>@EO3? @APO @@@@@@]7]7\DUUUDAEUUQ@U7]5\EUUUTAUUUU@]U]W\@@a') ; yourself); yourself]! |
1424 | 1568 |
|
1569 |
saveImageIcon |
|
1527 | 1570 |
"This resource specification was automatically generated |
1571 |
by the ImageEditor of ST/X." |
|
1572 |
||
1573 |
"Do not manually edit this!! If it is corrupted, |
|
1574 |
the ImageEditor may not be able to read the specification." |
|
1575 |
||
1424 | 1576 |
" |
1527 | 1577 |
ImageEditor openOnClass:self andSelector:#saveImageIcon |
1424 | 1578 |
" |
1579 |
||
1580 |
<resource: #image> |
|
1581 |
||
1582 |
^Icon |
|
1583 |
constantNamed:#'NewLauncher saveImageIcon' |
|
1527 | 1584 |
ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UPSL3L0A@ET7L3L0?PAUML3L3OT@US\3L3C5@ET43L3L?PAUM3L3LO4@USSL3L3=@ET7L3L0?PAUML3L3O4@US\3L3C=@ET43L3L?PAUM@@@@O4@US?????=@ET?UUUU?PAUO7??6?4@US=T?=+=@ET?ZO?Z?PAUO4C?6/4@U]U**)WU@ET@@@@@@@AUUUUUUUUU%Y%UUUTE%%UUUUTU)UEUUUUEUUUUUUVYUUTEUTUUUUDUAUUUUUUQUPUUVUUUUUTU%P@a') ; colorMapFromArray:#[255 255 255 0 0 0 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C???@@???0@O??<@C??>@@@@@@@@@@@@;*9R<H*(W)BJ*E:@S.9R,B)HT)@*REJP:$9R<@@a') ; yourself); yourself]! |
1424 | 1585 |
|
1586 |
startChangesBrowserIcon |
|
1527 | 1587 |
"This resource specification was automatically generated |
1588 |
by the ImageEditor of ST/X." |
|
1589 |
||
1590 |
"Do not manually edit this!! If it is corrupted, |
|
1591 |
the ImageEditor may not be able to read the specification." |
|
1592 |
||
1424 | 1593 |
" |
1527 | 1594 |
ImageEditor openOnClass:self andSelector:#startChangesBrowserIcon |
1424 | 1595 |
" |
1596 |
||
1597 |
<resource: #image> |
|
1598 |
||
1599 |
^Icon |
|
1600 |
constantNamed:#'NewLauncher startChangesBrowserIcon' |
|
1527 | 1601 |
ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@B****@@@@@@@@@ @@@B****H@@@@@@@@"@@@C????H @@@@@@@2H@@C????L"@@@@@@@3H@@AUUUUL2@@@@@@@SL@@AUUUUD3@@@_=UUQL@@@EUUUTS@@@A]7UUD@@@@U7]5Q@@@@E7]5T@@@@AUUUU@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH@@@@@@@@LB@L@@@@@@@@@@@@@@@@J@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@??8@@O?>@@O?? @C??8@C??>@@??? @???8@O??>@O??? C??? C???8@???8@O??>@C??>@@??? @O?? @C??8@@??8@@O?>@@@@@@@@@@@@@Z.$7LH+-YDBJ+TQ@#.=WHH*+UABJ*5PPZ*$7X@@a') ; yourself); yourself]! |
1424 | 1602 |
|
1603 |
startFileBrowserIcon |
|
1527 | 1604 |
"This resource specification was automatically generated |
1605 |
by the ImageEditor of ST/X." |
|
1606 |
||
1607 |
"Do not manually edit this!! If it is corrupted, |
|
1608 |
the ImageEditor may not be able to read the specification." |
|
1609 |
||
1424 | 1610 |
" |
1527 | 1611 |
ImageEditor openOnClass:self andSelector:#startFileBrowserIcon |
1424 | 1612 |
" |
1613 |
||
1614 |
<resource: #image> |
|
1615 |
||
1616 |
^Icon |
|
1617 |
constantNamed:#'NewLauncher startFileBrowserIcon' |
|
1527 | 1618 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@CLA&Y&Y&Y&X@@@@@@@@L0F@@@@@@A @@@@@@@@3@XN;.;.8F@@@@@@@@CLA ;.@@@@@@@@@@@@@L0FC.8O[6=/[0@@@@@@3@X@; [6=/[6@@@@@@CLA DNC6<@@F<@@@@@@L0F@A@F= [0= @@@@@@3@X@@P=/[6=/@@@@@@CLA @@A/[6=/X@@@@@@L0FC0@O[6=/[0@@@@@@3@XF<@@@@@@@@@@@@@CLA = @@@@@@@@@@@@@L0FA/[6=/A @@@@@@@@3@XO[6=/XF@@@@@@@@CLA @@@@@@X@@@@@@@@L0FY&Y&Y&Y @@@@@@@@C@Y&Y&Y&Y&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C @b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A??<@@_??@@G??0@A??<@@_??8@G??>@A??? @_??8@G??>@A??? @_??8@G??>@A??? @_??@@G??0@A??<@@_??@@G??0@@??<@@G??@@@@@@@G.P=0AADHP@PQBD@GDP8 AADHD@PQBA@DN^=0@@a') ; yourself); yourself]! |
1424 | 1619 |
|
1620 |
startImageEditorIcon |
|
1527 | 1621 |
"This resource specification was automatically generated |
1622 |
by the ImageEditor of ST/X." |
|
1623 |
||
1624 |
"Do not manually edit this!! If it is corrupted, |
|
1625 |
the ImageEditor may not be able to read the specification." |
|
1626 |
||
1424 | 1627 |
" |
1527 | 1628 |
ImageEditor openOnClass:self andSelector:#startImageEditorIcon |
1424 | 1629 |
" |
1630 |
||
1631 |
<resource: #image> |
|
1632 |
||
1633 |
^Icon |
|
1634 |
constantNamed:#'NewLauncher startImageEditorIcon' |
|
1527 | 1635 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@M7]7]7]7]7]7]@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"HDQEUVY @@@@@BH"H3L QDUUY&@@@@@@HA@#L2ADQUU&X@@@@@@"H"H"HH"I&W]0@@@@@BL3L3L "H&Y]7@@@@@@H"H"H"BH"Y%7\@@@@@@#L3L3HDQEUVY @@@@@BH"H"H QDUUY&@@@@@@H3L3L2ADQUU&X@@@@@@"H"H"HH"I&W]0@@@@@BL#L3L "H&Y]7@@@@@@H2L3L2BH"Y%7\@@@@@@"H"H"HBH"H"H @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@0@0@0L@L@@@@@@@@@@0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@L@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''0???90O??>TC??? ???8HO??>AC??? P???8@O??>@C??? @???8@@@@@@@@@@@@;[7/@D>%J@AJ)P @RK5.@D"%J@AH)R @:JW/@@@a') ; yourself); yourself]! |
1424 | 1636 |
|
1637 |
startMenuEditorIcon |
|
1527 | 1638 |
"This resource specification was automatically generated |
1639 |
by the ImageEditor of ST/X." |
|
1640 |
||
1641 |
"Do not manually edit this!! If it is corrupted, |
|
1642 |
the ImageEditor may not be able to read the specification." |
|
1643 |
||
1424 | 1644 |
" |
1527 | 1645 |
ImageEditor openOnClass:self andSelector:#startMenuEditorIcon |
1424 | 1646 |
" |
1647 |
||
1648 |
<resource: #image> |
|
1649 |
||
1650 |
^Icon |
|
1651 |
constantNamed:#'NewLauncher startMenuEditorIcon' |
|
1527 | 1652 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@DQDQDQDQDQDQD@@@@@@@@@@@@@@@@@@@@@@@@@QH"H DQHQD"H @@@@@ATBH"@RHBH H"@@@@@@H@H"HAT%UUUUT@@@@@@%H"H D%IRT%IP@@@@@BUQIU@UIRT%IR@@@@@@IRHBHAIRT%IRT@@@@@@%H"H ERT%IRT @@@@@BUQIU@RT%IRT%@@@@@@IRHBHAT%IRT%H@@@@@@%H"H D%IRT%IP@@@@@BUQIU@UIRT%IR@@@@@@H"HBHAIRT%IRT@@@@@@"H"H IRT%IRT @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@APT@@@@@@@@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@T@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 255 0 0 127 127 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 0 255 127 0 0 0 127 0 0 0 127 127 127 0 127 0 0]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''0???90O??>TC??? ???8HO??>AC??? P???8@O??>@C??? @???8@@@@@@@@@@@@6=D$@O(YI@B*GRP@"9T$@H(WI@BJD2P@"=D<@@@a') ; yourself); yourself]! |
1424 | 1653 |
|
1654 |
startSystemBrowserIcon |
|
1527 | 1655 |
"This resource specification was automatically generated |
1656 |
by the ImageEditor of ST/X." |
|
1657 |
||
1658 |
"Do not manually edit this!! If it is corrupted, |
|
1659 |
the ImageEditor may not be able to read the specification." |
|
1660 |
||
1424 | 1661 |
" |
1527 | 1662 |
ImageEditor openOnClass:self andSelector:#startSystemBrowserIcon |
1424 | 1663 |
" |
1664 |
||
1665 |
<resource: #image> |
|
1666 |
||
1667 |
^Icon |
|
1668 |
constantNamed:#'NewLauncher startSystemBrowserIcon' |
|
1527 | 1669 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@ADQDQDQG0@@@@@@@@@@D"H"H"H.@@@@@@@@@@@RH"H"H"8@@@@@@@@@@O;.;.;.; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@SL3L3L>@@@@@@@@@@@O;.;.;.8@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@VY&Y&Y.@@@@@@@@@@@O;.;.;.8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@N@NC @@8@@@C @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@8@C @@@@8b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@?? A0O?8@_??>@G@?? @ O?8@H@@@@B@?? A0O?8@_??>@G@?? @@O?8@@@@@@@@@@@9O\7\IRTQDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself]! |
1424 | 1670 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1671 |
startSystemBrowserOnHistoryClassIcon |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1672 |
"This resource specification was automatically generated |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1673 |
by the ImageEditor of ST/X." |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1674 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1675 |
"Do not manually edit this!! If it is corrupted, |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1676 |
the ImageEditor may not be able to read the specification." |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1677 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1678 |
" |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1679 |
ImageEditor openOnClass:self andSelector:#startSystemBrowserOnHistoryClassIcon |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1680 |
" |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1681 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1682 |
<resource: #image> |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1683 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1684 |
^Icon |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1685 |
constantNamed:#'NewLauncher startSystemBrowserOnHistoryClassIcon' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1686 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@ADQDQDQG0@@@@@@@@@@D"H"H"H.@@@@@@@@@@@RH"H"H"8@@@@@@@@@@O;.;.;.; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@SL3L3L>@@@@@@@@@@@O;.;.;.8@@@@@8@@@@@@@@@@@@@@@@@C @@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQG0@@@@@P;.;.@VY&Y&Y.@@@@@@@@@@@O;.;.;.8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C @@@@8@8@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@8@8@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@?? A0O?8@_??>@G@?? @ O?8@H@@@@B@?? A0O?8@_??>@G@?? @@O?8@@@@@@@@@@@%]7/TITIJUBUBR%P=H$/TIQIJRBTRR$ %\'')P@@a') ; yourself); yourself]! |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
1687 |
|
1424 | 1688 |
startUIPainterIcon |
1527 | 1689 |
"This resource specification was automatically generated |
1690 |
by the ImageEditor of ST/X." |
|
1691 |
||
1692 |
"Do not manually edit this!! If it is corrupted, |
|
1693 |
the ImageEditor may not be able to read the specification." |
|
1694 |
||
1424 | 1695 |
" |
1527 | 1696 |
ImageEditor openOnClass:self andSelector:#startUIPainterIcon |
1424 | 1697 |
" |
1698 |
||
1699 |
<resource: #image> |
|
1700 |
||
1701 |
^Icon |
|
1702 |
constantNamed:#'NewLauncher startUIPainterIcon' |
|
1527 | 1703 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@DQDQDQDQDQDQD@@@@@@@@@@@@@@@@@@@@@@@@@3H"H DQHQD"H @@@@@CLBH"@RHBH H"@@@@@@H@H"HAT%UUUUT@@@@@@%H"H D%IRT%IP@@@@@BUSMU@UIRT%IR@@@@@@IRLBHAIRT%IRT@@@@@@%H"H ERT%IRT @@@@@BUSMU@RT%IRT%@@@@@@IRLBHAT%IRT%H@@@@@@%H"H D%IRT%IP@@@@@BUSMU@UIRT%IR@@@@@@H"LBHAIRT%IRT@@@@@@"H"H IRT%IRT @@@@@@@@@@@@@@@@@@@@@@@@H"H"H"H"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@AP@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T@@@AP@E@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 255 0 0 127 127 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 0 255 127 0 0 0 127 0 0 0 127 127 127 0 127 0 0]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???8@O??>@C??? @???8@O??>PC???&@???90O??>^C???''8???90O??>TC??? ???8HO??>A#??? X???8@O??>@C??? @???8@@@@@@@@@@@@>QN@@H$Q@@BADP@@.QD@@H$Q@@BIDP@@>_N@@@@a') ; yourself); yourself]! |
1424 | 1704 |
|
1705 |
startWorkspaceIcon |
|
1527 | 1706 |
"This resource specification was automatically generated |
1707 |
by the ImageEditor of ST/X." |
|
1708 |
||
1709 |
"Do not manually edit this!! If it is corrupted, |
|
1710 |
the ImageEditor may not be able to read the specification." |
|
1711 |
||
1424 | 1712 |
" |
1527 | 1713 |
ImageEditor openOnClass:self andSelector:#startWorkspaceIcon |
1424 | 1714 |
" |
1715 |
||
1716 |
<resource: #image> |
|
1717 |
||
1718 |
^Icon |
|
1719 |
constantNamed:#'NewLauncher startWorkspaceIcon' |
|
1527 | 1720 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@M7]7]7]7]7]7]7]@@@@@@@@@@@@@@@@@@@@@@@QDQDQDQDQDQDQ@0@@@AUPUUUUAUAQDQDB@@@@EUAUUUTE@@DQDPH@@@@P@E@@UPUPTQDQ@ @@@AAPTEAUAUAQDQDB@@@@D@AP@ETET@DQDPH@@@@QDQDQDQDQEADQ@ @@@ADQDQDQDQDTPQDB@@@@DQDQDQDQDQQDDPH@@@@QDQDQDQDQEDDQ@ @@@ADQDQDQDQDQEADB@@@@DQDQDQDQDQDTDPH@@@@QDQDQDQDQDQDQ@0@@@@@@@@@@@@@@@@@@@@@@L"H"H"H"H"H"H0L@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@L@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@L@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@O???0C???<@????@@@@@@@@@@@@ //R@HJJT BB"%P@$(/X@IJJU@BR"%H@[O)R@@@a') ; yourself); yourself]! ! |
1424 | 1721 |
|
1544 | 1722 |
!NewLauncher methodsFor:'aspects'! |
1723 |
||
1724 |
enableDangerousMenuItemsInRemoteLauncher |
|
1725 |
||
1726 |
|holder| |
|
1727 |
(holder := builder bindingAt:#enableDangerousMenuItemsInRemoteLauncher) isNil ifTrue:[ |
|
1728 |
builder aspectAt:#enableDangerousMenuItemsInRemoteLauncher put:(holder := true asValue). |
|
1729 |
]. |
|
1730 |
^ holder |
|
1731 |
! |
|
1732 |
||
1733 |
javaSupportPresent |
|
1734 |
^ (JavaVM notNil and:[JavaVM isBehavior and:[JavaVM isLoaded]]) asValue |
|
1735 |
||
1736 |
"Created: / 13.2.1998 / 14:25:59 / cg" |
|
1737 |
"Modified: / 13.2.1998 / 14:26:31 / cg" |
|
1738 |
! ! |
|
1739 |
||
1740 |
!NewLauncher methodsFor:'change & update'! |
|
1741 |
||
1742 |
update:something with:aParameter from:changedObject |
|
1743 |
"care for project changes & update my infoView" |
|
1744 |
||
1745 |
((something == #currentProject) or:[changedObject == Project]) ifTrue: [self updateInfo] |
|
1746 |
||
1747 |
! |
|
1748 |
||
1749 |
updateInfo |
|
1750 |
"update the infoView from the current project" |
|
1751 |
||
1752 |
|project projectName projectDir packageName defNameSpace msg args projectInfo| |
|
1753 |
||
1754 |
(Project isNil or:[(project := Project current) isNil]) ifTrue:[ |
|
1755 |
projectName := '* none *'. |
|
1756 |
projectDir := '.'. |
|
1757 |
packageName := '* none *'. |
|
1758 |
] ifFalse:[ |
|
1759 |
projectName := project name. |
|
1760 |
projectDir := project directory. |
|
1761 |
packageName := project packageName. |
|
1762 |
defNameSpace := project defaultNameSpace. |
|
1763 |
]. |
|
1764 |
defNameSpace isNil ifTrue:[ |
|
1765 |
defNameSpace := Smalltalk. |
|
1766 |
]. |
|
1767 |
||
1768 |
defNameSpace == Smalltalk ifTrue:[ |
|
1769 |
msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2'''. |
|
1770 |
args := Array |
|
1771 |
with:projectName |
|
1772 |
with:packageName |
|
1773 |
with:(projectDir contractTo:30). |
|
1774 |
] ifFalse:[ |
|
1775 |
msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2'' nameSpace: %4'. |
|
1776 |
args := Array |
|
1777 |
with:projectName |
|
1778 |
with:packageName |
|
1779 |
with:(projectDir contractTo:30) |
|
1780 |
with:defNameSpace name. |
|
1781 |
]. |
|
1782 |
||
1783 |
self valueOfInfoLabel value:(projectInfo := resources string:msg withArgs:args). |
|
1784 |
^projectInfo |
|
1785 |
! ! |
|
1786 |
||
1787 |
!NewLauncher methodsFor:'help'! |
|
1788 |
||
1789 |
defaultInfoLabel |
|
1790 |
||
1791 |
^self updateInfo |
|
1792 |
||
1793 |
! ! |
|
1794 |
||
1795 |
!NewLauncher methodsFor:'private'! |
|
1796 |
||
1797 |
changeViewStyleTo:newStyle |
|
1798 |
||
1799 |
newStyle notNil ifTrue:[ |
|
1800 |
self withWaitCursorDo:[ |
|
1801 |
transcript showCR:'change style to ' , newStyle , ' ...'. |
|
1802 |
View defaultStyle:newStyle asSymbol. |
|
1803 |
]. |
|
1804 |
self reOpen |
|
1805 |
] |
|
1806 |
||
1807 |
! |
|
1808 |
||
1809 |
findWindow:title |
|
1810 |
"a helper for find & destroy and find & raise operations; |
|
1811 |
let user choose a view and return it; return nil on cancel" |
|
1812 |
||
1813 |
|knownTopViews nameList box| |
|
1814 |
||
1815 |
knownTopViews := IdentitySet new. |
|
1816 |
Screen allScreens do:[:aScreen | |
|
1817 |
aScreen knownViews do:[:aView | |
|
1818 |
|top showIt wg| |
|
1819 |
||
1820 |
aView notNil ifTrue:[ |
|
1821 |
top := aView topView. |
|
1822 |
(top isKindOf:DebugView) ifTrue:[ |
|
1823 |
"/ although modal, show it. |
|
1824 |
showIt := top realized |
|
1825 |
] ifFalse:[ |
|
1826 |
wg := top windowGroup. |
|
1827 |
showIt := (wg notNil and:[wg isModal not]). |
|
1828 |
]. |
|
1829 |
showIt ifTrue:[ |
|
1830 |
knownTopViews add:top |
|
1831 |
] |
|
1832 |
] |
|
1833 |
] |
|
1834 |
]. |
|
1835 |
||
1836 |
knownTopViews := knownTopViews asOrderedCollection. |
|
1837 |
knownTopViews sort:[:v1 :v2 | |l1 l2| |
|
1838 |
l1 := v1 label ? 'aView'. |
|
1839 |
l2 := v2 label ? 'aView'. |
|
1840 |
l1 < l2 |
|
1841 |
]. |
|
1842 |
nameList := knownTopViews collect:[:v | |
|
1843 |
|isDead wg p l| |
|
1844 |
||
1845 |
l := v label ? 'aView'. |
|
1846 |
((wg := v windowGroup) notNil |
|
1847 |
and:[(p := wg process) notNil |
|
1848 |
and:[p state ~~ #dead]]) ifTrue:[ |
|
1849 |
l |
|
1850 |
] ifFalse:[ |
|
1851 |
l , ' (dead ?)' |
|
1852 |
] |
|
1853 |
]. |
|
1854 |
||
1855 |
box := ListSelectionBox new. |
|
1856 |
box noEnterField. |
|
1857 |
box list:nameList. |
|
1858 |
box label:(resources string:'view selection'). |
|
1859 |
box title:(resources string:title) withCRs. |
|
1860 |
box action:[:selection | |
|
1861 |
|v| |
|
1862 |
||
1863 |
v := knownTopViews at:box selectionIndex. |
|
1864 |
box destroy. |
|
1865 |
^ v |
|
1866 |
]. |
|
1867 |
box extent:400@300. |
|
1868 |
box showAtPointer. |
|
1869 |
^ nil |
|
1870 |
||
1871 |
! |
|
1872 |
||
1873 |
fontBoxForEncoding:encodingMatch |
|
1874 |
"open a fontBox, showing fonts which match some encoding |
|
1875 |
(used when changing to japanese ...)" |
|
1876 |
||
1877 |
|box y b |
|
1878 |
labelDef buttonDef listDef menuDef textDef |
|
1879 |
models labels allOfThem filter| |
|
1880 |
||
1881 |
encodingMatch notNil ifTrue:[ |
|
1882 |
filter := [:f | f encoding notNil |
|
1883 |
and:[encodingMatch match:f encoding]]. |
|
1884 |
]. |
|
1885 |
||
1886 |
models := OrderedCollection new. |
|
1887 |
labels := OrderedCollection new. |
|
1888 |
||
1889 |
models add:(allOfThem := nil asValue). |
|
1890 |
models add:(labelDef := Label defaultFont asValue). |
|
1891 |
models add:(buttonDef := Button defaultFont asValue). |
|
1892 |
models add:(listDef := SelectionInListView defaultFont asValue). |
|
1893 |
models add:(menuDef := MenuView defaultFont asValue). |
|
1894 |
models add:(textDef := TextView defaultFont asValue). |
|
1895 |
||
1896 |
box := Dialog new. |
|
1897 |
box label:(resources string:'Font settings'). |
|
1898 |
||
1899 |
models |
|
1900 |
with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text')) |
|
1901 |
do:[:model :title | |
|
1902 |
|y2 lbl f i| |
|
1903 |
||
1904 |
f := model value. |
|
1905 |
||
1906 |
(box addTextLabel:title) adjust:#left. |
|
1907 |
||
1908 |
y := box yPosition. |
|
1909 |
b := box addComponent:(Button label:(resources string:'change ...')) tabable:true. |
|
1910 |
b relativeExtent:nil; extent:(b preferredExtent). |
|
1911 |
y2 := box yPosition. |
|
1912 |
box yPosition:y. |
|
1913 |
i := box leftIndent. |
|
1914 |
box leftIndent:(b widthIncludingBorder + View viewSpacing). |
|
1915 |
(lbl := box addTextLabel:'') |
|
1916 |
adjust:#left; |
|
1917 |
font:(model value); |
|
1918 |
labelChannel:(BlockValue |
|
1919 |
with:[:v | |f| |
|
1920 |
f := v value. |
|
1921 |
f isNil ifTrue:[ |
|
1922 |
'' |
|
1923 |
] ifFalse:[ |
|
1924 |
f userFriendlyName |
|
1925 |
] |
|
1926 |
] |
|
1927 |
argument:model). |
|
1928 |
labels add:lbl. |
|
1929 |
||
1930 |
box leftIndent:i. |
|
1931 |
box yPosition:(box yPosition max:y2). |
|
1932 |
box addVerticalSpace. |
|
1933 |
box addHorizontalLine. |
|
1934 |
box addVerticalSpace. |
|
1935 |
||
1936 |
b action:[ |
|
1937 |
|f| |
|
1938 |
||
1939 |
f := FontPanel |
|
1940 |
fontFromUserInitial:(model value) |
|
1941 |
title:(resources string:'font for %1' with:title) |
|
1942 |
filter:filter. |
|
1943 |
f notNil ifTrue:[ |
|
1944 |
model == allOfThem ifTrue:[ |
|
1945 |
models do:[:m | m value:f]. |
|
1946 |
labels do:[:l | l font:f] |
|
1947 |
] ifFalse:[ |
|
1948 |
model value:f. |
|
1949 |
lbl font:f. |
|
1950 |
]. |
|
1951 |
] |
|
1952 |
]. |
|
1953 |
model == allOfThem ifTrue:[ |
|
1954 |
box addVerticalSpace |
|
1955 |
] |
|
1956 |
]. |
|
1957 |
||
1958 |
box addAbortButton; addOkButton. |
|
1959 |
(box addButton:(Button label:(resources string:'defaults')) before:nil) |
|
1960 |
action:[ |
|
1961 |
"/ fetch defaults |
|
1962 |
View updateAllStyleCaches. |
|
1963 |
labelDef value: Label defaultFont. |
|
1964 |
buttonDef value: Button defaultFont. |
|
1965 |
listDef value: SelectionInListView defaultFont. |
|
1966 |
menuDef value: MenuView defaultFont. |
|
1967 |
textDef value: TextView defaultFont. |
|
1968 |
]. |
|
1969 |
||
1970 |
box open. |
|
1971 |
box accepted ifTrue:[ |
|
1972 |
Label defaultFont:labelDef value. |
|
1973 |
Button defaultFont:buttonDef value. |
|
1974 |
Toggle defaultFont:buttonDef value. |
|
1975 |
SelectionInListView defaultFont:listDef value. |
|
1976 |
MenuView defaultFont:menuDef value. |
|
1977 |
PullDownMenu defaultFont:menuDef value. |
|
1978 |
TextView defaultFont:textDef value. |
|
1979 |
EditTextView defaultFont:textDef value. |
|
1980 |
CodeView defaultFont:textDef value. |
|
1981 |
]. |
|
1982 |
box destroy. |
|
1983 |
^ box accepted |
|
1984 |
||
1985 |
||
1986 |
! |
|
1987 |
||
1988 |
menuClassHistory |
|
1989 |
"returns a sub menu on the history of the classes" |
|
1990 |
||
1991 |
|menu| |
|
1992 |
||
1993 |
menu := Menu new receiver: self. |
|
1994 |
menu addItemGroup: (BrowserView classHistory collect: |
|
1995 |
[:histEntry| |
|
1996 |
MenuItem new |
|
1997 |
label: (histEntry upTo: $ ); |
|
1998 |
value: [SystemBrowser open loadFromMessage: histEntry]; |
|
1999 |
activeHelpKey: #classesSystemBrowserOnClass |
|
2000 |
] |
|
2001 |
). |
|
2002 |
menu addItem: (MenuItem new label: 'Empty History'; value: [BrowserView classHistory removeAll]; activeHelpKey: #historyEmptyMenu). |
|
2003 |
||
2004 |
^menu |
|
2005 |
||
2006 |
||
2007 |
||
2008 |
! |
|
2009 |
||
2010 |
openApplication: className |
|
2011 |
"open an application, given by the classe name." |
|
2012 |
||
2013 |
self openApplication:className nameSpace:nil |
|
2014 |
! |
|
2015 |
||
2016 |
openApplication:className nameSpace:aNameSpace |
|
2017 |
"open some application, given the classes name. |
|
2018 |
Look for it in Smalltalk and the given nameSpace" |
|
2019 |
||
2020 |
self openApplication:className nameSpace:aNameSpace with:#open |
|
2021 |
! |
|
2022 |
||
2023 |
openApplication:className nameSpace:aNameSpace with:aSelector |
|
2024 |
"open some application, given the classes name. |
|
2025 |
Look for it in Smalltalk and the given nameSpace" |
|
2026 |
||
2027 |
|cls| |
|
2028 |
||
2029 |
cls := Smalltalk at:className asSymbol. |
|
2030 |
cls isNil ifTrue:[ |
|
2031 |
"/ look if its in the nameSpace |
|
2032 |
aNameSpace notNil ifTrue:[ |
|
2033 |
cls := aNameSpace at:className asSymbol |
|
2034 |
] |
|
2035 |
]. |
|
2036 |
||
2037 |
cls isNil ifTrue:[ |
|
2038 |
self warn:(resources string:'Sorry, the %1 class is not available.' with:className). |
|
2039 |
] ifFalse:[ |
|
2040 |
Autoload autoloadFailedSignal handle:[:ex | |
|
2041 |
self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:className) |
|
2042 |
] do:[ |
|
2043 |
self withWaitCursorDo:[cls perform:aSelector] |
|
2044 |
] |
|
2045 |
] |
|
2046 |
||
2047 |
! |
|
2048 |
||
2049 |
saveAllViews |
|
2050 |
"tell each topview that we are going to terminate and give it chance |
|
2051 |
to save its contents." |
|
2052 |
||
2053 |
ObjectMemory changed:#aboutToExit |
|
2054 |
! |
|
2055 |
||
2056 |
saveScreenImage:anImage defaultName:defaultName |
|
2057 |
"save an image into a file |
|
2058 |
- ask user for filename using a fileSelectionBox." |
|
2059 |
||
2060 |
|fileName| |
|
2061 |
||
2062 |
fileName := Dialog |
|
2063 |
requestFileName:(resources string:'save image in:') |
|
2064 |
default:(defaultName , '.tiff') |
|
2065 |
ok:(resources string:'save') |
|
2066 |
abort:(resources string:'cancel') |
|
2067 |
pattern:'*.tiff'. |
|
2068 |
||
2069 |
fileName notNil ifTrue:[ |
|
2070 |
anImage saveOn:fileName |
|
2071 |
]. |
|
2072 |
||
2073 |
"Modified: / 21.2.1996 / 13:09:28 / cg" |
|
2074 |
"Created: / 29.1.1998 / 23:20:36 / cg" |
|
2075 |
! |
|
2076 |
||
2077 |
showDocumentation:aRelativeDocFilePath |
|
2078 |
"open an HTML browser on some document" |
|
2079 |
||
2080 |
" |
|
2081 |
although that one is not yet finished, |
|
2082 |
its better than nothing ... |
|
2083 |
" |
|
2084 |
HTMLDocumentView notNil ifTrue:[ |
|
2085 |
self withWaitCursorDo:[ |
|
2086 |
" |
|
2087 |
temporary kludge; |
|
2088 |
not all machines can autoload binaries; |
|
2089 |
however, on my SGI (which can) we want it |
|
2090 |
to load automatically. |
|
2091 |
" |
|
2092 |
HTMLDocumentView isLoaded ifFalse:[ |
|
2093 |
ErrorSignal catch:[HTMLDocumentView autoload] |
|
2094 |
]. |
|
2095 |
HTMLDocumentView isLoaded ifTrue:[ |
|
2096 |
HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. |
|
2097 |
^ self |
|
2098 |
]. |
|
2099 |
] |
|
2100 |
]. |
|
2101 |
||
2102 |
self warn:'Sorry, the ST/X HTML reader is not |
|
2103 |
included in this release. |
|
2104 |
||
2105 |
Please use Mosaic, netscape, chimera or any |
|
2106 |
other HTML viewer to see the documentation. |
|
2107 |
||
2108 |
The documentation is found in the ''doc/online'' directory.'. |
|
2109 |
||
2110 |
"Modified: / 25.2.1998 / 21:24:20 / cg" |
|
2111 |
! ! |
|
2112 |
||
2113 |
!NewLauncher methodsFor:'queries'! |
|
2114 |
||
2115 |
preferredExtent |
|
2116 |
||
2117 |
^super preferredExtent max: Screen current extent//(2.5@3.5) |
|
2118 |
||
2119 |
||
2120 |
! |
|
2121 |
||
2122 |
processName |
|
2123 |
"for monitors only - my name" |
|
2124 |
||
2125 |
^ 'ST/X Launcher' |
|
2126 |
||
2127 |
! |
|
2128 |
||
2129 |
transcript |
|
2130 |
"my transcript" |
|
2131 |
||
2132 |
^ transcript |
|
2133 |
! ! |
|
2134 |
||
2135 |
!NewLauncher methodsFor:'startup / release'! |
|
2136 |
||
2137 |
addTopViewsToCurrentProject |
|
2138 |
"ignored here - the launcher is always global (i.e. not project private)." |
|
2139 |
||
2140 |
^ self |
|
2141 |
||
2142 |
! |
|
2143 |
||
2144 |
allButOpenInterface:anInterface |
|
2145 |
"sent by my superclass to open up my interface" |
|
2146 |
||
2147 |
"/ if there is already a transcript on my device, |
|
2148 |
"/ I am a slave launcher with limited functionality. |
|
2149 |
||
2150 |
Transcript notNil ifTrue:[ |
|
2151 |
Transcript ~~ Stderr ifTrue:[ |
|
2152 |
isMainLauncher := (Transcript graphicsDevice == device). |
|
2153 |
self enableDangerousMenuItemsInRemoteLauncher value: isMainLauncher. |
|
2154 |
] ifFalse:[ |
|
2155 |
isMainLauncher := true |
|
2156 |
] |
|
2157 |
] ifFalse:[ |
|
2158 |
isMainLauncher := true |
|
2159 |
]. |
|
2160 |
||
2161 |
super allButOpenInterface:anInterface. |
|
2162 |
||
2163 |
self setupTranscript; updateInfo. |
|
2164 |
Project notNil ifTrue: [Project addDependent:self]. |
|
2165 |
self class openLaunchers add: self. |
|
2166 |
^ builder |
|
2167 |
||
2168 |
"Created: / 5.2.1998 / 19:45:07 / cg" |
|
2169 |
"Modified: / 5.2.1998 / 19:56:43 / cg" |
|
2170 |
! |
|
2171 |
||
2172 |
closeRequest |
|
2173 |
||
2174 |
(self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[ |
|
2175 |
super closeRequest |
|
2176 |
] |
|
2177 |
||
2178 |
! |
|
2179 |
||
2180 |
postOpenWith:aBuilder |
|
2181 |
"increase my priority" |
|
2182 |
||
2183 |
self builder window windowGroup process priority:(Processor userSchedulingPriority + 1). |
|
2184 |
super postOpenWith:aBuilder. |
|
2185 |
self startClockOnTimedBlock: |
|
2186 |
[ |
|
2187 |
|now hours minutes suffix| |
|
2188 |
||
2189 |
now := Time now. |
|
2190 |
||
2191 |
hours := now hours. |
|
2192 |
minutes := now minutes printString. |
|
2193 |
suffix := ''. |
|
2194 |
||
2195 |
(resources at:'TIME_FORMAT' ifAbsent:12) == 12 ifTrue:[ |
|
2196 |
suffix := ' am '. |
|
2197 |
hours > 12 ifTrue: [hours := hours - 12. suffix := ' pm ']. |
|
2198 |
]. |
|
2199 |
||
2200 |
minutes size = 1 ifTrue: [minutes := '0', minutes]. |
|
2201 |
||
2202 |
self valueOfTimeLabel value: hours printString, ':', minutes, suffix. |
|
2203 |
||
2204 |
Processor removeTimedBlock: timeBlock. |
|
2205 |
Processor addTimedBlock: timeBlock afterSeconds: 1 |
|
2206 |
]. |
|
2207 |
||
2208 |
! |
|
2209 |
||
2210 |
reOpen |
|
2211 |
"reopen a new launcher. |
|
2212 |
for now (since style & language settings currently do |
|
2213 |
not affect living views ...)" |
|
2214 |
||
2215 |
|contents builder newLauncher| |
|
2216 |
||
2217 |
contents := transcript endEntry; list. |
|
2218 |
builder := self class openAt:(self window origin). |
|
2219 |
builder window waitUntilVisible. |
|
2220 |
newLauncher := builder application. |
|
2221 |
newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor. |
|
2222 |
DebugView newDebugger. |
|
2223 |
||
2224 |
"Modified: / 5.2.1998 / 20:08:31 / cg" |
|
2225 |
! |
|
2226 |
||
2227 |
restarted |
|
2228 |
"image restart - since WindowGroup recreates the process with |
|
2229 |
the default priority, we have to raise the prio again. |
|
2230 |
Mhmh - this looks like a bug to me ... |
|
2231 |
Also, the cursor (which was stored as a write or waitCursor) must |
|
2232 |
be reset to normal." |
|
2233 |
||
2234 |
Processor activeProcess priority:(Processor userSchedulingPriority + 1). |
|
2235 |
builder window extent: self preferredExtent. |
|
2236 |
super restarted |
|
2237 |
||
2238 |
! |
|
2239 |
||
2240 |
saveAndTerminateRequest |
|
2241 |
"some windowManagers can send this, to shutDown an application |
|
2242 |
but let it save its state before, for later restart. |
|
2243 |
Although I have not yet encountered such a windowManager, |
|
2244 |
we are already prepared for this ;-)" |
|
2245 |
||
2246 |
self snapshot. |
|
2247 |
super saveAndTerminateRequest |
|
2248 |
||
2249 |
! |
|
2250 |
||
2251 |
setupTranscript |
|
2252 |
"create the transcript view" |
|
2253 |
||
2254 |
|launcher oldLauncher| |
|
2255 |
||
2256 |
"/ check if this is an additional launcher on a remote display. |
|
2257 |
"/ if so, do not close the real launcher. |
|
2258 |
||
2259 |
(Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[ |
|
2260 |
isMainLauncher ifTrue:[ |
|
2261 |
launcher := Transcript topView application |
|
2262 |
] ifFalse:[ |
|
2263 |
launcher := self class current. |
|
2264 |
]. |
|
2265 |
launcher notNil ifTrue:[ |
|
2266 |
launcher window graphicsDevice == device ifTrue:[ |
|
2267 |
OpenLaunchers notNil ifTrue:[ |
|
2268 |
OpenLaunchers removeIdentical:launcher ifAbsent:nil. |
|
2269 |
]. |
|
2270 |
(oldLauncher := Smalltalk at: #Launcher) notNil |
|
2271 |
ifTrue: [oldLauncher openLaunchers removeIdentical:launcher ifAbsent:nil]. |
|
2272 |
launcher close |
|
2273 |
] |
|
2274 |
] |
|
2275 |
]. |
|
2276 |
||
2277 |
transcript := (builder componentAt: #transcriptView) subViews first. |
|
2278 |
||
2279 |
isMainLauncher ifTrue:[ |
|
2280 |
transcript beTranscript. |
|
2281 |
] ifFalse:[ |
|
2282 |
transcript showCR:'**************** Notice ***********************'. |
|
2283 |
transcript showCR:'** this is NOT the Transcript **'. |
|
2284 |
transcript showCR:'** The real Transcript is on the main screen **'. |
|
2285 |
transcript showCR:'** **'. |
|
2286 |
transcript showCR:'** Menus affecting common state are disabled **'. |
|
2287 |
transcript showCR:'***********************************************'. |
|
2288 |
] |
|
2289 |
||
2290 |
"Modified: / 29.1.1998 / 22:06:03 / cg" |
|
2291 |
! |
|
2292 |
||
2293 |
uninitialize |
|
2294 |
||
2295 |
super uninitialize. |
|
2296 |
||
2297 |
Display beep. |
|
2298 |
OpenLaunchers notNil ifTrue:[OpenLaunchers removeIdentical:self ifAbsent:nil]. |
|
2299 |
Project notNil ifTrue:[Project removeDependent:self] |
|
2300 |
! ! |
|
2301 |
||
2302 |
!NewLauncher methodsFor:'user actions - about'! |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2303 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2304 |
openLicenseConditions |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2305 |
"open an HTML browser on the 'LICENCE' document" |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2306 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2307 |
self withWaitCursorDo:[ |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2308 |
|lang doc| |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2309 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2310 |
((lang := Smalltalk language) = 'de' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2311 |
or:[lang = 'german']) ifTrue:[ |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2312 |
doc := 'german/LICENCE_STX.html' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2313 |
] ifFalse:[ |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2314 |
doc := 'english/LICENCE_STX.html' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2315 |
]. |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2316 |
doc := resources at:'LICENCEFILE' default:doc. |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2317 |
self showDocumentation:('../' , doc) |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2318 |
] |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2319 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2320 |
"Created: / 5.2.1998 / 21:43:19 / cg" |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2321 |
"Modified: / 25.2.1998 / 21:23:41 / cg" |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2322 |
! ! |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
2323 |
|
1544 | 2324 |
!NewLauncher methodsFor:'user actions - classes'! |
1406 | 2325 |
|
2326 |
browseAllBreakAndTracePoints |
|
2327 |
"open a browser showing all breakPointed/traced methods |
|
2328 |
(but, to get rid of them, there is also a menu itme to remove them all)" |
|
2329 |
||
2330 |
SystemBrowser browseMethods: WrappedMethod allInstances title:'all breakPointed/traced methods' |
|
2331 |
||
2332 |
! |
|
2333 |
||
2334 |
browseImplementors |
|
2335 |
"open an implementors- browser after asking for a selector" |
|
2336 |
||
2337 |
|enterBox selector| |
|
2338 |
||
2339 |
enterBox := EnterBox |
|
2340 |
title:(resources at:'Browse implementors of:') withCRs |
|
2341 |
okText:(resources at:'browse') |
|
2342 |
action:[:acceptedString | selector := acceptedString]. |
|
2343 |
enterBox showAtPointer. |
|
2344 |
||
2345 |
selector notNil ifTrue:[ |
|
2346 |
self withWaitCursorDo:[ |
|
2347 |
SystemBrowser browseImplementorsOf:selector |
|
2348 |
] |
|
2349 |
]. |
|
2350 |
||
2351 |
! |
|
2352 |
||
2353 |
browseResources |
|
2354 |
"open a resource- browser after asking for a resource string" |
|
2355 |
||
2356 |
|box resourceHolder valueHolder component rsrc value t anyString| |
|
2357 |
||
2358 |
anyString := resources string:'* any *'. |
|
2359 |
||
2360 |
resourceHolder := ValueHolder newString. |
|
2361 |
valueHolder := '*' asValue. |
|
2362 |
||
2363 |
box := DialogBox new. |
|
2364 |
box label:(resources at:'Resource search:'). |
|
2365 |
component := box addTextLabel:(resources at:'Search for methods which contain a\particular resource specification') withCRs. |
|
2366 |
component adjust:#left. |
|
2367 |
box addVerticalSpace:10. |
|
2368 |
||
2369 |
component := box addTextLabel:(resources at:'Resource symbol (empty for any; no matchPattern allowed):') withCRs. |
|
2370 |
component adjust:#left. |
|
2371 |
component := box addComboBoxOn:resourceHolder tabable:true. |
|
2372 |
component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' nil 'needsFix')). |
|
2373 |
||
2374 |
component := box addTextLabel:(resources at:'Resource value (* for any; matchPattern is allowed):') withCRs. |
|
2375 |
component adjust:#left. |
|
2376 |
box addInputFieldOn:valueHolder tabable:true. |
|
2377 |
||
2378 |
box addVerticalSpace:10. |
|
2379 |
box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'. |
|
2380 |
box addAbortButton; addOkButton. |
|
2381 |
||
2382 |
box showAtPointer. |
|
2383 |
box destroy. |
|
2384 |
||
2385 |
box accepted ifTrue:[ |
|
2386 |
rsrc := resourceHolder value. |
|
2387 |
value := valueHolder value. |
|
2388 |
||
2389 |
(rsrc isNil or:[rsrc isEmpty or:[rsrc = '*' or:[rsrc = anyString]]]) ifTrue:[ |
|
2390 |
t := 'methods with any resource'. |
|
2391 |
rsrc := nil |
|
2392 |
] ifFalse:[ |
|
2393 |
t := 'methods with #' , rsrc , '-resource'. |
|
2394 |
rsrc := rsrc withoutSeparators asSymbol |
|
2395 |
]. |
|
2396 |
(value isNil or:[value isEmpty or:[value = '*']]) ifTrue:[ |
|
2397 |
t := t , ' and any value'. |
|
2398 |
value := nil |
|
2399 |
] ifFalse:[ |
|
2400 |
t := t , ' and value ' , value. |
|
2401 |
]. |
|
2402 |
self withWaitCursorDo:[ |
|
2403 |
SystemBrowser browseForResource:rsrc |
|
2404 |
containing:value |
|
2405 |
in:(Smalltalk allClasses) |
|
2406 |
title:t |
|
2407 |
] |
|
2408 |
]. |
|
2409 |
||
2410 |
! |
|
2411 |
||
2412 |
browseSenders |
|
2413 |
"open a senders- browser after asking for a selector" |
|
2414 |
||
2415 |
|enterBox selector| |
|
2416 |
||
2417 |
enterBox := EnterBox |
|
2418 |
title:(resources at:'Browse senders of:') withCRs |
|
2419 |
okText:(resources at:'browse') |
|
2420 |
action:[:acceptedString | selector := acceptedString]. |
|
2421 |
enterBox showAtPointer. |
|
2422 |
||
2423 |
selector notNil ifTrue:[ |
|
2424 |
self withWaitCursorDo:[ |
|
2425 |
SystemBrowser browseAllCallsOn:selector |
|
2426 |
] |
|
2427 |
]. |
|
2428 |
||
2429 |
! |
|
2430 |
||
2431 |
browseUndeclared |
|
2432 |
"open a browser on methods refering to undeclared variables" |
|
2433 |
||
2434 |
self withWaitCursorDo:[ |
|
2435 |
SystemBrowser |
|
2436 |
browseReferendsOf:(Smalltalk underclaredPrefix , '*') |
|
2437 |
title:(resources string:'references to undeclared variables') |
|
2438 |
warnIfNone:true |
|
2439 |
] |
|
2440 |
||
2441 |
! |
|
2442 |
||
1467
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2443 |
removeAllBreakAndTracePoints |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2444 |
"remove all break- and trace points" |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2445 |
|
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2446 |
MessageTracer cleanup |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2447 |
|
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2448 |
! |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
2449 |
|
1406 | 2450 |
startClassBrowser |
2451 |
"open a classBrowser; asks for class" |
|
2452 |
||
2453 |
SystemBrowser askThenBrowseClass |
|
2454 |
||
2455 |
! |
|
2456 |
||
2457 |
startClassHierarchyBrowser |
|
2458 |
"open a classHierarchyBrowser; asks for class" |
|
2459 |
||
2460 |
SystemBrowser askThenBrowseClassHierarchy |
|
2461 |
||
2462 |
! |
|
2463 |
||
2464 |
startFullClassBrowser |
|
2465 |
"open a fullClass systemBrowser; asks for class" |
|
2466 |
||
2467 |
SystemBrowser askThenBrowseFullClassProtocol |
|
2468 |
||
2469 |
! ! |
|
2470 |
||
1544 | 2471 |
!NewLauncher methodsFor:'user actions - demos'! |
1406 | 2472 |
|
2473 |
openDemo:className |
|
2474 |
"open a demo, given its name. |
|
2475 |
Looks in both the Smalltalk- and the Demos-Namespace |
|
2476 |
for that class." |
|
2477 |
||
2478 |
self openApplication:className nameSpace:Demos |
|
2479 |
||
2480 |
! |
|
2481 |
||
2482 |
startTicTacToe2 |
|
2483 |
"opens a 2-user ticTacToe game" |
|
2484 |
||
2485 |
self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame |
|
2486 |
! ! |
|
2487 |
||
1544 | 2488 |
!NewLauncher methodsFor:'user actions - file'! |
1406 | 2489 |
|
2490 |
exit |
|
2491 |
"saves a snapshot image and exits, after asking for a fileName" |
|
2492 |
||
2493 |
|fileName saveAndExit box| |
|
2494 |
||
2495 |
box := EnterBox2 title:'Save image before exiting?' |
|
1422
bd1798d4454c
exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents:
1420
diff
changeset
|
2496 |
okText:' Save & Exit ' |
1406 | 2497 |
abortText:'Cancel' |
1422
bd1798d4454c
exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents:
1420
diff
changeset
|
2498 |
action:[:str|fileName := str. saveAndExit := true]. |
1406 | 2499 |
box label: 'Exiting ST/X'. |
2500 |
box initialText: ObjectMemory nameForSnapshot. |
|
1422
bd1798d4454c
exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents:
1420
diff
changeset
|
2501 |
box okText2:'Exit' action2:[:str|saveAndExit := false]; showAtPointer. |
1406 | 2502 |
|
2503 |
saveAndExit notNil |
|
2504 |
ifTrue:[ |
|
2505 |
saveAndExit |
|
2506 |
ifTrue: |
|
2507 |
[ |
|
2508 |
self saveImageAs: fileName |
|
2509 |
]. |
|
2510 |
Smalltalk exit |
|
2511 |
] |
|
2512 |
||
2513 |
||
2514 |
||
2515 |
! |
|
2516 |
||
2517 |
objectModuleDialog |
|
2518 |
"opens a moduleInfo dialog" |
|
2519 |
||
2520 |
|allModules moduleNames |
|
2521 |
allObjects methodObjects methodNames |
|
2522 |
cObjects cObjectNames |
|
2523 |
otherObjects otherObjectNames |
|
2524 |
box l handles unloadButton |
|
2525 |
list1 list2 listView1 listView2 |
|
2526 |
y panel |
|
2527 |
showBuiltIn showModules showMethods showCObjects showOthers |
|
2528 |
moduleListUpdater check canDoIt menu| |
|
2529 |
||
2530 |
showBuiltIn := true asValue. |
|
2531 |
canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
2532 |
||
2533 |
showModules := canDoIt asValue. |
|
2534 |
showMethods := canDoIt asValue. |
|
2535 |
showCObjects := canDoIt asValue. |
|
2536 |
showOthers := canDoIt asValue. |
|
2537 |
||
2538 |
list1 := SelectionInList new. |
|
2539 |
list2 := SelectionInList new. |
|
2540 |
||
2541 |
moduleListUpdater := [ |
|
2542 |
|l| |
|
2543 |
||
2544 |
list2 list:nil. |
|
2545 |
||
2546 |
l := Array new. |
|
2547 |
handles := Array new. |
|
2548 |
||
2549 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
2550 |
allModules := ObjectMemory binaryModuleInfo asOrderedCollection. |
|
2551 |
(showBuiltIn value and:[showModules value]) ifFalse:[ |
|
2552 |
allModules := allModules select:[:i | |
|
2553 |
|wantToSee| |
|
2554 |
||
2555 |
wantToSee := i dynamic. |
|
2556 |
showBuiltIn value ifTrue:[ |
|
2557 |
wantToSee := wantToSee not |
|
2558 |
]. |
|
2559 |
wantToSee |
|
2560 |
] |
|
2561 |
]. |
|
2562 |
||
2563 |
"/ sorting by reverse id brings newest ones to the top (a side effect) |
|
2564 |
allModules sort:[:a :b | (a id) > (b id)]. |
|
2565 |
moduleNames := allModules collect:[:entry | entry name]. |
|
2566 |
l := l , moduleNames. |
|
2567 |
handles := handles , allModules. |
|
2568 |
]. |
|
2569 |
||
2570 |
showMethods value ifTrue:[ |
|
2571 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
2572 |
methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray. |
|
2573 |
methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[ |
|
2574 |
'compiled method - removed' , ' (in ' , mH pathName , ')' |
|
2575 |
] ifFalse:[ |
|
2576 |
'compiled method ' , mH method whoString , ' (in ' , mH pathName , ')' |
|
2577 |
]. |
|
2578 |
]. |
|
2579 |
l := l , methodNames. |
|
2580 |
handles := handles , methodObjects. |
|
2581 |
]. |
|
2582 |
||
2583 |
showCObjects value ifTrue:[ |
|
2584 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
2585 |
cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray. |
|
2586 |
cObjectNames := cObjects collect:[:entry | entry pathName]. |
|
2587 |
l := l , cObjectNames. |
|
2588 |
handles := handles , cObjects. |
|
2589 |
]. |
|
2590 |
||
2591 |
showOthers value ifTrue:[ |
|
2592 |
allObjects := ObjectFileLoader loadedObjectHandles. |
|
2593 |
otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle |
|
2594 |
or:[h isMethodHandle |
|
2595 |
or:[h isClassLibHandle]]) not]) asArray. |
|
2596 |
otherObjectNames := otherObjects collect:[:entry | entry pathName]. |
|
2597 |
l := l , otherObjectNames. |
|
2598 |
handles := handles , otherObjects. |
|
2599 |
]. |
|
2600 |
||
2601 |
list1 list:l. |
|
2602 |
unloadButton disable. |
|
2603 |
]. |
|
2604 |
||
2605 |
showBuiltIn onChangeSend:#value to:moduleListUpdater. |
|
2606 |
showModules onChangeSend:#value to:moduleListUpdater. |
|
2607 |
showMethods onChangeSend:#value to:moduleListUpdater. |
|
2608 |
showCObjects onChangeSend:#value to:moduleListUpdater. |
|
2609 |
showOthers onChangeSend:#value to:moduleListUpdater. |
|
2610 |
||
2611 |
box := Dialog new. |
|
2612 |
box label:(resources string:'Module dialog'). |
|
2613 |
||
2614 |
listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
2615 |
listView1 model:list1. |
|
2616 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
2617 |
listView1 action:[:sel | |
|
2618 |
|info classNames tabs module| |
|
2619 |
||
2620 |
listView1 middleButtonMenu:nil. |
|
2621 |
||
2622 |
box withWaitCursorDo:[ |
|
2623 |
|nm fileName addr entry1 entry2 entry3 method| |
|
2624 |
||
2625 |
tabs := TabulatorSpecification unit:#inch positions:#(0 2.6). |
|
2626 |
||
2627 |
(showModules value or:[showBuiltIn value]) ifTrue:[ |
|
2628 |
info := allModules at:sel ifAbsent:nil. |
|
2629 |
]. |
|
2630 |
info isNil ifTrue:[ |
|
2631 |
"/ selected a method, cObject or unknown |
|
2632 |
||
2633 |
module := handles at:sel. |
|
2634 |
fileName := module pathName. |
|
2635 |
||
2636 |
module isMethodHandle ifTrue:[ |
|
2637 |
||
2638 |
(method := module method) isNil ifTrue:[ |
|
2639 |
nm := '** removed **'. |
|
2640 |
] ifFalse:[ |
|
2641 |
menu := PopUpMenu |
|
2642 |
labels:#('inspect' 'browse') |
|
2643 |
selectors:#(inspect browse). |
|
2644 |
menu actionAt:#inspect put:[ method inspect ]. |
|
2645 |
menu actionAt:#browse put:[ |who| |
|
2646 |
who := method who. |
|
2647 |
SystemBrowser |
|
2648 |
openInClass:(who methodClass) |
|
2649 |
selector:(who methodSelector) |
|
2650 |
]. |
|
2651 |
listView1 middleButtonMenu:menu. |
|
2652 |
||
2653 |
nm := (method whoString) asText emphasizeAllWith:(#color->Color blue). |
|
2654 |
]. |
|
2655 |
entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2656 |
entry1 colAt:1 put:'compiled method'; colAt:2 put:nm. |
|
2657 |
||
2658 |
entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2659 |
entry2 colAt:1 put:'path'; colAt:2 put:fileName. |
|
2660 |
||
2661 |
entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2662 |
entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code hexPrintString leftPaddedTo:8 with:$0)). |
|
2663 |
||
2664 |
list2 list:(Array with:entry1 with:entry2 with:entry3). |
|
2665 |
] ifFalse:[ |
|
2666 |
(module isFunctionObjectHandle |
|
2667 |
and:[module functions notEmpty]) ifTrue:[ |
|
2668 |
||
2669 |
menu := PopUpMenu |
|
2670 |
labels:#('inspect') |
|
2671 |
selectors:#(inspect). |
|
2672 |
menu actionAt:#inspect put:[ module functions inspect ]. |
|
2673 |
listView1 middleButtonMenu:menu. |
|
2674 |
||
2675 |
list2 list:((module functions select:[:f | f notNil]) |
|
2676 |
collect:[:f | |entry| |
|
2677 |
entry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2678 |
entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)). |
|
2679 |
entry colAt:2 put:('address: (16r) ' , (f code hexPrintString leftPaddedTo:8 with:$0)). |
|
2680 |
entry |
|
2681 |
]). |
|
2682 |
] ifFalse:[ |
|
2683 |
list2 list:#('nothing known about contents (no functions have been extracted)'). |
|
2684 |
] |
|
2685 |
]. |
|
2686 |
||
2687 |
unloadButton enable. |
|
2688 |
] ifFalse:[ |
|
2689 |
"/ selected a package |
|
2690 |
||
2691 |
"/ fill bottom list with class-info |
|
2692 |
||
2693 |
classNames := info classNames asSortedCollection. |
|
2694 |
classNames := classNames collect:[:cName | |
|
2695 |
|cls entry rev listEntry| |
|
2696 |
||
2697 |
listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs. |
|
2698 |
listEntry colAt:1 put:cName. |
|
2699 |
||
2700 |
cls := Smalltalk classNamed:cName. |
|
2701 |
cls isNil ifTrue:[ |
|
2702 |
listEntry colAt:2 put:'(class removed)'. |
|
2703 |
] ifFalse:[ |
|
2704 |
rev := cls binaryRevision. |
|
2705 |
rev notNil ifTrue:[ |
|
2706 |
cls isLoaded ifFalse:[ |
|
2707 |
entry := '(stub for: ' , rev. |
|
2708 |
] ifTrue:[ |
|
2709 |
entry :='(bin: ' , rev. |
|
2710 |
]. |
|
2711 |
cls revision ~= rev ifTrue:[ |
|
2712 |
entry := entry , ' / src: ' , cls revision |
|
2713 |
]. |
|
2714 |
listEntry colAt:2 put:entry , ')' |
|
2715 |
] ifFalse:[ |
|
2716 |
cls revision notNil ifTrue:[ |
|
2717 |
listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' |
|
2718 |
] |
|
2719 |
] |
|
2720 |
]. |
|
2721 |
listEntry |
|
2722 |
]. |
|
2723 |
list2 list:classNames. |
|
2724 |
info dynamic ifTrue:[ |
|
2725 |
unloadButton enable. |
|
2726 |
] ifFalse:[ |
|
2727 |
unloadButton disable. |
|
2728 |
]. |
|
2729 |
] |
|
2730 |
] |
|
2731 |
]. |
|
2732 |
||
2733 |
||
2734 |
panel := HorizontalPanelView new. |
|
2735 |
||
2736 |
panel add:(l := Label label:'show:'). |
|
2737 |
l adjust:#left; borderWidth:0. |
|
2738 |
panel add:(check := CheckBox label:'builtin' model:showBuiltIn). |
|
2739 |
box makeTabable:check. |
|
2740 |
panel add:(check := CheckBox label:'classLibs' model:showModules). |
|
2741 |
canDoIt ifFalse:[ |
|
2742 |
check disable |
|
2743 |
] ifTrue:[ |
|
2744 |
box makeTabable:check. |
|
2745 |
]. |
|
2746 |
panel add:(check := CheckBox label:'methods' model:showMethods). |
|
2747 |
canDoIt ifFalse:[ |
|
2748 |
check disable |
|
2749 |
] ifTrue:[ |
|
2750 |
box makeTabable:check. |
|
2751 |
]. |
|
2752 |
panel add:(check := CheckBox label:'c-objects' model:showCObjects). |
|
2753 |
canDoIt ifFalse:[ |
|
2754 |
check disable |
|
2755 |
] ifTrue:[ |
|
2756 |
box makeTabable:check. |
|
2757 |
]. |
|
2758 |
panel add:(check := CheckBox label:'others' model:showOthers). |
|
2759 |
canDoIt ifFalse:[ |
|
2760 |
check disable |
|
2761 |
] ifTrue:[ |
|
2762 |
box makeTabable:check. |
|
2763 |
]. |
|
2764 |
||
2765 |
panel horizontalLayout:#fitSpace. |
|
2766 |
"/ panel horizontalLayout:#leftSpace. |
|
2767 |
||
2768 |
box addComponent:panel tabable:false. |
|
2769 |
||
2770 |
box addVerticalSpace. |
|
2771 |
box addComponent:listView1 tabable:true. |
|
2772 |
listView1 topInset:(View viewSpacing + panel preferredExtent y). |
|
2773 |
listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2. |
|
2774 |
||
2775 |
l := box addTextLabel:(resources string:'contained classes/subsets:'). |
|
2776 |
l adjust:#left; borderWidth:0. |
|
2777 |
l origin:0.0@0.4 corner:1.0@0.4. |
|
2778 |
l topInset:(View viewSpacing). |
|
2779 |
l bottomInset:((l preferredExtent y) negated - View viewSpacing). |
|
2780 |
||
2781 |
listView2 := HVScrollableView for:SelectionInListView miniScrollerH:true. |
|
2782 |
listView2 model:list2; printItems:false. |
|
2783 |
box addComponent:listView2 tabable:true. |
|
2784 |
listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2. |
|
2785 |
listView2 disable. |
|
2786 |
||
2787 |
unloadButton := Button label:(resources string:'unload'). |
|
2788 |
unloadButton action:[ |
|
2789 |
self withWaitCursorDo:[ |
|
2790 |
box withWaitCursorDo:[ |
|
2791 |
|info idx pathName| |
|
2792 |
||
2793 |
idx := list1 selectionIndex. |
|
2794 |
info := allModules at:idx ifAbsent:nil. |
|
2795 |
||
2796 |
list1 selectionIndex:nil. |
|
2797 |
||
2798 |
info isNil ifTrue:[ |
|
2799 |
"/ selected a method |
|
2800 |
"/ idx := idx - allModules size. |
|
2801 |
pathName := (handles at:idx) pathName. |
|
2802 |
||
2803 |
] ifFalse:[ |
|
2804 |
"/ selected a package |
|
2805 |
pathName := info pathName. |
|
2806 |
]. |
|
2807 |
ObjectFileLoader unloadObjectFile:pathName. |
|
2808 |
moduleListUpdater value. |
|
2809 |
unloadButton disable. |
|
2810 |
] |
|
2811 |
] |
|
2812 |
]. |
|
2813 |
moduleListUpdater value. |
|
2814 |
||
2815 |
box addButton:unloadButton. |
|
2816 |
box addAbortButtonLabelled:(resources string:'dismiss'). |
|
2817 |
||
2818 |
y := box yPosition. |
|
2819 |
listView2 topInset:(l preferredExtent y + 5). |
|
2820 |
listView2 bottomInset:(box preferredExtent y - y). |
|
2821 |
||
2822 |
"/ box width:(400 min:(box device width * 2 // 3)); |
|
2823 |
"/ height:(450 min:(box device height - 50)); |
|
2824 |
"/ sizeFixed:true. |
|
2825 |
box open. |
|
2826 |
||
2827 |
box destroy. |
|
2828 |
||
2829 |
"Modified: 17.9.1995 / 16:47:50 / claus" |
|
2830 |
"Modified: 18.10.1997 / 03:43:39 / cg" |
|
2831 |
! |
|
2832 |
||
2833 |
saveImage |
|
2834 |
"save image" |
|
2835 |
||
2836 |
self showCursor:Cursor write. |
|
2837 |
[ |
|
2838 |
(ObjectMemory snapShotOn:ObjectMemory nameForSnapshot) ifFalse:[ |
|
2839 |
self warn:(resources string:'Failed to save snapshot image (disk full or not writable)'). |
|
2840 |
] |
|
2841 |
] valueNowOrOnUnwindDo:[ |
|
2842 |
self restoreCursors. |
|
2843 |
]. |
|
2844 |
||
2845 |
! |
|
2846 |
||
2847 |
saveImageAs |
|
2848 |
"save image, after asking for a file name" |
|
2849 |
||
2850 |
self saveImageAs: ( |
|
2851 |
FileSelectionBrowser |
|
2852 |
request: 'Save Image As' |
|
2853 |
fileName: ObjectMemory nameForSnapshot |
|
2854 |
inDirectory: Filename currentDirectory name |
|
2855 |
withFileFilters: #('*.img')) |
|
2856 |
||
2857 |
! |
|
2858 |
||
2859 |
saveImageAs: aFileName |
|
2860 |
||
2861 |
aFileName notNil ifTrue:[ |
|
2862 |
self showCursor:Cursor write. |
|
2863 |
[ |
|
2864 |
(ObjectMemory snapShotOn:aFileName) ifFalse:[ |
|
2865 |
self warn:(resources string:'Failed to save snapshot image (disk full or not writable)'). |
|
2866 |
] |
|
2867 |
] valueNowOrOnUnwindDo:[ |
|
2868 |
self restoreCursors. |
|
2869 |
]. |
|
2870 |
]. |
|
2871 |
! ! |
|
2872 |
||
1544 | 2873 |
!NewLauncher methodsFor:'user actions - help'! |
1406 | 2874 |
|
1429 | 2875 |
activeHelp |
2876 |
||
2877 |
^helpIsOn ? (helpIsOn := false) |
|
2878 |
! |
|
2879 |
||
1411 | 2880 |
showBookPrintDocument |
2881 |
"open an HTML browser on the 'book'-printing document" |
|
2882 |
||
2883 |
self showDocumentation:'BOOK.html' |
|
2884 |
! |
|
2885 |
||
2886 |
startClassDocumentation |
|
2887 |
"open an HTML browser on the 'classDoc/TOP' document" |
|
2888 |
||
2889 |
self showDocumentation:'classDoc/TOP.html' |
|
2890 |
||
2891 |
! |
|
2892 |
||
2893 |
startDocumentationIndex |
|
2894 |
"open an HTML browser on the 'index' document" |
|
2895 |
||
2896 |
self showDocumentation:'index.html' |
|
2897 |
! |
|
2898 |
||
1406 | 2899 |
startDocumentationTool |
2900 |
"open an HTML browser on the 'TOP' document" |
|
2901 |
||
2902 |
self showDocumentation:'TOP.html' |
|
2903 |
||
1411 | 2904 |
! |
2905 |
||
2906 |
startWhatsNewDocumentation |
|
2907 |
"open an HTML browser on the 'whatsNew.html' document" |
|
2908 |
||
2909 |
self showDocumentation:'whatsNew.html' |
|
2910 |
||
2911 |
! |
|
2912 |
||
2913 |
toggleActiveHelp:aBoolean |
|
2914 |
"turn on/off active help" |
|
2915 |
||
1429 | 2916 |
ActiveHelp notNil ifTrue:[ |
2917 |
helpIsOn := aBoolean. |
|
2918 |
helpIsOn ifTrue:[ |
|
2919 |
ActiveHelp start |
|
2920 |
] ifFalse:[ |
|
2921 |
ActiveHelp stop |
|
2922 |
] |
|
2923 |
]. |
|
1411 | 2924 |
|
1406 | 2925 |
! ! |
2926 |
||
1544 | 2927 |
!NewLauncher methodsFor:'user actions - settings'! |
1406 | 2928 |
|
2929 |
compilerSettings |
|
2930 |
"open a dialog on compiler related settings" |
|
2931 |
||
2932 |
|box warnings warnSTX warnUnderscore warnDollar warnOldStyle |
|
2933 |
allowDollar allowUnderscore immutableArrays |
|
2934 |
warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox |
|
2935 |
warnCompatibility warnCompatibilityBox warnDollarBox |
|
2936 |
stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions |
|
2937 |
stcLibraries stcLibraryPath cc ccOptions historyLines fullHistoryUpdate catchRedefs keepSourceOptions keepSource |
|
2938 |
constantFoldingOptions constantFolding justInTimeCompilation |
|
2939 |
warnEnabler check component oldIndent t supportsJustInTimeCompilation y |
|
2940 |
y2 fullDebugSupport yMax |
|
2941 |
compileLazy loadBinaries canLoadBinaries| |
|
2942 |
||
2943 |
canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]. |
|
2944 |
loadBinaries := Smalltalk loadBinaries asValue. |
|
2945 |
compileLazy := Autoload compileLazy asValue. |
|
2946 |
||
2947 |
||
2948 |
warnings := Compiler warnings asValue. |
|
2949 |
||
2950 |
warnSTX := Compiler warnSTXSpecials asValue. |
|
2951 |
warnUnderscore := Compiler warnUnderscoreInIdentifier asValue. |
|
2952 |
warnDollar := Compiler warnDollarInIdentifier asValue. |
|
2953 |
warnOldStyle := Compiler warnOldStyleAssignment asValue. |
|
2954 |
warnCommonMistakes := Compiler warnCommonMistakes asValue. |
|
2955 |
warnCompatibility := Compiler warnPossibleIncompatibilities asValue. |
|
2956 |
allowUnderscore := Compiler allowUnderscoreInIdentifier asValue. |
|
2957 |
allowDollar := Compiler allowDollarInIdentifier asValue. |
|
2958 |
immutableArrays := Compiler arraysAreImmutable asValue. |
|
2959 |
||
2960 |
constantFoldingOptions := #( nil #level1 #level2 #full ). |
|
2961 |
constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')). |
|
2962 |
constantFolding selectionIndex:3. |
|
2963 |
||
2964 |
stcCompilationOptions := #( always default never). |
|
2965 |
stcCompilation := SelectionInList new |
|
2966 |
list:(resources array:#('always' |
|
2967 |
'primitive code only' |
|
2968 |
'never' |
|
2969 |
)). |
|
2970 |
stcCompilation selectionIndex:2. |
|
2971 |
(supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation) |
|
2972 |
ifTrue:[ |
|
2973 |
justInTimeCompilation := ObjectMemory justInTimeCompilation:nil. |
|
2974 |
fullDebugSupport := ObjectMemory fullSingleStepSupport:nil. |
|
2975 |
] ifFalse:[ |
|
2976 |
justInTimeCompilation := false. |
|
2977 |
fullDebugSupport := (Compiler lineNumberInfo == #full) asValue. |
|
2978 |
]. |
|
2979 |
justInTimeCompilation := justInTimeCompilation asValue. |
|
2980 |
fullDebugSupport := fullDebugSupport asValue. |
|
2981 |
||
2982 |
stcIncludes := Compiler stcCompilationIncludes asValue. |
|
2983 |
stcDefines := Compiler stcCompilationDefines asValue. |
|
2984 |
stcOptions := Compiler stcCompilationOptions asValue. |
|
2985 |
ccOptions := Compiler ccCompilationOptions asValue. |
|
2986 |
cc := Compiler ccPath asValue. |
|
2987 |
||
2988 |
ObjectFileLoader notNil ifTrue:[ |
|
2989 |
(t := ObjectFileLoader searchedLibraries) notNil ifTrue:[ |
|
2990 |
stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue. |
|
2991 |
]. |
|
2992 |
(t := ObjectFileLoader libPath) notNil ifTrue:[ |
|
2993 |
stcLibraryPath := t asValue. |
|
2994 |
] |
|
2995 |
]. |
|
2996 |
||
2997 |
catchRedefs := Class catchMethodRedefinitions asValue. |
|
2998 |
historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]]. |
|
2999 |
historyLines ifFalse:[ |
|
3000 |
fullHistoryUpdate := false |
|
3001 |
] ifTrue:[ |
|
3002 |
fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue. |
|
3003 |
]. |
|
3004 |
historyLines := historyLines asValue. |
|
3005 |
||
3006 |
keepSourceOptions := #( keep reference absReference sourceReference discard ). |
|
3007 |
keepSource := SelectionInList new list:(resources array:#('keep as string' 'reference to filename' 'reference to full path' 'append and ref in `st.src''' 'discard' )). |
|
3008 |
keepSource selectionIndex:1. |
|
3009 |
||
3010 |
warnEnabler := [ |
|
3011 |
warnings value ifTrue:[ |
|
3012 |
warnSTXBox enable. |
|
3013 |
warnOldStyleBox enable. |
|
3014 |
warnCommonMistakesBox enable. |
|
3015 |
warnCompatibilityBox enable. |
|
3016 |
allowUnderscore value ifTrue:[ |
|
3017 |
warnUnderscoreBox enable. |
|
3018 |
] ifFalse:[ |
|
3019 |
warnUnderscoreBox disable. |
|
3020 |
]. |
|
3021 |
allowDollar value ifTrue:[ |
|
3022 |
warnDollarBox enable. |
|
3023 |
] ifFalse:[ |
|
3024 |
warnDollarBox disable. |
|
3025 |
]. |
|
3026 |
] ifFalse:[ |
|
3027 |
warnSTXBox disable. |
|
3028 |
warnUnderscoreBox disable. |
|
3029 |
warnDollarBox disable. |
|
3030 |
warnOldStyleBox disable. |
|
3031 |
warnCommonMistakesBox disable. |
|
3032 |
warnCompatibilityBox disable. |
|
3033 |
]]. |
|
3034 |
||
3035 |
warnings onChangeSend:#value to:warnEnabler. |
|
3036 |
allowUnderscore onChangeSend:#value to:warnEnabler. |
|
3037 |
allowDollar onChangeSend:#value to:warnEnabler. |
|
3038 |
||
3039 |
box := DialogBox new. |
|
3040 |
box label:(resources string:'Compiler settings'). |
|
3041 |
||
3042 |
box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs. |
|
3043 |
y := box yPosition. |
|
3044 |
check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines. |
|
3045 |
HistoryManager isNil ifTrue:[check disable]. |
|
3046 |
box yPosition:y. |
|
3047 |
check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate. |
|
3048 |
check left:0.5. |
|
3049 |
HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines]. |
|
3050 |
||
3051 |
box addPopUpList:(resources string:'fileIn source mode:') on:keepSource. |
|
3052 |
keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1). |
|
3053 |
||
3054 |
box addHorizontalLine. |
|
3055 |
||
3056 |
box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy. |
|
3057 |
check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries. |
|
3058 |
canLoadBinaries ifFalse:[ |
|
3059 |
loadBinaries value:false. |
|
3060 |
check disable |
|
3061 |
]. |
|
3062 |
supportsJustInTimeCompilation ifTrue:[ |
|
3063 |
component := box |
|
3064 |
addCheckBox:(resources string:'just in time compilation to machine code') |
|
3065 |
on:justInTimeCompilation. |
|
3066 |
]. |
|
3067 |
||
3068 |
box addHorizontalLine. |
|
3069 |
||
3070 |
ObjectFileLoader notNil ifTrue:[ |
|
3071 |
compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation. |
|
3072 |
stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2). |
|
3073 |
||
3074 |
component := box |
|
3075 |
addLabelledInputField:(resources string:'include directories:') |
|
3076 |
adjust:#right |
|
3077 |
on:stcIncludes |
|
3078 |
tabable:true |
|
3079 |
separateAtX:0.3. |
|
3080 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3081 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3082 |
canLoadBinaries ifFalse:[component disable]. |
|
3083 |
||
3084 |
"/ box addVerticalSpace. |
|
3085 |
||
3086 |
component := box |
|
3087 |
addLabelledInputField:(resources string:'defines:') |
|
3088 |
adjust:#right |
|
3089 |
on:stcDefines |
|
3090 |
tabable:true |
|
3091 |
separateAtX:0.3. |
|
3092 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3093 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3094 |
canLoadBinaries ifFalse:[component disable]. |
|
3095 |
||
3096 |
"/ box addVerticalSpace. |
|
3097 |
||
3098 |
component := box |
|
3099 |
addLabelledInputField:(resources string:'stc options:') |
|
3100 |
adjust:#right |
|
3101 |
on:stcOptions |
|
3102 |
tabable:true |
|
3103 |
separateAtX:0.3. |
|
3104 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3105 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3106 |
canLoadBinaries ifFalse:[component disable]. |
|
3107 |
||
3108 |
"/ box addVerticalSpace. |
|
3109 |
||
3110 |
component := box |
|
3111 |
addLabelledInputField:(resources string:'cc command:') |
|
3112 |
adjust:#right |
|
3113 |
on:cc |
|
3114 |
tabable:true |
|
3115 |
separateAtX:0.3. |
|
3116 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3117 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3118 |
canLoadBinaries ifFalse:[component disable]. |
|
3119 |
||
3120 |
component := box |
|
3121 |
addLabelledInputField:(resources string:'cc options:') |
|
3122 |
adjust:#right |
|
3123 |
on:ccOptions |
|
3124 |
tabable:true |
|
3125 |
separateAtX:0.3. |
|
3126 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3127 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3128 |
canLoadBinaries ifFalse:[component disable]. |
|
3129 |
||
3130 |
stcLibraries notNil ifTrue:[ |
|
3131 |
"/ box addVerticalSpace. |
|
3132 |
||
3133 |
component := box |
|
3134 |
addLabelledInputField:(resources string:'C-libraries:') |
|
3135 |
adjust:#right |
|
3136 |
on:stcLibraries |
|
3137 |
tabable:true |
|
3138 |
separateAtX:0.3. |
|
3139 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3140 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3141 |
canLoadBinaries ifFalse:[component disable]. |
|
3142 |
]. |
|
3143 |
||
3144 |
stcLibraryPath notNil ifTrue:[ |
|
3145 |
"/ box addVerticalSpace. |
|
3146 |
||
3147 |
component := box |
|
3148 |
addLabelledInputField:(resources string:'stc libPath:') |
|
3149 |
adjust:#right |
|
3150 |
on:stcLibraryPath |
|
3151 |
tabable:true |
|
3152 |
separateAtX:0.3. |
|
3153 |
component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
3154 |
component preferredExtent:(250 @ component preferredExtent y). |
|
3155 |
canLoadBinaries ifFalse:[component disable]. |
|
3156 |
]. |
|
3157 |
||
3158 |
"/ box addVerticalSpace. |
|
3159 |
box addHorizontalLine. |
|
3160 |
||
3161 |
"/ if there is no compiler around, |
|
3162 |
"/ change to compile nothing, and disable the checkBoxes |
|
3163 |
Compiler canCreateMachineCode ifFalse:[ |
|
3164 |
stcCompilation selectionIndex:3. |
|
3165 |
compilationList disable. |
|
3166 |
]. |
|
3167 |
]. |
|
3168 |
||
3169 |
y := box yPosition. |
|
3170 |
||
3171 |
component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore. |
|
3172 |
component width:0.4. |
|
3173 |
||
3174 |
component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar. |
|
3175 |
component width:0.4. |
|
3176 |
||
3177 |
component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays. |
|
3178 |
component width:0.4. |
|
3179 |
y2 := box yPosition. |
|
3180 |
||
3181 |
box yPosition:y. |
|
3182 |
box leftIndent:0. |
|
3183 |
||
3184 |
component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding. |
|
3185 |
component superView left:0.5; width:0.5. |
|
3186 |
constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1). |
|
3187 |
||
3188 |
component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport. |
|
3189 |
component left:0.5; width:0.4. |
|
3190 |
box yPosition:(box yPosition max:y2). |
|
3191 |
||
3192 |
||
3193 |
box addHorizontalLine. |
|
3194 |
||
3195 |
box addCheckBox:(resources string:'warnings') on:warnings. |
|
3196 |
"/ box addVerticalSpace. |
|
3197 |
oldIndent := box leftIndent. |
|
3198 |
box leftIndent:30. |
|
3199 |
||
3200 |
y := box yPosition. |
|
3201 |
||
3202 |
warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX. |
|
3203 |
warnSTXBox width:0.4. |
|
3204 |
||
3205 |
warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore. |
|
3206 |
warnUnderscoreBox width:0.4. |
|
3207 |
||
3208 |
warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar. |
|
3209 |
warnDollarBox width:0.4. |
|
3210 |
||
3211 |
yMax := box yPosition. |
|
3212 |
||
3213 |
box yPosition:y. |
|
3214 |
box leftIndent:0. |
|
3215 |
warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle. |
|
3216 |
warnOldStyleBox left:0.5; width:0.4. |
|
3217 |
||
3218 |
warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes. |
|
3219 |
warnCommonMistakesBox left:0.5; width:0.4. |
|
3220 |
||
3221 |
warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility. |
|
3222 |
warnCompatibilityBox left:0.5; width:0.4. |
|
3223 |
||
3224 |
box leftIndent:oldIndent. |
|
3225 |
box yPosition:(yMax max: box yPosition). |
|
3226 |
||
3227 |
box |
|
3228 |
addHelpButtonFor:'Launcher/compilerSettings.html'; |
|
3229 |
addAbortButton; |
|
3230 |
addOkButton. |
|
3231 |
||
3232 |
warnEnabler value. |
|
3233 |
box open. |
|
3234 |
||
3235 |
box accepted ifTrue:[ |
|
3236 |
HistoryManager notNil ifTrue:[ |
|
3237 |
HistoryManager fullHistoryUpdate:fullHistoryUpdate value. |
|
3238 |
historyLines value ifTrue:[ |
|
3239 |
HistoryManager activate |
|
3240 |
] ifFalse:[ |
|
3241 |
HistoryManager deactivate |
|
3242 |
]. |
|
3243 |
]. |
|
3244 |
Class catchMethodRedefinitions:catchRedefs value. |
|
3245 |
ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex). |
|
3246 |
Compiler warnings:warnings value. |
|
3247 |
Compiler warnSTXSpecials:warnSTX value. |
|
3248 |
Compiler warnOldStyleAssignment:warnOldStyle value. |
|
3249 |
Compiler warnUnderscoreInIdentifier:warnUnderscore value. |
|
3250 |
Compiler warnDollarInIdentifier:warnDollar value. |
|
3251 |
Compiler warnCommonMistakes:warnCommonMistakes value. |
|
3252 |
Compiler warnPossibleIncompatibilities:warnCompatibility value. |
|
3253 |
Compiler allowUnderscoreInIdentifier:allowUnderscore value. |
|
3254 |
Compiler allowDollarInIdentifier:allowDollar value. |
|
3255 |
Compiler arraysAreImmutable:immutableArrays value. |
|
3256 |
fullDebugSupport value ifTrue:[ |
|
3257 |
Compiler lineNumberInfo:#full. |
|
3258 |
] ifFalse:[ |
|
3259 |
Compiler lineNumberInfo:true |
|
3260 |
]. |
|
3261 |
||
3262 |
Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex). |
|
3263 |
Compiler stcCompilationIncludes:stcIncludes value. |
|
3264 |
Compiler stcCompilationDefines:stcDefines value. |
|
3265 |
Compiler stcCompilationOptions:stcOptions value. |
|
3266 |
Compiler ccCompilationOptions:ccOptions value. |
|
3267 |
Compiler ccPath:cc value. |
|
3268 |
Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex). |
|
3269 |
||
3270 |
supportsJustInTimeCompilation ifTrue:[ |
|
3271 |
justInTimeCompilation value ifTrue:[ |
|
3272 |
Method allInstancesDo:[:m | m checked:false]. |
|
3273 |
]. |
|
3274 |
ObjectMemory justInTimeCompilation:justInTimeCompilation value. |
|
3275 |
ObjectMemory fullSingleStepSupport:fullDebugSupport value. |
|
3276 |
]. |
|
3277 |
ObjectFileLoader notNil ifTrue:[ |
|
3278 |
stcLibraries notNil ifTrue:[ |
|
3279 |
ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords). |
|
3280 |
]. |
|
3281 |
stcLibraryPath notNil ifTrue:[ |
|
3282 |
ObjectFileLoader libPath:(stcLibraryPath value). |
|
3283 |
] |
|
3284 |
]. |
|
3285 |
Autoload compileLazy:compileLazy value. |
|
3286 |
Smalltalk loadBinaries:loadBinaries value. |
|
3287 |
]. |
|
3288 |
box destroy |
|
3289 |
||
3290 |
! |
|
3291 |
||
3292 |
displaySettings |
|
3293 |
"open a dialog on display related settings" |
|
3294 |
||
3295 |
|box listOfSizes sizeInfos |
|
3296 |
sizes sizeNames sizeList sizeX sizeY deepIcons |
|
3297 |
isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList |
|
3298 |
y component screen visual clipEncodings clipEncodingSyms clipEncodingList| |
|
3299 |
||
3300 |
listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default. |
|
3301 |
listOfSizes == #default ifTrue:[ |
|
3302 |
"/ nothing in resource file; offer at least some. |
|
3303 |
sizeInfos := #( |
|
3304 |
( '11.3'' (235mm x 175mm) LCD' (235 175) ) |
|
3305 |
( '17'' (325mm x 245mm)' (325 245) ) |
|
3306 |
( '19'' (340mm x 270mm)' (340 270) ) |
|
3307 |
( '20'' (350mm x 280mm)' (350 280) ) |
|
3308 |
( '21'' (365mm x 285mm)' (365 285) ) |
|
3309 |
). |
|
3310 |
] ifFalse:[ |
|
3311 |
sizeInfos := resources array:listOfSizes. |
|
3312 |
]. |
|
3313 |
sizeNames := sizeInfos collect:[:entry | entry at:1]. |
|
3314 |
sizes := sizeInfos collect:[:entry | entry at:2]. |
|
3315 |
||
3316 |
screen := Screen current. |
|
3317 |
visual := screen visualType. |
|
3318 |
||
3319 |
isColorMonitor := screen hasColors asValue. |
|
3320 |
deepIcons := screen supportsDeepIcons asValue. |
|
3321 |
useFixPalette := screen fixColors notNil asValue. |
|
3322 |
useFixGrayPalette := screen fixGrayColors notNil asValue. |
|
3323 |
||
3324 |
sizeList := SelectionInList with:sizeNames. |
|
3325 |
sizeX := screen widthInMillimeter asValue. |
|
3326 |
sizeY := screen heightInMillimeter asValue. |
|
3327 |
||
3328 |
clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5). |
|
3329 |
clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5'). |
|
3330 |
clipEncodingList := SelectionInList new. |
|
3331 |
clipEncodingList list:clipEncodings. |
|
3332 |
clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1). |
|
3333 |
||
3334 |
ditherList := SelectionInList new. |
|
3335 |
||
3336 |
(visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[ |
|
3337 |
ditherStyles := #('threshold' 'ordered dither' 'error diffusion'). |
|
3338 |
ditherSyms := #(threshold ordered floydSteinberg). |
|
3339 |
] ifFalse:[ |
|
3340 |
visual ~~ #TrueColor ifTrue:[ |
|
3341 |
ditherStyles := #('nearest color' 'error diffusion'). |
|
3342 |
ditherSyms := #(ordered floydSteinberg). |
|
3343 |
] |
|
3344 |
]. |
|
3345 |
ditherSyms notNil ifTrue:[ |
|
3346 |
ditherList list:ditherStyles. |
|
3347 |
ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold). |
|
3348 |
]. |
|
3349 |
||
3350 |
box := DialogBox new. |
|
3351 |
box label:(resources string:'Display screen settings'). |
|
3352 |
||
3353 |
(box addTextLabel:(resources string:'Actual visible screen area:')) |
|
3354 |
adjust:#left. |
|
3355 |
||
3356 |
(box addPopUpList:(resources string:'common sizes:') on:sizeList) |
|
3357 |
label:'monitor size'. |
|
3358 |
||
3359 |
idx := sizes findFirst:[:entry | |
|
3360 |
((entry at:1) = sizeX value) |
|
3361 |
and:[((entry at:2) = sizeY value)] |
|
3362 |
]. |
|
3363 |
idx ~~ 0 ifTrue:[ |
|
3364 |
sizeList selectionIndex:idx |
|
3365 |
]. |
|
3366 |
||
3367 |
sizeList onChangeSend:#value to:[ |
|
3368 |
|idx| |
|
3369 |
||
3370 |
idx := sizeList selectionIndex. |
|
3371 |
sizeX value:((sizes at:idx) at:1). |
|
3372 |
sizeY value:((sizes at:idx) at:2). |
|
3373 |
]. |
|
3374 |
||
3375 |
y := box yPosition. |
|
3376 |
component := box addTextLabel:(resources string:'screen size:'). |
|
3377 |
component width:0.3; adjust:#right; borderWidth:0. |
|
3378 |
||
3379 |
box yPosition:y. |
|
3380 |
component := box addInputFieldOn:nil tabable:true. |
|
3381 |
component width:0.25; left:0.3; |
|
3382 |
immediateAccept:false; acceptOnLeave:false; |
|
3383 |
cursorMovementWhenUpdating:#beginOfLine; |
|
3384 |
converter:(PrintConverter new initForInteger); |
|
3385 |
model:sizeX. |
|
3386 |
||
3387 |
box yPosition:y. |
|
3388 |
component := box addTextLabel:(' x '). |
|
3389 |
component width:0.1; left:0.55; adjust:#center; borderWidth:0. |
|
3390 |
||
3391 |
box yPosition:y. |
|
3392 |
component := box addInputFieldOn:nil tabable:true. |
|
3393 |
component width:0.25; left:0.65; |
|
3394 |
immediateAccept:false; acceptOnLeave:false; |
|
3395 |
cursorMovementWhenUpdating:#beginOfLine; |
|
3396 |
converter:(PrintConverter new initForInteger); |
|
3397 |
model:sizeY. |
|
3398 |
||
3399 |
box yPosition:y. |
|
3400 |
component := box addTextLabel:('(mm)'). |
|
3401 |
component width:0.1; left:0.9; adjust:#center; borderWidth:0. |
|
3402 |
||
3403 |
box addVerticalSpace. |
|
3404 |
box addHorizontalLine. |
|
3405 |
box addVerticalSpace. |
|
3406 |
||
3407 |
(box addTextLabel:(resources string:'Screen: depth: %1 visual: %2 (%3)' |
|
3408 |
with:Screen current depth printString |
|
3409 |
with:Screen current visualType |
|
3410 |
with:Screen current serverVendor)) |
|
3411 |
adjust:#left. |
|
3412 |
||
3413 |
box addVerticalSpace. |
|
3414 |
box addHorizontalLine. |
|
3415 |
box addVerticalSpace. |
|
3416 |
||
3417 |
box addCheckBox:(resources string:'color monitor') on:isColorMonitor. |
|
3418 |
||
3419 |
visual == #PseudoColor ifTrue:[ |
|
3420 |
box addVerticalSpace. |
|
3421 |
component := box addCheckBox:(resources string:'use fix color palette %1' with:'(4x8x4)') on:useFixPalette. |
|
3422 |
||
3423 |
box addVerticalSpace. |
|
3424 |
component := box addCheckBox:(resources string:'use fix gray color palette %1' with:'(32)') on:useFixGrayPalette. |
|
3425 |
]. |
|
3426 |
||
3427 |
ditherSyms notNil ifTrue:[ |
|
3428 |
box addVerticalSpace. |
|
3429 |
component := box addPopUpList:(resources string:'image display:') on:ditherList. |
|
3430 |
component defaultLabel:'image display'. |
|
3431 |
component superView horizontalLayout:#leftSpace. |
|
3432 |
]. |
|
3433 |
||
3434 |
box addVerticalSpace. |
|
3435 |
box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons. |
|
3436 |
||
3437 |
box addVerticalSpace. |
|
3438 |
box addHorizontalLine. |
|
3439 |
box addVerticalSpace. |
|
3440 |
||
3441 |
component := box addPopUpList:(resources string:'clipBoard encoding:') on:clipEncodingList. |
|
3442 |
component superView horizontalLayout:#leftSpace. |
|
3443 |
||
3444 |
box |
|
3445 |
addHelpButtonFor:'Launcher/screenSettings.html'; |
|
3446 |
addAbortButton; addOkButton. |
|
3447 |
box open. |
|
3448 |
||
3449 |
box accepted ifTrue:[ |
|
3450 |
Image flushDeviceImages. |
|
3451 |
||
3452 |
screen visualType == #PseudoColor ifTrue:[ |
|
3453 |
useFixPalette value ifTrue:[ |
|
3454 |
Color colorAllocationFailSignal handle:[:ex | |
|
3455 |
self warn:(resources string:'Could not allocate colors.'). |
|
3456 |
] do:[ |
|
3457 |
Color getColorsRed:4 green:8 blue:4 on:screen |
|
3458 |
] |
|
3459 |
] ifFalse:[ |
|
3460 |
screen releaseFixColors |
|
3461 |
]. |
|
3462 |
||
3463 |
useFixGrayPalette value ifTrue:[ |
|
3464 |
Color colorAllocationFailSignal handle:[:ex | |
|
3465 |
self warn:(resources string:'Could not allocate colors.'). |
|
3466 |
] do:[ |
|
3467 |
Color getGrayColors:32 on:screen |
|
3468 |
] |
|
3469 |
] ifFalse:[ |
|
3470 |
screen releaseFixGrayColors |
|
3471 |
] |
|
3472 |
]. |
|
3473 |
screen hasColors:isColorMonitor value. |
|
3474 |
screen widthInMillimeter:sizeX value. |
|
3475 |
screen heightInMillimeter:sizeY value. |
|
3476 |
||
3477 |
screen supportsDeepIcons:deepIcons value. |
|
3478 |
ditherSyms notNil ifTrue:[ |
|
3479 |
Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex). |
|
3480 |
]. |
|
3481 |
||
3482 |
self withWaitCursorDo:[ |
|
3483 |
View defaultStyle:(View defaultStyle). |
|
3484 |
]. |
|
3485 |
||
3486 |
screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex). |
|
3487 |
]. |
|
3488 |
box destroy |
|
3489 |
||
3490 |
! |
|
3491 |
||
3492 |
fontSettings |
|
3493 |
"open a dialog on font related settings" |
|
3494 |
||
3495 |
(self fontBoxForEncoding:nil) ifTrue:[self reOpen] |
|
3496 |
||
3497 |
! |
|
3498 |
||
3499 |
keyboardSetting |
|
3500 |
"open a dialog on keyboard related settings" |
|
3501 |
||
3502 |
|mappings listOfRawKeys listOfFunctions |
|
3503 |
box l |
|
3504 |
list1 list2 listView1 listView2 |
|
3505 |
frame selectionForwarder macroForwarder macroTextView y| |
|
3506 |
||
3507 |
mappings := Screen current keyboardMap. |
|
3508 |
||
3509 |
listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort. |
|
3510 |
listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort. |
|
3511 |
||
3512 |
selectionForwarder := Plug new. |
|
3513 |
selectionForwarder respondTo:#showFunction |
|
3514 |
with:[ |
|
3515 |
|raw| |
|
3516 |
raw := list1 selection. |
|
3517 |
list2 retractInterestsFor:selectionForwarder. |
|
3518 |
list2 selection:(mappings at:raw asSymbol) asString. |
|
3519 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
3520 |
]. |
|
3521 |
selectionForwarder respondTo:#showRawKey |
|
3522 |
with:[ |
|
3523 |
|f raw| |
|
3524 |
||
3525 |
f := list2 selection. |
|
3526 |
list1 retractInterestsFor:selectionForwarder. |
|
3527 |
raw := mappings keyAtValue:f asString. |
|
3528 |
raw isNil ifTrue:[ |
|
3529 |
raw := mappings keyAtValue:f first. |
|
3530 |
raw isNil ifTrue:[ |
|
3531 |
raw := mappings keyAtValue:f asSymbol. |
|
3532 |
] |
|
3533 |
]. |
|
3534 |
list1 selection:raw. |
|
3535 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
3536 |
]. |
|
3537 |
||
3538 |
macroForwarder := [ |
|
3539 |
|f macro indent| |
|
3540 |
f := list2 selection. |
|
3541 |
(f startsWith:'Cmd') ifTrue:[ |
|
3542 |
f := f copyFrom:4 |
|
3543 |
]. |
|
3544 |
macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil. |
|
3545 |
macro notNil ifTrue:[ |
|
3546 |
macro := macro asStringCollection. |
|
3547 |
indent := macro |
|
3548 |
inject:99999 into:[:min :element | |
|
3549 |
|stripped| |
|
3550 |
||
3551 |
stripped := element withoutLeadingSeparators. |
|
3552 |
stripped size == 0 ifTrue:[ |
|
3553 |
min |
|
3554 |
] ifFalse:[ |
|
3555 |
min min:(element size - stripped size) |
|
3556 |
] |
|
3557 |
]. |
|
3558 |
indent ~~ 0 ifTrue:[ |
|
3559 |
macro := macro collect:[:line | |
|
3560 |
line size > indent ifTrue:[ |
|
3561 |
line copyFrom:indent+1 |
|
3562 |
] ifFalse:[ |
|
3563 |
line |
|
3564 |
]. |
|
3565 |
] |
|
3566 |
]. |
|
3567 |
]. |
|
3568 |
macroTextView contents:macro. |
|
3569 |
]. |
|
3570 |
||
3571 |
list1 := SelectionInList with:listOfRawKeys. |
|
3572 |
list1 onChangeSend:#showFunction to:selectionForwarder. |
|
3573 |
||
3574 |
list2 := SelectionInList with:listOfFunctions. |
|
3575 |
list2 onChangeSend:#showRawKey to:selectionForwarder. |
|
3576 |
list2 onChangeSend:#value to:macroForwarder. |
|
3577 |
||
3578 |
box := Dialog new. |
|
3579 |
box label:(resources string:'Keyboard mappings'). |
|
3580 |
||
3581 |
l := box addTextLabel:(resources string:'KEY_MSG') withCRs. |
|
3582 |
l adjust:#left; borderWidth:0. |
|
3583 |
||
3584 |
frame := View new. |
|
3585 |
frame extent:300 @ 300. |
|
3586 |
frame borderWidth:0. |
|
3587 |
||
3588 |
listView1 := ScrollableView for:SelectionInListView in:frame. |
|
3589 |
listView1 model:list1. |
|
3590 |
listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2. |
|
3591 |
||
3592 |
listView2 := ScrollableView for:SelectionInListView in:frame. |
|
3593 |
listView2 model:list2. |
|
3594 |
listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2. |
|
3595 |
||
3596 |
frame topInset:box yPosition. |
|
3597 |
box addComponent:frame withExtent:350@200. |
|
3598 |
box makeTabable:listView1. |
|
3599 |
box makeTabable:listView2. |
|
3600 |
frame origin:0.0@0.0 corner:1.0@0.6. |
|
3601 |
||
3602 |
box addVerticalSpace. |
|
3603 |
||
3604 |
l := box addTextLabel:(resources string:'Macro text (if any):') withCRs. |
|
3605 |
l adjust:#left; borderWidth:0. |
|
3606 |
l origin:0.0@0.6 corner:1.0@0.6. |
|
3607 |
l topInset:(View viewSpacing). |
|
3608 |
l bottomInset:(l preferredExtent y negated - View viewSpacing). |
|
3609 |
||
3610 |
macroTextView := HVScrollableView for:TextView miniScroller:true. |
|
3611 |
box addComponent:macroTextView tabable:true. |
|
3612 |
macroTextView origin:0.0@0.6 corner:1.0@1.0. |
|
3613 |
y := box yPosition. |
|
3614 |
||
3615 |
box |
|
3616 |
addHelpButtonFor:'Launcher/keyboardSetting.html'; |
|
3617 |
"addAbortButton;" |
|
3618 |
addOkButtonLabelled:(resources string:'dismiss'). |
|
3619 |
||
3620 |
macroTextView topInset:(l preferredExtent y + 5). |
|
3621 |
macroTextView bottomInset:(box preferredExtent y - y). |
|
3622 |
||
3623 |
box open. |
|
3624 |
||
3625 |
box accepted ifTrue:[ |
|
3626 |
"no action yet ..." |
|
3627 |
]. |
|
3628 |
box destroy |
|
3629 |
||
3630 |
||
3631 |
! |
|
3632 |
||
3633 |
languageSetting |
|
3634 |
"open a dialog on language related settings" |
|
3635 |
||
3636 |
|listOfLanguages translatedLanguages switch box languageList flags| |
|
3637 |
||
3638 |
" |
|
3639 |
get list of supported languages from the launchers resources ... |
|
3640 |
" |
|
3641 |
listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default'). |
|
3642 |
listOfLanguages := listOfLanguages asOrderedCollection. |
|
3643 |
translatedLanguages := listOfLanguages collect:[:lang | |item| |
|
3644 |
item := resources at:lang. |
|
3645 |
item isString ifTrue:[ |
|
3646 |
item |
|
3647 |
] ifFalse:[ |
|
3648 |
item at:1 |
|
3649 |
] |
|
3650 |
]. |
|
3651 |
flags := listOfLanguages collect:[:lang | |item| |
|
3652 |
item := resources at:lang. |
|
3653 |
item isArray ifTrue:[ |
|
3654 |
item at:2 |
|
3655 |
] ifFalse:[ |
|
3656 |
nil |
|
3657 |
] |
|
3658 |
]. |
|
3659 |
flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]]. |
|
3660 |
||
3661 |
languageList := translatedLanguages with:flags collect:[:lang :flag | |
|
3662 |
LabelAndIcon icon:flag string:lang. |
|
3663 |
]. |
|
3664 |
||
3665 |
box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs. |
|
3666 |
box label:(resources string:'Language selection'). |
|
3667 |
box list:languageList. |
|
3668 |
box initialText:(Language). |
|
3669 |
box action:[:newLanguage | |
|
3670 |
self withWaitCursorDo:[ |
|
3671 |
|fontPref idx language oldLanguage enc answer matchingFonts| |
|
3672 |
||
3673 |
idx := translatedLanguages indexOf:newLanguage withoutSeparators. |
|
3674 |
idx ~~ 0 ifTrue:[ |
|
3675 |
language := listOfLanguages at:idx |
|
3676 |
] ifFalse:[ |
|
3677 |
language := newLanguage |
|
3678 |
]. |
|
3679 |
||
3680 |
"/ check if the new language needs a differently encoded font; |
|
3681 |
"/ ask user to switch font and allow cancellation. |
|
3682 |
"/ Otherwise, you are left with unreadable menu & button items ... |
|
3683 |
||
3684 |
oldLanguage := Smalltalk language. |
|
3685 |
Smalltalk language:language asSymbol. |
|
3686 |
ResourcePack flushCachedResourcePacks. |
|
1465 | 3687 |
fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'. |
1406 | 3688 |
Smalltalk language:oldLanguage. |
3689 |
||
3690 |
switch := true. |
|
3691 |
enc := MenuView defaultFont encoding. |
|
3692 |
(fontPref match:enc) ifFalse:[ |
|
3693 |
"/ look if there is one at all. |
|
3694 |
matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding]. |
|
3695 |
matchingFonts size == 0 ifTrue:[ |
|
3696 |
(Dialog |
|
3697 |
confirm:(resources |
|
3698 |
string:'your display does not offer any %1-encoded font.\\Change the language anyway ?\ (texts will probably be unreadable then)' |
|
3699 |
with:fontPref) withCRs) |
|
3700 |
ifFalse:[ |
|
3701 |
switch := false |
|
3702 |
] |
|
3703 |
] ifFalse:[ |
|
3704 |
answer := Dialog |
|
3705 |
confirmWithCancel:(resources |
|
3706 |
string:'menu font is not %1-encoded.\\Change it ?' |
|
3707 |
with:fontPref) withCRs |
|
3708 |
labels:(resources |
|
3709 |
array:#('cancel' 'no' 'yes')) |
|
3710 |
default:3. |
|
3711 |
answer isNil ifTrue:[ |
|
3712 |
switch := false |
|
3713 |
] ifFalse:[ |
|
3714 |
answer ifTrue:[ |
|
3715 |
switch := (self fontBoxForEncoding:fontPref) |
|
3716 |
] |
|
3717 |
]. |
|
3718 |
]. |
|
3719 |
]. |
|
3720 |
||
3721 |
switch ifTrue:[ |
|
3722 |
transcript showCR:'change language to ' , newLanguage , ' ...'. |
|
3723 |
Smalltalk language:language asSymbol. |
|
3724 |
ResourcePack flushCachedResourcePacks |
|
3725 |
]. |
|
3726 |
]. |
|
3727 |
switch ifTrue:[ |
|
1460
f58b047b892c
open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
3728 |
self reOpen. |
1406 | 3729 |
DebugView newDebugger. |
3730 |
] |
|
3731 |
]. |
|
3732 |
box |
|
3733 |
addHelpButtonFor:'Launcher/languageSetting.html'. |
|
3734 |
box open. |
|
3735 |
box destroy |
|
3736 |
||
1465 | 3737 |
"Modified: / 6.2.1998 / 00:01:01 / cg" |
1406 | 3738 |
! |
3739 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3740 |
loadSettings |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3741 |
"restore settings from a settings-file." |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3742 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3743 |
"a temporary kludge - we need a central systemSettings object for this, |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3744 |
which can be saved/restored with a single store/read." |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3745 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3746 |
|fileName| |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3747 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3748 |
fileName := Dialog |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3749 |
requestFileName:(resources string:'load settings from:') |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3750 |
default:'settings.stx' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3751 |
ok:(resources string:'load') |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3752 |
abort:(resources string:'cancel') |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3753 |
pattern:'*.stx' |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3754 |
fromDirectory:nil. |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3755 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3756 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3757 |
"/ canceled |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3758 |
^ self |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3759 |
]. |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3760 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3761 |
self withWaitCursorDo:[ |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3762 |
Smalltalk fileIn:fileName. |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3763 |
self reOpen |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3764 |
]. |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3765 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3766 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3767 |
! |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
3768 |
|
1406 | 3769 |
memorySettings |
3770 |
"open a dialog on objectMemory related settings" |
|
3771 |
||
3772 |
|box igcLimit igcFreeLimit igcFreeAmount newSpaceSize |
|
3773 |
compressLimit |
|
3774 |
oldIncr component fields codeLimit codeTrigger stackLimit| |
|
3775 |
||
3776 |
"/ |
|
3777 |
"/ extract relevant system settings ... |
|
3778 |
"/ |
|
3779 |
igcLimit := ObjectMemory incrementalGCLimit asValue. |
|
3780 |
igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue. |
|
3781 |
igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue. |
|
3782 |
newSpaceSize := ObjectMemory newSpaceSize asValue. |
|
3783 |
oldIncr := ObjectMemory oldSpaceIncrement asValue. |
|
3784 |
compressLimit := ObjectMemory oldSpaceCompressLimit asValue. |
|
3785 |
codeLimit := ObjectMemory dynamicCodeLimit asValue. |
|
3786 |
codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue. |
|
3787 |
stackLimit := Process defaultMaximumStackSize asValue. |
|
3788 |
||
3789 |
"/ |
|
3790 |
"/ create a box on those values ... |
|
3791 |
"/ |
|
3792 |
fields := OrderedCollection new. |
|
3793 |
||
3794 |
box := DialogBox new. |
|
3795 |
box label:(resources string:'Memory manager settings'). |
|
3796 |
||
3797 |
(box addTextLabel:'Warning - invalid settings may result in failures or poor performance |
|
3798 |
||
3799 |
You have been warned.') adjust:#left. |
|
3800 |
box addHorizontalLine. |
|
3801 |
||
3802 |
component := box |
|
3803 |
addLabelledInputField:(resources string:'size of newSpace:') |
|
3804 |
adjust:#right |
|
3805 |
on:nil "/ newSpaceSize |
|
3806 |
tabable:true |
|
3807 |
separateAtX:0.7. |
|
3808 |
component acceptOnLeave:false. |
|
3809 |
component converter:(PrintConverter new initForNumber). |
|
3810 |
component model:newSpaceSize. |
|
3811 |
fields add:component. |
|
3812 |
||
3813 |
box addHorizontalLine. |
|
3814 |
||
3815 |
||
3816 |
component := box |
|
3817 |
addLabelledInputField:(resources string:'incremental GC allocation trigger:') |
|
3818 |
adjust:#right |
|
3819 |
on:nil "/ igcLimit |
|
3820 |
tabable:true |
|
3821 |
separateAtX:0.7. |
|
3822 |
component acceptOnLeave:false. |
|
3823 |
component converter:(PrintConverter new initForNumber). |
|
3824 |
component model:igcLimit. |
|
3825 |
fields add:component. |
|
3826 |
||
3827 |
box addTextLabel:'(start IGC whenever this amount has been allocated)'. |
|
3828 |
box addHorizontalLine. |
|
3829 |
||
3830 |
component := box |
|
3831 |
addLabelledInputField:(resources string:'incremental GC freespace trigger:') |
|
3832 |
adjust:#right |
|
3833 |
on:nil "/ igcFreeLimit |
|
3834 |
tabable:true |
|
3835 |
separateAtX:0.7. |
|
3836 |
component acceptOnLeave:false. |
|
3837 |
component converter:(PrintConverter new initForNumber). |
|
3838 |
component model:igcFreeLimit. |
|
3839 |
fields add:component. |
|
3840 |
||
3841 |
box addTextLabel:'(start IGC whenever freespace drops below this)'. |
|
3842 |
box addHorizontalLine. |
|
3843 |
||
3844 |
component := box |
|
3845 |
addLabelledInputField:(resources string:'incremental GC amount:') |
|
3846 |
adjust:#right |
|
3847 |
on:nil "/ igcFreeAmount |
|
3848 |
tabable:true |
|
3849 |
separateAtX:0.7. |
|
3850 |
component acceptOnLeave:false. |
|
3851 |
component converter:(PrintConverter new initForNumber). |
|
3852 |
component model:igcFreeAmount. |
|
3853 |
fields add:component. |
|
3854 |
||
3855 |
box addTextLabel:'(try to keep this amount for peak requests)'. |
|
3856 |
box addHorizontalLine. |
|
3857 |
||
3858 |
component := box |
|
3859 |
addLabelledInputField:(resources string:'oldspace increment:') |
|
3860 |
adjust:#right |
|
3861 |
on:nil "/ oldIncr |
|
3862 |
tabable:true |
|
3863 |
separateAtX:0.7. |
|
3864 |
component acceptOnLeave:false. |
|
3865 |
component converter:(PrintConverter new initForNumber). |
|
3866 |
component model:oldIncr. |
|
3867 |
fields add:component. |
|
3868 |
||
3869 |
box addTextLabel:'(increase oldSpace in chunks of this size)'. |
|
3870 |
box addHorizontalLine. |
|
3871 |
||
3872 |
component := box |
|
3873 |
addLabelledInputField:(resources string:'oldspace compress limit:') |
|
3874 |
adjust:#right |
|
3875 |
on:nil "/ compressLimit |
|
3876 |
tabable:true |
|
3877 |
separateAtX:0.7. |
|
3878 |
component acceptOnLeave:false. |
|
3879 |
component converter:(PrintConverter new initForNumber). |
|
3880 |
component model:compressLimit. |
|
3881 |
fields add:component. |
|
3882 |
||
3883 |
box addTextLabel:'(suppress compressing GC if more memory is in use)'. |
|
3884 |
box addHorizontalLine. |
|
3885 |
||
3886 |
component := box |
|
3887 |
addLabelledInputField:(resources string:'stack limit:') |
|
3888 |
adjust:#right |
|
3889 |
on:nil |
|
3890 |
tabable:true |
|
3891 |
separateAtX:0.7. |
|
3892 |
component acceptOnLeave:false. |
|
3893 |
component converter:(PrintConverter new initForNumber). |
|
3894 |
component model:stackLimit. |
|
3895 |
fields add:component. |
|
3896 |
||
3897 |
box addTextLabel:'(trigger recursionInterrupt if more stack is used by a process)'. |
|
3898 |
box addHorizontalLine. |
|
3899 |
||
3900 |
ObjectMemory supportsJustInTimeCompilation ifTrue:[ |
|
3901 |
component := box |
|
3902 |
addLabelledInputField:(resources string:'dynamic code limit:') |
|
3903 |
adjust:#right |
|
3904 |
on:nil |
|
3905 |
tabable:true |
|
3906 |
separateAtX:0.7. |
|
3907 |
component acceptOnLeave:false. |
|
3908 |
component converter:(PrintConverter new initForNumberOrNil). |
|
3909 |
component model:codeLimit. |
|
3910 |
fields add:component. |
|
3911 |
||
3912 |
box addTextLabel:'(flush dynamic compiled code to stay within this limit)'. |
|
3913 |
box addHorizontalLine. |
|
3914 |
||
3915 |
component := box |
|
3916 |
addLabelledInputField:(resources string:'dynamic code GC trigger:') |
|
3917 |
adjust:#right |
|
3918 |
on:nil |
|
3919 |
tabable:true |
|
3920 |
separateAtX:0.7. |
|
3921 |
component acceptOnLeave:false. |
|
3922 |
component converter:(PrintConverter new initForNumberOrNil). |
|
3923 |
component model:codeTrigger. |
|
3924 |
fields add:component. |
|
3925 |
||
3926 |
box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'. |
|
3927 |
box addHorizontalLine. |
|
3928 |
]. |
|
3929 |
||
3930 |
box addAbortButton; addOkButton. |
|
3931 |
box |
|
3932 |
addHelpButtonFor:'Launcher/memorySettings.html'. |
|
3933 |
||
3934 |
"/ |
|
3935 |
"/ show the box ... |
|
3936 |
"/ |
|
3937 |
box open. |
|
3938 |
||
3939 |
"/ |
|
3940 |
"/ update system settings |
|
3941 |
"/ |
|
3942 |
box accepted ifTrue:[ |
|
3943 |
fields do:[:comp | comp accept]. |
|
3944 |
||
3945 |
igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[ |
|
3946 |
ObjectMemory freeSpaceGCAmount:igcFreeAmount value. |
|
3947 |
]. |
|
3948 |
igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[ |
|
3949 |
ObjectMemory freeSpaceGCLimit:igcFreeLimit value. |
|
3950 |
]. |
|
3951 |
igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[ |
|
3952 |
ObjectMemory incrementalGCLimit:igcLimit value. |
|
3953 |
]. |
|
3954 |
newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[ |
|
3955 |
ObjectMemory newSpaceSize:newSpaceSize value. |
|
3956 |
]. |
|
3957 |
oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[ |
|
3958 |
ObjectMemory oldSpaceIncrement:oldIncr value. |
|
3959 |
]. |
|
3960 |
stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[ |
|
3961 |
Process defaultMaximumStackSize:stackLimit value. |
|
3962 |
]. |
|
3963 |
ObjectMemory oldSpaceCompressLimit:compressLimit value. |
|
3964 |
ObjectMemory dynamicCodeLimit:codeLimit value. |
|
3965 |
ObjectMemory dynamicCodeGCTrigger:codeTrigger value. |
|
3966 |
]. |
|
3967 |
box destroy |
|
3968 |
! |
|
3969 |
||
3970 |
messageSettings |
|
3971 |
"open a dialog on infoMessage related settings" |
|
3972 |
||
3973 |
|box vmInfo vmErrors displayErrors classInfos| |
|
3974 |
||
3975 |
vmInfo := ObjectMemory infoPrinting asValue. |
|
3976 |
vmErrors := ObjectMemory debugPrinting asValue. |
|
3977 |
classInfos := Object infoPrinting asValue. |
|
3978 |
displayErrors := DeviceWorkstation errorPrinting asValue. |
|
3979 |
||
3980 |
box := DialogBox new. |
|
3981 |
box label:(resources string:'Messages'). |
|
3982 |
||
3983 |
box addCheckBox:(resources string:'VM info messages') on:vmInfo. |
|
3984 |
box addCheckBox:(resources string:'VM error messages') on:vmErrors. |
|
3985 |
box addHorizontalLine. |
|
3986 |
||
3987 |
box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors. |
|
3988 |
box addCheckBox:(resources string:'Other info messages') on:classInfos. |
|
3989 |
||
3990 |
box addHelpButtonFor:'Launcher/messageSettings.html'. |
|
3991 |
box addAbortButton; addOkButton. |
|
3992 |
box open. |
|
3993 |
||
3994 |
box accepted ifTrue:[ |
|
3995 |
ObjectMemory infoPrinting:vmInfo value. |
|
3996 |
ObjectMemory debugPrinting:vmErrors value. |
|
3997 |
Object infoPrinting:classInfos value. |
|
3998 |
DeviceWorkstation errorPrinting:displayErrors value. |
|
3999 |
]. |
|
4000 |
box destroy |
|
4001 |
||
4002 |
||
4003 |
! |
|
4004 |
||
4005 |
miscSettings |
|
4006 |
"open a dialog on misc other settings" |
|
4007 |
||
4008 |
|box shadows takeFocus returnFocus |
|
4009 |
hostNameInLabel showAccelerators |
|
4010 |
preemptive hostNameInLabelHolder| |
|
4011 |
||
4012 |
"/ |
|
4013 |
"/ extract relevant system settings ... |
|
4014 |
"/ |
|
4015 |
shadows := PopUpView shadows asValue. |
|
4016 |
hostNameInLabel := StandardSystemView includeHostNameInLabel. |
|
4017 |
hostNameInLabelHolder := hostNameInLabel asValue. |
|
4018 |
returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue. |
|
4019 |
takeFocus := StandardSystemView takeFocusWhenMapped asValue. |
|
4020 |
||
4021 |
showAccelerators := MenuView showAcceleratorKeys asValue. |
|
4022 |
preemptive := Processor isTimeSlicing asValue. |
|
4023 |
||
4024 |
"/ |
|
4025 |
"/ create a box on those values ... |
|
4026 |
"/ |
|
4027 |
box := DialogBox new. |
|
4028 |
box label:(resources string:'Other settings'). |
|
4029 |
||
4030 |
box addCheckBox:(resources string:'shadows under popup views') on:shadows. |
|
4031 |
box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus. |
|
4032 |
box addCheckBox:(resources string:'views catch focus when mapped') on:takeFocus. |
|
4033 |
box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabelHolder. |
|
4034 |
box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators. |
|
4035 |
||
4036 |
box addHorizontalLine. |
|
4037 |
||
4038 |
box addCheckBox:(resources string:'preemptive scheduling') on:preemptive. |
|
4039 |
||
4040 |
box |
|
4041 |
addHelpButtonFor:'Launcher/miscSettings.html'; |
|
4042 |
addAbortButton; |
|
4043 |
addOkButton. |
|
4044 |
||
4045 |
"/ |
|
4046 |
"/ show the box ... |
|
4047 |
"/ |
|
4048 |
box open. |
|
4049 |
||
4050 |
"/ |
|
4051 |
"/ update system settings |
|
4052 |
"/ |
|
4053 |
box accepted ifTrue:[ |
|
4054 |
PopUpView shadows:shadows value. |
|
4055 |
hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ |
|
4056 |
StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value. |
|
4057 |
||
4058 |
Screen allScreens do:[:aDisplay | |
|
4059 |
aDisplay allViewsDo:[:aView | |
|
4060 |
|l| |
|
4061 |
||
4062 |
aView isTopView ifTrue:[ |
|
1475
d985c7c23d8e
fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
4063 |
aView isPopUpView ifFalse:[ |
d985c7c23d8e
fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
4064 |
l := aView label. |
d985c7c23d8e
fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
4065 |
aView label:(l , ' '); label:l. "/ force a change |
d985c7c23d8e
fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
4066 |
] |
1406 | 4067 |
] |
4068 |
] |
|
4069 |
] |
|
4070 |
]. |
|
4071 |
StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value. |
|
4072 |
StandardSystemView takeFocusWhenMapped:takeFocus value. |
|
4073 |
MenuView showAcceleratorKeys:showAccelerators value. |
|
4074 |
Processor isTimeSlicing ~~ preemptive value ifTrue:[ |
|
4075 |
preemptive value ifTrue:[ |
|
4076 |
Processor startTimeSlicing |
|
4077 |
] ifFalse:[ |
|
4078 |
Processor stopTimeSlicing |
|
4079 |
] |
|
4080 |
] |
|
4081 |
]. |
|
4082 |
box destroy |
|
4083 |
||
4084 |
||
4085 |
! |
|
4086 |
||
4087 |
printerSettings |
|
4088 |
"open a dialog on printer related settings" |
|
4089 |
||
4090 |
|box |
|
4091 |
possiblePrinters possibleTypes printerType printCommand |
|
4092 |
pageFormat landscape updater |
|
4093 |
formatLabel formatComponent landscapeLabel landscapeComponent |
|
4094 |
topMargin leftMargin rightMargin bottomMargin unitList unit |
|
4095 |
topMarginComponent leftMarginComponent |
|
4096 |
rightMarginComponent |
|
4097 |
bottomMarginComponent supportsColor supportsColorComponent |
|
4098 |
y y1 commandListPop component commandList row| |
|
4099 |
||
4100 |
possiblePrinters := PrinterStream withAllSubclasses asArray. |
|
4101 |
possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName]. |
|
4102 |
||
4103 |
printerType := SelectionInList new list:(resources array:possibleTypes). |
|
4104 |
printerType selectionIndex:(possiblePrinters identityIndexOf:Printer). |
|
4105 |
printCommand := Printer printCommand asValue. |
|
4106 |
||
4107 |
pageFormat := SelectionInList new list:(Printer defaultPageFormats). |
|
4108 |
pageFormat selection:(Printer pageFormat). |
|
4109 |
landscape := Printer landscape asValue. |
|
4110 |
||
4111 |
topMargin := Printer topMargin asValue. |
|
4112 |
leftMargin := Printer leftMargin asValue. |
|
4113 |
rightMargin := Printer rightMargin asValue. |
|
4114 |
bottomMargin := Printer bottomMargin asValue. |
|
4115 |
supportsColor := Printer supportsColor asValue. |
|
4116 |
||
4117 |
box := DialogBox new. |
|
4118 |
box label:(resources string:'Printer settings'). |
|
4119 |
||
4120 |
"/ either use a popUpList ... |
|
4121 |
"/ box addPopUpList:(resources string:'printer type:') on:printerType. |
|
4122 |
||
4123 |
"/ or a comboList; |
|
4124 |
"/ which one looks better ? |
|
4125 |
y := box yPosition. |
|
4126 |
component := box addTextLabel:(resources string:'printer type:'). |
|
4127 |
component width:0.25; adjust:#right; borderWidth:0. |
|
4128 |
box yPosition:y. |
|
4129 |
component := box addComboListOn:printerType tabable:true. |
|
4130 |
component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true. |
|
4131 |
component width:0.75; left:0.25. |
|
4132 |
"/ end of question |
|
4133 |
||
4134 |
y := box yPosition. |
|
4135 |
component := box addTextLabel:(resources string:'print command:'). |
|
4136 |
component width:0.25; adjust:#right; borderWidth:0. |
|
4137 |
box yPosition:y. |
|
4138 |
commandListPop := box addComboBoxOn:printCommand tabable:true. |
|
4139 |
"/ commandListPop := box addInputFieldOn:printCommand tabable:true. |
|
4140 |
commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine. |
|
4141 |
"/ some common print commands ... |
|
4142 |
||
4143 |
commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil. |
|
4144 |
commandList isNil ifTrue:[ |
|
4145 |
commandList := PrinterStream defaultCommands. |
|
4146 |
commandList isNil ifTrue:[ |
|
4147 |
commandList := #('lpr' |
|
4148 |
'lp' |
|
4149 |
). |
|
4150 |
] |
|
4151 |
]. |
|
4152 |
||
4153 |
commandListPop list:commandList. |
|
4154 |
box addVerticalSpace. |
|
4155 |
box addHorizontalLine. |
|
4156 |
box addVerticalSpace. |
|
4157 |
||
4158 |
row := OrderedCollection new. |
|
4159 |
row add:(formatLabel := Label label:(resources string:'page format:')). |
|
4160 |
formatLabel borderWidth:0. |
|
4161 |
row add:(formatComponent := PopUpList on:pageFormat). |
|
4162 |
formatComponent label:'unknown'. |
|
4163 |
||
4164 |
row add:(landscapeLabel := Label label:(resources string:'landscape:')). |
|
4165 |
landscapeLabel borderWidth:0. |
|
4166 |
row add:(landscapeComponent := CheckToggle on:landscape). |
|
4167 |
||
4168 |
y := box yPosition. |
|
4169 |
box |
|
4170 |
addRow:(1 to:2) |
|
4171 |
fromX:0 |
|
4172 |
toX:0.5 |
|
4173 |
collect:[:idx | row at:idx] |
|
4174 |
tabable:false |
|
4175 |
horizontalLayout:#leftSpace |
|
4176 |
verticalLayout:#center. |
|
4177 |
y1 := box yPosition. |
|
4178 |
box yPosition:y. |
|
4179 |
||
4180 |
box |
|
4181 |
addRow:(3 to:4) |
|
4182 |
fromX:0.5 |
|
4183 |
toX:1.0 |
|
4184 |
collect:[:idx | row at:idx] |
|
4185 |
tabable:false |
|
4186 |
horizontalLayout:#leftSpace |
|
4187 |
verticalLayout:#center. |
|
4188 |
||
4189 |
box yPosition:(box yPosition max:y1). |
|
4190 |
||
4191 |
box makeTabable:(formatComponent). |
|
4192 |
box makeTabable:(landscapeComponent). |
|
4193 |
||
4194 |
box addVerticalSpace. |
|
4195 |
box addHorizontalLine. |
|
4196 |
box addVerticalSpace. |
|
4197 |
||
4198 |
y := box yPosition. |
|
4199 |
||
4200 |
topMarginComponent := box |
|
4201 |
addLabelledInputField:(resources string:'top margin:') |
|
4202 |
adjust:#right |
|
4203 |
on:nil "/ topMargin |
|
4204 |
tabable:true |
|
4205 |
from:0.0 to:0.5 |
|
4206 |
separateAtX:0.6. |
|
4207 |
topMarginComponent converter:(PrintConverter new initForNumber). |
|
4208 |
topMarginComponent model:topMargin. |
|
4209 |
y1 := box yPosition. |
|
4210 |
||
4211 |
box yPosition:y. |
|
4212 |
unitList := SelectionInList with:#('inch' 'mm'). |
|
4213 |
unitList selectionIndex:1. |
|
4214 |
||
4215 |
component := box addComponent:(PopUpList on:unitList). |
|
4216 |
component |
|
4217 |
left:0.6; |
|
4218 |
width:0.3. |
|
4219 |
||
4220 |
box yPosition:y1. |
|
4221 |
||
4222 |
leftMarginComponent := box |
|
4223 |
addLabelledInputField:(resources string:'left margin:') |
|
4224 |
adjust:#right |
|
4225 |
on:nil "/ leftMargin |
|
4226 |
tabable:true |
|
4227 |
from:0.0 to:0.5 |
|
4228 |
separateAtX:0.6. |
|
4229 |
leftMarginComponent converter:(PrintConverter new initForNumber). |
|
4230 |
leftMarginComponent model:leftMargin. |
|
4231 |
||
4232 |
rightMarginComponent := box |
|
4233 |
addLabelledInputField:(resources string:'right margin:') |
|
4234 |
adjust:#right |
|
4235 |
on:nil "/ rightMargin |
|
4236 |
tabable:true |
|
4237 |
from:0.0 to:0.5 |
|
4238 |
separateAtX:0.6. |
|
4239 |
rightMarginComponent converter:(PrintConverter new initForNumber). |
|
4240 |
rightMarginComponent model:rightMargin. |
|
4241 |
||
4242 |
bottomMarginComponent := box |
|
4243 |
addLabelledInputField:(resources string:'bottom margin:') |
|
4244 |
adjust:#right |
|
4245 |
on:nil "/ bottomMargin |
|
4246 |
tabable:true |
|
4247 |
from:0.0 to:0.5 |
|
4248 |
separateAtX:0.6. |
|
4249 |
bottomMarginComponent converter:(PrintConverter new initForNumber). |
|
4250 |
bottomMarginComponent model:bottomMargin. |
|
4251 |
||
4252 |
box addHorizontalLine. |
|
4253 |
supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor. |
|
4254 |
box addVerticalSpace. |
|
4255 |
||
4256 |
updater := [ |p fg hasPageSize hasMargins| |
|
4257 |
||
4258 |
printerType selectionIndex ~~ 0 ifTrue:[ |
|
4259 |
p := possiblePrinters at:(printerType selectionIndex). |
|
4260 |
hasPageSize := p supportsPageSizes. |
|
4261 |
hasMargins := p supportsMargins. |
|
4262 |
] ifFalse:[ |
|
4263 |
hasPageSize := false. |
|
4264 |
hasMargins := false. |
|
4265 |
]. |
|
4266 |
hasPageSize ifTrue:[ |
|
4267 |
fg := Button new foregroundColor. |
|
4268 |
formatComponent enable. |
|
4269 |
landscapeComponent enable. |
|
4270 |
||
4271 |
formatComponent label:p pageFormat. |
|
4272 |
pageFormat value:(p pageFormat). |
|
4273 |
landscape value:(p landscape). |
|
4274 |
] ifFalse:[ |
|
4275 |
fg := Button new disabledForegroundColor. |
|
4276 |
formatComponent disable. |
|
4277 |
landscapeComponent disable. |
|
4278 |
||
4279 |
formatComponent label:'unknown'. |
|
4280 |
landscape value:nil. |
|
4281 |
]. |
|
4282 |
hasMargins ifTrue:[ |
|
4283 |
unitList selectionIndex == 2 ifTrue:[ |
|
4284 |
unit := #mm |
|
4285 |
] ifFalse:[ |
|
4286 |
unit := #inch |
|
4287 |
]. |
|
4288 |
||
4289 |
topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit). |
|
4290 |
leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit). |
|
4291 |
rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit). |
|
4292 |
bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit). |
|
4293 |
||
4294 |
topMarginComponent enable. |
|
4295 |
leftMarginComponent enable. |
|
4296 |
rightMarginComponent enable. |
|
4297 |
bottomMarginComponent enable. |
|
4298 |
] ifFalse:[ |
|
4299 |
topMarginComponent disable. |
|
4300 |
leftMarginComponent disable. |
|
4301 |
rightMarginComponent disable. |
|
4302 |
bottomMarginComponent disable. |
|
4303 |
]. |
|
4304 |
formatLabel foregroundColor:fg. |
|
4305 |
landscapeLabel foregroundColor:fg. |
|
4306 |
||
4307 |
p notNil ifTrue:[ |
|
4308 |
commandList := p defaultCommands. |
|
4309 |
commandList notNil ifTrue:[ |
|
4310 |
commandListPop list:commandList |
|
4311 |
]. |
|
4312 |
||
4313 |
printCommand value:(p printCommand). |
|
4314 |
]. |
|
4315 |
p supportsPostscript ifFalse:[ |
|
4316 |
supportsColorComponent disable. |
|
4317 |
supportsColor value:false |
|
4318 |
] ifTrue:[ |
|
4319 |
supportsColorComponent enable. |
|
4320 |
supportsColor value:(Printer supportsColor). |
|
4321 |
] |
|
4322 |
]. |
|
4323 |
unitList onChangeSend:#value to:updater. |
|
4324 |
printerType onChangeSend:#value to:updater. |
|
4325 |
updater value. |
|
4326 |
||
4327 |
box addVerticalSpace; |
|
4328 |
addHelpButtonFor:'Launcher/printerSettings.html'; |
|
4329 |
addAbortButton; addOkButton. |
|
4330 |
box open. |
|
4331 |
||
4332 |
box accepted ifTrue:[ |
|
4333 |
Printer := possiblePrinters at:(printerType selectionIndex). |
|
4334 |
Printer printCommand:printCommand value. |
|
4335 |
||
4336 |
Printer supportsPageSizes ifTrue:[ |
|
4337 |
Printer pageFormat:(pageFormat selection). |
|
4338 |
Printer landscape:(landscape value). |
|
4339 |
]. |
|
4340 |
Printer supportsMargins ifTrue:[ |
|
4341 |
unitList selectionIndex == 2 ifTrue:[ |
|
4342 |
unit := #mm |
|
4343 |
] ifFalse:[ |
|
4344 |
unit := #inch |
|
4345 |
]. |
|
4346 |
Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch). |
|
4347 |
Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch). |
|
4348 |
Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch). |
|
4349 |
Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch). |
|
4350 |
]. |
|
4351 |
Printer supportsPostscript ifTrue:[ |
|
4352 |
Printer supportsColor:supportsColor value. |
|
4353 |
]. |
|
4354 |
]. |
|
4355 |
box destroy |
|
4356 |
||
4357 |
! |
|
4358 |
||
4359 |
saveSettings |
|
4360 |
"save settings to a settings-file." |
|
4361 |
||
4362 |
"a temporary kludge - we need a central systemSettings object for this, |
|
4363 |
which can be saved/restored with a single store/read." |
|
4364 |
||
4365 |
|s screen fileName| |
|
4366 |
||
4367 |
fileName := Dialog |
|
4368 |
requestFileName:(resources string:'save settings in:') |
|
4369 |
default:'settings.stx' |
|
4370 |
ok:(resources string:'save') |
|
4371 |
abort:(resources string:'cancel') |
|
4372 |
pattern:'*.stx' |
|
4373 |
fromDirectory:nil. |
|
4374 |
||
4375 |
(fileName isNil or:[fileName isEmpty]) ifTrue:[ |
|
4376 |
"/ canceled |
|
4377 |
^ self |
|
4378 |
]. |
|
4379 |
||
4380 |
s := fileName asFilename writeStream. |
|
4381 |
s isNil ifTrue:[ |
|
4382 |
self warn:'cannot write the ''' , fileName , ''' file'. |
|
4383 |
^ self |
|
4384 |
]. |
|
4385 |
||
4386 |
s nextPutLine:'"/ ST/X saved settings'; |
|
4387 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
4388 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
4389 |
nextPutLine:'"/'; |
|
4390 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
4391 |
nextPutLine:'"/ ''save settings'' function of the Launcher'; |
|
4392 |
nextPutLine:'"/'. |
|
4393 |
s cr. |
|
4394 |
||
4395 |
s nextPutLine:'"/'. |
|
4396 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
4397 |
s nextPutLine:'"/'. |
|
4398 |
s cr. |
|
4399 |
||
4400 |
s nextPutLine:'"/'. |
|
4401 |
s nextPutLine:'"/ Display settings:'. |
|
4402 |
s nextPutLine:'"/'. |
|
4403 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
4404 |
s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['. |
|
4405 |
screen := Screen current. |
|
4406 |
screen fixColors notNil ifTrue:[ |
|
4407 |
s nextPutLine:' Image flushDeviceImages.'. |
|
4408 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
4409 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
4410 |
s nextPutLine:' ].'. |
|
4411 |
] ifFalse:[ |
|
4412 |
s nextPutLine:' Display releaseFixColors.'. |
|
4413 |
]. |
|
4414 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
4415 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
4416 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
4417 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
4418 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
4419 |
s nextPutLine:' View defaultStyle:(View defaultStyle). "/ to flush any device images'. |
|
4420 |
s nextPutLine:'].'. |
|
4421 |
s cr. |
|
4422 |
||
4423 |
s nextPutLine:'"/'. |
|
4424 |
s nextPutLine:'"/ Compiler settings:'. |
|
4425 |
s nextPutLine:'"/'. |
|
4426 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
4427 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
4428 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
4429 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
4430 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
|
4431 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
|
4432 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
|
4433 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
4434 |
||
4435 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
4436 |
||
4437 |
nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
4438 |
nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
4439 |
nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
4440 |
nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
4441 |
nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
4442 |
||
4443 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
4444 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
4445 |
||
4446 |
HistoryManager notNil ifTrue:[ |
|
4447 |
HistoryManager isActive ifTrue:[ |
|
4448 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
4449 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
4450 |
] ifFalse:[ |
|
4451 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
4452 |
]. |
|
4453 |
]. |
|
4454 |
||
4455 |
ObjectFileLoader notNil ifTrue:[ |
|
4456 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
|
4457 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
|
4458 |
]. |
|
4459 |
||
4460 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
4461 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
4462 |
||
4463 |
s cr. |
|
4464 |
s nextPutLine:'"/'. |
|
4465 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
4466 |
s nextPutLine:'"/'. |
|
4467 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
4468 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
4469 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
4470 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
4471 |
||
4472 |
||
4473 |
s cr. |
|
4474 |
s nextPutLine:'"/'. |
|
4475 |
s nextPutLine:'"/ Misc settings:'. |
|
4476 |
s nextPutLine:'"/'. |
|
4477 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
4478 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
4479 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
4480 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
4481 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
4482 |
||
4483 |
"/ claus - I dont think its a good idea to save those ... |
|
4484 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
4485 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
4486 |
||
4487 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
4488 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
4489 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
|
4490 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
4491 |
(Exception emergencyHandler == Launcher notifyingEmergencyHandler) ifTrue:[ |
|
4492 |
s nextPutLine:'Exception emergencyHandler:(Launcher notifyingEmergencyHandler).'. |
|
4493 |
]. |
|
4494 |
||
4495 |
s cr. |
|
4496 |
s nextPutLine:'"/'. |
|
4497 |
s nextPutLine:'"/ Printer settings:'. |
|
4498 |
s nextPutLine:'"/'. |
|
4499 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
4500 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
4501 |
||
4502 |
Printer supportsPageSizes ifTrue:[ |
|
4503 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
|
4504 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
4505 |
]. |
|
4506 |
Printer supportsMargins ifTrue:[ |
|
4507 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
|
4508 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
4509 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
4510 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
4511 |
]. |
|
4512 |
Printer supportsPostscript ifTrue:[ |
|
4513 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
|
4514 |
]. |
|
4515 |
||
4516 |
s cr. |
|
4517 |
s nextPutLine:'"/'. |
|
4518 |
s nextPutLine:'"/ Font settings:'. |
|
4519 |
s nextPutLine:'"/'. |
|
4520 |
s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
4521 |
s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
4522 |
s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
4523 |
s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
4524 |
s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
4525 |
s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
4526 |
s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
4527 |
s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
4528 |
s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
4529 |
s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
4530 |
||
4531 |
s cr. |
|
4532 |
s nextPutLine:'"/'. |
|
4533 |
s nextPutLine:'"/ Language setting:'. |
|
4534 |
s nextPutLine:'"/'. |
|
4535 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
4536 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
4537 |
s close. |
|
4538 |
||
4539 |
" |
|
4540 |
Transcript topView application saveSettings |
|
4541 |
" |
|
4542 |
||
4543 |
||
4544 |
! |
|
4545 |
||
4546 |
sourceAndDebuggerSettings |
|
4547 |
"open a dialog on misc other settings" |
|
4548 |
||
4549 |
|box check logDoits updChanges changeFileName |
|
4550 |
useManager hasManager |
|
4551 |
repository repositoryHolder localSourceFirst |
|
4552 |
sourceCacheDir cacheEntry |
|
4553 |
component localCheck oldIndent nm fn manager |
|
1527 | 4554 |
keepMethodHistory showErrorNotifier showVerboseStack |
1544 | 4555 |
syntaxColoring syntaxColor syntaxColors colorMenu oldUserPreferences |
4556 |
syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox |
|
4557 |
syntaxEmphasisesBox syntaxColoringResetBox syntaxColoringEnableBlock| |
|
1406 | 4558 |
|
4559 |
"/ |
|
4560 |
"/ extract relevant system settings ... |
|
4561 |
"/ |
|
4562 |
keepMethodHistory := Class methodHistory notNil asValue. |
|
4563 |
logDoits := Smalltalk logDoits asValue. |
|
4564 |
updChanges := Class updatingChanges asValue. |
|
4565 |
changeFileName := ObjectMemory nameForChanges asValue. |
|
4566 |
||
4567 |
hasManager := AbstractSourceCodeManager notNil |
|
4568 |
and:[AbstractSourceCodeManager isLoaded]. |
|
4569 |
||
4570 |
hasManager ifTrue:[ |
|
4571 |
useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue. |
|
4572 |
localSourceFirst := Class tryLocalSourceFirst asValue. |
|
4573 |
manager notNil ifTrue:[ |
|
4574 |
repository := manager repositoryName. |
|
4575 |
repository notNil ifTrue:[ |
|
4576 |
repositoryHolder := repository asValue |
|
4577 |
] ifFalse:[ |
|
4578 |
repositoryHolder := '' asValue |
|
4579 |
]. |
|
4580 |
]. |
|
4581 |
] ifFalse:[ |
|
4582 |
useManager := false. |
|
4583 |
localSourceFirst := false |
|
4584 |
]. |
|
4585 |
showErrorNotifier := (Exception emergencyHandler == Launcher notifyingEmergencyHandler) asValue. |
|
4586 |
showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue. |
|
1527 | 4587 |
syntaxColoring := UserPreferences current syntaxColoring asValue. |
1406 | 4588 |
|
4589 |
sourceCacheDir := nil asValue. |
|
4590 |
||
4591 |
"/ |
|
4592 |
"/ create a box on those values ... |
|
4593 |
"/ |
|
4594 |
box := DialogBox new. |
|
4595 |
box label:(resources string:'Source & Debugger settings'). |
|
4596 |
||
4597 |
box addCheckBox:(resources string:'remember changed methods (for previous method in browser)') on:keepMethodHistory. |
|
4598 |
box addCheckBox:(resources string:'log compiles in changes file') on:updChanges. |
|
4599 |
box addCheckBox:(resources string:'log doIts in changes file') on:logDoits. |
|
4600 |
||
4601 |
component := box |
|
4602 |
addLabelledInputField:(resources string:'change file name:') |
|
4603 |
adjust:#right |
|
4604 |
on:changeFileName |
|
4605 |
tabable:true |
|
4606 |
separateAtX:0.4. |
|
4607 |
component immediateAccept:true; acceptOnLeave:false. |
|
4608 |
||
4609 |
"/ y := box yPosition. |
|
4610 |
"/ component := box addTextLabel:(resources string:'change file name:'). |
|
4611 |
"/ component width:0.5; adjust:#right; borderWidth:0. |
|
4612 |
"/ box yPosition:y. |
|
4613 |
"/ component := box addInputFieldOn:changeFileName tabable:true. |
|
4614 |
"/ component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false. |
|
4615 |
||
4616 |
box addHorizontalLine. |
|
4617 |
||
4618 |
hasManager ifTrue:[ |
|
4619 |
check := box addCheckBox:(resources string:'sourcecode from sourcecode management') on:useManager. |
|
4620 |
oldIndent := box leftIndent. |
|
4621 |
box leftIndent:30. |
|
4622 |
||
4623 |
repositoryHolder notNil ifTrue:[ |
|
4624 |
component := box |
|
4625 |
addLabelledInputField:(resources string:'repository:') |
|
4626 |
adjust:#right |
|
4627 |
on:repositoryHolder |
|
4628 |
tabable:true |
|
4629 |
separateAtX:0.4. |
|
4630 |
component immediateAccept:true; acceptOnLeave:false. |
|
4631 |
component enableChannel:useManager. |
|
4632 |
]. |
|
4633 |
||
4634 |
cacheEntry := box |
|
4635 |
addLabelledInputField:(resources string:'source cache dir:') |
|
4636 |
adjust:#right |
|
4637 |
on:sourceCacheDir |
|
4638 |
tabable:true |
|
4639 |
separateAtX:0.4. |
|
4640 |
cacheEntry immediateAccept:true; acceptOnLeave:false. |
|
4641 |
cacheEntry enableChannel:useManager. |
|
4642 |
||
4643 |
localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst. |
|
4644 |
localCheck enableChannel:useManager. |
|
4645 |
||
4646 |
box leftIndent:oldIndent. |
|
4647 |
||
4648 |
(AbstractSourceCodeManager isNil |
|
4649 |
or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[ |
|
4650 |
useManager value:false. |
|
4651 |
cacheEntry disable. |
|
4652 |
check disable. |
|
4653 |
localCheck enable. |
|
4654 |
] ifFalse:[ |
|
4655 |
sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
|
4656 |
]. |
|
4657 |
box addHorizontalLine. |
|
4658 |
]. |
|
4659 |
||
4660 |
box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier. |
|
4661 |
box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack. |
|
4662 |
||
1527 | 4663 |
box addHorizontalLine. |
4664 |
box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring. |
|
1544 | 4665 |
|
4666 |
oldUserPreferences := UserPreferences current copy. |
|
4667 |
||
4668 |
syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColors asValue initialSelection:1). |
|
4669 |
syntaxColorSelector := [(syntaxColors selection replChar:$ withString: '') asLowercaseFirst asSymbol]. |
|
4670 |
syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol]. |
|
4671 |
syntaxColor := (UserPreferences current perform: syntaxColorSelector value) asValue. |
|
4672 |
colorMenu := ColorMenu new. |
|
4673 |
colorMenu model: syntaxColor. |
|
4674 |
syntaxColor onChangeSend: #value to: |
|
4675 |
[UserPreferences current at: syntaxColorSelector value put: syntaxColor value]. |
|
4676 |
syntaxColors onChangeSend: #value to: |
|
4677 |
[syntaxColor value: (UserPreferences current perform:syntaxColorSelector value). |
|
4678 |
syntaxEmphasises selection: (UserPreferences current perform: syntaxEmphasisSelector value)]. |
|
4679 |
syntaxEmphasisesBox := box addComboListOn: (syntaxEmphasises := SelectionInList with:#(normal bold italic) asValue initialSelection:1). |
|
4680 |
syntaxEmphasises onChangeSend: #value to: |
|
4681 |
[UserPreferences current at: syntaxEmphasisSelector value put: syntaxEmphasises selection asSymbol]. |
|
1547 | 4682 |
syntaxColors changed:#value. "/ to force initial update of emphasis |
1544 | 4683 |
box addComponent:colorMenu tabable:true. |
4684 |
syntaxColoringResetBox := box addComponent:(Button new label: (resources string:'reset'); action: [UserPreferences reset. syntaxColor value: (UserPreferences current perform:syntaxColorSelector value)]). |
|
4685 |
||
4686 |
syntaxColoringEnableBlock := |
|
4687 |
[syntaxColoring value |
|
4688 |
ifTrue: [syntaxColoringBox enable. colorMenu enable. syntaxEmphasisesBox enable. syntaxColoringResetBox enable] |
|
4689 |
ifFalse:[syntaxColoringBox disable. colorMenu disable. syntaxEmphasisesBox disable. syntaxColoringResetBox disable] |
|
1531 | 4690 |
]. |
1544 | 4691 |
syntaxColoringEnableBlock value. |
4692 |
syntaxColoring onChangeSend: #value to: syntaxColoringEnableBlock. |
|
4693 |
||
1531 | 4694 |
box addHorizontalLine. |
1406 | 4695 |
box |
4696 |
addHelpButtonFor:'Launcher/sourceSettings.html'; |
|
4697 |
addAbortButton; |
|
4698 |
addOkButton. |
|
4699 |
||
4700 |
"/ |
|
4701 |
"/ show the box ... |
|
4702 |
"/ |
|
4703 |
box open. |
|
4704 |
||
4705 |
"/ |
|
4706 |
"/ update system settings |
|
4707 |
"/ |
|
4708 |
box accepted ifTrue:[ |
|
4709 |
Class keepMethodHistory:keepMethodHistory value. |
|
4710 |
Smalltalk logDoits:logDoits value. |
|
4711 |
Class updateChanges:updChanges value. |
|
4712 |
ObjectMemory nameForChanges:changeFileName value. |
|
4713 |
||
4714 |
(hasManager and:[useManager value]) ifTrue:[ |
|
4715 |
manager isNil ifTrue:[ |
|
4716 |
Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager). |
|
4717 |
manager := Smalltalk at:#SourceCodeManager. |
|
4718 |
]. |
|
4719 |
Class tryLocalSourceFirst:(localSourceFirst value). |
|
1538 | 4720 |
manager notNil ifTrue:[ |
4721 |
localSourceFirst value ifFalse:[ |
|
4722 |
nm := sourceCacheDir value. |
|
4723 |
||
4724 |
(fn := nm asFilename) exists ifFalse:[ |
|
4725 |
(self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[ |
|
4726 |
fn makeDirectory; |
|
4727 |
makeReadableForAll; |
|
4728 |
makeWritableForAll; |
|
4729 |
makeExecutableForAll. |
|
4730 |
] |
|
4731 |
]. |
|
4732 |
(fn exists |
|
4733 |
and:[fn isDirectory |
|
4734 |
and:[fn isReadable |
|
4735 |
and:[fn isWritable]]]) ifTrue:[ |
|
4736 |
AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value). |
|
1406 | 4737 |
] |
4738 |
] |
|
4739 |
]. |
|
4740 |
||
4741 |
repositoryHolder notNil ifTrue:[ |
|
4742 |
repositoryHolder value size > 0 ifTrue:[ |
|
4743 |
manager initializeForRepository:repositoryHolder value. |
|
4744 |
]. |
|
4745 |
]. |
|
4746 |
] ifFalse:[ |
|
4747 |
Smalltalk at:#SourceCodeManager put:nil |
|
1549 | 4748 |
]. |
4749 |
||
4750 |
showErrorNotifier value ifFalse:[ |
|
4751 |
Exception emergencyHandler:nil |
|
4752 |
] ifTrue:[ |
|
4753 |
Exception emergencyHandler:(Launcher notifyingEmergencyHandler) |
|
4754 |
]. |
|
4755 |
DebugView defaultVerboseBacktrace:(showVerboseStack value). |
|
4756 |
UserPreferences current syntaxColoring:syntaxColoring value. |
|
4757 |
||
1544 | 4758 |
] ifFalse: [ |
4759 |
(UserPreferences reset; current) declareAllFrom: oldUserPreferences |
|
1406 | 4760 |
]. |
4761 |
box destroy |
|
1547 | 4762 |
|
4763 |
"Modified: / 15.4.1998 / 13:41:37 / cg" |
|
1549 | 4764 |
"Modified: / 16.4.1998 / 17:18:16 / ca" |
1406 | 4765 |
! |
4766 |
||
4767 |
viewStyleSetting |
|
4768 |
"open a dialog on viewStyle related settings" |
|
4769 |
||
4770 |
|listOfStyles resourceDir dir box |
|
4771 |
list listView scrView infoLabel infoForwarder newStyle |
|
1491 | 4772 |
someRsrcFile didApply| |
1406 | 4773 |
|
4774 |
" |
|
4775 |
search resources directory for a list of .style files ... |
|
4776 |
" |
|
4777 |
someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style'). |
|
4778 |
someRsrcFile notNil ifTrue:[ |
|
4779 |
resourceDir := someRsrcFile asFilename directoryName |
|
4780 |
] ifFalse:[ |
|
4781 |
resourceDir := Smalltalk getSystemFileName:'resources'. |
|
4782 |
]. |
|
4783 |
||
4784 |
resourceDir isNil ifTrue:[ |
|
4785 |
self warn:'no styles found (missing ''resources'' directory)'. |
|
4786 |
^ self |
|
4787 |
]. |
|
4788 |
dir := resourceDir asFilename directoryContents. |
|
4789 |
||
4790 |
listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style']. |
|
4791 |
listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name]. |
|
4792 |
Filename isCaseSensitive ifFalse:[ |
|
4793 |
listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase]. |
|
4794 |
]. |
|
4795 |
listOfStyles sort. |
|
4796 |
||
4797 |
"/ old code: used a standard ListSelectionBox |
|
4798 |
"/ changed to intercept selection and add info-output. |
|
4799 |
||
4800 |
"/ box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs. |
|
4801 |
"/ box label:(resources string:'Style selection'). |
|
4802 |
"/ box list:listOfStyles. |
|
4803 |
"/ box initialText:View defaultStyle. |
|
4804 |
"/ box selectAction:[:newStyle | |
|
4805 |
"/ ]. |
|
4806 |
"/ box action:[:newStyle | |
|
4807 |
"/ transcript topView withCursor:Cursor wait do:[ |
|
4808 |
"/ transcript showCR:'change style to ' , newStyle , ' ...'. |
|
4809 |
"/ View defaultStyle:newStyle asSymbol. |
|
4810 |
"/ ] |
|
4811 |
"/ ]. |
|
4812 |
"/ box showAtPointer |
|
4813 |
||
4814 |
"/ new code: build box 'by 'hand' |
|
4815 |
"/ |
|
4816 |
infoForwarder := [ |
|
4817 |
|nm sheet comment| |
|
4818 |
nm := list selection. |
|
4819 |
sheet := ViewStyle fromFile:(nm , '.style'). |
|
4820 |
comment := sheet at:#comment ifAbsent:''. |
|
4821 |
infoLabel label:comment withCRs asStringCollection |
|
4822 |
]. |
|
4823 |
||
4824 |
list := SelectionInList with:listOfStyles. |
|
4825 |
list onChangeSend:#value to:infoForwarder. |
|
4826 |
||
4827 |
box := Dialog new. |
|
4828 |
box label:(resources string:'Style selection'). |
|
4829 |
||
4830 |
(box addTextLabel:(resources string:'STYLE_MSG') withCRs) adjust:#left. |
|
4831 |
listView := SelectionInListView on:list. |
|
4832 |
listView doubleClickAction:[:sel | box accept value:true. box hide]. |
|
4833 |
scrView := box addComponent:(ScrollableView forView:listView) tabable:true. |
|
4834 |
||
4835 |
box addVerticalSpace. |
|
4836 |
||
4837 |
(infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft. |
|
4838 |
||
4839 |
box addAbortButton. |
|
1467
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
4840 |
"b := box addButton:(Button label:(resources string:'apply'))." |
59bf087a0423
missing call added + using own extent calc routine for opening
tz
parents:
1466
diff
changeset
|
4841 |
"b action:[didApply := true. self changeViewStyleTo:(list selection)]." |
1406 | 4842 |
box addOkButton. |
4843 |
list selection:(View defaultStyle). |
|
4844 |
||
4845 |
box stickAtBottomWithVariableHeight:scrView. |
|
4846 |
box stickAtBottomWithFixHeight:infoLabel. |
|
4847 |
box open. |
|
4848 |
||
4849 |
box accepted ifTrue:[ |
|
4850 |
((newStyle := list selection) ~= View defaultStyle |
|
4851 |
or:[didApply ~~ true]) ifTrue:[ |
|
4852 |
self changeViewStyleTo:newStyle. |
|
4853 |
]. |
|
4854 |
]. |
|
4855 |
box destroy |
|
4856 |
! ! |
|
4857 |
||
1544 | 4858 |
!NewLauncher methodsFor:'user actions - system'! |
1406 | 4859 |
|
4860 |
compressingGarbageCollect |
|
4861 |
"perform a compressing garbageCollect" |
|
4862 |
||
4863 |
ObjectMemory verboseGarbageCollect |
|
4864 |
||
4865 |
! |
|
4866 |
||
1544 | 4867 |
garbageCollect |
4868 |
"perform a non-compressing garbageCollect" |
|
4869 |
||
4870 |
ObjectMemory reclaimSymbols |
|
4871 |
||
4872 |
! |
|
4873 |
||
4874 |
initJavaVM |
|
4875 |
JavaVM initializeVM |
|
4876 |
||
4877 |
"Created: / 9.2.1998 / 12:06:07 / cg" |
|
4878 |
! |
|
4879 |
||
4880 |
startLatencyMonitor |
|
4881 |
"open an interruptLatencyMonitor view" |
|
4882 |
||
4883 |
InterruptLatencyMonitor notNil ifTrue:[ |
|
4884 |
Autoload autoloadFailedSignal catch:[ |
|
4885 |
InterruptLatencyMonitor autoload. |
|
4886 |
]. |
|
4887 |
InterruptLatencyMonitor isLoaded ifTrue:[ |
|
4888 |
InterruptLatencyMonitor open. |
|
4889 |
^ self. |
|
4890 |
] |
|
4891 |
]. |
|
4892 |
self warn:'Sorry - the irq latency monitor is only available |
|
4893 |
in the full commercial release'. |
|
4894 |
||
4895 |
! |
|
4896 |
||
4897 |
startStopEventTrace |
|
4898 |
"start/stop event tracing for a particular view" |
|
4899 |
||
4900 |
|v wg| |
|
4901 |
||
4902 |
v := Screen current viewFromUser. |
|
4903 |
v notNil ifTrue:[ |
|
4904 |
v := v topView. |
|
4905 |
wg := v windowGroup. |
|
4906 |
wg notNil ifTrue:[ |
|
4907 |
"/ |
|
4908 |
"/ toggle eventTrace in its windowGroup |
|
4909 |
"/ |
|
4910 |
wg traceEvents:(wg preEventHook isNil) |
|
4911 |
] |
|
4912 |
] |
|
4913 |
||
4914 |
! ! |
|
4915 |
||
4916 |
!NewLauncher methodsFor:'user actions - tools'! |
|
4917 |
||
4918 |
newProject |
|
4919 |
"creates a new project & opens a projectView for it" |
|
4920 |
||
4921 |
Project notNil ifTrue: [(ProjectView for: Project new) open] |
|
4922 |
! |
|
4923 |
||
4924 |
selectProject |
|
4925 |
"asks for and switch to another project" |
|
4926 |
||
4927 |
|list box| |
|
4928 |
||
4929 |
Project notNil ifTrue:[ |
|
4930 |
list := Project allInstances. |
|
4931 |
box := ListSelectionBox new. |
|
4932 |
box list:(list collect:[:p | p name]). |
|
4933 |
box title:(resources string:'select a project'). |
|
4934 |
box action:[:selection | |
|
4935 |
|project| |
|
4936 |
||
4937 |
project := list detect:[:p | p name = selection] ifNone:[nil]. |
|
4938 |
project isNil ifTrue:[ |
|
4939 |
transcript showCR:'no such project.' |
|
4940 |
] ifFalse:[ |
|
4941 |
project showViews. |
|
4942 |
Project current:project |
|
4943 |
] |
|
4944 |
]. |
|
4945 |
box showAtPointer. |
|
4946 |
box destroy |
|
4947 |
] |
|
4948 |
! |
|
4949 |
||
4950 |
startNewLauncher |
|
4951 |
"opens the new launcher" |
|
4952 |
||
4953 |
NewLauncher openAt:(self window origin) |
|
4954 |
||
4955 |
! |
|
4956 |
||
4957 |
startOldLauncher |
|
4958 |
"opens the old launcher" |
|
4959 |
||
4960 |
Launcher openAt:(self window origin) |
|
4961 |
||
4962 |
! ! |
|
4963 |
||
4964 |
!NewLauncher methodsFor:'user actions - windows'! |
|
4965 |
||
1406 | 4966 |
deIconifyAllWindows |
4967 |
|setOfViews| |
|
4968 |
||
4969 |
setOfViews := Project current views asIdentitySet. |
|
4970 |
setOfViews addAll:(Project defaultProject views). |
|
4971 |
||
4972 |
setOfViews do:[:aTopView | |
|
4973 |
aTopView device == Screen current ifTrue:[ |
|
4974 |
aTopView expand |
|
4975 |
]. |
|
4976 |
]. |
|
4977 |
||
4978 |
! |
|
4979 |
||
4980 |
findAndDestroyWindow |
|
4981 |
"find a window (by name) and destroy it" |
|
4982 |
||
4983 |
|v| |
|
4984 |
v := self findWindow:'select view to close:'. |
|
4985 |
v notNil ifTrue:[v destroy] |
|
4986 |
||
4987 |
! |
|
4988 |
||
4989 |
findAndRaiseWindow |
|
4990 |
"find a window (by name) and raise it" |
|
4991 |
||
4992 |
|v| |
|
4993 |
||
4994 |
v := self findWindow:'select view to raise deiconified:'. |
|
4995 |
v notNil ifTrue:[v raiseDeiconified] |
|
4996 |
||
4997 |
! |
|
4998 |
||
4999 |
fullScreenHardcopy |
|
5000 |
"after a second (to allow redraw of views under menu ...), |
|
5001 |
save the contents of the whole screen." |
|
5002 |
||
5003 |
Processor |
|
5004 |
addTimedBlock:[ |
|
5005 |
self |
|
5006 |
saveScreenImage:(Image fromScreen) |
|
5007 |
defaultName:'screen' |
|
5008 |
] |
|
5009 |
afterSeconds:1 |
|
5010 |
||
5011 |
! |
|
5012 |
||
5013 |
iconifyAllWindows |
|
5014 |
|setOfViews| |
|
5015 |
||
5016 |
setOfViews := Project current views asIdentitySet. |
|
5017 |
setOfViews addAll:(Project defaultProject views). |
|
5018 |
||
5019 |
setOfViews do:[:aTopView | |
|
5020 |
aTopView device == Screen current ifTrue:[ |
|
5021 |
aTopView collapse |
|
5022 |
] |
|
5023 |
] |
|
5024 |
||
5025 |
! |
|
5026 |
||
5027 |
pickAView |
|
5028 |
"let user pick a view and return it" |
|
5029 |
||
5030 |
|v| |
|
5031 |
||
5032 |
(Delay forSeconds:1) wait. |
|
5033 |
v := Screen current viewFromUser. |
|
5034 |
v isNil ifTrue:[ |
|
5035 |
self warn:'Sorry, this is not a smalltalk view'. |
|
5036 |
^ nil |
|
5037 |
]. |
|
5038 |
^ v |
|
5039 |
||
5040 |
! |
|
5041 |
||
5042 |
screenHardcopy |
|
5043 |
"after a second (to allow redraw of views under menu ...), |
|
5044 |
let user specify a rectangular area on the screen |
|
5045 |
and save its contents." |
|
5046 |
||
5047 |
|area| |
|
5048 |
||
5049 |
Processor |
|
5050 |
addTimedBlock:[ |
|
5051 |
[Screen current leftButtonPressed] whileTrue:[Processor yield]. |
|
5052 |
||
5053 |
area := Rectangle fromUser. |
|
5054 |
(area width > 0 and:[area height > 0]) ifTrue:[ |
|
5055 |
self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy' |
|
5056 |
] |
|
5057 |
] |
|
5058 |
afterSeconds:1 |
|
5059 |
||
5060 |
! |
|
5061 |
||
5062 |
startWindowTreeView |
|
5063 |
"open a windowTree view (on a topView)" |
|
5064 |
||
5065 |
|v| |
|
5066 |
||
5067 |
v := self pickAView. |
|
5068 |
v notNil ifTrue:[ |
|
5069 |
WindowTreeView openOn:v topView |
|
5070 |
] |
|
5071 |
||
5072 |
! |
|
5073 |
||
5074 |
viewDestroy |
|
5075 |
"let user pick a view and destroy it. |
|
5076 |
Even allow destroying non-smalltalk views |
|
5077 |
(also for views which I forgot due to some error)" |
|
5078 |
||
5079 |
|device v id i c| |
|
5080 |
||
5081 |
(Delay forSeconds:1) wait. |
|
5082 |
||
5083 |
device := Screen current. |
|
5084 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'. |
|
5085 |
i isNil ifTrue:[ |
|
5086 |
c := Cursor crossHair |
|
5087 |
] ifFalse:[ |
|
5088 |
c := Cursor fromImage:i |
|
5089 |
]. |
|
5090 |
id := device viewIdFromPoint:(device pointFromUserShowing:c). |
|
5091 |
(v := device viewFromId:id) notNil ifTrue:[ |
|
5092 |
v topView destroy. |
|
5093 |
^ self |
|
5094 |
]. |
|
5095 |
id = device rootView id ifTrue:[ |
|
5096 |
^ self |
|
5097 |
]. |
|
5098 |
(Dialog confirm:'mhmh, this may not a be smalltalk view\(Or I somehow forgot about it).\Destroy anyway ?' withCRs) |
|
5099 |
ifTrue:[ |
|
5100 |
device destroyView:nil withId:id |
|
5101 |
]. |
|
5102 |
||
5103 |
||
5104 |
! |
|
5105 |
||
5106 |
viewHardcopy |
|
5107 |
"after a second (to allow redraw of views under menu ...), |
|
5108 |
let user specify a view and save its contents." |
|
5109 |
||
5110 |
Processor |
|
5111 |
addTimedBlock:[ |
|
5112 |
|v| |
|
5113 |
(v := Screen current viewFromUser) notNil ifTrue:[ |
|
5114 |
self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy' |
|
5115 |
] |
|
5116 |
] |
|
5117 |
afterSeconds:1 |
|
5118 |
||
5119 |
! |
|
5120 |
||
5121 |
viewInspect |
|
5122 |
"let user pick a view and inspect it. Only smalltalk views are allowed" |
|
5123 |
||
5124 |
|v| |
|
5125 |
||
5126 |
(v := self pickAView) notNil |
|
5127 |
ifTrue: |
|
5128 |
[ |
|
5129 |
v inspect |
|
5130 |
] |
|
5131 |
||
5132 |
! ! |
|
5133 |
||
5134 |
!NewLauncher class methodsFor:'documentation'! |
|
5135 |
||
5136 |
version |
|
1549 | 5137 |
^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.54 1998-04-16 15:22:15 cg Exp $' |
1406 | 5138 |
! ! |